tabexseriescomponents 0.2.1268 → 0.2.1269
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 +385 -358
- package/dist/index.esm.js +385 -358
- package/dist/index.umd.js +385 -358
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -2055,7 +2055,7 @@ var Variantoptions = function Variantoptions(props) {
|
|
|
2055
2055
|
}
|
|
2056
2056
|
}))));
|
|
2057
2057
|
})))), sectionproperties.showsizeguidebtn == 'Show' && sizeguideimage.length != 0 && sectionproperties.sizeguideposition == 'Besides Variants' && /*#__PURE__*/React.createElement("div", {
|
|
2058
|
-
"class": "col-3 text-end"
|
|
2058
|
+
"class": "col-3 text-end p-0"
|
|
2059
2059
|
}, /*#__PURE__*/React.createElement("p", {
|
|
2060
2060
|
"class": formstyles.sizeguidebtn + ' m-0 p-0 cursor-pointer mb-auto ',
|
|
2061
2061
|
onClick: function onClick() {
|
|
@@ -7584,7 +7584,7 @@ var TamaraWidget = function TamaraWidget(props) {
|
|
|
7584
7584
|
function ownKeys$2C(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; }
|
|
7585
7585
|
function _objectSpread$2C(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2C(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2C(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
7586
7586
|
var Productinfo = function Productinfo(props) {
|
|
7587
|
-
var _css,
|
|
7587
|
+
var _css, _fetchProductInfoQuer84, _ref, _fetchProductInfoQuer85, _authdetailsContext$i35, _ref2, _fetchProductInfoQuer86, _authdetailsContext$i36, _ref3, _fetchProductInfoQuer87, _ref4, _authdetailsContext$i37, _authdetailsContext$i38, _authdetailsContext$i39, _authdetailsContext$i40, _authdetailsContext$i41, _authdetailsContext$i42, _authdetailsContext$i43, _authdetailsContext$i44, _authdetailsContext$i45, _fetchProductInfoQuer88, _fetchProductInfoQuer89, _fetchProductInfoQuer90, _returnpolicyobj5, _returnpolicyobj6, _returnpolicyobj7, _returnpolicyobj8, _fetchProductInfoQuer91, _fetchProductInfoQuer92, _returnpolicyobj9, _returnpolicyobj0, _returnpolicyobj1, _returnpolicyobj10, _fetchProductInfoQuer93, _fetchProductInfoQuer94, _returnpolicyobj11, _returnpolicyobj12, _returnpolicyobj13, _returnpolicyobj14, _authdetailsContext$i46, _returnpolicyobj15, _returnpolicyobj16, _returnpolicyobj17, _returnpolicyobj18, _fetchProductInfoQuer95, _fetchProductInfoQuer96, _fetchProductInfoQuer97, _fetchProductInfoQuer98, _returnpolicyobj19, _returnpolicyobj20, _returnpolicyobj21, _returnpolicyobj22, _authdetailsContext$i47, _returnpolicyobj23, _returnpolicyobj24, _returnpolicyobj25, _returnpolicyobj26, _fetchProductInfoQuer99, _fetchProductInfoQuer100, _returnpolicyobj27, _returnpolicyobj28, _returnpolicyobj29, _returnpolicyobj30, _authdetailsContext$i48, _fetchProductInfoQuer101, _fetchProductInfoQuer102, _fetchProductInfoQuer103, _fetchProductInfoQuer104, _returnpolicyobj31, _returnpolicyobj32, _returnpolicyobj33, _returnpolicyobj34, _authdetailsContext$i49, _authdetailsContext$i50, _authdetailsContext$i51;
|
|
7588
7588
|
var _useState = useState({}),
|
|
7589
7589
|
_useState2 = _slicedToArray(_useState, 2),
|
|
7590
7590
|
ProductInfoObj = _useState2[0],
|
|
@@ -7892,32 +7892,33 @@ var Productinfo = function Productinfo(props) {
|
|
|
7892
7892
|
// }, [fetchProductInfoQueryContext.isSuccess, fetchProductInfoQueryContext.data, props, props.actions]);
|
|
7893
7893
|
useEffect(function () {
|
|
7894
7894
|
if (Object.keys(ProductInfoObj).length != 0 && !isloaded) {
|
|
7895
|
-
var _fetchProductInfoQuer8, _fetchProductInfoQuer9, _fetchProductInfoQuer0, _fetchProductInfoQuer1, _fetchProductInfoQuer10, _fetchProductInfoQuer11, _fetchProductInfoQuer12, _fetchProductInfoQuer13, _fetchProductInfoQuer14, _fetchProductInfoQuer15, _fetchProductInfoQuer16, _fetchProductInfoQuer17, _fetchProductInfoQuer18, _fetchProductInfoQuer19;
|
|
7895
|
+
var _fetchProductInfoQuer8, _fetchProductInfoQuer9, _fetchProductInfoQuer0, _fetchProductInfoQuer1, _fetchProductInfoQuer10, _fetchProductInfoQuer11, _fetchProductInfoQuer12, _fetchProductInfoQuer13, _fetchProductInfoQuer14, _fetchProductInfoQuer15, _fetchProductInfoQuer16, _fetchProductInfoQuer17, _fetchProductInfoQuer18, _fetchProductInfoQuer19, _fetchProductInfoQuer20;
|
|
7896
7896
|
variantchecker();
|
|
7897
7897
|
Pixel_EventsContext('productview', {
|
|
7898
7898
|
name_en: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer8 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer8 === void 0 || (_fetchProductInfoQuer8 = _fetchProductInfoQuer8.data) === null || _fetchProductInfoQuer8 === void 0 || (_fetchProductInfoQuer8 = _fetchProductInfoQuer8.productinfo) === null || _fetchProductInfoQuer8 === void 0 ? void 0 : _fetchProductInfoQuer8.name_en,
|
|
7899
7899
|
name_ar: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer9 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer9 === void 0 || (_fetchProductInfoQuer9 = _fetchProductInfoQuer9.data) === null || _fetchProductInfoQuer9 === void 0 || (_fetchProductInfoQuer9 = _fetchProductInfoQuer9.productinfo) === null || _fetchProductInfoQuer9 === void 0 ? void 0 : _fetchProductInfoQuer9.name_ar,
|
|
7900
7900
|
productid: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer0 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer0 === void 0 || (_fetchProductInfoQuer0 = _fetchProductInfoQuer0.data) === null || _fetchProductInfoQuer0 === void 0 || (_fetchProductInfoQuer0 = _fetchProductInfoQuer0.productinfo) === null || _fetchProductInfoQuer0 === void 0 ? void 0 : _fetchProductInfoQuer0.productid,
|
|
7901
|
-
|
|
7901
|
+
value: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer1 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer1 === void 0 || (_fetchProductInfoQuer1 = _fetchProductInfoQuer1.data) === null || _fetchProductInfoQuer1 === void 0 || (_fetchProductInfoQuer1 = _fetchProductInfoQuer1.productinfo) === null || _fetchProductInfoQuer1 === void 0 ? void 0 : _fetchProductInfoQuer1.defaultprice,
|
|
7902
|
+
sku: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer10 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer10 === void 0 || (_fetchProductInfoQuer10 = _fetchProductInfoQuer10.data) === null || _fetchProductInfoQuer10 === void 0 || (_fetchProductInfoQuer10 = _fetchProductInfoQuer10.productinfo) === null || _fetchProductInfoQuer10 === void 0 ? void 0 : _fetchProductInfoQuer10.sku,
|
|
7902
7903
|
currency: 'EGP'
|
|
7903
7904
|
});
|
|
7904
7905
|
Pixel_EventsContext('ViewContent', {
|
|
7905
|
-
name_en: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
7906
|
-
name_ar: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
7907
|
-
productid: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
7908
|
-
sku: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
7906
|
+
name_en: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer11 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer11 === void 0 || (_fetchProductInfoQuer11 = _fetchProductInfoQuer11.data) === null || _fetchProductInfoQuer11 === void 0 || (_fetchProductInfoQuer11 = _fetchProductInfoQuer11.productinfo) === null || _fetchProductInfoQuer11 === void 0 ? void 0 : _fetchProductInfoQuer11.name_en,
|
|
7907
|
+
name_ar: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer12 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer12 === void 0 || (_fetchProductInfoQuer12 = _fetchProductInfoQuer12.data) === null || _fetchProductInfoQuer12 === void 0 || (_fetchProductInfoQuer12 = _fetchProductInfoQuer12.productinfo) === null || _fetchProductInfoQuer12 === void 0 ? void 0 : _fetchProductInfoQuer12.name_ar,
|
|
7908
|
+
productid: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer13 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer13 === void 0 || (_fetchProductInfoQuer13 = _fetchProductInfoQuer13.data) === null || _fetchProductInfoQuer13 === void 0 || (_fetchProductInfoQuer13 = _fetchProductInfoQuer13.productinfo) === null || _fetchProductInfoQuer13 === void 0 ? void 0 : _fetchProductInfoQuer13.productid,
|
|
7909
|
+
sku: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer14 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer14 === void 0 || (_fetchProductInfoQuer14 = _fetchProductInfoQuer14.data) === null || _fetchProductInfoQuer14 === void 0 || (_fetchProductInfoQuer14 = _fetchProductInfoQuer14.productinfo) === null || _fetchProductInfoQuer14 === void 0 ? void 0 : _fetchProductInfoQuer14.sku,
|
|
7909
7910
|
currency: 'EGP'
|
|
7910
7911
|
});
|
|
7911
7912
|
Pixel_EventsContext('view_item', {
|
|
7912
7913
|
ecommerce: {
|
|
7913
7914
|
currency: 'EGP',
|
|
7914
|
-
value: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
7915
|
+
value: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer15 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer15 === void 0 || (_fetchProductInfoQuer15 = _fetchProductInfoQuer15.data) === null || _fetchProductInfoQuer15 === void 0 || (_fetchProductInfoQuer15 = _fetchProductInfoQuer15.productinfo) === null || _fetchProductInfoQuer15 === void 0 ? void 0 : _fetchProductInfoQuer15.defaultprice,
|
|
7915
7916
|
items: [{
|
|
7916
|
-
item_id: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
7917
|
-
item_name: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
7918
|
-
item_name_ar: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
7919
|
-
sku: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
7920
|
-
price: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
7917
|
+
item_id: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer16 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer16 === void 0 || (_fetchProductInfoQuer16 = _fetchProductInfoQuer16.data) === null || _fetchProductInfoQuer16 === void 0 || (_fetchProductInfoQuer16 = _fetchProductInfoQuer16.productinfo) === null || _fetchProductInfoQuer16 === void 0 ? void 0 : _fetchProductInfoQuer16.productid,
|
|
7918
|
+
item_name: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer17 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer17 === void 0 || (_fetchProductInfoQuer17 = _fetchProductInfoQuer17.data) === null || _fetchProductInfoQuer17 === void 0 || (_fetchProductInfoQuer17 = _fetchProductInfoQuer17.productinfo) === null || _fetchProductInfoQuer17 === void 0 ? void 0 : _fetchProductInfoQuer17.name_en,
|
|
7919
|
+
item_name_ar: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer18 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer18 === void 0 || (_fetchProductInfoQuer18 = _fetchProductInfoQuer18.data) === null || _fetchProductInfoQuer18 === void 0 || (_fetchProductInfoQuer18 = _fetchProductInfoQuer18.productinfo) === null || _fetchProductInfoQuer18 === void 0 ? void 0 : _fetchProductInfoQuer18.name_ar,
|
|
7920
|
+
sku: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer19 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer19 === void 0 || (_fetchProductInfoQuer19 = _fetchProductInfoQuer19.data) === null || _fetchProductInfoQuer19 === void 0 || (_fetchProductInfoQuer19 = _fetchProductInfoQuer19.productinfo) === null || _fetchProductInfoQuer19 === void 0 ? void 0 : _fetchProductInfoQuer19.sku,
|
|
7921
|
+
price: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer20 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer20 === void 0 || (_fetchProductInfoQuer20 = _fetchProductInfoQuer20.data) === null || _fetchProductInfoQuer20 === void 0 || (_fetchProductInfoQuer20 = _fetchProductInfoQuer20.productinfo) === null || _fetchProductInfoQuer20 === void 0 ? void 0 : _fetchProductInfoQuer20.defaultprice
|
|
7921
7922
|
}]
|
|
7922
7923
|
}
|
|
7923
7924
|
});
|
|
@@ -7966,18 +7967,18 @@ var Productinfo = function Productinfo(props) {
|
|
|
7966
7967
|
return fullPath;
|
|
7967
7968
|
};
|
|
7968
7969
|
useEffect(function () {
|
|
7969
|
-
var
|
|
7970
|
+
var _fetchProductInfoQuer21, _fetchProductInfoQuer22;
|
|
7970
7971
|
// if (!fetchProductInfoQueryContext.isFetching && fetchProductInfoQueryContext.isSuccess && ikimagecredcontext != undefined) {
|
|
7971
|
-
if (isProductPageLoading == false && Object.keys(fetchProductInfoQueryContext) != 0 && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
7972
|
-
var
|
|
7973
|
-
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
7974
|
-
var
|
|
7972
|
+
if (isProductPageLoading == false && Object.keys(fetchProductInfoQueryContext) != 0 && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer21 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer21 === void 0 || (_fetchProductInfoQuer21 = _fetchProductInfoQuer21.data) === null || _fetchProductInfoQuer21 === void 0 ? void 0 : _fetchProductInfoQuer21.productinfo) != undefined && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer22 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer22 === void 0 || (_fetchProductInfoQuer22 = _fetchProductInfoQuer22.data) === null || _fetchProductInfoQuer22 === void 0 ? void 0 : _fetchProductInfoQuer22.productinfo) != null && ikimagecredcontext != undefined) {
|
|
7973
|
+
var _fetchProductInfoQuer23;
|
|
7974
|
+
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer23 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer23 === void 0 || (_fetchProductInfoQuer23 = _fetchProductInfoQuer23.data) === null || _fetchProductInfoQuer23 === void 0 ? void 0 : _fetchProductInfoQuer23.productinfo) != null) {
|
|
7975
|
+
var _fetchProductInfoQuer24, _fetchProductInfoQuer26, _fetchProductInfoQuer27, _fetchProductInfoQuer28, _fetchProductInfoQuer29, _fetchProductInfoQuer31, _fetchProductInfoQuer32, _fetchProductInfoQuer33, _fetchProductInfoQuer34, _fetchProductInfoQuer35;
|
|
7975
7976
|
var tempproductimagesarray = [];
|
|
7976
7977
|
var sizeguideimagetemp = [];
|
|
7977
7978
|
var tempproductpdfsarray = [];
|
|
7978
|
-
if (Array.isArray(fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
7979
|
-
var
|
|
7980
|
-
fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
7979
|
+
if (Array.isArray(fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer24 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer24 === void 0 || (_fetchProductInfoQuer24 = _fetchProductInfoQuer24.data) === null || _fetchProductInfoQuer24 === void 0 || (_fetchProductInfoQuer24 = _fetchProductInfoQuer24.productinfo) === null || _fetchProductInfoQuer24 === void 0 ? void 0 : _fetchProductInfoQuer24.productimages)) {
|
|
7980
|
+
var _fetchProductInfoQuer25;
|
|
7981
|
+
fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer25 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer25 === void 0 || (_fetchProductInfoQuer25 = _fetchProductInfoQuer25.data) === null || _fetchProductInfoQuer25 === void 0 || (_fetchProductInfoQuer25 = _fetchProductInfoQuer25.productinfo) === null || _fetchProductInfoQuer25 === void 0 || _fetchProductInfoQuer25.productimages.forEach(function (arrayItem, arrayindex) {
|
|
7981
7982
|
var imagepath = arrayItem.path;
|
|
7982
7983
|
|
|
7983
7984
|
// var sizeguideimagearrayobj = {
|
|
@@ -8031,14 +8032,14 @@ var Productinfo = function Productinfo(props) {
|
|
|
8031
8032
|
variantchecker();
|
|
8032
8033
|
var quantitystepincrearse = 1;
|
|
8033
8034
|
var tempaddtocardpayloadobj = _objectSpread$2C({}, addtocardpayloadobj);
|
|
8034
|
-
tempaddtocardpayloadobj.productid = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
8035
|
+
tempaddtocardpayloadobj.productid = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer26 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer26 === void 0 || (_fetchProductInfoQuer26 = _fetchProductInfoQuer26.data) === null || _fetchProductInfoQuer26 === void 0 || (_fetchProductInfoQuer26 = _fetchProductInfoQuer26.productinfo) === null || _fetchProductInfoQuer26 === void 0 ? void 0 : _fetchProductInfoQuer26.productid;
|
|
8035
8036
|
// setaddtocardpayloadobj({ ...tempaddtocardpayloadobj });
|
|
8036
|
-
setRelatedProductsTagid(fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
8037
|
-
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
8038
|
-
var
|
|
8037
|
+
setRelatedProductsTagid(fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer27 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer27 === void 0 || (_fetchProductInfoQuer27 = _fetchProductInfoQuer27.data) === null || _fetchProductInfoQuer27 === void 0 || (_fetchProductInfoQuer27 = _fetchProductInfoQuer27.productinfo) === null || _fetchProductInfoQuer27 === void 0 ? void 0 : _fetchProductInfoQuer27.maintagid);
|
|
8038
|
+
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer28 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer28 === void 0 || (_fetchProductInfoQuer28 = _fetchProductInfoQuer28.data) === null || _fetchProductInfoQuer28 === void 0 || (_fetchProductInfoQuer28 = _fetchProductInfoQuer28.productinfo) === null || _fetchProductInfoQuer28 === void 0 ? void 0 : _fetchProductInfoQuer28.maintagid) != null && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer29 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer29 === void 0 || (_fetchProductInfoQuer29 = _fetchProductInfoQuer29.data) === null || _fetchProductInfoQuer29 === void 0 || (_fetchProductInfoQuer29 = _fetchProductInfoQuer29.productinfo) === null || _fetchProductInfoQuer29 === void 0 || (_fetchProductInfoQuer29 = _fetchProductInfoQuer29.maintagid) === null || _fetchProductInfoQuer29 === void 0 ? void 0 : _fetchProductInfoQuer29.length) != 0) {
|
|
8039
|
+
var _fetchProductInfoQuer30;
|
|
8039
8040
|
GeneralAPIMutationContext.mutate({
|
|
8040
8041
|
endpointurl: '/FetchRelatedProducts',
|
|
8041
|
-
tagid: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
8042
|
+
tagid: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer30 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer30 === void 0 || (_fetchProductInfoQuer30 = _fetchProductInfoQuer30.data) === null || _fetchProductInfoQuer30 === void 0 || (_fetchProductInfoQuer30 = _fetchProductInfoQuer30.productinfo) === null || _fetchProductInfoQuer30 === void 0 ? void 0 : _fetchProductInfoQuer30.maintagid,
|
|
8042
8043
|
mutateSuccesscallback: function mutateSuccesscallback(data, variables) {
|
|
8043
8044
|
if (data.data.status) {
|
|
8044
8045
|
setRelatedproducts(data.data.productsrelated);
|
|
@@ -8046,19 +8047,19 @@ var Productinfo = function Productinfo(props) {
|
|
|
8046
8047
|
}
|
|
8047
8048
|
});
|
|
8048
8049
|
}
|
|
8049
|
-
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
8050
|
+
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer31 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer31 === void 0 || (_fetchProductInfoQuer31 = _fetchProductInfoQuer31.data) === null || _fetchProductInfoQuer31 === void 0 || (_fetchProductInfoQuer31 = _fetchProductInfoQuer31.productinfo) === null || _fetchProductInfoQuer31 === void 0 ? void 0 : _fetchProductInfoQuer31.item_type) == 'package list') {
|
|
8050
8051
|
tempaddtocardpayloadobj.item_type = 'package list';
|
|
8051
8052
|
} else {
|
|
8052
8053
|
tempaddtocardpayloadobj.item_type = 'product';
|
|
8053
8054
|
}
|
|
8054
|
-
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
8055
|
+
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer32 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer32 === void 0 || (_fetchProductInfoQuer32 = _fetchProductInfoQuer32.data) === null || _fetchProductInfoQuer32 === void 0 || (_fetchProductInfoQuer32 = _fetchProductInfoQuer32.productinfo) === null || _fetchProductInfoQuer32 === void 0 ? void 0 : _fetchProductInfoQuer32.quantitystepincrearse) != undefined && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer33 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer33 === void 0 || (_fetchProductInfoQuer33 = _fetchProductInfoQuer33.data) === null || _fetchProductInfoQuer33 === void 0 || (_fetchProductInfoQuer33 = _fetchProductInfoQuer33.productinfo) === null || _fetchProductInfoQuer33 === void 0 ? void 0 : _fetchProductInfoQuer33.quantitystepincrearse) != null && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer34 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer34 === void 0 || (_fetchProductInfoQuer34 = _fetchProductInfoQuer34.data) === null || _fetchProductInfoQuer34 === void 0 || (_fetchProductInfoQuer34 = _fetchProductInfoQuer34.productinfo) === null || _fetchProductInfoQuer34 === void 0 ? void 0 : _fetchProductInfoQuer34.quantitystepincrearse) != 1 && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer35 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer35 === void 0 || (_fetchProductInfoQuer35 = _fetchProductInfoQuer35.data) === null || _fetchProductInfoQuer35 === void 0 || (_fetchProductInfoQuer35 = _fetchProductInfoQuer35.productinfo) === null || _fetchProductInfoQuer35 === void 0 ? void 0 : _fetchProductInfoQuer35.quantitystepincrearse) != '') {
|
|
8055
8056
|
var _authdetailsContext$i4;
|
|
8056
8057
|
if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i4 = authdetailsContext.instinfo) === null || _authdetailsContext$i4 === void 0 ? void 0 : _authdetailsContext$i4.contactinfo.instid) == '66d6de1a1e04a') {
|
|
8057
|
-
var _fetchProductInfoQuer35;
|
|
8058
|
-
quantitystepincrearse = parseFloat(fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer35 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer35 === void 0 || (_fetchProductInfoQuer35 = _fetchProductInfoQuer35.data) === null || _fetchProductInfoQuer35 === void 0 || (_fetchProductInfoQuer35 = _fetchProductInfoQuer35.productinfo) === null || _fetchProductInfoQuer35 === void 0 ? void 0 : _fetchProductInfoQuer35.quantitystepincrearse);
|
|
8059
|
-
} else {
|
|
8060
8058
|
var _fetchProductInfoQuer36;
|
|
8061
|
-
quantitystepincrearse =
|
|
8059
|
+
quantitystepincrearse = parseFloat(fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer36 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer36 === void 0 || (_fetchProductInfoQuer36 = _fetchProductInfoQuer36.data) === null || _fetchProductInfoQuer36 === void 0 || (_fetchProductInfoQuer36 = _fetchProductInfoQuer36.productinfo) === null || _fetchProductInfoQuer36 === void 0 ? void 0 : _fetchProductInfoQuer36.quantitystepincrearse);
|
|
8060
|
+
} else {
|
|
8061
|
+
var _fetchProductInfoQuer37;
|
|
8062
|
+
quantitystepincrearse = parseInt(fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer37 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer37 === void 0 || (_fetchProductInfoQuer37 = _fetchProductInfoQuer37.data) === null || _fetchProductInfoQuer37 === void 0 || (_fetchProductInfoQuer37 = _fetchProductInfoQuer37.productinfo) === null || _fetchProductInfoQuer37 === void 0 ? void 0 : _fetchProductInfoQuer37.quantitystepincrearse);
|
|
8062
8063
|
}
|
|
8063
8064
|
// quantitystepincrearse = parseFloat(fetchProductInfoQueryContext?.data?.data?.productinfo?.quantitystepincrearse);
|
|
8064
8065
|
}
|
|
@@ -9503,8 +9504,8 @@ var Productinfo = function Productinfo(props) {
|
|
|
9503
9504
|
});
|
|
9504
9505
|
}
|
|
9505
9506
|
if (variantnotmatch.length == 0 && isvariant == true) {
|
|
9506
|
-
var
|
|
9507
|
-
var variantobj = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
9507
|
+
var _fetchProductInfoQuer38;
|
|
9508
|
+
var variantobj = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer38 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer38 === void 0 || (_fetchProductInfoQuer38 = _fetchProductInfoQuer38.data) === null || _fetchProductInfoQuer38 === void 0 || (_fetchProductInfoQuer38 = _fetchProductInfoQuer38.productinfo) === null || _fetchProductInfoQuer38 === void 0 ? void 0 : _fetchProductInfoQuer38.variants[ProductVariantIndex];
|
|
9508
9509
|
var variantid = '';
|
|
9509
9510
|
if (variantobj == undefined) {
|
|
9510
9511
|
setisoutofstock(false);
|
|
@@ -9549,8 +9550,8 @@ var Productinfo = function Productinfo(props) {
|
|
|
9549
9550
|
var forcetocheckoutvalue = forcetocheckout;
|
|
9550
9551
|
// alert(addtocardpayloadobj.quantity + 'sad');
|
|
9551
9552
|
if (addtocardpayloadobj.productid.length != 0 && addtocardpayloadobj.quantity > 0) {
|
|
9552
|
-
var
|
|
9553
|
-
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
9553
|
+
var _fetchProductInfoQuer39;
|
|
9554
|
+
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer39 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer39 === void 0 || (_fetchProductInfoQuer39 = _fetchProductInfoQuer39.data) === null || _fetchProductInfoQuer39 === void 0 || (_fetchProductInfoQuer39 = _fetchProductInfoQuer39.productinfo) === null || _fetchProductInfoQuer39 === void 0 ? void 0 : _fetchProductInfoQuer39.hasvariants) == 1) {
|
|
9554
9555
|
if (addtocardpayloadobj.variantid.length != 0) {
|
|
9555
9556
|
runfunc = true;
|
|
9556
9557
|
} else {
|
|
@@ -9566,28 +9567,28 @@ var Productinfo = function Productinfo(props) {
|
|
|
9566
9567
|
NotificationManager.warning('', 'Please Choose Quantity');
|
|
9567
9568
|
}
|
|
9568
9569
|
if (runfunc == true) {
|
|
9569
|
-
var
|
|
9570
|
+
var _fetchProductInfoQuer40, _fetchProductInfoQuer41;
|
|
9570
9571
|
var tempaddtocardpayloadobj = _objectSpread$2C({}, addtocardpayloadobj);
|
|
9571
|
-
tempaddtocardpayloadobj.isproductforcedtocheckout = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
9572
|
-
tempaddtocardpayloadobj.vendorid = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
9572
|
+
tempaddtocardpayloadobj.isproductforcedtocheckout = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer40 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer40 === void 0 || (_fetchProductInfoQuer40 = _fetchProductInfoQuer40.data) === null || _fetchProductInfoQuer40 === void 0 || (_fetchProductInfoQuer40 = _fetchProductInfoQuer40.productinfo) === null || _fetchProductInfoQuer40 === void 0 ? void 0 : _fetchProductInfoQuer40.isproductforcedtocheckout;
|
|
9573
|
+
tempaddtocardpayloadobj.vendorid = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer41 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer41 === void 0 || (_fetchProductInfoQuer41 = _fetchProductInfoQuer41.data) === null || _fetchProductInfoQuer41 === void 0 || (_fetchProductInfoQuer41 = _fetchProductInfoQuer41.productinfo) === null || _fetchProductInfoQuer41 === void 0 ? void 0 : _fetchProductInfoQuer41.vendorproviderid;
|
|
9573
9574
|
if (forcetocheckoutvalue != undefined) {
|
|
9574
9575
|
tempaddtocardpayloadobj.forcetocheckoutvalue = forcetocheckoutvalue;
|
|
9575
9576
|
}
|
|
9576
9577
|
var Extrafieldvalidationresponse = validateextrafields();
|
|
9577
9578
|
if (Extrafieldvalidationresponse.status) {
|
|
9578
|
-
var
|
|
9579
|
+
var _fetchProductInfoQuer42, _fetchProductInfoQuer43, _fetchProductInfoQuer44, _fetchProductInfoQuer45, _fetchProductInfoQuer46, _fetchProductInfoQuer47;
|
|
9579
9580
|
var finalprice = 0;
|
|
9580
|
-
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
9581
|
+
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer42 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer42 === void 0 || (_fetchProductInfoQuer42 = _fetchProductInfoQuer42.data) === null || _fetchProductInfoQuer42 === void 0 || (_fetchProductInfoQuer42 = _fetchProductInfoQuer42.productinfo) === null || _fetchProductInfoQuer42 === void 0 ? void 0 : _fetchProductInfoQuer42.hassale) == 1) {
|
|
9581
9582
|
finalprice = getprice_discountpriceprops('defaultsaleprice', 0, variantindexcompleted);
|
|
9582
9583
|
} else {
|
|
9583
9584
|
finalprice = getprice_discountpriceprops('defaultprice', 0, variantindexcompleted);
|
|
9584
9585
|
}
|
|
9585
9586
|
Pixel_EventsContext('AddToCart', {
|
|
9586
|
-
content_ids: [fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
9587
|
-
content_name: (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
9588
|
-
content_sku: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
9587
|
+
content_ids: [fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer43 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer43 === void 0 || (_fetchProductInfoQuer43 = _fetchProductInfoQuer43.data) === null || _fetchProductInfoQuer43 === void 0 || (_fetchProductInfoQuer43 = _fetchProductInfoQuer43.productinfo) === null || _fetchProductInfoQuer43 === void 0 ? void 0 : _fetchProductInfoQuer43.productid],
|
|
9588
|
+
content_name: (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer44 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer44 === void 0 || (_fetchProductInfoQuer44 = _fetchProductInfoQuer44.data) === null || _fetchProductInfoQuer44 === void 0 || (_fetchProductInfoQuer44 = _fetchProductInfoQuer44.productinfo) === null || _fetchProductInfoQuer44 === void 0 ? void 0 : _fetchProductInfoQuer44.name_en) + ' - ' + (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer45 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer45 === void 0 || (_fetchProductInfoQuer45 = _fetchProductInfoQuer45.data) === null || _fetchProductInfoQuer45 === void 0 || (_fetchProductInfoQuer45 = _fetchProductInfoQuer45.productinfo) === null || _fetchProductInfoQuer45 === void 0 ? void 0 : _fetchProductInfoQuer45.name_ar),
|
|
9589
|
+
content_sku: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer46 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer46 === void 0 || (_fetchProductInfoQuer46 = _fetchProductInfoQuer46.data) === null || _fetchProductInfoQuer46 === void 0 || (_fetchProductInfoQuer46 = _fetchProductInfoQuer46.productinfo) === null || _fetchProductInfoQuer46 === void 0 ? void 0 : _fetchProductInfoQuer46.sku,
|
|
9589
9590
|
content_type: 'product',
|
|
9590
|
-
currency: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
9591
|
+
currency: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer47 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer47 === void 0 || (_fetchProductInfoQuer47 = _fetchProductInfoQuer47.data) === null || _fetchProductInfoQuer47 === void 0 ? void 0 : _fetchProductInfoQuer47.currencyname_en,
|
|
9591
9592
|
value: finalprice,
|
|
9592
9593
|
quantity: addtocardpayloadobj.quantity
|
|
9593
9594
|
});
|
|
@@ -9596,12 +9597,12 @@ var Productinfo = function Productinfo(props) {
|
|
|
9596
9597
|
}
|
|
9597
9598
|
};
|
|
9598
9599
|
var validateextrafields = function validateextrafields() {
|
|
9599
|
-
var
|
|
9600
|
+
var _fetchProductInfoQuer48;
|
|
9600
9601
|
var tempaddtocardpayloadobj = _objectSpread$2C({}, addtocardpayloadobj);
|
|
9601
9602
|
var status = false;
|
|
9602
9603
|
var reason = '';
|
|
9603
9604
|
var missingitemsfound = [];
|
|
9604
|
-
var extrafields = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
9605
|
+
var extrafields = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer48 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer48 === void 0 || (_fetchProductInfoQuer48 = _fetchProductInfoQuer48.data) === null || _fetchProductInfoQuer48 === void 0 || (_fetchProductInfoQuer48 = _fetchProductInfoQuer48.productinfo) === null || _fetchProductInfoQuer48 === void 0 ? void 0 : _fetchProductInfoQuer48.productextrafields;
|
|
9605
9606
|
if ((extrafields === null || extrafields === void 0 ? void 0 : extrafields.length) == 0) {
|
|
9606
9607
|
status = true;
|
|
9607
9608
|
} else {
|
|
@@ -9720,9 +9721,9 @@ var Productinfo = function Productinfo(props) {
|
|
|
9720
9721
|
scrollContainerClassName: (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i25 = authdetailsContext.instinfo) === null || _authdetailsContext$i25 === void 0 ? void 0 : _authdetailsContext$i25.contactinfo.instid) == '68e7c7c93c5bd' ? '' : 'scrollmenuclasssubscrollbarrelatedproducts'
|
|
9721
9722
|
}, Relatedproducts.map(function (item, index) {
|
|
9722
9723
|
if (item.productinfo != null) {
|
|
9723
|
-
var
|
|
9724
|
-
if (item.productid != (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
9725
|
-
var
|
|
9724
|
+
var _fetchProductInfoQuer49;
|
|
9725
|
+
if (item.productid != (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer49 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer49 === void 0 || (_fetchProductInfoQuer49 = _fetchProductInfoQuer49.data) === null || _fetchProductInfoQuer49 === void 0 || (_fetchProductInfoQuer49 = _fetchProductInfoQuer49.productinfo) === null || _fetchProductInfoQuer49 === void 0 ? void 0 : _fetchProductInfoQuer49.productid)) {
|
|
9726
|
+
var _fetchProductInfoQuer50, _fetchProductInfoQuer51;
|
|
9726
9727
|
return /*#__PURE__*/React.createElement("div", {
|
|
9727
9728
|
className: "col-lg-12 mb-3 px-1",
|
|
9728
9729
|
onClick: function onClick() {
|
|
@@ -9772,7 +9773,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
9772
9773
|
"class": "col-lg-12 d-flex align-items-center justify-content-center p-0 "
|
|
9773
9774
|
}, /*#__PURE__*/React.createElement("p", {
|
|
9774
9775
|
"class": "".concat(productinfo_cssstyles.relatedproductPricestyles) + ' m-0 '
|
|
9775
|
-
}, item.productinfo.hassale == 1 ? item.productinfo.defaultsaleprice : item.productinfo.defaultprice, ' ', langdetect == 'en' ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
9776
|
+
}, item.productinfo.hassale == 1 ? item.productinfo.defaultsaleprice : item.productinfo.defaultprice, ' ', langdetect == 'en' ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer50 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer50 === void 0 || (_fetchProductInfoQuer50 = _fetchProductInfoQuer50.data) === null || _fetchProductInfoQuer50 === void 0 ? void 0 : _fetchProductInfoQuer50.currencyname_en : fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer51 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer51 === void 0 || (_fetchProductInfoQuer51 = _fetchProductInfoQuer51.data) === null || _fetchProductInfoQuer51 === void 0 ? void 0 : _fetchProductInfoQuer51.currencyname_ar, ' '))))));
|
|
9776
9777
|
}
|
|
9777
9778
|
}
|
|
9778
9779
|
}))))));
|
|
@@ -9799,28 +9800,28 @@ var Productinfo = function Productinfo(props) {
|
|
|
9799
9800
|
NotificationManager.warning('', 'Please Choose Quantity');
|
|
9800
9801
|
}
|
|
9801
9802
|
if (runfunc == true) {
|
|
9802
|
-
var
|
|
9803
|
+
var _fetchProductInfoQuer52, _fetchProductInfoQuer53;
|
|
9803
9804
|
// var tempaddtocardpayloadobj = { ...addtocardpayloadobj };
|
|
9804
|
-
addtocartobjparam.isproductforcedtocheckout = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
9805
|
-
addtocartobjparam.vendorid = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
9805
|
+
addtocartobjparam.isproductforcedtocheckout = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer52 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer52 === void 0 || (_fetchProductInfoQuer52 = _fetchProductInfoQuer52.data) === null || _fetchProductInfoQuer52 === void 0 || (_fetchProductInfoQuer52 = _fetchProductInfoQuer52.productinfo) === null || _fetchProductInfoQuer52 === void 0 ? void 0 : _fetchProductInfoQuer52.isproductforcedtocheckout;
|
|
9806
|
+
addtocartobjparam.vendorid = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer53 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer53 === void 0 || (_fetchProductInfoQuer53 = _fetchProductInfoQuer53.data) === null || _fetchProductInfoQuer53 === void 0 || (_fetchProductInfoQuer53 = _fetchProductInfoQuer53.productinfo) === null || _fetchProductInfoQuer53 === void 0 ? void 0 : _fetchProductInfoQuer53.vendorproviderid;
|
|
9806
9807
|
if (forcetocheckoutvalue != undefined) {
|
|
9807
9808
|
addtocartobjparam.forcetocheckoutvalue = forcetocheckoutvalue;
|
|
9808
9809
|
}
|
|
9809
9810
|
var Extrafieldvalidationresponse = validateextrafields();
|
|
9810
9811
|
if (Extrafieldvalidationresponse.status) {
|
|
9811
|
-
var
|
|
9812
|
+
var _fetchProductInfoQuer54, _fetchProductInfoQuer55, _fetchProductInfoQuer56, _fetchProductInfoQuer57, _fetchProductInfoQuer58, _fetchProductInfoQuer59;
|
|
9812
9813
|
var finalprice = 0;
|
|
9813
|
-
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
9814
|
+
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer54 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer54 === void 0 || (_fetchProductInfoQuer54 = _fetchProductInfoQuer54.data) === null || _fetchProductInfoQuer54 === void 0 || (_fetchProductInfoQuer54 = _fetchProductInfoQuer54.productinfo) === null || _fetchProductInfoQuer54 === void 0 ? void 0 : _fetchProductInfoQuer54.hassale) == 1) {
|
|
9814
9815
|
finalprice = getprice_discountpriceprops('defaultsaleprice', 0, variantindexcompleted);
|
|
9815
9816
|
} else {
|
|
9816
9817
|
finalprice = getprice_discountpriceprops('defaultprice', 0, variantindexcompleted);
|
|
9817
9818
|
}
|
|
9818
9819
|
Pixel_EventsContext('AddToCart', {
|
|
9819
|
-
content_ids: [fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
9820
|
-
content_name: (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
9821
|
-
content_sku: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
9820
|
+
content_ids: [fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer55 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer55 === void 0 || (_fetchProductInfoQuer55 = _fetchProductInfoQuer55.data) === null || _fetchProductInfoQuer55 === void 0 || (_fetchProductInfoQuer55 = _fetchProductInfoQuer55.productinfo) === null || _fetchProductInfoQuer55 === void 0 ? void 0 : _fetchProductInfoQuer55.productid],
|
|
9821
|
+
content_name: (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer56 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer56 === void 0 || (_fetchProductInfoQuer56 = _fetchProductInfoQuer56.data) === null || _fetchProductInfoQuer56 === void 0 || (_fetchProductInfoQuer56 = _fetchProductInfoQuer56.productinfo) === null || _fetchProductInfoQuer56 === void 0 ? void 0 : _fetchProductInfoQuer56.name_en) + ' - ' + (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer57 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer57 === void 0 || (_fetchProductInfoQuer57 = _fetchProductInfoQuer57.data) === null || _fetchProductInfoQuer57 === void 0 || (_fetchProductInfoQuer57 = _fetchProductInfoQuer57.productinfo) === null || _fetchProductInfoQuer57 === void 0 ? void 0 : _fetchProductInfoQuer57.name_ar),
|
|
9822
|
+
content_sku: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer58 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer58 === void 0 || (_fetchProductInfoQuer58 = _fetchProductInfoQuer58.data) === null || _fetchProductInfoQuer58 === void 0 || (_fetchProductInfoQuer58 = _fetchProductInfoQuer58.productinfo) === null || _fetchProductInfoQuer58 === void 0 ? void 0 : _fetchProductInfoQuer58.sku,
|
|
9822
9823
|
content_type: 'product',
|
|
9823
|
-
currency: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
9824
|
+
currency: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer59 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer59 === void 0 || (_fetchProductInfoQuer59 = _fetchProductInfoQuer59.data) === null || _fetchProductInfoQuer59 === void 0 ? void 0 : _fetchProductInfoQuer59.currencyname_en,
|
|
9824
9825
|
value: finalprice,
|
|
9825
9826
|
quantity: addtocardpayloadobj.quantity
|
|
9826
9827
|
});
|
|
@@ -10410,16 +10411,16 @@ var Productinfo = function Productinfo(props) {
|
|
|
10410
10411
|
}
|
|
10411
10412
|
};
|
|
10412
10413
|
var get_product_extras_price = function get_product_extras_price() {
|
|
10413
|
-
var
|
|
10414
|
+
var _fetchProductInfoQuer60, _fetchProductInfoQuer61, _fetchcustomercartQue, _fetchcustomercartQue2, _fetchcustomercartQue3;
|
|
10414
10415
|
var totalprice_extras_price = 0;
|
|
10415
|
-
if (fetchProductInfoQueryContext != undefined && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : fetchProductInfoQueryContext.data) != undefined && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
10416
|
+
if (fetchProductInfoQueryContext != undefined && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : fetchProductInfoQueryContext.data) != undefined && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer60 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer60 === void 0 ? void 0 : _fetchProductInfoQuer60.data) != undefined && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer61 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer61 === void 0 || (_fetchProductInfoQuer61 = _fetchProductInfoQuer61.data) === null || _fetchProductInfoQuer61 === void 0 ? void 0 : _fetchProductInfoQuer61.productinfo) != undefined && fetchcustomercartQueryContext != undefined && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : fetchcustomercartQueryContext.data) != undefined && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue === void 0 ? void 0 : _fetchcustomercartQue.data) != undefined && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue2 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue2 === void 0 || (_fetchcustomercartQue2 = _fetchcustomercartQue2.data) === null || _fetchcustomercartQue2 === void 0 ? void 0 : _fetchcustomercartQue2.customercart) != undefined && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue3 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue3 === void 0 || (_fetchcustomercartQue3 = _fetchcustomercartQue3.data) === null || _fetchcustomercartQue3 === void 0 || (_fetchcustomercartQue3 = _fetchcustomercartQue3.customercart) === null || _fetchcustomercartQue3 === void 0 ? void 0 : _fetchcustomercartQue3.cartitems) != undefined) {
|
|
10416
10417
|
var _fetchcustomercartQue4;
|
|
10417
10418
|
var extras_for_product = [];
|
|
10418
10419
|
fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue4 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue4 === void 0 || (_fetchcustomercartQue4 = _fetchcustomercartQue4.data) === null || _fetchcustomercartQue4 === void 0 || (_fetchcustomercartQue4 = _fetchcustomercartQue4.customercart) === null || _fetchcustomercartQue4 === void 0 ? void 0 : _fetchcustomercartQue4.cartitems;
|
|
10419
10420
|
product_prod_extras_array === null || product_prod_extras_array === void 0 || product_prod_extras_array.forEach(function (cartitem_in, cartindex_in) {
|
|
10420
10421
|
if ((cartitem_in === null || cartitem_in === void 0 ? void 0 : cartitem_in.item_type) == 'Extras') {
|
|
10421
|
-
var
|
|
10422
|
-
if ((cartitem_in === null || cartitem_in === void 0 ? void 0 : cartitem_in.main_ref_productid) == (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
10422
|
+
var _fetchProductInfoQuer62;
|
|
10423
|
+
if ((cartitem_in === null || cartitem_in === void 0 ? void 0 : cartitem_in.main_ref_productid) == (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer62 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer62 === void 0 || (_fetchProductInfoQuer62 = _fetchProductInfoQuer62.data) === null || _fetchProductInfoQuer62 === void 0 || (_fetchProductInfoQuer62 = _fetchProductInfoQuer62.productinfo) === null || _fetchProductInfoQuer62 === void 0 ? void 0 : _fetchProductInfoQuer62.productid)) {
|
|
10423
10424
|
extras_for_product.push(cartitem_in);
|
|
10424
10425
|
}
|
|
10425
10426
|
}
|
|
@@ -10432,37 +10433,37 @@ var Productinfo = function Productinfo(props) {
|
|
|
10432
10433
|
return parseFloat(totalprice_extras_price);
|
|
10433
10434
|
};
|
|
10434
10435
|
var getprice_discountpriceprops = function getprice_discountpriceprops(type, withtotal, variantindexcompleted) {
|
|
10435
|
-
var
|
|
10436
|
+
var _fetchProductInfoQuer63, _fetchProductInfoQuer64, _fetchProductInfoQuer65, _fetchProductInfoQuer66;
|
|
10436
10437
|
var price = 0;
|
|
10437
10438
|
var quantity = 0;
|
|
10438
10439
|
if (addtocardpayloadobj.quantity != undefined && addtocardpayloadobj.quantity != null) {
|
|
10439
10440
|
quantity = parseFloat(addtocardpayloadobj.quantity);
|
|
10440
10441
|
}
|
|
10441
|
-
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
10442
|
-
var
|
|
10443
|
-
fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
10442
|
+
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer63 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer63 === void 0 || (_fetchProductInfoQuer63 = _fetchProductInfoQuer63.data) === null || _fetchProductInfoQuer63 === void 0 || (_fetchProductInfoQuer63 = _fetchProductInfoQuer63.productinfo) === null || _fetchProductInfoQuer63 === void 0 ? void 0 : _fetchProductInfoQuer63.productquantityoptions) != undefined && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer64 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer64 === void 0 || (_fetchProductInfoQuer64 = _fetchProductInfoQuer64.data) === null || _fetchProductInfoQuer64 === void 0 || (_fetchProductInfoQuer64 = _fetchProductInfoQuer64.productinfo) === null || _fetchProductInfoQuer64 === void 0 ? void 0 : _fetchProductInfoQuer64.productquantityoptions) != null && Array.isArray(fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer65 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer65 === void 0 || (_fetchProductInfoQuer65 = _fetchProductInfoQuer65.data) === null || _fetchProductInfoQuer65 === void 0 || (_fetchProductInfoQuer65 = _fetchProductInfoQuer65.productinfo) === null || _fetchProductInfoQuer65 === void 0 ? void 0 : _fetchProductInfoQuer65.productquantityoptions) && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer66 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer66 === void 0 || (_fetchProductInfoQuer66 = _fetchProductInfoQuer66.data) === null || _fetchProductInfoQuer66 === void 0 || (_fetchProductInfoQuer66 = _fetchProductInfoQuer66.productinfo) === null || _fetchProductInfoQuer66 === void 0 || (_fetchProductInfoQuer66 = _fetchProductInfoQuer66.productquantityoptions) === null || _fetchProductInfoQuer66 === void 0 ? void 0 : _fetchProductInfoQuer66.length) != 0) {
|
|
10443
|
+
var _fetchProductInfoQuer67;
|
|
10444
|
+
fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer67 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer67 === void 0 || (_fetchProductInfoQuer67 = _fetchProductInfoQuer67.data) === null || _fetchProductInfoQuer67 === void 0 || (_fetchProductInfoQuer67 = _fetchProductInfoQuer67.productinfo) === null || _fetchProductInfoQuer67 === void 0 ? void 0 : _fetchProductInfoQuer67.productquantityoptions;
|
|
10444
10445
|
}
|
|
10445
10446
|
if (type == 'defaultprice') {
|
|
10446
|
-
var
|
|
10447
|
-
price = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
10448
|
-
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
10447
|
+
var _fetchProductInfoQuer68, _fetchProductInfoQuer69;
|
|
10448
|
+
price = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer68 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer68 === void 0 || (_fetchProductInfoQuer68 = _fetchProductInfoQuer68.data) === null || _fetchProductInfoQuer68 === void 0 || (_fetchProductInfoQuer68 = _fetchProductInfoQuer68.productinfo) === null || _fetchProductInfoQuer68 === void 0 ? void 0 : _fetchProductInfoQuer68.defaultprice;
|
|
10449
|
+
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer69 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer69 === void 0 || (_fetchProductInfoQuer69 = _fetchProductInfoQuer69.data) === null || _fetchProductInfoQuer69 === void 0 || (_fetchProductInfoQuer69 = _fetchProductInfoQuer69.productinfo) === null || _fetchProductInfoQuer69 === void 0 ? void 0 : _fetchProductInfoQuer69.hasvariants) == 1) {
|
|
10449
10450
|
if (variantindexcompleted != undefined) {
|
|
10450
|
-
var
|
|
10451
|
-
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
10452
|
-
var
|
|
10453
|
-
price = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
10451
|
+
var _fetchProductInfoQuer70;
|
|
10452
|
+
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer70 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer70 === void 0 || (_fetchProductInfoQuer70 = _fetchProductInfoQuer70.data) === null || _fetchProductInfoQuer70 === void 0 || (_fetchProductInfoQuer70 = _fetchProductInfoQuer70.productinfo) === null || _fetchProductInfoQuer70 === void 0 || (_fetchProductInfoQuer70 = _fetchProductInfoQuer70.variants[variantindexcompleted]) === null || _fetchProductInfoQuer70 === void 0 ? void 0 : _fetchProductInfoQuer70.variantprice) != undefined) {
|
|
10453
|
+
var _fetchProductInfoQuer71;
|
|
10454
|
+
price = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer71 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer71 === void 0 || (_fetchProductInfoQuer71 = _fetchProductInfoQuer71.data) === null || _fetchProductInfoQuer71 === void 0 || (_fetchProductInfoQuer71 = _fetchProductInfoQuer71.productinfo) === null || _fetchProductInfoQuer71 === void 0 || (_fetchProductInfoQuer71 = _fetchProductInfoQuer71.variants[variantindexcompleted]) === null || _fetchProductInfoQuer71 === void 0 ? void 0 : _fetchProductInfoQuer71.variantprice;
|
|
10454
10455
|
}
|
|
10455
10456
|
}
|
|
10456
10457
|
}
|
|
10457
10458
|
} else if (type == 'defaultsaleprice') {
|
|
10458
|
-
var
|
|
10459
|
-
price = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
10460
|
-
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
10459
|
+
var _fetchProductInfoQuer72, _fetchProductInfoQuer73;
|
|
10460
|
+
price = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer72 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer72 === void 0 || (_fetchProductInfoQuer72 = _fetchProductInfoQuer72.data) === null || _fetchProductInfoQuer72 === void 0 || (_fetchProductInfoQuer72 = _fetchProductInfoQuer72.productinfo) === null || _fetchProductInfoQuer72 === void 0 ? void 0 : _fetchProductInfoQuer72.defaultsaleprice;
|
|
10461
|
+
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer73 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer73 === void 0 || (_fetchProductInfoQuer73 = _fetchProductInfoQuer73.data) === null || _fetchProductInfoQuer73 === void 0 || (_fetchProductInfoQuer73 = _fetchProductInfoQuer73.productinfo) === null || _fetchProductInfoQuer73 === void 0 ? void 0 : _fetchProductInfoQuer73.hasvariants) == 1) {
|
|
10461
10462
|
if (variantindexcompleted != undefined) {
|
|
10462
|
-
var
|
|
10463
|
-
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
10464
|
-
var
|
|
10465
|
-
price = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
10463
|
+
var _fetchProductInfoQuer74;
|
|
10464
|
+
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer74 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer74 === void 0 || (_fetchProductInfoQuer74 = _fetchProductInfoQuer74.data) === null || _fetchProductInfoQuer74 === void 0 || (_fetchProductInfoQuer74 = _fetchProductInfoQuer74.productinfo) === null || _fetchProductInfoQuer74 === void 0 || (_fetchProductInfoQuer74 = _fetchProductInfoQuer74.variants[variantindexcompleted]) === null || _fetchProductInfoQuer74 === void 0 ? void 0 : _fetchProductInfoQuer74.variantsaleprice) != undefined) {
|
|
10465
|
+
var _fetchProductInfoQuer75;
|
|
10466
|
+
price = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer75 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer75 === void 0 || (_fetchProductInfoQuer75 = _fetchProductInfoQuer75.data) === null || _fetchProductInfoQuer75 === void 0 || (_fetchProductInfoQuer75 = _fetchProductInfoQuer75.productinfo) === null || _fetchProductInfoQuer75 === void 0 || (_fetchProductInfoQuer75 = _fetchProductInfoQuer75.variants[variantindexcompleted]) === null || _fetchProductInfoQuer75 === void 0 ? void 0 : _fetchProductInfoQuer75.variantsaleprice;
|
|
10466
10467
|
}
|
|
10467
10468
|
}
|
|
10468
10469
|
}
|
|
@@ -10561,7 +10562,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
10561
10562
|
// }
|
|
10562
10563
|
// };
|
|
10563
10564
|
var getQuantityCondition = function getQuantityCondition() {
|
|
10564
|
-
var
|
|
10565
|
+
var _fetchProductInfoQuer76;
|
|
10565
10566
|
return /*#__PURE__*/React.createElement("div", {
|
|
10566
10567
|
"class": "col-lg-12 p-0",
|
|
10567
10568
|
style: {
|
|
@@ -10591,12 +10592,12 @@ var Productinfo = function Productinfo(props) {
|
|
|
10591
10592
|
height: 1,
|
|
10592
10593
|
background: sectionproperties.pricelisttitlecolor
|
|
10593
10594
|
}
|
|
10594
|
-
})), fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
10595
|
-
var
|
|
10595
|
+
})), fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer76 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer76 === void 0 || (_fetchProductInfoQuer76 = _fetchProductInfoQuer76.data) === null || _fetchProductInfoQuer76 === void 0 || (_fetchProductInfoQuer76 = _fetchProductInfoQuer76.productinfo) === null || _fetchProductInfoQuer76 === void 0 || (_fetchProductInfoQuer76 = _fetchProductInfoQuer76.productquantityoptions) === null || _fetchProductInfoQuer76 === void 0 ? void 0 : _fetchProductInfoQuer76.map(function (item, index) {
|
|
10596
|
+
var _fetchProductInfoQuer77;
|
|
10596
10597
|
return /*#__PURE__*/React.createElement("div", {
|
|
10597
10598
|
className: "col-lg-12 p-0 w-100 d-flex align-items-center",
|
|
10598
10599
|
style: {
|
|
10599
|
-
marginBottom: (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
10600
|
+
marginBottom: (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer77 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer77 === void 0 || (_fetchProductInfoQuer77 = _fetchProductInfoQuer77.data) === null || _fetchProductInfoQuer77 === void 0 || (_fetchProductInfoQuer77 = _fetchProductInfoQuer77.productinfo) === null || _fetchProductInfoQuer77 === void 0 || (_fetchProductInfoQuer77 = _fetchProductInfoQuer77.productquantityoptions) === null || _fetchProductInfoQuer77 === void 0 ? void 0 : _fetchProductInfoQuer77.length) - 1 != index ? '1rem' : 0
|
|
10600
10601
|
}
|
|
10601
10602
|
}, /*#__PURE__*/React.createElement("div", {
|
|
10602
10603
|
"class": "d-flex align-items-center",
|
|
@@ -10630,7 +10631,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
10630
10631
|
})));
|
|
10631
10632
|
};
|
|
10632
10633
|
var StoreInfo = function StoreInfo(position) {
|
|
10633
|
-
var
|
|
10634
|
+
var _fetchProductInfoQuer78, _authdetailsContext$i29, _returnpolicyobj, _returnpolicyobj2, _returnpolicyobj3, _returnpolicyobj4, _authdetailsContext$i30, _authdetailsContext$i32;
|
|
10634
10635
|
return /*#__PURE__*/React.createElement("div", {
|
|
10635
10636
|
"class": sectionproperties.storeinformationcontainerborderwidth != 0 ? 'row m-0 w-100 p-3' : 'row m-0 w-100',
|
|
10636
10637
|
style: {
|
|
@@ -10681,7 +10682,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
10681
10682
|
style: {
|
|
10682
10683
|
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
10683
10684
|
}
|
|
10684
|
-
}, langdetect == 'en' ? sectionproperties.otherinfodesc2en : sectionproperties.otherinfodesc2ar))), sectionproperties.showpricinglist == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
10685
|
+
}, langdetect == 'en' ? sectionproperties.otherinfodesc2en : sectionproperties.otherinfodesc2ar))), sectionproperties.showpricinglist == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer78 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer78 === void 0 || (_fetchProductInfoQuer78 = _fetchProductInfoQuer78.data) === null || _fetchProductInfoQuer78 === void 0 || (_fetchProductInfoQuer78 = _fetchProductInfoQuer78.productinfo) === null || _fetchProductInfoQuer78 === void 0 || (_fetchProductInfoQuer78 = _fetchProductInfoQuer78.productquantityoptions) === null || _fetchProductInfoQuer78 === void 0 ? void 0 : _fetchProductInfoQuer78.length) != 0 && /*#__PURE__*/React.createElement("div", {
|
|
10685
10686
|
"class": "col-lg-12 p-0 mb-4"
|
|
10686
10687
|
}, getQuantityCondition()), sectionproperties.showfooterphonenumber == 'Show' && /*#__PURE__*/React.createElement("div", {
|
|
10687
10688
|
className: "".concat(productinfo_cssstyles.storeinfobtn, " ").concat(productinfo_cssstyles.storeinfocontainer) + ' mt-4 col-lg-12 p-0 d-flex align-items-center cursor-pointer ',
|
|
@@ -10882,7 +10883,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
10882
10883
|
lang: langdetect,
|
|
10883
10884
|
amount: getprice_discountpriceprops('defaultprice', 0, variantindexcompleted),
|
|
10884
10885
|
divid: 'prodinfo'
|
|
10885
|
-
})), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
10886
|
+
})), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer84 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer84 === void 0 || (_fetchProductInfoQuer84 = _fetchProductInfoQuer84.data) === null || _fetchProductInfoQuer84 === void 0 || (_fetchProductInfoQuer84 = _fetchProductInfoQuer84.productinfo) === null || _fetchProductInfoQuer84 === void 0 ? void 0 : _fetchProductInfoQuer84.item_type) == 'product' && /*#__PURE__*/React.createElement(Product_itemtype, {
|
|
10886
10887
|
actions: (_ref = {
|
|
10887
10888
|
product_prod_extras_array: product_prod_extras_array,
|
|
10888
10889
|
setproduct_prod_extras_array: setproduct_prod_extras_array,
|
|
@@ -10896,7 +10897,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
10896
10897
|
lang: lang,
|
|
10897
10898
|
srcfromprops: props.srcfromprops
|
|
10898
10899
|
}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_ref, "returnpolicyobj", returnpolicyobj), "productinfo_cssstyles", productinfo_cssstyles), "addtocartfunc", addtocartfunc), "selectproductoptionvalue", selectproductoptionvalue), "clearchoosenvaluesbutkeepcurrentvalue", clearchoosenvaluesbutkeepcurrentvalue), "productimagesarray", productimagesarray), "fetchProductInfoQueryContext", fetchProductInfoQueryContext), "ProductInfoObj", ProductInfoObj), "sectionproperties", sectionproperties), "addtocardpayloadobj", addtocardpayloadobj), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_ref, "setaddtocardpayloadobj", setaddtocardpayloadobj), "routingcountext", routingcountext), "AddtoCartMutationContext", AddtoCartMutationContext), "authdetailsContext", authdetailsContext), "addtofavoritescontext", addtofavoritescontext), "variantindexcompleted", variantindexcompleted), "StaticPagesLinksContext", StaticPagesLinksContext), "NotificationManager", NotificationManager), "GeneralAPIMutationContext", GeneralAPIMutationContext), "quantityconditionfoundobjprops", quantityconditionfoundobj), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_ref, "relatedproducts", relatedproducts), "productVideos", productVideos), "getprice_discountpriceprops", getprice_discountpriceprops), "StoreInfoprops", StoreInfo), "currentshowingimageindex", currentshowingimageindex), "setcurrentshowingimageindex", setcurrentshowingimageindex), "templatepropcontext", templatepropcontext), "ikimagecredcontext", ikimagecredcontext), "variantindex", variantindex), "setvariantindex", setvariantindex), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_ref, "variantsku", variantsku), "variantvalueidentifier", variantvalueidentifier), "sizeguideimage", sizeguideimage), "setopensizeguidemodal", setopensizeguidemodal), "addtocartfunc_extras", addtocartfunc_extras), "productpdfsarray", productpdfsarray))
|
|
10899
|
-
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
10900
|
+
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer85 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer85 === void 0 || (_fetchProductInfoQuer85 = _fetchProductInfoQuer85.data) === null || _fetchProductInfoQuer85 === void 0 || (_fetchProductInfoQuer85 = _fetchProductInfoQuer85.productinfo) === null || _fetchProductInfoQuer85 === void 0 ? void 0 : _fetchProductInfoQuer85.item_type) == 'Article' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i35 = authdetailsContext.instinfo) === null || _authdetailsContext$i35 === void 0 ? void 0 : _authdetailsContext$i35.contactinfo.instid) != '6946c118427af' && /*#__PURE__*/React.createElement(Article_itemtype, {
|
|
10900
10901
|
actions: (_ref2 = {
|
|
10901
10902
|
variantnotchosendisclaimer: variantnotchosendisclaimer,
|
|
10902
10903
|
setisoutofstock: setisoutofstock,
|
|
@@ -10906,7 +10907,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
10906
10907
|
lang: lang,
|
|
10907
10908
|
srcfromprops: props.srcfromprops
|
|
10908
10909
|
}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_ref2, "returnpolicyobj", returnpolicyobj), "productinfo_cssstyles", productinfo_cssstyles), "addtocartfunc", addtocartfunc), "selectproductoptionvalue", selectproductoptionvalue), "clearchoosenvaluesbutkeepcurrentvalue", clearchoosenvaluesbutkeepcurrentvalue), "productimagesarray", productimagesarray), "fetchProductInfoQueryContext", fetchProductInfoQueryContext), "ProductInfoObj", ProductInfoObj), "sectionproperties", sectionproperties), "addtocardpayloadobj", addtocardpayloadobj), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_ref2, "setaddtocardpayloadobj", setaddtocardpayloadobj), "routingcountext", routingcountext), "AddtoCartMutationContext", AddtoCartMutationContext), "authdetailsContext", authdetailsContext), "addtofavoritescontext", addtofavoritescontext), "variantindexcompleted", variantindexcompleted), "StaticPagesLinksContext", StaticPagesLinksContext), "NotificationManager", NotificationManager), "GeneralAPIMutationContext", GeneralAPIMutationContext), "quantityconditionfoundobjprops", quantityconditionfoundobj), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_ref2, "relatedproducts", relatedproducts), "getprice_discountpriceprops", getprice_discountpriceprops), "StoreInfoprops", StoreInfo), "currentshowingimageindex", currentshowingimageindex), "setcurrentshowingimageindex", setcurrentshowingimageindex), "templatepropcontext", templatepropcontext), "ikimagecredcontext", ikimagecredcontext), "variantindex", variantindex), "setvariantindex", setvariantindex), "variantsku", variantsku), _defineProperty(_defineProperty(_ref2, "variantvalueidentifier", variantvalueidentifier), "productpdfsarray", productpdfsarray))
|
|
10909
|
-
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
10910
|
+
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer86 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer86 === void 0 || (_fetchProductInfoQuer86 = _fetchProductInfoQuer86.data) === null || _fetchProductInfoQuer86 === void 0 || (_fetchProductInfoQuer86 = _fetchProductInfoQuer86.productinfo) === null || _fetchProductInfoQuer86 === void 0 ? void 0 : _fetchProductInfoQuer86.item_type) == 'Article' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i36 = authdetailsContext.instinfo) === null || _authdetailsContext$i36 === void 0 ? void 0 : _authdetailsContext$i36.contactinfo.instid) == '6946c118427af' && /*#__PURE__*/React.createElement(Product_itemtype_Article, {
|
|
10910
10911
|
actions: (_ref3 = {
|
|
10911
10912
|
isOptionInStock: isOptionInStock,
|
|
10912
10913
|
variantnotchosendisclaimer: variantnotchosendisclaimer,
|
|
@@ -10918,7 +10919,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
10918
10919
|
lang: lang,
|
|
10919
10920
|
srcfromprops: props.srcfromprops
|
|
10920
10921
|
}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_ref3, "returnpolicyobj", returnpolicyobj), "productinfo_cssstyles", productinfo_cssstyles), "addtocartfunc", addtocartfunc), "selectproductoptionvalue", selectproductoptionvalue), "clearchoosenvaluesbutkeepcurrentvalue", clearchoosenvaluesbutkeepcurrentvalue), "productimagesarray", productimagesarray), "fetchProductInfoQueryContext", fetchProductInfoQueryContext), "ProductInfoObj", ProductInfoObj), "sectionproperties", sectionproperties), "addtocardpayloadobj", addtocardpayloadobj), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_ref3, "setaddtocardpayloadobj", setaddtocardpayloadobj), "routingcountext", routingcountext), "AddtoCartMutationContext", AddtoCartMutationContext), "authdetailsContext", authdetailsContext), "addtofavoritescontext", addtofavoritescontext), "variantindexcompleted", variantindexcompleted), "StaticPagesLinksContext", StaticPagesLinksContext), "NotificationManager", NotificationManager), "GeneralAPIMutationContext", GeneralAPIMutationContext), "quantityconditionfoundobjprops", quantityconditionfoundobj), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_ref3, "relatedproducts", relatedproducts), "productVideos", productVideos), "getprice_discountpriceprops", getprice_discountpriceprops), "StoreInfoprops", StoreInfo), "currentshowingimageindex", currentshowingimageindex), "setcurrentshowingimageindex", setcurrentshowingimageindex), "templatepropcontext", templatepropcontext), "ikimagecredcontext", ikimagecredcontext), "variantindex", variantindex), "setvariantindex", setvariantindex), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_ref3, "variantsku", variantsku), "variantvalueidentifier", variantvalueidentifier), "sizeguideimage", sizeguideimage), "setopensizeguidemodal", setopensizeguidemodal), "addtocartfunc_extras", addtocartfunc_extras), "productpdfsarray", productpdfsarray))
|
|
10921
|
-
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
10922
|
+
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer87 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer87 === void 0 || (_fetchProductInfoQuer87 = _fetchProductInfoQuer87.data) === null || _fetchProductInfoQuer87 === void 0 || (_fetchProductInfoQuer87 = _fetchProductInfoQuer87.productinfo) === null || _fetchProductInfoQuer87 === void 0 ? void 0 : _fetchProductInfoQuer87.item_type) == 'service' && /*#__PURE__*/React.createElement(Service_itemtype, {
|
|
10922
10923
|
actions: (_ref4 = {
|
|
10923
10924
|
product_prod_extras_array: product_prod_extras_array,
|
|
10924
10925
|
setproduct_prod_extras_array: setproduct_prod_extras_array,
|
|
@@ -10937,7 +10938,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
10937
10938
|
style: {
|
|
10938
10939
|
paddingLeft: props.srcfromprops == 'Productinfomodel' ? langdetect == 'en' ? sectionproperties.card_marginLeft + 'px' : sectionproperties.card_marginRight + 'px' : 0,
|
|
10939
10940
|
paddingRight: props.srcfromprops == 'Productinfomodel' ? langdetect == 'en' ? sectionproperties.card_marginRight + 'px' : sectionproperties.card_marginLeft + 'px' : 0,
|
|
10940
|
-
display: sectionproperties.showfirstpolicy == 'Hide' && sectionproperties.showsecondpolicy == 'Hide' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
10941
|
+
display: sectionproperties.showfirstpolicy == 'Hide' && sectionproperties.showsecondpolicy == 'Hide' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer88 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer88 === void 0 || (_fetchProductInfoQuer88 = _fetchProductInfoQuer88.data) === null || _fetchProductInfoQuer88 === void 0 || (_fetchProductInfoQuer88 = _fetchProductInfoQuer88.productinfo) === null || _fetchProductInfoQuer88 === void 0 || (_fetchProductInfoQuer88 = _fetchProductInfoQuer88.product_videos) === null || _fetchProductInfoQuer88 === void 0 ? void 0 : _fetchProductInfoQuer88.length) != 0 ? 'flex' : (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer89 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer89 === void 0 || (_fetchProductInfoQuer89 = _fetchProductInfoQuer89.data) === null || _fetchProductInfoQuer89 === void 0 || (_fetchProductInfoQuer89 = _fetchProductInfoQuer89.productinfo) === null || _fetchProductInfoQuer89 === void 0 ? void 0 : _fetchProductInfoQuer89.productcanrate) == 1 ? 'flex' : sectionproperties.showfirstpolicy == 'Hide' && sectionproperties.showsecondpolicy == 'Hide' ? 'none' : sectionproperties.showfirstpolicy == 'Hide' && sectionproperties.showsecondpolicy == 'Hide' && sectionproperties.descriptionposition != 'Bottom' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer90 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer90 === void 0 || (_fetchProductInfoQuer90 = _fetchProductInfoQuer90.data) === null || _fetchProductInfoQuer90 === void 0 || (_fetchProductInfoQuer90 = _fetchProductInfoQuer90.productinfo) === null || _fetchProductInfoQuer90 === void 0 || (_fetchProductInfoQuer90 = _fetchProductInfoQuer90.product_videos) === null || _fetchProductInfoQuer90 === void 0 ? void 0 : _fetchProductInfoQuer90.length) == 0 ? 'none' : 'flex'
|
|
10941
10942
|
}
|
|
10942
10943
|
}, /*#__PURE__*/React.createElement("div", {
|
|
10943
10944
|
"class": "".concat(productinfo_cssstyles.cardcontainer) + ' ml-0 mr-0 w-100 pl-md-3 pr-md-3 px-1025-1 ',
|
|
@@ -10999,12 +11000,12 @@ var Productinfo = function Productinfo(props) {
|
|
|
10999
11000
|
onClick: function onClick() {
|
|
11000
11001
|
settabname('refundpolicytab');
|
|
11001
11002
|
}
|
|
11002
|
-
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
11003
|
+
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer91 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer91 === void 0 || (_fetchProductInfoQuer91 = _fetchProductInfoQuer91.data) === null || _fetchProductInfoQuer91 === void 0 || (_fetchProductInfoQuer91 = _fetchProductInfoQuer91.productinfo) === null || _fetchProductInfoQuer91 === void 0 || (_fetchProductInfoQuer91 = _fetchProductInfoQuer91.product_videos) === null || _fetchProductInfoQuer91 === void 0 ? void 0 : _fetchProductInfoQuer91.length) != 0 && /*#__PURE__*/React.createElement(Tab, {
|
|
11003
11004
|
label: langdetect == 'en' ? sectionproperties.videostitleen : sectionproperties.videostitlear,
|
|
11004
11005
|
onClick: function onClick() {
|
|
11005
11006
|
settabname('videostab');
|
|
11006
11007
|
}
|
|
11007
|
-
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
11008
|
+
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer92 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer92 === void 0 || (_fetchProductInfoQuer92 = _fetchProductInfoQuer92.data) === null || _fetchProductInfoQuer92 === void 0 || (_fetchProductInfoQuer92 = _fetchProductInfoQuer92.productinfo) === null || _fetchProductInfoQuer92 === void 0 ? void 0 : _fetchProductInfoQuer92.productcanrate) == 1 && /*#__PURE__*/React.createElement(Tab, {
|
|
11008
11009
|
label: langdetect == 'en' ? 'Reviews' : 'التقييمات',
|
|
11009
11010
|
onClick: function onClick() {
|
|
11010
11011
|
settabname('reviewstab');
|
|
@@ -11058,12 +11059,12 @@ var Productinfo = function Productinfo(props) {
|
|
|
11058
11059
|
onClick: function onClick() {
|
|
11059
11060
|
settabname('refundpolicytab');
|
|
11060
11061
|
}
|
|
11061
|
-
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
11062
|
+
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer93 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer93 === void 0 || (_fetchProductInfoQuer93 = _fetchProductInfoQuer93.data) === null || _fetchProductInfoQuer93 === void 0 || (_fetchProductInfoQuer93 = _fetchProductInfoQuer93.productinfo) === null || _fetchProductInfoQuer93 === void 0 || (_fetchProductInfoQuer93 = _fetchProductInfoQuer93.product_videos) === null || _fetchProductInfoQuer93 === void 0 ? void 0 : _fetchProductInfoQuer93.length) != 0 && /*#__PURE__*/React.createElement(Tab, {
|
|
11062
11063
|
label: langdetect == 'en' ? 'Videos' : 'فيديوهات',
|
|
11063
11064
|
onClick: function onClick() {
|
|
11064
11065
|
settabname('videostab');
|
|
11065
11066
|
}
|
|
11066
|
-
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
11067
|
+
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer94 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer94 === void 0 || (_fetchProductInfoQuer94 = _fetchProductInfoQuer94.data) === null || _fetchProductInfoQuer94 === void 0 || (_fetchProductInfoQuer94 = _fetchProductInfoQuer94.productinfo) === null || _fetchProductInfoQuer94 === void 0 ? void 0 : _fetchProductInfoQuer94.productcanrate) == 1 && /*#__PURE__*/React.createElement(Tab, {
|
|
11067
11068
|
label: langdetect == 'en' ? 'Reviews' : 'التقييمات',
|
|
11068
11069
|
onClick: function onClick() {
|
|
11069
11070
|
settabname('reviewstab');
|
|
@@ -11197,12 +11198,12 @@ var Productinfo = function Productinfo(props) {
|
|
|
11197
11198
|
onClick: function onClick() {
|
|
11198
11199
|
settabname('refundpolicytab');
|
|
11199
11200
|
}
|
|
11200
|
-
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
11201
|
+
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer95 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer95 === void 0 || (_fetchProductInfoQuer95 = _fetchProductInfoQuer95.data) === null || _fetchProductInfoQuer95 === void 0 || (_fetchProductInfoQuer95 = _fetchProductInfoQuer95.productinfo) === null || _fetchProductInfoQuer95 === void 0 || (_fetchProductInfoQuer95 = _fetchProductInfoQuer95.product_videos) === null || _fetchProductInfoQuer95 === void 0 ? void 0 : _fetchProductInfoQuer95.length) != 0 && /*#__PURE__*/React.createElement(Tab, {
|
|
11201
11202
|
label: langdetect == 'en' ? 'Videos' : 'فيديوهات',
|
|
11202
11203
|
onClick: function onClick() {
|
|
11203
11204
|
settabname('videostab');
|
|
11204
11205
|
}
|
|
11205
|
-
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
11206
|
+
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer96 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer96 === void 0 || (_fetchProductInfoQuer96 = _fetchProductInfoQuer96.data) === null || _fetchProductInfoQuer96 === void 0 || (_fetchProductInfoQuer96 = _fetchProductInfoQuer96.productinfo) === null || _fetchProductInfoQuer96 === void 0 ? void 0 : _fetchProductInfoQuer96.productcanrate) == 1 && /*#__PURE__*/React.createElement(Tab, {
|
|
11206
11207
|
label: langdetect == 'en' ? 'Reviews' : 'التقييمات',
|
|
11207
11208
|
onClick: function onClick() {
|
|
11208
11209
|
settabname('reviewstab');
|
|
@@ -11223,7 +11224,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
11223
11224
|
color: sectionproperties.prodCatColor
|
|
11224
11225
|
},
|
|
11225
11226
|
dangerouslySetInnerHTML: {
|
|
11226
|
-
__html: langdetect == 'en' ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
11227
|
+
__html: langdetect == 'en' ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer97 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer97 === void 0 || (_fetchProductInfoQuer97 = _fetchProductInfoQuer97.data) === null || _fetchProductInfoQuer97 === void 0 || (_fetchProductInfoQuer97 = _fetchProductInfoQuer97.productinfo) === null || _fetchProductInfoQuer97 === void 0 ? void 0 : _fetchProductInfoQuer97.short_description_en : fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer98 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer98 === void 0 || (_fetchProductInfoQuer98 = _fetchProductInfoQuer98.data) === null || _fetchProductInfoQuer98 === void 0 || (_fetchProductInfoQuer98 = _fetchProductInfoQuer98.productinfo) === null || _fetchProductInfoQuer98 === void 0 ? void 0 : _fetchProductInfoQuer98.short_description_ar
|
|
11227
11228
|
}
|
|
11228
11229
|
})), tabname == 'shippingpolicytab' && /*#__PURE__*/React.createElement("div", {
|
|
11229
11230
|
"class": "col-lg-12 pl-5 pr-5 p-md-0 w-100"
|
|
@@ -11365,7 +11366,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
11365
11366
|
color: sectionproperties.prodCatColor
|
|
11366
11367
|
},
|
|
11367
11368
|
dangerouslySetInnerHTML: {
|
|
11368
|
-
__html: langdetect == 'en' ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
11369
|
+
__html: langdetect == 'en' ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer99 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer99 === void 0 || (_fetchProductInfoQuer99 = _fetchProductInfoQuer99.data) === null || _fetchProductInfoQuer99 === void 0 || (_fetchProductInfoQuer99 = _fetchProductInfoQuer99.productinfo) === null || _fetchProductInfoQuer99 === void 0 ? void 0 : _fetchProductInfoQuer99.short_description_en : fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer100 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer100 === void 0 || (_fetchProductInfoQuer100 = _fetchProductInfoQuer100.data) === null || _fetchProductInfoQuer100 === void 0 || (_fetchProductInfoQuer100 = _fetchProductInfoQuer100.productinfo) === null || _fetchProductInfoQuer100 === void 0 ? void 0 : _fetchProductInfoQuer100.short_description_ar
|
|
11369
11370
|
}
|
|
11370
11371
|
})), tabname == 'shippingpolicytab' && /*#__PURE__*/React.createElement("div", {
|
|
11371
11372
|
"class": "col-lg-12 pl-5 pr-5 p-md-0 w-100"
|
|
@@ -11497,7 +11498,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
11497
11498
|
color: '#000000'
|
|
11498
11499
|
},
|
|
11499
11500
|
dangerouslySetInnerHTML: {
|
|
11500
|
-
__html: langdetect == 'en' ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
11501
|
+
__html: langdetect == 'en' ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer101 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer101 === void 0 || (_fetchProductInfoQuer101 = _fetchProductInfoQuer101.data) === null || _fetchProductInfoQuer101 === void 0 || (_fetchProductInfoQuer101 = _fetchProductInfoQuer101.productinfo) === null || _fetchProductInfoQuer101 === void 0 ? void 0 : _fetchProductInfoQuer101.description_en : fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer102 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer102 === void 0 || (_fetchProductInfoQuer102 = _fetchProductInfoQuer102.data) === null || _fetchProductInfoQuer102 === void 0 || (_fetchProductInfoQuer102 = _fetchProductInfoQuer102.productinfo) === null || _fetchProductInfoQuer102 === void 0 ? void 0 : _fetchProductInfoQuer102.description_ar
|
|
11501
11502
|
}
|
|
11502
11503
|
})), tabname == 'shortdescriptiontab' && /*#__PURE__*/React.createElement("div", {
|
|
11503
11504
|
"class": "col-lg-12 p-0"
|
|
@@ -11508,7 +11509,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
11508
11509
|
color: sectionproperties.prodCatColor
|
|
11509
11510
|
},
|
|
11510
11511
|
dangerouslySetInnerHTML: {
|
|
11511
|
-
__html: langdetect == 'en' ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
11512
|
+
__html: langdetect == 'en' ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer103 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer103 === void 0 || (_fetchProductInfoQuer103 = _fetchProductInfoQuer103.data) === null || _fetchProductInfoQuer103 === void 0 || (_fetchProductInfoQuer103 = _fetchProductInfoQuer103.productinfo) === null || _fetchProductInfoQuer103 === void 0 ? void 0 : _fetchProductInfoQuer103.short_description_en : fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer104 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer104 === void 0 || (_fetchProductInfoQuer104 = _fetchProductInfoQuer104.data) === null || _fetchProductInfoQuer104 === void 0 || (_fetchProductInfoQuer104 = _fetchProductInfoQuer104.productinfo) === null || _fetchProductInfoQuer104 === void 0 ? void 0 : _fetchProductInfoQuer104.short_description_ar
|
|
11512
11513
|
}
|
|
11513
11514
|
}))
|
|
11514
11515
|
// <DescriptionContent
|
|
@@ -26150,7 +26151,10 @@ var CardsSection = function CardsSection(props) {
|
|
|
26150
26151
|
item.tabexsectioninfo.sectioncompname == 'Categorycard_withtext' ? 'scrollmenuclassnameitemCategorycard_withtext' :
|
|
26151
26152
|
// : item.tabexsectioninfo.sectioncompname == 'Productcard_animatedbuttons'
|
|
26152
26153
|
// ? 'scrollmenuclassnameitemProductcard_animatedbuttons'
|
|
26153
|
-
item.tabexsectioninfo.sectioncompname == 'Productcard_with_variants'
|
|
26154
|
+
// item.tabexsectioninfo.sectioncompname == 'Productcard_with_variants'
|
|
26155
|
+
// ? 'scrollmenuclassnameitemProductcard_with_variants'
|
|
26156
|
+
// :
|
|
26157
|
+
item.tabexsectioninfo.sectioncompname == 'Productcarddefault' ? 'scrollmenuclassnameitemProductcarddefault' :
|
|
26154
26158
|
// : item.tabexsectioninfo.sectioncompname == 'Simpleproductcard'
|
|
26155
26159
|
// ? 'scrollmenuclassnameitemSimpleproductcard'
|
|
26156
26160
|
item.tabexsectioninfo.sectioncompname == 'Categorycard_with_trianglebg' ? 'scrollmenuclassnameitemCategorycard_with_trianglebg' : item.tabexsectioninfo.sectioncompname == 'Productcard_with_textonhover' ? 'scrollmenuclassnameitemProductcard_with_textonhover' : item.tabexsectioninfo.sectioncompname == 'Categorycard_slidebgscaled' ? 'scrollmenuclassnameitemCategorycard_slidebgscaled' : item.tabexsectioninfo.sectioncompname == 'Productccard_with_imageontopleft' ? 'scrollmenuclassnameitemProductccard_with_imageontopleft' : item.tabexsectioninfo.sectioncompname == 'Productcard_with_zoominonhover' ? 'scrollmenuclassnameitemProductcard_with_zoominonhover' : item.tabexsectioninfo.sectioncompname == 'Horizontalcard' ? 'scrollmenuclassnameitemProductcard_Horizontalcard' : item.tabexsectioninfo.sectioncompname == 'Categorycard_fullimage' ? 'scrollmenuclassnameitemCategorycard_fullimage' :
|
|
@@ -37067,11 +37071,9 @@ var SubheaderDropdown = function SubheaderDropdown(props) {
|
|
|
37067
37071
|
setChoosenindex(index);
|
|
37068
37072
|
}
|
|
37069
37073
|
}, /*#__PURE__*/React.createElement(AccordionItemButton, null, /*#__PURE__*/React.createElement("div", {
|
|
37070
|
-
className: ' row m-0 p-0 mb-4 '
|
|
37074
|
+
className: ' row m-0 p-0 mb-4 px-3 '
|
|
37071
37075
|
}, /*#__PURE__*/React.createElement("div", {
|
|
37072
|
-
className:
|
|
37073
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
37074
|
-
className: "col-10 p-0 text-start"
|
|
37076
|
+
className: "col-10 d-flex justify-content-start align-items-center p-0"
|
|
37075
37077
|
}, /*#__PURE__*/React.createElement("div", {
|
|
37076
37078
|
style: {
|
|
37077
37079
|
width: '50px',
|
|
@@ -37089,7 +37091,7 @@ var SubheaderDropdown = function SubheaderDropdown(props) {
|
|
|
37089
37091
|
border: '1px solid #ccc'
|
|
37090
37092
|
}
|
|
37091
37093
|
})), /*#__PURE__*/React.createElement("p", {
|
|
37092
|
-
className: "".concat(header_cssstyles.navbar_item_text_responsive) + ' mb-0 p-0 mx-
|
|
37094
|
+
className: "".concat(header_cssstyles.navbar_item_text_responsive) + ' mb-0 p-0 mx-3 '
|
|
37093
37095
|
}, langdetect == 'en' ? item.title_en : item.title_ar)), /*#__PURE__*/React.createElement("div", {
|
|
37094
37096
|
className: "col-lg-2 col-md-2 col-sm-2 p-0 text-end"
|
|
37095
37097
|
}, /*#__PURE__*/React.createElement(AccordionItemState, null, function (state) {
|
|
@@ -37112,7 +37114,7 @@ var SubheaderDropdown = function SubheaderDropdown(props) {
|
|
|
37112
37114
|
}
|
|
37113
37115
|
}));
|
|
37114
37116
|
}
|
|
37115
|
-
})))))
|
|
37117
|
+
}))))), /*#__PURE__*/React.createElement(AccordionItemPanel, {
|
|
37116
37118
|
className: "p-0"
|
|
37117
37119
|
}, /*#__PURE__*/React.createElement("div", {
|
|
37118
37120
|
className: "row mt-0 mb-2 ml-0 mr-0 d-lg-flex px-4"
|
|
@@ -37124,11 +37126,9 @@ var SubheaderDropdown = function SubheaderDropdown(props) {
|
|
|
37124
37126
|
return /*#__PURE__*/React.createElement(AccordionItem, {
|
|
37125
37127
|
uuid: pindex
|
|
37126
37128
|
}, /*#__PURE__*/React.createElement(AccordionItemHeading, null, /*#__PURE__*/React.createElement(AccordionItemButton, null, /*#__PURE__*/React.createElement("div", {
|
|
37127
|
-
className: ' row m-0 p-0 mb-2 mb-3'
|
|
37128
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
37129
|
-
className: ' row m-0 w-100 px-4 '
|
|
37129
|
+
className: ' row m-0 p-0 mb-2 mb-3 px-4'
|
|
37130
37130
|
}, /*#__PURE__*/React.createElement("div", {
|
|
37131
|
-
className: "col-10
|
|
37131
|
+
className: "col-10 d-flex justify-content-start align-items-center p-0"
|
|
37132
37132
|
}, /*#__PURE__*/React.createElement("div", {
|
|
37133
37133
|
style: {
|
|
37134
37134
|
width: '50px',
|
|
@@ -37146,7 +37146,7 @@ var SubheaderDropdown = function SubheaderDropdown(props) {
|
|
|
37146
37146
|
border: '1px solid #ccc'
|
|
37147
37147
|
}
|
|
37148
37148
|
})), /*#__PURE__*/React.createElement("p", {
|
|
37149
|
-
className: "".concat(header_cssstyles.navbar_item_text_responsive) + ' mb-0 p-0 mx-
|
|
37149
|
+
className: "".concat(header_cssstyles.navbar_item_text_responsive) + ' mb-0 p-0 mx-3 '
|
|
37150
37150
|
}, langdetect == 'en' ? pitem.title_en : pitem.title_ar)), /*#__PURE__*/React.createElement("div", {
|
|
37151
37151
|
className: "col-lg-2 col-md-2 col-sm-2 p-0 text-end"
|
|
37152
37152
|
}, /*#__PURE__*/React.createElement(AccordionItemState, null, function (state) {
|
|
@@ -37169,7 +37169,7 @@ var SubheaderDropdown = function SubheaderDropdown(props) {
|
|
|
37169
37169
|
}
|
|
37170
37170
|
}));
|
|
37171
37171
|
}
|
|
37172
|
-
})))))
|
|
37172
|
+
}))))), /*#__PURE__*/React.createElement(AccordionItemPanel, {
|
|
37173
37173
|
className: "p-0"
|
|
37174
37174
|
}, pitem.collections.length != 0 && pitem.collections.map(function (collitem, collindex) {
|
|
37175
37175
|
if (collitem.isshowntocustomers == 1) {
|
|
@@ -37178,7 +37178,7 @@ var SubheaderDropdown = function SubheaderDropdown(props) {
|
|
|
37178
37178
|
}, /*#__PURE__*/React.createElement("div", {
|
|
37179
37179
|
className: ' row m-0 w-100 px-5 '
|
|
37180
37180
|
}, /*#__PURE__*/React.createElement("div", {
|
|
37181
|
-
className: "col-10
|
|
37181
|
+
className: "col-10 d-flex justify-content-start align-items-center p-0",
|
|
37182
37182
|
onClick: function onClick() {
|
|
37183
37183
|
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + collitem.collectionid);
|
|
37184
37184
|
props.setmenuactive(false);
|
|
@@ -41280,7 +41280,7 @@ var HeaderwithContactinfo = function HeaderwithContactinfo(props) {
|
|
|
41280
41280
|
function ownKeys$1X(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; }
|
|
41281
41281
|
function _objectSpread$1X(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1X(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1X(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
41282
41282
|
var Modernheader = function Modernheader(props) {
|
|
41283
|
-
var _authdetailsContext$i, _authdetailsContext$i2, _authdetailsContext$i3, _authdetailsContext$i4, _authdetailsContext$i6, _logoarrayofobjects$, _logoarrayofobjects$2, _authdetailsContext$i7, _authdetailsContext$
|
|
41283
|
+
var _authdetailsContext$i, _authdetailsContext$i2, _authdetailsContext$i3, _authdetailsContext$i4, _authdetailsContext$i6, _logoarrayofobjects$, _logoarrayofobjects$2, _authdetailsContext$i7, _authdetailsContext$c, _authdetailsContext$c2, _fetchcustomercartQue, _fetchcustomercartQue2, _fetchcustomercartQue3, _authdetailsContext$i8, _authdetailsContext$i9, _authdetailsContext$i0, _authdetailsContext$i1, _authdetailsContext$i10, _authdetailsContext$i11, _authdetailsContext$i12, _authdetailsContext$i13;
|
|
41284
41284
|
var _useState = useState(''),
|
|
41285
41285
|
_useState2 = _slicedToArray(_useState, 2),
|
|
41286
41286
|
sectionproperties = _useState2[0],
|
|
@@ -41315,6 +41315,10 @@ var Modernheader = function Modernheader(props) {
|
|
|
41315
41315
|
_useState8 = _slicedToArray(_useState7, 2),
|
|
41316
41316
|
inqmenushowabout = _useState8[0],
|
|
41317
41317
|
setinqmenushowabout = _useState8[1];
|
|
41318
|
+
var _useState9 = useState(false),
|
|
41319
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
41320
|
+
menuactive = _useState0[0],
|
|
41321
|
+
setmenuactive = _useState0[1];
|
|
41318
41322
|
useEffect(function () {
|
|
41319
41323
|
var secpropobj = {};
|
|
41320
41324
|
StatePagePropertiesContext.pageobj.sections.forEach(function (sectionitem, sectionindex) {
|
|
@@ -41418,17 +41422,30 @@ var Modernheader = function Modernheader(props) {
|
|
|
41418
41422
|
borderColor: sectionproperties.userBtnTextcoloronhover
|
|
41419
41423
|
}
|
|
41420
41424
|
}),
|
|
41425
|
+
user_btntext: css({
|
|
41426
|
+
color: sectionproperties.userBtniconcolor,
|
|
41427
|
+
fontSize: sectionproperties.userbtn_logintextFontSize + 'px',
|
|
41428
|
+
cursor: 'pointer',
|
|
41429
|
+
transition: '.3s',
|
|
41430
|
+
textTransform: sectionproperties.userBtnTexttransform,
|
|
41431
|
+
fontWeight: sectionproperties.userBtnTextfontweight,
|
|
41432
|
+
':hover': {
|
|
41433
|
+
color: sectionproperties.userBtnTextcoloronhover
|
|
41434
|
+
}
|
|
41435
|
+
}),
|
|
41421
41436
|
loggedinusername: css({
|
|
41422
41437
|
fontWeight: sectionproperties.userBtnTextfontweight,
|
|
41423
|
-
textTransform: sectionproperties.userBtnTexttransform,
|
|
41438
|
+
// textTransform: sectionproperties.userBtnTexttransform,
|
|
41424
41439
|
color: sectionproperties.userBtnTextcolor,
|
|
41425
41440
|
fontSize: sectionproperties.userBtntextfontsize + 'px',
|
|
41426
41441
|
lineHeight: sectionproperties.userBtntextfontsize + 'px',
|
|
41427
41442
|
transition: '.3s'
|
|
41428
41443
|
}),
|
|
41429
41444
|
loggedinuserbtn: css({
|
|
41430
|
-
width: sectionproperties.
|
|
41431
|
-
height: sectionproperties.
|
|
41445
|
+
width: sectionproperties.userBtnWidth == 0 ? 'auto' : sectionproperties.userBtnWidth + 'px',
|
|
41446
|
+
height: sectionproperties.userBtnHeight + 'px',
|
|
41447
|
+
// width: sectionproperties.loggedinuserbtn_width + 'px',
|
|
41448
|
+
// height: sectionproperties.loggedinuserbtn_height + 'px',
|
|
41432
41449
|
border: sectionproperties.userlogginbtnborderwidth + 'px solid ' + sectionproperties.userlogginbtnbordercolor,
|
|
41433
41450
|
borderRadius: sectionproperties.userbtn_borderBottomLeftRadius + 'px',
|
|
41434
41451
|
background: sectionproperties.userBtnbgColor_loggedin,
|
|
@@ -41537,7 +41554,7 @@ var Modernheader = function Modernheader(props) {
|
|
|
41537
41554
|
textAlign: 'center',
|
|
41538
41555
|
width: sectionproperties.searchbaricon_width + 'px',
|
|
41539
41556
|
height: sectionproperties.searchbaricon_height + 'px',
|
|
41540
|
-
borderRadius: sectionproperties.
|
|
41557
|
+
borderRadius: sectionproperties.searchbaricon_borderRadius + 'px',
|
|
41541
41558
|
color: sectionproperties.searchbaricon_color,
|
|
41542
41559
|
backgroundColor: sectionproperties.searchbaricon_bgcolortransparent == 'Transparent' ? 'transparent' : sectionproperties.searchbaricon_bgcolor
|
|
41543
41560
|
}),
|
|
@@ -41613,6 +41630,21 @@ var Modernheader = function Modernheader(props) {
|
|
|
41613
41630
|
backgroundColor: sectionproperties.lowersection_bgcolortransparent == 'Transparent' ? sectionproperties.uppersection_bgcolor : '',
|
|
41614
41631
|
transition: '.3s ease-in-out'
|
|
41615
41632
|
}
|
|
41633
|
+
}),
|
|
41634
|
+
menuiconn: css({
|
|
41635
|
+
backgroundColor: sectionproperties.menuiconbgcolor,
|
|
41636
|
+
width: sectionproperties.menuiconwidth,
|
|
41637
|
+
height: sectionproperties.menuiconheight,
|
|
41638
|
+
marginRight: langdetect == 'en' ? 30 : 0,
|
|
41639
|
+
marginLeft: langdetect == 'en' ? 0 : 30,
|
|
41640
|
+
borderRadius: 100,
|
|
41641
|
+
color: sectionproperties.menuiconcolor,
|
|
41642
|
+
':hover': {
|
|
41643
|
+
transition: '.3s',
|
|
41644
|
+
cursor: 'pointer',
|
|
41645
|
+
backgroundColor: sectionproperties.menuiconbgcoloronhover,
|
|
41646
|
+
color: sectionproperties.menuiconcoloronhover
|
|
41647
|
+
}
|
|
41616
41648
|
})
|
|
41617
41649
|
};
|
|
41618
41650
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -41672,7 +41704,19 @@ var Modernheader = function Modernheader(props) {
|
|
|
41672
41704
|
}, /*#__PURE__*/React.createElement(MdArrowBack, {
|
|
41673
41705
|
color: sectionproperties.searchbaricon_color,
|
|
41674
41706
|
size: 35
|
|
41675
|
-
}))), sectionproperties.
|
|
41707
|
+
}))), sectionproperties.showmenuicon == 'Show' && /*#__PURE__*/React.createElement("div", {
|
|
41708
|
+
style: {},
|
|
41709
|
+
"class": header_cssstyles.menuiconn + ' allcentered ',
|
|
41710
|
+
onClick: function onClick() {
|
|
41711
|
+
if (menuactive == true) {
|
|
41712
|
+
setmenuactive(false);
|
|
41713
|
+
} else {
|
|
41714
|
+
setmenuactive(true);
|
|
41715
|
+
}
|
|
41716
|
+
}
|
|
41717
|
+
}, /*#__PURE__*/React.createElement(FiMenu, {
|
|
41718
|
+
size: sectionproperties.menuiconfontsize
|
|
41719
|
+
})), sectionproperties.searchbartype == 'Full Width' && /*#__PURE__*/React.createElement("div", {
|
|
41676
41720
|
"class": header_cssstyles.searchbarcont
|
|
41677
41721
|
}, /*#__PURE__*/React.createElement("input", {
|
|
41678
41722
|
type: "text",
|
|
@@ -41715,20 +41759,20 @@ var Modernheader = function Modernheader(props) {
|
|
|
41715
41759
|
}, /*#__PURE__*/React.createElement("p", {
|
|
41716
41760
|
"class": "m-0 p-0 mr-2 ml-2",
|
|
41717
41761
|
style: {
|
|
41718
|
-
color: sectionproperties.
|
|
41762
|
+
color: sectionproperties.cartBtnbgColor,
|
|
41719
41763
|
fontSize: 16
|
|
41720
41764
|
}
|
|
41721
41765
|
}, authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en), /*#__PURE__*/React.createElement(MdKeyboardArrowDown, {
|
|
41722
|
-
color: sectionproperties.
|
|
41766
|
+
color: sectionproperties.searchbaricon_color
|
|
41723
41767
|
})), langdetect == 'ar' && /*#__PURE__*/React.createElement("div", {
|
|
41724
41768
|
"class": ' row m-0 w-100 d-flex align-items-center '
|
|
41725
41769
|
}, /*#__PURE__*/React.createElement("p", {
|
|
41726
41770
|
"class": "m-0 p-0 ml-2 mr-2",
|
|
41727
41771
|
style: {
|
|
41728
|
-
color: sectionproperties.
|
|
41772
|
+
color: sectionproperties.searchbaricon_color
|
|
41729
41773
|
}
|
|
41730
41774
|
}, authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar), /*#__PURE__*/React.createElement(MdKeyboardArrowDown, {
|
|
41731
|
-
color: sectionproperties.
|
|
41775
|
+
color: sectionproperties.searchbaricon_color
|
|
41732
41776
|
})))), /*#__PURE__*/React.createElement(Dropdown.Menu, null, authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i4 = authdetailsContext.instinfo) === null || _authdetailsContext$i4 === void 0 || (_authdetailsContext$i4 = _authdetailsContext$i4.instcurrencies) === null || _authdetailsContext$i4 === void 0 ? void 0 : _authdetailsContext$i4.map(function (item, index) {
|
|
41733
41777
|
var _authdetailsContext$i5;
|
|
41734
41778
|
return /*#__PURE__*/React.createElement(Dropdown.Item, {
|
|
@@ -41782,44 +41826,7 @@ var Modernheader = function Modernheader(props) {
|
|
|
41782
41826
|
marginRight: langdetect == 'en' ? '30px' : 0,
|
|
41783
41827
|
marginLeft: langdetect == 'en' ? 0 : '30px'
|
|
41784
41828
|
}
|
|
41785
|
-
}, /*#__PURE__*/React.createElement(Dropdown, null, /*#__PURE__*/React.createElement(Dropdown.Toggle, null,
|
|
41786
|
-
"class": " ".concat(header_cssstyles.user_btn) + ' d-flex align-items-center justify-content-center ',
|
|
41787
|
-
sytle: {
|
|
41788
|
-
position: 'relative'
|
|
41789
|
-
},
|
|
41790
|
-
onClick: function onClick() {
|
|
41791
|
-
routingcountext(StaticPagesLinksContext.Login);
|
|
41792
|
-
}
|
|
41793
|
-
}, (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i9 = authdetailsContext.instinfo) === null || _authdetailsContext$i9 === void 0 ? void 0 : _authdetailsContext$i9.instid) == '69ce49ee861df' && /*#__PURE__*/React.createElement("i", {
|
|
41794
|
-
"class": "allcentered",
|
|
41795
|
-
style: {
|
|
41796
|
-
width: sectionproperties.userBtniconfontsize + 'px',
|
|
41797
|
-
height: sectionproperties.userBtniconfontsize + 'px'
|
|
41798
|
-
}
|
|
41799
|
-
}, /*#__PURE__*/React.createElement("svg", {
|
|
41800
|
-
fill: sectionproperties.userBtniconcolor,
|
|
41801
|
-
viewBox: "0 0 32 32",
|
|
41802
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
41803
|
-
}, /*#__PURE__*/React.createElement("g", {
|
|
41804
|
-
id: "SVGRepo_bgCarrier",
|
|
41805
|
-
"stroke-width": "0"
|
|
41806
|
-
}), /*#__PURE__*/React.createElement("g", {
|
|
41807
|
-
id: "SVGRepo_tracerCarrier",
|
|
41808
|
-
"stroke-linecap": "round",
|
|
41809
|
-
"stroke-linejoin": "round"
|
|
41810
|
-
}), /*#__PURE__*/React.createElement("g", {
|
|
41811
|
-
id: "SVGRepo_iconCarrier"
|
|
41812
|
-
}, /*#__PURE__*/React.createElement("title", null), /*#__PURE__*/React.createElement("g", {
|
|
41813
|
-
id: "about"
|
|
41814
|
-
}, /*#__PURE__*/React.createElement("path", {
|
|
41815
|
-
d: "M16,16A7,7,0,1,0,9,9,7,7,0,0,0,16,16ZM16,4a5,5,0,1,1-5,5A5,5,0,0,1,16,4Z"
|
|
41816
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
41817
|
-
d: "M17,18H15A11,11,0,0,0,4,29a1,1,0,0,0,1,1H27a1,1,0,0,0,1-1A11,11,0,0,0,17,18ZM6.06,28A9,9,0,0,1,15,20h2a9,9,0,0,1,8.94,8Z"
|
|
41818
|
-
}))))), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i0 = authdetailsContext.instinfo) === null || _authdetailsContext$i0 === void 0 ? void 0 : _authdetailsContext$i0.instid) != '69ce49ee861df' && /*#__PURE__*/React.createElement("i", {
|
|
41819
|
-
"class": ' h-100 d-flex align-items-center '
|
|
41820
|
-
}, /*#__PURE__*/React.createElement(BiUser, {
|
|
41821
|
-
size: sectionproperties.userBtnTextfontsize
|
|
41822
|
-
}))), !authdetailsContext.loggedin && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i1 = authdetailsContext.instinfo) === null || _authdetailsContext$i1 === void 0 ? void 0 : _authdetailsContext$i1.instid) == '694aa4a9e7d8e' && /*#__PURE__*/React.createElement("div", {
|
|
41829
|
+
}, /*#__PURE__*/React.createElement(Dropdown, null, /*#__PURE__*/React.createElement(Dropdown.Toggle, null, /*#__PURE__*/React.createElement("div", {
|
|
41823
41830
|
className: "flex-row d-flex allcentered"
|
|
41824
41831
|
}, /*#__PURE__*/React.createElement("div", {
|
|
41825
41832
|
"class": " ".concat(header_cssstyles.user_btn) + ' d-flex align-items-center justify-content-center ',
|
|
@@ -41833,12 +41840,9 @@ var Modernheader = function Modernheader(props) {
|
|
|
41833
41840
|
"class": ' h-100 d-flex align-items-center '
|
|
41834
41841
|
}, /*#__PURE__*/React.createElement(BiUser, {
|
|
41835
41842
|
size: sectionproperties.userBtnTextfontsize
|
|
41836
|
-
}))), /*#__PURE__*/React.createElement("span", {
|
|
41837
|
-
|
|
41838
|
-
|
|
41839
|
-
},
|
|
41840
|
-
"class": "mx-2"
|
|
41841
|
-
}, langdetect == 'en' ? 'LOGIN' : 'تسجيل الدخول')), authdetailsContext.loggedin && /*#__PURE__*/React.createElement("div", {
|
|
41843
|
+
}))), sectionproperties.userbtn_logintextFontSize != 0 && /*#__PURE__*/React.createElement("span", {
|
|
41844
|
+
"class": " ".concat(header_cssstyles.user_btntext) + ' mx-2 '
|
|
41845
|
+
}, langdetect == 'en' ? 'LOGIN/register' : 'تسجيل الدخول')), authdetailsContext.loggedin && /*#__PURE__*/React.createElement("div", {
|
|
41842
41846
|
"class": header_cssstyles.userBtnLoggedinContainer + ' allcentered ',
|
|
41843
41847
|
sytle: {
|
|
41844
41848
|
position: 'relative'
|
|
@@ -41863,7 +41867,7 @@ var Modernheader = function Modernheader(props) {
|
|
|
41863
41867
|
fontWeight: 400
|
|
41864
41868
|
}
|
|
41865
41869
|
}, lang.hello, langdetect == 'en' ? ',' : '،'), /*#__PURE__*/React.createElement("p", {
|
|
41866
|
-
"class": header_cssstyles.loggedinusername + ' loggedinuserbtn m-0 p-0 text-overflow ',
|
|
41870
|
+
"class": header_cssstyles.loggedinusername + ' loggedinuserbtn m-0 p-0 text-overflow text-capitalize ',
|
|
41867
41871
|
style: {
|
|
41868
41872
|
maxWidth: '120px'
|
|
41869
41873
|
}
|
|
@@ -41973,7 +41977,10 @@ var Modernheader = function Modernheader(props) {
|
|
|
41973
41977
|
style: {
|
|
41974
41978
|
position: 'relative'
|
|
41975
41979
|
}
|
|
41976
|
-
},
|
|
41980
|
+
}, sectionproperties.carticonstyle != "I'll use my own SVG" &&
|
|
41981
|
+
/*#__PURE__*/
|
|
41982
|
+
// {authdetailsContext?.instinfo?.instid != '69ce49ee861df' && (
|
|
41983
|
+
React.createElement("i", {
|
|
41977
41984
|
"class": ' allcentered '
|
|
41978
41985
|
}, sectionproperties.carticonstyle == 'Shopping bag 1' && /*#__PURE__*/React.createElement(FiShoppingBag, {
|
|
41979
41986
|
"class": "",
|
|
@@ -41994,43 +42001,22 @@ var Modernheader = function Modernheader(props) {
|
|
|
41994
42001
|
size: sectionproperties.cartBtn_iconFontSize
|
|
41995
42002
|
}), sectionproperties.carticonstyle == 'Calendar 1' && /*#__PURE__*/React.createElement(FiCalendar, {
|
|
41996
42003
|
size: sectionproperties.cartBtn_iconFontSize
|
|
41997
|
-
})),
|
|
42004
|
+
})), sectionproperties.carticonstyle == "I'll use my own SVG" && /*#__PURE__*/React.createElement("div", {
|
|
41998
42005
|
"class": "h-100 allcentered ",
|
|
41999
42006
|
style: {
|
|
42000
42007
|
width: sectionproperties.cartBtn_iconFontSize + 'px',
|
|
42001
42008
|
height: sectionproperties.cartBtn_iconFontSize + 'px'
|
|
42009
|
+
},
|
|
42010
|
+
dangerouslySetInnerHTML: {
|
|
42011
|
+
__html: sectionproperties.cartsvg
|
|
42002
42012
|
}
|
|
42003
|
-
}, /*#__PURE__*/React.createElement("
|
|
42004
|
-
viewBox: "0 0 24 24",
|
|
42005
|
-
fill: "none",
|
|
42006
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
42007
|
-
}, /*#__PURE__*/React.createElement("g", {
|
|
42008
|
-
id: "SVGRepo_bgCarrier",
|
|
42009
|
-
"stroke-width": "0"
|
|
42010
|
-
}), /*#__PURE__*/React.createElement("g", {
|
|
42011
|
-
id: "SVGRepo_tracerCarrier",
|
|
42012
|
-
"stroke-linecap": "round",
|
|
42013
|
-
"stroke-linejoin": "round"
|
|
42014
|
-
}), /*#__PURE__*/React.createElement("g", {
|
|
42015
|
-
id: "SVGRepo_iconCarrier"
|
|
42016
|
-
}, /*#__PURE__*/React.createElement("path", {
|
|
42017
|
-
d: "M7.5 18C8.32843 18 9 18.6716 9 19.5C9 20.3284 8.32843 21 7.5 21C6.67157 21 6 20.3284 6 19.5C6 18.6716 6.67157 18 7.5 18Z",
|
|
42018
|
-
stroke: sectionproperties.cart_iconcolor,
|
|
42019
|
-
"stroke-width": "1.5"
|
|
42020
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
42021
|
-
d: "M16.5 18.0001C17.3284 18.0001 18 18.6716 18 19.5001C18 20.3285 17.3284 21.0001 16.5 21.0001C15.6716 21.0001 15 20.3285 15 19.5001C15 18.6716 15.6716 18.0001 16.5 18.0001Z",
|
|
42022
|
-
stroke: sectionproperties.cart_iconcolor,
|
|
42023
|
-
"stroke-width": "1.5"
|
|
42024
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
42025
|
-
d: "M2.26121 3.09184L2.50997 2.38429H2.50997L2.26121 3.09184ZM2.24876 2.29246C1.85799 2.15507 1.42984 2.36048 1.29246 2.75124C1.15507 3.14201 1.36048 3.57016 1.75124 3.70754L2.24876 2.29246ZM4.58584 4.32298L5.20507 3.89983V3.89983L4.58584 4.32298ZM5.88772 14.5862L5.34345 15.1022H5.34345L5.88772 14.5862ZM20.6578 9.88275L21.3923 10.0342L21.3933 10.0296L20.6578 9.88275ZM20.158 12.3075L20.8926 12.4589L20.158 12.3075ZM20.7345 6.69708L20.1401 7.15439L20.7345 6.69708ZM19.1336 15.0504L18.6598 14.469L19.1336 15.0504ZM5.70808 9.76V7.03836H4.20808V9.76H5.70808ZM2.50997 2.38429L2.24876 2.29246L1.75124 3.70754L2.01245 3.79938L2.50997 2.38429ZM10.9375 16.25H16.2404V14.75H10.9375V16.25ZM5.70808 7.03836C5.70808 6.3312 5.7091 5.7411 5.65719 5.26157C5.60346 4.76519 5.48705 4.31247 5.20507 3.89983L3.96661 4.74613C4.05687 4.87822 4.12657 5.05964 4.1659 5.42299C4.20706 5.8032 4.20808 6.29841 4.20808 7.03836H5.70808ZM2.01245 3.79938C2.68006 4.0341 3.11881 4.18965 3.44166 4.34806C3.74488 4.49684 3.87855 4.61727 3.96661 4.74613L5.20507 3.89983C4.92089 3.48397 4.54304 3.21763 4.10241 3.00143C3.68139 2.79485 3.14395 2.60719 2.50997 2.38429L2.01245 3.79938ZM4.20808 9.76C4.20808 11.2125 4.22171 12.2599 4.35876 13.0601C4.50508 13.9144 4.79722 14.5261 5.34345 15.1022L6.43198 14.0702C6.11182 13.7325 5.93913 13.4018 5.83723 12.8069C5.72607 12.1578 5.70808 11.249 5.70808 9.76H4.20808ZM10.9375 14.75C9.52069 14.75 8.53763 14.7482 7.79696 14.6432C7.08215 14.5418 6.70452 14.3576 6.43198 14.0702L5.34345 15.1022C5.93731 15.7286 6.69012 16.0013 7.58636 16.1283C8.45674 16.2518 9.56535 16.25 10.9375 16.25V14.75ZM4.95808 6.87H17.0888V5.37H4.95808V6.87ZM19.9232 9.73135L19.4235 12.1561L20.8926 12.4589L21.3923 10.0342L19.9232 9.73135ZM17.0888 6.87C17.9452 6.87 18.6989 6.871 19.2937 6.93749C19.5893 6.97053 19.8105 7.01643 19.9659 7.07105C20.1273 7.12776 20.153 7.17127 20.1401 7.15439L21.329 6.23978C21.094 5.93436 20.7636 5.76145 20.4632 5.65587C20.1567 5.54818 19.8101 5.48587 19.4604 5.44678C18.7646 5.369 17.9174 5.37 17.0888 5.37V6.87ZM21.3933 10.0296C21.5625 9.18167 21.7062 8.47024 21.7414 7.90038C21.7775 7.31418 21.7108 6.73617 21.329 6.23978L20.1401 7.15439C20.2021 7.23508 20.2706 7.38037 20.2442 7.80797C20.2168 8.25191 20.1002 8.84478 19.9223 9.73595L21.3933 10.0296ZM16.2404 16.25C17.0021 16.25 17.6413 16.2513 18.1566 16.1882C18.6923 16.1227 19.1809 15.9794 19.6074 15.6318L18.6598 14.469C18.5346 14.571 18.3571 14.6525 17.9744 14.6994C17.5712 14.7487 17.0397 14.75 16.2404 14.75V16.25ZM19.4235 12.1561C19.2621 12.9389 19.1535 13.4593 19.0238 13.8442C18.9007 14.2095 18.785 14.367 18.6598 14.469L19.6074 15.6318C20.0339 15.2842 20.2729 14.8346 20.4453 14.3232C20.6111 13.8312 20.7388 13.2049 20.8926 12.4589L19.4235 12.1561Z",
|
|
42026
|
-
fill: sectionproperties.cart_iconcolor
|
|
42027
|
-
})))), /*#__PURE__*/React.createElement("div", {
|
|
42013
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
42028
42014
|
className: "".concat(headerstyles$g.badge_counter_header_notifications, " ").concat(header_cssstyles.badge_counter_header_notifications) + ' d-flex justify-content-center text-center ',
|
|
42029
42015
|
style: {
|
|
42030
42016
|
top: sectionproperties.cartbadgetop + 'px',
|
|
42031
42017
|
right: sectionproperties.cartbadgeright + 'px'
|
|
42032
42018
|
}
|
|
42033
|
-
}, (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue === void 0 || (_fetchcustomercartQue = _fetchcustomercartQue.data) === null || _fetchcustomercartQue === void 0 ? void 0 : _fetchcustomercartQue.customercart) != null ? (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue2 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue2 === void 0 || (_fetchcustomercartQue2 = _fetchcustomercartQue2.data) === null || _fetchcustomercartQue2 === void 0 || (_fetchcustomercartQue2 = _fetchcustomercartQue2.customercart) === null || _fetchcustomercartQue2 === void 0 || (_fetchcustomercartQue2 = _fetchcustomercartQue2.cartitems) === null || _fetchcustomercartQue2 === void 0 ? void 0 : _fetchcustomercartQue2.length) >= 10 ? '+9' : fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue3 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue3 === void 0 || (_fetchcustomercartQue3 = _fetchcustomercartQue3.data) === null || _fetchcustomercartQue3 === void 0 || (_fetchcustomercartQue3 = _fetchcustomercartQue3.customercart) === null || _fetchcustomercartQue3 === void 0 || (_fetchcustomercartQue3 = _fetchcustomercartQue3.cartitems) === null || _fetchcustomercartQue3 === void 0 ? void 0 : _fetchcustomercartQue3.length : 0))), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
42019
|
+
}, (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue === void 0 || (_fetchcustomercartQue = _fetchcustomercartQue.data) === null || _fetchcustomercartQue === void 0 ? void 0 : _fetchcustomercartQue.customercart) != null ? (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue2 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue2 === void 0 || (_fetchcustomercartQue2 = _fetchcustomercartQue2.data) === null || _fetchcustomercartQue2 === void 0 || (_fetchcustomercartQue2 = _fetchcustomercartQue2.customercart) === null || _fetchcustomercartQue2 === void 0 || (_fetchcustomercartQue2 = _fetchcustomercartQue2.cartitems) === null || _fetchcustomercartQue2 === void 0 ? void 0 : _fetchcustomercartQue2.length) >= 10 ? '+9' : fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue3 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue3 === void 0 || (_fetchcustomercartQue3 = _fetchcustomercartQue3.data) === null || _fetchcustomercartQue3 === void 0 || (_fetchcustomercartQue3 = _fetchcustomercartQue3.customercart) === null || _fetchcustomercartQue3 === void 0 || (_fetchcustomercartQue3 = _fetchcustomercartQue3.cartitems) === null || _fetchcustomercartQue3 === void 0 ? void 0 : _fetchcustomercartQue3.length : 0))), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i8 = authdetailsContext.instinfo) === null || _authdetailsContext$i8 === void 0 ? void 0 : _authdetailsContext$i8.instid) == '69ce49ee861df' && /*#__PURE__*/React.createElement("div", {
|
|
42034
42020
|
"class": langdetect == 'en' ? 'headerdropdownml' : 'headerdropdownmr'
|
|
42035
42021
|
}, /*#__PURE__*/React.createElement(Dropdown, null, /*#__PURE__*/React.createElement(Dropdown.Toggle, null, /*#__PURE__*/React.createElement("li", {
|
|
42036
42022
|
"class": "".concat(headerstyles$g.header_menu) + ' allcentered '
|
|
@@ -42068,29 +42054,29 @@ var Modernheader = function Modernheader(props) {
|
|
|
42068
42054
|
"class": "".concat(header_cssstyles.dropdownitem) + ' dropdownitem d-flex align-items-center m-0 p-0 '
|
|
42069
42055
|
}, /*#__PURE__*/React.createElement("span", {
|
|
42070
42056
|
"class": "ml-2 mr-2"
|
|
42071
|
-
}, "English"))))))), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
42057
|
+
}, "English"))))))), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i9 = authdetailsContext.instinfo) === null || _authdetailsContext$i9 === void 0 ? void 0 : _authdetailsContext$i9.instid) != '69ce49ee861df' && /*#__PURE__*/React.createElement("div", {
|
|
42072
42058
|
"class": langdetect == 'en' ? 'headerdropdownml' : 'headerdropdownmr'
|
|
42073
42059
|
}, /*#__PURE__*/React.createElement(Dropdown, null, /*#__PURE__*/React.createElement(Dropdown.Toggle, null, /*#__PURE__*/React.createElement("li", {
|
|
42074
42060
|
"class": "".concat(headerstyles$g.header_menu) + ' allcentered '
|
|
42075
42061
|
}, langdetect == 'ar' && /*#__PURE__*/React.createElement("div", {
|
|
42076
42062
|
"class": "".concat(header_cssstyles.languagecontainer) + ' row m-0 w-100 d-flex align-items-center '
|
|
42077
|
-
}, (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
42063
|
+
}, (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i0 = authdetailsContext.instinfo) === null || _authdetailsContext$i0 === void 0 ? void 0 : _authdetailsContext$i0.instid) == '67d5d6dfefe6d' && /*#__PURE__*/React.createElement("img", {
|
|
42078
42064
|
src: 'https://tabex-co.com/storage/StaticImages/egyptflag.png',
|
|
42079
42065
|
style: {
|
|
42080
42066
|
maxWidth: '2.5vh',
|
|
42081
42067
|
maxHeight: '2.5vh'
|
|
42082
42068
|
}
|
|
42083
|
-
}), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
42069
|
+
}), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i1 = authdetailsContext.instinfo) === null || _authdetailsContext$i1 === void 0 ? void 0 : _authdetailsContext$i1.instid) != '67d5d6dfefe6d' && /*#__PURE__*/React.createElement("p", {
|
|
42084
42070
|
"class": "m-0 p-0"
|
|
42085
42071
|
}, "\u0639")), langdetect == 'en' && /*#__PURE__*/React.createElement("div", {
|
|
42086
42072
|
"class": "".concat(header_cssstyles.languagecontainer) + ' row m-0 w-1s00 d-flex align-items-center '
|
|
42087
|
-
}, (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
42073
|
+
}, (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i10 = authdetailsContext.instinfo) === null || _authdetailsContext$i10 === void 0 ? void 0 : _authdetailsContext$i10.instid) == '67d5d6dfefe6d' && /*#__PURE__*/React.createElement("img", {
|
|
42088
42074
|
src: 'https://tabex-co.com/storage/StaticImages/usflag.png',
|
|
42089
42075
|
style: {
|
|
42090
42076
|
maxWidth: '2.5vh',
|
|
42091
42077
|
maxHeight: '2.5vh'
|
|
42092
42078
|
}
|
|
42093
|
-
}), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
42079
|
+
}), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i11 = authdetailsContext.instinfo) === null || _authdetailsContext$i11 === void 0 ? void 0 : _authdetailsContext$i11.instid) != '67d5d6dfefe6d' && /*#__PURE__*/React.createElement("p", {
|
|
42094
42080
|
"class": "m-0 p-0"
|
|
42095
42081
|
}, "En")))), /*#__PURE__*/React.createElement(Dropdown.Menu, null, /*#__PURE__*/React.createElement(Dropdown.Item, {
|
|
42096
42082
|
"class": "".concat(header_cssstyles.dropdownitem),
|
|
@@ -42101,7 +42087,7 @@ var Modernheader = function Modernheader(props) {
|
|
|
42101
42087
|
"class": "".concat(header_cssstyles.dropdownitemcontainer) + ' d-flex align-items-center m-0 p-0 '
|
|
42102
42088
|
}, /*#__PURE__*/React.createElement("p", {
|
|
42103
42089
|
"class": "".concat(header_cssstyles.dropdownitem) + ' dropdownitem d-flex align-items-center m-0 p-0 '
|
|
42104
|
-
}, (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
42090
|
+
}, (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i12 = authdetailsContext.instinfo) === null || _authdetailsContext$i12 === void 0 ? void 0 : _authdetailsContext$i12.instid) == '67d5d6dfefe6d' && /*#__PURE__*/React.createElement("img", {
|
|
42105
42091
|
src: 'https://tabex-co.com/storage/StaticImages/egyptflag.png',
|
|
42106
42092
|
style: {
|
|
42107
42093
|
maxWidth: '2vh',
|
|
@@ -42118,7 +42104,7 @@ var Modernheader = function Modernheader(props) {
|
|
|
42118
42104
|
"class": "".concat(header_cssstyles.dropdownitemcontainer) + ' d-flex align-items-center m-0 p-0 '
|
|
42119
42105
|
}, /*#__PURE__*/React.createElement("p", {
|
|
42120
42106
|
"class": "".concat(header_cssstyles.dropdownitem) + ' dropdownitem d-flex align-items-center m-0 p-0 '
|
|
42121
|
-
}, (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
42107
|
+
}, (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i13 = authdetailsContext.instinfo) === null || _authdetailsContext$i13 === void 0 ? void 0 : _authdetailsContext$i13.instid) == '67d5d6dfefe6d' && /*#__PURE__*/React.createElement("img", {
|
|
42122
42108
|
src: 'https://tabex-co.com/storage/StaticImages/usflag.png',
|
|
42123
42109
|
style: {
|
|
42124
42110
|
maxWidth: '2vh',
|
|
@@ -42145,8 +42131,8 @@ var Modernheader = function Modernheader(props) {
|
|
|
42145
42131
|
}
|
|
42146
42132
|
}, /*#__PURE__*/React.createElement("ul", null, templatepropcontext.pagesnprop.map(function (item, index) {
|
|
42147
42133
|
if (item.isnavigation == 1 && item.isactive == 1) {
|
|
42148
|
-
var _authdetailsContext$
|
|
42149
|
-
if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
42134
|
+
var _authdetailsContext$i14;
|
|
42135
|
+
if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i14 = authdetailsContext.instinfo) === null || _authdetailsContext$i14 === void 0 ? void 0 : _authdetailsContext$i14.instid) != '68c69dcc53e94') {
|
|
42150
42136
|
return /*#__PURE__*/React.createElement("div", {
|
|
42151
42137
|
"class": "cursor-pointer",
|
|
42152
42138
|
onClick: function onClick() {
|
|
@@ -42370,7 +42356,71 @@ var Modernheader = function Modernheader(props) {
|
|
|
42370
42356
|
actions: actions,
|
|
42371
42357
|
sectionpropertiesprops: sectionproperties,
|
|
42372
42358
|
srcfromprops: 'StylishHeader'
|
|
42373
|
-
})))))))
|
|
42359
|
+
}))))))), /*#__PURE__*/React.createElement(Offcanvas, {
|
|
42360
|
+
show: menuactive,
|
|
42361
|
+
onHide: function onHide() {
|
|
42362
|
+
setmenuactive(false);
|
|
42363
|
+
},
|
|
42364
|
+
placement: langdetect == 'en' ? 'start' : 'end',
|
|
42365
|
+
scroll: true,
|
|
42366
|
+
style: {
|
|
42367
|
+
width: '30%',
|
|
42368
|
+
background: 'white'
|
|
42369
|
+
},
|
|
42370
|
+
backdrop: true
|
|
42371
|
+
}, /*#__PURE__*/React.createElement(Offcanvas.Header, null, /*#__PURE__*/React.createElement(Offcanvas.Title, null, /*#__PURE__*/React.createElement("div", {
|
|
42372
|
+
className: "row m-0 w-100 mb-4",
|
|
42373
|
+
style: {
|
|
42374
|
+
borderBottom: '1px solid #eee'
|
|
42375
|
+
}
|
|
42376
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
42377
|
+
className: 'col-12 allcentered py-3'
|
|
42378
|
+
}, /*#__PURE__*/React.createElement("p", {
|
|
42379
|
+
className: "m-0 p-0",
|
|
42380
|
+
style: {
|
|
42381
|
+
textTransform: 'uppercase',
|
|
42382
|
+
fontWeight: 500,
|
|
42383
|
+
fontSize: '15px',
|
|
42384
|
+
transition: '.3s',
|
|
42385
|
+
color: '#05233D'
|
|
42386
|
+
}
|
|
42387
|
+
}, langdetect == 'en' ? 'PRODUCTS & SERVICES' : 'منتجاتنا و خدماتنا'))), langdetect == 'en' && /*#__PURE__*/React.createElement("div", {
|
|
42388
|
+
"class": "allcentered",
|
|
42389
|
+
style: {
|
|
42390
|
+
position: 'absolute',
|
|
42391
|
+
right: -34,
|
|
42392
|
+
top: 5,
|
|
42393
|
+
width: 30,
|
|
42394
|
+
height: 30,
|
|
42395
|
+
background: '#000'
|
|
42396
|
+
},
|
|
42397
|
+
onClick: function onClick() {
|
|
42398
|
+
setopenmenuCanvas(false);
|
|
42399
|
+
}
|
|
42400
|
+
}, /*#__PURE__*/React.createElement(IoMdClose, {
|
|
42401
|
+
color: '#fff',
|
|
42402
|
+
size: 16
|
|
42403
|
+
})), langdetect == 'ar' && /*#__PURE__*/React.createElement("div", {
|
|
42404
|
+
"class": "allcentered",
|
|
42405
|
+
style: {
|
|
42406
|
+
position: 'absolute',
|
|
42407
|
+
left: -34,
|
|
42408
|
+
top: 5,
|
|
42409
|
+
width: 30,
|
|
42410
|
+
height: 30,
|
|
42411
|
+
background: '#000'
|
|
42412
|
+
},
|
|
42413
|
+
onClick: function onClick() {
|
|
42414
|
+
setmenuactive(false);
|
|
42415
|
+
}
|
|
42416
|
+
}, /*#__PURE__*/React.createElement(IoMdClose, {
|
|
42417
|
+
color: '#fff',
|
|
42418
|
+
size: 16
|
|
42419
|
+
})))), /*#__PURE__*/React.createElement(Offcanvas.Body, null, /*#__PURE__*/React.createElement(SubheaderDropdown, {
|
|
42420
|
+
sectionpropertiesprops: sectionproperties,
|
|
42421
|
+
actions: actions,
|
|
42422
|
+
setmenuactive: setmenuactive
|
|
42423
|
+
}))));
|
|
42374
42424
|
};
|
|
42375
42425
|
|
|
42376
42426
|
function ownKeys$1W(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; }
|
|
@@ -92848,6 +92898,7 @@ var Productcard_with_slideanimation = function Productcard_with_slideanimation(p
|
|
|
92848
92898
|
function ownKeys$e(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; }
|
|
92849
92899
|
function _objectSpread$e(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$e(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$e(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
92850
92900
|
var Productcard_with_variants = function Productcard_with_variants(props) {
|
|
92901
|
+
var _css, _css2, _css3;
|
|
92851
92902
|
var _useState = useState(''),
|
|
92852
92903
|
_useState2 = _slicedToArray(_useState, 2),
|
|
92853
92904
|
sectionproperties = _useState2[0],
|
|
@@ -92916,16 +92967,6 @@ var Productcard_with_variants = function Productcard_with_variants(props) {
|
|
|
92916
92967
|
height: sectionproperties.variantcontainer_height + 'vh',
|
|
92917
92968
|
borderRadius: sectionproperties.variantcontainer_borderBottomLeftRadius + 'px'
|
|
92918
92969
|
}),
|
|
92919
|
-
productcard_imgcontainer: css({
|
|
92920
|
-
height: sectionproperties.image_height + 'px',
|
|
92921
|
-
background: sectionproperties.image_bgtransparent == 'Transparent' ? '' : sectionproperties.image_bgcolor,
|
|
92922
|
-
border: sectionproperties.image_borderwidth + 'px solid ' + sectionproperties.image_bordercolor,
|
|
92923
|
-
borderBottomLeftRadius: langdetect == 'en' ? sectionproperties.image_borderBottomLeftRadius + 'px' : sectionproperties.image_borderBottomRightRadius + 'px',
|
|
92924
|
-
borderBottomRightRadius: langdetect == 'en' ? sectionproperties.image_borderBottomRightRadius + 'px' : sectionproperties.image_borderBottomLeftRadius + 'px',
|
|
92925
|
-
borderTopLeftRadius: langdetect == 'en' ? sectionproperties.image_bordertopleftradius + 'px' : sectionproperties.image_bordertoprightradius + 'px',
|
|
92926
|
-
borderTopRightRadius: langdetect == 'en' ? sectionproperties.image_bordertoprightradius + 'px' : sectionproperties.image_bordertopleftradius + 'px',
|
|
92927
|
-
transition: '.3s'
|
|
92928
|
-
}),
|
|
92929
92970
|
productNameStyles: css({
|
|
92930
92971
|
fontSize: sectionproperties.prodNameFontSize + 'px',
|
|
92931
92972
|
textTransform: sectionproperties.prodNameTextTranform,
|
|
@@ -92970,11 +93011,11 @@ var Productcard_with_variants = function Productcard_with_variants(props) {
|
|
|
92970
93011
|
position: 'absolute',
|
|
92971
93012
|
left: 0,
|
|
92972
93013
|
right: 0,
|
|
92973
|
-
bottom: '
|
|
93014
|
+
bottom: '20px',
|
|
92974
93015
|
opacity: 1,
|
|
92975
93016
|
margin: 'auto',
|
|
92976
93017
|
transition: 'all, 0.3s',
|
|
92977
|
-
width: sectionproperties.cartBtnWidth + '
|
|
93018
|
+
width: sectionproperties.cartBtnWidth + '%',
|
|
92978
93019
|
maxWidth: '100%',
|
|
92979
93020
|
height: sectionproperties.cartBtnHeight + 'px',
|
|
92980
93021
|
background: sectionproperties.cartbtn_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.cartBtnbgColor,
|
|
@@ -92989,7 +93030,7 @@ var Productcard_with_variants = function Productcard_with_variants(props) {
|
|
|
92989
93030
|
color: sectionproperties.cartBtnTextcoloronhover
|
|
92990
93031
|
}
|
|
92991
93032
|
}),
|
|
92992
|
-
cart_btn_bottom: css({
|
|
93033
|
+
cart_btn_bottom: css((_css = {
|
|
92993
93034
|
position: 'absolute',
|
|
92994
93035
|
left: 0,
|
|
92995
93036
|
right: 0,
|
|
@@ -92997,21 +93038,12 @@ var Productcard_with_variants = function Productcard_with_variants(props) {
|
|
|
92997
93038
|
opacity: 0,
|
|
92998
93039
|
margin: 'auto',
|
|
92999
93040
|
transition: 'all, 0.3s',
|
|
93000
|
-
width: sectionproperties.cartBtnWidth + 'px'
|
|
93001
|
-
|
|
93002
|
-
background: sectionproperties.
|
|
93003
|
-
|
|
93004
|
-
|
|
93005
|
-
|
|
93006
|
-
textTransform: sectionproperties.cartBtnTexttransform,
|
|
93007
|
-
fontWeight: sectionproperties.cartBtnTextfontweight,
|
|
93008
|
-
border: sectionproperties.cartbtnborderwidth + 'px solid ' + sectionproperties.cartbtnbordercolor,
|
|
93009
|
-
':hover': {
|
|
93010
|
-
background: sectionproperties.cartbtn_transparentbgcoloronhover == 'Transparent' ? 'transparent' : sectionproperties.cartBtnbgColoronhover,
|
|
93011
|
-
color: sectionproperties.cartBtnTextcoloronhover
|
|
93012
|
-
}
|
|
93013
|
-
}),
|
|
93014
|
-
cart_btn_center: css({
|
|
93041
|
+
width: sectionproperties.cartBtnWidth + 'px'
|
|
93042
|
+
}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_css, "width", sectionproperties.cartBtnWidth + '%'), "maxWidth", '100%'), "height", sectionproperties.cartBtnHeight + 'px'), "background", sectionproperties.cartbtn_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.cartBtnbgColor), "borderRadius", sectionproperties.cart_btn_borderBottomLeftRadius + 'px'), "color", sectionproperties.cart_iconcolor), "fontSize", sectionproperties.cartBtnTextfontsize + 'px'), "textTransform", sectionproperties.cartBtnTexttransform), "fontWeight", sectionproperties.cartBtnTextfontweight), "border", sectionproperties.cartbtnborderwidth + 'px solid ' + sectionproperties.cartbtnbordercolor), _defineProperty(_css, ':hover', {
|
|
93043
|
+
background: sectionproperties.cartbtn_transparentbgcoloronhover == 'Transparent' ? 'transparent' : sectionproperties.cartBtnbgColoronhover,
|
|
93044
|
+
color: sectionproperties.cartBtnTextcoloronhover
|
|
93045
|
+
}))),
|
|
93046
|
+
cart_btn_center: css((_css2 = {
|
|
93015
93047
|
position: 'absolute',
|
|
93016
93048
|
left: 0,
|
|
93017
93049
|
right: 0,
|
|
@@ -93019,20 +93051,11 @@ var Productcard_with_variants = function Productcard_with_variants(props) {
|
|
|
93019
93051
|
opacity: 0,
|
|
93020
93052
|
margin: 'auto',
|
|
93021
93053
|
transition: 'all, 0.3s',
|
|
93022
|
-
width: sectionproperties.cartBtnWidth + 'px'
|
|
93023
|
-
|
|
93024
|
-
background: sectionproperties.
|
|
93025
|
-
|
|
93026
|
-
|
|
93027
|
-
fontSize: sectionproperties.cartBtnTextfontsize + 'px',
|
|
93028
|
-
textTransform: sectionproperties.cartBtnTexttransform,
|
|
93029
|
-
fontWeight: sectionproperties.cartBtnTextfontweight,
|
|
93030
|
-
border: sectionproperties.cartbtnborderwidth + 'px solid ' + sectionproperties.cartbtnbordercolor,
|
|
93031
|
-
':hover': {
|
|
93032
|
-
background: sectionproperties.cartbtn_transparentbgcoloronhover == 'Transparent' ? 'transparent' : sectionproperties.cartBtnbgColoronhover,
|
|
93033
|
-
color: sectionproperties.cartBtnTextcoloronhover
|
|
93034
|
-
}
|
|
93035
|
-
}),
|
|
93054
|
+
width: sectionproperties.cartBtnWidth + 'px'
|
|
93055
|
+
}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_css2, "width", sectionproperties.cartBtnWidth + '%'), "maxWidth", '100%'), "height", sectionproperties.cartBtnHeight + 'px'), "background", sectionproperties.cartbtn_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.cartBtnbgColor), "borderRadius", sectionproperties.cart_btn_borderBottomLeftRadius + 'px'), "color", sectionproperties.cart_iconcolor), "fontSize", sectionproperties.cartBtnTextfontsize + 'px'), "textTransform", sectionproperties.cartBtnTexttransform), "fontWeight", sectionproperties.cartBtnTextfontweight), "border", sectionproperties.cartbtnborderwidth + 'px solid ' + sectionproperties.cartbtnbordercolor), _defineProperty(_css2, ':hover', {
|
|
93056
|
+
background: sectionproperties.cartbtn_transparentbgcoloronhover == 'Transparent' ? 'transparent' : sectionproperties.cartBtnbgColoronhover,
|
|
93057
|
+
color: sectionproperties.cartBtnTextcoloronhover
|
|
93058
|
+
}))),
|
|
93036
93059
|
productcard: css({
|
|
93037
93060
|
background: sectionproperties.backgroundColortransparent == 'Transparent' ? 'transparent' : sectionproperties.backgroundColor,
|
|
93038
93061
|
borderBottomLeftRadius: langdetect == 'en' ? sectionproperties.borderBottomLeftRadius + 'px' : sectionproperties.borderBottomRightRadius + 'px',
|
|
@@ -93061,7 +93084,7 @@ var Productcard_with_variants = function Productcard_with_variants(props) {
|
|
|
93061
93084
|
bottom: '40%'
|
|
93062
93085
|
}
|
|
93063
93086
|
}),
|
|
93064
|
-
cart_btnresponsive: css({
|
|
93087
|
+
cart_btnresponsive: css((_css3 = {
|
|
93065
93088
|
position: 'absolute',
|
|
93066
93089
|
opacity: 1,
|
|
93067
93090
|
bottom: '10px',
|
|
@@ -93069,20 +93092,11 @@ var Productcard_with_variants = function Productcard_with_variants(props) {
|
|
|
93069
93092
|
right: 0,
|
|
93070
93093
|
margin: 'auto',
|
|
93071
93094
|
transition: 'all, 0.3s',
|
|
93072
|
-
width: sectionproperties.cartBtnWidth + 'px'
|
|
93073
|
-
|
|
93074
|
-
background: sectionproperties.
|
|
93075
|
-
|
|
93076
|
-
|
|
93077
|
-
fontSize: sectionproperties.cartBtnTextfontsize + 'px',
|
|
93078
|
-
textTransform: sectionproperties.cartBtnTexttransform,
|
|
93079
|
-
fontWeight: sectionproperties.cartBtnTextfontweight,
|
|
93080
|
-
border: sectionproperties.cartbtnborderwidth + 'px solid ' + sectionproperties.cartbtnbordercolor,
|
|
93081
|
-
':hover': {
|
|
93082
|
-
background: sectionproperties.cartbtn_transparentbgcoloronhover == 'Transparent' ? 'transparent' : sectionproperties.cartBtnbgColoronhover,
|
|
93083
|
-
color: sectionproperties.cartBtnTextcoloronhover
|
|
93084
|
-
}
|
|
93085
|
-
}),
|
|
93095
|
+
width: sectionproperties.cartBtnWidth + 'px'
|
|
93096
|
+
}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_css3, "width", sectionproperties.cartBtnWidth + '%'), "maxWidth", '100%'), "height", sectionproperties.cartBtnHeight + 'px'), "background", sectionproperties.cartbtn_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.cartBtnbgColor), "borderRadius", sectionproperties.cart_btn_borderBottomLeftRadius + 'px'), "color", sectionproperties.cart_iconcolor), "fontSize", sectionproperties.cartBtnTextfontsize + 'px'), "textTransform", sectionproperties.cartBtnTexttransform), "fontWeight", sectionproperties.cartBtnTextfontweight), "border", sectionproperties.cartbtnborderwidth + 'px solid ' + sectionproperties.cartbtnbordercolor), _defineProperty(_css3, ':hover', {
|
|
93097
|
+
background: sectionproperties.cartbtn_transparentbgcoloronhover == 'Transparent' ? 'transparent' : sectionproperties.cartBtnbgColoronhover,
|
|
93098
|
+
color: sectionproperties.cartBtnTextcoloronhover
|
|
93099
|
+
}))),
|
|
93086
93100
|
imageContainer: css({
|
|
93087
93101
|
backgroundColor: sectionproperties.image_bgcolor,
|
|
93088
93102
|
borderBottomLeftRadius: langdetect == 'en' ? sectionproperties.image_borderBottomLeftRadius + 'px' : sectionproperties.image_borderBottomRightRadius + 'px',
|
|
@@ -93091,16 +93105,24 @@ var Productcard_with_variants = function Productcard_with_variants(props) {
|
|
|
93091
93105
|
borderTopRightRadius: langdetect == 'en' ? sectionproperties.image_bordertoprightradius + 'px' : sectionproperties.image_bordertopleftradius + 'px',
|
|
93092
93106
|
height: sectionproperties.image_height == 0 ? 'auto' : sectionproperties.image_height + 'px',
|
|
93093
93107
|
marginBottom: sectionproperties.image_mb + 'px',
|
|
93108
|
+
position: 'relative',
|
|
93109
|
+
overflow: 'hidden',
|
|
93094
93110
|
'@media (max-width: 800px)': {
|
|
93095
93111
|
height: sectionproperties.height_responsive == 0 ? 'auto' : sectionproperties.height_responsive + 'px'
|
|
93096
93112
|
}
|
|
93097
93113
|
}),
|
|
93098
93114
|
productoutercard: css({
|
|
93099
|
-
minWidth: sectionproperties.width + 'px',
|
|
93100
|
-
maxWidth: sectionproperties.width + 'px',
|
|
93115
|
+
// minWidth: sectionproperties.width + 'px',
|
|
93116
|
+
// maxWidth: sectionproperties.width + 'px',
|
|
93117
|
+
// '@media (max-width: 800px)': {
|
|
93118
|
+
// minWidth: sectionproperties.widthresponsive + 'px',
|
|
93119
|
+
// maxWidth: sectionproperties.widthresponsive + 'px',
|
|
93120
|
+
// },
|
|
93121
|
+
minWidth: props.sectiontypeprops2 == 'vertical' ? '100%' : sectionproperties.width + 'px',
|
|
93122
|
+
maxWidth: props.sectiontypeprops2 == 'vertical' ? '100%' : sectionproperties.width + 'px',
|
|
93101
93123
|
'@media (max-width: 800px)': {
|
|
93102
|
-
minWidth: sectionproperties.widthresponsive + 'px',
|
|
93103
|
-
maxWidth: sectionproperties.widthresponsive + 'px'
|
|
93124
|
+
minWidth: props.sectiontypeprops2 == 'vertical' ? '100%' : sectionproperties.widthresponsive + 'px',
|
|
93125
|
+
maxWidth: props.sectiontypeprops2 == 'vertical' ? '100%' : sectionproperties.widthresponsive + 'px'
|
|
93104
93126
|
}
|
|
93105
93127
|
})
|
|
93106
93128
|
};
|
|
@@ -93114,7 +93136,7 @@ var Productcard_with_variants = function Productcard_with_variants(props) {
|
|
|
93114
93136
|
style: {
|
|
93115
93137
|
position: 'relative'
|
|
93116
93138
|
}
|
|
93117
|
-
}, /*#__PURE__*/React.createElement(Imagekitimagecomp, {
|
|
93139
|
+
}, item.image != null && /*#__PURE__*/React.createElement(Imagekitimagecomp, {
|
|
93118
93140
|
"class": transition ? generalCardsStyles.intialimage : '',
|
|
93119
93141
|
urlEndpoint: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint,
|
|
93120
93142
|
publicKey: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimagepublickey,
|
|
@@ -93153,88 +93175,7 @@ var Productcard_with_variants = function Productcard_with_variants(props) {
|
|
|
93153
93175
|
setShowProductInfoModalContext(true);
|
|
93154
93176
|
setProductIdProdutInfoModalContext(item.productid);
|
|
93155
93177
|
}
|
|
93156
|
-
})
|
|
93157
|
-
"class": "".concat(card_cssstyles.wishlist_btn) + ' wishlist_btn cursor-pointer ',
|
|
93158
|
-
onClick: function onClick(e) {
|
|
93159
|
-
e.stopPropagation();
|
|
93160
|
-
addtofavoritescontext(item.productid);
|
|
93161
|
-
}
|
|
93162
|
-
}, /*#__PURE__*/React.createElement("i", {
|
|
93163
|
-
"class": "h-100 d-flex align-items-center justify-content-center"
|
|
93164
|
-
}, item.IsFavExists && /*#__PURE__*/React.createElement("i", {
|
|
93165
|
-
"class": "h-100 d-flex align-items-center justify-content-center"
|
|
93166
|
-
}, sectionproperties.faviconshape == 'Star Shape' && /*#__PURE__*/React.createElement(AiFillStar$1, {
|
|
93167
|
-
size: sectionproperties.favBtnIconfontsize,
|
|
93168
|
-
style: {
|
|
93169
|
-
color: sectionproperties.activefaviconcolor
|
|
93170
|
-
}
|
|
93171
|
-
}), sectionproperties.faviconshape == 'Heart Shape' && /*#__PURE__*/React.createElement(FaHeart$1, {
|
|
93172
|
-
size: sectionproperties.favBtnIconfontsize,
|
|
93173
|
-
style: {
|
|
93174
|
-
color: sectionproperties.activefaviconcolor
|
|
93175
|
-
}
|
|
93176
|
-
})), !item.IsFavExists && /*#__PURE__*/React.createElement("i", {
|
|
93177
|
-
"class": "h-100 d-flex align-items-center justify-content-center"
|
|
93178
|
-
}, sectionproperties.faviconshape == 'Star Shape' && /*#__PURE__*/React.createElement(AiOutlineStar, {
|
|
93179
|
-
size: sectionproperties.favBtnIconfontsize
|
|
93180
|
-
}), sectionproperties.faviconshape == 'Heart Shape' && /*#__PURE__*/React.createElement(FaRegHeart, {
|
|
93181
|
-
size: sectionproperties.favBtnIconfontsize
|
|
93182
|
-
})))), sectionproperties.showbadge == 'Show' && item.hassale == 1 && /*#__PURE__*/React.createElement("div", {
|
|
93183
|
-
"class": "allcentered",
|
|
93184
|
-
style: {
|
|
93185
|
-
position: 'absolute',
|
|
93186
|
-
top: sectionproperties.badge_top + 'px',
|
|
93187
|
-
left: sectionproperties.badge_right + 'px',
|
|
93188
|
-
width: sectionproperties.badge_width + 'px',
|
|
93189
|
-
height: sectionproperties.badge_height + 'px',
|
|
93190
|
-
background: sectionproperties.badge_bgcolor,
|
|
93191
|
-
borderRadius: sectionproperties.badge_borderradius + 'px'
|
|
93192
|
-
}
|
|
93193
|
-
}, /*#__PURE__*/React.createElement("p", {
|
|
93194
|
-
"class": props.fontFamilyprops == 'ASUL' ? ' ASUL m-0 p-0 text-uppercase' : ' m-0 p-0 text-uppercase',
|
|
93195
|
-
style: {
|
|
93196
|
-
color: sectionproperties.badge_color,
|
|
93197
|
-
fontSize: sectionproperties.badge_fontsize + 'px'
|
|
93198
|
-
}
|
|
93199
|
-
}, langdetect == 'en' ? sectionproperties.badgeContentEn : sectionproperties.badgeContentAr)), sectionproperties.showpill == 'Show' && item.hassale == 1 && /*#__PURE__*/React.createElement("div", {
|
|
93200
|
-
"class": "allcentered",
|
|
93201
|
-
style: {
|
|
93202
|
-
position: 'absolute',
|
|
93203
|
-
top: sectionproperties.pillpositionfromtop + 'px',
|
|
93204
|
-
left: sectionproperties.pillpositionfromright + 'px',
|
|
93205
|
-
width: sectionproperties.pillwidth + 'px',
|
|
93206
|
-
height: sectionproperties.pillheight + 'px',
|
|
93207
|
-
background: sectionproperties.pillbgcolor,
|
|
93208
|
-
borderRadius: sectionproperties.pillborderBottomLeftRadius + 'px'
|
|
93209
|
-
}
|
|
93210
|
-
}, sectionproperties.countertype == 'Percentage' && /*#__PURE__*/React.createElement("p", {
|
|
93211
|
-
"class": "m-0 p-0 text-uppercase",
|
|
93212
|
-
style: {
|
|
93213
|
-
color: sectionproperties.pillcolor,
|
|
93214
|
-
fontSize: sectionproperties.pillfontSize + 'px',
|
|
93215
|
-
direction: 'ltr'
|
|
93216
|
-
}
|
|
93217
|
-
}, '-' + parseFloat(Math.round(10.0 * ((parseInt(item.defaultprice) - parseInt(item.defaultsaleprice)) / parseInt(item.defaultprice)) * 100) / 10.0).toFixed(0) + '%'), sectionproperties.countertype == 'Value' && /*#__PURE__*/React.createElement("p", {
|
|
93218
|
-
"class": "m-0 p-0 text-uppercase",
|
|
93219
|
-
style: {
|
|
93220
|
-
color: sectionproperties.pillcolor,
|
|
93221
|
-
fontSize: sectionproperties.pillfontSize + 'px',
|
|
93222
|
-
direction: 'ltr'
|
|
93223
|
-
}
|
|
93224
|
-
}, langdetect == 'en' ? 'Save' : 'وفر', " ", langdetect == 'en' ? item.currencyname : '', ' ', parseFloat(Math.round(parseInt(item.defaultprice) - parseInt(item.defaultsaleprice))).toFixed(0), " ", langdetect == 'en' ? '' : item.currencyname)), sectionproperties.cartBtnShow == 'Show' && /*#__PURE__*/React.createElement("button", {
|
|
93225
|
-
"class": sectionproperties.transition == 'Bottom' ? "".concat(card_cssstyles.cart_btn_bottom) + ' cursor-pointer d-flex d-md-none d-sm-none justify-content-center align-items-center cart_btn_bottom ' : sectionproperties.transition == 'Center' ? "".concat(card_cssstyles.cart_btn_center) + ' cursor-pointer d-flex d-md-none d-sm-none justify-content-center align-items-center cart_btn_center ' : "".concat(card_cssstyles.cart_btn) + ' cursor-pointer d-flex d-md-none d-sm-none justify-content-center align-items-center cart_btn ',
|
|
93226
|
-
onClick: function onClick(e) {
|
|
93227
|
-
e.stopPropagation();
|
|
93228
|
-
setShowProductInfoModalContext(true);
|
|
93229
|
-
setProductIdProdutInfoModalContext(item.productid);
|
|
93230
|
-
}
|
|
93231
|
-
}, /*#__PURE__*/React.createElement("span", {
|
|
93232
|
-
"class": props.fontFamilyprops == 'ASUL' ? 'ASUL' : ''
|
|
93233
|
-
}, langdetect == 'en' ? sectionproperties.cartBtnContentenglish : sectionproperties.cartBtnContentarabic)), item.currentquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' && item.hasvariants == 0 && /*#__PURE__*/React.createElement("div", {
|
|
93234
|
-
"class": "".concat(card_cssstyles.outstockbadge) + ' allcentered '
|
|
93235
|
-
}, /*#__PURE__*/React.createElement("p", {
|
|
93236
|
-
"class": "m-0 p-0"
|
|
93237
|
-
}, langdetect == 'en' ? sectionproperties.outstock_contenten : sectionproperties.outstock_contentar)));
|
|
93178
|
+
}));
|
|
93238
93179
|
};
|
|
93239
93180
|
return /*#__PURE__*/React.createElement("div", {
|
|
93240
93181
|
"class": props.sectiontypeprops2 == 'vertical' ? 'row m-0 w-100' : " ".concat(card_cssstyles.productoutercard),
|
|
@@ -93246,15 +93187,101 @@ var Productcard_with_variants = function Productcard_with_variants(props) {
|
|
|
93246
93187
|
"class": "".concat(card_cssstyles.productcard) + ' w-100 '
|
|
93247
93188
|
}, /*#__PURE__*/React.createElement("div", {
|
|
93248
93189
|
"class": sectionproperties.showimagetransition == 'Show' ? " ".concat(card_cssstyles.imageContainer, " ").concat(generalCardsStyles.imagecontainer) + ' d-flex ' : " ".concat(card_cssstyles.imageContainer, " ") + ' allcentered '
|
|
93249
|
-
}, Image('normal')
|
|
93250
|
-
"class": '
|
|
93190
|
+
}, Image('normal'), sectionproperties.favBtnShow == 'Show' && /*#__PURE__*/React.createElement("p", {
|
|
93191
|
+
"class": "".concat(card_cssstyles.wishlist_btn) + ' wishlist_btn cursor-pointer ',
|
|
93192
|
+
onClick: function onClick(e) {
|
|
93193
|
+
e.stopPropagation();
|
|
93194
|
+
addtofavoritescontext(item.productid);
|
|
93195
|
+
}
|
|
93196
|
+
}, /*#__PURE__*/React.createElement("i", {
|
|
93197
|
+
"class": "h-100 d-flex align-items-center justify-content-center"
|
|
93198
|
+
}, item.IsFavExists && /*#__PURE__*/React.createElement("i", {
|
|
93199
|
+
"class": "h-100 d-flex align-items-center justify-content-center"
|
|
93200
|
+
}, sectionproperties.faviconshape == 'Star Shape' && /*#__PURE__*/React.createElement(AiFillStar$1, {
|
|
93201
|
+
size: sectionproperties.favBtnIconfontsize,
|
|
93202
|
+
style: {
|
|
93203
|
+
color: sectionproperties.activefaviconcolor
|
|
93204
|
+
}
|
|
93205
|
+
}), sectionproperties.faviconshape == 'Heart Shape' && /*#__PURE__*/React.createElement(FaHeart$1, {
|
|
93206
|
+
size: sectionproperties.favBtnIconfontsize,
|
|
93207
|
+
style: {
|
|
93208
|
+
color: sectionproperties.activefaviconcolor
|
|
93209
|
+
}
|
|
93210
|
+
})), !item.IsFavExists && /*#__PURE__*/React.createElement("i", {
|
|
93211
|
+
"class": "h-100 d-flex align-items-center justify-content-center"
|
|
93212
|
+
}, sectionproperties.faviconshape == 'Star Shape' && /*#__PURE__*/React.createElement(AiOutlineStar, {
|
|
93213
|
+
size: sectionproperties.favBtnIconfontsize
|
|
93214
|
+
}), sectionproperties.faviconshape == 'Heart Shape' && /*#__PURE__*/React.createElement(FaRegHeart, {
|
|
93215
|
+
size: sectionproperties.favBtnIconfontsize
|
|
93216
|
+
})))), sectionproperties.showbadge == 'Show' && item.hassale == 1 && /*#__PURE__*/React.createElement("div", {
|
|
93217
|
+
"class": "allcentered",
|
|
93218
|
+
style: {
|
|
93219
|
+
position: 'absolute',
|
|
93220
|
+
top: sectionproperties.badge_top + 'px',
|
|
93221
|
+
left: sectionproperties.badge_right + 'px',
|
|
93222
|
+
width: sectionproperties.badge_width + 'px',
|
|
93223
|
+
height: sectionproperties.badge_height + 'px',
|
|
93224
|
+
background: sectionproperties.badge_bgcolor,
|
|
93225
|
+
borderRadius: sectionproperties.badge_borderradius + 'px'
|
|
93226
|
+
}
|
|
93227
|
+
}, /*#__PURE__*/React.createElement("p", {
|
|
93228
|
+
"class": props.fontFamilyprops == 'ASUL' ? ' ASUL m-0 p-0 text-uppercase' : ' m-0 p-0 text-uppercase',
|
|
93229
|
+
style: {
|
|
93230
|
+
color: sectionproperties.badge_color,
|
|
93231
|
+
fontSize: sectionproperties.badge_fontsize + 'px'
|
|
93232
|
+
}
|
|
93233
|
+
}, langdetect == 'en' ? sectionproperties.badgeContentEn : sectionproperties.badgeContentAr)), sectionproperties.showpill == 'Show' && item.hassale == 1 && /*#__PURE__*/React.createElement("div", {
|
|
93234
|
+
"class": "allcentered",
|
|
93235
|
+
style: {
|
|
93236
|
+
position: 'absolute',
|
|
93237
|
+
top: sectionproperties.pillpositionfromtop + 'px',
|
|
93238
|
+
left: sectionproperties.pillpositionfromright + 'px',
|
|
93239
|
+
width: sectionproperties.pillwidth + 'px',
|
|
93240
|
+
height: sectionproperties.pillheight + 'px',
|
|
93241
|
+
background: sectionproperties.pillbgcolor,
|
|
93242
|
+
borderRadius: sectionproperties.pillborderBottomLeftRadius + 'px'
|
|
93243
|
+
}
|
|
93244
|
+
}, sectionproperties.countertype == 'Percentage' && /*#__PURE__*/React.createElement("p", {
|
|
93245
|
+
"class": "m-0 p-0 text-uppercase",
|
|
93246
|
+
style: {
|
|
93247
|
+
color: sectionproperties.pillcolor,
|
|
93248
|
+
fontSize: sectionproperties.pillfontSize + 'px',
|
|
93249
|
+
direction: 'ltr'
|
|
93250
|
+
}
|
|
93251
|
+
}, '-' + parseFloat(Math.round(10.0 * ((parseInt(item.defaultprice) - parseInt(item.defaultsaleprice)) / parseInt(item.defaultprice)) * 100) / 10.0).toFixed(0) + '%'), sectionproperties.countertype == 'Value' && /*#__PURE__*/React.createElement("p", {
|
|
93252
|
+
"class": "m-0 p-0 text-uppercase",
|
|
93253
|
+
style: {
|
|
93254
|
+
color: sectionproperties.pillcolor,
|
|
93255
|
+
fontSize: sectionproperties.pillfontSize + 'px',
|
|
93256
|
+
direction: 'ltr'
|
|
93257
|
+
}
|
|
93258
|
+
}, langdetect == 'en' ? 'Save' : 'وفر', " ", langdetect == 'en' ? item.currencyname : '', ' ', parseFloat(Math.round(parseInt(item.defaultprice) - parseInt(item.defaultsaleprice))).toFixed(0), " ", langdetect == 'en' ? '' : item.currencyname)), sectionproperties.cartBtnShow == 'Show' && /*#__PURE__*/React.createElement("button", {
|
|
93259
|
+
"class": sectionproperties.transition == 'Bottom' ? "".concat(card_cssstyles.cart_btn_bottom) + ' cursor-pointer d-flex d-md-none d-sm-none justify-content-center align-items-center cart_btn_bottom ' : sectionproperties.transition == 'Center' ? "".concat(card_cssstyles.cart_btn_center) + ' cursor-pointer d-flex d-md-none d-sm-none justify-content-center align-items-center cart_btn_center ' : "".concat(card_cssstyles.cart_btn) + ' cursor-pointer d-flex d-md-none d-sm-none justify-content-center align-items-center cart_btn ',
|
|
93260
|
+
onClick: function onClick(e) {
|
|
93261
|
+
if (sectionproperties.automaticaddtocart == 'Yes' && item.hasvariants == 0) {
|
|
93262
|
+
addtocartfunc();
|
|
93263
|
+
} else {
|
|
93264
|
+
cardonclickfunctionContext(sectionproperties === null || sectionproperties === void 0 ? void 0 : sectionproperties.onClickRoute, item.productid, props.fetchingtypeprops, item.collectionid, item.skiplayeronclick);
|
|
93265
|
+
}
|
|
93266
|
+
// e.stopPropagation();
|
|
93267
|
+
// setShowProductInfoModalContext(true);
|
|
93268
|
+
// setProductIdProdutInfoModalContext(item.productid);
|
|
93269
|
+
}
|
|
93270
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
93271
|
+
"class": props.fontFamilyprops == 'ASUL' ? 'ASUL' : ''
|
|
93272
|
+
}, langdetect == 'en' ? sectionproperties.cartBtnContentenglish : sectionproperties.cartBtnContentarabic)), item.currentquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' && item.hasvariants == 0 && /*#__PURE__*/React.createElement("div", {
|
|
93273
|
+
"class": "".concat(card_cssstyles.outstockbadge) + ' allcentered '
|
|
93274
|
+
}, /*#__PURE__*/React.createElement("p", {
|
|
93275
|
+
"class": "m-0 p-0"
|
|
93276
|
+
}, langdetect == 'en' ? sectionproperties.outstock_contenten : sectionproperties.outstock_contentar))), /*#__PURE__*/React.createElement("div", {
|
|
93277
|
+
"class": sectionproperties.paddingLeft == 0 ? 'row m-0 w-100 text-center mt-2 px-2' : 'row m-0 w-100 text-center mt-2'
|
|
93251
93278
|
}, sectionproperties.prodNameShow == 'Show' && /*#__PURE__*/React.createElement("div", {
|
|
93252
93279
|
"class": "col-lg-12 p-0"
|
|
93253
93280
|
}, /*#__PURE__*/React.createElement("p", {
|
|
93254
93281
|
onClick: function onClick() {
|
|
93255
93282
|
cardonclickfunctionContext(sectionproperties === null || sectionproperties === void 0 ? void 0 : sectionproperties.onClickRoute, item.productid, props.fetchingtypeprops, item.collectionid);
|
|
93256
93283
|
},
|
|
93257
|
-
"class":
|
|
93284
|
+
"class": sectionproperties.wordbreak == '1' ? "".concat(card_cssstyles.productNameStyles) + ' p-0 m-0 wordbreak wordbreak1 text-center ' : sectionproperties.wordbreak == '2' ? "".concat(card_cssstyles.productNameStyles) + ' p-0 m-0 wordbreak wordbreak2 text-center ' : "".concat(card_cssstyles.productNameStyles) + ' p-0 m-0 wordbreak wordbreak3 text-center '
|
|
93258
93285
|
}, item.name)), /*#__PURE__*/React.createElement("div", {
|
|
93259
93286
|
"class": "col-lg-12 d-flex align-items-center justify-content-center p-0 flex-md-column",
|
|
93260
93287
|
style: {
|