tabexseriescomponents 0.0.521 → 0.0.523
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 +52 -39
- package/dist/index.esm.js +52 -39
- package/dist/index.umd.js +52 -39
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -13456,7 +13456,7 @@ styleInject(css_248z$E);
|
|
|
13456
13456
|
function ownKeys$2d(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
13457
13457
|
function _objectSpread$2d(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2d(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2d(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
13458
13458
|
var CartSlider = function CartSlider(props) {
|
|
13459
|
-
var _fetchcustomercartQue, _fetchcustomercartQue2, _fetchcustomercartQue3, _fetchcustomercartQue4, _fetchcustomercartQue5, _fetchcustomercartQue6, _fetchcustomercartQue7,
|
|
13459
|
+
var _fetchcustomercartQue, _fetchcustomercartQue2, _fetchcustomercartQue3, _fetchcustomercartQue4, _fetchcustomercartQue5, _fetchcustomercartQue6, _fetchcustomercartQue7, _fetchcustomercartQue8, _fetchcustomercartQue10, _fetchcustomercartQue11, _fetchcustomercartQue12, _fetchcustomercartQue13;
|
|
13460
13460
|
var lang = props.actions.lang;
|
|
13461
13461
|
var langdetect = props.actions.langdetect;
|
|
13462
13462
|
var authdetailsContext = props.actions.authdetailsContext;
|
|
@@ -13474,6 +13474,7 @@ var CartSlider = function CartSlider(props) {
|
|
|
13474
13474
|
var sidecartnavshowWorkplaceDesigncontext = props.actions.sidecartnavshowWorkplaceDesigncontext;
|
|
13475
13475
|
var ikimagecredcontext = props.actions.ikimagecredcontext;
|
|
13476
13476
|
var ChangeCartItemQuantityContext = props.actions.ChangeCartItemQuantityContext;
|
|
13477
|
+
var clearcartfuncContext = props.actions.clearcartfuncContext;
|
|
13477
13478
|
var _useState = React.useState(false),
|
|
13478
13479
|
_useState2 = _slicedToArray__default["default"](_useState, 2),
|
|
13479
13480
|
OpenCloseCartSlider = _useState2[0],
|
|
@@ -13746,7 +13747,15 @@ var CartSlider = function CartSlider(props) {
|
|
|
13746
13747
|
style: {}
|
|
13747
13748
|
}, langdetect == 'en' ? sectionproperties.sectionTitleContent : sectionproperties.sectionTitleContent_ar, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
13748
13749
|
"class": cart_cssstyles.badge + ' mx-2 allcentered mt-sm-1 '
|
|
13749
|
-
}, fetchcustomercartQueryContext !== null && fetchcustomercartQueryContext !== void 0 && (_fetchcustomercartQue = fetchcustomercartQueryContext.data) !== null && _fetchcustomercartQue !== void 0 && (_fetchcustomercartQue = _fetchcustomercartQue.data) !== null && _fetchcustomercartQue !== void 0 && _fetchcustomercartQue.status && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue2 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue2 === void 0 || (_fetchcustomercartQue2 = _fetchcustomercartQue2.data) === null || _fetchcustomercartQue2 === void 0 || (_fetchcustomercartQue2 = _fetchcustomercartQue2.customercart) === null || _fetchcustomercartQue2 === void 0 || (_fetchcustomercartQue2 = _fetchcustomercartQue2.cartitems) === null || _fetchcustomercartQue2 === void 0 ? void 0 : _fetchcustomercartQue2.length) != 0 ? fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue3 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue3 === void 0 || (_fetchcustomercartQue3 = _fetchcustomercartQue3.data) === null || _fetchcustomercartQue3 === void 0 || (_fetchcustomercartQue3 = _fetchcustomercartQue3.customercart) === null || _fetchcustomercartQue3 === void 0 || (_fetchcustomercartQue3 = _fetchcustomercartQue3.cartitems) === null || _fetchcustomercartQue3 === void 0 ? void 0 : _fetchcustomercartQue3.length : 0)))
|
|
13750
|
+
}, fetchcustomercartQueryContext !== null && fetchcustomercartQueryContext !== void 0 && (_fetchcustomercartQue = fetchcustomercartQueryContext.data) !== null && _fetchcustomercartQue !== void 0 && (_fetchcustomercartQue = _fetchcustomercartQue.data) !== null && _fetchcustomercartQue !== void 0 && _fetchcustomercartQue.status && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue2 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue2 === void 0 || (_fetchcustomercartQue2 = _fetchcustomercartQue2.data) === null || _fetchcustomercartQue2 === void 0 || (_fetchcustomercartQue2 = _fetchcustomercartQue2.customercart) === null || _fetchcustomercartQue2 === void 0 || (_fetchcustomercartQue2 = _fetchcustomercartQue2.cartitems) === null || _fetchcustomercartQue2 === void 0 ? void 0 : _fetchcustomercartQue2.length) != 0 ? fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue3 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue3 === void 0 || (_fetchcustomercartQue3 = _fetchcustomercartQue3.data) === null || _fetchcustomercartQue3 === void 0 || (_fetchcustomercartQue3 = _fetchcustomercartQue3.customercart) === null || _fetchcustomercartQue3 === void 0 || (_fetchcustomercartQue3 = _fetchcustomercartQue3.cartitems) === null || _fetchcustomercartQue3 === void 0 ? void 0 : _fetchcustomercartQue3.length : 0), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue4 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue4 === void 0 || (_fetchcustomercartQue4 = _fetchcustomercartQue4.data) === null || _fetchcustomercartQue4 === void 0 || (_fetchcustomercartQue4 = _fetchcustomercartQue4.customercart) === null || _fetchcustomercartQue4 === void 0 || (_fetchcustomercartQue4 = _fetchcustomercartQue4.cartitems) === null || _fetchcustomercartQue4 === void 0 ? void 0 : _fetchcustomercartQue4.length) != 0 && /*#__PURE__*/React__default["default"].createElement("sup", {
|
|
13751
|
+
onClick: function onClick() {
|
|
13752
|
+
clearcartfuncContext();
|
|
13753
|
+
},
|
|
13754
|
+
"class": "text-danger text-dangerhover cursor-pointer",
|
|
13755
|
+
style: {
|
|
13756
|
+
fontSize: 13
|
|
13757
|
+
}
|
|
13758
|
+
}, langdetect == 'en' ? 'Clear Cart' : 'حذف الكل'))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
13750
13759
|
className: ' col-3 d-flex align-items-center justify-content-end '
|
|
13751
13760
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
13752
13761
|
className: "".concat(cart_cssstyles.close_menu_icon_cont) + ' allcentered ',
|
|
@@ -13775,7 +13784,7 @@ var CartSlider = function CartSlider(props) {
|
|
|
13775
13784
|
height: 2,
|
|
13776
13785
|
background: sectionproperties.vl_bg
|
|
13777
13786
|
}
|
|
13778
|
-
}))))), /*#__PURE__*/React__default["default"].createElement(reactBootstrap.Offcanvas.Body, null, (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
13787
|
+
}))))), /*#__PURE__*/React__default["default"].createElement(reactBootstrap.Offcanvas.Body, null, (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue5 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue5 === void 0 || (_fetchcustomercartQue5 = _fetchcustomercartQue5.data) === null || _fetchcustomercartQue5 === void 0 ? void 0 : _fetchcustomercartQue5.status) && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
13779
13788
|
"class": "row m-0 w-100 h-100 px-2"
|
|
13780
13789
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
13781
13790
|
className: "".concat(cartstyles.cartslider_container, " ").concat(cart_cssstyles.cartslider_container) + ' h-100 w-100 ',
|
|
@@ -13787,7 +13796,7 @@ var CartSlider = function CartSlider(props) {
|
|
|
13787
13796
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
13788
13797
|
className: "row m-0 w-100 ",
|
|
13789
13798
|
style: {
|
|
13790
|
-
height: '
|
|
13799
|
+
height: '90vh'
|
|
13791
13800
|
}
|
|
13792
13801
|
}, AddtoCartMutationContext.isLoading && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
13793
13802
|
className: "col-lg-12 allcentered",
|
|
@@ -13817,9 +13826,9 @@ var CartSlider = function CartSlider(props) {
|
|
|
13817
13826
|
maxHeight: '67%',
|
|
13818
13827
|
overflowY: 'scroll'
|
|
13819
13828
|
}
|
|
13820
|
-
}, (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
13829
|
+
}, (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue6 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue6 === void 0 || (_fetchcustomercartQue6 = _fetchcustomercartQue6.data) === null || _fetchcustomercartQue6 === void 0 ? void 0 : _fetchcustomercartQue6.customercart) != null && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
13821
13830
|
className: "row m-0 w-100 h-100"
|
|
13822
|
-
}, (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
13831
|
+
}, (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue7 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue7 === void 0 || (_fetchcustomercartQue7 = _fetchcustomercartQue7.data) === null || _fetchcustomercartQue7 === void 0 || (_fetchcustomercartQue7 = _fetchcustomercartQue7.customercart) === null || _fetchcustomercartQue7 === void 0 ? void 0 : _fetchcustomercartQue7.cartitems) == 0 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
13823
13832
|
className: "col-lg-12 p-0 mt-5 anim pt-3"
|
|
13824
13833
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
13825
13834
|
className: "row m-0 w-100 d-flex align-items-center justify-content-center",
|
|
@@ -13862,8 +13871,8 @@ var CartSlider = function CartSlider(props) {
|
|
|
13862
13871
|
style: {
|
|
13863
13872
|
animationDuration: '.7s'
|
|
13864
13873
|
}
|
|
13865
|
-
}, fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
13866
|
-
var _item$productinfo, _item$variantoptions,
|
|
13874
|
+
}, fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue8 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue8 === void 0 || (_fetchcustomercartQue8 = _fetchcustomercartQue8.data) === null || _fetchcustomercartQue8 === void 0 || (_fetchcustomercartQue8 = _fetchcustomercartQue8.customercart) === null || _fetchcustomercartQue8 === void 0 || (_fetchcustomercartQue8 = _fetchcustomercartQue8.cartitems) === null || _fetchcustomercartQue8 === void 0 ? void 0 : _fetchcustomercartQue8.map(function (item, index) {
|
|
13875
|
+
var _item$productinfo, _item$variantoptions, _fetchcustomercartQue9;
|
|
13867
13876
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
13868
13877
|
className: "col-lg-12 mb-3 p-0"
|
|
13869
13878
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -14032,12 +14041,12 @@ var CartSlider = function CartSlider(props) {
|
|
|
14032
14041
|
onClick: function onClick() {
|
|
14033
14042
|
deletecartitemContext(item);
|
|
14034
14043
|
}
|
|
14035
|
-
}, lang.remove))))))), index != (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
14044
|
+
}, lang.remove))))))), index != (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue9 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue9 === void 0 || (_fetchcustomercartQue9 = _fetchcustomercartQue9.data) === null || _fetchcustomercartQue9 === void 0 || (_fetchcustomercartQue9 = _fetchcustomercartQue9.customercart) === null || _fetchcustomercartQue9 === void 0 || (_fetchcustomercartQue9 = _fetchcustomercartQue9.cartitems) === null || _fetchcustomercartQue9 === void 0 ? void 0 : _fetchcustomercartQue9.length) - 1 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
14036
14045
|
className: "col-lg-12 mt-3 p-0"
|
|
14037
14046
|
}, /*#__PURE__*/React__default["default"].createElement("hr", {
|
|
14038
14047
|
className: "m-0"
|
|
14039
14048
|
})));
|
|
14040
|
-
}))))), !AddtoCartMutationContext.isLoading && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
14049
|
+
}))))), !AddtoCartMutationContext.isLoading && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue10 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue10 === void 0 || (_fetchcustomercartQue10 = _fetchcustomercartQue10.data) === null || _fetchcustomercartQue10 === void 0 ? void 0 : _fetchcustomercartQue10.customercart) != null && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue11 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue11 === void 0 || (_fetchcustomercartQue11 = _fetchcustomercartQue11.data) === null || _fetchcustomercartQue11 === void 0 || (_fetchcustomercartQue11 = _fetchcustomercartQue11.customercart) === null || _fetchcustomercartQue11 === void 0 || (_fetchcustomercartQue11 = _fetchcustomercartQue11.cartitems) === null || _fetchcustomercartQue11 === void 0 ? void 0 : _fetchcustomercartQue11.length) != 0 && sectionproperties.showtotalsection == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
14041
14050
|
className: "col-lg-12 mb-1 p-0 mt-auto anim mb-md-4",
|
|
14042
14051
|
style: {
|
|
14043
14052
|
animationDuration: '.8s'
|
|
@@ -14072,7 +14081,7 @@ var CartSlider = function CartSlider(props) {
|
|
|
14072
14081
|
textTransform: sectionproperties.total_texttransform,
|
|
14073
14082
|
color: sectionproperties.total_color
|
|
14074
14083
|
}
|
|
14075
|
-
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', parseFloat(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
14084
|
+
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', parseFloat(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue12 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue12 === void 0 || (_fetchcustomercartQue12 = _fetchcustomercartQue12.data) === null || _fetchcustomercartQue12 === void 0 || (_fetchcustomercartQue12 = _fetchcustomercartQue12.customercart) === null || _fetchcustomercartQue12 === void 0 ? void 0 : _fetchcustomercartQue12.totalprice).toFixed(2), ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar)), sectionproperties.hideshipping == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
14076
14085
|
"class": "col-lg-12 mt-1 d-flex align-items-center justify-content-start p-0"
|
|
14077
14086
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
14078
14087
|
"class": "m-0 p-0",
|
|
@@ -14081,7 +14090,7 @@ var CartSlider = function CartSlider(props) {
|
|
|
14081
14090
|
fontSize: '13px',
|
|
14082
14091
|
fontWeight: 500
|
|
14083
14092
|
}
|
|
14084
|
-
}, langdetect == 'en' ? sectionproperties.general_text_content : sectionproperties.general_text_content_ar)), !AddtoCartMutationContext.isLoading && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
14093
|
+
}, langdetect == 'en' ? sectionproperties.general_text_content : sectionproperties.general_text_content_ar)), !AddtoCartMutationContext.isLoading && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue13 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue13 === void 0 || (_fetchcustomercartQue13 = _fetchcustomercartQue13.data) === null || _fetchcustomercartQue13 === void 0 || (_fetchcustomercartQue13 = _fetchcustomercartQue13.customercart) === null || _fetchcustomercartQue13 === void 0 || (_fetchcustomercartQue13 = _fetchcustomercartQue13.cartitems) === null || _fetchcustomercartQue13 === void 0 ? void 0 : _fetchcustomercartQue13.length) != 0 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
14085
14094
|
className: "col-lg-12 p-0 mt-4 d-flex flex-column align-items-center justify-content-center"
|
|
14086
14095
|
}, sectionproperties.cartBtnShow == 'Show' && /*#__PURE__*/React__default["default"].createElement("button", {
|
|
14087
14096
|
className: " ".concat(cart_cssstyles.cart_btn) + ' mb-2 d-flex align-items-center justify-content-center ',
|
|
@@ -17262,36 +17271,40 @@ var CardsSection = function CardsSection(props) {
|
|
|
17262
17271
|
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, pasturl + encodeURIComponent(JSON.stringify(tempProductFilterObjContext)));
|
|
17263
17272
|
};
|
|
17264
17273
|
function PaginatedItems(_ref) {
|
|
17265
|
-
var _fetchProductsQuery$d7, _fetchProductsQuery$d8;
|
|
17274
|
+
var _fetchProductsQuery$d7, _fetchProductsQuery$d8, _fetchProductsQuery$d9;
|
|
17266
17275
|
_ref.itemsPerPage;
|
|
17267
17276
|
// const pageCount = Math.ceil(fetchProductsQuery?.data?.data?.productscou / 12);
|
|
17268
17277
|
var pageCount = Math.ceil((fetchProductsQuery === null || fetchProductsQuery === void 0 || (_fetchProductsQuery$d7 = fetchProductsQuery.data) === null || _fetchProductsQuery$d7 === void 0 || (_fetchProductsQuery$d7 = _fetchProductsQuery$d7.data) === null || _fetchProductsQuery$d7 === void 0 ? void 0 : _fetchProductsQuery$d7.productscou) / perpageItems);
|
|
17269
|
-
|
|
17270
|
-
|
|
17271
|
-
|
|
17272
|
-
|
|
17273
|
-
|
|
17274
|
-
|
|
17275
|
-
|
|
17276
|
-
|
|
17277
|
-
|
|
17278
|
-
|
|
17279
|
-
|
|
17280
|
-
|
|
17281
|
-
|
|
17282
|
-
|
|
17283
|
-
|
|
17284
|
-
|
|
17285
|
-
|
|
17286
|
-
|
|
17287
|
-
|
|
17288
|
-
|
|
17289
|
-
|
|
17290
|
-
|
|
17291
|
-
|
|
17292
|
-
|
|
17293
|
-
|
|
17294
|
-
|
|
17278
|
+
if ((fetchProductsQuery === null || fetchProductsQuery === void 0 || (_fetchProductsQuery$d8 = fetchProductsQuery.data) === null || _fetchProductsQuery$d8 === void 0 || (_fetchProductsQuery$d8 = _fetchProductsQuery$d8.data) === null || _fetchProductsQuery$d8 === void 0 ? void 0 : _fetchProductsQuery$d8.page) != undefined && (fetchProductsQuery === null || fetchProductsQuery === void 0 || (_fetchProductsQuery$d9 = fetchProductsQuery.data) === null || _fetchProductsQuery$d9 === void 0 || (_fetchProductsQuery$d9 = _fetchProductsQuery$d9.data) === null || _fetchProductsQuery$d9 === void 0 ? void 0 : _fetchProductsQuery$d9.page) != null) {
|
|
17279
|
+
var _fetchProductsQuery$d10;
|
|
17280
|
+
var currentpage = parseInt(fetchProductsQuery === null || fetchProductsQuery === void 0 || (_fetchProductsQuery$d10 = fetchProductsQuery.data) === null || _fetchProductsQuery$d10 === void 0 || (_fetchProductsQuery$d10 = _fetchProductsQuery$d10.data) === null || _fetchProductsQuery$d10 === void 0 ? void 0 : _fetchProductsQuery$d10.page);
|
|
17281
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
17282
|
+
"class": "d-flex containerClassName"
|
|
17283
|
+
}, /*#__PURE__*/React__default["default"].createElement(ReactPaginate__default["default"], {
|
|
17284
|
+
breakLabel: "...",
|
|
17285
|
+
forcePage: currentpage,
|
|
17286
|
+
nextLabel: /*#__PURE__*/React__default["default"].createElement(FiChevronRight.FiChevronRight, {
|
|
17287
|
+
size: parseInt(sectionproperties.paginationFontSize) + 3
|
|
17288
|
+
}),
|
|
17289
|
+
onPageChange: handlePageClick,
|
|
17290
|
+
active: true,
|
|
17291
|
+
pageRangeDisplayed: 5,
|
|
17292
|
+
pageCount: pageCount,
|
|
17293
|
+
previousLabel: /*#__PURE__*/React__default["default"].createElement(FiChevronLeft.FiChevronLeft, {
|
|
17294
|
+
size: parseInt(sectionproperties.paginationFontSize) + 3
|
|
17295
|
+
}),
|
|
17296
|
+
renderOnZeroPageCount: null,
|
|
17297
|
+
pageLinkClassName: section_cssstyles.pageLinkClassName,
|
|
17298
|
+
nextLinkClassName: section_cssstyles.nextLinkClassName,
|
|
17299
|
+
previousLinkClassName: section_cssstyles.previousLinkClassName,
|
|
17300
|
+
activeClassName: section_cssstyles.activeClassName,
|
|
17301
|
+
activeLinkClassName: section_cssstyles.activeLinkClassName,
|
|
17302
|
+
previousClassName: section_cssstyles.previousClassName,
|
|
17303
|
+
nextClassName: section_cssstyles.nextClassName,
|
|
17304
|
+
disabledClassName: section_cssstyles.disabledClassName,
|
|
17305
|
+
disabledLinkClassName: section_cssstyles.disabledLinkClassName
|
|
17306
|
+
}));
|
|
17307
|
+
}
|
|
17295
17308
|
}
|
|
17296
17309
|
var section_cssstyles = {
|
|
17297
17310
|
sectioncontainerr: glamor.css({
|
package/dist/index.esm.js
CHANGED
|
@@ -13407,7 +13407,7 @@ styleInject(css_248z$E);
|
|
|
13407
13407
|
function ownKeys$2d(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
13408
13408
|
function _objectSpread$2d(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2d(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2d(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
13409
13409
|
var CartSlider = function CartSlider(props) {
|
|
13410
|
-
var _fetchcustomercartQue, _fetchcustomercartQue2, _fetchcustomercartQue3, _fetchcustomercartQue4, _fetchcustomercartQue5, _fetchcustomercartQue6, _fetchcustomercartQue7,
|
|
13410
|
+
var _fetchcustomercartQue, _fetchcustomercartQue2, _fetchcustomercartQue3, _fetchcustomercartQue4, _fetchcustomercartQue5, _fetchcustomercartQue6, _fetchcustomercartQue7, _fetchcustomercartQue8, _fetchcustomercartQue10, _fetchcustomercartQue11, _fetchcustomercartQue12, _fetchcustomercartQue13;
|
|
13411
13411
|
var lang = props.actions.lang;
|
|
13412
13412
|
var langdetect = props.actions.langdetect;
|
|
13413
13413
|
var authdetailsContext = props.actions.authdetailsContext;
|
|
@@ -13425,6 +13425,7 @@ var CartSlider = function CartSlider(props) {
|
|
|
13425
13425
|
var sidecartnavshowWorkplaceDesigncontext = props.actions.sidecartnavshowWorkplaceDesigncontext;
|
|
13426
13426
|
var ikimagecredcontext = props.actions.ikimagecredcontext;
|
|
13427
13427
|
var ChangeCartItemQuantityContext = props.actions.ChangeCartItemQuantityContext;
|
|
13428
|
+
var clearcartfuncContext = props.actions.clearcartfuncContext;
|
|
13428
13429
|
var _useState = useState(false),
|
|
13429
13430
|
_useState2 = _slicedToArray(_useState, 2),
|
|
13430
13431
|
OpenCloseCartSlider = _useState2[0],
|
|
@@ -13697,7 +13698,15 @@ var CartSlider = function CartSlider(props) {
|
|
|
13697
13698
|
style: {}
|
|
13698
13699
|
}, langdetect == 'en' ? sectionproperties.sectionTitleContent : sectionproperties.sectionTitleContent_ar, /*#__PURE__*/React.createElement("span", {
|
|
13699
13700
|
"class": cart_cssstyles.badge + ' mx-2 allcentered mt-sm-1 '
|
|
13700
|
-
}, fetchcustomercartQueryContext !== null && fetchcustomercartQueryContext !== void 0 && (_fetchcustomercartQue = fetchcustomercartQueryContext.data) !== null && _fetchcustomercartQue !== void 0 && (_fetchcustomercartQue = _fetchcustomercartQue.data) !== null && _fetchcustomercartQue !== void 0 && _fetchcustomercartQue.status && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue2 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue2 === void 0 || (_fetchcustomercartQue2 = _fetchcustomercartQue2.data) === null || _fetchcustomercartQue2 === void 0 || (_fetchcustomercartQue2 = _fetchcustomercartQue2.customercart) === null || _fetchcustomercartQue2 === void 0 || (_fetchcustomercartQue2 = _fetchcustomercartQue2.cartitems) === null || _fetchcustomercartQue2 === void 0 ? void 0 : _fetchcustomercartQue2.length) != 0 ? fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue3 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue3 === void 0 || (_fetchcustomercartQue3 = _fetchcustomercartQue3.data) === null || _fetchcustomercartQue3 === void 0 || (_fetchcustomercartQue3 = _fetchcustomercartQue3.customercart) === null || _fetchcustomercartQue3 === void 0 || (_fetchcustomercartQue3 = _fetchcustomercartQue3.cartitems) === null || _fetchcustomercartQue3 === void 0 ? void 0 : _fetchcustomercartQue3.length : 0)))
|
|
13701
|
+
}, fetchcustomercartQueryContext !== null && fetchcustomercartQueryContext !== void 0 && (_fetchcustomercartQue = fetchcustomercartQueryContext.data) !== null && _fetchcustomercartQue !== void 0 && (_fetchcustomercartQue = _fetchcustomercartQue.data) !== null && _fetchcustomercartQue !== void 0 && _fetchcustomercartQue.status && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue2 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue2 === void 0 || (_fetchcustomercartQue2 = _fetchcustomercartQue2.data) === null || _fetchcustomercartQue2 === void 0 || (_fetchcustomercartQue2 = _fetchcustomercartQue2.customercart) === null || _fetchcustomercartQue2 === void 0 || (_fetchcustomercartQue2 = _fetchcustomercartQue2.cartitems) === null || _fetchcustomercartQue2 === void 0 ? void 0 : _fetchcustomercartQue2.length) != 0 ? fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue3 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue3 === void 0 || (_fetchcustomercartQue3 = _fetchcustomercartQue3.data) === null || _fetchcustomercartQue3 === void 0 || (_fetchcustomercartQue3 = _fetchcustomercartQue3.customercart) === null || _fetchcustomercartQue3 === void 0 || (_fetchcustomercartQue3 = _fetchcustomercartQue3.cartitems) === null || _fetchcustomercartQue3 === void 0 ? void 0 : _fetchcustomercartQue3.length : 0), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue4 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue4 === void 0 || (_fetchcustomercartQue4 = _fetchcustomercartQue4.data) === null || _fetchcustomercartQue4 === void 0 || (_fetchcustomercartQue4 = _fetchcustomercartQue4.customercart) === null || _fetchcustomercartQue4 === void 0 || (_fetchcustomercartQue4 = _fetchcustomercartQue4.cartitems) === null || _fetchcustomercartQue4 === void 0 ? void 0 : _fetchcustomercartQue4.length) != 0 && /*#__PURE__*/React.createElement("sup", {
|
|
13702
|
+
onClick: function onClick() {
|
|
13703
|
+
clearcartfuncContext();
|
|
13704
|
+
},
|
|
13705
|
+
"class": "text-danger text-dangerhover cursor-pointer",
|
|
13706
|
+
style: {
|
|
13707
|
+
fontSize: 13
|
|
13708
|
+
}
|
|
13709
|
+
}, langdetect == 'en' ? 'Clear Cart' : 'حذف الكل'))), /*#__PURE__*/React.createElement("div", {
|
|
13701
13710
|
className: ' col-3 d-flex align-items-center justify-content-end '
|
|
13702
13711
|
}, /*#__PURE__*/React.createElement("div", {
|
|
13703
13712
|
className: "".concat(cart_cssstyles.close_menu_icon_cont) + ' allcentered ',
|
|
@@ -13726,7 +13735,7 @@ var CartSlider = function CartSlider(props) {
|
|
|
13726
13735
|
height: 2,
|
|
13727
13736
|
background: sectionproperties.vl_bg
|
|
13728
13737
|
}
|
|
13729
|
-
}))))), /*#__PURE__*/React.createElement(Offcanvas.Body, null, (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
13738
|
+
}))))), /*#__PURE__*/React.createElement(Offcanvas.Body, null, (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue5 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue5 === void 0 || (_fetchcustomercartQue5 = _fetchcustomercartQue5.data) === null || _fetchcustomercartQue5 === void 0 ? void 0 : _fetchcustomercartQue5.status) && /*#__PURE__*/React.createElement("div", {
|
|
13730
13739
|
"class": "row m-0 w-100 h-100 px-2"
|
|
13731
13740
|
}, /*#__PURE__*/React.createElement("div", {
|
|
13732
13741
|
className: "".concat(cartstyles.cartslider_container, " ").concat(cart_cssstyles.cartslider_container) + ' h-100 w-100 ',
|
|
@@ -13738,7 +13747,7 @@ var CartSlider = function CartSlider(props) {
|
|
|
13738
13747
|
}, /*#__PURE__*/React.createElement("div", {
|
|
13739
13748
|
className: "row m-0 w-100 ",
|
|
13740
13749
|
style: {
|
|
13741
|
-
height: '
|
|
13750
|
+
height: '90vh'
|
|
13742
13751
|
}
|
|
13743
13752
|
}, AddtoCartMutationContext.isLoading && /*#__PURE__*/React.createElement("div", {
|
|
13744
13753
|
className: "col-lg-12 allcentered",
|
|
@@ -13768,9 +13777,9 @@ var CartSlider = function CartSlider(props) {
|
|
|
13768
13777
|
maxHeight: '67%',
|
|
13769
13778
|
overflowY: 'scroll'
|
|
13770
13779
|
}
|
|
13771
|
-
}, (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
13780
|
+
}, (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue6 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue6 === void 0 || (_fetchcustomercartQue6 = _fetchcustomercartQue6.data) === null || _fetchcustomercartQue6 === void 0 ? void 0 : _fetchcustomercartQue6.customercart) != null && /*#__PURE__*/React.createElement("div", {
|
|
13772
13781
|
className: "row m-0 w-100 h-100"
|
|
13773
|
-
}, (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
13782
|
+
}, (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue7 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue7 === void 0 || (_fetchcustomercartQue7 = _fetchcustomercartQue7.data) === null || _fetchcustomercartQue7 === void 0 || (_fetchcustomercartQue7 = _fetchcustomercartQue7.customercart) === null || _fetchcustomercartQue7 === void 0 ? void 0 : _fetchcustomercartQue7.cartitems) == 0 && /*#__PURE__*/React.createElement("div", {
|
|
13774
13783
|
className: "col-lg-12 p-0 mt-5 anim pt-3"
|
|
13775
13784
|
}, /*#__PURE__*/React.createElement("div", {
|
|
13776
13785
|
className: "row m-0 w-100 d-flex align-items-center justify-content-center",
|
|
@@ -13813,8 +13822,8 @@ var CartSlider = function CartSlider(props) {
|
|
|
13813
13822
|
style: {
|
|
13814
13823
|
animationDuration: '.7s'
|
|
13815
13824
|
}
|
|
13816
|
-
}, fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
13817
|
-
var _item$productinfo, _item$variantoptions,
|
|
13825
|
+
}, fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue8 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue8 === void 0 || (_fetchcustomercartQue8 = _fetchcustomercartQue8.data) === null || _fetchcustomercartQue8 === void 0 || (_fetchcustomercartQue8 = _fetchcustomercartQue8.customercart) === null || _fetchcustomercartQue8 === void 0 || (_fetchcustomercartQue8 = _fetchcustomercartQue8.cartitems) === null || _fetchcustomercartQue8 === void 0 ? void 0 : _fetchcustomercartQue8.map(function (item, index) {
|
|
13826
|
+
var _item$productinfo, _item$variantoptions, _fetchcustomercartQue9;
|
|
13818
13827
|
return /*#__PURE__*/React.createElement("div", {
|
|
13819
13828
|
className: "col-lg-12 mb-3 p-0"
|
|
13820
13829
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -13983,12 +13992,12 @@ var CartSlider = function CartSlider(props) {
|
|
|
13983
13992
|
onClick: function onClick() {
|
|
13984
13993
|
deletecartitemContext(item);
|
|
13985
13994
|
}
|
|
13986
|
-
}, lang.remove))))))), index != (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
13995
|
+
}, lang.remove))))))), index != (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue9 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue9 === void 0 || (_fetchcustomercartQue9 = _fetchcustomercartQue9.data) === null || _fetchcustomercartQue9 === void 0 || (_fetchcustomercartQue9 = _fetchcustomercartQue9.customercart) === null || _fetchcustomercartQue9 === void 0 || (_fetchcustomercartQue9 = _fetchcustomercartQue9.cartitems) === null || _fetchcustomercartQue9 === void 0 ? void 0 : _fetchcustomercartQue9.length) - 1 && /*#__PURE__*/React.createElement("div", {
|
|
13987
13996
|
className: "col-lg-12 mt-3 p-0"
|
|
13988
13997
|
}, /*#__PURE__*/React.createElement("hr", {
|
|
13989
13998
|
className: "m-0"
|
|
13990
13999
|
})));
|
|
13991
|
-
}))))), !AddtoCartMutationContext.isLoading && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
14000
|
+
}))))), !AddtoCartMutationContext.isLoading && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue10 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue10 === void 0 || (_fetchcustomercartQue10 = _fetchcustomercartQue10.data) === null || _fetchcustomercartQue10 === void 0 ? void 0 : _fetchcustomercartQue10.customercart) != null && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue11 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue11 === void 0 || (_fetchcustomercartQue11 = _fetchcustomercartQue11.data) === null || _fetchcustomercartQue11 === void 0 || (_fetchcustomercartQue11 = _fetchcustomercartQue11.customercart) === null || _fetchcustomercartQue11 === void 0 || (_fetchcustomercartQue11 = _fetchcustomercartQue11.cartitems) === null || _fetchcustomercartQue11 === void 0 ? void 0 : _fetchcustomercartQue11.length) != 0 && sectionproperties.showtotalsection == 'Show' && /*#__PURE__*/React.createElement("div", {
|
|
13992
14001
|
className: "col-lg-12 mb-1 p-0 mt-auto anim mb-md-4",
|
|
13993
14002
|
style: {
|
|
13994
14003
|
animationDuration: '.8s'
|
|
@@ -14023,7 +14032,7 @@ var CartSlider = function CartSlider(props) {
|
|
|
14023
14032
|
textTransform: sectionproperties.total_texttransform,
|
|
14024
14033
|
color: sectionproperties.total_color
|
|
14025
14034
|
}
|
|
14026
|
-
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', parseFloat(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
14035
|
+
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', parseFloat(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue12 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue12 === void 0 || (_fetchcustomercartQue12 = _fetchcustomercartQue12.data) === null || _fetchcustomercartQue12 === void 0 || (_fetchcustomercartQue12 = _fetchcustomercartQue12.customercart) === null || _fetchcustomercartQue12 === void 0 ? void 0 : _fetchcustomercartQue12.totalprice).toFixed(2), ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar)), sectionproperties.hideshipping == 'Show' && /*#__PURE__*/React.createElement("div", {
|
|
14027
14036
|
"class": "col-lg-12 mt-1 d-flex align-items-center justify-content-start p-0"
|
|
14028
14037
|
}, /*#__PURE__*/React.createElement("p", {
|
|
14029
14038
|
"class": "m-0 p-0",
|
|
@@ -14032,7 +14041,7 @@ var CartSlider = function CartSlider(props) {
|
|
|
14032
14041
|
fontSize: '13px',
|
|
14033
14042
|
fontWeight: 500
|
|
14034
14043
|
}
|
|
14035
|
-
}, langdetect == 'en' ? sectionproperties.general_text_content : sectionproperties.general_text_content_ar)), !AddtoCartMutationContext.isLoading && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
14044
|
+
}, langdetect == 'en' ? sectionproperties.general_text_content : sectionproperties.general_text_content_ar)), !AddtoCartMutationContext.isLoading && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue13 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue13 === void 0 || (_fetchcustomercartQue13 = _fetchcustomercartQue13.data) === null || _fetchcustomercartQue13 === void 0 || (_fetchcustomercartQue13 = _fetchcustomercartQue13.customercart) === null || _fetchcustomercartQue13 === void 0 || (_fetchcustomercartQue13 = _fetchcustomercartQue13.cartitems) === null || _fetchcustomercartQue13 === void 0 ? void 0 : _fetchcustomercartQue13.length) != 0 && /*#__PURE__*/React.createElement("div", {
|
|
14036
14045
|
className: "col-lg-12 p-0 mt-4 d-flex flex-column align-items-center justify-content-center"
|
|
14037
14046
|
}, sectionproperties.cartBtnShow == 'Show' && /*#__PURE__*/React.createElement("button", {
|
|
14038
14047
|
className: " ".concat(cart_cssstyles.cart_btn) + ' mb-2 d-flex align-items-center justify-content-center ',
|
|
@@ -17213,36 +17222,40 @@ var CardsSection = function CardsSection(props) {
|
|
|
17213
17222
|
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, pasturl + encodeURIComponent(JSON.stringify(tempProductFilterObjContext)));
|
|
17214
17223
|
};
|
|
17215
17224
|
function PaginatedItems(_ref) {
|
|
17216
|
-
var _fetchProductsQuery$d7, _fetchProductsQuery$d8;
|
|
17225
|
+
var _fetchProductsQuery$d7, _fetchProductsQuery$d8, _fetchProductsQuery$d9;
|
|
17217
17226
|
_ref.itemsPerPage;
|
|
17218
17227
|
// const pageCount = Math.ceil(fetchProductsQuery?.data?.data?.productscou / 12);
|
|
17219
17228
|
var pageCount = Math.ceil((fetchProductsQuery === null || fetchProductsQuery === void 0 || (_fetchProductsQuery$d7 = fetchProductsQuery.data) === null || _fetchProductsQuery$d7 === void 0 || (_fetchProductsQuery$d7 = _fetchProductsQuery$d7.data) === null || _fetchProductsQuery$d7 === void 0 ? void 0 : _fetchProductsQuery$d7.productscou) / perpageItems);
|
|
17220
|
-
|
|
17221
|
-
|
|
17222
|
-
|
|
17223
|
-
|
|
17224
|
-
|
|
17225
|
-
|
|
17226
|
-
|
|
17227
|
-
|
|
17228
|
-
|
|
17229
|
-
|
|
17230
|
-
|
|
17231
|
-
|
|
17232
|
-
|
|
17233
|
-
|
|
17234
|
-
|
|
17235
|
-
|
|
17236
|
-
|
|
17237
|
-
|
|
17238
|
-
|
|
17239
|
-
|
|
17240
|
-
|
|
17241
|
-
|
|
17242
|
-
|
|
17243
|
-
|
|
17244
|
-
|
|
17245
|
-
|
|
17229
|
+
if ((fetchProductsQuery === null || fetchProductsQuery === void 0 || (_fetchProductsQuery$d8 = fetchProductsQuery.data) === null || _fetchProductsQuery$d8 === void 0 || (_fetchProductsQuery$d8 = _fetchProductsQuery$d8.data) === null || _fetchProductsQuery$d8 === void 0 ? void 0 : _fetchProductsQuery$d8.page) != undefined && (fetchProductsQuery === null || fetchProductsQuery === void 0 || (_fetchProductsQuery$d9 = fetchProductsQuery.data) === null || _fetchProductsQuery$d9 === void 0 || (_fetchProductsQuery$d9 = _fetchProductsQuery$d9.data) === null || _fetchProductsQuery$d9 === void 0 ? void 0 : _fetchProductsQuery$d9.page) != null) {
|
|
17230
|
+
var _fetchProductsQuery$d10;
|
|
17231
|
+
var currentpage = parseInt(fetchProductsQuery === null || fetchProductsQuery === void 0 || (_fetchProductsQuery$d10 = fetchProductsQuery.data) === null || _fetchProductsQuery$d10 === void 0 || (_fetchProductsQuery$d10 = _fetchProductsQuery$d10.data) === null || _fetchProductsQuery$d10 === void 0 ? void 0 : _fetchProductsQuery$d10.page);
|
|
17232
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
17233
|
+
"class": "d-flex containerClassName"
|
|
17234
|
+
}, /*#__PURE__*/React.createElement(ReactPaginate, {
|
|
17235
|
+
breakLabel: "...",
|
|
17236
|
+
forcePage: currentpage,
|
|
17237
|
+
nextLabel: /*#__PURE__*/React.createElement(FiChevronRight, {
|
|
17238
|
+
size: parseInt(sectionproperties.paginationFontSize) + 3
|
|
17239
|
+
}),
|
|
17240
|
+
onPageChange: handlePageClick,
|
|
17241
|
+
active: true,
|
|
17242
|
+
pageRangeDisplayed: 5,
|
|
17243
|
+
pageCount: pageCount,
|
|
17244
|
+
previousLabel: /*#__PURE__*/React.createElement(FiChevronLeft, {
|
|
17245
|
+
size: parseInt(sectionproperties.paginationFontSize) + 3
|
|
17246
|
+
}),
|
|
17247
|
+
renderOnZeroPageCount: null,
|
|
17248
|
+
pageLinkClassName: section_cssstyles.pageLinkClassName,
|
|
17249
|
+
nextLinkClassName: section_cssstyles.nextLinkClassName,
|
|
17250
|
+
previousLinkClassName: section_cssstyles.previousLinkClassName,
|
|
17251
|
+
activeClassName: section_cssstyles.activeClassName,
|
|
17252
|
+
activeLinkClassName: section_cssstyles.activeLinkClassName,
|
|
17253
|
+
previousClassName: section_cssstyles.previousClassName,
|
|
17254
|
+
nextClassName: section_cssstyles.nextClassName,
|
|
17255
|
+
disabledClassName: section_cssstyles.disabledClassName,
|
|
17256
|
+
disabledLinkClassName: section_cssstyles.disabledLinkClassName
|
|
17257
|
+
}));
|
|
17258
|
+
}
|
|
17246
17259
|
}
|
|
17247
17260
|
var section_cssstyles = {
|
|
17248
17261
|
sectioncontainerr: css({
|
package/dist/index.umd.js
CHANGED
|
@@ -13282,7 +13282,7 @@
|
|
|
13282
13282
|
function ownKeys$2d(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
13283
13283
|
function _objectSpread$2d(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2d(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2d(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
13284
13284
|
var CartSlider = function CartSlider(props) {
|
|
13285
|
-
var _fetchcustomercartQue, _fetchcustomercartQue2, _fetchcustomercartQue3, _fetchcustomercartQue4, _fetchcustomercartQue5, _fetchcustomercartQue6, _fetchcustomercartQue7,
|
|
13285
|
+
var _fetchcustomercartQue, _fetchcustomercartQue2, _fetchcustomercartQue3, _fetchcustomercartQue4, _fetchcustomercartQue5, _fetchcustomercartQue6, _fetchcustomercartQue7, _fetchcustomercartQue8, _fetchcustomercartQue10, _fetchcustomercartQue11, _fetchcustomercartQue12, _fetchcustomercartQue13;
|
|
13286
13286
|
var lang = props.actions.lang;
|
|
13287
13287
|
var langdetect = props.actions.langdetect;
|
|
13288
13288
|
var authdetailsContext = props.actions.authdetailsContext;
|
|
@@ -13300,6 +13300,7 @@
|
|
|
13300
13300
|
var sidecartnavshowWorkplaceDesigncontext = props.actions.sidecartnavshowWorkplaceDesigncontext;
|
|
13301
13301
|
var ikimagecredcontext = props.actions.ikimagecredcontext;
|
|
13302
13302
|
var ChangeCartItemQuantityContext = props.actions.ChangeCartItemQuantityContext;
|
|
13303
|
+
var clearcartfuncContext = props.actions.clearcartfuncContext;
|
|
13303
13304
|
var _useState = React.useState(false),
|
|
13304
13305
|
_useState2 = _slicedToArray__default["default"](_useState, 2),
|
|
13305
13306
|
OpenCloseCartSlider = _useState2[0],
|
|
@@ -13572,7 +13573,15 @@
|
|
|
13572
13573
|
style: {}
|
|
13573
13574
|
}, langdetect == 'en' ? sectionproperties.sectionTitleContent : sectionproperties.sectionTitleContent_ar, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
13574
13575
|
"class": cart_cssstyles.badge + ' mx-2 allcentered mt-sm-1 '
|
|
13575
|
-
}, fetchcustomercartQueryContext !== null && fetchcustomercartQueryContext !== void 0 && (_fetchcustomercartQue = fetchcustomercartQueryContext.data) !== null && _fetchcustomercartQue !== void 0 && (_fetchcustomercartQue = _fetchcustomercartQue.data) !== null && _fetchcustomercartQue !== void 0 && _fetchcustomercartQue.status && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue2 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue2 === void 0 || (_fetchcustomercartQue2 = _fetchcustomercartQue2.data) === null || _fetchcustomercartQue2 === void 0 || (_fetchcustomercartQue2 = _fetchcustomercartQue2.customercart) === null || _fetchcustomercartQue2 === void 0 || (_fetchcustomercartQue2 = _fetchcustomercartQue2.cartitems) === null || _fetchcustomercartQue2 === void 0 ? void 0 : _fetchcustomercartQue2.length) != 0 ? fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue3 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue3 === void 0 || (_fetchcustomercartQue3 = _fetchcustomercartQue3.data) === null || _fetchcustomercartQue3 === void 0 || (_fetchcustomercartQue3 = _fetchcustomercartQue3.customercart) === null || _fetchcustomercartQue3 === void 0 || (_fetchcustomercartQue3 = _fetchcustomercartQue3.cartitems) === null || _fetchcustomercartQue3 === void 0 ? void 0 : _fetchcustomercartQue3.length : 0)))
|
|
13576
|
+
}, fetchcustomercartQueryContext !== null && fetchcustomercartQueryContext !== void 0 && (_fetchcustomercartQue = fetchcustomercartQueryContext.data) !== null && _fetchcustomercartQue !== void 0 && (_fetchcustomercartQue = _fetchcustomercartQue.data) !== null && _fetchcustomercartQue !== void 0 && _fetchcustomercartQue.status && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue2 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue2 === void 0 || (_fetchcustomercartQue2 = _fetchcustomercartQue2.data) === null || _fetchcustomercartQue2 === void 0 || (_fetchcustomercartQue2 = _fetchcustomercartQue2.customercart) === null || _fetchcustomercartQue2 === void 0 || (_fetchcustomercartQue2 = _fetchcustomercartQue2.cartitems) === null || _fetchcustomercartQue2 === void 0 ? void 0 : _fetchcustomercartQue2.length) != 0 ? fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue3 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue3 === void 0 || (_fetchcustomercartQue3 = _fetchcustomercartQue3.data) === null || _fetchcustomercartQue3 === void 0 || (_fetchcustomercartQue3 = _fetchcustomercartQue3.customercart) === null || _fetchcustomercartQue3 === void 0 || (_fetchcustomercartQue3 = _fetchcustomercartQue3.cartitems) === null || _fetchcustomercartQue3 === void 0 ? void 0 : _fetchcustomercartQue3.length : 0), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue4 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue4 === void 0 || (_fetchcustomercartQue4 = _fetchcustomercartQue4.data) === null || _fetchcustomercartQue4 === void 0 || (_fetchcustomercartQue4 = _fetchcustomercartQue4.customercart) === null || _fetchcustomercartQue4 === void 0 || (_fetchcustomercartQue4 = _fetchcustomercartQue4.cartitems) === null || _fetchcustomercartQue4 === void 0 ? void 0 : _fetchcustomercartQue4.length) != 0 && /*#__PURE__*/React__default["default"].createElement("sup", {
|
|
13577
|
+
onClick: function onClick() {
|
|
13578
|
+
clearcartfuncContext();
|
|
13579
|
+
},
|
|
13580
|
+
"class": "text-danger text-dangerhover cursor-pointer",
|
|
13581
|
+
style: {
|
|
13582
|
+
fontSize: 13
|
|
13583
|
+
}
|
|
13584
|
+
}, langdetect == 'en' ? 'Clear Cart' : 'حذف الكل'))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
13576
13585
|
className: ' col-3 d-flex align-items-center justify-content-end '
|
|
13577
13586
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
13578
13587
|
className: "".concat(cart_cssstyles.close_menu_icon_cont) + ' allcentered ',
|
|
@@ -13601,7 +13610,7 @@
|
|
|
13601
13610
|
height: 2,
|
|
13602
13611
|
background: sectionproperties.vl_bg
|
|
13603
13612
|
}
|
|
13604
|
-
}))))), /*#__PURE__*/React__default["default"].createElement(reactBootstrap.Offcanvas.Body, null, (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
13613
|
+
}))))), /*#__PURE__*/React__default["default"].createElement(reactBootstrap.Offcanvas.Body, null, (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue5 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue5 === void 0 || (_fetchcustomercartQue5 = _fetchcustomercartQue5.data) === null || _fetchcustomercartQue5 === void 0 ? void 0 : _fetchcustomercartQue5.status) && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
13605
13614
|
"class": "row m-0 w-100 h-100 px-2"
|
|
13606
13615
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
13607
13616
|
className: "".concat(cartstyles.cartslider_container, " ").concat(cart_cssstyles.cartslider_container) + ' h-100 w-100 ',
|
|
@@ -13613,7 +13622,7 @@
|
|
|
13613
13622
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
13614
13623
|
className: "row m-0 w-100 ",
|
|
13615
13624
|
style: {
|
|
13616
|
-
height: '
|
|
13625
|
+
height: '90vh'
|
|
13617
13626
|
}
|
|
13618
13627
|
}, AddtoCartMutationContext.isLoading && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
13619
13628
|
className: "col-lg-12 allcentered",
|
|
@@ -13643,9 +13652,9 @@
|
|
|
13643
13652
|
maxHeight: '67%',
|
|
13644
13653
|
overflowY: 'scroll'
|
|
13645
13654
|
}
|
|
13646
|
-
}, (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
13655
|
+
}, (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue6 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue6 === void 0 || (_fetchcustomercartQue6 = _fetchcustomercartQue6.data) === null || _fetchcustomercartQue6 === void 0 ? void 0 : _fetchcustomercartQue6.customercart) != null && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
13647
13656
|
className: "row m-0 w-100 h-100"
|
|
13648
|
-
}, (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
13657
|
+
}, (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue7 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue7 === void 0 || (_fetchcustomercartQue7 = _fetchcustomercartQue7.data) === null || _fetchcustomercartQue7 === void 0 || (_fetchcustomercartQue7 = _fetchcustomercartQue7.customercart) === null || _fetchcustomercartQue7 === void 0 ? void 0 : _fetchcustomercartQue7.cartitems) == 0 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
13649
13658
|
className: "col-lg-12 p-0 mt-5 anim pt-3"
|
|
13650
13659
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
13651
13660
|
className: "row m-0 w-100 d-flex align-items-center justify-content-center",
|
|
@@ -13688,8 +13697,8 @@
|
|
|
13688
13697
|
style: {
|
|
13689
13698
|
animationDuration: '.7s'
|
|
13690
13699
|
}
|
|
13691
|
-
}, fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
13692
|
-
var _item$productinfo, _item$variantoptions,
|
|
13700
|
+
}, fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue8 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue8 === void 0 || (_fetchcustomercartQue8 = _fetchcustomercartQue8.data) === null || _fetchcustomercartQue8 === void 0 || (_fetchcustomercartQue8 = _fetchcustomercartQue8.customercart) === null || _fetchcustomercartQue8 === void 0 || (_fetchcustomercartQue8 = _fetchcustomercartQue8.cartitems) === null || _fetchcustomercartQue8 === void 0 ? void 0 : _fetchcustomercartQue8.map(function (item, index) {
|
|
13701
|
+
var _item$productinfo, _item$variantoptions, _fetchcustomercartQue9;
|
|
13693
13702
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
13694
13703
|
className: "col-lg-12 mb-3 p-0"
|
|
13695
13704
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -13858,12 +13867,12 @@
|
|
|
13858
13867
|
onClick: function onClick() {
|
|
13859
13868
|
deletecartitemContext(item);
|
|
13860
13869
|
}
|
|
13861
|
-
}, lang.remove))))))), index != (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
13870
|
+
}, lang.remove))))))), index != (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue9 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue9 === void 0 || (_fetchcustomercartQue9 = _fetchcustomercartQue9.data) === null || _fetchcustomercartQue9 === void 0 || (_fetchcustomercartQue9 = _fetchcustomercartQue9.customercart) === null || _fetchcustomercartQue9 === void 0 || (_fetchcustomercartQue9 = _fetchcustomercartQue9.cartitems) === null || _fetchcustomercartQue9 === void 0 ? void 0 : _fetchcustomercartQue9.length) - 1 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
13862
13871
|
className: "col-lg-12 mt-3 p-0"
|
|
13863
13872
|
}, /*#__PURE__*/React__default["default"].createElement("hr", {
|
|
13864
13873
|
className: "m-0"
|
|
13865
13874
|
})));
|
|
13866
|
-
}))))), !AddtoCartMutationContext.isLoading && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
13875
|
+
}))))), !AddtoCartMutationContext.isLoading && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue10 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue10 === void 0 || (_fetchcustomercartQue10 = _fetchcustomercartQue10.data) === null || _fetchcustomercartQue10 === void 0 ? void 0 : _fetchcustomercartQue10.customercart) != null && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue11 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue11 === void 0 || (_fetchcustomercartQue11 = _fetchcustomercartQue11.data) === null || _fetchcustomercartQue11 === void 0 || (_fetchcustomercartQue11 = _fetchcustomercartQue11.customercart) === null || _fetchcustomercartQue11 === void 0 || (_fetchcustomercartQue11 = _fetchcustomercartQue11.cartitems) === null || _fetchcustomercartQue11 === void 0 ? void 0 : _fetchcustomercartQue11.length) != 0 && sectionproperties.showtotalsection == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
13867
13876
|
className: "col-lg-12 mb-1 p-0 mt-auto anim mb-md-4",
|
|
13868
13877
|
style: {
|
|
13869
13878
|
animationDuration: '.8s'
|
|
@@ -13898,7 +13907,7 @@
|
|
|
13898
13907
|
textTransform: sectionproperties.total_texttransform,
|
|
13899
13908
|
color: sectionproperties.total_color
|
|
13900
13909
|
}
|
|
13901
|
-
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', parseFloat(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
13910
|
+
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', parseFloat(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue12 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue12 === void 0 || (_fetchcustomercartQue12 = _fetchcustomercartQue12.data) === null || _fetchcustomercartQue12 === void 0 || (_fetchcustomercartQue12 = _fetchcustomercartQue12.customercart) === null || _fetchcustomercartQue12 === void 0 ? void 0 : _fetchcustomercartQue12.totalprice).toFixed(2), ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar)), sectionproperties.hideshipping == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
13902
13911
|
"class": "col-lg-12 mt-1 d-flex align-items-center justify-content-start p-0"
|
|
13903
13912
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
13904
13913
|
"class": "m-0 p-0",
|
|
@@ -13907,7 +13916,7 @@
|
|
|
13907
13916
|
fontSize: '13px',
|
|
13908
13917
|
fontWeight: 500
|
|
13909
13918
|
}
|
|
13910
|
-
}, langdetect == 'en' ? sectionproperties.general_text_content : sectionproperties.general_text_content_ar)), !AddtoCartMutationContext.isLoading && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
13919
|
+
}, langdetect == 'en' ? sectionproperties.general_text_content : sectionproperties.general_text_content_ar)), !AddtoCartMutationContext.isLoading && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue13 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue13 === void 0 || (_fetchcustomercartQue13 = _fetchcustomercartQue13.data) === null || _fetchcustomercartQue13 === void 0 || (_fetchcustomercartQue13 = _fetchcustomercartQue13.customercart) === null || _fetchcustomercartQue13 === void 0 || (_fetchcustomercartQue13 = _fetchcustomercartQue13.cartitems) === null || _fetchcustomercartQue13 === void 0 ? void 0 : _fetchcustomercartQue13.length) != 0 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
13911
13920
|
className: "col-lg-12 p-0 mt-4 d-flex flex-column align-items-center justify-content-center"
|
|
13912
13921
|
}, sectionproperties.cartBtnShow == 'Show' && /*#__PURE__*/React__default["default"].createElement("button", {
|
|
13913
13922
|
className: " ".concat(cart_cssstyles.cart_btn) + ' mb-2 d-flex align-items-center justify-content-center ',
|
|
@@ -17088,36 +17097,40 @@
|
|
|
17088
17097
|
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, pasturl + encodeURIComponent(JSON.stringify(tempProductFilterObjContext)));
|
|
17089
17098
|
};
|
|
17090
17099
|
function PaginatedItems(_ref) {
|
|
17091
|
-
var _fetchProductsQuery$d7, _fetchProductsQuery$d8;
|
|
17100
|
+
var _fetchProductsQuery$d7, _fetchProductsQuery$d8, _fetchProductsQuery$d9;
|
|
17092
17101
|
_ref.itemsPerPage;
|
|
17093
17102
|
// const pageCount = Math.ceil(fetchProductsQuery?.data?.data?.productscou / 12);
|
|
17094
17103
|
var pageCount = Math.ceil((fetchProductsQuery === null || fetchProductsQuery === void 0 || (_fetchProductsQuery$d7 = fetchProductsQuery.data) === null || _fetchProductsQuery$d7 === void 0 || (_fetchProductsQuery$d7 = _fetchProductsQuery$d7.data) === null || _fetchProductsQuery$d7 === void 0 ? void 0 : _fetchProductsQuery$d7.productscou) / perpageItems);
|
|
17095
|
-
|
|
17096
|
-
|
|
17097
|
-
|
|
17098
|
-
|
|
17099
|
-
|
|
17100
|
-
|
|
17101
|
-
|
|
17102
|
-
|
|
17103
|
-
|
|
17104
|
-
|
|
17105
|
-
|
|
17106
|
-
|
|
17107
|
-
|
|
17108
|
-
|
|
17109
|
-
|
|
17110
|
-
|
|
17111
|
-
|
|
17112
|
-
|
|
17113
|
-
|
|
17114
|
-
|
|
17115
|
-
|
|
17116
|
-
|
|
17117
|
-
|
|
17118
|
-
|
|
17119
|
-
|
|
17120
|
-
|
|
17104
|
+
if ((fetchProductsQuery === null || fetchProductsQuery === void 0 || (_fetchProductsQuery$d8 = fetchProductsQuery.data) === null || _fetchProductsQuery$d8 === void 0 || (_fetchProductsQuery$d8 = _fetchProductsQuery$d8.data) === null || _fetchProductsQuery$d8 === void 0 ? void 0 : _fetchProductsQuery$d8.page) != undefined && (fetchProductsQuery === null || fetchProductsQuery === void 0 || (_fetchProductsQuery$d9 = fetchProductsQuery.data) === null || _fetchProductsQuery$d9 === void 0 || (_fetchProductsQuery$d9 = _fetchProductsQuery$d9.data) === null || _fetchProductsQuery$d9 === void 0 ? void 0 : _fetchProductsQuery$d9.page) != null) {
|
|
17105
|
+
var _fetchProductsQuery$d10;
|
|
17106
|
+
var currentpage = parseInt(fetchProductsQuery === null || fetchProductsQuery === void 0 || (_fetchProductsQuery$d10 = fetchProductsQuery.data) === null || _fetchProductsQuery$d10 === void 0 || (_fetchProductsQuery$d10 = _fetchProductsQuery$d10.data) === null || _fetchProductsQuery$d10 === void 0 ? void 0 : _fetchProductsQuery$d10.page);
|
|
17107
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
17108
|
+
"class": "d-flex containerClassName"
|
|
17109
|
+
}, /*#__PURE__*/React__default["default"].createElement(ReactPaginate__default["default"], {
|
|
17110
|
+
breakLabel: "...",
|
|
17111
|
+
forcePage: currentpage,
|
|
17112
|
+
nextLabel: /*#__PURE__*/React__default["default"].createElement(FiChevronRight.FiChevronRight, {
|
|
17113
|
+
size: parseInt(sectionproperties.paginationFontSize) + 3
|
|
17114
|
+
}),
|
|
17115
|
+
onPageChange: handlePageClick,
|
|
17116
|
+
active: true,
|
|
17117
|
+
pageRangeDisplayed: 5,
|
|
17118
|
+
pageCount: pageCount,
|
|
17119
|
+
previousLabel: /*#__PURE__*/React__default["default"].createElement(FiChevronLeft.FiChevronLeft, {
|
|
17120
|
+
size: parseInt(sectionproperties.paginationFontSize) + 3
|
|
17121
|
+
}),
|
|
17122
|
+
renderOnZeroPageCount: null,
|
|
17123
|
+
pageLinkClassName: section_cssstyles.pageLinkClassName,
|
|
17124
|
+
nextLinkClassName: section_cssstyles.nextLinkClassName,
|
|
17125
|
+
previousLinkClassName: section_cssstyles.previousLinkClassName,
|
|
17126
|
+
activeClassName: section_cssstyles.activeClassName,
|
|
17127
|
+
activeLinkClassName: section_cssstyles.activeLinkClassName,
|
|
17128
|
+
previousClassName: section_cssstyles.previousClassName,
|
|
17129
|
+
nextClassName: section_cssstyles.nextClassName,
|
|
17130
|
+
disabledClassName: section_cssstyles.disabledClassName,
|
|
17131
|
+
disabledLinkClassName: section_cssstyles.disabledLinkClassName
|
|
17132
|
+
}));
|
|
17133
|
+
}
|
|
17121
17134
|
}
|
|
17122
17135
|
var section_cssstyles = {
|
|
17123
17136
|
sectioncontainerr: glamor.css({
|