@salesgenterp/ui-components 0.4.192 → 0.4.194

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
@@ -2160,8 +2160,10 @@ var currentTimeText = function currentTimeText() {
2160
2160
  };
2161
2161
 
2162
2162
  var _templateObject$7, _templateObject2$7, _templateObject3$7;
2163
- var CheckoutSummaryContainer = styled__default.div(_templateObject$7 || (_templateObject$7 = _taggedTemplateLiteralLoose(["\n background: ", ";\n\n border-radius: 20px;\n padding: max(1.5em, 30px);\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n max-width: 422px;\n min-width: min(412px, 95%);\n font-size: 16px;\n margin-top: 6.15em;\n @media only screen and (max-width: 1508px) {\n margin-top: 0;\n }\n"])), function (props) {
2163
+ var CheckoutSummaryContainer = styled__default.div(_templateObject$7 || (_templateObject$7 = _taggedTemplateLiteralLoose(["\n background: ", ";\n color: ", ";\n border-radius: 20px;\n padding: max(1.5em, 30px);\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n max-width: 422px;\n min-width: min(412px, 95%);\n font-size: 16px;\n margin-top: 6.15em;\n @media only screen and (max-width: 1508px) {\n margin-top: 0;\n }\n"])), function (props) {
2164
2164
  return props.bg || 'rgba(255, 240, 236, 1)';
2165
+ }, function (props) {
2166
+ return props.color || ' rgba(50, 50, 50, 1)';
2165
2167
  });
2166
2168
  var TextRow = styled__default.div(_templateObject2$7 || (_templateObject2$7 = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n max-width: 90%;\n margin-bottom: 1em;\n padding-bottom: 1em;\n width: 90%;\n border-bottom: 1px solid rgba(250, 232, 229, 1);\n .text {\n font-size: 1.1em;\n font-weight: 300;\n text-transform: capitalize;\n }\n .total {\n font-size: 1.65em;\n font-weight: 800;\n }\n"])));
2167
2169
  var FilledInfo = styled__default.div(_templateObject3$7 || (_templateObject3$7 = _taggedTemplateLiteralLoose(["\n margin-bottom: 2em;\n .heading {\n font-size: 1.25em;\n font-weight: 800;\n margin-bottom: 0.8em;\n }\n\n p {\n font-size: 0.875em;\n font-weight: 300;\n text-transform: capitalize;\n max-width: 60%;\n }\n .bold {\n font-weight: 700;\n margin-bottom: 0.8em;\n max-width: 300px;\n width: fit-content;\n }\n .payment {\n width: 70px;\n height: 48px;\n background: #ffffff;\n border-radius: 15.875px;\n display: grid;\n place-items: center;\n overflow: hidden;\n }\n .blank {\n padding-bottom: 2em;\n opacity: 0;\n }\n"])));
@@ -2172,9 +2174,11 @@ var CheckoutSummary = function CheckoutSummary(_ref) {
2172
2174
  shippingInformation = _ref.shippingInformation,
2173
2175
  paymentMethod = _ref.paymentMethod,
2174
2176
  shippingMethod = _ref.shippingMethod,
2175
- bg = _ref.bg;
2177
+ bg = _ref.bg,
2178
+ color = _ref.color;
2176
2179
  return /*#__PURE__*/React__default.createElement(CheckoutSummaryContainer, {
2177
- bg: bg
2180
+ bg: bg,
2181
+ color: color
2178
2182
  }, /*#__PURE__*/React__default.createElement(TextRow, null, /*#__PURE__*/React__default.createElement("p", {
2179
2183
  className: "text"
2180
2184
  }, "order total :"), /*#__PURE__*/React__default.createElement("h6", {
@@ -3717,7 +3721,7 @@ var steps = [{
3717
3721
  }
3718
3722
  }];
3719
3723
  var CheckoutPageComponent = function CheckoutPageComponent(_ref) {
3720
- var _styles$scroll, _styles$scroll2, _styles$checkoutSumma;
3724
+ var _styles$scroll, _styles$scroll2, _styles$checkoutSumma, _styles$checkoutSumma2;
3721
3725
  var currStep = _ref.currStep,
3722
3726
  styles = _ref.styles,
3723
3727
  handleNext = _ref.handleNext,
@@ -3917,7 +3921,8 @@ var CheckoutPageComponent = function CheckoutPageComponent(_ref) {
3917
3921
  shippingMethod: shippingMethod,
3918
3922
  paymentMethod: selectedPaymentMethod,
3919
3923
  total: cartData === null || cartData === void 0 ? void 0 : cartData.totalCartPrice,
3920
- bg: styles === null || styles === void 0 ? void 0 : (_styles$checkoutSumma = styles.checkoutSummary) === null || _styles$checkoutSumma === void 0 ? void 0 : _styles$checkoutSumma.bg
3924
+ bg: styles === null || styles === void 0 ? void 0 : (_styles$checkoutSumma = styles.checkoutSummary) === null || _styles$checkoutSumma === void 0 ? void 0 : _styles$checkoutSumma.bg,
3925
+ color: styles === null || styles === void 0 ? void 0 : (_styles$checkoutSumma2 = styles.checkoutSummary) === null || _styles$checkoutSumma2 === void 0 ? void 0 : _styles$checkoutSumma2.color
3921
3926
  }));
3922
3927
  };
3923
3928
 
@@ -4649,7 +4654,7 @@ var APITable = React.forwardRef(function (_ref, ref) {
4649
4654
  setTableData(_extends({}, tableData, {
4650
4655
  apiStatus: API_STATUSES.LOADING
4651
4656
  }));
4652
- var _temp5 = _catch(function () {
4657
+ var _temp4 = _catch(function () {
4653
4658
  var _ref3;
4654
4659
  function _temp3() {
4655
4660
  var responseData = apiResponse.content || apiResponse.sliderImageList || apiResponse;
@@ -4694,7 +4699,7 @@ var APITable = React.forwardRef(function (_ref, ref) {
4694
4699
  }));
4695
4700
  onDataLoadError && onDataLoadError(e);
4696
4701
  });
4697
- return _temp5 && _temp5.then ? _temp5.then(function () {}) : void 0;
4702
+ return _temp4 && _temp4.then ? _temp4.then(function () {}) : void 0;
4698
4703
  } catch (e) {
4699
4704
  Promise.reject(e);
4700
4705
  }
@@ -5017,7 +5022,7 @@ var Dashboard = function Dashboard(_ref) {
5017
5022
  React.useEffect(function () {
5018
5023
  (function () {
5019
5024
  try {
5020
- var _temp2 = _catch(function () {
5025
+ var _temp = _catch(function () {
5021
5026
  return Promise.resolve(API({
5022
5027
  url: "/ecommerce/customer",
5023
5028
  apiEndPoint: apiEndPoint,
@@ -5033,7 +5038,7 @@ var Dashboard = function Dashboard(_ref) {
5033
5038
  });
5034
5039
  });
5035
5040
  }, function () {});
5036
- return _temp2 && _temp2.then ? _temp2.then(function () {}) : void 0;
5041
+ return _temp && _temp.then ? _temp.then(function () {}) : void 0;
5037
5042
  } catch (e) {
5038
5043
  Promise.reject(e);
5039
5044
  }
@@ -5474,7 +5479,7 @@ var MyProfile = function MyProfile(_ref) {
5474
5479
  React.useEffect(function () {
5475
5480
  (function () {
5476
5481
  try {
5477
- var _temp2 = _catch(function () {
5482
+ var _temp = _catch(function () {
5478
5483
  return Promise.resolve(API({
5479
5484
  apiEndPoint: apiEndPoint,
5480
5485
  token: token,
@@ -5485,7 +5490,7 @@ var MyProfile = function MyProfile(_ref) {
5485
5490
  reset(data === null || data === void 0 ? void 0 : data.customerDto);
5486
5491
  });
5487
5492
  }, function () {});
5488
- return _temp2 && _temp2.then ? _temp2.then(function () {}) : void 0;
5493
+ return _temp && _temp.then ? _temp.then(function () {}) : void 0;
5489
5494
  } catch (e) {
5490
5495
  Promise.reject(e);
5491
5496
  }
@@ -5493,11 +5498,11 @@ var MyProfile = function MyProfile(_ref) {
5493
5498
  }, []);
5494
5499
  var updateProfile = function updateProfile(formData) {
5495
5500
  try {
5496
- var _temp5 = function _temp5() {
5501
+ var _temp3 = function _temp3() {
5497
5502
  setIsLoading(false);
5498
5503
  };
5499
5504
  setIsLoading(true);
5500
- var _temp6 = _catch(function () {
5505
+ var _temp2 = _catch(function () {
5501
5506
  return Promise.resolve(API({
5502
5507
  apiEndPoint: apiEndPoint,
5503
5508
  token: token,
@@ -5508,7 +5513,7 @@ var MyProfile = function MyProfile(_ref) {
5508
5513
  successMessage: 'Profile updated successfully.'
5509
5514
  })).then(function () {});
5510
5515
  }, function () {});
5511
- return Promise.resolve(_temp6 && _temp6.then ? _temp6.then(_temp5) : _temp5(_temp6));
5516
+ return Promise.resolve(_temp2 && _temp2.then ? _temp2.then(_temp3) : _temp3(_temp2));
5512
5517
  } catch (e) {
5513
5518
  return Promise.reject(e);
5514
5519
  }
@@ -5823,7 +5828,7 @@ var AddStore = function AddStore(_ref) {
5823
5828
  var selectedCountry = watch('address.countryId');
5824
5829
  var getCountryData = function getCountryData() {
5825
5830
  try {
5826
- var _temp2 = _catch(function () {
5831
+ var _temp = _catch(function () {
5827
5832
  return Promise.resolve(getCountry({
5828
5833
  apiEndPoint: apiEndPoint,
5829
5834
  token: token
@@ -5832,7 +5837,7 @@ var AddStore = function AddStore(_ref) {
5832
5837
  setValue('address.countryId', countryData[0].id);
5833
5838
  });
5834
5839
  }, function () {});
5835
- return Promise.resolve(_temp2 && _temp2.then ? _temp2.then(function () {}) : void 0);
5840
+ return Promise.resolve(_temp && _temp.then ? _temp.then(function () {}) : void 0);
5836
5841
  } catch (e) {
5837
5842
  return Promise.reject(e);
5838
5843
  }
@@ -5845,7 +5850,7 @@ var AddStore = function AddStore(_ref) {
5845
5850
  React.useEffect(function () {
5846
5851
  (function () {
5847
5852
  try {
5848
- var _temp4 = function () {
5853
+ var _temp2 = function () {
5849
5854
  if (selectedCountry) {
5850
5855
  return Promise.resolve(getStatesById({
5851
5856
  id: selectedCountry,
@@ -5857,7 +5862,7 @@ var AddStore = function AddStore(_ref) {
5857
5862
  });
5858
5863
  }
5859
5864
  }();
5860
- return _temp4 && _temp4.then ? _temp4.then(function () {}) : void 0;
5865
+ return _temp2 && _temp2.then ? _temp2.then(function () {}) : void 0;
5861
5866
  } catch (e) {
5862
5867
  Promise.reject(e);
5863
5868
  }
@@ -5865,11 +5870,11 @@ var AddStore = function AddStore(_ref) {
5865
5870
  }, [selectedCountry]);
5866
5871
  var addStoreData = function addStoreData(formData) {
5867
5872
  try {
5868
- var _temp7 = function _temp7() {
5873
+ var _temp4 = function _temp4() {
5869
5874
  setIsLoading(false);
5870
5875
  };
5871
5876
  setIsLoading(true);
5872
- var _temp8 = _catch(function () {
5877
+ var _temp3 = _catch(function () {
5873
5878
  return Promise.resolve(API({
5874
5879
  apiEndPoint: apiEndPoint,
5875
5880
  token: token,
@@ -5895,7 +5900,7 @@ var AddStore = function AddStore(_ref) {
5895
5900
  });
5896
5901
  });
5897
5902
  }, function () {});
5898
- return Promise.resolve(_temp8 && _temp8.then ? _temp8.then(_temp7) : _temp7(_temp8));
5903
+ return Promise.resolve(_temp3 && _temp3.then ? _temp3.then(_temp4) : _temp4(_temp3));
5899
5904
  } catch (e) {
5900
5905
  return Promise.reject(e);
5901
5906
  }
@@ -6169,7 +6174,7 @@ var AddEditAddress = function AddEditAddress(_ref) {
6169
6174
  setValue = _useForm.setValue;
6170
6175
  var getCountryData = function getCountryData() {
6171
6176
  try {
6172
- var _temp2 = _catch(function () {
6177
+ var _temp = _catch(function () {
6173
6178
  return Promise.resolve(getCountry({
6174
6179
  apiEndPoint: apiEndPoint,
6175
6180
  token: token
@@ -6187,7 +6192,7 @@ var AddEditAddress = function AddEditAddress(_ref) {
6187
6192
  });
6188
6193
  });
6189
6194
  }, function () {});
6190
- return Promise.resolve(_temp2 && _temp2.then ? _temp2.then(function () {}) : void 0);
6195
+ return Promise.resolve(_temp && _temp.then ? _temp.then(function () {}) : void 0);
6191
6196
  } catch (e) {
6192
6197
  return Promise.reject(e);
6193
6198
  }
@@ -6214,11 +6219,11 @@ var AddEditAddress = function AddEditAddress(_ref) {
6214
6219
  };
6215
6220
  var updateAddressData = function updateAddressData(formData) {
6216
6221
  try {
6217
- var _temp5 = function _temp5() {
6222
+ var _temp3 = function _temp3() {
6218
6223
  setIsLoading(false);
6219
6224
  };
6220
6225
  setIsLoading(true);
6221
- var _temp6 = _catch(function () {
6226
+ var _temp2 = _catch(function () {
6222
6227
  return Promise.resolve(API({
6223
6228
  apiEndPoint: apiEndPoint,
6224
6229
  token: token,
@@ -6235,7 +6240,7 @@ var AddEditAddress = function AddEditAddress(_ref) {
6235
6240
  getStoreData();
6236
6241
  });
6237
6242
  }, function () {});
6238
- return Promise.resolve(_temp6 && _temp6.then ? _temp6.then(_temp5) : _temp5(_temp6));
6243
+ return Promise.resolve(_temp2 && _temp2.then ? _temp2.then(_temp3) : _temp3(_temp2));
6239
6244
  } catch (e) {
6240
6245
  return Promise.reject(e);
6241
6246
  }
@@ -6434,7 +6439,7 @@ var StoreDetails = function StoreDetails(_ref) {
6434
6439
  control = _useForm.control;
6435
6440
  var getStoreData = function getStoreData() {
6436
6441
  try {
6437
- var _temp2 = _catch(function () {
6442
+ var _temp = _catch(function () {
6438
6443
  return Promise.resolve(API({
6439
6444
  apiEndPoint: apiEndPoint,
6440
6445
  token: token,
@@ -6443,7 +6448,7 @@ var StoreDetails = function StoreDetails(_ref) {
6443
6448
  setStoreAddresses(data);
6444
6449
  });
6445
6450
  }, function () {});
6446
- return Promise.resolve(_temp2 && _temp2.then ? _temp2.then(function () {}) : void 0);
6451
+ return Promise.resolve(_temp && _temp.then ? _temp.then(function () {}) : void 0);
6447
6452
  } catch (e) {
6448
6453
  return Promise.reject(e);
6449
6454
  }
@@ -6455,11 +6460,11 @@ var StoreDetails = function StoreDetails(_ref) {
6455
6460
  }, []);
6456
6461
  var updateStoreData = function updateStoreData(formData) {
6457
6462
  try {
6458
- var _temp5 = function _temp5() {
6463
+ var _temp3 = function _temp3() {
6459
6464
  setIsLoading(false);
6460
6465
  };
6461
6466
  setIsLoading(true);
6462
- var _temp6 = _catch(function () {
6467
+ var _temp2 = _catch(function () {
6463
6468
  return Promise.resolve(API({
6464
6469
  apiEndPoint: apiEndPoint,
6465
6470
  token: token,
@@ -6472,7 +6477,7 @@ var StoreDetails = function StoreDetails(_ref) {
6472
6477
  setStoreDetails(_extends({}, storeDetails, response));
6473
6478
  });
6474
6479
  }, function () {});
6475
- return Promise.resolve(_temp6 && _temp6.then ? _temp6.then(_temp5) : _temp5(_temp6));
6480
+ return Promise.resolve(_temp2 && _temp2.then ? _temp2.then(_temp3) : _temp3(_temp2));
6476
6481
  } catch (e) {
6477
6482
  return Promise.reject(e);
6478
6483
  }
@@ -6650,11 +6655,11 @@ var StoreManager = function StoreManager(_ref) {
6650
6655
  var managerId = storeData === null || storeData === void 0 ? void 0 : (_storeData$managerDet = storeData.managerDetails) === null || _storeData$managerDet === void 0 ? void 0 : _storeData$managerDet.customerId;
6651
6656
  var updateManager = function updateManager(formData) {
6652
6657
  try {
6653
- var _temp3 = function _temp3() {
6658
+ var _temp2 = function _temp2() {
6654
6659
  setIsLoading(false);
6655
6660
  };
6656
6661
  setIsLoading(true);
6657
- var _temp4 = _catch(function () {
6662
+ var _temp = _catch(function () {
6658
6663
  return Promise.resolve(API({
6659
6664
  apiEndPoint: apiEndPoint,
6660
6665
  token: token,
@@ -6667,7 +6672,7 @@ var StoreManager = function StoreManager(_ref) {
6667
6672
  setManagerData(_extends({}, managerData, response));
6668
6673
  });
6669
6674
  }, function () {});
6670
- return Promise.resolve(_temp4 && _temp4.then ? _temp4.then(_temp3) : _temp3(_temp4));
6675
+ return Promise.resolve(_temp && _temp.then ? _temp.then(_temp2) : _temp2(_temp));
6671
6676
  } catch (e) {
6672
6677
  return Promise.reject(e);
6673
6678
  }
@@ -6790,7 +6795,7 @@ var StoreTabs = function StoreTabs(_ref) {
6790
6795
  React.useEffect(function () {
6791
6796
  (function () {
6792
6797
  try {
6793
- var _temp2 = _catch(function () {
6798
+ var _temp = _catch(function () {
6794
6799
  return Promise.resolve(API({
6795
6800
  apiEndPoint: apiEndPoint,
6796
6801
  token: token,
@@ -6800,7 +6805,7 @@ var StoreTabs = function StoreTabs(_ref) {
6800
6805
  setStoreData(data);
6801
6806
  });
6802
6807
  }, function () {});
6803
- return _temp2 && _temp2.then ? _temp2.then(function () {}) : void 0;
6808
+ return _temp && _temp.then ? _temp.then(function () {}) : void 0;
6804
6809
  } catch (e) {
6805
6810
  Promise.reject(e);
6806
6811
  }
@@ -6876,7 +6881,7 @@ var StoreList = function StoreList(_ref) {
6876
6881
  setStoreDataList = _useState3[1];
6877
6882
  var getStoreDataList = function getStoreDataList() {
6878
6883
  try {
6879
- var _temp2 = _catch(function () {
6884
+ var _temp = _catch(function () {
6880
6885
  return Promise.resolve(API({
6881
6886
  apiEndPoint: apiEndPoint,
6882
6887
  token: token,
@@ -6886,7 +6891,7 @@ var StoreList = function StoreList(_ref) {
6886
6891
  setStoreDataList(data);
6887
6892
  });
6888
6893
  }, function () {});
6889
- return Promise.resolve(_temp2 && _temp2.then ? _temp2.then(function () {}) : void 0);
6894
+ return Promise.resolve(_temp && _temp.then ? _temp.then(function () {}) : void 0);
6890
6895
  } catch (e) {
6891
6896
  return Promise.reject(e);
6892
6897
  }
@@ -7115,7 +7120,7 @@ var Statement = function Statement(_ref) {
7115
7120
  React.useEffect(function () {
7116
7121
  (function () {
7117
7122
  try {
7118
- var _temp2 = _catch(function () {
7123
+ var _temp = _catch(function () {
7119
7124
  return Promise.resolve(API({
7120
7125
  url: "/ecommerce/customer",
7121
7126
  apiEndPoint: apiEndPoint,
@@ -7124,7 +7129,7 @@ var Statement = function Statement(_ref) {
7124
7129
  setCustomerData(customerDataResponse);
7125
7130
  });
7126
7131
  }, function () {});
7127
- return _temp2 && _temp2.then ? _temp2.then(function () {}) : void 0;
7132
+ return _temp && _temp.then ? _temp.then(function () {}) : void 0;
7128
7133
  } catch (e) {
7129
7134
  Promise.reject(e);
7130
7135
  }
@@ -7257,11 +7262,11 @@ var ChangePassword = function ChangePassword(_ref) {
7257
7262
  watch = _useForm.watch;
7258
7263
  var updatePassword = function updatePassword(formData) {
7259
7264
  try {
7260
- var _temp3 = function _temp3() {
7265
+ var _temp2 = function _temp2() {
7261
7266
  setIsLoading(false);
7262
7267
  };
7263
7268
  setIsLoading(true);
7264
- var _temp4 = _catch(function () {
7269
+ var _temp = _catch(function () {
7265
7270
  return Promise.resolve(API({
7266
7271
  apiEndPoint: apiEndPoint,
7267
7272
  token: token,
@@ -7272,7 +7277,7 @@ var ChangePassword = function ChangePassword(_ref) {
7272
7277
  successMessage: 'Password updated successfully.'
7273
7278
  })).then(function () {});
7274
7279
  }, function () {});
7275
- return Promise.resolve(_temp4 && _temp4.then ? _temp4.then(_temp3) : _temp3(_temp4));
7280
+ return Promise.resolve(_temp && _temp.then ? _temp.then(_temp2) : _temp2(_temp));
7276
7281
  } catch (e) {
7277
7282
  return Promise.reject(e);
7278
7283
  }
@@ -7463,7 +7468,7 @@ var AccountDetails = function AccountDetails(_ref) {
7463
7468
  React.useEffect(function () {
7464
7469
  (function () {
7465
7470
  try {
7466
- var _temp2 = _catch(function () {
7471
+ var _temp = _catch(function () {
7467
7472
  return Promise.resolve(API({
7468
7473
  apiEndPoint: apiEndPoint,
7469
7474
  token: token,
@@ -7472,7 +7477,7 @@ var AccountDetails = function AccountDetails(_ref) {
7472
7477
  setStoreData(data);
7473
7478
  });
7474
7479
  }, function () {});
7475
- return _temp2 && _temp2.then ? _temp2.then(function () {}) : void 0;
7480
+ return _temp && _temp.then ? _temp.then(function () {}) : void 0;
7476
7481
  } catch (e) {
7477
7482
  Promise.reject(e);
7478
7483
  }
@@ -7688,7 +7693,7 @@ var Main = styles.styled('main', {
7688
7693
  }, {
7689
7694
  background: backgroundColor,
7690
7695
  borderRadius: 14,
7691
- height: '100%',
7696
+ height: 'auto',
7692
7697
  overflow: 'auto'
7693
7698
  });
7694
7699
  });
@@ -7701,6 +7706,74 @@ var TypographyContainer$7 = styled__default(material.Typography)(_templateObject
7701
7706
  return props.fontColor;
7702
7707
  });
7703
7708
 
7709
+ var _templateObject$v, _templateObject2$m;
7710
+ var ThankYou = function ThankYou(_ref) {
7711
+ var _ref$id = _ref.id,
7712
+ id = _ref$id === void 0 ? 0 : _ref$id,
7713
+ _ref$colors = _ref.colors,
7714
+ colors = _ref$colors === void 0 ? {
7715
+ primaryColor: '#D2122E'
7716
+ } : _ref$colors,
7717
+ onContinue = _ref.onContinue;
7718
+ return /*#__PURE__*/React__default.createElement(styled.ThemeProvider, {
7719
+ theme: colors
7720
+ }, /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(material.CssBaseline, null), /*#__PURE__*/React__default.createElement(Root$5, null, /*#__PURE__*/React__default.createElement(material.Grid, {
7721
+ container: true,
7722
+ justify: "center"
7723
+ }, /*#__PURE__*/React__default.createElement(material.Grid, {
7724
+ item: true,
7725
+ xs: 12
7726
+ }, /*#__PURE__*/React__default.createElement("div", {
7727
+ style: {
7728
+ display: 'flex',
7729
+ padding: '50px 0px',
7730
+ flexDirection: 'column',
7731
+ alignItems: 'center'
7732
+ }
7733
+ }, /*#__PURE__*/React__default.createElement(md.MdCheckCircle, {
7734
+ style: {
7735
+ fontSize: '150px',
7736
+ color: 'green',
7737
+ marginBottom: '40px'
7738
+ }
7739
+ }), /*#__PURE__*/React__default.createElement("h1", {
7740
+ style: {
7741
+ fontSize: '40px',
7742
+ marginBottom: '20px',
7743
+ fontWeight: '500'
7744
+ }
7745
+ }, "Thank you."), /*#__PURE__*/React__default.createElement("h2", {
7746
+ style: {
7747
+ marginBottom: '40px',
7748
+ fontWeight: '500'
7749
+ }
7750
+ }, "Your order number ", id, " was placed successfully."), /*#__PURE__*/React__default.createElement("div", {
7751
+ style: {
7752
+ display: 'flex',
7753
+ alignItems: 'center',
7754
+ marginBottom: '40px'
7755
+ }
7756
+ }, /*#__PURE__*/React__default.createElement(md.MdMailOutline, {
7757
+ style: {
7758
+ fontSize: '50px'
7759
+ }
7760
+ }), /*#__PURE__*/React__default.createElement("div", {
7761
+ style: {
7762
+ marginLeft: '20px'
7763
+ }
7764
+ }, /*#__PURE__*/React__default.createElement("p", null, "An email receipt including the details about the order has been"), /*#__PURE__*/React__default.createElement("p", null, "sent to the email address provided. Please keep it for your records."))), /*#__PURE__*/React__default.createElement(StyledButton, {
7765
+ onClick: onContinue
7766
+ }, /*#__PURE__*/React__default.createElement("p", null, "Continue Shopping"))))))));
7767
+ };
7768
+ var Root$5 = styled__default(material.Box)(_templateObject$v || (_templateObject$v = _taggedTemplateLiteralLoose([""])));
7769
+ var StyledButton = styled__default.button(_templateObject2$m || (_templateObject2$m = _taggedTemplateLiteralLoose(["\n outline: none;\n border: 1px solid;\n border-color: ", ";\n background: none;\n border-radius: 14px;\n padding: 10px 20px;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n transition: background 0.5s ease;\n width: 200px;\n color: ", ";\n text-transform: uppercase;\n &:hover {\n cursor: pointer;\n background: ", ";\n color: #fff;\n }\n"])), function (props) {
7770
+ return props.theme.primaryColor;
7771
+ }, function (props) {
7772
+ return props.theme.primaryColor;
7773
+ }, function (props) {
7774
+ return props.theme.primaryColor;
7775
+ });
7776
+
7704
7777
  var Breakpoint = function Breakpoint() {};
7705
7778
  Breakpoint.xs = 'xs';
7706
7779
  Breakpoint.sm = 'sm';
@@ -7794,6 +7867,7 @@ exports.Breakpoint = Breakpoint;
7794
7867
  exports.CartDrawer = CartDrawer;
7795
7868
  exports.CartPageComponent = CartPageComponent;
7796
7869
  exports.CheckoutPageComponent = CheckoutPageComponent;
7870
+ exports.ThankYou = ThankYou;
7797
7871
  exports.Variant = Variant;
7798
7872
  exports.useGridSize = useGridSize;
7799
7873
  exports.useWindowSize = useWindowSize;