tabexseriescomponents 0.0.133 → 0.0.134

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.cjs.js CHANGED
@@ -3172,6 +3172,7 @@ var Ordershistory = function Ordershistory(props) {
3172
3172
  props.actions.TabexSectionsComponentsContext;
3173
3173
  var templatepropcontext = props.actions.templatepropcontext;
3174
3174
  var authdetailsContext = props.actions.authdetailsContext;
3175
+ var GeneralAPIMutationContext = props.actions.GeneralAPIMutationContext;
3175
3176
  var actions = props.actions;
3176
3177
  var _useState = React.useState(''),
3177
3178
  _useState2 = _slicedToArray__default["default"](_useState, 2);
@@ -3362,6 +3363,19 @@ var Ordershistory = function Ordershistory(props) {
3362
3363
  }
3363
3364
  }
3364
3365
  }, [sectionproperties]);
3366
+ var showdeletebuttonorder = function showdeletebuttonorder() {
3367
+ var _authdetailsContext$i;
3368
+ var showbutton = false;
3369
+ if ((authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i = authdetailsContext.instinfo) === null || _authdetailsContext$i === void 0 ? void 0 : _authdetailsContext$i.cancustomerdeleteorder) == 1) {
3370
+ if (orderindex.length != 0) {
3371
+ var _fetchorderhistoryQue, _fetchorderhistoryQue2, _fetchorderhistoryQue3;
3372
+ if ((fetchorderhistoryQueryContext === null || fetchorderhistoryQueryContext === void 0 ? void 0 : (_fetchorderhistoryQue = fetchorderhistoryQueryContext.data) === null || _fetchorderhistoryQue === void 0 ? void 0 : (_fetchorderhistoryQue2 = _fetchorderhistoryQue.data) === null || _fetchorderhistoryQue2 === void 0 ? void 0 : (_fetchorderhistoryQue3 = _fetchorderhistoryQue2.ordershistory[orderindex]) === null || _fetchorderhistoryQue3 === void 0 ? void 0 : _fetchorderhistoryQue3.instorderstatus) == null) {
3373
+ showbutton = true;
3374
+ }
3375
+ }
3376
+ }
3377
+ return showbutton;
3378
+ };
3365
3379
  return /*#__PURE__*/React__default["default"].createElement("div", {
3366
3380
  className: "row m-0 w-100"
3367
3381
  }, sectionproperties.showbgimage == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
@@ -3781,7 +3795,30 @@ var Ordershistory = function Ordershistory(props) {
3781
3795
  }, /*#__PURE__*/React__default["default"].createElement("hr", {
3782
3796
  className: "mt- mb-3"
3783
3797
  }))));
