@salesgenterp/ui-components 0.4.398 → 0.4.400

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
@@ -9080,6 +9080,7 @@ var SnowfallComponent = function SnowfallComponent(_ref) {
9080
9080
  var _templateObject$C, _templateObject2$s;
9081
9081
  var ContactUsForm = function ContactUsForm(_ref) {
9082
9082
  var apiEndPoint = _ref.apiEndPoint,
9083
+ serviceApiEndPoint = _ref.serviceApiEndPoint,
9083
9084
  primaryColor = _ref.primaryColor,
9084
9085
  secondaryColor = _ref.secondaryColor,
9085
9086
  fontColor = _ref.fontColor,
@@ -9103,14 +9104,14 @@ var ContactUsForm = function ContactUsForm(_ref) {
9103
9104
  if (!isCaptchaVerified) return Promise.resolve(alert('Please Mark the captcha to continue'));
9104
9105
  }
9105
9106
  var _temp3 = function () {
9106
- if (apiEndPoint) {
9107
+ if (apiEndPoint || serviceApiEndPoint) {
9107
9108
  var _temp2 = function _temp2() {
9108
9109
  setIsLoading(false);
9109
9110
  };
9110
9111
  setIsLoading(true);
9111
9112
  var _temp = _catch(function () {
9112
9113
  return Promise.resolve(API({
9113
- apiEndPoint: apiEndPoint === null || apiEndPoint === void 0 ? void 0 : apiEndPoint.replace('/api', '/services/pdf'),
9114
+ apiEndPoint: serviceApiEndPoint || (apiEndPoint === null || apiEndPoint === void 0 ? void 0 : apiEndPoint.replace('/api', '/services/pdf')),
9114
9115
  method: 'POST',
9115
9116
  url: "/email/customer/contact-us",
9116
9117
  body: _extends({}, formData, {
@@ -9225,11 +9226,13 @@ var APIStaticPage = function APIStaticPage(_ref) {
9225
9226
  mapSrc = _ref.mapSrc,
9226
9227
  googleReCaptchaKey = _ref.googleReCaptchaKey,
9227
9228
  apiEndPoint = _ref.apiEndPoint,
9229
+ serviceApiEndPoint = _ref.serviceApiEndPoint,
9228
9230
  id = _ref.id,
9229
9231
  alias = _ref.alias,
9230
9232
  extra = _ref.extra,
9231
9233
  pageData = _ref.pageData,
9232
9234
  hideRouteBar = _ref.hideRouteBar;
9235
+ serviceApiEndPoint = serviceApiEndPoint || (apiEndPoint === null || apiEndPoint === void 0 ? void 0 : apiEndPoint.replace('/api', '/services/pdf'));
9233
9236
  var _useState = React.useState(false),
9234
9237
  contactUsForm = _useState[0],
9235
9238
  setContactUsForm = _useState[1];
@@ -9344,6 +9347,7 @@ var APIStaticPage = function APIStaticPage(_ref) {
9344
9347
  fontColor: (colors === null || colors === void 0 ? void 0 : colors.fontColor) || '#606060',
9345
9348
  googleReCaptchaKey: googleReCaptchaKey,
9346
9349
  apiEndPoint: apiEndPoint,
9350
+ serviceApiEndPoint: serviceApiEndPoint,
9347
9351
  logoUrl: logoUrl
9348
9352
  }))))) : /*#__PURE__*/React__default.createElement("p", {
9349
9353
  style: {
@@ -9381,9 +9385,11 @@ var StaticPage = function StaticPage(_ref) {
9381
9385
  contactUsForm = _ref.contactUsForm,
9382
9386
  googleReCaptchaKey = _ref.googleReCaptchaKey,
9383
9387
  apiEndPoint = _ref.apiEndPoint,
9388
+ serviceApiEndPoint = _ref.serviceApiEndPoint,
9384
9389
  token = _ref.token,
9385
9390
  logoUrl = _ref.logoUrl,
9386
9391
  hideRouteBar = _ref.hideRouteBar;
9392
+ serviceApiEndPoint = serviceApiEndPoint || (apiEndPoint === null || apiEndPoint === void 0 ? void 0 : apiEndPoint.replace('/api', '/services/pdf'));
9387
9393
  return /*#__PURE__*/React__default.createElement(styled.ThemeProvider, {
9388
9394
  theme: colors
9389
9395
  }, /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(material.CssBaseline, null), /*#__PURE__*/React__default.createElement(Root$c, null, /*#__PURE__*/React__default.createElement(StaticContainer$1, null, /*#__PURE__*/React__default.createElement("h1", {
@@ -9429,6 +9435,7 @@ var StaticPage = function StaticPage(_ref) {
9429
9435
  fontColor: (colors === null || colors === void 0 ? void 0 : colors.fontColor) || '#606060',
9430
9436
  googleReCaptchaKey: googleReCaptchaKey,
9431
9437
  apiEndPoint: apiEndPoint,
9438
+ serviceApiEndPoint: serviceApiEndPoint,
9432
9439
  token: token,
9433
9440
  logoUrl: logoUrl
9434
9441
  }))))))));
@@ -10332,7 +10339,8 @@ var Step1 = function Step1(_ref) {
10332
10339
  var _addressList2, _addressList2$;
10333
10340
  var modifyData = _extends({}, data, {
10334
10341
  active: true,
10335
- billingAddress: true
10342
+ billingAddress: true,
10343
+ shippingAddress: true
10336
10344
  });
10337
10345
  addStoreAddress(modifyData);
10338
10346
  setAddress(billingAddressId || ((_addressList2 = addressList) === null || _addressList2 === void 0 ? void 0 : (_addressList2$ = _addressList2[0]) === null || _addressList2$ === void 0 ? void 0 : _addressList2$.id));