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.cjs.js
CHANGED
|
@@ -3135,7 +3135,7 @@ var ProductReviews = function ProductReviews(props) {
|
|
|
3135
3135
|
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; }
|
|
3136
3136
|
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__default["default"](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; }
|
|
3137
3137
|
var Product_itemtype = function Product_itemtype(props) {
|
|
3138
|
-
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,
|
|
3138
|
+
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;
|
|
3139
3139
|
var lang = props.actions.lang;
|
|
3140
3140
|
var actions = props.actions;
|
|
3141
3141
|
var langdetect = props.actions.langdetect;
|
|
@@ -3951,7 +3951,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
3951
3951
|
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' : ''
|
|
3952
3952
|
},
|
|
3953
3953
|
onClick: function onClick() {
|
|
3954
|
-
var _authdetailsContext$i8;
|
|
3954
|
+
var _authdetailsContext$i8, _authdetailsContext$i9;
|
|
3955
3955
|
if (sectionproperties.vendornameclickable == 'Yes') {
|
|
3956
3956
|
var _fetchProductInfoQuer29;
|
|
3957
3957
|
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, encodeURIComponent(JSON.stringify({
|
|
@@ -3962,21 +3962,27 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
3962
3962
|
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, encodeURIComponent(JSON.stringify({
|
|
3963
3963
|
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]
|
|
3964
3964
|
})));
|
|
3965
|
+
} else if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i9 = authdetailsContext.instinfo) === null || _authdetailsContext$i9 === void 0 ? void 0 : _authdetailsContext$i9.contactinfo.instid) == '67f3c23abb18f') {
|
|
3966
|
+
var _fetchProductInfoQuer31;
|
|
3967
|
+
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, encodeURIComponent(JSON.stringify({
|
|
3968
|
+
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]
|
|
3969
|
+
})));
|
|
3965
3970
|
}
|
|
3966
3971
|
}
|
|
3967
|
-
}, langdetect == 'en' ? sectionproperties.vendortitleen : sectionproperties.vendortitlear, ":",
|
|
3972
|
+
}, (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__default["default"].createElement("span", null, " ", langdetect == 'en' ? sectionproperties.vendortitleen : sectionproperties.vendortitlear, ": "), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
3968
3973
|
style: {
|
|
3969
|
-
fontWeight: 600
|
|
3974
|
+
fontWeight: 600,
|
|
3975
|
+
textDecoration: (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i10 = authdetailsContext.instinfo) === null || _authdetailsContext$i10 === void 0 ? void 0 : _authdetailsContext$i10.contactinfo.instid) == '67f3c23abb18f' ? 'underline' : 'none'
|
|
3970
3976
|
}
|
|
3971
|
-
}, fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
3972
|
-
"class": sectionproperties.deliverytimeshow == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
3973
|
-
}, ProductsSKUContainer()), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
3977
|
+
}, 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__default["default"].createElement("div", {
|
|
3978
|
+
"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'
|
|
3979
|
+
}, 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__default["default"].createElement("div", {
|
|
3974
3980
|
"class": "col-lg-12 p-0 d-flex justify-content-start mb-2"
|
|
3975
3981
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3976
3982
|
"class": "".concat(productinfo_cssstyles.outstockbadge) + ' allcentered '
|
|
3977
3983
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
3978
3984
|
"class": "m-0 p-0"
|
|
3979
|
-
}, langdetect == 'en' ? sectionproperties.outstock_contenten : sectionproperties.outstock_contentar))), sectionproperties.deliverytimeshow == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
3985
|
+
}, 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__default["default"].createElement("div", {
|
|
3980
3986
|
"class": "mb-4 col-lg-12 allcentered",
|
|
3981
3987
|
style: {
|
|
3982
3988
|
width: '100%',
|
|
@@ -3997,7 +4003,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
3997
4003
|
textAlign: langdetect == 'en' ? 'left' : 'right',
|
|
3998
4004
|
color: sectionproperties.deliverytimecontainercolor
|
|
3999
4005
|
}
|
|
4000
|
-
}, sectionproperties.showdeliverytitle == 'Show' && /*#__PURE__*/React__default["default"].createElement("span", null, langdetect == 'en' ? sectionproperties.deliverycontent_en : sectionproperties.deliverycontent_ar, ": "), ' ', fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
4006
|
+
}, sectionproperties.showdeliverytitle == 'Show' && /*#__PURE__*/React__default["default"].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__default["default"].createElement(ProductHeaderPricing, {
|
|
4001
4007
|
actions: props.actions
|
|
4002
4008
|
}), sectionproperties.descriptionposition != 'Under Name' && sectionproperties.descriptionposition == 'Top' && sectionproperties.descriptionstyle == 'Style 1' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4003
4009
|
"class": "col-lg-12 p-0"
|
|
@@ -4038,7 +4044,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
4038
4044
|
marginTop: sectionproperties.ctabuttnnsmarginvertical + 'px',
|
|
4039
4045
|
marginBottom: sectionproperties.ctabuttnnsmarginvertical + 'px'
|
|
4040
4046
|
}
|
|
4041
|
-
}, (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
4047
|
+
}, (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__default["default"].createElement("div", {
|
|
4042
4048
|
className: "col-lg-12 p-0 mb-2 d-flex justofy-content-start"
|
|
4043
4049
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
4044
4050
|
className: "m-0 p-0",
|
|
@@ -4055,11 +4061,11 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
4055
4061
|
style: {
|
|
4056
4062
|
justifyContent: sectionproperties.cartbtncentered == 'Centered' ? 'center' : 'start'
|
|
4057
4063
|
}
|
|
4058
|
-
}, sectionproperties.quantitybtn_show == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
4064
|
+
}, 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__default["default"].createElement("div", {
|
|
4059
4065
|
"class": "col-lg-12 text-start p-md-0"
|
|
4060
4066
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4061
4067
|
className: "row m-0 w-100"
|
|
4062
|
-
}, fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
4068
|
+
}, 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) {
|
|
4063
4069
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4064
4070
|
"class": ' col-md-12 p-0 mb-3 mt-2 col-lg-' + sectionproperties.featuresnumcols
|
|
4065
4071
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -4097,12 +4103,12 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
4097
4103
|
fontSize: sectionproperties.featurevaluefontsize
|
|
4098
4104
|
}
|
|
4099
4105
|
}, langdetect == 'en' ? fitem === null || fitem === void 0 ? void 0 : fitem.value_en : fitem === null || fitem === void 0 ? void 0 : fitem.value_ar))));
|
|
4100
|
-
}))), sectionproperties.cartbtnalone == 'Besides Other Buttons' && sectionproperties.cartBtnShow == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
4106
|
+
}))), 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__default["default"].createElement("button", {
|
|
4101
4107
|
className: "".concat(productinfo_cssstyles.cart_btn, " ") + ' ml-2 mr-2 d-flex align-items-center justify-content-center mb-sm-2 ',
|
|
4102
4108
|
onClick: function onClick() {
|
|
4103
4109
|
if (fetchProductInfoQueryContext.data.data.productinfo.product_calltoaction == 'Call') {
|
|
4104
|
-
var
|
|
4105
|
-
window.open('tel:' + ((
|
|
4110
|
+
var _fetchProductInfoQuer46;
|
|
4111
|
+
window.open('tel:' + ((_fetchProductInfoQuer46 = fetchProductInfoQueryContext.data.data.productinfo) === null || _fetchProductInfoQuer46 === void 0 ? void 0 : _fetchProductInfoQuer46.product_phonenumber), '_blank');
|
|
4106
4112
|
} else {
|
|
4107
4113
|
if (fetchProductInfoQueryContext.data.data.productinfo.maximumproductquant >= addtocardpayloadobj.quantity && fetchProductInfoQueryContext.data.data.productinfo.minimumproductquant <= addtocardpayloadobj.quantity) {
|
|
4108
4114
|
addtocartfunc();
|
|
@@ -4133,7 +4139,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
4133
4139
|
size: sectionproperties.cartBtn_iconFontSize
|
|
4134
4140
|
}), sectionproperties.carticonstyle == 'Shopping cart 2' && /*#__PURE__*/React__default["default"].createElement(MdAddShoppingCart.MdAddShoppingCart, {
|
|
4135
4141
|
size: sectionproperties.cartBtn_iconFontSize
|
|
4136
|
-
})), langdetect == 'en' ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
4142
|
+
})), 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__default["default"].createElement("div", {
|
|
4137
4143
|
className: ' d-flex align-items-center justify-content-center '
|
|
4138
4144
|
}, /*#__PURE__*/React__default["default"].createElement(reactCssfxLoading.CircularProgress, {
|
|
4139
4145
|
color: sectionproperties.cartBtnTextcolor,
|
|
@@ -4178,7 +4184,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
4178
4184
|
style: {
|
|
4179
4185
|
fontSize: sectionproperties.favBtnTextfontsize + 'px'
|
|
4180
4186
|
}
|
|
4181
|
-
}, langdetect == 'en' ? sectionproperties.favbtnaddedcontent_en : sectionproperties.favbtnaddedcontent_ar))), sectionproperties.cartbtnalone == 'Alone' && sectionproperties.cartBtnShow == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
4187
|
+
}, 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__default["default"].createElement("div", {
|
|
4182
4188
|
"class": "row m-0 w-100 mt-3",
|
|
4183
4189
|
style: {
|
|
4184
4190
|
overflow: 'hidden'
|
|
@@ -4190,8 +4196,8 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
4190
4196
|
},
|
|
4191
4197
|
onClick: function onClick() {
|
|
4192
4198
|
if (fetchProductInfoQueryContext.data.data.productinfo.product_calltoaction == 'Call') {
|
|
4193
|
-
var
|
|
4194
|
-
window.open('tel:' + ((
|
|
4199
|
+
var _fetchProductInfoQuer50;
|
|
4200
|
+
window.open('tel:' + ((_fetchProductInfoQuer50 = fetchProductInfoQueryContext.data.data.productinfo) === null || _fetchProductInfoQuer50 === void 0 ? void 0 : _fetchProductInfoQuer50.product_phonenumber), '_blank');
|
|
4195
4201
|
} else {
|
|
4196
4202
|
if (fetchProductInfoQueryContext.data.data.productinfo.maximumproductquant >= addtocardpayloadobj.quantity && fetchProductInfoQueryContext.data.data.productinfo.minimumproductquant <= addtocardpayloadobj.quantity) {
|
|
4197
4203
|
addtocartfunc();
|
|
@@ -4222,7 +4228,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
4222
4228
|
size: sectionproperties.cartBtn_iconFontSize
|
|
4223
4229
|
}), sectionproperties.carticonstyle == 'Shopping cart 2' && /*#__PURE__*/React__default["default"].createElement(MdAddShoppingCart.MdAddShoppingCart, {
|
|
4224
4230
|
size: sectionproperties.cartBtn_iconFontSize
|
|
4225
|
-
})), langdetect == 'en' ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
4231
|
+
})), 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__default["default"].createElement("div", {
|
|
4226
4232
|
className: ' d-flex align-items-center justify-content-center '
|
|
4227
4233
|
}, /*#__PURE__*/React__default["default"].createElement(reactCssfxLoading.CircularProgress, {
|
|
4228
4234
|
color: sectionproperties.cartBtnTextcolor,
|
|
@@ -4287,7 +4293,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
4287
4293
|
style: {
|
|
4288
4294
|
width: sectionproperties.cartBtnWidth + '%'
|
|
4289
4295
|
}
|
|
4290
|
-
}, langdetect == 'en' ? sectionproperties.directwabtntitleen : sectionproperties.directwabtntitlear))), sectionproperties.cartbtnalone == 'Alone' && sectionproperties.showbuynowbtn == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
4296
|
+
}, 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__default["default"].createElement("div", {
|
|
4291
4297
|
"class": "row m-0 w-100 mt-3",
|
|
4292
4298
|
style: {
|
|
4293
4299
|
overflow: 'hidden'
|
|
@@ -4323,7 +4329,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
4323
4329
|
"class": "col-lg-12 text-start p-md-0"
|
|
4324
4330
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4325
4331
|
className: "row m-0 w-100"
|
|
4326
|
-
}, fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
4332
|
+
}, 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) {
|
|
4327
4333
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4328
4334
|
"class": ' col-md-12 p-0 mb-3 mt-2 col-lg-' + sectionproperties.featuresnumcols
|
|
4329
4335
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -4361,19 +4367,19 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
4361
4367
|
fontSize: sectionproperties.featurevaluefontsize
|
|
4362
4368
|
}
|
|
4363
4369
|
}, langdetect == 'en' ? fitem === null || fitem === void 0 ? void 0 : fitem.value_en : fitem === null || fitem === void 0 ? void 0 : fitem.value_ar))));
|
|
4364
|
-
}))), sectionproperties.showsizeguidebtn == 'Show' && sizeguideimage.length != 0 && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
4370
|
+
}))), 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__default["default"].createElement("div", {
|
|
4365
4371
|
"class": "col-12 text-start mt-3"
|
|
4366
4372
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
4367
4373
|
"class": productinfo_cssstyles.sizeguidebtn + ' m-0 p-0 cursor-pointer mb-auto ',
|
|
4368
4374
|
onClick: function onClick() {
|
|
4369
4375
|
setopensizeguidemodal(true);
|
|
4370
4376
|
}
|
|
4371
|
-
}, langdetect == 'en' ? sectionproperties.sizeguidecontentenglish : sectionproperties.sizeguidecontentarabic)), sectionproperties.showsizeguidebtn == 'Show' && sizeguideimage.length != 0 && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
4377
|
+
}, 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__default["default"].createElement("div", {
|
|
4372
4378
|
"class": "col-lg-12 col-md-12 my-3 p-md-0"
|
|
4373
4379
|
}, /*#__PURE__*/React__default["default"].createElement("hr", {
|
|
4374
4380
|
"class": "m-0"
|
|
4375
4381
|
})), sectionproperties.descriptionstyle == 'Style 2' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4376
|
-
"class": sectionproperties.showsizeguidebtn == 'Show' && sizeguideimage.length != 0 && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
4382
|
+
"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'
|
|
4377
4383
|
}, sectionproperties.descriptioncollapseopen == 'Yes' && /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.Accordion, {
|
|
4378
4384
|
allowMultipleExpanded: true,
|
|
4379
4385
|
allowZeroExpanded: true,
|
|
@@ -4421,7 +4427,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
4421
4427
|
color: sectionproperties.prodCatColor
|
|
4422
4428
|
},
|
|
4423
4429
|
dangerouslySetInnerHTML: {
|
|
4424
|
-
__html: langdetect == 'en' ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
4430
|
+
__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
|
|
4425
4431
|
}
|
|
4426
4432
|
})))))), sectionproperties.descriptionstyle == 'Style 2' && sectionproperties.showshortdescription == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4427
4433
|
"class": "col-lg-12 col-md-12 my-3 p-md-0"
|
|
@@ -4595,7 +4601,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
4595
4601
|
})
|
|
4596
4602
|
// actions={props.actions}
|
|
4597
4603
|
// srcfromprops={'collapsepinfo'}
|
|
4598
|
-
})))))), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
4604
|
+
})))))), (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__default["default"].createElement("div", {
|
|
4599
4605
|
className: "col-lg-12 p-0 mb-3"
|
|
4600
4606
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4601
4607
|
className: "row m-0 w-100 d-flex flex-row"
|
|
@@ -4618,7 +4624,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
4618
4624
|
}
|
|
4619
4625
|
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
4620
4626
|
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 '
|
|
4621
|
-
}, 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 || (
|
|
4627
|
+
}, 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__default["default"].createElement("p", {
|
|
4622
4628
|
className: 'm-0 p-0 linethrough wordbreak',
|
|
4623
4629
|
style: {
|
|
4624
4630
|
color: sectionproperties.prodsalePriceColor,
|
|
@@ -4632,14 +4638,14 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
4632
4638
|
style: {
|
|
4633
4639
|
textDecoration: 'none'
|
|
4634
4640
|
}
|
|
4635
|
-
}, "-"), 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 || (
|
|
4641
|
+
}, "-"), 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__default["default"].createElement("span", {
|
|
4636
4642
|
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 '
|
|
4637
4643
|
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
4638
4644
|
className: "ml-2 mr-2",
|
|
4639
4645
|
style: {
|
|
4640
4646
|
textDecoration: 'none'
|
|
4641
4647
|
}
|
|
4642
|
-
}, "-"), 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 || (
|
|
4648
|
+
}, "-"), 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__default["default"].createElement("div", {
|
|
4643
4649
|
className: "col-lg-12 p-0 mb-3 mt-2"
|
|
4644
4650
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4645
4651
|
style: {
|
|
@@ -4687,7 +4693,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
4687
4693
|
paddingLeft: langdetect == 'en' ? '.5em' : 0,
|
|
4688
4694
|
paddingRight: langdetect == 'ar' ? '.5rem' : 0
|
|
4689
4695
|
}
|
|
4690
|
-
}, StoreInfoprops(), sectionproperties.showsizeguidebtn == 'Show' && sizeguideimage.length != 0 && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
4696
|
+
}, 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__default["default"].createElement("div", {
|
|
4691
4697
|
"class": "col-lg-12 allcentered mb-2 p-sm-0 mt-2"
|
|
4692
4698
|
}, /*#__PURE__*/React__default["default"].createElement("button", {
|
|
4693
4699
|
"class": productinfo_cssstyles.sizeguidebtn,
|
|
@@ -4709,7 +4715,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
4709
4715
|
"class": "my-3"
|
|
4710
4716
|
})), sectionproperties.showShareButton == 'Show' && sectionproperties.sharebtnstyle == 'Style 2' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4711
4717
|
"class": "col-lg-12 p-0 allcentered mt-2"
|
|
4712
|
-
}, ShareButtonsContainer())))))), Object.keys(sectionproperties).length != 0 && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
4718
|
+
}, 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__default["default"].createElement("div", {
|
|
4713
4719
|
"class": "".concat(productinfo_cssstyles.cardcontainer) + ' row ml-0 mr-0 w-100 pl-md-2 pr-md-2 px-1025-1 ',
|
|
4714
4720
|
style: {
|
|
4715
4721
|
minHeight: sectionproperties.height + 'vh'
|
|
@@ -4861,7 +4867,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
4861
4867
|
className: 'col-xl-4 col-lg-6 col-md-12 col-sm-12 pl-4 px-md-2'
|
|
4862
4868
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4863
4869
|
className: sectionproperties.evencols == 'Yes' ? 'row m-0 w-100' : 'row m-0 w-100'
|
|
4864
|
-
}, sectionproperties.
|
|
4870
|
+
}, sectionproperties.quantityshow == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4865
4871
|
"class": "col-lg-12 p-0 text-start"
|
|
4866
4872
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
4867
4873
|
"class": "m-0 p-0",
|
|
@@ -4871,15 +4877,15 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
4871
4877
|
fontWeight: sectionproperties.quantityfontweight
|
|
4872
4878
|
}
|
|
4873
4879
|
}, langdetect == 'en' ? sectionproperties.qtytextinen : sectionproperties.qtytextinar, ":", ' ', fetchProductInfoQueryContext.data.data.productinfo.currentquantity)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4874
|
-
className: (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
4880
|
+
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',
|
|
4875
4881
|
style: {
|
|
4876
4882
|
justifyContent: sectionproperties.productnamecentered == 'Centered' ? 'center' : 'start'
|
|
4877
4883
|
}
|
|
4878
|
-
}, ProductNameSection()), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
4884
|
+
}, 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__default["default"].createElement("div", {
|
|
4879
4885
|
className: "col-lg-4 col-md-4 col-sm-4 p-0 mb-1 d-flex justify-content-end align-items-center"
|
|
4880
4886
|
}, /*#__PURE__*/React__default["default"].createElement(ReactStars__default["default"], {
|
|
4881
4887
|
count: 5,
|
|
4882
|
-
value: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
4888
|
+
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,
|
|
4883
4889
|
edit: false,
|
|
4884
4890
|
size: 18,
|
|
4885
4891
|
emptyIcon: /*#__PURE__*/React__default["default"].createElement("i", {
|
|
@@ -4900,7 +4906,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
4900
4906
|
activeColor: "#ffd700"
|
|
4901
4907
|
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4902
4908
|
className: "col-lg-4 col-md-4 col-sm-4 p-0 mb-1 d-flex justify-content-end align-items-center"
|
|
4903
|
-
}, sectionproperties.availabilitybtnposition == 'Top' && sectionproperties.show_availability == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
4909
|
+
}, 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__default["default"].createElement("div", {
|
|
4904
4910
|
style: {
|
|
4905
4911
|
width: sectionproperties.availability_width + 'px',
|
|
4906
4912
|
height: sectionproperties.availability_height + 'px',
|
|
@@ -4953,7 +4959,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
4953
4959
|
"class": "col-lg-12 text-start p-0"
|
|
4954
4960
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4955
4961
|
className: "row m-0 w-100"
|
|
4956
|
-
}, fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
4962
|
+
}, 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) {
|
|
4957
4963
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4958
4964
|
"class": ' col-md-12 p-0 mb-3 mt-2 col-lg-' + sectionproperties.featuresnumcols
|
|
4959
4965
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -5011,7 +5017,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
5011
5017
|
color: sectionproperties.prodCatColor
|
|
5012
5018
|
},
|
|
5013
5019
|
dangerouslySetInnerHTML: {
|
|
5014
|
-
__html: langdetect == 'en' ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5020
|
+
__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
|
|
5015
5021
|
}
|
|
5016
5022
|
})))), sectionproperties.featuresposition == 'Under Name' && sectionproperties.featurestyle == 'Table' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5017
5023
|
"class": "col-lg-12 text-start p-md-0"
|
|
@@ -5030,7 +5036,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
5030
5036
|
className: "col-lg-12 m-0 w-100 p-0"
|
|
5031
5037
|
}, /*#__PURE__*/React__default["default"].createElement("table", {
|
|
5032
5038
|
className: 'table tablevertical'
|
|
5033
|
-
}, fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5039
|
+
}, 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) {
|
|
5034
5040
|
return /*#__PURE__*/React__default["default"].createElement("tr", null, /*#__PURE__*/React__default["default"].createElement("th", {
|
|
5035
5041
|
style: {
|
|
5036
5042
|
textTransform: 'capitalize',
|
|
@@ -5062,11 +5068,11 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
5062
5068
|
fontSize: sectionproperties.featurevaluefontsize
|
|
5063
5069
|
}
|
|
5064
5070
|
}, langdetect == 'en' ? fitem === null || fitem === void 0 ? void 0 : fitem.value_en : fitem === null || fitem === void 0 ? void 0 : fitem.value_ar));
|
|
5065
|
-
}))))), sectionproperties.defaultpricingposition == 'Under Name' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5071
|
+
}))))), 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__default["default"].createElement(ProductHeaderPricing, {
|
|
5066
5072
|
actions: props.actions
|
|
5067
|
-
}), sectionproperties.featuresposition == 'Under Pricing' && sectionproperties.featurestyle == 'Table' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5073
|
+
}), sectionproperties.showmeasurementunit == 'Show' && sectionproperties.measurementunitposition == 'Above Name' && MeasurementUnitSection(), sectionproperties.featuresposition == 'Under Pricing' && sectionproperties.featurestyle == 'Table' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5068
5074
|
"class": "col-lg-12 text-start p-0"
|
|
5069
|
-
}, ProductFeaturesTable()), langdetect == 'en' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5075
|
+
}, 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__default["default"].createElement("div", {
|
|
5070
5076
|
"class": "col-lg-12 p-0"
|
|
5071
5077
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5072
5078
|
"class": "col-lg-12 p-0 d-flex justify-content-start"
|
|
@@ -5076,9 +5082,9 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
5076
5082
|
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
5077
5083
|
},
|
|
5078
5084
|
dangerouslySetInnerHTML: {
|
|
5079
|
-
__html: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5085
|
+
__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
|
|
5080
5086
|
}
|
|
5081
|
-
}))), langdetect == 'ar' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5087
|
+
}))), 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__default["default"].createElement("div", {
|
|
5082
5088
|
"class": "col-lg-12 p-0"
|
|
5083
5089
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5084
5090
|
"class": "col-lg-12 p-0 d-flex justify-content-start"
|
|
@@ -5088,43 +5094,43 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
5088
5094
|
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
5089
5095
|
},
|
|
5090
5096
|
dangerouslySetInnerHTML: {
|
|
5091
|
-
__html: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5097
|
+
__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
|
|
5092
5098
|
}
|
|
5093
|
-
}))), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5099
|
+
}))), (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__default["default"].createElement("div", {
|
|
5094
5100
|
"class": "col-lg-12 p-0 d-flex justify-content-start mt-2 mb-2"
|
|
5095
5101
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
5096
5102
|
"class": "m-0 p-0",
|
|
5097
5103
|
style: {
|
|
5098
5104
|
color: '#000',
|
|
5099
|
-
cursor: sectionproperties.vendornameclickable == 'Yes' ? 'pointer' : (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
5105
|
+
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' : ''
|
|
5100
5106
|
},
|
|
5101
5107
|
onClick: function onClick() {
|
|
5102
|
-
var _authdetailsContext$
|
|
5108
|
+
var _authdetailsContext$i13;
|
|
5103
5109
|
if (sectionproperties.vendornameclickable == 'Yes') {
|
|
5104
|
-
var _fetchProductInfoQuer79;
|
|
5105
|
-
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, encodeURIComponent(JSON.stringify({
|
|
5106
|
-
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]
|
|
5107
|
-
})));
|
|
5108
|
-
} else if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i1 = authdetailsContext.instinfo) === null || _authdetailsContext$i1 === void 0 ? void 0 : _authdetailsContext$i1.contactinfo.instid) == '683c163d7f996') {
|
|
5109
5110
|
var _fetchProductInfoQuer80;
|
|
5110
5111
|
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, encodeURIComponent(JSON.stringify({
|
|
5111
5112
|
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]
|
|
5112
5113
|
})));
|
|
5114
|
+
} else if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i13 = authdetailsContext.instinfo) === null || _authdetailsContext$i13 === void 0 ? void 0 : _authdetailsContext$i13.contactinfo.instid) == '683c163d7f996') {
|
|
5115
|
+
var _fetchProductInfoQuer81;
|
|
5116
|
+
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, encodeURIComponent(JSON.stringify({
|
|
5117
|
+
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]
|
|
5118
|
+
})));
|
|
5113
5119
|
}
|
|
5114
5120
|
}
|
|
5115
5121
|
}, langdetect == 'en' ? sectionproperties.vendortitleen : sectionproperties.vendortitlear, ":", ' ', /*#__PURE__*/React__default["default"].createElement("span", {
|
|
5116
5122
|
style: {
|
|
5117
5123
|
fontWeight: 600
|
|
5118
5124
|
}
|
|
5119
|
-
}, fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5120
|
-
"class": sectionproperties.deliverytimeshow == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5121
|
-
}, ProductsSKUContainer()), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5125
|
+
}, 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__default["default"].createElement("div", {
|
|
5126
|
+
"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'
|
|
5127
|
+
}, 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__default["default"].createElement("div", {
|
|
5122
5128
|
"class": "col-lg-12 p-0 d-flex justify-content-start mb-2"
|
|
5123
5129
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5124
5130
|
"class": "".concat(productinfo_cssstyles.outstockbadge) + ' allcentered '
|
|
5125
5131
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
5126
5132
|
"class": "m-0 p-0"
|
|
5127
|
-
}, langdetect == 'en' ? sectionproperties.outstock_contenten : sectionproperties.outstock_contentar))), sectionproperties.deliverytimeshow == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5133
|
+
}, 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__default["default"].createElement("div", {
|
|
5128
5134
|
"class": "mb-4 col-lg-12 allcentered",
|
|
5129
5135
|
style: {
|
|
5130
5136
|
width: '100%',
|
|
@@ -5145,7 +5151,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
5145
5151
|
textAlign: langdetect == 'en' ? 'left' : 'right',
|
|
5146
5152
|
color: sectionproperties.deliverytimecontainercolor
|
|
5147
5153
|
}
|
|
5148
|
-
}, sectionproperties.showdeliverytitle == 'Show' && /*#__PURE__*/React__default["default"].createElement("span", null, langdetect == 'en' ? sectionproperties.deliverycontent_en : sectionproperties.deliverycontent_ar, ": "), ' ', fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5154
|
+
}, sectionproperties.showdeliverytitle == 'Show' && /*#__PURE__*/React__default["default"].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__default["default"].createElement(ProductHeaderPricing, {
|
|
5149
5155
|
actions: props.actions
|
|
5150
5156
|
}), sectionproperties.descriptionposition != 'Under Name' && sectionproperties.descriptionposition == 'Top' && sectionproperties.descriptionstyle == 'Style 1' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5151
5157
|
"class": "col-lg-12 p-0"
|
|
@@ -5186,7 +5192,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
5186
5192
|
marginTop: sectionproperties.ctabuttnnsmarginvertical + 'px',
|
|
5187
5193
|
marginBottom: sectionproperties.ctabuttnnsmarginvertical + 'px'
|
|
5188
5194
|
}
|
|
5189
|
-
}, (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5195
|
+
}, (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__default["default"].createElement("div", {
|
|
5190
5196
|
className: "col-lg-12 p-0 mb-2 d-flex justofy-content-start"
|
|
5191
5197
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
5192
5198
|
className: "m-0 p-0",
|
|
@@ -5203,11 +5209,11 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
5203
5209
|
style: {
|
|
5204
5210
|
justifyContent: sectionproperties.cartbtncentered == 'Centered' ? 'center' : 'start'
|
|
5205
5211
|
}
|
|
5206
|
-
}, sectionproperties.quantitybtn_show == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5212
|
+
}, 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__default["default"].createElement("div", {
|
|
5207
5213
|
"class": "col-lg-12 text-start p-md-0"
|
|
5208
5214
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5209
5215
|
className: "row m-0 w-100"
|
|
5210
|
-
}, fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5216
|
+
}, 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) {
|
|
5211
5217
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5212
5218
|
"class": ' col-md-12 p-0 mb-3 mt-2 col-lg-' + sectionproperties.featuresnumcols
|
|
5213
5219
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -5245,12 +5251,12 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
5245
5251
|
fontSize: sectionproperties.featurevaluefontsize
|
|
5246
5252
|
}
|
|
5247
5253
|
}, langdetect == 'en' ? fitem === null || fitem === void 0 ? void 0 : fitem.value_en : fitem === null || fitem === void 0 ? void 0 : fitem.value_ar))));
|
|
5248
|
-
}))), sectionproperties.cartbtnalone == 'Besides Other Buttons' && sectionproperties.cartBtnShow == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5254
|
+
}))), 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__default["default"].createElement("button", {
|
|
5249
5255
|
className: "".concat(productinfo_cssstyles.cart_btn, " ") + ' ml-2 mr-2 d-flex align-items-center justify-content-center mb-sm-2 ',
|
|
5250
5256
|
onClick: function onClick() {
|
|
5251
5257
|
if (fetchProductInfoQueryContext.data.data.productinfo.product_calltoaction == 'Call') {
|
|
5252
|
-
var
|
|
5253
|
-
window.open('tel:' + ((
|
|
5258
|
+
var _fetchProductInfoQuer96;
|
|
5259
|
+
window.open('tel:' + ((_fetchProductInfoQuer96 = fetchProductInfoQueryContext.data.data.productinfo) === null || _fetchProductInfoQuer96 === void 0 ? void 0 : _fetchProductInfoQuer96.product_phonenumber), '_blank');
|
|
5254
5260
|
} else {
|
|
5255
5261
|
if (fetchProductInfoQueryContext.data.data.productinfo.maximumproductquant >= addtocardpayloadobj.quantity && fetchProductInfoQueryContext.data.data.productinfo.minimumproductquant <= addtocardpayloadobj.quantity) {
|
|
5256
5262
|
addtocartfunc();
|
|
@@ -5281,7 +5287,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
5281
5287
|
size: sectionproperties.cartBtn_iconFontSize
|
|
5282
5288
|
}), sectionproperties.carticonstyle == 'Shopping cart 2' && /*#__PURE__*/React__default["default"].createElement(MdAddShoppingCart.MdAddShoppingCart, {
|
|
5283
5289
|
size: sectionproperties.cartBtn_iconFontSize
|
|
5284
|
-
})), langdetect == 'en' ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5290
|
+
})), 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__default["default"].createElement("div", {
|
|
5285
5291
|
className: ' d-flex align-items-center justify-content-center '
|
|
5286
5292
|
}, /*#__PURE__*/React__default["default"].createElement(reactCssfxLoading.CircularProgress, {
|
|
5287
5293
|
color: sectionproperties.cartBtnTextcolor,
|
|
@@ -5326,7 +5332,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
5326
5332
|
style: {
|
|
5327
5333
|
fontSize: sectionproperties.favBtnTextfontsize + 'px'
|
|
5328
5334
|
}
|
|
5329
|
-
}, langdetect == 'en' ? sectionproperties.favbtnaddedcontent_en : sectionproperties.favbtnaddedcontent_ar))), sectionproperties.cartbtnalone == 'Alone' && sectionproperties.cartBtnShow == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5335
|
+
}, 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__default["default"].createElement("div", {
|
|
5330
5336
|
"class": "row m-0 w-100 mt-3",
|
|
5331
5337
|
style: {
|
|
5332
5338
|
overflow: 'hidden'
|
|
@@ -5338,8 +5344,8 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
5338
5344
|
},
|
|
5339
5345
|
onClick: function onClick() {
|
|
5340
5346
|
if (fetchProductInfoQueryContext.data.data.productinfo.product_calltoaction == 'Call') {
|
|
5341
|
-
var
|
|
5342
|
-
window.open('tel:' + ((
|
|
5347
|
+
var _fetchProductInfoQuer100;
|
|
5348
|
+
window.open('tel:' + ((_fetchProductInfoQuer100 = fetchProductInfoQueryContext.data.data.productinfo) === null || _fetchProductInfoQuer100 === void 0 ? void 0 : _fetchProductInfoQuer100.product_phonenumber), '_blank');
|
|
5343
5349
|
} else {
|
|
5344
5350
|
if (fetchProductInfoQueryContext.data.data.productinfo.maximumproductquant >= addtocardpayloadobj.quantity && fetchProductInfoQueryContext.data.data.productinfo.minimumproductquant <= addtocardpayloadobj.quantity) {
|
|
5345
5351
|
addtocartfunc();
|
|
@@ -5370,7 +5376,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
5370
5376
|
size: sectionproperties.cartBtn_iconFontSize
|
|
5371
5377
|
}), sectionproperties.carticonstyle == 'Shopping cart 2' && /*#__PURE__*/React__default["default"].createElement(MdAddShoppingCart.MdAddShoppingCart, {
|
|
5372
5378
|
size: sectionproperties.cartBtn_iconFontSize
|
|
5373
|
-
})), langdetect == 'en' ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5379
|
+
})), 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__default["default"].createElement("div", {
|
|
5374
5380
|
className: ' d-flex align-items-center justify-content-center '
|
|
5375
5381
|
}, /*#__PURE__*/React__default["default"].createElement(reactCssfxLoading.CircularProgress, {
|
|
5376
5382
|
color: sectionproperties.cartBtnTextcolor,
|
|
@@ -5435,7 +5441,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
5435
5441
|
style: {
|
|
5436
5442
|
width: sectionproperties.cartBtnWidth + '%'
|
|
5437
5443
|
}
|
|
5438
|
-
}, langdetect == 'en' ? sectionproperties.directwabtntitleen : sectionproperties.directwabtntitlear))), sectionproperties.cartbtnalone == 'Alone' && sectionproperties.showbuynowbtn == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5444
|
+
}, 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__default["default"].createElement("div", {
|
|
5439
5445
|
"class": "row m-0 w-100 mt-3",
|
|
5440
5446
|
style: {
|
|
5441
5447
|
overflow: 'hidden'
|
|
@@ -5471,7 +5477,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
5471
5477
|
"class": "col-lg-12 text-start p-md-0"
|
|
5472
5478
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5473
5479
|
className: "row m-0 w-100"
|
|
5474
|
-
}, fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5480
|
+
}, 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) {
|
|
5475
5481
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5476
5482
|
"class": ' col-md-12 p-0 mb-3 mt-2 col-lg-' + sectionproperties.featuresnumcols
|
|
5477
5483
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -5509,19 +5515,19 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
5509
5515
|
fontSize: sectionproperties.featurevaluefontsize
|
|
5510
5516
|
}
|
|
5511
5517
|
}, langdetect == 'en' ? fitem === null || fitem === void 0 ? void 0 : fitem.value_en : fitem === null || fitem === void 0 ? void 0 : fitem.value_ar))));
|
|
5512
|
-
}))), sectionproperties.showsizeguidebtn == 'Show' && sizeguideimage.length != 0 && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5518
|
+
}))), 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__default["default"].createElement("div", {
|
|
5513
5519
|
"class": "col-12 text-start mt-3"
|
|
5514
5520
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
5515
5521
|
"class": productinfo_cssstyles.sizeguidebtn + ' m-0 p-0 cursor-pointer mb-auto ',
|
|
5516
5522
|
onClick: function onClick() {
|
|
5517
5523
|
setopensizeguidemodal(true);
|
|
5518
5524
|
}
|
|
5519
|
-
}, langdetect == 'en' ? sectionproperties.sizeguidecontentenglish : sectionproperties.sizeguidecontentarabic)), sectionproperties.showsizeguidebtn == 'Show' && sizeguideimage.length != 0 && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5525
|
+
}, 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__default["default"].createElement("div", {
|
|
5520
5526
|
"class": "col-lg-12 col-md-12 my-3 p-md-0"
|
|
5521
5527
|
}, /*#__PURE__*/React__default["default"].createElement("hr", {
|
|
5522
5528
|
"class": "m-0"
|
|
5523
5529
|
})), sectionproperties.descriptionstyle == 'Style 2' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5524
|
-
"class": sectionproperties.showsizeguidebtn == 'Show' && sizeguideimage.length != 0 && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5530
|
+
"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'
|
|
5525
5531
|
}, sectionproperties.descriptioncollapseopen == 'Yes' && /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.Accordion, {
|
|
5526
5532
|
allowMultipleExpanded: true,
|
|
5527
5533
|
allowZeroExpanded: true,
|
|
@@ -5569,7 +5575,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
5569
5575
|
color: sectionproperties.prodCatColor
|
|
5570
5576
|
},
|
|
5571
5577
|
dangerouslySetInnerHTML: {
|
|
5572
|
-
__html: langdetect == 'en' ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5578
|
+
__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
|
|
5573
5579
|
}
|
|
5574
5580
|
})))))), sectionproperties.descriptionstyle == 'Style 2' && sectionproperties.showshortdescription == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5575
5581
|
"class": "col-lg-12 col-md-12 my-3 p-md-0"
|
|
@@ -5743,7 +5749,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
5743
5749
|
})
|
|
5744
5750
|
// actions={props.actions}
|
|
5745
5751
|
// srcfromprops={'collapsepinfo'}
|
|
5746
|
-
})))))), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5752
|
+
})))))), (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__default["default"].createElement("div", {
|
|
5747
5753
|
className: "col-lg-12 p-0 mb-3"
|
|
5748
5754
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5749
5755
|
className: "row m-0 w-100 d-flex flex-row"
|
|
@@ -5766,7 +5772,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
5766
5772
|
}
|
|
5767
5773
|
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
5768
5774
|
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 '
|
|
5769
|
-
}, 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 || (
|
|
5775
|
+
}, 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__default["default"].createElement("p", {
|
|
5770
5776
|
className: 'm-0 p-0 linethrough wordbreak',
|
|
5771
5777
|
style: {
|
|
5772
5778
|
color: sectionproperties.prodsalePriceColor,
|
|
@@ -5780,14 +5786,14 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
5780
5786
|
style: {
|
|
5781
5787
|
textDecoration: 'none'
|
|
5782
5788
|
}
|
|
5783
|
-
}, "-"), 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 || (
|
|
5789
|
+
}, "-"), 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__default["default"].createElement("span", {
|
|
5784
5790
|
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 '
|
|
5785
5791
|
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
5786
5792
|
className: "ml-2 mr-2",
|
|
5787
5793
|
style: {
|
|
5788
5794
|
textDecoration: 'none'
|
|
5789
5795
|
}
|
|
5790
|
-
}, "-"), 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 || (
|
|
5796
|
+
}, "-"), 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__default["default"].createElement("div", {
|
|
5791
5797
|
className: "col-lg-12 p-0 mb-3 mt-2"
|
|
5792
5798
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5793
5799
|
style: {
|
|
@@ -5835,7 +5841,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
5835
5841
|
paddingLeft: langdetect == 'en' ? '.5em' : 0,
|
|
5836
5842
|
paddingRight: langdetect == 'ar' ? '.5rem' : 0
|
|
5837
5843
|
}
|
|
5838
|
-
}, StoreInfoprops(), sectionproperties.showsizeguidebtn == 'Show' && sizeguideimage.length != 0 && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5844
|
+
}, 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__default["default"].createElement("div", {
|
|
5839
5845
|
"class": "col-lg-12 allcentered mb-2 p-sm-0 mt-2"
|
|
5840
5846
|
}, /*#__PURE__*/React__default["default"].createElement("button", {
|
|
5841
5847
|
"class": productinfo_cssstyles.sizeguidebtn,
|
|
@@ -5857,7 +5863,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
5857
5863
|
"class": "my-3"
|
|
5858
5864
|
})), sectionproperties.showShareButton == 'Show' && sectionproperties.sharebtnstyle == 'Style 2' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5859
5865
|
"class": "col-lg-12 p-0 allcentered mt-2"
|
|
5860
|
-
}, ShareButtonsContainer())))))), Object.keys(sectionproperties).length != 0 && sectionproperties.productInformationType == 'Portfolio' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
5866
|
+
}, 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__default["default"].createElement("div", {
|
|
5861
5867
|
"class": "".concat(productinfo_cssstyles.cardcontainer) + ' row ml-0 mr-0 w-100 ',
|
|
5862
5868
|
style: {
|
|
5863
5869
|
minHeight: sectionproperties.height + 'vh',
|
|
@@ -5874,7 +5880,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
5874
5880
|
}, /*#__PURE__*/React__default["default"].createElement(Imagekitimagecomp, {
|
|
5875
5881
|
urlEndpoint: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint,
|
|
5876
5882
|
publicKey: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimagepublickey,
|
|
5877
|
-
path: '/tr:w-' + sectionproperties.imagetr_w + ',h-' + sectionproperties.imagetr_h + '/' + (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5883
|
+
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),
|
|
5878
5884
|
style: {
|
|
5879
5885
|
width: '100%',
|
|
5880
5886
|
height: '100%',
|
|
@@ -5907,13 +5913,13 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
5907
5913
|
color: sectionproperties.prodCatColor
|
|
5908
5914
|
},
|
|
5909
5915
|
dangerouslySetInnerHTML: {
|
|
5910
|
-
__html: langdetect == 'en' ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5916
|
+
__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
|
|
5911
5917
|
}
|
|
5912
5918
|
})))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5913
5919
|
"class": "col-lg-12 text-start p-md-0"
|
|
5914
5920
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5915
5921
|
className: "row m-0 w-100"
|
|
5916
|
-
}, fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5922
|
+
}, 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) {
|
|
5917
5923
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5918
5924
|
"class": ' col-md-6 p-0 mb-3 mt-2 col-lg-' + sectionproperties.featuresnumcols
|
|
5919
5925
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -5955,7 +5961,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
5955
5961
|
"class": "col-lg-12 p-0 my-4"
|
|
5956
5962
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5957
5963
|
"class": "row m-0 w-100"
|
|
5958
|
-
}, (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5964
|
+
}, (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) {
|
|
5959
5965
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5960
5966
|
"class": "col-lg-4 col-sm-12 mb-md-2 p-md-0"
|
|
5961
5967
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -5982,9 +5988,9 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
5982
5988
|
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
5983
5989
|
},
|
|
5984
5990
|
dangerouslySetInnerHTML: {
|
|
5985
|
-
__html: langdetect == 'en' ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
5991
|
+
__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
|
|
5986
5992
|
}
|
|
5987
|
-
}))))), Object.keys(sectionproperties).length != 0 && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
5993
|
+
}))))), 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__default["default"].createElement("div", {
|
|
5988
5994
|
"class": "".concat(productinfo_cssstyles.cardcontainer) + ' row ml-0 mr-0 w-100 pl-md-2 pr-md-2 px-0 ',
|
|
5989
5995
|
style: {
|
|
5990
5996
|
minHeight: '100vh'
|
|
@@ -6016,7 +6022,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
6016
6022
|
duration: 1500,
|
|
6017
6023
|
arrow: true,
|
|
6018
6024
|
easing: "ease"
|
|
6019
|
-
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
6025
|
+
}), (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) {
|
|
6020
6026
|
if (item.is_size_guide != 1) {
|
|
6021
6027
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6022
6028
|
"class": "row m-0 w-100 h-sm-auto",
|
|
@@ -6071,7 +6077,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
6071
6077
|
color: sectionproperties.prodCatColor
|
|
6072
6078
|
},
|
|
6073
6079
|
dangerouslySetInnerHTML: {
|
|
6074
|
-
__html: langdetect == 'en' ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
6080
|
+
__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
|
|
6075
6081
|
}
|
|
6076
6082
|
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6077
6083
|
"class": "col-lg-12 col-md-12 p-0 mb-4"
|
|
@@ -6117,7 +6123,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
6117
6123
|
"class": "row m-0 w-100 pl-3 pr-3 mt-3"
|
|
6118
6124
|
}, /*#__PURE__*/React__default["default"].createElement("table", {
|
|
6119
6125
|
className: 'table tablevertical'
|
|
6120
|
-
}, fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
6126
|
+
}, 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) {
|
|
6121
6127
|
return /*#__PURE__*/React__default["default"].createElement("tr", null, /*#__PURE__*/React__default["default"].createElement("th", {
|
|
6122
6128
|
style: {
|
|
6123
6129
|
textTransform: 'capitalize',
|
|
@@ -6160,8 +6166,8 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
6160
6166
|
}, /*#__PURE__*/React__default["default"].createElement("button", {
|
|
6161
6167
|
className: ' mx-4 mx-md-2 d-flex align-items-center justify-content-center ',
|
|
6162
6168
|
onClick: function onClick() {
|
|
6163
|
-
var
|
|
6164
|
-
window.open('tel:' + ((
|
|
6169
|
+
var _fetchProductInfoQuer129;
|
|
6170
|
+
window.open('tel:' + ((_fetchProductInfoQuer129 = fetchProductInfoQueryContext.data.data.productinfo) === null || _fetchProductInfoQuer129 === void 0 ? void 0 : _fetchProductInfoQuer129.product_phonenumber), '_blank');
|
|
6165
6171
|
},
|
|
6166
6172
|
style: {
|
|
6167
6173
|
width: '40%',
|
|
@@ -6212,8 +6218,8 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
6212
6218
|
className: "".concat(productinfo_cssstyles.cart_btn, " ") + ' ml-2 mr-2 d-flex align-items-center justify-content-center mb-sm-2 ',
|
|
6213
6219
|
onClick: function onClick() {
|
|
6214
6220
|
if (fetchProductInfoQueryContext.data.data.productinfo.product_calltoaction == 'Call') {
|
|
6215
|
-
var
|
|
6216
|
-
window.open('tel:' + ((
|
|
6221
|
+
var _fetchProductInfoQuer130;
|
|
6222
|
+
window.open('tel:' + ((_fetchProductInfoQuer130 = fetchProductInfoQueryContext.data.data.productinfo) === null || _fetchProductInfoQuer130 === void 0 ? void 0 : _fetchProductInfoQuer130.product_phonenumber), '_blank');
|
|
6217
6223
|
} else {
|
|
6218
6224
|
if (fetchProductInfoQueryContext.data.data.productinfo.maximumproductquant >= addtocardpayloadobj.quantity && fetchProductInfoQueryContext.data.data.productinfo.minimumproductquant <= addtocardpayloadobj.quantity) {
|
|
6219
6225
|
addtocartfunc();
|
|
@@ -6244,14 +6250,14 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
6244
6250
|
size: sectionproperties.cartBtn_iconFontSize
|
|
6245
6251
|
}), sectionproperties.carticonstyle == 'Shopping cart 2' && /*#__PURE__*/React__default["default"].createElement(MdAddShoppingCart.MdAddShoppingCart, {
|
|
6246
6252
|
size: sectionproperties.cartBtn_iconFontSize
|
|
6247
|
-
})), langdetect == 'en' ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
6253
|
+
})), 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__default["default"].createElement("div", {
|
|
6248
6254
|
className: ' d-flex align-items-center justify-content-center '
|
|
6249
6255
|
}, /*#__PURE__*/React__default["default"].createElement(reactCssfxLoading.CircularProgress, {
|
|
6250
6256
|
color: sectionproperties.cartBtnTextcolor,
|
|
6251
6257
|
width: "20px",
|
|
6252
6258
|
height: "20px",
|
|
6253
6259
|
duration: "1s"
|
|
6254
|
-
}))))))))), Object.keys(sectionproperties).length != 0 && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
6260
|
+
}))))))))), 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__default["default"].createElement("div", {
|
|
6255
6261
|
"class": "".concat(productinfo_cssstyles.cardcontainer) + ' row ml-0 mr-0 w-100 pl-md-2 pr-md-2 px-0 ',
|
|
6256
6262
|
style: {
|
|
6257
6263
|
minHeight: '100vh'
|
|
@@ -6283,7 +6289,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
6283
6289
|
duration: 1500,
|
|
6284
6290
|
arrow: true,
|
|
6285
6291
|
easing: "ease"
|
|
6286
|
-
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
6292
|
+
}), (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) {
|
|
6287
6293
|
if (item.is_size_guide != 1) {
|
|
6288
6294
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6289
6295
|
"class": "row m-0 w-100 h-sm-auto",
|
|
@@ -6338,7 +6344,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
6338
6344
|
color: sectionproperties.prodCatColor
|
|
6339
6345
|
},
|
|
6340
6346
|
dangerouslySetInnerHTML: {
|
|
6341
|
-
__html: langdetect == 'en' ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
6347
|
+
__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
|
|
6342
6348
|
}
|
|
6343
6349
|
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6344
6350
|
"class": "col-lg-12 col-md-12 p-0 mb-4"
|
|
@@ -6382,7 +6388,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
6382
6388
|
className: "p-0"
|
|
6383
6389
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6384
6390
|
"class": "row m-0 w-100 pl-3 pr-3 mt-3"
|
|
6385
|
-
}, fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
6391
|
+
}, 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) {
|
|
6386
6392
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6387
6393
|
"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'
|
|
6388
6394
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -6478,7 +6484,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
6478
6484
|
}, /*#__PURE__*/React__default["default"].createElement(Imagekitimagecomp, {
|
|
6479
6485
|
urlEndpoint: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint,
|
|
6480
6486
|
publicKey: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimagepublickey,
|
|
6481
|
-
path: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
6487
|
+
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,
|
|
6482
6488
|
loading: "lazy",
|
|
6483
6489
|
style: {
|
|
6484
6490
|
maxWidth: '100%',
|
|
@@ -6493,7 +6499,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
6493
6499
|
fontSize: 17,
|
|
6494
6500
|
color: sectionproperties.featurecolor
|
|
6495
6501
|
}
|
|
6496
|
-
}, fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
6502
|
+
}, 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__default["default"].createElement("div", {
|
|
6497
6503
|
"class": "col-lg-3"
|
|
6498
6504
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6499
6505
|
"class": "row m-0 w-100"
|
|
@@ -6502,8 +6508,8 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
6502
6508
|
}, /*#__PURE__*/React__default["default"].createElement("button", {
|
|
6503
6509
|
className: ' mx-4 mx-md-2 d-flex align-items-center justify-content-center ',
|
|
6504
6510
|
onClick: function onClick() {
|
|
6505
|
-
var
|
|
6506
|
-
window.open('tel:' + ((
|
|
6511
|
+
var _fetchProductInfoQuer140;
|
|
6512
|
+
window.open('tel:' + ((_fetchProductInfoQuer140 = fetchProductInfoQueryContext.data.data.productinfo) === null || _fetchProductInfoQuer140 === void 0 ? void 0 : _fetchProductInfoQuer140.product_phonenumber), '_blank');
|
|
6507
6513
|
},
|
|
6508
6514
|
style: {
|
|
6509
6515
|
width: '40%',
|
|
@@ -6554,8 +6560,8 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
6554
6560
|
className: "".concat(productinfo_cssstyles.cart_btn, " ") + ' ml-2 mr-2 d-flex align-items-center justify-content-center mb-sm-2 ',
|
|
6555
6561
|
onClick: function onClick() {
|
|
6556
6562
|
if (fetchProductInfoQueryContext.data.data.productinfo.product_calltoaction == 'Call') {
|
|
6557
|
-
var
|
|
6558
|
-
window.open('tel:' + ((
|
|
6563
|
+
var _fetchProductInfoQuer141;
|
|
6564
|
+
window.open('tel:' + ((_fetchProductInfoQuer141 = fetchProductInfoQueryContext.data.data.productinfo) === null || _fetchProductInfoQuer141 === void 0 ? void 0 : _fetchProductInfoQuer141.product_phonenumber), '_blank');
|
|
6559
6565
|
} else {
|
|
6560
6566
|
if (fetchProductInfoQueryContext.data.data.productinfo.maximumproductquant >= addtocardpayloadobj.quantity && fetchProductInfoQueryContext.data.data.productinfo.minimumproductquant <= addtocardpayloadobj.quantity) {
|
|
6561
6567
|
addtocartfunc();
|
|
@@ -6586,7 +6592,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
6586
6592
|
size: sectionproperties.cartBtn_iconFontSize
|
|
6587
6593
|
}), sectionproperties.carticonstyle == 'Shopping cart 2' && /*#__PURE__*/React__default["default"].createElement(MdAddShoppingCart.MdAddShoppingCart, {
|
|
6588
6594
|
size: sectionproperties.cartBtn_iconFontSize
|
|
6589
|
-
})), langdetect == 'en' ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
6595
|
+
})), 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__default["default"].createElement("div", {
|
|
6590
6596
|
className: ' d-flex align-items-center justify-content-center '
|
|
6591
6597
|
}, /*#__PURE__*/React__default["default"].createElement(reactCssfxLoading.CircularProgress, {
|
|
6592
6598
|
color: sectionproperties.cartBtnTextcolor,
|
|
@@ -6630,7 +6636,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
6630
6636
|
objectFit: 'contain'
|
|
6631
6637
|
},
|
|
6632
6638
|
loading: "lazy"
|
|
6633
|
-
}))), /*#__PURE__*/React__default["default"].createElement(reactBootstrap.Modal.Footer, null)), Object.keys(sectionproperties).length != 0 && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
6639
|
+
}))), /*#__PURE__*/React__default["default"].createElement(reactBootstrap.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__default["default"].createElement("div", {
|
|
6634
6640
|
"class": "col-12 p-0",
|
|
6635
6641
|
style: {
|
|
6636
6642
|
position: 'fixed',
|
|
@@ -6657,8 +6663,8 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
6657
6663
|
},
|
|
6658
6664
|
onClick: function onClick() {
|
|
6659
6665
|
if (fetchProductInfoQueryContext.data.data.productinfo.product_calltoaction == 'Call') {
|
|
6660
|
-
var
|
|
6661
|
-
window.open('tel:' + ((
|
|
6666
|
+
var _fetchProductInfoQuer144;
|
|
6667
|
+
window.open('tel:' + ((_fetchProductInfoQuer144 = fetchProductInfoQueryContext.data.data.productinfo) === null || _fetchProductInfoQuer144 === void 0 ? void 0 : _fetchProductInfoQuer144.product_phonenumber), '_blank');
|
|
6662
6668
|
} else {
|
|
6663
6669
|
if (fetchProductInfoQueryContext.data.data.productinfo.maximumproductquant >= addtocardpayloadobj.quantity && fetchProductInfoQueryContext.data.data.productinfo.minimumproductquant <= addtocardpayloadobj.quantity) {
|
|
6664
6670
|
addtocartfunc();
|
|
@@ -6689,7 +6695,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
6689
6695
|
size: sectionproperties.cartBtn_iconFontSize
|
|
6690
6696
|
}), sectionproperties.carticonstyle == 'Shopping cart 2' && /*#__PURE__*/React__default["default"].createElement(MdAddShoppingCart.MdAddShoppingCart, {
|
|
6691
6697
|
size: sectionproperties.cartBtn_iconFontSize
|
|
6692
|
-
})), langdetect == 'en' ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
6698
|
+
})), 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__default["default"].createElement("div", {
|
|
6693
6699
|
className: ' d-flex align-items-center justify-content-center '
|
|
6694
6700
|
}, /*#__PURE__*/React__default["default"].createElement(reactCssfxLoading.CircularProgress, {
|
|
6695
6701
|
color: sectionproperties.cartBtnTextcolor,
|
|
@@ -13275,11 +13281,15 @@ styleInject(css_248z$G);
|
|
|
13275
13281
|
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; }
|
|
13276
13282
|
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__default["default"](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; }
|
|
13277
13283
|
var Checkout = function Checkout(props) {
|
|
13278
|
-
var _fetchTabexCountriesQ2, _css, _authdetailsContext$i7, _authdetailsContext$i8,
|
|
13284
|
+
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;
|
|
13279
13285
|
var _useState = React.useState(null),
|
|
13280
13286
|
_useState2 = _slicedToArray__default["default"](_useState, 2);
|
|
13281
13287
|
_useState2[0];
|
|
13282
13288
|
_useState2[1];
|
|
13289
|
+
var _useState3 = React.useState(false),
|
|
13290
|
+
_useState4 = _slicedToArray__default["default"](_useState3, 2),
|
|
13291
|
+
showpopup = _useState4[0],
|
|
13292
|
+
setshowpopup = _useState4[1];
|
|
13283
13293
|
var langdetect = props.actions.langdetect;
|
|
13284
13294
|
var lang = props.actions.lang;
|
|
13285
13295
|
var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
|
|
@@ -13302,38 +13312,38 @@ var Checkout = function Checkout(props) {
|
|
|
13302
13312
|
var authdetailsContext = props.actions.authdetailsContext;
|
|
13303
13313
|
var NotificationManager = props.actions.NotificationManager;
|
|
13304
13314
|
var queryClient = props.actions.queryClient;
|
|
13305
|
-
var _useState3 = React.useState(''),
|
|
13306
|
-
_useState4 = _slicedToArray__default["default"](_useState3, 2),
|
|
13307
|
-
sectionproperties = _useState4[0],
|
|
13308
|
-
setsectionproperties = _useState4[1];
|
|
13309
13315
|
var _useState5 = React.useState(''),
|
|
13310
|
-
_useState6 = _slicedToArray__default["default"](_useState5, 2)
|
|
13311
|
-
_useState6[0]
|
|
13312
|
-
|
|
13313
|
-
var _useState7 = React.useState(
|
|
13314
|
-
_useState8 = _slicedToArray__default["default"](_useState7, 2)
|
|
13315
|
-
|
|
13316
|
-
|
|
13317
|
-
var _useState9 = React.useState(
|
|
13318
|
-
_useState0 = _slicedToArray__default["default"](_useState9, 2)
|
|
13319
|
-
_useState0[0]
|
|
13320
|
-
_useState0[1];
|
|
13316
|
+
_useState6 = _slicedToArray__default["default"](_useState5, 2),
|
|
13317
|
+
sectionproperties = _useState6[0],
|
|
13318
|
+
setsectionproperties = _useState6[1];
|
|
13319
|
+
var _useState7 = React.useState(''),
|
|
13320
|
+
_useState8 = _slicedToArray__default["default"](_useState7, 2);
|
|
13321
|
+
_useState8[0];
|
|
13322
|
+
var setCurrentPageId = _useState8[1];
|
|
13323
|
+
var _useState9 = React.useState(0),
|
|
13324
|
+
_useState0 = _slicedToArray__default["default"](_useState9, 2),
|
|
13325
|
+
insthasaffiliate = _useState0[0],
|
|
13326
|
+
setinsthasaffiliate = _useState0[1];
|
|
13321
13327
|
var _useState1 = React.useState(false),
|
|
13322
13328
|
_useState10 = _slicedToArray__default["default"](_useState1, 2);
|
|
13323
13329
|
_useState10[0];
|
|
13324
13330
|
_useState10[1];
|
|
13325
|
-
var _useState11 = React.useState(
|
|
13326
|
-
_useState12 = _slicedToArray__default["default"](_useState11, 2)
|
|
13327
|
-
|
|
13328
|
-
|
|
13331
|
+
var _useState11 = React.useState(false),
|
|
13332
|
+
_useState12 = _slicedToArray__default["default"](_useState11, 2);
|
|
13333
|
+
_useState12[0];
|
|
13334
|
+
_useState12[1];
|
|
13329
13335
|
var _useState13 = React.useState([]),
|
|
13330
13336
|
_useState14 = _slicedToArray__default["default"](_useState13, 2),
|
|
13331
|
-
|
|
13332
|
-
|
|
13333
|
-
var _useState15 = React.useState(
|
|
13337
|
+
shippingmethods = _useState14[0],
|
|
13338
|
+
setshippingmethods = _useState14[1];
|
|
13339
|
+
var _useState15 = React.useState([]),
|
|
13334
13340
|
_useState16 = _slicedToArray__default["default"](_useState15, 2),
|
|
13335
|
-
|
|
13336
|
-
|
|
13341
|
+
orderextrafeilds = _useState16[0],
|
|
13342
|
+
setorderextrafeilds = _useState16[1];
|
|
13343
|
+
var _useState17 = React.useState(false),
|
|
13344
|
+
_useState18 = _slicedToArray__default["default"](_useState17, 2),
|
|
13345
|
+
instapaychosen = _useState18[0],
|
|
13346
|
+
setinstapaychosen = _useState18[1];
|
|
13337
13347
|
React.useEffect(function () {
|
|
13338
13348
|
var _templatepropcontext$;
|
|
13339
13349
|
var cartindex = templatepropcontext === null || templatepropcontext === void 0 || (_templatepropcontext$ = templatepropcontext.pagesnprop) === null || _templatepropcontext$ === void 0 ? void 0 : _templatepropcontext$.findIndex(function (x) {
|
|
@@ -13447,9 +13457,12 @@ var Checkout = function Checkout(props) {
|
|
|
13447
13457
|
};
|
|
13448
13458
|
React.useEffect(function () {
|
|
13449
13459
|
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) {
|
|
13450
|
-
var _fetchcustomercartQue9;
|
|
13460
|
+
var _fetchcustomercartQue9, _fetchcustomercartQue0;
|
|
13451
13461
|
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;
|
|
13452
13462
|
fetchshippingmethods(cityid);
|
|
13463
|
+
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) {
|
|
13464
|
+
setshowpopup(true);
|
|
13465
|
+
}
|
|
13453
13466
|
}
|
|
13454
13467
|
if (fetchcustomercartQueryContext.isSuccess) {
|
|
13455
13468
|
setUsedOrderExtraFieldsValues(orderextrafeilds);
|
|
@@ -13494,7 +13507,7 @@ var Checkout = function Checkout(props) {
|
|
|
13494
13507
|
// });
|
|
13495
13508
|
// };
|
|
13496
13509
|
var cartinfoupdater = function cartinfoupdater(key, value) {
|
|
13497
|
-
var
|
|
13510
|
+
var _fetchcustomercartQue1, _fetchcustomercartQue10, _fetchcustomercartQue11, _fetchcustomercartQue12, _fetchcustomercartQue13, _fetchcustomercartQue14, _fetchcustomercartQue15, _fetchcustomercartQue16, _fetchcustomercartQue17, _fetchcustomercartQue18, _fetchcustomercartQue19;
|
|
13498
13511
|
var OrderExtraFieldsToBeSentArr = returnOrderExtraFieldsArrayTobeSnetarr();
|
|
13499
13512
|
var cartarr = queryClient.getQueryData('fetchcustomercart_API');
|
|
13500
13513
|
cartarr.data.customercart[key] = value;
|
|
@@ -13506,23 +13519,23 @@ var Checkout = function Checkout(props) {
|
|
|
13506
13519
|
}
|
|
13507
13520
|
var payloadobj = {
|
|
13508
13521
|
utmSource: utmSource,
|
|
13509
|
-
stateid: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
13510
|
-
countryid: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
13511
|
-
cityid: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
13512
|
-
address: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
13513
|
-
paymentmethod: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
13514
|
-
name: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
13515
|
-
email: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
13516
|
-
mobile: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
13517
|
-
notes: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
13518
|
-
aff_code: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
13519
|
-
shippingmethod_id: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
13522
|
+
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,
|
|
13523
|
+
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,
|
|
13524
|
+
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,
|
|
13525
|
+
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,
|
|
13526
|
+
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,
|
|
13527
|
+
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,
|
|
13528
|
+
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,
|
|
13529
|
+
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,
|
|
13530
|
+
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,
|
|
13531
|
+
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,
|
|
13532
|
+
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,
|
|
13520
13533
|
orderextrafeilds: JSON.stringify(OrderExtraFieldsToBeSentArr)
|
|
13521
13534
|
};
|
|
13522
13535
|
if (key == 'address' || key == 'name' || key == 'mobile' || key == 'email' || key == 'notes' || key == 'aff_code') ; else {
|
|
13523
|
-
var
|
|
13536
|
+
var _fetchcustomercartQue20;
|
|
13524
13537
|
ChooseState_CountryMutationContext.mutate(payloadobj);
|
|
13525
|
-
fetchshippingmethods(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
13538
|
+
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);
|
|
13526
13539
|
}
|
|
13527
13540
|
};
|
|
13528
13541
|
var usewalletpoints = function usewalletpoints() {
|
|
@@ -13734,7 +13747,7 @@ var Checkout = function Checkout(props) {
|
|
|
13734
13747
|
};
|
|
13735
13748
|
var addorderfuncrunner = /*#__PURE__*/function () {
|
|
13736
13749
|
var _ref = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee() {
|
|
13737
|
-
var
|
|
13750
|
+
var _fetchcustomercartQue21, _fetchcustomercartQue22, _fetchcustomercartQue23, _fetchcustomercartQue24, _fetchcustomercartQue25, _fetchcustomercartQue26, _fetchcustomercartQue27, _fetchcustomercartQue28, _fetchcustomercartQue29, _fetchcustomercartQue30, _fetchcustomercartQue31;
|
|
13738
13751
|
var OrderExtraFieldsToBeSentArr, utmSource, utmSourceLocalStorage;
|
|
13739
13752
|
return _regeneratorRuntime__default["default"].wrap(function (_context) {
|
|
13740
13753
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -13751,21 +13764,21 @@ var Checkout = function Checkout(props) {
|
|
|
13751
13764
|
GeneralAPIMutationContext.mutate({
|
|
13752
13765
|
endpointurl: '/ChooseState_Country',
|
|
13753
13766
|
utmSource: utmSource,
|
|
13754
|
-
stateid: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
13755
|
-
countryid: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
13756
|
-
cityid: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
13757
|
-
address: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
13758
|
-
paymentmethod: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
13759
|
-
name: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
13760
|
-
email: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
13761
|
-
mobile: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
13762
|
-
notes: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
13763
|
-
aff_code: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
13764
|
-
shippingmethod_id: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
13767
|
+
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,
|
|
13768
|
+
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,
|
|
13769
|
+
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,
|
|
13770
|
+
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,
|
|
13771
|
+
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,
|
|
13772
|
+
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,
|
|
13773
|
+
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,
|
|
13774
|
+
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,
|
|
13775
|
+
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,
|
|
13776
|
+
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,
|
|
13777
|
+
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,
|
|
13765
13778
|
orderextrafeilds: JSON.stringify(OrderExtraFieldsToBeSentArr),
|
|
13766
13779
|
mutateSuccesscallback: function mutateSuccesscallback(data, variables) {
|
|
13767
13780
|
if (data.data.status) {
|
|
13768
|
-
var
|
|
13781
|
+
var _fetchcustomercartQue32, _fetchcustomercartQue33;
|
|
13769
13782
|
var cartarr = queryClient.getQueryData('fetchcustomercart_API');
|
|
13770
13783
|
cartarr.data = data.data.cartresponse;
|
|
13771
13784
|
queryClient.setQueryData('fetchcustomercart_API', cartarr);
|
|
@@ -13773,9 +13786,9 @@ var Checkout = function Checkout(props) {
|
|
|
13773
13786
|
// const cookies = new Cookies();
|
|
13774
13787
|
localStorage.setItem('cdata', data.data.cdata);
|
|
13775
13788
|
}
|
|
13776
|
-
if (sectionproperties.verifyemailandphone == 'Yes' && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
13789
|
+
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) {
|
|
13777
13790
|
NotificationManager.warning('', langdetect == 'en' ? 'Write your full name' : 'اكتب الاسم كاملا');
|
|
13778
|
-
} else if (sectionproperties.verifyemailandphone == 'Yes' && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
13791
|
+
} 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) {
|
|
13779
13792
|
NotificationManager.warning('', langdetect == 'en' ? 'Write valid mobile number' : 'اكتب رقم تليفون صحيح');
|
|
13780
13793
|
} else {
|
|
13781
13794
|
AddOrderMutationContext.mutate();
|
|
@@ -13806,7 +13819,7 @@ var Checkout = function Checkout(props) {
|
|
|
13806
13819
|
return isloading;
|
|
13807
13820
|
};
|
|
13808
13821
|
var Mycart = function Mycart() {
|
|
13809
|
-
var
|
|
13822
|
+
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;
|
|
13810
13823
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
13811
13824
|
className: "row m-0 w-100 mb-md-3"
|
|
13812
13825
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -13831,7 +13844,7 @@ var Checkout = function Checkout(props) {
|
|
|
13831
13844
|
className: "row m-0 w-100"
|
|
13832
13845
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
13833
13846
|
className: "col-lg-12 p-0"
|
|
13834
|
-
}, fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
13847
|
+
}, 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) {
|
|
13835
13848
|
if (item.product_extrafields != null) {
|
|
13836
13849
|
var product_extrafields = JSON.parse(item.product_extrafields);
|
|
13837
13850
|
// var product_extrafields_parsed = JSON.stringify(product_extrafields);
|
|
@@ -13960,13 +13973,13 @@ var Checkout = function Checkout(props) {
|
|
|
13960
13973
|
type: "text",
|
|
13961
13974
|
className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
|
|
13962
13975
|
placeholder: lang.giftcarddicountcode,
|
|
13963
|
-
value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
13976
|
+
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,
|
|
13964
13977
|
onChange: function onChange(event) {
|
|
13965
13978
|
var cartarr = queryClient.getQueryData('fetchcustomercart_API');
|
|
13966
13979
|
cartarr.data.customercart.couponname = event.target.value;
|
|
13967
13980
|
queryClient.setQueryData('fetchcustomercart_API', cartarr);
|
|
13968
13981
|
},
|
|
13969
|
-
disabled: fetchcustomercartQueryContext !== null && fetchcustomercartQueryContext !== void 0 && (
|
|
13982
|
+
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,
|
|
13970
13983
|
style: {
|
|
13971
13984
|
boxShadow: 'none'
|
|
13972
13985
|
}
|
|
@@ -13975,14 +13988,14 @@ var Checkout = function Checkout(props) {
|
|
|
13975
13988
|
}, /*#__PURE__*/React__default["default"].createElement("button", {
|
|
13976
13989
|
className: " ".concat(checkoutstyles.applybtnstyles),
|
|
13977
13990
|
onClick: function onClick() {
|
|
13978
|
-
var
|
|
13979
|
-
if (!(fetchcustomercartQueryContext !== null && fetchcustomercartQueryContext !== void 0 && (
|
|
13980
|
-
var
|
|
13991
|
+
var _fetchcustomercartQue37;
|
|
13992
|
+
if (!(fetchcustomercartQueryContext !== null && fetchcustomercartQueryContext !== void 0 && (_fetchcustomercartQue37 = fetchcustomercartQueryContext.data) !== null && _fetchcustomercartQue37 !== void 0 && (_fetchcustomercartQue37 = _fetchcustomercartQue37.data) !== null && _fetchcustomercartQue37 !== void 0 && _fetchcustomercartQue37.customercart.couponexists)) {
|
|
13993
|
+
var _fetchcustomercartQue38, _fetchcustomercartQue39;
|
|
13981
13994
|
var payloadobj = {
|
|
13982
|
-
couponname: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
13995
|
+
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,
|
|
13983
13996
|
functype: 'add'
|
|
13984
13997
|
};
|
|
13985
|
-
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
13998
|
+
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) {
|
|
13986
13999
|
ApplyPromoCodeMutationContext.mutate(payloadobj);
|
|
13987
14000
|
} else {
|
|
13988
14001
|
NotificationManager.warning('', langdetect == 'en' ? 'Please Write Your Promo Code' : 'من فضلك اكتب كود الخصم');
|
|
@@ -13997,14 +14010,14 @@ var Checkout = function Checkout(props) {
|
|
|
13997
14010
|
disabled: ApplyPromoCodeMutationContext.isLoading ? true : false
|
|
13998
14011
|
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
13999
14012
|
className: ApplyPromoCodeMutationContext.isLoading ? "".concat(generalstyles.fadeOutButton) : "".concat(generalstyles.fadeInButton)
|
|
14000
|
-
}, fetchcustomercartQueryContext !== null && fetchcustomercartQueryContext !== void 0 && (
|
|
14013
|
+
}, 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__default["default"].createElement("div", {
|
|
14001
14014
|
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 '
|
|
14002
14015
|
}, /*#__PURE__*/React__default["default"].createElement(reactCssfxLoading.CircularProgress, {
|
|
14003
14016
|
color: "#fff",
|
|
14004
14017
|
width: "20px",
|
|
14005
14018
|
height: "20px",
|
|
14006
14019
|
duration: "1s"
|
|
14007
|
-
})))))), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
14020
|
+
})))))), (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__default["default"].createElement("div", {
|
|
14008
14021
|
className: "row m-0 w-100"
|
|
14009
14022
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
14010
14023
|
className: "col-lg-6 col-md-6 col-sm-6 p-0"
|
|
@@ -14014,7 +14027,7 @@ var Checkout = function Checkout(props) {
|
|
|
14014
14027
|
className: "col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0"
|
|
14015
14028
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
14016
14029
|
className: langdetect == 'en' ? "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-right ' : "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-left '
|
|
14017
|
-
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', " ", fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
14030
|
+
}, 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__default["default"].createElement("div", {
|
|
14018
14031
|
className: "col-lg-12 col-md-12 col-sm-6 d-flex justify-content-center p-0"
|
|
14019
14032
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
14020
14033
|
style: {
|
|
@@ -14024,7 +14037,7 @@ var Checkout = function Checkout(props) {
|
|
|
14024
14037
|
onClick: function onClick() {
|
|
14025
14038
|
usewalletpoints();
|
|
14026
14039
|
}
|
|
14027
|
-
}, langdetect == 'en' ? 'Use Points' : 'إستخدام النقاط'))), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
14040
|
+
}, 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__default["default"].createElement("div", {
|
|
14028
14041
|
className: "row m-0 w-100"
|
|
14029
14042
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
14030
14043
|
className: "col-lg-12 col-md-12 col-sm-6 d-flex justify-content-center p-0"
|
|
@@ -14046,10 +14059,10 @@ var Checkout = function Checkout(props) {
|
|
|
14046
14059
|
className: "col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0"
|
|
14047
14060
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
14048
14061
|
className: langdetect == 'en' ? "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-right ' : "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-left '
|
|
14049
|
-
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', sectionproperties.removedecimals == 'Without Decimals' ? parseFloat(Number(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
14062
|
+
}, 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__default["default"].createElement("div", {
|
|
14050
14063
|
className: "row m-0 w-100"
|
|
14051
|
-
}, fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
14052
|
-
var
|
|
14064
|
+
}, 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) {
|
|
14065
|
+
var _fetchcustomercartQue50;
|
|
14053
14066
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
14054
14067
|
"class": "col-lg-12 p-0"
|
|
14055
14068
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -14068,8 +14081,8 @@ var Checkout = function Checkout(props) {
|
|
|
14068
14081
|
style: {
|
|
14069
14082
|
color: item.addsubtype == 'subtract' ? 'var(--danger)' : 'var(--success)'
|
|
14070
14083
|
}
|
|
14071
|
-
}, item.addsubtype == 'subtract' && /*#__PURE__*/React__default["default"].createElement("span", null, "-"), item.valuetype == 'value' && /*#__PURE__*/React__default["default"].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__default["default"].createElement("span", null, item.value, "% (", langdetect == 'en' ? authdetailsContext.currencyname_en : '', ' ', (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
14072
|
-
}))), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
14084
|
+
}, item.addsubtype == 'subtract' && /*#__PURE__*/React__default["default"].createElement("span", null, "-"), item.valuetype == 'value' && /*#__PURE__*/React__default["default"].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__default["default"].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 : '', ")")))));
|
|
14085
|
+
}))), (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__default["default"].createElement("div", {
|
|
14073
14086
|
className: "row m-0 w-100"
|
|
14074
14087
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
14075
14088
|
className: "col-lg-6 col-md-6 col-sm-6 p-0"
|
|
@@ -14082,7 +14095,7 @@ var Checkout = function Checkout(props) {
|
|
|
14082
14095
|
style: {
|
|
14083
14096
|
color: 'red'
|
|
14084
14097
|
}
|
|
14085
|
-
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', " -", ' ', parseFloat(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
14098
|
+
}, 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__default["default"].createElement("div", {
|
|
14086
14099
|
className: "col-lg-12 p-0 mb-1"
|
|
14087
14100
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
14088
14101
|
className: "row m-0 w-100"
|
|
@@ -14094,7 +14107,7 @@ var Checkout = function Checkout(props) {
|
|
|
14094
14107
|
className: "col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0"
|
|
14095
14108
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
14096
14109
|
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 '
|
|
14097
|
-
}, (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
14110
|
+
}, (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__default["default"].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__default["default"].createElement("span", null, "0"))))), sectionproperties.hideshipping == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
14098
14111
|
className: "col-lg-12 p-0"
|
|
14099
14112
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
14100
14113
|
className: "row m-0 w-100"
|
|
@@ -14102,11 +14115,11 @@ var Checkout = function Checkout(props) {
|
|
|
14102
14115
|
className: "col-lg-6 col-md-6 col-sm-6 p-0"
|
|
14103
14116
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
14104
14117
|
className: "".concat(checkoutstyles.summarysectionstyles, " ") + ' m-0 p-0 d-flex align-items-start wordbreak '
|
|
14105
|
-
}, langdetect == 'en' ? sectionproperties.shippingfeestitle_en : sectionproperties.shippingfeestitle_ar)), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
14118
|
+
}, 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__default["default"].createElement("div", {
|
|
14106
14119
|
className: "col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0"
|
|
14107
14120
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
14108
14121
|
className: langdetect == 'en' ? "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-right ' : "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-left '
|
|
14109
|
-
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', parseFloat(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
14122
|
+
}, 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__default["default"].createElement("div", {
|
|
14110
14123
|
className: "col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0"
|
|
14111
14124
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
14112
14125
|
className: "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 d-flex align-items-start wordbreak ',
|
|
@@ -14145,7 +14158,7 @@ var Checkout = function Checkout(props) {
|
|
|
14145
14158
|
textTransform: sectionproperties.total_texttransform,
|
|
14146
14159
|
color: sectionproperties.total_color
|
|
14147
14160
|
}
|
|
14148
|
-
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', sectionproperties.removedecimals == 'Without Decimals' ? parseFloat(Number(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
14161
|
+
}, 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__default["default"].createElement("div", {
|
|
14149
14162
|
"class": "col-lg-12 p-0 my-2 p-2 allcentered mb-3",
|
|
14150
14163
|
style: {
|
|
14151
14164
|
background: '#eee',
|
|
@@ -14180,7 +14193,7 @@ var Checkout = function Checkout(props) {
|
|
|
14180
14193
|
width: "20px",
|
|
14181
14194
|
height: "20px",
|
|
14182
14195
|
duration: "1s"
|
|
14183
|
-
}), !ischeckoutbuttonloading() ? (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
14196
|
+
}), !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__default["default"].createElement("div", {
|
|
14184
14197
|
className: "col-lg-12 d-flex align-items-center justify-content-center mt-4 p-0 mb-2 mt-sm-3",
|
|
14185
14198
|
style: {
|
|
14186
14199
|
marginTop: sectionproperties.showtotalsection == 'Show' ? 0 : '0.5rem'
|
|
@@ -14347,7 +14360,7 @@ var Checkout = function Checkout(props) {
|
|
|
14347
14360
|
}, lang.name), /*#__PURE__*/React__default["default"].createElement("input", {
|
|
14348
14361
|
type: 'text',
|
|
14349
14362
|
className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
|
|
14350
|
-
value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
14363
|
+
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,
|
|
14351
14364
|
onChange: function onChange(event) {
|
|
14352
14365
|
cartinfoupdater('name', event.target.value);
|
|
14353
14366
|
},
|
|
@@ -14362,7 +14375,7 @@ var Checkout = function Checkout(props) {
|
|
|
14362
14375
|
}, langdetect == 'en' ? 'Phone Number' : 'رقم الهاتف'), /*#__PURE__*/React__default["default"].createElement("input", {
|
|
14363
14376
|
type: 'text',
|
|
14364
14377
|
className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
|
|
14365
|
-
value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
14378
|
+
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,
|
|
14366
14379
|
onChange: function onChange(event) {
|
|
14367
14380
|
cartinfoupdater('mobile', event.target.value);
|
|
14368
14381
|
},
|
|
@@ -14385,7 +14398,7 @@ var Checkout = function Checkout(props) {
|
|
|
14385
14398
|
}, langdetect == 'en' ? 'Optional' : 'اختياري'), ' '), /*#__PURE__*/React__default["default"].createElement("input", {
|
|
14386
14399
|
type: 'text',
|
|
14387
14400
|
className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
|
|
14388
|
-
value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
14401
|
+
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,
|
|
14389
14402
|
onChange: function onChange(event) {
|
|
14390
14403
|
cartinfoupdater('email', event.target.value);
|
|
14391
14404
|
},
|
|
@@ -14438,8 +14451,8 @@ var Checkout = function Checkout(props) {
|
|
|
14438
14451
|
return option.id;
|
|
14439
14452
|
},
|
|
14440
14453
|
value: fetchTabexCountriesQueryContext.data.data.countries.filter(function (option) {
|
|
14441
|
-
var
|
|
14442
|
-
return option.id == (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
14454
|
+
var _fetchcustomercartQue68;
|
|
14455
|
+
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);
|
|
14443
14456
|
}),
|
|
14444
14457
|
onChange: function onChange(option) {
|
|
14445
14458
|
var tempFetchTabexStatesPayloadobjContext = _objectSpread$2t({}, FetchTabexStatesPayloadobjContext);
|
|
@@ -14493,12 +14506,12 @@ var Checkout = function Checkout(props) {
|
|
|
14493
14506
|
return option.id;
|
|
14494
14507
|
},
|
|
14495
14508
|
value: fetchTabexStatesQueryContext.data.data.states.filter(function (option) {
|
|
14496
|
-
var
|
|
14497
|
-
return option.id == (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
14509
|
+
var _fetchcustomercartQue69;
|
|
14510
|
+
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);
|
|
14498
14511
|
}),
|
|
14499
14512
|
onChange: function onChange(option) {
|
|
14500
|
-
var
|
|
14501
|
-
if (option.id.length != 0 && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
14513
|
+
var _fetchcustomercartQue70;
|
|
14514
|
+
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) {
|
|
14502
14515
|
var tempFetchTabexStatesPayloadobjContext = _objectSpread$2t({}, FetchTabexStatesPayloadobjContext);
|
|
14503
14516
|
tempFetchTabexStatesPayloadobjContext.functype = 'cities';
|
|
14504
14517
|
tempFetchTabexStatesPayloadobjContext.state_id = option.id;
|
|
@@ -14550,11 +14563,15 @@ var Checkout = function Checkout(props) {
|
|
|
14550
14563
|
return option.id;
|
|
14551
14564
|
},
|
|
14552
14565
|
value: fetchTabexCitiesQueryContext.data.data.cities.filter(function (option) {
|
|
14553
|
-
var
|
|
14554
|
-
return option.id == (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
14566
|
+
var _fetchcustomercartQue71;
|
|
14567
|
+
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);
|
|
14555
14568
|
}),
|
|
14556
14569
|
onChange: function onChange(option) {
|
|
14570
|
+
var _fetchcustomercartQue72;
|
|
14557
14571
|
cartinfoupdater('cityid', option.id);
|
|
14572
|
+
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) {
|
|
14573
|
+
setshowpopup(true);
|
|
14574
|
+
}
|
|
14558
14575
|
},
|
|
14559
14576
|
styles: langdetect == 'en' ? defaultstyles : defaultstylestranslated,
|
|
14560
14577
|
placeholder: '',
|
|
@@ -14571,7 +14588,7 @@ var Checkout = function Checkout(props) {
|
|
|
14571
14588
|
}, "*")), /*#__PURE__*/React__default["default"].createElement(TextareaAutosize__default["default"], {
|
|
14572
14589
|
type: 'text',
|
|
14573
14590
|
className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
|
|
14574
|
-
value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
14591
|
+
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,
|
|
14575
14592
|
onChange: function onChange(event) {
|
|
14576
14593
|
cartinfoupdater('address', event.target.value);
|
|
14577
14594
|
},
|
|
@@ -14586,7 +14603,7 @@ var Checkout = function Checkout(props) {
|
|
|
14586
14603
|
}, langdetect == 'en' ? sectionproperties.notesinen : sectionproperties.notesinar), /*#__PURE__*/React__default["default"].createElement(TextareaAutosize__default["default"], {
|
|
14587
14604
|
type: 'text',
|
|
14588
14605
|
className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
|
|
14589
|
-
value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
14606
|
+
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,
|
|
14590
14607
|
onChange: function onChange(event) {
|
|
14591
14608
|
cartinfoupdater('notes', event.target.value);
|
|
14592
14609
|
},
|
|
@@ -14601,7 +14618,7 @@ var Checkout = function Checkout(props) {
|
|
|
14601
14618
|
}, langdetect == 'en' ? 'Affiliate code' : 'رمز المسوق'), /*#__PURE__*/React__default["default"].createElement("input", {
|
|
14602
14619
|
type: 'number',
|
|
14603
14620
|
className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
|
|
14604
|
-
value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
14621
|
+
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,
|
|
14605
14622
|
onChange: function onChange(event) {
|
|
14606
14623
|
cartinfoupdater('aff_code', event.target.value);
|
|
14607
14624
|
},
|
|
@@ -14635,7 +14652,7 @@ var Checkout = function Checkout(props) {
|
|
|
14635
14652
|
onChange: function onChange(event) {
|
|
14636
14653
|
cartinfoupdater('shippingmethod_id', event.target.value);
|
|
14637
14654
|
},
|
|
14638
|
-
value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
14655
|
+
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
|
|
14639
14656
|
}, /*#__PURE__*/React__default["default"].createElement("option", {
|
|
14640
14657
|
value: null
|
|
14641
14658
|
}, langdetect == 'en' ? 'Choose Shipping Method' : 'الشحن اخنر طريقة'), shippingmethods === null || shippingmethods === void 0 ? void 0 : shippingmethods.map(function (item, index) {
|
|
@@ -14729,10 +14746,10 @@ var Checkout = function Checkout(props) {
|
|
|
14729
14746
|
id: 'codcheckbox',
|
|
14730
14747
|
type: "checkbox",
|
|
14731
14748
|
className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
|
|
14732
|
-
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
14749
|
+
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,
|
|
14733
14750
|
onChange: function onChange() {
|
|
14734
|
-
var
|
|
14735
|
-
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
14751
|
+
var _fetchcustomercartQue78;
|
|
14752
|
+
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') {
|
|
14736
14753
|
cartinfoupdater('paymentmethod', 'cod');
|
|
14737
14754
|
setinstapaychosen(false);
|
|
14738
14755
|
}
|
|
@@ -14756,10 +14773,10 @@ var Checkout = function Checkout(props) {
|
|
|
14756
14773
|
id: 'codcheckbox',
|
|
14757
14774
|
type: "checkbox",
|
|
14758
14775
|
className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
|
|
14759
|
-
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
14776
|
+
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,
|
|
14760
14777
|
onChange: function onChange() {
|
|
14761
|
-
var
|
|
14762
|
-
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
14778
|
+
var _fetchcustomercartQue80;
|
|
14779
|
+
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') {
|
|
14763
14780
|
cartinfoupdater('paymentmethod', 'instapay');
|
|
14764
14781
|
setinstapaychosen(true);
|
|
14765
14782
|
// alert('1');
|
|
@@ -14782,10 +14799,10 @@ var Checkout = function Checkout(props) {
|
|
|
14782
14799
|
}, /*#__PURE__*/React__default["default"].createElement("input", {
|
|
14783
14800
|
type: "checkbox",
|
|
14784
14801
|
className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
|
|
14785
|
-
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
14802
|
+
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,
|
|
14786
14803
|
onChange: function onChange() {
|
|
14787
|
-
var
|
|
14788
|
-
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
14804
|
+
var _fetchcustomercartQue82;
|
|
14805
|
+
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') {
|
|
14789
14806
|
cartinfoupdater('paymentmethod', 'cardondelivery');
|
|
14790
14807
|
setinstapaychosen(false);
|
|
14791
14808
|
}
|
|
@@ -14804,10 +14821,10 @@ var Checkout = function Checkout(props) {
|
|
|
14804
14821
|
}, /*#__PURE__*/React__default["default"].createElement("input", {
|
|
14805
14822
|
type: "checkbox",
|
|
14806
14823
|
className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
|
|
14807
|
-
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
14824
|
+
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,
|
|
14808
14825
|
onChange: function onChange() {
|
|
14809
|
-
var
|
|
14810
|
-
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
14826
|
+
var _fetchcustomercartQue84;
|
|
14827
|
+
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') {
|
|
14811
14828
|
cartinfoupdater('paymentmethod', 'onlinepayment');
|
|
14812
14829
|
setinstapaychosen(false);
|
|
14813
14830
|
}
|
|
@@ -14826,10 +14843,10 @@ var Checkout = function Checkout(props) {
|
|
|
14826
14843
|
}, /*#__PURE__*/React__default["default"].createElement("input", {
|
|
14827
14844
|
type: "checkbox",
|
|
14828
14845
|
className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
|
|
14829
|
-
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
14846
|
+
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,
|
|
14830
14847
|
onChange: function onChange() {
|
|
14831
|
-
var
|
|
14832
|
-
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
14848
|
+
var _fetchcustomercartQue86;
|
|
14849
|
+
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') {
|
|
14833
14850
|
cartinfoupdater('paymentmethod', 'valU');
|
|
14834
14851
|
setinstapaychosen(false);
|
|
14835
14852
|
}
|
|
@@ -14848,10 +14865,10 @@ var Checkout = function Checkout(props) {
|
|
|
14848
14865
|
}, /*#__PURE__*/React__default["default"].createElement("input", {
|
|
14849
14866
|
type: "checkbox",
|
|
14850
14867
|
className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
|
|
14851
|
-
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
14868
|
+
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,
|
|
14852
14869
|
onChange: function onChange() {
|
|
14853
|
-
var
|
|
14854
|
-
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
14870
|
+
var _fetchcustomercartQue88;
|
|
14871
|
+
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') {
|
|
14855
14872
|
cartinfoupdater('paymentmethod', 'mobilewallet');
|
|
14856
14873
|
setinstapaychosen(false);
|
|
14857
14874
|
}
|
|
@@ -14870,10 +14887,10 @@ var Checkout = function Checkout(props) {
|
|
|
14870
14887
|
}, /*#__PURE__*/React__default["default"].createElement("input", {
|
|
14871
14888
|
type: "checkbox",
|
|
14872
14889
|
className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
|
|
14873
|
-
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
14890
|
+
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,
|
|
14874
14891
|
onChange: function onChange() {
|
|
14875
|
-
var
|
|
14876
|
-
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
14892
|
+
var _fetchcustomercartQue90;
|
|
14893
|
+
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') {
|
|
14877
14894
|
cartinfoupdater('paymentmethod', 'forsa');
|
|
14878
14895
|
setinstapaychosen(false);
|
|
14879
14896
|
}
|
|
@@ -14892,10 +14909,10 @@ var Checkout = function Checkout(props) {
|
|
|
14892
14909
|
}, /*#__PURE__*/React__default["default"].createElement("input", {
|
|
14893
14910
|
type: "checkbox",
|
|
14894
14911
|
className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
|
|
14895
|
-
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
14912
|
+
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,
|
|
14896
14913
|
onChange: function onChange() {
|
|
14897
|
-
var
|
|
14898
|
-
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
14914
|
+
var _fetchcustomercartQue92;
|
|
14915
|
+
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') {
|
|
14899
14916
|
cartinfoupdater('paymentmethod', 'Souhoola');
|
|
14900
14917
|
setinstapaychosen(false);
|
|
14901
14918
|
}
|
|
@@ -14914,10 +14931,10 @@ var Checkout = function Checkout(props) {
|
|
|
14914
14931
|
}, /*#__PURE__*/React__default["default"].createElement("input", {
|
|
14915
14932
|
type: "checkbox",
|
|
14916
14933
|
className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
|
|
14917
|
-
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
14934
|
+
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,
|
|
14918
14935
|
onChange: function onChange() {
|
|
14919
|
-
var
|
|
14920
|
-
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
14936
|
+
var _fetchcustomercartQue94;
|
|
14937
|
+
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') {
|
|
14921
14938
|
cartinfoupdater('paymentmethod', 'paypal');
|
|
14922
14939
|
setinstapaychosen(false);
|
|
14923
14940
|
}
|
|
@@ -14936,10 +14953,10 @@ var Checkout = function Checkout(props) {
|
|
|
14936
14953
|
}, /*#__PURE__*/React__default["default"].createElement("input", {
|
|
14937
14954
|
type: "checkbox",
|
|
14938
14955
|
className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
|
|
14939
|
-
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
14956
|
+
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,
|
|
14940
14957
|
onChange: function onChange() {
|
|
14941
|
-
var
|
|
14942
|
-
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
14958
|
+
var _fetchcustomercartQue96;
|
|
14959
|
+
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') {
|
|
14943
14960
|
cartinfoupdater('paymentmethod', 'bankinstallments');
|
|
14944
14961
|
setinstapaychosen(false);
|
|
14945
14962
|
}
|
|
@@ -14958,10 +14975,10 @@ var Checkout = function Checkout(props) {
|
|
|
14958
14975
|
}, /*#__PURE__*/React__default["default"].createElement("input", {
|
|
14959
14976
|
type: "checkbox",
|
|
14960
14977
|
className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
|
|
14961
|
-
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
14978
|
+
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,
|
|
14962
14979
|
onChange: function onChange() {
|
|
14963
|
-
var
|
|
14964
|
-
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
14980
|
+
var _fetchcustomercartQue98;
|
|
14981
|
+
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') {
|
|
14965
14982
|
cartinfoupdater('paymentmethod', 'Aman');
|
|
14966
14983
|
setinstapaychosen(false);
|
|
14967
14984
|
}
|
|
@@ -14991,7 +15008,7 @@ var Checkout = function Checkout(props) {
|
|
|
14991
15008
|
color: '#000',
|
|
14992
15009
|
fontSize: 16
|
|
14993
15010
|
}
|
|
14994
|
-
}, 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 || (
|
|
15011
|
+
}, 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__default["default"].createElement("div", {
|
|
14995
15012
|
className: "col-lg-12 p-0 w-100 mb-3"
|
|
14996
15013
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
14997
15014
|
style: {
|
|
@@ -15093,7 +15110,45 @@ var Checkout = function Checkout(props) {
|
|
|
15093
15110
|
}
|
|
15094
15111
|
})))))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15095
15112
|
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'
|
|
15096
|
-
}, Mycart()))))
|
|
15113
|
+
}, Mycart())))), /*#__PURE__*/React__default["default"].createElement(reactBootstrap.Modal, {
|
|
15114
|
+
show: showpopup,
|
|
15115
|
+
onHide: function onHide() {
|
|
15116
|
+
setshowpopup(false);
|
|
15117
|
+
},
|
|
15118
|
+
centered: true,
|
|
15119
|
+
size: 'md'
|
|
15120
|
+
}, /*#__PURE__*/React__default["default"].createElement(reactBootstrap.Modal.Body, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15121
|
+
className: "allcentered bgdanger-hover cursor-pointer",
|
|
15122
|
+
onClick: function onClick() {
|
|
15123
|
+
setshowpopup(false);
|
|
15124
|
+
},
|
|
15125
|
+
style: {
|
|
15126
|
+
position: 'absolute',
|
|
15127
|
+
top: -40,
|
|
15128
|
+
backgroundColor: '#000',
|
|
15129
|
+
width: 35,
|
|
15130
|
+
height: 35,
|
|
15131
|
+
right: 0
|
|
15132
|
+
}
|
|
15133
|
+
}, /*#__PURE__*/React__default["default"].createElement("i", {
|
|
15134
|
+
"class": "h-100 allcentered text-black"
|
|
15135
|
+
}, /*#__PURE__*/React__default["default"].createElement(IoMdClose.IoMdClose, {
|
|
15136
|
+
size: 20,
|
|
15137
|
+
"class": "",
|
|
15138
|
+
color: '#fff'
|
|
15139
|
+
}))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15140
|
+
"class": "row m-0 w-100 py-4",
|
|
15141
|
+
style: {}
|
|
15142
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15143
|
+
"class": "col-lg-12 allcentered py-4"
|
|
15144
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
15145
|
+
"class": "m-0 p-0",
|
|
15146
|
+
style: {
|
|
15147
|
+
fontSize: 20,
|
|
15148
|
+
color: '#000',
|
|
15149
|
+
textAlign: 'center'
|
|
15150
|
+
}
|
|
15151
|
+
}, 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__default["default"].createElement(reactBootstrap.Modal.Footer, null)));
|
|
15097
15152
|
};
|
|
15098
15153
|
|
|
15099
15154
|
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; }
|
|
@@ -89290,7 +89345,7 @@ var Variants_J_Cards = function Variants_J_Cards(props) {
|
|
|
89290
89345
|
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; }
|
|
89291
89346
|
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__default["default"](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; }
|
|
89292
89347
|
var Simpleproductcard = function Simpleproductcard(props) {
|
|
89293
|
-
var _item$producttags, _item$producttags$,
|
|
89348
|
+
var _item$producttags, _authdetailsContext$i3, _item$producttags$, _item$producttags2, _authdetailsContext$i4, _item$producttags$2, _authdetailsContext$i5, _authdetailsContext$i6, _authdetailsContext$i7;
|
|
89294
89349
|
var _useState = React.useState(''),
|
|
89295
89350
|
_useState2 = _slicedToArray__default["default"](_useState, 2),
|
|
89296
89351
|
sectionproperties = _useState2[0],
|
|
@@ -89988,7 +90043,7 @@ var Simpleproductcard = function Simpleproductcard(props) {
|
|
|
89988
90043
|
// right: langdetect == 'en' ? '' : sectionproperties.pillpositionfromright + 'px',
|
|
89989
90044
|
zIndex: 3
|
|
89990
90045
|
}
|
|
89991
|
-
}, 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__default["default"].createElement("div", {
|
|
90046
|
+
}, 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__default["default"].createElement("div", {
|
|
89992
90047
|
"class": "allcentered",
|
|
89993
90048
|
style: {
|
|
89994
90049
|
position: 'absolute',
|
|
@@ -90110,7 +90165,24 @@ var Simpleproductcard = function Simpleproductcard(props) {
|
|
|
90110
90165
|
style: {
|
|
90111
90166
|
textAlign: sectionproperties.productnamecentered == 'Centered' ? 'center' : langdetect == 'en' ? 'left' : 'right'
|
|
90112
90167
|
}
|
|
90113
|
-
}, item.name)), sectionproperties.
|
|
90168
|
+
}, 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__default["default"].createElement("div", {
|
|
90169
|
+
"class": "allcentered",
|
|
90170
|
+
style: {
|
|
90171
|
+
width: '100%',
|
|
90172
|
+
left: 0,
|
|
90173
|
+
right: 0,
|
|
90174
|
+
zIndex: 100
|
|
90175
|
+
}
|
|
90176
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
90177
|
+
"class": "px-3 py-1",
|
|
90178
|
+
style: {
|
|
90179
|
+
width: 'fit-content',
|
|
90180
|
+
background: sectionproperties.tagbackgroundcolor,
|
|
90181
|
+
borderRadius: sectionproperties.tagborderradius + 'px',
|
|
90182
|
+
color: sectionproperties.tagcolor,
|
|
90183
|
+
fontSize: 12
|
|
90184
|
+
}
|
|
90185
|
+
}, "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__default["default"].createElement("div", {
|
|
90114
90186
|
"class": "col-lg-12 pl-0 pr-0",
|
|
90115
90187
|
style: {}
|
|
90116
90188
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
@@ -90211,7 +90283,7 @@ var Simpleproductcard = function Simpleproductcard(props) {
|
|
|
90211
90283
|
color: sectionproperties.quantitycolor,
|
|
90212
90284
|
fontWeight: sectionproperties.quantityfontweight
|
|
90213
90285
|
}
|
|
90214
|
-
}, langdetect == 'en' ? sectionproperties.qtytextinen : sectionproperties.qtytextinar, " ", item.currentquantity, ' ', langdetect == 'en' ? sectionproperties.qtytextinen2 : sectionproperties.qtytextinar2)), sectionproperties.cartBtnShow == 'Show' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
90286
|
+
}, 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__default["default"].createElement("div", {
|
|
90215
90287
|
"class": "col-lg-12 p-0 d-flex align-items-center",
|
|
90216
90288
|
style: {
|
|
90217
90289
|
justifyContent: sectionproperties.productnamecentered == 'Centered' ? 'center' : 'start'
|
|
@@ -90236,7 +90308,7 @@ var Simpleproductcard = function Simpleproductcard(props) {
|
|
|
90236
90308
|
}
|
|
90237
90309
|
}
|
|
90238
90310
|
}
|
|
90239
|
-
}, addtocartbuttonrender())), sectionproperties.cartBtnShow == 'Show' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
90311
|
+
}, 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__default["default"].createElement("div", {
|
|
90240
90312
|
"class": "col-lg-12 p-0 d-flex align-items-center",
|
|
90241
90313
|
style: {
|
|
90242
90314
|
justifyContent: sectionproperties.productnamecentered == 'Centered' ? 'center' : 'start'
|
|
@@ -90246,7 +90318,7 @@ var Simpleproductcard = function Simpleproductcard(props) {
|
|
|
90246
90318
|
onClick: function onClick() {
|
|
90247
90319
|
setshowquantity(true);
|
|
90248
90320
|
}
|
|
90249
|
-
}, addtocartbuttonrender())), showquantity == true && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
90321
|
+
}, 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__default["default"].createElement("div", {
|
|
90250
90322
|
"class": "col-lg-12 p-0 d-flex align-items-center allcentered"
|
|
90251
90323
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
90252
90324
|
"class": "".concat(card_cssstyles.quantitybtn) + ' p-0 d-flex align-items-center justify-content-center ',
|