3784
- }))))))), /*#__PURE__*/React__default["default"].createElement("div", {
3798
+ }), showdeletebuttonorder() && /*#__PURE__*/React__default["default"].createElement("div", {
3799
+ className: "col-lg-12 d-flex align-items-center justify-content-center mb-2 mt-sm-3"
3800
+ }, /*#__PURE__*/React__default["default"].createElement("button", {
3801
+ className: ' d-flex align-items-center justify-content-center ',
3802
+ onClick: function onClick() {
3803
+ GeneralAPIMutationContext.mutate({
3804
+ endpointurl: '/deleteorder',
3805
+ orderid: fetchorderhistoryQueryContext.data.data.ordershistory[orderindex].orderid,
3806
+ mutateSuccesscallback: function mutateSuccesscallback(data, variables) {
3807
+ if (data.data.status) {
3808
+ window.location.reload();
3809
+ } else {
3810
+ NotificationManager.warning('', data.data.reason);
3811
+ }
3812
+ }
3813
+ });
3814
+ },
3815
+ disabled: GeneralAPIMutationContext.isLoading ? true : false
3816
+ }, GeneralAPIMutationContext.isLoading && /*#__PURE__*/React__default["default"].createElement(reactCssfxLoading.CircularProgress, {
3817
+ color: "#fff",
3818
+ width: "20px",
3819
+ height: "20px",
3820
+ duration: "1s"
3821
+ }), !GeneralAPIMutationContext.isLoading && /*#__PURE__*/React__default["default"].createElement("p", null, " Delete Order"))))))))), /*#__PURE__*/React__default["default"].createElement("div", {
3785
3822
  className: langdetect == 'en' ? 'col-lg-3 pr-0 p-md-0' : 'col-lg-3 pl-0 p-md-0'
3786
3823
  }, /*#__PURE__*/React__default["default"].createElement("div", {
3787
3824
  className: "row m-0 w-100 mb-3",
@@ -5131,33 +5168,45 @@ var Checkout = function Checkout(props) {
5131
5168
  // }
5132
5169
  }, [props.actions.StatePagePropertiesContext]);
5133
5170
  React.useEffect(function () {
5134
- var _fetchcustomercartQue, _fetchcustomercartQue2, _fetchcustomercartQue3, _fetchcustomercartQue4, _fetchcustomercartQue5, _fetchcustomercartQue6, _fetchcustomercartQue9, _fetchcustomercartQue10, _fetchcustomercartQue11, _fetchcustomercartQue12, _fetchcustomercartQue13, _fetchcustomercartQue14;
5135
- // if (authdetailsContext.loggedin == true) {
5136
- var tempFetchQueriesEngineContext = _objectSpread$1H({}, FetchQueriesEngineContext);
5137
- tempFetchQueriesEngineContext.fetchtabexcountries = true;
5138
- setFetchQueriesEngineContext(_objectSpread$1H({}, tempFetchQueriesEngineContext));
5139
- var tempFetchTabexStatesPayloadobjContext = _objectSpread$1H({}, FetchTabexStatesPayloadobjContext);
5140
- if (
5141
- // Aya
5142
- !fetchcustomercartQueryContext.isFetching && fetchcustomercartQueryContext.isSuccess && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue === void 0 ? void 0 : (_fetchcustomercartQue2 = _fetchcustomercartQue.data) === null || _fetchcustomercartQue2 === void 0 ? void 0 : _fetchcustomercartQue2.customercart) != undefined && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue3 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue3 === void 0 ? void 0 : (_fetchcustomercartQue4 = _fetchcustomercartQue3.data) === null || _fetchcustomercartQue4 === void 0 ? void 0 : _fetchcustomercartQue4.customercart.countryid) != null &&
5143
- // End
5144
- (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue5 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue5 === void 0 ? void 0 : (_fetchcustomercartQue6 = _fetchcustomercartQue5.data) === null || _fetchcustomercartQue6 === void 0 ? void 0 : _fetchcustomercartQue6.customercart.countryid.length) != 0) {
5145
- var _fetchcustomercartQue7, _fetchcustomercartQue8;
5146
- tempFetchTabexStatesPayloadobjContext.country_id = fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue7 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue7 === void 0 ? void 0 : (_fetchcustomercartQue8 = _fetchcustomercartQue7.data) === null || _fetchcustomercartQue8 === void 0 ? void 0 : _fetchcustomercartQue8.customercart.countryid;
5147
- }
5148
- if (
5149
- // aya
5150
- !fetchcustomercartQueryContext.isFetching && fetchcustomercartQueryContext.isSuccess && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue9 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue9 === void 0 ? void 0 : (_fetchcustomercartQue10 = _fetchcustomercartQue9.data) === null || _fetchcustomercartQue10 === void 0 ? void 0 : _fetchcustomercartQue10.customercart) != undefined && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue11 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue11 === void 0 ? void 0 : (_fetchcustomercartQue12 = _fetchcustomercartQue11.data) === null || _fetchcustomercartQue12 === void 0 ? void 0 : _fetchcustomercartQue12.customercart.stateid) != null &&
5151
- // end
5152
- (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue13 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue13 === void 0 ? void 0 : (_fetchcustomercartQue14 = _fetchcustomercartQue13.data) === null || _fetchcustomercartQue14 === void 0 ? void 0 : _fetchcustomercartQue14.customercart.stateid.length) != 0) {
5153
- var _fetchcustomercartQue15, _fetchcustomercartQue16;
5154
- tempFetchTabexStatesPayloadobjContext.state_id = fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue15 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue15 === void 0 ? void 0 : (_fetchcustomercartQue16 = _fetchcustomercartQue15.data) === null || _fetchcustomercartQue16 === void 0 ? void 0 : _fetchcustomercartQue16.customercart.stateid;
5155
- }
5156
- setFetchTabexStatesPayloadobjContext(_objectSpread$1H({}, tempFetchTabexStatesPayloadobjContext));
5157
- // } else {
5158
- // routingcountext('');
5159
- // }
5160
- }, []);
5171
+ var Canorder = false;
5172
+ if (authdetailsContext != undefined && authdetailsContext.instinfo != undefined && authdetailsContext.instinfo.cancustomerguestorder != undefined) {
5173
+ if (authdetailsContext.loggedin == true) {
5174
+ Canorder = true;
5175
+ } else {
5176
+ var _authdetailsContext$i;
5177
+ if ((authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i = authdetailsContext.instinfo) === null || _authdetailsContext$i === void 0 ? void 0 : _authdetailsContext$i.cancustomerguestorder) == 1) {
5178
+ Canorder = true;
5179
+ }
5180
+ }
5181
+ if (Canorder == true) {
5182
+ var _fetchcustomercartQue, _fetchcustomercartQue2, _fetchcustomercartQue3, _fetchcustomercartQue4, _fetchcustomercartQue5, _fetchcustomercartQue6, _fetchcustomercartQue9, _fetchcustomercartQue10, _fetchcustomercartQue11, _fetchcustomercartQue12, _fetchcustomercartQue13, _fetchcustomercartQue14;
5183
+ var tempFetchQueriesEngineContext = _objectSpread$1H({}, FetchQueriesEngineContext);
5184
+ tempFetchQueriesEngineContext.fetchtabexcountries = true;
5185
+ setFetchQueriesEngineContext(_objectSpread$1H({}, tempFetchQueriesEngineContext));
5186
+ var tempFetchTabexStatesPayloadobjContext = _objectSpread$1H({}, FetchTabexStatesPayloadobjContext);
5187
+ if (
5188
+ // Aya
5189
+ !fetchcustomercartQueryContext.isFetching && fetchcustomercartQueryContext.isSuccess && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue === void 0 ? void 0 : (_fetchcustomercartQue2 = _fetchcustomercartQue.data) === null || _fetchcustomercartQue2 === void 0 ? void 0 : _fetchcustomercartQue2.customercart) != undefined && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue3 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue3 === void 0 ? void 0 : (_fetchcustomercartQue4 = _fetchcustomercartQue3.data) === null || _fetchcustomercartQue4 === void 0 ? void 0 : _fetchcustomercartQue4.customercart.countryid) != null &&
5190
+ // End
5191
+ (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue5 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue5 === void 0 ? void 0 : (_fetchcustomercartQue6 = _fetchcustomercartQue5.data) === null || _fetchcustomercartQue6 === void 0 ? void 0 : _fetchcustomercartQue6.customercart.countryid.length) != 0) {
5192
+ var _fetchcustomercartQue7, _fetchcustomercartQue8;
5193
+ tempFetchTabexStatesPayloadobjContext.country_id = fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue7 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue7 === void 0 ? void 0 : (_fetchcustomercartQue8 = _fetchcustomercartQue7.data) === null || _fetchcustomercartQue8 === void 0 ? void 0 : _fetchcustomercartQue8.customercart.countryid;
5194
+ }
5195
+ if (
5196
+ // aya
5197
+ !fetchcustomercartQueryContext.isFetching && fetchcustomercartQueryContext.isSuccess && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue9 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue9 === void 0 ? void 0 : (_fetchcustomercartQue10 = _fetchcustomercartQue9.data) === null || _fetchcustomercartQue10 === void 0 ? void 0 : _fetchcustomercartQue10.customercart) != undefined && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue11 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue11 === void 0 ? void 0 : (_fetchcustomercartQue12 = _fetchcustomercartQue11.data) === null || _fetchcustomercartQue12 === void 0 ? void 0 : _fetchcustomercartQue12.customercart.stateid) != null &&
5198
+ // end
5199
+ (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue13 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue13 === void 0 ? void 0 : (_fetchcustomercartQue14 = _fetchcustomercartQue13.data) === null || _fetchcustomercartQue14 === void 0 ? void 0 : _fetchcustomercartQue14.customercart.stateid.length) != 0) {
5200
+ var _fetchcustomercartQue15, _fetchcustomercartQue16;
5201
+ tempFetchTabexStatesPayloadobjContext.state_id = fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue15 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue15 === void 0 ? void 0 : (_fetchcustomercartQue16 = _fetchcustomercartQue15.data) === null || _fetchcustomercartQue16 === void 0 ? void 0 : _fetchcustomercartQue16.customercart.stateid;
5202
+ }
5203
+ setFetchTabexStatesPayloadobjContext(_objectSpread$1H({}, tempFetchTabexStatesPayloadobjContext));
5204
+ } else {
5205
+ NotificationManager.warning('', lang.pleaselogintocheckout);
5206
+ routingcountext(StaticPagesLinksContext.Login);
5207
+ }
5208
+ }
5209
+ }, [authdetailsContext]);
5161
5210
  var cartinfoupdater = function cartinfoupdater(key, value) {
5162
5211
  var _fetchcustomercartQue17, _fetchcustomercartQue18, _fetchcustomercartQue19, _fetchcustomercartQue20, _fetchcustomercartQue21, _fetchcustomercartQue22, _fetchcustomercartQue23, _fetchcustomercartQue24, _fetchcustomercartQue25, _fetchcustomercartQue26, _fetchcustomercartQue27, _fetchcustomercartQue28, _fetchcustomercartQue29, _fetchcustomercartQue30, _fetchcustomercartQue31, _fetchcustomercartQue32;
5163
5212
  var cartarr = queryClient.getQueryData('fetchcustomercart_API');
@@ -40403,7 +40452,7 @@ var CategoryCardwithhoveraction = function CategoryCardwithhoveraction(props) {
40403
40452
  urlEndpoint: IKurlEndpoint,
40404
40453
  publicKey: IKpublicKey,
40405
40454
  "class": cardstyles$1.img,
40406
- path: '/tr:w-600,h-620/' + item.image,
40455
+ path: '/tr:w-' + sectionproperties.imagetr_w + ',h-' + sectionproperties.imagetr_h + '/' + item.image,
40407
40456
  loading: "lazy"
40408
40457
  }), /*#__PURE__*/React__default["default"].createElement("ul", {
40409
40458
  style: {
package/dist/index.esm.js CHANGED
@@ -3129,6 +3129,7 @@ var Ordershistory = function Ordershistory(props) {
3129
3129
  props.actions.TabexSectionsComponentsContext;
3130
3130
  var templatepropcontext = props.actions.templatepropcontext;
3131
3131
  var authdetailsContext = props.actions.authdetailsContext;
3132
+ var GeneralAPIMutationContext = props.actions.GeneralAPIMutationContext;
3132
3133
  var actions = props.actions;
3133
3134
  var _useState = useState(''),
3134
3135
  _useState2 = _slicedToArray(_useState, 2);
@@ -3319,6 +3320,19 @@ var Ordershistory = function Ordershistory(props) {
3319
3320
  }
3320
3321
  }
3321
3322
  }, [sectionproperties]);
3323
+ var showdeletebuttonorder = function showdeletebuttonorder() {
3324
+ var _authdetailsContext$i;
3325
+ var showbutton = false;
3326
+ if ((authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i = authdetailsContext.instinfo) === null || _authdetailsContext$i === void 0 ? void 0 : _authdetailsContext$i.cancustomerdeleteorder) == 1) {
3327
+ if (orderindex.length != 0) {
3328
+ var _fetchorderhistoryQue, _fetchorderhistoryQue2, _fetchorderhistoryQue3;
3329
+ if ((fetchorderhistoryQueryContext === null || fetchorderhistoryQueryContext === void 0 ? void 0 : (_fetchorderhistoryQue = fetchorderhistoryQueryContext.data) === null || _fetchorderhistoryQue === void 0 ? void 0 : (_fetchorderhistoryQue2 = _fetchorderhistoryQue.data) === null || _fetchorderhistoryQue2 === void 0 ? void 0 : (_fetchorderhistoryQue3 = _fetchorderhistoryQue2.ordershistory[orderindex]) === null || _fetchorderhistoryQue3 === void 0 ? void 0 : _fetchorderhistoryQue3.instorderstatus) == null) {
3330
+ showbutton = true;
3331
+ }
3332
+ }
3333
+ }
3334
+ return showbutton;
3335
+ };
3322
3336
  return /*#__PURE__*/React.createElement("div", {
3323
3337
  className: "row m-0 w-100"
3324
3338
  }, sectionproperties.showbgimage == 'Show' && /*#__PURE__*/React.createElement("div", {
@@ -3738,7 +3752,30 @@ var Ordershistory = function Ordershistory(props) {
3738
3752
  }, /*#__PURE__*/React.createElement("hr", {
3739
3753
  className: "mt- mb-3"
3740
3754
  }))));
