tabexseriescomponents 0.0.435 → 0.0.437
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 +256 -166
- package/dist/index.esm.js +256 -166
- package/dist/index.umd.js +256 -166
- package/package.json +4 -4
package/dist/index.umd.js
CHANGED
|
@@ -4050,6 +4050,7 @@
|
|
|
4050
4050
|
var ikimagecredcontext = props.actions.ikimagecredcontext;
|
|
4051
4051
|
var getprice_discountpriceprops = props.actions.getprice_discountpriceprops;
|
|
4052
4052
|
props.actions.quantityconditionfoundobjprops;
|
|
4053
|
+
var currentshowingimageindex = props.actions.currentshowingimageindex;
|
|
4053
4054
|
props.actions.variantindexcompleted;
|
|
4054
4055
|
var StoreInfoprops = props.actions.StoreInfoprops;
|
|
4055
4056
|
var _useState = React.useState(''),
|
|
@@ -4148,7 +4149,8 @@
|
|
|
4148
4149
|
thumbnailPosition: sectionproperties.thumbnailposition == 'Bottom' ? 'bottom' : 'left',
|
|
4149
4150
|
showNav: false,
|
|
4150
4151
|
showPlayButton: false,
|
|
4151
|
-
showFullscreenButton: true
|
|
4152
|
+
showFullscreenButton: true,
|
|
4153
|
+
startIndex: currentshowingimageindex
|
|
4152
4154
|
})), sectionproperties.showShareButton == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4153
4155
|
"class": sectionproperties.thumbnailposition == 'Bottom' ? 'col-lg-12 d-flex justify-content-center flex-column align-items-center p-0 mt-5' : 'col-lg-12 d-flex justify-content-center flex-column align-items-center p-0 mt-2'
|
|
4154
4156
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
@@ -6333,7 +6335,7 @@
|
|
|
6333
6335
|
langdetect: langdetect,
|
|
6334
6336
|
lang: lang,
|
|
6335
6337
|
srcfromprops: props.srcfromprops
|
|
6336
|
-
}, _defineProperty__default["default"](_ref2, "returnpolicyobj", returnpolicyobj), _defineProperty__default["default"](_ref2, "productinfo_cssstyles", productinfo_cssstyles), _defineProperty__default["default"](_ref2, "addtocartfunc", addtocartfunc), _defineProperty__default["default"](_ref2, "selectproductoptionvalue", selectproductoptionvalue), _defineProperty__default["default"](_ref2, "clearchoosenvaluesbutkeepcurrentvalue", clearchoosenvaluesbutkeepcurrentvalue), _defineProperty__default["default"](_ref2, "productimagesarray", productimagesarray), _defineProperty__default["default"](_ref2, "fetchProductInfoQueryContext", fetchProductInfoQueryContext), _defineProperty__default["default"](_ref2, "sectionproperties", sectionproperties), _defineProperty__default["default"](_ref2, "addtocardpayloadobj", addtocardpayloadobj), _defineProperty__default["default"](_ref2, "ProductInfoObj", ProductInfoObj), _defineProperty__default["default"](_ref2, "setaddtocardpayloadobj", setaddtocardpayloadobj), _defineProperty__default["default"](_ref2, "routingcountext", routingcountext), _defineProperty__default["default"](_ref2, "AddtoCartMutationContext", AddtoCartMutationContext), _defineProperty__default["default"](_ref2, "authdetailsContext", authdetailsContext), _defineProperty__default["default"](_ref2, "addtofavoritescontext", addtofavoritescontext), _defineProperty__default["default"](_ref2, "StaticPagesLinksContext", StaticPagesLinksContext), _defineProperty__default["default"](_ref2, "variantindexcompleted", variantindexcompleted), _defineProperty__default["default"](_ref2, "GeneralAPIMutationContext", GeneralAPIMutationContext), _defineProperty__default["default"](_ref2, "NotificationManager", NotificationManager), _defineProperty__default["default"](_ref2, "getprice_discountpriceprops", getprice_discountpriceprops), _defineProperty__default["default"](_ref2, "quantityconditionfoundobjprops", quantityconditionfoundobj), _defineProperty__default["default"](_ref2, "relatedproducts", relatedproducts), _defineProperty__default["default"](_ref2, "getQuantityCondition", getQuantityCondition), _defineProperty__default["default"](_ref2, "StoreInfoprops", StoreInfo), _defineProperty__default["default"](_ref2, "templatepropcontext", templatepropcontext), _defineProperty__default["default"](_ref2, "ikimagecredcontext", ikimagecredcontext), _ref2)
|
|
6338
|
+
}, _defineProperty__default["default"](_ref2, "returnpolicyobj", returnpolicyobj), _defineProperty__default["default"](_ref2, "productinfo_cssstyles", productinfo_cssstyles), _defineProperty__default["default"](_ref2, "addtocartfunc", addtocartfunc), _defineProperty__default["default"](_ref2, "selectproductoptionvalue", selectproductoptionvalue), _defineProperty__default["default"](_ref2, "clearchoosenvaluesbutkeepcurrentvalue", clearchoosenvaluesbutkeepcurrentvalue), _defineProperty__default["default"](_ref2, "productimagesarray", productimagesarray), _defineProperty__default["default"](_ref2, "fetchProductInfoQueryContext", fetchProductInfoQueryContext), _defineProperty__default["default"](_ref2, "sectionproperties", sectionproperties), _defineProperty__default["default"](_ref2, "addtocardpayloadobj", addtocardpayloadobj), _defineProperty__default["default"](_ref2, "ProductInfoObj", ProductInfoObj), _defineProperty__default["default"](_ref2, "currentshowingimageindex", currentshowingimageindex), _defineProperty__default["default"](_ref2, "setcurrentshowingimageindex", setcurrentshowingimageindex), _defineProperty__default["default"](_ref2, "setaddtocardpayloadobj", setaddtocardpayloadobj), _defineProperty__default["default"](_ref2, "routingcountext", routingcountext), _defineProperty__default["default"](_ref2, "AddtoCartMutationContext", AddtoCartMutationContext), _defineProperty__default["default"](_ref2, "authdetailsContext", authdetailsContext), _defineProperty__default["default"](_ref2, "addtofavoritescontext", addtofavoritescontext), _defineProperty__default["default"](_ref2, "StaticPagesLinksContext", StaticPagesLinksContext), _defineProperty__default["default"](_ref2, "variantindexcompleted", variantindexcompleted), _defineProperty__default["default"](_ref2, "GeneralAPIMutationContext", GeneralAPIMutationContext), _defineProperty__default["default"](_ref2, "NotificationManager", NotificationManager), _defineProperty__default["default"](_ref2, "getprice_discountpriceprops", getprice_discountpriceprops), _defineProperty__default["default"](_ref2, "quantityconditionfoundobjprops", quantityconditionfoundobj), _defineProperty__default["default"](_ref2, "relatedproducts", relatedproducts), _defineProperty__default["default"](_ref2, "getQuantityCondition", getQuantityCondition), _defineProperty__default["default"](_ref2, "StoreInfoprops", StoreInfo), _defineProperty__default["default"](_ref2, "templatepropcontext", templatepropcontext), _defineProperty__default["default"](_ref2, "ikimagecredcontext", ikimagecredcontext), _ref2)
|
|
6337
6339
|
}), props.srcfromprops != 'templatedraftrouter' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6338
6340
|
className: sectionproperties.card_marginLeft != 0 ? ' col-lg-12 p-0 pl-lg-3 pr-lg-3 pl-md-4 pr-md-4 pl-sm-1 pr-sm-1 ' : ' col-lg-12 p-sm-0 ',
|
|
6339
6341
|
style: {
|
|
@@ -9507,7 +9509,7 @@
|
|
|
9507
9509
|
className: "col-lg-6 col-md-6 col-sm-6 p-0"
|
|
9508
9510
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
9509
9511
|
className: "".concat(checkoutstyles.summarysectionstyles, " ") + ' m-0 p-0 d-flex align-items-start wordbreak '
|
|
9510
|
-
},
|
|
9512
|
+
}, langdetect == 'en' ? sectionproperties.shippingfeestitle_en : sectionproperties.shippingfeestitle_ar)), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue50 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue50 === void 0 || (_fetchcustomercartQue50 = _fetchcustomercartQue50.data) === null || _fetchcustomercartQue50 === void 0 ? void 0 : _fetchcustomercartQue50.customercart.zoneexists) && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
9511
9513
|
className: "col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0"
|
|
9512
9514
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
9513
9515
|
className: langdetect == 'en' ? "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-right ' : "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-left '
|
|
@@ -9930,7 +9932,7 @@
|
|
|
9930
9932
|
className: "col-lg-12 mb-3"
|
|
9931
9933
|
}, /*#__PURE__*/React__default["default"].createElement("label", {
|
|
9932
9934
|
className: "".concat(checkoutstyles.input_label_name) + ' mb-2 d-flex align-items-start '
|
|
9933
|
-
}, langdetect == 'en' ?
|
|
9935
|
+
}, langdetect == 'en' ? sectionproperties.notesinen : sectionproperties.notesinar), /*#__PURE__*/React__default["default"].createElement(TextareaAutosize__default["default"], {
|
|
9934
9936
|
type: 'text',
|
|
9935
9937
|
className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
|
|
9936
9938
|
value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue63 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue63 === void 0 || (_fetchcustomercartQue63 = _fetchcustomercartQue63.data) === null || _fetchcustomercartQue63 === void 0 ? void 0 : _fetchcustomercartQue63.customercart.notes,
|
|
@@ -17124,11 +17126,11 @@
|
|
|
17124
17126
|
} else if (item.tabexsectioninfo.sectioncompname == 'ModernProductCard') {
|
|
17125
17127
|
bootstapclass = ' col-xl-12 p-0 col-lg-12 col-md-12 col-sm-12 d-flex justify-content-center p-0 ';
|
|
17126
17128
|
} else if (item.tabexsectioninfo.sectioncompname == 'MenuCard') {
|
|
17127
|
-
bootstapclass = ' col-xl-12 p-0 col-lg-12 col-md-12
|
|
17129
|
+
bootstapclass = ' col-xl-12 p-0 col-lg-12 col-md-12 d-flex justify-content-center p-0 ' + sectionproperties.numberOfColsverticalresp;
|
|
17128
17130
|
} else if (item.tabexsectioninfo.sectioncompname == 'ServiceCard') {
|
|
17129
17131
|
bootstapclass = ' col-xl-12 p-0 col-lg-12 col-md-12 col-sm-12 d-flex justify-content-center p-0 ';
|
|
17130
17132
|
} else if (item.tabexsectioninfo.sectioncompname == 'StylishProductCard') {
|
|
17131
|
-
bootstapclass = ' col-xl-12 p-0 col-lg-12 col-md-6
|
|
17133
|
+
bootstapclass = ' col-xl-12 p-0 col-lg-12 col-md-6 d-flex justify-content-center p-0 col-sm-' + sectionproperties.numberOfColsverticalresp;
|
|
17132
17134
|
} else if (item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularbg') {
|
|
17133
17135
|
bootstapclass = ' col-xl-12 p-0 col-lg-12 col-md-3 col-sm-6 d-flex justify-content-center p-0 ';
|
|
17134
17136
|
} else if (item.tabexsectioninfo.sectioncompname == 'Card20') {
|
|
@@ -17152,11 +17154,11 @@
|
|
|
17152
17154
|
} else if (item.tabexsectioninfo.sectioncompname == 'ModernProductCard') {
|
|
17153
17155
|
bootstapclass = ' col-xl-6 p-0 col-lg-6 col-md-6 col-sm-12 d-flex justify-content-center p-0 ';
|
|
17154
17156
|
} else if (item.tabexsectioninfo.sectioncompname == 'MenuCard') {
|
|
17155
|
-
bootstapclass = ' col-xl-6 p-0 col-lg-6 col-md-12
|
|
17157
|
+
bootstapclass = ' col-xl-6 p-0 col-lg-6 col-md-12 d-flex justify-content-center p-0 col-sm-' + sectionproperties.numberOfColsverticalresp;
|
|
17156
17158
|
} else if (item.tabexsectioninfo.sectioncompname == 'ServiceCard') {
|
|
17157
17159
|
bootstapclass = ' col-xl-6 p-0 col-lg-6 col-md-12 col-sm-12 d-flex justify-content-center p-0 ';
|
|
17158
17160
|
} else if (item.tabexsectioninfo.sectioncompname == 'StylishProductCard') {
|
|
17159
|
-
bootstapclass = ' col-xl-6 p-0 col-lg-6 col-md-6
|
|
17161
|
+
bootstapclass = ' col-xl-6 p-0 col-lg-6 col-md-6 d-flex justify-content-center p-0 col-sm-' + sectionproperties.numberOfColsverticalresp;
|
|
17160
17162
|
} else if (item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularbg') {
|
|
17161
17163
|
bootstapclass = ' col-xl-6 p-0 col-lg-6 col-md-3 col-sm-6 d-flex justify-content-center p-0 ';
|
|
17162
17164
|
} else if (item.tabexsectioninfo.sectioncompname == 'Card20') {
|
|
@@ -17180,11 +17182,11 @@
|
|
|
17180
17182
|
} else if (item.tabexsectioninfo.sectioncompname == 'ModernProductCard') {
|
|
17181
17183
|
bootstapclass = ' col-xl-4 p-0 col-lg-4 col-md-4 col-sm-12 d-flex justify-content-center p-0 ';
|
|
17182
17184
|
} else if (item.tabexsectioninfo.sectioncompname == 'MenuCard') {
|
|
17183
|
-
bootstapclass = ' col-xl-4 p-0 col-lg-4 col-md-12
|
|
17185
|
+
bootstapclass = ' col-xl-4 p-0 col-lg-4 col-md-12 d-flex justify-content-center p-0 col-sm-' + sectionproperties.numberOfColsverticalresp;
|
|
17184
17186
|
} else if (item.tabexsectioninfo.sectioncompname == 'ServiceCard') {
|
|
17185
17187
|
bootstapclass = ' col-xl-4 p-0 col-lg-4 col-md-12 col-sm-12 d-flex justify-content-center p-0 ';
|
|
17186
17188
|
} else if (item.tabexsectioninfo.sectioncompname == 'StylishProductCard') {
|
|
17187
|
-
bootstapclass = ' col-xl-4 p-0 col-lg-4 col-md-6
|
|
17189
|
+
bootstapclass = ' col-xl-4 p-0 col-lg-4 col-md-6 d-flex justify-content-center p-0 col-sm-' + sectionproperties.numberOfColsverticalresp;
|
|
17188
17190
|
} else if (item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularbg') {
|
|
17189
17191
|
bootstapclass = ' col-xl-4 p-0 col-lg-4 col-md-3 col-sm-6 d-flex justify-content-center p-0 ';
|
|
17190
17192
|
} else if (item.tabexsectioninfo.sectioncompname == 'Card20') {
|
|
@@ -17208,11 +17210,11 @@
|
|
|
17208
17210
|
} else if (item.tabexsectioninfo.sectioncompname == 'ModernProductCard') {
|
|
17209
17211
|
bootstapclass = ' col-xl-3 p-0 col-lg-4 col-md-6 col-sm-12 d-flex justify-content-center p-0 ';
|
|
17210
17212
|
} else if (item.tabexsectioninfo.sectioncompname == 'MenuCard') {
|
|
17211
|
-
bootstapclass = ' col-xl-3 p-0 col-lg-3 col-md-12
|
|
17213
|
+
bootstapclass = ' col-xl-3 p-0 col-lg-3 col-md-12 d-flex justify-content-center p-0 col-sm-' + sectionproperties.numberOfColsverticalresp;
|
|
17212
17214
|
} else if (item.tabexsectioninfo.sectioncompname == 'ServiceCard') {
|
|
17213
17215
|
bootstapclass = ' col-xl-3 p-0 col-lg-3 col-md-12 col-sm-12 d-flex justify-content-center p-0 ';
|
|
17214
17216
|
} else if (item.tabexsectioninfo.sectioncompname == 'StylishProductCard') {
|
|
17215
|
-
bootstapclass = ' col-xl-3 p-0 col-lg-3 col-md-6
|
|
17217
|
+
bootstapclass = ' col-xl-3 p-0 col-lg-3 col-md-6 d-flex justify-content-center p-0 col-sm' + sectionproperties.numberOfColsverticalresp;
|
|
17216
17218
|
} else if (item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularbg') ; else if (item.tabexsectioninfo.sectioncompname == 'Card20') {
|
|
17217
17219
|
bootstapclass = ' col-xl-3 p-0 col-lg-3 col-md-4 col-sm-10 d-flex justify-content-center p-0 ml-sm-auto mr-sm-auto ';
|
|
17218
17220
|
} else if (item.tabexsectioninfo.sectioncompname == 'Simplecategorycardwithtextbelow') {
|
|
@@ -17233,11 +17235,11 @@
|
|
|
17233
17235
|
if (item.tabexsectioninfo.sectioncompname == 'Productccard_with_imageontopleft') {
|
|
17234
17236
|
bootstapclass = ' col-xl-3 col-lg-4 col-md-4 col-sm-6 d-flex justify-content-center p-0 ';
|
|
17235
17237
|
} else if (item.tabexsectioninfo.sectioncompname == 'MenuCard') {
|
|
17236
|
-
bootstapclass = ' col-xl-3 p-0 col-lg-4 col-md-12
|
|
17238
|
+
bootstapclass = ' col-xl-3 p-0 col-lg-4 col-md-12 d-flex justify-content-center p-0 col-sm-' + sectionproperties.numberOfColsverticalresp;
|
|
17237
17239
|
} else if (item.tabexsectioninfo.sectioncompname == 'ServiceCard') {
|
|
17238
17240
|
bootstapclass = ' col-xl-3 p-0 col-lg-4 col-md-12 col-sm-12 d-flex justify-content-center p-0 ';
|
|
17239
17241
|
} else if (item.tabexsectioninfo.sectioncompname == 'StylishProductCard') {
|
|
17240
|
-
bootstapclass = ' col-xl-3 p-0 col-lg-3 col-md-6
|
|
17242
|
+
bootstapclass = ' col-xl-3 p-0 col-lg-3 col-md-6 d-flex justify-content-center p-0 col-sm-' + sectionproperties.numberOfColsverticalresp;
|
|
17241
17243
|
} else if (item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularbg') {
|
|
17242
17244
|
bootstapclass = ' col-xl-3 p-0 col-lg-3 col-md-3 col-sm-6 d-flex justify-content-center p-0 ';
|
|
17243
17245
|
} else if (item.tabexsectioninfo.sectioncompname == 'Card20') {
|
|
@@ -17257,11 +17259,11 @@
|
|
|
17257
17259
|
} else if (item.tabexsectioninfo.sectioncompname == 'Productccard_with_imageontopleft') {
|
|
17258
17260
|
bootstapclass = ' col-xl-2 col-lg-4 col-md-4 col-sm-6 d-flex justify-content-center p-0 ';
|
|
17259
17261
|
} else if (item.tabexsectioninfo.sectioncompname == 'MenuCard') {
|
|
17260
|
-
bootstapclass = ' col-xl-2 p-0 col-lg-2 col-md-12
|
|
17262
|
+
bootstapclass = ' col-xl-2 p-0 col-lg-2 col-md-12 d-flex justify-content-center p-0 col-sm-' + sectionproperties.numberOfColsverticalresp;
|
|
17261
17263
|
} else if (item.tabexsectioninfo.sectioncompname == 'ServiceCard') {
|
|
17262
17264
|
bootstapclass = ' col-xl-2 p-0 col-lg-2 col-md-12 col-sm-12 d-flex justify-content-center p-0 ';
|
|
17263
17265
|
} else if (item.tabexsectioninfo.sectioncompname == 'StylishProductCard') {
|
|
17264
|
-
bootstapclass = ' col-xl-2 p-0 col-lg-2 col-md-6
|
|
17266
|
+
bootstapclass = ' col-xl-2 p-0 col-lg-2 col-md-6 d-flex justify-content-center p-0 col-sm' + sectionproperties.numberOfColsverticalresp;
|
|
17265
17267
|
} else if (item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularbg') {
|
|
17266
17268
|
bootstapclass = ' col-xl-2 p-0 col-lg-3 col-md-3 col-sm-6 d-flex justify-content-center p-0 ';
|
|
17267
17269
|
} else if (item.tabexsectioninfo.sectioncompname == 'Card20') {
|
|
@@ -19855,12 +19857,13 @@
|
|
|
19855
19857
|
style: {
|
|
19856
19858
|
flex: sectionproperties.searchbar_show == 'Show' ? '' : 1
|
|
19857
19859
|
}
|
|
19858
|
-
},
|
|
19859
|
-
className: 'allcentered m-0 cursor-pointer'
|
|
19860
|
-
}, langdetect == 'ar' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
19860
|
+
}, langdetect == 'en' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
19861
19861
|
className: "".concat(header_cssstyles.languagecontainer) + ' row m-0 w-100 allcentered ',
|
|
19862
19862
|
style: {
|
|
19863
19863
|
direction: 'rtl'
|
|
19864
|
+
},
|
|
19865
|
+
onClick: function onClick() {
|
|
19866
|
+
setlang('ar');
|
|
19864
19867
|
}
|
|
19865
19868
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
19866
19869
|
"class": "m-0 p-0 font-weight-500"
|
|
@@ -19868,10 +19871,13 @@
|
|
|
19868
19871
|
className: langdetect == 'en' ? 'h-100 allcentered mr-1' : 'h-100 allcentered ml-1'
|
|
19869
19872
|
}, /*#__PURE__*/React__default["default"].createElement(BiChevronDown.BiChevronDown, {
|
|
19870
19873
|
size: 20
|
|
19871
|
-
}))), langdetect == '
|
|
19874
|
+
}))), langdetect == 'ar' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
19872
19875
|
className: "".concat(header_cssstyles.languagecontainer) + ' row m-0 w-100 allcentered ',
|
|
19873
19876
|
style: {
|
|
19874
19877
|
direction: 'ltr'
|
|
19878
|
+
},
|
|
19879
|
+
onClick: function onClick() {
|
|
19880
|
+
setlang('en');
|
|
19875
19881
|
}
|
|
19876
19882
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
19877
19883
|
"class": "m-0 p-0 font-weight-500 mr-1"
|
|
@@ -19879,45 +19885,7 @@
|
|
|
19879
19885
|
className: "h-100 allcentered"
|
|
19880
19886
|
}, /*#__PURE__*/React__default["default"].createElement(BiChevronDown.BiChevronDown, {
|
|
19881
19887
|
size: 20
|
|
19882
|
-
}))))), /*#__PURE__*/React__default["default"].createElement(
|
|
19883
|
-
className: "".concat(header_cssstyles.dropdownitem),
|
|
19884
|
-
onClick: function onClick() {
|
|
19885
|
-
setlang('ar');
|
|
19886
|
-
}
|
|
19887
|
-
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
19888
|
-
className: "".concat(header_cssstyles.dropdownitemcontainer) + ' d-flex align-items-center m-0 p-0 '
|
|
19889
|
-
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
19890
|
-
className: "".concat(header_cssstyles.dropdownitem) + ' dropdownitem d-flex align-items-center m-0 p-0 '
|
|
19891
|
-
}, sectionproperties.flagiconhederresp == 'Flag' && /*#__PURE__*/React__default["default"].createElement("img", {
|
|
19892
|
-
src: 'https://tabex-co.com/storage/StaticImages/egyptflag.png',
|
|
19893
|
-
style: {
|
|
19894
|
-
maxWidth: '2vh',
|
|
19895
|
-
maxHeight: '2vh'
|
|
19896
|
-
}
|
|
19897
|
-
}), sectionproperties.flagiconhederresp != 'Flag' && /*#__PURE__*/React__default["default"].createElement(BiGlobe.BiGlobe, {
|
|
19898
|
-
size: 15
|
|
19899
|
-
}), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
19900
|
-
className: "ml-2 mr-2"
|
|
19901
|
-
}, lang.arabic)))), /*#__PURE__*/React__default["default"].createElement(Dropdown__default["default"].Divider, null), /*#__PURE__*/React__default["default"].createElement(Dropdown__default["default"].Item, {
|
|
19902
|
-
className: "".concat(header_cssstyles.dropdownitem),
|
|
19903
|
-
onClick: function onClick() {
|
|
19904
|
-
setlang('en');
|
|
19905
|
-
}
|
|
19906
|
-
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
19907
|
-
className: "".concat(header_cssstyles.dropdownitemcontainer) + ' d-flex align-items-center m-0 p-0 '
|
|
19908
|
-
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
19909
|
-
className: "".concat(header_cssstyles.dropdownitem) + ' dropdownitem d-flex align-items-center m-0 p-0 '
|
|
19910
|
-
}, sectionproperties.flagiconhederresp == 'Flag' && /*#__PURE__*/React__default["default"].createElement("img", {
|
|
19911
|
-
src: 'https://tabex-co.com/storage/StaticImages/usflag.png',
|
|
19912
|
-
style: {
|
|
19913
|
-
maxWidth: '2vh',
|
|
19914
|
-
maxHeight: '2vh'
|
|
19915
|
-
}
|
|
19916
|
-
}), sectionproperties.flagiconhederresp != 'Flag' && /*#__PURE__*/React__default["default"].createElement(BiGlobe.BiGlobe, {
|
|
19917
|
-
size: 15
|
|
19918
|
-
}), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
19919
|
-
className: "ml-2 mr-2"
|
|
19920
|
-
}, lang.english)))))))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
19888
|
+
}))))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
19921
19889
|
className: "row m-0 w-100 pt-2 filter d-none",
|
|
19922
19890
|
id: "filter"
|
|
19923
19891
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -21397,7 +21365,7 @@
|
|
|
21397
21365
|
fontWeight: 500,
|
|
21398
21366
|
fontSize: '15px',
|
|
21399
21367
|
transition: '.3s',
|
|
21400
|
-
color:
|
|
21368
|
+
color: sectionproperties.header_fontColorresponsive
|
|
21401
21369
|
}
|
|
21402
21370
|
}, langdetect == 'en' ? 'MENU' : 'القائمة')), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
21403
21371
|
className: 'col-6 allcentered py-3',
|
|
@@ -21414,7 +21382,7 @@
|
|
|
21414
21382
|
fontWeight: 500,
|
|
21415
21383
|
fontSize: '15px',
|
|
21416
21384
|
transition: '.3s',
|
|
21417
|
-
color:
|
|
21385
|
+
color: sectionproperties.header_fontColorresponsive
|
|
21418
21386
|
}
|
|
21419
21387
|
}, langdetect == 'en' ? 'SHOP' : 'تسوق'))))), /*#__PURE__*/React__default["default"].createElement(reactBootstrap.Offcanvas.Body, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
21420
21388
|
style: {
|
|
@@ -25566,7 +25534,7 @@
|
|
|
25566
25534
|
function ownKeys$1S(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; }
|
|
25567
25535
|
function _objectSpread$1S(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1S(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1S(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
25568
25536
|
var CTAHeader = function CTAHeader(props) {
|
|
25569
|
-
var _logoarrayofobjects$, _logoarrayofobjects$2, _authdetailsContext$c, _authdetailsContext$c2, _fetchcustomercartQue, _fetchcustomercartQue2, _authdetailsContext$
|
|
25537
|
+
var _authdetailsContext$i2, _logoarrayofobjects$, _logoarrayofobjects$2, _authdetailsContext$c, _authdetailsContext$c2, _fetchcustomercartQue, _fetchcustomercartQue2, _authdetailsContext$i3, _authdetailsContext$i6, _authdetailsContext$i9, _authdetailsContext$i12, _authdetailsContext$i14, _authdetailsContext$i16, _authdetailsContext$i19, _authdetailsContext$i22;
|
|
25570
25538
|
var actions = props.actions;
|
|
25571
25539
|
var lang = props.actions.lang;
|
|
25572
25540
|
var langdetect = props.actions.langdetect;
|
|
@@ -26078,7 +26046,42 @@
|
|
|
26078
26046
|
zIndex: 1000,
|
|
26079
26047
|
background: sectionproperties.header_backgroundColor
|
|
26080
26048
|
}
|
|
26081
|
-
}, /*#__PURE__*/React__default["default"].createElement("
|
|
26049
|
+
}, /*#__PURE__*/React__default["default"].createElement("a", {
|
|
26050
|
+
href: 'tel:' + (authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.CuContactphonenumber),
|
|
26051
|
+
target: '_self',
|
|
26052
|
+
style: {
|
|
26053
|
+
position: 'fixed',
|
|
26054
|
+
bottom: 60,
|
|
26055
|
+
right: 10,
|
|
26056
|
+
zIndex: 999999,
|
|
26057
|
+
transition: 'all 0.3s ease-out'
|
|
26058
|
+
}
|
|
26059
|
+
}, /*#__PURE__*/React__default["default"].createElement("i", {
|
|
26060
|
+
"class": langdetect == 'en' ? 'h-100 d-flex align-items-center justify-content-center mr-2' : 'h-100 d-flex align-items-center justify-content-center ml-2'
|
|
26061
|
+
}, /*#__PURE__*/React__default["default"].createElement(FiPhone.FiPhone, {
|
|
26062
|
+
size: 30,
|
|
26063
|
+
color: sectionproperties.uppersection_iconcolor,
|
|
26064
|
+
style: {
|
|
26065
|
+
transform: langdetect == 'en' ? 'scaleX(1)' : 'scaleX(-1)'
|
|
26066
|
+
}
|
|
26067
|
+
}))), /*#__PURE__*/React__default["default"].createElement("a", {
|
|
26068
|
+
href: 'https://api.whatsapp.com/send?phone=' + (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i2 = authdetailsContext.instinfo) === null || _authdetailsContext$i2 === void 0 ? void 0 : _authdetailsContext$i2.whatsappnumber),
|
|
26069
|
+
target: '_blank',
|
|
26070
|
+
style: {
|
|
26071
|
+
position: 'fixed',
|
|
26072
|
+
bottom: 10,
|
|
26073
|
+
right: 10,
|
|
26074
|
+
zIndex: 999999,
|
|
26075
|
+
transition: 'all 0.3s ease-out'
|
|
26076
|
+
}
|
|
26077
|
+
}, /*#__PURE__*/React__default["default"].createElement("img", {
|
|
26078
|
+
src: 'https://tabex-co.com/storage/StaticImages/whatsapp.png',
|
|
26079
|
+
style: {
|
|
26080
|
+
width: '40px',
|
|
26081
|
+
height: '40px',
|
|
26082
|
+
cursor: 'pointer'
|
|
26083
|
+
}
|
|
26084
|
+
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
26082
26085
|
"class": "row m-0 w-md-100",
|
|
26083
26086
|
style: {
|
|
26084
26087
|
width: sectionproperties.header_width + 'vw'
|
|
@@ -26386,43 +26389,43 @@
|
|
|
26386
26389
|
"class": header_cssstyles.lowerheader + ' row m-0 w-100 justify-content-center px-2015-4 '
|
|
26387
26390
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
26388
26391
|
"class": "col-lg-3 p-0 d-flex align-items-center justify-content-start"
|
|
26389
|
-
}, sectionproperties.fbbtn_show == 'Show' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
26392
|
+
}, sectionproperties.fbbtn_show == 'Show' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i3 = authdetailsContext.instinfo) === null || _authdetailsContext$i3 === void 0 ? void 0 : _authdetailsContext$i3.facebooklink) != null && sectionproperties.btntype == 'Shop' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
26390
26393
|
"class": "".concat(header_cssstyles.facebook_btn) + ' d-flex align-items-center justify-content-center ',
|
|
26391
26394
|
style: {
|
|
26392
26395
|
marginRight: langdetect == 'en' ? '1rem' : 0,
|
|
26393
26396
|
marginLeft: langdetect == 'ar' ? '1rem' : 0
|
|
26394
26397
|
},
|
|
26395
26398
|
onClick: function onClick() {
|
|
26396
|
-
var _authdetailsContext$
|
|
26397
|
-
if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
26398
|
-
var _authdetailsContext$
|
|
26399
|
-
window.open(authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
26399
|
+
var _authdetailsContext$i4;
|
|
26400
|
+
if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i4 = authdetailsContext.instinfo) === null || _authdetailsContext$i4 === void 0 ? void 0 : _authdetailsContext$i4.facebooklink) != null) {
|
|
26401
|
+
var _authdetailsContext$i5;
|
|
26402
|
+
window.open(authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i5 = authdetailsContext.instinfo) === null || _authdetailsContext$i5 === void 0 ? void 0 : _authdetailsContext$i5.facebooklink, '_blank');
|
|
26400
26403
|
}
|
|
26401
26404
|
}
|
|
26402
26405
|
}, /*#__PURE__*/React__default["default"].createElement(FaFacebookF.FaFacebookF, {
|
|
26403
26406
|
size: sectionproperties.facebkbtnniconfontsize
|
|
26404
|
-
})), sectionproperties.instbtn_show == 'Show' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
26407
|
+
})), sectionproperties.instbtn_show == 'Show' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i6 = authdetailsContext.instinfo) === null || _authdetailsContext$i6 === void 0 ? void 0 : _authdetailsContext$i6.instagramlink) != null && sectionproperties.btntype == 'Shop' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
26405
26408
|
"class": "".concat(header_cssstyles.instgram_btn) + ' d-flex align-items-center justify-content-center ',
|
|
26406
26409
|
style: {
|
|
26407
26410
|
marginRight: langdetect == 'en' ? '1rem' : 0,
|
|
26408
26411
|
marginLeft: langdetect == 'ar' ? '1rem' : 0
|
|
26409
26412
|
},
|
|
26410
26413
|
onClick: function onClick() {
|
|
26411
|
-
var _authdetailsContext$
|
|
26412
|
-
if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
26413
|
-
var _authdetailsContext$
|
|
26414
|
-
window.open(authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
26414
|
+
var _authdetailsContext$i7;
|
|
26415
|
+
if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i7 = authdetailsContext.instinfo) === null || _authdetailsContext$i7 === void 0 ? void 0 : _authdetailsContext$i7.instagramlink) != null) {
|
|
26416
|
+
var _authdetailsContext$i8;
|
|
26417
|
+
window.open(authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i8 = authdetailsContext.instinfo) === null || _authdetailsContext$i8 === void 0 ? void 0 : _authdetailsContext$i8.instagramlink, '_blank');
|
|
26415
26418
|
}
|
|
26416
26419
|
}
|
|
26417
26420
|
}, /*#__PURE__*/React__default["default"].createElement(AiFillInstagram.AiFillInstagram, {
|
|
26418
26421
|
size: sectionproperties.instgrambtniconfontsize
|
|
26419
|
-
})), sectionproperties.youtbtn_show == 'Show' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
26422
|
+
})), sectionproperties.youtbtn_show == 'Show' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i9 = authdetailsContext.instinfo) === null || _authdetailsContext$i9 === void 0 ? void 0 : _authdetailsContext$i9.whatsappnumber) != null && sectionproperties.btntype == 'Shop' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
26420
26423
|
"class": "".concat(header_cssstyles.youtube_btn) + ' d-flex align-items-center justify-content-center ',
|
|
26421
26424
|
onClick: function onClick() {
|
|
26422
|
-
var _authdetailsContext$
|
|
26423
|
-
if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
26424
|
-
var _authdetailsContext$
|
|
26425
|
-
window.open('https://api.whatsapp.com/send?phone=' + (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
26425
|
+
var _authdetailsContext$i10;
|
|
26426
|
+
if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i10 = authdetailsContext.instinfo) === null || _authdetailsContext$i10 === void 0 ? void 0 : _authdetailsContext$i10.whatsappnumber) != null) {
|
|
26427
|
+
var _authdetailsContext$i11;
|
|
26428
|
+
window.open('https://api.whatsapp.com/send?phone=' + (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i11 = authdetailsContext.instinfo) === null || _authdetailsContext$i11 === void 0 ? void 0 : _authdetailsContext$i11.whatsappnumber), '_blank');
|
|
26426
26429
|
}
|
|
26427
26430
|
}
|
|
26428
26431
|
}, /*#__PURE__*/React__default["default"].createElement(FaWhatsapp.FaWhatsapp, {
|
|
@@ -26441,9 +26444,9 @@
|
|
|
26441
26444
|
style: {
|
|
26442
26445
|
width: '80%'
|
|
26443
26446
|
}
|
|
26444
|
-
}, sectionproperties.fetchparenttype == 'Categories' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
26445
|
-
var _authdetailsContext$
|
|
26446
|
-
var fetchedarray = authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
26447
|
+
}, sectionproperties.fetchparenttype == 'Categories' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i12 = authdetailsContext.instinfo) === null || _authdetailsContext$i12 === void 0 || (_authdetailsContext$i12 = _authdetailsContext$i12.instcategories) === null || _authdetailsContext$i12 === void 0 ? void 0 : _authdetailsContext$i12.map(function (item, index) {
|
|
26448
|
+
var _authdetailsContext$i13;
|
|
26449
|
+
var fetchedarray = authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i13 = authdetailsContext.instinfo) === null || _authdetailsContext$i13 === void 0 ? void 0 : _authdetailsContext$i13.instcategories;
|
|
26447
26450
|
if (item.isshowntocustomers == 1) {
|
|
26448
26451
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
26449
26452
|
"class": "w-100"
|
|
@@ -26456,9 +26459,9 @@
|
|
|
26456
26459
|
"class": "w-100"
|
|
26457
26460
|
}, ButtonDropdown(item, index, fetchedarray));
|
|
26458
26461
|
}
|
|
26459
|
-
})), sectionproperties.fetchparenttype == 'Collections' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
26460
|
-
var _authdetailsContext$
|
|
26461
|
-
var fetchedarray = authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
26462
|
+
})), sectionproperties.fetchparenttype == 'Collections' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i14 = authdetailsContext.instinfo) === null || _authdetailsContext$i14 === void 0 || (_authdetailsContext$i14 = _authdetailsContext$i14.instcollections) === null || _authdetailsContext$i14 === void 0 ? void 0 : _authdetailsContext$i14.map(function (item, index) {
|
|
26463
|
+
var _authdetailsContext$i15;
|
|
26464
|
+
var fetchedarray = authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i15 = authdetailsContext.instinfo) === null || _authdetailsContext$i15 === void 0 ? void 0 : _authdetailsContext$i15.instcollections;
|
|
26462
26465
|
if (item.isshowntocustomers == 1) {
|
|
26463
26466
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
26464
26467
|
"class": "w-100"
|
|
@@ -26493,43 +26496,43 @@
|
|
|
26493
26496
|
onClick: function onClick() {
|
|
26494
26497
|
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, false);
|
|
26495
26498
|
}
|
|
26496
|
-
}, langdetect == 'en' ? sectionproperties.generalbtn_content : sectionproperties.slideshow_btn_text_ar), sectionproperties.fbbtn_show == 'Show' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
26499
|
+
}, langdetect == 'en' ? sectionproperties.generalbtn_content : sectionproperties.slideshow_btn_text_ar), sectionproperties.fbbtn_show == 'Show' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i16 = authdetailsContext.instinfo) === null || _authdetailsContext$i16 === void 0 ? void 0 : _authdetailsContext$i16.facebooklink) != null && sectionproperties.btntype == 'Filter' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
26497
26500
|
"class": "".concat(header_cssstyles.facebook_btn) + ' d-flex align-items-center justify-content-center ',
|
|
26498
26501
|
style: {
|
|
26499
26502
|
marginRight: langdetect == 'en' ? '1rem' : 0,
|
|
26500
26503
|
marginLeft: langdetect == 'ar' ? '1rem' : 0
|
|
26501
26504
|
},
|
|
26502
26505
|
onClick: function onClick() {
|
|
26503
|
-
var _authdetailsContext$
|
|
26504
|
-
if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
26505
|
-
var _authdetailsContext$
|
|
26506
|
-
window.open(authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
26506
|
+
var _authdetailsContext$i17;
|
|
26507
|
+
if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i17 = authdetailsContext.instinfo) === null || _authdetailsContext$i17 === void 0 ? void 0 : _authdetailsContext$i17.facebooklink) != null) {
|
|
26508
|
+
var _authdetailsContext$i18;
|
|
26509
|
+
window.open(authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i18 = authdetailsContext.instinfo) === null || _authdetailsContext$i18 === void 0 ? void 0 : _authdetailsContext$i18.facebooklink, '_blank');
|
|
26507
26510
|
}
|
|
26508
26511
|
}
|
|
26509
26512
|
}, /*#__PURE__*/React__default["default"].createElement(FaFacebookF.FaFacebookF, {
|
|
26510
26513
|
size: sectionproperties.facebkbtnniconfontsize
|
|
26511
|
-
})), sectionproperties.instbtn_show == 'Show' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
26514
|
+
})), sectionproperties.instbtn_show == 'Show' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i19 = authdetailsContext.instinfo) === null || _authdetailsContext$i19 === void 0 ? void 0 : _authdetailsContext$i19.instagramlink) != null && sectionproperties.btntype == 'Filter' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
26512
26515
|
"class": "".concat(header_cssstyles.instgram_btn) + ' d-flex align-items-center justify-content-center ',
|
|
26513
26516
|
style: {
|
|
26514
26517
|
marginRight: langdetect == 'en' ? '1rem' : 0,
|
|
26515
26518
|
marginLeft: langdetect == 'ar' ? '1rem' : 0
|
|
26516
26519
|
},
|
|
26517
26520
|
onClick: function onClick() {
|
|
26518
|
-
var _authdetailsContext$
|
|
26519
|
-
if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
26520
|
-
var _authdetailsContext$
|
|
26521
|
-
window.open(authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
26521
|
+
var _authdetailsContext$i20;
|
|
26522
|
+
if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i20 = authdetailsContext.instinfo) === null || _authdetailsContext$i20 === void 0 ? void 0 : _authdetailsContext$i20.instagramlink) != null) {
|
|
26523
|
+
var _authdetailsContext$i21;
|
|
26524
|
+
window.open(authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i21 = authdetailsContext.instinfo) === null || _authdetailsContext$i21 === void 0 ? void 0 : _authdetailsContext$i21.instagramlink, '_blank');
|
|
26522
26525
|
}
|
|
26523
26526
|
}
|
|
26524
26527
|
}, /*#__PURE__*/React__default["default"].createElement(AiFillInstagram.AiFillInstagram, {
|
|
26525
26528
|
size: sectionproperties.instgrambtniconfontsize
|
|
26526
|
-
})), sectionproperties.youtbtn_show == 'Show' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
26529
|
+
})), sectionproperties.youtbtn_show == 'Show' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i22 = authdetailsContext.instinfo) === null || _authdetailsContext$i22 === void 0 ? void 0 : _authdetailsContext$i22.whatsappnumber) != null && sectionproperties.btntype == 'Filter' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
26527
26530
|
"class": "".concat(header_cssstyles.youtube_btn) + ' d-flex align-items-center justify-content-center ',
|
|
26528
26531
|
onClick: function onClick() {
|
|
26529
|
-
var _authdetailsContext$
|
|
26530
|
-
if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
26531
|
-
var _authdetailsContext$
|
|
26532
|
-
window.open('https://api.whatsapp.com/send?phone=' + (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
26532
|
+
var _authdetailsContext$i23;
|
|
26533
|
+
if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i23 = authdetailsContext.instinfo) === null || _authdetailsContext$i23 === void 0 ? void 0 : _authdetailsContext$i23.whatsappnumber) != null) {
|
|
26534
|
+
var _authdetailsContext$i24;
|
|
26535
|
+
window.open('https://api.whatsapp.com/send?phone=' + (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i24 = authdetailsContext.instinfo) === null || _authdetailsContext$i24 === void 0 ? void 0 : _authdetailsContext$i24.whatsappnumber), '_blank');
|
|
26533
26536
|
}
|
|
26534
26537
|
}
|
|
26535
26538
|
}, /*#__PURE__*/React__default["default"].createElement(FaWhatsapp.FaWhatsapp, {
|
|
@@ -26596,6 +26599,9 @@
|
|
|
26596
26599
|
}), sectionproperties.responsiveheaderstyle == 'Style 2' && /*#__PURE__*/React__default["default"].createElement(HeaderresponsiveStyle2, {
|
|
26597
26600
|
sectionpropertiesprops: sectionproperties,
|
|
26598
26601
|
actions: actions
|
|
26602
|
+
}), sectionproperties.responsiveheaderstyle == 'Style 2 With Subheader' && /*#__PURE__*/React__default["default"].createElement(HeaderresponsiveStyle2, {
|
|
26603
|
+
sectionpropertiesprops: sectionproperties,
|
|
26604
|
+
actions: actions
|
|
26599
26605
|
}))));
|
|
26600
26606
|
};
|
|
26601
26607
|
|
|
@@ -66546,7 +66552,7 @@
|
|
|
66546
66552
|
function ownKeys$l(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; }
|
|
66547
66553
|
function _objectSpread$l(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$l(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$l(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
66548
66554
|
var MenuCard = function MenuCard(props) {
|
|
66549
|
-
var _css;
|
|
66555
|
+
var _css, _css2;
|
|
66550
66556
|
var _useState = React.useState(''),
|
|
66551
66557
|
_useState2 = _slicedToArray__default["default"](_useState, 2),
|
|
66552
66558
|
sectionproperties = _useState2[0],
|
|
@@ -66562,25 +66568,12 @@
|
|
|
66562
66568
|
var addtofavoritescontext = props.actions.addtofavoritescontext;
|
|
66563
66569
|
var setProductIdProdutInfoModalContext = props.actions.setProductIdProdutInfoModalContext;
|
|
66564
66570
|
var AddtoCartContext = props.actions.AddtoCartContext;
|
|
66565
|
-
props.actions.AddtoCartMutationContext;
|
|
66571
|
+
var AddtoCartMutationContext = props.actions.AddtoCartMutationContext;
|
|
66566
66572
|
var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
|
|
66567
66573
|
var routingcountext = props.actions.routingcountext;
|
|
66568
66574
|
var cardonclickfunctionContext = props.actions.cardonclickfunctionContext;
|
|
66569
66575
|
var ikimagecredcontext = props.actions.ikimagecredcontext;
|
|
66570
66576
|
var NotificationManager = NotificationManager;
|
|
66571
|
-
var updatequantity = function updatequantity(type) {
|
|
66572
|
-
var tempitem = _objectSpread$l({}, item);
|
|
66573
|
-
tempitem.quantity = parseInt(tempitem.quantity);
|
|
66574
|
-
if (type == 'add') {
|
|
66575
|
-
tempitem.quantity = tempitem.quantity + 1;
|
|
66576
|
-
} else if (type == 'remove') {
|
|
66577
|
-
tempitem.quantity = tempitem.quantity - 1;
|
|
66578
|
-
}
|
|
66579
|
-
if (tempitem.quantity <= 0) {
|
|
66580
|
-
tempitem.quantity = 0;
|
|
66581
|
-
}
|
|
66582
|
-
setitem(_objectSpread$l({}, tempitem));
|
|
66583
|
-
};
|
|
66584
66577
|
React.useEffect(function () {
|
|
66585
66578
|
if (props.srcfrom == 'addsectionform') {
|
|
66586
66579
|
var secpropobj = {};
|
|
@@ -66608,31 +66601,33 @@
|
|
|
66608
66601
|
divContainer.innerHTML = html;
|
|
66609
66602
|
return divContainer.textContent || divContainer.innerText || '';
|
|
66610
66603
|
};
|
|
66611
|
-
|
|
66612
|
-
|
|
66613
|
-
|
|
66614
|
-
|
|
66615
|
-
|
|
66616
|
-
|
|
66617
|
-
|
|
66618
|
-
|
|
66619
|
-
|
|
66620
|
-
|
|
66621
|
-
|
|
66622
|
-
|
|
66623
|
-
|
|
66624
|
-
|
|
66625
|
-
|
|
66626
|
-
|
|
66627
|
-
|
|
66628
|
-
|
|
66629
|
-
|
|
66630
|
-
|
|
66631
|
-
|
|
66632
|
-
|
|
66633
|
-
|
|
66634
|
-
|
|
66635
|
-
}
|
|
66604
|
+
// const addtocartfunc = () => {
|
|
66605
|
+
// const addtocardpayloadobj = {
|
|
66606
|
+
// functype: 'add',
|
|
66607
|
+
// productid: item.productid,
|
|
66608
|
+
// variantid: '',
|
|
66609
|
+
// quantity: item.quantity,
|
|
66610
|
+
// };
|
|
66611
|
+
// var runfunc = false;
|
|
66612
|
+
// if (addtocardpayloadobj.productid.length != 0 && addtocardpayloadobj.quantity > 0) {
|
|
66613
|
+
// if (item.hasvariants == 1) {
|
|
66614
|
+
// if (addtocardpayloadobj.variantid.length != 0) {
|
|
66615
|
+
// runfunc = true;
|
|
66616
|
+
// } else {
|
|
66617
|
+
// NotificationManager.warning('', 'Please Choose Product Options');
|
|
66618
|
+
// }
|
|
66619
|
+
// } else {
|
|
66620
|
+
// runfunc = true;
|
|
66621
|
+
// }
|
|
66622
|
+
// } else {
|
|
66623
|
+
// NotificationManager.warning('', 'Please Choose Quantity');
|
|
66624
|
+
// }
|
|
66625
|
+
|
|
66626
|
+
// if (runfunc == true) {
|
|
66627
|
+
// AddtoCartContext(addtocardpayloadobj);
|
|
66628
|
+
// }
|
|
66629
|
+
// };
|
|
66630
|
+
|
|
66636
66631
|
var card_cssstyles = {
|
|
66637
66632
|
productcard: glamor.css({
|
|
66638
66633
|
background: sectionproperties.backgroundColortransparent == 'Transparent' ? 'transparent' : sectionproperties.backgroundColor,
|
|
@@ -66654,7 +66649,7 @@
|
|
|
66654
66649
|
transition: '.3s',
|
|
66655
66650
|
color: sectionproperties.prodNameColor
|
|
66656
66651
|
}),
|
|
66657
|
-
productcardimagecont: glamor.css({
|
|
66652
|
+
productcardimagecont: glamor.css((_css = {
|
|
66658
66653
|
position: 'relative',
|
|
66659
66654
|
overflow: 'hidden',
|
|
66660
66655
|
background: sectionproperties.image_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.image_bgcolor,
|
|
@@ -66663,8 +66658,12 @@
|
|
|
66663
66658
|
borderBottomRightRadius: langdetect == 'en' ? sectionproperties.image_borderBottomRightRadius + 'px' : sectionproperties.image_borderBottomLeftRadius + 'px',
|
|
66664
66659
|
borderTopLeftRadius: langdetect == 'en' ? sectionproperties.image_bordertopleftradius + 'px' : sectionproperties.image_bordertoprightradius + 'px',
|
|
66665
66660
|
borderTopRightRadius: langdetect == 'en' ? sectionproperties.image_bordertoprightradius + 'px' : sectionproperties.image_bordertopleftradius + 'px',
|
|
66666
|
-
transition: '.3s'
|
|
66667
|
-
|
|
66661
|
+
transition: '.3s',
|
|
66662
|
+
height: sectionproperties.image_height + 'px',
|
|
66663
|
+
width: sectionproperties.image_width + 'px'
|
|
66664
|
+
}, _defineProperty__default["default"](_css, "borderBottomLeftRadius", langdetect == 'en' ? sectionproperties.image_borderBottomLeftRadius + 'px' : sectionproperties.image_borderBottomRightRadius + 'px'), _defineProperty__default["default"](_css, "borderBottomRightRadius", langdetect == 'en' ? sectionproperties.image_borderBottomRightRadius + 'px' : sectionproperties.image_borderBottomLeftRadius + 'px'), _defineProperty__default["default"](_css, "borderTopLeftRadius", langdetect == 'en' ? sectionproperties.image_bordertopleftradius + 'px' : sectionproperties.image_bordertoprightradius + 'px'), _defineProperty__default["default"](_css, "borderTopRightRadius", langdetect == 'en' ? sectionproperties.image_bordertoprightradius + 'px' : sectionproperties.image_bordertopleftradius + 'px'), _defineProperty__default["default"](_css, "overflow", 'hidden'), _defineProperty__default["default"](_css, "cursor", 'pointer'), _defineProperty__default["default"](_css, '@media (max-width: 800px)', {
|
|
66665
|
+
width: sectionproperties.image_width + '%'
|
|
66666
|
+
}), _css)),
|
|
66668
66667
|
productNameStyles: glamor.css({
|
|
66669
66668
|
fontSize: sectionproperties.prodNameFontSize + 'px',
|
|
66670
66669
|
textTransform: sectionproperties.prodNameTextTranform,
|
|
@@ -66723,11 +66722,11 @@
|
|
|
66723
66722
|
color: sectionproperties.cartBtnTextcoloronhover
|
|
66724
66723
|
}
|
|
66725
66724
|
}),
|
|
66726
|
-
quantitybtn: glamor.css((
|
|
66725
|
+
quantitybtn: glamor.css((_css2 = {
|
|
66727
66726
|
flex: 1,
|
|
66728
66727
|
border: sectionproperties.quantitybtnborderwidth + 'px solid ' + sectionproperties.quantitybtnbordercolor,
|
|
66729
66728
|
height: sectionproperties.quantitybtn_height + 'px'
|
|
66730
|
-
}, _defineProperty__default["default"](
|
|
66729
|
+
}, _defineProperty__default["default"](_css2, "height", '40px'), _defineProperty__default["default"](_css2, "display", 'flex'), _defineProperty__default["default"](_css2, "flexDirection", 'row'), _defineProperty__default["default"](_css2, "overflow", 'hidden'), _defineProperty__default["default"](_css2, "borderRadius", sectionproperties.quantitybtn_borderradius + 'px'), _defineProperty__default["default"](_css2, "background", sectionproperties.quantitybtn_bgcolor), _defineProperty__default["default"](_css2, "alignItems", 'center'), _defineProperty__default["default"](_css2, "justifyContent", 'center'), _defineProperty__default["default"](_css2, "margin", 0), _defineProperty__default["default"](_css2, "position", 'relative'), _defineProperty__default["default"](_css2, "fontWeight", sectionproperties.quantitybtn_textfontweight), _defineProperty__default["default"](_css2, "color", sectionproperties.quantitybtn_textcolor), _defineProperty__default["default"](_css2, "fontSize", sectionproperties.quantitybtn_textfontsize + 'px'), _css2)),
|
|
66731
66730
|
quantitybtn_text: glamor.css({
|
|
66732
66731
|
margin: 'auto'
|
|
66733
66732
|
}),
|
|
@@ -66781,6 +66780,51 @@
|
|
|
66781
66780
|
marginBottom: sectionproperties.descriptionMarginBottom + 'px'
|
|
66782
66781
|
})
|
|
66783
66782
|
};
|
|
66783
|
+
var addtocartfunc = function addtocartfunc(type, quantity) {
|
|
66784
|
+
var addtocardpayloadobj = {
|
|
66785
|
+
functype: 'add',
|
|
66786
|
+
productid: item.productid,
|
|
66787
|
+
variantid: '',
|
|
66788
|
+
quantity: quantity
|
|
66789
|
+
};
|
|
66790
|
+
var runfunc = false;
|
|
66791
|
+
if (addtocardpayloadobj.productid.length != 0 && addtocardpayloadobj.quantity > 0) {
|
|
66792
|
+
if (item.hasvariants == 1) {
|
|
66793
|
+
if (addtocardpayloadobj.variantid.length != 0) {
|
|
66794
|
+
runfunc = true;
|
|
66795
|
+
} else {
|
|
66796
|
+
NotificationManager.warning('', langdetect == 'en' ? 'Please Choose Product Options' : 'من فضلك اختر متغير');
|
|
66797
|
+
}
|
|
66798
|
+
} else {
|
|
66799
|
+
runfunc = true;
|
|
66800
|
+
}
|
|
66801
|
+
} else {
|
|
66802
|
+
NotificationManager.warning('', langdetect == 'en' ? 'Please Choose Quantity' : 'من فضلك اختر الكمية');
|
|
66803
|
+
}
|
|
66804
|
+
if (runfunc == true) {
|
|
66805
|
+
AddtoCartContext(addtocardpayloadobj);
|
|
66806
|
+
}
|
|
66807
|
+
};
|
|
66808
|
+
var addtocartbuttonrender = function addtocartbuttonrender() {
|
|
66809
|
+
if (AddtoCartMutationContext.isLoading) {
|
|
66810
|
+
var _AddtoCartMutationCon;
|
|
66811
|
+
if ((AddtoCartMutationContext === null || AddtoCartMutationContext === void 0 || (_AddtoCartMutationCon = AddtoCartMutationContext.variables) === null || _AddtoCartMutationCon === void 0 ? void 0 : _AddtoCartMutationCon.productid) == item.productid) {
|
|
66812
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
66813
|
+
"class": ' d-flex align-items-center justify-content-center '
|
|
66814
|
+
}, /*#__PURE__*/React__default["default"].createElement(reactCssfxLoading.CircularProgress, {
|
|
66815
|
+
color: '#000',
|
|
66816
|
+
width: "20px",
|
|
66817
|
+
height: "20px",
|
|
66818
|
+
duration: "1s"
|
|
66819
|
+
}));
|
|
66820
|
+
} else {
|
|
66821
|
+
return item.quantity;
|
|
66822
|
+
}
|
|
66823
|
+
}
|
|
66824
|
+
if (!AddtoCartMutationContext.isLoading) {
|
|
66825
|
+
return item.quantity;
|
|
66826
|
+
}
|
|
66827
|
+
};
|
|
66784
66828
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
66785
66829
|
"class": "row m-0 w-100 pl-sm-2 pr-sm-2",
|
|
66786
66830
|
style: {
|
|
@@ -66800,16 +66844,7 @@
|
|
|
66800
66844
|
}
|
|
66801
66845
|
},
|
|
66802
66846
|
"class": langdetect == 'en' ? "".concat(card_cssstyles.productcardimagecont) + ' d-flex justify-content-start mr-2 ' : "".concat(card_cssstyles.productcardimagecont) + ' d-flex justify-content-start ml-2 ',
|
|
66803
|
-
style: {
|
|
66804
|
-
height: sectionproperties.image_height + 'px',
|
|
66805
|
-
width: sectionproperties.image_width + 'px',
|
|
66806
|
-
borderBottomLeftRadius: langdetect == 'en' ? sectionproperties.image_borderBottomLeftRadius + 'px' : sectionproperties.image_borderBottomRightRadius + 'px',
|
|
66807
|
-
borderBottomRightRadius: langdetect == 'en' ? sectionproperties.image_borderBottomRightRadius + 'px' : sectionproperties.image_borderBottomLeftRadius + 'px',
|
|
66808
|
-
borderTopLeftRadius: langdetect == 'en' ? sectionproperties.image_bordertopleftradius + 'px' : sectionproperties.image_bordertoprightradius + 'px',
|
|
66809
|
-
borderTopRightRadius: langdetect == 'en' ? sectionproperties.image_bordertoprightradius + 'px' : sectionproperties.image_bordertopleftradius + 'px',
|
|
66810
|
-
overflow: 'hidden',
|
|
66811
|
-
cursor: 'pointer'
|
|
66812
|
-
}
|
|
66847
|
+
style: {}
|
|
66813
66848
|
}, /*#__PURE__*/React__default["default"].createElement(Imagekitimagecomp, {
|
|
66814
66849
|
urlEndpoint: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint,
|
|
66815
66850
|
publicKey: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimagepublickey,
|
|
@@ -66903,23 +66938,52 @@
|
|
|
66903
66938
|
height: sectionproperties.quantitybtn_height + 'px'
|
|
66904
66939
|
},
|
|
66905
66940
|
"class": ' row m-0 d-flex align-items-center '
|
|
66906
|
-
}, /*#__PURE__*/React__default["default"].createElement("
|
|
66941
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
66907
66942
|
"class": "".concat(card_cssstyles.quantitybtn) + ' p-0 d-flex align-items-center justify-content-center '
|
|
66908
|
-
}, langdetect == 'en' &&
|
|
66943
|
+
}, langdetect == 'en' &&
|
|
66944
|
+
/*#__PURE__*/
|
|
66945
|
+
// remove
|
|
66946
|
+
React__default["default"].createElement("button", {
|
|
66909
66947
|
"class": "".concat(card_cssstyles.minus_quantitybtn_icon_container) + ' m-1 ',
|
|
66910
66948
|
style: {
|
|
66911
66949
|
transform: ' rotate(-180deg)'
|
|
66912
66950
|
},
|
|
66913
66951
|
onClick: function onClick() {
|
|
66914
|
-
|
|
66915
|
-
|
|
66952
|
+
if (item.hasvariants == 0) {
|
|
66953
|
+
var tempitem = _objectSpread$l({}, item);
|
|
66954
|
+
tempitem.quantity = parseInt(tempitem.quantity);
|
|
66955
|
+
tempitem.quantity = tempitem.quantity - 1;
|
|
66956
|
+
if (tempitem.quantity <= 0) {
|
|
66957
|
+
tempitem.quantity = 0;
|
|
66958
|
+
}
|
|
66959
|
+
setitem(_objectSpread$l({}, tempitem));
|
|
66960
|
+
addtocartfunc('add', tempitem.quantity);
|
|
66961
|
+
} else {
|
|
66962
|
+
setShowProductInfoModalContext(true);
|
|
66963
|
+
setProductIdProdutInfoModalContext(item.productid);
|
|
66964
|
+
}
|
|
66965
|
+
},
|
|
66966
|
+
disabled: AddtoCartMutationContext.isLoading == true ? true : false
|
|
66916
66967
|
}, /*#__PURE__*/React__default["default"].createElement("i", {
|
|
66917
66968
|
"class": "h-100 allcentered"
|
|
66918
|
-
}, /*#__PURE__*/React__default["default"].createElement(IoIosArrowUp.IoIosArrowUp, null))), langdetect == 'ar' && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
66969
|
+
}, /*#__PURE__*/React__default["default"].createElement(IoIosArrowUp.IoIosArrowUp, null))), "// add", langdetect == 'ar' && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
66919
66970
|
"class": "".concat(card_cssstyles.add_quantitybtn_icon_container) + ' m-1 ',
|
|
66920
66971
|
onClick: function onClick() {
|
|
66921
|
-
|
|
66922
|
-
|
|
66972
|
+
if (item.hasvariants == 0) {
|
|
66973
|
+
var tempitem = _objectSpread$l({}, item);
|
|
66974
|
+
tempitem.quantity = parseInt(tempitem.quantity);
|
|
66975
|
+
tempitem.quantity = tempitem.quantity - 1;
|
|
66976
|
+
if (tempitem.quantity <= 0) {
|
|
66977
|
+
tempitem.quantity = 0;
|
|
66978
|
+
}
|
|
66979
|
+
setitem(_objectSpread$l({}, tempitem));
|
|
66980
|
+
addtocartfunc('add', tempitem.quantity);
|
|
66981
|
+
} else {
|
|
66982
|
+
setShowProductInfoModalContext(true);
|
|
66983
|
+
setProductIdProdutInfoModalContext(item.productid);
|
|
66984
|
+
}
|
|
66985
|
+
},
|
|
66986
|
+
disabled: AddtoCartMutationContext.isLoading == true ? true : false
|
|
66923
66987
|
}, /*#__PURE__*/React__default["default"].createElement("i", {
|
|
66924
66988
|
"class": "h-100 allcentered"
|
|
66925
66989
|
}, /*#__PURE__*/React__default["default"].createElement(IoIosArrowUp.IoIosArrowUp, null))), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
@@ -66930,21 +66994,47 @@
|
|
|
66930
66994
|
height: sectionproperties.quantitybtntextheight + 'px',
|
|
66931
66995
|
borderRadius: sectionproperties.addquantitytextborderraduis + 'px'
|
|
66932
66996
|
}
|
|
66933
|
-
},
|
|
66997
|
+
}, addtocartbuttonrender()), langdetect == 'ar' && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
66934
66998
|
"class": "".concat(card_cssstyles.minus_quantitybtn_icon_container) + ' m-1 ',
|
|
66935
66999
|
style: {
|
|
66936
67000
|
transform: ' rotate(-180deg)'
|
|
66937
67001
|
},
|
|
66938
67002
|
onClick: function onClick() {
|
|
66939
|
-
|
|
66940
|
-
|
|
67003
|
+
if (item.hasvariants == 0) {
|
|
67004
|
+
var tempitem = _objectSpread$l({}, item);
|
|
67005
|
+
tempitem.quantity = parseInt(tempitem.quantity);
|
|
67006
|
+
tempitem.quantity = tempitem.quantity + 1;
|
|
67007
|
+
if (tempitem.quantity <= 0) {
|
|
67008
|
+
tempitem.quantity = 0;
|
|
67009
|
+
}
|
|
67010
|
+
setitem(_objectSpread$l({}, tempitem));
|
|
67011
|
+
addtocartfunc('add', tempitem.quantity);
|
|
67012
|
+
} else {
|
|
67013
|
+
setShowProductInfoModalContext(true);
|
|
67014
|
+
setProductIdProdutInfoModalContext(item.productid);
|
|
67015
|
+
}
|
|
67016
|
+
},
|
|
67017
|
+
disabled: AddtoCartMutationContext.isLoading == true ? true : false
|
|
66941
67018
|
}, /*#__PURE__*/React__default["default"].createElement("i", {
|
|
66942
67019
|
"class": "h-100 allcentered"
|
|
66943
67020
|
}, /*#__PURE__*/React__default["default"].createElement(IoIosArrowUp.IoIosArrowUp, null))), langdetect == 'en' && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
66944
67021
|
"class": "".concat(card_cssstyles.add_quantitybtn_icon_container) + ' m-1 ',
|
|
66945
67022
|
onClick: function onClick() {
|
|
66946
|
-
|
|
66947
|
-
|
|
67023
|
+
if (item.hasvariants == 0) {
|
|
67024
|
+
var tempitem = _objectSpread$l({}, item);
|
|
67025
|
+
tempitem.quantity = parseInt(tempitem.quantity);
|
|
67026
|
+
tempitem.quantity = tempitem.quantity + 1;
|
|
67027
|
+
if (tempitem.quantity <= 0) {
|
|
67028
|
+
tempitem.quantity = 0;
|
|
67029
|
+
}
|
|
67030
|
+
setitem(_objectSpread$l({}, tempitem));
|
|
67031
|
+
addtocartfunc('add', tempitem.quantity);
|
|
67032
|
+
} else {
|
|
67033
|
+
setShowProductInfoModalContext(true);
|
|
67034
|
+
setProductIdProdutInfoModalContext(item.productid);
|
|
67035
|
+
}
|
|
67036
|
+
},
|
|
67037
|
+
disabled: AddtoCartMutationContext.isLoading == true ? true : false
|
|
66948
67038
|
}, /*#__PURE__*/React__default["default"].createElement("i", {
|
|
66949
67039
|
"class": "h-100 allcentered"
|
|
66950
67040
|
}, /*#__PURE__*/React__default["default"].createElement(IoIosArrowUp.IoIosArrowUp, null)))))), /*#__PURE__*/React__default["default"].createElement("div", {
|