tabexseriescomponents 0.0.612 → 0.0.613
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 +30 -41
- package/dist/index.esm.js +30 -41
- package/dist/index.umd.js +30 -41
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -8295,7 +8295,7 @@ var Ordershistory = function Ordershistory(props) {
|
|
|
8295
8295
|
style: {
|
|
8296
8296
|
backgroundColor: item.instorderstatus != null ? item.instorderstatus.statuscolor : 'orange'
|
|
8297
8297
|
}
|
|
8298
|
-
}, item.instorderstatus != null ? item.instorderstatus.orderstatusname_en :
|
|
8298
|
+
}, item.instorderstatus != null ? langdetect == 'en' ? item.instorderstatus.orderstatusname_en : item.instorderstatus.orderstatusname_ar : langdetect == 'en' ? 'In Progress' : 'جاري'))), sectionproperties.hidenoproducts == 'Show' && /*#__PURE__*/React__default["default"].createElement("td", {
|
|
8299
8299
|
className: "text-center",
|
|
8300
8300
|
style: {
|
|
8301
8301
|
minWidth: '200px'
|
|
@@ -8396,7 +8396,7 @@ var Ordershistory = function Ordershistory(props) {
|
|
|
8396
8396
|
textAlign: langdetect == 'en' ? 'left' : 'right',
|
|
8397
8397
|
color: 'orange'
|
|
8398
8398
|
}
|
|
8399
|
-
}, fetchorderhistoryQueryContext.data.data.ordershistory[orderindex].instorderstatus != null ? fetchorderhistoryQueryContext.data.data.ordershistory[orderindex].instorderstatus.orderstatusname_en : lang.inprogress)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8399
|
+
}, fetchorderhistoryQueryContext.data.data.ordershistory[orderindex].instorderstatus != null ? langdetect == 'en' ? fetchorderhistoryQueryContext.data.data.ordershistory[orderindex].instorderstatus.orderstatusname_en : fetchorderhistoryQueryContext.data.data.ordershistory[orderindex].instorderstatus.orderstatusname_ar : lang.inprogress)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8400
8400
|
className: "col-lg-12 p-0"
|
|
8401
8401
|
}, /*#__PURE__*/React__default["default"].createElement("hr", {
|
|
8402
8402
|
className: "mt-2 mb-3"
|
|
@@ -17364,41 +17364,37 @@ var CardsSection = function CardsSection(props) {
|
|
|
17364
17364
|
props.actions.setsortbycontext;
|
|
17365
17365
|
var _useState = React.useState(false),
|
|
17366
17366
|
_useState2 = _slicedToArray__default["default"](_useState, 2),
|
|
17367
|
-
|
|
17368
|
-
|
|
17369
|
-
var _useState3 = React.useState(false),
|
|
17370
|
-
_useState4 = _slicedToArray__default["default"](_useState3, 2),
|
|
17371
|
-
openFilterSlider = _useState4[0],
|
|
17372
|
-
setopenFilterSlider = _useState4[1];
|
|
17367
|
+
openFilterSlider = _useState2[0],
|
|
17368
|
+
setopenFilterSlider = _useState2[1];
|
|
17373
17369
|
var actions = props.actions;
|
|
17374
|
-
var
|
|
17370
|
+
var _useState3 = React.useState(''),
|
|
17371
|
+
_useState4 = _slicedToArray__default["default"](_useState3, 2),
|
|
17372
|
+
sectionproperties = _useState4[0],
|
|
17373
|
+
setsectionproperties = _useState4[1];
|
|
17374
|
+
var _useState5 = React.useState([]),
|
|
17375
17375
|
_useState6 = _slicedToArray__default["default"](_useState5, 2),
|
|
17376
|
-
|
|
17377
|
-
|
|
17378
|
-
var _useState7 = React.useState(
|
|
17376
|
+
cardsarray = _useState6[0],
|
|
17377
|
+
setcardsarray = _useState6[1];
|
|
17378
|
+
var _useState7 = React.useState(''),
|
|
17379
17379
|
_useState8 = _slicedToArray__default["default"](_useState7, 2),
|
|
17380
|
-
|
|
17381
|
-
|
|
17382
|
-
var _useState9 = React.useState(
|
|
17383
|
-
_useState10 = _slicedToArray__default["default"](_useState9, 2),
|
|
17384
|
-
sectionitem = _useState10[0],
|
|
17385
|
-
setsectionitem = _useState10[1];
|
|
17386
|
-
var _useState11 = React.useState({
|
|
17380
|
+
sectionitem = _useState8[0],
|
|
17381
|
+
setsectionitem = _useState8[1];
|
|
17382
|
+
var _useState9 = React.useState({
|
|
17387
17383
|
productfetchingtype: 'Random',
|
|
17388
17384
|
collectionid: '',
|
|
17389
17385
|
grouptype: ''
|
|
17390
17386
|
}),
|
|
17387
|
+
_useState10 = _slicedToArray__default["default"](_useState9, 2),
|
|
17388
|
+
ProductsFetchingTypeSectionObj = _useState10[0],
|
|
17389
|
+
setProductsFetchingTypeSectionObj = _useState10[1];
|
|
17390
|
+
var _useState11 = React.useState([]),
|
|
17391
17391
|
_useState12 = _slicedToArray__default["default"](_useState11, 2),
|
|
17392
|
-
|
|
17393
|
-
|
|
17394
|
-
var _useState13 = React.useState(
|
|
17392
|
+
maincontainerarrayofobjs = _useState12[0],
|
|
17393
|
+
setmaincontainerarrayofobjs = _useState12[1];
|
|
17394
|
+
var _useState13 = React.useState(12),
|
|
17395
17395
|
_useState14 = _slicedToArray__default["default"](_useState13, 2),
|
|
17396
|
-
|
|
17397
|
-
|
|
17398
|
-
var _useState15 = React.useState(12),
|
|
17399
|
-
_useState16 = _slicedToArray__default["default"](_useState15, 2),
|
|
17400
|
-
perpageItems = _useState16[0],
|
|
17401
|
-
setperpageItems = _useState16[1];
|
|
17396
|
+
perpageItems = _useState14[0],
|
|
17397
|
+
setperpageItems = _useState14[1];
|
|
17402
17398
|
var AddtoCartMutationContext = props.actions.AddtoCartMutationContext;
|
|
17403
17399
|
React.useEffect(function () {
|
|
17404
17400
|
var productfilerobjtemp = ProductFilterObjContext;
|
|
@@ -17446,11 +17442,6 @@ var CardsSection = function CardsSection(props) {
|
|
|
17446
17442
|
}
|
|
17447
17443
|
});
|
|
17448
17444
|
}, [StatePagePropertiesContext]);
|
|
17449
|
-
React.useEffect(function () {
|
|
17450
|
-
setTimeout(function () {
|
|
17451
|
-
setshowShowMoreButon(true);
|
|
17452
|
-
}, 500);
|
|
17453
|
-
}, []);
|
|
17454
17445
|
React.useEffect(function () {
|
|
17455
17446
|
if (sectionproperties.length != 0) {
|
|
17456
17447
|
if (cardsarray.length == 0) {
|
|
@@ -17857,15 +17848,13 @@ var CardsSection = function CardsSection(props) {
|
|
|
17857
17848
|
}
|
|
17858
17849
|
var section_cssstyles = {
|
|
17859
17850
|
sectioncontainerr: glamor.css({
|
|
17860
|
-
|
|
17861
|
-
|
|
17851
|
+
width: sectionproperties.width + 'vw',
|
|
17862
17852
|
marginTop: sectionproperties.marginTop + 'px',
|
|
17863
17853
|
'@media (max-width: 800px)': {
|
|
17864
|
-
marginTop: sectionproperties.marginTopResp != undefined && sectionproperties.marginTopResp != undefined ? sectionproperties.marginTopResp + 'px' : sectionproperties.marginTop + 'px'
|
|
17865
|
-
|
|
17854
|
+
marginTop: sectionproperties.marginTopResp != undefined && sectionproperties.marginTopResp != undefined ? sectionproperties.marginTopResp + 'px' : sectionproperties.marginTop + 'px',
|
|
17855
|
+
width: sectionproperties.widthresponsive + 'vw'
|
|
17866
17856
|
}
|
|
17867
17857
|
}),
|
|
17868
|
-
|
|
17869
17858
|
innercardssection: glamor.css({
|
|
17870
17859
|
paddingLeft: sectionproperties.showFilter == 'show' ? langdetect == 'en' ? sectionproperties.paddingLeft + 'px' : sectionproperties.paddingRight + 'px' : 0,
|
|
17871
17860
|
paddingRight: sectionproperties.showFilter == 'show' ? langdetect == 'en' ? sectionproperties.paddingRight + 'px' : sectionproperties.paddingLeft + 'px' : 0,
|
|
@@ -18206,7 +18195,7 @@ var CardsSection = function CardsSection(props) {
|
|
|
18206
18195
|
marginTop: sectionproperties.showbadge == 'Show' ? sectionproperties.sectionTitleMarginTop + 'px' : 0,
|
|
18207
18196
|
marginBottom: sectionproperties.sectiontitledirection == 'Vertical' ? sectionproperties.sectionTitleMarginBottom + 'px' : 0
|
|
18208
18197
|
}
|
|
18209
|
-
}, SectionTitle()),
|
|
18198
|
+
}, SectionTitle()), sectionproperties.sectiontitledirection == 'Vertical' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
18210
18199
|
"class": "col-lg-12 p-0"
|
|
18211
18200
|
}, sectionproperties.viewmorebtnshow == 'Show' && sectionproperties.viewmorebtnposition != 'Under Section' && /*#__PURE__*/React__default["default"].createElement("button", {
|
|
18212
18201
|
"class": sectionproperties.viewmorebtn_bgtransparent == 'Transparent' ? sectionproperties.sectiontitleposition == 'Centered' ? "".concat(section_cssstyles.viewmorebtn) + ' m-sm-0 allcentered mt-auto mb-auto mb-sm-3 ' : "".concat(section_cssstyles.viewmorebtn) + ' m-sm-0 mt-auto mb-auto ' : sectionproperties.sectiontitleposition == 'Centered' ? "".concat(section_cssstyles.viewmorebtn) + ' m-sm-0 allcentered mt-auto mb-auto ' : "".concat(section_cssstyles.viewmorebtn) + ' m-sm-0 mt-auto mb-auto ',
|
|
@@ -18277,7 +18266,7 @@ var CardsSection = function CardsSection(props) {
|
|
|
18277
18266
|
}
|
|
18278
18267
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
18279
18268
|
"class": sectionproperties.sectiontitleposition == 'Centered' ? ' row m-0 w-100 d-flex align-item-center justify-content-center mt-auto mb-auto ' : ' row m-0 w-100 d-flex align-item-center justify-content-end mt-auto mb-auto '
|
|
18280
|
-
},
|
|
18269
|
+
}, sectionproperties.viewmorebtnshow == 'Show' && sectionproperties.sectiontitledirection == 'Horizontal' && sectionproperties.viewmorebtnposition != 'Under Section' && /*#__PURE__*/React__default["default"].createElement("button", {
|
|
18281
18270
|
"class": sectionproperties.viewmorebtn_bgtransparent == 'Transparent' ? sectionproperties.sectiontitleposition == 'Centered' ? "".concat(section_cssstyles.viewmorebtn) + ' m-sm-0 allcentered mt-auto mb-auto mb-sm-3 ' : "".concat(section_cssstyles.viewmorebtn) + ' w-sm-auto btn-circle-resp m-sm-0 mt-auto mb-auto ' : sectionproperties.sectiontitleposition == 'Centered' ? "".concat(section_cssstyles.viewmorebtn) + ' m-sm-0 allcentered mt-auto mb-auto ' : "".concat(section_cssstyles.viewmorebtn) + ' w-sm-auto btn-circle-resp m-sm-0 mt-auto mb-auto ',
|
|
18282
18271
|
onClick: function onClick() {
|
|
18283
18272
|
if (fetchingtype == 'products') {
|
|
@@ -18697,7 +18686,7 @@ var CardsSection = function CardsSection(props) {
|
|
|
18697
18686
|
}))));
|
|
18698
18687
|
}
|
|
18699
18688
|
}
|
|
18700
|
-
})),
|
|
18689
|
+
})), sectionproperties.viewmorebtnposition == 'Under Section' && sectionproperties.viewmorebtnshow == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
18701
18690
|
"class": "col-lg-12 p-0 allcentered"
|
|
18702
18691
|
}, /*#__PURE__*/React__default["default"].createElement("button", {
|
|
18703
18692
|
"class": sectionproperties.viewmorebtn_bgtransparent == 'Transparent' ? sectionproperties.sectiontitleposition == 'Centered' ? "".concat(section_cssstyles.viewmorebtn) + ' m-sm-0 allcentered mt-auto mb-auto mb-sm-3 ' : "".concat(section_cssstyles.viewmorebtn) + ' m-sm-0 mt-auto mb-auto ' : sectionproperties.sectiontitleposition == 'Centered' ? "".concat(section_cssstyles.viewmorebtn) + ' m-sm-0 allcentered mt-auto mb-auto ' : "".concat(section_cssstyles.viewmorebtn) + ' m-sm-0 mt-auto mb-auto ',
|
package/dist/index.esm.js
CHANGED
|
@@ -8246,7 +8246,7 @@ var Ordershistory = function Ordershistory(props) {
|
|
|
8246
8246
|
style: {
|
|
8247
8247
|
backgroundColor: item.instorderstatus != null ? item.instorderstatus.statuscolor : 'orange'
|
|
8248
8248
|
}
|
|
8249
|
-
}, item.instorderstatus != null ? item.instorderstatus.orderstatusname_en :
|
|
8249
|
+
}, item.instorderstatus != null ? langdetect == 'en' ? item.instorderstatus.orderstatusname_en : item.instorderstatus.orderstatusname_ar : langdetect == 'en' ? 'In Progress' : 'جاري'))), sectionproperties.hidenoproducts == 'Show' && /*#__PURE__*/React.createElement("td", {
|
|
8250
8250
|
className: "text-center",
|
|
8251
8251
|
style: {
|
|
8252
8252
|
minWidth: '200px'
|
|
@@ -8347,7 +8347,7 @@ var Ordershistory = function Ordershistory(props) {
|
|
|
8347
8347
|
textAlign: langdetect == 'en' ? 'left' : 'right',
|
|
8348
8348
|
color: 'orange'
|
|
8349
8349
|
}
|
|
8350
|
-
}, fetchorderhistoryQueryContext.data.data.ordershistory[orderindex].instorderstatus != null ? fetchorderhistoryQueryContext.data.data.ordershistory[orderindex].instorderstatus.orderstatusname_en : lang.inprogress)), /*#__PURE__*/React.createElement("div", {
|
|
8350
|
+
}, fetchorderhistoryQueryContext.data.data.ordershistory[orderindex].instorderstatus != null ? langdetect == 'en' ? fetchorderhistoryQueryContext.data.data.ordershistory[orderindex].instorderstatus.orderstatusname_en : fetchorderhistoryQueryContext.data.data.ordershistory[orderindex].instorderstatus.orderstatusname_ar : lang.inprogress)), /*#__PURE__*/React.createElement("div", {
|
|
8351
8351
|
className: "col-lg-12 p-0"
|
|
8352
8352
|
}, /*#__PURE__*/React.createElement("hr", {
|
|
8353
8353
|
className: "mt-2 mb-3"
|
|
@@ -17315,41 +17315,37 @@ var CardsSection = function CardsSection(props) {
|
|
|
17315
17315
|
props.actions.setsortbycontext;
|
|
17316
17316
|
var _useState = useState(false),
|
|
17317
17317
|
_useState2 = _slicedToArray(_useState, 2),
|
|
17318
|
-
|
|
17319
|
-
|
|
17320
|
-
var _useState3 = useState(false),
|
|
17321
|
-
_useState4 = _slicedToArray(_useState3, 2),
|
|
17322
|
-
openFilterSlider = _useState4[0],
|
|
17323
|
-
setopenFilterSlider = _useState4[1];
|
|
17318
|
+
openFilterSlider = _useState2[0],
|
|
17319
|
+
setopenFilterSlider = _useState2[1];
|
|
17324
17320
|
var actions = props.actions;
|
|
17325
|
-
var
|
|
17321
|
+
var _useState3 = useState(''),
|
|
17322
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
17323
|
+
sectionproperties = _useState4[0],
|
|
17324
|
+
setsectionproperties = _useState4[1];
|
|
17325
|
+
var _useState5 = useState([]),
|
|
17326
17326
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
17327
|
-
|
|
17328
|
-
|
|
17329
|
-
var _useState7 = useState(
|
|
17327
|
+
cardsarray = _useState6[0],
|
|
17328
|
+
setcardsarray = _useState6[1];
|
|
17329
|
+
var _useState7 = useState(''),
|
|
17330
17330
|
_useState8 = _slicedToArray(_useState7, 2),
|
|
17331
|
-
|
|
17332
|
-
|
|
17333
|
-
var _useState9 = useState(
|
|
17334
|
-
_useState10 = _slicedToArray(_useState9, 2),
|
|
17335
|
-
sectionitem = _useState10[0],
|
|
17336
|
-
setsectionitem = _useState10[1];
|
|
17337
|
-
var _useState11 = useState({
|
|
17331
|
+
sectionitem = _useState8[0],
|
|
17332
|
+
setsectionitem = _useState8[1];
|
|
17333
|
+
var _useState9 = useState({
|
|
17338
17334
|
productfetchingtype: 'Random',
|
|
17339
17335
|
collectionid: '',
|
|
17340
17336
|
grouptype: ''
|
|
17341
17337
|
}),
|
|
17338
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
17339
|
+
ProductsFetchingTypeSectionObj = _useState10[0],
|
|
17340
|
+
setProductsFetchingTypeSectionObj = _useState10[1];
|
|
17341
|
+
var _useState11 = useState([]),
|
|
17342
17342
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
17343
|
-
|
|
17344
|
-
|
|
17345
|
-
var _useState13 = useState(
|
|
17343
|
+
maincontainerarrayofobjs = _useState12[0],
|
|
17344
|
+
setmaincontainerarrayofobjs = _useState12[1];
|
|
17345
|
+
var _useState13 = useState(12),
|
|
17346
17346
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
17347
|
-
|
|
17348
|
-
|
|
17349
|
-
var _useState15 = useState(12),
|
|
17350
|
-
_useState16 = _slicedToArray(_useState15, 2),
|
|
17351
|
-
perpageItems = _useState16[0],
|
|
17352
|
-
setperpageItems = _useState16[1];
|
|
17347
|
+
perpageItems = _useState14[0],
|
|
17348
|
+
setperpageItems = _useState14[1];
|
|
17353
17349
|
var AddtoCartMutationContext = props.actions.AddtoCartMutationContext;
|
|
17354
17350
|
useEffect(function () {
|
|
17355
17351
|
var productfilerobjtemp = ProductFilterObjContext;
|
|
@@ -17397,11 +17393,6 @@ var CardsSection = function CardsSection(props) {
|
|
|
17397
17393
|
}
|
|
17398
17394
|
});
|
|
17399
17395
|
}, [StatePagePropertiesContext]);
|
|
17400
|
-
useEffect(function () {
|
|
17401
|
-
setTimeout(function () {
|
|
17402
|
-
setshowShowMoreButon(true);
|
|
17403
|
-
}, 500);
|
|
17404
|
-
}, []);
|
|
17405
17396
|
useEffect(function () {
|
|
17406
17397
|
if (sectionproperties.length != 0) {
|
|
17407
17398
|
if (cardsarray.length == 0) {
|
|
@@ -17808,15 +17799,13 @@ var CardsSection = function CardsSection(props) {
|
|
|
17808
17799
|
}
|
|
17809
17800
|
var section_cssstyles = {
|
|
17810
17801
|
sectioncontainerr: css({
|
|
17811
|
-
|
|
17812
|
-
|
|
17802
|
+
width: sectionproperties.width + 'vw',
|
|
17813
17803
|
marginTop: sectionproperties.marginTop + 'px',
|
|
17814
17804
|
'@media (max-width: 800px)': {
|
|
17815
|
-
marginTop: sectionproperties.marginTopResp != undefined && sectionproperties.marginTopResp != undefined ? sectionproperties.marginTopResp + 'px' : sectionproperties.marginTop + 'px'
|
|
17816
|
-
|
|
17805
|
+
marginTop: sectionproperties.marginTopResp != undefined && sectionproperties.marginTopResp != undefined ? sectionproperties.marginTopResp + 'px' : sectionproperties.marginTop + 'px',
|
|
17806
|
+
width: sectionproperties.widthresponsive + 'vw'
|
|
17817
17807
|
}
|
|
17818
17808
|
}),
|
|
17819
|
-
|
|
17820
17809
|
innercardssection: css({
|
|
17821
17810
|
paddingLeft: sectionproperties.showFilter == 'show' ? langdetect == 'en' ? sectionproperties.paddingLeft + 'px' : sectionproperties.paddingRight + 'px' : 0,
|
|
17822
17811
|
paddingRight: sectionproperties.showFilter == 'show' ? langdetect == 'en' ? sectionproperties.paddingRight + 'px' : sectionproperties.paddingLeft + 'px' : 0,
|
|
@@ -18157,7 +18146,7 @@ var CardsSection = function CardsSection(props) {
|
|
|
18157
18146
|
marginTop: sectionproperties.showbadge == 'Show' ? sectionproperties.sectionTitleMarginTop + 'px' : 0,
|
|
18158
18147
|
marginBottom: sectionproperties.sectiontitledirection == 'Vertical' ? sectionproperties.sectionTitleMarginBottom + 'px' : 0
|
|
18159
18148
|
}
|
|
18160
|
-
}, SectionTitle()),
|
|
18149
|
+
}, SectionTitle()), sectionproperties.sectiontitledirection == 'Vertical' && /*#__PURE__*/React.createElement("div", {
|
|
18161
18150
|
"class": "col-lg-12 p-0"
|
|
18162
18151
|
}, sectionproperties.viewmorebtnshow == 'Show' && sectionproperties.viewmorebtnposition != 'Under Section' && /*#__PURE__*/React.createElement("button", {
|
|
18163
18152
|
"class": sectionproperties.viewmorebtn_bgtransparent == 'Transparent' ? sectionproperties.sectiontitleposition == 'Centered' ? "".concat(section_cssstyles.viewmorebtn) + ' m-sm-0 allcentered mt-auto mb-auto mb-sm-3 ' : "".concat(section_cssstyles.viewmorebtn) + ' m-sm-0 mt-auto mb-auto ' : sectionproperties.sectiontitleposition == 'Centered' ? "".concat(section_cssstyles.viewmorebtn) + ' m-sm-0 allcentered mt-auto mb-auto ' : "".concat(section_cssstyles.viewmorebtn) + ' m-sm-0 mt-auto mb-auto ',
|
|
@@ -18228,7 +18217,7 @@ var CardsSection = function CardsSection(props) {
|
|
|
18228
18217
|
}
|
|
18229
18218
|
}, /*#__PURE__*/React.createElement("div", {
|
|
18230
18219
|
"class": sectionproperties.sectiontitleposition == 'Centered' ? ' row m-0 w-100 d-flex align-item-center justify-content-center mt-auto mb-auto ' : ' row m-0 w-100 d-flex align-item-center justify-content-end mt-auto mb-auto '
|
|
18231
|
-
},
|
|
18220
|
+
}, sectionproperties.viewmorebtnshow == 'Show' && sectionproperties.sectiontitledirection == 'Horizontal' && sectionproperties.viewmorebtnposition != 'Under Section' && /*#__PURE__*/React.createElement("button", {
|
|
18232
18221
|
"class": sectionproperties.viewmorebtn_bgtransparent == 'Transparent' ? sectionproperties.sectiontitleposition == 'Centered' ? "".concat(section_cssstyles.viewmorebtn) + ' m-sm-0 allcentered mt-auto mb-auto mb-sm-3 ' : "".concat(section_cssstyles.viewmorebtn) + ' w-sm-auto btn-circle-resp m-sm-0 mt-auto mb-auto ' : sectionproperties.sectiontitleposition == 'Centered' ? "".concat(section_cssstyles.viewmorebtn) + ' m-sm-0 allcentered mt-auto mb-auto ' : "".concat(section_cssstyles.viewmorebtn) + ' w-sm-auto btn-circle-resp m-sm-0 mt-auto mb-auto ',
|
|
18233
18222
|
onClick: function onClick() {
|
|
18234
18223
|
if (fetchingtype == 'products') {
|
|
@@ -18648,7 +18637,7 @@ var CardsSection = function CardsSection(props) {
|
|
|
18648
18637
|
}))));
|
|
18649
18638
|
}
|
|
18650
18639
|
}
|
|
18651
|
-
})),
|
|
18640
|
+
})), sectionproperties.viewmorebtnposition == 'Under Section' && sectionproperties.viewmorebtnshow == 'Show' && /*#__PURE__*/React.createElement("div", {
|
|
18652
18641
|
"class": "col-lg-12 p-0 allcentered"
|
|
18653
18642
|
}, /*#__PURE__*/React.createElement("button", {
|
|
18654
18643
|
"class": sectionproperties.viewmorebtn_bgtransparent == 'Transparent' ? sectionproperties.sectiontitleposition == 'Centered' ? "".concat(section_cssstyles.viewmorebtn) + ' m-sm-0 allcentered mt-auto mb-auto mb-sm-3 ' : "".concat(section_cssstyles.viewmorebtn) + ' m-sm-0 mt-auto mb-auto ' : sectionproperties.sectiontitleposition == 'Centered' ? "".concat(section_cssstyles.viewmorebtn) + ' m-sm-0 allcentered mt-auto mb-auto ' : "".concat(section_cssstyles.viewmorebtn) + ' m-sm-0 mt-auto mb-auto ',
|
package/dist/index.umd.js
CHANGED
|
@@ -8119,7 +8119,7 @@
|
|
|
8119
8119
|
style: {
|
|
8120
8120
|
backgroundColor: item.instorderstatus != null ? item.instorderstatus.statuscolor : 'orange'
|
|
8121
8121
|
}
|
|
8122
|
-
}, item.instorderstatus != null ? item.instorderstatus.orderstatusname_en :
|
|
8122
|
+
}, item.instorderstatus != null ? langdetect == 'en' ? item.instorderstatus.orderstatusname_en : item.instorderstatus.orderstatusname_ar : langdetect == 'en' ? 'In Progress' : 'جاري'))), sectionproperties.hidenoproducts == 'Show' && /*#__PURE__*/React__default["default"].createElement("td", {
|
|
8123
8123
|
className: "text-center",
|
|
8124
8124
|
style: {
|
|
8125
8125
|
minWidth: '200px'
|
|
@@ -8220,7 +8220,7 @@
|
|
|
8220
8220
|
textAlign: langdetect == 'en' ? 'left' : 'right',
|
|
8221
8221
|
color: 'orange'
|
|
8222
8222
|
}
|
|
8223
|
-
}, fetchorderhistoryQueryContext.data.data.ordershistory[orderindex].instorderstatus != null ? fetchorderhistoryQueryContext.data.data.ordershistory[orderindex].instorderstatus.orderstatusname_en : lang.inprogress)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8223
|
+
}, fetchorderhistoryQueryContext.data.data.ordershistory[orderindex].instorderstatus != null ? langdetect == 'en' ? fetchorderhistoryQueryContext.data.data.ordershistory[orderindex].instorderstatus.orderstatusname_en : fetchorderhistoryQueryContext.data.data.ordershistory[orderindex].instorderstatus.orderstatusname_ar : lang.inprogress)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8224
8224
|
className: "col-lg-12 p-0"
|
|
8225
8225
|
}, /*#__PURE__*/React__default["default"].createElement("hr", {
|
|
8226
8226
|
className: "mt-2 mb-3"
|
|
@@ -17188,41 +17188,37 @@
|
|
|
17188
17188
|
props.actions.setsortbycontext;
|
|
17189
17189
|
var _useState = React.useState(false),
|
|
17190
17190
|
_useState2 = _slicedToArray__default["default"](_useState, 2),
|
|
17191
|
-
|
|
17192
|
-
|
|
17193
|
-
var _useState3 = React.useState(false),
|
|
17194
|
-
_useState4 = _slicedToArray__default["default"](_useState3, 2),
|
|
17195
|
-
openFilterSlider = _useState4[0],
|
|
17196
|
-
setopenFilterSlider = _useState4[1];
|
|
17191
|
+
openFilterSlider = _useState2[0],
|
|
17192
|
+
setopenFilterSlider = _useState2[1];
|
|
17197
17193
|
var actions = props.actions;
|
|
17198
|
-
var
|
|
17194
|
+
var _useState3 = React.useState(''),
|
|
17195
|
+
_useState4 = _slicedToArray__default["default"](_useState3, 2),
|
|
17196
|
+
sectionproperties = _useState4[0],
|
|
17197
|
+
setsectionproperties = _useState4[1];
|
|
17198
|
+
var _useState5 = React.useState([]),
|
|
17199
17199
|
_useState6 = _slicedToArray__default["default"](_useState5, 2),
|
|
17200
|
-
|
|
17201
|
-
|
|
17202
|
-
var _useState7 = React.useState(
|
|
17200
|
+
cardsarray = _useState6[0],
|
|
17201
|
+
setcardsarray = _useState6[1];
|
|
17202
|
+
var _useState7 = React.useState(''),
|
|
17203
17203
|
_useState8 = _slicedToArray__default["default"](_useState7, 2),
|
|
17204
|
-
|
|
17205
|
-
|
|
17206
|
-
var _useState9 = React.useState(
|
|
17207
|
-
_useState10 = _slicedToArray__default["default"](_useState9, 2),
|
|
17208
|
-
sectionitem = _useState10[0],
|
|
17209
|
-
setsectionitem = _useState10[1];
|
|
17210
|
-
var _useState11 = React.useState({
|
|
17204
|
+
sectionitem = _useState8[0],
|
|
17205
|
+
setsectionitem = _useState8[1];
|
|
17206
|
+
var _useState9 = React.useState({
|
|
17211
17207
|
productfetchingtype: 'Random',
|
|
17212
17208
|
collectionid: '',
|
|
17213
17209
|
grouptype: ''
|
|
17214
17210
|
}),
|
|
17211
|
+
_useState10 = _slicedToArray__default["default"](_useState9, 2),
|
|
17212
|
+
ProductsFetchingTypeSectionObj = _useState10[0],
|
|
17213
|
+
setProductsFetchingTypeSectionObj = _useState10[1];
|
|
17214
|
+
var _useState11 = React.useState([]),
|
|
17215
17215
|
_useState12 = _slicedToArray__default["default"](_useState11, 2),
|
|
17216
|
-
|
|
17217
|
-
|
|
17218
|
-
var _useState13 = React.useState(
|
|
17216
|
+
maincontainerarrayofobjs = _useState12[0],
|
|
17217
|
+
setmaincontainerarrayofobjs = _useState12[1];
|
|
17218
|
+
var _useState13 = React.useState(12),
|
|
17219
17219
|
_useState14 = _slicedToArray__default["default"](_useState13, 2),
|
|
17220
|
-
|
|
17221
|
-
|
|
17222
|
-
var _useState15 = React.useState(12),
|
|
17223
|
-
_useState16 = _slicedToArray__default["default"](_useState15, 2),
|
|
17224
|
-
perpageItems = _useState16[0],
|
|
17225
|
-
setperpageItems = _useState16[1];
|
|
17220
|
+
perpageItems = _useState14[0],
|
|
17221
|
+
setperpageItems = _useState14[1];
|
|
17226
17222
|
var AddtoCartMutationContext = props.actions.AddtoCartMutationContext;
|
|
17227
17223
|
React.useEffect(function () {
|
|
17228
17224
|
var productfilerobjtemp = ProductFilterObjContext;
|
|
@@ -17270,11 +17266,6 @@
|
|
|
17270
17266
|
}
|
|
17271
17267
|
});
|
|
17272
17268
|
}, [StatePagePropertiesContext]);
|
|
17273
|
-
React.useEffect(function () {
|
|
17274
|
-
setTimeout(function () {
|
|
17275
|
-
setshowShowMoreButon(true);
|
|
17276
|
-
}, 500);
|
|
17277
|
-
}, []);
|
|
17278
17269
|
React.useEffect(function () {
|
|
17279
17270
|
if (sectionproperties.length != 0) {
|
|
17280
17271
|
if (cardsarray.length == 0) {
|
|
@@ -17681,15 +17672,13 @@
|
|
|
17681
17672
|
}
|
|
17682
17673
|
var section_cssstyles = {
|
|
17683
17674
|
sectioncontainerr: glamor.css({
|
|
17684
|
-
|
|
17685
|
-
|
|
17675
|
+
width: sectionproperties.width + 'vw',
|
|
17686
17676
|
marginTop: sectionproperties.marginTop + 'px',
|
|
17687
17677
|
'@media (max-width: 800px)': {
|
|
17688
|
-
marginTop: sectionproperties.marginTopResp != undefined && sectionproperties.marginTopResp != undefined ? sectionproperties.marginTopResp + 'px' : sectionproperties.marginTop + 'px'
|
|
17689
|
-
|
|
17678
|
+
marginTop: sectionproperties.marginTopResp != undefined && sectionproperties.marginTopResp != undefined ? sectionproperties.marginTopResp + 'px' : sectionproperties.marginTop + 'px',
|
|
17679
|
+
width: sectionproperties.widthresponsive + 'vw'
|
|
17690
17680
|
}
|
|
17691
17681
|
}),
|
|
17692
|
-
|
|
17693
17682
|
innercardssection: glamor.css({
|
|
17694
17683
|
paddingLeft: sectionproperties.showFilter == 'show' ? langdetect == 'en' ? sectionproperties.paddingLeft + 'px' : sectionproperties.paddingRight + 'px' : 0,
|
|
17695
17684
|
paddingRight: sectionproperties.showFilter == 'show' ? langdetect == 'en' ? sectionproperties.paddingRight + 'px' : sectionproperties.paddingLeft + 'px' : 0,
|
|
@@ -18030,7 +18019,7 @@
|
|
|
18030
18019
|
marginTop: sectionproperties.showbadge == 'Show' ? sectionproperties.sectionTitleMarginTop + 'px' : 0,
|
|
18031
18020
|
marginBottom: sectionproperties.sectiontitledirection == 'Vertical' ? sectionproperties.sectionTitleMarginBottom + 'px' : 0
|
|
18032
18021
|
}
|
|
18033
|
-
}, SectionTitle()),
|
|
18022
|
+
}, SectionTitle()), sectionproperties.sectiontitledirection == 'Vertical' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
18034
18023
|
"class": "col-lg-12 p-0"
|
|
18035
18024
|
}, sectionproperties.viewmorebtnshow == 'Show' && sectionproperties.viewmorebtnposition != 'Under Section' && /*#__PURE__*/React__default["default"].createElement("button", {
|
|
18036
18025
|
"class": sectionproperties.viewmorebtn_bgtransparent == 'Transparent' ? sectionproperties.sectiontitleposition == 'Centered' ? "".concat(section_cssstyles.viewmorebtn) + ' m-sm-0 allcentered mt-auto mb-auto mb-sm-3 ' : "".concat(section_cssstyles.viewmorebtn) + ' m-sm-0 mt-auto mb-auto ' : sectionproperties.sectiontitleposition == 'Centered' ? "".concat(section_cssstyles.viewmorebtn) + ' m-sm-0 allcentered mt-auto mb-auto ' : "".concat(section_cssstyles.viewmorebtn) + ' m-sm-0 mt-auto mb-auto ',
|
|
@@ -18101,7 +18090,7 @@
|
|
|
18101
18090
|
}
|
|
18102
18091
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
18103
18092
|
"class": sectionproperties.sectiontitleposition == 'Centered' ? ' row m-0 w-100 d-flex align-item-center justify-content-center mt-auto mb-auto ' : ' row m-0 w-100 d-flex align-item-center justify-content-end mt-auto mb-auto '
|
|
18104
|
-
},
|
|
18093
|
+
}, sectionproperties.viewmorebtnshow == 'Show' && sectionproperties.sectiontitledirection == 'Horizontal' && sectionproperties.viewmorebtnposition != 'Under Section' && /*#__PURE__*/React__default["default"].createElement("button", {
|
|
18105
18094
|
"class": sectionproperties.viewmorebtn_bgtransparent == 'Transparent' ? sectionproperties.sectiontitleposition == 'Centered' ? "".concat(section_cssstyles.viewmorebtn) + ' m-sm-0 allcentered mt-auto mb-auto mb-sm-3 ' : "".concat(section_cssstyles.viewmorebtn) + ' w-sm-auto btn-circle-resp m-sm-0 mt-auto mb-auto ' : sectionproperties.sectiontitleposition == 'Centered' ? "".concat(section_cssstyles.viewmorebtn) + ' m-sm-0 allcentered mt-auto mb-auto ' : "".concat(section_cssstyles.viewmorebtn) + ' w-sm-auto btn-circle-resp m-sm-0 mt-auto mb-auto ',
|
|
18106
18095
|
onClick: function onClick() {
|
|
18107
18096
|
if (fetchingtype == 'products') {
|
|
@@ -18521,7 +18510,7 @@
|
|
|
18521
18510
|
}))));
|
|
18522
18511
|
}
|
|
18523
18512
|
}
|
|
18524
|
-
})),
|
|
18513
|
+
})), sectionproperties.viewmorebtnposition == 'Under Section' && sectionproperties.viewmorebtnshow == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
18525
18514
|
"class": "col-lg-12 p-0 allcentered"
|
|
18526
18515
|
}, /*#__PURE__*/React__default["default"].createElement("button", {
|
|
18527
18516
|
"class": sectionproperties.viewmorebtn_bgtransparent == 'Transparent' ? sectionproperties.sectiontitleposition == 'Centered' ? "".concat(section_cssstyles.viewmorebtn) + ' m-sm-0 allcentered mt-auto mb-auto mb-sm-3 ' : "".concat(section_cssstyles.viewmorebtn) + ' m-sm-0 mt-auto mb-auto ' : sectionproperties.sectiontitleposition == 'Centered' ? "".concat(section_cssstyles.viewmorebtn) + ' m-sm-0 allcentered mt-auto mb-auto ' : "".concat(section_cssstyles.viewmorebtn) + ' m-sm-0 mt-auto mb-auto ',
|