3741
- }))))))), /*#__PURE__*/React.createElement("div", {
3755
+ }), showdeletebuttonorder() && /*#__PURE__*/React.createElement("div", {
3756
+ className: "col-lg-12 d-flex align-items-center justify-content-center mb-2 mt-sm-3"
3757
+ }, /*#__PURE__*/React.createElement("button", {
3758
+ className: ' d-flex align-items-center justify-content-center ',
3759
+ onClick: function onClick() {
3760
+ GeneralAPIMutationContext.mutate({
3761
+ endpointurl: '/deleteorder',
3762
+ orderid: fetchorderhistoryQueryContext.data.data.ordershistory[orderindex].orderid,
3763
+ mutateSuccesscallback: function mutateSuccesscallback(data, variables) {
3764
+ if (data.data.status) {
3765
+ window.location.reload();
3766
+ } else {
3767
+ NotificationManager.warning('', data.data.reason);
3768
+ }
3769
+ }
3770
+ });
3771
+ },
3772
+ disabled: GeneralAPIMutationContext.isLoading ? true : false
3773
+ }, GeneralAPIMutationContext.isLoading && /*#__PURE__*/React.createElement(CircularProgress, {
3774
+ color: "#fff",
3775
+ width: "20px",
3776
+ height: "20px",
3777
+ duration: "1s"
3778
+ }), !GeneralAPIMutationContext.isLoading && /*#__PURE__*/React.createElement("p", null, " Delete Order"))))))))), /*#__PURE__*/React.createElement("div", {
3742
3779
  className: langdetect == 'en' ? 'col-lg-3 pr-0 p-md-0' : 'col-lg-3 pl-0 p-md-0'
3743
3780
  }, /*#__PURE__*/React.createElement("div", {
3744
3781
  className: "row m-0 w-100 mb-3",
@@ -5088,33 +5125,45 @@ var Checkout = function Checkout(props) {
5088
5125
  // }
5089
5126
  }, [props.actions.StatePagePropertiesContext]);
5090
5127
  useEffect(function () {
5091
- var _fetchcustomercartQue, _fetchcustomercartQue2, _fetchcustomercartQue3, _fetchcustomercartQue4, _fetchcustomercartQue5, _fetchcustomercartQue6, _fetchcustomercartQue9, _fetchcustomercartQue10, _fetchcustomercartQue11, _fetchcustomercartQue12, _fetchcustomercartQue13, _fetchcustomercartQue14;
5092
- // if (authdetailsContext.loggedin == true) {
5093
- var tempFetchQueriesEngineContext = _objectSpread$1H({}, FetchQueriesEngineContext);
5094
- tempFetchQueriesEngineContext.fetchtabexcountries = true;
5095
- setFetchQueriesEngineContext(_objectSpread$1H({}, tempFetchQueriesEngineContext));
5096
- var tempFetchTabexStatesPayloadobjContext = _objectSpread$1H({}, FetchTabexStatesPayloadobjContext);
5097
- if (
5098
- // Aya
5099
- !fetchcustomercartQueryContext.isFetching && fetchcustomercartQueryContext.isSuccess && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue === void 0 ? void 0 : (_fetchcustomercartQue2 = _fetchcustomercartQue.data) === null || _fetchcustomercartQue2 === void 0 ? void 0 : _fetchcustomercartQue2.customercart) != undefined && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue3 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue3 === void 0 ? void 0 : (_fetchcustomercartQue4 = _fetchcustomercartQue3.data) === null || _fetchcustomercartQue4 === void 0 ? void 0 : _fetchcustomercartQue4.customercart.countryid) != null &&
5100
- // End
5101
- (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue5 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue5 === void 0 ? void 0 : (_fetchcustomercartQue6 = _fetchcustomercartQue5.data) === null || _fetchcustomercartQue6 === void 0 ? void 0 : _fetchcustomercartQue6.customercart.countryid.length) != 0) {
5102
- var _fetchcustomercartQue7, _fetchcustomercartQue8;
5103
- tempFetchTabexStatesPayloadobjContext.country_id = fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue7 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue7 === void 0 ? void 0 : (_fetchcustomercartQue8 = _fetchcustomercartQue7.data) === null || _fetchcustomercartQue8 === void 0 ? void 0 : _fetchcustomercartQue8.customercart.countryid;
5104
- }
5105
- if (
5106
- // aya
5107
- !fetchcustomercartQueryContext.isFetching && fetchcustomercartQueryContext.isSuccess && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue9 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue9 === void 0 ? void 0 : (_fetchcustomercartQue10 = _fetchcustomercartQue9.data) === null || _fetchcustomercartQue10 === void 0 ? void 0 : _fetchcustomercartQue10.customercart) != undefined && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue11 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue11 === void 0 ? void 0 : (_fetchcustomercartQue12 = _fetchcustomercartQue11.data) === null || _fetchcustomercartQue12 === void 0 ? void 0 : _fetchcustomercartQue12.customercart.stateid) != null &&
5108
- // end
5109
- (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue13 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue13 === void 0 ? void 0 : (_fetchcustomercartQue14 = _fetchcustomercartQue13.data) === null || _fetchcustomercartQue14 === void 0 ? void 0 : _fetchcustomercartQue14.customercart.stateid.length) != 0) {
5110
- var _fetchcustomercartQue15, _fetchcustomercartQue16;
5111
- tempFetchTabexStatesPayloadobjContext.state_id = fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue15 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue15 === void 0 ? void 0 : (_fetchcustomercartQue16 = _fetchcustomercartQue15.data) === null || _fetchcustomercartQue16 === void 0 ? void 0 : _fetchcustomercartQue16.customercart.stateid;
5112
- }
5113
- setFetchTabexStatesPayloadobjContext(_objectSpread$1H({}, tempFetchTabexStatesPayloadobjContext));
5114
- // } else {
5115
- // routingcountext('');
5116
- // }
5117
- }, []);
5128
+ var Canorder = false;
5129
+ if (authdetailsContext != undefined && authdetailsContext.instinfo != undefined && authdetailsContext.instinfo.cancustomerguestorder != undefined) {
5130
+ if (authdetailsContext.loggedin == true) {
5131
+ Canorder = true;
5132
+ } else {
5133
+ var _authdetailsContext$i;
5134
+ if ((authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i = authdetailsContext.instinfo) === null || _authdetailsContext$i === void 0 ? void 0 : _authdetailsContext$i.cancustomerguestorder) == 1) {
5135
+ Canorder = true;
5136
+ }
5137
+ }
5138
+ if (Canorder == true) {
5139
+ var _fetchcustomercartQue, _fetchcustomercartQue2, _fetchcustomercartQue3, _fetchcustomercartQue4, _fetchcustomercartQue5, _fetchcustomercartQue6, _fetchcustomercartQue9, _fetchcustomercartQue10, _fetchcustomercartQue11, _fetchcustomercartQue12, _fetchcustomercartQue13, _fetchcustomercartQue14;
5140
+ var tempFetchQueriesEngineContext = _objectSpread$1H({}, FetchQueriesEngineContext);
5141
+ tempFetchQueriesEngineContext.fetchtabexcountries = true;
5142
+ setFetchQueriesEngineContext(_objectSpread$1H({}, tempFetchQueriesEngineContext));
5143
+ var tempFetchTabexStatesPayloadobjContext = _objectSpread$1H({}, FetchTabexStatesPayloadobjContext);
5144
+ if (
5145
+ // Aya
5146
+ !fetchcustomercartQueryContext.isFetching && fetchcustomercartQueryContext.isSuccess && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue === void 0 ? void 0 : (_fetchcustomercartQue2 = _fetchcustomercartQue.data) === null || _fetchcustomercartQue2 === void 0 ? void 0 : _fetchcustomercartQue2.customercart) != undefined && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue3 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue3 === void 0 ? void 0 : (_fetchcustomercartQue4 = _fetchcustomercartQue3.data) === null || _fetchcustomercartQue4 === void 0 ? void 0 : _fetchcustomercartQue4.customercart.countryid) != null &&
5147
+ // End
5148
+ (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue5 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue5 === void 0 ? void 0 : (_fetchcustomercartQue6 = _fetchcustomercartQue5.data) === null || _fetchcustomercartQue6 === void 0 ? void 0 : _fetchcustomercartQue6.customercart.countryid.length) != 0) {
5149
+ var _fetchcustomercartQue7, _fetchcustomercartQue8;
5150
+ tempFetchTabexStatesPayloadobjContext.country_id = fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue7 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue7 === void 0 ? void 0 : (_fetchcustomercartQue8 = _fetchcustomercartQue7.data) === null || _fetchcustomercartQue8 === void 0 ? void 0 : _fetchcustomercartQue8.customercart.countryid;
5151
+ }
5152
+ if (
5153
+ // aya
5154
+ !fetchcustomercartQueryContext.isFetching && fetchcustomercartQueryContext.isSuccess && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue9 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue9 === void 0 ? void 0 : (_fetchcustomercartQue10 = _fetchcustomercartQue9.data) === null || _fetchcustomercartQue10 === void 0 ? void 0 : _fetchcustomercartQue10.customercart) != undefined && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue11 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue11 === void 0 ? void 0 : (_fetchcustomercartQue12 = _fetchcustomercartQue11.data) === null || _fetchcustomercartQue12 === void 0 ? void 0 : _fetchcustomercartQue12.customercart.stateid) != null &&
5155
+ // end
5156
+ (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue13 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue13 === void 0 ? void 0 : (_fetchcustomercartQue14 = _fetchcustomercartQue13.data) === null || _fetchcustomercartQue14 === void 0 ? void 0 : _fetchcustomercartQue14.customercart.stateid.length) != 0) {
5157
+ var _fetchcustomercartQue15, _fetchcustomercartQue16;
5158
+ tempFetchTabexStatesPayloadobjContext.state_id = fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue15 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue15 === void 0 ? void 0 : (_fetchcustomercartQue16 = _fetchcustomercartQue15.data) === null || _fetchcustomercartQue16 === void 0 ? void 0 : _fetchcustomercartQue16.customercart.stateid;
5159
+ }
5160
+ setFetchTabexStatesPayloadobjContext(_objectSpread$1H({}, tempFetchTabexStatesPayloadobjContext));
5161
+ } else {
5162
+ NotificationManager.warning('', lang.pleaselogintocheckout);
5163
+ routingcountext(StaticPagesLinksContext.Login);
5164
+ }
5165
+ }
5166
+ }, [authdetailsContext]);
5118
5167
  var cartinfoupdater = function cartinfoupdater(key, value) {
5119
5168
  var _fetchcustomercartQue17, _fetchcustomercartQue18, _fetchcustomercartQue19, _fetchcustomercartQue20, _fetchcustomercartQue21, _fetchcustomercartQue22, _fetchcustomercartQue23, _fetchcustomercartQue24, _fetchcustomercartQue25, _fetchcustomercartQue26, _fetchcustomercartQue27, _fetchcustomercartQue28, _fetchcustomercartQue29, _fetchcustomercartQue30, _fetchcustomercartQue31, _fetchcustomercartQue32;
5120
5169
  var cartarr = queryClient.getQueryData('fetchcustomercart_API');
@@ -40360,7 +40409,7 @@ var CategoryCardwithhoveraction = function CategoryCardwithhoveraction(props) {
40360
40409
  urlEndpoint: IKurlEndpoint,
40361
40410
  publicKey: IKpublicKey,
40362
40411
  "class": cardstyles$1.img,
40363
- path: '/tr:w-600,h-620/' + item.image,
40412
+ path: '/tr:w-' + sectionproperties.imagetr_w + ',h-' + sectionproperties.imagetr_h + '/' + item.image,
40364
40413
  loading: "lazy"
40365
40414
  }), /*#__PURE__*/React.createElement("ul", {
40366
40415
  style: {
package/dist/index.umd.js CHANGED
@@ -3040,6 +3040,7 @@
3040
3040
  props.actions.TabexSectionsComponentsContext;
3041
3041
  var templatepropcontext = props.actions.templatepropcontext;
3042
3042
  var authdetailsContext = props.actions.authdetailsContext;
3043
+ var GeneralAPIMutationContext = props.actions.GeneralAPIMutationContext;
3043
3044
  var actions = props.actions;
3044
3045
  var _useState = React.useState(''),
3045
3046
  _useState2 = _slicedToArray__default["default"](_useState, 2);
@@ -3230,6 +3231,19 @@
3230
3231
  }
3231
3232
  }
3232
3233
  }, [sectionproperties]);
