tabexseriescomponents 0.2.901 → 0.2.902
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 +318 -246
- package/dist/index.esm.js +318 -246
- package/dist/index.umd.js +318 -246
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -3085,7 +3085,7 @@ var ProductReviews = function ProductReviews(props) {
|
|
|
3085
3085
|
function ownKeys$2A(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; }
|
|
3086
3086
|
function _objectSpread$2A(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2A(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2A(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
3087
3087
|
var Product_itemtype = function Product_itemtype(props) {
|
|
3088
|
-
var _authdetailsContext$i, _authdetailsContext$i2, _authdetailsContext$i4, _authdetailsContext$i5, _authdetailsContext$i6, _fetchProductInfoQuer11, _fetchProductInfoQuer12, _fetchProductInfoQuer13, _fetchProductInfoQuer14, _fetchProductInfoQuer15, _fetchProductInfoQuer16, _fetchProductInfoQuer17, _fetchProductInfoQuer18, _fetchProductInfoQuer19, _fetchProductInfoQuer20, _fetchProductInfoQuer21, _fetchProductInfoQuer22, _fetchProductInfoQuer23, _fetchProductInfoQuer24, _fetchProductInfoQuer25, _fetchProductInfoQuer26, _fetchProductInfoQuer27, _fetchProductInfoQuer28, _authdetailsContext$i7,
|
|
3088
|
+
var _authdetailsContext$i, _authdetailsContext$i2, _authdetailsContext$i4, _authdetailsContext$i5, _authdetailsContext$i6, _fetchProductInfoQuer11, _fetchProductInfoQuer12, _fetchProductInfoQuer13, _fetchProductInfoQuer14, _fetchProductInfoQuer15, _fetchProductInfoQuer16, _fetchProductInfoQuer17, _fetchProductInfoQuer18, _fetchProductInfoQuer19, _fetchProductInfoQuer20, _fetchProductInfoQuer21, _fetchProductInfoQuer22, _fetchProductInfoQuer23, _fetchProductInfoQuer24, _fetchProductInfoQuer25, _fetchProductInfoQuer26, _fetchProductInfoQuer27, _fetchProductInfoQuer28, _authdetailsContext$i7, _authdetailsContext$i0, _authdetailsContext$i1, _authdetailsContext$i10, _fetchProductInfoQuer32, _fetchProductInfoQuer33, _fetchProductInfoQuer34, _fetchProductInfoQuer35, _fetchProductInfoQuer36, _fetchProductInfoQuer37, _fetchProductInfoQuer38, _fetchProductInfoQuer39, _fetchProductInfoQuer40, _fetchProductInfoQuer41, _fetchProductInfoQuer42, _fetchProductInfoQuer43, _fetchProductInfoQuer44, _fetchProductInfoQuer45, _fetchProductInfoQuer47, _fetchProductInfoQuer48, _fetchProductInfoQuer49, _fetchProductInfoQuer51, _fetchProductInfoQuer52, _fetchProductInfoQuer53, _fetchProductInfoQuer54, _fetchProductInfoQuer55, _fetchProductInfoQuer56, _fetchProductInfoQuer57, _fetchProductInfoQuer58, _fetchProductInfoQuer59, _returnpolicyobj, _returnpolicyobj2, _returnpolicyobj3, _returnpolicyobj4, _returnpolicyobj5, _returnpolicyobj6, _returnpolicyobj7, _returnpolicyobj8, _fetchProductInfoQuer60, _fetchProductInfoQuer61, _fetchProductInfoQuer62, _fetchProductInfoQuer63, _fetchProductInfoQuer64, _fetchProductInfoQuer65, _authdetailsContext$i11, _fetchProductInfoQuer66, _fetchProductInfoQuer67, _fetchProductInfoQuer68, _fetchProductInfoQuer69, _fetchProductInfoQuer70, _fetchProductInfoQuer71, _fetchProductInfoQuer72, _fetchProductInfoQuer73, _fetchProductInfoQuer74, _fetchProductInfoQuer75, _fetchProductInfoQuer76, _fetchProductInfoQuer77, _fetchProductInfoQuer78, _fetchProductInfoQuer79, _authdetailsContext$i12, _fetchProductInfoQuer82, _fetchProductInfoQuer83, _fetchProductInfoQuer84, _fetchProductInfoQuer85, _fetchProductInfoQuer86, _fetchProductInfoQuer87, _fetchProductInfoQuer88, _fetchProductInfoQuer89, _fetchProductInfoQuer90, _fetchProductInfoQuer91, _fetchProductInfoQuer92, _fetchProductInfoQuer93, _fetchProductInfoQuer94, _fetchProductInfoQuer95, _fetchProductInfoQuer97, _fetchProductInfoQuer98, _fetchProductInfoQuer99, _fetchProductInfoQuer101, _fetchProductInfoQuer102, _fetchProductInfoQuer103, _fetchProductInfoQuer104, _fetchProductInfoQuer105, _fetchProductInfoQuer106, _fetchProductInfoQuer107, _fetchProductInfoQuer108, _fetchProductInfoQuer109, _returnpolicyobj9, _returnpolicyobj0, _returnpolicyobj1, _returnpolicyobj10, _returnpolicyobj11, _returnpolicyobj12, _returnpolicyobj13, _returnpolicyobj14, _fetchProductInfoQuer110, _fetchProductInfoQuer111, _fetchProductInfoQuer112, _fetchProductInfoQuer113, _fetchProductInfoQuer114, _fetchProductInfoQuer115, _authdetailsContext$i14, _authdetailsContext$i15, _fetchProductInfoQuer116, _fetchProductInfoQuer117, _fetchProductInfoQuer118, _fetchProductInfoQuer119, _fetchProductInfoQuer120, _fetchProductInfoQuer121, _fetchProductInfoQuer122, _fetchProductInfoQuer123, _authdetailsContext$i16, _fetchProductInfoQuer124, _fetchProductInfoQuer125, _fetchProductInfoQuer126, _fetchProductInfoQuer127, _fetchProductInfoQuer128, _fetchProductInfoQuer131, _fetchProductInfoQuer132, _authdetailsContext$i17, _fetchProductInfoQuer133, _fetchProductInfoQuer134, _fetchProductInfoQuer135, _fetchProductInfoQuer136, _fetchProductInfoQuer137, _fetchProductInfoQuer138, _fetchProductInfoQuer139, _fetchProductInfoQuer142, _fetchProductInfoQuer143, _sizeguideimage$, _authdetailsContext$i18, _fetchProductInfoQuer145, _fetchProductInfoQuer146;
|
|
3089
3089
|
var lang = props.actions.lang;
|
|
3090
3090
|
var actions = props.actions;
|
|
3091
3091
|
var langdetect = props.actions.langdetect;
|
|
@@ -3901,7 +3901,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
3901
3901
|
cursor: sectionproperties.vendornameclickable == 'Yes' ? 'pointer' : (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i7 = authdetailsContext.instinfo) === null || _authdetailsContext$i7 === void 0 ? void 0 : _authdetailsContext$i7.contactinfo.instid) == '683c163d7f996' ? 'pointer' : ''
|
|
3902
3902
|
},
|
|
3903
3903
|
onClick: function onClick() {
|
|
3904
|
-
var _authdetailsContext$i8;
|
|
3904
|
+
var _authdetailsContext$i8, _authdetailsContext$i9;
|
|
3905
3905
|
if (sectionproperties.vendornameclickable == 'Yes') {
|
|
3906
3906
|
var _fetchProductInfoQuer29;
|
|
3907
3907
|
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, encodeURIComponent(JSON.stringify({
|
|
@@ -3912,21 +3912,27 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
3912
3912
|
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, encodeURIComponent(JSON.stringify({
|
|
3913
3913
|
vendorsarr: [fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer30 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer30 === void 0 || (_fetchProductInfoQuer30 = _fetchProductInfoQuer30.data) === null || _fetchProductInfoQuer30 === void 0 || (_fetchProductInfoQuer30 = _fetchProductInfoQuer30.productinfo) === null || _fetchProductInfoQuer30 === void 0 || (_fetchProductInfoQuer30 = _fetchProductInfoQuer30.vendorinfo) === null || _fetchProductInfoQuer30 === void 0 ? void 0 : _fetchProductInfoQuer30.vendorid]
|
|
3914
3914
|
})));
|
|
3915
|
+
} else if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i9 = authdetailsContext.instinfo) === null || _authdetailsContext$i9 === void 0 ? void 0 : _authdetailsContext$i9.contactinfo.instid) == '67f3c23abb18f') {
|
|
3916
|
+
var _fetchProductInfoQuer31;
|
|
3917
|
+
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, encodeURIComponent(JSON.stringify({
|
|
3918
|
+
vendorsarr: [fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer31 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer31 === void 0 || (_fetchProductInfoQuer31 = _fetchProductInfoQuer31.data) === null || _fetchProductInfoQuer31 === void 0 || (_fetchProductInfoQuer31 = _fetchProductInfoQuer31.productinfo) === null || _fetchProductInfoQuer31 === void 0 || (_fetchProductInfoQuer31 = _fetchProductInfoQuer31.vendorinfo) === null || _fetchProductInfoQuer31 === void 0 ? void 0 : _fetchProductInfoQuer31.vendorid]
|
|
3919
|
+
})));
|
|
3915
3920
|
}
|
|
3916
3921
|
}
|
|
3917
|
-
}, langdetect == 'en' ? sectionproperties.vendortitleen : sectionproperties.vendortitlear, ":",
|
|
3922
|
+
}, (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i0 = authdetailsContext.instinfo) === null || _authdetailsContext$i0 === void 0 ? void 0 : _authdetailsContext$i0.contactinfo.instid) != '683c163d7f996' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i1 = authdetailsContext.instinfo) === null || _authdetailsContext$i1 === void 0 ? void 0 : _authdetailsContext$i1.contactinfo.instid) != '67f3c23abb18f' && /*#__PURE__*/React.createElement("span", null, " ", langdetect == 'en' ? sectionproperties.vendortitleen : sectionproperties.vendortitlear, ": "), /*#__PURE__*/React.createElement("span", {
|
|
3918
3923
|
style: {
|
|
3919
|
-
fontWeight: 600
|
|
3924
|
+
fontWeight: 600,
|
|
3925
|
+
textDecoration: (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i10 = authdetailsContext.instinfo) === null || _authdetailsContext$i10 === void 0 ? void 0 : _authdetailsContext$i10.contactinfo.instid) == '67f3c23abb18f' ? 'underline' : 'none'
|
|
3920
3926
|
}
|
|
3921
|
-
}, fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
3922
|
-
"class": sectionproperties.deliverytimeshow == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
3923
|
-
}, ProductsSKUContainer()), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
3927
|
+
}, 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 || (_fetchProductInfoQuer32 = _fetchProductInfoQuer32.vendorinfo) === null || _fetchProductInfoQuer32 === void 0 ? void 0 : _fetchProductInfoQuer32.vendorname))), sectionproperties.showSKU == 'Show' && sectionproperties.skuposition == 'Bottom' && /*#__PURE__*/React.createElement("div", {
|
|
3928
|
+
"class": sectionproperties.deliverytimeshow == 'Show' && (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.deliverydatetext) != null ? 'col-lg-12 p-0 mb-2 d-flex justify-content-start' : 'col-lg-12 p-0 mb-3 d-flex justify-content-start'
|
|
3929
|
+
}, ProductsSKUContainer()), (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.currentquantity) < 1 && sectionproperties.showoutofstock == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer35 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer35 === void 0 || (_fetchProductInfoQuer35 = _fetchProductInfoQuer35.data) === null || _fetchProductInfoQuer35 === void 0 || (_fetchProductInfoQuer35 = _fetchProductInfoQuer35.productinfo) === null || _fetchProductInfoQuer35 === void 0 ? void 0 : _fetchProductInfoQuer35.quantavailtype) == 'limit' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer36 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer36 === void 0 || (_fetchProductInfoQuer36 = _fetchProductInfoQuer36.data) === null || _fetchProductInfoQuer36 === void 0 || (_fetchProductInfoQuer36 = _fetchProductInfoQuer36.productinfo) === null || _fetchProductInfoQuer36 === void 0 ? void 0 : _fetchProductInfoQuer36.hasvariants) == 0 && /*#__PURE__*/React.createElement("div", {
|
|
3924
3930
|
"class": "col-lg-12 p-0 d-flex justify-content-start mb-2"
|
|
3925
3931
|
}, /*#__PURE__*/React.createElement("div", {
|
|
3926
3932
|
"class": "".concat(productinfo_cssstyles.outstockbadge) + ' allcentered '
|
|
3927
3933
|
}, /*#__PURE__*/React.createElement("p", {
|
|
3928
3934
|
"class": "m-0 p-0"
|
|
3929
|
-
}, langdetect == 'en' ? sectionproperties.outstock_contenten : sectionproperties.outstock_contentar))), sectionproperties.deliverytimeshow == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
3935
|
+
}, langdetect == 'en' ? sectionproperties.outstock_contenten : sectionproperties.outstock_contentar))), sectionproperties.deliverytimeshow == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer37 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer37 === void 0 || (_fetchProductInfoQuer37 = _fetchProductInfoQuer37.data) === null || _fetchProductInfoQuer37 === void 0 || (_fetchProductInfoQuer37 = _fetchProductInfoQuer37.productinfo) === null || _fetchProductInfoQuer37 === void 0 ? void 0 : _fetchProductInfoQuer37.deliverydatetext) != null && /*#__PURE__*/React.createElement("div", {
|
|
3930
3936
|
"class": "mb-4 col-lg-12 allcentered",
|
|
3931
3937
|
style: {
|
|
3932
3938
|
width: '100%',
|
|
@@ -3947,7 +3953,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
3947
3953
|
textAlign: langdetect == 'en' ? 'left' : 'right',
|
|
3948
3954
|
color: sectionproperties.deliverytimecontainercolor
|
|
3949
3955
|
}
|
|
3950
|
-
}, sectionproperties.showdeliverytitle == 'Show' && /*#__PURE__*/React.createElement("span", null, langdetect == 'en' ? sectionproperties.deliverycontent_en : sectionproperties.deliverycontent_ar, ": "), ' ', fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
3956
|
+
}, sectionproperties.showdeliverytitle == 'Show' && /*#__PURE__*/React.createElement("span", null, langdetect == 'en' ? sectionproperties.deliverycontent_en : sectionproperties.deliverycontent_ar, ": "), ' ', fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer38 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer38 === void 0 || (_fetchProductInfoQuer38 = _fetchProductInfoQuer38.data) === null || _fetchProductInfoQuer38 === void 0 || (_fetchProductInfoQuer38 = _fetchProductInfoQuer38.productinfo) === null || _fetchProductInfoQuer38 === void 0 ? void 0 : _fetchProductInfoQuer38.deliverydatetext)), sectionproperties.defaultpricingposition != 'Under Name' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer39 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer39 === void 0 || (_fetchProductInfoQuer39 = _fetchProductInfoQuer39.data) === null || _fetchProductInfoQuer39 === void 0 || (_fetchProductInfoQuer39 = _fetchProductInfoQuer39.productinfo) === null || _fetchProductInfoQuer39 === void 0 ? void 0 : _fetchProductInfoQuer39.isproducttobesold) == 1 && /*#__PURE__*/React.createElement(ProductHeaderPricing, {
|
|
3951
3957
|
actions: props.actions
|
|
3952
3958
|
}), sectionproperties.descriptionposition != 'Under Name' && sectionproperties.descriptionposition == 'Top' && sectionproperties.descriptionstyle == 'Style 1' && /*#__PURE__*/React.createElement("div", {
|
|
3953
3959
|
"class": "col-lg-12 p-0"
|
|
@@ -3988,7 +3994,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
3988
3994
|
marginTop: sectionproperties.ctabuttnnsmarginvertical + 'px',
|
|
3989
3995
|
marginBottom: sectionproperties.ctabuttnnsmarginvertical + 'px'
|
|
3990
3996
|
}
|
|
3991
|
-
}, (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
3997
|
+
}, (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer40 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer40 === void 0 || (_fetchProductInfoQuer40 = _fetchProductInfoQuer40.data) === null || _fetchProductInfoQuer40 === void 0 || (_fetchProductInfoQuer40 = _fetchProductInfoQuer40.productinfo) === null || _fetchProductInfoQuer40 === void 0 ? void 0 : _fetchProductInfoQuer40.isproducttobesold) == 1 && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer41 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer41 === void 0 || (_fetchProductInfoQuer41 = _fetchProductInfoQuer41.data) === null || _fetchProductInfoQuer41 === void 0 || (_fetchProductInfoQuer41 = _fetchProductInfoQuer41.productinfo) === null || _fetchProductInfoQuer41 === void 0 ? void 0 : _fetchProductInfoQuer41.isproducthasquantitychange) == 1 && sectionproperties.quantitybtn_show == 'Show' && /*#__PURE__*/React.createElement("div", {
|
|
3992
3998
|
className: "col-lg-12 p-0 mb-2 d-flex justofy-content-start"
|
|
3993
3999
|
}, /*#__PURE__*/React.createElement("p", {
|
|
3994
4000
|
className: "m-0 p-0",
|
|
@@ -4005,11 +4011,11 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
4005
4011
|
style: {
|
|
4006
4012
|
justifyContent: sectionproperties.cartbtncentered == 'Centered' ? 'center' : 'start'
|
|
4007
4013
|
}
|
|
4008
|
-
}, sectionproperties.quantitybtn_show == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
4014
|
+
}, sectionproperties.quantitybtn_show == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer42 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer42 === void 0 || (_fetchProductInfoQuer42 = _fetchProductInfoQuer42.data) === null || _fetchProductInfoQuer42 === void 0 || (_fetchProductInfoQuer42 = _fetchProductInfoQuer42.productinfo) === null || _fetchProductInfoQuer42 === void 0 ? void 0 : _fetchProductInfoQuer42.isproducttobesold) == 1 && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer43 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer43 === void 0 || (_fetchProductInfoQuer43 = _fetchProductInfoQuer43.data) === null || _fetchProductInfoQuer43 === void 0 || (_fetchProductInfoQuer43 = _fetchProductInfoQuer43.productinfo) === null || _fetchProductInfoQuer43 === void 0 ? void 0 : _fetchProductInfoQuer43.isproducthasquantitychange) == 1 && QuantityButton(), sectionproperties.featuresposition != 'Under Name' && sectionproperties.featuresposition == 'Under Description' && sectionproperties.featurestyle != 'Table' && /*#__PURE__*/React.createElement("div", {
|
|
4009
4015
|
"class": "col-lg-12 text-start p-md-0"
|
|
4010
4016
|
}, /*#__PURE__*/React.createElement("div", {
|
|
4011
4017
|
className: "row m-0 w-100"
|
|
4012
|
-
}, fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
4018
|
+
}, fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer44 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer44 === void 0 || (_fetchProductInfoQuer44 = _fetchProductInfoQuer44.data) === null || _fetchProductInfoQuer44 === void 0 || (_fetchProductInfoQuer44 = _fetchProductInfoQuer44.productinfo) === null || _fetchProductInfoQuer44 === void 0 || (_fetchProductInfoQuer44 = _fetchProductInfoQuer44.productfeatures) === null || _fetchProductInfoQuer44 === void 0 ? void 0 : _fetchProductInfoQuer44.map(function (fitem, findex) {
|
|
4013
4019
|
return /*#__PURE__*/React.createElement("div", {
|
|
4014
4020
|
"class": ' col-md-12 p-0 mb-3 mt-2 col-lg-' + sectionproperties.featuresnumcols
|
|
4015
4021
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -4047,12 +4053,12 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
4047
4053
|
fontSize: sectionproperties.featurevaluefontsize
|
|
4048
4054
|
}
|
|
4049
4055
|
}, langdetect == 'en' ? fitem === null || fitem === void 0 ? void 0 : fitem.value_en : fitem === null || fitem === void 0 ? void 0 : fitem.value_ar))));
|
|
4050
|
-
}))), sectionproperties.cartbtnalone == 'Besides Other Buttons' && sectionproperties.cartBtnShow == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
4056
|
+
}))), sectionproperties.cartbtnalone == 'Besides Other Buttons' && sectionproperties.cartBtnShow == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer45 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer45 === void 0 || (_fetchProductInfoQuer45 = _fetchProductInfoQuer45.data) === null || _fetchProductInfoQuer45 === void 0 || (_fetchProductInfoQuer45 = _fetchProductInfoQuer45.productinfo) === null || _fetchProductInfoQuer45 === void 0 ? void 0 : _fetchProductInfoQuer45.isproducttobesold) == 1 && /*#__PURE__*/React.createElement("button", {
|
|
4051
4057
|
className: "".concat(productinfo_cssstyles.cart_btn, " ") + ' ml-2 mr-2 d-flex align-items-center justify-content-center mb-sm-2 ',
|
|
4052
4058
|
onClick: function onClick() {
|
|
4053
4059
|
if (fetchProductInfoQueryContext.data.data.productinfo.product_calltoaction == 'Call') {
|
|
4054
|
-
var
|
|
4055
|
-
window.open('tel:' + ((
|
|
4060
|
+
var _fetchProductInfoQuer46;
|
|
4061
|
+
window.open('tel:' + ((_fetchProductInfoQuer46 = fetchProductInfoQueryContext.data.data.productinfo) === null || _fetchProductInfoQuer46 === void 0 ? void 0 : _fetchProductInfoQuer46.product_phonenumber), '_blank');
|
|
4056
4062
|
} else {
|
|
4057
4063
|
if (fetchProductInfoQueryContext.data.data.productinfo.maximumproductquant >= addtocardpayloadobj.quantity && fetchProductInfoQueryContext.data.data.productinfo.minimumproductquant <= addtocardpayloadobj.quantity) {
|
|
4058
4064
|
addtocartfunc();
|
|
@@ -4083,7 +4089,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
4083
4089
|
size: sectionproperties.cartBtn_iconFontSize
|
|
4084
4090
|
}), sectionproperties.carticonstyle == 'Shopping cart 2' && /*#__PURE__*/React.createElement(MdAddShoppingCart, {
|
|
4085
4091
|
size: sectionproperties.cartBtn_iconFontSize
|
|
4086
|
-
})), langdetect == 'en' ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
4092
|
+
})), langdetect == 'en' ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer47 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer47 === void 0 || (_fetchProductInfoQuer47 = _fetchProductInfoQuer47.data) === null || _fetchProductInfoQuer47 === void 0 || (_fetchProductInfoQuer47 = _fetchProductInfoQuer47.productinfo) === null || _fetchProductInfoQuer47 === void 0 ? void 0 : _fetchProductInfoQuer47.productactionbuttontext_en : fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer48 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer48 === void 0 || (_fetchProductInfoQuer48 = _fetchProductInfoQuer48.data) === null || _fetchProductInfoQuer48 === void 0 || (_fetchProductInfoQuer48 = _fetchProductInfoQuer48.productinfo) === null || _fetchProductInfoQuer48 === void 0 ? void 0 : _fetchProductInfoQuer48.productactionbuttontext_ar), AddtoCartMutationContext.isLoading && /*#__PURE__*/React.createElement("div", {
|
|
4087
4093
|
className: ' d-flex align-items-center justify-content-center '
|
|
4088
4094
|
}, /*#__PURE__*/React.createElement(CircularProgress, {
|
|
4089
4095
|
color: sectionproperties.cartBtnTextcolor,
|
|
@@ -4128,7 +4134,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
4128
4134
|
style: {
|
|
4129
4135
|
fontSize: sectionproperties.favBtnTextfontsize + 'px'
|
|
4130
4136
|
}
|
|
4131
|
-
}, langdetect == 'en' ? sectionproperties.favbtnaddedcontent_en : sectionproperties.favbtnaddedcontent_ar))), sectionproperties.cartbtnalone == 'Alone' && sectionproperties.cartBtnShow == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
4137
|
+
}, langdetect == 'en' ? sectionproperties.favbtnaddedcontent_en : sectionproperties.favbtnaddedcontent_ar))), sectionproperties.cartbtnalone == 'Alone' && sectionproperties.cartBtnShow == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer49 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer49 === void 0 || (_fetchProductInfoQuer49 = _fetchProductInfoQuer49.data) === null || _fetchProductInfoQuer49 === void 0 || (_fetchProductInfoQuer49 = _fetchProductInfoQuer49.productinfo) === null || _fetchProductInfoQuer49 === void 0 ? void 0 : _fetchProductInfoQuer49.isproducttobesold) == 1 && /*#__PURE__*/React.createElement("div", {
|
|
4132
4138
|
"class": "row m-0 w-100 mt-3",
|
|
4133
4139
|
style: {
|
|
4134
4140
|
overflow: 'hidden'
|
|
@@ -4140,8 +4146,8 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
4140
4146
|
},
|
|
4141
4147
|
onClick: function onClick() {
|
|
4142
4148
|
if (fetchProductInfoQueryContext.data.data.productinfo.product_calltoaction == 'Call') {
|
|
4143
|
-
var
|
|
4144
|
-
window.open('tel:' + ((
|
|
4149
|
+
var _fetchProductInfoQuer50;
|
|
4150
|
+
window.open('tel:' + ((_fetchProductInfoQuer50 = fetchProductInfoQueryContext.data.data.productinfo) === null || _fetchProductInfoQuer50 === void 0 ? void 0 : _fetchProductInfoQuer50.product_phonenumber), '_blank');
|
|
4145
4151
|
} else {
|
|
4146
4152
|
if (fetchProductInfoQueryContext.data.data.productinfo.maximumproductquant >= addtocardpayloadobj.quantity && fetchProductInfoQueryContext.data.data.productinfo.minimumproductquant <= addtocardpayloadobj.quantity) {
|
|
4147
4153
|
addtocartfunc();
|
|
@@ -4172,7 +4178,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
4172
4178
|
size: sectionproperties.cartBtn_iconFontSize
|
|
4173
4179
|
}), sectionproperties.carticonstyle == 'Shopping cart 2' && /*#__PURE__*/React.createElement(MdAddShoppingCart, {
|
|
4174
4180
|
size: sectionproperties.cartBtn_iconFontSize
|
|
4175
|
-
})), langdetect == 'en' ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
4181
|
+
})), langdetect == 'en' ? 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.productactionbuttontext_en : 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.productactionbuttontext_ar), AddtoCartMutationContext.isLoading && /*#__PURE__*/React.createElement("div", {
|
|
4176
4182
|
className: ' d-flex align-items-center justify-content-center '
|
|
4177
4183
|
}, /*#__PURE__*/React.createElement(CircularProgress, {
|
|
4178
4184
|
color: sectionproperties.cartBtnTextcolor,
|
|
@@ -4237,7 +4243,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
4237
4243
|
style: {
|
|
4238
4244
|
width: sectionproperties.cartBtnWidth + '%'
|
|
4239
4245
|
}
|
|
4240
|
-
}, langdetect == 'en' ? sectionproperties.directwabtntitleen : sectionproperties.directwabtntitlear))), sectionproperties.cartbtnalone == 'Alone' && sectionproperties.showbuynowbtn == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
4246
|
+
}, langdetect == 'en' ? sectionproperties.directwabtntitleen : sectionproperties.directwabtntitlear))), sectionproperties.cartbtnalone == 'Alone' && sectionproperties.showbuynowbtn == 'Show' && (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.isproducttobesold) == 1 && /*#__PURE__*/React.createElement("div", {
|
|
4241
4247
|
"class": "row m-0 w-100 mt-3",
|
|
4242
4248
|
style: {
|
|
4243
4249
|
overflow: 'hidden'
|
|
@@ -4273,7 +4279,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
4273
4279
|
"class": "col-lg-12 text-start p-md-0"
|
|
4274
4280
|
}, /*#__PURE__*/React.createElement("div", {
|
|
4275
4281
|
className: "row m-0 w-100"
|
|
4276
|
-
}, fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
4282
|
+
}, 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 || (_fetchProductInfoQuer54 = _fetchProductInfoQuer54.productfeatures) === null || _fetchProductInfoQuer54 === void 0 ? void 0 : _fetchProductInfoQuer54.map(function (fitem, findex) {
|
|
4277
4283
|
return /*#__PURE__*/React.createElement("div", {
|
|
4278
4284
|
"class": ' col-md-12 p-0 mb-3 mt-2 col-lg-' + sectionproperties.featuresnumcols
|
|
4279
4285
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -4311,19 +4317,19 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
4311
4317
|
fontSize: sectionproperties.featurevaluefontsize
|
|
4312
4318
|
}
|
|
4313
4319
|
}, langdetect == 'en' ? fitem === null || fitem === void 0 ? void 0 : fitem.value_en : fitem === null || fitem === void 0 ? void 0 : fitem.value_ar))));
|
|
4314
|
-
}))), sectionproperties.showsizeguidebtn == 'Show' && sizeguideimage.length != 0 && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
4320
|
+
}))), sectionproperties.showsizeguidebtn == 'Show' && sizeguideimage.length != 0 && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer55 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer55 === void 0 || (_fetchProductInfoQuer55 = _fetchProductInfoQuer55.data) === null || _fetchProductInfoQuer55 === void 0 || (_fetchProductInfoQuer55 = _fetchProductInfoQuer55.productinfo) === null || _fetchProductInfoQuer55 === void 0 ? void 0 : _fetchProductInfoQuer55.hasvariants) == 0 && /*#__PURE__*/React.createElement("div", {
|
|
4315
4321
|
"class": "col-12 text-start mt-3"
|
|
4316
4322
|
}, /*#__PURE__*/React.createElement("p", {
|
|
4317
4323
|
"class": productinfo_cssstyles.sizeguidebtn + ' m-0 p-0 cursor-pointer mb-auto ',
|
|
4318
4324
|
onClick: function onClick() {
|
|
4319
4325
|
setopensizeguidemodal(true);
|
|
4320
4326
|
}
|
|
4321
|
-
}, langdetect == 'en' ? sectionproperties.sizeguidecontentenglish : sectionproperties.sizeguidecontentarabic)), sectionproperties.showsizeguidebtn == 'Show' && sizeguideimage.length != 0 && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
4327
|
+
}, langdetect == 'en' ? sectionproperties.sizeguidecontentenglish : sectionproperties.sizeguidecontentarabic)), sectionproperties.showsizeguidebtn == 'Show' && sizeguideimage.length != 0 && (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.hasvariants) == 0 && /*#__PURE__*/React.createElement("div", {
|
|
4322
4328
|
"class": "col-lg-12 col-md-12 my-3 p-md-0"
|
|
4323
4329
|
}, /*#__PURE__*/React.createElement("hr", {
|
|
4324
4330
|
"class": "m-0"
|
|
4325
4331
|
})), sectionproperties.descriptionstyle == 'Style 2' && /*#__PURE__*/React.createElement("div", {
|
|
4326
|
-
"class": sectionproperties.showsizeguidebtn == 'Show' && sizeguideimage.length != 0 && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
4332
|
+
"class": sectionproperties.showsizeguidebtn == 'Show' && sizeguideimage.length != 0 && (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.hasvariants) == 0 ? 'col-lg-12 col-md-12 p-md-0' : 'col-lg-12 col-md-12 p-md-0 mt-3'
|
|
4327
4333
|
}, sectionproperties.descriptioncollapseopen == 'Yes' && /*#__PURE__*/React.createElement(Accordion, {
|
|
4328
4334
|
allowMultipleExpanded: true,
|
|
4329
4335
|
allowZeroExpanded: true,
|
|
@@ -4371,7 +4377,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
4371
4377
|
color: sectionproperties.prodCatColor
|
|
4372
4378
|
},
|
|
4373
4379
|
dangerouslySetInnerHTML: {
|
|
4374
|
-
__html: langdetect == 'en' ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
4380
|
+
__html: langdetect == 'en' ? 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.short_description_en : 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 ? void 0 : _fetchProductInfoQuer59.short_description_ar
|
|
4375
4381
|
}
|
|
4376
4382
|
})))))), sectionproperties.descriptionstyle == 'Style 2' && sectionproperties.showshortdescription == 'Show' && /*#__PURE__*/React.createElement("div", {
|
|
4377
4383
|
"class": "col-lg-12 col-md-12 my-3 p-md-0"
|
|
@@ -4545,7 +4551,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
4545
4551
|
})
|
|
4546
4552
|
// actions={props.actions}
|
|
4547
4553
|
// srcfromprops={'collapsepinfo'}
|
|
4548
|
-
})))))), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
4554
|
+
})))))), (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 ? void 0 : _fetchProductInfoQuer60.isproducttobesold) == 1 && sectionproperties.showtotalsection == 'Show' && /*#__PURE__*/React.createElement("div", {
|
|
4549
4555
|
className: "col-lg-12 p-0 mb-3"
|
|
4550
4556
|
}, /*#__PURE__*/React.createElement("div", {
|
|
4551
4557
|
className: "row m-0 w-100 d-flex flex-row"
|
|
@@ -4568,7 +4574,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
4568
4574
|
}
|
|
4569
4575
|
}, /*#__PURE__*/React.createElement("span", {
|
|
4570
4576
|
className: langdetect == 'en' ? ' d-flex align-items-center justify-content-end wordbreak text-right ' : ' d-flex align-items-center justify-content-end wordbreak text-left '
|
|
4571
|
-
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', variantindexcompleted != undefined && variantindexcompleted.length == 0 && fetchProductInfoQueryContext.data.data.productinfo.hassale == 0 && parseFloat(getprice_discountpriceprops('defaultprice', 1, variantindexcompleted)).toFixed(2), variantindexcompleted != undefined && variantindexcompleted.length == 0 && fetchProductInfoQueryContext.data.data.productinfo.hassale == 1 && parseFloat(getprice_discountpriceprops('defaultsaleprice', 1, variantindexcompleted)).toFixed(2), variantindexcompleted != undefined && variantindexcompleted.length != 0 && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
4577
|
+
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', variantindexcompleted != undefined && variantindexcompleted.length == 0 && fetchProductInfoQueryContext.data.data.productinfo.hassale == 0 && parseFloat(getprice_discountpriceprops('defaultprice', 1, variantindexcompleted)).toFixed(2), variantindexcompleted != undefined && variantindexcompleted.length == 0 && fetchProductInfoQueryContext.data.data.productinfo.hassale == 1 && parseFloat(getprice_discountpriceprops('defaultsaleprice', 1, variantindexcompleted)).toFixed(2), variantindexcompleted != undefined && variantindexcompleted.length != 0 && (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 || (_fetchProductInfoQuer61 = _fetchProductInfoQuer61.variants[variantindexcompleted]) === null || _fetchProductInfoQuer61 === void 0 ? void 0 : _fetchProductInfoQuer61.hassale) == 1 && parseFloat(getprice_discountpriceprops('defaultsaleprice', 1, variantindexcompleted)).toFixed(2), variantindexcompleted != undefined && variantindexcompleted.length != 0 && (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 || (_fetchProductInfoQuer62 = _fetchProductInfoQuer62.variants[variantindexcompleted]) === null || _fetchProductInfoQuer62 === void 0 ? void 0 : _fetchProductInfoQuer62.hassale) == 0 && parseFloat(getprice_discountpriceprops('defaultprice', 1, variantindexcompleted)).toFixed(2), langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar)), /*#__PURE__*/React.createElement("p", {
|
|
4572
4578
|
className: 'm-0 p-0 linethrough wordbreak',
|
|
4573
4579
|
style: {
|
|
4574
4580
|
color: sectionproperties.prodsalePriceColor,
|
|
@@ -4582,14 +4588,14 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
4582
4588
|
style: {
|
|
4583
4589
|
textDecoration: 'none'
|
|
4584
4590
|
}
|
|
4585
|
-
}, "-"), langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', parseFloat(getprice_discountpriceprops('defaultprice', 1, variantindexcompleted)), ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar), variantindexcompleted != undefined && variantindexcompleted.length != 0 && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
4591
|
+
}, "-"), langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', parseFloat(getprice_discountpriceprops('defaultprice', 1, variantindexcompleted)), ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar), variantindexcompleted != undefined && variantindexcompleted.length != 0 && (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.hassale) == 1 && /*#__PURE__*/React.createElement("span", {
|
|
4586
4592
|
className: langdetect == 'en' ? ' d-flex align-items-center justify-content-end wordbreak text-right wordbreak ' : ' d-flex align-items-center justify-content-end wordbreak text-left wordbreak '
|
|
4587
4593
|
}, /*#__PURE__*/React.createElement("span", {
|
|
4588
4594
|
className: "ml-2 mr-2",
|
|
4589
4595
|
style: {
|
|
4590
4596
|
textDecoration: 'none'
|
|
4591
4597
|
}
|
|
4592
|
-
}, "-"), langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', parseFloat(getprice_discountpriceprops('defaultprice', 1, variantindexcompleted)), ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar))))), sectionproperties.availabilitybtnposition == 'Bottom' && sectionproperties.show_availability == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
4598
|
+
}, "-"), langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', parseFloat(getprice_discountpriceprops('defaultprice', 1, variantindexcompleted)), ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar))))), sectionproperties.availabilitybtnposition == 'Bottom' && sectionproperties.show_availability == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer64 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer64 === void 0 || (_fetchProductInfoQuer64 = _fetchProductInfoQuer64.data) === null || _fetchProductInfoQuer64 === void 0 || (_fetchProductInfoQuer64 = _fetchProductInfoQuer64.productinfo) === null || _fetchProductInfoQuer64 === void 0 ? void 0 : _fetchProductInfoQuer64.isproducttobesold) == 1 && /*#__PURE__*/React.createElement("div", {
|
|
4593
4599
|
className: "col-lg-12 p-0 mb-3 mt-2"
|
|
4594
4600
|
}, /*#__PURE__*/React.createElement("div", {
|
|
4595
4601
|
style: {
|
|
@@ -4637,7 +4643,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
4637
4643
|
paddingLeft: langdetect == 'en' ? '.5em' : 0,
|
|
4638
4644
|
paddingRight: langdetect == 'ar' ? '.5rem' : 0
|
|
4639
4645
|
}
|
|
4640
|
-
}, StoreInfoprops(), sectionproperties.showsizeguidebtn == 'Show' && sizeguideimage.length != 0 && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
4646
|
+
}, StoreInfoprops(), sectionproperties.showsizeguidebtn == 'Show' && sizeguideimage.length != 0 && (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.hasvariants) == 0 && /*#__PURE__*/React.createElement("div", {
|
|
4641
4647
|
"class": "col-lg-12 allcentered mb-2 p-sm-0 mt-2"
|
|
4642
4648
|
}, /*#__PURE__*/React.createElement("button", {
|
|
4643
4649
|
"class": productinfo_cssstyles.sizeguidebtn,
|
|
@@ -4659,7 +4665,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
4659
4665
|
"class": "my-3"
|
|
4660
4666
|
})), sectionproperties.showShareButton == 'Show' && sectionproperties.sharebtnstyle == 'Style 2' && /*#__PURE__*/React.createElement("div", {
|
|
4661
4667
|
"class": "col-lg-12 p-0 allcentered mt-2"
|
|
4662
|
-
}, ShareButtonsContainer())))))), Object.keys(sectionproperties).length != 0 && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
4668
|
+
}, ShareButtonsContainer())))))), Object.keys(sectionproperties).length != 0 && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i11 = authdetailsContext.instinfo) === null || _authdetailsContext$i11 === void 0 ? void 0 : _authdetailsContext$i11.contactinfo.instid) == '684fdf3f9e856' && /*#__PURE__*/React.createElement("div", {
|
|
4663
4669
|
"class": "".concat(productinfo_cssstyles.cardcontainer) + ' row ml-0 mr-0 w-100 pl-md-2 pr-md-2 px-1025-1 ',
|
|
4664
4670
|
style: {
|
|
4665
4671
|
minHeight: sectionproperties.height + 'vh'
|
|
@@ -4811,7 +4817,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
4811
4817
|
className: 'col-xl-4 col-lg-6 col-md-12 col-sm-12 pl-4 px-md-2'
|
|
4812
4818
|
}, /*#__PURE__*/React.createElement("div", {
|
|
4813
4819
|
className: sectionproperties.evencols == 'Yes' ? 'row m-0 w-100' : 'row m-0 w-100'
|
|
4814
|
-
}, sectionproperties.
|
|
4820
|
+
}, sectionproperties.quantityshow == 'Show' && /*#__PURE__*/React.createElement("div", {
|
|
4815
4821
|
"class": "col-lg-12 p-0 text-start"
|
|
4816
4822
|
}, /*#__PURE__*/React.createElement("p", {
|
|
4817
4823
|
"class": "m-0 p-0",
|
|
@@ -4821,15 +4827,15 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
4821
4827
|
fontWeight: sectionproperties.quantityfontweight
|
|
4822
4828
|
}
|
|
4823
4829
|
}, langdetect == 'en' ? sectionproperties.qtytextinen : sectionproperties.qtytextinar, ":", ' ', fetchProductInfoQueryContext.data.data.productinfo.currentquantity)), /*#__PURE__*/React.createElement("div", {
|
|
4824
|
-
className: (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
4830
|
+
className: (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.productcanrate) == 1 ? 'col-lg-8 col-md-8 col-sm-8 p-0 mb-1 d-flex align-items-center' : sectionproperties.btnposition == 'Top' ? 'col-lg-8 col-md-8 col-sm-8 p-0 mb-1 d-flex align-items-center' : sectionproperties.availabilitybtnposition == 'Top' && sectionproperties.show_availability == 'Show' ? 'col-lg-8 col-md-8 col-sm-8 p-0 mb-1 d-flex align-items-center' : 'col-lg-12 p-0 mb-1 d-flex align-items-center',
|
|
4825
4831
|
style: {
|
|
4826
4832
|
justifyContent: sectionproperties.productnamecentered == 'Centered' ? 'center' : 'start'
|
|
4827
4833
|
}
|
|
4828
|
-
}, ProductNameSection()), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
4834
|
+
}, ProductNameSection()), (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.productcanrate) == 1 && sectionproperties.showrating == 'Show' && /*#__PURE__*/React.createElement("div", {
|
|
4829
4835
|
className: "col-lg-4 col-md-4 col-sm-4 p-0 mb-1 d-flex justify-content-end align-items-center"
|
|
4830
4836
|
}, /*#__PURE__*/React.createElement(ReactStars, {
|
|
4831
4837
|
count: 5,
|
|
4832
|
-
value: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
4838
|
+
value: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer68 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer68 === void 0 || (_fetchProductInfoQuer68 = _fetchProductInfoQuer68.data) === null || _fetchProductInfoQuer68 === void 0 || (_fetchProductInfoQuer68 = _fetchProductInfoQuer68.productinfo) === null || _fetchProductInfoQuer68 === void 0 ? void 0 : _fetchProductInfoQuer68.productoverallrate,
|
|
4833
4839
|
edit: false,
|
|
4834
4840
|
size: 18,
|
|
4835
4841
|
emptyIcon: /*#__PURE__*/React.createElement("i", {
|
|
@@ -4850,7 +4856,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
4850
4856
|
activeColor: "#ffd700"
|
|
4851
4857
|
})), /*#__PURE__*/React.createElement("div", {
|
|
4852
4858
|
className: "col-lg-4 col-md-4 col-sm-4 p-0 mb-1 d-flex justify-content-end align-items-center"
|
|
4853
|
-
}, sectionproperties.availabilitybtnposition == 'Top' && sectionproperties.show_availability == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
4859
|
+
}, sectionproperties.availabilitybtnposition == 'Top' && sectionproperties.show_availability == 'Show' && (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.isproducttobesold) == 1 && /*#__PURE__*/React.createElement("div", {
|
|
4854
4860
|
style: {
|
|
4855
4861
|
width: sectionproperties.availability_width + 'px',
|
|
4856
4862
|
height: sectionproperties.availability_height + 'px',
|
|
@@ -4903,7 +4909,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
4903
4909
|
"class": "col-lg-12 text-start p-0"
|
|
4904
4910
|
}, /*#__PURE__*/React.createElement("div", {
|
|
4905
4911
|
className: "row m-0 w-100"
|
|
4906
|
-
}, fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
4912
|
+
}, fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer70 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer70 === void 0 || (_fetchProductInfoQuer70 = _fetchProductInfoQuer70.data) === null || _fetchProductInfoQuer70 === void 0 || (_fetchProductInfoQuer70 = _fetchProductInfoQuer70.productinfo) === null || _fetchProductInfoQuer70 === void 0 || (_fetchProductInfoQuer70 = _fetchProductInfoQuer70.productfeatures) === null || _fetchProductInfoQuer70 === void 0 ? void 0 : _fetchProductInfoQuer70.map(function (fitem, findex) {
|
|
4907
4913
|
return /*#__PURE__*/React.createElement("div", {
|
|
4908
4914
|
"class": ' col-md-12 p-0 mb-3 mt-2 col-lg-' + sectionproperties.featuresnumcols
|
|
4909
4915
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -4961,7 +4967,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
4961
4967
|
color: sectionproperties.prodCatColor
|
|
4962
4968
|
},
|
|
4963
4969
|
dangerouslySetInnerHTML: {
|
|
4964
|
-
__html: langdetect == 'en' ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
4970
|
+
__html: langdetect == 'en' ? 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.short_description_en : fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer72 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer72 === void 0 || (_fetchProductInfoQuer72 = _fetchProductInfoQuer72.data) === null || _fetchProductInfoQuer72 === void 0 || (_fetchProductInfoQuer72 = _fetchProductInfoQuer72.productinfo) === null || _fetchProductInfoQuer72 === void 0 ? void 0 : _fetchProductInfoQuer72.short_description_ar
|
|
4965
4971
|
}
|
|
4966
4972
|
})))), sectionproperties.featuresposition == 'Under Name' && sectionproperties.featurestyle == 'Table' && /*#__PURE__*/React.createElement("div", {
|
|
4967
4973
|
"class": "col-lg-12 text-start p-md-0"
|
|
@@ -4980,7 +4986,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
4980
4986
|
className: "col-lg-12 m-0 w-100 p-0"
|
|
4981
4987
|
}, /*#__PURE__*/React.createElement("table", {
|
|
4982
4988
|
className: 'table tablevertical'
|
|
4983
|
-
}, fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
4989
|
+
}, 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.productfeatures) === null || _fetchProductInfoQuer73 === void 0 ? void 0 : _fetchProductInfoQuer73.map(function (fitem, findex) {
|
|
4984
4990
|
return /*#__PURE__*/React.createElement("tr", null, /*#__PURE__*/React.createElement("th", {
|
|
4985
4991
|
style: {
|
|
4986
4992
|
textTransform: 'capitalize',
|
|
@@ -5012,11 +5018,11 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
5012
5018
|
fontSize: sectionproperties.featurevaluefontsize
|
|
5013
5019
|
}
|
|
5014
5020
|
}, langdetect == 'en' ? fitem === null || fitem === void 0 ? void 0 : fitem.value_en : fitem === null || fitem === void 0 ? void 0 : fitem.value_ar));
|
|
5015
|
-
}))))), sectionproperties.defaultpricingposition == 'Under Name' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5021
|
+
}))))), sectionproperties.defaultpricingposition == 'Under Name' && (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.isproducttobesold) == 1 && /*#__PURE__*/React.createElement(ProductHeaderPricing, {
|
|
5016
5022
|
actions: props.actions
|
|
5017
|
-
}), sectionproperties.featuresposition == 'Under Pricing' && sectionproperties.featurestyle == 'Table' && /*#__PURE__*/React.createElement("div", {
|
|
5023
|
+
}), sectionproperties.showmeasurementunit == 'Show' && sectionproperties.measurementunitposition == 'Above Name' && MeasurementUnitSection(), sectionproperties.featuresposition == 'Under Pricing' && sectionproperties.featurestyle == 'Table' && /*#__PURE__*/React.createElement("div", {
|
|
5018
5024
|
"class": "col-lg-12 text-start p-0"
|
|
5019
|
-
}, ProductFeaturesTable()), langdetect == 'en' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5025
|
+
}, ProductFeaturesTable()), langdetect == 'en' && (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.short_description_en) != null && sectionproperties.descriptionstyle == 'Style 1' && /*#__PURE__*/React.createElement("div", {
|
|
5020
5026
|
"class": "col-lg-12 p-0"
|
|
5021
5027
|
}, /*#__PURE__*/React.createElement("div", {
|
|
5022
5028
|
"class": "col-lg-12 p-0 d-flex justify-content-start"
|
|
@@ -5026,9 +5032,9 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
5026
5032
|
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
5027
5033
|
},
|
|
5028
5034
|
dangerouslySetInnerHTML: {
|
|
5029
|
-
__html: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5035
|
+
__html: 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 ? void 0 : _fetchProductInfoQuer76.short_description_en
|
|
5030
5036
|
}
|
|
5031
|
-
}))), langdetect == 'ar' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5037
|
+
}))), langdetect == 'ar' && (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 ? void 0 : _fetchProductInfoQuer77.short_description_ar) != null && sectionproperties.descriptionstyle == 'Style 1' && /*#__PURE__*/React.createElement("div", {
|
|
5032
5038
|
"class": "col-lg-12 p-0"
|
|
5033
5039
|
}, /*#__PURE__*/React.createElement("div", {
|
|
5034
5040
|
"class": "col-lg-12 p-0 d-flex justify-content-start"
|
|
@@ -5038,43 +5044,43 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
5038
5044
|
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
5039
5045
|
},
|
|
5040
5046
|
dangerouslySetInnerHTML: {
|
|
5041
|
-
__html: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5047
|
+
__html: 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 ? void 0 : _fetchProductInfoQuer78.short_description_ar
|
|
5042
5048
|
}
|
|
5043
|
-
}))), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5049
|
+
}))), (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 ? void 0 : _fetchProductInfoQuer79.vendorinfo) != null && sectionproperties.showvendor == 'Show' && /*#__PURE__*/React.createElement("div", {
|
|
5044
5050
|
"class": "col-lg-12 p-0 d-flex justify-content-start mt-2 mb-2"
|
|
5045
5051
|
}, /*#__PURE__*/React.createElement("p", {
|
|
5046
5052
|
"class": "m-0 p-0",
|
|
5047
5053
|
style: {
|
|
5048
5054
|
color: '#000',
|
|
5049
|
-
cursor: sectionproperties.vendornameclickable == 'Yes' ? 'pointer' : (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
5055
|
+
cursor: sectionproperties.vendornameclickable == 'Yes' ? 'pointer' : (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i12 = authdetailsContext.instinfo) === null || _authdetailsContext$i12 === void 0 ? void 0 : _authdetailsContext$i12.contactinfo.instid) == '683c163d7f996' ? 'pointer' : ''
|
|
5050
5056
|
},
|
|
5051
5057
|
onClick: function onClick() {
|
|
5052
|
-
var _authdetailsContext$
|
|
5058
|
+
var _authdetailsContext$i13;
|
|
5053
5059
|
if (sectionproperties.vendornameclickable == 'Yes') {
|
|
5054
|
-
var _fetchProductInfoQuer79;
|
|
5055
|
-
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, encodeURIComponent(JSON.stringify({
|
|
5056
|
-
vendorsarr: [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.vendorinfo) === null || _fetchProductInfoQuer79 === void 0 ? void 0 : _fetchProductInfoQuer79.vendorid]
|
|
5057
|
-
})));
|
|
5058
|
-
} else if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i1 = authdetailsContext.instinfo) === null || _authdetailsContext$i1 === void 0 ? void 0 : _authdetailsContext$i1.contactinfo.instid) == '683c163d7f996') {
|
|
5059
5060
|
var _fetchProductInfoQuer80;
|
|
5060
5061
|
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, encodeURIComponent(JSON.stringify({
|
|
5061
5062
|
vendorsarr: [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.vendorinfo) === null || _fetchProductInfoQuer80 === void 0 ? void 0 : _fetchProductInfoQuer80.vendorid]
|
|
5062
5063
|
})));
|
|
5064
|
+
} else if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i13 = authdetailsContext.instinfo) === null || _authdetailsContext$i13 === void 0 ? void 0 : _authdetailsContext$i13.contactinfo.instid) == '683c163d7f996') {
|
|
5065
|
+
var _fetchProductInfoQuer81;
|
|
5066
|
+
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, encodeURIComponent(JSON.stringify({
|
|
5067
|
+
vendorsarr: [fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer81 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer81 === void 0 || (_fetchProductInfoQuer81 = _fetchProductInfoQuer81.data) === null || _fetchProductInfoQuer81 === void 0 || (_fetchProductInfoQuer81 = _fetchProductInfoQuer81.productinfo) === null || _fetchProductInfoQuer81 === void 0 || (_fetchProductInfoQuer81 = _fetchProductInfoQuer81.vendorinfo) === null || _fetchProductInfoQuer81 === void 0 ? void 0 : _fetchProductInfoQuer81.vendorid]
|
|
5068
|
+
})));
|
|
5063
5069
|
}
|
|
5064
5070
|
}
|
|
5065
5071
|
}, langdetect == 'en' ? sectionproperties.vendortitleen : sectionproperties.vendortitlear, ":", ' ', /*#__PURE__*/React.createElement("span", {
|
|
5066
5072
|
style: {
|
|
5067
5073
|
fontWeight: 600
|
|
5068
5074
|
}
|
|
5069
|
-
}, fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5070
|
-
"class": sectionproperties.deliverytimeshow == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5071
|
-
}, ProductsSKUContainer()), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5075
|
+
}, fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer82 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer82 === void 0 || (_fetchProductInfoQuer82 = _fetchProductInfoQuer82.data) === null || _fetchProductInfoQuer82 === void 0 || (_fetchProductInfoQuer82 = _fetchProductInfoQuer82.productinfo) === null || _fetchProductInfoQuer82 === void 0 || (_fetchProductInfoQuer82 = _fetchProductInfoQuer82.vendorinfo) === null || _fetchProductInfoQuer82 === void 0 ? void 0 : _fetchProductInfoQuer82.vendorname))), sectionproperties.showSKU == 'Show' && sectionproperties.skuposition == 'Bottom' && /*#__PURE__*/React.createElement("div", {
|
|
5076
|
+
"class": sectionproperties.deliverytimeshow == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer83 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer83 === void 0 || (_fetchProductInfoQuer83 = _fetchProductInfoQuer83.data) === null || _fetchProductInfoQuer83 === void 0 || (_fetchProductInfoQuer83 = _fetchProductInfoQuer83.productinfo) === null || _fetchProductInfoQuer83 === void 0 ? void 0 : _fetchProductInfoQuer83.deliverydatetext) != null ? 'col-lg-12 p-0 mb-2 d-flex justify-content-start' : 'col-lg-12 p-0 mb-3 d-flex justify-content-start'
|
|
5077
|
+
}, ProductsSKUContainer()), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer84 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer84 === void 0 || (_fetchProductInfoQuer84 = _fetchProductInfoQuer84.data) === null || _fetchProductInfoQuer84 === void 0 || (_fetchProductInfoQuer84 = _fetchProductInfoQuer84.productinfo) === null || _fetchProductInfoQuer84 === void 0 ? void 0 : _fetchProductInfoQuer84.currentquantity) < 1 && sectionproperties.showoutofstock == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer85 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer85 === void 0 || (_fetchProductInfoQuer85 = _fetchProductInfoQuer85.data) === null || _fetchProductInfoQuer85 === void 0 || (_fetchProductInfoQuer85 = _fetchProductInfoQuer85.productinfo) === null || _fetchProductInfoQuer85 === void 0 ? void 0 : _fetchProductInfoQuer85.quantavailtype) == 'limit' && (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.hasvariants) == 0 && /*#__PURE__*/React.createElement("div", {
|
|
5072
5078
|
"class": "col-lg-12 p-0 d-flex justify-content-start mb-2"
|
|
5073
5079
|
}, /*#__PURE__*/React.createElement("div", {
|
|
5074
5080
|
"class": "".concat(productinfo_cssstyles.outstockbadge) + ' allcentered '
|
|
5075
5081
|
}, /*#__PURE__*/React.createElement("p", {
|
|
5076
5082
|
"class": "m-0 p-0"
|
|
5077
|
-
}, langdetect == 'en' ? sectionproperties.outstock_contenten : sectionproperties.outstock_contentar))), sectionproperties.deliverytimeshow == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5083
|
+
}, langdetect == 'en' ? sectionproperties.outstock_contenten : sectionproperties.outstock_contentar))), sectionproperties.deliverytimeshow == 'Show' && (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.deliverydatetext) != null && /*#__PURE__*/React.createElement("div", {
|
|
5078
5084
|
"class": "mb-4 col-lg-12 allcentered",
|
|
5079
5085
|
style: {
|
|
5080
5086
|
width: '100%',
|
|
@@ -5095,7 +5101,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
5095
5101
|
textAlign: langdetect == 'en' ? 'left' : 'right',
|
|
5096
5102
|
color: sectionproperties.deliverytimecontainercolor
|
|
5097
5103
|
}
|
|
5098
|
-
}, sectionproperties.showdeliverytitle == 'Show' && /*#__PURE__*/React.createElement("span", null, langdetect == 'en' ? sectionproperties.deliverycontent_en : sectionproperties.deliverycontent_ar, ": "), ' ', fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5104
|
+
}, sectionproperties.showdeliverytitle == 'Show' && /*#__PURE__*/React.createElement("span", null, langdetect == 'en' ? sectionproperties.deliverycontent_en : sectionproperties.deliverycontent_ar, ": "), ' ', 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.deliverydatetext)), sectionproperties.defaultpricingposition != 'Under Name' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer89 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer89 === void 0 || (_fetchProductInfoQuer89 = _fetchProductInfoQuer89.data) === null || _fetchProductInfoQuer89 === void 0 || (_fetchProductInfoQuer89 = _fetchProductInfoQuer89.productinfo) === null || _fetchProductInfoQuer89 === void 0 ? void 0 : _fetchProductInfoQuer89.isproducttobesold) == 1 && /*#__PURE__*/React.createElement(ProductHeaderPricing, {
|
|
5099
5105
|
actions: props.actions
|
|
5100
5106
|
}), sectionproperties.descriptionposition != 'Under Name' && sectionproperties.descriptionposition == 'Top' && sectionproperties.descriptionstyle == 'Style 1' && /*#__PURE__*/React.createElement("div", {
|
|
5101
5107
|
"class": "col-lg-12 p-0"
|
|
@@ -5136,7 +5142,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
5136
5142
|
marginTop: sectionproperties.ctabuttnnsmarginvertical + 'px',
|
|
5137
5143
|
marginBottom: sectionproperties.ctabuttnnsmarginvertical + 'px'
|
|
5138
5144
|
}
|
|
5139
|
-
}, (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5145
|
+
}, (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.isproducttobesold) == 1 && (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 ? void 0 : _fetchProductInfoQuer91.isproducthasquantitychange) == 1 && sectionproperties.quantitybtn_show == 'Show' && /*#__PURE__*/React.createElement("div", {
|
|
5140
5146
|
className: "col-lg-12 p-0 mb-2 d-flex justofy-content-start"
|
|
5141
5147
|
}, /*#__PURE__*/React.createElement("p", {
|
|
5142
5148
|
className: "m-0 p-0",
|
|
@@ -5153,11 +5159,11 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
5153
5159
|
style: {
|
|
5154
5160
|
justifyContent: sectionproperties.cartbtncentered == 'Centered' ? 'center' : 'start'
|
|
5155
5161
|
}
|
|
5156
|
-
}, sectionproperties.quantitybtn_show == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5162
|
+
}, sectionproperties.quantitybtn_show == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer92 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer92 === void 0 || (_fetchProductInfoQuer92 = _fetchProductInfoQuer92.data) === null || _fetchProductInfoQuer92 === void 0 || (_fetchProductInfoQuer92 = _fetchProductInfoQuer92.productinfo) === null || _fetchProductInfoQuer92 === void 0 ? void 0 : _fetchProductInfoQuer92.isproducttobesold) == 1 && (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.isproducthasquantitychange) == 1 && QuantityButton(), sectionproperties.featuresposition != 'Under Name' && sectionproperties.featuresposition == 'Under Description' && sectionproperties.featurestyle != 'Table' && /*#__PURE__*/React.createElement("div", {
|
|
5157
5163
|
"class": "col-lg-12 text-start p-md-0"
|
|
5158
5164
|
}, /*#__PURE__*/React.createElement("div", {
|
|
5159
5165
|
className: "row m-0 w-100"
|
|
5160
|
-
}, fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5166
|
+
}, 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.productfeatures) === null || _fetchProductInfoQuer94 === void 0 ? void 0 : _fetchProductInfoQuer94.map(function (fitem, findex) {
|
|
5161
5167
|
return /*#__PURE__*/React.createElement("div", {
|
|
5162
5168
|
"class": ' col-md-12 p-0 mb-3 mt-2 col-lg-' + sectionproperties.featuresnumcols
|
|
5163
5169
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -5195,12 +5201,12 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
5195
5201
|
fontSize: sectionproperties.featurevaluefontsize
|
|
5196
5202
|
}
|
|
5197
5203
|
}, langdetect == 'en' ? fitem === null || fitem === void 0 ? void 0 : fitem.value_en : fitem === null || fitem === void 0 ? void 0 : fitem.value_ar))));
|
|
5198
|
-
}))), sectionproperties.cartbtnalone == 'Besides Other Buttons' && sectionproperties.cartBtnShow == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5204
|
+
}))), sectionproperties.cartbtnalone == 'Besides Other Buttons' && sectionproperties.cartBtnShow == 'Show' && (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.isproducttobesold) == 1 && /*#__PURE__*/React.createElement("button", {
|
|
5199
5205
|
className: "".concat(productinfo_cssstyles.cart_btn, " ") + ' ml-2 mr-2 d-flex align-items-center justify-content-center mb-sm-2 ',
|
|
5200
5206
|
onClick: function onClick() {
|
|
5201
5207
|
if (fetchProductInfoQueryContext.data.data.productinfo.product_calltoaction == 'Call') {
|
|
5202
|
-
var
|
|
5203
|
-
window.open('tel:' + ((
|
|
5208
|
+
var _fetchProductInfoQuer96;
|
|
5209
|
+
window.open('tel:' + ((_fetchProductInfoQuer96 = fetchProductInfoQueryContext.data.data.productinfo) === null || _fetchProductInfoQuer96 === void 0 ? void 0 : _fetchProductInfoQuer96.product_phonenumber), '_blank');
|
|
5204
5210
|
} else {
|
|
5205
5211
|
if (fetchProductInfoQueryContext.data.data.productinfo.maximumproductquant >= addtocardpayloadobj.quantity && fetchProductInfoQueryContext.data.data.productinfo.minimumproductquant <= addtocardpayloadobj.quantity) {
|
|
5206
5212
|
addtocartfunc();
|
|
@@ -5231,7 +5237,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
5231
5237
|
size: sectionproperties.cartBtn_iconFontSize
|
|
5232
5238
|
}), sectionproperties.carticonstyle == 'Shopping cart 2' && /*#__PURE__*/React.createElement(MdAddShoppingCart, {
|
|
5233
5239
|
size: sectionproperties.cartBtn_iconFontSize
|
|
5234
|
-
})), langdetect == 'en' ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5240
|
+
})), langdetect == 'en' ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer97 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer97 === void 0 || (_fetchProductInfoQuer97 = _fetchProductInfoQuer97.data) === null || _fetchProductInfoQuer97 === void 0 || (_fetchProductInfoQuer97 = _fetchProductInfoQuer97.productinfo) === null || _fetchProductInfoQuer97 === void 0 ? void 0 : _fetchProductInfoQuer97.productactionbuttontext_en : fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer98 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer98 === void 0 || (_fetchProductInfoQuer98 = _fetchProductInfoQuer98.data) === null || _fetchProductInfoQuer98 === void 0 || (_fetchProductInfoQuer98 = _fetchProductInfoQuer98.productinfo) === null || _fetchProductInfoQuer98 === void 0 ? void 0 : _fetchProductInfoQuer98.productactionbuttontext_ar), AddtoCartMutationContext.isLoading && /*#__PURE__*/React.createElement("div", {
|
|
5235
5241
|
className: ' d-flex align-items-center justify-content-center '
|
|
5236
5242
|
}, /*#__PURE__*/React.createElement(CircularProgress, {
|
|
5237
5243
|
color: sectionproperties.cartBtnTextcolor,
|
|
@@ -5276,7 +5282,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
5276
5282
|
style: {
|
|
5277
5283
|
fontSize: sectionproperties.favBtnTextfontsize + 'px'
|
|
5278
5284
|
}
|
|
5279
|
-
}, langdetect == 'en' ? sectionproperties.favbtnaddedcontent_en : sectionproperties.favbtnaddedcontent_ar))), sectionproperties.cartbtnalone == 'Alone' && sectionproperties.cartBtnShow == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5285
|
+
}, langdetect == 'en' ? sectionproperties.favbtnaddedcontent_en : sectionproperties.favbtnaddedcontent_ar))), sectionproperties.cartbtnalone == 'Alone' && sectionproperties.cartBtnShow == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer99 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer99 === void 0 || (_fetchProductInfoQuer99 = _fetchProductInfoQuer99.data) === null || _fetchProductInfoQuer99 === void 0 || (_fetchProductInfoQuer99 = _fetchProductInfoQuer99.productinfo) === null || _fetchProductInfoQuer99 === void 0 ? void 0 : _fetchProductInfoQuer99.isproducttobesold) == 1 && /*#__PURE__*/React.createElement("div", {
|
|
5280
5286
|
"class": "row m-0 w-100 mt-3",
|
|
5281
5287
|
style: {
|
|
5282
5288
|
overflow: 'hidden'
|
|
@@ -5288,8 +5294,8 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
5288
5294
|
},
|
|
5289
5295
|
onClick: function onClick() {
|
|
5290
5296
|
if (fetchProductInfoQueryContext.data.data.productinfo.product_calltoaction == 'Call') {
|
|
5291
|
-
var
|
|
5292
|
-
window.open('tel:' + ((
|
|
5297
|
+
var _fetchProductInfoQuer100;
|
|
5298
|
+
window.open('tel:' + ((_fetchProductInfoQuer100 = fetchProductInfoQueryContext.data.data.productinfo) === null || _fetchProductInfoQuer100 === void 0 ? void 0 : _fetchProductInfoQuer100.product_phonenumber), '_blank');
|
|
5293
5299
|
} else {
|
|
5294
5300
|
if (fetchProductInfoQueryContext.data.data.productinfo.maximumproductquant >= addtocardpayloadobj.quantity && fetchProductInfoQueryContext.data.data.productinfo.minimumproductquant <= addtocardpayloadobj.quantity) {
|
|
5295
5301
|
addtocartfunc();
|
|
@@ -5320,7 +5326,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
5320
5326
|
size: sectionproperties.cartBtn_iconFontSize
|
|
5321
5327
|
}), sectionproperties.carticonstyle == 'Shopping cart 2' && /*#__PURE__*/React.createElement(MdAddShoppingCart, {
|
|
5322
5328
|
size: sectionproperties.cartBtn_iconFontSize
|
|
5323
|
-
})), langdetect == 'en' ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5329
|
+
})), langdetect == 'en' ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer101 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer101 === void 0 || (_fetchProductInfoQuer101 = _fetchProductInfoQuer101.data) === null || _fetchProductInfoQuer101 === void 0 || (_fetchProductInfoQuer101 = _fetchProductInfoQuer101.productinfo) === null || _fetchProductInfoQuer101 === void 0 ? void 0 : _fetchProductInfoQuer101.productactionbuttontext_en : fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer102 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer102 === void 0 || (_fetchProductInfoQuer102 = _fetchProductInfoQuer102.data) === null || _fetchProductInfoQuer102 === void 0 || (_fetchProductInfoQuer102 = _fetchProductInfoQuer102.productinfo) === null || _fetchProductInfoQuer102 === void 0 ? void 0 : _fetchProductInfoQuer102.productactionbuttontext_ar), AddtoCartMutationContext.isLoading && /*#__PURE__*/React.createElement("div", {
|
|
5324
5330
|
className: ' d-flex align-items-center justify-content-center '
|
|
5325
5331
|
}, /*#__PURE__*/React.createElement(CircularProgress, {
|
|
5326
5332
|
color: sectionproperties.cartBtnTextcolor,
|
|
@@ -5385,7 +5391,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
5385
5391
|
style: {
|
|
5386
5392
|
width: sectionproperties.cartBtnWidth + '%'
|
|
5387
5393
|
}
|
|
5388
|
-
}, langdetect == 'en' ? sectionproperties.directwabtntitleen : sectionproperties.directwabtntitlear))), sectionproperties.cartbtnalone == 'Alone' && sectionproperties.showbuynowbtn == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5394
|
+
}, langdetect == 'en' ? sectionproperties.directwabtntitleen : sectionproperties.directwabtntitlear))), sectionproperties.cartbtnalone == 'Alone' && sectionproperties.showbuynowbtn == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer103 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer103 === void 0 || (_fetchProductInfoQuer103 = _fetchProductInfoQuer103.data) === null || _fetchProductInfoQuer103 === void 0 || (_fetchProductInfoQuer103 = _fetchProductInfoQuer103.productinfo) === null || _fetchProductInfoQuer103 === void 0 ? void 0 : _fetchProductInfoQuer103.isproducttobesold) == 1 && /*#__PURE__*/React.createElement("div", {
|
|
5389
5395
|
"class": "row m-0 w-100 mt-3",
|
|
5390
5396
|
style: {
|
|
5391
5397
|
overflow: 'hidden'
|
|
@@ -5421,7 +5427,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
5421
5427
|
"class": "col-lg-12 text-start p-md-0"
|
|
5422
5428
|
}, /*#__PURE__*/React.createElement("div", {
|
|
5423
5429
|
className: "row m-0 w-100"
|
|
5424
|
-
}, fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5430
|
+
}, fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer104 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer104 === void 0 || (_fetchProductInfoQuer104 = _fetchProductInfoQuer104.data) === null || _fetchProductInfoQuer104 === void 0 || (_fetchProductInfoQuer104 = _fetchProductInfoQuer104.productinfo) === null || _fetchProductInfoQuer104 === void 0 || (_fetchProductInfoQuer104 = _fetchProductInfoQuer104.productfeatures) === null || _fetchProductInfoQuer104 === void 0 ? void 0 : _fetchProductInfoQuer104.map(function (fitem, findex) {
|
|
5425
5431
|
return /*#__PURE__*/React.createElement("div", {
|
|
5426
5432
|
"class": ' col-md-12 p-0 mb-3 mt-2 col-lg-' + sectionproperties.featuresnumcols
|
|
5427
5433
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -5459,19 +5465,19 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
5459
5465
|
fontSize: sectionproperties.featurevaluefontsize
|
|
5460
5466
|
}
|
|
5461
5467
|
}, langdetect == 'en' ? fitem === null || fitem === void 0 ? void 0 : fitem.value_en : fitem === null || fitem === void 0 ? void 0 : fitem.value_ar))));
|
|
5462
|
-
}))), sectionproperties.showsizeguidebtn == 'Show' && sizeguideimage.length != 0 && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5468
|
+
}))), sectionproperties.showsizeguidebtn == 'Show' && sizeguideimage.length != 0 && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer105 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer105 === void 0 || (_fetchProductInfoQuer105 = _fetchProductInfoQuer105.data) === null || _fetchProductInfoQuer105 === void 0 || (_fetchProductInfoQuer105 = _fetchProductInfoQuer105.productinfo) === null || _fetchProductInfoQuer105 === void 0 ? void 0 : _fetchProductInfoQuer105.hasvariants) == 0 && /*#__PURE__*/React.createElement("div", {
|
|
5463
5469
|
"class": "col-12 text-start mt-3"
|
|
5464
5470
|
}, /*#__PURE__*/React.createElement("p", {
|
|
5465
5471
|
"class": productinfo_cssstyles.sizeguidebtn + ' m-0 p-0 cursor-pointer mb-auto ',
|
|
5466
5472
|
onClick: function onClick() {
|
|
5467
5473
|
setopensizeguidemodal(true);
|
|
5468
5474
|
}
|
|
5469
|
-
}, langdetect == 'en' ? sectionproperties.sizeguidecontentenglish : sectionproperties.sizeguidecontentarabic)), sectionproperties.showsizeguidebtn == 'Show' && sizeguideimage.length != 0 && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5475
|
+
}, langdetect == 'en' ? sectionproperties.sizeguidecontentenglish : sectionproperties.sizeguidecontentarabic)), sectionproperties.showsizeguidebtn == 'Show' && sizeguideimage.length != 0 && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer106 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer106 === void 0 || (_fetchProductInfoQuer106 = _fetchProductInfoQuer106.data) === null || _fetchProductInfoQuer106 === void 0 || (_fetchProductInfoQuer106 = _fetchProductInfoQuer106.productinfo) === null || _fetchProductInfoQuer106 === void 0 ? void 0 : _fetchProductInfoQuer106.hasvariants) == 0 && /*#__PURE__*/React.createElement("div", {
|
|
5470
5476
|
"class": "col-lg-12 col-md-12 my-3 p-md-0"
|
|
5471
5477
|
}, /*#__PURE__*/React.createElement("hr", {
|
|
5472
5478
|
"class": "m-0"
|
|
5473
5479
|
})), sectionproperties.descriptionstyle == 'Style 2' && /*#__PURE__*/React.createElement("div", {
|
|
5474
|
-
"class": sectionproperties.showsizeguidebtn == 'Show' && sizeguideimage.length != 0 && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5480
|
+
"class": sectionproperties.showsizeguidebtn == 'Show' && sizeguideimage.length != 0 && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer107 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer107 === void 0 || (_fetchProductInfoQuer107 = _fetchProductInfoQuer107.data) === null || _fetchProductInfoQuer107 === void 0 || (_fetchProductInfoQuer107 = _fetchProductInfoQuer107.productinfo) === null || _fetchProductInfoQuer107 === void 0 ? void 0 : _fetchProductInfoQuer107.hasvariants) == 0 ? 'col-lg-12 col-md-12 p-md-0' : 'col-lg-12 col-md-12 p-md-0 mt-3'
|
|
5475
5481
|
}, sectionproperties.descriptioncollapseopen == 'Yes' && /*#__PURE__*/React.createElement(Accordion, {
|
|
5476
5482
|
allowMultipleExpanded: true,
|
|
5477
5483
|
allowZeroExpanded: true,
|
|
@@ -5519,7 +5525,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
5519
5525
|
color: sectionproperties.prodCatColor
|
|
5520
5526
|
},
|
|
5521
5527
|
dangerouslySetInnerHTML: {
|
|
5522
|
-
__html: langdetect == 'en' ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5528
|
+
__html: langdetect == 'en' ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer108 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer108 === void 0 || (_fetchProductInfoQuer108 = _fetchProductInfoQuer108.data) === null || _fetchProductInfoQuer108 === void 0 || (_fetchProductInfoQuer108 = _fetchProductInfoQuer108.productinfo) === null || _fetchProductInfoQuer108 === void 0 ? void 0 : _fetchProductInfoQuer108.short_description_en : fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer109 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer109 === void 0 || (_fetchProductInfoQuer109 = _fetchProductInfoQuer109.data) === null || _fetchProductInfoQuer109 === void 0 || (_fetchProductInfoQuer109 = _fetchProductInfoQuer109.productinfo) === null || _fetchProductInfoQuer109 === void 0 ? void 0 : _fetchProductInfoQuer109.short_description_ar
|
|
5523
5529
|
}
|
|
5524
5530
|
})))))), sectionproperties.descriptionstyle == 'Style 2' && sectionproperties.showshortdescription == 'Show' && /*#__PURE__*/React.createElement("div", {
|
|
5525
5531
|
"class": "col-lg-12 col-md-12 my-3 p-md-0"
|
|
@@ -5693,7 +5699,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
5693
5699
|
})
|
|
5694
5700
|
// actions={props.actions}
|
|
5695
5701
|
// srcfromprops={'collapsepinfo'}
|
|
5696
|
-
})))))), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5702
|
+
})))))), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer110 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer110 === void 0 || (_fetchProductInfoQuer110 = _fetchProductInfoQuer110.data) === null || _fetchProductInfoQuer110 === void 0 || (_fetchProductInfoQuer110 = _fetchProductInfoQuer110.productinfo) === null || _fetchProductInfoQuer110 === void 0 ? void 0 : _fetchProductInfoQuer110.isproducttobesold) == 1 && sectionproperties.showtotalsection == 'Show' && /*#__PURE__*/React.createElement("div", {
|
|
5697
5703
|
className: "col-lg-12 p-0 mb-3"
|
|
5698
5704
|
}, /*#__PURE__*/React.createElement("div", {
|
|
5699
5705
|
className: "row m-0 w-100 d-flex flex-row"
|
|
@@ -5716,7 +5722,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
5716
5722
|
}
|
|
5717
5723
|
}, /*#__PURE__*/React.createElement("span", {
|
|
5718
5724
|
className: langdetect == 'en' ? ' d-flex align-items-center justify-content-end wordbreak text-right ' : ' d-flex align-items-center justify-content-end wordbreak text-left '
|
|
5719
|
-
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', variantindexcompleted != undefined && variantindexcompleted.length == 0 && fetchProductInfoQueryContext.data.data.productinfo.hassale == 0 && parseFloat(getprice_discountpriceprops('defaultprice', 1, variantindexcompleted)).toFixed(2), variantindexcompleted != undefined && variantindexcompleted.length == 0 && fetchProductInfoQueryContext.data.data.productinfo.hassale == 1 && parseFloat(getprice_discountpriceprops('defaultsaleprice', 1, variantindexcompleted)).toFixed(2), variantindexcompleted != undefined && variantindexcompleted.length != 0 && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5725
|
+
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', variantindexcompleted != undefined && variantindexcompleted.length == 0 && fetchProductInfoQueryContext.data.data.productinfo.hassale == 0 && parseFloat(getprice_discountpriceprops('defaultprice', 1, variantindexcompleted)).toFixed(2), variantindexcompleted != undefined && variantindexcompleted.length == 0 && fetchProductInfoQueryContext.data.data.productinfo.hassale == 1 && parseFloat(getprice_discountpriceprops('defaultsaleprice', 1, variantindexcompleted)).toFixed(2), variantindexcompleted != undefined && variantindexcompleted.length != 0 && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer111 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer111 === void 0 || (_fetchProductInfoQuer111 = _fetchProductInfoQuer111.data) === null || _fetchProductInfoQuer111 === void 0 || (_fetchProductInfoQuer111 = _fetchProductInfoQuer111.productinfo) === null || _fetchProductInfoQuer111 === void 0 || (_fetchProductInfoQuer111 = _fetchProductInfoQuer111.variants[variantindexcompleted]) === null || _fetchProductInfoQuer111 === void 0 ? void 0 : _fetchProductInfoQuer111.hassale) == 1 && parseFloat(getprice_discountpriceprops('defaultsaleprice', 1, variantindexcompleted)).toFixed(2), variantindexcompleted != undefined && variantindexcompleted.length != 0 && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer112 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer112 === void 0 || (_fetchProductInfoQuer112 = _fetchProductInfoQuer112.data) === null || _fetchProductInfoQuer112 === void 0 || (_fetchProductInfoQuer112 = _fetchProductInfoQuer112.productinfo) === null || _fetchProductInfoQuer112 === void 0 || (_fetchProductInfoQuer112 = _fetchProductInfoQuer112.variants[variantindexcompleted]) === null || _fetchProductInfoQuer112 === void 0 ? void 0 : _fetchProductInfoQuer112.hassale) == 0 && parseFloat(getprice_discountpriceprops('defaultprice', 1, variantindexcompleted)).toFixed(2), langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar)), /*#__PURE__*/React.createElement("p", {
|
|
5720
5726
|
className: 'm-0 p-0 linethrough wordbreak',
|
|
5721
5727
|
style: {
|
|
5722
5728
|
color: sectionproperties.prodsalePriceColor,
|
|
@@ -5730,14 +5736,14 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
5730
5736
|
style: {
|
|
5731
5737
|
textDecoration: 'none'
|
|
5732
5738
|
}
|
|
5733
|
-
}, "-"), langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', parseFloat(getprice_discountpriceprops('defaultprice', 1, variantindexcompleted)), ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar), variantindexcompleted != undefined && variantindexcompleted.length != 0 && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5739
|
+
}, "-"), langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', parseFloat(getprice_discountpriceprops('defaultprice', 1, variantindexcompleted)), ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar), variantindexcompleted != undefined && variantindexcompleted.length != 0 && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer113 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer113 === void 0 || (_fetchProductInfoQuer113 = _fetchProductInfoQuer113.data) === null || _fetchProductInfoQuer113 === void 0 || (_fetchProductInfoQuer113 = _fetchProductInfoQuer113.productinfo) === null || _fetchProductInfoQuer113 === void 0 || (_fetchProductInfoQuer113 = _fetchProductInfoQuer113.variants[variantindexcompleted]) === null || _fetchProductInfoQuer113 === void 0 ? void 0 : _fetchProductInfoQuer113.hassale) == 1 && /*#__PURE__*/React.createElement("span", {
|
|
5734
5740
|
className: langdetect == 'en' ? ' d-flex align-items-center justify-content-end wordbreak text-right wordbreak ' : ' d-flex align-items-center justify-content-end wordbreak text-left wordbreak '
|
|
5735
5741
|
}, /*#__PURE__*/React.createElement("span", {
|
|
5736
5742
|
className: "ml-2 mr-2",
|
|
5737
5743
|
style: {
|
|
5738
5744
|
textDecoration: 'none'
|
|
5739
5745
|
}
|
|
5740
|
-
}, "-"), langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', parseFloat(getprice_discountpriceprops('defaultprice', 1, variantindexcompleted)), ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar))))), sectionproperties.availabilitybtnposition == 'Bottom' && sectionproperties.show_availability == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5746
|
+
}, "-"), langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', parseFloat(getprice_discountpriceprops('defaultprice', 1, variantindexcompleted)), ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar))))), sectionproperties.availabilitybtnposition == 'Bottom' && sectionproperties.show_availability == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer114 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer114 === void 0 || (_fetchProductInfoQuer114 = _fetchProductInfoQuer114.data) === null || _fetchProductInfoQuer114 === void 0 || (_fetchProductInfoQuer114 = _fetchProductInfoQuer114.productinfo) === null || _fetchProductInfoQuer114 === void 0 ? void 0 : _fetchProductInfoQuer114.isproducttobesold) == 1 && /*#__PURE__*/React.createElement("div", {
|
|
5741
5747
|
className: "col-lg-12 p-0 mb-3 mt-2"
|
|
5742
5748
|
}, /*#__PURE__*/React.createElement("div", {
|
|
5743
5749
|
style: {
|
|
@@ -5785,7 +5791,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
5785
5791
|
paddingLeft: langdetect == 'en' ? '.5em' : 0,
|
|
5786
5792
|
paddingRight: langdetect == 'ar' ? '.5rem' : 0
|
|
5787
5793
|
}
|
|
5788
|
-
}, StoreInfoprops(), sectionproperties.showsizeguidebtn == 'Show' && sizeguideimage.length != 0 && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5794
|
+
}, StoreInfoprops(), sectionproperties.showsizeguidebtn == 'Show' && sizeguideimage.length != 0 && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer115 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer115 === void 0 || (_fetchProductInfoQuer115 = _fetchProductInfoQuer115.data) === null || _fetchProductInfoQuer115 === void 0 || (_fetchProductInfoQuer115 = _fetchProductInfoQuer115.productinfo) === null || _fetchProductInfoQuer115 === void 0 ? void 0 : _fetchProductInfoQuer115.hasvariants) == 0 && /*#__PURE__*/React.createElement("div", {
|
|
5789
5795
|
"class": "col-lg-12 allcentered mb-2 p-sm-0 mt-2"
|
|
5790
5796
|
}, /*#__PURE__*/React.createElement("button", {
|
|
5791
5797
|
"class": productinfo_cssstyles.sizeguidebtn,
|
|
@@ -5807,7 +5813,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
5807
5813
|
"class": "my-3"
|
|
5808
5814
|
})), sectionproperties.showShareButton == 'Show' && sectionproperties.sharebtnstyle == 'Style 2' && /*#__PURE__*/React.createElement("div", {
|
|
5809
5815
|
"class": "col-lg-12 p-0 allcentered mt-2"
|
|
5810
|
-
}, ShareButtonsContainer())))))), Object.keys(sectionproperties).length != 0 && sectionproperties.productInformationType == 'Portfolio' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
5816
|
+
}, ShareButtonsContainer())))))), Object.keys(sectionproperties).length != 0 && sectionproperties.productInformationType == 'Portfolio' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i14 = authdetailsContext.instinfo) === null || _authdetailsContext$i14 === void 0 ? void 0 : _authdetailsContext$i14.contactinfo.instid) != '678d1831ef638' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i15 = authdetailsContext.instinfo) === null || _authdetailsContext$i15 === void 0 ? void 0 : _authdetailsContext$i15.contactinfo.instid) != '680a0b8a31930' && /*#__PURE__*/React.createElement("div", {
|
|
5811
5817
|
"class": "".concat(productinfo_cssstyles.cardcontainer) + ' row ml-0 mr-0 w-100 ',
|
|
5812
5818
|
style: {
|
|
5813
5819
|
minHeight: sectionproperties.height + 'vh',
|
|
@@ -5824,7 +5830,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
5824
5830
|
}, /*#__PURE__*/React.createElement(Imagekitimagecomp, {
|
|
5825
5831
|
urlEndpoint: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint,
|
|
5826
5832
|
publicKey: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimagepublickey,
|
|
5827
|
-
path: '/tr:w-' + sectionproperties.imagetr_w + ',h-' + sectionproperties.imagetr_h + '/' + (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5833
|
+
path: '/tr:w-' + sectionproperties.imagetr_w + ',h-' + sectionproperties.imagetr_h + '/' + (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer116 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer116 === void 0 || (_fetchProductInfoQuer116 = _fetchProductInfoQuer116.data) === null || _fetchProductInfoQuer116 === void 0 || (_fetchProductInfoQuer116 = _fetchProductInfoQuer116.productinfo) === null || _fetchProductInfoQuer116 === void 0 ? void 0 : _fetchProductInfoQuer116.productmainimage),
|
|
5828
5834
|
style: {
|
|
5829
5835
|
width: '100%',
|
|
5830
5836
|
height: '100%',
|
|
@@ -5857,13 +5863,13 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
5857
5863
|
color: sectionproperties.prodCatColor
|
|
5858
5864
|
},
|
|
5859
5865
|
dangerouslySetInnerHTML: {
|
|
5860
|
-
__html: langdetect == 'en' ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5866
|
+
__html: langdetect == 'en' ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer117 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer117 === void 0 || (_fetchProductInfoQuer117 = _fetchProductInfoQuer117.data) === null || _fetchProductInfoQuer117 === void 0 || (_fetchProductInfoQuer117 = _fetchProductInfoQuer117.productinfo) === null || _fetchProductInfoQuer117 === void 0 ? void 0 : _fetchProductInfoQuer117.short_description_en : fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer118 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer118 === void 0 || (_fetchProductInfoQuer118 = _fetchProductInfoQuer118.data) === null || _fetchProductInfoQuer118 === void 0 || (_fetchProductInfoQuer118 = _fetchProductInfoQuer118.productinfo) === null || _fetchProductInfoQuer118 === void 0 ? void 0 : _fetchProductInfoQuer118.short_description_ar
|
|
5861
5867
|
}
|
|
5862
5868
|
})))), /*#__PURE__*/React.createElement("div", {
|
|
5863
5869
|
"class": "col-lg-12 text-start p-md-0"
|
|
5864
5870
|
}, /*#__PURE__*/React.createElement("div", {
|
|
5865
5871
|
className: "row m-0 w-100"
|
|
5866
|
-
}, fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5872
|
+
}, fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer119 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer119 === void 0 || (_fetchProductInfoQuer119 = _fetchProductInfoQuer119.data) === null || _fetchProductInfoQuer119 === void 0 || (_fetchProductInfoQuer119 = _fetchProductInfoQuer119.productinfo) === null || _fetchProductInfoQuer119 === void 0 || (_fetchProductInfoQuer119 = _fetchProductInfoQuer119.productfeatures) === null || _fetchProductInfoQuer119 === void 0 ? void 0 : _fetchProductInfoQuer119.map(function (fitem, findex) {
|
|
5867
5873
|
return /*#__PURE__*/React.createElement("div", {
|
|
5868
5874
|
"class": ' col-md-6 p-0 mb-3 mt-2 col-lg-' + sectionproperties.featuresnumcols
|
|
5869
5875
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -5905,7 +5911,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
5905
5911
|
"class": "col-lg-12 p-0 my-4"
|
|
5906
5912
|
}, /*#__PURE__*/React.createElement("div", {
|
|
5907
5913
|
"class": "row m-0 w-100"
|
|
5908
|
-
}, (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5914
|
+
}, (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer120 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer120 === void 0 || (_fetchProductInfoQuer120 = _fetchProductInfoQuer120.data) === null || _fetchProductInfoQuer120 === void 0 || (_fetchProductInfoQuer120 = _fetchProductInfoQuer120.productinfo) === null || _fetchProductInfoQuer120 === void 0 || (_fetchProductInfoQuer120 = _fetchProductInfoQuer120.productimages) === null || _fetchProductInfoQuer120 === void 0 ? void 0 : _fetchProductInfoQuer120.length) != 0 && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer121 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer121 === void 0 || (_fetchProductInfoQuer121 = _fetchProductInfoQuer121.data) === null || _fetchProductInfoQuer121 === void 0 || (_fetchProductInfoQuer121 = _fetchProductInfoQuer121.productinfo) === null || _fetchProductInfoQuer121 === void 0 ? void 0 : _fetchProductInfoQuer121.productimages.map(function (item, index) {
|
|
5909
5915
|
return /*#__PURE__*/React.createElement("div", {
|
|
5910
5916
|
"class": "col-lg-4 col-sm-12 mb-md-2 p-md-0"
|
|
5911
5917
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -5932,9 +5938,9 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
5932
5938
|
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
5933
5939
|
},
|
|
5934
5940
|
dangerouslySetInnerHTML: {
|
|
5935
|
-
__html: langdetect == 'en' ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5941
|
+
__html: langdetect == 'en' ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer122 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer122 === void 0 || (_fetchProductInfoQuer122 = _fetchProductInfoQuer122.data) === null || _fetchProductInfoQuer122 === void 0 || (_fetchProductInfoQuer122 = _fetchProductInfoQuer122.productinfo) === null || _fetchProductInfoQuer122 === void 0 ? void 0 : _fetchProductInfoQuer122.description_en : fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer123 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer123 === void 0 || (_fetchProductInfoQuer123 = _fetchProductInfoQuer123.data) === null || _fetchProductInfoQuer123 === void 0 || (_fetchProductInfoQuer123 = _fetchProductInfoQuer123.productinfo) === null || _fetchProductInfoQuer123 === void 0 ? void 0 : _fetchProductInfoQuer123.description_ar
|
|
5936
5942
|
}
|
|
5937
|
-
}))))), Object.keys(sectionproperties).length != 0 && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
5943
|
+
}))))), Object.keys(sectionproperties).length != 0 && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i16 = authdetailsContext.instinfo) === null || _authdetailsContext$i16 === void 0 ? void 0 : _authdetailsContext$i16.contactinfo.instid) == '680a0b8a31930' && /*#__PURE__*/React.createElement("div", {
|
|
5938
5944
|
"class": "".concat(productinfo_cssstyles.cardcontainer) + ' row ml-0 mr-0 w-100 pl-md-2 pr-md-2 px-0 ',
|
|
5939
5945
|
style: {
|
|
5940
5946
|
minHeight: '100vh'
|
|
@@ -5966,7 +5972,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
5966
5972
|
duration: 1500,
|
|
5967
5973
|
arrow: true,
|
|
5968
5974
|
easing: "ease"
|
|
5969
|
-
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5975
|
+
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer124 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer124 === void 0 || (_fetchProductInfoQuer124 = _fetchProductInfoQuer124.data) === null || _fetchProductInfoQuer124 === void 0 || (_fetchProductInfoQuer124 = _fetchProductInfoQuer124.productinfo) === null || _fetchProductInfoQuer124 === void 0 || (_fetchProductInfoQuer124 = _fetchProductInfoQuer124.productimages) === null || _fetchProductInfoQuer124 === void 0 ? void 0 : _fetchProductInfoQuer124.length) != 0 && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer125 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer125 === void 0 || (_fetchProductInfoQuer125 = _fetchProductInfoQuer125.data) === null || _fetchProductInfoQuer125 === void 0 || (_fetchProductInfoQuer125 = _fetchProductInfoQuer125.productinfo) === null || _fetchProductInfoQuer125 === void 0 ? void 0 : _fetchProductInfoQuer125.productimages.map(function (item, index) {
|
|
5970
5976
|
if (item.is_size_guide != 1) {
|
|
5971
5977
|
return /*#__PURE__*/React.createElement("div", {
|
|
5972
5978
|
"class": "row m-0 w-100 h-sm-auto",
|
|
@@ -6021,7 +6027,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
6021
6027
|
color: sectionproperties.prodCatColor
|
|
6022
6028
|
},
|
|
6023
6029
|
dangerouslySetInnerHTML: {
|
|
6024
|
-
__html: langdetect == 'en' ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
6030
|
+
__html: langdetect == 'en' ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer126 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer126 === void 0 || (_fetchProductInfoQuer126 = _fetchProductInfoQuer126.data) === null || _fetchProductInfoQuer126 === void 0 || (_fetchProductInfoQuer126 = _fetchProductInfoQuer126.productinfo) === null || _fetchProductInfoQuer126 === void 0 ? void 0 : _fetchProductInfoQuer126.description_en : fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer127 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer127 === void 0 || (_fetchProductInfoQuer127 = _fetchProductInfoQuer127.data) === null || _fetchProductInfoQuer127 === void 0 || (_fetchProductInfoQuer127 = _fetchProductInfoQuer127.productinfo) === null || _fetchProductInfoQuer127 === void 0 ? void 0 : _fetchProductInfoQuer127.description_ar
|
|
6025
6031
|
}
|
|
6026
6032
|
})), /*#__PURE__*/React.createElement("div", {
|
|
6027
6033
|
"class": "col-lg-12 col-md-12 p-0 mb-4"
|
|
@@ -6067,7 +6073,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
6067
6073
|
"class": "row m-0 w-100 pl-3 pr-3 mt-3"
|
|
6068
6074
|
}, /*#__PURE__*/React.createElement("table", {
|
|
6069
6075
|
className: 'table tablevertical'
|
|
6070
|
-
}, fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
6076
|
+
}, fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer128 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer128 === void 0 || (_fetchProductInfoQuer128 = _fetchProductInfoQuer128.data) === null || _fetchProductInfoQuer128 === void 0 || (_fetchProductInfoQuer128 = _fetchProductInfoQuer128.productinfo) === null || _fetchProductInfoQuer128 === void 0 || (_fetchProductInfoQuer128 = _fetchProductInfoQuer128.productfeatures) === null || _fetchProductInfoQuer128 === void 0 ? void 0 : _fetchProductInfoQuer128.map(function (fitem, findex) {
|
|
6071
6077
|
return /*#__PURE__*/React.createElement("tr", null, /*#__PURE__*/React.createElement("th", {
|
|
6072
6078
|
style: {
|
|
6073
6079
|
textTransform: 'capitalize',
|
|
@@ -6110,8 +6116,8 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
6110
6116
|
}, /*#__PURE__*/React.createElement("button", {
|
|
6111
6117
|
className: ' mx-4 mx-md-2 d-flex align-items-center justify-content-center ',
|
|
6112
6118
|
onClick: function onClick() {
|
|
6113
|
-
var
|
|
6114
|
-
window.open('tel:' + ((
|
|
6119
|
+
var _fetchProductInfoQuer129;
|
|
6120
|
+
window.open('tel:' + ((_fetchProductInfoQuer129 = fetchProductInfoQueryContext.data.data.productinfo) === null || _fetchProductInfoQuer129 === void 0 ? void 0 : _fetchProductInfoQuer129.product_phonenumber), '_blank');
|
|
6115
6121
|
},
|
|
6116
6122
|
style: {
|
|
6117
6123
|
width: '40%',
|
|
@@ -6162,8 +6168,8 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
6162
6168
|
className: "".concat(productinfo_cssstyles.cart_btn, " ") + ' ml-2 mr-2 d-flex align-items-center justify-content-center mb-sm-2 ',
|
|
6163
6169
|
onClick: function onClick() {
|
|
6164
6170
|
if (fetchProductInfoQueryContext.data.data.productinfo.product_calltoaction == 'Call') {
|
|
6165
|
-
var
|
|
6166
|
-
window.open('tel:' + ((
|
|
6171
|
+
var _fetchProductInfoQuer130;
|
|
6172
|
+
window.open('tel:' + ((_fetchProductInfoQuer130 = fetchProductInfoQueryContext.data.data.productinfo) === null || _fetchProductInfoQuer130 === void 0 ? void 0 : _fetchProductInfoQuer130.product_phonenumber), '_blank');
|
|
6167
6173
|
} else {
|
|
6168
6174
|
if (fetchProductInfoQueryContext.data.data.productinfo.maximumproductquant >= addtocardpayloadobj.quantity && fetchProductInfoQueryContext.data.data.productinfo.minimumproductquant <= addtocardpayloadobj.quantity) {
|
|
6169
6175
|
addtocartfunc();
|
|
@@ -6194,14 +6200,14 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
6194
6200
|
size: sectionproperties.cartBtn_iconFontSize
|
|
6195
6201
|
}), sectionproperties.carticonstyle == 'Shopping cart 2' && /*#__PURE__*/React.createElement(MdAddShoppingCart, {
|
|
6196
6202
|
size: sectionproperties.cartBtn_iconFontSize
|
|
6197
|
-
})), langdetect == 'en' ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
6203
|
+
})), langdetect == 'en' ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer131 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer131 === void 0 || (_fetchProductInfoQuer131 = _fetchProductInfoQuer131.data) === null || _fetchProductInfoQuer131 === void 0 || (_fetchProductInfoQuer131 = _fetchProductInfoQuer131.productinfo) === null || _fetchProductInfoQuer131 === void 0 ? void 0 : _fetchProductInfoQuer131.productactionbuttontext_en : fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer132 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer132 === void 0 || (_fetchProductInfoQuer132 = _fetchProductInfoQuer132.data) === null || _fetchProductInfoQuer132 === void 0 || (_fetchProductInfoQuer132 = _fetchProductInfoQuer132.productinfo) === null || _fetchProductInfoQuer132 === void 0 ? void 0 : _fetchProductInfoQuer132.productactionbuttontext_ar), AddtoCartMutationContext.isLoading && /*#__PURE__*/React.createElement("div", {
|
|
6198
6204
|
className: ' d-flex align-items-center justify-content-center '
|
|
6199
6205
|
}, /*#__PURE__*/React.createElement(CircularProgress, {
|
|
6200
6206
|
color: sectionproperties.cartBtnTextcolor,
|
|
6201
6207
|
width: "20px",
|
|
6202
6208
|
height: "20px",
|
|
6203
6209
|
duration: "1s"
|
|
6204
|
-
}))))))))), Object.keys(sectionproperties).length != 0 && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
6210
|
+
}))))))))), Object.keys(sectionproperties).length != 0 && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i17 = authdetailsContext.instinfo) === null || _authdetailsContext$i17 === void 0 ? void 0 : _authdetailsContext$i17.contactinfo.instid) == '678d1831ef638' && /*#__PURE__*/React.createElement("div", {
|
|
6205
6211
|
"class": "".concat(productinfo_cssstyles.cardcontainer) + ' row ml-0 mr-0 w-100 pl-md-2 pr-md-2 px-0 ',
|
|
6206
6212
|
style: {
|
|
6207
6213
|
minHeight: '100vh'
|
|
@@ -6233,7 +6239,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
6233
6239
|
duration: 1500,
|
|
6234
6240
|
arrow: true,
|
|
6235
6241
|
easing: "ease"
|
|
6236
|
-
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
6242
|
+
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer133 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer133 === void 0 || (_fetchProductInfoQuer133 = _fetchProductInfoQuer133.data) === null || _fetchProductInfoQuer133 === void 0 || (_fetchProductInfoQuer133 = _fetchProductInfoQuer133.productinfo) === null || _fetchProductInfoQuer133 === void 0 || (_fetchProductInfoQuer133 = _fetchProductInfoQuer133.productimages) === null || _fetchProductInfoQuer133 === void 0 ? void 0 : _fetchProductInfoQuer133.length) != 0 && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer134 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer134 === void 0 || (_fetchProductInfoQuer134 = _fetchProductInfoQuer134.data) === null || _fetchProductInfoQuer134 === void 0 || (_fetchProductInfoQuer134 = _fetchProductInfoQuer134.productinfo) === null || _fetchProductInfoQuer134 === void 0 ? void 0 : _fetchProductInfoQuer134.productimages.map(function (item, index) {
|
|
6237
6243
|
if (item.is_size_guide != 1) {
|
|
6238
6244
|
return /*#__PURE__*/React.createElement("div", {
|
|
6239
6245
|
"class": "row m-0 w-100 h-sm-auto",
|
|
@@ -6288,7 +6294,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
6288
6294
|
color: sectionproperties.prodCatColor
|
|
6289
6295
|
},
|
|
6290
6296
|
dangerouslySetInnerHTML: {
|
|
6291
|
-
__html: langdetect == 'en' ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
6297
|
+
__html: langdetect == 'en' ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer135 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer135 === void 0 || (_fetchProductInfoQuer135 = _fetchProductInfoQuer135.data) === null || _fetchProductInfoQuer135 === void 0 || (_fetchProductInfoQuer135 = _fetchProductInfoQuer135.productinfo) === null || _fetchProductInfoQuer135 === void 0 ? void 0 : _fetchProductInfoQuer135.description_en : fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer136 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer136 === void 0 || (_fetchProductInfoQuer136 = _fetchProductInfoQuer136.data) === null || _fetchProductInfoQuer136 === void 0 || (_fetchProductInfoQuer136 = _fetchProductInfoQuer136.productinfo) === null || _fetchProductInfoQuer136 === void 0 ? void 0 : _fetchProductInfoQuer136.description_ar
|
|
6292
6298
|
}
|
|
6293
6299
|
})), /*#__PURE__*/React.createElement("div", {
|
|
6294
6300
|
"class": "col-lg-12 col-md-12 p-0 mb-4"
|
|
@@ -6332,7 +6338,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
6332
6338
|
className: "p-0"
|
|
6333
6339
|
}, /*#__PURE__*/React.createElement("div", {
|
|
6334
6340
|
"class": "row m-0 w-100 pl-3 pr-3 mt-3"
|
|
6335
|
-
}, fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
6341
|
+
}, fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer137 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer137 === void 0 || (_fetchProductInfoQuer137 = _fetchProductInfoQuer137.data) === null || _fetchProductInfoQuer137 === void 0 || (_fetchProductInfoQuer137 = _fetchProductInfoQuer137.productinfo) === null || _fetchProductInfoQuer137 === void 0 || (_fetchProductInfoQuer137 = _fetchProductInfoQuer137.productfeatures) === null || _fetchProductInfoQuer137 === void 0 ? void 0 : _fetchProductInfoQuer137.map(function (fitem, findex) {
|
|
6336
6342
|
return /*#__PURE__*/React.createElement("div", {
|
|
6337
6343
|
"class": ' col-md-12 p-0 mb-3 mt-2 col-xl-3 col-lg-4 col-md-6 col-sm-12 mb-3 d-flex align-items-center'
|
|
6338
6344
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -6428,7 +6434,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
6428
6434
|
}, /*#__PURE__*/React.createElement(Imagekitimagecomp, {
|
|
6429
6435
|
urlEndpoint: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint,
|
|
6430
6436
|
publicKey: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimagepublickey,
|
|
6431
|
-
path: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
6437
|
+
path: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer138 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer138 === void 0 || (_fetchProductInfoQuer138 = _fetchProductInfoQuer138.data) === null || _fetchProductInfoQuer138 === void 0 || (_fetchProductInfoQuer138 = _fetchProductInfoQuer138.productinfo) === null || _fetchProductInfoQuer138 === void 0 || (_fetchProductInfoQuer138 = _fetchProductInfoQuer138.vendorinfo) === null || _fetchProductInfoQuer138 === void 0 ? void 0 : _fetchProductInfoQuer138.vendorlogourl,
|
|
6432
6438
|
loading: "lazy",
|
|
6433
6439
|
style: {
|
|
6434
6440
|
maxWidth: '100%',
|
|
@@ -6443,7 +6449,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
6443
6449
|
fontSize: 17,
|
|
6444
6450
|
color: sectionproperties.featurecolor
|
|
6445
6451
|
}
|
|
6446
|
-
}, fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
6452
|
+
}, fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer139 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer139 === void 0 || (_fetchProductInfoQuer139 = _fetchProductInfoQuer139.data) === null || _fetchProductInfoQuer139 === void 0 || (_fetchProductInfoQuer139 = _fetchProductInfoQuer139.productinfo) === null || _fetchProductInfoQuer139 === void 0 || (_fetchProductInfoQuer139 = _fetchProductInfoQuer139.vendorinfo) === null || _fetchProductInfoQuer139 === void 0 ? void 0 : _fetchProductInfoQuer139.address)))))))))), /*#__PURE__*/React.createElement("div", {
|
|
6447
6453
|
"class": "col-lg-3"
|
|
6448
6454
|
}, /*#__PURE__*/React.createElement("div", {
|
|
6449
6455
|
"class": "row m-0 w-100"
|
|
@@ -6452,8 +6458,8 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
6452
6458
|
}, /*#__PURE__*/React.createElement("button", {
|
|
6453
6459
|
className: ' mx-4 mx-md-2 d-flex align-items-center justify-content-center ',
|
|
6454
6460
|
onClick: function onClick() {
|
|
6455
|
-
var
|
|
6456
|
-
window.open('tel:' + ((
|
|
6461
|
+
var _fetchProductInfoQuer140;
|
|
6462
|
+
window.open('tel:' + ((_fetchProductInfoQuer140 = fetchProductInfoQueryContext.data.data.productinfo) === null || _fetchProductInfoQuer140 === void 0 ? void 0 : _fetchProductInfoQuer140.product_phonenumber), '_blank');
|
|
6457
6463
|
},
|
|
6458
6464
|
style: {
|
|
6459
6465
|
width: '40%',
|
|
@@ -6504,8 +6510,8 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
6504
6510
|
className: "".concat(productinfo_cssstyles.cart_btn, " ") + ' ml-2 mr-2 d-flex align-items-center justify-content-center mb-sm-2 ',
|
|
6505
6511
|
onClick: function onClick() {
|
|
6506
6512
|
if (fetchProductInfoQueryContext.data.data.productinfo.product_calltoaction == 'Call') {
|
|
6507
|
-
var
|
|
6508
|
-
window.open('tel:' + ((
|
|
6513
|
+
var _fetchProductInfoQuer141;
|
|
6514
|
+
window.open('tel:' + ((_fetchProductInfoQuer141 = fetchProductInfoQueryContext.data.data.productinfo) === null || _fetchProductInfoQuer141 === void 0 ? void 0 : _fetchProductInfoQuer141.product_phonenumber), '_blank');
|
|
6509
6515
|
} else {
|
|
6510
6516
|
if (fetchProductInfoQueryContext.data.data.productinfo.maximumproductquant >= addtocardpayloadobj.quantity && fetchProductInfoQueryContext.data.data.productinfo.minimumproductquant <= addtocardpayloadobj.quantity) {
|
|
6511
6517
|
addtocartfunc();
|
|
@@ -6536,7 +6542,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
6536
6542
|
size: sectionproperties.cartBtn_iconFontSize
|
|
6537
6543
|
}), sectionproperties.carticonstyle == 'Shopping cart 2' && /*#__PURE__*/React.createElement(MdAddShoppingCart, {
|
|
6538
6544
|
size: sectionproperties.cartBtn_iconFontSize
|
|
6539
|
-
})), langdetect == 'en' ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
6545
|
+
})), langdetect == 'en' ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer142 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer142 === void 0 || (_fetchProductInfoQuer142 = _fetchProductInfoQuer142.data) === null || _fetchProductInfoQuer142 === void 0 || (_fetchProductInfoQuer142 = _fetchProductInfoQuer142.productinfo) === null || _fetchProductInfoQuer142 === void 0 ? void 0 : _fetchProductInfoQuer142.productactionbuttontext_en : fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer143 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer143 === void 0 || (_fetchProductInfoQuer143 = _fetchProductInfoQuer143.data) === null || _fetchProductInfoQuer143 === void 0 || (_fetchProductInfoQuer143 = _fetchProductInfoQuer143.productinfo) === null || _fetchProductInfoQuer143 === void 0 ? void 0 : _fetchProductInfoQuer143.productactionbuttontext_ar), AddtoCartMutationContext.isLoading && /*#__PURE__*/React.createElement("div", {
|
|
6540
6546
|
className: ' d-flex align-items-center justify-content-center '
|
|
6541
6547
|
}, /*#__PURE__*/React.createElement(CircularProgress, {
|
|
6542
6548
|
color: sectionproperties.cartBtnTextcolor,
|
|
@@ -6580,7 +6586,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
6580
6586
|
objectFit: 'contain'
|
|
6581
6587
|
},
|
|
6582
6588
|
loading: "lazy"
|
|
6583
|
-
}))), /*#__PURE__*/React.createElement(Modal.Footer, null)), Object.keys(sectionproperties).length != 0 && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
6589
|
+
}))), /*#__PURE__*/React.createElement(Modal.Footer, null)), Object.keys(sectionproperties).length != 0 && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i18 = authdetailsContext.instinfo) === null || _authdetailsContext$i18 === void 0 ? void 0 : _authdetailsContext$i18.contactinfo.instid) == '68319d088f13e' && /*#__PURE__*/React.createElement("div", {
|
|
6584
6590
|
"class": "col-12 p-0",
|
|
6585
6591
|
style: {
|
|
6586
6592
|
position: 'fixed',
|
|
@@ -6607,8 +6613,8 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
6607
6613
|
},
|
|
6608
6614
|
onClick: function onClick() {
|
|
6609
6615
|
if (fetchProductInfoQueryContext.data.data.productinfo.product_calltoaction == 'Call') {
|
|
6610
|
-
var
|
|
6611
|
-
window.open('tel:' + ((
|
|
6616
|
+
var _fetchProductInfoQuer144;
|
|
6617
|
+
window.open('tel:' + ((_fetchProductInfoQuer144 = fetchProductInfoQueryContext.data.data.productinfo) === null || _fetchProductInfoQuer144 === void 0 ? void 0 : _fetchProductInfoQuer144.product_phonenumber), '_blank');
|
|
6612
6618
|
} else {
|
|
6613
6619
|
if (fetchProductInfoQueryContext.data.data.productinfo.maximumproductquant >= addtocardpayloadobj.quantity && fetchProductInfoQueryContext.data.data.productinfo.minimumproductquant <= addtocardpayloadobj.quantity) {
|
|
6614
6620
|
addtocartfunc();
|
|
@@ -6639,7 +6645,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
6639
6645
|
size: sectionproperties.cartBtn_iconFontSize
|
|
6640
6646
|
}), sectionproperties.carticonstyle == 'Shopping cart 2' && /*#__PURE__*/React.createElement(MdAddShoppingCart, {
|
|
6641
6647
|
size: sectionproperties.cartBtn_iconFontSize
|
|
6642
|
-
})), langdetect == 'en' ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
6648
|
+
})), langdetect == 'en' ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer145 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer145 === void 0 || (_fetchProductInfoQuer145 = _fetchProductInfoQuer145.data) === null || _fetchProductInfoQuer145 === void 0 || (_fetchProductInfoQuer145 = _fetchProductInfoQuer145.productinfo) === null || _fetchProductInfoQuer145 === void 0 ? void 0 : _fetchProductInfoQuer145.productactionbuttontext_en : fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer146 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer146 === void 0 || (_fetchProductInfoQuer146 = _fetchProductInfoQuer146.data) === null || _fetchProductInfoQuer146 === void 0 || (_fetchProductInfoQuer146 = _fetchProductInfoQuer146.productinfo) === null || _fetchProductInfoQuer146 === void 0 ? void 0 : _fetchProductInfoQuer146.productactionbuttontext_ar), AddtoCartMutationContext.isLoading && /*#__PURE__*/React.createElement("div", {
|
|
6643
6649
|
className: ' d-flex align-items-center justify-content-center '
|
|
6644
6650
|
}, /*#__PURE__*/React.createElement(CircularProgress, {
|
|
6645
6651
|
color: sectionproperties.cartBtnTextcolor,
|
|
@@ -13225,11 +13231,15 @@ styleInject(css_248z$G);
|
|
|
13225
13231
|
function ownKeys$2t(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; }
|
|
13226
13232
|
function _objectSpread$2t(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2t(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2t(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
13227
13233
|
var Checkout = function Checkout(props) {
|
|
13228
|
-
var _fetchTabexCountriesQ2, _css, _authdetailsContext$i7, _authdetailsContext$i8,
|
|
13234
|
+
var _fetchTabexCountriesQ2, _css, _authdetailsContext$i7, _authdetailsContext$i8, _fetchcustomercartQue65, _authdetailsContext$i9, _fetchcustomercartQue66, _authdetailsContext$i0, _authdetailsContext$i1, _authdetailsContext$i10, _authdetailsContext$i11, _fetchcustomercartQue67, _authdetailsContext$i12, _fetchcustomercartQue73, _fetchcustomercartQue74, _fetchcustomercartQue75, _fetchcustomercartQue76, _fetchcustomercartQue77, _fetchcustomercartQue79, _fetchcustomercartQue81, _fetchcustomercartQue83, _fetchcustomercartQue85, _fetchcustomercartQue87, _authdetailsContext$i13, _fetchcustomercartQue89, _authdetailsContext$i14, _fetchcustomercartQue91, _authdetailsContext$i15, _fetchcustomercartQue93, _authdetailsContext$i16, _fetchcustomercartQue95, _authdetailsContext$i17, _fetchcustomercartQue97, _authdetailsContext$i18, _authdetailsContext$i19, _fetchcustomercartQue99, _fetchcustomercartQue100;
|
|
13229
13235
|
var _useState = useState(null),
|
|
13230
13236
|
_useState2 = _slicedToArray(_useState, 2);
|
|
13231
13237
|
_useState2[0];
|
|
13232
13238
|
_useState2[1];
|
|
13239
|
+
var _useState3 = useState(false),
|
|
13240
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
13241
|
+
showpopup = _useState4[0],
|
|
13242
|
+
setshowpopup = _useState4[1];
|
|
13233
13243
|
var langdetect = props.actions.langdetect;
|
|
13234
13244
|
var lang = props.actions.lang;
|
|
13235
13245
|
var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
|
|
@@ -13252,38 +13262,38 @@ var Checkout = function Checkout(props) {
|
|
|
13252
13262
|
var authdetailsContext = props.actions.authdetailsContext;
|
|
13253
13263
|
var NotificationManager = props.actions.NotificationManager;
|
|
13254
13264
|
var queryClient = props.actions.queryClient;
|
|
13255
|
-
var _useState3 = useState(''),
|
|
13256
|
-
_useState4 = _slicedToArray(_useState3, 2),
|
|
13257
|
-
sectionproperties = _useState4[0],
|
|
13258
|
-
setsectionproperties = _useState4[1];
|
|
13259
13265
|
var _useState5 = useState(''),
|
|
13260
|
-
_useState6 = _slicedToArray(_useState5, 2)
|
|
13261
|
-
_useState6[0]
|
|
13262
|
-
|
|
13263
|
-
var _useState7 = useState(
|
|
13264
|
-
_useState8 = _slicedToArray(_useState7, 2)
|
|
13265
|
-
|
|
13266
|
-
|
|
13267
|
-
var _useState9 = useState(
|
|
13268
|
-
_useState0 = _slicedToArray(_useState9, 2)
|
|
13269
|
-
_useState0[0]
|
|
13270
|
-
_useState0[1];
|
|
13266
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
13267
|
+
sectionproperties = _useState6[0],
|
|
13268
|
+
setsectionproperties = _useState6[1];
|
|
13269
|
+
var _useState7 = useState(''),
|
|
13270
|
+
_useState8 = _slicedToArray(_useState7, 2);
|
|
13271
|
+
_useState8[0];
|
|
13272
|
+
var setCurrentPageId = _useState8[1];
|
|
13273
|
+
var _useState9 = useState(0),
|
|
13274
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
13275
|
+
insthasaffiliate = _useState0[0],
|
|
13276
|
+
setinsthasaffiliate = _useState0[1];
|
|
13271
13277
|
var _useState1 = useState(false),
|
|
13272
13278
|
_useState10 = _slicedToArray(_useState1, 2);
|
|
13273
13279
|
_useState10[0];
|
|
13274
13280
|
_useState10[1];
|
|
13275
|
-
var _useState11 = useState(
|
|
13276
|
-
_useState12 = _slicedToArray(_useState11, 2)
|
|
13277
|
-
|
|
13278
|
-
|
|
13281
|
+
var _useState11 = useState(false),
|
|
13282
|
+
_useState12 = _slicedToArray(_useState11, 2);
|
|
13283
|
+
_useState12[0];
|
|
13284
|
+
_useState12[1];
|
|
13279
13285
|
var _useState13 = useState([]),
|
|
13280
13286
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
13281
|
-
|
|
13282
|
-
|
|
13283
|
-
var _useState15 = useState(
|
|
13287
|
+
shippingmethods = _useState14[0],
|
|
13288
|
+
setshippingmethods = _useState14[1];
|
|
13289
|
+
var _useState15 = useState([]),
|
|
13284
13290
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
13285
|
-
|
|
13286
|
-
|
|
13291
|
+
orderextrafeilds = _useState16[0],
|
|
13292
|
+
setorderextrafeilds = _useState16[1];
|
|
13293
|
+
var _useState17 = useState(false),
|
|
13294
|
+
_useState18 = _slicedToArray(_useState17, 2),
|
|
13295
|
+
instapaychosen = _useState18[0],
|
|
13296
|
+
setinstapaychosen = _useState18[1];
|
|
13287
13297
|
useEffect(function () {
|
|
13288
13298
|
var _templatepropcontext$;
|
|
13289
13299
|
var cartindex = templatepropcontext === null || templatepropcontext === void 0 || (_templatepropcontext$ = templatepropcontext.pagesnprop) === null || _templatepropcontext$ === void 0 ? void 0 : _templatepropcontext$.findIndex(function (x) {
|
|
@@ -13397,9 +13407,12 @@ var Checkout = function Checkout(props) {
|
|
|
13397
13407
|
};
|
|
13398
13408
|
useEffect(function () {
|
|
13399
13409
|
if (fetchcustomercartQueryContext != undefined && fetchcustomercartQueryContext.data != undefined && fetchcustomercartQueryContext.data.data != undefined && fetchcustomercartQueryContext.data.data.customercart != undefined && fetchcustomercartQueryContext.data.data.customercart.cityid != undefined && fetchcustomercartQueryContext.data.data.customercart.cityid != null && fetchcustomercartQueryContext.data.data.customercart.cityid != '' && fetchcustomercartQueryContext.data.data.customercart.length != 0) {
|
|
13400
|
-
var _fetchcustomercartQue9;
|
|
13410
|
+
var _fetchcustomercartQue9, _fetchcustomercartQue0;
|
|
13401
13411
|
var cityid = fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue9 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue9 === void 0 || (_fetchcustomercartQue9 = _fetchcustomercartQue9.data) === null || _fetchcustomercartQue9 === void 0 ? void 0 : _fetchcustomercartQue9.customercart.cityid;
|
|
13402
13412
|
fetchshippingmethods(cityid);
|
|
13413
|
+
if ((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 ? void 0 : _fetchcustomercartQue0.zonenotes) != null) {
|
|
13414
|
+
setshowpopup(true);
|
|
13415
|
+
}
|
|
13403
13416
|
}
|
|
13404
13417
|
if (fetchcustomercartQueryContext.isSuccess) {
|
|
13405
13418
|
setUsedOrderExtraFieldsValues(orderextrafeilds);
|
|
@@ -13444,7 +13457,7 @@ var Checkout = function Checkout(props) {
|
|
|
13444
13457
|
// });
|
|
13445
13458
|
// };
|
|
13446
13459
|
var cartinfoupdater = function cartinfoupdater(key, value) {
|
|
13447
|
-
var
|
|
13460
|
+
var _fetchcustomercartQue1, _fetchcustomercartQue10, _fetchcustomercartQue11, _fetchcustomercartQue12, _fetchcustomercartQue13, _fetchcustomercartQue14, _fetchcustomercartQue15, _fetchcustomercartQue16, _fetchcustomercartQue17, _fetchcustomercartQue18, _fetchcustomercartQue19;
|
|
13448
13461
|
var OrderExtraFieldsToBeSentArr = returnOrderExtraFieldsArrayTobeSnetarr();
|
|
13449
13462
|
var cartarr = queryClient.getQueryData('fetchcustomercart_API');
|
|
13450
13463
|
cartarr.data.customercart[key] = value;
|
|
@@ -13456,23 +13469,23 @@ var Checkout = function Checkout(props) {
|
|
|
13456
13469
|
}
|
|
13457
13470
|
var payloadobj = {
|
|
13458
13471
|
utmSource: utmSource,
|
|
13459
|
-
stateid: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
13460
|
-
countryid: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
13461
|
-
cityid: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
13462
|
-
address: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
13463
|
-
paymentmethod: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
13464
|
-
name: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
13465
|
-
email: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
13466
|
-
mobile: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
13467
|
-
notes: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
13468
|
-
aff_code: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
13469
|
-
shippingmethod_id: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
13472
|
+
stateid: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue1 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue1 === void 0 || (_fetchcustomercartQue1 = _fetchcustomercartQue1.data) === null || _fetchcustomercartQue1 === void 0 ? void 0 : _fetchcustomercartQue1.customercart.stateid,
|
|
13473
|
+
countryid: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue10 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue10 === void 0 || (_fetchcustomercartQue10 = _fetchcustomercartQue10.data) === null || _fetchcustomercartQue10 === void 0 ? void 0 : _fetchcustomercartQue10.customercart.countryid,
|
|
13474
|
+
cityid: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue11 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue11 === void 0 || (_fetchcustomercartQue11 = _fetchcustomercartQue11.data) === null || _fetchcustomercartQue11 === void 0 ? void 0 : _fetchcustomercartQue11.customercart.cityid,
|
|
13475
|
+
address: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue12 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue12 === void 0 || (_fetchcustomercartQue12 = _fetchcustomercartQue12.data) === null || _fetchcustomercartQue12 === void 0 ? void 0 : _fetchcustomercartQue12.customercart.address,
|
|
13476
|
+
paymentmethod: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue13 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue13 === void 0 || (_fetchcustomercartQue13 = _fetchcustomercartQue13.data) === null || _fetchcustomercartQue13 === void 0 ? void 0 : _fetchcustomercartQue13.customercart.paymentmethod,
|
|
13477
|
+
name: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue14 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue14 === void 0 || (_fetchcustomercartQue14 = _fetchcustomercartQue14.data) === null || _fetchcustomercartQue14 === void 0 ? void 0 : _fetchcustomercartQue14.customercart.name,
|
|
13478
|
+
email: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue15 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue15 === void 0 || (_fetchcustomercartQue15 = _fetchcustomercartQue15.data) === null || _fetchcustomercartQue15 === void 0 ? void 0 : _fetchcustomercartQue15.customercart.email,
|
|
13479
|
+
mobile: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue16 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue16 === void 0 || (_fetchcustomercartQue16 = _fetchcustomercartQue16.data) === null || _fetchcustomercartQue16 === void 0 ? void 0 : _fetchcustomercartQue16.customercart.mobile,
|
|
13480
|
+
notes: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue17 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue17 === void 0 || (_fetchcustomercartQue17 = _fetchcustomercartQue17.data) === null || _fetchcustomercartQue17 === void 0 ? void 0 : _fetchcustomercartQue17.customercart.notes,
|
|
13481
|
+
aff_code: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue18 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue18 === void 0 || (_fetchcustomercartQue18 = _fetchcustomercartQue18.data) === null || _fetchcustomercartQue18 === void 0 ? void 0 : _fetchcustomercartQue18.customercart.aff_code,
|
|
13482
|
+
shippingmethod_id: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue19 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue19 === void 0 || (_fetchcustomercartQue19 = _fetchcustomercartQue19.data) === null || _fetchcustomercartQue19 === void 0 ? void 0 : _fetchcustomercartQue19.customercart.shippingmethod_id,
|
|
13470
13483
|
orderextrafeilds: JSON.stringify(OrderExtraFieldsToBeSentArr)
|
|
13471
13484
|
};
|
|
13472
13485
|
if (key == 'address' || key == 'name' || key == 'mobile' || key == 'email' || key == 'notes' || key == 'aff_code') ; else {
|
|
13473
|
-
var
|
|
13486
|
+
var _fetchcustomercartQue20;
|
|
13474
13487
|
ChooseState_CountryMutationContext.mutate(payloadobj);
|
|
13475
|
-
fetchshippingmethods(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
13488
|
+
fetchshippingmethods(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue20 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue20 === void 0 || (_fetchcustomercartQue20 = _fetchcustomercartQue20.data) === null || _fetchcustomercartQue20 === void 0 || (_fetchcustomercartQue20 = _fetchcustomercartQue20.customercart) === null || _fetchcustomercartQue20 === void 0 ? void 0 : _fetchcustomercartQue20.cityid);
|
|
13476
13489
|
}
|
|
13477
13490
|
};
|
|
13478
13491
|
var usewalletpoints = function usewalletpoints() {
|
|
@@ -13684,7 +13697,7 @@ var Checkout = function Checkout(props) {
|
|
|
13684
13697
|
};
|
|
13685
13698
|
var addorderfuncrunner = /*#__PURE__*/function () {
|
|
13686
13699
|
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
|
|
13687
|
-
var
|
|
13700
|
+
var _fetchcustomercartQue21, _fetchcustomercartQue22, _fetchcustomercartQue23, _fetchcustomercartQue24, _fetchcustomercartQue25, _fetchcustomercartQue26, _fetchcustomercartQue27, _fetchcustomercartQue28, _fetchcustomercartQue29, _fetchcustomercartQue30, _fetchcustomercartQue31;
|
|
13688
13701
|
var OrderExtraFieldsToBeSentArr, utmSource, utmSourceLocalStorage;
|
|
13689
13702
|
return _regeneratorRuntime.wrap(function (_context) {
|
|
13690
13703
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -13701,21 +13714,21 @@ var Checkout = function Checkout(props) {
|
|
|
13701
13714
|
GeneralAPIMutationContext.mutate({
|
|
13702
13715
|
endpointurl: '/ChooseState_Country',
|
|
13703
13716
|
utmSource: utmSource,
|
|
13704
|
-
stateid: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
13705
|
-
countryid: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
13706
|
-
cityid: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
13707
|
-
address: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
13708
|
-
paymentmethod: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
13709
|
-
name: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
13710
|
-
email: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
13711
|
-
mobile: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
13712
|
-
notes: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
13713
|
-
aff_code: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
13714
|
-
shippingmethod_id: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
13717
|
+
stateid: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue21 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue21 === void 0 || (_fetchcustomercartQue21 = _fetchcustomercartQue21.data) === null || _fetchcustomercartQue21 === void 0 ? void 0 : _fetchcustomercartQue21.customercart.stateid,
|
|
13718
|
+
countryid: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue22 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue22 === void 0 || (_fetchcustomercartQue22 = _fetchcustomercartQue22.data) === null || _fetchcustomercartQue22 === void 0 ? void 0 : _fetchcustomercartQue22.customercart.countryid,
|
|
13719
|
+
cityid: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue23 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue23 === void 0 || (_fetchcustomercartQue23 = _fetchcustomercartQue23.data) === null || _fetchcustomercartQue23 === void 0 ? void 0 : _fetchcustomercartQue23.customercart.cityid,
|
|
13720
|
+
address: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue24 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue24 === void 0 || (_fetchcustomercartQue24 = _fetchcustomercartQue24.data) === null || _fetchcustomercartQue24 === void 0 ? void 0 : _fetchcustomercartQue24.customercart.address,
|
|
13721
|
+
paymentmethod: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue25 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue25 === void 0 || (_fetchcustomercartQue25 = _fetchcustomercartQue25.data) === null || _fetchcustomercartQue25 === void 0 ? void 0 : _fetchcustomercartQue25.customercart.paymentmethod,
|
|
13722
|
+
name: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue26 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue26 === void 0 || (_fetchcustomercartQue26 = _fetchcustomercartQue26.data) === null || _fetchcustomercartQue26 === void 0 ? void 0 : _fetchcustomercartQue26.customercart.name,
|
|
13723
|
+
email: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue27 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue27 === void 0 || (_fetchcustomercartQue27 = _fetchcustomercartQue27.data) === null || _fetchcustomercartQue27 === void 0 ? void 0 : _fetchcustomercartQue27.customercart.email,
|
|
13724
|
+
mobile: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue28 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue28 === void 0 || (_fetchcustomercartQue28 = _fetchcustomercartQue28.data) === null || _fetchcustomercartQue28 === void 0 ? void 0 : _fetchcustomercartQue28.customercart.mobile,
|
|
13725
|
+
notes: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue29 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue29 === void 0 || (_fetchcustomercartQue29 = _fetchcustomercartQue29.data) === null || _fetchcustomercartQue29 === void 0 ? void 0 : _fetchcustomercartQue29.customercart.notes,
|
|
13726
|
+
aff_code: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue30 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue30 === void 0 || (_fetchcustomercartQue30 = _fetchcustomercartQue30.data) === null || _fetchcustomercartQue30 === void 0 ? void 0 : _fetchcustomercartQue30.customercart.aff_code,
|
|
13727
|
+
shippingmethod_id: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue31 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue31 === void 0 || (_fetchcustomercartQue31 = _fetchcustomercartQue31.data) === null || _fetchcustomercartQue31 === void 0 ? void 0 : _fetchcustomercartQue31.customercart.shippingmethod_id,
|
|
13715
13728
|
orderextrafeilds: JSON.stringify(OrderExtraFieldsToBeSentArr),
|
|
13716
13729
|
mutateSuccesscallback: function mutateSuccesscallback(data, variables) {
|
|
13717
13730
|
if (data.data.status) {
|
|
13718
|
-
var
|
|
13731
|
+
var _fetchcustomercartQue32, _fetchcustomercartQue33;
|
|
13719
13732
|
var cartarr = queryClient.getQueryData('fetchcustomercart_API');
|
|
13720
13733
|
cartarr.data = data.data.cartresponse;
|
|
13721
13734
|
queryClient.setQueryData('fetchcustomercart_API', cartarr);
|
|
@@ -13723,9 +13736,9 @@ var Checkout = function Checkout(props) {
|
|
|
13723
13736
|
// const cookies = new Cookies();
|
|
13724
13737
|
localStorage.setItem('cdata', data.data.cdata);
|
|
13725
13738
|
}
|
|
13726
|
-
if (sectionproperties.verifyemailandphone == 'Yes' && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
13739
|
+
if (sectionproperties.verifyemailandphone == 'Yes' && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue32 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue32 === void 0 || (_fetchcustomercartQue32 = _fetchcustomercartQue32.data) === null || _fetchcustomercartQue32 === void 0 ? void 0 : _fetchcustomercartQue32.customercart.name.length) < 3) {
|
|
13727
13740
|
NotificationManager.warning('', langdetect == 'en' ? 'Write your full name' : 'اكتب الاسم كاملا');
|
|
13728
|
-
} else if (sectionproperties.verifyemailandphone == 'Yes' && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
13741
|
+
} else if (sectionproperties.verifyemailandphone == 'Yes' && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue33 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue33 === void 0 || (_fetchcustomercartQue33 = _fetchcustomercartQue33.data) === null || _fetchcustomercartQue33 === void 0 ? void 0 : _fetchcustomercartQue33.customercart.mobile.length) < 11) {
|
|
13729
13742
|
NotificationManager.warning('', langdetect == 'en' ? 'Write valid mobile number' : 'اكتب رقم تليفون صحيح');
|
|
13730
13743
|
} else {
|
|
13731
13744
|
AddOrderMutationContext.mutate();
|
|
@@ -13756,7 +13769,7 @@ var Checkout = function Checkout(props) {
|
|
|
13756
13769
|
return isloading;
|
|
13757
13770
|
};
|
|
13758
13771
|
var Mycart = function Mycart() {
|
|
13759
|
-
var
|
|
13772
|
+
var _fetchcustomercartQue34, _fetchcustomercartQue35, _fetchcustomercartQue36, _fetchcustomercartQue40, _fetchcustomercartQue41, _fetchcustomercartQue42, _fetchcustomercartQue43, _fetchcustomercartQue44, _authdetailsContext$i5, _fetchcustomercartQue45, _fetchcustomercartQue46, _fetchcustomercartQue47, _fetchcustomercartQue48, _fetchcustomercartQue49, _fetchcustomercartQue51, _fetchcustomercartQue52, _fetchcustomercartQue53, _fetchcustomercartQue54, _fetchcustomercartQue55, _fetchcustomercartQue56, _fetchcustomercartQue57, _fetchcustomercartQue58, _fetchcustomercartQue59, _fetchcustomercartQue60, _authdetailsContext$i6, _fetchcustomercartQue61, _fetchcustomercartQue62, _fetchcustomercartQue63, _fetchcustomercartQue64;
|
|
13760
13773
|
return /*#__PURE__*/React.createElement("div", {
|
|
13761
13774
|
className: "row m-0 w-100 mb-md-3"
|
|
13762
13775
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -13781,7 +13794,7 @@ var Checkout = function Checkout(props) {
|
|
|
13781
13794
|
className: "row m-0 w-100"
|
|
13782
13795
|
}, /*#__PURE__*/React.createElement("div", {
|
|
13783
13796
|
className: "col-lg-12 p-0"
|
|
13784
|
-
}, fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
13797
|
+
}, fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue34 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue34 === void 0 || (_fetchcustomercartQue34 = _fetchcustomercartQue34.data) === null || _fetchcustomercartQue34 === void 0 ? void 0 : _fetchcustomercartQue34.customercart.cartitems.map(function (item, index) {
|
|
13785
13798
|
if (item.product_extrafields != null) {
|
|
13786
13799
|
var product_extrafields = JSON.parse(item.product_extrafields);
|
|
13787
13800
|
// var product_extrafields_parsed = JSON.stringify(product_extrafields);
|
|
@@ -13910,13 +13923,13 @@ var Checkout = function Checkout(props) {
|
|
|
13910
13923
|
type: "text",
|
|
13911
13924
|
className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
|
|
13912
13925
|
placeholder: lang.giftcarddicountcode,
|
|
13913
|
-
value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
13926
|
+
value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue35 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue35 === void 0 || (_fetchcustomercartQue35 = _fetchcustomercartQue35.data) === null || _fetchcustomercartQue35 === void 0 ? void 0 : _fetchcustomercartQue35.customercart.couponname,
|
|
13914
13927
|
onChange: function onChange(event) {
|
|
13915
13928
|
var cartarr = queryClient.getQueryData('fetchcustomercart_API');
|
|
13916
13929
|
cartarr.data.customercart.couponname = event.target.value;
|
|
13917
13930
|
queryClient.setQueryData('fetchcustomercart_API', cartarr);
|
|
13918
13931
|
},
|
|
13919
|
-
disabled: fetchcustomercartQueryContext !== null && fetchcustomercartQueryContext !== void 0 && (
|
|
13932
|
+
disabled: fetchcustomercartQueryContext !== null && fetchcustomercartQueryContext !== void 0 && (_fetchcustomercartQue36 = fetchcustomercartQueryContext.data) !== null && _fetchcustomercartQue36 !== void 0 && (_fetchcustomercartQue36 = _fetchcustomercartQue36.data) !== null && _fetchcustomercartQue36 !== void 0 && _fetchcustomercartQue36.customercart.couponexists ? true : false,
|
|
13920
13933
|
style: {
|
|
13921
13934
|
boxShadow: 'none'
|
|
13922
13935
|
}
|
|
@@ -13925,14 +13938,14 @@ var Checkout = function Checkout(props) {
|
|
|
13925
13938
|
}, /*#__PURE__*/React.createElement("button", {
|
|
13926
13939
|
className: " ".concat(checkoutstyles.applybtnstyles),
|
|
13927
13940
|
onClick: function onClick() {
|
|
13928
|
-
var
|
|
13929
|
-
if (!(fetchcustomercartQueryContext !== null && fetchcustomercartQueryContext !== void 0 && (
|
|
13930
|
-
var
|
|
13941
|
+
var _fetchcustomercartQue37;
|
|
13942
|
+
if (!(fetchcustomercartQueryContext !== null && fetchcustomercartQueryContext !== void 0 && (_fetchcustomercartQue37 = fetchcustomercartQueryContext.data) !== null && _fetchcustomercartQue37 !== void 0 && (_fetchcustomercartQue37 = _fetchcustomercartQue37.data) !== null && _fetchcustomercartQue37 !== void 0 && _fetchcustomercartQue37.customercart.couponexists)) {
|
|
13943
|
+
var _fetchcustomercartQue38, _fetchcustomercartQue39;
|
|
13931
13944
|
var payloadobj = {
|
|
13932
|
-
couponname: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
13945
|
+
couponname: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue38 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue38 === void 0 || (_fetchcustomercartQue38 = _fetchcustomercartQue38.data) === null || _fetchcustomercartQue38 === void 0 ? void 0 : _fetchcustomercartQue38.customercart.couponname,
|
|
13933
13946
|
functype: 'add'
|
|
13934
13947
|
};
|
|
13935
|
-
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
13948
|
+
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue39 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue39 === void 0 || (_fetchcustomercartQue39 = _fetchcustomercartQue39.data) === null || _fetchcustomercartQue39 === void 0 ? void 0 : _fetchcustomercartQue39.customercart.couponname.length) != 0) {
|
|
13936
13949
|
ApplyPromoCodeMutationContext.mutate(payloadobj);
|
|
13937
13950
|
} else {
|
|
13938
13951
|
NotificationManager.warning('', langdetect == 'en' ? 'Please Write Your Promo Code' : 'من فضلك اكتب كود الخصم');
|
|
@@ -13947,14 +13960,14 @@ var Checkout = function Checkout(props) {
|
|
|
13947
13960
|
disabled: ApplyPromoCodeMutationContext.isLoading ? true : false
|
|
13948
13961
|
}, /*#__PURE__*/React.createElement("span", {
|
|
13949
13962
|
className: ApplyPromoCodeMutationContext.isLoading ? "".concat(generalstyles.fadeOutButton) : "".concat(generalstyles.fadeInButton)
|
|
13950
|
-
}, fetchcustomercartQueryContext !== null && fetchcustomercartQueryContext !== void 0 && (
|
|
13963
|
+
}, fetchcustomercartQueryContext !== null && fetchcustomercartQueryContext !== void 0 && (_fetchcustomercartQue40 = fetchcustomercartQueryContext.data) !== null && _fetchcustomercartQue40 !== void 0 && (_fetchcustomercartQue40 = _fetchcustomercartQue40.data) !== null && _fetchcustomercartQue40 !== void 0 && _fetchcustomercartQue40.customercart.couponexists ? langdetect == 'en' ? 'Remove' : 'حذف' : langdetect == 'en' ? 'Apply' : 'تطبيق'), /*#__PURE__*/React.createElement("div", {
|
|
13951
13964
|
className: ApplyPromoCodeMutationContext.isLoading ? "".concat(generalstyles.fadeInButton, " ").concat(generalstyles.btn_preloader) + ' d-flex align-items-center justify-content-center ' : "".concat(generalstyles.fadeOutButton) + ' align-items-center justify-content-center '
|
|
13952
13965
|
}, /*#__PURE__*/React.createElement(CircularProgress, {
|
|
13953
13966
|
color: "#fff",
|
|
13954
13967
|
width: "20px",
|
|
13955
13968
|
height: "20px",
|
|
13956
13969
|
duration: "1s"
|
|
13957
|
-
})))))), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
13970
|
+
})))))), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue41 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue41 === void 0 || (_fetchcustomercartQue41 = _fetchcustomercartQue41.data) === null || _fetchcustomercartQue41 === void 0 || (_fetchcustomercartQue41 = _fetchcustomercartQue41.customercart) === null || _fetchcustomercartQue41 === void 0 ? void 0 : _fetchcustomercartQue41.availablewalletbalance) > 0 && /*#__PURE__*/React.createElement("div", {
|
|
13958
13971
|
className: "row m-0 w-100"
|
|
13959
13972
|
}, /*#__PURE__*/React.createElement("div", {
|
|
13960
13973
|
className: "col-lg-6 col-md-6 col-sm-6 p-0"
|
|
@@ -13964,7 +13977,7 @@ var Checkout = function Checkout(props) {
|
|
|
13964
13977
|
className: "col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0"
|
|
13965
13978
|
}, /*#__PURE__*/React.createElement("p", {
|
|
13966
13979
|
className: langdetect == 'en' ? "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-right ' : "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-left '
|
|
13967
|
-
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', " ", fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
13980
|
+
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', " ", fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue42 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue42 === void 0 || (_fetchcustomercartQue42 = _fetchcustomercartQue42.data) === null || _fetchcustomercartQue42 === void 0 || (_fetchcustomercartQue42 = _fetchcustomercartQue42.customercart) === null || _fetchcustomercartQue42 === void 0 ? void 0 : _fetchcustomercartQue42.availablewalletbalance, langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar)), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue43 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue43 === void 0 || (_fetchcustomercartQue43 = _fetchcustomercartQue43.data) === null || _fetchcustomercartQue43 === void 0 || (_fetchcustomercartQue43 = _fetchcustomercartQue43.customercart) === null || _fetchcustomercartQue43 === void 0 ? void 0 : _fetchcustomercartQue43.usewalletpoints) == 0 && /*#__PURE__*/React.createElement("div", {
|
|
13968
13981
|
className: "col-lg-12 col-md-12 col-sm-6 d-flex justify-content-center p-0"
|
|
13969
13982
|
}, /*#__PURE__*/React.createElement("p", {
|
|
13970
13983
|
style: {
|
|
@@ -13974,7 +13987,7 @@ var Checkout = function Checkout(props) {
|
|
|
13974
13987
|
onClick: function onClick() {
|
|
13975
13988
|
usewalletpoints();
|
|
13976
13989
|
}
|
|
13977
|
-
}, langdetect == 'en' ? 'Use Points' : 'إستخدام النقاط'))), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
13990
|
+
}, langdetect == 'en' ? 'Use Points' : 'إستخدام النقاط'))), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue44 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue44 === void 0 || (_fetchcustomercartQue44 = _fetchcustomercartQue44.data) === null || _fetchcustomercartQue44 === void 0 || (_fetchcustomercartQue44 = _fetchcustomercartQue44.customercart) === null || _fetchcustomercartQue44 === void 0 ? void 0 : _fetchcustomercartQue44.usewalletpoints) == 1 && /*#__PURE__*/React.createElement("div", {
|
|
13978
13991
|
className: "row m-0 w-100"
|
|
13979
13992
|
}, /*#__PURE__*/React.createElement("div", {
|
|
13980
13993
|
className: "col-lg-12 col-md-12 col-sm-6 d-flex justify-content-center p-0"
|
|
@@ -13996,10 +14009,10 @@ var Checkout = function Checkout(props) {
|
|
|
13996
14009
|
className: "col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0"
|
|
13997
14010
|
}, /*#__PURE__*/React.createElement("p", {
|
|
13998
14011
|
className: langdetect == 'en' ? "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-right ' : "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-left '
|
|
13999
|
-
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', sectionproperties.removedecimals == 'Without Decimals' ? parseFloat(Number(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
14012
|
+
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', sectionproperties.removedecimals == 'Without Decimals' ? parseFloat(Number(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue45 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue45 === void 0 || (_fetchcustomercartQue45 = _fetchcustomercartQue45.data) === null || _fetchcustomercartQue45 === void 0 ? void 0 : _fetchcustomercartQue45.customercart.totalprice).toFixed(2)) : sectionproperties.removedecimals == 'Without Decimals and Separated With Comma' ? Math.floor(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue46 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue46 === void 0 || (_fetchcustomercartQue46 = _fetchcustomercartQue46.data) === null || _fetchcustomercartQue46 === void 0 ? void 0 : _fetchcustomercartQue46.customercart.totalprice).toLocaleString() : parseFloat(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue47 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue47 === void 0 || (_fetchcustomercartQue47 = _fetchcustomercartQue47.data) === null || _fetchcustomercartQue47 === void 0 ? void 0 : _fetchcustomercartQue47.customercart.totalprice).toFixed(2), ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar))), sectionproperties.showtotalsection == 'Show' && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue48 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue48 === void 0 || (_fetchcustomercartQue48 = _fetchcustomercartQue48.data) === null || _fetchcustomercartQue48 === void 0 || (_fetchcustomercartQue48 = _fetchcustomercartQue48.customercart) === null || _fetchcustomercartQue48 === void 0 || (_fetchcustomercartQue48 = _fetchcustomercartQue48.genpayments) === null || _fetchcustomercartQue48 === void 0 ? void 0 : _fetchcustomercartQue48.length) != 0 && /*#__PURE__*/React.createElement("div", {
|
|
14000
14013
|
className: "row m-0 w-100"
|
|
14001
|
-
}, fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
14002
|
-
var
|
|
14014
|
+
}, fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue49 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue49 === void 0 || (_fetchcustomercartQue49 = _fetchcustomercartQue49.data) === null || _fetchcustomercartQue49 === void 0 || (_fetchcustomercartQue49 = _fetchcustomercartQue49.customercart) === null || _fetchcustomercartQue49 === void 0 || (_fetchcustomercartQue49 = _fetchcustomercartQue49.genpayments) === null || _fetchcustomercartQue49 === void 0 ? void 0 : _fetchcustomercartQue49.map(function (item, index) {
|
|
14015
|
+
var _fetchcustomercartQue50;
|
|
14003
14016
|
return /*#__PURE__*/React.createElement("div", {
|
|
14004
14017
|
"class": "col-lg-12 p-0"
|
|
14005
14018
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -14018,8 +14031,8 @@ var Checkout = function Checkout(props) {
|
|
|
14018
14031
|
style: {
|
|
14019
14032
|
color: item.addsubtype == 'subtract' ? 'var(--danger)' : 'var(--success)'
|
|
14020
14033
|
}
|
|
14021
|
-
}, item.addsubtype == 'subtract' && /*#__PURE__*/React.createElement("span", null, "-"), item.valuetype == 'value' && /*#__PURE__*/React.createElement("span", null, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', " ", item.value, ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar), item.valuetype == 'percentage' && /*#__PURE__*/React.createElement("span", null, item.value, "% (", langdetect == 'en' ? authdetailsContext.currencyname_en : '', ' ', (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
14022
|
-
}))), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
14034
|
+
}, item.addsubtype == 'subtract' && /*#__PURE__*/React.createElement("span", null, "-"), item.valuetype == 'value' && /*#__PURE__*/React.createElement("span", null, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', " ", item.value, ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar), item.valuetype == 'percentage' && /*#__PURE__*/React.createElement("span", null, item.value, "% (", langdetect == 'en' ? authdetailsContext.currencyname_en : '', ' ', (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue50 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue50 === void 0 || (_fetchcustomercartQue50 = _fetchcustomercartQue50.data) === null || _fetchcustomercartQue50 === void 0 || (_fetchcustomercartQue50 = _fetchcustomercartQue50.customercart) === null || _fetchcustomercartQue50 === void 0 ? void 0 : _fetchcustomercartQue50.totalprice) * (item.value / 100), ' ', langdetect == 'ar' ? authdetailsContext.currencyname_ar : '', ")")))));
|
|
14035
|
+
}))), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue51 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue51 === void 0 || (_fetchcustomercartQue51 = _fetchcustomercartQue51.data) === null || _fetchcustomercartQue51 === void 0 || (_fetchcustomercartQue51 = _fetchcustomercartQue51.customercart) === null || _fetchcustomercartQue51 === void 0 ? void 0 : _fetchcustomercartQue51.usewalletpoints) == 1 && /*#__PURE__*/React.createElement("div", {
|
|
14023
14036
|
className: "row m-0 w-100"
|
|
14024
14037
|
}, /*#__PURE__*/React.createElement("div", {
|
|
14025
14038
|
className: "col-lg-6 col-md-6 col-sm-6 p-0"
|
|
@@ -14032,7 +14045,7 @@ var Checkout = function Checkout(props) {
|
|
|
14032
14045
|
style: {
|
|
14033
14046
|
color: 'red'
|
|
14034
14047
|
}
|
|
14035
|
-
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', " -", ' ', parseFloat(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
14048
|
+
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', " -", ' ', parseFloat(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue52 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue52 === void 0 || (_fetchcustomercartQue52 = _fetchcustomercartQue52.data) === null || _fetchcustomercartQue52 === void 0 || (_fetchcustomercartQue52 = _fetchcustomercartQue52.customercart) === null || _fetchcustomercartQue52 === void 0 ? void 0 : _fetchcustomercartQue52.walletpointsused), " ", langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar))), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue53 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue53 === void 0 || (_fetchcustomercartQue53 = _fetchcustomercartQue53.data) === null || _fetchcustomercartQue53 === void 0 ? void 0 : _fetchcustomercartQue53.customercart.couponexists) && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue54 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue54 === void 0 || (_fetchcustomercartQue54 = _fetchcustomercartQue54.data) === null || _fetchcustomercartQue54 === void 0 ? void 0 : _fetchcustomercartQue54.customercart.discountprice) != 0 && /*#__PURE__*/React.createElement("div", {
|
|
14036
14049
|
className: "col-lg-12 p-0 mb-1"
|
|
14037
14050
|
}, /*#__PURE__*/React.createElement("div", {
|
|
14038
14051
|
className: "row m-0 w-100"
|
|
@@ -14044,7 +14057,7 @@ var Checkout = function Checkout(props) {
|
|
|
14044
14057
|
className: "col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0"
|
|
14045
14058
|
}, /*#__PURE__*/React.createElement("p", {
|
|
14046
14059
|
className: langdetect == 'en' ? "".concat(checkoutstyles.summarysectionstyles, " ") + ' m-0 p-0 text-danger wordbreak text-right ' : "".concat(checkoutstyles.summarysectionstyles, " ") + ' m-0 p-0 text-danger wordbreak text-left '
|
|
14047
|
-
}, (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
14060
|
+
}, (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue55 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue55 === void 0 || (_fetchcustomercartQue55 = _fetchcustomercartQue55.data) === null || _fetchcustomercartQue55 === void 0 ? void 0 : _fetchcustomercartQue55.customercart.discountprice) != 0 && /*#__PURE__*/React.createElement("span", null, "- ", langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', parseFloat(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue56 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue56 === void 0 || (_fetchcustomercartQue56 = _fetchcustomercartQue56.data) === null || _fetchcustomercartQue56 === void 0 ? void 0 : _fetchcustomercartQue56.customercart.discountprice).toFixed(2), ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue57 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue57 === void 0 || (_fetchcustomercartQue57 = _fetchcustomercartQue57.data) === null || _fetchcustomercartQue57 === void 0 ? void 0 : _fetchcustomercartQue57.customercart.discountprice) == 0 && /*#__PURE__*/React.createElement("span", null, "0"))))), sectionproperties.hideshipping == 'Show' && /*#__PURE__*/React.createElement("div", {
|
|
14048
14061
|
className: "col-lg-12 p-0"
|
|
14049
14062
|
}, /*#__PURE__*/React.createElement("div", {
|
|
14050
14063
|
className: "row m-0 w-100"
|
|
@@ -14052,11 +14065,11 @@ var Checkout = function Checkout(props) {
|
|
|
14052
14065
|
className: "col-lg-6 col-md-6 col-sm-6 p-0"
|
|
14053
14066
|
}, /*#__PURE__*/React.createElement("p", {
|
|
14054
14067
|
className: "".concat(checkoutstyles.summarysectionstyles, " ") + ' m-0 p-0 d-flex align-items-start wordbreak '
|
|
14055
|
-
}, langdetect == 'en' ? sectionproperties.shippingfeestitle_en : sectionproperties.shippingfeestitle_ar)), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
14068
|
+
}, langdetect == 'en' ? sectionproperties.shippingfeestitle_en : sectionproperties.shippingfeestitle_ar)), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue58 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue58 === void 0 || (_fetchcustomercartQue58 = _fetchcustomercartQue58.data) === null || _fetchcustomercartQue58 === void 0 ? void 0 : _fetchcustomercartQue58.customercart.zoneexists) && /*#__PURE__*/React.createElement("div", {
|
|
14056
14069
|
className: "col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0"
|
|
14057
14070
|
}, /*#__PURE__*/React.createElement("p", {
|
|
14058
14071
|
className: langdetect == 'en' ? "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-right ' : "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-left '
|
|
14059
|
-
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', parseFloat(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
14072
|
+
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', parseFloat(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue59 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue59 === void 0 || (_fetchcustomercartQue59 = _fetchcustomercartQue59.data) === null || _fetchcustomercartQue59 === void 0 ? void 0 : _fetchcustomercartQue59.customercart.zoneprice).toFixed(2), ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar)), !(fetchcustomercartQueryContext !== null && fetchcustomercartQueryContext !== void 0 && (_fetchcustomercartQue60 = fetchcustomercartQueryContext.data) !== null && _fetchcustomercartQue60 !== void 0 && (_fetchcustomercartQue60 = _fetchcustomercartQue60.data) !== null && _fetchcustomercartQue60 !== void 0 && _fetchcustomercartQue60.customercart.zoneexists) && /*#__PURE__*/React.createElement("div", {
|
|
14060
14073
|
className: "col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0"
|
|
14061
14074
|
}, /*#__PURE__*/React.createElement("p", {
|
|
14062
14075
|
className: "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 d-flex align-items-start wordbreak ',
|
|
@@ -14095,7 +14108,7 @@ var Checkout = function Checkout(props) {
|
|
|
14095
14108
|
textTransform: sectionproperties.total_texttransform,
|
|
14096
14109
|
color: sectionproperties.total_color
|
|
14097
14110
|
}
|
|
14098
|
-
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', sectionproperties.removedecimals == 'Without Decimals' ? parseFloat(Number(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
14111
|
+
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', sectionproperties.removedecimals == 'Without Decimals' ? parseFloat(Number(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue61 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue61 === void 0 || (_fetchcustomercartQue61 = _fetchcustomercartQue61.data) === null || _fetchcustomercartQue61 === void 0 ? void 0 : _fetchcustomercartQue61.customercart.totalpriceafterdiscount).toFixed(2)) : sectionproperties.removedecimals == 'Without Decimals and Separated With Comma' ? Math.floor(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue62 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue62 === void 0 || (_fetchcustomercartQue62 = _fetchcustomercartQue62.data) === null || _fetchcustomercartQue62 === void 0 ? void 0 : _fetchcustomercartQue62.customercart.totalpriceafterdiscount).toLocaleString() : parseFloat(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue63 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue63 === void 0 || (_fetchcustomercartQue63 = _fetchcustomercartQue63.data) === null || _fetchcustomercartQue63 === void 0 ? void 0 : _fetchcustomercartQue63.customercart.totalpriceafterdiscount).toFixed(2), ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar)))))), sectionproperties.slideshowtext1_show == 'Show' && /*#__PURE__*/React.createElement("div", {
|
|
14099
14112
|
"class": "col-lg-12 p-0 my-2 p-2 allcentered mb-3",
|
|
14100
14113
|
style: {
|
|
14101
14114
|
background: '#eee',
|
|
@@ -14130,7 +14143,7 @@ var Checkout = function Checkout(props) {
|
|
|
14130
14143
|
width: "20px",
|
|
14131
14144
|
height: "20px",
|
|
14132
14145
|
duration: "1s"
|
|
14133
|
-
}), !ischeckoutbuttonloading() ? (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
14146
|
+
}), !ischeckoutbuttonloading() ? (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue64 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue64 === void 0 || (_fetchcustomercartQue64 = _fetchcustomercartQue64.data) === null || _fetchcustomercartQue64 === void 0 ? void 0 : _fetchcustomercartQue64.customercart.paymentmethod) == 'onlinepayment' ? lang.continuetopayment : authdetailsContext.loggedin ? langdetect == 'en' ? sectionproperties.checkoutbtn_en2 : sectionproperties.checkoutbtn_ar2 : langdetect == 'en' ? sectionproperties.checkoutbtn_en2 + ' ' + lang.asaguest : sectionproperties.checkoutbtn_ar2 + ' ' + lang.asaguest : '')), authdetailsContext.loggedin == false && sectionproperties.loginbtn_show == 'Show' && /*#__PURE__*/React.createElement("div", {
|
|
14134
14147
|
className: "col-lg-12 d-flex align-items-center justify-content-center mt-4 p-0 mb-2 mt-sm-3",
|
|
14135
14148
|
style: {
|
|
14136
14149
|
marginTop: sectionproperties.showtotalsection == 'Show' ? 0 : '0.5rem'
|
|
@@ -14297,7 +14310,7 @@ var Checkout = function Checkout(props) {
|
|
|
14297
14310
|
}, lang.name), /*#__PURE__*/React.createElement("input", {
|
|
14298
14311
|
type: 'text',
|
|
14299
14312
|
className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
|
|
14300
|
-
value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
14313
|
+
value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue65 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue65 === void 0 || (_fetchcustomercartQue65 = _fetchcustomercartQue65.data) === null || _fetchcustomercartQue65 === void 0 ? void 0 : _fetchcustomercartQue65.customercart.name,
|
|
14301
14314
|
onChange: function onChange(event) {
|
|
14302
14315
|
cartinfoupdater('name', event.target.value);
|
|
14303
14316
|
},
|
|
@@ -14312,7 +14325,7 @@ var Checkout = function Checkout(props) {
|
|
|
14312
14325
|
}, langdetect == 'en' ? 'Phone Number' : 'رقم الهاتف'), /*#__PURE__*/React.createElement("input", {
|
|
14313
14326
|
type: 'text',
|
|
14314
14327
|
className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
|
|
14315
|
-
value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
14328
|
+
value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue66 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue66 === void 0 || (_fetchcustomercartQue66 = _fetchcustomercartQue66.data) === null || _fetchcustomercartQue66 === void 0 ? void 0 : _fetchcustomercartQue66.customercart.mobile,
|
|
14316
14329
|
onChange: function onChange(event) {
|
|
14317
14330
|
cartinfoupdater('mobile', event.target.value);
|
|
14318
14331
|
},
|
|
@@ -14335,7 +14348,7 @@ var Checkout = function Checkout(props) {
|
|
|
14335
14348
|
}, langdetect == 'en' ? 'Optional' : 'اختياري'), ' '), /*#__PURE__*/React.createElement("input", {
|
|
14336
14349
|
type: 'text',
|
|
14337
14350
|
className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
|
|
14338
|
-
value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
14351
|
+
value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue67 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue67 === void 0 || (_fetchcustomercartQue67 = _fetchcustomercartQue67.data) === null || _fetchcustomercartQue67 === void 0 ? void 0 : _fetchcustomercartQue67.customercart.email,
|
|
14339
14352
|
onChange: function onChange(event) {
|
|
14340
14353
|
cartinfoupdater('email', event.target.value);
|
|
14341
14354
|
},
|
|
@@ -14388,8 +14401,8 @@ var Checkout = function Checkout(props) {
|
|
|
14388
14401
|
return option.id;
|
|
14389
14402
|
},
|
|
14390
14403
|
value: fetchTabexCountriesQueryContext.data.data.countries.filter(function (option) {
|
|
14391
|
-
var
|
|
14392
|
-
return option.id == (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
14404
|
+
var _fetchcustomercartQue68;
|
|
14405
|
+
return option.id == (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue68 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue68 === void 0 || (_fetchcustomercartQue68 = _fetchcustomercartQue68.data) === null || _fetchcustomercartQue68 === void 0 ? void 0 : _fetchcustomercartQue68.customercart.countryid);
|
|
14393
14406
|
}),
|
|
14394
14407
|
onChange: function onChange(option) {
|
|
14395
14408
|
var tempFetchTabexStatesPayloadobjContext = _objectSpread$2t({}, FetchTabexStatesPayloadobjContext);
|
|
@@ -14443,12 +14456,12 @@ var Checkout = function Checkout(props) {
|
|
|
14443
14456
|
return option.id;
|
|
14444
14457
|
},
|
|
14445
14458
|
value: fetchTabexStatesQueryContext.data.data.states.filter(function (option) {
|
|
14446
|
-
var
|
|
14447
|
-
return option.id == (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
14459
|
+
var _fetchcustomercartQue69;
|
|
14460
|
+
return option.id == (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue69 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue69 === void 0 || (_fetchcustomercartQue69 = _fetchcustomercartQue69.data) === null || _fetchcustomercartQue69 === void 0 ? void 0 : _fetchcustomercartQue69.customercart.stateid);
|
|
14448
14461
|
}),
|
|
14449
14462
|
onChange: function onChange(option) {
|
|
14450
|
-
var
|
|
14451
|
-
if (option.id.length != 0 && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
14463
|
+
var _fetchcustomercartQue70;
|
|
14464
|
+
if (option.id.length != 0 && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue70 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue70 === void 0 || (_fetchcustomercartQue70 = _fetchcustomercartQue70.data) === null || _fetchcustomercartQue70 === void 0 ? void 0 : _fetchcustomercartQue70.customercart.countryid.length) != 0) {
|
|
14452
14465
|
var tempFetchTabexStatesPayloadobjContext = _objectSpread$2t({}, FetchTabexStatesPayloadobjContext);
|
|
14453
14466
|
tempFetchTabexStatesPayloadobjContext.functype = 'cities';
|
|
14454
14467
|
tempFetchTabexStatesPayloadobjContext.state_id = option.id;
|
|
@@ -14500,11 +14513,15 @@ var Checkout = function Checkout(props) {
|
|
|
14500
14513
|
return option.id;
|
|
14501
14514
|
},
|
|
14502
14515
|
value: fetchTabexCitiesQueryContext.data.data.cities.filter(function (option) {
|
|
14503
|
-
var
|
|
14504
|
-
return option.id == (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
14516
|
+
var _fetchcustomercartQue71;
|
|
14517
|
+
return option.id == (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue71 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue71 === void 0 || (_fetchcustomercartQue71 = _fetchcustomercartQue71.data) === null || _fetchcustomercartQue71 === void 0 ? void 0 : _fetchcustomercartQue71.customercart.cityid);
|
|
14505
14518
|
}),
|
|
14506
14519
|
onChange: function onChange(option) {
|
|
14520
|
+
var _fetchcustomercartQue72;
|
|
14507
14521
|
cartinfoupdater('cityid', option.id);
|
|
14522
|
+
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue72 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue72 === void 0 || (_fetchcustomercartQue72 = _fetchcustomercartQue72.data) === null || _fetchcustomercartQue72 === void 0 || (_fetchcustomercartQue72 = _fetchcustomercartQue72.customercart) === null || _fetchcustomercartQue72 === void 0 ? void 0 : _fetchcustomercartQue72.zonenotes) != null) {
|
|
14523
|
+
setshowpopup(true);
|
|
14524
|
+
}
|
|
14508
14525
|
},
|
|
14509
14526
|
styles: langdetect == 'en' ? defaultstyles : defaultstylestranslated,
|
|
14510
14527
|
placeholder: '',
|
|
@@ -14521,7 +14538,7 @@ var Checkout = function Checkout(props) {
|
|
|
14521
14538
|
}, "*")), /*#__PURE__*/React.createElement(TextareaAutosize, {
|
|
14522
14539
|
type: 'text',
|
|
14523
14540
|
className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
|
|
14524
|
-
value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
14541
|
+
value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue73 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue73 === void 0 || (_fetchcustomercartQue73 = _fetchcustomercartQue73.data) === null || _fetchcustomercartQue73 === void 0 ? void 0 : _fetchcustomercartQue73.customercart.address,
|
|
14525
14542
|
onChange: function onChange(event) {
|
|
14526
14543
|
cartinfoupdater('address', event.target.value);
|
|
14527
14544
|
},
|
|
@@ -14536,7 +14553,7 @@ var Checkout = function Checkout(props) {
|
|
|
14536
14553
|
}, langdetect == 'en' ? sectionproperties.notesinen : sectionproperties.notesinar), /*#__PURE__*/React.createElement(TextareaAutosize, {
|
|
14537
14554
|
type: 'text',
|
|
14538
14555
|
className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
|
|
14539
|
-
value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
14556
|
+
value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue74 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue74 === void 0 || (_fetchcustomercartQue74 = _fetchcustomercartQue74.data) === null || _fetchcustomercartQue74 === void 0 ? void 0 : _fetchcustomercartQue74.customercart.notes,
|
|
14540
14557
|
onChange: function onChange(event) {
|
|
14541
14558
|
cartinfoupdater('notes', event.target.value);
|
|
14542
14559
|
},
|
|
@@ -14551,7 +14568,7 @@ var Checkout = function Checkout(props) {
|
|
|
14551
14568
|
}, langdetect == 'en' ? 'Affiliate code' : 'رمز المسوق'), /*#__PURE__*/React.createElement("input", {
|
|
14552
14569
|
type: 'number',
|
|
14553
14570
|
className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
|
|
14554
|
-
value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
14571
|
+
value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue75 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue75 === void 0 || (_fetchcustomercartQue75 = _fetchcustomercartQue75.data) === null || _fetchcustomercartQue75 === void 0 || (_fetchcustomercartQue75 = _fetchcustomercartQue75.customercart) === null || _fetchcustomercartQue75 === void 0 ? void 0 : _fetchcustomercartQue75.aff_code,
|
|
14555
14572
|
onChange: function onChange(event) {
|
|
14556
14573
|
cartinfoupdater('aff_code', event.target.value);
|
|
14557
14574
|
},
|
|
@@ -14585,7 +14602,7 @@ var Checkout = function Checkout(props) {
|
|
|
14585
14602
|
onChange: function onChange(event) {
|
|
14586
14603
|
cartinfoupdater('shippingmethod_id', event.target.value);
|
|
14587
14604
|
},
|
|
14588
|
-
value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
14605
|
+
value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue76 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue76 === void 0 || (_fetchcustomercartQue76 = _fetchcustomercartQue76.data) === null || _fetchcustomercartQue76 === void 0 || (_fetchcustomercartQue76 = _fetchcustomercartQue76.customercart) === null || _fetchcustomercartQue76 === void 0 ? void 0 : _fetchcustomercartQue76.shippingmethod_id
|
|
14589
14606
|
}, /*#__PURE__*/React.createElement("option", {
|
|
14590
14607
|
value: null
|
|
14591
14608
|
}, langdetect == 'en' ? 'Choose Shipping Method' : 'الشحن اخنر طريقة'), shippingmethods === null || shippingmethods === void 0 ? void 0 : shippingmethods.map(function (item, index) {
|
|
@@ -14679,10 +14696,10 @@ var Checkout = function Checkout(props) {
|
|
|
14679
14696
|
id: 'codcheckbox',
|
|
14680
14697
|
type: "checkbox",
|
|
14681
14698
|
className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
|
|
14682
|
-
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
14699
|
+
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue77 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue77 === void 0 || (_fetchcustomercartQue77 = _fetchcustomercartQue77.data) === null || _fetchcustomercartQue77 === void 0 ? void 0 : _fetchcustomercartQue77.customercart.paymentmethod) == 'cod' ? true : false,
|
|
14683
14700
|
onChange: function onChange() {
|
|
14684
|
-
var
|
|
14685
|
-
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
14701
|
+
var _fetchcustomercartQue78;
|
|
14702
|
+
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue78 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue78 === void 0 || (_fetchcustomercartQue78 = _fetchcustomercartQue78.data) === null || _fetchcustomercartQue78 === void 0 ? void 0 : _fetchcustomercartQue78.customercart.paymentmethod) != 'cod') {
|
|
14686
14703
|
cartinfoupdater('paymentmethod', 'cod');
|
|
14687
14704
|
setinstapaychosen(false);
|
|
14688
14705
|
}
|
|
@@ -14706,10 +14723,10 @@ var Checkout = function Checkout(props) {
|
|
|
14706
14723
|
id: 'codcheckbox',
|
|
14707
14724
|
type: "checkbox",
|
|
14708
14725
|
className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
|
|
14709
|
-
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
14726
|
+
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue79 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue79 === void 0 || (_fetchcustomercartQue79 = _fetchcustomercartQue79.data) === null || _fetchcustomercartQue79 === void 0 ? void 0 : _fetchcustomercartQue79.customercart.paymentmethod) == 'instapay' ? true : false,
|
|
14710
14727
|
onChange: function onChange() {
|
|
14711
|
-
var
|
|
14712
|
-
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
14728
|
+
var _fetchcustomercartQue80;
|
|
14729
|
+
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue80 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue80 === void 0 || (_fetchcustomercartQue80 = _fetchcustomercartQue80.data) === null || _fetchcustomercartQue80 === void 0 ? void 0 : _fetchcustomercartQue80.customercart.paymentmethod) != 'instapay') {
|
|
14713
14730
|
cartinfoupdater('paymentmethod', 'instapay');
|
|
14714
14731
|
setinstapaychosen(true);
|
|
14715
14732
|
// alert('1');
|
|
@@ -14732,10 +14749,10 @@ var Checkout = function Checkout(props) {
|
|
|
14732
14749
|
}, /*#__PURE__*/React.createElement("input", {
|
|
14733
14750
|
type: "checkbox",
|
|
14734
14751
|
className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
|
|
14735
|
-
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
14752
|
+
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue81 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue81 === void 0 || (_fetchcustomercartQue81 = _fetchcustomercartQue81.data) === null || _fetchcustomercartQue81 === void 0 ? void 0 : _fetchcustomercartQue81.customercart.paymentmethod) == 'cardondelivery' ? true : false,
|
|
14736
14753
|
onChange: function onChange() {
|
|
14737
|
-
var
|
|
14738
|
-
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
14754
|
+
var _fetchcustomercartQue82;
|
|
14755
|
+
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue82 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue82 === void 0 || (_fetchcustomercartQue82 = _fetchcustomercartQue82.data) === null || _fetchcustomercartQue82 === void 0 ? void 0 : _fetchcustomercartQue82.customercart.paymentmethod) != 'cardondelivery') {
|
|
14739
14756
|
cartinfoupdater('paymentmethod', 'cardondelivery');
|
|
14740
14757
|
setinstapaychosen(false);
|
|
14741
14758
|
}
|
|
@@ -14754,10 +14771,10 @@ var Checkout = function Checkout(props) {
|
|
|
14754
14771
|
}, /*#__PURE__*/React.createElement("input", {
|
|
14755
14772
|
type: "checkbox",
|
|
14756
14773
|
className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
|
|
14757
|
-
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
14774
|
+
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue83 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue83 === void 0 || (_fetchcustomercartQue83 = _fetchcustomercartQue83.data) === null || _fetchcustomercartQue83 === void 0 ? void 0 : _fetchcustomercartQue83.customercart.paymentmethod) == 'onlinepayment' ? true : false,
|
|
14758
14775
|
onChange: function onChange() {
|
|
14759
|
-
var
|
|
14760
|
-
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
14776
|
+
var _fetchcustomercartQue84;
|
|
14777
|
+
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue84 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue84 === void 0 || (_fetchcustomercartQue84 = _fetchcustomercartQue84.data) === null || _fetchcustomercartQue84 === void 0 ? void 0 : _fetchcustomercartQue84.customercart.paymentmethod) != 'onlinepayment') {
|
|
14761
14778
|
cartinfoupdater('paymentmethod', 'onlinepayment');
|
|
14762
14779
|
setinstapaychosen(false);
|
|
14763
14780
|
}
|
|
@@ -14776,10 +14793,10 @@ var Checkout = function Checkout(props) {
|
|
|
14776
14793
|
}, /*#__PURE__*/React.createElement("input", {
|
|
14777
14794
|
type: "checkbox",
|
|
14778
14795
|
className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
|
|
14779
|
-
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
14796
|
+
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue85 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue85 === void 0 || (_fetchcustomercartQue85 = _fetchcustomercartQue85.data) === null || _fetchcustomercartQue85 === void 0 ? void 0 : _fetchcustomercartQue85.customercart.paymentmethod) == 'valU' ? true : false,
|
|
14780
14797
|
onChange: function onChange() {
|
|
14781
|
-
var
|
|
14782
|
-
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
14798
|
+
var _fetchcustomercartQue86;
|
|
14799
|
+
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue86 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue86 === void 0 || (_fetchcustomercartQue86 = _fetchcustomercartQue86.data) === null || _fetchcustomercartQue86 === void 0 ? void 0 : _fetchcustomercartQue86.customercart.paymentmethod) != 'valU') {
|
|
14783
14800
|
cartinfoupdater('paymentmethod', 'valU');
|
|
14784
14801
|
setinstapaychosen(false);
|
|
14785
14802
|
}
|
|
@@ -14798,10 +14815,10 @@ var Checkout = function Checkout(props) {
|
|
|
14798
14815
|
}, /*#__PURE__*/React.createElement("input", {
|
|
14799
14816
|
type: "checkbox",
|
|
14800
14817
|
className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
|
|
14801
|
-
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
14818
|
+
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue87 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue87 === void 0 || (_fetchcustomercartQue87 = _fetchcustomercartQue87.data) === null || _fetchcustomercartQue87 === void 0 ? void 0 : _fetchcustomercartQue87.customercart.paymentmethod) == 'mobilewallet' ? true : false,
|
|
14802
14819
|
onChange: function onChange() {
|
|
14803
|
-
var
|
|
14804
|
-
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
14820
|
+
var _fetchcustomercartQue88;
|
|
14821
|
+
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue88 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue88 === void 0 || (_fetchcustomercartQue88 = _fetchcustomercartQue88.data) === null || _fetchcustomercartQue88 === void 0 ? void 0 : _fetchcustomercartQue88.customercart.paymentmethod) != 'mobilewallet') {
|
|
14805
14822
|
cartinfoupdater('paymentmethod', 'mobilewallet');
|
|
14806
14823
|
setinstapaychosen(false);
|
|
14807
14824
|
}
|
|
@@ -14820,10 +14837,10 @@ var Checkout = function Checkout(props) {
|
|
|
14820
14837
|
}, /*#__PURE__*/React.createElement("input", {
|
|
14821
14838
|
type: "checkbox",
|
|
14822
14839
|
className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
|
|
14823
|
-
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
14840
|
+
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue89 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue89 === void 0 || (_fetchcustomercartQue89 = _fetchcustomercartQue89.data) === null || _fetchcustomercartQue89 === void 0 || (_fetchcustomercartQue89 = _fetchcustomercartQue89.customercart) === null || _fetchcustomercartQue89 === void 0 ? void 0 : _fetchcustomercartQue89.paymentmethod) == 'forsa' ? true : false,
|
|
14824
14841
|
onChange: function onChange() {
|
|
14825
|
-
var
|
|
14826
|
-
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
14842
|
+
var _fetchcustomercartQue90;
|
|
14843
|
+
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue90 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue90 === void 0 || (_fetchcustomercartQue90 = _fetchcustomercartQue90.data) === null || _fetchcustomercartQue90 === void 0 || (_fetchcustomercartQue90 = _fetchcustomercartQue90.customercart) === null || _fetchcustomercartQue90 === void 0 ? void 0 : _fetchcustomercartQue90.paymentmethod) != 'forsa') {
|
|
14827
14844
|
cartinfoupdater('paymentmethod', 'forsa');
|
|
14828
14845
|
setinstapaychosen(false);
|
|
14829
14846
|
}
|
|
@@ -14842,10 +14859,10 @@ var Checkout = function Checkout(props) {
|
|
|
14842
14859
|
}, /*#__PURE__*/React.createElement("input", {
|
|
14843
14860
|
type: "checkbox",
|
|
14844
14861
|
className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
|
|
14845
|
-
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
14862
|
+
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue91 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue91 === void 0 || (_fetchcustomercartQue91 = _fetchcustomercartQue91.data) === null || _fetchcustomercartQue91 === void 0 || (_fetchcustomercartQue91 = _fetchcustomercartQue91.customercart) === null || _fetchcustomercartQue91 === void 0 ? void 0 : _fetchcustomercartQue91.paymentmethod) == 'Souhoola' ? true : false,
|
|
14846
14863
|
onChange: function onChange() {
|
|
14847
|
-
var
|
|
14848
|
-
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
14864
|
+
var _fetchcustomercartQue92;
|
|
14865
|
+
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue92 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue92 === void 0 || (_fetchcustomercartQue92 = _fetchcustomercartQue92.data) === null || _fetchcustomercartQue92 === void 0 || (_fetchcustomercartQue92 = _fetchcustomercartQue92.customercart) === null || _fetchcustomercartQue92 === void 0 ? void 0 : _fetchcustomercartQue92.paymentmethod) != 'Souhoola') {
|
|
14849
14866
|
cartinfoupdater('paymentmethod', 'Souhoola');
|
|
14850
14867
|
setinstapaychosen(false);
|
|
14851
14868
|
}
|
|
@@ -14864,10 +14881,10 @@ var Checkout = function Checkout(props) {
|
|
|
14864
14881
|
}, /*#__PURE__*/React.createElement("input", {
|
|
14865
14882
|
type: "checkbox",
|
|
14866
14883
|
className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
|
|
14867
|
-
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
14884
|
+
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue93 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue93 === void 0 || (_fetchcustomercartQue93 = _fetchcustomercartQue93.data) === null || _fetchcustomercartQue93 === void 0 || (_fetchcustomercartQue93 = _fetchcustomercartQue93.customercart) === null || _fetchcustomercartQue93 === void 0 ? void 0 : _fetchcustomercartQue93.paymentmethod) == 'paypal' ? true : false,
|
|
14868
14885
|
onChange: function onChange() {
|
|
14869
|
-
var
|
|
14870
|
-
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
14886
|
+
var _fetchcustomercartQue94;
|
|
14887
|
+
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue94 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue94 === void 0 || (_fetchcustomercartQue94 = _fetchcustomercartQue94.data) === null || _fetchcustomercartQue94 === void 0 || (_fetchcustomercartQue94 = _fetchcustomercartQue94.customercart) === null || _fetchcustomercartQue94 === void 0 ? void 0 : _fetchcustomercartQue94.paymentmethod) != 'paypal') {
|
|
14871
14888
|
cartinfoupdater('paymentmethod', 'paypal');
|
|
14872
14889
|
setinstapaychosen(false);
|
|
14873
14890
|
}
|
|
@@ -14886,10 +14903,10 @@ var Checkout = function Checkout(props) {
|
|
|
14886
14903
|
}, /*#__PURE__*/React.createElement("input", {
|
|
14887
14904
|
type: "checkbox",
|
|
14888
14905
|
className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
|
|
14889
|
-
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
14906
|
+
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue95 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue95 === void 0 || (_fetchcustomercartQue95 = _fetchcustomercartQue95.data) === null || _fetchcustomercartQue95 === void 0 || (_fetchcustomercartQue95 = _fetchcustomercartQue95.customercart) === null || _fetchcustomercartQue95 === void 0 ? void 0 : _fetchcustomercartQue95.paymentmethod) == 'bankinstallments' ? true : false,
|
|
14890
14907
|
onChange: function onChange() {
|
|
14891
|
-
var
|
|
14892
|
-
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
14908
|
+
var _fetchcustomercartQue96;
|
|
14909
|
+
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue96 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue96 === void 0 || (_fetchcustomercartQue96 = _fetchcustomercartQue96.data) === null || _fetchcustomercartQue96 === void 0 || (_fetchcustomercartQue96 = _fetchcustomercartQue96.customercart) === null || _fetchcustomercartQue96 === void 0 ? void 0 : _fetchcustomercartQue96.paymentmethod) != 'bankinstallments') {
|
|
14893
14910
|
cartinfoupdater('paymentmethod', 'bankinstallments');
|
|
14894
14911
|
setinstapaychosen(false);
|
|
14895
14912
|
}
|
|
@@ -14908,10 +14925,10 @@ var Checkout = function Checkout(props) {
|
|
|
14908
14925
|
}, /*#__PURE__*/React.createElement("input", {
|
|
14909
14926
|
type: "checkbox",
|
|
14910
14927
|
className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
|
|
14911
|
-
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
14928
|
+
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue97 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue97 === void 0 || (_fetchcustomercartQue97 = _fetchcustomercartQue97.data) === null || _fetchcustomercartQue97 === void 0 || (_fetchcustomercartQue97 = _fetchcustomercartQue97.customercart) === null || _fetchcustomercartQue97 === void 0 ? void 0 : _fetchcustomercartQue97.paymentmethod) == 'Aman' ? true : false,
|
|
14912
14929
|
onChange: function onChange() {
|
|
14913
|
-
var
|
|
14914
|
-
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
14930
|
+
var _fetchcustomercartQue98;
|
|
14931
|
+
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue98 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue98 === void 0 || (_fetchcustomercartQue98 = _fetchcustomercartQue98.data) === null || _fetchcustomercartQue98 === void 0 || (_fetchcustomercartQue98 = _fetchcustomercartQue98.customercart) === null || _fetchcustomercartQue98 === void 0 ? void 0 : _fetchcustomercartQue98.paymentmethod) != 'Aman') {
|
|
14915
14932
|
cartinfoupdater('paymentmethod', 'Aman');
|
|
14916
14933
|
setinstapaychosen(false);
|
|
14917
14934
|
}
|
|
@@ -14941,7 +14958,7 @@ var Checkout = function Checkout(props) {
|
|
|
14941
14958
|
color: '#000',
|
|
14942
14959
|
fontSize: 16
|
|
14943
14960
|
}
|
|
14944
|
-
}, langdetect == 'en' ? 'To pay via InstaPay, please send a screenshot of the payment to WhatsApp number 0110 1016292' : 'للدفع عبر InstaPay، برجاء إرسال سكرين شوت لعملية الدفع على رقم الواتساب01101016292'))))), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
14961
|
+
}, langdetect == 'en' ? 'To pay via InstaPay, please send a screenshot of the payment to WhatsApp number 0110 1016292' : 'للدفع عبر InstaPay، برجاء إرسال سكرين شوت لعملية الدفع على رقم الواتساب01101016292'))))), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue99 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue99 === void 0 || (_fetchcustomercartQue99 = _fetchcustomercartQue99.data) === null || _fetchcustomercartQue99 === void 0 ? void 0 : _fetchcustomercartQue99.customercart.paymentmethod) == 'onlinepayment1' && /*#__PURE__*/React.createElement("div", {
|
|
14945
14962
|
className: "col-lg-12 p-0 w-100 mb-3"
|
|
14946
14963
|
}, /*#__PURE__*/React.createElement("div", {
|
|
14947
14964
|
style: {
|
|
@@ -15043,7 +15060,45 @@ var Checkout = function Checkout(props) {
|
|
|
15043
15060
|
}
|
|
15044
15061
|
})))))), /*#__PURE__*/React.createElement("div", {
|
|
15045
15062
|
className: langdetect == 'en' ? 'col-lg-4 col-md-12 pr-0 px-sm-0' : 'col-lg-4 col-md-12 pl-0 px-sm-0'
|
|
15046
|
-
}, Mycart()))))
|
|
15063
|
+
}, Mycart())))), /*#__PURE__*/React.createElement(Modal, {
|
|
15064
|
+
show: showpopup,
|
|
15065
|
+
onHide: function onHide() {
|
|
15066
|
+
setshowpopup(false);
|
|
15067
|
+
},
|
|
15068
|
+
centered: true,
|
|
15069
|
+
size: 'md'
|
|
15070
|
+
}, /*#__PURE__*/React.createElement(Modal.Body, null, /*#__PURE__*/React.createElement("div", {
|
|
15071
|
+
className: "allcentered bgdanger-hover cursor-pointer",
|
|
15072
|
+
onClick: function onClick() {
|
|
15073
|
+
setshowpopup(false);
|
|
15074
|
+
},
|
|
15075
|
+
style: {
|
|
15076
|
+
position: 'absolute',
|
|
15077
|
+
top: -40,
|
|
15078
|
+
backgroundColor: '#000',
|
|
15079
|
+
width: 35,
|
|
15080
|
+
height: 35,
|
|
15081
|
+
right: 0
|
|
15082
|
+
}
|
|
15083
|
+
}, /*#__PURE__*/React.createElement("i", {
|
|
15084
|
+
"class": "h-100 allcentered text-black"
|
|
15085
|
+
}, /*#__PURE__*/React.createElement(IoMdClose, {
|
|
15086
|
+
size: 20,
|
|
15087
|
+
"class": "",
|
|
15088
|
+
color: '#fff'
|
|
15089
|
+
}))), /*#__PURE__*/React.createElement("div", {
|
|
15090
|
+
"class": "row m-0 w-100 py-4",
|
|
15091
|
+
style: {}
|
|
15092
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
15093
|
+
"class": "col-lg-12 allcentered py-4"
|
|
15094
|
+
}, /*#__PURE__*/React.createElement("p", {
|
|
15095
|
+
"class": "m-0 p-0",
|
|
15096
|
+
style: {
|
|
15097
|
+
fontSize: 20,
|
|
15098
|
+
color: '#000',
|
|
15099
|
+
textAlign: 'center'
|
|
15100
|
+
}
|
|
15101
|
+
}, fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue100 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue100 === void 0 || (_fetchcustomercartQue100 = _fetchcustomercartQue100.data) === null || _fetchcustomercartQue100 === void 0 || (_fetchcustomercartQue100 = _fetchcustomercartQue100.customercart) === null || _fetchcustomercartQue100 === void 0 ? void 0 : _fetchcustomercartQue100.zonenotes)))), /*#__PURE__*/React.createElement(Modal.Footer, null)));
|
|
15047
15102
|
};
|
|
15048
15103
|
|
|
15049
15104
|
function ownKeys$2s(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; }
|
|
@@ -89240,7 +89295,7 @@ var Variants_J_Cards = function Variants_J_Cards(props) {
|
|
|
89240
89295
|
function ownKeys$6(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; }
|
|
89241
89296
|
function _objectSpread$6(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$6(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$6(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
89242
89297
|
var Simpleproductcard = function Simpleproductcard(props) {
|
|
89243
|
-
var _item$producttags, _item$producttags$,
|
|
89298
|
+
var _item$producttags, _authdetailsContext$i3, _item$producttags$, _item$producttags2, _authdetailsContext$i4, _item$producttags$2, _authdetailsContext$i5, _authdetailsContext$i6, _authdetailsContext$i7;
|
|
89244
89299
|
var _useState = useState(''),
|
|
89245
89300
|
_useState2 = _slicedToArray(_useState, 2),
|
|
89246
89301
|
sectionproperties = _useState2[0],
|
|
@@ -89938,7 +89993,7 @@ var Simpleproductcard = function Simpleproductcard(props) {
|
|
|
89938
89993
|
// right: langdetect == 'en' ? '' : sectionproperties.pillpositionfromright + 'px',
|
|
89939
89994
|
zIndex: 3
|
|
89940
89995
|
}
|
|
89941
|
-
}, PillContainer()), (item === null || item === void 0 ? void 0 : item.producttags) != undefined && (item === null || item === void 0 || (_item$producttags = item.producttags) === null || _item$producttags === void 0 ? void 0 : _item$producttags.length) != 0 && sectionproperties.showtag == 'Show' && /*#__PURE__*/React.createElement("div", {
|
|
89996
|
+
}, PillContainer()), (item === null || item === void 0 ? void 0 : item.producttags) != undefined && (item === null || item === void 0 || (_item$producttags = item.producttags) === null || _item$producttags === void 0 ? void 0 : _item$producttags.length) != 0 && sectionproperties.showtag == 'Show' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i3 = authdetailsContext.instinfo) === null || _authdetailsContext$i3 === void 0 ? void 0 : _authdetailsContext$i3.contactinfo.instid) != '684fdf3f9e856' && /*#__PURE__*/React.createElement("div", {
|
|
89942
89997
|
"class": "allcentered",
|
|
89943
89998
|
style: {
|
|
89944
89999
|
position: 'absolute',
|
|
@@ -90060,7 +90115,24 @@ var Simpleproductcard = function Simpleproductcard(props) {
|
|
|
90060
90115
|
style: {
|
|
90061
90116
|
textAlign: sectionproperties.productnamecentered == 'Centered' ? 'center' : langdetect == 'en' ? 'left' : 'right'
|
|
90062
90117
|
}
|
|
90063
|
-
}, item.name)), sectionproperties.
|
|
90118
|
+
}, item.name)), (item === null || item === void 0 ? void 0 : item.producttags) != undefined && (item === null || item === void 0 || (_item$producttags2 = item.producttags) === null || _item$producttags2 === void 0 ? void 0 : _item$producttags2.length) != 0 && sectionproperties.showtag == 'Show' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i4 = authdetailsContext.instinfo) === null || _authdetailsContext$i4 === void 0 ? void 0 : _authdetailsContext$i4.contactinfo.instid) == '684fdf3f9e856' && /*#__PURE__*/React.createElement("div", {
|
|
90119
|
+
"class": "allcentered",
|
|
90120
|
+
style: {
|
|
90121
|
+
width: '100%',
|
|
90122
|
+
left: 0,
|
|
90123
|
+
right: 0,
|
|
90124
|
+
zIndex: 100
|
|
90125
|
+
}
|
|
90126
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
90127
|
+
"class": "px-3 py-1",
|
|
90128
|
+
style: {
|
|
90129
|
+
width: 'fit-content',
|
|
90130
|
+
background: sectionproperties.tagbackgroundcolor,
|
|
90131
|
+
borderRadius: sectionproperties.tagborderradius + 'px',
|
|
90132
|
+
color: sectionproperties.tagcolor,
|
|
90133
|
+
fontSize: 12
|
|
90134
|
+
}
|
|
90135
|
+
}, "asd ", item === null || item === void 0 || (_item$producttags$2 = item.producttags[0]) === null || _item$producttags$2 === void 0 || (_item$producttags$2 = _item$producttags$2.taginfo) === null || _item$producttags$2 === void 0 ? void 0 : _item$producttags$2.tagname)), sectionproperties.showSKU == 'Show' && /*#__PURE__*/React.createElement("div", {
|
|
90064
90136
|
"class": "col-lg-12 pl-0 pr-0",
|
|
90065
90137
|
style: {}
|
|
90066
90138
|
}, /*#__PURE__*/React.createElement("p", {
|
|
@@ -90161,7 +90233,7 @@ var Simpleproductcard = function Simpleproductcard(props) {
|
|
|
90161
90233
|
color: sectionproperties.quantitycolor,
|
|
90162
90234
|
fontWeight: sectionproperties.quantityfontweight
|
|
90163
90235
|
}
|
|
90164
|
-
}, langdetect == 'en' ? sectionproperties.qtytextinen : sectionproperties.qtytextinar, " ", item.currentquantity, ' ', langdetect == 'en' ? sectionproperties.qtytextinen2 : sectionproperties.qtytextinar2)), sectionproperties.cartBtnShow == 'Show' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
90236
|
+
}, langdetect == 'en' ? sectionproperties.qtytextinen : sectionproperties.qtytextinar, " ", item.currentquantity, ' ', langdetect == 'en' ? sectionproperties.qtytextinen2 : sectionproperties.qtytextinar2)), sectionproperties.cartBtnShow == 'Show' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i5 = authdetailsContext.instinfo) === null || _authdetailsContext$i5 === void 0 ? void 0 : _authdetailsContext$i5.contactinfo.instid) != '67d6bda67adf6' && /*#__PURE__*/React.createElement("div", {
|
|
90165
90237
|
"class": "col-lg-12 p-0 d-flex align-items-center",
|
|
90166
90238
|
style: {
|
|
90167
90239
|
justifyContent: sectionproperties.productnamecentered == 'Centered' ? 'center' : 'start'
|
|
@@ -90186,7 +90258,7 @@ var Simpleproductcard = function Simpleproductcard(props) {
|
|
|
90186
90258
|
}
|
|
90187
90259
|
}
|
|
90188
90260
|
}
|
|
90189
|
-
}, addtocartbuttonrender())), sectionproperties.cartBtnShow == 'Show' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
90261
|
+
}, addtocartbuttonrender())), sectionproperties.cartBtnShow == 'Show' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i6 = authdetailsContext.instinfo) === null || _authdetailsContext$i6 === void 0 ? void 0 : _authdetailsContext$i6.contactinfo.instid) == '67d6bda67adf6' && showquantity == false && /*#__PURE__*/React.createElement("div", {
|
|
90190
90262
|
"class": "col-lg-12 p-0 d-flex align-items-center",
|
|
90191
90263
|
style: {
|
|
90192
90264
|
justifyContent: sectionproperties.productnamecentered == 'Centered' ? 'center' : 'start'
|
|
@@ -90196,7 +90268,7 @@ var Simpleproductcard = function Simpleproductcard(props) {
|
|
|
90196
90268
|
onClick: function onClick() {
|
|
90197
90269
|
setshowquantity(true);
|
|
90198
90270
|
}
|
|
90199
|
-
}, addtocartbuttonrender())), showquantity == true && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
90271
|
+
}, addtocartbuttonrender())), showquantity == true && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i7 = authdetailsContext.instinfo) === null || _authdetailsContext$i7 === void 0 ? void 0 : _authdetailsContext$i7.contactinfo.instid) == '67d6bda67adf6' && /*#__PURE__*/React.createElement("div", {
|
|
90200
90272
|
"class": "col-lg-12 p-0 d-flex align-items-center allcentered"
|
|
90201
90273
|
}, /*#__PURE__*/React.createElement("div", {
|
|
90202
90274
|
"class": "".concat(card_cssstyles.quantitybtn) + ' p-0 d-flex align-items-center justify-content-center ',
|