@salesgenterp/ui-components 0.4.288 → 0.4.290

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -6386,7 +6386,7 @@ var LandingCarousel$1 = function LandingCarousel(_ref) {
6386
6386
  var settings = {
6387
6387
  dots: true,
6388
6388
  infinite: true,
6389
- speed: 1000,
6389
+ speed: (config === null || config === void 0 ? void 0 : config.sliderTimeDuration) || 1000,
6390
6390
  slidesToShow: 12 / ((_config$colLg = config === null || config === void 0 ? void 0 : config.colLg) != null ? _config$colLg : 12),
6391
6391
  slidesToScroll: 1,
6392
6392
  autoplay: true,
@@ -9279,12 +9279,12 @@ var CreditCardForm = function CreditCardForm(_ref) {
9279
9279
  var PaymentForm = /*#__PURE__*/function (_React$Component) {
9280
9280
  _inheritsLoose(PaymentForm, _React$Component);
9281
9281
  function PaymentForm() {
9282
- var _this2;
9282
+ var _this;
9283
9283
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
9284
9284
  args[_key] = arguments[_key];
9285
9285
  }
9286
- _this2 = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;
9287
- _this2.state = {
9286
+ _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;
9287
+ _this.state = {
9288
9288
  firstName: '',
9289
9289
  lastName: '',
9290
9290
  cardNumber: '',
@@ -9292,32 +9292,32 @@ var PaymentForm = /*#__PURE__*/function (_React$Component) {
9292
9292
  expirationMonth: '',
9293
9293
  expirationYear: '',
9294
9294
  address: '',
9295
- countryId: '',
9295
+ countryId: 1,
9296
9296
  stateId: '',
9297
9297
  city: '',
9298
9298
  zipcode: '',
9299
9299
  showError: false
9300
9300
  };
9301
- _this2.handleInputFocus = function (e) {
9302
- _this2.setState({
9301
+ _this.handleInputFocus = function (e) {
9302
+ _this.setState({
9303
9303
  focus: e.target.name
9304
9304
  });
9305
9305
  };
9306
- _this2.handleInputChange = function (e) {
9307
- var _this2$setState;
9308
- var _e$target2 = e.target,
9309
- name = _e$target2.name,
9310
- value = _e$target2.value;
9311
- _this2.setState((_this2$setState = {}, _this2$setState[name] = value, _this2$setState));
9306
+ _this.handleInputChange = function (e) {
9307
+ var _this$setState;
9308
+ var _e$target = e.target,
9309
+ name = _e$target.name,
9310
+ value = _e$target.value;
9311
+ _this.setState((_this$setState = {}, _this$setState[name] = value, _this$setState));
9312
9312
  };
9313
- _this2.handleSave = function (e) {
9314
- _this2.props.handleSave(_this2.state);
9313
+ _this.handleSave = function (e) {
9314
+ _this.props.handleSave(_this.state);
9315
9315
  };
9316
- return _this2;
9316
+ return _this;
9317
9317
  }
9318
9318
  var _proto = PaymentForm.prototype;
9319
9319
  _proto.render = function render() {
9320
- var _this3 = this;
9320
+ var _this2 = this;
9321
9321
  return /*#__PURE__*/React__default.createElement("div", {
9322
9322
  id: "PaymentForm"
9323
9323
  }, /*#__PURE__*/React__default.createElement(Cards, {
@@ -9333,7 +9333,7 @@ var PaymentForm = /*#__PURE__*/function (_React$Component) {
9333
9333
  showError: this.state.showError,
9334
9334
  data: this.state,
9335
9335
  handleSave: function handleSave(data) {
9336
- return _this3.handleSave(_this3.state);
9336
+ return _this2.handleSave(_this2.state);
9337
9337
  },
9338
9338
  states: this.props.states,
9339
9339
  countries: this.props.countries,
@@ -9528,8 +9528,10 @@ var Step3 = function Step3(_ref) {
9528
9528
  }, selectCardValue === '0000' && /*#__PURE__*/React__default.createElement("span", {
9529
9529
  className: "innerCircle"
9530
9530
  })), /*#__PURE__*/React__default.createElement("p", null, "Add New Card")), addNewCard && /*#__PURE__*/React__default.createElement(PaymentForm, {
9531
- handleSave: function handleSave(data) {
9532
- return setCard(data);
9531
+ handleSave: function handleSave(cardData) {
9532
+ setCard(cardData);
9533
+ setPaymentDetails(useStoreCr, useStoreCr && storeCredits > total ? null : selectedMethod, isCard && cardData);
9534
+ _handleNext();
9533
9535
  },
9534
9536
  saved: card ? true : false,
9535
9537
  states: states,