3234
+ var showdeletebuttonorder = function showdeletebuttonorder() {
3235
+ var _authdetailsContext$i;
3236
+ var showbutton = false;
3237
+ if ((authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i = authdetailsContext.instinfo) === null || _authdetailsContext$i === void 0 ? void 0 : _authdetailsContext$i.cancustomerdeleteorder) == 1) {
3238
+ if (orderindex.length != 0) {
3239
+ var _fetchorderhistoryQue, _fetchorderhistoryQue2, _fetchorderhistoryQue3;
3240
+ if ((fetchorderhistoryQueryContext === null || fetchorderhistoryQueryContext === void 0 ? void 0 : (_fetchorderhistoryQue = fetchorderhistoryQueryContext.data) === null || _fetchorderhistoryQue === void 0 ? void 0 : (_fetchorderhistoryQue2 = _fetchorderhistoryQue.data) === null || _fetchorderhistoryQue2 === void 0 ? void 0 : (_fetchorderhistoryQue3 = _fetchorderhistoryQue2.ordershistory[orderindex]) === null || _fetchorderhistoryQue3 === void 0 ? void 0 : _fetchorderhistoryQue3.instorderstatus) == null) {
3241
+ showbutton = true;
3242
+ }
3243
+ }
3244
+ }
3245
+ return showbutton;
3246
+ };
3233
3247
  return /*#__PURE__*/React__default["default"].createElement("div", {
3234
3248
  className: "row m-0 w-100"
3235
3249
  }, sectionproperties.showbgimage == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
@@ -3649,7 +3663,30 @@
3649
3663
  }, /*#__PURE__*/React__default["default"].createElement("hr", {
3650
3664
  className: "mt- mb-3"
3651
3665
  }))));
