webpackJsonp([0],{

/***/ 10:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_mobx__ = __webpack_require__(6);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_axios__ = __webpack_require__(11);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_axios___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_axios__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__utils_utils__ = __webpack_require__(4);
var _createClass = function () { function 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); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();

var _desc, _value, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14;

function _initDefineProp(target, property, descriptor, context) {
  if (!descriptor) return;
  Object.defineProperty(target, property, {
    enumerable: descriptor.enumerable,
    configurable: descriptor.configurable,
    writable: descriptor.writable,
    value: descriptor.initializer ? descriptor.initializer.call(context) : void 0
  });
}

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

function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) {
  var desc = {};
  Object['ke' + 'ys'](descriptor).forEach(function (key) {
    desc[key] = descriptor[key];
  });
  desc.enumerable = !!desc.enumerable;
  desc.configurable = !!desc.configurable;

  if ('value' in desc || desc.initializer) {
    desc.writable = true;
  }

  desc = decorators.slice().reverse().reduce(function (desc, decorator) {
    return decorator(target, property, desc) || desc;
  }, desc);

  if (context && desc.initializer !== void 0) {
    desc.value = desc.initializer ? desc.initializer.call(context) : void 0;
    desc.initializer = undefined;
  }

  if (desc.initializer === void 0) {
    Object['define' + 'Property'](target, property, desc);
    desc = null;
  }

  return desc;
}

function _initializerWarningHelper(descriptor, context) {
  throw new Error('Decorating class property failed. Please ensure that transform-class-properties is enabled.');
}





var store = (_class = function () {
  function store() {
    var _this = this;

    _classCallCheck(this, store);

    _initDefineProp(this, "eventObj", _descriptor, this);

    _initDefineProp(this, "errorObj", _descriptor2, this);

    _initDefineProp(this, "killPolling", _descriptor3, this);

    _initDefineProp(this, "pollingStarted", _descriptor4, this);

    _initDefineProp(this, "submitDisabled", _descriptor5, this);

    _initDefineProp(this, "amountt", _descriptor6, this);

    _initDefineProp(this, "error", _descriptor7, this);

    _initDefineProp(this, "pageLoaded", _descriptor8, this);

    _initDefineProp(this, "sessionEnd", _descriptor9, this);

    _initDefineProp(this, "showCoreFirstName", _descriptor10, this);

    _initDefineProp(this, "showCoreLastName", _descriptor11, this);

    _initDefineProp(this, "showCoreAddress", _descriptor12, this);

    _initDefineProp(this, "showCoreSSN", _descriptor13, this);

    _initDefineProp(this, "showCoreDOB", _descriptor14, this);

    this.resetPolling = function () {
      if (_this.killPolling === true) {
        _this.killPolling = false;
        _this.errorCounter = 0;
        _this.pollingStarted = false;
        _this.eventObj = {
          event: undefined,
          payload: {}
        };
        _this.errorStack = [];
        _this.longPollEvents();
      }
    };

    this.errorCounter = 0;
    this.pageLoaded = false;
    this.killPolling = false;
    this.pollingStarted = false;
    this.eventObj = {
      event: undefined,
      payload: {}
    };
    this.errorStack = [];
    this.errorObj = {
      clientID: __WEBPACK_IMPORTED_MODULE_2__utils_utils__["a" /* default */].getReceivePrefix() + __WEBPACK_IMPORTED_MODULE_2__utils_utils__["a" /* default */].getID(),
      errorStack: this.errorStack.toString()
    };
  }

  _createClass(store, [{
    key: "longPollEvents",
    value: function longPollEvents() {
      var _this2 = this;

      this.pollingStarted = true;
      var clientId = void 0;
      if (!this.killPolling && __WEBPACK_IMPORTED_MODULE_2__utils_utils__["a" /* default */].getID()) {

        if (__WEBPACK_IMPORTED_MODULE_2__utils_utils__["a" /* default */].getCustomerNBSID() || __WEBPACK_IMPORTED_MODULE_2__utils_utils__["a" /* default */].getCustomerNBSID() === null && __WEBPACK_IMPORTED_MODULE_2__utils_utils__["a" /* default */].getCustomerCaseID()) {
          clientId = __WEBPACK_IMPORTED_MODULE_2__utils_utils__["a" /* default */].getID();
        } else {
          clientId = __WEBPACK_IMPORTED_MODULE_2__utils_utils__["a" /* default */].getReceivePrefix() + __WEBPACK_IMPORTED_MODULE_2__utils_utils__["a" /* default */].getID();
        }

        try {
          __WEBPACK_IMPORTED_MODULE_1_axios___default.a.post(__WEBPACK_IMPORTED_MODULE_2__utils_utils__["a" /* default */].getMsgUrl("receiveService"), {
            clientId: clientId
          }).then(function (resp) {
            if (resp.data.status === "error") {
              _this2.updateError("Service responded with status error or sessionEnd.");
              _this2.error = "Error Occured.";
              _this2.stopPollingEvents();
              return;
            }
            if (resp.data.event === "sessionEnd" && (resp.data.payload.pageName === "payment" || resp.data.payload.pageName === "cardinalPayment" || resp.data.payload.pageName === "creditApp" || resp.data.payload.pageName === "tAc" || resp.data.payload.pageName === "lovnbs")) {
              _this2.updateError("Service responded with status error or sessionEnd.");
              _this2.error = "Error Occured.";
              _this2.sessionEnd = "Error Occured.";
              _this2.stopPollingEvents();
              return;
            }
            _this2.eventObj = resp.data;
            _this2.pageLoaded = true;
            if (_this2.eventObj.payload != null && _this2.eventObj.payload != "" && _this2.eventObj.payload.pageName == "cardinalPayment") {
              _this2.setupCardinalRequest(_this2.eventObj);
            }
            if (_this2.eventObj.payload != null && _this2.eventObj.payload != "" && _this2.eventObj.payload.pageName == "lovnbs") {
              _this2.setuplovnbsRequest(_this2.eventObj);
            }
            if (_this2.eventObj.payload != null && _this2.eventObj.payload != "" && _this2.eventObj.payload.pageName == "coreCreditApp") {
              if (EventStore.eventObj.payload.showAddress === "true") {
                _this2.showCoreAddress = true;
              } else {
                _this2.showCoreAddress = false;
              }
              if (EventStore.eventObj.payload.showFirstName === "true") {
                _this2.showCoreFirstName = true;
              } else {
                _this2.showCoreFirstName = false;
              }
              if (EventStore.eventObj.payload.showLastName === "true") {
                _this2.showCoreLastName = true;
              } else {
                _this2.showCoreLastName = false;
              }
              if (EventStore.eventObj.payload.showSSN === "true") {
                _this2.showCoreSSN = true;
              } else {
                _this2.showCoreSSN = false;
              }
              if (EventStore.eventObj.payload.showDOB === "true") {
                _this2.showCoreDOB = true;
              } else {
                _this2.showCoreDOB = false;
              }
            }

            _this2.errorCounter = 0;
            __WEBPACK_IMPORTED_MODULE_2__utils_utils__["a" /* default */].defer(_this2.longPollEvents.bind(_this2));
          }).catch(function (error) {
            _this2.errorCounter++;
            _this2.updateError(error.message);
            if (_this2.errorCounter >= 10) {
              _this2.stopPollingEvents();
              return;
            }
            __WEBPACK_IMPORTED_MODULE_2__utils_utils__["a" /* default */].defer(_this2.longPollEvents.bind(_this2), 1000);
          });
        } catch (e) {
          this.stopPollingEvents();
          this.naviInfo = {
            userAgent: window.navigator.userAgent,
            cookieEnabled: window.navigator.cookieEnabled ? 'true' : 'false',
            href: window.location.href,
            errorInfo: "Mobile client loaded app.",
            clientID: __WEBPACK_IMPORTED_MODULE_2__utils_utils__["a" /* default */].getReceivePrefix() + __WEBPACK_IMPORTED_MODULE_2__utils_utils__["a" /* default */].getID()
          };
          this.updateError("long poll failed");
        }
      } else {
        this.stopPollingEvents();
      }
    }
  }, {
    key: "updateError",
    value: function updateError(e) {
      this.errorStack.push(e);
      this.errorObj = {
        clientID: __WEBPACK_IMPORTED_MODULE_2__utils_utils__["a" /* default */].getReceivePrefix() + __WEBPACK_IMPORTED_MODULE_2__utils_utils__["a" /* default */].getID(),
        errorStack: this.errorStack
      };
    }
  }, {
    key: "stopPollingEvents",
    value: function stopPollingEvents() {
      this.killPolling = true;
    }
  }, {
    key: "setupCardinalRequest",
    value: function setupCardinalRequest(eventObj) {
      sessionStorage.setItem("addressLine1", eventObj.payload.addressLine1);
      sessionStorage.setItem("addressLine2", eventObj.payload.addressLine2);
      sessionStorage.setItem("countryCode", eventObj.payload.countryCode);
      sessionStorage.setItem("postalCode", eventObj.payload.postalCode);
      sessionStorage.setItem("state", eventObj.payload.state);
      sessionStorage.setItem("city", eventObj.payload.city);
      sessionStorage.setItem("firstName", eventObj.payload.firstName);
      sessionStorage.setItem("lastName", eventObj.payload.lastName);
      sessionStorage.setItem("billingPhone", eventObj.payload.billingPhone);
      sessionStorage.setItem("shippingMethod", eventObj.payload.shippingMethod);
      sessionStorage.setItem("amount", eventObj.payload.amount);
      sessionStorage.setItem("email", eventObj.payload.email);
      sessionStorage.setItem("newCustomer", eventObj.payload.newCustomer);
      sessionStorage.setItem("netaceOrderId", eventObj.payload.orderNum);
      sessionStorage.setItem("locationCd", eventObj.payload.locationCode);
      sessionStorage.setItem("merchanteId", eventObj.payload.merchantId);
      this.amountt = sessionStorage.getItem("amount");
      this.submitDisabled = true;
    }
  }, {
    key: "setuplovnbsRequest",
    value: function setuplovnbsRequest(eventObj) {
      sessionStorage.setItem("effectiveDate", eventObj.payload.effectiveDate);
      sessionStorage.setItem("emailId", eventObj.payload.emailId);
      sessionStorage.setItem("mtn", eventObj.payload.mtn);
    }
  }]);

  return store;
}(), (_descriptor = _applyDecoratedDescriptor(_class.prototype, "eventObj", [__WEBPACK_IMPORTED_MODULE_0_mobx__["b" /* observable */]], {
  enumerable: true,
  initializer: null
}), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, "errorObj", [__WEBPACK_IMPORTED_MODULE_0_mobx__["b" /* observable */]], {
  enumerable: true,
  initializer: null
}), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, "killPolling", [__WEBPACK_IMPORTED_MODULE_0_mobx__["b" /* observable */]], {
  enumerable: true,
  initializer: null
}), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, "pollingStarted", [__WEBPACK_IMPORTED_MODULE_0_mobx__["b" /* observable */]], {
  enumerable: true,
  initializer: null
}), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, "submitDisabled", [__WEBPACK_IMPORTED_MODULE_0_mobx__["b" /* observable */]], {
  enumerable: true,
  initializer: function initializer() {
    return true;
  }
}), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, "amountt", [__WEBPACK_IMPORTED_MODULE_0_mobx__["b" /* observable */]], {
  enumerable: true,
  initializer: function initializer() {
    return "";
  }
}), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, "error", [__WEBPACK_IMPORTED_MODULE_0_mobx__["b" /* observable */]], {
  enumerable: true,
  initializer: null
}), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, "pageLoaded", [__WEBPACK_IMPORTED_MODULE_0_mobx__["b" /* observable */]], {
  enumerable: true,
  initializer: null
}), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, "sessionEnd", [__WEBPACK_IMPORTED_MODULE_0_mobx__["b" /* observable */]], {
  enumerable: true,
  initializer: null
}), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, "showCoreFirstName", [__WEBPACK_IMPORTED_MODULE_0_mobx__["b" /* observable */]], {
  enumerable: true,
  initializer: function initializer() {
    return false;
  }
}), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, "showCoreLastName", [__WEBPACK_IMPORTED_MODULE_0_mobx__["b" /* observable */]], {
  enumerable: true,
  initializer: function initializer() {
    return false;
  }
}), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, "showCoreAddress", [__WEBPACK_IMPORTED_MODULE_0_mobx__["b" /* observable */]], {
  enumerable: true,
  initializer: function initializer() {
    return false;
  }
}), _descriptor13 = _applyDecoratedDescriptor(_class.prototype, "showCoreSSN", [__WEBPACK_IMPORTED_MODULE_0_mobx__["b" /* observable */]], {
  enumerable: true,
  initializer: function initializer() {
    return false;
  }
}), _descriptor14 = _applyDecoratedDescriptor(_class.prototype, "showCoreDOB", [__WEBPACK_IMPORTED_MODULE_0_mobx__["b" /* observable */]], {
  enumerable: true,
  initializer: function initializer() {
    return false;
  }
})), _class);


var EventStore = new store();
/* harmony default export */ __webpack_exports__["a"] = (EventStore);

/***/ }),

/***/ 117:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_mobx__ = __webpack_require__(6);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_axios__ = __webpack_require__(11);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_axios___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_axios__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__utils_utils__ = __webpack_require__(4);
var _createClass = function () { function 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); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();

var _desc, _value, _class, _descriptor;

function _initDefineProp(target, property, descriptor, context) {
    if (!descriptor) return;
    Object.defineProperty(target, property, {
        enumerable: descriptor.enumerable,
        configurable: descriptor.configurable,
        writable: descriptor.writable,
        value: descriptor.initializer ? descriptor.initializer.call(context) : void 0
    });
}

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

function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) {
    var desc = {};
    Object['ke' + 'ys'](descriptor).forEach(function (key) {
        desc[key] = descriptor[key];
    });
    desc.enumerable = !!desc.enumerable;
    desc.configurable = !!desc.configurable;

    if ('value' in desc || desc.initializer) {
        desc.writable = true;
    }

    desc = decorators.slice().reverse().reduce(function (desc, decorator) {
        return decorator(target, property, desc) || desc;
    }, desc);

    if (context && desc.initializer !== void 0) {
        desc.value = desc.initializer ? desc.initializer.call(context) : void 0;
        desc.initializer = undefined;
    }

    if (desc.initializer === void 0) {
        Object['define' + 'Property'](target, property, desc);
        desc = null;
    }

    return desc;
}

function _initializerWarningHelper(descriptor, context) {
    throw new Error('Decorating class property failed. Please ensure that transform-class-properties is enabled.');
}





var store = (_class = function () {
    function store() {
        _classCallCheck(this, store);

        _initDefineProp(this, 'error', _descriptor, this);
    }

    _createClass(store, [{
        key: 'submitSignature',
        value: function submitSignature(sig) {
            if (__WEBPACK_IMPORTED_MODULE_2__utils_utils__["a" /* default */].getID() === null) {
                return;
            }

            return __WEBPACK_IMPORTED_MODULE_1_axios___default.a.post(__WEBPACK_IMPORTED_MODULE_2__utils_utils__["a" /* default */].getMsgUrl('sendService'), {
                clientId: __WEBPACK_IMPORTED_MODULE_2__utils_utils__["a" /* default */].getSendPrefix() + __WEBPACK_IMPORTED_MODULE_2__utils_utils__["a" /* default */].getID(),
                event: "submitSignature",
                payload: {
                    tacsignature: sig
                }
            });
            /*.then((resp) => {
                this.sent = true;
            })
            .catch((error) => {
                this.error = true;
            })*/
        }
    }, {
        key: 'sendFormField',
        value: function sendFormField(formObj) {
            if (__WEBPACK_IMPORTED_MODULE_2__utils_utils__["a" /* default */].getID() === null) {
                return;
            }
            this.ipAddressSentStatus = true;
            return __WEBPACK_IMPORTED_MODULE_1_axios___default.a.post(__WEBPACK_IMPORTED_MODULE_2__utils_utils__["a" /* default */].getMsgUrl("sendService"), {
                clientId: __WEBPACK_IMPORTED_MODULE_2__utils_utils__["a" /* default */].getSendPrefix() + __WEBPACK_IMPORTED_MODULE_2__utils_utils__["a" /* default */].getID(),
                event: "submitSignature",
                payload: formObj
            });

            /*.then((resp) => {
                    this.sent = true;
                })
                .catch((error) => {
                    this.error = true;
                })*/
        }
    }]);

    return store;
}(), (_descriptor = _applyDecoratedDescriptor(_class.prototype, 'error', [__WEBPACK_IMPORTED_MODULE_0_mobx__["b" /* observable */]], {
    enumerable: true,
    initializer: function initializer() {
        return false;
    }
})), _class);

var SignatureStore = new store();
/* harmony default export */ __webpack_exports__["a"] = (SignatureStore);

/***/ }),

/***/ 118:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_mobx__ = __webpack_require__(6);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_axios__ = __webpack_require__(11);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_axios___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_axios__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__utils_utils__ = __webpack_require__(4);
var _createClass = function () { function 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); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();

var _desc, _value, _class, _descriptor;

function _initDefineProp(target, property, descriptor, context) {
    if (!descriptor) return;
    Object.defineProperty(target, property, {
        enumerable: descriptor.enumerable,
        configurable: descriptor.configurable,
        writable: descriptor.writable,
        value: descriptor.initializer ? descriptor.initializer.call(context) : void 0
    });
}

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

function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) {
    var desc = {};
    Object['ke' + 'ys'](descriptor).forEach(function (key) {
        desc[key] = descriptor[key];
    });
    desc.enumerable = !!desc.enumerable;
    desc.configurable = !!desc.configurable;

    if ('value' in desc || desc.initializer) {
        desc.writable = true;
    }

    desc = decorators.slice().reverse().reduce(function (desc, decorator) {
        return decorator(target, property, desc) || desc;
    }, desc);

    if (context && desc.initializer !== void 0) {
        desc.value = desc.initializer ? desc.initializer.call(context) : void 0;
        desc.initializer = undefined;
    }

    if (desc.initializer === void 0) {
        Object['define' + 'Property'](target, property, desc);
        desc = null;
    }

    return desc;
}

function _initializerWarningHelper(descriptor, context) {
    throw new Error('Decorating class property failed. Please ensure that transform-class-properties is enabled.');
}





var store = (_class = function () {
    function store() {
        _classCallCheck(this, store);

        _initDefineProp(this, 'welcomeMessage', _descriptor, this);

        this.welcomeMessage = 'Please tell Customer Representative there was an "Error starting connection service".';
    }

    _createClass(store, [{
        key: 'loggingService',
        value: function loggingService(obj) {
            __WEBPACK_IMPORTED_MODULE_1_axios___default.a.post(__WEBPACK_IMPORTED_MODULE_2__utils_utils__["a" /* default */].getUrl('loggingService'), {
                errors: obj
            });
        }
    }]);

    return store;
}(), (_descriptor = _applyDecoratedDescriptor(_class.prototype, 'welcomeMessage', [__WEBPACK_IMPORTED_MODULE_0_mobx__["b" /* observable */]], {
    enumerable: true,
    initializer: null
})), _class);

var WelcomeStore = new store();
/* harmony default export */ __webpack_exports__["a"] = (WelcomeStore);

/***/ }),

/***/ 138:
/***/ (function(module, exports) {

// removed by extract-text-webpack-plugin

/***/ }),

/***/ 14:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return PageFooter; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
var _createClass = function () { function 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); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();

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 _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; }



var PageFooter = function (_React$Component) {
    _inherits(PageFooter, _React$Component);

    function PageFooter() {
        _classCallCheck(this, PageFooter);

        return _possibleConstructorReturn(this, (PageFooter.__proto__ || Object.getPrototypeOf(PageFooter)).apply(this, arguments));
    }

    _createClass(PageFooter, [{
        key: "render",
        value: function render() {
            return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                "div",
                { className: "footer" },
                __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("img", { className: "mob-logo", src: "https://ss7.vzw.com/is/image/VerizonWireless/vzw-logo-156-130-c?$pngalpha$&wid=156&hei=35" }),
                "\xA9 2017 Verizon Wireless"
            );
        }
    }]);

    return PageFooter;
}(__WEBPACK_IMPORTED_MODULE_0_react___default.a.Component);



/***/ }),

/***/ 15:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return PageHeader; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
var _createClass = function () { function 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); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();

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 _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; }



var PageHeader = function (_React$Component) {
    _inherits(PageHeader, _React$Component);

    function PageHeader() {
        _classCallCheck(this, PageHeader);

        return _possibleConstructorReturn(this, (PageHeader.__proto__ || Object.getPrototypeOf(PageHeader)).apply(this, arguments));
    }

    _createClass(PageHeader, [{
        key: "render",
        value: function render() {
            return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                "div",
                null,
                __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                    "div",
                    { className: "header border-bot" },
                    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("img", { className: "logo", src: "https://ss7.vzw.com/is/image/VerizonWireless/vzw-logo-156-130-c?$pngalpha$&wid=156&hei=35" }),
                    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                        "div",
                        null,
                        this.props.title
                    )
                ),
                __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("div", { className: "header-spacer" })
            );
        }
    }]);

    return PageHeader;
}(__WEBPACK_IMPORTED_MODULE_0_react___default.a.Component);



/***/ }),

/***/ 18:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
var _ref, _ref2;

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

var langTranslator = [(_ref = {
    agreements: "Agreements",
    validPin: "Please enter a valid PIN.",
    billingInfo: "Billing Information",
    billingAndCreditInfo: "Billing & Credit Information",
    firstName: "First Name*",
    middleInitial: "Mid Init.",
    lastName: "Last Name*",
    suffix: "Suffix (Ex: Jr, Sr)",
    addressline1: "Address Line 1*",
    streetAddress: "Street Address",
    addressline2: "Address Line 2",
    apartmentNumber: "Apartment Number",
    zipCode: "Zip Code*",
    city: "City",
    enterValidAddress: "Please enter valid street address. Ex. 123 Main St",
    canBeReached: "Can Be Reached*",
    canBeReachedNumber: "Can Be Reached Number ",
    email: "Email*",
    validEmail: "Please enter valid email.",
    nineDigitSsn: "SSN requires 9 digits.",
    creditInfo: "Credit Information",
    ssn: "Social Security Number",
    confirmSSN: "Confirm Social Security Number*",
    ssnMatch: "SSN and Confirm SSN do not match.",
    ssnDoNotMatch: "SSN do not match.",
    dob: "Date of Birth*",
    dateFormat: "MM/DD/YYYY",
    specifiedDateFormat: "Please enter Date in specified format",
    pin: "PIN",
    confirmPin: "Confirm PIN",
    pinMatch: "PINs do not match",
    authorizeCreditReport: "I authorize Verizon to obtain my credit report information in connection with this order",
    creditCardInformation: "CreditCard Information",
    OrderTotalDueToday: "Order Total Due Today",
    cardNumber: "Card Number",
    fullName: "Full Name",
    valid: "Valid Thru*",
    monthYear: "MM/YYYY or MM/YY"
}, _defineProperty(_ref, "zipCode", "Zip Code*"), _defineProperty(_ref, "type", "Card Type"), _defineProperty(_ref, "domestic", "Domestic"), _defineProperty(_ref, "cvc", "CVC*"), _defineProperty(_ref, "tryAgain", "Try Again"), _defineProperty(_ref, "runCredit", "Yes, run my credit"), _defineProperty(_ref, "copyRight", "© 2017 Verizon Wireless"), _defineProperty(_ref, "billingShippingAndCreditInfo", "Billing, Shipping & Credit Information"), _defineProperty(_ref, "authorizePaymentMethod", "I authorize Verizon to charge this payment method for the amount of this order"), _defineProperty(_ref, "paymentInfo", "Payment Information"), _defineProperty(_ref, "creditCardNumber", "CreditCard Number"), _defineProperty(_ref, "submit", "submit"), _defineProperty(_ref, "loading", "Loading..."), _defineProperty(_ref, "viewFull", "View Full"), _defineProperty(_ref, "signAndSubmit", "Sign and submit signature below"), _defineProperty(_ref, "clear", "Clear"), _defineProperty(_ref, "fourDigitNumber", "Enter 4 digit Number"), _defineProperty(_ref, "shouldNotMatch", "Should not match the sequence of last 4 SSN, both forward and backward"), _defineProperty(_ref, "ShouldNotBeSequential", "Should not be sequential, forward and backward."), _defineProperty(_ref, "ShouldNotBeSameNumber", "Should not be a all same number"), _defineProperty(_ref, "fiveDigitZipCode", "Please enter 5 digit zip code."), _defineProperty(_ref, "TenDigitTelephone", "Please enter 10 digit telephone number."), _defineProperty(_ref, "transactionFailed", "Transaction is failed, please try again"), _defineProperty(_ref, "validCreditCard", "Please enter valid credit card"), _defineProperty(_ref, "enterName", "Please enter Name."), _defineProperty(_ref, "validExpiryDate", "Please enter valid expiry date."), _defineProperty(_ref, "enterValidCvc", "Please enter valid CVC."), _defineProperty(_ref, "enterValidZip", "Please enter valid zip code."), _defineProperty(_ref, "signatureProcessed", "Signature has been processed."), _defineProperty(_ref, "invalidSSN", "is an invalid SSN. Please enter a valid SSN."), _defineProperty(_ref, "invalidAge", "is an invalid age. Please enter a valid Date of Birth."), _defineProperty(_ref, "submittedSuccessfully", "Submitted Successfully"), _defineProperty(_ref, "verifyPin", "Verify PIN"), _defineProperty(_ref, "PaymentCvv", "Payment CVV"), _defineProperty(_ref, "missingInfoSSN", "Missing info: Please enter a valid SSN."), _defineProperty(_ref, "missingInfoConfirmSSN", "Missing info: Please confirm SSN."), _defineProperty(_ref, "missingInfoDob", "Missing info: Please enter Date of Birth."), _defineProperty(_ref, "welcomeMessageError", "Error reaching Service: Please refresh the page or try again later."), _defineProperty(_ref, "welcomeMessage", "Welcome. Your session has begun, waiting on Representative."), _defineProperty(_ref, "connectionErrorMessage", "Please tell Customer Representative there was an 'Error starting connection service'"), _defineProperty(_ref, "unableToRetrieve", "unable to retrieve data"), _defineProperty(_ref, "readAndAgree", "I have read and agree to the above Agreements"), _defineProperty(_ref, "pleaseReadAndAgree", "Please read and accept Agreements"), _defineProperty(_ref, "paymentAmount", "Payment Amount"), _defineProperty(_ref, "totalDue", "Total Due"), _defineProperty(_ref, "triggeredLongPolling", "Manually triggered long polling."), _defineProperty(_ref, "pollingEnding", "Manually triggered long polling due to polling ending."), _defineProperty(_ref, "errorOccured", "Error Occured"), _ref), (_ref2 = { agreements: "Acuerdos",
    validPin: "Ingresa un PIN válido.",
    billingInfo: "Información de facturación",
    billingAndCreditInfo: "Información de facturación y crédito",
    firstName: "Nombre*",
    middleInitial: "Inicial del segundo nombre",
    lastName: "Apellido*",
    suffix: "Sufijo (ejemplo: Jr., Sr.)",
    addressline1: "Dirección Línea 1*",
    streetAddress: "Dirección",
    addressline2: "Dirección Línea 2",
    apartmentNumber: "Número de apartamento",
    zipCode: "Código postal*",
    city: "ciudad",
    enterValidAddress: "Ingresa una dirección válida (como 123 Main St)",
    canBeReached: "Contacto*",
    canBeReachedNumber: "Número de contacto",
    email: "Email*",
    validEmail: "Ingresa un correo electrónico válido.",
    nineDigitSsn: "El SSN debe incluir 9 dígitos.",
    creditInfo: "Correo electrónico*",
    ssn: "Número de seguro social",
    confirmSSN: "Confirmar número de seguro social*",
    ssnMatch: "Los campos SSN y Confirmar SSN no coinciden.",
    ssnDoNotMatch: "El SSN no coincide.",
    dob: "Fecha de nacimiento*",
    dateFormat: "MM/DD/AAAA",
    specifiedDateFormat: "Ingresa la fecha en el formato especificado.",
    pin: "PIN",
    confirmPin: "Confirmar el PIN*",
    pinMatch: "Los PIN no coinciden.",
    authorizeCreditReport: "Autorizo a Verizon a obtener información de mi informe crediticio con respecto a este pedido",
    creditCardInformation: "Información de tarjeta de crédito",
    OrderTotalDueToday: "Total del pedido vencido hoy",
    cardNumber: "Número de tarjeta",
    fullName: "Nombre completo",
    valid: "Vencimiento*",
    monthYear: "MM/AAAA o MM/AA"
}, _defineProperty(_ref2, "zipCode", "Código postal*"), _defineProperty(_ref2, "type", "Tipo de tarjeta "), _defineProperty(_ref2, "domestic", "Nacional"), _defineProperty(_ref2, "cvc", "CVC*"), _defineProperty(_ref2, "tryAgain", "Inténtalo de nuevo"), _defineProperty(_ref2, "runCredit", "Sí, revisar mi crédito"), _defineProperty(_ref2, "copyRight", "© 2017 Verizon Wireless."), _defineProperty(_ref2, "billingShippingAndCreditInfo", "Información de facturación, envío y crédito"), _defineProperty(_ref2, "authorizePaymentMethod", "Autorizo a Verizon a cobrar el monto de este pedido a este método de pago"), _defineProperty(_ref2, "paymentInfo", "Información de pago"), _defineProperty(_ref2, "creditCardNumber", "Número de tarjeta de crédito"), _defineProperty(_ref2, "submit", "Enviar"), _defineProperty(_ref2, "loading", "Cargando..."), _defineProperty(_ref2, "viewFull", "Ver todo"), _defineProperty(_ref2, "signAndSubmit", "Firma y envía a continuación"), _defineProperty(_ref2, "clear", "Borrar"), _defineProperty(_ref2, "fourDigitNumber", "Ingresa un número de 4 dígitos."), _defineProperty(_ref2, "shouldNotMatch", "No debe coincidir con la secuencia de los 4 últimos dígitos de tu SSN, escrito al derecho o al revés."), _defineProperty(_ref2, "ShouldNotBeSameNumber", "No debe ser el mismo número."), _defineProperty(_ref2, "ShouldNotBeSequential", "No debe ser secuencial, escrito al derecho o al revés."), _defineProperty(_ref2, "fiveDigitZipCode", "Ingresa un código postal de 5 dígitos."), _defineProperty(_ref2, "TenDigitTelephone", "Ingresa un número de teléfono de 10 dígitos."), _defineProperty(_ref2, "transactionFailed", "Ocurrió un error con la transacción. Vuelve a intentarlo."), _defineProperty(_ref2, "validCreditCard", "Ingresa una tarjeta de crédito válida."), _defineProperty(_ref2, "enterName", "Ingresa un nombre."), _defineProperty(_ref2, "validExpiryDate", "Ingresa una fecha de vencimiento válida."), _defineProperty(_ref2, "enterValidCvc", "Ingresa un CVC válido."), _defineProperty(_ref2, "enterValidZip", "Ingresa un código postal válido."), _defineProperty(_ref2, "signatureProcessed", "Se procesó la firma."), _defineProperty(_ref2, "invalidSSN", "no es un SSN válido. Ingresa un SSN válido."), _defineProperty(_ref2, "invalidAge", "no es una edad válida. Ingresa una fecha de nacimiento válida."), _defineProperty(_ref2, "submittedSuccessfully", "Se envió correctamente"), _defineProperty(_ref2, "verifyPin", " "), _defineProperty(_ref2, "PaymentCvv", " "), _defineProperty(_ref2, "missingInfoSSN", "Falta información: ingresa un SSN válido"), _defineProperty(_ref2, "missingInfoConfirmSSN", "Falta información: confirma el SSN."), _defineProperty(_ref2, "missingInfoDob", "Falta información: ingresa la fecha de nacimiento."), _defineProperty(_ref2, "welcomeMessageError", "Error al contactar al servicio: actualiza la página o vuelve a intentarlo más tarde."), _defineProperty(_ref2, "welcomeMessage", "Bienvenido. Tu sesión ya comenzó, espera a nuestro representante."), _defineProperty(_ref2, "connectionErrorMessage", "Dile al representante de Servicio al cliente que ocurrió un 'Error al iniciar el servicio de conexión'"), _defineProperty(_ref2, "unableToRetrieve", "No se pueden recuperar los datos."), _defineProperty(_ref2, "readAndAgree", "He leído y acepto los Acuerdos arriba indicados. "), _defineProperty(_ref2, "pleaseReadAndAgree", "Por favor lee y acepta los Acuerdos."), _defineProperty(_ref2, "paymentAmount", "Monto del pago"), _defineProperty(_ref2, "totalDue", "Total Due"), _defineProperty(_ref2, "pollingEnding", "Sondeo extenso activado manualmente debido a fin de sondeo."), _defineProperty(_ref2, "triggeredLongPolling", "Sondeo extenso activado manualmente."), _defineProperty(_ref2, "errorOccured", "Ocurrió un error."), _ref2)];

/* harmony default export */ __webpack_exports__["a"] = (langTranslator);

/***/ }),

/***/ 23:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return CustomInput; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
var _createClass = function () { function 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); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();

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 _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; }



var CustomInput = function (_React$Component) {
    _inherits(CustomInput, _React$Component);

    function CustomInput(props) {
        _classCallCheck(this, CustomInput);

        var _this = _possibleConstructorReturn(this, (CustomInput.__proto__ || Object.getPrototypeOf(CustomInput)).call(this, props));

        _this.handleChange = _this.handleChange.bind(_this);
        return _this;
    }

    _createClass(CustomInput, [{
        key: "handleChange",
        value: function handleChange(event) {
            if (this.props.onChange) {
                this.props.onChange(event, this.props.validator);
            }
        }
    }, {
        key: "render",
        value: function render() {
            return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                "div",
                null,
                __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("input", {
                    id: this.props.id,
                    name: this.props.name,
                    placeholder: this.props.placeholder,
                    value: this.props.value,
                    onChange: this.handleChange,
                    onKeyUp: this.props.onKeyUp,
                    onFocus: this.props.onFocus,
                    onBlur: this.props.onBlur,
                    type: this.props.type,
                    pattern: this.props.pattern,
                    inputMode: this.props.inputMode,
                    maxLength: this.props.maxLength,
                    required: this.props.required,
                    disabled: this.props.disable,
                    autoComplete: "off",
                    className: this.props.isValid ? 'valid' : 'invalid'
                }),
                this.props.isValid === false && this.props.value !== '' && __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                    "div",
                    { className: "input-error" },
                    this.props.ruleMessage
                )
            );
        }
    }]);

    return CustomInput;
}(__WEBPACK_IMPORTED_MODULE_0_react___default.a.Component);



/***/ }),

/***/ 31:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
var validate = {
    isValidEmail: function isValidEmail(email) {
        return new RegExp('^\\w+([\\.-]?\\w+)*@\\w+([\\.-]?\\w+)*(\\.\\w{2,})+$').test(email);
    },

    isNotEmpty: function isNotEmpty(value) {
        return value ? true : false;
    },

    isValidStreetAddress: function isValidStreetAddress(value) {
        return new RegExp('^\\d+(\\s{1}\\w+)+$').test(value);
    },

    isValidNumber: function isValidNumber(num, minLength, maxLength) {
        var isValid;

        if (minLength >= 0 && maxLength >= 0) {
            isValid = new RegExp('^\\d{' + minLength + ',' + maxLength + '}$').test(num);
        } else {
            isValid = new RegExp('^\\d+$').test(num);
        }

        return isValid;
    },

    isValidApartMent: function isValidApartMent(num) {
        var isValid;
        isValid = true;
        return isValid;
    },

    isValidString: function isValidString(str, minLength, maxLength) {
        var isValid;

        if (minLength >= 0 && maxLength >= 0) {
            isValid = new RegExp('^[\\d\\w]{' + minLength + ',' + maxLength + '}$').test(str);
        } else {
            isValid = new RegExp('^[\\d\\w]+$').test(str);
        }

        return isValid;
    },

    isContaining: function isContaining(string, match) {
        return new RegExp(match).test(string);
    },

    isMatching: function isMatching(string, match) {
        return new RegExp('^' + string + '$').test(match);
    },

    isValidPin: function isValidPin(pin, ssn, minLength, maxLength) {
        var isValid;
        var reverseString = function reverseString(string) {
            var result = '';
            for (var i = string.length - 1; i >= 0; i--) {
                result += string[i];
            }
            return result;
        };
        var pin2 = reverseString(pin);

        if (minLength >= 0 && maxLength >= 0) {
            isValid = this.isValidNumber(pin, minLength, maxLength);
        } else {
            isValid = this.isValidNumber(pin, 4, 4);
        }

        /* checks if pin contains last 4 digits of ssn */
        if (ssn && isValid) {
            isValid = !this.isContaining(pin, ssn.slice(-4)) && !this.isContaining(pin2, ssn.slice(-4));
        }

        /* checks for 4 repeating numbers */
        if (isValid) {
            isValid = !new RegExp('(\\d)\\1{3,3}').test(pin);
        }

        /* checks for sequential numbers */
        if (isValid) {
            isValid = '0123456789876543210'.indexOf(pin) === -1;
        }

        return isValid;
    },

    isValidDate: function isValidDate(date, minLength, maxLength) {
        return new RegExp('^(0[1-9]|1[012])[/](0[1-9]|[12][0-9]|3[01])[/](19|20)\\d\\d$').test(date);
    }
};

/* harmony default export */ __webpack_exports__["a"] = (validate);

/***/ }),

/***/ 312:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return Main; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__stores_EventStore__ = __webpack_require__(10);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__RouteConfig__ = __webpack_require__(332);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__css_main_css__ = __webpack_require__(400);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__css_main_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3__css_main_css__);
var _createClass = function () { function 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); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();

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 _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; }






var Main = function (_React$Component) {
  _inherits(Main, _React$Component);

  /* High level component that essentially will control app wide specifications if any. */
  function Main() {
    _classCallCheck(this, Main);

    //     var queryString = window.location.search.slice(1);

    //    try{  
    //         if(queryString) {
    //             var queryStringArr = queryString.split('&');
    //                 queryStringArr.forEach(function(item) {
    //                 var itemIndex = item.indexOf('=');
    //                 sessionStorage.setItem(item.substr(0,itemIndex), item.substr(itemIndex+1));                  
    //                 })        
    //         }               
    //     }
    //     catch(error){
    //         console.log(error);
    //     }


    var _this = _possibleConstructorReturn(this, (Main.__proto__ || Object.getPrototypeOf(Main)).call(this));

    var queryString = window.location.search.slice(1);
    var paramKey = [];
    try {
      if (queryString) {
        var queryStringArr = queryString.split("&");
        queryStringArr.forEach(function (item) {
          var itemIndex = item.indexOf("=");
          paramKey.push(item.substr(0, itemIndex));
          if (paramKey.length > 0) {
            paramKey.forEach(function (item) {
              var name = item.replace(/[[\]]/g, "\\$&");
              var regex = new RegExp("[?&]" + name + "(=([^&#]*)|&|#|$)"),
                  results = regex.exec(window.location.href);
              console.log(results);
              if (!results) return null;
              if (!results[2]) return "";
              sessionStorage.setItem(item, decodeURIComponent(results[2].replace(/\+/g, " ")));
            });
          }
        });
      }
    } catch (error) {
      console.log(error);
    }
    return _this;
  }

  _createClass(Main, [{
    key: "componentDidMount",
    value: function componentDidMount() {
      __WEBPACK_IMPORTED_MODULE_1__stores_EventStore__["a" /* default */].longPollEvents();
    }
  }, {
    key: "render",
    value: function render() {
      return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_2__RouteConfig__["a" /* default */], null);
    }
  }]);

  return Main;
}(__WEBPACK_IMPORTED_MODULE_0_react___default.a.Component);



/***/ }),

/***/ 332:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return RouteConfig; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react_router__ = __webpack_require__(519);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_mobx__ = __webpack_require__(6);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__stores_EventStore__ = __webpack_require__(10);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__pages_WelcomePage__ = __webpack_require__(348);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__pages_VerifyPage__ = __webpack_require__(347);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__pages_AgreementPage__ = __webpack_require__(336);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__pages_BillingCreditPage__ = __webpack_require__(337);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__pages_PaymentPage__ = __webpack_require__(346);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__pages_CardinalPaymentPage__ = __webpack_require__(338);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__pages_MessagePage__ = __webpack_require__(343);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__pages_GenericSignaturePage__ = __webpack_require__(342);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11_react__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_11_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__pages_CreditCheckConsenttPage__ = __webpack_require__(340);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__pages_OrderReviewPage__ = __webpack_require__(344);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_14__pages_PaymentCvvPage__ = __webpack_require__(345);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_15__pages_CustomerNBSPage__ = __webpack_require__(341);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_16__pages_CoreBillingPage__ = __webpack_require__(339);
var _createClass = function () { function 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); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();

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 _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; }



















var RouteConfig = function (_React$Component) {
  _inherits(RouteConfig, _React$Component);

  function RouteConfig(props) {
    _classCallCheck(this, RouteConfig);

    var _this = _possibleConstructorReturn(this, (RouteConfig.__proto__ || Object.getPrototypeOf(RouteConfig)).call(this, props));

    _this.endReaction = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1_mobx__["a" /* reaction */])(function () {
      return __WEBPACK_IMPORTED_MODULE_2__stores_EventStore__["a" /* default */].eventObj;
    }, function () {
      var pageMap = {
        tAc: "agreements",
        creditApp: "billingcredit",
        payment: "payment",
        cardinalPayment: "cardinalPayment",
        verifyPin: "verify",
        status: "message",
        signatureCapture: "signature",
        creditCheckConsentPage: "creditCheckConsent",
        orderReview: "orderReview",
        coreCreditApp: "coreCreditApp",
        lovnbs: "customerlovnbs",
        paymentcvv: "paymentcvv"
      },
          page = "";

      if (__WEBPACK_IMPORTED_MODULE_2__stores_EventStore__["a" /* default */].eventObj.event === "pageNavigation") {
        page = pageMap[__WEBPACK_IMPORTED_MODULE_2__stores_EventStore__["a" /* default */].eventObj.payload.pageName] ? pageMap[__WEBPACK_IMPORTED_MODULE_2__stores_EventStore__["a" /* default */].eventObj.payload.pageName] : "";
        __WEBPACK_IMPORTED_MODULE_0_react_router__["a" /* hashHistory */].replace(page);
        if (__WEBPACK_IMPORTED_MODULE_2__stores_EventStore__["a" /* default */].eventObj.event === "pageNavigation" && pageMap[__WEBPACK_IMPORTED_MODULE_2__stores_EventStore__["a" /* default */].eventObj.payload.pageName] === "agreements" && __WEBPACK_IMPORTED_MODULE_2__stores_EventStore__["a" /* default */].eventObj.payload.agreementData) {
          page = pageMap[__WEBPACK_IMPORTED_MODULE_2__stores_EventStore__["a" /* default */].eventObj.payload.pageName] ? pageMap[__WEBPACK_IMPORTED_MODULE_2__stores_EventStore__["a" /* default */].eventObj.payload.pageName] : "";
          window.location.reload(page);
        }
      }
    });
    return _this;
  }

  _createClass(RouteConfig, [{
    key: "render",
    value: function render() {
      return __WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(
        "div",
        null,
        __WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(
          __WEBPACK_IMPORTED_MODULE_0_react_router__["b" /* Router */],
          { history: __WEBPACK_IMPORTED_MODULE_0_react_router__["a" /* hashHistory */] },
          __WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_0_react_router__["c" /* Route */], { path: "/", component: __WEBPACK_IMPORTED_MODULE_3__pages_WelcomePage__["a" /* default */] }),
          __WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_0_react_router__["c" /* Route */], { path: "/verify", component: __WEBPACK_IMPORTED_MODULE_4__pages_VerifyPage__["a" /* default */] }),
          __WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_0_react_router__["c" /* Route */], { path: "/agreements", component: __WEBPACK_IMPORTED_MODULE_5__pages_AgreementPage__["a" /* default */] }),
          __WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_0_react_router__["c" /* Route */], { path: "/billingcredit", component: __WEBPACK_IMPORTED_MODULE_6__pages_BillingCreditPage__["a" /* default */] }),
          __WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_0_react_router__["c" /* Route */], { path: "/payment", component: __WEBPACK_IMPORTED_MODULE_7__pages_PaymentPage__["a" /* default */] }),
          __WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_0_react_router__["c" /* Route */], { path: "/cardinalPayment", component: __WEBPACK_IMPORTED_MODULE_8__pages_CardinalPaymentPage__["a" /* default */] }),
          __WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_0_react_router__["c" /* Route */], { path: "/message", component: __WEBPACK_IMPORTED_MODULE_9__pages_MessagePage__["a" /* default */] }),
          __WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_0_react_router__["c" /* Route */], { path: "/signature", component: __WEBPACK_IMPORTED_MODULE_10__pages_GenericSignaturePage__["a" /* default */] }),
          __WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_0_react_router__["c" /* Route */], {
            path: "/creditCheckConsent",
            component: __WEBPACK_IMPORTED_MODULE_12__pages_CreditCheckConsenttPage__["a" /* default */]
          }),
          __WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_0_react_router__["c" /* Route */], { path: "/orderReview", component: __WEBPACK_IMPORTED_MODULE_13__pages_OrderReviewPage__["a" /* default */] }),
          __WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_0_react_router__["c" /* Route */], { path: "/customerlovnbs", component: __WEBPACK_IMPORTED_MODULE_15__pages_CustomerNBSPage__["a" /* default */] }),
          __WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_0_react_router__["c" /* Route */], { path: "/paymentcvv", component: __WEBPACK_IMPORTED_MODULE_14__pages_PaymentCvvPage__["a" /* default */] }),
          __WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_0_react_router__["c" /* Route */], { path: "/coreCreditApp", component: __WEBPACK_IMPORTED_MODULE_16__pages_CoreBillingPage__["a" /* default */] })
        )
      );
    }
  }, {
    key: "componentWillUnmount",
    value: function componentWillUnmount() {
      this.endReaction();
    }
  }]);

  return RouteConfig;
}(__WEBPACK_IMPORTED_MODULE_11_react___default.a.Component);



/***/ }),

/***/ 333:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react_dom__ = __webpack_require__(36);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_react_dom__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__Main__ = __webpack_require__(312);




__WEBPACK_IMPORTED_MODULE_1_react_dom___default.a.render(__WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_2__Main__["a" /* default */], null), document.getElementById('root'));

/***/ }),

/***/ 334:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return CustomDropdown; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_primereact_dropdown__ = __webpack_require__(429);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_primereact_dropdown___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_primereact_dropdown__);
var _createClass = function () { function 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); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();

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 _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; }




var CustomDropdown = function (_React$Component) {
    _inherits(CustomDropdown, _React$Component);

    function CustomDropdown(props) {
        _classCallCheck(this, CustomDropdown);

        var _this = _possibleConstructorReturn(this, (CustomDropdown.__proto__ || Object.getPrototypeOf(CustomDropdown)).call(this, props));

        _this.handleChange = _this.handleChange.bind(_this);
        return _this;
    }

    _createClass(CustomDropdown, [{
        key: 'handleChange',
        value: function handleChange(event) {
            if (this.props.onChange) {
                this.props.onChange(event, this.props.validator);
            }
        }
    }, {
        key: 'render',
        value: function render() {
            var class1 = '';
            if (this.props.isValid) {
                class1 = this.props.className + ' valid';
            } else {
                class1 = this.props.className + ' invalid';
            }
            return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                'div',
                null,
                __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_1_primereact_dropdown__["Dropdown"], {
                    id: this.props.id,
                    placeholder: this.props.placeholder,
                    value: this.props.value,
                    panelClassName: this.props.panelClassName,
                    options: this.props.options,
                    onChange: this.handleChange,
                    required: this.props.required,
                    disabled: this.props.disabled,
                    style: this.props.style,
                    editable: this.props.editable,
                    className: this.props.className
                }),
                this.props.isValid === false && this.props.value !== '' && __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                    'div',
                    { className: 'input-error' },
                    this.props.ruleMessage
                )
            );
        }
    }]);

    return CustomDropdown;
}(__WEBPACK_IMPORTED_MODULE_0_react___default.a.Component);



/***/ }),

/***/ 335:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return PdfView; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__css_viewer_css__ = __webpack_require__(138);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__css_viewer_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1__css_viewer_css__);
var _createClass = function () { function 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); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();

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 _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; }




var PdfView = function (_React$Component) {
    _inherits(PdfView, _React$Component);

    function PdfView() {
        _classCallCheck(this, PdfView);

        var _this = _possibleConstructorReturn(this, (PdfView.__proto__ || Object.getPrototypeOf(PdfView)).call(this));

        _this.canvasArr = [];
        _this.container = '';
        _this.pdfDoc = '';
        _this.pdfscale = 100;
        _this.renderPages = _this.renderPages.bind(_this);
        _this.updatePdf = _this.updatePdf.bind(_this);
        _this.updateScale = _this.updateScale.bind(_this);
        _this.closePdf = _this.closePdf.bind(_this);
        return _this;
    }

    _createClass(PdfView, [{
        key: 'renderPDF',
        value: function renderPDF(data) {
            this.container = document.getElementById(this.props.containerID);
            PDFJS.workerSrc = './lib/pdfjs/pdf.worker.min.js';
            PDFJS.getDocument(data).then(function (pdfDoc) {
                this.pdfDoc = pdfDoc;
                this.renderPages();
            }.bind(this));
        }
    }, {
        key: 'renderPages',
        value: function renderPages() {
            for (var pageNum = 1; pageNum <= this.pdfDoc.numPages; pageNum++) {
                this.pdfDoc.getPage(pageNum).then(function (page) {
                    //this.pdfscale = 3;//(this.container.clientWidth / page.getViewport(1).width);
                    var viewport = page.getViewport(3);
                    var canvas = document.createElement('canvas');
                    var ctx = canvas.getContext('2d');
                    var renderContext = {
                        canvasContext: ctx,
                        viewport: viewport
                    };

                    canvas.height = Math.floor(viewport.height);
                    canvas.width = Math.floor(viewport.width);
                    canvas.style.width = '100%';
                    this.canvasArr.push(canvas);
                    this.container.appendChild(canvas);

                    page.render(renderContext);
                }.bind(this));
            }
        }
    }, {
        key: 'updateScale',
        value: function updateScale(increment) {
            if (this.pdfscale + increment > 0) {
                this.pdfscale += increment;
                this.updatePdf();
            }
        }
    }, {
        key: 'updatePdf',
        value: function updatePdf() {
            this.canvasArr.forEach(function (canvas) {
                canvas.style.width = this.pdfscale + '%';
            }.bind(this));
            /*for (var pageNum = 1; pageNum <= this.pdfDoc.numPages; pageNum++) {
                this.pdfDoc.getPage(pageNum)
                    .then(function(page) {
                        var viewport = page.getViewport(this.pdfscale);
                        var canvas = this.canvasArr[page.pageIndex];
                        var ctx = canvas.getContext('2d');
                        var renderContext = {
                            canvasContext: ctx,
                            viewport: viewport
                        };
                         canvas.height = viewport.height;
                        canvas.width = viewport.width-5;
                         page.render(renderContext);
                    }.bind(this))
            }*/
        }
    }, {
        key: 'closePdf',
        value: function closePdf() {
            if (this.props.closePdf) {
                this.props.closePdf();
            }
        }
    }, {
        key: 'render',
        value: function render() {
            var _this2 = this;

            return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                'div',
                { className: 'viewer-overlay' },
                __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                    'div',
                    { className: 'viewer-toolbar' },
                    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement('i', { className: 'fa fa-search-plus fa-lg', onClick: function onClick() {
                            return _this2.updateScale(25);
                        } }),
                    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement('i', { className: 'fa fa-search-minus fa-lg', onClick: function onClick() {
                            return _this2.updateScale(-25);
                        } }),
                    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                        'div',
                        { className: 'abs-right inline-block' },
                        __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement('i', { className: 'fa fa-window-close fa-lg', onClick: this.closePdf })
                    )
                ),
                __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement('div', { id: this.props.containerID, className: 'viewer-container' })
            );
        }
    }, {
        key: 'componentDidMount',
        value: function componentDidMount() {
            this.renderPDF({ data: atob(this.props.pdfData) });
        }
    }]);

    return PdfView;
}(__WEBPACK_IMPORTED_MODULE_0_react___default.a.Component);



/***/ }),

/***/ 336:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return AgreementPage; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__stores_EventStore__ = __webpack_require__(10);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_mobx_react__ = __webpack_require__(16);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_mobx__ = __webpack_require__(6);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__components_PdfView__ = __webpack_require__(335);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__components_TextViewer__ = __webpack_require__(72);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__components_PageHeader__ = __webpack_require__(15);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__components_PageFooter__ = __webpack_require__(14);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__components_SignatureCapture__ = __webpack_require__(71);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__stores_AgreementStore__ = __webpack_require__(349);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__stores_SignatureStore__ = __webpack_require__(117);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__components_CustomInput__ = __webpack_require__(23);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__utils_utils__ = __webpack_require__(4);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__utils_langTranslator__ = __webpack_require__(18);
var _createClass = function () { function 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); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();

var _class, _desc, _value, _class2, _descriptor;

function _initDefineProp(target, property, descriptor, context) {
    if (!descriptor) return;
    Object.defineProperty(target, property, {
        enumerable: descriptor.enumerable,
        configurable: descriptor.configurable,
        writable: descriptor.writable,
        value: descriptor.initializer ? descriptor.initializer.call(context) : void 0
    });
}

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 _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 _applyDecoratedDescriptor(target, property, decorators, descriptor, context) {
    var desc = {};
    Object['ke' + 'ys'](descriptor).forEach(function (key) {
        desc[key] = descriptor[key];
    });
    desc.enumerable = !!desc.enumerable;
    desc.configurable = !!desc.configurable;

    if ('value' in desc || desc.initializer) {
        desc.writable = true;
    }

    desc = decorators.slice().reverse().reduce(function (desc, decorator) {
        return decorator(target, property, desc) || desc;
    }, desc);

    if (context && desc.initializer !== void 0) {
        desc.value = desc.initializer ? desc.initializer.call(context) : void 0;
        desc.initializer = undefined;
    }

    if (desc.initializer === void 0) {
        Object['define' + 'Property'](target, property, desc);
        desc = null;
    }

    return desc;
}

function _initializerWarningHelper(descriptor, context) {
    throw new Error('Decorating class property failed. Please ensure that transform-class-properties is enabled.');
}
















var AgreementPage = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_2_mobx_react__["a" /* observer */])(_class = (_class2 = function (_React$Component) {
    _inherits(AgreementPage, _React$Component);

    function AgreementPage() {
        _classCallCheck(this, AgreementPage);

        var _this = _possibleConstructorReturn(this, (AgreementPage.__proto__ || Object.getPrototypeOf(AgreementPage)).call(this));

        _initDefineProp(_this, 'pageState', _descriptor, _this);

        _this.handleChange = function (event) {
            _this.setState({ tncAccepts: event.target.checked });
        };

        _this.showTnC = false;
        _this.hideSpanish = true;
        _this.state = {
            signatureSubmitted: false,
            tncAccepted: false,
            tncAccepts: false
        };
        _this.handleToggle = _this.handleToggle.bind(_this);
        _this.signatureSubmitted = _this.signatureSubmitted.bind(_this);
        _this.handleLanguageChange = _this.handleLanguageChange.bind(_this);
        _this.showTnC = true;

        if (__WEBPACK_IMPORTED_MODULE_1__stores_EventStore__["a" /* default */].eventObj.payload.agreementData) {
            sessionStorage.setItem('r', __WEBPACK_IMPORTED_MODULE_1__stores_EventStore__["a" /* default */].eventObj.payload.agreementData);
        }
        __WEBPACK_IMPORTED_MODULE_9__stores_AgreementStore__["a" /* default */].fetchIPAddress();
        __WEBPACK_IMPORTED_MODULE_9__stores_AgreementStore__["a" /* default */].fetchContracts(sessionStorage.getItem('r'));

        return _this;
    }

    _createClass(AgreementPage, [{
        key: 'handleToggle',
        value: function handleToggle(toggleItem) {
            var stateObj = {};
            stateObj[toggleItem] = !this.state[toggleItem];
            this.setState(stateObj);
        }
    }, {
        key: 'handleLanguageChange',
        value: function handleLanguageChange(event) {
            event.stopPropagation();
            if (event.target.id === "English") {
                this.setState({ currentLanguage: 0 });
            } else if (event.target.id === "Spanish") {
                this.setState({ currentLanguage: 1 });
            }
        }
    }, {
        key: 'signatureSubmitted',
        value: function signatureSubmitted(sig) {
            __WEBPACK_IMPORTED_MODULE_10__stores_SignatureStore__["a" /* default */].submitSignature(sig.slice(22)).then(function () {
                this.signatureMessage = __WEBPACK_IMPORTED_MODULE_13__utils_langTranslator__["a" /* default */][this.state.currentLanguage].signatureProcessed;
                this.setState({ signatureSubmitted: true });
            }.bind(this)).catch(function (error) {
                this.signatureMessage = error.message || __WEBPACK_IMPORTED_MODULE_13__utils_langTranslator__["a" /* default */][this.state.currentLanguage].errorOccured;
                this.setState({ signatureSubmitted: true });
            }.bind(this));
        }
    }, {
        key: 'render',
        value: function render() {
            var mainContent;
            var agreementContent;
            var agreementsCtx = [];
            if (!__WEBPACK_IMPORTED_MODULE_10__stores_SignatureStore__["a" /* default */].ipAddressSentStatus) {
                if (!__WEBPACK_IMPORTED_MODULE_9__stores_AgreementStore__["a" /* default */].loading && !__WEBPACK_IMPORTED_MODULE_9__stores_AgreementStore__["a" /* default */].error && __WEBPACK_IMPORTED_MODULE_9__stores_AgreementStore__["a" /* default */].ipAddress) {
                    console.log("IPaddress" + __WEBPACK_IMPORTED_MODULE_9__stores_AgreementStore__["a" /* default */].ipAddress);
                    __WEBPACK_IMPORTED_MODULE_10__stores_SignatureStore__["a" /* default */].sendFormField({
                        field: "ipAddress",
                        value: __WEBPACK_IMPORTED_MODULE_9__stores_AgreementStore__["a" /* default */].ipAddress
                    });
                }
            }

            if (__WEBPACK_IMPORTED_MODULE_1__stores_EventStore__["a" /* default */].error) {
                agreementContent = __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                    'div',
                    { className: 'center' },
                    __WEBPACK_IMPORTED_MODULE_1__stores_EventStore__["a" /* default */].error
                );
            } else {
                if (!__WEBPACK_IMPORTED_MODULE_9__stores_AgreementStore__["a" /* default */].loading && !__WEBPACK_IMPORTED_MODULE_9__stores_AgreementStore__["a" /* default */].error) {
                    if (Array.isArray(__WEBPACK_IMPORTED_MODULE_9__stores_AgreementStore__["a" /* default */].contracts && __WEBPACK_IMPORTED_MODULE_9__stores_AgreementStore__["a" /* default */].contracts.slice())) {
                        __WEBPACK_IMPORTED_MODULE_9__stores_AgreementStore__["a" /* default */].contracts.forEach(function (agreementObj) {
                            agreementsCtx.push(__WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(Agreement, { key: agreementObj.element, agreementObj: agreementObj, closeViewer: this.handleToggle, displayCtx: this.state[agreementObj.element], index: this.state.currentLanguage }));
                        }.bind(this));
                    }
                    if (this.showTnC == true) {
                        mainContent = __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                            'div',
                            null,
                            this.hideSpanish && __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                'div',
                                { className: 'margin-bot-10 lang-display' },
                                __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement('input', { id: 'English', name: 'langType', type: 'radio', defaultChecked: true, value: 'English', onChange: this.handleLanguageChange }),
                                __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                    'label',
                                    { htmlFor: 'English' },
                                    'English'
                                ),
                                __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement('input', { id: 'Spanish', name: 'langType', type: 'radio', value: 'Spanish', onChange: this.handleLanguageChange }),
                                __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                    'label',
                                    { htmlFor: 'Spanish' },
                                    'Spanish'
                                )
                            ),
                            agreementsCtx,
                            this.state.signatureSubmitted ? __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                'h2',
                                { className: 'margin-top-50 center' },
                                this.signatureMessage
                            ) : __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                'div',
                                null,
                                __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                    'form',
                                    { autoComplete: 'off' },
                                    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                        'div',
                                        { className: 'inline-block margin-h-15 margin-bot-15 col1' },
                                        __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_11__components_CustomInput__["a" /* default */], { id: 'tncAccept',
                                            checked: this.pageState.tncAccept,
                                            onChange: this.handleChange,
                                            type: 'checkbox',
                                            required: 'required',
                                            autoComplete: 'off'
                                        })
                                    ),
                                    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                        'div',
                                        { className: 'inline-block margin-bot-15 margin-top-15 col2' },
                                        __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                            'span',
                                            null,
                                            '\xA0',
                                            __WEBPACK_IMPORTED_MODULE_13__utils_langTranslator__["a" /* default */][this.state.currentLanguage].readAndAgree
                                        )
                                    )
                                ),
                                __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_8__components_SignatureCapture__["a" /* default */], { sigID: 'signature', submitSig: this.signatureSubmitted, tncAccepts: this.state.tncAccepts })
                            )
                        );
                    } else {
                        mainContent = __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                            'div',
                            null,
                            this.hideSpanish && __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                'div',
                                { className: 'margin-bot-10 lang-display' },
                                __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement('input', { id: 'English', name: 'langType', type: 'radio', defaultChecked: true, value: 'English', onChange: this.handleLanguageChange }),
                                __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                    'label',
                                    { htmlFor: 'English' },
                                    'English'
                                ),
                                __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement('input', { id: 'Spanish', name: 'langType', type: 'radio', value: 'Spanish', onChange: this.handleLanguageChange }),
                                __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                    'label',
                                    { htmlFor: 'Spanish' },
                                    'Spanish'
                                )
                            ),
                            agreementsCtx,
                            this.state.signatureSubmitted ? __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                'h2',
                                { className: 'margin-top-50 center' },
                                this.signatureMessage
                            ) : __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_8__components_SignatureCapture__["a" /* default */], { sigID: 'signature', submitSig: this.signatureSubmitted, tncAccepts: this.state.tncAccepts })
                        );
                    }
                } else if (__WEBPACK_IMPORTED_MODULE_9__stores_AgreementStore__["a" /* default */].loading === true) {
                    mainContent = __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                        'div',
                        { className: 'center' },
                        __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement('i', { className: 'fa fa-circle-o-notch fa-spin fa-3x fa-fw' }),
                        __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                            'span',
                            { className: 'sr-only' },
                            __WEBPACK_IMPORTED_MODULE_13__utils_langTranslator__["a" /* default */][this.state.currentLanguage].loading
                        )
                    );
                } else {
                    mainContent = __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                        'div',
                        { className: 'center' },
                        __WEBPACK_IMPORTED_MODULE_9__stores_AgreementStore__["a" /* default */].error
                    );
                }
            }

            return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                'div',
                null,
                __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_6__components_PageHeader__["a" /* default */], { title: __WEBPACK_IMPORTED_MODULE_13__utils_langTranslator__["a" /* default */][this.state.currentLanguage].agreements }),
                agreementContent,
                mainContent,
                __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_7__components_PageFooter__["a" /* default */], null)
            );
        }
    }, {
        key: 'componentWillMount',
        value: function componentWillMount() {
            this.state = {
                currentLanguage: 0
            };
            if (sessionStorage.getItem('z') == 'y') {
                this.hideSpanish = false;
                this.setState({ currentLanguage: 1 });
            }
        }
    }]);

    return AgreementPage;
}(__WEBPACK_IMPORTED_MODULE_0_react___default.a.Component), (_descriptor = _applyDecoratedDescriptor(_class2.prototype, 'pageState', [__WEBPACK_IMPORTED_MODULE_3_mobx__["b" /* observable */]], {
    enumerable: true,
    initializer: function initializer() {
        return {
            tncAccept: {
                value: 'false',
                valid: false,
                changed: false
            },
            langType: {
                value: '',
                changed: false
            }
        };
    }
})), _class2)) || _class;




function Agreement(props) {
    var context = __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement('div', null);

    if (props.agreementObj.type === 'html') {
        if (sessionStorage.getItem('z') == 'y' || props.index) {
            context = __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                'div',
                { className: 'margin-bot-10' },
                __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                    'div',
                    { className: 'margin-bot-10' },
                    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                        'div',
                        { className: 'inline-block mob-center' },
                        __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                            'h3',
                            { className: '' },
                            props.agreementObj.spanishTitle
                        )
                    ),
                    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                        'div',
                        { className: 'inline-block mob-center' },
                        __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                            'button',
                            { className: 'button margin-h-15', onClick: function onClick() {
                                    props.closeViewer(props.agreementObj.element);
                                } },
                            __WEBPACK_IMPORTED_MODULE_13__utils_langTranslator__["a" /* default */][props.index].viewFull,
                            ' '
                        )
                    )
                ),
                props.displayCtx ? __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_5__components_TextViewer__["a" /* default */], { containerID: props.agreementObj.element, textBody: props.agreementObj.spanishBody, closeViewer: function closeViewer() {
                        props.closeViewer(props.agreementObj.element);
                    } }) : '',
                __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement('div', { dangerouslySetInnerHTML: { __html: props.agreementObj.disclaimer } })
            );
        } else {
            context = __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                'div',
                { className: 'margin-bot-10' },
                __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                    'div',
                    { className: 'margin-bot-10' },
                    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                        'div',
                        { className: 'inline-block mob-center' },
                        __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                            'h3',
                            { className: '' },
                            props.agreementObj.title
                        )
                    ),
                    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                        'div',
                        { className: 'inline-block mob-center' },
                        __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                            'button',
                            { className: 'button margin-h-15', onClick: function onClick() {
                                    props.closeViewer(props.agreementObj.element);
                                } },
                            __WEBPACK_IMPORTED_MODULE_13__utils_langTranslator__["a" /* default */][props.index].viewFull,
                            ' '
                        )
                    )
                ),
                props.displayCtx ? __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_5__components_TextViewer__["a" /* default */], { containerID: props.agreementObj.element, textBody: props.agreementObj.body, closeViewer: function closeViewer() {
                        props.closeViewer(props.agreementObj.element);
                    } }) : '',
                __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement('div', { dangerouslySetInnerHTML: { __html: props.agreementObj.disclaimer } })
            );
        }
    } else if (props.agreementObj.type === 'pdf') {
        context = __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
            'div',
            { className: 'margin-bot-10' },
            __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                'div',
                { className: 'margin-bot-10' },
                __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                    'div',
                    { className: 'inline-block mob-center' },
                    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                        'h3',
                        { className: '' },
                        props.agreementObj.title
                    )
                ),
                __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                    'div',
                    { className: 'inline-block mob-center' },
                    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                        'button',
                        { className: 'button margin-h-15', onClick: function onClick() {
                                props.closeViewer(props.agreementObj.element);
                            } },
                        __WEBPACK_IMPORTED_MODULE_13__utils_langTranslator__["a" /* default */][props.index].viewFull
                    )
                )
            ),
            props.displayCtx ? __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_4__components_PdfView__["a" /* default */], { containerID: props.agreementObj.element, pdfData: props.agreementObj.body, closePdf: function closePdf() {
                    props.closeViewer(props.agreementObj.element);
                } }) : '',
            __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement('div', { dangerouslySetInnerHTML: { __html: props.agreementObj.disclaimer } })
        );
    }

    return context;
}

/***/ }),

/***/ 337:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return BillingCreditPage; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react_dialog__ = __webpack_require__(437);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react_dialog___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_react_dialog__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__stores_EventStore__ = __webpack_require__(10);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_mobx_react__ = __webpack_require__(16);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_mobx__ = __webpack_require__(6);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__components_PageHeader__ = __webpack_require__(15);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__components_PageFooter__ = __webpack_require__(14);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__components_CustomInput__ = __webpack_require__(23);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__components_CustomDropdown__ = __webpack_require__(334);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__stores_BillingCreditStore__ = __webpack_require__(350);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__utils_utils__ = __webpack_require__(4);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__utils_validate__ = __webpack_require__(31);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__utils_langTranslator__ = __webpack_require__(18);
var _createClass = function () { function 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); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();

var _class, _desc, _value, _class2, _descriptor, _descriptor2;

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

function _initDefineProp(target, property, descriptor, context) {
    if (!descriptor) return;
    Object.defineProperty(target, property, {
        enumerable: descriptor.enumerable,
        configurable: descriptor.configurable,
        writable: descriptor.writable,
        value: descriptor.initializer ? descriptor.initializer.call(context) : void 0
    });
}

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 _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 _applyDecoratedDescriptor(target, property, decorators, descriptor, context) {
    var desc = {};
    Object['ke' + 'ys'](descriptor).forEach(function (key) {
        desc[key] = descriptor[key];
    });
    desc.enumerable = !!desc.enumerable;
    desc.configurable = !!desc.configurable;

    if ('value' in desc || desc.initializer) {
        desc.writable = true;
    }

    desc = decorators.slice().reverse().reduce(function (desc, decorator) {
        return decorator(target, property, desc) || desc;
    }, desc);

    if (context && desc.initializer !== void 0) {
        desc.value = desc.initializer ? desc.initializer.call(context) : void 0;
        desc.initializer = undefined;
    }

    if (desc.initializer === void 0) {
        Object['define' + 'Property'](target, property, desc);
        desc = null;
    }

    return desc;
}

function _initializerWarningHelper(descriptor, context) {
    throw new Error('Decorating class property failed. Please ensure that transform-class-properties is enabled.');
}















var BillingCreditPage = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3_mobx_react__["a" /* observer */])(_class = (_class2 = function (_React$Component) {
    _inherits(BillingCreditPage, _React$Component);

    function BillingCreditPage(props) {
        _classCallCheck(this, BillingCreditPage);

        var _this = _possibleConstructorReturn(this, (BillingCreditPage.__proto__ || Object.getPrototypeOf(BillingCreditPage)).call(this, props));

        _initDefineProp(_this, 'ipAddressSentStatus', _descriptor, _this);

        _initDefineProp(_this, 'pageState', _descriptor2, _this);

        _this.endReaction = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_4_mobx__["a" /* reaction */])(function () {
            return __WEBPACK_IMPORTED_MODULE_2__stores_EventStore__["a" /* default */].eventObj;
        }, function () {
            if (__WEBPACK_IMPORTED_MODULE_2__stores_EventStore__["a" /* default */].eventObj.event === 'creditAppData') {
                _this.pageState[__WEBPACK_IMPORTED_MODULE_2__stores_EventStore__["a" /* default */].eventObj.payload.field].value = __WEBPACK_IMPORTED_MODULE_2__stores_EventStore__["a" /* default */].eventObj.payload.value;
            }
        });

        _this.changeToPassword = function (event) {
            if (event.target.id === "confirmSSN") {
                var maskedConifrmSSNValue = event.target.value.replace(/\d/g, '*');
                _this.setState({ isMaskedConfirmSSN: maskedConifrmSSNValue, isconfirmSSNMasked: true });
            } else if (event.target.id === "SSN") {
                var maskedSSNValue = event.target.value.replace(/\d/g, '*');
                _this.setState({ isMaskedSSN: maskedSSNValue, isSSNMasked: true });
            }
        };

        _this.changeToPasswordPin = function (event) {
            if (event.target.id === "pin") {
                var cardPinElement = document.getElementById("pin");
                cardPinElement.setAttribute("type", "password");
            } else if (event.target.id === "pinConf") {
                var cardConfPinElement = document.getElementById("pinConf");
                cardConfPinElement.setAttribute("type", "password");
            }
        };

        _this.handleClose = function () {
            if (__WEBPACK_IMPORTED_MODULE_9__stores_BillingCreditStore__["a" /* default */].isDialogOpen) {
                __WEBPACK_IMPORTED_MODULE_9__stores_BillingCreditStore__["a" /* default */].isDialogOpen = false;
            } else if (__WEBPACK_IMPORTED_MODULE_9__stores_BillingCreditStore__["a" /* default */].errorMessage) {
                __WEBPACK_IMPORTED_MODULE_9__stores_BillingCreditStore__["a" /* default */].errorMessage = false;
            }
        };

        _this.handleSubmitButton = function () {
            _this.setState({ hidePin: true });
        };

        _this.state = {
            currentLanguage: 0,
            disabled: true,
            selectedOption: '',
            cities: []
        };
        _this.showAddress = true;
        _this.showDOBSSN = true;
        _this.showTnC = false;
        _this.hideSpanish = true;
        if (__WEBPACK_IMPORTED_MODULE_2__stores_EventStore__["a" /* default */].eventObj.payload.showAddress === 'false') {
            _this.showAddress = false;
        }

        if (sessionStorage.getItem('w') == 'y') {
            _this.showDOBSSN = false;
        }
        if (sessionStorage.getItem('n') == 'y') {
            _this.showAddress = false;
        }
        if (sessionStorage.getItem('e') == 'y') {
            _this.showTnC = true;
            _this.submitCredit = _this.submitCredit.bind(_this);
        }
        __WEBPACK_IMPORTED_MODULE_9__stores_BillingCreditStore__["a" /* default */].fetchIPAddress();
        if (__WEBPACK_IMPORTED_MODULE_2__stores_EventStore__["a" /* default */].eventObj.payload.showTnC === 'false') {
            _this.showTnC = false;
        }
        if (__WEBPACK_IMPORTED_MODULE_2__stores_EventStore__["a" /* default */].eventObj.payload.showDOBSSN === 'false') {
            _this.showDOBSSN = false;
        }

        _this.handleChange = _this.handleChange.bind(_this);
        _this.blurEventHandler = _this.blurEventHandler.bind(_this);
        _this.handleLanguageChange = _this.handleLanguageChange.bind(_this);

        return _this;
    }

    _createClass(BillingCreditPage, [{
        key: 'handleChangekey',
        value: function handleChangekey(event) {
            var key = event.keyCode || event.charCode;
            if (event.target.id === 'dateOfBirth' && key != 8 && key != undefined) {
                var value = event.target.value;
                if (value.length === 2 || value.length === 5) {
                    event.target.value += '/';
                }
            }
        }
    }, {
        key: 'handleChange',
        value: function handleChange(event, validator) {
            if (event.target.id === "confirmSSN" || event.target.id === "SSN") {
                this.setState(_defineProperty({}, 'is' + event.target.id + 'Masked', false));
            }
            this.pageState[event.target.id].value = event.target.type === 'checkbox' ? event.target.checked : event.target.value;
            if (event.target.type === 'checkbox' && event.target.checked) {
                this.pageState[event.target.id].valid = true;
            } else {
                this.pageState[event.target.id].valid = false;
            }
            if (typeof validator === 'function') {
                this.pageState[event.target.id].valid = validator();
            }
            if (event.target.id === 'cityy') {
                __WEBPACK_IMPORTED_MODULE_9__stores_BillingCreditStore__["a" /* default */].sendFormField({
                    field: "cityState",
                    value: event.target.value
                });
            }
            this.pageState[event.target.id].changed = true;
            if (event.target.type === 'checkbox' && this.pageState[event.target.id].valid === true && this.pageState[event.target.id].changed === true) {
                if (typeof this.pageState[event.target.id].customSend === 'function') {
                    this.pageState[event.target.id].customSend(this.pageState[event.target.id].formatValue ? this.pageState[event.target.id].formatValue(event.target.type === 'checkbox' ? event.target.checked : event.target.value) : event.target.type === 'checkbox' ? event.target.checked : event.target.value);
                } else {
                    __WEBPACK_IMPORTED_MODULE_9__stores_BillingCreditStore__["a" /* default */].sendFormField({
                        field: event.target.id,
                        value: this.pageState[event.target.id].formatValue ? this.pageState[event.target.id].formatValue(event.target.type === 'checkbox' ? event.target.checked : event.target.value) : event.target.type === 'checkbox' ? event.target.checked : event.target.value
                    });
                }
                this.pageState[event.target.id].changed = false;
            }
        }
    }, {
        key: 'handleLanguageChange',
        value: function handleLanguageChange(event) {
            event.stopPropagation();
            if (event.target.id === "English") {
                this.setState({ currentLanguage: 0 });
            } else if (event.target.id === "Spanish") {
                this.setState({ currentLanguage: 1 });
            }
        }
    }, {
        key: 'blurEventHandler',
        value: function blurEventHandler(event) {
            if (event.target.id === 'idZip' || event.target.id === 'address1') {
                if (this.pageState['idZip'].valid && this.pageState['address1'].valid) {
                    var selectZipCode = this.pageState['idZip'].value;
                    var streetAddress = this.pageState['address1'].value;
                    __WEBPACK_IMPORTED_MODULE_9__stores_BillingCreditStore__["a" /* default */].fetchCities(selectZipCode, streetAddress);
                }
                if (!this.pageState['idZip'].valid || !this.pageState['address1'].valid) {
                    __WEBPACK_IMPORTED_MODULE_9__stores_BillingCreditStore__["a" /* default */].cities = [];
                }
            }
            if (event.target.type !== 'checkbox' && this.pageState[event.target.id].valid === true && this.pageState[event.target.id].changed === true) {
                if (typeof this.pageState[event.target.id].customSend === 'function') {
                    this.pageState[event.target.id].customSend(this.pageState[event.target.id].formatValue ? this.pageState[event.target.id].formatValue(event.target.type === 'checkbox' ? event.target.checked : event.target.value) : event.target.type === 'checkbox' ? event.target.checked : event.target.value);
                } else {
                    __WEBPACK_IMPORTED_MODULE_9__stores_BillingCreditStore__["a" /* default */].sendFormField({
                        field: event.target.id,
                        value: this.pageState[event.target.id].formatValue ? this.pageState[event.target.id].formatValue(event.target.type === 'checkbox' ? event.target.checked : event.target.value) : event.target.type === 'checkbox' ? event.target.checked : event.target.value
                    });
                }
                this.pageState[event.target.id].changed = false;
            }
        }
    }, {
        key: 'submitCredit',
        value: function submitCredit(event) {
            __WEBPACK_IMPORTED_MODULE_9__stores_BillingCreditStore__["a" /* default */].sendFormField({
                field: "runCredit",
                value: "true"
            });
        }
    }, {
        key: 'render',
        value: function render() {
            var _this2 = this;

            var options = [];
            var billingCreditContent = void 0;
            __WEBPACK_IMPORTED_MODULE_9__stores_BillingCreditStore__["a" /* default */].cities.forEach(function (city) {
                options.push({
                    label: city,
                    value: city
                });
            });

            var defaultCity = "";
            if (options.length == 1) {
                defaultCity = options[0].value;
            }
            var cityValue = defaultCity || this.pageState.cityy.value;
            var cityFieldDisabled = true;
            if (__WEBPACK_IMPORTED_MODULE_9__stores_BillingCreditStore__["a" /* default */].cities.length > 0) {
                cityFieldDisabled = false;
            }

            if (!this.ipAddressSentStatus) {
                if (!__WEBPACK_IMPORTED_MODULE_9__stores_BillingCreditStore__["a" /* default */].loading && !__WEBPACK_IMPORTED_MODULE_9__stores_BillingCreditStore__["a" /* default */].error && __WEBPACK_IMPORTED_MODULE_9__stores_BillingCreditStore__["a" /* default */].ipAddress) {
                    console.log("IPaddress" + __WEBPACK_IMPORTED_MODULE_9__stores_BillingCreditStore__["a" /* default */].ipAddress);
                    __WEBPACK_IMPORTED_MODULE_9__stores_BillingCreditStore__["a" /* default */].sendFormField({
                        field: "ipAddress",
                        value: __WEBPACK_IMPORTED_MODULE_9__stores_BillingCreditStore__["a" /* default */].ipAddress
                    });
                    this.ipAddressSentStatus = true;
                }
            }

            if (__WEBPACK_IMPORTED_MODULE_2__stores_EventStore__["a" /* default */].error) {
                billingCreditContent = __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                    'div',
                    { className: 'center' },
                    __WEBPACK_IMPORTED_MODULE_2__stores_EventStore__["a" /* default */].error
                );
            } else {
                billingCreditContent = __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                    'div',
                    null,
                    this.hideSpanish && __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                        'div',
                        null,
                        __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement('input', { id: 'English', name: 'langType', type: 'radio', defaultChecked: true, value: 'English', onChange: this.handleLanguageChange }),
                        __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                            'label',
                            { htmlFor: 'English' },
                            'English'
                        ),
                        __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement('input', { id: 'Spanish', name: 'langType', type: 'radio', value: 'Spanish', onChange: this.handleLanguageChange }),
                        __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                            'label',
                            { htmlFor: 'Spanish' },
                            'Spanish'
                        )
                    ),
                    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                        'form',
                        { autoComplete: 'off' },
                        this.showAddress === true && __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                            'div',
                            { className: 'margin-bot-10' },
                            __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                'div',
                                { className: 'mob-center' },
                                __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                    'h3',
                                    null,
                                    __WEBPACK_IMPORTED_MODULE_12__utils_langTranslator__["a" /* default */][this.state.currentLanguage].billingInfo
                                )
                            ),
                            __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                'div',
                                { className: 'padding-left-10' },
                                __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                    'div',
                                    { className: 'inline-block margin-bot-15 col', onBlur: this.blurEventHandler },
                                    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                        'label',
                                        { htmlFor: 'firstName' },
                                        __WEBPACK_IMPORTED_MODULE_12__utils_langTranslator__["a" /* default */][this.state.currentLanguage].firstName,
                                        __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                            'abbr',
                                            { title: 'required' },
                                            '*'
                                        )
                                    ),
                                    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_7__components_CustomInput__["a" /* default */], { id: 'firstName',
                                        value: this.pageState.firstName.value,
                                        onChange: this.handleChange,
                                        type: 'text',
                                        placeholder: __WEBPACK_IMPORTED_MODULE_12__utils_langTranslator__["a" /* default */][this.state.currentLanguage].firstName,
                                        isValid: this.pageState.firstName.valid,
                                        validator: function validator() {
                                            return __WEBPACK_IMPORTED_MODULE_11__utils_validate__["a" /* default */].isNotEmpty(_this2.pageState.firstName.value);
                                        },
                                        required: 'required'
                                    })
                                ),
                                __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                    'div',
                                    { className: 'inline-block margin-bot-15 col', onBlur: this.blurEventHandler },
                                    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                        'label',
                                        { htmlFor: 'middleInitial' },
                                        __WEBPACK_IMPORTED_MODULE_12__utils_langTranslator__["a" /* default */][this.state.currentLanguage].middleInitial
                                    ),
                                    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_7__components_CustomInput__["a" /* default */], { id: 'middleInitial',
                                        value: this.pageState.middleInitial.value,
                                        onChange: this.handleChange,
                                        type: 'text',
                                        placeholder: __WEBPACK_IMPORTED_MODULE_12__utils_langTranslator__["a" /* default */][this.state.currentLanguage].middleInitial,
                                        maxLength: '1',
                                        isValid: this.pageState.middleInitial.valid
                                    })
                                ),
                                __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                    'div',
                                    { className: 'inline-block margin-bot-15 col', onBlur: this.blurEventHandler },
                                    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                        'label',
                                        { htmlFor: 'lastName' },
                                        __WEBPACK_IMPORTED_MODULE_12__utils_langTranslator__["a" /* default */][this.state.currentLanguage].lastName,
                                        __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                            'abbr',
                                            { title: 'required' },
                                            '*'
                                        )
                                    ),
                                    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_7__components_CustomInput__["a" /* default */], { id: 'lastName',
                                        value: this.pageState.lastName.value,
                                        onChange: this.handleChange,
                                        type: 'text',
                                        placeholder: __WEBPACK_IMPORTED_MODULE_12__utils_langTranslator__["a" /* default */][this.state.currentLanguage].lastName,
                                        isValid: this.pageState.lastName.valid,
                                        validator: function validator() {
                                            return __WEBPACK_IMPORTED_MODULE_11__utils_validate__["a" /* default */].isNotEmpty(_this2.pageState.lastName.value);
                                        },
                                        required: 'required'
                                    })
                                ),
                                __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                    'div',
                                    { className: 'inline-block margin-bot-15 col', onBlur: this.blurEventHandler },
                                    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                        'label',
                                        { htmlFor: 'suffix' },
                                        __WEBPACK_IMPORTED_MODULE_12__utils_langTranslator__["a" /* default */][this.state.currentLanguage].suffix
                                    ),
                                    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_7__components_CustomInput__["a" /* default */], { id: 'suffix',
                                        value: this.pageState.suffix.value,
                                        onChange: this.handleChange,
                                        type: 'text',
                                        placeholder: __WEBPACK_IMPORTED_MODULE_12__utils_langTranslator__["a" /* default */][this.state.currentLanguage].suffix,
                                        isValid: this.pageState.suffix.valid
                                    })
                                ),
                                __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                    'div',
                                    { className: 'inline-block margin-bot-15 col', onBlur: this.blurEventHandler },
                                    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                        'label',
                                        { htmlFor: 'address1' },
                                        __WEBPACK_IMPORTED_MODULE_12__utils_langTranslator__["a" /* default */][this.state.currentLanguage].addressline1,
                                        __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                            'abbr',
                                            { title: 'required' },
                                            '*'
                                        )
                                    ),
                                    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_7__components_CustomInput__["a" /* default */], { id: 'address1',
                                        value: this.pageState.address1.value,
                                        onChange: this.handleChange,
                                        type: 'text',
                                        placeholder: __WEBPACK_IMPORTED_MODULE_12__utils_langTranslator__["a" /* default */][this.state.currentLanguage].streetAddress,
                                        isValid: this.pageState.address1.valid,
                                        validator: function validator() {
                                            return __WEBPACK_IMPORTED_MODULE_11__utils_validate__["a" /* default */].isValidStreetAddress(_this2.pageState.address1.value);
                                        },
                                        ruleMessage: __WEBPACK_IMPORTED_MODULE_12__utils_langTranslator__["a" /* default */][this.state.currentLanguage].enterValidAddress,
                                        required: 'required'
                                    }),
                                    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                        'span',
                                        { className: 'sub-input' },
                                        __WEBPACK_IMPORTED_MODULE_12__utils_langTranslator__["a" /* default */][this.state.currentLanguage].streetAddress
                                    ),
                                    __WEBPACK_IMPORTED_MODULE_9__stores_BillingCreditStore__["a" /* default */].errorMessage && __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                        __WEBPACK_IMPORTED_MODULE_1_react_dialog___default.a,
                                        {
                                            modal: true,
                                            onClose: this.handleClose,
                                            height: 200,
                                            width: 435,
                                            buttons: [{
                                                text: "Close",
                                                onClick: function onClick() {
                                                    return _this2.handleClose();
                                                }
                                            }] },
                                        __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                            'p',
                                            { className: 'dialog-margin pdialog' },
                                            'Street name/Route not found in Zipcode.'
                                        )
                                    )
                                ),
                                __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                    'div',
                                    { className: 'inline-block margin-bot-15 col', onBlur: this.blurEventHandler },
                                    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                        'label',
                                        { htmlFor: 'address2' },
                                        __WEBPACK_IMPORTED_MODULE_12__utils_langTranslator__["a" /* default */][this.state.currentLanguage].addressline2
                                    ),
                                    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_7__components_CustomInput__["a" /* default */], { id: 'address2',
                                        value: this.pageState.address2.value,
                                        onChange: this.handleChange,
                                        type: 'text',
                                        placeholder: __WEBPACK_IMPORTED_MODULE_12__utils_langTranslator__["a" /* default */][this.state.currentLanguage].apartmentNumber,
                                        isValid: this.pageState.address2.valid,
                                        validator: function validator() {
                                            return __WEBPACK_IMPORTED_MODULE_11__utils_validate__["a" /* default */].isValidApartMent(_this2.pageState.address2.value);
                                        }
                                    }),
                                    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                        'span',
                                        { className: 'sub-input' },
                                        __WEBPACK_IMPORTED_MODULE_12__utils_langTranslator__["a" /* default */][this.state.currentLanguage].apartmentNumber
                                    )
                                ),
                                __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                    'div',
                                    { className: 'inline-block margin-bot-15 col', onBlur: this.blurEventHandler },
                                    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                        'label',
                                        { htmlFor: 'idZip' },
                                        __WEBPACK_IMPORTED_MODULE_12__utils_langTranslator__["a" /* default */][this.state.currentLanguage].zipCode,
                                        __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                            'abbr',
                                            { title: 'required' },
                                            '*'
                                        )
                                    ),
                                    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_7__components_CustomInput__["a" /* default */], { id: 'idZip',
                                        value: this.pageState.idZip.value,
                                        onChange: this.handleChange,
                                        type: 'text',
                                        placeholder: '',
                                        maxLength: '5',
                                        isValid: this.pageState.idZip.valid,
                                        validator: function validator() {
                                            return __WEBPACK_IMPORTED_MODULE_11__utils_validate__["a" /* default */].isValidNumber(_this2.pageState.idZip.value, 5, 5);
                                        },
                                        ruleMessage: __WEBPACK_IMPORTED_MODULE_12__utils_langTranslator__["a" /* default */][this.state.currentLanguage].fiveDigitZipCode,
                                        required: 'required'
                                    })
                                ),
                                __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                    'div',
                                    { className: 'inline-block margin-bot-15 col' },
                                    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                        'label',
                                        { htmlFor: 'cityy' },
                                        __WEBPACK_IMPORTED_MODULE_12__utils_langTranslator__["a" /* default */][this.state.currentLanguage].city,
                                        __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                            'abbr',
                                            { title: 'required' },
                                            '*'
                                        )
                                    ),
                                    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_8__components_CustomDropdown__["a" /* default */], { id: 'cityy',
                                        options: options,
                                        value: cityValue,
                                        onChange: this.handleChange,
                                        type: 'text',
                                        placeholder: ' Select City',
                                        disabled: cityFieldDisabled,
                                        isValid: this.pageState.cityy.valid,
                                        validator: function validator() {
                                            return __WEBPACK_IMPORTED_MODULE_11__utils_validate__["a" /* default */].isNotEmpty(_this2.pageState.cityy.value);
                                        },
                                        required: true,
                                        panelClassName: 'test-custom-class',
                                        className: 'dropdown-city'
                                    })
                                ),
                                __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                    'div',
                                    null,
                                    __WEBPACK_IMPORTED_MODULE_9__stores_BillingCreditStore__["a" /* default */].isDialogOpen && __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                        __WEBPACK_IMPORTED_MODULE_1_react_dialog___default.a,
                                        {
                                            modal: true,
                                            onClose: this.handleClose,
                                            height: 200,
                                            width: 435,
                                            buttons: [{
                                                text: "Close",
                                                onClick: function onClick() {
                                                    return _this2.handleClose();
                                                }
                                            }] },
                                        __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                            'p',
                                            { className: 'dialog-margin pdialog' },
                                            'Multiple city,states found.Please select one.'
                                        )
                                    )
                                ),
                                __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                    'div',
                                    { className: 'inline-block margin-bot-15 col', onBlur: this.blurEventHandler },
                                    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                        'label',
                                        { htmlFor: 'canBeReached' },
                                        __WEBPACK_IMPORTED_MODULE_12__utils_langTranslator__["a" /* default */][this.state.currentLanguage].canBeReached,
                                        __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                            'abbr',
                                            { title: 'required' },
                                            '*'
                                        )
                                    ),
                                    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_7__components_CustomInput__["a" /* default */], { id: 'canBeReached',
                                        value: this.pageState.canBeReached.value,
                                        onChange: this.handleChange,
                                        type: 'text',
                                        placeholder: __WEBPACK_IMPORTED_MODULE_12__utils_langTranslator__["a" /* default */][this.state.currentLanguage].canBeReachedNumber,
                                        maxLength: '10',
                                        isValid: this.pageState.canBeReached.valid,
                                        validator: function validator() {
                                            return __WEBPACK_IMPORTED_MODULE_11__utils_validate__["a" /* default */].isValidNumber(_this2.pageState.canBeReached.value, 10, 10);
                                        },
                                        ruleMessage: __WEBPACK_IMPORTED_MODULE_12__utils_langTranslator__["a" /* default */][this.state.currentLanguage].TenDigitTelephone,
                                        required: 'required'
                                    })
                                ),
                                __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                    'div',
                                    { className: 'inline-block margin-bot-15 col', onBlur: this.blurEventHandler },
                                    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                        'label',
                                        { htmlFor: 'emails' },
                                        __WEBPACK_IMPORTED_MODULE_12__utils_langTranslator__["a" /* default */][this.state.currentLanguage].email,
                                        __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                            'abbr',
                                            { title: 'required' },
                                            '*'
                                        )
                                    ),
                                    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_7__components_CustomInput__["a" /* default */], { id: 'emails',
                                        value: this.pageState.emails.value,
                                        onChange: this.handleChange,
                                        type: 'text',
                                        placeholder: __WEBPACK_IMPORTED_MODULE_12__utils_langTranslator__["a" /* default */][this.state.currentLanguage].email,
                                        isValid: this.pageState.emails.valid,
                                        validator: function validator() {
                                            return __WEBPACK_IMPORTED_MODULE_11__utils_validate__["a" /* default */].isValidEmail(_this2.pageState.emails.value);
                                        },
                                        ruleMessage: __WEBPACK_IMPORTED_MODULE_12__utils_langTranslator__["a" /* default */][this.state.currentLanguage].validEmail,
                                        required: 'required'
                                    })
                                )
                            )
                        ),
                        __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                            'div',
                            { className: 'margin-bot-10' },
                            __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                'div',
                                { className: 'mob-center' },
                                __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                    'h3',
                                    null,
                                    __WEBPACK_IMPORTED_MODULE_12__utils_langTranslator__["a" /* default */][this.state.currentLanguage].creditInfo
                                )
                            ),
                            __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                'div',
                                { className: 'padding-left-10', onBlur: this.blurEventHandler },
                                this.showDOBSSN === true && __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                    'div',
                                    null,
                                    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                        'div',
                                        { className: 'inline-block margin-bot-15 col' },
                                        __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                            'label',
                                            { htmlFor: 'confirmSSN' },
                                            __WEBPACK_IMPORTED_MODULE_12__utils_langTranslator__["a" /* default */][this.state.currentLanguage].ssn,
                                            __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                                'abbr',
                                                { title: 'required' },
                                                '*'
                                            )
                                        ),
                                        __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_7__components_CustomInput__["a" /* default */], { id: 'confirmSSN',
                                            placeholder: 'SSN',
                                            value: this.state.isconfirmSSNMasked === true ? this.state.isMaskedConfirmSSN : this.pageState.confirmSSN.value,
                                            onChange: this.handleChange,
                                            onBlur: this.changeToPassword,
                                            maxLength: '9',
                                            ruleMessage: __WEBPACK_IMPORTED_MODULE_12__utils_langTranslator__["a" /* default */][this.state.currentLanguage].nineDigitSsn,
                                            isValid: this.pageState.confirmSSN.valid,
                                            validator: function validator() {
                                                _this2.pageState.pin.value = '';_this2.pageState.pinConf.value = '';return __WEBPACK_IMPORTED_MODULE_11__utils_validate__["a" /* default */].isValidNumber(_this2.pageState.confirmSSN.value, 9, 9);
                                            },
                                            required: 'required',
                                            pattern: '\\d*'
                                        })
                                    ),
                                    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                        'div',
                                        { className: 'inline-block margin-bot-15 col' },
                                        __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                            'label',
                                            { htmlFor: 'SSN' },
                                            __WEBPACK_IMPORTED_MODULE_12__utils_langTranslator__["a" /* default */][this.state.currentLanguage].confirmSSN,
                                            __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                                'abbr',
                                                { title: 'required' },
                                                '*'
                                            )
                                        ),
                                        __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_7__components_CustomInput__["a" /* default */], { id: 'SSN',
                                            placeholder: __WEBPACK_IMPORTED_MODULE_12__utils_langTranslator__["a" /* default */][this.state.currentLanguage].confirmSSN,
                                            value: this.state.isSSNMasked === true ? this.state.isMaskedSSN : this.pageState.SSN.value,
                                            onChange: this.handleChange,
                                            onBlur: this.changeToPassword,
                                            maxLength: '9',
                                            ruleMessage: __WEBPACK_IMPORTED_MODULE_12__utils_langTranslator__["a" /* default */][this.state.currentLanguage].ssnMatch,
                                            isValid: this.pageState.SSN.valid,
                                            validator: function validator() {
                                                return __WEBPACK_IMPORTED_MODULE_11__utils_validate__["a" /* default */].isMatching(_this2.pageState.confirmSSN.value, _this2.pageState.SSN.value);
                                            },
                                            required: 'required',
                                            pattern: '\\d*'
                                        })
                                    ),
                                    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                        'div',
                                        { className: 'inline-block margin-bot-15 col' },
                                        __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                            'label',
                                            { htmlFor: 'dateOfBirth' },
                                            __WEBPACK_IMPORTED_MODULE_12__utils_langTranslator__["a" /* default */][this.state.currentLanguage].dob,
                                            __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                                'abbr',
                                                { title: 'required' },
                                                '*'
                                            )
                                        ),
                                        __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_7__components_CustomInput__["a" /* default */], { id: 'dateOfBirth',
                                            placeholder: __WEBPACK_IMPORTED_MODULE_12__utils_langTranslator__["a" /* default */][this.state.currentLanguage].dob,
                                            value: this.pageState.dateOfBirth.value,
                                            onChange: this.handleChange,
                                            onKeyUp: this.handleChangekey,
                                            type: 'text',
                                            maxLength: '10',
                                            pattern: '\\d*',
                                            isValid: this.pageState.dateOfBirth.valid,
                                            validator: function validator() {
                                                return __WEBPACK_IMPORTED_MODULE_11__utils_validate__["a" /* default */].isValidDate(_this2.pageState.dateOfBirth.value);
                                            },
                                            ruleMessage: __WEBPACK_IMPORTED_MODULE_12__utils_langTranslator__["a" /* default */][this.state.currentLanguage].specifiedDateFormat,
                                            required: 'required'
                                        }),
                                        __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                            'span',
                                            { className: 'sub-input' },
                                            __WEBPACK_IMPORTED_MODULE_12__utils_langTranslator__["a" /* default */][this.state.currentLanguage].dateFormat
                                        )
                                    )
                                ),
                                this.state.hidePin === true && __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                    'div',
                                    null,
                                    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                        'div',
                                        { className: 'inline-block margin-bot-15 col' },
                                        __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                            'label',
                                            { htmlFor: 'pin' },
                                            __WEBPACK_IMPORTED_MODULE_12__utils_langTranslator__["a" /* default */][this.state.currentLanguage].pin,
                                            __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                                'abbr',
                                                { title: 'required' },
                                                '*'
                                            ),
                                            __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                                'i',
                                                { className: 'fa fa-info-circle tooltip margin-h-15', 'aria-hidden': 'true' },
                                                __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                                    'div',
                                                    { className: 'tooltiptext brandfont' },
                                                    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                                        'ul',
                                                        null,
                                                        __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                                            'li',
                                                            null,
                                                            __WEBPACK_IMPORTED_MODULE_12__utils_langTranslator__["a" /* default */][this.state.currentLanguage].fourDigitNumber
                                                        ),
                                                        __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                                            'li',
                                                            null,
                                                            __WEBPACK_IMPORTED_MODULE_12__utils_langTranslator__["a" /* default */][this.state.currentLanguage].shouldNotMatch
                                                        ),
                                                        __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                                            'li',
                                                            null,
                                                            __WEBPACK_IMPORTED_MODULE_12__utils_langTranslator__["a" /* default */][this.state.currentLanguage].ShouldNotBeSameNumber
                                                        ),
                                                        __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                                            'li',
                                                            null,
                                                            __WEBPACK_IMPORTED_MODULE_12__utils_langTranslator__["a" /* default */][this.state.currentLanguage].ShouldNotBeSequential,
                                                            '.'
                                                        )
                                                    )
                                                )
                                            ),
                                            this.showAddress === false && __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                                'span',
                                                { className: 'input-error-pin' },
                                                ' (Please wait for pin entry until instructed).'
                                            )
                                        ),
                                        __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_7__components_CustomInput__["a" /* default */], { id: 'pin',
                                            placeholder: __WEBPACK_IMPORTED_MODULE_12__utils_langTranslator__["a" /* default */][this.state.currentLanguage].pin,
                                            value: this.pageState.pin.value,
                                            onChange: this.handleChange,
                                            onFocus: this.changeToPasswordPin,
                                            maxLength: '4',
                                            ruleMessage: __WEBPACK_IMPORTED_MODULE_12__utils_langTranslator__["a" /* default */][this.state.currentLanguage].validPin,
                                            isValid: this.pageState.pin.valid,
                                            validator: function validator() {
                                                _this2.pageState.pinConf.value = '';return __WEBPACK_IMPORTED_MODULE_11__utils_validate__["a" /* default */].isValidPin(_this2.pageState.pin.value, _this2.pageState.SSN.value, 4, 4);
                                            },
                                            disable: this.pageState.SSN.valid === false && this.showDOBSSN === true,
                                            required: 'required',
                                            pattern: '\\d*',
                                            autoComplete: 'off'
                                        })
                                    ),
                                    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                        'div',
                                        { className: 'inline-block margin-bot-15 col' },
                                        __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                            'label',
                                            { htmlFor: 'pinConf' },
                                            __WEBPACK_IMPORTED_MODULE_12__utils_langTranslator__["a" /* default */][this.state.currentLanguage].confirmPin,
                                            __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                                'abbr',
                                                { title: 'required' },
                                                '*'
                                            )
                                        ),
                                        __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_7__components_CustomInput__["a" /* default */], { id: 'pinConf', placeholder: 'PIN',
                                            value: this.pageState.pinConf.value,
                                            onChange: this.handleChange,
                                            onFocus: this.changeToPasswordPin,
                                            maxLength: '4',
                                            ruleMessage: __WEBPACK_IMPORTED_MODULE_12__utils_langTranslator__["a" /* default */][this.state.currentLanguage].pinMatch,
                                            isValid: this.pageState.pinConf.valid,
                                            validator: function validator() {
                                                return __WEBPACK_IMPORTED_MODULE_11__utils_validate__["a" /* default */].isMatching(_this2.pageState.pinConf.value, _this2.pageState.pin.value);
                                            },
                                            disable: this.pageState.pin.valid === false || this.pageState.SSN.valid === false && this.showDOBSSN === true,
                                            required: 'required',
                                            pattern: '\\d*',
                                            autoComplete: 'off'
                                        })
                                    )
                                ),
                                this.showTnC === true && __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                    'div',
                                    null,
                                    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                        'div',
                                        { className: 'inline-block margin-bot-15 col1' },
                                        __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_7__components_CustomInput__["a" /* default */], { id: 'tncAccept',
                                            checked: this.pageState.tncAccept,
                                            onChange: this.handleChange,
                                            type: 'checkbox',
                                            isValid: this.pageState.tncAccept.valid,
                                            disable: this.pageState.pin.valid === false || this.pageState.SSN.valid === false && this.showTnC === false,
                                            required: 'required',
                                            autoComplete: 'off'
                                        })
                                    ),
                                    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                        'div',
                                        { className: 'inline-block margin-bot-15 margin-top-15 col2' },
                                        __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                            'span',
                                            null,
                                            '\xA0',
                                            __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                                'font',
                                                { color: 'FF0000' },
                                                __WEBPACK_IMPORTED_MODULE_12__utils_langTranslator__["a" /* default */][this.state.currentLanguage].authorizeCreditReport
                                            )
                                        )
                                    ),
                                    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                        'div',
                                        null,
                                        __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement('input', { type: 'button', id: 'runCredit', value: 'Yes, run my credit', className: 'credit_button button margin-h-15', disabled: this.pageState.tncAccept.valid === false || this.pageState.pin.valid === false || this.pageState.SSN.valid === false || this.pageState.pinConf.value != this.pageState.pin.value || this.pageState.confirmSSN.valid == false, onClick: this.submitCredit })
                                    )
                                )
                            )
                        )
                    ),
                    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                        'div',
                        { className: 'margin-bot-15 half-col' },
                        __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement('input', { type: 'button', className: 'button margin-h-15 payment_submit_button', value: __WEBPACK_IMPORTED_MODULE_12__utils_langTranslator__["a" /* default */][this.state.currentLanguage].submit, onClick: this.handleSubmitButton })
                    ),
                    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                        'div',
                        null,
                        __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                            'p',
                            { className: 'footer big-text' },
                            'Please do not close this window'
                        )
                    )
                );
            }

            return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                'div',
                { className: 'padding-bot-50' },
                this.showTnC === true && __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_5__components_PageHeader__["a" /* default */], { title: __WEBPACK_IMPORTED_MODULE_12__utils_langTranslator__["a" /* default */][this.state.currentLanguage].billingShippingAndCreditInfo }),
                this.showTnC === false && __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_5__components_PageHeader__["a" /* default */], { title: __WEBPACK_IMPORTED_MODULE_12__utils_langTranslator__["a" /* default */][this.state.currentLanguage].billingAndCreditInfo }),
                billingCreditContent,
                __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_6__components_PageFooter__["a" /* default */], null)
            );
        }
    }, {
        key: 'componentWillMount',
        value: function componentWillMount() {

            this.state = {
                disabled: true,
                hidePin: true,
                currentLanguage: 0
            };

            if (sessionStorage.getItem('z') == 'y') {
                this.hideSpanish = false;
                this.setState({ currentLanguage: 1 });
            }
            if (sessionStorage.getItem('n') == 'y') {
                this.setState({ hidePin: false });
            }
            if (sessionStorage.getItem('w') == 'y') {
                this.setState({ hidePin: true });
            }
        }
    }, {
        key: 'componentWillUnmount',
        value: function componentWillUnmount() {
            this.endReaction();
        }
    }]);

    return BillingCreditPage;
}(__WEBPACK_IMPORTED_MODULE_0_react___default.a.Component), (_descriptor = _applyDecoratedDescriptor(_class2.prototype, 'ipAddressSentStatus', [__WEBPACK_IMPORTED_MODULE_4_mobx__["b" /* observable */]], {
    enumerable: true,
    initializer: function initializer() {
        return false;
    }
}), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, 'pageState', [__WEBPACK_IMPORTED_MODULE_4_mobx__["b" /* observable */]], {
    enumerable: true,
    initializer: function initializer() {
        return {
            SSN: {
                value: '',
                valid: false,
                changed: false,
                customSend: function customSend(ssn) {
                    __WEBPACK_IMPORTED_MODULE_9__stores_BillingCreditStore__["a" /* default */].sendFormField({
                        field: 'SSN',
                        value: __WEBPACK_IMPORTED_MODULE_10__utils_utils__["a" /* default */].getEncrypt() ? __WEBPACK_IMPORTED_MODULE_10__utils_utils__["a" /* default */].pieProtectSPI(ssn) : ssn
                    });
                }
            },
            confirmSSN: {
                value: '',
                valid: false,
                changed: false,
                customSend: function customSend(confirmSSN) {
                    __WEBPACK_IMPORTED_MODULE_9__stores_BillingCreditStore__["a" /* default */].sendFormField({
                        field: 'confirmSSN',
                        value: __WEBPACK_IMPORTED_MODULE_10__utils_utils__["a" /* default */].getEncrypt() ? __WEBPACK_IMPORTED_MODULE_10__utils_utils__["a" /* default */].pieProtectSPI(confirmSSN) : confirmSSN
                    });
                }
            },
            dateOfBirth: {
                value: '',
                valid: false,
                changed: false,
                formatValue: function formatValue(value) {
                    return value.replace(/\//g, '');
                }
            },
            langType: {
                value: '',
                changed: false
            },
            pin: {
                value: '',
                valid: false,
                changed: false
            },
            pinConf: {
                value: '',
                valid: false,
                changed: false
            },
            firstName: {
                value: '',
                valid: false,
                changed: false
            },
            middleInitial: {
                value: '',
                valid: true,
                changed: false
            },
            lastName: {
                value: '',
                valid: false,
                changed: false
            },
            suffix: {
                value: '',
                valid: true,
                changed: false
            },
            address1: {
                value: '',
                valid: false,
                changed: false,
                customSend: function customSend(streetAddress) {
                    var num = streetAddress.substr(0, streetAddress.indexOf(' ')),
                        name = streetAddress.substr(streetAddress.indexOf(' ') + 1);
                    __WEBPACK_IMPORTED_MODULE_9__stores_BillingCreditStore__["a" /* default */].sendFormField({
                        field: 'streetNumber',
                        value: num
                    });
                    __WEBPACK_IMPORTED_MODULE_9__stores_BillingCreditStore__["a" /* default */].sendFormField({
                        field: 'streetName',
                        value: name
                    });
                }
            },
            address2: {
                value: '',
                valid: true,
                changed: false,
                customSend: function customSend(num) {
                    __WEBPACK_IMPORTED_MODULE_9__stores_BillingCreditStore__["a" /* default */].sendFormField({
                        field: 'apartment',
                        value: num
                    });
                }
            },
            idZip: {
                value: '',
                valid: false,
                changed: false
            },
            cityy: {
                value: '',
                valid: false,
                changed: false,
                isStatusSent: false
            },
            canBeReached: {
                value: '',
                valid: false,
                changed: false
            },
            emails: {
                value: '',
                valid: false,
                changed: false
            },
            tncAccept: {
                value: 'false',
                valid: false,
                changed: false
            },
            runCredit: {
                value: 'false',
                valid: true,
                changed: false
            }
        };
    }
})), _class2)) || _class;



/***/ }),

/***/ 338:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return CardinalPaymentPage; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__stores_EventStore__ = __webpack_require__(10);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_mobx_react__ = __webpack_require__(16);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_mobx__ = __webpack_require__(6);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__components_PageHeader__ = __webpack_require__(15);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__components_PageFooter__ = __webpack_require__(14);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__stores_CardinalPaymentStore__ = __webpack_require__(351);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__components_CustomInput__ = __webpack_require__(23);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__utils_utils__ = __webpack_require__(4);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__utils_validate__ = __webpack_require__(31);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__utils_langTranslator__ = __webpack_require__(18);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11_react_loader__ = __webpack_require__(502);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11_react_loader___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_11_react_loader__);
var _createClass = function () { function 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); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();

var _class, _desc, _value, _class2, _descriptor, _descriptor2, _descriptor3;

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

function _initDefineProp(target, property, descriptor, context) {
    if (!descriptor) return;
    Object.defineProperty(target, property, {
        enumerable: descriptor.enumerable,
        configurable: descriptor.configurable,
        writable: descriptor.writable,
        value: descriptor.initializer ? descriptor.initializer.call(context) : void 0
    });
}

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 _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 _applyDecoratedDescriptor(target, property, decorators, descriptor, context) {
    var desc = {};
    Object['ke' + 'ys'](descriptor).forEach(function (key) {
        desc[key] = descriptor[key];
    });
    desc.enumerable = !!desc.enumerable;
    desc.configurable = !!desc.configurable;

    if ('value' in desc || desc.initializer) {
        desc.writable = true;
    }

    desc = decorators.slice().reverse().reduce(function (desc, decorator) {
        return decorator(target, property, desc) || desc;
    }, desc);

    if (context && desc.initializer !== void 0) {
        desc.value = desc.initializer ? desc.initializer.call(context) : void 0;
        desc.initializer = undefined;
    }

    if (desc.initializer === void 0) {
        Object['define' + 'Property'](target, property, desc);
        desc = null;
    }

    return desc;
}

function _initializerWarningHelper(descriptor, context) {
    throw new Error('Decorating class property failed. Please ensure that transform-class-properties is enabled.');
}














var CardinalPaymentPage = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_2_mobx_react__["a" /* observer */])(_class = (_class2 = function (_React$Component) {
    _inherits(CardinalPaymentPage, _React$Component);

    _createClass(CardinalPaymentPage, [{
        key: 'getDefaultValues',
        value: function getDefaultValues() {
            var _this2 = this;

            return {
                expiration: {
                    value: '',
                    valid: false,
                    changed: false,
                    formatValue: function formatValue(value) {
                        var cardExp = value.replace(/\s/g, '');
                        var year = cardExp.split('/')[1];
                        var month = cardExp.split('/')[0];
                        if (year.length === 2) {
                            return cardExp;
                        } else {
                            return month + '/' + year.substring(2);
                        }
                    }
                },
                number: {
                    value: '',
                    valid: false,
                    changed: false,
                    formatValue: function formatValue(value) {
                        return value.replace(/\s/g, '');
                    },
                    customSend: function customSend(num) {
                        if (__WEBPACK_IMPORTED_MODULE_8__utils_utils__["a" /* default */].getEncrypt()) {
                            _this2.sendCC();
                        } else {
                            __WEBPACK_IMPORTED_MODULE_6__stores_CardinalPaymentStore__["a" /* default */].sendFormField({
                                field: 'number',
                                value: num
                            });
                        }
                    }
                },
                cvv: {
                    value: '',
                    valid: false,
                    changed: false,
                    customSend: function customSend(cvv) {
                        if (__WEBPACK_IMPORTED_MODULE_8__utils_utils__["a" /* default */].getEncrypt()) {
                            _this2.sendCC();
                        } else {
                            __WEBPACK_IMPORTED_MODULE_6__stores_CardinalPaymentStore__["a" /* default */].sendFormField({
                                field: 'cvv',
                                value: cvv
                            });
                        }
                    }
                },
                zipCode: {
                    value: '',
                    valid: false,
                    changed: false
                },
                cardName: {
                    value: '',
                    valid: false,
                    changed: false
                },
                cardType: {
                    value: 'domestic',
                    changed: false
                },
                langType: {
                    value: '',
                    changed: false
                },
                paymentAmount: {
                    balanceDue: '',
                    orderTotal: '',
                    amount: ''
                }
            };
        }
    }]);

    function CardinalPaymentPage() {
        _classCallCheck(this, CardinalPaymentPage);

        var _this = _possibleConstructorReturn(this, (CardinalPaymentPage.__proto__ || Object.getPrototypeOf(CardinalPaymentPage)).call(this));

        _initDefineProp(_this, 'pageState', _descriptor, _this);

        _initDefineProp(_this, 'ipAddressSentStatus', _descriptor2, _this);

        _initDefineProp(_this, 'tokenValid', _descriptor3, _this);

        _this.sendCC = function () {
            var cc;
            if (_this.pageState['number'].valid && _this.pageState['cvv'].valid) {
                cc = __WEBPACK_IMPORTED_MODULE_8__utils_utils__["a" /* default */].pieProtectPCI(_this.pageState['number'].formatValue(_this.pageState['number'].value), _this.pageState['cvv'].value);
                __WEBPACK_IMPORTED_MODULE_6__stores_CardinalPaymentStore__["a" /* default */].sendFormField({
                    field: 'number',
                    value: cc[0]
                });

                __WEBPACK_IMPORTED_MODULE_6__stores_CardinalPaymentStore__["a" /* default */].sendFormField({
                    field: 'cvv',
                    value: cc[1]
                });
            }
        };

        _this.idMap = {
            cardValid: 'expiration',
            cardNumber: 'number',
            cardCVC: 'cvv',
            zipCode: 'zipCode',
            cardName: 'cardName'
        };
        _this.endReaction = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3_mobx__["a" /* reaction */])(function () {
            return __WEBPACK_IMPORTED_MODULE_1__stores_EventStore__["a" /* default */].eventObj;
        }, function () {

            if (__WEBPACK_IMPORTED_MODULE_1__stores_EventStore__["a" /* default */].eventObj.event === 'creditCardData') {
                _this.pageState[__WEBPACK_IMPORTED_MODULE_1__stores_EventStore__["a" /* default */].eventObj.payload.field].value = __WEBPACK_IMPORTED_MODULE_1__stores_EventStore__["a" /* default */].eventObj.payload.value;
            }
            if (__WEBPACK_IMPORTED_MODULE_1__stores_EventStore__["a" /* default */].eventObj.event === 'splitPayment') {
                _this.pageState = _this.getDefaultValues();
                _this.pageState.paymentAmount.balanceDue = __WEBPACK_IMPORTED_MODULE_1__stores_EventStore__["a" /* default */].eventObj.payload.balanceDue;
                _this.pageState.paymentAmount.orderTotal = __WEBPACK_IMPORTED_MODULE_1__stores_EventStore__["a" /* default */].eventObj.payload.orderTotal;
            }
        });

        _this.clearFields = function () {
            _this.pageState = _this.getDefaultValues();
            _this.setState({ iscardCVCMasked: false });
            __WEBPACK_IMPORTED_MODULE_1__stores_EventStore__["a" /* default */].submitDisabled = true;
        };

        _this.changeToPasswordd = function (event) {
            if (event.target.id === "cardCVC") {
                var maskedCVCValue = event.target.value.replace(/\d/g, '*');
                _this.setState({ maskedCVCCard: maskedCVCValue, iscardCVCMasked: true });
            }
        };

        _this.changeToPassword = function (event) {
            if (event.target.id === "cardNumber") {
                var cardNumberElement = document.getElementById("cardNumber");
                cardNumberElement.setAttribute("type", "password");
            }
        };

        _this.showTnC = false;
        _this.ipAddressSentStatus = false;
        _this.hideSpanish = true;
        if (__WEBPACK_IMPORTED_MODULE_1__stores_EventStore__["a" /* default */].eventObj.payload) {
            _this.pageState.paymentAmount.balanceDue = __WEBPACK_IMPORTED_MODULE_1__stores_EventStore__["a" /* default */].eventObj.payload.balanceDue;
            _this.pageState.paymentAmount.orderTotal = __WEBPACK_IMPORTED_MODULE_1__stores_EventStore__["a" /* default */].eventObj.payload.orderTotal;
            _this.paymentAmount = __WEBPACK_IMPORTED_MODULE_1__stores_EventStore__["a" /* default */].eventObj.payload.paymentAmount;
        }
        if (sessionStorage.getItem('e') == 'y') {
            _this.showTnC = true;
        } else {
            _this.showTnC = false;
        }

        __WEBPACK_IMPORTED_MODULE_6__stores_CardinalPaymentStore__["a" /* default */].fetchIPAddress();
        _this.handleChange = _this.handleChange.bind(_this);
        _this.blurEventHandler = _this.blurEventHandler.bind(_this);
        _this.handleRadioChange = _this.handleRadioChange.bind(_this);
        _this.handleLanguageChange = _this.handleLanguageChange.bind(_this);
        _this.handleSubmitButton = _this.handleSubmitButton.bind(_this);
        _this.handleCardinalSetup = _this.handleCardinalSetup(_this);
        return _this;
    }

    _createClass(CardinalPaymentPage, [{
        key: 'setupCardinalRequest',
        value: function setupCardinalRequest() {
            sessionStorage.setItem("addressLine1", __WEBPACK_IMPORTED_MODULE_1__stores_EventStore__["a" /* default */].eventObj.payload.addressLine1);
            sessionStorage.setItem("addressLine2", __WEBPACK_IMPORTED_MODULE_1__stores_EventStore__["a" /* default */].eventObj.payload.addressLine2);
            sessionStorage.setItem("countryCode", __WEBPACK_IMPORTED_MODULE_1__stores_EventStore__["a" /* default */].eventObj.payload.countryCode);
            sessionStorage.setItem("postalCode", __WEBPACK_IMPORTED_MODULE_1__stores_EventStore__["a" /* default */].eventObj.payload.postalCode);
            sessionStorage.setItem("state", __WEBPACK_IMPORTED_MODULE_1__stores_EventStore__["a" /* default */].eventObj.payload.state);
            sessionStorage.setItem("city", __WEBPACK_IMPORTED_MODULE_1__stores_EventStore__["a" /* default */].eventObj.payload.city);
            sessionStorage.setItem("firstName", __WEBPACK_IMPORTED_MODULE_1__stores_EventStore__["a" /* default */].eventObj.payload.firstName);
            sessionStorage.setItem("lastName", __WEBPACK_IMPORTED_MODULE_1__stores_EventStore__["a" /* default */].eventObj.payload.lastName);
            sessionStorage.setItem("billingPhone", __WEBPACK_IMPORTED_MODULE_1__stores_EventStore__["a" /* default */].eventObj.payload.billingPhone);
            sessionStorage.setItem("shippingMethod", __WEBPACK_IMPORTED_MODULE_1__stores_EventStore__["a" /* default */].eventObj.payload.shippingMethod);
            sessionStorage.setItem("amount", __WEBPACK_IMPORTED_MODULE_1__stores_EventStore__["a" /* default */].eventObj.payload.amount);
            sessionStorage.setItem("email", __WEBPACK_IMPORTED_MODULE_1__stores_EventStore__["a" /* default */].eventObj.payload.email);
            sessionStorage.setItem("newCustomer", __WEBPACK_IMPORTED_MODULE_1__stores_EventStore__["a" /* default */].eventObj.payload.newCustomer);
        }
    }, {
        key: 'handleChange',
        value: function handleChange(event, validator) {
            if (event.target.id === "cardCVC") {
                this.setState(_defineProperty({}, 'is' + event.target.id + 'Masked', false));
            }
            this.pageState[this.idMap[event.target.id]].value = event.target.value;
            if (typeof validator === 'function') {
                this.pageState[this.idMap[event.target.id]].valid = validator();
            }
            this.pageState[this.idMap[event.target.id]].changed = true;
            if (!document.getElementById('cardNumber').value || !document.getElementById('cardName').value || !document.getElementById('cardValid').value || !document.getElementById('cardCVC').value || !document.getElementById('zipCode').value) {
                __WEBPACK_IMPORTED_MODULE_1__stores_EventStore__["a" /* default */].submitDisabled = true;
            } else {
                __WEBPACK_IMPORTED_MODULE_1__stores_EventStore__["a" /* default */].submitDisabled = false;
            }
        }
    }, {
        key: 'blurEventHandler',
        value: function blurEventHandler(event) {
            if (event && event.target && event.target.id) {
                if (this.pageState[this.idMap[event.target.id]].valid === true && this.pageState[this.idMap[event.target.id]].changed === true) {
                    if (typeof this.pageState[this.idMap[event.target.id]].customSend === 'function') {
                        this.pageState[this.idMap[event.target.id]].customSend(this.pageState[this.idMap[event.target.id]].formatValue ? this.pageState[this.idMap[event.target.id]].formatValue(event.target.value) : event.target.value);
                    } else {
                        __WEBPACK_IMPORTED_MODULE_6__stores_CardinalPaymentStore__["a" /* default */].sendFormField({
                            field: this.idMap[event.target.id],
                            value: this.pageState[this.idMap[event.target.id]].formatValue ? this.pageState[this.idMap[event.target.id]].formatValue(event.target.value) : event.target.value
                        });
                    }
                    this.pageState[this.idMap[event.target.id]].changed = false;
                }
                if (!document.getElementById('cardNumber').value || !document.getElementById('cardName').value || !document.getElementById('cardValid').value || !document.getElementById('cardCVC').value || !document.getElementById('zipCode').value) {
                    __WEBPACK_IMPORTED_MODULE_1__stores_EventStore__["a" /* default */].submitDisabled = true;
                } else {
                    __WEBPACK_IMPORTED_MODULE_1__stores_EventStore__["a" /* default */].submitDisabled = false;
                }
            }
        }
    }, {
        key: 'handleCardinalSetup',
        value: function handleCardinalSetup() {
            var _this3 = this;

            if (Cardinal !== undefined) {
                var jwt = __WEBPACK_IMPORTED_MODULE_6__stores_CardinalPaymentStore__["a" /* default */].jwtToken;
                var self = this;
                var formObj;
                Cardinal.on('payments.setupComplete', function (data) {
                    if (data && data.sessionId) {
                        if (document.getElementById('cardNumber').value && document.getElementById('cardName').value && document.getElementById('cardValid').value && document.getElementById('cardCVC').value && document.getElementById('zipCode').value) {
                            console.log("inside.setupComplete", document.getElementById('cardNumber').value);
                            var expireDate = document.getElementById('cardValid').value;
                            var expire;
                            if (expireDate != undefined && expireDate != null) {
                                expire = expireDate.split("/");
                            }
                            var card = __WEBPACK_IMPORTED_MODULE_8__utils_utils__["a" /* default */].pieProtectPCI(self.pageState['number'].formatValue(self.pageState['number'].value), self.pageState['cvv'].value);
                            var cardNumber = card[0].split(" ");
                            formObj = {
                                "cardNumber": cardNumber[0].trim(),
                                "cardExpMonth": expire[0].trim(),
                                "cardExpYear": expire[1].trim().length === 2 ? "20" + expire[1].trim() : expire[1].trim(),
                                "cvv": card[1].trim(),
                                "ipAddress": __WEBPACK_IMPORTED_MODULE_6__stores_CardinalPaymentStore__["a" /* default */].ipAddress
                            };
                        }
                        __WEBPACK_IMPORTED_MODULE_6__stores_CardinalPaymentStore__["a" /* default */].call3DSecureService(data.sessionId, formObj);
                    }
                });
                Cardinal.on('payments.validated', function (data, jwt) {
                    switch (data.ActionCode) {
                        case 'SUCCESS':
                            __WEBPACK_IMPORTED_MODULE_6__stores_CardinalPaymentStore__["a" /* default */].validateJwtToken(jwt, data);
                            __WEBPACK_IMPORTED_MODULE_6__stores_CardinalPaymentStore__["a" /* default */].makeEnforcementCall();
                            break;
                        case 'NOACTION':
                            alert(__WEBPACK_IMPORTED_MODULE_10__utils_langTranslator__["a" /* default */][_this3.state.currentLanguage].transactionFailed);
                            break;

                        case 'FAILURE':
                            __WEBPACK_IMPORTED_MODULE_6__stores_CardinalPaymentStore__["a" /* default */].makeEnforcementCall();
                            alert(__WEBPACK_IMPORTED_MODULE_10__utils_langTranslator__["a" /* default */][_this3.state.currentLanguage].transactionFailed);
                            break;

                        case 'ERROR':
                            alert(__WEBPACK_IMPORTED_MODULE_10__utils_langTranslator__["a" /* default */][_this3.state.currentLanguage].transactionFailed);
                            break;
                    }
                });
            }
        }
    }, {
        key: 'handleRadioChange',
        value: function handleRadioChange(event) {
            event.stopPropagation();
            this.pageState.cardType.changed = event.target.id === this.pageState.cardType.value ? false : true;
            if (this.pageState.cardType.changed) {
                this.pageState.cardType.value = event.target.id;
                __WEBPACK_IMPORTED_MODULE_6__stores_CardinalPaymentStore__["a" /* default */].sendFormField({
                    field: 'cardHolderDomesticorIntType',
                    value: event.target.id
                });
            }
        }
    }, {
        key: 'handleLanguageChange',
        value: function handleLanguageChange(event) {
            event.stopPropagation();
            if (event.target.id === "English") {
                this.setState({ currentLanguage: 0 });
            } else if (event.target.id === "Spanish") {
                this.setState({ currentLanguage: 1 });
            }
        }
    }, {
        key: 'handleSubmitButton',
        value: function handleSubmitButton() {
            __WEBPACK_IMPORTED_MODULE_6__stores_CardinalPaymentStore__["a" /* default */].updateSubmitCount();
            if (__WEBPACK_IMPORTED_MODULE_6__stores_CardinalPaymentStore__["a" /* default */].submitedAttempts === 5) {
                window.alert("We are unable to process your payment and you have reached your maximum payment attempts. Please visit a Verizon Wireless store to process a new order.");
                return 0;
            }
            if (sessionStorage.getItem("amount") === null) {
                __WEBPACK_IMPORTED_MODULE_6__stores_CardinalPaymentStore__["a" /* default */].receiveFormField();
            }
            var cardType = Payment.fns.cardType(document.getElementById('cardNumber').value);

            if (!document.getElementById('cardNumber').value || !document.getElementById('cardName').value || !document.getElementById('cardValid').value || !document.getElementById('cardCVC').value || !document.getElementById('zipCode').value) {
                window.alert("Please fill required fields");
            } else if (!this.pageState['number'].valid) {
                window.alert("Please enter valid credit card number");
                return;
            } else if (!this.pageState['cvv'].valid) {
                window.alert("Please enter valid CVV number");
                return;
            } else if (!this.pageState['expiration'].valid) {
                window.alert("Please enter valid expiration date");
                return;
            } else if (!this.pageState['zipCode'].valid) {
                window.alert("Please enter valid zip code");
                return;
            } else {
                var cardNumber = document.getElementById('cardNumber').value.replace(/\s/g, '');
                __WEBPACK_IMPORTED_MODULE_6__stores_CardinalPaymentStore__["a" /* default */].fetchJWTToken(cardNumber.substring(0, 6), sessionStorage.getItem("amount"));
            }
        }
    }, {
        key: 'render',
        value: function render() {
            var _this4 = this;

            var cardinalPaymentContent;
            var loader = __WEBPACK_IMPORTED_MODULE_6__stores_CardinalPaymentStore__["a" /* default */].isLoading ? __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_11_react_loader___default.a, { className: 'loader', active: true }) : "";
            if (!this.ipAddressSentStatus) {
                if (!__WEBPACK_IMPORTED_MODULE_6__stores_CardinalPaymentStore__["a" /* default */].loading && !__WEBPACK_IMPORTED_MODULE_6__stores_CardinalPaymentStore__["a" /* default */].error && __WEBPACK_IMPORTED_MODULE_6__stores_CardinalPaymentStore__["a" /* default */].ipAddress) {
                    console.log("IPaddress" + __WEBPACK_IMPORTED_MODULE_6__stores_CardinalPaymentStore__["a" /* default */].ipAddress);
                    __WEBPACK_IMPORTED_MODULE_6__stores_CardinalPaymentStore__["a" /* default */].sendFormField({
                        field: "ipAddress",
                        value: __WEBPACK_IMPORTED_MODULE_6__stores_CardinalPaymentStore__["a" /* default */].ipAddress
                    });
                    this.ipAddressSentStatus = true;
                }
            }
            if (__WEBPACK_IMPORTED_MODULE_1__stores_EventStore__["a" /* default */].error) {
                cardinalPaymentContent = __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                    'div',
                    { className: 'center' },
                    __WEBPACK_IMPORTED_MODULE_1__stores_EventStore__["a" /* default */].error
                );
            } else {
                cardinalPaymentContent = __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                    'div',
                    null,
                    this.hideSpanish && __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                        'div',
                        null,
                        __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement('input', { id: 'English', name: 'langType', type: 'radio', defaultChecked: true, value: 'English', onChange: this.handleLanguageChange }),
                        __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                            'label',
                            { htmlFor: 'English' },
                            'English'
                        ),
                        __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement('input', { id: 'Spanish', name: 'langType', type: 'radio', value: 'Spanish', onChange: this.handleLanguageChange }),
                        __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                            'label',
                            { htmlFor: 'Spanish' },
                            'Spanish'
                        )
                    ),
                    (this.pageState.paymentAmount.balanceDue || this.pageState.paymentAmount.orderTotal) && __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                        'div',
                        { className: 'padding-v-15' },
                        __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                            'div',
                            { className: 'mob-center text-center' },
                            this.pageState.paymentAmount.balanceDue && __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                'div',
                                { className: 'inline-block margin-right-10p' },
                                __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                    'div',
                                    { className: 'big-text red bolder' },
                                    this.pageState.paymentAmount.balanceDue
                                ),
                                __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                    'div',
                                    { className: 'bolder text-right' },
                                    __WEBPACK_IMPORTED_MODULE_10__utils_langTranslator__["a" /* default */][this.state.currentLanguage].paymentAmount
                                )
                            ),
                            this.pageState.paymentAmount.orderTotal && this.pageState.paymentAmount.orderTotal !== this.pageState.paymentAmount.balanceDue && __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                'div',
                                { className: 'inline-block' },
                                __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                    'div',
                                    { className: 'big-text red bolder' },
                                    this.pageState.paymentAmount.orderTotal
                                ),
                                __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                    'div',
                                    { className: 'bolder text-right' },
                                    __WEBPACK_IMPORTED_MODULE_10__utils_langTranslator__["a" /* default */][this.state.currentLanguage].totalDue
                                )
                            )
                        )
                    ),
                    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                        'div',
                        { className: 'margin-bot-10' },
                        __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                            'div',
                            { className: 'mob-center' },
                            __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                'h3',
                                null,
                                __WEBPACK_IMPORTED_MODULE_10__utils_langTranslator__["a" /* default */][this.state.currentLanguage].creditCardInformation
                            )
                        ),
                        __WEBPACK_IMPORTED_MODULE_1__stores_EventStore__["a" /* default */].amountt && __WEBPACK_IMPORTED_MODULE_1__stores_EventStore__["a" /* default */].amountt > 0 && __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                            'div',
                            { className: 'inline-block padding-left-10 col' },
                            __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                'div',
                                { className: 'margin-bot-15' },
                                __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                    'label',
                                    null,
                                    __WEBPACK_IMPORTED_MODULE_10__utils_langTranslator__["a" /* default */][this.state.currentLanguage].OrderTotalDueToday,
                                    ' : $',
                                    __WEBPACK_IMPORTED_MODULE_1__stores_EventStore__["a" /* default */].amountt,
                                    ' '
                                )
                            )
                        ),
                        __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                            'form',
                            { id: 'ccform', onBlur: this.blurEventHandler, autoComplete: 'off' },
                            __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                'div',
                                { className: 'inline-block padding-left-10 col' },
                                __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                    'div',
                                    { className: 'margin-bot-15' },
                                    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                        'label',
                                        { htmlFor: 'cardNumber' },
                                        __WEBPACK_IMPORTED_MODULE_10__utils_langTranslator__["a" /* default */][this.state.currentLanguage].cardNumber,
                                        __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                            'abbr',
                                            { title: 'required' },
                                            '*'
                                        )
                                    ),
                                    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_7__components_CustomInput__["a" /* default */], { id: 'cardNumber',
                                        name: 'number',
                                        onFocus: this.changeToPassword,
                                        placeholder: __WEBPACK_IMPORTED_MODULE_10__utils_langTranslator__["a" /* default */][this.state.currentLanguage].cardNumber,
                                        value: this.pageState[this.idMap.cardNumber].value,
                                        onChange: this.handleChange,
                                        ruleMessage: __WEBPACK_IMPORTED_MODULE_10__utils_langTranslator__["a" /* default */][this.state.currentLanguage].validCreditCard,
                                        isValid: this.pageState[this.idMap.cardNumber].valid,
                                        validator: function validator() {
                                            return Payment.fns.validateCardNumber(_this4.pageState[_this4.idMap.cardNumber].value);
                                        },
                                        required: 'required',
                                        pattern: '\\d*'
                                    })
                                ),
                                __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                    'div',
                                    { className: 'margin-bot-15' },
                                    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                        'label',
                                        { htmlFor: 'cardName' },
                                        __WEBPACK_IMPORTED_MODULE_10__utils_langTranslator__["a" /* default */][this.state.currentLanguage].fullName,
                                        __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                            'abbr',
                                            { title: 'required' },
                                            '*'
                                        )
                                    ),
                                    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_7__components_CustomInput__["a" /* default */], { id: 'cardName',
                                        name: 'name',
                                        placeholder: __WEBPACK_IMPORTED_MODULE_10__utils_langTranslator__["a" /* default */][this.state.currentLanguage].fullName,
                                        value: this.pageState[this.idMap.cardName].value,
                                        onChange: this.handleChange,
                                        ruleMessage: __WEBPACK_IMPORTED_MODULE_10__utils_langTranslator__["a" /* default */][this.state.currentLanguage].fullName,
                                        isValid: this.pageState[this.idMap.cardName].valid,
                                        validator: function validator() {
                                            return _this4.pageState[_this4.idMap.cardName].value.trim() !== '';
                                        },
                                        required: 'required'
                                    })
                                ),
                                __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                    'div',
                                    { className: 'inline-block margin-bot-15 half-col' },
                                    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                        'label',
                                        { htmlFor: 'cardValid' },
                                        __WEBPACK_IMPORTED_MODULE_10__utils_langTranslator__["a" /* default */][this.state.currentLanguage].valid,
                                        __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                            'abbr',
                                            { title: 'required' },
                                            '*'
                                        )
                                    ),
                                    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_7__components_CustomInput__["a" /* default */], { id: 'cardValid',
                                        name: 'expiry',
                                        placeholder: __WEBPACK_IMPORTED_MODULE_10__utils_langTranslator__["a" /* default */][this.state.currentLanguage].valid,
                                        value: this.pageState[this.idMap.cardValid].value,
                                        onChange: this.handleChange,
                                        ruleMessage: __WEBPACK_IMPORTED_MODULE_10__utils_langTranslator__["a" /* default */][this.state.currentLanguage].validExpiryDate,
                                        isValid: this.pageState[this.idMap.cardValid].valid,
                                        validator: function validator() {
                                            var objVal = _this4.pageState[_this4.idMap.cardValid].value.split('/');return Payment.fns.validateCardExpiry(objVal[0], objVal[1]);
                                        },
                                        required: 'required',
                                        pattern: '\\d*'
                                    }),
                                    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                        'span',
                                        { className: 'sub-input' },
                                        __WEBPACK_IMPORTED_MODULE_10__utils_langTranslator__["a" /* default */][this.state.currentLanguage].monthYear
                                    )
                                ),
                                __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                    'div',
                                    { className: 'inline-block margin-bot-15 half-col' },
                                    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                        'label',
                                        { htmlFor: 'cardCVC' },
                                        __WEBPACK_IMPORTED_MODULE_10__utils_langTranslator__["a" /* default */][this.state.currentLanguage].cvc,
                                        __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                            'abbr',
                                            { title: 'required' },
                                            '*'
                                        )
                                    ),
                                    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_7__components_CustomInput__["a" /* default */], { id: 'cardCVC',
                                        name: 'cvc',
                                        placeholder: __WEBPACK_IMPORTED_MODULE_10__utils_langTranslator__["a" /* default */][this.state.currentLanguage].cvc,
                                        onBlur: this.changeToPasswordd,
                                        value: this.state.iscardCVCMasked === true ? this.state.maskedCVCCard : this.pageState[this.idMap.cardCVC].value,
                                        onChange: this.handleChange,
                                        ruleMessage: __WEBPACK_IMPORTED_MODULE_10__utils_langTranslator__["a" /* default */][this.state.currentLanguage].enterValidCvc,
                                        isValid: this.pageState[this.idMap.cardCVC].valid,
                                        validator: function validator() {
                                            return Payment.fns.validateCardCVC(_this4.pageState[_this4.idMap.cardCVC].value, Payment.fns.cardType(_this4.pageState[_this4.idMap.cardNumber].value));
                                        },
                                        required: 'required',
                                        pattern: '\\d*',
                                        autoComplete: 'off'
                                    })
                                ),
                                __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                    'div',
                                    { className: 'margin-bot-15 half-col' },
                                    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                        'label',
                                        { htmlFor: 'zipCode' },
                                        __WEBPACK_IMPORTED_MODULE_10__utils_langTranslator__["a" /* default */][this.state.currentLanguage].zipCode,
                                        __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                            'abbr',
                                            { title: 'required' },
                                            '*'
                                        )
                                    ),
                                    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_7__components_CustomInput__["a" /* default */], { id: 'zipCode',
                                        placeholder: __WEBPACK_IMPORTED_MODULE_10__utils_langTranslator__["a" /* default */][this.state.currentLanguage].zipCode,
                                        value: this.pageState[this.idMap.zipCode].value,
                                        onChange: this.handleChange,
                                        ruleMessage: __WEBPACK_IMPORTED_MODULE_10__utils_langTranslator__["a" /* default */][this.state.currentLanguage].enterValidZip,
                                        isValid: this.pageState[this.idMap.zipCode].valid,
                                        validator: function validator() {
                                            return __WEBPACK_IMPORTED_MODULE_9__utils_validate__["a" /* default */].isValidNumber(_this4.pageState[_this4.idMap.zipCode].value, 5, 5);
                                        },
                                        required: 'required',
                                        pattern: '\\d*',
                                        maxLength: '5'
                                    })
                                ),
                                __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                    'div',
                                    { className: 'margin-bot-15', onChange: this.handleRadioChange, onBlur: function onBlur(event) {
                                            event.stopPropagation();
                                        } },
                                    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                        'div',
                                        { className: '' },
                                        __WEBPACK_IMPORTED_MODULE_10__utils_langTranslator__["a" /* default */][this.state.currentLanguage].type
                                    ),
                                    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                        'div',
                                        { className: 'inline-block' },
                                        __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement('input', { id: 'domestic', type: 'radio', name: 'cardType', value: 'domestic', defaultChecked: true }),
                                        __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                            'label',
                                            { htmlFor: 'domestic' },
                                            __WEBPACK_IMPORTED_MODULE_10__utils_langTranslator__["a" /* default */][this.state.currentLanguage].domestic
                                        )
                                    )
                                ),
                                __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                    'div',
                                    { className: 'margin-bot-15' },
                                    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement('input', { type: 'button', className: 'button margin-h-15 payment_submit_button', value: __WEBPACK_IMPORTED_MODULE_10__utils_langTranslator__["a" /* default */][this.state.currentLanguage].submit, onClick: this.handleSubmitButton, disabled: __WEBPACK_IMPORTED_MODULE_1__stores_EventStore__["a" /* default */].submitDisabled }),
                                    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement('input', { type: 'button', className: 'button margin-h-15 payment_submit_button', value: __WEBPACK_IMPORTED_MODULE_10__utils_langTranslator__["a" /* default */][this.state.currentLanguage].clear, onClick: this.clearFields })
                                )
                            ),
                            __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement('div', { id: 'card-container', className: 'inline-block padding-left-10 col' })
                        ),
                        __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                            'div',
                            null,
                            __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                'p',
                                { className: 'footer big-text' },
                                'Please do not close this window'
                            )
                        )
                    )
                );
            }
            return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                'div',
                { className: 'padding-bot-50' },
                loader,
                __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_4__components_PageHeader__["a" /* default */], { title: __WEBPACK_IMPORTED_MODULE_10__utils_langTranslator__["a" /* default */][this.state.currentLanguage].paymentInfo }),
                cardinalPaymentContent,
                __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_5__components_PageFooter__["a" /* default */], null)
            );
        }
    }, {
        key: 'componentDidMount',
        value: function componentDidMount() {
            setTimeout(function () {
                console.log("triggered");
                if (sessionStorage.getItem("amount") === null) {
                    __WEBPACK_IMPORTED_MODULE_6__stores_CardinalPaymentStore__["a" /* default */].receiveFormField();
                }
            }, 35000);

            try {
                this.naviInfo = {
                    userAgent: window.navigator.userAgent,
                    cookieEnabled: window.navigator.cookieEnabled ? 'true' : 'false',
                    href: window.location.href,
                    errorInfo: "Mobile client loaded app.",
                    clientID: __WEBPACK_IMPORTED_MODULE_8__utils_utils__["a" /* default */].getReceivePrefix() + __WEBPACK_IMPORTED_MODULE_8__utils_utils__["a" /* default */].getID()
                };
                __WEBPACK_IMPORTED_MODULE_6__stores_CardinalPaymentStore__["a" /* default */].loggingService(this.naviInfo);
            } catch (err) {
                console.log("Error in cardinal payment page");
            }

            if (__WEBPACK_IMPORTED_MODULE_1__stores_EventStore__["a" /* default */].pollingStarted && __WEBPACK_IMPORTED_MODULE_1__stores_EventStore__["a" /* default */].killPolling) {
                setTimeout(function () {
                    __WEBPACK_IMPORTED_MODULE_1__stores_EventStore__["a" /* default */].resetPolling();
                }, 1000);
            }

            /* The crappiest hack fix ever. Couldn't figure out a way to make card api not cancel event when formatting credit number after spaces and still properly work */
            document.getElementById('cardNumber').addEventListener("change", function (event) {
                var _this5 = this;

                this.handleChange(event, function () {
                    return Payment.fns.validateCardNumber(_this5.pageState[_this5.idMap.cardNumber].value);
                });
            }.bind(this));

            var card = new Card({
                // a selector or DOM element for the form where users will
                // be entering their information
                form: '#ccform', // *required*
                // a selector or DOM element for the container
                // where you want the card to appear
                container: '#card-container', // *required*

                // formSelectors: {
                //     numberInput: 'input#number', // optional — default input[name="number"]
                //     expiryInput: 'input#expiry', // optional — default input[name="expiry"]
                //     cvcInput: 'input#cvc', // optional — default input[name="cvc"]
                //     nameInput: 'input#name' // optional - defaults input[name="name"]
                // },

                width: document.getElementById('card-container').clientWidth - 60, // optional — default 350px
                // formatting: true, // optional - default true

                // Strings for translation - optional
                // messages: {
                //     validDate: 'valid\ndate', // optional - default 'valid\nthru'
                //     monthYear: 'mm/yyyy', // optional - default 'month/year'
                // },

                // Default placeholders for rendered fields - optional
                placeholders: {
                    number: '•••• •••• •••• ••••',
                    name: 'Full Name',
                    expiry: '••/••',
                    cvc: '•••'
                },

                masks: {
                    cardNumber: '•' // optional - mask card number
                }

                // if true, will log helpful messages for setting up Card
                // debug: false // optional - default false
            });
        }
    }, {
        key: 'componentWillUnmount',
        value: function componentWillUnmount() {
            this.endReaction();
        }
    }, {
        key: 'componentWillMount',
        value: function componentWillMount() {

            this.state = {
                currentLanguage: 0
            };
            if (sessionStorage.getItem('z') == 'y') {
                this.hideSpanish = false;
                this.setState({ currentLanguage: 1 });
            }
        }
    }]);

    return CardinalPaymentPage;
}(__WEBPACK_IMPORTED_MODULE_0_react___default.a.Component), (_descriptor = _applyDecoratedDescriptor(_class2.prototype, 'pageState', [__WEBPACK_IMPORTED_MODULE_3_mobx__["b" /* observable */]], {
    enumerable: true,
    initializer: function initializer() {
        return this.getDefaultValues();
    }
}), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, 'ipAddressSentStatus', [__WEBPACK_IMPORTED_MODULE_3_mobx__["b" /* observable */]], {
    enumerable: true,
    initializer: function initializer() {
        return false;
    }
}), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, 'tokenValid', [__WEBPACK_IMPORTED_MODULE_3_mobx__["b" /* observable */]], {
    enumerable: true,
    initializer: function initializer() {
        return false;
    }
})), _class2)) || _class;



/***/ }),

/***/ 339:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return CoreBillingPage; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__stores_EventStore__ = __webpack_require__(10);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_mobx_react__ = __webpack_require__(16);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_mobx__ = __webpack_require__(6);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__components_PageHeader__ = __webpack_require__(15);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__components_PageFooter__ = __webpack_require__(14);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__components_CustomInput__ = __webpack_require__(23);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__stores_CoreBillingStore__ = __webpack_require__(352);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__utils_utils__ = __webpack_require__(4);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__utils_validate__ = __webpack_require__(31);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__utils_langTranslator__ = __webpack_require__(18);
var _createClass = function () { function 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); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();

var _class, _desc, _value, _class2, _descriptor, _descriptor2;

function _initDefineProp(target, property, descriptor, context) {
  if (!descriptor) return;
  Object.defineProperty(target, property, {
    enumerable: descriptor.enumerable,
    configurable: descriptor.configurable,
    writable: descriptor.writable,
    value: descriptor.initializer ? descriptor.initializer.call(context) : void 0
  });
}

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 _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 _applyDecoratedDescriptor(target, property, decorators, descriptor, context) {
  var desc = {};
  Object['ke' + 'ys'](descriptor).forEach(function (key) {
    desc[key] = descriptor[key];
  });
  desc.enumerable = !!desc.enumerable;
  desc.configurable = !!desc.configurable;

  if ('value' in desc || desc.initializer) {
    desc.writable = true;
  }

  desc = decorators.slice().reverse().reduce(function (desc, decorator) {
    return decorator(target, property, desc) || desc;
  }, desc);

  if (context && desc.initializer !== void 0) {
    desc.value = desc.initializer ? desc.initializer.call(context) : void 0;
    desc.initializer = undefined;
  }

  if (desc.initializer === void 0) {
    Object['define' + 'Property'](target, property, desc);
    desc = null;
  }

  return desc;
}

function _initializerWarningHelper(descriptor, context) {
  throw new Error('Decorating class property failed. Please ensure that transform-class-properties is enabled.');
}













var CoreBillingPage = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_2_mobx_react__["a" /* observer */])(_class = (_class2 = function (_React$Component) {
  _inherits(CoreBillingPage, _React$Component);

  function CoreBillingPage() {
    _classCallCheck(this, CoreBillingPage);

    var _this = _possibleConstructorReturn(this, (CoreBillingPage.__proto__ || Object.getPrototypeOf(CoreBillingPage)).call(this));

    _initDefineProp(_this, "ipAddressSentStatus", _descriptor, _this);

    _initDefineProp(_this, "pageState", _descriptor2, _this);

    _this.endReaction = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3_mobx__["a" /* reaction */])(function () {
      return __WEBPACK_IMPORTED_MODULE_1__stores_EventStore__["a" /* default */].eventObj;
    }, function () {
      if (__WEBPACK_IMPORTED_MODULE_1__stores_EventStore__["a" /* default */].eventObj.event === "PageNavigation") {
        _this.pageState[__WEBPACK_IMPORTED_MODULE_1__stores_EventStore__["a" /* default */].eventObj.payload.field].value = __WEBPACK_IMPORTED_MODULE_1__stores_EventStore__["a" /* default */].eventObj.payload.value;
      }
    });

    _this.state = {
      isFormValid: false
    };
    __WEBPACK_IMPORTED_MODULE_7__stores_CoreBillingStore__["a" /* default */].fetchIPAddress();
    _this.handleChange = _this.handleChange.bind(_this);
    _this.blurEventHandler = _this.blurEventHandler.bind(_this);
    _this.formValidator = _this.formValidator.bind(_this);

    return _this;
  }

  _createClass(CoreBillingPage, [{
    key: "formValidator",
    value: function formValidator() {
      var form = document.querySelector('form');
      var disabled = true;
      for (var i = 0; i < form.length; i++) {
        if (form[i].id !== 'button') {
          if (form[i].className === 'valid') {
            this.setState({ isFormValid: true });
          } else {
            this.setState({ isFormValid: false });
            break;
          }
        }
      }
      return disabled;
    }
  }, {
    key: "handleChangekey",
    value: function handleChangekey(event) {
      var key = event.keyCode || event.charCode;
      if (event.target.id === 'dateOfBirth' && key != 8 && key != undefined) {
        var value = event.target.value;
        if (value.length === 2 || value.length === 5) {
          event.target.value += '/';
        }
      }
    }
  }, {
    key: "handleChange",
    value: function handleChange(event, validator) {
      var _this2 = this;

      this.pageState[event.target.id].value = event.target.type === "checkbox" ? event.target.checked : event.target.value;
      if (event.target.type === "checkbox" && event.target.checked) {
        this.pageState[event.target.id].valid = true;
      } else {
        this.pageState[event.target.id].valid = false;
      }
      if (typeof validator === "function") {
        this.pageState[event.target.id].valid = validator();
      }
      this.pageState[event.target.id].changed = true;
      if (event.target.type === "checkbox" && this.pageState[event.target.id].valid === true && this.pageState[event.target.id].changed === true) {
        if (typeof this.pageState[event.target.id].customSend === "function") {
          this.pageState[event.target.id].customSend(this.pageState[event.target.id].formatValue ? this.pageState[event.target.id].formatValue(event.target.type === "checkbox" ? event.target.checked : event.target.value) : event.target.type === "checkbox" ? event.target.checked : event.target.value);
        } else {
          __WEBPACK_IMPORTED_MODULE_7__stores_CoreBillingStore__["a" /* default */].sendFormField({
            field: event.target.id,
            value: this.pageState[event.target.id].formatValue ? this.pageState[event.target.id].formatValue(event.target.type === "checkbox" ? event.target.checked : event.target.value) : event.target.type === "checkbox" ? event.target.checked : event.target.value
          });
        }
        this.pageState[event.target.id].changed = false;
      }
      setTimeout(function () {
        _this2.formValidator();
      }, 10);
    }
  }, {
    key: "blurEventHandler",
    value: function blurEventHandler(event) {
      if (event.target.type !== "checkbox" && this.pageState[event.target.id].valid === true && this.pageState[event.target.id].changed === true) {
        if (typeof this.pageState[event.target.id].customSend === "function") {
          this.pageState[event.target.id].customSend(this.pageState[event.target.id].formatValue ? this.pageState[event.target.id].formatValue(event.target.type === "checkbox" ? event.target.checked : event.target.value) : event.target.type === "checkbox" ? event.target.checked : event.target.value);
        } else {
          __WEBPACK_IMPORTED_MODULE_7__stores_CoreBillingStore__["a" /* default */].sendFormField({
            field: event.target.id,
            value: this.pageState[event.target.id].formatValue ? this.pageState[event.target.id].formatValue(event.target.type === "checkbox" ? event.target.checked : event.target.value) : event.target.type === "checkbox" ? event.target.checked : event.target.value
          });
        }
        this.pageState[event.target.id].changed = false;
      }
      this.formValidator();
    }
  }, {
    key: "render",
    value: function render() {
      var _this3 = this;

      var coreBillingContent;
      if (!this.ipAddressSentStatus) {
        if (!__WEBPACK_IMPORTED_MODULE_7__stores_CoreBillingStore__["a" /* default */].loading && !__WEBPACK_IMPORTED_MODULE_7__stores_CoreBillingStore__["a" /* default */].error && __WEBPACK_IMPORTED_MODULE_7__stores_CoreBillingStore__["a" /* default */].ipAddress) {
          console.log("IPaddress" + __WEBPACK_IMPORTED_MODULE_7__stores_CoreBillingStore__["a" /* default */].ipAddress);
          __WEBPACK_IMPORTED_MODULE_7__stores_CoreBillingStore__["a" /* default */].sendFormField({
            field: "ipAddress",
            value: __WEBPACK_IMPORTED_MODULE_7__stores_CoreBillingStore__["a" /* default */].ipAddress
          });
          this.ipAddressSentStatus = true;
        }
      }

      if (__WEBPACK_IMPORTED_MODULE_1__stores_EventStore__["a" /* default */].error) {
        coreBillingContent = __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
          "div",
          { className: "center" },
          __WEBPACK_IMPORTED_MODULE_1__stores_EventStore__["a" /* default */].error
        );
      } else {
        coreBillingContent = __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
          "div",
          null,
          __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
            "form",
            { id: "formfield", onBlur: this.blurEventHandler, autoComplete: "off" },
            __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
              "div",
              { className: "margin-bot-15" },
              __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                "div",
                { className: "mob-center" },
                __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                  "h3",
                  null,
                  __WEBPACK_IMPORTED_MODULE_10__utils_langTranslator__["a" /* default */][this.state.currentLanguage].billingInfo
                ),
                __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                  "h4",
                  null,
                  "(* Required field )"
                )
              ),
              __WEBPACK_IMPORTED_MODULE_1__stores_EventStore__["a" /* default */].showCoreFirstName === true && __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                "div",
                { className: "padding-left-15" },
                __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                  "div",
                  { className: "inline-block margin-bot-15 col" },
                  __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                    "label",
                    { htmlFor: "firstName" },
                    __WEBPACK_IMPORTED_MODULE_10__utils_langTranslator__["a" /* default */][this.state.currentLanguage].firstName
                  ),
                  __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_6__components_CustomInput__["a" /* default */], {
                    id: "firstName",
                    value: this.pageState.firstName.value,
                    onChange: this.handleChange,
                    type: "text",
                    placeholder: __WEBPACK_IMPORTED_MODULE_10__utils_langTranslator__["a" /* default */][this.state.currentLanguage].firstName,
                    isValid: this.pageState.firstName.valid,
                    validator: function validator() {
                      return __WEBPACK_IMPORTED_MODULE_9__utils_validate__["a" /* default */].isNotEmpty(_this3.pageState.firstName.value);
                    },
                    required: "required"
                  })
                )
              ),
              __WEBPACK_IMPORTED_MODULE_1__stores_EventStore__["a" /* default */].showCoreLastName === true && __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                "div",
                { className: "inline-block margin-bot-15 col" },
                __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                  "label",
                  { htmlFor: "lastName" },
                  __WEBPACK_IMPORTED_MODULE_10__utils_langTranslator__["a" /* default */][this.state.currentLanguage].lastName
                ),
                __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_6__components_CustomInput__["a" /* default */], {
                  id: "lastName",
                  value: this.pageState.lastName.value,
                  onChange: this.handleChange,
                  type: "text",
                  placeholder: __WEBPACK_IMPORTED_MODULE_10__utils_langTranslator__["a" /* default */][this.state.currentLanguage].lastName,
                  isValid: this.pageState.lastName.valid,
                  validator: function validator() {
                    return __WEBPACK_IMPORTED_MODULE_9__utils_validate__["a" /* default */].isNotEmpty(_this3.pageState.lastName.value);
                  },
                  required: "required"
                })
              )
            ),
            __WEBPACK_IMPORTED_MODULE_1__stores_EventStore__["a" /* default */].showCoreAddress === true && __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
              "div",
              { className: "margin-bot-10" },
              __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("div", { className: "mob-center" }),
              __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                "div",
                { className: "inline-block margin-bot-15 col" },
                __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                  "label",
                  { htmlFor: "address1" },
                  __WEBPACK_IMPORTED_MODULE_10__utils_langTranslator__["a" /* default */][this.state.currentLanguage].addressline1
                ),
                __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_6__components_CustomInput__["a" /* default */], {
                  id: "address1",
                  value: this.pageState.address1.value,
                  onChange: this.handleChange,
                  type: "text",
                  placeholder: __WEBPACK_IMPORTED_MODULE_10__utils_langTranslator__["a" /* default */][this.state.currentLanguage].streetAddress,
                  isValid: this.pageState.address1.valid,
                  validator: function validator() {
                    return __WEBPACK_IMPORTED_MODULE_9__utils_validate__["a" /* default */].isValidStreetAddress(_this3.pageState.address1.value);
                  },
                  ruleMessage: __WEBPACK_IMPORTED_MODULE_10__utils_langTranslator__["a" /* default */][this.state.currentLanguage].enterValidAddress,
                  required: "required"
                }),
                __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                  "span",
                  { className: "sub-input" },
                  __WEBPACK_IMPORTED_MODULE_10__utils_langTranslator__["a" /* default */][this.state.currentLanguage].streetAddress
                )
              ),
              __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                "div",
                { className: "inline-block margin-bot-15 col" },
                __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                  "label",
                  { htmlFor: "address2" },
                  __WEBPACK_IMPORTED_MODULE_10__utils_langTranslator__["a" /* default */][this.state.currentLanguage].addressline2
                ),
                __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_6__components_CustomInput__["a" /* default */], {
                  id: "address2",
                  value: this.pageState.address2.value,
                  onChange: this.handleChange,
                  type: "text",
                  placeholder: __WEBPACK_IMPORTED_MODULE_10__utils_langTranslator__["a" /* default */][this.state.currentLanguage].apartmentNumber,
                  isValid: this.pageState.address2.valid,
                  validator: function validator() {
                    return __WEBPACK_IMPORTED_MODULE_9__utils_validate__["a" /* default */].isValidApartMent(_this3.pageState.address2.value);
                  }
                }),
                __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                  "span",
                  { className: "sub-input" },
                  __WEBPACK_IMPORTED_MODULE_10__utils_langTranslator__["a" /* default */][this.state.currentLanguage].apartmentNumber
                )
              ),
              __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                "div",
                { className: "margin-bot-15 col" },
                __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                  "label",
                  { htmlFor: "idZip" },
                  __WEBPACK_IMPORTED_MODULE_10__utils_langTranslator__["a" /* default */][this.state.currentLanguage].zipCode
                ),
                __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_6__components_CustomInput__["a" /* default */], {
                  id: "idZip",
                  value: this.pageState.idZip.value,
                  onChange: this.handleChange,
                  type: "text",
                  placeholder: "",
                  maxLength: "5",
                  isValid: this.pageState.idZip.valid,
                  validator: function validator() {
                    return __WEBPACK_IMPORTED_MODULE_9__utils_validate__["a" /* default */].isValidNumber(_this3.pageState.idZip.value, 5, 5);
                  },
                  ruleMessage: __WEBPACK_IMPORTED_MODULE_10__utils_langTranslator__["a" /* default */][this.state.currentLanguage].fiveDigitZipCode,
                  required: "required"
                })
              )
            ),
            __WEBPACK_IMPORTED_MODULE_1__stores_EventStore__["a" /* default */].showCoreSSN === true && __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
              "div",
              { className: "margin-bot-10" },
              __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("div", { className: "mob-center" }),
              __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                "div",
                { className: "inline-block margin-bot-15 col" },
                __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                  "label",
                  { htmlFor: "SSN" },
                  __WEBPACK_IMPORTED_MODULE_10__utils_langTranslator__["a" /* default */][this.state.currentLanguage].ssn,
                  "*"
                ),
                __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_6__components_CustomInput__["a" /* default */], {
                  id: "SSN",
                  placeholder: "SSN",
                  value: this.pageState.SSN.value,
                  onChange: this.handleChange,
                  type: "password",
                  maxLength: "9",
                  ruleMessage: __WEBPACK_IMPORTED_MODULE_10__utils_langTranslator__["a" /* default */][this.state.currentLanguage].nineDigitSsn,
                  isValid: this.pageState.SSN.valid,
                  validator: function validator() {
                    return __WEBPACK_IMPORTED_MODULE_9__utils_validate__["a" /* default */].isValidNumber(_this3.pageState.SSN.value, 9, 9);
                  },
                  required: "required"
                })
              ),
              __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                "div",
                { className: "inline-block margin-bot-15 col" },
                __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                  "label",
                  { htmlFor: "confirmSSN" },
                  __WEBPACK_IMPORTED_MODULE_10__utils_langTranslator__["a" /* default */][this.state.currentLanguage].confirmSSN
                ),
                __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_6__components_CustomInput__["a" /* default */], {
                  id: "confirmSSN",
                  placeholder: "Confirm SSN",
                  value: this.pageState.confirmSSN.value,
                  onChange: this.handleChange,
                  type: "password",
                  maxLength: "9",
                  ruleMessage: __WEBPACK_IMPORTED_MODULE_10__utils_langTranslator__["a" /* default */][this.state.currentLanguage].ssnMatch,
                  isValid: this.pageState.confirmSSN.valid,
                  validator: function validator() {
                    return __WEBPACK_IMPORTED_MODULE_9__utils_validate__["a" /* default */].isMatching(_this3.pageState.SSN.value, _this3.pageState.confirmSSN.value);
                  },
                  required: "required"
                })
              )
            ),
            __WEBPACK_IMPORTED_MODULE_1__stores_EventStore__["a" /* default */].showCoreDOB === true && __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
              "div",
              { className: "inline-block margin-bot-15 col" },
              __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                "label",
                { htmlFor: "dateOfBirth" },
                __WEBPACK_IMPORTED_MODULE_10__utils_langTranslator__["a" /* default */][this.state.currentLanguage].dob
              ),
              __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_6__components_CustomInput__["a" /* default */], {
                id: "dateOfBirth",
                placeholder: __WEBPACK_IMPORTED_MODULE_10__utils_langTranslator__["a" /* default */][this.state.currentLanguage].dob,
                value: this.pageState.dateOfBirth.value,
                onChange: this.handleChange,
                onKeyUp: this.handleChangekey,
                type: "text",
                maxLength: "10",
                isValid: this.pageState.dateOfBirth.valid,
                validator: function validator() {
                  return __WEBPACK_IMPORTED_MODULE_9__utils_validate__["a" /* default */].isValidDate(_this3.pageState.dateOfBirth.value);
                },
                ruleMessage: __WEBPACK_IMPORTED_MODULE_10__utils_langTranslator__["a" /* default */][this.state.currentLanguage].specifiedDateFormat,
                required: "required"
              }),
              __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                "span",
                { className: "sub-input" },
                __WEBPACK_IMPORTED_MODULE_10__utils_langTranslator__["a" /* default */][this.state.currentLanguage].dateFormat
              )
            ),
            __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
              "div",
              null,
              __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("input", { id: "button", value: "Submit and Return to Checkout", className: "credit_button button margin-h-15 ",

                disabled: !this.state.isFormValid,

                onClick: function onClick() {
                  return window.close();
                }
                // onClick={() => this.props.history.push("/checkout")
              })
            )
          ),
          __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
            "div",
            { className: "corebilling_footer" },
            __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
              "div",
              null,
              __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                "p",
                { className: "footer big-text" },
                "Please do not close this window"
              )
            )
          )
        );
      }
      return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
        "div",
        { className: "padding-bot-50" },
        __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_4__components_PageHeader__["a" /* default */], {
          title: __WEBPACK_IMPORTED_MODULE_10__utils_langTranslator__["a" /* default */][this.state.currentLanguage].billingAndCreditInfo
        }),
        coreBillingContent,
        __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_5__components_PageFooter__["a" /* default */], null)
      );
    }
  }, {
    key: "componentWillMount",
    value: function componentWillMount() {
      this.state = {
        currentLanguage: 0,
        isFormValid: false
      };

      if (sessionStorage.getItem("z") == "y") {
        this.setState({ currentLanguage: 1 });
      }
    }
  }, {
    key: "componentDidMount",
    value: function componentDidMount() {
      try {
        this.naviInfo = {
          userAgent: window.navigator.userAgent,
          cookieEnabled: window.navigator.cookieEnabled ? 'true' : 'false',
          href: window.location.href,
          errorInfo: "Mobile client loaded app.",
          clientID: __WEBPACK_IMPORTED_MODULE_8__utils_utils__["a" /* default */].getReceivePrefix() + __WEBPACK_IMPORTED_MODULE_8__utils_utils__["a" /* default */].getID()
        };
        __WEBPACK_IMPORTED_MODULE_7__stores_CoreBillingStore__["a" /* default */].loggingService(this.naviInfo);
      } catch (err) {
        console.log("Error in Core Billing pag");
      }
      if (__WEBPACK_IMPORTED_MODULE_1__stores_EventStore__["a" /* default */].pollingStarted && __WEBPACK_IMPORTED_MODULE_1__stores_EventStore__["a" /* default */].killPolling) {
        setTimeout(function () {
          __WEBPACK_IMPORTED_MODULE_1__stores_EventStore__["a" /* default */].resetPolling();
        }, 1000);
      }
    }
  }, {
    key: "componentWillUnmount",
    value: function componentWillUnmount() {
      this.endReaction();
    }
  }]);

  return CoreBillingPage;
}(__WEBPACK_IMPORTED_MODULE_0_react___default.a.Component), (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "ipAddressSentStatus", [__WEBPACK_IMPORTED_MODULE_3_mobx__["b" /* observable */]], {
  enumerable: true,
  initializer: function initializer() {
    return false;
  }
}), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "pageState", [__WEBPACK_IMPORTED_MODULE_3_mobx__["b" /* observable */]], {
  enumerable: true,
  initializer: function initializer() {
    return {
      firstName: {
        value: "",
        valid: false,
        changed: false
      },
      lastName: {
        value: "",
        valid: false,
        changed: false
      },
      SSN: {
        value: "",
        valid: false,
        changed: false,
        customSend: function customSend(ssn) {
          __WEBPACK_IMPORTED_MODULE_7__stores_CoreBillingStore__["a" /* default */].sendFormField({
            field: "SSN",
            value: __WEBPACK_IMPORTED_MODULE_8__utils_utils__["a" /* default */].getEncrypt() ? __WEBPACK_IMPORTED_MODULE_8__utils_utils__["a" /* default */].pieProtectSPI(ssn) : ssn
          });
        }
      },
      confirmSSN: {
        value: "",
        valid: false,
        changed: false,
        customSend: function customSend(confirmSSN) {
          __WEBPACK_IMPORTED_MODULE_7__stores_CoreBillingStore__["a" /* default */].sendFormField({
            field: "confirmSSN",
            value: __WEBPACK_IMPORTED_MODULE_8__utils_utils__["a" /* default */].getEncrypt() ? __WEBPACK_IMPORTED_MODULE_8__utils_utils__["a" /* default */].pieProtectSPI(confirmSSN) : confirmSSN
          });
        }
      },
      dateOfBirth: {
        value: "",
        valid: false,
        changed: false,
        formatValue: function formatValue(value) {
          return value.replace(/\//g, "");
        }
      },

      address1: {
        value: "",
        valid: false,
        changed: false,
        customSend: function customSend(streetAddress) {
          var num = streetAddress.substr(0, streetAddress.indexOf(" ")),
              name = streetAddress.substr(streetAddress.indexOf(" ") + 1);
          __WEBPACK_IMPORTED_MODULE_7__stores_CoreBillingStore__["a" /* default */].sendFormField({
            field: "streetNumber",
            value: num
          });
          __WEBPACK_IMPORTED_MODULE_7__stores_CoreBillingStore__["a" /* default */].sendFormField({
            field: "streetName",
            value: name
          });
        }
      },
      address2: {
        value: "",
        valid: true,
        changed: false,
        customSend: function customSend(num) {
          __WEBPACK_IMPORTED_MODULE_7__stores_CoreBillingStore__["a" /* default */].sendFormField({
            field: "apartment",
            value: num
          });
        }
      },
      idZip: {
        value: "",
        valid: false,
        changed: false
      }

    };
  }
})), _class2)) || _class;



/***/ }),

/***/ 340:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return CreditCheckConsenttPage; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__stores_EventStore__ = __webpack_require__(10);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_mobx__ = __webpack_require__(6);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_mobx_react__ = __webpack_require__(16);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__components_PageHeader__ = __webpack_require__(15);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__components_PageFooter__ = __webpack_require__(14);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__components_SignatureCapture__ = __webpack_require__(71);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__stores_CustomerConsentStore__ = __webpack_require__(353);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__utils_utils__ = __webpack_require__(4);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__components_CustomInput__ = __webpack_require__(23);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__utils_validate__ = __webpack_require__(31);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__utils_langTranslator__ = __webpack_require__(18);
var _createClass = function () { function 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); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();

var _class, _desc, _value, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9;

function _initDefineProp(target, property, descriptor, context) {
    if (!descriptor) return;
    Object.defineProperty(target, property, {
        enumerable: descriptor.enumerable,
        configurable: descriptor.configurable,
        writable: descriptor.writable,
        value: descriptor.initializer ? descriptor.initializer.call(context) : void 0
    });
}

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 _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 _applyDecoratedDescriptor(target, property, decorators, descriptor, context) {
    var desc = {};
    Object['ke' + 'ys'](descriptor).forEach(function (key) {
        desc[key] = descriptor[key];
    });
    desc.enumerable = !!desc.enumerable;
    desc.configurable = !!desc.configurable;

    if ('value' in desc || desc.initializer) {
        desc.writable = true;
    }

    desc = decorators.slice().reverse().reduce(function (desc, decorator) {
        return decorator(target, property, desc) || desc;
    }, desc);

    if (context && desc.initializer !== void 0) {
        desc.value = desc.initializer ? desc.initializer.call(context) : void 0;
        desc.initializer = undefined;
    }

    if (desc.initializer === void 0) {
        Object['define' + 'Property'](target, property, desc);
        desc = null;
    }

    return desc;
}

function _initializerWarningHelper(descriptor, context) {
    throw new Error('Decorating class property failed. Please ensure that transform-class-properties is enabled.');
}















var CreditCheckConsenttPage = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3_mobx_react__["a" /* observer */])(_class = (_class2 = function (_React$Component) {
    _inherits(CreditCheckConsenttPage, _React$Component);

    function CreditCheckConsenttPage() {
        _classCallCheck(this, CreditCheckConsenttPage);

        var _this = _possibleConstructorReturn(this, (CreditCheckConsenttPage.__proto__ || Object.getPrototypeOf(CreditCheckConsenttPage)).call(this));

        _initDefineProp(_this, 'signatureSubmitted', _descriptor, _this);

        _initDefineProp(_this, 'bodyText', _descriptor2, _this);

        _initDefineProp(_this, 'headerTitle', _descriptor3, _this);

        _initDefineProp(_this, 'signatureMessage', _descriptor4, _this);

        _initDefineProp(_this, 'unformattedSSN', _descriptor5, _this);

        _initDefineProp(_this, 'encryptedSSN', _descriptor6, _this);

        _initDefineProp(_this, 'dateOfBirth', _descriptor7, _this);

        _initDefineProp(_this, 'hasValidationDone', _descriptor8, _this);

        _initDefineProp(_this, 'pageState', _descriptor9, _this);

        _this.setupPage = function () {
            _this.signatureSubmitted = false;
            _this.bodyText = '';
            _this.headerTitle = '';
            _this.signatureMessage = '';

            _this.unformattedSSN = '';
            _this.encryptedSSNp = '';
            _this.dateOfBirth = '';

            if (__WEBPACK_IMPORTED_MODULE_1__stores_EventStore__["a" /* default */].eventObj.payload.agreementData) {
                _this.bodyText = __WEBPACK_IMPORTED_MODULE_1__stores_EventStore__["a" /* default */].eventObj.payload.agreementData;
                _this.headerTitle = __WEBPACK_IMPORTED_MODULE_1__stores_EventStore__["a" /* default */].eventObj.payload.headerTitle;
            }
        };

        _this.endReaction = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_2_mobx__["a" /* reaction */])(function () {
            return __WEBPACK_IMPORTED_MODULE_1__stores_EventStore__["a" /* default */].eventObj;
        }, function () {
            if (__WEBPACK_IMPORTED_MODULE_1__stores_EventStore__["a" /* default */].eventObj.event === 'pageNavigation' && __WEBPACK_IMPORTED_MODULE_1__stores_EventStore__["a" /* default */].eventObj.payload.pageName === 'creditCheckConsentPage') {
                _this.setupPage();
            }
        });

        _this.submitSignature = function (sig) {

            console.log("CreditCheckConsentPage.submitCustomerInfo called");
            if (_this.validateFields() === true) {

                _this.encryptedSSN = __WEBPACK_IMPORTED_MODULE_8__utils_utils__["a" /* default */].getEncrypt() ? __WEBPACK_IMPORTED_MODULE_8__utils_utils__["a" /* default */].pieProtectSPI(_this.unformattedSSN) : _this.unformattedSSN;
                __WEBPACK_IMPORTED_MODULE_7__stores_CustomerConsentStore__["a" /* default */].submitCustomerInfo(sig.slice(22), _this.encryptedSSN, _this.dateOfBirth).then(function () {
                    this.signatureMessage = 'Signature has been processed.';
                    this.signatureSubmitted = true;
                }.bind(_this)).catch(function (error) {
                    this.signatureMessage = error.message || "Error Occured.";
                    this.signatureSubmitted = true;
                }.bind(_this));
            } else {
                console.log("CreditCheckConsentPage.submitSignature Not validated");
            }
        };

        _this.setupPage();

        _this.handleChange = _this.handleChange.bind(_this);
        _this.handleBlur = _this.handleBlur.bind(_this);

        _this.keyPressFunc = _this.keyPressFunc.bind(_this);

        //Maintaining dateOfBirth state: Maintain inputting date while keying in DateofBirth field
        _this.state = {
            value: ''
        };
        _this.hasValidationDone = false;

        return _this;
    }

    _createClass(CreditCheckConsenttPage, [{
        key: 'keyPressFunc',
        value: function keyPressFunc(event) {
            if (event.target.id === 'dateOfBirth') {
                if (event.which === 8) {
                    var val = this.state.value;
                    console.log(val);
                    if (val.length == 3 || val.length == 6) {
                        val = val.slice(0, val.length - 1);
                        this.setState({ value: val });
                    }
                }
            }
        }
    }, {
        key: 'validateDOB',
        value: function validateDOB(doBirth) {

            if (!__WEBPACK_IMPORTED_MODULE_10__utils_validate__["a" /* default */].isValidDate(doBirth)) {
                return false;
            }
            var allowedDobYearList = this.getDobYears();
            var allowedDobYearString = allowedDobYearList.join();
            var dobYear = doBirth.substring(doBirth.lastIndexOf("/") + 1);

            if (allowedDobYearString.length > 0) {
                var maxYear = allowedDobYearList[0];
                var minYear = allowedDobYearList[allowedDobYearList.length - 1];

                if (dobYear >= minYear && dobYear <= maxYear) {
                    return true;
                } else {
                    return false;
                }
            }
            return true;
        }

        /**
            * Gets array of 110 years to present.
            * @note: for individual credit only
             * @private
        */

    }, {
        key: 'getDobYears',
        value: function getDobYears() {
            var years = [],
                presentYear = new Date().getFullYear(),
                endYear = presentYear - 18,
                index = 0;

            years.push(endYear);

            for (; index < 82; index++) {
                endYear -= 1;
                years.push(endYear);
            }

            return years;
        }
    }, {
        key: 'validateSSN',
        value: function validateSSN(ssnValue) {
            var dummySSN = ['123456789'];

            if (ssnValue.length >= 9 && ssnValue.match("^([0-9])\\1*$") != null) {
                return false;
            }
            if (dummySSN.indexOf(ssnValue) > -1) {
                return false;
            }
            return true;
        }
    }, {
        key: 'validateFields',
        value: function validateFields() {

            if (this.pageState['SSN'].valid === false) {

                document.getElementById('SSN').focus();
                this.refs.displayValidationError.innerHTML = "`<span style=\"color:red;\">`" + __WEBPACK_IMPORTED_MODULE_11__utils_langTranslator__["a" /* default */][this.state.currentLanguage].missingInfoSSN + "`</span>`";
                return false;
            }
            if (this.pageState['ssnConf'].valid === false) {
                document.getElementById('ssnConf').focus();
                this.refs.displayValidationError.innerHTML = "`<span style=\"color:red;\">`" + __WEBPACK_IMPORTED_MODULE_11__utils_langTranslator__["a" /* default */][this.state.currentLanguage].missingInfoConfirmSSN + "`</span>`";

                return false;
            }
            if (this.pageState['dateOfBirth'].valid === false) {
                document.getElementById('dateOfBirth').focus();
                this.refs.displayValidationError.innerHTML = "`<span style=\"color:red;\">`" + __WEBPACK_IMPORTED_MODULE_11__utils_langTranslator__["a" /* default */][this.state.currentLanguage].missingInfoDob + "`</span>`";

                return false;
            }

            return true;
        }
    }, {
        key: 'handleChange',
        value: function handleChange(event, validator) {

            if (event.target.id === 'dateOfBirth') {
                var val = event.target.value;
                if (val.length === 2) {
                    val += '/';
                } else if (val.length === 5) {
                    val += '/';
                }
                this.setState({
                    value: val
                });
            }
            this.pageState[event.target.id].value = event.target.value;
            if (typeof validator === 'function') {
                this.pageState[event.target.id].valid = validator();
            }
            this.pageState[event.target.id].changed = true;

            if (this.pageState['SSN'].valid === true) {
                this.refs.displayValidationError.innerHTML = "";
            }
            if (this.pageState['ssnConf'].valid === true) {
                this.refs.displayValidationError.innerHTML = "";
            }
            if (this.pageState['dateOfBirth'].valid === true) {
                this.refs.displayValidationError.innerHTML = "";
            }
        }
    }, {
        key: 'handleBlur',
        value: function handleBlur(event, validator) {

            if (this.pageState[event.target.id].valid === true && this.pageState[event.target.id].changed === true) {

                if (event.target.id === 'SSN') {
                    if (!this.validateSSN(this.pageState[event.target.id].value)) {
                        this.refs.displayValidationError.innerHTML = "<span style=\"color:red;\"> '" + this.pageState[event.target.id].value + " " + __WEBPACK_IMPORTED_MODULE_11__utils_langTranslator__["a" /* default */][this.state.currentLanguage].invalidSSN + "'</span>`";
                        this.pageState['SSN'].value = "";
                        document.getElementById('SSN').focus();
                        this.pageState['SSN'].valid = false;
                        return false;
                    }
                }

                if (event.target.id === 'dateOfBirth') {
                    if (!this.validateDOB(this.pageState[event.target.id].value)) {
                        this.refs.displayValidationError.innerHTML = "<span style=\"color:red;\">'" + this.pageState[event.target.id].value + " " + __WEBPACK_IMPORTED_MODULE_11__utils_langTranslator__["a" /* default */][this.state.currentLanguage].invalidAge + "'</span>`";
                        this.state.value = "";
                        document.getElementById('dateOfBirth').focus();
                        this.pageState['dateOfBirth'].valid = false;

                        return false;
                    }
                }

                if (event.target.id === 'SSN' || event.target.id === 'ssnConf') {

                    var unformattedSSN = this.pageState[event.target.id].value;

                    if (unformattedSSN.slice(-1) != "X") {
                        this.unformattedSSN = unformattedSSN;
                        this.pageState[event.target.id].value = 'XXX-XX-XXXX';
                    }
                }
                if (event.target.id === 'dateOfBirth') {
                    this.dateOfBirth = this.pageState[event.target.id].value;
                }
            }

            if (this.pageState['SSN'].valid === true && this.pageState['ssnConf'].valid === true && this.pageState['dateOfBirth'].valid === true && this.refs.signatureCaptureConsent.canvasClicked) {
                this.refs.signatureCaptureConsent.enableButtons();
            }
        }
    }, {
        key: 'render',
        value: function render() {
            var _this2 = this;

            var value = this.state.value;

            var mainContent;
            var submitedContent;

            mainContent = __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                'div',
                null,
                __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                    'form',
                    { autoComplete: 'off' },
                    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                        'div',
                        { onBlur: this.handleBlur, onKeyUp: this.keyPressFunc, className: 'margin-bot-10' },
                        __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                            'div',
                            { className: 'padding-left-10' },
                            __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                'div',
                                { className: 'inline-block margin-bot-15 col' },
                                __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                    'label',
                                    { htmlFor: 'SSN' },
                                    __WEBPACK_IMPORTED_MODULE_11__utils_langTranslator__["a" /* default */][this.state.currentLanguage].ssn,
                                    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                        'abbr',
                                        { title: 'required' },
                                        '*'
                                    ),
                                    ' '
                                ),
                                __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_9__components_CustomInput__["a" /* default */], { id: 'SSN',
                                    placeholder: __WEBPACK_IMPORTED_MODULE_11__utils_langTranslator__["a" /* default */][this.state.currentLanguage].ssn,
                                    value: this.pageState.SSN.value,
                                    onChange: this.handleChange,
                                    type: 'text',
                                    maxLength: '9',
                                    ruleMessage: __WEBPACK_IMPORTED_MODULE_11__utils_langTranslator__["a" /* default */][this.state.currentLanguage].nineDigitSsn,
                                    isValid: this.pageState.SSN.valid,
                                    validator: function validator() {
                                        _this2.pageState.ssnConf.value = '';return __WEBPACK_IMPORTED_MODULE_10__utils_validate__["a" /* default */].isValidNumber(_this2.pageState.SSN.value, 9, 9);
                                    },
                                    required: 'required',
                                    autoComplete: 'off'

                                })
                            ),
                            __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                'div',
                                { className: 'inline-block margin-bot-15 col' },
                                __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                    'label',
                                    { htmlFor: 'ssnConf' },
                                    __WEBPACK_IMPORTED_MODULE_11__utils_langTranslator__["a" /* default */][this.state.currentLanguage].confirmSSN,
                                    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                        'abbr',
                                        { title: 'required' },
                                        '*'
                                    )
                                ),
                                __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_9__components_CustomInput__["a" /* default */], { id: 'ssnConf', placeholder: __WEBPACK_IMPORTED_MODULE_11__utils_langTranslator__["a" /* default */][this.state.currentLanguage].confirmSSN,
                                    value: this.pageState.ssnConf.value,
                                    onChange: this.handleChange,
                                    type: 'text',
                                    maxLength: '9',
                                    ruleMessage: __WEBPACK_IMPORTED_MODULE_11__utils_langTranslator__["a" /* default */][this.state.currentLanguage].ssnDoNotMatch,
                                    isValid: this.pageState.ssnConf.valid,
                                    validator: function validator() {
                                        return __WEBPACK_IMPORTED_MODULE_10__utils_validate__["a" /* default */].isMatching(_this2.pageState.ssnConf.value, _this2.unformattedSSN);
                                    },
                                    disable: this.pageState.SSN.valid === false,
                                    required: 'required',
                                    autoComplete: 'off'
                                })
                            ),
                            __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                'div',
                                { className: 'inline-block margin-bot-15 col' },
                                __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                    'label',
                                    { htmlFor: 'dateOfBirth' },
                                    __WEBPACK_IMPORTED_MODULE_11__utils_langTranslator__["a" /* default */][this.state.currentLanguage].dob,
                                    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                        'abbr',
                                        { title: 'required' },
                                        '*'
                                    )
                                ),
                                __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_9__components_CustomInput__["a" /* default */], { id: 'dateOfBirth',
                                    placeholder: __WEBPACK_IMPORTED_MODULE_11__utils_langTranslator__["a" /* default */][this.state.currentLanguage].dob,
                                    value: value,
                                    onChange: this.handleChange,
                                    type: 'text',
                                    maxLength: '10',
                                    isValid: this.pageState.dateOfBirth.valid,
                                    validator: function validator() {
                                        return __WEBPACK_IMPORTED_MODULE_10__utils_validate__["a" /* default */].isValidDate(_this2.pageState.dateOfBirth.value);
                                    },
                                    ruleMessage: __WEBPACK_IMPORTED_MODULE_11__utils_langTranslator__["a" /* default */][this.state.currentLanguage].specifiedDateFormat,
                                    required: 'required'
                                }),
                                __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                    'span',
                                    { className: 'sub-input' },
                                    __WEBPACK_IMPORTED_MODULE_11__utils_langTranslator__["a" /* default */][this.state.currentLanguage].dateFormat
                                )
                            )
                        )
                    )
                ),
                __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement('div', { className: 'center', ref: 'displayValidationError' }),
                __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                    'div',
                    { className: 'center' },
                    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_6__components_SignatureCapture__["a" /* default */], { ref: 'signatureCaptureConsent', sigID: 'signature', submitSig: this.submitSignature, tncAccepts: true })
                )
            );

            submitedContent = __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                'div',
                null,
                ' ',
                __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                    'h2',
                    { className: 'margin-top-50 center' },
                    this.signatureMessage
                ),
                ' '
            );

            return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                'div',
                null,
                __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_4__components_PageHeader__["a" /* default */], { title: this.headerTitle }),
                __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement('div', { dangerouslySetInnerHTML: { __html: this.bodyText } }),
                this.signatureSubmitted ? submitedContent : mainContent,
                __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_5__components_PageFooter__["a" /* default */], null)
            );
        }
    }, {
        key: 'componentWillUnmount',
        value: function componentWillUnmount() {
            this.endReaction();
        }
    }, {
        key: 'componentWillMount',
        value: function componentWillMount() {

            this.state = {
                currentLanguage: 0
            };
            if (sessionStorage.getItem('z') == 'y') {
                this.setState({ currentLanguage: 1 });
            }
        }
    }]);

    return CreditCheckConsenttPage;
}(__WEBPACK_IMPORTED_MODULE_0_react___default.a.Component), (_descriptor = _applyDecoratedDescriptor(_class2.prototype, 'signatureSubmitted', [__WEBPACK_IMPORTED_MODULE_2_mobx__["b" /* observable */]], {
    enumerable: true,
    initializer: function initializer() {
        return false;
    }
}), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, 'bodyText', [__WEBPACK_IMPORTED_MODULE_2_mobx__["b" /* observable */]], {
    enumerable: true,
    initializer: null
}), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, 'headerTitle', [__WEBPACK_IMPORTED_MODULE_2_mobx__["b" /* observable */]], {
    enumerable: true,
    initializer: null
}), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, 'signatureMessage', [__WEBPACK_IMPORTED_MODULE_2_mobx__["b" /* observable */]], {
    enumerable: true,
    initializer: null
}), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, 'unformattedSSN', [__WEBPACK_IMPORTED_MODULE_2_mobx__["b" /* observable */]], {
    enumerable: true,
    initializer: null
}), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, 'encryptedSSN', [__WEBPACK_IMPORTED_MODULE_2_mobx__["b" /* observable */]], {
    enumerable: true,
    initializer: null
}), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, 'dateOfBirth', [__WEBPACK_IMPORTED_MODULE_2_mobx__["b" /* observable */]], {
    enumerable: true,
    initializer: null
}), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, 'hasValidationDone', [__WEBPACK_IMPORTED_MODULE_2_mobx__["b" /* observable */]], {
    enumerable: true,
    initializer: null
}), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, 'pageState', [__WEBPACK_IMPORTED_MODULE_2_mobx__["b" /* observable */]], {
    enumerable: true,
    initializer: function initializer() {
        return {
            SSN: {
                value: '',
                valid: false,
                changed: false
            },
            ssnConf: {
                value: '',
                valid: false,
                changed: false
            },
            dateOfBirth: {
                value: '',
                valid: false,
                changed: false,
                formatValue: function formatValue(value) {
                    return value.replace(/\//g, '');
                }
            }
        };
    }
})), _class2)) || _class;



/***/ }),

/***/ 341:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return CustomerNBSPage; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_moment__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_moment___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_moment__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__stores_EventStore__ = __webpack_require__(10);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_mobx__ = __webpack_require__(6);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_mobx_react__ = __webpack_require__(16);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__components_TextViewer__ = __webpack_require__(72);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__components_PageHeader__ = __webpack_require__(15);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__components_PageFooter__ = __webpack_require__(14);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__stores_CustomerNBSStore__ = __webpack_require__(354);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__utils_utils__ = __webpack_require__(4);
var _createClass = function () { function 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); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();

var _class, _desc, _value, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4;

function _initDefineProp(target, property, descriptor, context) {
    if (!descriptor) return;
    Object.defineProperty(target, property, {
        enumerable: descriptor.enumerable,
        configurable: descriptor.configurable,
        writable: descriptor.writable,
        value: descriptor.initializer ? descriptor.initializer.call(context) : void 0
    });
}

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 _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 _applyDecoratedDescriptor(target, property, decorators, descriptor, context) {
    var desc = {};
    Object['ke' + 'ys'](descriptor).forEach(function (key) {
        desc[key] = descriptor[key];
    });
    desc.enumerable = !!desc.enumerable;
    desc.configurable = !!desc.configurable;

    if ('value' in desc || desc.initializer) {
        desc.writable = true;
    }

    desc = decorators.slice().reverse().reduce(function (desc, decorator) {
        return decorator(target, property, desc) || desc;
    }, desc);

    if (context && desc.initializer !== void 0) {
        desc.value = desc.initializer ? desc.initializer.call(context) : void 0;
        desc.initializer = undefined;
    }

    if (desc.initializer === void 0) {
        Object['define' + 'Property'](target, property, desc);
        desc = null;
    }

    return desc;
}

function _initializerWarningHelper(descriptor, context) {
    throw new Error('Decorating class property failed. Please ensure that transform-class-properties is enabled.');
}












var CustomerNBSPage = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_4_mobx_react__["a" /* observer */])(_class = (_class2 = function (_React$Component) {
    _inherits(CustomerNBSPage, _React$Component);

    function CustomerNBSPage() {
        _classCallCheck(this, CustomerNBSPage);

        var _this = _possibleConstructorReturn(this, (CustomerNBSPage.__proto__ || Object.getPrototypeOf(CustomerNBSPage)).call(this));

        _initDefineProp(_this, "title", _descriptor, _this);

        _initDefineProp(_this, "post", _descriptor2, _this);

        _initDefineProp(_this, "messageHTML", _descriptor3, _this);

        _initDefineProp(_this, "ipAddressSentStatus", _descriptor4, _this);

        _this.setupPage = function () {
            _this.title = "Verizon";
            if (__WEBPACK_IMPORTED_MODULE_2__stores_EventStore__["a" /* default */].eventObj.payload.headerTitle) {
                //this.title = EventStore.eventObj.payload.headerTitle;
            }
            if (__WEBPACK_IMPORTED_MODULE_2__stores_EventStore__["a" /* default */].eventObj.payload.nbsData && __WEBPACK_IMPORTED_MODULE_9__utils_utils__["a" /* default */].getID().match(/NBSACSSSEND/g)) {
                _this.spinner = false;
                _this.loaded = false;
                var htmlResponse = __WEBPACK_IMPORTED_MODULE_2__stores_EventStore__["a" /* default */].eventObj.payload.nbsData.slice(0, -3);
                var extractedScript = /<script>(.+)<\/script>/gi.exec(htmlResponse);
                _this.setState({ report: htmlResponse });
                _this.setState({ reportScript: extractedScript });
            }
            if (__WEBPACK_IMPORTED_MODULE_2__stores_EventStore__["a" /* default */].eventObj.payload.nbsData && __WEBPACK_IMPORTED_MODULE_9__utils_utils__["a" /* default */].getID().match(/NBSWHATIFSEND/g)) {
                _this.spinner = false;
                _this.loaded = false;
                _this.messageHTML = __WEBPACK_IMPORTED_MODULE_2__stores_EventStore__["a" /* default */].eventObj.payload.nbsData.slice(0, -3).replace('href="#"', "");
            }
        };

        _this.endReaction = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3_mobx__["a" /* reaction */])(function () {
            return __WEBPACK_IMPORTED_MODULE_2__stores_EventStore__["a" /* default */].eventObj;
        }, function () {
            if (__WEBPACK_IMPORTED_MODULE_2__stores_EventStore__["a" /* default */].eventObj.event === 'pageNavigation' && __WEBPACK_IMPORTED_MODULE_2__stores_EventStore__["a" /* default */].eventObj.payload.pageName === 'lovnbs') {
                _this.setupPage();
            }
        });

        _this.handleSubmitButton = function () {
            __WEBPACK_IMPORTED_MODULE_8__stores_CustomerNBSStore__["a" /* default */].lovNBSsubmit();
            if (__WEBPACK_IMPORTED_MODULE_9__utils_utils__["a" /* default */].getID().match(/NBSACSSSEND/g)) {
                _this.setState({ scriptToStop: false });
            }
        };

        _this.redirectOnError = function () {
            var encodedURL = __WEBPACK_IMPORTED_MODULE_9__utils_utils__["a" /* default */].getCustomerNBSID();
            var decodedURL = atob(encodedURL);
            window.location.href = decodedURL;
        };

        _this.setupPage();
        _this.loaded = true;
        _this.tncSubmitted = false;
        __WEBPACK_IMPORTED_MODULE_8__stores_CustomerNBSStore__["a" /* default */].fetchIPAddress();
        return _this;
    }

    _createClass(CustomerNBSPage, [{
        key: "setuplovnbsRequest",
        value: function setuplovnbsRequest() {
            sessionStorage.setItem("effectiveDate", eventObj.payload.effectiveDate);
            sessionStorage.setItem("emailId", eventObj.payload.emailId);
            sessionStorage.setItem("mtn", eventObj.payload.mtn);
        }
    }, {
        key: "render",
        value: function render() {
            var customerNBS = void 0;
            var mtn = void 0;
            var effectiveDate = void 0;

            if (__WEBPACK_IMPORTED_MODULE_8__stores_CustomerNBSStore__["a" /* default */].msg === "Success") {
                __WEBPACK_IMPORTED_MODULE_8__stores_CustomerNBSStore__["a" /* default */].sendFormField({
                    pageName: "submit"
                });
                if (sessionStorage.getItem("mtn")) {
                    var mtnStored = sessionStorage.getItem("mtn");
                    mtn = mtnStored.replace(/[^\d]+/g, '').replace(/(\d{3})(\d{3})(\d{4})/, 'xxx-xxx-$3');
                };
                if (sessionStorage.getItem("effectiveDate")) {
                    var newEffectiveDate = sessionStorage.getItem("effectiveDate");
                    effectiveDate = __WEBPACK_IMPORTED_MODULE_1_moment___default()(newEffectiveDate, "MM/DD/YYYY").format("MMMM DD");
                };
                this.post = __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                    "div",
                    { className: "inline-block padding-left-10 col" },
                    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                        "div",
                        { className: "margin-bot-10" },
                        __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                            "h2",
                            null,
                            "You're all set."
                        )
                    ),
                    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                        "div",
                        { className: "margin-bot-15 margin-top-15" },
                        "Changes take effect on the first day of your next billing cycle on ",
                        effectiveDate,
                        "."
                    ),
                    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                        "div",
                        { className: "margin-bot-15 margin-top-15" },
                        "We've also sent a confirmation to ",
                        sessionStorage.getItem("emailId"),
                        " with all the details on your new plans.",
                        __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                            "div",
                            null,
                            "A text confirmation was also sent to ",
                            mtn
                        )
                    )
                );
                this.tncSubmitted = true;
            } else if (__WEBPACK_IMPORTED_MODULE_8__stores_CustomerNBSStore__["a" /* default */].msg) {
                window.alert("Error Processing Request");
                this.tncSubmitted = false;
            }

            if (!this.ipAddressSentStatus && __WEBPACK_IMPORTED_MODULE_8__stores_CustomerNBSStore__["a" /* default */].msg === "") {
                if (!__WEBPACK_IMPORTED_MODULE_8__stores_CustomerNBSStore__["a" /* default */].loading && !__WEBPACK_IMPORTED_MODULE_8__stores_CustomerNBSStore__["a" /* default */].error && __WEBPACK_IMPORTED_MODULE_8__stores_CustomerNBSStore__["a" /* default */].ipAddress) {
                    console.log("IPaddress" + __WEBPACK_IMPORTED_MODULE_8__stores_CustomerNBSStore__["a" /* default */].ipAddress);
                    __WEBPACK_IMPORTED_MODULE_8__stores_CustomerNBSStore__["a" /* default */].sendFormField({
                        field: "ipAddress",
                        value: __WEBPACK_IMPORTED_MODULE_8__stores_CustomerNBSStore__["a" /* default */].ipAddress
                    });
                    this.ipAddressSentStatus = true;
                }
            }

            if ((__WEBPACK_IMPORTED_MODULE_2__stores_EventStore__["a" /* default */].error || __WEBPACK_IMPORTED_MODULE_2__stores_EventStore__["a" /* default */].sessionEnd || !__WEBPACK_IMPORTED_MODULE_9__utils_utils__["a" /* default */].getID()) && __WEBPACK_IMPORTED_MODULE_9__utils_utils__["a" /* default */].getCustomerNBSID()) {
                customerNBS = __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                    "div",
                    null,
                    this.redirectOnError()
                );
            } else if (__WEBPACK_IMPORTED_MODULE_9__utils_utils__["a" /* default */].getID().match(/NBSACSSSEND/g)) {
                customerNBS = __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                    "div",
                    null,
                    this.tncSubmitted ? __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                        "div",
                        { className: "margin-top-50 center" },
                        this.post
                    ) : __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                        "div",
                        null,
                        __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                            "div",
                            { className: "center" },
                            __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("div", { dangerouslySetInnerHTML: { __html: this.state.report } })
                        ),
                        __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                            "div",
                            { className: "margin-bot-15" },
                            __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("input", { type: "button", className: "button margin-h-15 NBS_submit_button", value: "Submit", onClick: this.handleSubmitButton })
                        )
                    )
                );
            } else if (__WEBPACK_IMPORTED_MODULE_9__utils_utils__["a" /* default */].getID().match(/NBSWHATIFSEND/g)) {
                customerNBS = __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                    "div",
                    null,
                    this.tncSubmitted ? __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                        "div",
                        { className: "margin-top-50" },
                        this.post
                    ) : __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                        "div",
                        null,
                        __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                            "div",
                            null,
                            __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("link", { rel: "stylesheet", type: "text/css", href: "./src/css/lovWhatif/mobile_styles_1.css" }),
                            __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("link", { rel: "stylesheet", type: "text/css", href: "./src/css/lovWhatif/mobile_styles_2.css" }),
                            __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("link", { rel: "stylesheet", type: "text/css", href: "./src/css/lovWhatif/mobile_styles_4.css" }),
                            __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("link", { rel: "stylesheet", type: "text/css", href: "./src/css/lovWhatif/mobile_styles.css" }),
                            __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("div", { dangerouslySetInnerHTML: { __html: this.messageHTML } })
                        ),
                        __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                            "div",
                            { className: "margin-bot-15" },
                            __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("input", { type: "button", className: "button margin-h-15 NBS_submit_button", value: "Submit", onClick: this.handleSubmitButton })
                        )
                    )
                );
            }

            if (this.loaded && !this.spinner) {
                customerNBS = __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                    "div",
                    { className: "center" },
                    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("i", { className: "fa fa-circle-o-notch fa-spin fa-3x fa-fw" }),
                    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                        "span",
                        { className: "sr-only" },
                        "loading"
                    )
                );
            }

            return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                "div",
                null,
                customerNBS,
                __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_7__components_PageFooter__["a" /* default */], null)
            );
        }
    }, {
        key: "componentWillUnmount",
        value: function componentWillUnmount() {
            this.endReaction();
        }
    }, {
        key: "componentDidUpdate",
        value: function componentDidUpdate() {
            // this runs the contents in script tag on a window/global scope
            if (this.state.reportScript[1] && this.state.scriptToStop || __WEBPACK_IMPORTED_MODULE_8__stores_CustomerNBSStore__["a" /* default */].msg !== "Success") {
                var scriptToRun = this.state.reportScript[1];
                console.log("triggered", scriptToRun);
                window.eval(scriptToRun);
            }
        }
    }, {
        key: "componentDidMount",
        value: function componentDidMount() {
            if (__WEBPACK_IMPORTED_MODULE_9__utils_utils__["a" /* default */].getID().match(/NBSWHATIFSEND/g)) {
                var script = document.createElement("script");
                script.src = './src/js/pages/CustomerWhatifScript.js';
                script.async = true;
                document.head.appendChild(script);
            }
            setTimeout(function () {
                if (sessionStorage.getItem("mtn") === null || sessionStorage.getItem("emailId") === null) {
                    __WEBPACK_IMPORTED_MODULE_8__stores_CustomerNBSStore__["a" /* default */].receiveFormField();
                }
            }, 5000);
        }
    }, {
        key: "componentWillMount",
        value: function componentWillMount() {
            this.state = {
                scriptToStop: true,
                report: "",
                reportScript: ""
            };

            __WEBPACK_IMPORTED_MODULE_8__stores_CustomerNBSStore__["a" /* default */].sendFormField({
                pageName: "NBS"
            });
        }
    }]);

    return CustomerNBSPage;
}(__WEBPACK_IMPORTED_MODULE_0_react___default.a.Component), (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "title", [__WEBPACK_IMPORTED_MODULE_3_mobx__["b" /* observable */]], {
    enumerable: true,
    initializer: null
}), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "post", [__WEBPACK_IMPORTED_MODULE_3_mobx__["b" /* observable */]], {
    enumerable: true,
    initializer: null
}), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "messageHTML", [__WEBPACK_IMPORTED_MODULE_3_mobx__["b" /* observable */]], {
    enumerable: true,
    initializer: null
}), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, "ipAddressSentStatus", [__WEBPACK_IMPORTED_MODULE_3_mobx__["b" /* observable */]], {
    enumerable: true,
    initializer: function initializer() {
        return false;
    }
})), _class2)) || _class;



/***/ }),

/***/ 342:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return GenericSignaturePage; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__stores_EventStore__ = __webpack_require__(10);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_mobx__ = __webpack_require__(6);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_mobx_react__ = __webpack_require__(16);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__components_PageHeader__ = __webpack_require__(15);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__components_PageFooter__ = __webpack_require__(14);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__components_SignatureCapture__ = __webpack_require__(71);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__stores_SignatureStore__ = __webpack_require__(117);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__utils_utils__ = __webpack_require__(4);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__utils_langTranslator__ = __webpack_require__(18);
var _createClass = function () { function 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); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();

var _class, _desc, _value, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4;

function _initDefineProp(target, property, descriptor, context) {
    if (!descriptor) return;
    Object.defineProperty(target, property, {
        enumerable: descriptor.enumerable,
        configurable: descriptor.configurable,
        writable: descriptor.writable,
        value: descriptor.initializer ? descriptor.initializer.call(context) : void 0
    });
}

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 _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 _applyDecoratedDescriptor(target, property, decorators, descriptor, context) {
    var desc = {};
    Object['ke' + 'ys'](descriptor).forEach(function (key) {
        desc[key] = descriptor[key];
    });
    desc.enumerable = !!desc.enumerable;
    desc.configurable = !!desc.configurable;

    if ('value' in desc || desc.initializer) {
        desc.writable = true;
    }

    desc = decorators.slice().reverse().reduce(function (desc, decorator) {
        return decorator(target, property, desc) || desc;
    }, desc);

    if (context && desc.initializer !== void 0) {
        desc.value = desc.initializer ? desc.initializer.call(context) : void 0;
        desc.initializer = undefined;
    }

    if (desc.initializer === void 0) {
        Object['define' + 'Property'](target, property, desc);
        desc = null;
    }

    return desc;
}

function _initializerWarningHelper(descriptor, context) {
    throw new Error('Decorating class property failed. Please ensure that transform-class-properties is enabled.');
}












var GenericSignaturePage = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3_mobx_react__["a" /* observer */])(_class = (_class2 = function (_React$Component) {
    _inherits(GenericSignaturePage, _React$Component);

    function GenericSignaturePage() {
        _classCallCheck(this, GenericSignaturePage);

        var _this = _possibleConstructorReturn(this, (GenericSignaturePage.__proto__ || Object.getPrototypeOf(GenericSignaturePage)).call(this));

        _initDefineProp(_this, 'signatureSubmitted', _descriptor, _this);

        _initDefineProp(_this, 'bodyText', _descriptor2, _this);

        _initDefineProp(_this, 'headerTitle', _descriptor3, _this);

        _initDefineProp(_this, 'signatureMessage', _descriptor4, _this);

        _this.setupPage = function () {
            _this.signatureSubmitted = false;
            _this.bodyText = '';
            _this.headerTitle = '';
            _this.signatureMessage = '';

            if (__WEBPACK_IMPORTED_MODULE_1__stores_EventStore__["a" /* default */].eventObj.payload.agreementData) {
                _this.bodyText = __WEBPACK_IMPORTED_MODULE_1__stores_EventStore__["a" /* default */].eventObj.payload.agreementData;
                _this.headerTitle = __WEBPACK_IMPORTED_MODULE_1__stores_EventStore__["a" /* default */].eventObj.payload.headerTitle;
            } else {
                if (__WEBPACK_IMPORTED_MODULE_1__stores_EventStore__["a" /* default */].eventObj.payload.headerTitle) {
                    _this.headerTitle = __WEBPACK_IMPORTED_MODULE_1__stores_EventStore__["a" /* default */].eventObj.payload.headerTitle;
                }
                if (__WEBPACK_IMPORTED_MODULE_1__stores_EventStore__["a" /* default */].eventObj.payload.message) {
                    _this.bodyText = __WEBPACK_IMPORTED_MODULE_1__stores_EventStore__["a" /* default */].eventObj.payload.message;
                }
            }
        };

        _this.endReaction = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_2_mobx__["a" /* reaction */])(function () {
            return __WEBPACK_IMPORTED_MODULE_1__stores_EventStore__["a" /* default */].eventObj;
        }, function () {
            if (__WEBPACK_IMPORTED_MODULE_1__stores_EventStore__["a" /* default */].eventObj.event === 'pageNavigation' && __WEBPACK_IMPORTED_MODULE_1__stores_EventStore__["a" /* default */].eventObj.payload.pageName === 'signatureCapture') {
                _this.setupPage();
            }
        });

        _this.submitSignature = function (sig) {
            __WEBPACK_IMPORTED_MODULE_7__stores_SignatureStore__["a" /* default */].submitSignature(sig.slice(22)).then(function () {
                this.signatureMessage = 'Signature has been processed.';
                this.signatureSubmitted = true;
            }.bind(_this)).catch(function (error) {
                this.signatureMessage = error.message || "Error Occured.";
                this.signatureSubmitted = true;
            }.bind(_this));
        };

        _this.setupPage();
        return _this;
    }

    _createClass(GenericSignaturePage, [{
        key: 'render',
        value: function render() {
            var genericSignatureContent;
            if (__WEBPACK_IMPORTED_MODULE_1__stores_EventStore__["a" /* default */].error) {
                genericSignatureContent = __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                    'div',
                    { className: 'center' },
                    __WEBPACK_IMPORTED_MODULE_1__stores_EventStore__["a" /* default */].error
                );
            } else {
                genericSignatureContent = __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                    'div',
                    null,
                    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                        'div',
                        { className: 'center' },
                        __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement('div', { dangerouslySetInnerHTML: { __html: this.bodyText } }),
                        this.signatureSubmitted ? __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                            'h2',
                            { className: 'margin-top-50 center' },
                            this.signatureMessage
                        ) : __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_6__components_SignatureCapture__["a" /* default */], { sigID: 'signature', submitSig: this.submitSignature, tncAccepts: true })
                    )
                );
            }
            return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                'div',
                null,
                __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_4__components_PageHeader__["a" /* default */], { title: this.headerTitle }),
                genericSignatureContent,
                __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_5__components_PageFooter__["a" /* default */], null)
            );
        }
    }, {
        key: 'componentWillUnmount',
        value: function componentWillUnmount() {
            this.endReaction();
        }
    }, {
        key: 'componentWillMount',
        value: function componentWillMount() {
            this.state = {
                currentLanguage: 0
            };
            if (sessionStorage.getItem('z') == 'y') {
                this.setState({ currentLanguage: 1 });
            }
        }
    }]);

    return GenericSignaturePage;
}(__WEBPACK_IMPORTED_MODULE_0_react___default.a.Component), (_descriptor = _applyDecoratedDescriptor(_class2.prototype, 'signatureSubmitted', [__WEBPACK_IMPORTED_MODULE_2_mobx__["b" /* observable */]], {
    enumerable: true,
    initializer: function initializer() {
        return false;
    }
}), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, 'bodyText', [__WEBPACK_IMPORTED_MODULE_2_mobx__["b" /* observable */]], {
    enumerable: true,
    initializer: null
}), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, 'headerTitle', [__WEBPACK_IMPORTED_MODULE_2_mobx__["b" /* observable */]], {
    enumerable: true,
    initializer: null
}), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, 'signatureMessage', [__WEBPACK_IMPORTED_MODULE_2_mobx__["b" /* observable */]], {
    enumerable: true,
    initializer: null
})), _class2)) || _class;



/***/ }),

/***/ 343:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return MessagePage; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__components_PageHeader__ = __webpack_require__(15);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__components_PageFooter__ = __webpack_require__(14);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__stores_EventStore__ = __webpack_require__(10);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__stores_WelcomeStore__ = __webpack_require__(118);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_mobx_react__ = __webpack_require__(16);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_mobx__ = __webpack_require__(6);
var _createClass = function () { function 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); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();

var _class, _desc, _value, _class2, _descriptor, _descriptor2;

function _initDefineProp(target, property, descriptor, context) {
    if (!descriptor) return;
    Object.defineProperty(target, property, {
        enumerable: descriptor.enumerable,
        configurable: descriptor.configurable,
        writable: descriptor.writable,
        value: descriptor.initializer ? descriptor.initializer.call(context) : void 0
    });
}

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 _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 _applyDecoratedDescriptor(target, property, decorators, descriptor, context) {
    var desc = {};
    Object['ke' + 'ys'](descriptor).forEach(function (key) {
        desc[key] = descriptor[key];
    });
    desc.enumerable = !!desc.enumerable;
    desc.configurable = !!desc.configurable;

    if ('value' in desc || desc.initializer) {
        desc.writable = true;
    }

    desc = decorators.slice().reverse().reduce(function (desc, decorator) {
        return decorator(target, property, desc) || desc;
    }, desc);

    if (context && desc.initializer !== void 0) {
        desc.value = desc.initializer ? desc.initializer.call(context) : void 0;
        desc.initializer = undefined;
    }

    if (desc.initializer === void 0) {
        Object['define' + 'Property'](target, property, desc);
        desc = null;
    }

    return desc;
}

function _initializerWarningHelper(descriptor, context) {
    throw new Error('Decorating class property failed. Please ensure that transform-class-properties is enabled.');
}









var MessagePage = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_5_mobx_react__["a" /* observer */])(_class = (_class2 = function (_React$Component) {
    _inherits(MessagePage, _React$Component);

    function MessagePage() {
        _classCallCheck(this, MessagePage);

        var _this = _possibleConstructorReturn(this, (MessagePage.__proto__ || Object.getPrototypeOf(MessagePage)).call(this));

        _initDefineProp(_this, 'title', _descriptor, _this);

        _initDefineProp(_this, 'messageHTML', _descriptor2, _this);

        _this.setupPage = function () {
            _this.title = "Verizon";
            if (__WEBPACK_IMPORTED_MODULE_3__stores_EventStore__["a" /* default */].eventObj.payload.headerTitle) {
                _this.title = __WEBPACK_IMPORTED_MODULE_3__stores_EventStore__["a" /* default */].eventObj.payload.headerTitle;
            }
            if (__WEBPACK_IMPORTED_MODULE_3__stores_EventStore__["a" /* default */].eventObj.payload.message) {
                _this.messageHTML = __WEBPACK_IMPORTED_MODULE_3__stores_EventStore__["a" /* default */].eventObj.payload.message;
            }
        };

        _this.endReaction = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_6_mobx__["a" /* reaction */])(function () {
            return __WEBPACK_IMPORTED_MODULE_3__stores_EventStore__["a" /* default */].eventObj;
        }, function () {
            if (__WEBPACK_IMPORTED_MODULE_3__stores_EventStore__["a" /* default */].eventObj.event === 'pageNavigation' && __WEBPACK_IMPORTED_MODULE_3__stores_EventStore__["a" /* default */].eventObj.payload.pageName === 'status') {
                _this.setupPage();
            }
        });

        _this.setupPage();
        return _this;
    }

    _createClass(MessagePage, [{
        key: 'render',
        value: function render() {
            var messageContent;
            if (__WEBPACK_IMPORTED_MODULE_3__stores_EventStore__["a" /* default */].error) {
                messageContent = __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                    'div',
                    { className: 'center' },
                    __WEBPACK_IMPORTED_MODULE_3__stores_EventStore__["a" /* default */].error
                );
            } else {
                messageContent = __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                    'div',
                    null,
                    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                        'div',
                        { className: 'margin-bot-10 center' },
                        __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement('div', { dangerouslySetInnerHTML: { __html: this.messageHTML } })
                    )
                );
            }
            return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                'div',
                null,
                __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_1__components_PageHeader__["a" /* default */], { title: this.title }),
                messageContent,
                __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_2__components_PageFooter__["a" /* default */], null)
            );
        }
    }, {
        key: 'componentWillUnmount',
        value: function componentWillUnmount() {
            this.endReaction();
        }
    }]);

    return MessagePage;
}(__WEBPACK_IMPORTED_MODULE_0_react___default.a.Component), (_descriptor = _applyDecoratedDescriptor(_class2.prototype, 'title', [__WEBPACK_IMPORTED_MODULE_6_mobx__["b" /* observable */]], {
    enumerable: true,
    initializer: null
}), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, 'messageHTML', [__WEBPACK_IMPORTED_MODULE_6_mobx__["b" /* observable */]], {
    enumerable: true,
    initializer: null
})), _class2)) || _class;



/***/ }),

/***/ 344:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return OrderReviewPage; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__stores_EventStore__ = __webpack_require__(10);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_mobx__ = __webpack_require__(6);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_mobx_react__ = __webpack_require__(16);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__components_TextViewer__ = __webpack_require__(72);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__components_PageHeader__ = __webpack_require__(15);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__components_PageFooter__ = __webpack_require__(14);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__stores_OrderReviewStore__ = __webpack_require__(355);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__utils_utils__ = __webpack_require__(4);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__components_CustomInput__ = __webpack_require__(23);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__css_orderReview_css__ = __webpack_require__(401);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__css_orderReview_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_10__css_orderReview_css__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__utils_langTranslator__ = __webpack_require__(18);
var _createClass = function () { function 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); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();

var _class, _desc, _value, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4;

function _initDefineProp(target, property, descriptor, context) {
    if (!descriptor) return;
    Object.defineProperty(target, property, {
        enumerable: descriptor.enumerable,
        configurable: descriptor.configurable,
        writable: descriptor.writable,
        value: descriptor.initializer ? descriptor.initializer.call(context) : void 0
    });
}

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 _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 _applyDecoratedDescriptor(target, property, decorators, descriptor, context) {
    var desc = {};
    Object['ke' + 'ys'](descriptor).forEach(function (key) {
        desc[key] = descriptor[key];
    });
    desc.enumerable = !!desc.enumerable;
    desc.configurable = !!desc.configurable;

    if ('value' in desc || desc.initializer) {
        desc.writable = true;
    }

    desc = decorators.slice().reverse().reduce(function (desc, decorator) {
        return decorator(target, property, desc) || desc;
    }, desc);

    if (context && desc.initializer !== void 0) {
        desc.value = desc.initializer ? desc.initializer.call(context) : void 0;
        desc.initializer = undefined;
    }

    if (desc.initializer === void 0) {
        Object['define' + 'Property'](target, property, desc);
        desc = null;
    }

    return desc;
}

function _initializerWarningHelper(descriptor, context) {
    throw new Error('Decorating class property failed. Please ensure that transform-class-properties is enabled.');
}














var OrderReviewPage = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3_mobx_react__["a" /* observer */])(_class = (_class2 = function (_React$Component) {
    _inherits(OrderReviewPage, _React$Component);

    function OrderReviewPage() {
        _classCallCheck(this, OrderReviewPage);

        var _this = _possibleConstructorReturn(this, (OrderReviewPage.__proto__ || Object.getPrototypeOf(OrderReviewPage)).call(this));

        _initDefineProp(_this, 'title', _descriptor, _this);

        _initDefineProp(_this, 'messageHTML', _descriptor2, _this);

        _initDefineProp(_this, 'ipAddressSentStatus', _descriptor3, _this);

        _initDefineProp(_this, 'pageState', _descriptor4, _this);

        _this.setupPage = function () {
            _this.title = "Verizon";
            if (__WEBPACK_IMPORTED_MODULE_1__stores_EventStore__["a" /* default */].eventObj.payload.headerTitle) {
                _this.title = __WEBPACK_IMPORTED_MODULE_1__stores_EventStore__["a" /* default */].eventObj.payload.headerTitle;
            }
            if (__WEBPACK_IMPORTED_MODULE_1__stores_EventStore__["a" /* default */].eventObj.payload.message) {
                _this.messageHTML = __WEBPACK_IMPORTED_MODULE_1__stores_EventStore__["a" /* default */].eventObj.payload.message;
            }
        };

        _this.endReaction = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_2_mobx__["a" /* reaction */])(function () {
            return __WEBPACK_IMPORTED_MODULE_1__stores_EventStore__["a" /* default */].eventObj;
        }, function () {
            if (__WEBPACK_IMPORTED_MODULE_1__stores_EventStore__["a" /* default */].eventObj.event === 'pageNavigation' && __WEBPACK_IMPORTED_MODULE_1__stores_EventStore__["a" /* default */].eventObj.payload.pageName === 'orderReview') {
                document.getElementById("tncAccept").checked = false;
                _this.setupPage();
            }
        });

        _this.setupPage();
        _this.showTnC = false;
        if (sessionStorage.getItem('e') == 'y') {
            _this.showTnC = true;
        }
        __WEBPACK_IMPORTED_MODULE_7__stores_OrderReviewStore__["a" /* default */].fetchIPAddress();
        return _this;
    }

    _createClass(OrderReviewPage, [{
        key: 'handleChange',
        value: function handleChange(event, validator) {
            __WEBPACK_IMPORTED_MODULE_7__stores_OrderReviewStore__["a" /* default */].sendFormField({
                field: event.target.id,
                value: event.target.checked
            });
        }
    }, {
        key: 'render',
        value: function render() {
            var orderReviewContent;
            if (!this.ipAddressSentStatus) {
                if (!__WEBPACK_IMPORTED_MODULE_7__stores_OrderReviewStore__["a" /* default */].loading && !__WEBPACK_IMPORTED_MODULE_7__stores_OrderReviewStore__["a" /* default */].error && __WEBPACK_IMPORTED_MODULE_7__stores_OrderReviewStore__["a" /* default */].ipAddress) {
                    console.log("IPaddress" + __WEBPACK_IMPORTED_MODULE_7__stores_OrderReviewStore__["a" /* default */].ipAddress);
                    __WEBPACK_IMPORTED_MODULE_7__stores_OrderReviewStore__["a" /* default */].sendFormField({
                        field: "ipAddress",
                        value: __WEBPACK_IMPORTED_MODULE_7__stores_OrderReviewStore__["a" /* default */].ipAddress
                    });
                    this.ipAddressSentStatus = true;
                }
            }
            if (__WEBPACK_IMPORTED_MODULE_1__stores_EventStore__["a" /* default */].error) {
                orderReviewContent = __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                    'div',
                    { className: 'center' },
                    __WEBPACK_IMPORTED_MODULE_1__stores_EventStore__["a" /* default */].error
                );
            } else {
                orderReviewContent = __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                    'div',
                    null,
                    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                        'div',
                        { className: 'center' },
                        __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement('div', { dangerouslySetInnerHTML: { __html: this.messageHTML } })
                    ),
                    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                        'form',
                        { autoComplete: 'off' },
                        __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                            'div',
                            { className: 'inline-block margin-bot-15 col1' },
                            __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_9__components_CustomInput__["a" /* default */], { id: 'tncAccept',
                                checked: this.pageState.tncAccept,
                                onChange: this.handleChange,
                                type: 'checkbox',
                                required: 'required',
                                autoComplete: 'off'
                            })
                        ),
                        __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                            'div',
                            { className: 'inline-block margin-bot-15 margin-top-15 col2' },
                            __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                'span',
                                null,
                                '\xA0',
                                __WEBPACK_IMPORTED_MODULE_11__utils_langTranslator__["a" /* default */][this.state.currentLanguage].authorizeCreditReport
                            )
                        )
                    )
                );
            }
            return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                'div',
                null,
                __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_5__components_PageHeader__["a" /* default */], { title: this.title }),
                orderReviewContent,
                __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_6__components_PageFooter__["a" /* default */], null)
            );
        }
    }, {
        key: 'componentWillUnmount',
        value: function componentWillUnmount() {
            this.endReaction();
        }
    }, {
        key: 'componentWillMount',
        value: function componentWillMount() {

            this.state = {
                currentLanguage: 0
            };
            if (sessionStorage.getItem('z') == 'y') {
                this.setState({ currentLanguage: 1 });
            }
        }
    }]);

    return OrderReviewPage;
}(__WEBPACK_IMPORTED_MODULE_0_react___default.a.Component), (_descriptor = _applyDecoratedDescriptor(_class2.prototype, 'title', [__WEBPACK_IMPORTED_MODULE_2_mobx__["b" /* observable */]], {
    enumerable: true,
    initializer: null
}), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, 'messageHTML', [__WEBPACK_IMPORTED_MODULE_2_mobx__["b" /* observable */]], {
    enumerable: true,
    initializer: null
}), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, 'ipAddressSentStatus', [__WEBPACK_IMPORTED_MODULE_2_mobx__["b" /* observable */]], {
    enumerable: true,
    initializer: function initializer() {
        return false;
    }
}), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, 'pageState', [__WEBPACK_IMPORTED_MODULE_2_mobx__["b" /* observable */]], {
    enumerable: true,
    initializer: function initializer() {
        return {
            tncAccept: {
                value: 'false',
                valid: true,
                changed: false
            }
        };
    }
})), _class2)) || _class;



/***/ }),

/***/ 345:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return PaymentCvvPage; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_mobx_react__ = __webpack_require__(16);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_mobx__ = __webpack_require__(6);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__components_PageHeader__ = __webpack_require__(15);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__components_PageFooter__ = __webpack_require__(14);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__components_CustomInput__ = __webpack_require__(23);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__stores_EventStore__ = __webpack_require__(10);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__stores_PaymentCvvStore__ = __webpack_require__(356);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__utils_utils__ = __webpack_require__(4);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__utils_validate__ = __webpack_require__(31);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__utils_langTranslator__ = __webpack_require__(18);
var _createClass = function () { function 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); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();

var _class, _desc, _value, _class2, _descriptor, _descriptor2;

function _initDefineProp(target, property, descriptor, context) {
    if (!descriptor) return;
    Object.defineProperty(target, property, {
        enumerable: descriptor.enumerable,
        configurable: descriptor.configurable,
        writable: descriptor.writable,
        value: descriptor.initializer ? descriptor.initializer.call(context) : void 0
    });
}

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 _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 _applyDecoratedDescriptor(target, property, decorators, descriptor, context) {
    var desc = {};
    Object['ke' + 'ys'](descriptor).forEach(function (key) {
        desc[key] = descriptor[key];
    });
    desc.enumerable = !!desc.enumerable;
    desc.configurable = !!desc.configurable;

    if ('value' in desc || desc.initializer) {
        desc.writable = true;
    }

    desc = decorators.slice().reverse().reduce(function (desc, decorator) {
        return decorator(target, property, desc) || desc;
    }, desc);

    if (context && desc.initializer !== void 0) {
        desc.value = desc.initializer ? desc.initializer.call(context) : void 0;
        desc.initializer = undefined;
    }

    if (desc.initializer === void 0) {
        Object['define' + 'Property'](target, property, desc);
        desc = null;
    }

    return desc;
}

function _initializerWarningHelper(descriptor, context) {
    throw new Error('Decorating class property failed. Please ensure that transform-class-properties is enabled.');
}













var PaymentCvvPage = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1_mobx_react__["a" /* observer */])(_class = (_class2 = function (_React$Component) {
    _inherits(PaymentCvvPage, _React$Component);

    function PaymentCvvPage() {
        _classCallCheck(this, PaymentCvvPage);

        var _this = _possibleConstructorReturn(this, (PaymentCvvPage.__proto__ || Object.getPrototypeOf(PaymentCvvPage)).call(this));

        _initDefineProp(_this, 'ipAddressSentStatus', _descriptor, _this);

        _initDefineProp(_this, 'pageState', _descriptor2, _this);

        _this.manualBlur = __WEBPACK_IMPORTED_MODULE_8__utils_utils__["a" /* default */].debounce(function (target, valid) {
            if (valid === true) {
                target.blur();
                target.focus();
            }
        }, 1500);

        _this.clearFields = function () {
            _this.pageState.cvv.value = "";
        };

        _this.hideSpanish = true;
        __WEBPACK_IMPORTED_MODULE_7__stores_PaymentCvvStore__["a" /* default */].fetchIPAddress();
        _this.handleChange = _this.handleChange.bind(_this);
        _this.blurEventHandler = _this.blurEventHandler.bind(_this);
        _this.handleLanguageChange = _this.handleLanguageChange.bind(_this);
        return _this;
    }

    _createClass(PaymentCvvPage, [{
        key: 'handleChange',
        value: function handleChange(event, validator) {
            this.pageState[event.target.id].value = event.target.value;
            this.pageState[event.target.id].valid = validator();
            this.pageState[event.target.id].changed = true;
            this.manualBlur(event.target, this.pageState[event.target.id].valid);
        }
    }, {
        key: 'handleLanguageChange',
        value: function handleLanguageChange(event) {
            event.stopPropagation();
            if (event.target.id === "English") {
                this.setState({ currentLanguage: 0 });
            } else if (event.target.id === "Spanish") {
                this.setState({ currentLanguage: 1 });
            }
        }
    }, {
        key: 'blurEventHandler',
        value: function blurEventHandler(event) {
            if (this.pageState[event.target.id].valid === true && this.pageState[event.target.id].changed === true) {
                __WEBPACK_IMPORTED_MODULE_7__stores_PaymentCvvStore__["a" /* default */].sendFormField({
                    field: event.target.id,
                    value: this.pageState[event.target.id].formatValue ? this.pageState[event.target.id].formatValue(event.target.value) : event.target.value
                });
                this.pageState[event.target.id].changed = false;
            }
        }
    }, {
        key: 'render',
        value: function render() {
            var _this2 = this;

            var paymentCvvContent;
            if (!this.ipAddressSentStatus) {
                if (!__WEBPACK_IMPORTED_MODULE_7__stores_PaymentCvvStore__["a" /* default */].loading && !__WEBPACK_IMPORTED_MODULE_7__stores_PaymentCvvStore__["a" /* default */].error && __WEBPACK_IMPORTED_MODULE_7__stores_PaymentCvvStore__["a" /* default */].ipAddress) {
                    console.log("IPaddress" + __WEBPACK_IMPORTED_MODULE_7__stores_PaymentCvvStore__["a" /* default */].ipAddress);
                    __WEBPACK_IMPORTED_MODULE_7__stores_PaymentCvvStore__["a" /* default */].sendFormField({
                        field: "ipAddress",
                        value: __WEBPACK_IMPORTED_MODULE_7__stores_PaymentCvvStore__["a" /* default */].ipAddress
                    });
                    this.ipAddressSentStatus = true;
                }
            }

            if (__WEBPACK_IMPORTED_MODULE_6__stores_EventStore__["a" /* default */].error) {
                paymentCvvContent = __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                    'div',
                    { className: 'center' },
                    __WEBPACK_IMPORTED_MODULE_6__stores_EventStore__["a" /* default */].error
                );
            } else {
                paymentCvvContent = __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                    'div',
                    null,
                    this.hideSpanish && __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                        'div',
                        null,
                        __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement('input', { id: 'English', name: 'langType', type: 'radio', defaultChecked: true, value: 'English', onChange: this.handleLanguageChange }),
                        __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                            'label',
                            { htmlFor: 'English' },
                            'English'
                        ),
                        __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement('input', { id: 'Spanish', name: 'langType', type: 'radio', value: 'Spanish', onChange: this.handleLanguageChange }),
                        __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                            'label',
                            { htmlFor: 'Spanish' },
                            'Spanish'
                        )
                    ),
                    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                        'div',
                        { className: 'margin-bot-10' },
                        __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                            'div',
                            { className: 'mob-center' },
                            __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                'h3',
                                null,
                                __WEBPACK_IMPORTED_MODULE_10__utils_langTranslator__["a" /* default */][this.state.currentLanguage].creditCardInformation
                            )
                        ),
                        __WEBPACK_IMPORTED_MODULE_6__stores_EventStore__["a" /* default */] && __WEBPACK_IMPORTED_MODULE_6__stores_EventStore__["a" /* default */].amountt > 0 && __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                            'div',
                            { className: 'inline-block padding-left-10 col' },
                            __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                'div',
                                { className: 'margin-bot-15' },
                                __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                    'label',
                                    null,
                                    __WEBPACK_IMPORTED_MODULE_10__utils_langTranslator__["a" /* default */][this.state.currentLanguage].OrderTotalDueToday,
                                    ' : $',
                                    __WEBPACK_IMPORTED_MODULE_6__stores_EventStore__["a" /* default */].amountt,
                                    ' '
                                )
                            )
                        ),
                        __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                            'form',
                            { onBlur: this.blurEventHandler },
                            __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                'div',
                                { className: 'inline-block margin-bot-15 col' },
                                __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                    'label',
                                    { htmlFor: 'cvv' },
                                    __WEBPACK_IMPORTED_MODULE_10__utils_langTranslator__["a" /* default */][this.state.currentLanguage].cvc,
                                    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                        'abbr',
                                        { title: 'required' },
                                        '*'
                                    )
                                ),
                                __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_5__components_CustomInput__["a" /* default */], { id: 'cvv',
                                    placeholder: __WEBPACK_IMPORTED_MODULE_10__utils_langTranslator__["a" /* default */][this.state.currentLanguage].cvc,
                                    value: this.pageState.cvv.value,
                                    onChange: this.handleChange,
                                    type: 'password',
                                    maxLength: '4',
                                    ruleMessage: __WEBPACK_IMPORTED_MODULE_10__utils_langTranslator__["a" /* default */][this.state.currentLanguage].enterValidCvc,
                                    isValid: this.pageState.cvv.valid,
                                    validator: function validator() {
                                        return __WEBPACK_IMPORTED_MODULE_9__utils_validate__["a" /* default */].isValidNumber(_this2.pageState.cvv.value, 3, 4);
                                    },
                                    required: 'required',
                                    pattern: '\\d*',
                                    autoComplete: 'off'
                                })
                            )
                        ),
                        __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                            'div',
                            { className: 'margin-bot-15' },
                            __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement('input', { type: 'button', className: 'button margin-h-15 payment_submit_button', value: __WEBPACK_IMPORTED_MODULE_10__utils_langTranslator__["a" /* default */][this.state.currentLanguage].submit, onClick: this.handleSubmitButton }),
                            __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement('input', { type: 'button', className: 'button margin-h-15 payment_submit_button', value: __WEBPACK_IMPORTED_MODULE_10__utils_langTranslator__["a" /* default */][this.state.currentLanguage].clear, onClick: this.clearFields })
                        )
                    )
                );
            }
            return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                'div',
                { className: 'padding-bot-50' },
                __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_3__components_PageHeader__["a" /* default */], { title: __WEBPACK_IMPORTED_MODULE_10__utils_langTranslator__["a" /* default */][this.state.currentLanguage].paymentInfo }),
                paymentCvvContent,
                __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_4__components_PageFooter__["a" /* default */], null)
            );
        }
    }, {
        key: 'componentWillMount',
        value: function componentWillMount() {
            this.state = {
                currentLanguage: 0

            };
            if (sessionStorage.getItem('z') == 'y') {
                this.hideSpanish = false;
                this.setState({ currentLanguage: 1 });
            }
        }
    }]);

    return PaymentCvvPage;
}(__WEBPACK_IMPORTED_MODULE_0_react___default.a.Component), (_descriptor = _applyDecoratedDescriptor(_class2.prototype, 'ipAddressSentStatus', [__WEBPACK_IMPORTED_MODULE_2_mobx__["b" /* observable */]], {
    enumerable: true,
    initializer: function initializer() {
        return false;
    }
}), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, 'pageState', [__WEBPACK_IMPORTED_MODULE_2_mobx__["b" /* observable */]], {
    enumerable: true,
    initializer: function initializer() {
        return {
            cvv: {
                value: '',
                valid: false,
                changed: false
            },
            langType: {
                value: '',
                changed: false
            }
        };
    }
})), _class2)) || _class;



/***/ }),

/***/ 346:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return PaymentPage; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__stores_EventStore__ = __webpack_require__(10);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_mobx_react__ = __webpack_require__(16);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_mobx__ = __webpack_require__(6);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__components_PageHeader__ = __webpack_require__(15);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__components_PageFooter__ = __webpack_require__(14);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__stores_PaymentStore__ = __webpack_require__(357);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__components_CustomInput__ = __webpack_require__(23);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__utils_utils__ = __webpack_require__(4);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__utils_validate__ = __webpack_require__(31);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__utils_langTranslator__ = __webpack_require__(18);
var _createClass = function () { function 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); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();

var _class, _desc, _value, _class2, _descriptor, _descriptor2;

function _initDefineProp(target, property, descriptor, context) {
    if (!descriptor) return;
    Object.defineProperty(target, property, {
        enumerable: descriptor.enumerable,
        configurable: descriptor.configurable,
        writable: descriptor.writable,
        value: descriptor.initializer ? descriptor.initializer.call(context) : void 0
    });
}

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 _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 _applyDecoratedDescriptor(target, property, decorators, descriptor, context) {
    var desc = {};
    Object['ke' + 'ys'](descriptor).forEach(function (key) {
        desc[key] = descriptor[key];
    });
    desc.enumerable = !!desc.enumerable;
    desc.configurable = !!desc.configurable;

    if ('value' in desc || desc.initializer) {
        desc.writable = true;
    }

    desc = decorators.slice().reverse().reduce(function (desc, decorator) {
        return decorator(target, property, desc) || desc;
    }, desc);

    if (context && desc.initializer !== void 0) {
        desc.value = desc.initializer ? desc.initializer.call(context) : void 0;
        desc.initializer = undefined;
    }

    if (desc.initializer === void 0) {
        Object['define' + 'Property'](target, property, desc);
        desc = null;
    }

    return desc;
}

function _initializerWarningHelper(descriptor, context) {
    throw new Error('Decorating class property failed. Please ensure that transform-class-properties is enabled.');
}













var PaymentPage = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_2_mobx_react__["a" /* observer */])(_class = (_class2 = function (_React$Component) {
    _inherits(PaymentPage, _React$Component);

    _createClass(PaymentPage, [{
        key: 'getDefaultValues',
        value: function getDefaultValues() {
            var _this2 = this;

            return {
                expiration: {
                    value: '',
                    valid: false,
                    changed: false,
                    formatValue: function formatValue(value) {
                        var cardExp = value.replace(/\s/g, '');
                        var year = cardExp.split('/')[1];
                        var month = cardExp.split('/')[0];
                        if (year.length === 2) {
                            return cardExp;
                        } else {
                            return month + '/' + year.substring(2);
                        }
                    }
                },
                number: {
                    value: '',
                    valid: false,
                    changed: false,
                    formatValue: function formatValue(value) {
                        return value.replace(/\s/g, '');
                    },
                    customSend: function customSend(num) {
                        if (__WEBPACK_IMPORTED_MODULE_8__utils_utils__["a" /* default */].getEncrypt()) {
                            _this2.sendCC();
                        } else {
                            __WEBPACK_IMPORTED_MODULE_6__stores_PaymentStore__["a" /* default */].sendFormField({
                                field: 'number',
                                value: num
                            });
                        }
                    }
                },
                cvv: {
                    value: '',
                    valid: false,
                    changed: false,
                    customSend: function customSend(cvv) {
                        if (__WEBPACK_IMPORTED_MODULE_8__utils_utils__["a" /* default */].getEncrypt()) {
                            _this2.sendCC();
                        } else {
                            __WEBPACK_IMPORTED_MODULE_6__stores_PaymentStore__["a" /* default */].sendFormField({
                                field: 'cvv',
                                value: cvv
                            });
                        }
                    }
                },
                zipCode: {
                    value: '',
                    valid: false,
                    changed: false
                },
                langType: {
                    value: '',
                    changed: false
                },
                cardName: {
                    value: '',
                    valid: false,
                    changed: false
                },
                cardType: {
                    value: 'domestic',
                    changed: false
                },
                paymentAmount: {
                    balanceDue: '',
                    orderTotal: ''
                }
            };
        }
    }]);

    function PaymentPage() {
        _classCallCheck(this, PaymentPage);

        var _this = _possibleConstructorReturn(this, (PaymentPage.__proto__ || Object.getPrototypeOf(PaymentPage)).call(this));

        _initDefineProp(_this, 'pageState', _descriptor, _this);

        _initDefineProp(_this, 'ipAddressSentStatus', _descriptor2, _this);

        _this.sendCC = function () {
            var cc;
            if (_this.pageState['number'].valid && _this.pageState['cvv'].valid) {
                cc = __WEBPACK_IMPORTED_MODULE_8__utils_utils__["a" /* default */].pieProtectPCI(_this.pageState['number'].formatValue(_this.pageState['number'].value), _this.pageState['cvv'].value);
                __WEBPACK_IMPORTED_MODULE_6__stores_PaymentStore__["a" /* default */].sendFormField({
                    field: 'number',
                    value: cc[0]
                });

                __WEBPACK_IMPORTED_MODULE_6__stores_PaymentStore__["a" /* default */].sendFormField({
                    field: 'cvv',
                    value: cc[1]
                });
            }
        };

        _this.idMap = {
            cardValid: 'expiration',
            cardNumber: 'number',
            cardCVC: 'cvv',
            zipCode: 'zipCode',
            cardName: 'cardName'
        };
        _this.endReaction = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3_mobx__["a" /* reaction */])(function () {
            return __WEBPACK_IMPORTED_MODULE_1__stores_EventStore__["a" /* default */].eventObj;
        }, function () {
            if (__WEBPACK_IMPORTED_MODULE_1__stores_EventStore__["a" /* default */].eventObj.event === 'creditCardData') {
                _this.pageState[__WEBPACK_IMPORTED_MODULE_1__stores_EventStore__["a" /* default */].eventObj.payload.field].value = __WEBPACK_IMPORTED_MODULE_1__stores_EventStore__["a" /* default */].eventObj.payload.value;
            }
            if (__WEBPACK_IMPORTED_MODULE_1__stores_EventStore__["a" /* default */].eventObj.event === 'splitPayment') {
                _this.pageState = _this.getDefaultValues();
                _this.pageState.paymentAmount.balanceDue = __WEBPACK_IMPORTED_MODULE_1__stores_EventStore__["a" /* default */].eventObj.payload.balanceDue;
                _this.pageState.paymentAmount.orderTotal = __WEBPACK_IMPORTED_MODULE_1__stores_EventStore__["a" /* default */].eventObj.payload.orderTotal;
            }
        });

        _this.clearFields = function () {
            _this.pageState = _this.getDefaultValues();
        };

        _this.showTnC = false;
        _this.hideSpanish = true;
        if (__WEBPACK_IMPORTED_MODULE_1__stores_EventStore__["a" /* default */].eventObj.payload) {
            _this.pageState.paymentAmount.balanceDue = __WEBPACK_IMPORTED_MODULE_1__stores_EventStore__["a" /* default */].eventObj.payload.balanceDue;
            _this.pageState.paymentAmount.orderTotal = __WEBPACK_IMPORTED_MODULE_1__stores_EventStore__["a" /* default */].eventObj.payload.orderTotal;
        }
        if (sessionStorage.getItem('e') == 'y') {
            _this.showTnC = true;
        }
        __WEBPACK_IMPORTED_MODULE_6__stores_PaymentStore__["a" /* default */].fetchIPAddress();
        _this.handleChange = _this.handleChange.bind(_this);
        _this.blurEventHandler = _this.blurEventHandler.bind(_this);
        _this.handleRadioChange = _this.handleRadioChange.bind(_this);
        _this.handleLanguageChange = _this.handleLanguageChange.bind(_this);
        return _this;
    }

    _createClass(PaymentPage, [{
        key: 'handleChange',
        value: function handleChange(event, validator) {
            this.pageState[this.idMap[event.target.id]].value = event.target.value;
            if (typeof validator === 'function') {
                this.pageState[this.idMap[event.target.id]].valid = validator();
            }
            this.pageState[this.idMap[event.target.id]].changed = true;
        }
    }, {
        key: 'handleLanguageChange',
        value: function handleLanguageChange(event) {
            event.stopPropagation();
            if (event.target.id === "English") {
                this.setState({ currentLanguage: 0 });
            } else if (event.target.id === "Spanish") {
                this.setState({ currentLanguage: 1 });
            }
        }
    }, {
        key: 'blurEventHandler',
        value: function blurEventHandler(event) {
            if (this.pageState[this.idMap[event.target.id]].valid === true && this.pageState[this.idMap[event.target.id]].changed === true) {
                if (typeof this.pageState[this.idMap[event.target.id]].customSend === 'function') {
                    this.pageState[this.idMap[event.target.id]].customSend(this.pageState[this.idMap[event.target.id]].formatValue ? this.pageState[this.idMap[event.target.id]].formatValue(event.target.value) : event.target.value);
                } else {
                    __WEBPACK_IMPORTED_MODULE_6__stores_PaymentStore__["a" /* default */].sendFormField({
                        field: this.idMap[event.target.id],
                        value: this.pageState[this.idMap[event.target.id]].formatValue ? this.pageState[this.idMap[event.target.id]].formatValue(event.target.value) : event.target.value
                    });
                }
                this.pageState[this.idMap[event.target.id]].changed = false;
            }
        }
    }, {
        key: 'handleRadioChange',
        value: function handleRadioChange(event) {
            event.stopPropagation();

            this.pageState.cardType.changed = event.target.id === this.pageState.cardType.value ? false : true;
            if (this.pageState.cardType.changed) {
                this.pageState.cardType.value = event.target.id;
                __WEBPACK_IMPORTED_MODULE_6__stores_PaymentStore__["a" /* default */].sendFormField({
                    field: 'cardHolderDomesticorIntType',
                    value: event.target.id
                });
            }
        }
    }, {
        key: 'handleSubmitButton',
        value: function handleSubmitButton() {
            if (!document.getElementById('cardNumber').value || !document.getElementById('cardName').value || !document.getElementById('cardValid').value || !document.getElementById('cardCVC').value || !document.getElementById('zipCode').value) {
                window.alert("Please fill required fields");
            } else {
                window.alert("Submitted Successfully");
            }
        }
    }, {
        key: 'render',
        value: function render() {
            var _this3 = this;

            var paymentContent;
            if (!this.ipAddressSentStatus) {
                if (!__WEBPACK_IMPORTED_MODULE_6__stores_PaymentStore__["a" /* default */].loading && !__WEBPACK_IMPORTED_MODULE_6__stores_PaymentStore__["a" /* default */].error && __WEBPACK_IMPORTED_MODULE_6__stores_PaymentStore__["a" /* default */].ipAddress) {
                    console.log("IPaddress" + __WEBPACK_IMPORTED_MODULE_6__stores_PaymentStore__["a" /* default */].ipAddress);
                    __WEBPACK_IMPORTED_MODULE_6__stores_PaymentStore__["a" /* default */].sendFormField({
                        field: "ipAddress",
                        value: __WEBPACK_IMPORTED_MODULE_6__stores_PaymentStore__["a" /* default */].ipAddress
                    });
                    this.ipAddressSentStatus = true;
                }
            }

            if (__WEBPACK_IMPORTED_MODULE_1__stores_EventStore__["a" /* default */].error) {
                paymentContent = __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                    'div',
                    { className: 'center' },
                    __WEBPACK_IMPORTED_MODULE_1__stores_EventStore__["a" /* default */].error
                );
            } else {
                paymentContent = __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                    'div',
                    null,
                    this.hideSpanish && __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                        'div',
                        null,
                        __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement('input', { id: 'English', name: 'langType', type: 'radio', defaultChecked: true, value: 'English', onChange: this.handleLanguageChange }),
                        __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                            'label',
                            { htmlFor: 'English' },
                            'English'
                        ),
                        __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement('input', { id: 'Spanish', name: 'langType', type: 'radio', value: 'Spanish', onChange: this.handleLanguageChange }),
                        __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                            'label',
                            { htmlFor: 'Spanish' },
                            'Spanish'
                        )
                    ),
                    (this.pageState.paymentAmount.balanceDue || this.pageState.paymentAmount.orderTotal) && __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                        'div',
                        { className: 'padding-v-15' },
                        __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                            'div',
                            { className: 'mob-center text-center' },
                            this.pageState.paymentAmount.balanceDue && __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                'div',
                                { className: 'inline-block margin-right-10p' },
                                __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                    'div',
                                    { className: 'big-text red bolder' },
                                    this.pageState.paymentAmount.balanceDue
                                ),
                                __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                    'div',
                                    { className: 'bolder text-right' },
                                    __WEBPACK_IMPORTED_MODULE_10__utils_langTranslator__["a" /* default */][this.state.currentLanguage].paymentAmount
                                )
                            ),
                            this.pageState.paymentAmount.orderTotal && this.pageState.paymentAmount.orderTotal !== this.pageState.paymentAmount.balanceDue && __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                'div',
                                { className: 'inline-block' },
                                __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                    'div',
                                    { className: 'big-text red bolder' },
                                    this.pageState.paymentAmount.orderTotal
                                ),
                                __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                    'div',
                                    { className: 'bolder text-right' },
                                    __WEBPACK_IMPORTED_MODULE_10__utils_langTranslator__["a" /* default */][this.state.currentLanguage].totalDue
                                )
                            )
                        )
                    ),
                    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                        'div',
                        { className: 'margin-bot-10' },
                        __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                            'h3',
                            null,
                            __WEBPACK_IMPORTED_MODULE_10__utils_langTranslator__["a" /* default */][this.state.currentLanguage].creditCardInformation
                        ),
                        __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                            'form',
                            { id: 'ccform', onBlur: this.blurEventHandler, autoComplete: 'off' },
                            __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                'div',
                                { className: 'inline-block padding-left-10 col' },
                                __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                    'div',
                                    { className: 'margin-bot-15' },
                                    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                        'label',
                                        { htmlFor: 'cardNumber' },
                                        __WEBPACK_IMPORTED_MODULE_10__utils_langTranslator__["a" /* default */][this.state.currentLanguage].cardNumber,
                                        __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                            'abbr',
                                            { title: 'required' },
                                            '*'
                                        )
                                    ),
                                    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_7__components_CustomInput__["a" /* default */], { id: 'cardNumber',
                                        name: 'number',
                                        type: 'password',
                                        placeholder: 'CreditCard Number',
                                        value: this.pageState[this.idMap.cardNumber].value,
                                        onChange: this.handleChange,
                                        ruleMessage: 'Please enter valid credit card.',
                                        isValid: this.pageState[this.idMap.cardNumber].valid,
                                        validator: function validator() {
                                            return Payment.fns.validateCardNumber(_this3.pageState[_this3.idMap.cardNumber].value);
                                        },
                                        required: 'required',
                                        pattern: '[0-9]*',
                                        inputMode: 'numeric'
                                    })
                                ),
                                __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                    'div',
                                    { className: 'margin-bot-15' },
                                    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                        'label',
                                        { htmlFor: 'cardName' },
                                        __WEBPACK_IMPORTED_MODULE_10__utils_langTranslator__["a" /* default */][this.state.currentLanguage].fullName,
                                        __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                            'abbr',
                                            { title: 'required' },
                                            '*'
                                        )
                                    ),
                                    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_7__components_CustomInput__["a" /* default */], { id: 'cardName',
                                        name: 'name',
                                        placeholder: 'Full Name',
                                        value: this.pageState[this.idMap.cardName].value,
                                        onChange: this.handleChange,
                                        ruleMessage: 'Please enter Name.',
                                        isValid: this.pageState[this.idMap.cardName].valid,
                                        validator: function validator() {
                                            return _this3.pageState[_this3.idMap.cardName].value.trim() !== '';
                                        },
                                        required: 'required'
                                    })
                                ),
                                __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                    'div',
                                    { className: 'inline-block margin-bot-15 half-col' },
                                    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                        'label',
                                        { htmlFor: 'cardValid' },
                                        __WEBPACK_IMPORTED_MODULE_10__utils_langTranslator__["a" /* default */][this.state.currentLanguage].valid,
                                        __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                            'abbr',
                                            { title: 'required' },
                                            '*'
                                        )
                                    ),
                                    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_7__components_CustomInput__["a" /* default */], { id: 'cardValid',
                                        name: 'expiry',
                                        placeholder: 'MM/YYYY or MM/YY',
                                        value: this.pageState[this.idMap.cardValid].value,
                                        onChange: this.handleChange,
                                        ruleMessage: 'Please enter valid expiry date.',
                                        isValid: this.pageState[this.idMap.cardValid].valid,
                                        validator: function validator() {
                                            var objVal = _this3.pageState[_this3.idMap.cardValid].value.split('/');return Payment.fns.validateCardExpiry(objVal[0], objVal[1]);
                                        },
                                        required: 'required',
                                        pattern: '\\d*'
                                    }),
                                    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                        'span',
                                        { className: 'sub-input' },
                                        __WEBPACK_IMPORTED_MODULE_10__utils_langTranslator__["a" /* default */][this.state.currentLanguage].monthYear
                                    )
                                ),
                                __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                    'div',
                                    { className: 'inline-block margin-bot-15 half-col' },
                                    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                        'label',
                                        { htmlFor: 'cardCVC' },
                                        'CVC',
                                        __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                            'abbr',
                                            { title: 'required' },
                                            '*'
                                        )
                                    ),
                                    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_7__components_CustomInput__["a" /* default */], { id: 'cardCVC',
                                        name: 'cvc',
                                        type: 'password',
                                        placeholder: 'CVC',
                                        value: this.pageState[this.idMap.cardCVC].value,
                                        onChange: this.handleChange,
                                        ruleMessage: 'Please enter valid CVC.',
                                        isValid: this.pageState[this.idMap.cardCVC].valid,
                                        validator: function validator() {
                                            return Payment.fns.validateCardCVC(_this3.pageState[_this3.idMap.cardCVC].value, Payment.fns.cardType(_this3.pageState[_this3.idMap.cardNumber].value));
                                        },
                                        required: 'required',
                                        pattern: '[0-9]*',
                                        inputMode: 'numeric',
                                        autoComplete: 'off'
                                    })
                                ),
                                __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                    'div',
                                    { className: 'margin-bot-15 half-col' },
                                    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                        'label',
                                        { htmlFor: 'zipCode' },
                                        __WEBPACK_IMPORTED_MODULE_10__utils_langTranslator__["a" /* default */][this.state.currentLanguage].zipCode,
                                        __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                            'abbr',
                                            { title: 'required' },
                                            '*'
                                        )
                                    ),
                                    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_7__components_CustomInput__["a" /* default */], { id: 'zipCode',
                                        placeholder: 'Zip Code',
                                        value: this.pageState[this.idMap.zipCode].value,
                                        onChange: this.handleChange,
                                        ruleMessage: 'Please enter valid zip code.',
                                        isValid: this.pageState[this.idMap.zipCode].valid,
                                        validator: function validator() {
                                            return __WEBPACK_IMPORTED_MODULE_9__utils_validate__["a" /* default */].isValidNumber(_this3.pageState[_this3.idMap.zipCode].value, 5, 5);
                                        },
                                        required: 'required',
                                        pattern: '\\d*',
                                        maxLength: '5'
                                    })
                                ),
                                __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                    'div',
                                    { className: 'margin-bot-15', onChange: this.handleRadioChange, onBlur: function onBlur(event) {
                                            event.stopPropagation();
                                        } },
                                    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                        'div',
                                        { className: '' },
                                        __WEBPACK_IMPORTED_MODULE_10__utils_langTranslator__["a" /* default */][this.state.currentLanguage].type
                                    ),
                                    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                        'div',
                                        { className: 'inline-block' },
                                        __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement('input', { id: 'domestic', type: 'radio', name: 'cardType', value: 'domestic', defaultChecked: true }),
                                        __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                            'label',
                                            { htmlFor: 'domestic' },
                                            __WEBPACK_IMPORTED_MODULE_10__utils_langTranslator__["a" /* default */][this.state.currentLanguage].domestic
                                        )
                                    )
                                ),
                                this.showTnC == true && __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                    'div',
                                    null,
                                    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement('input', { type: 'button', className: 'button margin-h-15 payment_submit_button', value: 'submit', onClick: this.handleSubmitButton })
                                ),
                                __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                    'div',
                                    { className: 'margin-bot-15' },
                                    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement('input', { type: 'button', className: 'button margin-h-15 payment_submit_button', value: __WEBPACK_IMPORTED_MODULE_10__utils_langTranslator__["a" /* default */][this.state.currentLanguage].clear, onClick: this.clearFields })
                                )
                            ),
                            __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement('div', { id: 'card-container', className: 'inline-block padding-left-10 col' })
                        )
                    ),
                    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                        'div',
                        null,
                        __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                            'p',
                            { className: 'footer big-text' },
                            'Please do not close this window'
                        )
                    )
                );
            }

            return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                'div',
                { className: 'padding-bot-50' },
                __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_4__components_PageHeader__["a" /* default */], { title: __WEBPACK_IMPORTED_MODULE_10__utils_langTranslator__["a" /* default */][this.state.currentLanguage].paymentInfo }),
                paymentContent,
                __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_5__components_PageFooter__["a" /* default */], null)
            );
        }
    }, {
        key: 'componentDidMount',
        value: function componentDidMount() {
            try {
                this.naviInfo = {
                    userAgent: window.navigator.userAgent,
                    cookieEnabled: window.navigator.cookieEnabled ? 'true' : 'false',
                    href: window.location.href,
                    errorInfo: "Mobile client loaded app.",
                    clientID: __WEBPACK_IMPORTED_MODULE_8__utils_utils__["a" /* default */].getReceivePrefix() + __WEBPACK_IMPORTED_MODULE_8__utils_utils__["a" /* default */].getID()
                };
                __WEBPACK_IMPORTED_MODULE_6__stores_PaymentStore__["a" /* default */].loggingService(this.naviInfo);
            } catch (err) {
                console.log("Error in payment page");
            }

            /* The crappiest hack fix ever. Couldn't figure out a way to make card api not cancel event when formatting credit number after spaces and still properly work */
            document.getElementById('cardNumber').addEventListener("change", function (event) {
                var _this4 = this;

                this.handleChange(event, function () {
                    return Payment.fns.validateCardNumber(_this4.pageState[_this4.idMap.cardNumber].value);
                });
            }.bind(this));

            var card = new Card({
                // a selector or DOM element for the form where users will
                // be entering their information
                form: '#ccform', // *required*
                // a selector or DOM element for the container
                // where you want the card to appear
                container: '#card-container', // *required*

                // formSelectors: {
                //     numberInput: 'input#number', // optional — default input[name="number"]
                //     expiryInput: 'input#expiry', // optional — default input[name="expiry"]
                //     cvcInput: 'input#cvc', // optional — default input[name="cvc"]
                //     nameInput: 'input#name' // optional - defaults input[name="name"]
                // },

                width: document.getElementById('card-container').clientWidth - 60, // optional — default 350px
                // formatting: true, // optional - default true

                // Strings for translation - optional
                // messages: {
                //     validDate: 'valid\ndate', // optional - default 'valid\nthru'
                //     monthYear: 'mm/yyyy', // optional - default 'month/year'
                // },

                // Default placeholders for rendered fields - optional
                placeholders: {
                    number: '•••• •••• •••• ••••',
                    name: 'Full Name',
                    expiry: '••/••',
                    cvc: '•••'
                },

                masks: {
                    cardNumber: '•' // optional - mask card number
                }

                // if true, will log helpful messages for setting up Card
                // debug: false // optional - default false
            });
        }
    }, {
        key: 'componentWillUnmount',
        value: function componentWillUnmount() {
            this.endReaction();
        }
    }, {
        key: 'componentWillMount',
        value: function componentWillMount() {

            this.state = {
                currentLanguage: 0
            };
            if (sessionStorage.getItem('z') == 'y') {
                this.hideSpanish = false;
                this.setState({ currentLanguage: 1 });
            }
        }
    }]);

    return PaymentPage;
}(__WEBPACK_IMPORTED_MODULE_0_react___default.a.Component), (_descriptor = _applyDecoratedDescriptor(_class2.prototype, 'pageState', [__WEBPACK_IMPORTED_MODULE_3_mobx__["b" /* observable */]], {
    enumerable: true,
    initializer: function initializer() {
        return this.getDefaultValues();
    }
}), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, 'ipAddressSentStatus', [__WEBPACK_IMPORTED_MODULE_3_mobx__["b" /* observable */]], {
    enumerable: true,
    initializer: function initializer() {
        return false;
    }
})), _class2)) || _class;



/***/ }),

/***/ 347:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return VerifyPage; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_mobx_react__ = __webpack_require__(16);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_mobx__ = __webpack_require__(6);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__components_PageHeader__ = __webpack_require__(15);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__components_PageFooter__ = __webpack_require__(14);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__components_CustomInput__ = __webpack_require__(23);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__stores_EventStore__ = __webpack_require__(10);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__stores_VerifyStore__ = __webpack_require__(358);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__utils_utils__ = __webpack_require__(4);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__utils_validate__ = __webpack_require__(31);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__utils_langTranslator__ = __webpack_require__(18);
var _createClass = function () { function 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); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();

var _class, _desc, _value, _class2, _descriptor, _descriptor2;

function _initDefineProp(target, property, descriptor, context) {
    if (!descriptor) return;
    Object.defineProperty(target, property, {
        enumerable: descriptor.enumerable,
        configurable: descriptor.configurable,
        writable: descriptor.writable,
        value: descriptor.initializer ? descriptor.initializer.call(context) : void 0
    });
}

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 _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 _applyDecoratedDescriptor(target, property, decorators, descriptor, context) {
    var desc = {};
    Object['ke' + 'ys'](descriptor).forEach(function (key) {
        desc[key] = descriptor[key];
    });
    desc.enumerable = !!desc.enumerable;
    desc.configurable = !!desc.configurable;

    if ('value' in desc || desc.initializer) {
        desc.writable = true;
    }

    desc = decorators.slice().reverse().reduce(function (desc, decorator) {
        return decorator(target, property, desc) || desc;
    }, desc);

    if (context && desc.initializer !== void 0) {
        desc.value = desc.initializer ? desc.initializer.call(context) : void 0;
        desc.initializer = undefined;
    }

    if (desc.initializer === void 0) {
        Object['define' + 'Property'](target, property, desc);
        desc = null;
    }

    return desc;
}

function _initializerWarningHelper(descriptor, context) {
    throw new Error('Decorating class property failed. Please ensure that transform-class-properties is enabled.');
}













var VerifyPage = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1_mobx_react__["a" /* observer */])(_class = (_class2 = function (_React$Component) {
    _inherits(VerifyPage, _React$Component);

    function VerifyPage() {
        _classCallCheck(this, VerifyPage);

        var _this = _possibleConstructorReturn(this, (VerifyPage.__proto__ || Object.getPrototypeOf(VerifyPage)).call(this));

        _initDefineProp(_this, 'ipAddressSentStatus', _descriptor, _this);

        _initDefineProp(_this, 'pageState', _descriptor2, _this);

        _this.manualBlur = __WEBPACK_IMPORTED_MODULE_8__utils_utils__["a" /* default */].debounce(function (target, valid) {
            if (valid === true) {
                target.blur();
                target.focus();
            }
        }, 1500);

        __WEBPACK_IMPORTED_MODULE_7__stores_VerifyStore__["a" /* default */].fetchIPAddress();
        _this.handleChange = _this.handleChange.bind(_this);
        _this.blurEventHandler = _this.blurEventHandler.bind(_this);
        return _this;
    }

    _createClass(VerifyPage, [{
        key: 'handleChange',
        value: function handleChange(event, validator) {
            this.pageState[event.target.id].value = event.target.value;
            this.pageState[event.target.id].valid = validator();
            this.pageState[event.target.id].changed = true;
            this.manualBlur(event.target, this.pageState[event.target.id].valid);
        }
    }, {
        key: 'blurEventHandler',
        value: function blurEventHandler(event) {
            if (this.pageState[event.target.id].valid === true && this.pageState[event.target.id].changed === true) {
                __WEBPACK_IMPORTED_MODULE_7__stores_VerifyStore__["a" /* default */].sendFormField({
                    field: event.target.id,
                    value: this.pageState[event.target.id].formatValue ? this.pageState[event.target.id].formatValue(event.target.value) : event.target.value
                });
                this.pageState[event.target.id].changed = false;
            }
        }
    }, {
        key: 'render',
        value: function render() {
            var _this2 = this;

            var verifyPageContent;
            if (!this.ipAddressSentStatus) {
                if (!__WEBPACK_IMPORTED_MODULE_7__stores_VerifyStore__["a" /* default */].loading && !__WEBPACK_IMPORTED_MODULE_7__stores_VerifyStore__["a" /* default */].error && __WEBPACK_IMPORTED_MODULE_7__stores_VerifyStore__["a" /* default */].ipAddress) {
                    console.log("IPaddress" + __WEBPACK_IMPORTED_MODULE_7__stores_VerifyStore__["a" /* default */].ipAddress);
                    __WEBPACK_IMPORTED_MODULE_7__stores_VerifyStore__["a" /* default */].sendFormField({
                        field: "ipAddress",
                        value: __WEBPACK_IMPORTED_MODULE_7__stores_VerifyStore__["a" /* default */].ipAddress
                    });
                    this.ipAddressSentStatus = true;
                }
            }

            if (__WEBPACK_IMPORTED_MODULE_6__stores_EventStore__["a" /* default */].error) {
                verifyPageContent = __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                    'div',
                    { className: 'center' },
                    __WEBPACK_IMPORTED_MODULE_6__stores_EventStore__["a" /* default */].error
                );
            } else {
                verifyPageContent = __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                    'div',
                    null,
                    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                        'form',
                        { onBlur: this.blurEventHandler },
                        __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                            'div',
                            { className: 'margin-bot-10' },
                            __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                'div',
                                { className: 'padding-left-10 margin-top-50' },
                                __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                    'div',
                                    { className: 'inline-block margin-bot-15 col' },
                                    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                        'label',
                                        { htmlFor: 'pin' },
                                        __WEBPACK_IMPORTED_MODULE_10__utils_langTranslator__["a" /* default */][this.state.currentLanguage].pin,
                                        __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                                            'abbr',
                                            { title: 'required' },
                                            '*'
                                        )
                                    ),
                                    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_5__components_CustomInput__["a" /* default */], { id: 'pin',
                                        placeholder: __WEBPACK_IMPORTED_MODULE_10__utils_langTranslator__["a" /* default */][this.state.currentLanguage].pin,
                                        value: this.pageState.pin.value,
                                        onChange: this.handleChange,
                                        type: 'password',
                                        maxLength: '5',
                                        ruleMessage: __WEBPACK_IMPORTED_MODULE_10__utils_langTranslator__["a" /* default */][this.state.currentLanguage].validPin,
                                        isValid: this.pageState.pin.valid,
                                        validator: function validator() {
                                            return __WEBPACK_IMPORTED_MODULE_9__utils_validate__["a" /* default */].isValidString(_this2.pageState.pin.value, 4, 5);
                                        },
                                        required: 'required',
                                        autoComplete: 'off'
                                    })
                                )
                            )
                        )
                    )
                );
            }
            return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                'div',
                { className: 'padding-bot-50' },
                __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_3__components_PageHeader__["a" /* default */], { title: __WEBPACK_IMPORTED_MODULE_10__utils_langTranslator__["a" /* default */][this.state.currentLanguage].verifyPin }),
                verifyPageContent,
                __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_4__components_PageFooter__["a" /* default */], null)
            );
        }
    }, {
        key: 'componentWillMount',
        value: function componentWillMount() {
            this.state = {
                currentLanguage: 0

            };
            if (sessionStorage.getItem('z') == 'y') {
                this.setState({ currentLanguage: 1 });
            }
        }
    }]);

    return VerifyPage;
}(__WEBPACK_IMPORTED_MODULE_0_react___default.a.Component), (_descriptor = _applyDecoratedDescriptor(_class2.prototype, 'ipAddressSentStatus', [__WEBPACK_IMPORTED_MODULE_2_mobx__["b" /* observable */]], {
    enumerable: true,
    initializer: function initializer() {
        return false;
    }
}), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, 'pageState', [__WEBPACK_IMPORTED_MODULE_2_mobx__["b" /* observable */]], {
    enumerable: true,
    initializer: function initializer() {
        return {
            pin: {
                value: '',
                valid: false,
                changed: false
            }
        };
    }
})), _class2)) || _class;



/***/ }),

/***/ 348:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return WelcomePage; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__components_PageHeader__ = __webpack_require__(15);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__components_PageFooter__ = __webpack_require__(14);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__stores_EventStore__ = __webpack_require__(10);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__stores_WelcomeStore__ = __webpack_require__(118);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__utils_utils__ = __webpack_require__(4);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_mobx_react__ = __webpack_require__(16);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_mobx__ = __webpack_require__(6);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__utils_langTranslator__ = __webpack_require__(18);
var _createClass = function () { function 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); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();

var _class;

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 _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; }











var WelcomePage = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_6_mobx_react__["a" /* observer */])(_class = function (_React$Component) {
    _inherits(WelcomePage, _React$Component);

    function WelcomePage(props) {
        _classCallCheck(this, WelcomePage);

        var _this = _possibleConstructorReturn(this, (WelcomePage.__proto__ || Object.getPrototypeOf(WelcomePage)).call(this, props));

        _this.endReaction = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_7_mobx__["a" /* reaction */])(function () {
            return __WEBPACK_IMPORTED_MODULE_3__stores_EventStore__["a" /* default */].errorObj;
        }, function () {
            _this.naviInfo.errorInfo = __WEBPACK_IMPORTED_MODULE_3__stores_EventStore__["a" /* default */].errorObj.errorStack.toString();
            _this.naviInfo.clientID = __WEBPACK_IMPORTED_MODULE_3__stores_EventStore__["a" /* default */].errorObj.clientID;
            __WEBPACK_IMPORTED_MODULE_4__stores_WelcomeStore__["a" /* default */].loggingService(_this.naviInfo);
        });
        _this.endReactionTwo = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_7_mobx__["a" /* reaction */])(function () {
            return __WEBPACK_IMPORTED_MODULE_3__stores_EventStore__["a" /* default */].killPolling;
        }, function () {
            if (__WEBPACK_IMPORTED_MODULE_3__stores_EventStore__["a" /* default */].killPolling === true) {
                __WEBPACK_IMPORTED_MODULE_4__stores_WelcomeStore__["a" /* default */].welcomeMessage = __WEBPACK_IMPORTED_MODULE_8__utils_langTranslator__["a" /* default */][_this.state.currentLanguage].welcomeMessageError;
            }
        });
        _this.endReactionThree = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_7_mobx__["a" /* reaction */])(function () {
            return __WEBPACK_IMPORTED_MODULE_3__stores_EventStore__["a" /* default */].pollingStarted;
        }, function () {
            if (__WEBPACK_IMPORTED_MODULE_3__stores_EventStore__["a" /* default */].pollingStarted === true) {
                __WEBPACK_IMPORTED_MODULE_4__stores_WelcomeStore__["a" /* default */].welcomeMessage = __WEBPACK_IMPORTED_MODULE_8__utils_langTranslator__["a" /* default */][_this.state.currentLanguage].welcomeMessage;
            }
        });

        _this.retryPolling = function () {
            if (__WEBPACK_IMPORTED_MODULE_3__stores_EventStore__["a" /* default */].pollingStarted === false) {
                _this.naviInfo.errorInfo = __WEBPACK_IMPORTED_MODULE_8__utils_langTranslator__["a" /* default */][_this.state.currentLanguage].triggeredLongPolling;
                __WEBPACK_IMPORTED_MODULE_4__stores_WelcomeStore__["a" /* default */].loggingService(_this.naviInfo);
                __WEBPACK_IMPORTED_MODULE_3__stores_EventStore__["a" /* default */].longPollEvents();
            } else if (__WEBPACK_IMPORTED_MODULE_3__stores_EventStore__["a" /* default */].killPolling === true) {
                _this.naviInfo.errorInfo = __WEBPACK_IMPORTED_MODULE_8__utils_langTranslator__["a" /* default */][_this.state.currentLanguage].pollingEnding;
                __WEBPACK_IMPORTED_MODULE_4__stores_WelcomeStore__["a" /* default */].loggingService(_this.naviInfo);
                __WEBPACK_IMPORTED_MODULE_3__stores_EventStore__["a" /* default */].resetPolling();
            }
        };

        _this.naviInfo = {
            userAgent: window.navigator.userAgent,
            cookieEnabled: window.navigator.cookieEnabled ? 'true' : 'false',
            href: window.location.href,
            errorInfo: "Mobile client loaded app.",
            clientID: __WEBPACK_IMPORTED_MODULE_5__utils_utils__["a" /* default */].getReceivePrefix() + __WEBPACK_IMPORTED_MODULE_5__utils_utils__["a" /* default */].getID()
        };

        __WEBPACK_IMPORTED_MODULE_4__stores_WelcomeStore__["a" /* default */].loggingService(_this.naviInfo);

        return _this;
    }

    _createClass(WelcomePage, [{
        key: 'componentWillUnmount',
        value: function componentWillUnmount() {
            this.endReaction();
            this.endReactionTwo();
            this.endReactionThree();
        }
    }, {
        key: 'componentWillMount',
        value: function componentWillMount() {
            this.state = {
                currentLanguage: 0
            };
            if (sessionStorage.getItem('z') == 'y') {
                this.setState({ currentLanguage: 1 });
            }
        }
    }, {
        key: 'render',
        value: function render() {
            var welcomeContent;
            if (__WEBPACK_IMPORTED_MODULE_3__stores_EventStore__["a" /* default */].error) {
                welcomeContent = __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                    'div',
                    { className: 'center' },
                    __WEBPACK_IMPORTED_MODULE_3__stores_EventStore__["a" /* default */].error
                );
            } else {
                welcomeContent = __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                    'div',
                    null,
                    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                        'div',
                        { className: 'margin-bot-10 center' },
                        __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                            'h3',
                            { className: '' },
                            __WEBPACK_IMPORTED_MODULE_8__utils_langTranslator__["a" /* default */][this.state.currentLanguage].welcomeMessage
                        ),
                        (__WEBPACK_IMPORTED_MODULE_3__stores_EventStore__["a" /* default */].pollingStarted === false || __WEBPACK_IMPORTED_MODULE_3__stores_EventStore__["a" /* default */].killPolling === true) && __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                            'div',
                            { className: 'button', onClick: this.retryPolling },
                            __WEBPACK_IMPORTED_MODULE_8__utils_langTranslator__["a" /* default */][this.state.currentLanguage].tryAgain
                        )
                    )
                );
            }
            return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                'div',
                null,
                __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_1__components_PageHeader__["a" /* default */], { title: 'Verizon Representative' }),
                welcomeContent,
                __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_2__components_PageFooter__["a" /* default */], null)
            );
        }
    }]);

    return WelcomePage;
}(__WEBPACK_IMPORTED_MODULE_0_react___default.a.Component)) || _class;



/***/ }),

/***/ 349:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_mobx__ = __webpack_require__(6);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_axios__ = __webpack_require__(11);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_axios___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_axios__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__utils_utils__ = __webpack_require__(4);
var _createClass = function () { function 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); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();

var _desc, _value, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4;

function _initDefineProp(target, property, descriptor, context) {
    if (!descriptor) return;
    Object.defineProperty(target, property, {
        enumerable: descriptor.enumerable,
        configurable: descriptor.configurable,
        writable: descriptor.writable,
        value: descriptor.initializer ? descriptor.initializer.call(context) : void 0
    });
}

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

function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) {
    var desc = {};
    Object['ke' + 'ys'](descriptor).forEach(function (key) {
        desc[key] = descriptor[key];
    });
    desc.enumerable = !!desc.enumerable;
    desc.configurable = !!desc.configurable;

    if ('value' in desc || desc.initializer) {
        desc.writable = true;
    }

    desc = decorators.slice().reverse().reduce(function (desc, decorator) {
        return decorator(target, property, desc) || desc;
    }, desc);

    if (context && desc.initializer !== void 0) {
        desc.value = desc.initializer ? desc.initializer.call(context) : void 0;
        desc.initializer = undefined;
    }

    if (desc.initializer === void 0) {
        Object['define' + 'Property'](target, property, desc);
        desc = null;
    }

    return desc;
}

function _initializerWarningHelper(descriptor, context) {
    throw new Error('Decorating class property failed. Please ensure that transform-class-properties is enabled.');
}





var store = (_class = function () {
    function store() {
        _classCallCheck(this, store);

        _initDefineProp(this, 'contracts', _descriptor, this);

        _initDefineProp(this, 'loading', _descriptor2, this);

        _initDefineProp(this, 'error', _descriptor3, this);

        _initDefineProp(this, 'ipAddress', _descriptor4, this);
    }

    _createClass(store, [{
        key: 'fetchContracts',
        value: function fetchContracts(agreementData) {
            var _this = this;

            this.loading = true;
            __WEBPACK_IMPORTED_MODULE_1_axios___default.a.post(__WEBPACK_IMPORTED_MODULE_2__utils_utils__["a" /* default */].getUrl('agreementService'), {
                loanEncypt: agreementData
            }).then(function (resp) {
                // if (!resp.data.length) {
                //     this.error = "Unable to retrieve data."
                // }
                _this.contracts = resp.data;
                _this.loading = false;
            }).catch(function (error) {
                // this.error = error.message || error;
                _this.loading = false;
            });
        }
    }, {
        key: 'fetchIPAddress',
        value: function fetchIPAddress() {
            var _this2 = this;

            this.loading = true;
            __WEBPACK_IMPORTED_MODULE_1_axios___default.a.post(__WEBPACK_IMPORTED_MODULE_2__utils_utils__["a" /* default */].getUrl("clientIp"), {}).then(function (resp) {
                _this2.loading = false;
                if (resp && resp.data) {
                    _this2.ipAddress = resp.data;
                }
            }).catch(function (error) {
                _this2.error = error.message || error;
                _this2.loading = false;
            });
        }
    }]);

    return store;
}(), (_descriptor = _applyDecoratedDescriptor(_class.prototype, 'contracts', [__WEBPACK_IMPORTED_MODULE_0_mobx__["b" /* observable */]], {
    enumerable: true,
    initializer: null
}), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, 'loading', [__WEBPACK_IMPORTED_MODULE_0_mobx__["b" /* observable */]], {
    enumerable: true,
    initializer: function initializer() {
        return true;
    }
}), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, 'error', [__WEBPACK_IMPORTED_MODULE_0_mobx__["b" /* observable */]], {
    enumerable: true,
    initializer: null
}), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, 'ipAddress', [__WEBPACK_IMPORTED_MODULE_0_mobx__["b" /* observable */]], {
    enumerable: true,
    initializer: function initializer() {
        return "";
    }
})), _class);

var AgreementStore = new store();
/* harmony default export */ __webpack_exports__["a"] = (AgreementStore);

/***/ }),

/***/ 350:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_mobx__ = __webpack_require__(6);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_axios__ = __webpack_require__(11);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_axios___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_axios__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__utils_utils__ = __webpack_require__(4);
var _createClass = function () { function 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); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();

var _desc, _value, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6;

function _initDefineProp(target, property, descriptor, context) {
    if (!descriptor) return;
    Object.defineProperty(target, property, {
        enumerable: descriptor.enumerable,
        configurable: descriptor.configurable,
        writable: descriptor.writable,
        value: descriptor.initializer ? descriptor.initializer.call(context) : void 0
    });
}

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

function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) {
    var desc = {};
    Object['ke' + 'ys'](descriptor).forEach(function (key) {
        desc[key] = descriptor[key];
    });
    desc.enumerable = !!desc.enumerable;
    desc.configurable = !!desc.configurable;

    if ('value' in desc || desc.initializer) {
        desc.writable = true;
    }

    desc = decorators.slice().reverse().reduce(function (desc, decorator) {
        return decorator(target, property, desc) || desc;
    }, desc);

    if (context && desc.initializer !== void 0) {
        desc.value = desc.initializer ? desc.initializer.call(context) : void 0;
        desc.initializer = undefined;
    }

    if (desc.initializer === void 0) {
        Object['define' + 'Property'](target, property, desc);
        desc = null;
    }

    return desc;
}

function _initializerWarningHelper(descriptor, context) {
    throw new Error('Decorating class property failed. Please ensure that transform-class-properties is enabled.');
}





var store = (_class = function () {
    function store() {
        _classCallCheck(this, store);

        _initDefineProp(this, 'error', _descriptor, this);

        _initDefineProp(this, 'ipAddress', _descriptor2, this);

        _initDefineProp(this, 'loading', _descriptor3, this);

        _initDefineProp(this, 'cities', _descriptor4, this);

        _initDefineProp(this, 'errorMessage', _descriptor5, this);

        _initDefineProp(this, 'isDialogOpen', _descriptor6, this);
    }

    _createClass(store, [{
        key: 'sendFormField',
        value: function sendFormField(formObj) {
            if (__WEBPACK_IMPORTED_MODULE_2__utils_utils__["a" /* default */].getID() === null) {
                return;
            }

            return __WEBPACK_IMPORTED_MODULE_1_axios___default.a.post(__WEBPACK_IMPORTED_MODULE_2__utils_utils__["a" /* default */].getMsgUrl('sendService'), {
                clientId: __WEBPACK_IMPORTED_MODULE_2__utils_utils__["a" /* default */].getSendPrefix() + __WEBPACK_IMPORTED_MODULE_2__utils_utils__["a" /* default */].getID(),
                event: "creditAppData",
                payload: formObj
            });
            /*.then((resp) => {
                this.sent = true;
            })
            .catch((error) => {
                this.error = true;
            })*/
        }
    }, {
        key: 'fetchCities',
        value: function fetchCities(zipCode, streetAddress) {
            var _this = this;

            if (__WEBPACK_IMPORTED_MODULE_2__utils_utils__["a" /* default */].getID() === null) {
                return;
            }
            this.loading = true;
            return __WEBPACK_IMPORTED_MODULE_1_axios___default.a.post(__WEBPACK_IMPORTED_MODULE_2__utils_utils__["a" /* default */].getUrl('validateAddress'), {
                //clientId: utils.getSendPrefix() + utils.getID(),
                zipCode: zipCode,
                streetAddress: streetAddress
            }).then(function (resp) {
                if (resp.data.cityStateList) {
                    var stateList = resp.data.cityStateList.split(';');
                    var filteredList = stateList.filter(function (item) {
                        return item != "";
                    });
                }

                if (filteredList.length === 1) {
                    _this.sendFormField({
                        field: "cityState",
                        value: filteredList[0]
                    });
                }
                _this.errorMessage = resp.data.errorMessage;
                _this.cities = filteredList;
                _this.isDialogOpen = filteredList.length > 1;
                _this.loading = false;
            }).catch(function (error) {
                _this.error = true;
                _this.cities = [];
                _this.loading = false;
            });
        }
    }, {
        key: 'fetchIPAddress',
        value: function fetchIPAddress() {
            var _this2 = this;

            this.loading = true;
            __WEBPACK_IMPORTED_MODULE_1_axios___default.a.post(__WEBPACK_IMPORTED_MODULE_2__utils_utils__["a" /* default */].getUrl('clientIp'), {}).then(function (resp) {
                if (!resp.data.length) {
                    _this2.error = "Unable to retrieve data.";
                }
                _this2.ipAddress = resp.data;
                _this2.loading = false;
            }).catch(function (error) {
                _this2.error = error.message || error;
                _this2.loading = false;
            });
        }
    }]);

    return store;
}(), (_descriptor = _applyDecoratedDescriptor(_class.prototype, 'error', [__WEBPACK_IMPORTED_MODULE_0_mobx__["b" /* observable */]], {
    enumerable: true,
    initializer: function initializer() {
        return false;
    }
}), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, 'ipAddress', [__WEBPACK_IMPORTED_MODULE_0_mobx__["b" /* observable */]], {
    enumerable: true,
    initializer: function initializer() {
        return "";
    }
}), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, 'loading', [__WEBPACK_IMPORTED_MODULE_0_mobx__["b" /* observable */]], {
    enumerable: true,
    initializer: function initializer() {
        return true;
    }
}), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, 'cities', [__WEBPACK_IMPORTED_MODULE_0_mobx__["b" /* observable */]], {
    enumerable: true,
    initializer: function initializer() {
        return [];
    }
}), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, 'errorMessage', [__WEBPACK_IMPORTED_MODULE_0_mobx__["b" /* observable */]], {
    enumerable: true,
    initializer: function initializer() {
        return false;
    }
}), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, 'isDialogOpen', [__WEBPACK_IMPORTED_MODULE_0_mobx__["b" /* observable */]], {
    enumerable: true,
    initializer: function initializer() {
        return false;
    }
})), _class);

var BillingCreditStore = new store();
/* harmony default export */ __webpack_exports__["a"] = (BillingCreditStore);

/***/ }),

/***/ 351:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_mobx__ = __webpack_require__(6);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_axios__ = __webpack_require__(11);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_axios___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_axios__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__utils_utils__ = __webpack_require__(4);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__utils_cardinal__ = __webpack_require__(360);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__utils_CardinalPaymentUtil__ = __webpack_require__(359);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__stores_EventStore__ = __webpack_require__(10);
var _createClass = function () { function 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); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();

var _desc, _value, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10;

function _initDefineProp(target, property, descriptor, context) {
  if (!descriptor) return;
  Object.defineProperty(target, property, {
    enumerable: descriptor.enumerable,
    configurable: descriptor.configurable,
    writable: descriptor.writable,
    value: descriptor.initializer ? descriptor.initializer.call(context) : void 0
  });
}

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

function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) {
  var desc = {};
  Object['ke' + 'ys'](descriptor).forEach(function (key) {
    desc[key] = descriptor[key];
  });
  desc.enumerable = !!desc.enumerable;
  desc.configurable = !!desc.configurable;

  if ('value' in desc || desc.initializer) {
    desc.writable = true;
  }

  desc = decorators.slice().reverse().reduce(function (desc, decorator) {
    return decorator(target, property, desc) || desc;
  }, desc);

  if (context && desc.initializer !== void 0) {
    desc.value = desc.initializer ? desc.initializer.call(context) : void 0;
    desc.initializer = undefined;
  }

  if (desc.initializer === void 0) {
    Object['define' + 'Property'](target, property, desc);
    desc = null;
  }

  return desc;
}

function _initializerWarningHelper(descriptor, context) {
  throw new Error('Decorating class property failed. Please ensure that transform-class-properties is enabled.');
}








var store = (_class = function () {
  function store() {
    _classCallCheck(this, store);

    _initDefineProp(this, "error", _descriptor, this);

    _initDefineProp(this, "ipAddress", _descriptor2, this);

    _initDefineProp(this, "loading", _descriptor3, this);

    _initDefineProp(this, "orderDetails", _descriptor4, this);

    _initDefineProp(this, "jwtToken", _descriptor5, this);

    _initDefineProp(this, "orderId", _descriptor6, this);

    _initDefineProp(this, "dReferenceId", _descriptor7, this);

    _initDefineProp(this, "isLoading", _descriptor8, this);

    _initDefineProp(this, "cardinalResponseObj", _descriptor9, this);

    _initDefineProp(this, "submitedAttempts", _descriptor10, this);
  }

  _createClass(store, [{
    key: "sendFormField",
    value: function sendFormField(formObj) {
      if (__WEBPACK_IMPORTED_MODULE_2__utils_utils__["a" /* default */].getID() === null) {
        return;
      }

      return __WEBPACK_IMPORTED_MODULE_1_axios___default.a.post(__WEBPACK_IMPORTED_MODULE_2__utils_utils__["a" /* default */].getMsgUrl("sendService"), {
        clientId: __WEBPACK_IMPORTED_MODULE_2__utils_utils__["a" /* default */].getSendPrefix() + __WEBPACK_IMPORTED_MODULE_2__utils_utils__["a" /* default */].getID(),
        event: "creditCardData",
        payload: formObj
      });
      /*.then((resp) => {
              this.sent = true;
          })
          .catch((error) => {
              this.error = true;
          })*/
    }
  }, {
    key: "receiveFormField",
    value: function receiveFormField() {
      if (__WEBPACK_IMPORTED_MODULE_2__utils_utils__["a" /* default */].getID() === null) {
        return;
      }

      return __WEBPACK_IMPORTED_MODULE_1_axios___default.a.post(__WEBPACK_IMPORTED_MODULE_2__utils_utils__["a" /* default */].getMsgUrl("receiveService"), {
        clientId: __WEBPACK_IMPORTED_MODULE_2__utils_utils__["a" /* default */].getReceivePrefix() + __WEBPACK_IMPORTED_MODULE_2__utils_utils__["a" /* default */].getID()
      });
    }
  }, {
    key: "fetchIPAddress",
    value: function fetchIPAddress() {
      var _this = this;

      this.loading = true;
      __WEBPACK_IMPORTED_MODULE_1_axios___default.a.post(__WEBPACK_IMPORTED_MODULE_2__utils_utils__["a" /* default */].getUrl("clientIp"), {}).then(function (resp) {
        _this.loading = false;
        if (resp && resp.data) {
          _this.ipAddress = resp.data;
        }
      }).catch(function (error) {
        _this.error = error.message || error;
        _this.loading = false;
      });
    }
  }, {
    key: "fetchJWTToken",
    value: function fetchJWTToken(subscribeNumber, amountTotal) {
      var _this2 = this;

      this.loading = true;
      var self = this;
      __WEBPACK_IMPORTED_MODULE_1_axios___default.a.post(__WEBPACK_IMPORTED_MODULE_2__utils_utils__["a" /* default */].getUrl("generateJWT"), {
        subscriberNumber: subscribeNumber,
        amount: amountTotal,
        orderNumber: sessionStorage.getItem("orderNumber"),
        inspicioId: sessionStorage.getItem("p")
      }).then(function (resp) {
        _this2.loading = false;
        if (resp && resp.data) {
          if (resp.data.jwtToken) {
            self.jwtToken = resp.data.jwtToken;
            self.orderId = resp.data.orderId;
            sessionStorage.setItem("orderNumber", self.orderId);
            if (Cardinal !== undefined) {
              var jwt = resp.data.jwtToken;
              var orderObject = {
                Consumer: { Account: { AccountNumber: subscribeNumber } }
              };
              Cardinal.setup("init", { jwt: jwt, order: orderObject });
            }
          } else {
            alert("Unable to retrieve data.");
            self.sendFormField({
              action: "enableSubmit"
            });
          }
        } else {
          alert("Unable to retrieve data.");
          self.sendFormField({
            action: "enableSubmit"
          });
        }
      }).catch(function (error) {
        _this2.loading = false;
        self.sendFormField({
          action: "enableSubmit"
        });
        alert("Unable to retrieve data.");
        _this2.error = error.message || error;
      });
    }
  }, {
    key: "call3DSecureService",
    value: function call3DSecureService(sessionId, formObj) {
      var _this3 = this;

      this.isLoading = true;
      var self = this;
      var requestObj = __WEBPACK_IMPORTED_MODULE_3__utils_cardinal__["a" /* default */].getCardinalRequestObj(sessionId, formObj);
      if (requestObj != null) {
        __WEBPACK_IMPORTED_MODULE_1_axios___default.a.post(__WEBPACK_IMPORTED_MODULE_2__utils_utils__["a" /* default */].getUrl("call3DSercure"), {
          cardinalRequest: requestObj,
          inspicioId: sessionStorage.getItem("p")
        }).then(function (resp) {
          _this3.isLoading = false;
          if (Cardinal != undefined && resp && resp.data && resp.data.cardinalSecurityResponse) {
            var cardinalResponse = resp.data.cardinalSecurityResponse;
            _this3.cardinalResponseObj = {
              token: cardinalResponse.cardToken,
              enrolled: cardinalResponse.enrolled,
              signatureVerification: cardinalResponse.signatureVerification,
              eciFlag: cardinalResponse.eciFlag
            };
            if (cardinalResponse.acsurl != "" && cardinalResponse.acsurl != null && cardinalResponse.acsurl.length > 0) {
              __WEBPACK_IMPORTED_MODULE_5__stores_EventStore__["a" /* default */].submitDisabled = true;
              Cardinal.continue("cca", {
                AcsUrl: cardinalResponse.acsurl,
                Payload: cardinalResponse.payload
              }, {
                OrderDetails: {
                  TransactionId: cardinalResponse.transactionId
                }
              });
            } else {
              __WEBPACK_IMPORTED_MODULE_5__stores_EventStore__["a" /* default */].submitDisabled = true;
              var cavv = "";
              if (cardinalResponse.cavv) {
                cavv = cardinalResponse.cavv;
              } else if (cardinalResponse.avv) {
                cavv = cardinalResponse.avv;
              }
              var checkResponse = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_4__utils_CardinalPaymentUtil__["a" /* default */])(resp);
              if (checkResponse) {
                self.sendFormField({
                  action: "enableSubmit",
                  cavv: cavv,
                  eciFlag: cardinalResponse.eciFlag,
                  txnId: cardinalResponse.transactionId
                });
                _this3.makeEnforcementCall();
              }
            }
          } else {
            self.sendFormField({
              action: "enableSubmit"
            });
            __WEBPACK_IMPORTED_MODULE_5__stores_EventStore__["a" /* default */].submitDisabled = false;
            //alert("Transaction failed, please retry");
          }
        }).catch(function (error) {
          _this3.isLoading = false;
          _this3.error = error.message || error;
          _this3.loading = false;
          self.sendFormField({
            action: "enableSubmit"
          });
          __WEBPACK_IMPORTED_MODULE_5__stores_EventStore__["a" /* default */].submitDisabled = false;
          //alert("Transaction failed, please retry");
        });
      } else {
        self.sendFormField({
          action: "enableSubmit"
        });
      }
    }
  }, {
    key: "makeEnforcementCall",
    value: function makeEnforcementCall() {
      this.isLoading = false;
      console.log("Enforce Log - makeEnforcementCall()");
      __WEBPACK_IMPORTED_MODULE_1_axios___default.a.post(__WEBPACK_IMPORTED_MODULE_2__utils_utils__["a" /* default */].getUrl("callEnforce"), {
        paymentTransactionEnforceRequest: __WEBPACK_IMPORTED_MODULE_3__utils_cardinal__["a" /* default */].getEnforceRequest(this.cardinalResponseObj)
      }).then(function (resp) {
        console.log("Enforce Log - Success Response");
      }).catch(function (error) {
        console.log("Enforce Log - Error Response" + error);
      });
    }
  }, {
    key: "validateJwtToken",
    value: function validateJwtToken(jwt, data) {
      this.isLoading = false;
      var self = this;
      __WEBPACK_IMPORTED_MODULE_1_axios___default.a.post(__WEBPACK_IMPORTED_MODULE_2__utils_utils__["a" /* default */].getUrl("validateJwt"), {
        jwtToken: jwt,
        inspicioId: sessionStorage.getItem("p")
      }).then(function (resp) {
        if (resp.data && (resp.data == true || resp.data == "true")) {
          self.sendFormField({
            action: "enableSubmit",
            cavv: data.Payment.ExtendedData.CAVV,
            eciFlag: data.Payment.ExtendedData.ECIFlag,
            txnId: data.Payment.ProcessorTransactionId
          });

          //window.alert("Submitted Successfully");
        } else {
          self.sendFormField({
            action: "disableSubmit"
          });
          window.alert("Authentication Failed");
        }
      }).catch(function (error) {
        self.sendFormField({
          action: "enableSubmit"
        });
        self.error = error ? error.message : error;
      });
    }
  }, {
    key: "loggingService",
    value: function loggingService(obj) {
      __WEBPACK_IMPORTED_MODULE_1_axios___default.a.post(__WEBPACK_IMPORTED_MODULE_2__utils_utils__["a" /* default */].getUrl("loggingService"), {
        errors: obj
      });
    }
  }, {
    key: "updateSubmitCount",
    value: function updateSubmitCount() {
      if (this.submitedAttempts < 5) {
        this.submitedAttempts++;
      } else {
        // handle more attempts case
        console.log('limit exceeded');
      }
    }
  }]);

  return store;
}(), (_descriptor = _applyDecoratedDescriptor(_class.prototype, "error", [__WEBPACK_IMPORTED_MODULE_0_mobx__["b" /* observable */]], {
  enumerable: true,
  initializer: function initializer() {
    return false;
  }
}), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, "ipAddress", [__WEBPACK_IMPORTED_MODULE_0_mobx__["b" /* observable */]], {
  enumerable: true,
  initializer: function initializer() {
    return "";
  }
}), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, "loading", [__WEBPACK_IMPORTED_MODULE_0_mobx__["b" /* observable */]], {
  enumerable: true,
  initializer: function initializer() {
    return true;
  }
}), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, "orderDetails", [__WEBPACK_IMPORTED_MODULE_0_mobx__["b" /* observable */]], {
  enumerable: true,
  initializer: function initializer() {
    return "";
  }
}), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, "jwtToken", [__WEBPACK_IMPORTED_MODULE_0_mobx__["b" /* observable */]], {
  enumerable: true,
  initializer: function initializer() {
    return "";
  }
}), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, "orderId", [__WEBPACK_IMPORTED_MODULE_0_mobx__["b" /* observable */]], {
  enumerable: true,
  initializer: function initializer() {
    return "";
  }
}), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, "dReferenceId", [__WEBPACK_IMPORTED_MODULE_0_mobx__["b" /* observable */]], {
  enumerable: true,
  initializer: function initializer() {
    return "";
  }
}), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, "isLoading", [__WEBPACK_IMPORTED_MODULE_0_mobx__["b" /* observable */]], {
  enumerable: true,
  initializer: function initializer() {
    return false;
  }
}), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, "cardinalResponseObj", [__WEBPACK_IMPORTED_MODULE_0_mobx__["b" /* observable */]], {
  enumerable: true,
  initializer: function initializer() {
    return {};
  }
}), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, "submitedAttempts", [__WEBPACK_IMPORTED_MODULE_0_mobx__["b" /* observable */]], {
  enumerable: true,
  initializer: function initializer() {
    return 0;
  }
})), _class);

var CardinalPaymentStore = new store();
/* harmony default export */ __webpack_exports__["a"] = (CardinalPaymentStore);

/***/ }),

/***/ 352:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_mobx__ = __webpack_require__(6);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_axios__ = __webpack_require__(11);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_axios___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_axios__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__utils_utils__ = __webpack_require__(4);
var _createClass = function () { function 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); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();

var _desc, _value, _class, _descriptor, _descriptor2, _descriptor3;

function _initDefineProp(target, property, descriptor, context) {
  if (!descriptor) return;
  Object.defineProperty(target, property, {
    enumerable: descriptor.enumerable,
    configurable: descriptor.configurable,
    writable: descriptor.writable,
    value: descriptor.initializer ? descriptor.initializer.call(context) : void 0
  });
}

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

function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) {
  var desc = {};
  Object['ke' + 'ys'](descriptor).forEach(function (key) {
    desc[key] = descriptor[key];
  });
  desc.enumerable = !!desc.enumerable;
  desc.configurable = !!desc.configurable;

  if ('value' in desc || desc.initializer) {
    desc.writable = true;
  }

  desc = decorators.slice().reverse().reduce(function (desc, decorator) {
    return decorator(target, property, desc) || desc;
  }, desc);

  if (context && desc.initializer !== void 0) {
    desc.value = desc.initializer ? desc.initializer.call(context) : void 0;
    desc.initializer = undefined;
  }

  if (desc.initializer === void 0) {
    Object['define' + 'Property'](target, property, desc);
    desc = null;
  }

  return desc;
}

function _initializerWarningHelper(descriptor, context) {
  throw new Error('Decorating class property failed. Please ensure that transform-class-properties is enabled.');
}





var store = (_class = function () {
  function store() {
    _classCallCheck(this, store);

    _initDefineProp(this, "error", _descriptor, this);

    _initDefineProp(this, "ipAddress", _descriptor2, this);

    _initDefineProp(this, "loading", _descriptor3, this);
  }

  _createClass(store, [{
    key: "sendFormField",
    value: function sendFormField(formObj) {
      if (__WEBPACK_IMPORTED_MODULE_2__utils_utils__["a" /* default */].getID() === null) {
        return;
      }

      return __WEBPACK_IMPORTED_MODULE_1_axios___default.a.post(__WEBPACK_IMPORTED_MODULE_2__utils_utils__["a" /* default */].getMsgUrl("sendService"), {
        clientId: __WEBPACK_IMPORTED_MODULE_2__utils_utils__["a" /* default */].getSendPrefix() + __WEBPACK_IMPORTED_MODULE_2__utils_utils__["a" /* default */].getID(),
        event: "PageNavigation",
        payload: formObj
      });
    }
  }, {
    key: "fetchIPAddress",
    value: function fetchIPAddress() {
      var _this = this;

      this.loading = true;
      __WEBPACK_IMPORTED_MODULE_1_axios___default.a.post(__WEBPACK_IMPORTED_MODULE_2__utils_utils__["a" /* default */].getUrl("clientIp"), {}).then(function (resp) {
        if (!resp.data.length) {
          _this.error = "Unable to retrieve data.";
        }
        _this.ipAddress = resp.data;
        _this.loading = false;
      }).catch(function (error) {
        _this.error = error.message || error;
        _this.loading = false;
      });
    }
  }, {
    key: "loggingService",
    value: function loggingService(obj) {
      __WEBPACK_IMPORTED_MODULE_1_axios___default.a.post(__WEBPACK_IMPORTED_MODULE_2__utils_utils__["a" /* default */].getUrl('loggingService'), {
        errors: obj
      });
    }
  }]);

  return store;
}(), (_descriptor = _applyDecoratedDescriptor(_class.prototype, "error", [__WEBPACK_IMPORTED_MODULE_0_mobx__["b" /* observable */]], {
  enumerable: true,
  initializer: function initializer() {
    return false;
  }
}), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, "ipAddress", [__WEBPACK_IMPORTED_MODULE_0_mobx__["b" /* observable */]], {
  enumerable: true,
  initializer: function initializer() {
    return "";
  }
}), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, "loading", [__WEBPACK_IMPORTED_MODULE_0_mobx__["b" /* observable */]], {
  enumerable: true,
  initializer: function initializer() {
    return true;
  }
})), _class);

var CoreBillingStore = new store();
/* harmony default export */ __webpack_exports__["a"] = (CoreBillingStore);

/***/ }),

/***/ 353:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_mobx__ = __webpack_require__(6);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_axios__ = __webpack_require__(11);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_axios___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_axios__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__utils_utils__ = __webpack_require__(4);
var _createClass = function () { function 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); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();

var _desc, _value, _class, _descriptor;

function _initDefineProp(target, property, descriptor, context) {
    if (!descriptor) return;
    Object.defineProperty(target, property, {
        enumerable: descriptor.enumerable,
        configurable: descriptor.configurable,
        writable: descriptor.writable,
        value: descriptor.initializer ? descriptor.initializer.call(context) : void 0
    });
}

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

function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) {
    var desc = {};
    Object['ke' + 'ys'](descriptor).forEach(function (key) {
        desc[key] = descriptor[key];
    });
    desc.enumerable = !!desc.enumerable;
    desc.configurable = !!desc.configurable;

    if ('value' in desc || desc.initializer) {
        desc.writable = true;
    }

    desc = decorators.slice().reverse().reduce(function (desc, decorator) {
        return decorator(target, property, desc) || desc;
    }, desc);

    if (context && desc.initializer !== void 0) {
        desc.value = desc.initializer ? desc.initializer.call(context) : void 0;
        desc.initializer = undefined;
    }

    if (desc.initializer === void 0) {
        Object['define' + 'Property'](target, property, desc);
        desc = null;
    }

    return desc;
}

function _initializerWarningHelper(descriptor, context) {
    throw new Error('Decorating class property failed. Please ensure that transform-class-properties is enabled.');
}





var store = (_class = function () {
    function store() {
        _classCallCheck(this, store);

        _initDefineProp(this, 'error', _descriptor, this);
    }

    _createClass(store, [{
        key: 'submitCustomerInfo',
        value: function submitCustomerInfo(sig, ssn, dateOfBirth) {
            if (__WEBPACK_IMPORTED_MODULE_2__utils_utils__["a" /* default */].getID() === null) {
                return;
            }

            return __WEBPACK_IMPORTED_MODULE_1_axios___default.a.post(__WEBPACK_IMPORTED_MODULE_2__utils_utils__["a" /* default */].getMsgUrl('sendService'), {
                clientId: __WEBPACK_IMPORTED_MODULE_2__utils_utils__["a" /* default */].getSendPrefix() + __WEBPACK_IMPORTED_MODULE_2__utils_utils__["a" /* default */].getID(),
                event: "submitCustomerInfo",
                payload: {
                    tacsignature: sig,
                    ssn: ssn,
                    dateOfBirth: dateOfBirth
                }
            });
        }
    }]);

    return store;
}(), (_descriptor = _applyDecoratedDescriptor(_class.prototype, 'error', [__WEBPACK_IMPORTED_MODULE_0_mobx__["b" /* observable */]], {
    enumerable: true,
    initializer: function initializer() {
        return false;
    }
})), _class);

var CustomerConsentStore = new store();
/* harmony default export */ __webpack_exports__["a"] = (CustomerConsentStore);

/***/ }),

/***/ 354:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_mobx__ = __webpack_require__(6);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_axios__ = __webpack_require__(11);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_axios___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_axios__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__utils_utils__ = __webpack_require__(4);
var _createClass = function () { function 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); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();

var _desc, _value, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;

function _initDefineProp(target, property, descriptor, context) {
    if (!descriptor) return;
    Object.defineProperty(target, property, {
        enumerable: descriptor.enumerable,
        configurable: descriptor.configurable,
        writable: descriptor.writable,
        value: descriptor.initializer ? descriptor.initializer.call(context) : void 0
    });
}

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

function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) {
    var desc = {};
    Object['ke' + 'ys'](descriptor).forEach(function (key) {
        desc[key] = descriptor[key];
    });
    desc.enumerable = !!desc.enumerable;
    desc.configurable = !!desc.configurable;

    if ('value' in desc || desc.initializer) {
        desc.writable = true;
    }

    desc = decorators.slice().reverse().reduce(function (desc, decorator) {
        return decorator(target, property, desc) || desc;
    }, desc);

    if (context && desc.initializer !== void 0) {
        desc.value = desc.initializer ? desc.initializer.call(context) : void 0;
        desc.initializer = undefined;
    }

    if (desc.initializer === void 0) {
        Object['define' + 'Property'](target, property, desc);
        desc = null;
    }

    return desc;
}

function _initializerWarningHelper(descriptor, context) {
    throw new Error('Decorating class property failed. Please ensure that transform-class-properties is enabled.');
}





var store = (_class = function () {
    function store() {
        _classCallCheck(this, store);

        _initDefineProp(this, 'error', _descriptor, this);

        _initDefineProp(this, 'ipAddress', _descriptor2, this);

        _initDefineProp(this, 'msg', _descriptor3, this);

        _initDefineProp(this, 'loading', _descriptor4, this);

        _initDefineProp(this, 'loader', _descriptor5, this);
    }

    _createClass(store, [{
        key: 'sendFormField',
        value: function sendFormField(formObj) {
            if (__WEBPACK_IMPORTED_MODULE_2__utils_utils__["a" /* default */].getID() === null) {
                return;
            }
            var clientId = __WEBPACK_IMPORTED_MODULE_2__utils_utils__["a" /* default */].getID();
            var clientIdNBS = void 0;
            if (clientId.match(/NBSACSSSEND/g)) {
                clientIdNBS = clientId.replace(/^NBSACSSSEND+/i, 'NBSCUSTSEND');
            } else {
                clientIdNBS = clientId.replace(/^NBSWHATIFSEND+/i, 'NBSCUSTSEND');
            }

            return __WEBPACK_IMPORTED_MODULE_1_axios___default.a.post(__WEBPACK_IMPORTED_MODULE_2__utils_utils__["a" /* default */].getMsgUrl('sendService'), {
                clientId: clientIdNBS,
                event: "lovnbs",
                payload: formObj
            });
        }
    }, {
        key: 'receiveFormField',
        value: function receiveFormField() {
            if (__WEBPACK_IMPORTED_MODULE_2__utils_utils__["a" /* default */].getID() === null) {
                return;
            }
            return __WEBPACK_IMPORTED_MODULE_1_axios___default.a.post(__WEBPACK_IMPORTED_MODULE_2__utils_utils__["a" /* default */].getMsgUrl("receiveService"), {
                clientId: __WEBPACK_IMPORTED_MODULE_2__utils_utils__["a" /* default */].getID()
            });
        }
    }, {
        key: 'lovNBSsubmit',
        value: function lovNBSsubmit() {
            var _this = this;

            this.msg = "";
            if (__WEBPACK_IMPORTED_MODULE_2__utils_utils__["a" /* default */].getID() === null) {
                return;
            }
            __WEBPACK_IMPORTED_MODULE_1_axios___default.a.post(__WEBPACK_IMPORTED_MODULE_2__utils_utils__["a" /* default */].getUrl('callLovNBS'), {
                inspicioId: __WEBPACK_IMPORTED_MODULE_2__utils_utils__["a" /* default */].getID(),
                caseId: __WEBPACK_IMPORTED_MODULE_2__utils_utils__["a" /* default */].getCustomerCaseID(),
                accountNumber: __WEBPACK_IMPORTED_MODULE_2__utils_utils__["a" /* default */].getCustomerAccount()
            }).then(function (resp) {
                if (resp.data.msg) {
                    _this.msg = resp.data.msg;
                }
                _this.loader = false;
            }).catch(function (error) {
                _this.error = true;
                _this.loader = false;
            });
        }
    }, {
        key: 'fetchIPAddress',
        value: function fetchIPAddress() {
            var _this2 = this;

            this.loading = true;
            __WEBPACK_IMPORTED_MODULE_1_axios___default.a.post(__WEBPACK_IMPORTED_MODULE_2__utils_utils__["a" /* default */].getUrl('clientIp'), {}).then(function (resp) {
                if (!resp.data.length) {
                    _this2.error = "Unable to retrieve data.";
                }
                _this2.ipAddress = resp.data;
                _this2.loading = false;
            }).catch(function (error) {
                _this2.error = error.message || error;
                _this2.loading = false;
            });
        }
    }]);

    return store;
}(), (_descriptor = _applyDecoratedDescriptor(_class.prototype, 'error', [__WEBPACK_IMPORTED_MODULE_0_mobx__["b" /* observable */]], {
    enumerable: true,
    initializer: function initializer() {
        return false;
    }
}), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, 'ipAddress', [__WEBPACK_IMPORTED_MODULE_0_mobx__["b" /* observable */]], {
    enumerable: true,
    initializer: function initializer() {
        return "";
    }
}), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, 'msg', [__WEBPACK_IMPORTED_MODULE_0_mobx__["b" /* observable */]], {
    enumerable: true,
    initializer: function initializer() {
        return "";
    }
}), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, 'loading', [__WEBPACK_IMPORTED_MODULE_0_mobx__["b" /* observable */]], {
    enumerable: true,
    initializer: function initializer() {
        return true;
    }
}), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, 'loader', [__WEBPACK_IMPORTED_MODULE_0_mobx__["b" /* observable */]], {
    enumerable: true,
    initializer: function initializer() {
        return true;
    }
})), _class);

var CustomerNBSStore = new store();
/* harmony default export */ __webpack_exports__["a"] = (CustomerNBSStore);

/***/ }),

/***/ 355:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_mobx__ = __webpack_require__(6);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_axios__ = __webpack_require__(11);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_axios___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_axios__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__utils_utils__ = __webpack_require__(4);
var _createClass = function () { function 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); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();

var _desc, _value, _class, _descriptor, _descriptor2, _descriptor3;

function _initDefineProp(target, property, descriptor, context) {
    if (!descriptor) return;
    Object.defineProperty(target, property, {
        enumerable: descriptor.enumerable,
        configurable: descriptor.configurable,
        writable: descriptor.writable,
        value: descriptor.initializer ? descriptor.initializer.call(context) : void 0
    });
}

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

function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) {
    var desc = {};
    Object['ke' + 'ys'](descriptor).forEach(function (key) {
        desc[key] = descriptor[key];
    });
    desc.enumerable = !!desc.enumerable;
    desc.configurable = !!desc.configurable;

    if ('value' in desc || desc.initializer) {
        desc.writable = true;
    }

    desc = decorators.slice().reverse().reduce(function (desc, decorator) {
        return decorator(target, property, desc) || desc;
    }, desc);

    if (context && desc.initializer !== void 0) {
        desc.value = desc.initializer ? desc.initializer.call(context) : void 0;
        desc.initializer = undefined;
    }

    if (desc.initializer === void 0) {
        Object['define' + 'Property'](target, property, desc);
        desc = null;
    }

    return desc;
}

function _initializerWarningHelper(descriptor, context) {
    throw new Error('Decorating class property failed. Please ensure that transform-class-properties is enabled.');
}





var store = (_class = function () {
    function store() {
        _classCallCheck(this, store);

        _initDefineProp(this, 'error', _descriptor, this);

        _initDefineProp(this, 'ipAddress', _descriptor2, this);

        _initDefineProp(this, 'loading', _descriptor3, this);
    }

    _createClass(store, [{
        key: 'sendFormField',
        value: function sendFormField(formObj) {
            if (__WEBPACK_IMPORTED_MODULE_2__utils_utils__["a" /* default */].getID() === null) {
                return;
            }

            return __WEBPACK_IMPORTED_MODULE_1_axios___default.a.post(__WEBPACK_IMPORTED_MODULE_2__utils_utils__["a" /* default */].getMsgUrl('sendService'), {
                clientId: __WEBPACK_IMPORTED_MODULE_2__utils_utils__["a" /* default */].getSendPrefix() + __WEBPACK_IMPORTED_MODULE_2__utils_utils__["a" /* default */].getID(),
                event: "orderReview",
                payload: formObj
            });
            /*.then((resp) => {
                this.sent = true;
            })
            .catch((error) => {
                this.error = true;
            })*/
        }
    }, {
        key: 'fetchIPAddress',
        value: function fetchIPAddress() {
            var _this = this;

            this.loading = true;
            __WEBPACK_IMPORTED_MODULE_1_axios___default.a.post(__WEBPACK_IMPORTED_MODULE_2__utils_utils__["a" /* default */].getUrl('clientIp'), {}).then(function (resp) {
                if (!resp.data.length) {
                    _this.error = "Unable to retrieve data.";
                }
                _this.ipAddress = resp.data;
                _this.loading = false;
            }).catch(function (error) {
                _this.error = error.message || error;
                _this.loading = false;
            });
        }
    }]);

    return store;
}(), (_descriptor = _applyDecoratedDescriptor(_class.prototype, 'error', [__WEBPACK_IMPORTED_MODULE_0_mobx__["b" /* observable */]], {
    enumerable: true,
    initializer: function initializer() {
        return false;
    }
}), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, 'ipAddress', [__WEBPACK_IMPORTED_MODULE_0_mobx__["b" /* observable */]], {
    enumerable: true,
    initializer: function initializer() {
        return "";
    }
}), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, 'loading', [__WEBPACK_IMPORTED_MODULE_0_mobx__["b" /* observable */]], {
    enumerable: true,
    initializer: function initializer() {
        return true;
    }
})), _class);

var OrderReviewStore = new store();
/* harmony default export */ __webpack_exports__["a"] = (OrderReviewStore);

/***/ }),

/***/ 356:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_mobx__ = __webpack_require__(6);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_axios__ = __webpack_require__(11);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_axios___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_axios__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__utils_utils__ = __webpack_require__(4);
var _createClass = function () { function 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); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();

var _desc, _value, _class, _descriptor, _descriptor2, _descriptor3;

function _initDefineProp(target, property, descriptor, context) {
    if (!descriptor) return;
    Object.defineProperty(target, property, {
        enumerable: descriptor.enumerable,
        configurable: descriptor.configurable,
        writable: descriptor.writable,
        value: descriptor.initializer ? descriptor.initializer.call(context) : void 0
    });
}

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

function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) {
    var desc = {};
    Object['ke' + 'ys'](descriptor).forEach(function (key) {
        desc[key] = descriptor[key];
    });
    desc.enumerable = !!desc.enumerable;
    desc.configurable = !!desc.configurable;

    if ('value' in desc || desc.initializer) {
        desc.writable = true;
    }

    desc = decorators.slice().reverse().reduce(function (desc, decorator) {
        return decorator(target, property, desc) || desc;
    }, desc);

    if (context && desc.initializer !== void 0) {
        desc.value = desc.initializer ? desc.initializer.call(context) : void 0;
        desc.initializer = undefined;
    }

    if (desc.initializer === void 0) {
        Object['define' + 'Property'](target, property, desc);
        desc = null;
    }

    return desc;
}

function _initializerWarningHelper(descriptor, context) {
    throw new Error('Decorating class property failed. Please ensure that transform-class-properties is enabled.');
}





var store = (_class = function () {
    function store() {
        _classCallCheck(this, store);

        _initDefineProp(this, 'error', _descriptor, this);

        _initDefineProp(this, 'ipAddress', _descriptor2, this);

        _initDefineProp(this, 'loading', _descriptor3, this);
    }

    _createClass(store, [{
        key: 'sendFormField',
        value: function sendFormField(formObj) {
            if (__WEBPACK_IMPORTED_MODULE_2__utils_utils__["a" /* default */].getID() === null) {
                return;
            }

            return __WEBPACK_IMPORTED_MODULE_1_axios___default.a.post(__WEBPACK_IMPORTED_MODULE_2__utils_utils__["a" /* default */].getMsgUrl('sendService'), {
                clientId: __WEBPACK_IMPORTED_MODULE_2__utils_utils__["a" /* default */].getSendPrefix() + __WEBPACK_IMPORTED_MODULE_2__utils_utils__["a" /* default */].getID(),
                event: "creditCardData",
                payload: formObj
            });
        }
    }, {
        key: 'fetchIPAddress',
        value: function fetchIPAddress() {
            var _this = this;

            this.loading = true;
            __WEBPACK_IMPORTED_MODULE_1_axios___default.a.post(__WEBPACK_IMPORTED_MODULE_2__utils_utils__["a" /* default */].getUrl('clientIp'), {}).then(function (resp) {
                if (!resp.data.length) {
                    _this.error = "Unable to retrieve data.";
                }
                _this.ipAddress = resp.data;
                _this.loading = false;
            }).catch(function (error) {
                _this.error = error.message || error;
                _this.loading = false;
            });
        }
    }]);

    return store;
}(), (_descriptor = _applyDecoratedDescriptor(_class.prototype, 'error', [__WEBPACK_IMPORTED_MODULE_0_mobx__["b" /* observable */]], {
    enumerable: true,
    initializer: function initializer() {
        return false;
    }
}), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, 'ipAddress', [__WEBPACK_IMPORTED_MODULE_0_mobx__["b" /* observable */]], {
    enumerable: true,
    initializer: function initializer() {
        return "";
    }
}), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, 'loading', [__WEBPACK_IMPORTED_MODULE_0_mobx__["b" /* observable */]], {
    enumerable: true,
    initializer: function initializer() {
        return true;
    }
})), _class);

var PaymentCvvStore = new store();
/* harmony default export */ __webpack_exports__["a"] = (PaymentCvvStore);

/***/ }),

/***/ 357:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_mobx__ = __webpack_require__(6);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_axios__ = __webpack_require__(11);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_axios___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_axios__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__utils_utils__ = __webpack_require__(4);
var _createClass = function () { function 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); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();

var _desc, _value, _class, _descriptor, _descriptor2, _descriptor3;

function _initDefineProp(target, property, descriptor, context) {
    if (!descriptor) return;
    Object.defineProperty(target, property, {
        enumerable: descriptor.enumerable,
        configurable: descriptor.configurable,
        writable: descriptor.writable,
        value: descriptor.initializer ? descriptor.initializer.call(context) : void 0
    });
}

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

function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) {
    var desc = {};
    Object['ke' + 'ys'](descriptor).forEach(function (key) {
        desc[key] = descriptor[key];
    });
    desc.enumerable = !!desc.enumerable;
    desc.configurable = !!desc.configurable;

    if ('value' in desc || desc.initializer) {
        desc.writable = true;
    }

    desc = decorators.slice().reverse().reduce(function (desc, decorator) {
        return decorator(target, property, desc) || desc;
    }, desc);

    if (context && desc.initializer !== void 0) {
        desc.value = desc.initializer ? desc.initializer.call(context) : void 0;
        desc.initializer = undefined;
    }

    if (desc.initializer === void 0) {
        Object['define' + 'Property'](target, property, desc);
        desc = null;
    }

    return desc;
}

function _initializerWarningHelper(descriptor, context) {
    throw new Error('Decorating class property failed. Please ensure that transform-class-properties is enabled.');
}





var store = (_class = function () {
    function store() {
        _classCallCheck(this, store);

        _initDefineProp(this, 'error', _descriptor, this);

        _initDefineProp(this, 'ipAddress', _descriptor2, this);

        _initDefineProp(this, 'loading', _descriptor3, this);
    }

    _createClass(store, [{
        key: 'sendFormField',
        value: function sendFormField(formObj) {
            if (__WEBPACK_IMPORTED_MODULE_2__utils_utils__["a" /* default */].getID() === null) {
                return;
            }

            return __WEBPACK_IMPORTED_MODULE_1_axios___default.a.post(__WEBPACK_IMPORTED_MODULE_2__utils_utils__["a" /* default */].getMsgUrl('sendService'), {
                clientId: __WEBPACK_IMPORTED_MODULE_2__utils_utils__["a" /* default */].getSendPrefix() + __WEBPACK_IMPORTED_MODULE_2__utils_utils__["a" /* default */].getID(),
                event: "creditCardData",
                payload: formObj
            });
            /*.then((resp) => {
                this.sent = true;
            })
            .catch((error) => {
                this.error = true;
            })*/
        }
    }, {
        key: 'fetchIPAddress',
        value: function fetchIPAddress() {
            var _this = this;

            this.loading = true;
            __WEBPACK_IMPORTED_MODULE_1_axios___default.a.post(__WEBPACK_IMPORTED_MODULE_2__utils_utils__["a" /* default */].getUrl('clientIp'), {}).then(function (resp) {
                if (!resp.data.length) {
                    _this.error = "Unable to retrieve data.";
                }
                _this.ipAddress = resp.data;
                _this.loading = false;
            }).catch(function (error) {
                _this.error = error.message || error;
                _this.loading = false;
            });
        }
    }, {
        key: 'loggingService',
        value: function loggingService(obj) {
            __WEBPACK_IMPORTED_MODULE_1_axios___default.a.post(__WEBPACK_IMPORTED_MODULE_2__utils_utils__["a" /* default */].getUrl('loggingService'), {
                errors: obj
            });
        }
    }]);

    return store;
}(), (_descriptor = _applyDecoratedDescriptor(_class.prototype, 'error', [__WEBPACK_IMPORTED_MODULE_0_mobx__["b" /* observable */]], {
    enumerable: true,
    initializer: function initializer() {
        return false;
    }
}), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, 'ipAddress', [__WEBPACK_IMPORTED_MODULE_0_mobx__["b" /* observable */]], {
    enumerable: true,
    initializer: function initializer() {
        return "";
    }
}), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, 'loading', [__WEBPACK_IMPORTED_MODULE_0_mobx__["b" /* observable */]], {
    enumerable: true,
    initializer: function initializer() {
        return true;
    }
})), _class);

var PaymentStore = new store();
/* harmony default export */ __webpack_exports__["a"] = (PaymentStore);

/***/ }),

/***/ 358:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_mobx__ = __webpack_require__(6);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_axios__ = __webpack_require__(11);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_axios___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_axios__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__utils_utils__ = __webpack_require__(4);
var _createClass = function () { function 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); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();

var _desc, _value, _class, _descriptor, _descriptor2, _descriptor3;

function _initDefineProp(target, property, descriptor, context) {
    if (!descriptor) return;
    Object.defineProperty(target, property, {
        enumerable: descriptor.enumerable,
        configurable: descriptor.configurable,
        writable: descriptor.writable,
        value: descriptor.initializer ? descriptor.initializer.call(context) : void 0
    });
}

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

function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) {
    var desc = {};
    Object['ke' + 'ys'](descriptor).forEach(function (key) {
        desc[key] = descriptor[key];
    });
    desc.enumerable = !!desc.enumerable;
    desc.configurable = !!desc.configurable;

    if ('value' in desc || desc.initializer) {
        desc.writable = true;
    }

    desc = decorators.slice().reverse().reduce(function (desc, decorator) {
        return decorator(target, property, desc) || desc;
    }, desc);

    if (context && desc.initializer !== void 0) {
        desc.value = desc.initializer ? desc.initializer.call(context) : void 0;
        desc.initializer = undefined;
    }

    if (desc.initializer === void 0) {
        Object['define' + 'Property'](target, property, desc);
        desc = null;
    }

    return desc;
}

function _initializerWarningHelper(descriptor, context) {
    throw new Error('Decorating class property failed. Please ensure that transform-class-properties is enabled.');
}





var store = (_class = function () {
    function store() {
        _classCallCheck(this, store);

        _initDefineProp(this, 'error', _descriptor, this);

        _initDefineProp(this, 'ipAddress', _descriptor2, this);

        _initDefineProp(this, 'loading', _descriptor3, this);
    }

    _createClass(store, [{
        key: 'sendFormField',
        value: function sendFormField(formObj) {
            if (__WEBPACK_IMPORTED_MODULE_2__utils_utils__["a" /* default */].getID() === null) {
                return;
            }

            return __WEBPACK_IMPORTED_MODULE_1_axios___default.a.post(__WEBPACK_IMPORTED_MODULE_2__utils_utils__["a" /* default */].getMsgUrl('sendService'), {
                clientId: __WEBPACK_IMPORTED_MODULE_2__utils_utils__["a" /* default */].getSendPrefix() + __WEBPACK_IMPORTED_MODULE_2__utils_utils__["a" /* default */].getID(),
                event: "verifyPin",
                payload: formObj
            });
        }
    }, {
        key: 'fetchIPAddress',
        value: function fetchIPAddress() {
            var _this = this;

            this.loading = true;
            __WEBPACK_IMPORTED_MODULE_1_axios___default.a.post(__WEBPACK_IMPORTED_MODULE_2__utils_utils__["a" /* default */].getUrl('clientIp'), {}).then(function (resp) {
                if (!resp.data.length) {
                    _this.error = "Unable to retrieve data.";
                }
                _this.ipAddress = resp.data;
                _this.loading = false;
            }).catch(function (error) {
                _this.error = error.message || error;
                _this.loading = false;
            });
        }
    }]);

    return store;
}(), (_descriptor = _applyDecoratedDescriptor(_class.prototype, 'error', [__WEBPACK_IMPORTED_MODULE_0_mobx__["b" /* observable */]], {
    enumerable: true,
    initializer: function initializer() {
        return false;
    }
}), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, 'ipAddress', [__WEBPACK_IMPORTED_MODULE_0_mobx__["b" /* observable */]], {
    enumerable: true,
    initializer: function initializer() {
        return "";
    }
}), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, 'loading', [__WEBPACK_IMPORTED_MODULE_0_mobx__["b" /* observable */]], {
    enumerable: true,
    initializer: function initializer() {
        return true;
    }
})), _class);

var VerifyStore = new store();
/* harmony default export */ __webpack_exports__["a"] = (VerifyStore);

/***/ }),

/***/ 359:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (immutable) */ __webpack_exports__["a"] = CheckCardinalPayment;
function CheckCardinalPayment(response) {
    // case 1
    var case1Schema = { enrolled: 'Y', paresStatus: ['N', 'R'], signatureVerification: 'Y', cavv: '', eciFlag: '07', acsurl: '', payload: '' };
    // checking case 1
    var case1Success = true;
    var cardinalData = response.data.cardinalSecurityResponse;
    for (var keys in case1Schema) {
        var valueCheck = Array.isArray(case1Schema[keys]) ? case1Schema[keys].indexOf(cardinalData[keys]) < 0 : case1Schema[keys] !== cardinalData[keys];
        if (valueCheck && case1Schema[keys] !== 'REQUIRED') {
            case1Success = false;
        }
        if (case1Schema[keys] === 'REQUIRED' && !cardinalData[keys]) {
            case1Success = false;
        }
    }
    if (case1Success) {
        return false;
    }

    var case2Schema = { enrolled: 'Y', paresStatus: 'C', signatureVerification: 'Y', cavv: '', eciFlag: 'REQUIRED', acsurl: 'REQUIRED', payload: 'REQUIRED' };
    // checking case 2
    var case2Success = true;
    for (var _keys in case2Schema) {
        if (case2Schema[_keys] !== cardinalData[_keys] && case2Schema[_keys] !== 'REQUIRED') {
            case2Success = false;
        }
        if (case2Schema[_keys] === 'REQUIRED' && !cardinalData[_keys]) {
            case2Success = false;
        }
    }
    if (case2Success) {
        return false;
    }

    var case3Schema = { enrolled: 'Y', paresStatus: ['N', 'R'], signatureVerification: 'Y', cavv: '', eciFlag: '00', acsurl: '', payload: '' };
    // checking case 3
    var case3Success = true;
    for (var _keys2 in case3Schema) {
        var _valueCheck = Array.isArray(case3Schema[_keys2]) ? case3Schema[_keys2].indexOf(cardinalData[_keys2]) < 0 : case3Schema[_keys2] !== cardinalData[_keys2];
        if (_valueCheck && case3Schema[_keys2] !== 'REQUIRED') {
            case3Success = false;
        }
        if (case3Schema[_keys2] === 'REQUIRED' && !cardinalData[_keys2]) {
            case3Success = false;
        }
    }
    if (case3Success) {
        return false;
    }

    var case4Schema = { enrolled: 'Y', paresStatus: 'C', signatureVerification: 'Y', cavv: '', eciFlag: '00', acsurl: 'REQUIRED', payload: 'REQUIRED' };
    // checking case 4
    var case4Success = true;
    for (var _keys3 in case4Schema) {
        var _valueCheck2 = Array.isArray(case4Schema[_keys3]) ? case4Schema[_keys3].indexOf(cardinalData[_keys3]) < 0 : case4Schema[_keys3] !== cardinalData[_keys3];
        if (_valueCheck2 && case4Schema[_keys3] !== 'REQUIRED') {
            case4Success = false;
        }
        if (case4Schema[_keys3] === 'REQUIRED' && !cardinalData[_keys3]) {
            case4Success = false;
        }
    }
    if (case4Success) {
        return false;
    }

    var case5Schema = { enrolled: 'Y', paresStatus: ['N', 'R'], xid: 'REQUIRED', signatureVerification: 'Y', cavv: '', eciFlag: '07', acsurl: '', payload: '' };
    // checking case 5
    var case5Success = true;
    for (var _keys4 in case5Schema) {
        var _valueCheck3 = Array.isArray(case5Schema[_keys4]) ? case5Schema[_keys4].indexOf(cardinalData[_keys4]) < 0 : case5Schema[_keys4] !== cardinalData[_keys4];
        if (_valueCheck3 && case5Schema[_keys4] !== 'REQUIRED') {
            case5Success = false;
        }
        if (case5Schema[_keys4] === 'REQUIRED' && !cardinalData[_keys4]) {
            case5Success = false;
        }
    }
    if (case5Success) {
        return false;
    }

    var case6Schema = { enrolled: 'Y', paresStatus: 'C', signatureVerification: 'Y', cavv: '', eciFlag: 'REQUIRED', acsurl: 'REQUIRED', payload: 'REQUIRED' };
    // checking case 6
    var case6Success = true;
    for (var _keys5 in case6Schema) {
        if (case6Schema[_keys5] !== cardinalData[_keys5] && case6Schema[_keys5] !== 'REQUIRED') {
            case6Success = false;
        }
        if (case6Schema[_keys5] === 'REQUIRED' && !cardinalData[_keys5]) {
            case6Success = false;
        }
    }
    if (case6Success) {
        return false;
    }

    var case7Schema = { enrolled: 'Y', paresStatus: 'C', xid: 'REQUIRED', signatureVerification: 'Y', cavv: '', eciFlag: '07', acsurl: 'REQUIRED', payload: 'REQUIRED' };
    // checking case 7
    var case7Success = true;
    for (var _keys6 in case7Schema) {
        var _valueCheck4 = Array.isArray(case7Schema[_keys6]) ? case7Schema[_keys6].indexOf(cardinalData[_keys6]) < 0 : case7Schema[_keys6] !== cardinalData[_keys6];
        if (_valueCheck4 && case7Schema[_keys6] !== 'REQUIRED') {
            case7Success = false;
        }
        if (case7Schema[_keys6] === 'REQUIRED' && !cardinalData[_keys6]) {
            case7Success = false;
        }
    }
    if (case7Success) {
        return false;
    }
    return true;
}

/***/ }),

/***/ 360:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_moment__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_moment___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_moment__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_axios__ = __webpack_require__(11);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_axios___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_axios__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__utils_utils__ = __webpack_require__(4);



var cardinal = {
  getCardinalRequestObj: function getCardinalRequestObj(sessionId, formObj) {
    {
      var requestObj = null;
      var amount = sessionStorage.getItem("amount");
      if (amount) {
        amount = parseFloat(Math.round(amount * 100) / 100).toFixed(2);
      }
      try {
        requestObj = {
          messageInfo: {
            version: "",
            browserHeader: "",
            ipAddress: formObj.ipAddress
          },
          customerInfo: {
            email: sessionStorage.getItem("email")
          },
          amountInfo: {
            amount: amount ? amount.split(".").join("") : "",
            currencyCode: "USD"
          },
          cardInfo: {
            cardNumber: formObj.cardNumber,
            cardExpMonth: formObj.cardExpMonth,
            cardExpYear: formObj.cardExpYear,
            cvv: formObj.cvv,
            mobilePhone: sessionStorage.getItem("billingPhone"),
            billingInfo: {
              addressInfo: {
                addressLine1: sessionStorage.getItem("addressLine1"),
                addressLine2: sessionStorage.getItem("addressLine2"),
                countryCode: sessionStorage.getItem("countryCode"),
                postalCode: sessionStorage.getItem("postalCode"),
                state: sessionStorage.getItem("state"),
                city: sessionStorage.getItem("city")
              },
              nameInfo: {
                firstName: this.getFirstName(),
                lastName: this.getLastName()
              },
              billingPhone: sessionStorage.getItem("billingPhone")
            }
          },
          dfReferenceId: sessionId,
          newCustomer: sessionStorage.getItem("newCustomer"),
          orderInfo: {
            orderNumber: sessionStorage.getItem("orderNumber")
          },
          shippingInfo: {
            shippingMethod: sessionStorage.getItem("shippingMethod") ? sessionStorage.getItem("shippingMethod").slice(-2) : "",
            shippingPhone: sessionStorage.getItem("billingPhone")
          }
        };
      } catch (e) {
        return null;
      }
      return requestObj;
    }
  },

  loggingService: function loggingService(obj) {
    __WEBPACK_IMPORTED_MODULE_1_axios___default.a.post(__WEBPACK_IMPORTED_MODULE_2__utils_utils__["a" /* default */].getUrl("loggingService"), {
      errors: obj
    });
  },


  getEnforceRequest: function getEnforceRequest(formObj) {
    {
      console.log("Enforce Log - Preparing Request Object Start");
      var requestObj = {
        referenceNum: sessionStorage.getItem("netaceOrderId"),
        netaceOrderId: sessionStorage.getItem("netaceOrderId"),
        locationCd: sessionStorage.getItem("locationCd"),
        merchantId: sessionStorage.getItem("merchanteId"),
        ccTxnStatus: "",
        ccAvsResponse: "",
        ccAvsResponseFlag: "",
        chargedDt: this.getDate(),
        txnAmt: sessionStorage.getItem("amount"),
        paymentType: "",
        fullAmountPreauthFlag: "",
        ccHash: "",
        ccToken: formObj.token,
        ccBin: formObj.token.substring(0, 5),
        securityResponse: "",
        securityCdFlag: "",
        cc3dEnrollFlag: formObj.enrolled,
        cc3dAuthFlag: "",
        cc3dSignatureFlag: formObj.signatureVerification,
        eciCode: formObj.eciFlag,
        vendorId: "VZWCOM-DIGITAL-CHAT-ORD",
        clientAppName: "VZW_ONEPOS",
        inspicioId: sessionStorage.getItem("p")
      };
      console.log("Enforce Log - Preparing Request Object end");
      return requestObj;
    }
  },
  getDate: function getDate() {
    var dateStr = "";
    var zone = "";
    dateStr = __WEBPACK_IMPORTED_MODULE_0_moment___default()().format("YYYY-MM-DD[T]HH:mm:ss.SSS");
    zone = __WEBPACK_IMPORTED_MODULE_0_moment___default()().format("Z");
    dateStr = dateStr + zone.split(":").join("");
    console.log("Enforce Log - Date Format:" + dateStr);
    return dateStr;
  },
  getFirstName: function getFirstName() {
    var firstName = sessionStorage.getItem("firstName");
    var fName;
    if (firstName != undefined && firstName != null) {
      fName = firstName.split(" ");
      firstName = fName[0];
    }
    return firstName;
  },
  getLastName: function getLastName() {
    var lastName = sessionStorage.getItem("lastName");
    var lName;
    if (lastName != undefined && lastName != null) {
      lName = lastName.split(" ");
      if (lName != undefined && lName.length > 2) {
        lastName = lName[2];
      } else if (lName != undefined && lName.length == 2) {
        lastName = lName[1];
      }
    }
    return lastName;
  }
};
/* harmony default export */ __webpack_exports__["a"] = (cardinal);

/***/ }),

/***/ 4:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
var utils = {
    getID: function getID() {
        return sessionStorage.getItem("p");
    },

    getCustomerNBSID: function getCustomerNBSID() {
        return sessionStorage.getItem("d");
    },

    getCustomerCaseID: function getCustomerCaseID() {
        return sessionStorage.getItem("h");
    },

    getCustomerAccount: function getCustomerAccount() {
        return sessionStorage.getItem("m");
    },

    getEncrypt: function getEncrypt() {
        return true;
    },

    pieProtectSPI: function pieProtectSPI(datatoEncrypt) {
        var delimiter = " ";
        try {
            var result = window.ProtectString(datatoEncrypt);
            if (result != null) {
                datatoEncrypt = result[0];
                datatoEncrypt = datatoEncrypt + delimiter + PIE.key_id + delimiter + PIE.phase + delimiter + "PSS";
            }
        } catch (e) {}

        return datatoEncrypt;
    },

    pieProtectPCI: function pieProtectPCI(cardInfo, cvv2) {
        var datatoEncrypt = null;
        var delimiter = " ";
        try {
            // check Luhn digit, since PIE encryption assumes valid checksum
            if (!window.ValidatePANChecksum(cardInfo)) {
                window.alert("Card number has invalid checksum");
            }
            // perform PIE encryption, and set results in hidden form fields for submission
            var result = window.ProtectPANandCVV(cardInfo, cvv2);

            if (result != null) {
                datatoEncrypt = result[0] + delimiter + result[1] + delimiter + "PCC";
                result[0] = datatoEncrypt;
            }
        } catch (e) {}
        return result;
    },

    getSendPrefix: function getSendPrefix() {
        return 'MOB|';
    },

    getReceivePrefix: function getReceivePrefix() {
        return 'POS|';
    },

    getUrl: function getUrl(url) {
        console.log('first:', sessionStorage.getItem("i"));
        var baseUrl = '/inspicio/',
            urlMap = {
            clientIp: 'fetchClientIp',
            agreementService: 'fetchAgreement',
            loggingService: 'reportError',
            validateAddress: 'validateAddress',
            generateJWT: 'generateJWT',
            call3DSercure: 'cmpiLookup',
            validateJwt: 'validateJWT',
            callEnforce: 'enforce',
            callLovNBS: 'lovNBSSubmitCase'
        };

        console.log('process.env', "production");
        if (true) {
            if (sessionStorage.getItem("i") === 't' || sessionStorage.getItem("i") === 'T') {
                baseUrl = "https://inspicio.verizonwireless.com/tdc/inspicio/";
            } else if (sessionStorage.getItem("i") === 's' || sessionStorage.getItem("i") === 'S') {
                baseUrl = "https://inspicio.verizonwireless.com/sdc/inspicio/";
            } else {
                baseUrl = "https://inspicio.verizonwireless.com/tdc/inspicio/";
            }
        }

        console.log('url first:', baseUrl + urlMap[url]);
        return baseUrl + urlMap[url];
    },

    getMsgUrl: function getMsgUrl(url) {
        console.log('second:', sessionStorage.getItem("i"));
        var baseUrl = '/inspicio/',
            urlMap = {
            receiveService: 'receive',
            sendService: 'send'
        };

        if (true) {
            if (sessionStorage.getItem("i") === 't' || sessionStorage.getItem("i") === 'T') {
                baseUrl = "https://inspicio.verizonwireless.com/tdc/inspicio/";
            } else if (sessionStorage.getItem("i") === 's' || sessionStorage.getItem("i") === 'S') {
                baseUrl = "https://inspicio.verizonwireless.com/sdc/inspicio/";
            } else {
                baseUrl = "https://inspicio.verizonwireless.com/tdc/inspicio/";
            }
        }
        console.log('url second:', baseUrl + urlMap[url]);
        return baseUrl + urlMap[url];
    },

    unescapeHTML: function unescapeHTML(html) {
        var e = document.createElement('div');
        e.innerHTML = html;
        return e.childNodes.length === 0 ? "" : e.childNodes[0].nodeValue;
    },

    debounce: function debounce(func, wait, immediate) {
        var timeout, result;
        return function () {
            var context = this,
                args = arguments;
            var later = function later() {
                timeout = null;
                if (!immediate) result = func.apply(context, args);
            };
            var callNow = immediate && !timeout;
            clearTimeout(timeout);
            timeout = setTimeout(later, wait);
            if (callNow) result = func.apply(context, args);
            return result;
        };
    },

    defer: function defer(func, time) {
        setTimeout(func, time ? time : 1);
    }
};

/* harmony default export */ __webpack_exports__["a"] = (utils);

/***/ }),

/***/ 400:
/***/ (function(module, exports) {

// removed by extract-text-webpack-plugin

/***/ }),

/***/ 401:
/***/ (function(module, exports) {

// removed by extract-text-webpack-plugin

/***/ }),

/***/ 402:
/***/ (function(module, exports) {

// removed by extract-text-webpack-plugin

/***/ }),

/***/ 423:
/***/ (function(module, exports, __webpack_require__) {

var map = {
	"./af": 145,
	"./af.js": 145,
	"./ar": 152,
	"./ar-dz": 146,
	"./ar-dz.js": 146,
	"./ar-kw": 147,
	"./ar-kw.js": 147,
	"./ar-ly": 148,
	"./ar-ly.js": 148,
	"./ar-ma": 149,
	"./ar-ma.js": 149,
	"./ar-sa": 150,
	"./ar-sa.js": 150,
	"./ar-tn": 151,
	"./ar-tn.js": 151,
	"./ar.js": 152,
	"./az": 153,
	"./az.js": 153,
	"./be": 154,
	"./be.js": 154,
	"./bg": 155,
	"./bg.js": 155,
	"./bm": 156,
	"./bm.js": 156,
	"./bn": 157,
	"./bn.js": 157,
	"./bo": 158,
	"./bo.js": 158,
	"./br": 159,
	"./br.js": 159,
	"./bs": 160,
	"./bs.js": 160,
	"./ca": 161,
	"./ca.js": 161,
	"./cs": 162,
	"./cs.js": 162,
	"./cv": 163,
	"./cv.js": 163,
	"./cy": 164,
	"./cy.js": 164,
	"./da": 165,
	"./da.js": 165,
	"./de": 168,
	"./de-at": 166,
	"./de-at.js": 166,
	"./de-ch": 167,
	"./de-ch.js": 167,
	"./de.js": 168,
	"./dv": 169,
	"./dv.js": 169,
	"./el": 170,
	"./el.js": 170,
	"./en-SG": 171,
	"./en-SG.js": 171,
	"./en-au": 172,
	"./en-au.js": 172,
	"./en-ca": 173,
	"./en-ca.js": 173,
	"./en-gb": 174,
	"./en-gb.js": 174,
	"./en-ie": 175,
	"./en-ie.js": 175,
	"./en-il": 176,
	"./en-il.js": 176,
	"./en-nz": 177,
	"./en-nz.js": 177,
	"./eo": 178,
	"./eo.js": 178,
	"./es": 181,
	"./es-do": 179,
	"./es-do.js": 179,
	"./es-us": 180,
	"./es-us.js": 180,
	"./es.js": 181,
	"./et": 182,
	"./et.js": 182,
	"./eu": 183,
	"./eu.js": 183,
	"./fa": 184,
	"./fa.js": 184,
	"./fi": 185,
	"./fi.js": 185,
	"./fo": 186,
	"./fo.js": 186,
	"./fr": 189,
	"./fr-ca": 187,
	"./fr-ca.js": 187,
	"./fr-ch": 188,
	"./fr-ch.js": 188,
	"./fr.js": 189,
	"./fy": 190,
	"./fy.js": 190,
	"./ga": 191,
	"./ga.js": 191,
	"./gd": 192,
	"./gd.js": 192,
	"./gl": 193,
	"./gl.js": 193,
	"./gom-latn": 194,
	"./gom-latn.js": 194,
	"./gu": 195,
	"./gu.js": 195,
	"./he": 196,
	"./he.js": 196,
	"./hi": 197,
	"./hi.js": 197,
	"./hr": 198,
	"./hr.js": 198,
	"./hu": 199,
	"./hu.js": 199,
	"./hy-am": 200,
	"./hy-am.js": 200,
	"./id": 201,
	"./id.js": 201,
	"./is": 202,
	"./is.js": 202,
	"./it": 204,
	"./it-ch": 203,
	"./it-ch.js": 203,
	"./it.js": 204,
	"./ja": 205,
	"./ja.js": 205,
	"./jv": 206,
	"./jv.js": 206,
	"./ka": 207,
	"./ka.js": 207,
	"./kk": 208,
	"./kk.js": 208,
	"./km": 209,
	"./km.js": 209,
	"./kn": 210,
	"./kn.js": 210,
	"./ko": 211,
	"./ko.js": 211,
	"./ku": 212,
	"./ku.js": 212,
	"./ky": 213,
	"./ky.js": 213,
	"./lb": 214,
	"./lb.js": 214,
	"./lo": 215,
	"./lo.js": 215,
	"./lt": 216,
	"./lt.js": 216,
	"./lv": 217,
	"./lv.js": 217,
	"./me": 218,
	"./me.js": 218,
	"./mi": 219,
	"./mi.js": 219,
	"./mk": 220,
	"./mk.js": 220,
	"./ml": 221,
	"./ml.js": 221,
	"./mn": 222,
	"./mn.js": 222,
	"./mr": 223,
	"./mr.js": 223,
	"./ms": 225,
	"./ms-my": 224,
	"./ms-my.js": 224,
	"./ms.js": 225,
	"./mt": 226,
	"./mt.js": 226,
	"./my": 227,
	"./my.js": 227,
	"./nb": 228,
	"./nb.js": 228,
	"./ne": 229,
	"./ne.js": 229,
	"./nl": 231,
	"./nl-be": 230,
	"./nl-be.js": 230,
	"./nl.js": 231,
	"./nn": 232,
	"./nn.js": 232,
	"./pa-in": 233,
	"./pa-in.js": 233,
	"./pl": 234,
	"./pl.js": 234,
	"./pt": 236,
	"./pt-br": 235,
	"./pt-br.js": 235,
	"./pt.js": 236,
	"./ro": 237,
	"./ro.js": 237,
	"./ru": 238,
	"./ru.js": 238,
	"./sd": 239,
	"./sd.js": 239,
	"./se": 240,
	"./se.js": 240,
	"./si": 241,
	"./si.js": 241,
	"./sk": 242,
	"./sk.js": 242,
	"./sl": 243,
	"./sl.js": 243,
	"./sq": 244,
	"./sq.js": 244,
	"./sr": 246,
	"./sr-cyrl": 245,
	"./sr-cyrl.js": 245,
	"./sr.js": 246,
	"./ss": 247,
	"./ss.js": 247,
	"./sv": 248,
	"./sv.js": 248,
	"./sw": 249,
	"./sw.js": 249,
	"./ta": 250,
	"./ta.js": 250,
	"./te": 251,
	"./te.js": 251,
	"./tet": 252,
	"./tet.js": 252,
	"./tg": 253,
	"./tg.js": 253,
	"./th": 254,
	"./th.js": 254,
	"./tl-ph": 255,
	"./tl-ph.js": 255,
	"./tlh": 256,
	"./tlh.js": 256,
	"./tr": 257,
	"./tr.js": 257,
	"./tzl": 258,
	"./tzl.js": 258,
	"./tzm": 260,
	"./tzm-latn": 259,
	"./tzm-latn.js": 259,
	"./tzm.js": 260,
	"./ug-cn": 261,
	"./ug-cn.js": 261,
	"./uk": 262,
	"./uk.js": 262,
	"./ur": 263,
	"./ur.js": 263,
	"./uz": 265,
	"./uz-latn": 264,
	"./uz-latn.js": 264,
	"./uz.js": 265,
	"./vi": 266,
	"./vi.js": 266,
	"./x-pseudo": 267,
	"./x-pseudo.js": 267,
	"./yo": 268,
	"./yo.js": 268,
	"./zh-cn": 269,
	"./zh-cn.js": 269,
	"./zh-hk": 270,
	"./zh-hk.js": 270,
	"./zh-tw": 271,
	"./zh-tw.js": 271
};
function webpackContext(req) {
	return __webpack_require__(webpackContextResolve(req));
};
function webpackContextResolve(req) {
	var id = map[req];
	if(!(id + 1)) // check for number or string
		throw new Error("Cannot find module '" + req + "'.");
	return id;
};
webpackContext.keys = function webpackContextKeys() {
	return Object.keys(map);
};
webpackContext.resolve = webpackContextResolve;
module.exports = webpackContext;
webpackContext.id = 423;

/***/ }),

/***/ 71:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return SignatureCapture; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_signature_pad__ = __webpack_require__(536);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__css_signature_css__ = __webpack_require__(402);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__css_signature_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2__css_signature_css__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__utils_utils__ = __webpack_require__(4);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__utils_langTranslator__ = __webpack_require__(18);
var _createClass = function () { function 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); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();

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 _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; }







var SignatureCapture = function (_React$Component) {
    _inherits(SignatureCapture, _React$Component);

    function SignatureCapture() {
        _classCallCheck(this, SignatureCapture);

        var _this = _possibleConstructorReturn(this, (SignatureCapture.__proto__ || Object.getPrototypeOf(SignatureCapture)).call(this));

        _this.resizeCanvas = function () {
            var ratio = Math.max(window.devicePixelRatio || 1, 1);
            var canvas = _this.canvasDocument;
            _this.sigDataSet = _this.signaturePad.toDataURL();
            canvas.width = canvas.offsetWidth * ratio;
            canvas.height = canvas.offsetHeight * ratio;
            canvas.getContext("2d").scale(ratio, ratio);
            /* alternate way to handle keeping image on resize.. more efficient but doesnt handle scaling positions of points to match new canvas size. */
            //this.sigDataSet = this.sigDataSet.concat(this.signaturePad.toData());
            //this.signaturePad.fromDataURL(this.sigDataSet);
            _this.signaturePad.fromDataURL(_this.sigDataSet);
        };

        _this.clearCanvas = function () {
            _this.disableButtons();
            _this.sigDataSet = [];
            _this.signaturePad.clear();
            _this.canvasClicked = false;
        };

        _this.submitSignature = function () {
            if (_this.showTnC) {
                if (document.getElementById("tncAccept").checked) {
                    if (_this.props.submitSig) {
                        _this.disableButtons();
                        _this.props.submitSig(_this.signaturePad.toDataURL());
                    }
                } else {
                    window.alert(__WEBPACK_IMPORTED_MODULE_4__utils_langTranslator__["a" /* default */][_this.state.currentLanguage].pleaseReadAndAgree);
                }
            } else {
                if (_this.props.submitSig) {
                    _this.disableButtons();
                    _this.props.submitSig(_this.signaturePad.toDataURL());
                }
            }
        };

        _this.disableButtons = function () {
            _this.setState({ submitdisable: true });
        };

        _this.enableButtons = function () {
            _this.setState({ submitdisable: false });
        };

        _this.componentDidMount = function () {
            _this.canvasDocument = document.getElementById(_this.props.sigID);
            _this.signaturePad = new __WEBPACK_IMPORTED_MODULE_1_signature_pad__["a" /* default */](_this.canvasDocument, {
                onBegin: function () {
                    this.enableButtons();
                    this.canvasClicked = true;
                }.bind(_this)
            });

            window.onresize = __WEBPACK_IMPORTED_MODULE_3__utils_utils__["a" /* default */].debounce(_this.resizeCanvas.bind(_this), 500);
            _this.resizeCanvas();
        };

        _this.state = {
            submitdisable: true
        };
        _this.sigDataSet = [];
        _this.canvasClicked = false;
        if (sessionStorage.getItem('c') == 'y' || sessionStorage.getItem('e') == 'y') {
            _this.showTnC = true;
        } else {
            _this.showTnC = false;
        }
        return _this;
    }

    _createClass(SignatureCapture, [{
        key: 'render',
        value: function render() {

            return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                'div',
                { className: 'signatureContainer padding-bot-50' },
                __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                    'div',
                    { className: 'inline-block mob-center' },
                    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                        'h4',
                        null,
                        __WEBPACK_IMPORTED_MODULE_4__utils_langTranslator__["a" /* default */][this.state.currentLanguage].signAndSubmit
                    )
                ),
                __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                    'div',
                    null,
                    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement('canvas', { id: this.props.sigID, className: 'signatureCanvas' })
                ),
                __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                    'div',
                    null,
                    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                        'button',
                        { className: 'button margin-h-15', disabled: this.state.submitdisable, onClick: this.clearCanvas },
                        __WEBPACK_IMPORTED_MODULE_4__utils_langTranslator__["a" /* default */][this.state.currentLanguage].clear
                    ),
                    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                        'button',
                        { className: 'button margin-h-15', disabled: this.state.submitdisable || !this.props.tncAccepts, onClick: this.submitSignature },
                        __WEBPACK_IMPORTED_MODULE_4__utils_langTranslator__["a" /* default */][this.state.currentLanguage].submit
                    )
                )
            );
        }
    }, {
        key: 'componentWillMount',
        value: function componentWillMount() {

            this.state = {
                currentLanguage: 0,
                submitdisable: true
            };

            if (sessionStorage.getItem('z') == 'y') {
                this.setState({ currentLanguage: 1 });
            }
        }
    }]);

    return SignatureCapture;
}(__WEBPACK_IMPORTED_MODULE_0_react___default.a.Component);



/***/ }),

/***/ 72:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return TextViewer; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__utils_utils__ = __webpack_require__(4);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__css_viewer_css__ = __webpack_require__(138);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__css_viewer_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2__css_viewer_css__);
var _createClass = function () { function 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); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();

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 _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; }





var TextViewer = function (_React$Component) {
    _inherits(TextViewer, _React$Component);

    function TextViewer() {
        _classCallCheck(this, TextViewer);

        var _this = _possibleConstructorReturn(this, (TextViewer.__proto__ || Object.getPrototypeOf(TextViewer)).call(this));

        _this.closeViewer = _this.closeViewer.bind(_this);
        return _this;
    }

    _createClass(TextViewer, [{
        key: 'closeViewer',
        value: function closeViewer() {
            if (this.props.closeViewer) {
                this.props.closeViewer();
            }
        }
    }, {
        key: 'render',
        value: function render() {
            return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                'div',
                { className: 'viewer-overlay' },
                __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                    'div',
                    { className: 'viewer-toolbar right' },
                    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement('i', { className: 'fa fa-window-close fa-lg', onClick: this.closeViewer })
                ),
                __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                    'div',
                    { id: this.props.containerID, className: 'viewer-container' },
                    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement('div', { dangerouslySetInnerHTML: { __html: this.props.textBody } })
                )
            );
        }
    }]);

    return TextViewer;
}(__WEBPACK_IMPORTED_MODULE_0_react___default.a.Component);



/***/ })

},[333]);