tabexseriescomponents 0.60.1 → 0.60.2
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 +467 -413
- package/dist/index.esm.js +467 -413
- package/dist/index.umd.js +467 -413
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -2066,7 +2066,7 @@ var Variantoptions = function Variantoptions(props) {
|
|
|
2066
2066
|
};
|
|
2067
2067
|
|
|
2068
2068
|
var ProductExtras = function ProductExtras(props) {
|
|
2069
|
-
var _fetchProductInfoQuer
|
|
2069
|
+
var _fetchProductInfoQuer;
|
|
2070
2070
|
props.actions.lang;
|
|
2071
2071
|
var langdetect = props.actions.langdetect;
|
|
2072
2072
|
var fetchProductInfoQueryContext = props.actions.fetchProductInfoQueryContext;
|
|
@@ -2076,8 +2076,10 @@ var ProductExtras = function ProductExtras(props) {
|
|
|
2076
2076
|
props.actions.addtocardpayloadobj;
|
|
2077
2077
|
props.actions.setaddtocardpayloadobj;
|
|
2078
2078
|
props.actions;
|
|
2079
|
-
fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer === void 0 || (_fetchProductInfoQuer = _fetchProductInfoQuer.data) === null || _fetchProductInfoQuer === void 0 || (_fetchProductInfoQuer = _fetchProductInfoQuer.productinfo) === null || _fetchProductInfoQuer === void 0 ? void 0 : _fetchProductInfoQuer.productid;
|
|
2079
|
+
var productid = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer === void 0 || (_fetchProductInfoQuer = _fetchProductInfoQuer.data) === null || _fetchProductInfoQuer === void 0 || (_fetchProductInfoQuer = _fetchProductInfoQuer.productinfo) === null || _fetchProductInfoQuer === void 0 ? void 0 : _fetchProductInfoQuer.productid;
|
|
2080
2080
|
// const templatepropcontext = props.actions.templatepropcontext;
|
|
2081
|
+
|
|
2082
|
+
var addtocartfunc = props.addtocartfunc;
|
|
2081
2083
|
var authdetailsContext = props.actions.authdetailsContext;
|
|
2082
2084
|
props.actions.productinfo_cssstyles;
|
|
2083
2085
|
var _useState = React.useState([]),
|
|
@@ -2100,9 +2102,20 @@ var ProductExtras = function ProductExtras(props) {
|
|
|
2100
2102
|
_useState0 = _slicedToArray__default["default"](_useState9, 2);
|
|
2101
2103
|
_useState0[0];
|
|
2102
2104
|
_useState0[1];
|
|
2105
|
+
var _useState1 = React.useState([]),
|
|
2106
|
+
_useState10 = _slicedToArray__default["default"](_useState1, 2),
|
|
2107
|
+
product_prod_extras_array = _useState10[0],
|
|
2108
|
+
setproduct_prod_extras_array = _useState10[1];
|
|
2103
2109
|
React.useEffect(function () {
|
|
2104
2110
|
if (fetchProductInfoQueryContext.isSuccess) ;
|
|
2105
2111
|
}, [filterproductreviews]);
|
|
2112
|
+
React.useEffect(function () {
|
|
2113
|
+
if (fetchProductInfoQueryContext.isSuccess) {
|
|
2114
|
+
var _fetchProductInfoQuer2;
|
|
2115
|
+
var tempprodextraarr = _toConsumableArray__default["default"](fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer2 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer2 === void 0 || (_fetchProductInfoQuer2 = _fetchProductInfoQuer2.data) === null || _fetchProductInfoQuer2 === void 0 || (_fetchProductInfoQuer2 = _fetchProductInfoQuer2.productinfo) === null || _fetchProductInfoQuer2 === void 0 ? void 0 : _fetchProductInfoQuer2.product_extras);
|
|
2116
|
+
setproduct_prod_extras_array(_toConsumableArray__default["default"](tempprodextraarr));
|
|
2117
|
+
}
|
|
2118
|
+
}, [fetchProductInfoQueryContext.isSuccess, fetchProductInfoQueryContext.data]);
|
|
2106
2119
|
var formstyles = {
|
|
2107
2120
|
input_label_name: glamor.css({
|
|
2108
2121
|
color: sectionproperties.form_labelcolor,
|
|
@@ -2119,7 +2132,7 @@ var ProductExtras = function ProductExtras(props) {
|
|
|
2119
2132
|
};
|
|
2120
2133
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2121
2134
|
className: 'row w-100 ml-0 mr-0 mt-3'
|
|
2122
|
-
},
|
|
2135
|
+
}, product_prod_extras_array === null || product_prod_extras_array === void 0 ? void 0 : product_prod_extras_array.map(function (item, index) {
|
|
2123
2136
|
var _item$productinfo, _item$productinfo2, _item$productinfo3, _item$productinfo4;
|
|
2124
2137
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2125
2138
|
"class": props.srcfromprops == 'servicestyle2' ? 'col-lg-12 col-sm-12 p-0 mb-3' : 'col-lg-6 col-sm-12 p-0 mb-3'
|
|
@@ -2163,7 +2176,32 @@ var ProductExtras = function ProductExtras(props) {
|
|
|
2163
2176
|
style: {
|
|
2164
2177
|
flex: 1
|
|
2165
2178
|
},
|
|
2166
|
-
"class": "text-black cursor-pointer "
|
|
2179
|
+
"class": "text-black cursor-pointer ",
|
|
2180
|
+
onClick: function onClick() {
|
|
2181
|
+
var _item$productinfo5;
|
|
2182
|
+
var quantity = 0;
|
|
2183
|
+
var tempproduct_prod_extras_array = _toConsumableArray__default["default"](product_prod_extras_array);
|
|
2184
|
+
if (parseFloat(tempproduct_prod_extras_array[index].quantity) <= 0) {
|
|
2185
|
+
quantity = 0;
|
|
2186
|
+
} else {
|
|
2187
|
+
quantity = parseFloat(tempproduct_prod_extras_array[index].quantity);
|
|
2188
|
+
}
|
|
2189
|
+
quantity = quantity - 1;
|
|
2190
|
+
tempproduct_prod_extras_array[index].quantity = quantity;
|
|
2191
|
+
addtocartfunc(false, {
|
|
2192
|
+
functype: 'add',
|
|
2193
|
+
item_type: 'Extras',
|
|
2194
|
+
productid: item === null || item === void 0 || (_item$productinfo5 = item.productinfo) === null || _item$productinfo5 === void 0 ? void 0 : _item$productinfo5.productid,
|
|
2195
|
+
main_ref_productid: productid,
|
|
2196
|
+
variantid: '',
|
|
2197
|
+
quantity: quantity,
|
|
2198
|
+
date: '',
|
|
2199
|
+
time: '',
|
|
2200
|
+
from: '',
|
|
2201
|
+
to: '',
|
|
2202
|
+
extrafields: []
|
|
2203
|
+
});
|
|
2204
|
+
}
|
|
2167
2205
|
}, /*#__PURE__*/React__default["default"].createElement("i", {
|
|
2168
2206
|
className: 'h-100 allcentered'
|
|
2169
2207
|
}, /*#__PURE__*/React__default["default"].createElement(FiMinus.FiMinus, {
|
|
@@ -2174,11 +2212,34 @@ var ProductExtras = function ProductExtras(props) {
|
|
|
2174
2212
|
flex: 1,
|
|
2175
2213
|
fontSize: 18
|
|
2176
2214
|
}
|
|
2177
|
-
},
|
|
2215
|
+
}, item === null || item === void 0 ? void 0 : item.quantity), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
2178
2216
|
style: {
|
|
2179
2217
|
flex: 1
|
|
2180
2218
|
},
|
|
2181
|
-
"class": "text-black cursor-pointer "
|
|
2219
|
+
"class": "text-black cursor-pointer ",
|
|
2220
|
+
onClick: function onClick() {
|
|
2221
|
+
var _item$productinfo6;
|
|
2222
|
+
var quantity = 0;
|
|
2223
|
+
var tempproduct_prod_extras_array = _toConsumableArray__default["default"](product_prod_extras_array);
|
|
2224
|
+
if (tempproduct_prod_extras_array[index].quantity != undefined && tempproduct_prod_extras_array[index].quantity != null && tempproduct_prod_extras_array[index].quantity != 0) {
|
|
2225
|
+
quantity = parseFloat(tempproduct_prod_extras_array[index].quantity);
|
|
2226
|
+
}
|
|
2227
|
+
quantity = quantity + 1;
|
|
2228
|
+
tempproduct_prod_extras_array[index].quantity = quantity;
|
|
2229
|
+
addtocartfunc(false, {
|
|
2230
|
+
functype: 'add',
|
|
2231
|
+
item_type: 'Extras',
|
|
2232
|
+
productid: item === null || item === void 0 || (_item$productinfo6 = item.productinfo) === null || _item$productinfo6 === void 0 ? void 0 : _item$productinfo6.productid,
|
|
2233
|
+
main_ref_productid: productid,
|
|
2234
|
+
variantid: '',
|
|
2235
|
+
quantity: quantity,
|
|
2236
|
+
date: '',
|
|
2237
|
+
time: '',
|
|
2238
|
+
from: '',
|
|
2239
|
+
to: '',
|
|
2240
|
+
extrafields: []
|
|
2241
|
+
});
|
|
2242
|
+
}
|
|
2182
2243
|
}, /*#__PURE__*/React__default["default"].createElement("i", {
|
|
2183
2244
|
className: 'h-100 allcentered'
|
|
2184
2245
|
}, /*#__PURE__*/React__default["default"].createElement(FiPlus.FiPlus, {
|
|
@@ -4183,6 +4244,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
4183
4244
|
})))), /*#__PURE__*/React__default["default"].createElement(Variantoptions, {
|
|
4184
4245
|
actions: props.actions
|
|
4185
4246
|
}), /*#__PURE__*/React__default["default"].createElement(ProductExtras, {
|
|
4247
|
+
addtocartfunc: addtocartfunc,
|
|
4186
4248
|
actions: props.actions
|
|
4187
4249
|
}), sectionproperties.showextrafield == 'Show' && /*#__PURE__*/React__default["default"].createElement(ProductExtraFields, {
|
|
4188
4250
|
actions: props.actions
|
|
@@ -8442,6 +8504,7 @@ var Service_itemtype = function Service_itemtype(props) {
|
|
|
8442
8504
|
}, langdetect == 'en' ? sectionproperties.sizeguidecontentenglish : sectionproperties.sizeguidecontentarabic))), /*#__PURE__*/React__default["default"].createElement(Variantoptions, {
|
|
8443
8505
|
actions: props.actions
|
|
8444
8506
|
}), /*#__PURE__*/React__default["default"].createElement(ProductExtras, {
|
|
8507
|
+
addtocartfunc: addtocartfunc,
|
|
8445
8508
|
actions: props.actions
|
|
8446
8509
|
}), /*#__PURE__*/React__default["default"].createElement(Serviceinfotabs, {
|
|
8447
8510
|
actions: {
|
|
@@ -8490,6 +8553,7 @@ var Service_itemtype = function Service_itemtype(props) {
|
|
|
8490
8553
|
actions: props.actions,
|
|
8491
8554
|
srcprops: 'reservation'
|
|
8492
8555
|
}), /*#__PURE__*/React__default["default"].createElement(ProductExtras, {
|
|
8556
|
+
addtocartfunc: addtocartfunc,
|
|
8493
8557
|
actions: props.actions
|
|
8494
8558
|
}), /*#__PURE__*/React__default["default"].createElement(Serviceinfotabs, {
|
|
8495
8559
|
actions: {
|
|
@@ -8674,7 +8738,8 @@ var Service_itemtype = function Service_itemtype(props) {
|
|
|
8674
8738
|
"class": "col-12 p-0"
|
|
8675
8739
|
}, /*#__PURE__*/React__default["default"].createElement("hr", null)), /*#__PURE__*/React__default["default"].createElement(ProductExtras, {
|
|
8676
8740
|
actions: props.actions,
|
|
8677
|
-
srcfromprops: 'servicestyle2'
|
|
8741
|
+
srcfromprops: 'servicestyle2',
|
|
8742
|
+
addtocartfunc: addtocartfunc
|
|
8678
8743
|
}), /*#__PURE__*/React__default["default"].createElement(Serviceinfotabs, {
|
|
8679
8744
|
actions: {
|
|
8680
8745
|
fetchProductInfoQueryContext: fetchProductInfoQueryContext,
|
|
@@ -8918,7 +8983,7 @@ var Article_itemtype = function Article_itemtype(props) {
|
|
|
8918
8983
|
function ownKeys$2z(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; }
|
|
8919
8984
|
function _objectSpread$2z(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2z(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2z(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
8920
8985
|
var Productinfo = function Productinfo(props) {
|
|
8921
|
-
var _css,
|
|
8986
|
+
var _css, _fetchProductInfoQuer86, _ref, _fetchProductInfoQuer87, _ref2, _fetchProductInfoQuer88, _ref3, _fetchProductInfoQuer89, _fetchProductInfoQuer90, _fetchProductInfoQuer91, _returnpolicyobj5, _returnpolicyobj6, _returnpolicyobj7, _returnpolicyobj8, _fetchProductInfoQuer92, _fetchProductInfoQuer93, _returnpolicyobj9, _returnpolicyobj0, _returnpolicyobj1, _returnpolicyobj10, _fetchProductInfoQuer94, _fetchProductInfoQuer95, _returnpolicyobj11, _returnpolicyobj12, _returnpolicyobj13, _returnpolicyobj14;
|
|
8922
8987
|
var _useState = React.useState({}),
|
|
8923
8988
|
_useState2 = _slicedToArray__default["default"](_useState, 2),
|
|
8924
8989
|
ProductInfoObj = _useState2[0],
|
|
@@ -9538,13 +9603,20 @@ var Productinfo = function Productinfo(props) {
|
|
|
9538
9603
|
setProductInfoObj(_objectSpread$2z({}, productarr));
|
|
9539
9604
|
};
|
|
9540
9605
|
var addtocartfunc = function addtocartfunc(forcetocheckout) {
|
|
9606
|
+
var addtocartobj_param = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
|
|
9607
|
+
var addtocartobj_to_be_used = null;
|
|
9608
|
+
if (addtocartobj_param != null) {
|
|
9609
|
+
addtocartobj_to_be_used = addtocartobj_param;
|
|
9610
|
+
} else {
|
|
9611
|
+
addtocartobj_to_be_used = addtocardpayloadobj;
|
|
9612
|
+
}
|
|
9541
9613
|
var runfunc = false;
|
|
9542
9614
|
var forcetocheckoutvalue = forcetocheckout;
|
|
9543
9615
|
// alert(addtocardpayloadobj.quantity + 'sad');
|
|
9544
|
-
if (
|
|
9616
|
+
if (addtocartobj_to_be_used.productid.length != 0 && addtocartobj_to_be_used.quantity > 0) {
|
|
9545
9617
|
var _fetchProductInfoQuer32;
|
|
9546
9618
|
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.hasvariants) == 1) {
|
|
9547
|
-
if (
|
|
9619
|
+
if (addtocartobj_to_be_used.variantid.length != 0) {
|
|
9548
9620
|
runfunc = true;
|
|
9549
9621
|
} else {
|
|
9550
9622
|
var _authdetailsContext$i2;
|
|
@@ -9560,7 +9632,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
9560
9632
|
}
|
|
9561
9633
|
if (runfunc == true) {
|
|
9562
9634
|
var _fetchProductInfoQuer33, _fetchProductInfoQuer34;
|
|
9563
|
-
var tempaddtocardpayloadobj = _objectSpread$2z({},
|
|
9635
|
+
var tempaddtocardpayloadobj = _objectSpread$2z({}, addtocartobj_to_be_used);
|
|
9564
9636
|
tempaddtocardpayloadobj.isproductforcedtocheckout = 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.isproductforcedtocheckout;
|
|
9565
9637
|
tempaddtocardpayloadobj.vendorid = 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.vendorproviderid;
|
|
9566
9638
|
if (forcetocheckoutvalue != undefined) {
|
|
@@ -9582,19 +9654,19 @@ var Productinfo = function Productinfo(props) {
|
|
|
9582
9654
|
content_type: 'product',
|
|
9583
9655
|
currency: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer40 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer40 === void 0 || (_fetchProductInfoQuer40 = _fetchProductInfoQuer40.data) === null || _fetchProductInfoQuer40 === void 0 ? void 0 : _fetchProductInfoQuer40.currencyname_en,
|
|
9584
9656
|
value: finalprice,
|
|
9585
|
-
quantity:
|
|
9657
|
+
quantity: addtocartobj_to_be_used.quantity
|
|
9586
9658
|
});
|
|
9587
9659
|
AddtoCartContext(tempaddtocardpayloadobj);
|
|
9588
9660
|
}
|
|
9589
9661
|
}
|
|
9590
9662
|
};
|
|
9591
9663
|
var validateextrafields = function validateextrafields() {
|
|
9592
|
-
var
|
|
9664
|
+
var _fetchProductInfoQuer50;
|
|
9593
9665
|
var tempaddtocardpayloadobj = _objectSpread$2z({}, addtocardpayloadobj);
|
|
9594
9666
|
var status = false;
|
|
9595
9667
|
var reason = '';
|
|
9596
9668
|
var missingitemsfound = [];
|
|
9597
|
-
var extrafields = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
9669
|
+
var extrafields = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer50 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer50 === void 0 || (_fetchProductInfoQuer50 = _fetchProductInfoQuer50.data) === null || _fetchProductInfoQuer50 === void 0 || (_fetchProductInfoQuer50 = _fetchProductInfoQuer50.productinfo) === null || _fetchProductInfoQuer50 === void 0 ? void 0 : _fetchProductInfoQuer50.productextrafields;
|
|
9598
9670
|
if ((extrafields === null || extrafields === void 0 ? void 0 : extrafields.length) == 0) {
|
|
9599
9671
|
status = true;
|
|
9600
9672
|
} else {
|
|
@@ -9634,9 +9706,9 @@ var Productinfo = function Productinfo(props) {
|
|
|
9634
9706
|
};
|
|
9635
9707
|
};
|
|
9636
9708
|
var returnpolicyobj = function returnpolicyobj(policytype) {
|
|
9637
|
-
var _authdetailsContext$
|
|
9709
|
+
var _authdetailsContext$i4;
|
|
9638
9710
|
var policyobj = {};
|
|
9639
|
-
authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
9711
|
+
authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i4 = authdetailsContext.instinfo) === null || _authdetailsContext$i4 === void 0 || (_authdetailsContext$i4 = _authdetailsContext$i4.instpolicies) === null || _authdetailsContext$i4 === void 0 || _authdetailsContext$i4.forEach(function (item, index) {
|
|
9640
9712
|
if (item.policytype == policytype) {
|
|
9641
9713
|
policyobj = item;
|
|
9642
9714
|
}
|
|
@@ -9645,7 +9717,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
9645
9717
|
};
|
|
9646
9718
|
var relatedproducts = function relatedproducts() {
|
|
9647
9719
|
if (Relatedproducts.length != 0) {
|
|
9648
|
-
var _authdetailsContext$
|
|
9720
|
+
var _authdetailsContext$i5;
|
|
9649
9721
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
9650
9722
|
className: "w-100 row ml-0 mr-0 d-flex justify-content-start pl-md-3 pr-md-3 pl-sm-2 pr-sm-2",
|
|
9651
9723
|
style: {
|
|
@@ -9687,12 +9759,12 @@ var Productinfo = function Productinfo(props) {
|
|
|
9687
9759
|
}, /*#__PURE__*/React__default["default"].createElement(reactHorizontalScrollingMenu.ScrollMenu, {
|
|
9688
9760
|
transitionBehavior: 'auto',
|
|
9689
9761
|
wrapperClassName: '',
|
|
9690
|
-
itemClassName: (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
9762
|
+
itemClassName: (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i5 = authdetailsContext.instinfo) === null || _authdetailsContext$i5 === void 0 ? void 0 : _authdetailsContext$i5.contactinfo.instid) == '67dc756de56bd' ? 'scrollmenuclassnameitemrelatedproductkingtut' : 'scrollmenuclassnameitemrelatedproduct',
|
|
9691
9763
|
scrollContainerClassName: 'scrollmenuclasssubscrollbarrelatedproducts'
|
|
9692
9764
|
}, Relatedproducts.map(function (item, index) {
|
|
9693
9765
|
if (item.productinfo != null) {
|
|
9694
|
-
var
|
|
9695
|
-
if (item.productid != (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
9766
|
+
var _fetchProductInfoQuer51;
|
|
9767
|
+
if (item.productid != (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer51 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer51 === void 0 || (_fetchProductInfoQuer51 = _fetchProductInfoQuer51.data) === null || _fetchProductInfoQuer51 === void 0 || (_fetchProductInfoQuer51 = _fetchProductInfoQuer51.productinfo) === null || _fetchProductInfoQuer51 === void 0 ? void 0 : _fetchProductInfoQuer51.productid)) {
|
|
9696
9768
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
9697
9769
|
className: "col-lg-12 mb-3 px-1",
|
|
9698
9770
|
onClick: function onClick() {
|
|
@@ -10267,37 +10339,37 @@ var Productinfo = function Productinfo(props) {
|
|
|
10267
10339
|
}
|
|
10268
10340
|
}));
|
|
10269
10341
|
var getprice_discountpriceprops = function getprice_discountpriceprops(type, withtotal, variantindexcompleted) {
|
|
10270
|
-
var
|
|
10342
|
+
var _fetchProductInfoQuer52, _fetchProductInfoQuer53, _fetchProductInfoQuer54, _fetchProductInfoQuer55;
|
|
10271
10343
|
var price = 0;
|
|
10272
10344
|
var quantity = 0;
|
|
10273
10345
|
if (addtocardpayloadobj.quantity != undefined && addtocardpayloadobj.quantity != null) {
|
|
10274
10346
|
quantity = parseFloat(addtocardpayloadobj.quantity);
|
|
10275
10347
|
}
|
|
10276
|
-
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
10277
|
-
var
|
|
10278
|
-
fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
10348
|
+
if ((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.productquantityoptions) != undefined && (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.productquantityoptions) != null && Array.isArray(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.productquantityoptions) && (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 || (_fetchProductInfoQuer55 = _fetchProductInfoQuer55.productquantityoptions) === null || _fetchProductInfoQuer55 === void 0 ? void 0 : _fetchProductInfoQuer55.length) != 0) {
|
|
10349
|
+
var _fetchProductInfoQuer56;
|
|
10350
|
+
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.productquantityoptions;
|
|
10279
10351
|
}
|
|
10280
10352
|
if (type == 'defaultprice') {
|
|
10281
|
-
var
|
|
10282
|
-
price = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
10283
|
-
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
10353
|
+
var _fetchProductInfoQuer57, _fetchProductInfoQuer58;
|
|
10354
|
+
price = 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.defaultprice;
|
|
10355
|
+
if ((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.hasvariants) == 1) {
|
|
10284
10356
|
if (variantindexcompleted != undefined) {
|
|
10285
|
-
var
|
|
10286
|
-
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
10287
|
-
var
|
|
10288
|
-
price = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
10357
|
+
var _fetchProductInfoQuer59;
|
|
10358
|
+
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer59 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer59 === void 0 || (_fetchProductInfoQuer59 = _fetchProductInfoQuer59.data) === null || _fetchProductInfoQuer59 === void 0 || (_fetchProductInfoQuer59 = _fetchProductInfoQuer59.productinfo) === null || _fetchProductInfoQuer59 === void 0 || (_fetchProductInfoQuer59 = _fetchProductInfoQuer59.variants[variantindexcompleted]) === null || _fetchProductInfoQuer59 === void 0 ? void 0 : _fetchProductInfoQuer59.variantprice) != undefined) {
|
|
10359
|
+
var _fetchProductInfoQuer60;
|
|
10360
|
+
price = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer60 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer60 === void 0 || (_fetchProductInfoQuer60 = _fetchProductInfoQuer60.data) === null || _fetchProductInfoQuer60 === void 0 || (_fetchProductInfoQuer60 = _fetchProductInfoQuer60.productinfo) === null || _fetchProductInfoQuer60 === void 0 || (_fetchProductInfoQuer60 = _fetchProductInfoQuer60.variants[variantindexcompleted]) === null || _fetchProductInfoQuer60 === void 0 ? void 0 : _fetchProductInfoQuer60.variantprice;
|
|
10289
10361
|
}
|
|
10290
10362
|
}
|
|
10291
10363
|
}
|
|
10292
10364
|
} else if (type == 'defaultsaleprice') {
|
|
10293
|
-
var
|
|
10294
|
-
price = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
10295
|
-
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
10365
|
+
var _fetchProductInfoQuer61, _fetchProductInfoQuer62;
|
|
10366
|
+
price = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer61 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer61 === void 0 || (_fetchProductInfoQuer61 = _fetchProductInfoQuer61.data) === null || _fetchProductInfoQuer61 === void 0 || (_fetchProductInfoQuer61 = _fetchProductInfoQuer61.productinfo) === null || _fetchProductInfoQuer61 === void 0 ? void 0 : _fetchProductInfoQuer61.defaultsaleprice;
|
|
10367
|
+
if ((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.hasvariants) == 1) {
|
|
10296
10368
|
if (variantindexcompleted != undefined) {
|
|
10297
|
-
var
|
|
10298
|
-
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
10299
|
-
var
|
|
10300
|
-
price = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
10369
|
+
var _fetchProductInfoQuer63;
|
|
10370
|
+
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 || (_fetchProductInfoQuer63 = _fetchProductInfoQuer63.variants[variantindexcompleted]) === null || _fetchProductInfoQuer63 === void 0 ? void 0 : _fetchProductInfoQuer63.variantsaleprice) != undefined) {
|
|
10371
|
+
var _fetchProductInfoQuer64;
|
|
10372
|
+
price = 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 || (_fetchProductInfoQuer64 = _fetchProductInfoQuer64.variants[variantindexcompleted]) === null || _fetchProductInfoQuer64 === void 0 ? void 0 : _fetchProductInfoQuer64.variantsaleprice;
|
|
10301
10373
|
}
|
|
10302
10374
|
}
|
|
10303
10375
|
}
|
|
@@ -10334,37 +10406,37 @@ var Productinfo = function Productinfo(props) {
|
|
|
10334
10406
|
}
|
|
10335
10407
|
};
|
|
10336
10408
|
var getprice_discountpricepropsnormalonly = function getprice_discountpricepropsnormalonly(type, withtotal, variantindexcompleted) {
|
|
10337
|
-
var
|
|
10409
|
+
var _fetchProductInfoQuer65, _fetchProductInfoQuer66, _fetchProductInfoQuer67, _fetchProductInfoQuer68;
|
|
10338
10410
|
var price = 0;
|
|
10339
10411
|
var quantity = 0;
|
|
10340
10412
|
if (addtocardpayloadobj.quantity != undefined && addtocardpayloadobj.quantity != null) {
|
|
10341
10413
|
quantity = parseFloat(addtocardpayloadobj.quantity);
|
|
10342
10414
|
}
|
|
10343
|
-
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
10344
|
-
var
|
|
10345
|
-
fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
10415
|
+
if ((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) != undefined && (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 ? void 0 : _fetchProductInfoQuer66.productquantityoptions) != null && Array.isArray(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) && (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 || (_fetchProductInfoQuer68 = _fetchProductInfoQuer68.productquantityoptions) === null || _fetchProductInfoQuer68 === void 0 ? void 0 : _fetchProductInfoQuer68.length) != 0) {
|
|
10416
|
+
var _fetchProductInfoQuer69;
|
|
10417
|
+
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.productquantityoptions;
|
|
10346
10418
|
}
|
|
10347
10419
|
if (type == 'defaultprice') {
|
|
10348
|
-
var
|
|
10349
|
-
price = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
10350
|
-
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
10420
|
+
var _fetchProductInfoQuer70, _fetchProductInfoQuer71;
|
|
10421
|
+
price = 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 ? void 0 : _fetchProductInfoQuer70.defaultprice;
|
|
10422
|
+
if ((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 ? void 0 : _fetchProductInfoQuer71.hasvariants) == 1) {
|
|
10351
10423
|
if (variantindexcompleted != undefined) {
|
|
10352
|
-
var
|
|
10353
|
-
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
10354
|
-
var
|
|
10355
|
-
price = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
10424
|
+
var _fetchProductInfoQuer72;
|
|
10425
|
+
if ((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 || (_fetchProductInfoQuer72 = _fetchProductInfoQuer72.variants[variantindexcompleted]) === null || _fetchProductInfoQuer72 === void 0 ? void 0 : _fetchProductInfoQuer72.variantprice) != undefined) {
|
|
10426
|
+
var _fetchProductInfoQuer73;
|
|
10427
|
+
price = 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 || (_fetchProductInfoQuer73 = _fetchProductInfoQuer73.variants[variantindexcompleted]) === null || _fetchProductInfoQuer73 === void 0 ? void 0 : _fetchProductInfoQuer73.variantprice;
|
|
10356
10428
|
}
|
|
10357
10429
|
}
|
|
10358
10430
|
}
|
|
10359
10431
|
} else if (type == 'defaultsaleprice') {
|
|
10360
|
-
var
|
|
10361
|
-
price = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
10362
|
-
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
10432
|
+
var _fetchProductInfoQuer74, _fetchProductInfoQuer75;
|
|
10433
|
+
price = 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 ? void 0 : _fetchProductInfoQuer74.defaultsaleprice;
|
|
10434
|
+
if ((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 ? void 0 : _fetchProductInfoQuer75.hasvariants) == 1) {
|
|
10363
10435
|
if (variantindexcompleted != undefined) {
|
|
10364
|
-
var
|
|
10365
|
-
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
10366
|
-
var
|
|
10367
|
-
price = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
10436
|
+
var _fetchProductInfoQuer76;
|
|
10437
|
+
if ((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.variants[variantindexcompleted]) === null || _fetchProductInfoQuer76 === void 0 ? void 0 : _fetchProductInfoQuer76.variantsaleprice) != undefined) {
|
|
10438
|
+
var _fetchProductInfoQuer77;
|
|
10439
|
+
price = 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.variants[variantindexcompleted]) === null || _fetchProductInfoQuer77 === void 0 ? void 0 : _fetchProductInfoQuer77.variantsaleprice;
|
|
10368
10440
|
}
|
|
10369
10441
|
}
|
|
10370
10442
|
}
|
|
@@ -10395,7 +10467,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
10395
10467
|
}
|
|
10396
10468
|
};
|
|
10397
10469
|
var getQuantityCondition = function getQuantityCondition() {
|
|
10398
|
-
var
|
|
10470
|
+
var _fetchProductInfoQuer78;
|
|
10399
10471
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
10400
10472
|
"class": "col-lg-12 p-0",
|
|
10401
10473
|
style: {
|
|
@@ -10425,12 +10497,12 @@ var Productinfo = function Productinfo(props) {
|
|
|
10425
10497
|
height: 1,
|
|
10426
10498
|
background: sectionproperties.pricelisttitlecolor
|
|
10427
10499
|
}
|
|
10428
|
-
})), fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
10429
|
-
var
|
|
10500
|
+
})), 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.map(function (item, index) {
|
|
10501
|
+
var _fetchProductInfoQuer79;
|
|
10430
10502
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
10431
10503
|
className: "col-lg-12 p-0 w-100 d-flex align-items-center",
|
|
10432
10504
|
style: {
|
|
10433
|
-
marginBottom: (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
10505
|
+
marginBottom: (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer79 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer79 === void 0 || (_fetchProductInfoQuer79 = _fetchProductInfoQuer79.data) === null || _fetchProductInfoQuer79 === void 0 || (_fetchProductInfoQuer79 = _fetchProductInfoQuer79.productinfo) === null || _fetchProductInfoQuer79 === void 0 || (_fetchProductInfoQuer79 = _fetchProductInfoQuer79.productquantityoptions) === null || _fetchProductInfoQuer79 === void 0 ? void 0 : _fetchProductInfoQuer79.length) - 1 != index ? '1rem' : 0
|
|
10434
10506
|
}
|
|
10435
10507
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
10436
10508
|
"class": "d-flex align-items-center",
|
|
@@ -10464,7 +10536,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
10464
10536
|
})));
|
|
10465
10537
|
};
|
|
10466
10538
|
var StoreInfo = function StoreInfo(position) {
|
|
10467
|
-
var
|
|
10539
|
+
var _fetchProductInfoQuer80, _authdetailsContext$i7, _returnpolicyobj, _returnpolicyobj2, _returnpolicyobj3, _returnpolicyobj4, _authdetailsContext$i8, _authdetailsContext$i0;
|
|
10468
10540
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
10469
10541
|
"class": sectionproperties.storeinformationcontainerborderwidth != 0 ? 'row m-0 w-100 p-3' : 'row m-0 w-100',
|
|
10470
10542
|
style: {
|
|
@@ -10515,7 +10587,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
10515
10587
|
style: {
|
|
10516
10588
|
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
10517
10589
|
}
|
|
10518
|
-
}, langdetect == 'en' ? sectionproperties.otherinfodesc2en : sectionproperties.otherinfodesc2ar))), sectionproperties.showpricinglist == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
10590
|
+
}, langdetect == 'en' ? sectionproperties.otherinfodesc2en : sectionproperties.otherinfodesc2ar))), sectionproperties.showpricinglist == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer80 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer80 === void 0 || (_fetchProductInfoQuer80 = _fetchProductInfoQuer80.data) === null || _fetchProductInfoQuer80 === void 0 || (_fetchProductInfoQuer80 = _fetchProductInfoQuer80.productinfo) === null || _fetchProductInfoQuer80 === void 0 || (_fetchProductInfoQuer80 = _fetchProductInfoQuer80.productquantityoptions) === null || _fetchProductInfoQuer80 === void 0 ? void 0 : _fetchProductInfoQuer80.length) != 0 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
10519
10591
|
"class": "col-lg-12 p-0 mb-4"
|
|
10520
10592
|
}, getQuantityCondition()), sectionproperties.showfooterphonenumber == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
10521
10593
|
className: "".concat(productinfo_cssstyles.storeinfobtn, " ").concat(productinfo_cssstyles.storeinfocontainer) + ' mt-4 col-lg-12 p-0 d-flex align-items-center cursor-pointer ',
|
|
@@ -10543,8 +10615,8 @@ var Productinfo = function Productinfo(props) {
|
|
|
10543
10615
|
}, authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.CuContactphonenumber))), sectionproperties.showfooteremail == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
10544
10616
|
className: "".concat(productinfo_cssstyles.storeinfobtn, " ").concat(productinfo_cssstyles.storeinfocontainer) + ' mb-t col-lg-12 p-0 d-flex align-items-center cursor-pointer ',
|
|
10545
10617
|
onClick: function onClick() {
|
|
10546
|
-
var _authdetailsContext$
|
|
10547
|
-
window.open('mailto:' + (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
10618
|
+
var _authdetailsContext$i6;
|
|
10619
|
+
window.open('mailto:' + (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i6 = authdetailsContext.instinfo) === null || _authdetailsContext$i6 === void 0 || (_authdetailsContext$i6 = _authdetailsContext$i6.contactinfo) === null || _authdetailsContext$i6 === void 0 ? void 0 : _authdetailsContext$i6.email), '_self');
|
|
10548
10620
|
}
|
|
10549
10621
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
10550
10622
|
"class": productinfo_cssstyles.iconContainer + ' iconContainer '
|
|
@@ -10564,7 +10636,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
10564
10636
|
style: {
|
|
10565
10637
|
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
10566
10638
|
}
|
|
10567
|
-
}, authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
10639
|
+
}, authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i7 = authdetailsContext.instinfo) === null || _authdetailsContext$i7 === void 0 || (_authdetailsContext$i7 = _authdetailsContext$i7.contactinfo) === null || _authdetailsContext$i7 === void 0 ? void 0 : _authdetailsContext$i7.email))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
10568
10640
|
"class": "col-lg-12 my-2",
|
|
10569
10641
|
style: {
|
|
10570
10642
|
display: sectionproperties.showfirstpolicy_storeinfo == 'Hide' && sectionproperties.showsecondpolicy_storeinfo == 'Hide' ? 'none' : 'block'
|
|
@@ -10616,25 +10688,25 @@ var Productinfo = function Productinfo(props) {
|
|
|
10616
10688
|
}
|
|
10617
10689
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
10618
10690
|
"class": "m-0 p-0"
|
|
10619
|
-
}, langdetect == 'en' ? sectionproperties.phonetitle_en : sectionproperties.phonetitle_ar))), sectionproperties.showfooteremail == 'Show' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
10691
|
+
}, langdetect == 'en' ? sectionproperties.phonetitle_en : sectionproperties.phonetitle_ar))), sectionproperties.showfooteremail == 'Show' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i8 = authdetailsContext.instinfo) === null || _authdetailsContext$i8 === void 0 || (_authdetailsContext$i8 = _authdetailsContext$i8.contactinfo) === null || _authdetailsContext$i8 === void 0 ? void 0 : _authdetailsContext$i8.email) != null && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
10620
10692
|
"class": position == 'belowinfo' ? 'col-lg-12 allcentered mb-2 p-0' : 'col-lg-12 allcentered mb-2 p-sm-0'
|
|
10621
10693
|
}, /*#__PURE__*/React__default["default"].createElement("button", {
|
|
10622
10694
|
"class": productinfo_cssstyles.storeinfobtn + ' allcentered ',
|
|
10623
10695
|
onClick: function onClick() {
|
|
10624
|
-
var _authdetailsContext$
|
|
10625
|
-
window.open('mailto:' + (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
10696
|
+
var _authdetailsContext$i9;
|
|
10697
|
+
window.open('mailto:' + (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i9 = authdetailsContext.instinfo) === null || _authdetailsContext$i9 === void 0 || (_authdetailsContext$i9 = _authdetailsContext$i9.contactinfo) === null || _authdetailsContext$i9 === void 0 ? void 0 : _authdetailsContext$i9.email), '_self');
|
|
10626
10698
|
}
|
|
10627
10699
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
10628
10700
|
"class": "m-0 p-0"
|
|
10629
|
-
}, langdetect == 'en' ? sectionproperties.emailtitle_en : sectionproperties.emailtitle_ar))), sectionproperties.showwhatsapp == 'Show' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
10701
|
+
}, langdetect == 'en' ? sectionproperties.emailtitle_en : sectionproperties.emailtitle_ar))), sectionproperties.showwhatsapp == 'Show' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i0 = authdetailsContext.instinfo) === null || _authdetailsContext$i0 === void 0 ? void 0 : _authdetailsContext$i0.whatsappnumber) != null && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
10630
10702
|
"class": position == 'belowinfo' ? 'col-lg-12 allcentered mb-2 p-0' : 'col-lg-12 allcentered mb-2 p-sm-0'
|
|
10631
10703
|
}, /*#__PURE__*/React__default["default"].createElement("button", {
|
|
10632
10704
|
"class": productinfo_cssstyles.storeinfobtn + ' allcentered ',
|
|
10633
10705
|
onClick: function onClick() {
|
|
10634
|
-
var _authdetailsContext$
|
|
10635
|
-
if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
10636
|
-
var _authdetailsContext$
|
|
10637
|
-
window.open('https://api.whatsapp.com/send?phone=' + (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
10706
|
+
var _authdetailsContext$i1;
|
|
10707
|
+
if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i1 = authdetailsContext.instinfo) === null || _authdetailsContext$i1 === void 0 ? void 0 : _authdetailsContext$i1.whatsappnumber) != null) {
|
|
10708
|
+
var _authdetailsContext$i10;
|
|
10709
|
+
window.open('https://api.whatsapp.com/send?phone=' + (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i10 = authdetailsContext.instinfo) === null || _authdetailsContext$i10 === void 0 ? void 0 : _authdetailsContext$i10.whatsappnumber), '_blank');
|
|
10638
10710
|
}
|
|
10639
10711
|
}
|
|
10640
10712
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
@@ -10708,7 +10780,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
10708
10780
|
paddingLeft: props.srcfromprops == 'Productinfomodel' ? langdetect == 'en' ? sectionproperties.card_marginLeft + 'px' : sectionproperties.card_marginRight + 'px' : 0,
|
|
10709
10781
|
paddingRight: props.srcfromprops == 'Productinfomodel' ? langdetect == 'en' ? sectionproperties.card_marginRight + 'px' : sectionproperties.card_marginLeft + 'px' : 0
|
|
10710
10782
|
}
|
|
10711
|
-
}, (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
10783
|
+
}, (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) == 'product' && /*#__PURE__*/React__default["default"].createElement(Product_itemtype, {
|
|
10712
10784
|
actions: (_ref = {
|
|
10713
10785
|
variantnotchosendisclaimer: variantnotchosendisclaimer,
|
|
10714
10786
|
setisoutofstock: setisoutofstock,
|
|
@@ -10718,7 +10790,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
10718
10790
|
lang: lang,
|
|
10719
10791
|
srcfromprops: props.srcfromprops
|
|
10720
10792
|
}, _defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_ref, "returnpolicyobj", returnpolicyobj), "productinfo_cssstyles", productinfo_cssstyles), "addtocartfunc", addtocartfunc), "selectproductoptionvalue", selectproductoptionvalue), "clearchoosenvaluesbutkeepcurrentvalue", clearchoosenvaluesbutkeepcurrentvalue), "productimagesarray", productimagesarray), "fetchProductInfoQueryContext", fetchProductInfoQueryContext), "ProductInfoObj", ProductInfoObj), "sectionproperties", sectionproperties), "addtocardpayloadobj", addtocardpayloadobj), _defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_ref, "setaddtocardpayloadobj", setaddtocardpayloadobj), "routingcountext", routingcountext), "AddtoCartMutationContext", AddtoCartMutationContext), "authdetailsContext", authdetailsContext), "addtofavoritescontext", addtofavoritescontext), "variantindexcompleted", variantindexcompleted), "StaticPagesLinksContext", StaticPagesLinksContext), "NotificationManager", NotificationManager), "GeneralAPIMutationContext", GeneralAPIMutationContext), "quantityconditionfoundobjprops", quantityconditionfoundobj), _defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_ref, "relatedproducts", relatedproducts), "getprice_discountpriceprops", getprice_discountpriceprops), "getprice_discountpricepropsnormalonly", getprice_discountpricepropsnormalonly), "StoreInfoprops", StoreInfo), "currentshowingimageindex", currentshowingimageindex), "setcurrentshowingimageindex", setcurrentshowingimageindex), "templatepropcontext", templatepropcontext), "ikimagecredcontext", ikimagecredcontext), "variantindex", variantindex), "setvariantindex", setvariantindex), _defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_ref, "variantsku", variantsku), "variantvalueidentifier", variantvalueidentifier), "sizeguideimage", sizeguideimage), "setopensizeguidemodal", setopensizeguidemodal))
|
|
10721
|
-
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
10793
|
+
}), (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) == 'Article' && /*#__PURE__*/React__default["default"].createElement(Article_itemtype, {
|
|
10722
10794
|
actions: (_ref2 = {
|
|
10723
10795
|
variantnotchosendisclaimer: variantnotchosendisclaimer,
|
|
10724
10796
|
setisoutofstock: setisoutofstock,
|
|
@@ -10728,7 +10800,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
10728
10800
|
lang: lang,
|
|
10729
10801
|
srcfromprops: props.srcfromprops
|
|
10730
10802
|
}, _defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_ref2, "returnpolicyobj", returnpolicyobj), "productinfo_cssstyles", productinfo_cssstyles), "addtocartfunc", addtocartfunc), "selectproductoptionvalue", selectproductoptionvalue), "clearchoosenvaluesbutkeepcurrentvalue", clearchoosenvaluesbutkeepcurrentvalue), "productimagesarray", productimagesarray), "fetchProductInfoQueryContext", fetchProductInfoQueryContext), "ProductInfoObj", ProductInfoObj), "sectionproperties", sectionproperties), "addtocardpayloadobj", addtocardpayloadobj), _defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_ref2, "setaddtocardpayloadobj", setaddtocardpayloadobj), "routingcountext", routingcountext), "AddtoCartMutationContext", AddtoCartMutationContext), "authdetailsContext", authdetailsContext), "addtofavoritescontext", addtofavoritescontext), "variantindexcompleted", variantindexcompleted), "StaticPagesLinksContext", StaticPagesLinksContext), "NotificationManager", NotificationManager), "GeneralAPIMutationContext", GeneralAPIMutationContext), "quantityconditionfoundobjprops", quantityconditionfoundobj), _defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_ref2, "relatedproducts", relatedproducts), "getprice_discountpriceprops", getprice_discountpriceprops), "StoreInfoprops", StoreInfo), "currentshowingimageindex", currentshowingimageindex), "setcurrentshowingimageindex", setcurrentshowingimageindex), "templatepropcontext", templatepropcontext), "ikimagecredcontext", ikimagecredcontext), "variantindex", variantindex), "setvariantindex", setvariantindex), "variantsku", variantsku), _defineProperty__default["default"](_ref2, "variantvalueidentifier", variantvalueidentifier))
|
|
10731
|
-
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
10803
|
+
}), (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 ? void 0 : _fetchProductInfoQuer88.item_type) == 'service' && /*#__PURE__*/React__default["default"].createElement(Service_itemtype, {
|
|
10732
10804
|
actions: (_ref3 = {
|
|
10733
10805
|
variantnotchosendisclaimer: variantnotchosendisclaimer,
|
|
10734
10806
|
variantsku: variantsku,
|
|
@@ -10744,7 +10816,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
10744
10816
|
style: {
|
|
10745
10817
|
paddingLeft: props.srcfromprops == 'Productinfomodel' ? langdetect == 'en' ? sectionproperties.card_marginLeft + 'px' : sectionproperties.card_marginRight + 'px' : 0,
|
|
10746
10818
|
paddingRight: props.srcfromprops == 'Productinfomodel' ? langdetect == 'en' ? sectionproperties.card_marginRight + 'px' : sectionproperties.card_marginLeft + 'px' : 0,
|
|
10747
|
-
display: sectionproperties.showfirstpolicy == 'Hide' && sectionproperties.showsecondpolicy == 'Hide' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
10819
|
+
display: sectionproperties.showfirstpolicy == 'Hide' && sectionproperties.showsecondpolicy == 'Hide' && (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 || (_fetchProductInfoQuer89 = _fetchProductInfoQuer89.product_videos) === null || _fetchProductInfoQuer89 === void 0 ? void 0 : _fetchProductInfoQuer89.length) != 0 ? 'flex' : (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 ? void 0 : _fetchProductInfoQuer90.productcanrate) == 1 ? 'flex' : sectionproperties.showfirstpolicy == 'Hide' && sectionproperties.showsecondpolicy == 'Hide' ? 'none' : sectionproperties.showfirstpolicy == 'Hide' && sectionproperties.showsecondpolicy == 'Hide' && sectionproperties.descriptionposition != 'Bottom' && (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 ? 'none' : 'flex'
|
|
10748
10820
|
}
|
|
10749
10821
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
10750
10822
|
"class": "".concat(productinfo_cssstyles.cardcontainer) + ' ml-0 mr-0 w-100 pl-md-3 pr-md-3 px-1025-1 ',
|
|
@@ -10806,12 +10878,12 @@ var Productinfo = function Productinfo(props) {
|
|
|
10806
10878
|
onClick: function onClick() {
|
|
10807
10879
|
settabname('refundpolicytab');
|
|
10808
10880
|
}
|
|
10809
|
-
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
10881
|
+
}), (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 || (_fetchProductInfoQuer92 = _fetchProductInfoQuer92.product_videos) === null || _fetchProductInfoQuer92 === void 0 ? void 0 : _fetchProductInfoQuer92.length) != 0 && /*#__PURE__*/React__default["default"].createElement(material.Tab, {
|
|
10810
10882
|
label: langdetect == 'en' ? sectionproperties.videostitleen : sectionproperties.videostitlear,
|
|
10811
10883
|
onClick: function onClick() {
|
|
10812
10884
|
settabname('videostab');
|
|
10813
10885
|
}
|
|
10814
|
-
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
10886
|
+
}), (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 ? void 0 : _fetchProductInfoQuer93.productcanrate) == 1 && /*#__PURE__*/React__default["default"].createElement(material.Tab, {
|
|
10815
10887
|
label: langdetect == 'en' ? 'Reviews' : 'التقييمات',
|
|
10816
10888
|
onClick: function onClick() {
|
|
10817
10889
|
settabname('reviewstab');
|
|
@@ -10865,12 +10937,12 @@ var Productinfo = function Productinfo(props) {
|
|
|
10865
10937
|
onClick: function onClick() {
|
|
10866
10938
|
settabname('refundpolicytab');
|
|
10867
10939
|
}
|
|
10868
|
-
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
10940
|
+
}), (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 || (_fetchProductInfoQuer94 = _fetchProductInfoQuer94.product_videos) === null || _fetchProductInfoQuer94 === void 0 ? void 0 : _fetchProductInfoQuer94.length) != 0 && /*#__PURE__*/React__default["default"].createElement(material.Tab, {
|
|
10869
10941
|
label: langdetect == 'en' ? 'Videos' : 'فيديوهات',
|
|
10870
10942
|
onClick: function onClick() {
|
|
10871
10943
|
settabname('videostab');
|
|
10872
10944
|
}
|
|
10873
|
-
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
10945
|
+
}), (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 ? void 0 : _fetchProductInfoQuer95.productcanrate) == 1 && /*#__PURE__*/React__default["default"].createElement(material.Tab, {
|
|
10874
10946
|
label: langdetect == 'en' ? 'Reviews' : 'التقييمات',
|
|
10875
10947
|
onClick: function onClick() {
|
|
10876
10948
|
settabname('reviewstab');
|
|
@@ -11146,13 +11218,10 @@ var Staticpagesrouter = function Staticpagesrouter(props) {
|
|
|
11146
11218
|
}))))));
|
|
11147
11219
|
};
|
|
11148
11220
|
|
|
11149
|
-
var serverbaselink$1 = 'https://tabex-co.com';
|
|
11150
|
-
var image_serverbaselink = 'https://tabexseriesmedia.s3.eu-north-1.amazonaws.com';
|
|
11151
|
-
|
|
11152
11221
|
function ownKeys$2x(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; }
|
|
11153
11222
|
function _objectSpread$2x(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2x(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2x(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
11154
11223
|
var Ordershistory = function Ordershistory(props) {
|
|
11155
|
-
var _props$actions2, _bgimagesarray$, _bgimagesarray$5, _bgimagesarray$6, _bgimagesarray$7, _bgimagesarray$8,
|
|
11224
|
+
var _props$actions2, _bgimagesarray$, _bgimagesarray$5, _bgimagesarray$6, _bgimagesarray$7, _bgimagesarray$8, _fetchorderhistoryQue2, _fetchorderhistoryQue3, _authdetailsContext$i5, _fetchorderhistoryQue4, _fetchorderhistoryQue5, _authdetailsContext$i6;
|
|
11156
11225
|
var lang = props.actions.lang;
|
|
11157
11226
|
var langdetect = props.actions.langdetect;
|
|
11158
11227
|
var routingcountext = props.actions.routingcountext;
|
|
@@ -11416,24 +11485,6 @@ var Ordershistory = function Ordershistory(props) {
|
|
|
11416
11485
|
}
|
|
11417
11486
|
return showbutton;
|
|
11418
11487
|
};
|
|
11419
|
-
var printOrder = function printOrder() {
|
|
11420
|
-
if (orderindex != undefined && orderindex != null) {
|
|
11421
|
-
var _fetchorderhistoryQue2;
|
|
11422
|
-
var orderinfo = fetchorderhistoryQueryContext === null || fetchorderhistoryQueryContext === void 0 || (_fetchorderhistoryQue2 = fetchorderhistoryQueryContext.data) === null || _fetchorderhistoryQue2 === void 0 || (_fetchorderhistoryQue2 = _fetchorderhistoryQue2.data) === null || _fetchorderhistoryQue2 === void 0 ? void 0 : _fetchorderhistoryQue2.ordershistory[orderindex];
|
|
11423
|
-
if (orderinfo != undefined && orderinfo != null && orderinfo != '') {
|
|
11424
|
-
var _orderinfo$orderitems;
|
|
11425
|
-
var orderids = orderinfo === null || orderinfo === void 0 || (_orderinfo$orderitems = orderinfo.orderitems) === null || _orderinfo$orderitems === void 0 ? void 0 : _orderinfo$orderitems.map(function (item) {
|
|
11426
|
-
return item.orderitemid;
|
|
11427
|
-
});
|
|
11428
|
-
var itemsJSON = encodeURIComponent(JSON.stringify(orderids));
|
|
11429
|
-
var url = "https://tabapv.site/printorder/guest/".concat(orderinfo.instid, "/").concat(orderinfo.orderid, "/").concat(orderinfo.customerid, "/").concat(itemsJSON, "?lang=").concat(langdetect);
|
|
11430
|
-
window.open(url, '_blank');
|
|
11431
|
-
// Linking.openURL(url).catch((err) => {
|
|
11432
|
-
// console.error('Failed to open URL:', err);
|
|
11433
|
-
// });
|
|
11434
|
-
}
|
|
11435
|
-
}
|
|
11436
|
-
};
|
|
11437
11488
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
11438
11489
|
className: orderhistory_cssstyles.containerstyles + ' row ml-0 mr-0 w-100 '
|
|
11439
11490
|
}, sectionproperties.showbgimage == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -11835,19 +11886,7 @@ var Ordershistory = function Ordershistory(props) {
|
|
|
11835
11886
|
color: sectionproperties.sectiontitlesecondarycolor,
|
|
11836
11887
|
direction: 'ltr'
|
|
11837
11888
|
}
|
|
11838
|
-
}, fetchorderhistoryQueryContext.data.data.ordershistory[orderindex].timestamp))),
|
|
11839
|
-
"class": "col-12 allcentered mb-3"
|
|
11840
|
-
}, /*#__PURE__*/React__default["default"].createElement("button", {
|
|
11841
|
-
style: {
|
|
11842
|
-
backgroundColor: 'green',
|
|
11843
|
-
borderRadius: 10,
|
|
11844
|
-
width: 100,
|
|
11845
|
-
height: 40
|
|
11846
|
-
},
|
|
11847
|
-
onClick: function onClick() {
|
|
11848
|
-
printOrder();
|
|
11849
|
-
}
|
|
11850
|
-
}, langdetect == 'en' ? 'Print' : 'عرض الفاتورة')), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
11889
|
+
}, fetchorderhistoryQueryContext.data.data.ordershistory[orderindex].timestamp))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
11851
11890
|
className: sectionproperties.shownotes == 'Hide' && sectionproperties.showtotalsection == 'Hide' && sectionproperties.showpayemntsection == 'Hide' && sectionproperties.hidecountrystatecity == 'Hide' && sectionproperties.hideshipping == 'Hide' && sectionproperties.hideaddress == 'Hide' ? 'col-lg-12 p-0' : langdetect == 'en' ? 'col-lg-9 pl-0 p-md-0 mb-md-3' : 'col-lg-9 pr-0 p-md-0 mb-md-3'
|
|
11852
11891
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
11853
11892
|
className: "row m-0 w-100"
|
|
@@ -11889,7 +11928,7 @@ var Ordershistory = function Ordershistory(props) {
|
|
|
11889
11928
|
}))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
11890
11929
|
className: "row m-0 w-100"
|
|
11891
11930
|
}, fetchorderhistoryQueryContext.data.data.ordershistory[orderindex].orderitems.map(function (item, index) {
|
|
11892
|
-
var _authdetailsContext$
|
|
11931
|
+
var _authdetailsContext$i3, _authdetailsContext$i4;
|
|
11893
11932
|
var variantoptions = [];
|
|
11894
11933
|
if (item.isvariant == 1) {
|
|
11895
11934
|
var decodevariantoptions = JSON.parse(item.variantoptions);
|
|
@@ -11976,8 +12015,8 @@ var Ordershistory = function Ordershistory(props) {
|
|
|
11976
12015
|
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
11977
12016
|
},
|
|
11978
12017
|
onClick: function onClick() {
|
|
11979
|
-
var _authdetailsContext$
|
|
11980
|
-
if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
12018
|
+
var _authdetailsContext$i2;
|
|
12019
|
+
if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i2 = authdetailsContext.instinfo) === null || _authdetailsContext$i2 === void 0 ? void 0 : _authdetailsContext$i2.instid) == '68248846ec6bc') ; else {
|
|
11981
12020
|
routingcountext(StaticPagesLinksContext.productinfo, true, item.productid);
|
|
11982
12021
|
}
|
|
11983
12022
|
}
|
|
@@ -12007,7 +12046,7 @@ var Ordershistory = function Ordershistory(props) {
|
|
|
12007
12046
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
12008
12047
|
className: ' m-0 p-0 font-13 fontfamilymedium wordbreak allcentered '
|
|
12009
12048
|
}, variantoptionitem.optionname, ": ", variantoptionitem.optionvalue));
|
|
12010
|
-
}))), item.product_extrafields != null && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
12049
|
+
}))), item.product_extrafields != null && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i3 = authdetailsContext.instinfo) === null || _authdetailsContext$i3 === void 0 ? void 0 : _authdetailsContext$i3.instid) != '68248846ec6bc' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
12011
12050
|
"class": "col-lg-12 p-0 d-flex align-items-center"
|
|
12012
12051
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
12013
12052
|
"class": "row m-0 w-100"
|
|
@@ -12028,7 +12067,7 @@ var Ordershistory = function Ordershistory(props) {
|
|
|
12028
12067
|
fontWeight: sectionproperties.varianttext_fontweight
|
|
12029
12068
|
}
|
|
12030
12069
|
}, extrafielditem.value)));
|
|
12031
|
-
}))), item.product_extrafields != null && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
12070
|
+
}))), item.product_extrafields != null && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i4 = authdetailsContext.instinfo) === null || _authdetailsContext$i4 === void 0 ? void 0 : _authdetailsContext$i4.instid) == '68248846ec6bc' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
12032
12071
|
"class": "col-lg-12 p-0 d-flex align-items-center"
|
|
12033
12072
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
12034
12073
|
"class": "row m-0 w-100"
|
|
@@ -12166,7 +12205,7 @@ var Ordershistory = function Ordershistory(props) {
|
|
|
12166
12205
|
style: {
|
|
12167
12206
|
color: sectionproperties.userinfotextsecondarycolor
|
|
12168
12207
|
}
|
|
12169
|
-
}, fetchorderhistoryQueryContext.data.data.ordershistory[orderindex].address))))), sectionproperties.shownotes == 'Show' && (fetchorderhistoryQueryContext === null || fetchorderhistoryQueryContext === void 0 || (
|
|
12208
|
+
}, fetchorderhistoryQueryContext.data.data.ordershistory[orderindex].address))))), sectionproperties.shownotes == 'Show' && (fetchorderhistoryQueryContext === null || fetchorderhistoryQueryContext === void 0 || (_fetchorderhistoryQue2 = fetchorderhistoryQueryContext.data) === null || _fetchorderhistoryQue2 === void 0 || (_fetchorderhistoryQue2 = _fetchorderhistoryQue2.data) === null || _fetchorderhistoryQue2 === void 0 ? void 0 : _fetchorderhistoryQue2.ordershistory[orderindex].notes) != null && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
12170
12209
|
className: "row m-0 w-100 mb-3",
|
|
12171
12210
|
style: {
|
|
12172
12211
|
background: sectionproperties.userinfo_sectionbgcolor,
|
|
@@ -12198,7 +12237,7 @@ var Ordershistory = function Ordershistory(props) {
|
|
|
12198
12237
|
fontWeight: sectionproperties.userinfo_fontweight,
|
|
12199
12238
|
fontSize: sectionproperties.userinfo_fontsize + 'px'
|
|
12200
12239
|
}
|
|
12201
|
-
}, fetchorderhistoryQueryContext === null || fetchorderhistoryQueryContext === void 0 || (
|
|
12240
|
+
}, fetchorderhistoryQueryContext === null || fetchorderhistoryQueryContext === void 0 || (_fetchorderhistoryQue3 = fetchorderhistoryQueryContext.data) === null || _fetchorderhistoryQue3 === void 0 || (_fetchorderhistoryQue3 = _fetchorderhistoryQue3.data) === null || _fetchorderhistoryQue3 === void 0 || (_fetchorderhistoryQue3 = _fetchorderhistoryQue3.ordershistory[orderindex]) === null || _fetchorderhistoryQue3 === void 0 ? void 0 : _fetchorderhistoryQue3.notes))))), sectionproperties.showtotalsection == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
12202
12241
|
className: "row m-0 w-100 mb-3",
|
|
12203
12242
|
style: {
|
|
12204
12243
|
background: sectionproperties.summary_sectionbgcolor,
|
|
@@ -12224,11 +12263,11 @@ var Ordershistory = function Ordershistory(props) {
|
|
|
12224
12263
|
className: "col-lg-6 col-md-6 col-sm-6 d-flex p-0"
|
|
12225
12264
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
12226
12265
|
className: "".concat(orderhistory_cssstyles.summarysectionstyles) + ' m-0 p-0 d-flex align-items-center '
|
|
12227
|
-
}, (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
12266
|
+
}, (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i5 = authdetailsContext.instinfo) === null || _authdetailsContext$i5 === void 0 ? void 0 : _authdetailsContext$i5.contactinfo.instid) == '6808c6295b598' ? langdetect == 'en' ? 'Sub Total' : 'تكلفة المنتجات' : lang.subtotal)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
12228
12267
|
className: "col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0"
|
|
12229
12268
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
12230
12269
|
className: "".concat(orderhistory_cssstyles.summarysectionstyles) + ' m-0 p-0 text-capitalize '
|
|
12231
|
-
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', fetchorderhistoryQueryContext.data.data.ordershistory[orderindex].orderitemstotalprice, ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar))), (fetchorderhistoryQueryContext === null || fetchorderhistoryQueryContext === void 0 || (
|
|
12270
|
+
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', fetchorderhistoryQueryContext.data.data.ordershistory[orderindex].orderitemstotalprice, ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar))), (fetchorderhistoryQueryContext === null || fetchorderhistoryQueryContext === void 0 || (_fetchorderhistoryQue4 = fetchorderhistoryQueryContext.data) === null || _fetchorderhistoryQue4 === void 0 || (_fetchorderhistoryQue4 = _fetchorderhistoryQue4.data) === null || _fetchorderhistoryQue4 === void 0 || (_fetchorderhistoryQue4 = _fetchorderhistoryQue4.ordershistory[orderindex]) === null || _fetchorderhistoryQue4 === void 0 ? void 0 : _fetchorderhistoryQue4.usewalletpoints) == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
12232
12271
|
className: "row m-0 w-100 mb-2"
|
|
12233
12272
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
12234
12273
|
className: "col-lg-6 col-md-6 col-sm-6 d-flex p-0"
|
|
@@ -12241,7 +12280,7 @@ var Ordershistory = function Ordershistory(props) {
|
|
|
12241
12280
|
style: {
|
|
12242
12281
|
color: 'red'
|
|
12243
12282
|
}
|
|
12244
|
-
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', " -", ' ', fetchorderhistoryQueryContext === null || fetchorderhistoryQueryContext === void 0 || (
|
|
12283
|
+
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', " -", ' ', fetchorderhistoryQueryContext === null || fetchorderhistoryQueryContext === void 0 || (_fetchorderhistoryQue5 = fetchorderhistoryQueryContext.data) === null || _fetchorderhistoryQue5 === void 0 || (_fetchorderhistoryQue5 = _fetchorderhistoryQue5.data) === null || _fetchorderhistoryQue5 === void 0 || (_fetchorderhistoryQue5 = _fetchorderhistoryQue5.ordershistory[orderindex]) === null || _fetchorderhistoryQue5 === void 0 ? void 0 : _fetchorderhistoryQue5.walletpointsused, langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar))), fetchorderhistoryQueryContext.data.data.ordershistory[orderindex].haspromocode == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
12245
12284
|
className: "row m-0 w-100 mb-2"
|
|
12246
12285
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
12247
12286
|
className: "col-lg-6 col-md-6 col-sm-6 d-flex p-0"
|
|
@@ -12277,7 +12316,7 @@ var Ordershistory = function Ordershistory(props) {
|
|
|
12277
12316
|
textTransform: sectionproperties.total_texttransform,
|
|
12278
12317
|
color: sectionproperties.total_color
|
|
12279
12318
|
}
|
|
12280
|
-
}, (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
12319
|
+
}, (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i6 = authdetailsContext.instinfo) === null || _authdetailsContext$i6 === void 0 ? void 0 : _authdetailsContext$i6.contactinfo.instid) == '6808c6295b598' ? langdetect == 'en' ? 'Total' : 'المبلغ الإجمالي' : lang.total)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
12281
12320
|
className: "col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0"
|
|
12282
12321
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
12283
12322
|
className: "m-0 p-0",
|
|
@@ -17944,7 +17983,7 @@ styleInject(css_248z$E);
|
|
|
17944
17983
|
function ownKeys$2n(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; }
|
|
17945
17984
|
function _objectSpread$2n(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2n(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2n(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
17946
17985
|
var CartSlider = function CartSlider(props) {
|
|
17947
|
-
var _authdetailsContext$i, _fetchcustomercartQue, _fetchcustomercartQue2, _fetchcustomercartQue3, _fetchcustomercartQue4, _fetchcustomercartQue5, _fetchcustomercartQue6, _fetchcustomercartQue7, _fetchcustomercartQue8,
|
|
17986
|
+
var _authdetailsContext$i, _fetchcustomercartQue, _fetchcustomercartQue2, _fetchcustomercartQue3, _fetchcustomercartQue4, _fetchcustomercartQue5, _fetchcustomercartQue6, _fetchcustomercartQue7, _fetchcustomercartQue8, _fetchcustomercartQue1, _fetchcustomercartQue10, _authdetailsContext$i2, _fetchcustomercartQue11, _fetchcustomercartQue12, _fetchcustomercartQue13, _fetchcustomercartQue14;
|
|
17948
17987
|
var lang = props.actions.lang;
|
|
17949
17988
|
var langdetect = props.actions.langdetect;
|
|
17950
17989
|
var authdetailsContext = props.actions.authdetailsContext;
|
|
@@ -18372,277 +18411,294 @@ var CartSlider = function CartSlider(props) {
|
|
|
18372
18411
|
animationDuration: '.7s'
|
|
18373
18412
|
}
|
|
18374
18413
|
}, fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue8 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue8 === void 0 || (_fetchcustomercartQue8 = _fetchcustomercartQue8.data) === null || _fetchcustomercartQue8 === void 0 || (_fetchcustomercartQue8 = _fetchcustomercartQue8.customercart) === null || _fetchcustomercartQue8 === void 0 || (_fetchcustomercartQue8 = _fetchcustomercartQue8.cartitems) === null || _fetchcustomercartQue8 === void 0 ? void 0 : _fetchcustomercartQue8.map(function (item, index) {
|
|
18375
|
-
var _item$productinfo, _item$variantoptions, _fetchcustomercartQue9;
|
|
18376
18414
|
if (item.product_extrafields != null) {
|
|
18377
18415
|
var product_extrafields = JSON.parse(item.product_extrafields);
|
|
18378
18416
|
// var product_extrafields_parsed = JSON.stringify(product_extrafields);
|
|
18379
18417
|
// alert(product_extrafields_parsed);
|
|
18380
18418
|
}
|
|
18381
|
-
|
|
18382
|
-
|
|
18383
|
-
|
|
18384
|
-
|
|
18385
|
-
}
|
|
18386
|
-
|
|
18387
|
-
|
|
18388
|
-
|
|
18389
|
-
|
|
18390
|
-
|
|
18391
|
-
|
|
18392
|
-
|
|
18393
|
-
|
|
18394
|
-
|
|
18395
|
-
|
|
18396
|
-
width: '90%',
|
|
18397
|
-
objectFit: 'contain',
|
|
18398
|
-
borderRadius: sectionproperties.imageborderradius + 'px'
|
|
18399
|
-
}
|
|
18400
|
-
}), item.productinfo.hasvariants == 0 && item.productinfo.productmainimage == '' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
18401
|
-
style: {
|
|
18402
|
-
width: '100%',
|
|
18403
|
-
height: '100%',
|
|
18404
|
-
background: '#eee',
|
|
18405
|
-
borderRadius: 10
|
|
18406
|
-
}
|
|
18407
|
-
}, /*#__PURE__*/React__default["default"].createElement("i", {
|
|
18408
|
-
"class": "h-100 allcentered text-light"
|
|
18409
|
-
}, /*#__PURE__*/React__default["default"].createElement(FiLayers.FiLayers, {
|
|
18410
|
-
size: 26
|
|
18411
|
-
}))), item.productinfo.hasvariants == 1 && item.productinfo.variantinfo.variantimageurl == '' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
18412
|
-
style: {
|
|
18413
|
-
width: '100%',
|
|
18414
|
-
height: '100%',
|
|
18415
|
-
background: '#eee',
|
|
18416
|
-
borderRadius: 10
|
|
18417
|
-
}
|
|
18418
|
-
}, /*#__PURE__*/React__default["default"].createElement("i", {
|
|
18419
|
-
"class": "h-100 allcentered text-light"
|
|
18420
|
-
}, /*#__PURE__*/React__default["default"].createElement(FiLayers.FiLayers, {
|
|
18421
|
-
size: 26
|
|
18422
|
-
}))), item.productinfo.hasvariants == 1 && item.productinfo.variantinfo.variantimageurl != '' && /*#__PURE__*/React__default["default"].createElement(Imagekitimagecomp, {
|
|
18423
|
-
urlEndpoint: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint,
|
|
18424
|
-
publicKey: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimagepublickey,
|
|
18425
|
-
path: '/tr:w-' + sectionproperties.imagetr_w + ',h-' + sectionproperties.imagetr_h + '/' + item.productinfo.variantinfo.variantimageurl,
|
|
18426
|
-
loading: "lazy",
|
|
18427
|
-
style: {
|
|
18428
|
-
height: '90%',
|
|
18429
|
-
width: '90%',
|
|
18430
|
-
objectFit: 'contain',
|
|
18431
|
-
borderRadius: sectionproperties.imageborderradius + 'px'
|
|
18432
|
-
}
|
|
18433
|
-
}))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
18434
|
-
className: "col-lg-8 col-md-8 col-sm-8 pl-2"
|
|
18435
|
-
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
18436
|
-
className: "row m-0 w-100"
|
|
18437
|
-
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
18438
|
-
className: "col-lg-12 col-md-12 col-sm-12 p-0 d-flex"
|
|
18439
|
-
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
18440
|
-
className: "".concat(cart_cssstyles.productNameStyles) + ' m-0 p-0 wordbreak wordbreak3 d-flex align-items-start ',
|
|
18441
|
-
style: {
|
|
18442
|
-
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
18443
|
-
},
|
|
18444
|
-
onClick: function onClick() {
|
|
18445
|
-
routingcountext(StaticPagesLinksContext.productinfo, true, item.productid);
|
|
18446
|
-
setOpenCloseCartSlider(false);
|
|
18447
|
-
setsidecartnavshowWorkplaceDesigncontext(false);
|
|
18448
|
-
setsidecartnavshowcontext(false);
|
|
18449
|
-
}
|
|
18450
|
-
}, langdetect == 'en' ? item.productinfo.name_en : item.productinfo.name_ar)), sectionproperties.prodPriceShow == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
18451
|
-
className: "".concat(cart_cssstyles.productPricestyles) + ' col-lg-12 col-md-12 col-sm-12 p-0 d-flex mt-1 '
|
|
18452
|
-
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', sectionproperties.removedecimals == 'Without Decimals' ? parseFloat(Number(item.finalprice).toFixed(2)) : sectionproperties.removedecimals == 'Without Decimals and Separated With Comma' ? Math.floor(item.finalprice).toLocaleString() : parseFloat(item.finalprice).toFixed(2), ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar), item.productinfo.hasvariants == 1 && item.variantoptions.map(function (variantitem, variantindex) {
|
|
18419
|
+
var product_extras_array = [];
|
|
18420
|
+
var is_extra_product = false;
|
|
18421
|
+
if (item.item_type == 'Extras') {
|
|
18422
|
+
is_extra_product = true;
|
|
18423
|
+
}
|
|
18424
|
+
if (item.item_type != 'Extras') {
|
|
18425
|
+
var _fetchcustomercartQue9;
|
|
18426
|
+
fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue9 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue9 === void 0 || (_fetchcustomercartQue9 = _fetchcustomercartQue9.data) === null || _fetchcustomercartQue9 === void 0 || (_fetchcustomercartQue9 = _fetchcustomercartQue9.customercart) === null || _fetchcustomercartQue9 === void 0 || (_fetchcustomercartQue9 = _fetchcustomercartQue9.cartitems) === null || _fetchcustomercartQue9 === void 0 || _fetchcustomercartQue9.forEach(function (cartitem) {
|
|
18427
|
+
if (cartitem.item_type == 'Extras' && cartitem.main_ref_productid == item.productid) {
|
|
18428
|
+
product_extras_array.push(cartitem);
|
|
18429
|
+
}
|
|
18430
|
+
});
|
|
18431
|
+
}
|
|
18432
|
+
if (is_extra_product == false) {
|
|
18433
|
+
var _item$productinfo, _item$variantoptions, _fetchcustomercartQue0;
|
|
18453
18434
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
18454
|
-
className: "col-lg-12
|
|
18435
|
+
className: "col-lg-12 mb-3 p-0"
|
|
18455
18436
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
18456
|
-
|
|
18437
|
+
className: "row w-100 m-0"
|
|
18438
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
18439
|
+
className: 'col-lg-4 col-md-4 col-sm-4 p-0'
|
|
18440
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
18441
|
+
className: cart_cssstyles.imagecont + ' mb-auto '
|
|
18442
|
+
}, item.productinfo.hasvariants == 0 && item.productinfo.productmainimage != '' && /*#__PURE__*/React__default["default"].createElement(Imagekitimagecomp, {
|
|
18443
|
+
urlEndpoint: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint,
|
|
18444
|
+
publicKey: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimagepublickey,
|
|
18445
|
+
path: '/tr:w-' + sectionproperties.imagetr_w + ',h-' + sectionproperties.imagetr_h + '/' + item.productinfo.productmainimage,
|
|
18446
|
+
loading: "lazy",
|
|
18457
18447
|
style: {
|
|
18458
|
-
|
|
18448
|
+
height: '90%',
|
|
18449
|
+
width: '90%',
|
|
18450
|
+
objectFit: 'contain',
|
|
18451
|
+
borderRadius: sectionproperties.imageborderradius + 'px'
|
|
18452
|
+
}
|
|
18453
|
+
}), item.productinfo.hasvariants == 0 && item.productinfo.productmainimage == '' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
18454
|
+
style: {
|
|
18455
|
+
width: '100%',
|
|
18456
|
+
height: '100%',
|
|
18457
|
+
background: '#eee',
|
|
18458
|
+
borderRadius: 10
|
|
18459
|
+
}
|
|
18460
|
+
}, /*#__PURE__*/React__default["default"].createElement("i", {
|
|
18461
|
+
"class": "h-100 allcentered text-light"
|
|
18462
|
+
}, /*#__PURE__*/React__default["default"].createElement(FiLayers.FiLayers, {
|
|
18463
|
+
size: 26
|
|
18464
|
+
}))), item.productinfo.hasvariants == 1 && item.productinfo.variantinfo.variantimageurl == '' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
18465
|
+
style: {
|
|
18466
|
+
width: '100%',
|
|
18467
|
+
height: '100%',
|
|
18468
|
+
background: '#eee',
|
|
18469
|
+
borderRadius: 10
|
|
18470
|
+
}
|
|
18471
|
+
}, /*#__PURE__*/React__default["default"].createElement("i", {
|
|
18472
|
+
"class": "h-100 allcentered text-light"
|
|
18473
|
+
}, /*#__PURE__*/React__default["default"].createElement(FiLayers.FiLayers, {
|
|
18474
|
+
size: 26
|
|
18475
|
+
}))), item.productinfo.hasvariants == 1 && item.productinfo.variantinfo.variantimageurl != '' && /*#__PURE__*/React__default["default"].createElement(Imagekitimagecomp, {
|
|
18476
|
+
urlEndpoint: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint,
|
|
18477
|
+
publicKey: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimagepublickey,
|
|
18478
|
+
path: '/tr:w-' + sectionproperties.imagetr_w + ',h-' + sectionproperties.imagetr_h + '/' + item.productinfo.variantinfo.variantimageurl,
|
|
18479
|
+
loading: "lazy",
|
|
18480
|
+
style: {
|
|
18481
|
+
height: '90%',
|
|
18482
|
+
width: '90%',
|
|
18483
|
+
objectFit: 'contain',
|
|
18484
|
+
borderRadius: sectionproperties.imageborderradius + 'px'
|
|
18459
18485
|
}
|
|
18486
|
+
}))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
18487
|
+
className: "col-lg-8 col-md-8 col-sm-8 pl-2"
|
|
18488
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
18489
|
+
className: "row m-0 w-100"
|
|
18460
18490
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
18461
18491
|
className: "col-lg-12 col-md-12 col-sm-12 p-0 d-flex"
|
|
18462
18492
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
18463
|
-
className: '
|
|
18464
|
-
}, variantitem.optionname, ":"), /*#__PURE__*/React__default["default"].createElement("p", {
|
|
18465
|
-
className: ' font-weight-400 m-0 p-0 font-13 ml-1 mr-1 '
|
|
18466
|
-
}, (variantitem === null || variantitem === void 0 ? void 0 : variantitem.value_identifier) != null ? variantitem === null || variantitem === void 0 ? void 0 : variantitem.value_identifier : variantitem === null || variantitem === void 0 ? void 0 : variantitem.optionvalue))));
|
|
18467
|
-
}), item.product_extrafields != null && product_extrafields.map(function (extrafielditem, extrafieldindex) {
|
|
18468
|
-
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
18469
|
-
className: "col-lg-12 col-md-12 col-sm-12 p-0 d-flex"
|
|
18470
|
-
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
18471
|
-
"class": "row m-0 w-100",
|
|
18493
|
+
className: "".concat(cart_cssstyles.productNameStyles) + ' m-0 p-0 wordbreak wordbreak3 d-flex align-items-start ',
|
|
18472
18494
|
style: {
|
|
18473
|
-
|
|
18495
|
+
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
18496
|
+
},
|
|
18497
|
+
onClick: function onClick() {
|
|
18498
|
+
routingcountext(StaticPagesLinksContext.productinfo, true, item.productid);
|
|
18499
|
+
setOpenCloseCartSlider(false);
|
|
18500
|
+
setsidecartnavshowWorkplaceDesigncontext(false);
|
|
18501
|
+
setsidecartnavshowcontext(false);
|
|
18474
18502
|
}
|
|
18503
|
+
}, langdetect == 'en' ? item.productinfo.name_en : item.productinfo.name_ar)), sectionproperties.prodPriceShow == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
18504
|
+
className: "".concat(cart_cssstyles.productPricestyles) + ' col-lg-12 col-md-12 col-sm-12 p-0 d-flex mt-1 '
|
|
18505
|
+
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', sectionproperties.removedecimals == 'Without Decimals' ? parseFloat(Number(item.finalprice).toFixed(2)) : sectionproperties.removedecimals == 'Without Decimals and Separated With Comma' ? Math.floor(item.finalprice).toLocaleString() : parseFloat(item.finalprice).toFixed(2), ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar), item.productinfo.hasvariants == 1 && item.variantoptions.map(function (variantitem, variantindex) {
|
|
18506
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
18507
|
+
className: "col-lg-12 col-md-12 col-sm-12 p-0 d-flex"
|
|
18508
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
18509
|
+
"class": "row m-0 w-100",
|
|
18510
|
+
style: {
|
|
18511
|
+
color: sectionproperties.prodNameColor
|
|
18512
|
+
}
|
|
18513
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
18514
|
+
className: "col-lg-12 col-md-12 col-sm-12 p-0 d-flex"
|
|
18515
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
18516
|
+
className: 'text-capitalize m-0 p-0 font-weight-500 font-13 m-0 p-0 '
|
|
18517
|
+
}, variantitem.optionname, ":"), /*#__PURE__*/React__default["default"].createElement("p", {
|
|
18518
|
+
className: ' font-weight-400 m-0 p-0 font-13 ml-1 mr-1 '
|
|
18519
|
+
}, (variantitem === null || variantitem === void 0 ? void 0 : variantitem.value_identifier) != null ? variantitem === null || variantitem === void 0 ? void 0 : variantitem.value_identifier : variantitem === null || variantitem === void 0 ? void 0 : variantitem.optionvalue))));
|
|
18520
|
+
}), item.product_extrafields != null && product_extrafields.map(function (extrafielditem, extrafieldindex) {
|
|
18521
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
18522
|
+
className: "col-lg-12 col-md-12 col-sm-12 p-0 d-flex"
|
|
18523
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
18524
|
+
"class": "row m-0 w-100",
|
|
18525
|
+
style: {
|
|
18526
|
+
color: sectionproperties.prodNameColor
|
|
18527
|
+
}
|
|
18528
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
18529
|
+
className: "col-lg-12 col-md-12 col-sm-12 p-0 d-flex"
|
|
18530
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
18531
|
+
className: 'text-capitalize m-0 p-0 font-weight-500 font-13 m-0 p-0 '
|
|
18532
|
+
}, langdetect == 'en' ? extrafielditem.title_en : extrafielditem.title_ar, ":"), /*#__PURE__*/React__default["default"].createElement("p", {
|
|
18533
|
+
className: ' font-weight-400 m-0 p-0 font-13 ml-1 mr-1 '
|
|
18534
|
+
}, extrafielditem.value))));
|
|
18535
|
+
}), product_extras_array === null || product_extras_array === void 0 ? void 0 : product_extras_array.map(function (extraitem, extraiindex) {
|
|
18536
|
+
return /*#__PURE__*/React__default["default"].createElement("div", null, /*#__PURE__*/React__default["default"].createElement("p", null, " ", langdetect == 'en' ? extraitem.productinfo.name_en : extraitem.productinfo.name_ar), /*#__PURE__*/React__default["default"].createElement("p", null, " quantity: ", extraitem.quantity, " "));
|
|
18537
|
+
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
18538
|
+
"class": (item === null || item === void 0 || (_item$productinfo = item.productinfo) === null || _item$productinfo === void 0 ? void 0 : _item$productinfo.hasvariants) == 1 && (item === null || item === void 0 || (_item$variantoptions = item.variantoptions) === null || _item$variantoptions === void 0 ? void 0 : _item$variantoptions.length) != 0 ? 'col-lg-12 p-0 mt-1' : 'col-lg-12 p-0 mt-4'
|
|
18475
18539
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
18476
|
-
|
|
18477
|
-
}, /*#__PURE__*/React__default["default"].createElement("
|
|
18478
|
-
|
|
18479
|
-
},
|
|
18480
|
-
className: '
|
|
18481
|
-
},
|
|
18482
|
-
|
|
18483
|
-
|
|
18484
|
-
|
|
18485
|
-
|
|
18486
|
-
|
|
18487
|
-
|
|
18488
|
-
|
|
18489
|
-
|
|
18490
|
-
|
|
18491
|
-
|
|
18492
|
-
|
|
18493
|
-
|
|
18494
|
-
|
|
18495
|
-
|
|
18496
|
-
|
|
18540
|
+
"class": "row m-0 w-100"
|
|
18541
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
18542
|
+
"class": "col-9 p-0 d-flex justify-content-start align-items-center"
|
|
18543
|
+
}, item.productinfo.item_type == 'product' && item.productinfo.isproducthasquantitychange == 1 && /*#__PURE__*/React__default["default"].createElement("button", {
|
|
18544
|
+
className: " ".concat(cart_cssstyles.quantitybtn) + ' px-2 d-flex align-items-center justify-content-center '
|
|
18545
|
+
}, langdetect == 'en' && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
18546
|
+
className: "".concat(cart_cssstyles.minus_quantitybtn_icon_container) + ' m-1 ',
|
|
18547
|
+
onClick: function onClick() {
|
|
18548
|
+
var _item$productinfo2, _item$productinfo3, _item$productinfo4, _item$productinfo5;
|
|
18549
|
+
var quantitystepincrearse = 1;
|
|
18550
|
+
var quantity = parseFloat(item.quantity);
|
|
18551
|
+
if ((item === null || item === void 0 || (_item$productinfo2 = item.productinfo) === null || _item$productinfo2 === void 0 ? void 0 : _item$productinfo2.quantitystepincrearse) != undefined && (item === null || item === void 0 || (_item$productinfo3 = item.productinfo) === null || _item$productinfo3 === void 0 ? void 0 : _item$productinfo3.quantitystepincrearse) != null && (item === null || item === void 0 || (_item$productinfo4 = item.productinfo) === null || _item$productinfo4 === void 0 ? void 0 : _item$productinfo4.quantitystepincrearse) != 1 && (item === null || item === void 0 || (_item$productinfo5 = item.productinfo) === null || _item$productinfo5 === void 0 ? void 0 : _item$productinfo5.quantitystepincrearse) != '') {
|
|
18552
|
+
if (sectionproperties.quantityacceptfloat != 'Accepts decimals') {
|
|
18553
|
+
var _item$productinfo6;
|
|
18554
|
+
quantitystepincrearse = parseInt(item === null || item === void 0 || (_item$productinfo6 = item.productinfo) === null || _item$productinfo6 === void 0 ? void 0 : _item$productinfo6.quantitystepincrearse);
|
|
18555
|
+
} else {
|
|
18556
|
+
var _item$productinfo7;
|
|
18557
|
+
quantitystepincrearse = parseFloat(item === null || item === void 0 || (_item$productinfo7 = item.productinfo) === null || _item$productinfo7 === void 0 ? void 0 : _item$productinfo7.quantitystepincrearse);
|
|
18558
|
+
}
|
|
18559
|
+
}
|
|
18560
|
+
quantity = quantity - quantitystepincrearse;
|
|
18497
18561
|
if (sectionproperties.quantityacceptfloat != 'Accepts decimals') {
|
|
18498
|
-
|
|
18499
|
-
quantitystepincrearse = parseInt(item === null || item === void 0 || (_item$productinfo6 = item.productinfo) === null || _item$productinfo6 === void 0 ? void 0 : _item$productinfo6.quantitystepincrearse);
|
|
18562
|
+
ChangeCartItemQuantityContext(item, parseInt(quantity));
|
|
18500
18563
|
} else {
|
|
18501
|
-
|
|
18502
|
-
quantitystepincrearse = parseFloat(item === null || item === void 0 || (_item$productinfo7 = item.productinfo) === null || _item$productinfo7 === void 0 ? void 0 : _item$productinfo7.quantitystepincrearse);
|
|
18564
|
+
ChangeCartItemQuantityContext(item, parseFloat(quantity).toFixed(3));
|
|
18503
18565
|
}
|
|
18504
18566
|
}
|
|
18505
|
-
|
|
18506
|
-
|
|
18507
|
-
|
|
18508
|
-
|
|
18509
|
-
|
|
18510
|
-
|
|
18511
|
-
|
|
18512
|
-
|
|
18513
|
-
|
|
18514
|
-
|
|
18515
|
-
|
|
18516
|
-
|
|
18517
|
-
|
|
18518
|
-
|
|
18519
|
-
|
|
18520
|
-
|
|
18567
|
+
}, /*#__PURE__*/React__default["default"].createElement(FiMinus.FiMinus, {
|
|
18568
|
+
size: sectionproperties.remove_quantitybtn_textfontsize
|
|
18569
|
+
})), langdetect == 'ar' && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
18570
|
+
className: "".concat(cart_cssstyles.add_quantitybtn_icon_container) + ' m-1 ',
|
|
18571
|
+
onClick: function onClick() {
|
|
18572
|
+
var _item$productinfo8, _item$productinfo9, _item$productinfo0, _item$productinfo1;
|
|
18573
|
+
var quantitystepincrearse = 1;
|
|
18574
|
+
var quantity = parseFloat(item.quantity);
|
|
18575
|
+
if ((item === null || item === void 0 || (_item$productinfo8 = item.productinfo) === null || _item$productinfo8 === void 0 ? void 0 : _item$productinfo8.quantitystepincrearse) != undefined && (item === null || item === void 0 || (_item$productinfo9 = item.productinfo) === null || _item$productinfo9 === void 0 ? void 0 : _item$productinfo9.quantitystepincrearse) != null && (item === null || item === void 0 || (_item$productinfo0 = item.productinfo) === null || _item$productinfo0 === void 0 ? void 0 : _item$productinfo0.quantitystepincrearse) != 1 && (item === null || item === void 0 || (_item$productinfo1 = item.productinfo) === null || _item$productinfo1 === void 0 ? void 0 : _item$productinfo1.quantitystepincrearse) != '') {
|
|
18576
|
+
if (sectionproperties.quantityacceptfloat != 'Accepts decimals') {
|
|
18577
|
+
var _item$productinfo10;
|
|
18578
|
+
quantitystepincrearse = parseInt(item === null || item === void 0 || (_item$productinfo10 = item.productinfo) === null || _item$productinfo10 === void 0 ? void 0 : _item$productinfo10.quantitystepincrearse);
|
|
18579
|
+
} else {
|
|
18580
|
+
var _item$productinfo11;
|
|
18581
|
+
quantitystepincrearse = parseFloat(item === null || item === void 0 || (_item$productinfo11 = item.productinfo) === null || _item$productinfo11 === void 0 ? void 0 : _item$productinfo11.quantitystepincrearse);
|
|
18582
|
+
}
|
|
18583
|
+
}
|
|
18584
|
+
quantity = quantity + quantitystepincrearse;
|
|
18521
18585
|
if (sectionproperties.quantityacceptfloat != 'Accepts decimals') {
|
|
18522
|
-
|
|
18523
|
-
quantitystepincrearse = parseInt(item === null || item === void 0 || (_item$productinfo10 = item.productinfo) === null || _item$productinfo10 === void 0 ? void 0 : _item$productinfo10.quantitystepincrearse);
|
|
18586
|
+
ChangeCartItemQuantityContext(item, parseInt(quantity));
|
|
18524
18587
|
} else {
|
|
18525
|
-
|
|
18526
|
-
quantitystepincrearse = parseFloat(item === null || item === void 0 || (_item$productinfo11 = item.productinfo) === null || _item$productinfo11 === void 0 ? void 0 : _item$productinfo11.quantitystepincrearse);
|
|
18588
|
+
ChangeCartItemQuantityContext(item, parseFloat(quantity).toFixed(3));
|
|
18527
18589
|
}
|
|
18528
18590
|
}
|
|
18529
|
-
|
|
18530
|
-
|
|
18531
|
-
|
|
18532
|
-
|
|
18533
|
-
|
|
18591
|
+
}, /*#__PURE__*/React__default["default"].createElement(FiPlus.FiPlus, {
|
|
18592
|
+
size: sectionproperties.add_quantitybtn_textfontsize
|
|
18593
|
+
})), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
18594
|
+
className: "".concat(cart_cssstyles.quantitybtn_text) + ' d-flex align-items-center justify-content-center ',
|
|
18595
|
+
style: {
|
|
18596
|
+
background: 'transparent'
|
|
18534
18597
|
}
|
|
18535
|
-
}
|
|
18536
|
-
|
|
18537
|
-
|
|
18538
|
-
|
|
18539
|
-
|
|
18540
|
-
|
|
18541
|
-
|
|
18542
|
-
|
|
18543
|
-
|
|
18544
|
-
|
|
18545
|
-
|
|
18546
|
-
|
|
18547
|
-
|
|
18548
|
-
|
|
18549
|
-
|
|
18598
|
+
}, item.quantity), langdetect == 'en' && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
18599
|
+
className: "".concat(cart_cssstyles.add_quantitybtn_icon_container) + ' m-1 ',
|
|
18600
|
+
onClick: function onClick() {
|
|
18601
|
+
var _item$productinfo12, _item$productinfo13, _item$productinfo14, _item$productinfo15;
|
|
18602
|
+
var quantitystepincrearse = 1;
|
|
18603
|
+
var quantity = parseFloat(item.quantity);
|
|
18604
|
+
if ((item === null || item === void 0 || (_item$productinfo12 = item.productinfo) === null || _item$productinfo12 === void 0 ? void 0 : _item$productinfo12.quantitystepincrearse) != undefined && (item === null || item === void 0 || (_item$productinfo13 = item.productinfo) === null || _item$productinfo13 === void 0 ? void 0 : _item$productinfo13.quantitystepincrearse) != null && (item === null || item === void 0 || (_item$productinfo14 = item.productinfo) === null || _item$productinfo14 === void 0 ? void 0 : _item$productinfo14.quantitystepincrearse) != 1 && (item === null || item === void 0 || (_item$productinfo15 = item.productinfo) === null || _item$productinfo15 === void 0 ? void 0 : _item$productinfo15.quantitystepincrearse) != '') {
|
|
18605
|
+
if (sectionproperties.quantityacceptfloat != 'Accepts decimals') {
|
|
18606
|
+
var _item$productinfo16;
|
|
18607
|
+
quantitystepincrearse = parseInt(item === null || item === void 0 || (_item$productinfo16 = item.productinfo) === null || _item$productinfo16 === void 0 ? void 0 : _item$productinfo16.quantitystepincrearse);
|
|
18608
|
+
} else {
|
|
18609
|
+
var _item$productinfo17;
|
|
18610
|
+
quantitystepincrearse = parseFloat(item === null || item === void 0 || (_item$productinfo17 = item.productinfo) === null || _item$productinfo17 === void 0 ? void 0 : _item$productinfo17.quantitystepincrearse);
|
|
18611
|
+
}
|
|
18612
|
+
}
|
|
18613
|
+
quantity = quantity + quantitystepincrearse;
|
|
18550
18614
|
if (sectionproperties.quantityacceptfloat != 'Accepts decimals') {
|
|
18551
|
-
|
|
18552
|
-
quantitystepincrearse = parseInt(item === null || item === void 0 || (_item$productinfo16 = item.productinfo) === null || _item$productinfo16 === void 0 ? void 0 : _item$productinfo16.quantitystepincrearse);
|
|
18615
|
+
ChangeCartItemQuantityContext(item, parseInt(quantity));
|
|
18553
18616
|
} else {
|
|
18554
|
-
|
|
18555
|
-
quantitystepincrearse = parseFloat(item === null || item === void 0 || (_item$productinfo17 = item.productinfo) === null || _item$productinfo17 === void 0 ? void 0 : _item$productinfo17.quantitystepincrearse);
|
|
18617
|
+
ChangeCartItemQuantityContext(item, parseFloat(quantity).toFixed(3));
|
|
18556
18618
|
}
|
|
18557
18619
|
}
|
|
18558
|
-
|
|
18559
|
-
|
|
18560
|
-
|
|
18561
|
-
|
|
18562
|
-
|
|
18563
|
-
|
|
18564
|
-
|
|
18565
|
-
|
|
18566
|
-
|
|
18567
|
-
|
|
18568
|
-
|
|
18569
|
-
|
|
18570
|
-
|
|
18571
|
-
|
|
18572
|
-
|
|
18573
|
-
|
|
18620
|
+
}, /*#__PURE__*/React__default["default"].createElement(FiPlus.FiPlus, {
|
|
18621
|
+
size: sectionproperties.add_quantitybtn_textfontsize
|
|
18622
|
+
})), langdetect == 'ar' && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
18623
|
+
className: "".concat(cart_cssstyles.minus_quantitybtn_icon_container) + ' m-1 ',
|
|
18624
|
+
onClick: function onClick() {
|
|
18625
|
+
var _item$productinfo18, _item$productinfo19, _item$productinfo20, _item$productinfo21;
|
|
18626
|
+
var quantitystepincrearse = 1;
|
|
18627
|
+
var quantity = parseFloat(item.quantity);
|
|
18628
|
+
if ((item === null || item === void 0 || (_item$productinfo18 = item.productinfo) === null || _item$productinfo18 === void 0 ? void 0 : _item$productinfo18.quantitystepincrearse) != undefined && (item === null || item === void 0 || (_item$productinfo19 = item.productinfo) === null || _item$productinfo19 === void 0 ? void 0 : _item$productinfo19.quantitystepincrearse) != null && (item === null || item === void 0 || (_item$productinfo20 = item.productinfo) === null || _item$productinfo20 === void 0 ? void 0 : _item$productinfo20.quantitystepincrearse) != 1 && (item === null || item === void 0 || (_item$productinfo21 = item.productinfo) === null || _item$productinfo21 === void 0 ? void 0 : _item$productinfo21.quantitystepincrearse) != '') {
|
|
18629
|
+
if (sectionproperties.quantityacceptfloat != 'Accepts decimals') {
|
|
18630
|
+
var _item$productinfo22;
|
|
18631
|
+
quantitystepincrearse = parseInt(item === null || item === void 0 || (_item$productinfo22 = item.productinfo) === null || _item$productinfo22 === void 0 ? void 0 : _item$productinfo22.quantitystepincrearse);
|
|
18632
|
+
} else {
|
|
18633
|
+
var _item$productinfo23;
|
|
18634
|
+
quantitystepincrearse = parseFloat(item === null || item === void 0 || (_item$productinfo23 = item.productinfo) === null || _item$productinfo23 === void 0 ? void 0 : _item$productinfo23.quantitystepincrearse);
|
|
18635
|
+
}
|
|
18636
|
+
}
|
|
18637
|
+
quantity = quantity - quantitystepincrearse;
|
|
18574
18638
|
if (sectionproperties.quantityacceptfloat != 'Accepts decimals') {
|
|
18575
|
-
|
|
18576
|
-
quantitystepincrearse = parseInt(item === null || item === void 0 || (_item$productinfo22 = item.productinfo) === null || _item$productinfo22 === void 0 ? void 0 : _item$productinfo22.quantitystepincrearse);
|
|
18639
|
+
ChangeCartItemQuantityContext(item, parseInt(quantity));
|
|
18577
18640
|
} else {
|
|
18578
|
-
|
|
18579
|
-
quantitystepincrearse = parseFloat(item === null || item === void 0 || (_item$productinfo23 = item.productinfo) === null || _item$productinfo23 === void 0 ? void 0 : _item$productinfo23.quantitystepincrearse);
|
|
18641
|
+
ChangeCartItemQuantityContext(item, parseFloat(quantity).toFixed(3));
|
|
18580
18642
|
}
|
|
18581
18643
|
}
|
|
18582
|
-
|
|
18583
|
-
|
|
18584
|
-
|
|
18585
|
-
|
|
18586
|
-
|
|
18644
|
+
}, /*#__PURE__*/React__default["default"].createElement(FiMinus.FiMinus, {
|
|
18645
|
+
size: sectionproperties.remove_quantitybtn_textfontsize
|
|
18646
|
+
}))), item.productinfo.item_type == 'service' && item.reserv_fixeddate != null && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
18647
|
+
"class": "col-lg-12 p-0 text-start"
|
|
18648
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
18649
|
+
className: "row m-0 w-100 d-flex align-items-center justify-content-start",
|
|
18650
|
+
style: {
|
|
18651
|
+
color: sectionproperties.quantitybtn_textcolor
|
|
18587
18652
|
}
|
|
18588
|
-
}
|
|
18589
|
-
|
|
18590
|
-
|
|
18591
|
-
|
|
18592
|
-
|
|
18593
|
-
|
|
18594
|
-
|
|
18595
|
-
|
|
18596
|
-
|
|
18597
|
-
}
|
|
18598
|
-
|
|
18599
|
-
|
|
18600
|
-
|
|
18601
|
-
|
|
18602
|
-
|
|
18603
|
-
|
|
18604
|
-
}
|
|
18605
|
-
|
|
18606
|
-
|
|
18607
|
-
|
|
18608
|
-
|
|
18609
|
-
|
|
18610
|
-
|
|
18611
|
-
}
|
|
18612
|
-
|
|
18613
|
-
|
|
18614
|
-
|
|
18615
|
-
|
|
18616
|
-
|
|
18617
|
-
|
|
18618
|
-
}
|
|
18619
|
-
|
|
18620
|
-
|
|
18621
|
-
|
|
18622
|
-
|
|
18623
|
-
|
|
18624
|
-
|
|
18625
|
-
}
|
|
18626
|
-
|
|
18627
|
-
|
|
18628
|
-
|
|
18629
|
-
|
|
18630
|
-
|
|
18631
|
-
|
|
18632
|
-
}
|
|
18633
|
-
|
|
18634
|
-
|
|
18635
|
-
}
|
|
18636
|
-
|
|
18637
|
-
onClick: function onClick() {
|
|
18638
|
-
deletecartitemContext(item);
|
|
18639
|
-
}
|
|
18640
|
-
}, lang.remove))))))), index != (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue9 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue9 === void 0 || (_fetchcustomercartQue9 = _fetchcustomercartQue9.data) === null || _fetchcustomercartQue9 === void 0 || (_fetchcustomercartQue9 = _fetchcustomercartQue9.customercart) === null || _fetchcustomercartQue9 === void 0 || (_fetchcustomercartQue9 = _fetchcustomercartQue9.cartitems) === null || _fetchcustomercartQue9 === void 0 ? void 0 : _fetchcustomercartQue9.length) - 1 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
18641
|
-
className: "col-lg-12 mt-3 p-0"
|
|
18642
|
-
}, /*#__PURE__*/React__default["default"].createElement("hr", {
|
|
18643
|
-
className: "m-0"
|
|
18644
|
-
})));
|
|
18645
|
-
}))))), !AddtoCartMutationContext.isLoading && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue0 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue0 === void 0 || (_fetchcustomercartQue0 = _fetchcustomercartQue0.data) === null || _fetchcustomercartQue0 === void 0 ? void 0 : _fetchcustomercartQue0.customercart) != null && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue1 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue1 === void 0 || (_fetchcustomercartQue1 = _fetchcustomercartQue1.data) === null || _fetchcustomercartQue1 === void 0 || (_fetchcustomercartQue1 = _fetchcustomercartQue1.customercart) === null || _fetchcustomercartQue1 === void 0 || (_fetchcustomercartQue1 = _fetchcustomercartQue1.cartitems) === null || _fetchcustomercartQue1 === void 0 ? void 0 : _fetchcustomercartQue1.length) != 0 && sectionproperties.showtotalsection == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
18653
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
18654
|
+
"class": "col-lg-12 p-0 text-start flex-row"
|
|
18655
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
18656
|
+
"class": "m-0 p-0",
|
|
18657
|
+
style: {
|
|
18658
|
+
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
18659
|
+
}
|
|
18660
|
+
}, item.reserv_fixeddate)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
18661
|
+
"class": "col-lg-12 p-0 text-start flex-row"
|
|
18662
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
18663
|
+
"class": "m-0 p-0",
|
|
18664
|
+
style: {
|
|
18665
|
+
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
18666
|
+
}
|
|
18667
|
+
}, item.reserv_time)))), item.productinfo.item_type == 'service' && item.reserv_fixeddate == null && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
18668
|
+
"class": "col-lg-12 p-0 text-start"
|
|
18669
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
18670
|
+
className: "row m-0 w-100 d-flex align-items-center justify-content-start",
|
|
18671
|
+
style: {
|
|
18672
|
+
color: sectionproperties.quantitybtn_textcolor
|
|
18673
|
+
}
|
|
18674
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
18675
|
+
"class": "col-lg-12 p-0 text-start flex-row"
|
|
18676
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
18677
|
+
"class": "m-0 p-0",
|
|
18678
|
+
style: {
|
|
18679
|
+
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
18680
|
+
}
|
|
18681
|
+
}, langdetect == 'en' ? 'From' : 'من', ": ", item.reserv_fromdate)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
18682
|
+
"class": "col-lg-12 p-0 text-start flex-row"
|
|
18683
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
18684
|
+
"class": "m-0 p-0",
|
|
18685
|
+
style: {
|
|
18686
|
+
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
18687
|
+
}
|
|
18688
|
+
}, langdetect == 'en' ? 'To' : 'إلى', ": ", item.reserv_todate))))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
18689
|
+
"class": "col-3 p-0 d-flex justify-content-end align-items-center"
|
|
18690
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
18691
|
+
"class": "".concat(cart_cssstyles.trash_btn) + ' cursor-pointer m-0 p-0 ',
|
|
18692
|
+
onClick: function onClick() {
|
|
18693
|
+
deletecartitemContext(item);
|
|
18694
|
+
}
|
|
18695
|
+
}, lang.remove))))))), index != (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue0 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue0 === void 0 || (_fetchcustomercartQue0 = _fetchcustomercartQue0.data) === null || _fetchcustomercartQue0 === void 0 || (_fetchcustomercartQue0 = _fetchcustomercartQue0.customercart) === null || _fetchcustomercartQue0 === void 0 || (_fetchcustomercartQue0 = _fetchcustomercartQue0.cartitems) === null || _fetchcustomercartQue0 === void 0 ? void 0 : _fetchcustomercartQue0.length) - 1 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
18696
|
+
className: "col-lg-12 mt-3 p-0"
|
|
18697
|
+
}, /*#__PURE__*/React__default["default"].createElement("hr", {
|
|
18698
|
+
className: "m-0"
|
|
18699
|
+
})));
|
|
18700
|
+
}
|
|
18701
|
+
}))))), !AddtoCartMutationContext.isLoading && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue1 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue1 === void 0 || (_fetchcustomercartQue1 = _fetchcustomercartQue1.data) === null || _fetchcustomercartQue1 === void 0 ? void 0 : _fetchcustomercartQue1.customercart) != null && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue10 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue10 === void 0 || (_fetchcustomercartQue10 = _fetchcustomercartQue10.data) === null || _fetchcustomercartQue10 === void 0 || (_fetchcustomercartQue10 = _fetchcustomercartQue10.customercart) === null || _fetchcustomercartQue10 === void 0 || (_fetchcustomercartQue10 = _fetchcustomercartQue10.cartitems) === null || _fetchcustomercartQue10 === void 0 ? void 0 : _fetchcustomercartQue10.length) != 0 && sectionproperties.showtotalsection == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
18646
18702
|
className: "col-lg-12 mb-1 p-0 mt-auto anim mb-md-4",
|
|
18647
18703
|
style: {
|
|
18648
18704
|
animationDuration: '.8s'
|
|
@@ -18677,7 +18733,7 @@ var CartSlider = function CartSlider(props) {
|
|
|
18677
18733
|
textTransform: sectionproperties.total_texttransform,
|
|
18678
18734
|
color: sectionproperties.total_color
|
|
18679
18735
|
}
|
|
18680
|
-
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', sectionproperties.removedecimals == 'Without Decimals' ? parseFloat(Number(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
18736
|
+
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', sectionproperties.removedecimals == 'Without Decimals' ? parseFloat(Number(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue11 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue11 === void 0 || (_fetchcustomercartQue11 = _fetchcustomercartQue11.data) === null || _fetchcustomercartQue11 === void 0 || (_fetchcustomercartQue11 = _fetchcustomercartQue11.customercart) === null || _fetchcustomercartQue11 === void 0 ? void 0 : _fetchcustomercartQue11.totalprice).toFixed(2)) : sectionproperties.removedecimals == 'Without Decimals and Separated With Comma' ? Math.floor(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue12 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue12 === void 0 || (_fetchcustomercartQue12 = _fetchcustomercartQue12.data) === null || _fetchcustomercartQue12 === void 0 || (_fetchcustomercartQue12 = _fetchcustomercartQue12.customercart) === null || _fetchcustomercartQue12 === void 0 ? void 0 : _fetchcustomercartQue12.totalprice).toLocaleString() : parseFloat(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue13 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue13 === void 0 || (_fetchcustomercartQue13 = _fetchcustomercartQue13.data) === null || _fetchcustomercartQue13 === void 0 || (_fetchcustomercartQue13 = _fetchcustomercartQue13.customercart) === null || _fetchcustomercartQue13 === void 0 ? void 0 : _fetchcustomercartQue13.totalprice).toFixed(2), ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar)), sectionproperties.hideshipping == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
18681
18737
|
"class": "col-lg-12 mt-1 d-flex align-items-center justify-content-start p-0"
|
|
18682
18738
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
18683
18739
|
"class": "m-0 p-0",
|
|
@@ -18686,7 +18742,7 @@ var CartSlider = function CartSlider(props) {
|
|
|
18686
18742
|
fontSize: '13px',
|
|
18687
18743
|
fontWeight: 500
|
|
18688
18744
|
}
|
|
18689
|
-
}, langdetect == 'en' ? sectionproperties.general_text_content : sectionproperties.general_text_content_ar)), !AddtoCartMutationContext.isLoading && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
18745
|
+
}, langdetect == 'en' ? sectionproperties.general_text_content : sectionproperties.general_text_content_ar)), !AddtoCartMutationContext.isLoading && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue14 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue14 === void 0 || (_fetchcustomercartQue14 = _fetchcustomercartQue14.data) === null || _fetchcustomercartQue14 === void 0 || (_fetchcustomercartQue14 = _fetchcustomercartQue14.customercart) === null || _fetchcustomercartQue14 === void 0 || (_fetchcustomercartQue14 = _fetchcustomercartQue14.cartitems) === null || _fetchcustomercartQue14 === void 0 ? void 0 : _fetchcustomercartQue14.length) != 0 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
18690
18746
|
className: "col-lg-12 p-0 mt-4 d-flex flex-column align-items-center justify-content-center"
|
|
18691
18747
|
}, sectionproperties.cartBtnShow == 'Show' && /*#__PURE__*/React__default["default"].createElement("button", {
|
|
18692
18748
|
className: " ".concat(cart_cssstyles.cart_btn) + ' mb-2 d-flex align-items-center justify-content-center ',
|
|
@@ -22332,6 +22388,9 @@ var CollectionsFilterHorizontal = function CollectionsFilterHorizontal(props) {
|
|
|
22332
22388
|
}, CollectionsFilter()));
|
|
22333
22389
|
};
|
|
22334
22390
|
|
|
22391
|
+
var serverbaselink$1 = 'https://tabex-co.com';
|
|
22392
|
+
var image_serverbaselink = 'https://tabexseriesmedia.s3.eu-north-1.amazonaws.com';
|
|
22393
|
+
|
|
22335
22394
|
function ownKeys$2i(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; }
|
|
22336
22395
|
function _objectSpread$2i(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2i(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2i(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
22337
22396
|
var CardsSection = function CardsSection(props) {
|
|
@@ -22729,7 +22788,6 @@ var CardsSection = function CardsSection(props) {
|
|
|
22729
22788
|
var _arrayItem$features2;
|
|
22730
22789
|
cardobj.productfeature = arrayItem === null || arrayItem === void 0 || (_arrayItem$features2 = arrayItem.features) === null || _arrayItem$features2 === void 0 ? void 0 : _arrayItem$features2.value_ar;
|
|
22731
22790
|
}
|
|
22732
|
-
cardobj.productfeaturesarray = arrayItem === null || arrayItem === void 0 ? void 0 : arrayItem.features_a;
|
|
22733
22791
|
cardobj.variants_w_options = variants_w_options;
|
|
22734
22792
|
cardobj.feature_image_url = arrayItem === null || arrayItem === void 0 || (_arrayItem$features3 = arrayItem.features) === null || _arrayItem$features3 === void 0 || (_arrayItem$features3 = _arrayItem$features3.featureinfo) === null || _arrayItem$features3 === void 0 ? void 0 : _arrayItem$features3.feature_image_url;
|
|
22735
22793
|
cardobj.productendpointurl = arrayItem.productinfo.productendpointurl;
|
|
@@ -38495,7 +38553,7 @@ var Simpleheader = function Simpleheader(props) {
|
|
|
38495
38553
|
function ownKeys$1Y(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; }
|
|
38496
38554
|
function _objectSpread$1Y(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1Y(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1Y(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
38497
38555
|
var Header8 = function Header8(props) {
|
|
38498
|
-
var _authdetailsContext$i2, _authdetailsContext$i3, _logoarrayofobjects$, _logoarrayofobjects$2, _authdetailsContext$i4, _authdetailsContext$i6, _authdetailsContext$i8, _authdetailsContext$c, _authdetailsContext$c2, _authdetailsContext$c3, _authdetailsContext$c4, _authdetailsContext$
|
|
38556
|
+
var _authdetailsContext$i2, _authdetailsContext$i3, _logoarrayofobjects$, _logoarrayofobjects$2, _authdetailsContext$i4, _authdetailsContext$i6, _authdetailsContext$i8, _authdetailsContext$i9, _authdetailsContext$c, _authdetailsContext$c2, _authdetailsContext$c3, _authdetailsContext$c4, _authdetailsContext$i0, _authdetailsContext$i1, _fetchcustomercartQue2, _fetchcustomercartQue3, _authdetailsContext$i10, _authdetailsContext$i12, _authdetailsContext$i14, _authdetailsContext$i15, _authdetailsContext$i16, _fetchcustomercartQue4, _fetchcustomercartQue5;
|
|
38499
38557
|
var actions = props.actions;
|
|
38500
38558
|
props.actions.history;
|
|
38501
38559
|
var lang = props.actions.lang;
|
|
@@ -39190,7 +39248,7 @@ var Header8 = function Header8(props) {
|
|
|
39190
39248
|
}, langdetect == 'en' ? sectionproperties.footerinfotext_en : sectionproperties.footerinfotext_ar)))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
39191
39249
|
"class": sectionproperties.showfooterphonenumber == 'Show' ? sectionproperties.btninsearch == 'Show' ? 'col-xl-3 col-lg-3 d-flex align-items-center p-0 pr-0' : langdetect == 'en' ? 'col-xl-3 col-lg-4 d-flex align-items-center p-0 pl-0' : 'col-xl-3 col-lg-4 d-flex align-items-center p-0 pr-0' : 'col-lg-4 d-flex align-items-center'
|
|
39192
39250
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
39193
|
-
"class": 'row w-100 m-0 align-items-center justify-content-end plr-1025-0',
|
|
39251
|
+
"class": sectionproperties.favBtnShow == 'Hide' && sectionproperties.cartBtnShow == 'Hide' ? 'row w-100 m-0 align-items-center justify-content-end plr-1025-0' : (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i9 = authdetailsContext.instinfo) === null || _authdetailsContext$i9 === void 0 ? void 0 : _authdetailsContext$i9.contactinfo.instid) == '687d262638f85' ? 'row w-100 m-0 align-items-center justify-content-end plr-1025-0' : 'row w-100 m-0 align-items-center justify-content-between plr-1025-0',
|
|
39194
39252
|
style: {
|
|
39195
39253
|
paddingLeft: langdetect == 'en' ? sectionproperties.showfooterphonenumber == 'Show' ? authdetailsContext.loggedin == true ? '.3rem' : '3rem' : authdetailsContext.loggedin == true ? '4rem' : '6rem' : 0,
|
|
39196
39254
|
paddingRight: langdetect == 'en' ? 0 : sectionproperties.showfooterphonenumber == 'Show' ? authdetailsContext.loggedin == true ? '1rem' : '3rem' : authdetailsContext.loggedin == true ? '4rem' : '6rem'
|
|
@@ -39304,9 +39362,9 @@ var Header8 = function Header8(props) {
|
|
|
39304
39362
|
"class": "".concat(header_cssstyles.dropdownitemcontainer) + ' m-0 p-0 d-flex align-items-center '
|
|
39305
39363
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
39306
39364
|
"class": "".concat(header_cssstyles.dropdownitem) + ' dropdownitem d-flex align-items-center m-0 p-0 '
|
|
39307
|
-
}, sectionproperties.faviconshape == 'Heart Shape' && /*#__PURE__*/React__default["default"].createElement(FaRegHeart.FaRegHeart, null), sectionproperties.faviconshape == 'Star Shape' && /*#__PURE__*/React__default["default"].createElement(AiFillStar$1.AiFillStar, null), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
39365
|
+
}, sectionproperties.faviconshape == 'Heart Shape' && /*#__PURE__*/React__default["default"].createElement(FaRegHeart.FaRegHeart, null), sectionproperties.faviconshape == 'Star Shape' && /*#__PURE__*/React__default["default"].createElement(AiFillStar$1.AiFillStar, null), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i0 = authdetailsContext.instinfo) === null || _authdetailsContext$i0 === void 0 ? void 0 : _authdetailsContext$i0.contactinfo.instid) == '6808c6295b598' && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
39308
39366
|
"class": "ml-2 mr-2"
|
|
39309
|
-
}, " ", langdetect == 'en' ? lang.wishlist : 'المفضلة'), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
39367
|
+
}, " ", langdetect == 'en' ? lang.wishlist : 'المفضلة'), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i1 = authdetailsContext.instinfo) === null || _authdetailsContext$i1 === void 0 ? void 0 : _authdetailsContext$i1.contactinfo.instid) != '6808c6295b598' && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
39310
39368
|
"class": "ml-2 mr-2"
|
|
39311
39369
|
}, lang.wishlist)))), /*#__PURE__*/React__default["default"].createElement(Dropdown__default["default"].Divider, {
|
|
39312
39370
|
style: {
|
|
@@ -39450,9 +39508,9 @@ var Header8 = function Header8(props) {
|
|
|
39450
39508
|
"class": langdetect == 'en' ? ' m-0 p-0 ml-2' : ' m-0 p-0 mr-2 '
|
|
39451
39509
|
}, langdetect == 'en' ? sectionproperties.generalbtn_content : sectionproperties.slideshow_btn_text_ar)), /*#__PURE__*/React__default["default"].createElement("ul", {
|
|
39452
39510
|
"class": "w-100 mt-2"
|
|
39453
|
-
}, sectionproperties.fetchparenttype == 'Categories' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
39454
|
-
var _authdetailsContext$
|
|
39455
|
-
var fetchedarray = authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
39511
|
+
}, sectionproperties.fetchparenttype == 'Categories' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i10 = authdetailsContext.instinfo) === null || _authdetailsContext$i10 === void 0 || (_authdetailsContext$i10 = _authdetailsContext$i10.instcategories) === null || _authdetailsContext$i10 === void 0 ? void 0 : _authdetailsContext$i10.map(function (item, index) {
|
|
39512
|
+
var _authdetailsContext$i11;
|
|
39513
|
+
var fetchedarray = authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i11 = authdetailsContext.instinfo) === null || _authdetailsContext$i11 === void 0 ? void 0 : _authdetailsContext$i11.instcategories;
|
|
39456
39514
|
if (item.isshowntocustomers == 1) {
|
|
39457
39515
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
39458
39516
|
"class": "w-100"
|
|
@@ -39465,16 +39523,16 @@ var Header8 = function Header8(props) {
|
|
|
39465
39523
|
"class": "w-100"
|
|
39466
39524
|
}, ButtonDropdown(item, index, fetchedarray));
|
|
39467
39525
|
}
|
|
39468
|
-
})), sectionproperties.fetchparenttype == 'Collections' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
39469
|
-
var _authdetailsContext$
|
|
39470
|
-
var fetchedarray = authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
39526
|
+
})), sectionproperties.fetchparenttype == 'Collections' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i12 = authdetailsContext.instinfo) === null || _authdetailsContext$i12 === void 0 || (_authdetailsContext$i12 = _authdetailsContext$i12.instcollections) === null || _authdetailsContext$i12 === void 0 ? void 0 : _authdetailsContext$i12.map(function (item, index) {
|
|
39527
|
+
var _authdetailsContext$i13;
|
|
39528
|
+
var fetchedarray = authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i13 = authdetailsContext.instinfo) === null || _authdetailsContext$i13 === void 0 ? void 0 : _authdetailsContext$i13.instcollections;
|
|
39471
39529
|
if (item.isshowntocustomers == 1) {
|
|
39472
39530
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
39473
39531
|
"class": "w-100"
|
|
39474
39532
|
}, ButtonDropdown(item, index, fetchedarray));
|
|
39475
39533
|
}
|
|
39476
39534
|
}))))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
39477
|
-
"class": (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
39535
|
+
"class": (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i14 = authdetailsContext.instinfo) === null || _authdetailsContext$i14 === void 0 || (_authdetailsContext$i14 = _authdetailsContext$i14.instcurrencies) === null || _authdetailsContext$i14 === void 0 ? void 0 : _authdetailsContext$i14.length) > 1 ? 'col-lg-8' : sectionproperties.btninsearch != 'Show' && sectionproperties.generalbtn_show == 'Show' ? 'col-xl-10 col-lg-9 flex-row d-flex align-items-center justify-content-start' : 'col-xl-12 col-lg-9 flex-row d-flex align-items-center justify-content-start'
|
|
39478
39536
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
39479
39537
|
"class": ' w-100 align-items-center ',
|
|
39480
39538
|
style: {
|
|
@@ -39509,7 +39567,7 @@ var Header8 = function Header8(props) {
|
|
|
39509
39567
|
paddingLeftprops: '25px',
|
|
39510
39568
|
paddingRightprops: '25px'
|
|
39511
39569
|
}
|
|
39512
|
-
})), authdetailsContext != undefined && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
39570
|
+
})), authdetailsContext != undefined && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i15 = authdetailsContext.instinfo) === null || _authdetailsContext$i15 === void 0 || (_authdetailsContext$i15 = _authdetailsContext$i15.instcurrencies) === null || _authdetailsContext$i15 === void 0 ? void 0 : _authdetailsContext$i15.length) > 1 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
39513
39571
|
"class": 'col-lg-2 d-flex align-items-center justify-content-end '
|
|
39514
39572
|
}, /*#__PURE__*/React__default["default"].createElement(Dropdown__default["default"], null, /*#__PURE__*/React__default["default"].createElement(Dropdown__default["default"].Toggle, null, /*#__PURE__*/React__default["default"].createElement("li", {
|
|
39515
39573
|
"class": ' d-flex align-items-center justify-content-center '
|
|
@@ -39521,8 +39579,8 @@ var Header8 = function Header8(props) {
|
|
|
39521
39579
|
"class": ' row m-0 w-100 d-flex align-items-center '
|
|
39522
39580
|
}, /*#__PURE__*/React__default["default"].createElement(FaMoneyBillWave.FaMoneyBillWave, null), /*#__PURE__*/React__default["default"].createElement("p", {
|
|
39523
39581
|
"class": "m-0 p-0 ml-2 mr-2"
|
|
39524
|
-
}, authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar), /*#__PURE__*/React__default["default"].createElement(MdKeyboardArrowDown.MdKeyboardArrowDown, null)))), /*#__PURE__*/React__default["default"].createElement(Dropdown__default["default"].Menu, null, authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
39525
|
-
var _authdetailsContext$
|
|
39582
|
+
}, authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar), /*#__PURE__*/React__default["default"].createElement(MdKeyboardArrowDown.MdKeyboardArrowDown, null)))), /*#__PURE__*/React__default["default"].createElement(Dropdown__default["default"].Menu, null, authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i16 = authdetailsContext.instinfo) === null || _authdetailsContext$i16 === void 0 || (_authdetailsContext$i16 = _authdetailsContext$i16.instcurrencies) === null || _authdetailsContext$i16 === void 0 ? void 0 : _authdetailsContext$i16.map(function (item, index) {
|
|
39583
|
+
var _authdetailsContext$i17;
|
|
39526
39584
|
return /*#__PURE__*/React__default["default"].createElement(Dropdown__default["default"].Item, {
|
|
39527
39585
|
onClick: function onClick() {
|
|
39528
39586
|
setcurrencyfunccontext(item);
|
|
@@ -39542,7 +39600,7 @@ var Header8 = function Header8(props) {
|
|
|
39542
39600
|
}
|
|
39543
39601
|
}, /*#__PURE__*/React__default["default"].createElement(FaMoneyBillWave.FaMoneyBillWave, null), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
39544
39602
|
"class": 'ml-2 mr-2'
|
|
39545
|
-
}, langdetect == 'en' ? item.currencyname_en : item.currencyname_ar)))), index != (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
39603
|
+
}, langdetect == 'en' ? item.currencyname_en : item.currencyname_ar)))), index != (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i17 = authdetailsContext.instinfo) === null || _authdetailsContext$i17 === void 0 || (_authdetailsContext$i17 = _authdetailsContext$i17.instcurrencies) === null || _authdetailsContext$i17 === void 0 ? void 0 : _authdetailsContext$i17.length) - 1 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
39546
39604
|
"class": "col-lg-12 p-0"
|
|
39547
39605
|
}, /*#__PURE__*/React__default["default"].createElement("hr", {
|
|
39548
39606
|
"class": "m-0"
|
|
@@ -52498,7 +52556,7 @@ var Allinonefooter = function Allinonefooter(props) {
|
|
|
52498
52556
|
style: {
|
|
52499
52557
|
position: 'fixed',
|
|
52500
52558
|
bottom: 0,
|
|
52501
|
-
background:
|
|
52559
|
+
background: 'white',
|
|
52502
52560
|
borderTop: '1px solid #ccc',
|
|
52503
52561
|
padding: '15px 0',
|
|
52504
52562
|
zIndex: 9999
|
|
@@ -66522,8 +66580,7 @@ var BackgroundImageWithTopContent = function BackgroundImageWithTopContent(props
|
|
|
66522
66580
|
}, langdetect == 'en' ? sectionproperties.generalbtn_content : sectionproperties.slideshow_btn_text_ar)))), sectionproperties.sectionstyletype == 'Style 2' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
66523
66581
|
"class": "row m-0 w-100 allcentered",
|
|
66524
66582
|
style: {
|
|
66525
|
-
zIndex: 2
|
|
66526
|
-
background: sectionproperties.outerbgcolor
|
|
66583
|
+
zIndex: 2
|
|
66527
66584
|
}
|
|
66528
66585
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
66529
66586
|
"class": "row m-0 w-100 allcentered"
|
|
@@ -71898,7 +71955,7 @@ var Freetextsection = function Freetextsection(props) {
|
|
|
71898
71955
|
fontWeight: sectionproperties.prodCatFontWeight,
|
|
71899
71956
|
color: sectionproperties.prodCatColor
|
|
71900
71957
|
}
|
|
71901
|
-
},
|
|
71958
|
+
}, "A breakthrough in dental care: the first in Egypt to offer medical and cosmetic dental coverage in one cost-efficient, high-quality packages. Panacea makes the dental experince personal, seamless, and accessible for everyone.")))), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i3 = authdetailsContext.instinfo) === null || _authdetailsContext$i3 === void 0 ? void 0 : _authdetailsContext$i3.contactinfo.instid) == '682c6a888d70e' && window.location.pathname == '/home' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
71902
71959
|
"class": "col-lg-12 p-0 allcentered d-flex flex-column pt-5 pb-5 px-sm-3",
|
|
71903
71960
|
style: {
|
|
71904
71961
|
// background: 'white',
|
|
@@ -75447,7 +75504,7 @@ var ServicesectionCenteredcards = function ServicesectionCenteredcards(props) {
|
|
|
75447
75504
|
style: {
|
|
75448
75505
|
textDecoration: 'underline'
|
|
75449
75506
|
}
|
|
75450
|
-
},
|
|
75507
|
+
}, 'More Details'))));
|
|
75451
75508
|
})))));
|
|
75452
75509
|
};
|
|
75453
75510
|
|
|
@@ -87208,30 +87265,27 @@ var ServiceCard = function ServiceCard(props) {
|
|
|
87208
87265
|
style: {
|
|
87209
87266
|
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
87210
87267
|
}
|
|
87211
|
-
}, plainString(langdetect == 'en' ? item.shortdescription : item.shortdescription))), sectionproperties.showfeatures == 'Show' &&
|
|
87212
|
-
|
|
87213
|
-
|
|
87214
|
-
|
|
87215
|
-
|
|
87216
|
-
|
|
87217
|
-
|
|
87218
|
-
|
|
87219
|
-
|
|
87220
|
-
|
|
87221
|
-
|
|
87222
|
-
|
|
87223
|
-
|
|
87224
|
-
|
|
87225
|
-
|
|
87226
|
-
|
|
87227
|
-
|
|
87228
|
-
|
|
87229
|
-
|
|
87230
|
-
|
|
87231
|
-
|
|
87232
|
-
}
|
|
87233
|
-
}, langdetect == 'en' ? fitem === null || fitem === void 0 ? void 0 : fitem.value_en : fitem === null || fitem === void 0 ? void 0 : fitem.value_ar));
|
|
87234
|
-
})))))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
87268
|
+
}, plainString(langdetect == 'en' ? item.shortdescription : item.shortdescription))), sectionproperties.showfeatures == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
87269
|
+
"class": "text-start col-lg-12 p-0",
|
|
87270
|
+
style: {
|
|
87271
|
+
height: 40
|
|
87272
|
+
}
|
|
87273
|
+
}, /*#__PURE__*/React__default["default"].createElement(Imagekitimagecomp, {
|
|
87274
|
+
urlEndpoint: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint,
|
|
87275
|
+
publicKey: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimagepublickey,
|
|
87276
|
+
path: item === null || item === void 0 ? void 0 : item.feature_image_url,
|
|
87277
|
+
loading: "lazy",
|
|
87278
|
+
style: {
|
|
87279
|
+
maxWidth: '50%',
|
|
87280
|
+
maxHeight: '50%'
|
|
87281
|
+
}
|
|
87282
|
+
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
87283
|
+
"class": "text-capitalize mx-2",
|
|
87284
|
+
style: {
|
|
87285
|
+
color: sectionproperties.featurecolor,
|
|
87286
|
+
fontSize: sectionproperties.featurefontsize
|
|
87287
|
+
}
|
|
87288
|
+
}, (item === null || item === void 0 ? void 0 : item.productfeature) != undefined && (item === null || item === void 0 ? void 0 : item.productfeature) != null ? item === null || item === void 0 ? void 0 : item.productfeature : '')))))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
87235
87289
|
"class": "col-lg-12 p-0"
|
|
87236
87290
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
87237
87291
|
"class": "row w-100 m-0 d-flex"
|