3652
- }))))))), /*#__PURE__*/React__default["default"].createElement("div", {
3666
+ }), showdeletebuttonorder() && /*#__PURE__*/React__default["default"].createElement("div", {
3667
+ className: "col-lg-12 d-flex align-items-center justify-content-center mb-2 mt-sm-3"
3668
+ }, /*#__PURE__*/React__default["default"].createElement("button", {
3669
+ className: ' d-flex align-items-center justify-content-center ',
3670
+ onClick: function onClick() {
3671
+ GeneralAPIMutationContext.mutate({
3672
+ endpointurl: '/deleteorder',
3673
+ orderid: fetchorderhistoryQueryContext.data.data.ordershistory[orderindex].orderid,
3674
+ mutateSuccesscallback: function mutateSuccesscallback(data, variables) {
3675
+ if (data.data.status) {
3676
+ window.location.reload();
3677
+ } else {
3678
+ NotificationManager.warning('', data.data.reason);
3679
+ }
3680
+ }
3681
+ });
3682
+ },
3683
+ disabled: GeneralAPIMutationContext.isLoading ? true : false
3684
+ }, GeneralAPIMutationContext.isLoading && /*#__PURE__*/React__default["default"].createElement(reactCssfxLoading.CircularProgress, {
3685
+ color: "#fff",
3686
+ width: "20px",
3687
+ height: "20px",
3688
+ duration: "1s"
3689
+ }), !GeneralAPIMutationContext.isLoading && /*#__PURE__*/React__default["default"].createElement("p", null, " Delete Order"))))))))), /*#__PURE__*/React__default["default"].createElement("div", {
3653
3690
  className: langdetect == 'en' ? 'col-lg-3 pr-0 p-md-0' : 'col-lg-3 pl-0 p-md-0'
3654
3691
  }, /*#__PURE__*/React__default["default"].createElement("div", {
3655
3692
  className: "row m-0 w-100 mb-3",
@@ -4999,33 +5036,45 @@
4999
5036
  // }
5000
5037
  }, [props.actions.StatePagePropertiesContext]);
5001
5038
  React.useEffect(function () {
5002
- var _fetchcustomercartQue, _fetchcustomercartQue2, _fetchcustomercartQue3, _fetchcustomercartQue4, _fetchcustomercartQue5, _fetchcustomercartQue6, _fetchcustomercartQue9, _fetchcustomercartQue10, _fetchcustomercartQue11, _fetchcustomercartQue12, _fetchcustomercartQue13, _fetchcustomercartQue14;
5003
- // if (authdetailsContext.loggedin == true) {
5004
- var tempFetchQueriesEngineContext = _objectSpread$1H({}, FetchQueriesEngineContext);
5005
- tempFetchQueriesEngineContext.fetchtabexcountries = true;
5006
- setFetchQueriesEngineContext(_objectSpread$1H({}, tempFetchQueriesEngineContext));
5007
- var tempFetchTabexStatesPayloadobjContext = _objectSpread$1H({}, FetchTabexStatesPayloadobjContext);
5008
- if (
5009
- // Aya
5010
- !fetchcustomercartQueryContext.isFetching && fetchcustomercartQueryContext.isSuccess && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue === void 0 ? void 0 : (_fetchcustomercartQue2 = _fetchcustomercartQue.data) === null || _fetchcustomercartQue2 === void 0 ? void 0 : _fetchcustomercartQue2.customercart) != undefined && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue3 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue3 === void 0 ? void 0 : (_fetchcustomercartQue4 = _fetchcustomercartQue3.data) === null || _fetchcustomercartQue4 === void 0 ? void 0 : _fetchcustomercartQue4.customercart.countryid) != null &&
5011
- // End
5012
- (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue5 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue5 === void 0 ? void 0 : (_fetchcustomercartQue6 = _fetchcustomercartQue5.data) === null || _fetchcustomercartQue6 === void 0 ? void 0 : _fetchcustomercartQue6.customercart.countryid.length) != 0) {
5013
- var _fetchcustomercartQue7, _fetchcustomercartQue8;
5014
- tempFetchTabexStatesPayloadobjContext.country_id = fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue7 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue7 === void 0 ? void 0 : (_fetchcustomercartQue8 = _fetchcustomercartQue7.data) === null || _fetchcustomercartQue8 === void 0 ? void 0 : _fetchcustomercartQue8.customercart.countryid;
5015
- }
5016
- if (
5017
- // aya
5018
- !fetchcustomercartQueryContext.isFetching && fetchcustomercartQueryContext.isSuccess && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue9 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue9 === void 0 ? void 0 : (_fetchcustomercartQue10 = _fetchcustomercartQue9.data) === null || _fetchcustomercartQue10 === void 0 ? void 0 : _fetchcustomercartQue10.customercart) != undefined && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue11 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue11 === void 0 ? void 0 : (_fetchcustomercartQue12 = _fetchcustomercartQue11.data) === null || _fetchcustomercartQue12 === void 0 ? void 0 : _fetchcustomercartQue12.customercart.stateid) != null &&
5019
- // end
5020
- (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue13 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue13 === void 0 ? void 0 : (_fetchcustomercartQue14 = _fetchcustomercartQue13.data) === null || _fetchcustomercartQue14 === void 0 ? void 0 : _fetchcustomercartQue14.customercart.stateid.length) != 0) {
5021
- var _fetchcustomercartQue15, _fetchcustomercartQue16;
5022
- tempFetchTabexStatesPayloadobjContext.state_id = fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue15 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue15 === void 0 ? void 0 : (_fetchcustomercartQue16 = _fetchcustomercartQue15.data) === null || _fetchcustomercartQue16 === void 0 ? void 0 : _fetchcustomercartQue16.customercart.stateid;
5023
- }
5024
- setFetchTabexStatesPayloadobjContext(_objectSpread$1H({}, tempFetchTabexStatesPayloadobjContext));
5025
- // } else {
5026
- // routingcountext('');
5027
- // }
5028
- }, []);
5039
+ var Canorder = false;
5040
+ if (authdetailsContext != undefined && authdetailsContext.instinfo != undefined && authdetailsContext.instinfo.cancustomerguestorder != undefined) {
5041
+ if (authdetailsContext.loggedin == true) {
5042
+ Canorder = true;
5043
+ } else {
5044
+ var _authdetailsContext$i;
5045
+ if ((authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i = authdetailsContext.instinfo) === null || _authdetailsContext$i === void 0 ? void 0 : _authdetailsContext$i.cancustomerguestorder) == 1) {
5046
+ Canorder = true;
5047
+ }
5048
+ }
5049
+ if (Canorder == true) {
5050
+ var _fetchcustomercartQue, _fetchcustomercartQue2, _fetchcustomercartQue3, _fetchcustomercartQue4, _fetchcustomercartQue5, _fetchcustomercartQue6, _fetchcustomercartQue9, _fetchcustomercartQue10, _fetchcustomercartQue11, _fetchcustomercartQue12, _fetchcustomercartQue13, _fetchcustomercartQue14;
5051
+ var tempFetchQueriesEngineContext = _objectSpread$1H({}, FetchQueriesEngineContext);
5052
+ tempFetchQueriesEngineContext.fetchtabexcountries = true;
5053
+ setFetchQueriesEngineContext(_objectSpread$1H({}, tempFetchQueriesEngineContext));
5054
+ var tempFetchTabexStatesPayloadobjContext = _objectSpread$1H({}, FetchTabexStatesPayloadobjContext);
5055
+ if (
5056
+ // Aya
5057
+ !fetchcustomercartQueryContext.isFetching && fetchcustomercartQueryContext.isSuccess && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue === void 0 ? void 0 : (_fetchcustomercartQue2 = _fetchcustomercartQue.data) === null || _fetchcustomercartQue2 === void 0 ? void 0 : _fetchcustomercartQue2.customercart) != undefined && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue3 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue3 === void 0 ? void 0 : (_fetchcustomercartQue4 = _fetchcustomercartQue3.data) === null || _fetchcustomercartQue4 === void 0 ? void 0 : _fetchcustomercartQue4.customercart.countryid) != null &&
5058
+ // End
5059
+ (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue5 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue5 === void 0 ? void 0 : (_fetchcustomercartQue6 = _fetchcustomercartQue5.data) === null || _fetchcustomercartQue6 === void 0 ? void 0 : _fetchcustomercartQue6.customercart.countryid.length) != 0) {
5060
+ var _fetchcustomercartQue7, _fetchcustomercartQue8;
5061
+ tempFetchTabexStatesPayloadobjContext.country_id = fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue7 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue7 === void 0 ? void 0 : (_fetchcustomercartQue8 = _fetchcustomercartQue7.data) === null || _fetchcustomercartQue8 === void 0 ? void 0 : _fetchcustomercartQue8.customercart.countryid;
5062
+ }
5063
+ if (
5064
+ // aya
5065
+ !fetchcustomercartQueryContext.isFetching && fetchcustomercartQueryContext.isSuccess && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue9 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue9 === void 0 ? void 0 : (_fetchcustomercartQue10 = _fetchcustomercartQue9.data) === null || _fetchcustomercartQue10 === void 0 ? void 0 : _fetchcustomercartQue10.customercart) != undefined && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue11 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue11 === void 0 ? void 0 : (_fetchcustomercartQue12 = _fetchcustomercartQue11.data) === null || _fetchcustomercartQue12 === void 0 ? void 0 : _fetchcustomercartQue12.customercart.stateid) != null &&
5066
+ // end
5067
+ (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue13 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue13 === void 0 ? void 0 : (_fetchcustomercartQue14 = _fetchcustomercartQue13.data) === null || _fetchcustomercartQue14 === void 0 ? void 0 : _fetchcustomercartQue14.customercart.stateid.length) != 0) {
5068
+ var _fetchcustomercartQue15, _fetchcustomercartQue16;
5069
+ tempFetchTabexStatesPayloadobjContext.state_id = fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue15 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue15 === void 0 ? void 0 : (_fetchcustomercartQue16 = _fetchcustomercartQue15.data) === null || _fetchcustomercartQue16 === void 0 ? void 0 : _fetchcustomercartQue16.customercart.stateid;
5070
+ }
5071
+ setFetchTabexStatesPayloadobjContext(_objectSpread$1H({}, tempFetchTabexStatesPayloadobjContext));
5072
+ } else {
5073
+ NotificationManager.warning('', lang.pleaselogintocheckout);
5074
+ routingcountext(StaticPagesLinksContext.Login);
5075
+ }
5076
+ }
5077
+ }, [authdetailsContext]);
5029
5078
  var cartinfoupdater = function cartinfoupdater(key, value) {
5030
5079
  var _fetchcustomercartQue17, _fetchcustomercartQue18, _fetchcustomercartQue19, _fetchcustomercartQue20, _fetchcustomercartQue21, _fetchcustomercartQue22, _fetchcustomercartQue23, _fetchcustomercartQue24, _fetchcustomercartQue25, _fetchcustomercartQue26, _fetchcustomercartQue27, _fetchcustomercartQue28, _fetchcustomercartQue29, _fetchcustomercartQue30, _fetchcustomercartQue31, _fetchcustomercartQue32;
5031
5080
  var cartarr = queryClient.getQueryData('fetchcustomercart_API');
@@ -40271,7 +40320,7 @@
40271
40320
  urlEndpoint: IKurlEndpoint,
40272
40321
  publicKey: IKpublicKey,
40273
40322
  "class": cardstyles$1.img,
40274
- path: '/tr:w-600,h-620/' + item.image,
40323
+ path: '/tr:w-' + sectionproperties.imagetr_w + ',h-' + sectionproperties.imagetr_h + '/' + item.image,
40275
40324
  loading: "lazy"
40276
40325
  }), /*#__PURE__*/React__default["default"].createElement("ul", {
40277
40326
  style: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tabexseriescomponents",
3
- "version": "0.0.133",
3
+ "version": "0.0.134",
4
4
  "description": "your description",
5
5
  "main": "dist/index.cjs.js",
6
6
  "scripts": {