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.cjs.js
CHANGED
|
@@ -4224,6 +4224,7 @@ var Service_itemtype = function Service_itemtype(props) {
|
|
|
4224
4224
|
var ikimagecredcontext = props.actions.ikimagecredcontext;
|
|
4225
4225
|
var getprice_discountpriceprops = props.actions.getprice_discountpriceprops;
|
|
4226
4226
|
props.actions.quantityconditionfoundobjprops;
|
|
4227
|
+
var currentshowingimageindex = props.actions.currentshowingimageindex;
|
|
4227
4228
|
props.actions.variantindexcompleted;
|
|
4228
4229
|
var StoreInfoprops = props.actions.StoreInfoprops;
|
|
4229
4230
|
var _useState = React.useState(''),
|
|
@@ -4322,7 +4323,8 @@ var Service_itemtype = function Service_itemtype(props) {
|
|
|
4322
4323
|
thumbnailPosition: sectionproperties.thumbnailposition == 'Bottom' ? 'bottom' : 'left',
|
|
4323
4324
|
showNav: false,
|
|
4324
4325
|
showPlayButton: false,
|
|
4325
|
-
showFullscreenButton: true
|
|
4326
|
+
showFullscreenButton: true,
|
|
4327
|
+
startIndex: currentshowingimageindex
|
|
4326
4328
|
})), sectionproperties.showShareButton == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4327
4329
|
"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'
|
|
4328
4330
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
@@ -6507,7 +6509,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
6507
6509
|
langdetect: langdetect,
|
|
6508
6510
|
lang: lang,
|
|
6509
6511
|
srcfromprops: props.srcfromprops
|
|
6510
|
-
}, _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)
|
|
6512
|
+
}, _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)
|
|
6511
6513
|
}), props.srcfromprops != 'templatedraftrouter' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6512
6514
|
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 ',
|
|
6513
6515
|
style: {
|
|
@@ -9681,7 +9683,7 @@ var Checkout = function Checkout(props) {
|
|
|
9681
9683
|
className: "col-lg-6 col-md-6 col-sm-6 p-0"
|
|
9682
9684
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
9683
9685
|
className: "".concat(checkoutstyles.summarysectionstyles, " ") + ' m-0 p-0 d-flex align-items-start wordbreak '
|
|
9684
|
-
},
|
|
9686
|
+
}, 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", {
|
|
9685
9687
|
className: "col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0"
|
|
9686
9688
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
9687
9689
|
className: langdetect == 'en' ? "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-right ' : "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-left '
|
|
@@ -10104,7 +10106,7 @@ var Checkout = function Checkout(props) {
|
|
|
10104
10106
|
className: "col-lg-12 mb-3"
|
|
10105
10107
|
}, /*#__PURE__*/React__default["default"].createElement("label", {
|
|
10106
10108
|
className: "".concat(checkoutstyles.input_label_name) + ' mb-2 d-flex align-items-start '
|
|
10107
|
-
}, langdetect == 'en' ?
|
|
10109
|
+
}, langdetect == 'en' ? sectionproperties.notesinen : sectionproperties.notesinar), /*#__PURE__*/React__default["default"].createElement(TextareaAutosize__default["default"], {
|
|
10108
10110
|
type: 'text',
|
|
10109
10111
|
className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
|
|
10110
10112
|
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,
|
|
@@ -17298,11 +17300,11 @@ var CardsSection = function CardsSection(props) {
|
|
|
17298
17300
|
} else if (item.tabexsectioninfo.sectioncompname == 'ModernProductCard') {
|
|
17299
17301
|
bootstapclass = ' col-xl-12 p-0 col-lg-12 col-md-12 col-sm-12 d-flex justify-content-center p-0 ';
|
|
17300
17302
|
} else if (item.tabexsectioninfo.sectioncompname == 'MenuCard') {
|
|
17301
|
-
bootstapclass = ' col-xl-12 p-0 col-lg-12 col-md-12
|
|
17303
|
+
bootstapclass = ' col-xl-12 p-0 col-lg-12 col-md-12 d-flex justify-content-center p-0 ' + sectionproperties.numberOfColsverticalresp;
|
|
17302
17304
|
} else if (item.tabexsectioninfo.sectioncompname == 'ServiceCard') {
|
|
17303
17305
|
bootstapclass = ' col-xl-12 p-0 col-lg-12 col-md-12 col-sm-12 d-flex justify-content-center p-0 ';
|
|
17304
17306
|
} else if (item.tabexsectioninfo.sectioncompname == 'StylishProductCard') {
|
|
17305
|
-
bootstapclass = ' col-xl-12 p-0 col-lg-12 col-md-6
|
|
17307
|
+
bootstapclass = ' col-xl-12 p-0 col-lg-12 col-md-6 d-flex justify-content-center p-0 col-sm-' + sectionproperties.numberOfColsverticalresp;
|
|
17306
17308
|
} else if (item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularbg') {
|
|
17307
17309
|
bootstapclass = ' col-xl-12 p-0 col-lg-12 col-md-3 col-sm-6 d-flex justify-content-center p-0 ';
|
|
17308
17310
|
} else if (item.tabexsectioninfo.sectioncompname == 'Card20') {
|
|
@@ -17326,11 +17328,11 @@ var CardsSection = function CardsSection(props) {
|
|
|
17326
17328
|
} else if (item.tabexsectioninfo.sectioncompname == 'ModernProductCard') {
|
|
17327
17329
|
bootstapclass = ' col-xl-6 p-0 col-lg-6 col-md-6 col-sm-12 d-flex justify-content-center p-0 ';
|
|
17328
17330
|
} else if (item.tabexsectioninfo.sectioncompname == 'MenuCard') {
|
|
17329
|
-
bootstapclass = ' col-xl-6 p-0 col-lg-6 col-md-12
|
|
17331
|
+
bootstapclass = ' col-xl-6 p-0 col-lg-6 col-md-12 d-flex justify-content-center p-0 col-sm-' + sectionproperties.numberOfColsverticalresp;
|
|
17330
17332
|
} else if (item.tabexsectioninfo.sectioncompname == 'ServiceCard') {
|
|
17331
17333
|
bootstapclass = ' col-xl-6 p-0 col-lg-6 col-md-12 col-sm-12 d-flex justify-content-center p-0 ';
|
|
17332
17334
|
} else if (item.tabexsectioninfo.sectioncompname == 'StylishProductCard') {
|
|
17333
|
-
bootstapclass = ' col-xl-6 p-0 col-lg-6 col-md-6
|
|
17335
|
+
bootstapclass = ' col-xl-6 p-0 col-lg-6 col-md-6 d-flex justify-content-center p-0 col-sm-' + sectionproperties.numberOfColsverticalresp;
|
|
17334
17336
|
} else if (item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularbg') {
|
|
17335
17337
|
bootstapclass = ' col-xl-6 p-0 col-lg-6 col-md-3 col-sm-6 d-flex justify-content-center p-0 ';
|
|
17336
17338
|
} else if (item.tabexsectioninfo.sectioncompname == 'Card20') {
|
|
@@ -17354,11 +17356,11 @@ var CardsSection = function CardsSection(props) {
|
|
|
17354
17356
|
} else if (item.tabexsectioninfo.sectioncompname == 'ModernProductCard') {
|
|
17355
17357
|
bootstapclass = ' col-xl-4 p-0 col-lg-4 col-md-4 col-sm-12 d-flex justify-content-center p-0 ';
|
|
17356
17358
|
} else if (item.tabexsectioninfo.sectioncompname == 'MenuCard') {
|
|
17357
|
-
bootstapclass = ' col-xl-4 p-0 col-lg-4 col-md-12
|
|
17359
|
+
bootstapclass = ' col-xl-4 p-0 col-lg-4 col-md-12 d-flex justify-content-center p-0 col-sm-' + sectionproperties.numberOfColsverticalresp;
|
|
17358
17360
|
} else if (item.tabexsectioninfo.sectioncompname == 'ServiceCard') {
|
|
17359
17361
|
bootstapclass = ' col-xl-4 p-0 col-lg-4 col-md-12 col-sm-12 d-flex justify-content-center p-0 ';
|
|
17360
17362
|
} else if (item.tabexsectioninfo.sectioncompname == 'StylishProductCard') {
|
|
17361
|
-
bootstapclass = ' col-xl-4 p-0 col-lg-4 col-md-6
|
|
17363
|
+
bootstapclass = ' col-xl-4 p-0 col-lg-4 col-md-6 d-flex justify-content-center p-0 col-sm-' + sectionproperties.numberOfColsverticalresp;
|
|
17362
17364
|
} else if (item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularbg') {
|
|
17363
17365
|
bootstapclass = ' col-xl-4 p-0 col-lg-4 col-md-3 col-sm-6 d-flex justify-content-center p-0 ';
|
|
17364
17366
|
} else if (item.tabexsectioninfo.sectioncompname == 'Card20') {
|
|
@@ -17382,11 +17384,11 @@ var CardsSection = function CardsSection(props) {
|
|
|
17382
17384
|
} else if (item.tabexsectioninfo.sectioncompname == 'ModernProductCard') {
|
|
17383
17385
|
bootstapclass = ' col-xl-3 p-0 col-lg-4 col-md-6 col-sm-12 d-flex justify-content-center p-0 ';
|
|
17384
17386
|
} else if (item.tabexsectioninfo.sectioncompname == 'MenuCard') {
|
|
17385
|
-
bootstapclass = ' col-xl-3 p-0 col-lg-3 col-md-12
|
|
17387
|
+
bootstapclass = ' col-xl-3 p-0 col-lg-3 col-md-12 d-flex justify-content-center p-0 col-sm-' + sectionproperties.numberOfColsverticalresp;
|
|
17386
17388
|
} else if (item.tabexsectioninfo.sectioncompname == 'ServiceCard') {
|
|
17387
17389
|
bootstapclass = ' col-xl-3 p-0 col-lg-3 col-md-12 col-sm-12 d-flex justify-content-center p-0 ';
|
|
17388
17390
|
} else if (item.tabexsectioninfo.sectioncompname == 'StylishProductCard') {
|
|
17389
|
-
bootstapclass = ' col-xl-3 p-0 col-lg-3 col-md-6
|
|
17391
|
+
bootstapclass = ' col-xl-3 p-0 col-lg-3 col-md-6 d-flex justify-content-center p-0 col-sm' + sectionproperties.numberOfColsverticalresp;
|
|
17390
17392
|
} else if (item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularbg') ; else if (item.tabexsectioninfo.sectioncompname == 'Card20') {
|
|
17391
17393
|
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 ';
|
|
17392
17394
|
} else if (item.tabexsectioninfo.sectioncompname == 'Simplecategorycardwithtextbelow') {
|
|
@@ -17407,11 +17409,11 @@ var CardsSection = function CardsSection(props) {
|
|
|
17407
17409
|
if (item.tabexsectioninfo.sectioncompname == 'Productccard_with_imageontopleft') {
|
|
17408
17410
|
bootstapclass = ' col-xl-3 col-lg-4 col-md-4 col-sm-6 d-flex justify-content-center p-0 ';
|
|
17409
17411
|
} else if (item.tabexsectioninfo.sectioncompname == 'MenuCard') {
|
|
17410
|
-
bootstapclass = ' col-xl-3 p-0 col-lg-4 col-md-12
|
|
17412
|
+
bootstapclass = ' col-xl-3 p-0 col-lg-4 col-md-12 d-flex justify-content-center p-0 col-sm-' + sectionproperties.numberOfColsverticalresp;
|
|
17411
17413
|
} else if (item.tabexsectioninfo.sectioncompname == 'ServiceCard') {
|
|
17412
17414
|
bootstapclass = ' col-xl-3 p-0 col-lg-4 col-md-12 col-sm-12 d-flex justify-content-center p-0 ';
|
|
17413
17415
|
} else if (item.tabexsectioninfo.sectioncompname == 'StylishProductCard') {
|
|
17414
|
-
bootstapclass = ' col-xl-3 p-0 col-lg-3 col-md-6
|
|
17416
|
+
bootstapclass = ' col-xl-3 p-0 col-lg-3 col-md-6 d-flex justify-content-center p-0 col-sm-' + sectionproperties.numberOfColsverticalresp;
|
|
17415
17417
|
} else if (item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularbg') {
|
|
17416
17418
|
bootstapclass = ' col-xl-3 p-0 col-lg-3 col-md-3 col-sm-6 d-flex justify-content-center p-0 ';
|
|
17417
17419
|
} else if (item.tabexsectioninfo.sectioncompname == 'Card20') {
|
|
@@ -17431,11 +17433,11 @@ var CardsSection = function CardsSection(props) {
|
|
|
17431
17433
|
} else if (item.tabexsectioninfo.sectioncompname == 'Productccard_with_imageontopleft') {
|
|
17432
17434
|
bootstapclass = ' col-xl-2 col-lg-4 col-md-4 col-sm-6 d-flex justify-content-center p-0 ';
|
|
17433
17435
|
} else if (item.tabexsectioninfo.sectioncompname == 'MenuCard') {
|
|
17434
|
-
bootstapclass = ' col-xl-2 p-0 col-lg-2 col-md-12
|
|
17436
|
+
bootstapclass = ' col-xl-2 p-0 col-lg-2 col-md-12 d-flex justify-content-center p-0 col-sm-' + sectionproperties.numberOfColsverticalresp;
|
|
17435
17437
|
} else if (item.tabexsectioninfo.sectioncompname == 'ServiceCard') {
|
|
17436
17438
|
bootstapclass = ' col-xl-2 p-0 col-lg-2 col-md-12 col-sm-12 d-flex justify-content-center p-0 ';
|
|
17437
17439
|
} else if (item.tabexsectioninfo.sectioncompname == 'StylishProductCard') {
|
|
17438
|
-
bootstapclass = ' col-xl-2 p-0 col-lg-2 col-md-6
|
|
17440
|
+
bootstapclass = ' col-xl-2 p-0 col-lg-2 col-md-6 d-flex justify-content-center p-0 col-sm' + sectionproperties.numberOfColsverticalresp;
|
|
17439
17441
|
} else if (item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularbg') {
|
|
17440
17442
|
bootstapclass = ' col-xl-2 p-0 col-lg-3 col-md-3 col-sm-6 d-flex justify-content-center p-0 ';
|
|
17441
17443
|
} else if (item.tabexsectioninfo.sectioncompname == 'Card20') {
|
|
@@ -20029,12 +20031,13 @@ var Headerresponsive = function Headerresponsive(props) {
|
|
|
20029
20031
|
style: {
|
|
20030
20032
|
flex: sectionproperties.searchbar_show == 'Show' ? '' : 1
|
|
20031
20033
|
}
|
|
20032
|
-
},
|
|
20033
|
-
className: 'allcentered m-0 cursor-pointer'
|
|
20034
|
-
}, langdetect == 'ar' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
20034
|
+
}, langdetect == 'en' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
20035
20035
|
className: "".concat(header_cssstyles.languagecontainer) + ' row m-0 w-100 allcentered ',
|
|
20036
20036
|
style: {
|
|
20037
20037
|
direction: 'rtl'
|
|
20038
|
+
},
|
|
20039
|
+
onClick: function onClick() {
|
|
20040
|
+
setlang('ar');
|
|
20038
20041
|
}
|
|
20039
20042
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
20040
20043
|
"class": "m-0 p-0 font-weight-500"
|
|
@@ -20042,10 +20045,13 @@ var Headerresponsive = function Headerresponsive(props) {
|
|
|
20042
20045
|
className: langdetect == 'en' ? 'h-100 allcentered mr-1' : 'h-100 allcentered ml-1'
|
|
20043
20046
|
}, /*#__PURE__*/React__default["default"].createElement(BiChevronDown.BiChevronDown, {
|
|
20044
20047
|
size: 20
|
|
20045
|
-
}))), langdetect == '
|
|
20048
|
+
}))), langdetect == 'ar' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
20046
20049
|
className: "".concat(header_cssstyles.languagecontainer) + ' row m-0 w-100 allcentered ',
|
|
20047
20050
|
style: {
|
|
20048
20051
|
direction: 'ltr'
|
|
20052
|
+
},
|
|
20053
|
+
onClick: function onClick() {
|
|
20054
|
+
setlang('en');
|
|
20049
20055
|
}
|
|
20050
20056
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
20051
20057
|
"class": "m-0 p-0 font-weight-500 mr-1"
|
|
@@ -20053,45 +20059,7 @@ var Headerresponsive = function Headerresponsive(props) {
|
|
|
20053
20059
|
className: "h-100 allcentered"
|
|
20054
20060
|
}, /*#__PURE__*/React__default["default"].createElement(BiChevronDown.BiChevronDown, {
|
|
20055
20061
|
size: 20
|
|
20056
|
-
}))))), /*#__PURE__*/React__default["default"].createElement(
|
|
20057
|
-
className: "".concat(header_cssstyles.dropdownitem),
|
|
20058
|
-
onClick: function onClick() {
|
|
20059
|
-
setlang('ar');
|
|
20060
|
-
}
|
|
20061
|
-
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
20062
|
-
className: "".concat(header_cssstyles.dropdownitemcontainer) + ' d-flex align-items-center m-0 p-0 '
|
|
20063
|
-
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
20064
|
-
className: "".concat(header_cssstyles.dropdownitem) + ' dropdownitem d-flex align-items-center m-0 p-0 '
|
|
20065
|
-
}, sectionproperties.flagiconhederresp == 'Flag' && /*#__PURE__*/React__default["default"].createElement("img", {
|
|
20066
|
-
src: 'https://tabex-co.com/storage/StaticImages/egyptflag.png',
|
|
20067
|
-
style: {
|
|
20068
|
-
maxWidth: '2vh',
|
|
20069
|
-
maxHeight: '2vh'
|
|
20070
|
-
}
|
|
20071
|
-
}), sectionproperties.flagiconhederresp != 'Flag' && /*#__PURE__*/React__default["default"].createElement(BiGlobe.BiGlobe, {
|
|
20072
|
-
size: 15
|
|
20073
|
-
}), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
20074
|
-
className: "ml-2 mr-2"
|
|
20075
|
-
}, lang.arabic)))), /*#__PURE__*/React__default["default"].createElement(Dropdown__default["default"].Divider, null), /*#__PURE__*/React__default["default"].createElement(Dropdown__default["default"].Item, {
|
|
20076
|
-
className: "".concat(header_cssstyles.dropdownitem),
|
|
20077
|
-
onClick: function onClick() {
|
|
20078
|
-
setlang('en');
|
|
20079
|
-
}
|
|
20080
|
-
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
20081
|
-
className: "".concat(header_cssstyles.dropdownitemcontainer) + ' d-flex align-items-center m-0 p-0 '
|
|
20082
|
-
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
20083
|
-
className: "".concat(header_cssstyles.dropdownitem) + ' dropdownitem d-flex align-items-center m-0 p-0 '
|
|
20084
|
-
}, sectionproperties.flagiconhederresp == 'Flag' && /*#__PURE__*/React__default["default"].createElement("img", {
|
|
20085
|
-
src: 'https://tabex-co.com/storage/StaticImages/usflag.png',
|
|
20086
|
-
style: {
|
|
20087
|
-
maxWidth: '2vh',
|
|
20088
|
-
maxHeight: '2vh'
|
|
20089
|
-
}
|
|
20090
|
-
}), sectionproperties.flagiconhederresp != 'Flag' && /*#__PURE__*/React__default["default"].createElement(BiGlobe.BiGlobe, {
|
|
20091
|
-
size: 15
|
|
20092
|
-
}), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
20093
|
-
className: "ml-2 mr-2"
|
|
20094
|
-
}, lang.english)))))))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
20062
|
+
}))))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
20095
20063
|
className: "row m-0 w-100 pt-2 filter d-none",
|
|
20096
20064
|
id: "filter"
|
|
20097
20065
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -21571,7 +21539,7 @@ var HeaderresponsiveStyle2 = function HeaderresponsiveStyle2(props) {
|
|
|
21571
21539
|
fontWeight: 500,
|
|
21572
21540
|
fontSize: '15px',
|
|
21573
21541
|
transition: '.3s',
|
|
21574
|
-
color:
|
|
21542
|
+
color: sectionproperties.header_fontColorresponsive
|
|
21575
21543
|
}
|
|
21576
21544
|
}, langdetect == 'en' ? 'MENU' : 'القائمة')), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
21577
21545
|
className: 'col-6 allcentered py-3',
|
|
@@ -21588,7 +21556,7 @@ var HeaderresponsiveStyle2 = function HeaderresponsiveStyle2(props) {
|
|
|
21588
21556
|
fontWeight: 500,
|
|
21589
21557
|
fontSize: '15px',
|
|
21590
21558
|
transition: '.3s',
|
|
21591
|
-
color:
|
|
21559
|
+
color: sectionproperties.header_fontColorresponsive
|
|
21592
21560
|
}
|
|
21593
21561
|
}, langdetect == 'en' ? 'SHOP' : 'تسوق'))))), /*#__PURE__*/React__default["default"].createElement(reactBootstrap.Offcanvas.Body, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
21594
21562
|
style: {
|
|
@@ -25740,7 +25708,7 @@ styleInject(css_248z$x);
|
|
|
25740
25708
|
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; }
|
|
25741
25709
|
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; }
|
|
25742
25710
|
var CTAHeader = function CTAHeader(props) {
|
|
25743
|
-
var _logoarrayofobjects$, _logoarrayofobjects$2, _authdetailsContext$c, _authdetailsContext$c2, _fetchcustomercartQue, _fetchcustomercartQue2, _authdetailsContext$
|
|
25711
|
+
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;
|
|
25744
25712
|
var actions = props.actions;
|
|
25745
25713
|
var lang = props.actions.lang;
|
|
25746
25714
|
var langdetect = props.actions.langdetect;
|
|
@@ -26252,7 +26220,42 @@ var CTAHeader = function CTAHeader(props) {
|
|
|
26252
26220
|
zIndex: 1000,
|
|
26253
26221
|
background: sectionproperties.header_backgroundColor
|
|
26254
26222
|
}
|
|
26255
|
-
}, /*#__PURE__*/React__default["default"].createElement("
|
|
26223
|
+
}, /*#__PURE__*/React__default["default"].createElement("a", {
|
|
26224
|
+
href: 'tel:' + (authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.CuContactphonenumber),
|
|
26225
|
+
target: '_self',
|
|
26226
|
+
style: {
|
|
26227
|
+
position: 'fixed',
|
|
26228
|
+
bottom: 60,
|
|
26229
|
+
right: 10,
|
|
26230
|
+
zIndex: 999999,
|
|
26231
|
+
transition: 'all 0.3s ease-out'
|
|
26232
|
+
}
|
|
26233
|
+
}, /*#__PURE__*/React__default["default"].createElement("i", {
|
|
26234
|
+
"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'
|
|
26235
|
+
}, /*#__PURE__*/React__default["default"].createElement(FiPhone.FiPhone, {
|
|
26236
|
+
size: 30,
|
|
26237
|
+
color: sectionproperties.uppersection_iconcolor,
|
|
26238
|
+
style: {
|
|
26239
|
+
transform: langdetect == 'en' ? 'scaleX(1)' : 'scaleX(-1)'
|
|
26240
|
+
}
|
|
26241
|
+
}))), /*#__PURE__*/React__default["default"].createElement("a", {
|
|
26242
|
+
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),
|
|
26243
|
+
target: '_blank',
|
|
26244
|
+
style: {
|
|
26245
|
+
position: 'fixed',
|
|
26246
|
+
bottom: 10,
|
|
26247
|
+
right: 10,
|
|
26248
|
+
zIndex: 999999,
|
|
26249
|
+
transition: 'all 0.3s ease-out'
|
|
26250
|
+
}
|
|
26251
|
+
}, /*#__PURE__*/React__default["default"].createElement("img", {
|
|
26252
|
+
src: 'https://tabex-co.com/storage/StaticImages/whatsapp.png',
|
|
26253
|
+
style: {
|
|
26254
|
+
width: '40px',
|
|
26255
|
+
height: '40px',
|
|
26256
|
+
cursor: 'pointer'
|
|
26257
|
+
}
|
|
26258
|
+
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
26256
26259
|
"class": "row m-0 w-md-100",
|
|
26257
26260
|
style: {
|
|
26258
26261
|
width: sectionproperties.header_width + 'vw'
|
|
@@ -26560,43 +26563,43 @@ var CTAHeader = function CTAHeader(props) {
|
|
|
26560
26563
|
"class": header_cssstyles.lowerheader + ' row m-0 w-100 justify-content-center px-2015-4 '
|
|
26561
26564
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
26562
26565
|
"class": "col-lg-3 p-0 d-flex align-items-center justify-content-start"
|
|
26563
|
-
}, sectionproperties.fbbtn_show == 'Show' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
26566
|
+
}, 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", {
|
|
26564
26567
|
"class": "".concat(header_cssstyles.facebook_btn) + ' d-flex align-items-center justify-content-center ',
|
|
26565
26568
|
style: {
|
|
26566
26569
|
marginRight: langdetect == 'en' ? '1rem' : 0,
|
|
26567
26570
|
marginLeft: langdetect == 'ar' ? '1rem' : 0
|
|
26568
26571
|
},
|
|
26569
26572
|
onClick: function onClick() {
|
|
26570
|
-
var _authdetailsContext$
|
|
26571
|
-
if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
26572
|
-
var _authdetailsContext$
|
|
26573
|
-
window.open(authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
26573
|
+
var _authdetailsContext$i4;
|
|
26574
|
+
if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i4 = authdetailsContext.instinfo) === null || _authdetailsContext$i4 === void 0 ? void 0 : _authdetailsContext$i4.facebooklink) != null) {
|
|
26575
|
+
var _authdetailsContext$i5;
|
|
26576
|
+
window.open(authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i5 = authdetailsContext.instinfo) === null || _authdetailsContext$i5 === void 0 ? void 0 : _authdetailsContext$i5.facebooklink, '_blank');
|
|
26574
26577
|
}
|
|
26575
26578
|
}
|
|
26576
26579
|
}, /*#__PURE__*/React__default["default"].createElement(FaFacebookF.FaFacebookF, {
|
|
26577
26580
|
size: sectionproperties.facebkbtnniconfontsize
|
|
26578
|
-
})), sectionproperties.instbtn_show == 'Show' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
26581
|
+
})), 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", {
|
|
26579
26582
|
"class": "".concat(header_cssstyles.instgram_btn) + ' d-flex align-items-center justify-content-center ',
|
|
26580
26583
|
style: {
|
|
26581
26584
|
marginRight: langdetect == 'en' ? '1rem' : 0,
|
|
26582
26585
|
marginLeft: langdetect == 'ar' ? '1rem' : 0
|
|
26583
26586
|
},
|
|
26584
26587
|
onClick: function onClick() {
|
|
26585
|
-
var _authdetailsContext$
|
|
26586
|
-
if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
26587
|
-
var _authdetailsContext$
|
|
26588
|
-
window.open(authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
26588
|
+
var _authdetailsContext$i7;
|
|
26589
|
+
if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i7 = authdetailsContext.instinfo) === null || _authdetailsContext$i7 === void 0 ? void 0 : _authdetailsContext$i7.instagramlink) != null) {
|
|
26590
|
+
var _authdetailsContext$i8;
|
|
26591
|
+
window.open(authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i8 = authdetailsContext.instinfo) === null || _authdetailsContext$i8 === void 0 ? void 0 : _authdetailsContext$i8.instagramlink, '_blank');
|
|
26589
26592
|
}
|
|
26590
26593
|
}
|
|
26591
26594
|
}, /*#__PURE__*/React__default["default"].createElement(AiFillInstagram.AiFillInstagram, {
|
|
26592
26595
|
size: sectionproperties.instgrambtniconfontsize
|
|
26593
|
-
})), sectionproperties.youtbtn_show == 'Show' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
26596
|
+
})), 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", {
|
|
26594
26597
|
"class": "".concat(header_cssstyles.youtube_btn) + ' d-flex align-items-center justify-content-center ',
|
|
26595
26598
|
onClick: function onClick() {
|
|
26596
|
-
var _authdetailsContext$
|
|
26597
|
-
if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
26598
|
-
var _authdetailsContext$
|
|
26599
|
-
window.open('https://api.whatsapp.com/send?phone=' + (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
26599
|
+
var _authdetailsContext$i10;
|
|
26600
|
+
if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i10 = authdetailsContext.instinfo) === null || _authdetailsContext$i10 === void 0 ? void 0 : _authdetailsContext$i10.whatsappnumber) != null) {
|
|
26601
|
+
var _authdetailsContext$i11;
|
|
26602
|
+
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');
|
|
26600
26603
|
}
|
|
26601
26604
|
}
|
|
26602
26605
|
}, /*#__PURE__*/React__default["default"].createElement(FaWhatsapp.FaWhatsapp, {
|
|
@@ -26615,9 +26618,9 @@ var CTAHeader = function CTAHeader(props) {
|
|
|
26615
26618
|
style: {
|
|
26616
26619
|
width: '80%'
|
|
26617
26620
|
}
|
|
26618
|
-
}, sectionproperties.fetchparenttype == 'Categories' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
26619
|
-
var _authdetailsContext$
|
|
26620
|
-
var fetchedarray = authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
26621
|
+
}, 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) {
|
|
26622
|
+
var _authdetailsContext$i13;
|
|
26623
|
+
var fetchedarray = authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i13 = authdetailsContext.instinfo) === null || _authdetailsContext$i13 === void 0 ? void 0 : _authdetailsContext$i13.instcategories;
|
|
26621
26624
|
if (item.isshowntocustomers == 1) {
|
|
26622
26625
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
26623
26626
|
"class": "w-100"
|
|
@@ -26630,9 +26633,9 @@ var CTAHeader = function CTAHeader(props) {
|
|
|
26630
26633
|
"class": "w-100"
|
|
26631
26634
|
}, ButtonDropdown(item, index, fetchedarray));
|
|
26632
26635
|
}
|
|
26633
|
-
})), sectionproperties.fetchparenttype == 'Collections' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
26634
|
-
var _authdetailsContext$
|
|
26635
|
-
var fetchedarray = authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
26636
|
+
})), 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) {
|
|
26637
|
+
var _authdetailsContext$i15;
|
|
26638
|
+
var fetchedarray = authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i15 = authdetailsContext.instinfo) === null || _authdetailsContext$i15 === void 0 ? void 0 : _authdetailsContext$i15.instcollections;
|
|
26636
26639
|
if (item.isshowntocustomers == 1) {
|
|
26637
26640
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
26638
26641
|
"class": "w-100"
|
|
@@ -26667,43 +26670,43 @@ var CTAHeader = function CTAHeader(props) {
|
|
|
26667
26670
|
onClick: function onClick() {
|
|
26668
26671
|
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, false);
|
|
26669
26672
|
}
|
|
26670
|
-
}, langdetect == 'en' ? sectionproperties.generalbtn_content : sectionproperties.slideshow_btn_text_ar), sectionproperties.fbbtn_show == 'Show' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
26673
|
+
}, 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", {
|
|
26671
26674
|
"class": "".concat(header_cssstyles.facebook_btn) + ' d-flex align-items-center justify-content-center ',
|
|
26672
26675
|
style: {
|
|
26673
26676
|
marginRight: langdetect == 'en' ? '1rem' : 0,
|
|
26674
26677
|
marginLeft: langdetect == 'ar' ? '1rem' : 0
|
|
26675
26678
|
},
|
|
26676
26679
|
onClick: function onClick() {
|
|
26677
|
-
var _authdetailsContext$
|
|
26678
|
-
if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
26679
|
-
var _authdetailsContext$
|
|
26680
|
-
window.open(authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
26680
|
+
var _authdetailsContext$i17;
|
|
26681
|
+
if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i17 = authdetailsContext.instinfo) === null || _authdetailsContext$i17 === void 0 ? void 0 : _authdetailsContext$i17.facebooklink) != null) {
|
|
26682
|
+
var _authdetailsContext$i18;
|
|
26683
|
+
window.open(authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i18 = authdetailsContext.instinfo) === null || _authdetailsContext$i18 === void 0 ? void 0 : _authdetailsContext$i18.facebooklink, '_blank');
|
|
26681
26684
|
}
|
|
26682
26685
|
}
|
|
26683
26686
|
}, /*#__PURE__*/React__default["default"].createElement(FaFacebookF.FaFacebookF, {
|
|
26684
26687
|
size: sectionproperties.facebkbtnniconfontsize
|
|
26685
|
-
})), sectionproperties.instbtn_show == 'Show' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
26688
|
+
})), 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", {
|
|
26686
26689
|
"class": "".concat(header_cssstyles.instgram_btn) + ' d-flex align-items-center justify-content-center ',
|
|
26687
26690
|
style: {
|
|
26688
26691
|
marginRight: langdetect == 'en' ? '1rem' : 0,
|
|
26689
26692
|
marginLeft: langdetect == 'ar' ? '1rem' : 0
|
|
26690
26693
|
},
|
|
26691
26694
|
onClick: function onClick() {
|
|
26692
|
-
var _authdetailsContext$
|
|
26693
|
-
if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
26694
|
-
var _authdetailsContext$
|
|
26695
|
-
window.open(authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
26695
|
+
var _authdetailsContext$i20;
|
|
26696
|
+
if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i20 = authdetailsContext.instinfo) === null || _authdetailsContext$i20 === void 0 ? void 0 : _authdetailsContext$i20.instagramlink) != null) {
|
|
26697
|
+
var _authdetailsContext$i21;
|
|
26698
|
+
window.open(authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i21 = authdetailsContext.instinfo) === null || _authdetailsContext$i21 === void 0 ? void 0 : _authdetailsContext$i21.instagramlink, '_blank');
|
|
26696
26699
|
}
|
|
26697
26700
|
}
|
|
26698
26701
|
}, /*#__PURE__*/React__default["default"].createElement(AiFillInstagram.AiFillInstagram, {
|
|
26699
26702
|
size: sectionproperties.instgrambtniconfontsize
|
|
26700
|
-
})), sectionproperties.youtbtn_show == 'Show' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
26703
|
+
})), 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", {
|
|
26701
26704
|
"class": "".concat(header_cssstyles.youtube_btn) + ' d-flex align-items-center justify-content-center ',
|
|
26702
26705
|
onClick: function onClick() {
|
|
26703
|
-
var _authdetailsContext$
|
|
26704
|
-
if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
26705
|
-
var _authdetailsContext$
|
|
26706
|
-
window.open('https://api.whatsapp.com/send?phone=' + (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
26706
|
+
var _authdetailsContext$i23;
|
|
26707
|
+
if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i23 = authdetailsContext.instinfo) === null || _authdetailsContext$i23 === void 0 ? void 0 : _authdetailsContext$i23.whatsappnumber) != null) {
|
|
26708
|
+
var _authdetailsContext$i24;
|
|
26709
|
+
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');
|
|
26707
26710
|
}
|
|
26708
26711
|
}
|
|
26709
26712
|
}, /*#__PURE__*/React__default["default"].createElement(FaWhatsapp.FaWhatsapp, {
|
|
@@ -26770,6 +26773,9 @@ var CTAHeader = function CTAHeader(props) {
|
|
|
26770
26773
|
}), sectionproperties.responsiveheaderstyle == 'Style 2' && /*#__PURE__*/React__default["default"].createElement(HeaderresponsiveStyle2, {
|
|
26771
26774
|
sectionpropertiesprops: sectionproperties,
|
|
26772
26775
|
actions: actions
|
|
26776
|
+
}), sectionproperties.responsiveheaderstyle == 'Style 2 With Subheader' && /*#__PURE__*/React__default["default"].createElement(HeaderresponsiveStyle2, {
|
|
26777
|
+
sectionpropertiesprops: sectionproperties,
|
|
26778
|
+
actions: actions
|
|
26773
26779
|
}))));
|
|
26774
26780
|
};
|
|
26775
26781
|
|
|
@@ -66720,7 +66726,7 @@ var Horizontalcard = function Horizontalcard(props) {
|
|
|
66720
66726
|
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; }
|
|
66721
66727
|
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; }
|
|
66722
66728
|
var MenuCard = function MenuCard(props) {
|
|
66723
|
-
var _css;
|
|
66729
|
+
var _css, _css2;
|
|
66724
66730
|
var _useState = React.useState(''),
|
|
66725
66731
|
_useState2 = _slicedToArray__default["default"](_useState, 2),
|
|
66726
66732
|
sectionproperties = _useState2[0],
|
|
@@ -66736,25 +66742,12 @@ var MenuCard = function MenuCard(props) {
|
|
|
66736
66742
|
var addtofavoritescontext = props.actions.addtofavoritescontext;
|
|
66737
66743
|
var setProductIdProdutInfoModalContext = props.actions.setProductIdProdutInfoModalContext;
|
|
66738
66744
|
var AddtoCartContext = props.actions.AddtoCartContext;
|
|
66739
|
-
props.actions.AddtoCartMutationContext;
|
|
66745
|
+
var AddtoCartMutationContext = props.actions.AddtoCartMutationContext;
|
|
66740
66746
|
var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
|
|
66741
66747
|
var routingcountext = props.actions.routingcountext;
|
|
66742
66748
|
var cardonclickfunctionContext = props.actions.cardonclickfunctionContext;
|
|
66743
66749
|
var ikimagecredcontext = props.actions.ikimagecredcontext;
|
|
66744
66750
|
var NotificationManager = NotificationManager;
|
|
66745
|
-
var updatequantity = function updatequantity(type) {
|
|
66746
|
-
var tempitem = _objectSpread$l({}, item);
|
|
66747
|
-
tempitem.quantity = parseInt(tempitem.quantity);
|
|
66748
|
-
if (type == 'add') {
|
|
66749
|
-
tempitem.quantity = tempitem.quantity + 1;
|
|
66750
|
-
} else if (type == 'remove') {
|
|
66751
|
-
tempitem.quantity = tempitem.quantity - 1;
|
|
66752
|
-
}
|
|
66753
|
-
if (tempitem.quantity <= 0) {
|
|
66754
|
-
tempitem.quantity = 0;
|
|
66755
|
-
}
|
|
66756
|
-
setitem(_objectSpread$l({}, tempitem));
|
|
66757
|
-
};
|
|
66758
66751
|
React.useEffect(function () {
|
|
66759
66752
|
if (props.srcfrom == 'addsectionform') {
|
|
66760
66753
|
var secpropobj = {};
|
|
@@ -66782,31 +66775,33 @@ var MenuCard = function MenuCard(props) {
|
|
|
66782
66775
|
divContainer.innerHTML = html;
|
|
66783
66776
|
return divContainer.textContent || divContainer.innerText || '';
|
|
66784
66777
|
};
|
|
66785
|
-
|
|
66786
|
-
|
|
66787
|
-
|
|
66788
|
-
|
|
66789
|
-
|
|
66790
|
-
|
|
66791
|
-
|
|
66792
|
-
|
|
66793
|
-
|
|
66794
|
-
|
|
66795
|
-
|
|
66796
|
-
|
|
66797
|
-
|
|
66798
|
-
|
|
66799
|
-
|
|
66800
|
-
|
|
66801
|
-
|
|
66802
|
-
|
|
66803
|
-
|
|
66804
|
-
|
|
66805
|
-
|
|
66806
|
-
|
|
66807
|
-
|
|
66808
|
-
|
|
66809
|
-
}
|
|
66778
|
+
// const addtocartfunc = () => {
|
|
66779
|
+
// const addtocardpayloadobj = {
|
|
66780
|
+
// functype: 'add',
|
|
66781
|
+
// productid: item.productid,
|
|
66782
|
+
// variantid: '',
|
|
66783
|
+
// quantity: item.quantity,
|
|
66784
|
+
// };
|
|
66785
|
+
// var runfunc = false;
|
|
66786
|
+
// if (addtocardpayloadobj.productid.length != 0 && addtocardpayloadobj.quantity > 0) {
|
|
66787
|
+
// if (item.hasvariants == 1) {
|
|
66788
|
+
// if (addtocardpayloadobj.variantid.length != 0) {
|
|
66789
|
+
// runfunc = true;
|
|
66790
|
+
// } else {
|
|
66791
|
+
// NotificationManager.warning('', 'Please Choose Product Options');
|
|
66792
|
+
// }
|
|
66793
|
+
// } else {
|
|
66794
|
+
// runfunc = true;
|
|
66795
|
+
// }
|
|
66796
|
+
// } else {
|
|
66797
|
+
// NotificationManager.warning('', 'Please Choose Quantity');
|
|
66798
|
+
// }
|
|
66799
|
+
|
|
66800
|
+
// if (runfunc == true) {
|
|
66801
|
+
// AddtoCartContext(addtocardpayloadobj);
|
|
66802
|
+
// }
|
|
66803
|
+
// };
|
|
66804
|
+
|
|
66810
66805
|
var card_cssstyles = {
|
|
66811
66806
|
productcard: glamor.css({
|
|
66812
66807
|
background: sectionproperties.backgroundColortransparent == 'Transparent' ? 'transparent' : sectionproperties.backgroundColor,
|
|
@@ -66828,7 +66823,7 @@ var MenuCard = function MenuCard(props) {
|
|
|
66828
66823
|
transition: '.3s',
|
|
66829
66824
|
color: sectionproperties.prodNameColor
|
|
66830
66825
|
}),
|
|
66831
|
-
productcardimagecont: glamor.css({
|
|
66826
|
+
productcardimagecont: glamor.css((_css = {
|
|
66832
66827
|
position: 'relative',
|
|
66833
66828
|
overflow: 'hidden',
|
|
66834
66829
|
background: sectionproperties.image_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.image_bgcolor,
|
|
@@ -66837,8 +66832,12 @@ var MenuCard = function MenuCard(props) {
|
|
|
66837
66832
|
borderBottomRightRadius: langdetect == 'en' ? sectionproperties.image_borderBottomRightRadius + 'px' : sectionproperties.image_borderBottomLeftRadius + 'px',
|
|
66838
66833
|
borderTopLeftRadius: langdetect == 'en' ? sectionproperties.image_bordertopleftradius + 'px' : sectionproperties.image_bordertoprightradius + 'px',
|
|
66839
66834
|
borderTopRightRadius: langdetect == 'en' ? sectionproperties.image_bordertoprightradius + 'px' : sectionproperties.image_bordertopleftradius + 'px',
|
|
66840
|
-
transition: '.3s'
|
|
66841
|
-
|
|
66835
|
+
transition: '.3s',
|
|
66836
|
+
height: sectionproperties.image_height + 'px',
|
|
66837
|
+
width: sectionproperties.image_width + 'px'
|
|
66838
|
+
}, _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)', {
|
|
66839
|
+
width: sectionproperties.image_width + '%'
|
|
66840
|
+
}), _css)),
|
|
66842
66841
|
productNameStyles: glamor.css({
|
|
66843
66842
|
fontSize: sectionproperties.prodNameFontSize + 'px',
|
|
66844
66843
|
textTransform: sectionproperties.prodNameTextTranform,
|
|
@@ -66897,11 +66896,11 @@ var MenuCard = function MenuCard(props) {
|
|
|
66897
66896
|
color: sectionproperties.cartBtnTextcoloronhover
|
|
66898
66897
|
}
|
|
66899
66898
|
}),
|
|
66900
|
-
quantitybtn: glamor.css((
|
|
66899
|
+
quantitybtn: glamor.css((_css2 = {
|
|
66901
66900
|
flex: 1,
|
|
66902
66901
|
border: sectionproperties.quantitybtnborderwidth + 'px solid ' + sectionproperties.quantitybtnbordercolor,
|
|
66903
66902
|
height: sectionproperties.quantitybtn_height + 'px'
|
|
66904
|
-
}, _defineProperty__default["default"](
|
|
66903
|
+
}, _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)),
|
|
66905
66904
|
quantitybtn_text: glamor.css({
|
|
66906
66905
|
margin: 'auto'
|
|
66907
66906
|
}),
|
|
@@ -66955,6 +66954,51 @@ var MenuCard = function MenuCard(props) {
|
|
|
66955
66954
|
marginBottom: sectionproperties.descriptionMarginBottom + 'px'
|
|
66956
66955
|
})
|
|
66957
66956
|
};
|
|
66957
|
+
var addtocartfunc = function addtocartfunc(type, quantity) {
|
|
66958
|
+
var addtocardpayloadobj = {
|
|
66959
|
+
functype: 'add',
|
|
66960
|
+
productid: item.productid,
|
|
66961
|
+
variantid: '',
|
|
66962
|
+
quantity: quantity
|
|
66963
|
+
};
|
|
66964
|
+
var runfunc = false;
|
|
66965
|
+
if (addtocardpayloadobj.productid.length != 0 && addtocardpayloadobj.quantity > 0) {
|
|
66966
|
+
if (item.hasvariants == 1) {
|
|
66967
|
+
if (addtocardpayloadobj.variantid.length != 0) {
|
|
66968
|
+
runfunc = true;
|
|
66969
|
+
} else {
|
|
66970
|
+
NotificationManager.warning('', langdetect == 'en' ? 'Please Choose Product Options' : 'من فضلك اختر متغير');
|
|
66971
|
+
}
|
|
66972
|
+
} else {
|
|
66973
|
+
runfunc = true;
|
|
66974
|
+
}
|
|
66975
|
+
} else {
|
|
66976
|
+
NotificationManager.warning('', langdetect == 'en' ? 'Please Choose Quantity' : 'من فضلك اختر الكمية');
|
|
66977
|
+
}
|
|
66978
|
+
if (runfunc == true) {
|
|
66979
|
+
AddtoCartContext(addtocardpayloadobj);
|
|
66980
|
+
}
|
|
66981
|
+
};
|
|
66982
|
+
var addtocartbuttonrender = function addtocartbuttonrender() {
|
|
66983
|
+
if (AddtoCartMutationContext.isLoading) {
|
|
66984
|
+
var _AddtoCartMutationCon;
|
|
66985
|
+
if ((AddtoCartMutationContext === null || AddtoCartMutationContext === void 0 || (_AddtoCartMutationCon = AddtoCartMutationContext.variables) === null || _AddtoCartMutationCon === void 0 ? void 0 : _AddtoCartMutationCon.productid) == item.productid) {
|
|
66986
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
66987
|
+
"class": ' d-flex align-items-center justify-content-center '
|
|
66988
|
+
}, /*#__PURE__*/React__default["default"].createElement(reactCssfxLoading.CircularProgress, {
|
|
66989
|
+
color: '#000',
|
|
66990
|
+
width: "20px",
|
|
66991
|
+
height: "20px",
|
|
66992
|
+
duration: "1s"
|
|
66993
|
+
}));
|
|
66994
|
+
} else {
|
|
66995
|
+
return item.quantity;
|
|
66996
|
+
}
|
|
66997
|
+
}
|
|
66998
|
+
if (!AddtoCartMutationContext.isLoading) {
|
|
66999
|
+
return item.quantity;
|
|
67000
|
+
}
|
|
67001
|
+
};
|
|
66958
67002
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
66959
67003
|
"class": "row m-0 w-100 pl-sm-2 pr-sm-2",
|
|
66960
67004
|
style: {
|
|
@@ -66974,16 +67018,7 @@ var MenuCard = function MenuCard(props) {
|
|
|
66974
67018
|
}
|
|
66975
67019
|
},
|
|
66976
67020
|
"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 ',
|
|
66977
|
-
style: {
|
|
66978
|
-
height: sectionproperties.image_height + 'px',
|
|
66979
|
-
width: sectionproperties.image_width + 'px',
|
|
66980
|
-
borderBottomLeftRadius: langdetect == 'en' ? sectionproperties.image_borderBottomLeftRadius + 'px' : sectionproperties.image_borderBottomRightRadius + 'px',
|
|
66981
|
-
borderBottomRightRadius: langdetect == 'en' ? sectionproperties.image_borderBottomRightRadius + 'px' : sectionproperties.image_borderBottomLeftRadius + 'px',
|
|
66982
|
-
borderTopLeftRadius: langdetect == 'en' ? sectionproperties.image_bordertopleftradius + 'px' : sectionproperties.image_bordertoprightradius + 'px',
|
|
66983
|
-
borderTopRightRadius: langdetect == 'en' ? sectionproperties.image_bordertoprightradius + 'px' : sectionproperties.image_bordertopleftradius + 'px',
|
|
66984
|
-
overflow: 'hidden',
|
|
66985
|
-
cursor: 'pointer'
|
|
66986
|
-
}
|
|
67021
|
+
style: {}
|
|
66987
67022
|
}, /*#__PURE__*/React__default["default"].createElement(Imagekitimagecomp, {
|
|
66988
67023
|
urlEndpoint: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint,
|
|
66989
67024
|
publicKey: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimagepublickey,
|
|
@@ -67077,23 +67112,52 @@ var MenuCard = function MenuCard(props) {
|
|
|
67077
67112
|
height: sectionproperties.quantitybtn_height + 'px'
|
|
67078
67113
|
},
|
|
67079
67114
|
"class": ' row m-0 d-flex align-items-center '
|
|
67080
|
-
}, /*#__PURE__*/React__default["default"].createElement("
|
|
67115
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
67081
67116
|
"class": "".concat(card_cssstyles.quantitybtn) + ' p-0 d-flex align-items-center justify-content-center '
|
|
67082
|
-
}, langdetect == 'en' &&
|
|
67117
|
+
}, langdetect == 'en' &&
|
|
67118
|
+
/*#__PURE__*/
|
|
67119
|
+
// remove
|
|
67120
|
+
React__default["default"].createElement("button", {
|
|
67083
67121
|
"class": "".concat(card_cssstyles.minus_quantitybtn_icon_container) + ' m-1 ',
|
|
67084
67122
|
style: {
|
|
67085
67123
|
transform: ' rotate(-180deg)'
|
|
67086
67124
|
},
|
|
67087
67125
|
onClick: function onClick() {
|
|
67088
|
-
|
|
67089
|
-
|
|
67126
|
+
if (item.hasvariants == 0) {
|
|
67127
|
+
var tempitem = _objectSpread$l({}, item);
|
|
67128
|
+
tempitem.quantity = parseInt(tempitem.quantity);
|
|
67129
|
+
tempitem.quantity = tempitem.quantity - 1;
|
|
67130
|
+
if (tempitem.quantity <= 0) {
|
|
67131
|
+
tempitem.quantity = 0;
|
|
67132
|
+
}
|
|
67133
|
+
setitem(_objectSpread$l({}, tempitem));
|
|
67134
|
+
addtocartfunc('add', tempitem.quantity);
|
|
67135
|
+
} else {
|
|
67136
|
+
setShowProductInfoModalContext(true);
|
|
67137
|
+
setProductIdProdutInfoModalContext(item.productid);
|
|
67138
|
+
}
|
|
67139
|
+
},
|
|
67140
|
+
disabled: AddtoCartMutationContext.isLoading == true ? true : false
|
|
67090
67141
|
}, /*#__PURE__*/React__default["default"].createElement("i", {
|
|
67091
67142
|
"class": "h-100 allcentered"
|
|
67092
|
-
}, /*#__PURE__*/React__default["default"].createElement(IoIosArrowUp.IoIosArrowUp, null))), langdetect == 'ar' && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
67143
|
+
}, /*#__PURE__*/React__default["default"].createElement(IoIosArrowUp.IoIosArrowUp, null))), "// add", langdetect == 'ar' && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
67093
67144
|
"class": "".concat(card_cssstyles.add_quantitybtn_icon_container) + ' m-1 ',
|
|
67094
67145
|
onClick: function onClick() {
|
|
67095
|
-
|
|
67096
|
-
|
|
67146
|
+
if (item.hasvariants == 0) {
|
|
67147
|
+
var tempitem = _objectSpread$l({}, item);
|
|
67148
|
+
tempitem.quantity = parseInt(tempitem.quantity);
|
|
67149
|
+
tempitem.quantity = tempitem.quantity - 1;
|
|
67150
|
+
if (tempitem.quantity <= 0) {
|
|
67151
|
+
tempitem.quantity = 0;
|
|
67152
|
+
}
|
|
67153
|
+
setitem(_objectSpread$l({}, tempitem));
|
|
67154
|
+
addtocartfunc('add', tempitem.quantity);
|
|
67155
|
+
} else {
|
|
67156
|
+
setShowProductInfoModalContext(true);
|
|
67157
|
+
setProductIdProdutInfoModalContext(item.productid);
|
|
67158
|
+
}
|
|
67159
|
+
},
|
|
67160
|
+
disabled: AddtoCartMutationContext.isLoading == true ? true : false
|
|
67097
67161
|
}, /*#__PURE__*/React__default["default"].createElement("i", {
|
|
67098
67162
|
"class": "h-100 allcentered"
|
|
67099
67163
|
}, /*#__PURE__*/React__default["default"].createElement(IoIosArrowUp.IoIosArrowUp, null))), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
@@ -67104,21 +67168,47 @@ var MenuCard = function MenuCard(props) {
|
|
|
67104
67168
|
height: sectionproperties.quantitybtntextheight + 'px',
|
|
67105
67169
|
borderRadius: sectionproperties.addquantitytextborderraduis + 'px'
|
|
67106
67170
|
}
|
|
67107
|
-
},
|
|
67171
|
+
}, addtocartbuttonrender()), langdetect == 'ar' && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
67108
67172
|
"class": "".concat(card_cssstyles.minus_quantitybtn_icon_container) + ' m-1 ',
|
|
67109
67173
|
style: {
|
|
67110
67174
|
transform: ' rotate(-180deg)'
|
|
67111
67175
|
},
|
|
67112
67176
|
onClick: function onClick() {
|
|
67113
|
-
|
|
67114
|
-
|
|
67177
|
+
if (item.hasvariants == 0) {
|
|
67178
|
+
var tempitem = _objectSpread$l({}, item);
|
|
67179
|
+
tempitem.quantity = parseInt(tempitem.quantity);
|
|
67180
|
+
tempitem.quantity = tempitem.quantity + 1;
|
|
67181
|
+
if (tempitem.quantity <= 0) {
|
|
67182
|
+
tempitem.quantity = 0;
|
|
67183
|
+
}
|
|
67184
|
+
setitem(_objectSpread$l({}, tempitem));
|
|
67185
|
+
addtocartfunc('add', tempitem.quantity);
|
|
67186
|
+
} else {
|
|
67187
|
+
setShowProductInfoModalContext(true);
|
|
67188
|
+
setProductIdProdutInfoModalContext(item.productid);
|
|
67189
|
+
}
|
|
67190
|
+
},
|
|
67191
|
+
disabled: AddtoCartMutationContext.isLoading == true ? true : false
|
|
67115
67192
|
}, /*#__PURE__*/React__default["default"].createElement("i", {
|
|
67116
67193
|
"class": "h-100 allcentered"
|
|
67117
67194
|
}, /*#__PURE__*/React__default["default"].createElement(IoIosArrowUp.IoIosArrowUp, null))), langdetect == 'en' && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
67118
67195
|
"class": "".concat(card_cssstyles.add_quantitybtn_icon_container) + ' m-1 ',
|
|
67119
67196
|
onClick: function onClick() {
|
|
67120
|
-
|
|
67121
|
-
|
|
67197
|
+
if (item.hasvariants == 0) {
|
|
67198
|
+
var tempitem = _objectSpread$l({}, item);
|
|
67199
|
+
tempitem.quantity = parseInt(tempitem.quantity);
|
|
67200
|
+
tempitem.quantity = tempitem.quantity + 1;
|
|
67201
|
+
if (tempitem.quantity <= 0) {
|
|
67202
|
+
tempitem.quantity = 0;
|
|
67203
|
+
}
|
|
67204
|
+
setitem(_objectSpread$l({}, tempitem));
|
|
67205
|
+
addtocartfunc('add', tempitem.quantity);
|
|
67206
|
+
} else {
|
|
67207
|
+
setShowProductInfoModalContext(true);
|
|
67208
|
+
setProductIdProdutInfoModalContext(item.productid);
|
|
67209
|
+
}
|
|
67210
|
+
},
|
|
67211
|
+
disabled: AddtoCartMutationContext.isLoading == true ? true : false
|
|
67122
67212
|
}, /*#__PURE__*/React__default["default"].createElement("i", {
|
|
67123
67213
|
"class": "h-100 allcentered"
|
|
67124
67214
|
}, /*#__PURE__*/React__default["default"].createElement(IoIosArrowUp.IoIosArrowUp, null)))))), /*#__PURE__*/React__default["default"].createElement("div", {
|