tabexseriescomponents 0.0.299 → 0.0.301
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 +235 -83
- package/dist/index.esm.js +235 -83
- package/dist/index.umd.js +235 -83
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -1325,6 +1325,7 @@
|
|
|
1325
1325
|
|
|
1326
1326
|
//productidprops
|
|
1327
1327
|
var ProductHeaderPricing = function ProductHeaderPricing(props) {
|
|
1328
|
+
var _fetchProductInfoQuer, _fetchProductInfoQuer2, _fetchProductInfoQuer3, _fetchProductInfoQuer4, _fetchProductInfoQuer5, _fetchProductInfoQuer6;
|
|
1328
1329
|
props.actions.lang;
|
|
1329
1330
|
var langdetect = props.actions.langdetect;
|
|
1330
1331
|
var fetchProductInfoQueryContext = props.actions.fetchProductInfoQueryContext;
|
|
@@ -1333,19 +1334,7 @@
|
|
|
1333
1334
|
var variantindexcompleted = props.actions.variantindexcompleted;
|
|
1334
1335
|
var getprice_discountpriceprops = props.actions.getprice_discountpriceprops;
|
|
1335
1336
|
var quantityconditionfoundobjprops = props.actions.quantityconditionfoundobjprops;
|
|
1336
|
-
var productinfo_cssstyles =
|
|
1337
|
-
profitcontainer: glamor.css({
|
|
1338
|
-
width: sectionproperties.profitcontainerwidth + '%',
|
|
1339
|
-
height: sectionproperties.profitcontainerheight + 'px',
|
|
1340
|
-
background: sectionproperties.profitcontainerbgcolor,
|
|
1341
|
-
border: sectionproperties.profitcontainerborderwidth + 'px solid' + sectionproperties.profitcontainerbordercolor,
|
|
1342
|
-
borderRadius: sectionproperties.profitcontainerborderradius + 'px',
|
|
1343
|
-
color: sectionproperties.profitcontainercolor,
|
|
1344
|
-
'@media (max-width: 800px)': {
|
|
1345
|
-
width: '90%'
|
|
1346
|
-
}
|
|
1347
|
-
})
|
|
1348
|
-
};
|
|
1337
|
+
var productinfo_cssstyles = props.actions.productinfo_cssstyles;
|
|
1349
1338
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1350
1339
|
"class": "col-lg-12 p-0"
|
|
1351
1340
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -1427,7 +1416,21 @@
|
|
|
1427
1416
|
fontSize: '13px',
|
|
1428
1417
|
lineHeight: '25px'
|
|
1429
1418
|
}
|
|
1430
|
-
}, '-' + parseFloat(Math.round(10.0 * ((parseFloat(getprice_discountpriceprops('defaultprice', 0, variantindexcompleted)) - parseFloat(getprice_discountpriceprops('defaultsaleprice', 0, variantindexcompleted))) / parseFloat(getprice_discountpriceprops('defaultprice', 0, variantindexcompleted))) * 100) / 10.0).toFixed(0) + '%'))))), sectionproperties.
|
|
1419
|
+
}, '-' + parseFloat(Math.round(10.0 * ((parseFloat(getprice_discountpriceprops('defaultprice', 0, variantindexcompleted)) - parseFloat(getprice_discountpriceprops('defaultsaleprice', 0, variantindexcompleted))) / parseFloat(getprice_discountpriceprops('defaultprice', 0, variantindexcompleted))) * 100) / 10.0).toFixed(0) + '%'))))), sectionproperties.showcashbackcontainer == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer === void 0 ? void 0 : (_fetchProductInfoQuer2 = _fetchProductInfoQuer.data) === null || _fetchProductInfoQuer2 === void 0 ? void 0 : (_fetchProductInfoQuer3 = _fetchProductInfoQuer2.productinfo) === null || _fetchProductInfoQuer3 === void 0 ? void 0 : _fetchProductInfoQuer3.productcashbackvalue) > 0 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1420
|
+
"class": "col-lg-12 p-0 d-flex justify-content-start mt-1 mb-2"
|
|
1421
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1422
|
+
"class": "".concat(productinfo_cssstyles.cashbackoutercontainer) + ' d-flex flex-row allcentered px-2 '
|
|
1423
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
1424
|
+
"class": "m-0 p-0",
|
|
1425
|
+
style: {
|
|
1426
|
+
fontWeight: 500
|
|
1427
|
+
}
|
|
1428
|
+
}, langdetect == 'en' ? sectionproperties.cashbackcontainercontenten : sectionproperties.cashbackcontainercontentar), /*#__PURE__*/React__default["default"].createElement("p", {
|
|
1429
|
+
"class": "m-0 p-0 mx-1",
|
|
1430
|
+
style: {
|
|
1431
|
+
fontWeight: 600
|
|
1432
|
+
}
|
|
1433
|
+
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', " ", fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer4 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer4 === void 0 ? void 0 : (_fetchProductInfoQuer5 = _fetchProductInfoQuer4.data) === null || _fetchProductInfoQuer5 === void 0 ? void 0 : (_fetchProductInfoQuer6 = _fetchProductInfoQuer5.productinfo) === null || _fetchProductInfoQuer6 === void 0 ? void 0 : _fetchProductInfoQuer6.productcashbackvalue, ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar))), sectionproperties.showprofitcontainer == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1431
1434
|
"class": "col-lg-12 p-0 mb-2"
|
|
1432
1435
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1433
1436
|
"class": productinfo_cssstyles.profitcontainer + ' allcentered '
|
|
@@ -1611,7 +1614,7 @@
|
|
|
1611
1614
|
function ownKeys$28(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
1612
1615
|
function _objectSpread$28(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$28(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$28(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
1613
1616
|
var Product_itemtype = function Product_itemtype(props) {
|
|
1614
|
-
var _fetchProductInfoQuer, _fetchProductInfoQuer2, _fetchProductInfoQuer3, _fetchProductInfoQuer4, _fetchProductInfoQuer5, _fetchProductInfoQuer6, _fetchProductInfoQuer7, _fetchProductInfoQuer8, _fetchProductInfoQuer9, _fetchProductInfoQuer10, _fetchProductInfoQuer11, _fetchProductInfoQuer12, _fetchProductInfoQuer13, _fetchProductInfoQuer14, _fetchProductInfoQuer15, _fetchProductInfoQuer16, _fetchProductInfoQuer17, _fetchProductInfoQuer18, _fetchProductInfoQuer19, _fetchProductInfoQuer20, _fetchProductInfoQuer21, _fetchProductInfoQuer22, _fetchProductInfoQuer23, _fetchProductInfoQuer24, _fetchProductInfoQuer25, _fetchProductInfoQuer26, _fetchProductInfoQuer27, _fetchProductInfoQuer28, _fetchProductInfoQuer29, _fetchProductInfoQuer30, _fetchProductInfoQuer31, _fetchProductInfoQuer32, _fetchProductInfoQuer33, _fetchProductInfoQuer34,
|
|
1617
|
+
var _fetchProductInfoQuer, _fetchProductInfoQuer2, _fetchProductInfoQuer3, _fetchProductInfoQuer4, _fetchProductInfoQuer5, _fetchProductInfoQuer6, _fetchProductInfoQuer7, _fetchProductInfoQuer8, _fetchProductInfoQuer9, _fetchProductInfoQuer10, _fetchProductInfoQuer11, _fetchProductInfoQuer12, _fetchProductInfoQuer13, _fetchProductInfoQuer14, _fetchProductInfoQuer15, _fetchProductInfoQuer16, _fetchProductInfoQuer17, _fetchProductInfoQuer18, _fetchProductInfoQuer19, _fetchProductInfoQuer20, _fetchProductInfoQuer21, _fetchProductInfoQuer22, _fetchProductInfoQuer23, _fetchProductInfoQuer24, _fetchProductInfoQuer25, _fetchProductInfoQuer26, _fetchProductInfoQuer27, _fetchProductInfoQuer28, _fetchProductInfoQuer29, _fetchProductInfoQuer30, _fetchProductInfoQuer31, _fetchProductInfoQuer32, _fetchProductInfoQuer33, _fetchProductInfoQuer34, _fetchProductInfoQuer35, _fetchProductInfoQuer36, _fetchProductInfoQuer37, _fetchProductInfoQuer38, _fetchProductInfoQuer39, _fetchProductInfoQuer40, _fetchProductInfoQuer41, _fetchProductInfoQuer42, _fetchProductInfoQuer43, _ProductInfoObj$data, _ProductInfoObj$data$, _ProductInfoObj$data$2, _fetchProductInfoQuer44, _fetchProductInfoQuer45, _fetchProductInfoQuer46, _fetchProductInfoQuer47, _fetchProductInfoQuer48, _fetchProductInfoQuer49, _fetchProductInfoQuer50, _fetchProductInfoQuer51, _fetchProductInfoQuer52, _fetchProductInfoQuer53, _fetchProductInfoQuer54, _fetchProductInfoQuer55, _fetchProductInfoQuer56, _fetchProductInfoQuer57, _fetchProductInfoQuer58, _fetchProductInfoQuer59, _fetchProductInfoQuer60, _fetchProductInfoQuer61, _fetchProductInfoQuer62, _fetchProductInfoQuer63, _fetchProductInfoQuer64, _fetchProductInfoQuer65, _fetchProductInfoQuer66, _fetchProductInfoQuer67;
|
|
1615
1618
|
var lang = props.actions.lang;
|
|
1616
1619
|
var langdetect = props.actions.langdetect;
|
|
1617
1620
|
var srcfromprops = props.actions.srcfromprops;
|
|
@@ -1707,7 +1710,7 @@
|
|
|
1707
1710
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1708
1711
|
className: "col-xl-5 col-lg-4 col-md-12 col-sm-12 mb-md-3 pb-md-4 pl-1 pr-1"
|
|
1709
1712
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1710
|
-
className: sectionproperties.maximizegalleryfullscreen == 'Yes' ? 'col-lg-12 p-0 maximize' : 'col-lg-12 p-0',
|
|
1713
|
+
className: sectionproperties.maximizegalleryfullscreen == 'Yes' ? ' col-lg-12 p-0 maximize ' : 'col-lg-12 p-0',
|
|
1711
1714
|
style: {
|
|
1712
1715
|
width: '100%',
|
|
1713
1716
|
height: 'auto'
|
|
@@ -1846,7 +1849,13 @@
|
|
|
1846
1849
|
fontSize: sectionproperties.skuFontSize + 'px',
|
|
1847
1850
|
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
1848
1851
|
}
|
|
1849
|
-
}, fetchProductInfoQueryContext.data.data.productinfo.sku))), sectionproperties.
|
|
1852
|
+
}, fetchProductInfoQueryContext.data.data.productinfo.sku))), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer23 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer23 === void 0 ? void 0 : (_fetchProductInfoQuer24 = _fetchProductInfoQuer23.data) === null || _fetchProductInfoQuer24 === void 0 ? void 0 : (_fetchProductInfoQuer25 = _fetchProductInfoQuer24.productinfo) === null || _fetchProductInfoQuer25 === void 0 ? void 0 : _fetchProductInfoQuer25.currentquantity) < 1 && sectionproperties.showoutofstock == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer26 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer26 === void 0 ? void 0 : (_fetchProductInfoQuer27 = _fetchProductInfoQuer26.data) === null || _fetchProductInfoQuer27 === void 0 ? void 0 : (_fetchProductInfoQuer28 = _fetchProductInfoQuer27.productinfo) === null || _fetchProductInfoQuer28 === void 0 ? void 0 : _fetchProductInfoQuer28.quantavailtype) == 'limit' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer29 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer29 === void 0 ? void 0 : (_fetchProductInfoQuer30 = _fetchProductInfoQuer29.data) === null || _fetchProductInfoQuer30 === void 0 ? void 0 : (_fetchProductInfoQuer31 = _fetchProductInfoQuer30.productinfo) === null || _fetchProductInfoQuer31 === void 0 ? void 0 : _fetchProductInfoQuer31.hasvariants) == 0 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1853
|
+
"class": "col-lg-12 p-0 d-flex justify-content-start mb-2"
|
|
1854
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1855
|
+
"class": "".concat(productinfo_cssstyles.outstockbadge) + ' allcentered '
|
|
1856
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
1857
|
+
"class": "m-0 p-0"
|
|
1858
|
+
}, langdetect == 'en' ? sectionproperties.outstock_contenten : sectionproperties.outstock_contentar))), sectionproperties.deliverytimeshow == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer32 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer32 === void 0 ? void 0 : (_fetchProductInfoQuer33 = _fetchProductInfoQuer32.data) === null || _fetchProductInfoQuer33 === void 0 ? void 0 : (_fetchProductInfoQuer34 = _fetchProductInfoQuer33.productinfo) === null || _fetchProductInfoQuer34 === void 0 ? void 0 : _fetchProductInfoQuer34.deliverydatetext) != null && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1850
1859
|
"class": "mb-4 col-lg-12",
|
|
1851
1860
|
style: {
|
|
1852
1861
|
width: '100%',
|
|
@@ -1866,9 +1875,9 @@
|
|
|
1866
1875
|
style: {
|
|
1867
1876
|
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
1868
1877
|
}
|
|
1869
|
-
}, langdetect == 'en' ? 'Delivery Time' : 'مدة الشحن', ": ", fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (
|
|
1878
|
+
}, langdetect == 'en' ? 'Delivery Time' : 'مدة الشحن', ": ", fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer35 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer35 === void 0 ? void 0 : (_fetchProductInfoQuer36 = _fetchProductInfoQuer35.data) === null || _fetchProductInfoQuer36 === void 0 ? void 0 : (_fetchProductInfoQuer37 = _fetchProductInfoQuer36.productinfo) === null || _fetchProductInfoQuer37 === void 0 ? void 0 : _fetchProductInfoQuer37.deliverydatetext)), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer38 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer38 === void 0 ? void 0 : (_fetchProductInfoQuer39 = _fetchProductInfoQuer38.data) === null || _fetchProductInfoQuer39 === void 0 ? void 0 : (_fetchProductInfoQuer40 = _fetchProductInfoQuer39.productinfo) === null || _fetchProductInfoQuer40 === void 0 ? void 0 : _fetchProductInfoQuer40.isproducttobesold) == 1 && /*#__PURE__*/React__default["default"].createElement(ProductHeaderPricing, {
|
|
1870
1879
|
actions: props.actions
|
|
1871
|
-
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (
|
|
1880
|
+
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer41 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer41 === void 0 ? void 0 : (_fetchProductInfoQuer42 = _fetchProductInfoQuer41.data) === null || _fetchProductInfoQuer42 === void 0 ? void 0 : (_fetchProductInfoQuer43 = _fetchProductInfoQuer42.productinfo) === null || _fetchProductInfoQuer43 === void 0 ? void 0 : _fetchProductInfoQuer43.hasvariants) == 1 && sectionproperties.productInformationType == 'Profile' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1872
1881
|
className: "row m-0 w-100 d-flex align-items-start"
|
|
1873
1882
|
}, ProductInfoObj === null || ProductInfoObj === void 0 ? void 0 : (_ProductInfoObj$data = ProductInfoObj.data) === null || _ProductInfoObj$data === void 0 ? void 0 : (_ProductInfoObj$data$ = _ProductInfoObj$data.productinfo) === null || _ProductInfoObj$data$ === void 0 ? void 0 : (_ProductInfoObj$data$2 = _ProductInfoObj$data$.productoptions) === null || _ProductInfoObj$data$2 === void 0 ? void 0 : _ProductInfoObj$data$2.map(function (item, index) {
|
|
1874
1883
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -1943,7 +1952,7 @@
|
|
|
1943
1952
|
}
|
|
1944
1953
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1945
1954
|
className: "row m-0 w-100 d-flex align-items-center"
|
|
1946
|
-
}, (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (
|
|
1955
|
+
}, (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer44 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer44 === void 0 ? void 0 : (_fetchProductInfoQuer45 = _fetchProductInfoQuer44.data) === null || _fetchProductInfoQuer45 === void 0 ? void 0 : (_fetchProductInfoQuer46 = _fetchProductInfoQuer45.productinfo) === null || _fetchProductInfoQuer46 === void 0 ? void 0 : _fetchProductInfoQuer46.isproducttobesold) == 1 && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer47 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer47 === void 0 ? void 0 : (_fetchProductInfoQuer48 = _fetchProductInfoQuer47.data) === null || _fetchProductInfoQuer48 === void 0 ? void 0 : (_fetchProductInfoQuer49 = _fetchProductInfoQuer48.productinfo) === null || _fetchProductInfoQuer49 === void 0 ? void 0 : _fetchProductInfoQuer49.isproducthasquantitychange) == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1947
1956
|
className: "col-lg-12 p-0 mb-2 d-flex justofy-content-start"
|
|
1948
1957
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
1949
1958
|
className: "m-0 p-0",
|
|
@@ -1960,7 +1969,7 @@
|
|
|
1960
1969
|
style: {
|
|
1961
1970
|
justifyContent: sectionproperties.cartbtncentered == 'Centered' ? 'center' : 'start'
|
|
1962
1971
|
}
|
|
1963
|
-
}, sectionproperties.quantitybtn_show == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (
|
|
1972
|
+
}, sectionproperties.quantitybtn_show == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer50 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer50 === void 0 ? void 0 : (_fetchProductInfoQuer51 = _fetchProductInfoQuer50.data) === null || _fetchProductInfoQuer51 === void 0 ? void 0 : (_fetchProductInfoQuer52 = _fetchProductInfoQuer51.productinfo) === null || _fetchProductInfoQuer52 === void 0 ? void 0 : _fetchProductInfoQuer52.isproducttobesold) == 1 && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer53 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer53 === void 0 ? void 0 : (_fetchProductInfoQuer54 = _fetchProductInfoQuer53.data) === null || _fetchProductInfoQuer54 === void 0 ? void 0 : (_fetchProductInfoQuer55 = _fetchProductInfoQuer54.productinfo) === null || _fetchProductInfoQuer55 === void 0 ? void 0 : _fetchProductInfoQuer55.isproducthasquantitychange) == 1 && /*#__PURE__*/React__default["default"].createElement("button", {
|
|
1964
1973
|
className: " ".concat(productinfo_cssstyles.quantitybtn) + ' p-0 d-flex align-items-center justify-content-center mb-sm-2 ',
|
|
1965
1974
|
style: {
|
|
1966
1975
|
height: sectionproperties.quantitybtn_height + 'px',
|
|
@@ -2002,7 +2011,7 @@
|
|
|
2002
2011
|
}
|
|
2003
2012
|
}, sectionproperties.quantityiconstyle == 'Plus/Minus' && /*#__PURE__*/React__default["default"].createElement(FiPlus.FiPlus, {
|
|
2004
2013
|
size: sectionproperties.add_quantitybtn_textfontsize
|
|
2005
|
-
})))), sectionproperties.cartbtnalone == 'Besides Other Buttons' && sectionproperties.cartBtnShow == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (
|
|
2014
|
+
})))), sectionproperties.cartbtnalone == 'Besides Other Buttons' && sectionproperties.cartBtnShow == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer56 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer56 === void 0 ? void 0 : (_fetchProductInfoQuer57 = _fetchProductInfoQuer56.data) === null || _fetchProductInfoQuer57 === void 0 ? void 0 : (_fetchProductInfoQuer58 = _fetchProductInfoQuer57.productinfo) === null || _fetchProductInfoQuer58 === void 0 ? void 0 : _fetchProductInfoQuer58.isproducttobesold) == 1 && /*#__PURE__*/React__default["default"].createElement("button", {
|
|
2006
2015
|
className: "".concat(productinfo_cssstyles.cart_btn, " ") + ' ml-2 mr-2 d-flex align-items-center justify-content-center mb-sm-2 ',
|
|
2007
2016
|
onClick: function onClick() {
|
|
2008
2017
|
if (fetchProductInfoQueryContext.data.data.productinfo.maximumproductquant >= addtocardpayloadobj.quantity && fetchProductInfoQueryContext.data.data.productinfo.minimumproductquant <= addtocardpayloadobj.quantity) {
|
|
@@ -2068,7 +2077,7 @@
|
|
|
2068
2077
|
size: sectionproperties.favBtnIconfontsize
|
|
2069
2078
|
}), sectionproperties.faviconshape == 'Heart Shape' && /*#__PURE__*/React__default["default"].createElement(FaRegHeart.FaRegHeart, {
|
|
2070
2079
|
size: sectionproperties.favBtnIconfontsize
|
|
2071
|
-
}))))), sectionproperties.cartbtnalone == 'Alone' && sectionproperties.cartBtnShow == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (
|
|
2080
|
+
}))))), sectionproperties.cartbtnalone == 'Alone' && sectionproperties.cartBtnShow == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer59 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer59 === void 0 ? void 0 : (_fetchProductInfoQuer60 = _fetchProductInfoQuer59.data) === null || _fetchProductInfoQuer60 === void 0 ? void 0 : (_fetchProductInfoQuer61 = _fetchProductInfoQuer60.productinfo) === null || _fetchProductInfoQuer61 === void 0 ? void 0 : _fetchProductInfoQuer61.isproducttobesold) == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2072
2081
|
"class": "row m-0 w-100 mt-3",
|
|
2073
2082
|
style: {
|
|
2074
2083
|
overflow: 'hidden'
|
|
@@ -2142,7 +2151,7 @@
|
|
|
2142
2151
|
size: sectionproperties.favBtnIconfontsize
|
|
2143
2152
|
}), sectionproperties.faviconshape == 'Heart Shape' && /*#__PURE__*/React__default["default"].createElement(FaRegHeart.FaRegHeart, {
|
|
2144
2153
|
size: sectionproperties.favBtnIconfontsize
|
|
2145
|
-
})))))))), sectionproperties.productInformationType == 'Product/Service Information' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (
|
|
2154
|
+
})))))))), sectionproperties.productInformationType == 'Product/Service Information' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer62 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer62 === void 0 ? void 0 : (_fetchProductInfoQuer63 = _fetchProductInfoQuer62.data) === null || _fetchProductInfoQuer63 === void 0 ? void 0 : (_fetchProductInfoQuer64 = _fetchProductInfoQuer63.productinfo) === null || _fetchProductInfoQuer64 === void 0 ? void 0 : _fetchProductInfoQuer64.isproducttobesold) == 1 && sectionproperties.showtotalsection == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2146
2155
|
className: "col-lg-12 p-0 mb-3"
|
|
2147
2156
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2148
2157
|
className: "row m-0 w-100 d-flex flex-row"
|
|
@@ -2179,7 +2188,7 @@
|
|
|
2179
2188
|
style: {
|
|
2180
2189
|
textDecoration: 'none'
|
|
2181
2190
|
}
|
|
2182
|
-
}, "-"), 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 ? void 0 : (
|
|
2191
|
+
}, "-"), 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 ? void 0 : (_fetchProductInfoQuer65 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer65 === void 0 ? void 0 : (_fetchProductInfoQuer66 = _fetchProductInfoQuer65.data) === null || _fetchProductInfoQuer66 === void 0 ? void 0 : (_fetchProductInfoQuer67 = _fetchProductInfoQuer66.productinfo) === null || _fetchProductInfoQuer67 === void 0 ? void 0 : _fetchProductInfoQuer67.isproducttobesold) == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2183
2192
|
className: "col-lg-12 p-0 mb-3 mt-2"
|
|
2184
2193
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2185
2194
|
style: {
|
|
@@ -4578,6 +4587,40 @@
|
|
|
4578
4587
|
backgroundColor: sectionproperties.checkoutBtnbgColoronhover,
|
|
4579
4588
|
color: sectionproperties.checkoutBtncoloronhover
|
|
4580
4589
|
}
|
|
4590
|
+
}),
|
|
4591
|
+
outstockbadge: glamor.css({
|
|
4592
|
+
minWidth: sectionproperties.outstock_width + 'px',
|
|
4593
|
+
height: sectionproperties.outstock_height + 'px',
|
|
4594
|
+
background: sectionproperties.outstock_bg,
|
|
4595
|
+
color: sectionproperties.outstock_color,
|
|
4596
|
+
fontSize: sectionproperties.outstock_fontSize + 'px',
|
|
4597
|
+
borderRadius: sectionproperties.outstock_borderradius + 'px'
|
|
4598
|
+
}),
|
|
4599
|
+
cashbackoutercontainer: glamor.css({
|
|
4600
|
+
// minWidth: 'fit-content',
|
|
4601
|
+
width: sectionproperties.cashbackcontainerwidth + '%',
|
|
4602
|
+
height: sectionproperties.cashbackcontainerheight + 'px',
|
|
4603
|
+
background: sectionproperties.cashbackcontainerbgcolor,
|
|
4604
|
+
color: sectionproperties.cashbackcontainercolor,
|
|
4605
|
+
fontSize: sectionproperties.cashbackcontainerfontsize + 'px',
|
|
4606
|
+
border: sectionproperties.cashbackcontainerborderwidth + 'px ' + sectionproperties.cashbackcontainerborderstyle + sectionproperties.cashbackcontainerbordercolor,
|
|
4607
|
+
borderRadius: sectionproperties.cashbackcontainerborderradius + 'px'
|
|
4608
|
+
}),
|
|
4609
|
+
profitcontainer: glamor.css({
|
|
4610
|
+
width: sectionproperties.profitcontainerwidth + '%',
|
|
4611
|
+
height: sectionproperties.profitcontainerheight + 'px',
|
|
4612
|
+
background: sectionproperties.profitcontainerbgcolor,
|
|
4613
|
+
border: sectionproperties.profitcontainerborderwidth + 'px solid' + sectionproperties.profitcontainerbordercolor,
|
|
4614
|
+
borderRadius: sectionproperties.profitcontainerborderradius + 'px',
|
|
4615
|
+
color: sectionproperties.profitcontainercolor,
|
|
4616
|
+
'@media (max-width: 800px)': {
|
|
4617
|
+
width: '90%'
|
|
4618
|
+
}
|
|
4619
|
+
}),
|
|
4620
|
+
imagegallery: glamor.css({
|
|
4621
|
+
'.image-gallery-thumbnail.active': {
|
|
4622
|
+
border: '2px solid red '
|
|
4623
|
+
}
|
|
4581
4624
|
})
|
|
4582
4625
|
};
|
|
4583
4626
|
var getprice_discountpriceprops = function getprice_discountpriceprops(type, withtotal, variantindexcompleted) {
|
|
@@ -4632,7 +4675,11 @@
|
|
|
4632
4675
|
if (withtotal == true) {
|
|
4633
4676
|
price = price * quantity;
|
|
4634
4677
|
}
|
|
4635
|
-
|
|
4678
|
+
if (price != undefined) {
|
|
4679
|
+
return price;
|
|
4680
|
+
} else {
|
|
4681
|
+
return 0;
|
|
4682
|
+
}
|
|
4636
4683
|
};
|
|
4637
4684
|
var getQuantityCondition = function getQuantityCondition() {
|
|
4638
4685
|
var _fetchProductInfoQuer46, _fetchProductInfoQuer47, _fetchProductInfoQuer48, _fetchProductInfoQuer49;
|
|
@@ -7417,7 +7464,7 @@
|
|
|
7417
7464
|
endpointurl: '/usewalletpoints',
|
|
7418
7465
|
mutateSuccesscallback: function mutateSuccesscallback(data, variables) {
|
|
7419
7466
|
if (data.data.status) {
|
|
7420
|
-
NotificationManager.success('', '
|
|
7467
|
+
NotificationManager.success('', langdetect == 'en' ? 'Done' : 'تم');
|
|
7421
7468
|
fetchcustomercartQueryContext.refetch();
|
|
7422
7469
|
} else {
|
|
7423
7470
|
NotificationManager.warning('', data.data.reason);
|
|
@@ -7645,13 +7692,19 @@
|
|
|
7645
7692
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7646
7693
|
className: "row m-0 w-100"
|
|
7647
7694
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7648
|
-
className: "col-lg-12 col-md-12 col-sm-12 p-0"
|
|
7695
|
+
className: "col-lg-12 col-md-12 col-sm-12 p-0 d-flex justify-content-start"
|
|
7649
7696
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
7650
|
-
className: "".concat(checkoutstyles.productNameStyles) + ' m-0 p-0
|
|
7697
|
+
className: "".concat(checkoutstyles.productNameStyles) + ' m-0 p-0 w-100 ',
|
|
7698
|
+
style: {
|
|
7699
|
+
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
7700
|
+
}
|
|
7651
7701
|
}, langdetect == 'en' ? item.productinfo.name_en : item.productinfo.name_ar)), sectionproperties.producttype == 'Product' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7652
|
-
className: "col-lg-12 p-0"
|
|
7702
|
+
className: "col-lg-12 p-0 d-flex justify-content-start"
|
|
7653
7703
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
7654
|
-
className: "m-0 p-0 font-weight-500 text-light
|
|
7704
|
+
className: "m-0 p-0 font-weight-500 text-light w-100",
|
|
7705
|
+
style: {
|
|
7706
|
+
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
7707
|
+
}
|
|
7655
7708
|
}, lang.qty, ": ", item.quantity)))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7656
7709
|
className: "col-lg-3 col-md-3 col-sm-2 p-0"
|
|
7657
7710
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -7809,7 +7862,7 @@
|
|
|
7809
7862
|
className: "col-lg-6 col-md-6 col-sm-6 p-0"
|
|
7810
7863
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
7811
7864
|
className: "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 d-flex align-items-center wordbreak '
|
|
7812
|
-
},
|
|
7865
|
+
}, langdetect == 'en' ? 'Wallet points used' : 'النقاط المستخدمة')), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7813
7866
|
className: "col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0"
|
|
7814
7867
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
7815
7868
|
className: langdetect == 'en' ? "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-right ' : "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-left ',
|
|
@@ -12694,12 +12747,15 @@
|
|
|
12694
12747
|
cardobj.defaultsaleprice = arrayItem.productinfo.defaultsaleprice;
|
|
12695
12748
|
cardobj.productimages = arrayItem.productinfo.productimages;
|
|
12696
12749
|
cardobj.quantity = itemquantity;
|
|
12750
|
+
// cardobj.currentquantity = currentquantity;
|
|
12697
12751
|
cardobj.timestamp = arrayItem.productinfo.timestamp;
|
|
12698
12752
|
cardobj.productquantity = arrayItem.productinfo.productquantity;
|
|
12753
|
+
cardobj.currentquantity = arrayItem.productinfo.currentquantity;
|
|
12699
12754
|
cardobj.quantavailtype = arrayItem.productinfo.quantavailtype;
|
|
12700
12755
|
cardobj.isproducttobesold = arrayItem.productinfo.isproducttobesold;
|
|
12701
12756
|
cardobj.measurmentunit = arrayItem.productinfo.measurmentunit;
|
|
12702
12757
|
cardobj.prodaffpercentprofit = arrayItem.productinfo.prodaffpercentprofit;
|
|
12758
|
+
cardobj.productcashbackvalue = arrayItem.productinfo.productcashbackvalue;
|
|
12703
12759
|
if (langdetect == 'en') {
|
|
12704
12760
|
cardobj.currencyname = fetchAuthorizationQueryContext === null || fetchAuthorizationQueryContext === void 0 ? void 0 : fetchAuthorizationQueryContext.data.data.currencyname_en;
|
|
12705
12761
|
} else {
|
|
@@ -14140,7 +14196,7 @@
|
|
|
14140
14196
|
function ownKeys$1N(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
14141
14197
|
function _objectSpread$1N(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1N(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1N(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
14142
14198
|
var Headerresponsive = function Headerresponsive(props) {
|
|
14143
|
-
var _logoarrayofobjects$, _logoarrayofobjects$2, _authdetailsContext$i, _authdetailsContext$i2, _authdetailsContext$i3, _authdetailsContext$i4, _authdetailsContext$i5, _authdetailsContext$i6;
|
|
14199
|
+
var _logoarrayofobjects$, _logoarrayofobjects$2, _authdetailsContext$c, _authdetailsContext$c2, _authdetailsContext$i, _authdetailsContext$i2, _authdetailsContext$i3, _authdetailsContext$i4, _authdetailsContext$i5, _authdetailsContext$i6;
|
|
14144
14200
|
var actions = props.actions;
|
|
14145
14201
|
var LogoutMutationContext = props.actions.LogoutMutationContext;
|
|
14146
14202
|
var setsidecartnavshowcontext = props.actions.setsidecartnavshowcontext;
|
|
@@ -14555,6 +14611,10 @@
|
|
|
14555
14611
|
}
|
|
14556
14612
|
}, /*#__PURE__*/React__default["default"].createElement(Dropdown__default["default"].Item, {
|
|
14557
14613
|
className: "".concat(header_cssstyles.dropdownitem) + ' d-flex align-items-center justify-content-center '
|
|
14614
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
14615
|
+
"class": "row m-0 w-100"
|
|
14616
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
14617
|
+
"class": 'flex-row w-100 d-flex justify-content-start'
|
|
14558
14618
|
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
14559
14619
|
style: {
|
|
14560
14620
|
color: '#8fa0bd',
|
|
@@ -14569,7 +14629,23 @@
|
|
|
14569
14629
|
color: sectionproperties.dropdownusernamecolor,
|
|
14570
14630
|
fontSize: sectionproperties.dropdownusernamefontsize + 'px'
|
|
14571
14631
|
}
|
|
14572
|
-
}, authdetailsContext.customerinfo.name)), /*#__PURE__*/React__default["default"].createElement(
|
|
14632
|
+
}, authdetailsContext.customerinfo.name)), (authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$c = authdetailsContext.customerinfo) === null || _authdetailsContext$c === void 0 ? void 0 : _authdetailsContext$c.cancustomerviewwallet) == 1 && templateproperties_context.showwallet == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
14633
|
+
"class": ' row w-100 m-0 p-0 flex-row mt-1 w-100 justify-content-start'
|
|
14634
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
14635
|
+
"class": "m-0 p-0",
|
|
14636
|
+
style: {
|
|
14637
|
+
color: templateproperties_context.walletcontainercolorresponsive,
|
|
14638
|
+
fontSize: templateproperties_context.walletfontize + 'px',
|
|
14639
|
+
fontWeight: 500
|
|
14640
|
+
}
|
|
14641
|
+
}, langdetect == 'en' ? templateproperties_context.walletcontent_en : templateproperties_context.walletcontent_ar), /*#__PURE__*/React__default["default"].createElement("p", {
|
|
14642
|
+
"class": "m-0 p-0 mx-1",
|
|
14643
|
+
style: {
|
|
14644
|
+
color: templateproperties_context.walletcontainersecondarycolorresponsive,
|
|
14645
|
+
fontSize: '15px',
|
|
14646
|
+
fontWeight: 600
|
|
14647
|
+
}
|
|
14648
|
+
}, authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$c2 = authdetailsContext.customerinfo) === null || _authdetailsContext$c2 === void 0 ? void 0 : _authdetailsContext$c2.walletpoints, ' ')))), /*#__PURE__*/React__default["default"].createElement(Dropdown__default["default"].Divider, {
|
|
14573
14649
|
style: {
|
|
14574
14650
|
marginBottom: 0,
|
|
14575
14651
|
marginTop: 0
|
|
@@ -16851,7 +16927,10 @@
|
|
|
16851
16927
|
style: {
|
|
16852
16928
|
width: sectionproperties.header_width + 'vw'
|
|
16853
16929
|
}
|
|
16854
|
-
}, /*#__PURE__*/React__default["default"].createElement(
|
|
16930
|
+
}, sectionproperties.showtextslider == 'Show' && /*#__PURE__*/React__default["default"].createElement(MarqueeHeader, {
|
|
16931
|
+
sectionpropertiesprops: sectionproperties,
|
|
16932
|
+
actions: actions
|
|
16933
|
+
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
16855
16934
|
"class": "".concat(headerstyles$d.headercontainer) + ' col-lg-12 pl-0 pr-0 d-md-none ',
|
|
16856
16935
|
style: {
|
|
16857
16936
|
position: sectionproperties.headerstyles_position,
|
|
@@ -29463,7 +29542,7 @@
|
|
|
29463
29542
|
function ownKeys$1u(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
29464
29543
|
function _objectSpread$1u(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1u(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1u(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
29465
29544
|
var TwoTieredHeader = function TwoTieredHeader(props) {
|
|
29466
|
-
var _css, _logoarrayofobjects$, _logoarrayofobjects$2, _authdetailsContext$i, _authdetailsContext$i2, _fetchcustomercartQue, _fetchcustomercartQue2, _fetchcustomercartQue3, _fetchcustomercartQue4, _fetchcustomercartQue5, _fetchcustomercartQue6, _authdetailsContext$c, _authdetailsContext$c2, _fetchcustomercartQue7, _fetchcustomercartQue8, _fetchcustomercartQue9, _fetchcustomercartQue10, _fetchcustomercartQue11, _fetchcustomercartQue12;
|
|
29545
|
+
var _css, _logoarrayofobjects$, _logoarrayofobjects$2, _authdetailsContext$i, _authdetailsContext$i2, _fetchcustomercartQue, _fetchcustomercartQue2, _fetchcustomercartQue3, _fetchcustomercartQue4, _fetchcustomercartQue5, _fetchcustomercartQue6, _authdetailsContext$c, _authdetailsContext$c2, _authdetailsContext$c3, _authdetailsContext$c4, _authdetailsContext$c5, _fetchcustomercartQue7, _fetchcustomercartQue8, _fetchcustomercartQue9, _fetchcustomercartQue10, _fetchcustomercartQue11, _fetchcustomercartQue12;
|
|
29467
29546
|
var lang = props.actions.lang;
|
|
29468
29547
|
var langdetect = props.actions.langdetect;
|
|
29469
29548
|
var setlang = props.actions.setlang;
|
|
@@ -29489,6 +29568,10 @@
|
|
|
29489
29568
|
_useState4 = _slicedToArray__default["default"](_useState3, 2),
|
|
29490
29569
|
dropdownselect = _useState4[0],
|
|
29491
29570
|
setdropdownselect = _useState4[1];
|
|
29571
|
+
var _useState5 = React.useState([]),
|
|
29572
|
+
_useState6 = _slicedToArray__default["default"](_useState5, 2),
|
|
29573
|
+
logoarrayofobjects = _useState6[0],
|
|
29574
|
+
setlogoarrayofobjects = _useState6[1];
|
|
29492
29575
|
React.useEffect(function () {
|
|
29493
29576
|
var secpropobj = {};
|
|
29494
29577
|
StatePagePropertiesContext.pageobj.sections.forEach(function (sectionitem, sectionindex) {
|
|
@@ -29507,10 +29590,6 @@
|
|
|
29507
29590
|
}
|
|
29508
29591
|
setsectionproperties(_objectSpread$1u({}, secpropobj));
|
|
29509
29592
|
}, [StatePagePropertiesContext]);
|
|
29510
|
-
var _useState5 = React.useState([]),
|
|
29511
|
-
_useState6 = _slicedToArray__default["default"](_useState5, 2),
|
|
29512
|
-
logoarrayofobjects = _useState6[0],
|
|
29513
|
-
setlogoarrayofobjects = _useState6[1];
|
|
29514
29593
|
React.useEffect(function () {
|
|
29515
29594
|
if (templateproperties_context.length != 0 && templateproperties_context.logoarrayofobjects != undefined) {
|
|
29516
29595
|
var logoarrayofobjectsparsed = JSON.parse(templateproperties_context.logoarrayofobjects);
|
|
@@ -29783,6 +29862,12 @@
|
|
|
29783
29862
|
marginBottom: sectionproperties.header_marginBottom + 'px',
|
|
29784
29863
|
width: sectionproperties.header_width + 'vw',
|
|
29785
29864
|
maxWidth: '100vw'
|
|
29865
|
+
}),
|
|
29866
|
+
walletoutercontainer: glamor.css({
|
|
29867
|
+
height: templateproperties_context.walletcontainerheight + 'px',
|
|
29868
|
+
width: 'fit-content',
|
|
29869
|
+
border: '2px dashed white',
|
|
29870
|
+
borderRadius: 5
|
|
29786
29871
|
})
|
|
29787
29872
|
};
|
|
29788
29873
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -29984,8 +30069,8 @@
|
|
|
29984
30069
|
"class": langdetect == 'en' ? 'headerdropdownml dropdown-toggle_w100' : 'headerdropdownmr dropdown-toggle_w100',
|
|
29985
30070
|
style: {
|
|
29986
30071
|
width: authdetailsContext.loggedin == true ? 'auto' : langdetect == 'en' ? '105px' : '120px',
|
|
29987
|
-
marginRight: langdetect == 'en' ? sectionproperties.btnsposition == 'Bottom' ? '13px' : '.1rem' : 0,
|
|
29988
|
-
marginLeft: langdetect == 'ar' ? sectionproperties.btnsposition == 'Bottom' ? '13px' : '.1rem' : 0
|
|
30072
|
+
marginRight: langdetect == 'en' ? sectionproperties.showfooterphonenumber == 'Hide' && sectionproperties.lang_position == 'Top' && authdetailsContext.loggedin == true ? '3.5rem' : sectionproperties.btnsposition == 'Bottom' ? '13px' : '.1rem' : 0,
|
|
30073
|
+
marginLeft: langdetect == 'ar' ? sectionproperties.showfooterphonenumber == 'Hide' && sectionproperties.lang_position == 'Top' && authdetailsContext.loggedin == true ? '3.5rem' : sectionproperties.btnsposition == 'Bottom' ? '13px' : '.1rem' : 0
|
|
29989
30074
|
}
|
|
29990
30075
|
}, /*#__PURE__*/React__default["default"].createElement(Dropdown__default["default"], null, /*#__PURE__*/React__default["default"].createElement(Dropdown__default["default"].Toggle, null, !authdetailsContext.loggedin && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
29991
30076
|
"class": ' d-flex justify-content-center align-items-center '
|
|
@@ -30029,7 +30114,7 @@
|
|
|
30029
30114
|
style: {
|
|
30030
30115
|
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
30031
30116
|
}
|
|
30032
|
-
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
30117
|
+
}, (authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$c = authdetailsContext.customerinfo) === null || _authdetailsContext$c === void 0 ? void 0 : _authdetailsContext$c.cancustomerviewwallet) != 1 && templateproperties_context.showwallet == 'Hide' && /*#__PURE__*/React__default["default"].createElement("p", {
|
|
30033
30118
|
"class": "m-0 p-0",
|
|
30034
30119
|
style: {
|
|
30035
30120
|
color: sectionproperties.greetingtextcolor,
|
|
@@ -30042,7 +30127,24 @@
|
|
|
30042
30127
|
style: {
|
|
30043
30128
|
maxWidth: sectionproperties.showfooterphonenumber == 'Show' ? '65px' : '140px'
|
|
30044
30129
|
}
|
|
30045
|
-
}, authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$
|
|
30130
|
+
}, authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$c2 = authdetailsContext.customerinfo) === null || _authdetailsContext$c2 === void 0 ? void 0 : _authdetailsContext$c2.name), (authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$c3 = authdetailsContext.customerinfo) === null || _authdetailsContext$c3 === void 0 ? void 0 : _authdetailsContext$c3.cancustomerviewwallet) == 1 && templateproperties_context.showwallet == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
30131
|
+
"class": ' m-0 p-0 d-flex justify-content-start flex-row ',
|
|
30132
|
+
style: {}
|
|
30133
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
30134
|
+
"class": "m-0 p-0",
|
|
30135
|
+
style: {
|
|
30136
|
+
color: templateproperties_context.walletcolor,
|
|
30137
|
+
fontSize: templateproperties_context.walletfontize + 'px',
|
|
30138
|
+
fontWeight: 500
|
|
30139
|
+
}
|
|
30140
|
+
}, langdetect == 'en' ? templateproperties_context.walletcontent_en : templateproperties_context.walletcontent_ar), /*#__PURE__*/React__default["default"].createElement("p", {
|
|
30141
|
+
"class": "m-0 p-0 mx-1",
|
|
30142
|
+
style: {
|
|
30143
|
+
color: templateproperties_context.walletsecondarycolor,
|
|
30144
|
+
fontSize: '15px',
|
|
30145
|
+
fontWeight: 600
|
|
30146
|
+
}
|
|
30147
|
+
}, authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$c4 = authdetailsContext.customerinfo) === null || _authdetailsContext$c4 === void 0 ? void 0 : _authdetailsContext$c4.walletpoints, ' '))))), !authdetailsContext.loggedin && /*#__PURE__*/React__default["default"].createElement(Dropdown__default["default"].Menu, null, /*#__PURE__*/React__default["default"].createElement(Dropdown__default["default"].Item, {
|
|
30046
30148
|
onClick: function onClick() {
|
|
30047
30149
|
routingcountext(StaticPagesLinksContext.Login);
|
|
30048
30150
|
}
|
|
@@ -30077,7 +30179,7 @@
|
|
|
30077
30179
|
onClick: function onClick() {
|
|
30078
30180
|
routingcountext(StaticPagesLinksContext.accountinfo);
|
|
30079
30181
|
}
|
|
30080
|
-
}, authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$
|
|
30182
|
+
}, authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$c5 = authdetailsContext.customerinfo) === null || _authdetailsContext$c5 === void 0 ? void 0 : _authdetailsContext$c5.name))), /*#__PURE__*/React__default["default"].createElement(Dropdown__default["default"].Divider, null), /*#__PURE__*/React__default["default"].createElement(Dropdown__default["default"].Item, {
|
|
30081
30183
|
onClick: function onClick() {
|
|
30082
30184
|
routingcountext(StaticPagesLinksContext.Ordershistory);
|
|
30083
30185
|
}
|
|
@@ -48936,7 +49038,7 @@
|
|
|
48936
49038
|
borderBottomRightRadius: langdetect == 'en' ? sectionproperties.image_borderBottomRightRadius + 'px' : sectionproperties.image_borderBottomLeftRadius + 'px',
|
|
48937
49039
|
borderTopLeftRadius: langdetect == 'en' ? sectionproperties.image_bordertopleftradius + 'px' : sectionproperties.image_bordertoprightradius + 'px',
|
|
48938
49040
|
borderTopRightRadius: langdetect == 'en' ? sectionproperties.image_bordertoprightradius + 'px' : sectionproperties.image_bordertopleftradius + 'px',
|
|
48939
|
-
opacity: item.
|
|
49041
|
+
opacity: item.currentquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' && item.hasvariants == 0 ? 0.4 : 1
|
|
48940
49042
|
|
|
48941
49043
|
// border: sectionproperties.image_borderwidth + 'px solid ' + sectionproperties.image_bordercolor,
|
|
48942
49044
|
},
|
|
@@ -48969,7 +49071,7 @@
|
|
|
48969
49071
|
fontSize: sectionproperties.pillfontSize + 'px',
|
|
48970
49072
|
direction: 'ltr'
|
|
48971
49073
|
}
|
|
48972
|
-
}, '-' + Math.round(10.0 * ((parseInt(item.defaultprice) - parseInt(item.defaultsaleprice)) / parseInt(item.defaultprice)) * 100) / 10.0 + '%')), item.
|
|
49074
|
+
}, '-' + Math.round(10.0 * ((parseInt(item.defaultprice) - parseInt(item.defaultsaleprice)) / parseInt(item.defaultprice)) * 100) / 10.0 + '%')), item.currentquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' && item.hasvariants == 0 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
48973
49075
|
"class": "".concat(card_cssstyles.outstockbadge) + ' allcentered '
|
|
48974
49076
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
48975
49077
|
"class": "m-0 p-0"
|
|
@@ -49020,7 +49122,7 @@
|
|
|
49020
49122
|
}))), sectionproperties.cartBtnShow == 'Show' && showquantity == false && /*#__PURE__*/React__default["default"].createElement("button", {
|
|
49021
49123
|
"class": "".concat(card_cssstyles.cart_btn) + ' ml-2 mr-2 ml-sm-1 mr-sm-1 w-md-130px w-sm-100px font-sm-12 ',
|
|
49022
49124
|
onClick: function onClick() {
|
|
49023
|
-
if (item.
|
|
49125
|
+
if (item.currentquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' && item.hasvariants == 0) {
|
|
49024
49126
|
NotificationManager.warning('', langdetect == 'en' ? 'Sold Out' : 'نفذت الكمية');
|
|
49025
49127
|
} else if (sectionproperties.quantitybtn_show == 'Show') {
|
|
49026
49128
|
setshowquantity(true);
|
|
@@ -50892,6 +50994,7 @@
|
|
|
50892
50994
|
_useState6 = _slicedToArray__default["default"](_useState5, 2),
|
|
50893
50995
|
secondimage = _useState6[0],
|
|
50894
50996
|
setsecondimage = _useState6[1];
|
|
50997
|
+
props.actions.NotificationManager;
|
|
50895
50998
|
var StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
|
|
50896
50999
|
props.actions.lang;
|
|
50897
51000
|
var langdetect = props.actions.langdetect;
|
|
@@ -51060,6 +51163,31 @@
|
|
|
51060
51163
|
borderBottomRightRadius: langdetect == 'en' ? sectionproperties.image_borderBottomRightRadius + 'px' : sectionproperties.image_borderBottomLeftRadius + 'px',
|
|
51061
51164
|
borderTopLeftRadius: langdetect == 'en' ? sectionproperties.image_bordertopleftradius + 'px' : sectionproperties.image_bordertoprightradius + 'px',
|
|
51062
51165
|
borderTopRightRadius: langdetect == 'en' ? sectionproperties.image_bordertoprightradius + 'px' : sectionproperties.image_bordertopleftradius + 'px'
|
|
51166
|
+
}),
|
|
51167
|
+
outstockbadge: glamor.css({
|
|
51168
|
+
width: sectionproperties.outstock_width + 'px',
|
|
51169
|
+
height: sectionproperties.outstock_height + 'px',
|
|
51170
|
+
background: sectionproperties.outstock_bg,
|
|
51171
|
+
color: sectionproperties.outstock_color,
|
|
51172
|
+
fontSize: sectionproperties.outstock_fontSize + 'px',
|
|
51173
|
+
borderRadius: sectionproperties.outstock_borderradius + 'px',
|
|
51174
|
+
position: 'absolute',
|
|
51175
|
+
zIndex: 2,
|
|
51176
|
+
top: 0,
|
|
51177
|
+
bottom: 0,
|
|
51178
|
+
left: 0,
|
|
51179
|
+
right: 0,
|
|
51180
|
+
margin: 'auto'
|
|
51181
|
+
}),
|
|
51182
|
+
cashbackoutercontainer: glamor.css({
|
|
51183
|
+
minWidth: 'fit-content',
|
|
51184
|
+
maxWidth: sectionproperties.cashbackcontainerwidth + '%',
|
|
51185
|
+
height: sectionproperties.cashbackcontainerheight + 'px',
|
|
51186
|
+
background: sectionproperties.cashbackcontainerbgcolor,
|
|
51187
|
+
color: sectionproperties.cashbackcontainercolor,
|
|
51188
|
+
fontSize: sectionproperties.cashbackcontainerfontsize + 'px',
|
|
51189
|
+
border: sectionproperties.cashbackcontainerborderwidth + 'px ' + sectionproperties.cashbackcontainerborderstyle + sectionproperties.cashbackcontainerbordercolor,
|
|
51190
|
+
borderRadius: sectionproperties.cashbackcontainerborderradius + 'px'
|
|
51063
51191
|
})
|
|
51064
51192
|
};
|
|
51065
51193
|
var plainString = function plainString(html) {
|
|
@@ -51073,13 +51201,17 @@
|
|
|
51073
51201
|
transition = true;
|
|
51074
51202
|
}
|
|
51075
51203
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
51076
|
-
"class": "w-100 cursor-pointer"
|
|
51204
|
+
"class": "w-100 cursor-pointer",
|
|
51205
|
+
style: {
|
|
51206
|
+
position: 'relative'
|
|
51207
|
+
}
|
|
51077
51208
|
}, /*#__PURE__*/React__default["default"].createElement(Imagekitimagecomp, {
|
|
51078
51209
|
"class": transition ? cardstyles$7.intialimage : '',
|
|
51079
51210
|
urlEndpoint: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint,
|
|
51080
51211
|
publicKey: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimagepublickey,
|
|
51081
51212
|
path: '/tr:w-' + sectionproperties.imagetr_w + ',h-' + sectionproperties.imagetr_h + '/' + item.image,
|
|
51082
51213
|
style: {
|
|
51214
|
+
opacity: item.currentquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' && item.hasvariants == 0 ? sectionproperties.outofstockimageopcity : 1,
|
|
51083
51215
|
width: sectionproperties.imageInnerWidth_Height + '%',
|
|
51084
51216
|
height: sectionproperties.imageInnerWidth_Height + '%',
|
|
51085
51217
|
objectFit: sectionproperties.bgcovercontain == 'Cover' ? 'cover' : 'contain',
|
|
@@ -51116,8 +51248,8 @@
|
|
|
51116
51248
|
"class": "row m-0 align-items-center justify-content-center",
|
|
51117
51249
|
style: {
|
|
51118
51250
|
position: 'absolute',
|
|
51119
|
-
top:
|
|
51120
|
-
left:
|
|
51251
|
+
top: sectionproperties.badge_top + 'px',
|
|
51252
|
+
left: sectionproperties.badge_right + 'px',
|
|
51121
51253
|
height: sectionproperties.badge_height + 'px',
|
|
51122
51254
|
width: sectionproperties.badge_width + 'px',
|
|
51123
51255
|
backgroundColor: sectionproperties.badge_bgcolor,
|
|
@@ -51148,7 +51280,11 @@
|
|
|
51148
51280
|
fontSize: sectionproperties.pillfontSize + 'px',
|
|
51149
51281
|
direction: 'ltr'
|
|
51150
51282
|
}
|
|
51151
|
-
}, '-' + Math.round(10.0 * ((parseInt(item.defaultprice) - parseInt(item.defaultsaleprice)) / parseInt(item.defaultprice)) * 100) / 10.0 + '%'))
|
|
51283
|
+
}, '-' + Math.round(10.0 * ((parseInt(item.defaultprice) - parseInt(item.defaultsaleprice)) / parseInt(item.defaultprice)) * 100) / 10.0 + '%')), item.currentquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' && item.hasvariants == 0 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
51284
|
+
"class": "".concat(cardsstyles2.outstockbadge) + ' allcentered '
|
|
51285
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
51286
|
+
"class": "m-0 p-0"
|
|
51287
|
+
}, langdetect == 'en' ? sectionproperties.outstock_contenten : sectionproperties.outstock_contentar)));
|
|
51152
51288
|
};
|
|
51153
51289
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
51154
51290
|
"class": langdetect == 'en' ? sectionproperties.card_marginLeft != 0 ? 'row m-0 w-100 pl-sm-2' : sectionproperties.card_marginRight != 0 ? 'row m-0 w-100 pr-sm-2' : 'row m-0 w-100' : langdetect == 'en' ? sectionproperties.card_marginRight != 0 ? 'row m-0 w-100 pr-sm-2' : sectionproperties.card_marginLeft != 0 ? 'row m-0 w-100 pl-sm-2' : 'row m-0 w-100' : 'row m-0 w-100',
|
|
@@ -51258,7 +51394,21 @@
|
|
|
51258
51394
|
paddingTop: '10px',
|
|
51259
51395
|
paddingBottom: '10px'
|
|
51260
51396
|
}
|
|
51397
|
+
}, sectionproperties.showcashbackcontainer == 'Show' && item.productcashbackvalue > 0 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
51398
|
+
"class": "col-lg-12 p-0 d-flex justify-content-start my-1"
|
|
51261
51399
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
51400
|
+
"class": "".concat(cardsstyles2.cashbackoutercontainer) + ' d-flex flex-row allcentered px-2 '
|
|
51401
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
51402
|
+
"class": "m-0 p-0",
|
|
51403
|
+
style: {
|
|
51404
|
+
fontWeight: 500
|
|
51405
|
+
}
|
|
51406
|
+
}, langdetect == 'en' ? sectionproperties.cashbackcontainercontenten : sectionproperties.cashbackcontainercontentar), /*#__PURE__*/React__default["default"].createElement("p", {
|
|
51407
|
+
"class": "m-0 p-0 mx-1",
|
|
51408
|
+
style: {
|
|
51409
|
+
fontWeight: 600
|
|
51410
|
+
}
|
|
51411
|
+
}, langdetect == 'en' ? item.currencyname : '', " ", item.productcashbackvalue, " ", langdetect == 'en' ? '' : item.currencyname))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
51262
51412
|
"class": "col-lg-12 p-0"
|
|
51263
51413
|
}, sectionproperties.prodCatShow == 'Show' && /*#__PURE__*/React__default["default"].createElement("p", {
|
|
51264
51414
|
"class": "".concat(cardsstyles2.productDescStyles) + ' col-lg-12 wordbreak wordbreak1 p-0 m-0 ',
|
|
@@ -51282,14 +51432,20 @@
|
|
|
51282
51432
|
"class": "row m-0 w-100 align-items-center mt-1 mb-1"
|
|
51283
51433
|
}, sectionproperties.prodPriceShow == 'Show' && /*#__PURE__*/React__default["default"].createElement("p", {
|
|
51284
51434
|
"class": langdetect == 'en' ? "".concat(cardsstyles2.productPricestyles) + ' m-0 wordbreak d-flex align-items-center text-right text-sm-left ' : "".concat(cardsstyles2.productPricestyles) + ' m-0 wordbreak d-flex align-items-center text-left text-sm-right '
|
|
51285
|
-
}, langdetect == 'en' ?
|
|
51435
|
+
}, langdetect == 'en' ? item.currencyname : '', " ", item.hassale == 1 ? item.defaultsaleprice : item.defaultprice, " ", langdetect == 'en' ? '' : item.currencyname), sectionproperties.prodsalePriceshow == 'Show' && item.hassale == 1 && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
51286
51436
|
"class": "".concat(cardsstyles2.productSalePricestyles)
|
|
51287
51437
|
}, "/"), sectionproperties.prodsalePriceshow == 'Show' && item.hassale == 1 && /*#__PURE__*/React__default["default"].createElement("p", {
|
|
51288
51438
|
"class": langdetect == 'en' ? "".concat(cardsstyles2.productSalePricestyles) + ' linethrough m-0 wordbreak d-flex mt-sm-auto mb-sm-auto text-right text-sm-left ' : "".concat(cardsstyles2.productSalePricestyles) + ' linethrough m-0 wordbreak d-flex mt-sm-auto mb-sm-auto text-left text-sm-right '
|
|
51289
|
-
}, langdetect == 'en' ?
|
|
51439
|
+
}, langdetect == 'en' ? item.currencyname : '', " ", item.defaultprice, " ", langdetect == 'en' ? '' : item.currencyname)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
51290
51440
|
"class": "d-flex align-items-center m-0"
|
|
51291
51441
|
}, sectionproperties.cartBtnShow == 'Show' && /*#__PURE__*/React__default["default"].createElement("button", {
|
|
51292
|
-
"class": "".concat(cardsstyles2.cart_btn) + ' allcentered '
|
|
51442
|
+
"class": "".concat(cardsstyles2.cart_btn) + ' allcentered '
|
|
51443
|
+
// onClick={() => {
|
|
51444
|
+
// setShowProductInfoModalContext(true);
|
|
51445
|
+
// setProductIdProdutInfoModalContext(item.productid);
|
|
51446
|
+
|
|
51447
|
+
// }}
|
|
51448
|
+
,
|
|
51293
51449
|
onClick: function onClick() {
|
|
51294
51450
|
setShowProductInfoModalContext(true);
|
|
51295
51451
|
setProductIdProdutInfoModalContext(item.productid);
|
|
@@ -51756,7 +51912,7 @@
|
|
|
51756
51912
|
// : `${cardsstyles2.productPricestyles}` + ' m-0 wordbreak d-flex align-items-center text-left text-sm-right '
|
|
51757
51913
|
// }
|
|
51758
51914
|
// >
|
|
51759
|
-
//
|
|
51915
|
+
// {langdetect == 'en' ? item.currencyname : ''} {item.hassale == 1 ? item.defaultsaleprice : item.defaultprice} {langdetect == 'en' ? '' : item.currencyname}
|
|
51760
51916
|
// </p>
|
|
51761
51917
|
// )}
|
|
51762
51918
|
// {sectionproperties.prodsalePriceshow == 'Show' && item.hassale == 1 && <span class={`${cardsstyles2.productSalePricestyles}`}>/</span>}
|
|
@@ -51768,7 +51924,7 @@
|
|
|
51768
51924
|
// : `${cardsstyles2.productSalePricestyles}` + ' linethrough m-0 wordbreak d-flex mt-sm-auto mb-sm-auto text-left text-sm-right '
|
|
51769
51925
|
// }
|
|
51770
51926
|
// >
|
|
51771
|
-
//
|
|
51927
|
+
// {langdetect == 'en' ? item.currencyname : ''} {item.defaultprice} {langdetect == 'en' ? '' : item.currencyname}
|
|
51772
51928
|
// </p>
|
|
51773
51929
|
// )}
|
|
51774
51930
|
// </div>
|
|
@@ -52015,7 +52171,7 @@
|
|
|
52015
52171
|
// : `${cardsstyles2.productPricestyles}` + ' m-0 wordbreak d-flex align-items-center text-left text-sm-right '
|
|
52016
52172
|
// }
|
|
52017
52173
|
// >
|
|
52018
|
-
//
|
|
52174
|
+
// {langdetect == 'en' ? item.currencyname : ''} {item.hassale == 1 ? item.defaultsaleprice : item.defaultprice} {langdetect == 'en' ? '' : item.currencyname}
|
|
52019
52175
|
// </p>
|
|
52020
52176
|
// )}
|
|
52021
52177
|
// {sectionproperties.prodsalePriceshow == 'Show' && item.hassale == 1 && <span class={`${cardsstyles2.productSalePricestyles}`}>/</span>}
|
|
@@ -52027,7 +52183,7 @@
|
|
|
52027
52183
|
// : `${cardsstyles2.productSalePricestyles}` + ' linethrough m-0 wordbreak d-flex mt-sm-auto mb-sm-auto text-left text-sm-right '
|
|
52028
52184
|
// }
|
|
52029
52185
|
// >
|
|
52030
|
-
//
|
|
52186
|
+
// {langdetect == 'en' ? item.currencyname : ''} {item.defaultprice} {langdetect == 'en' ? '' : item.currencyname}
|
|
52031
52187
|
// </p>
|
|
52032
52188
|
// )}
|
|
52033
52189
|
// </div>
|
|
@@ -52586,7 +52742,7 @@
|
|
|
52586
52742
|
borderTopLeftRadius: langdetect == 'en' ? sectionproperties.image_bordertopleftradius + 'px' : sectionproperties.image_bordertoprightradius + 'px',
|
|
52587
52743
|
borderTopRightRadius: langdetect == 'en' ? sectionproperties.image_bordertoprightradius + 'px' : sectionproperties.image_bordertopleftradius + 'px',
|
|
52588
52744
|
background: sectionproperties.image_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.image_bgcolor,
|
|
52589
|
-
opacity: item.
|
|
52745
|
+
opacity: item.currentquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' ? 0.4 : 1
|
|
52590
52746
|
}),
|
|
52591
52747
|
quantitybtn: glamor.css({
|
|
52592
52748
|
flex: 1,
|
|
@@ -52808,7 +52964,7 @@
|
|
|
52808
52964
|
color: sectionproperties.badge_color,
|
|
52809
52965
|
fontSize: sectionproperties.badge_fontsize + 'px'
|
|
52810
52966
|
}
|
|
52811
|
-
}, langdetect == 'en' ? sectionproperties.badgeContentEn : sectionproperties.badgeContentAr)), item.
|
|
52967
|
+
}, langdetect == 'en' ? sectionproperties.badgeContentEn : sectionproperties.badgeContentAr)), item.currentquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
52812
52968
|
"class": "".concat(cardsstyles2.outstockbadge) + ' allcentered '
|
|
52813
52969
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
52814
52970
|
"class": "m-0 p-0"
|
|
@@ -52848,7 +53004,7 @@
|
|
|
52848
53004
|
transform: ' rotate(-180deg)'
|
|
52849
53005
|
},
|
|
52850
53006
|
onClick: function onClick() {
|
|
52851
|
-
if (item.
|
|
53007
|
+
if (item.currentquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit') {
|
|
52852
53008
|
NotificationManager.warning('', langdetect == 'en' ? 'Sold Out' : 'نفذت الكمية');
|
|
52853
53009
|
} else if (item.hasvariants == 0) {
|
|
52854
53010
|
updatequantity('remove');
|
|
@@ -52862,7 +53018,7 @@
|
|
|
52862
53018
|
})), langdetect == 'ar' && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
52863
53019
|
"class": "".concat(cardsstyles2.add_quantitybtn_icon_container) + ' m-1 ',
|
|
52864
53020
|
onClick: function onClick() {
|
|
52865
|
-
if (item.
|
|
53021
|
+
if (item.currentquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit') {
|
|
52866
53022
|
NotificationManager.warning('', langdetect == 'en' ? 'Sold Out' : 'نفذت الكمية');
|
|
52867
53023
|
} else if (item.hasvariants == 0) {
|
|
52868
53024
|
updatequantity('add');
|
|
@@ -52881,7 +53037,7 @@
|
|
|
52881
53037
|
transform: ' rotate(-180deg)'
|
|
52882
53038
|
},
|
|
52883
53039
|
onClick: function onClick() {
|
|
52884
|
-
if (item.
|
|
53040
|
+
if (item.currentquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit') {
|
|
52885
53041
|
NotificationManager.warning('', langdetect == 'en' ? 'Sold Out' : 'نفذت الكمية');
|
|
52886
53042
|
} else if (item.hasvariants == 0) {
|
|
52887
53043
|
updatequantity('remove');
|
|
@@ -52895,7 +53051,7 @@
|
|
|
52895
53051
|
})), langdetect == 'en' && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
52896
53052
|
"class": "".concat(cardsstyles2.add_quantitybtn_icon_container) + ' m-1 ',
|
|
52897
53053
|
onClick: function onClick() {
|
|
52898
|
-
if (item.
|
|
53054
|
+
if (item.currentquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit') {
|
|
52899
53055
|
NotificationManager.warning('', langdetect == 'en' ? 'Sold Out' : 'نفذت الكمية');
|
|
52900
53056
|
} else if (item.hasvariants == 0) {
|
|
52901
53057
|
updatequantity('add');
|
|
@@ -57118,7 +57274,7 @@
|
|
|
57118
57274
|
borderBottomRightRadius: langdetect == 'en' ? sectionproperties.image_borderBottomRightRadius + 'px' : sectionproperties.image_borderBottomLeftRadius + 'px',
|
|
57119
57275
|
borderTopLeftRadius: langdetect == 'en' ? sectionproperties.image_bordertopleftradius + 'px' : sectionproperties.image_bordertoprightradius + 'px',
|
|
57120
57276
|
borderTopRightRadius: langdetect == 'en' ? sectionproperties.image_bordertoprightradius + 'px' : sectionproperties.image_bordertopleftradius + 'px',
|
|
57121
|
-
opacity: item.
|
|
57277
|
+
opacity: item.currentquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' && item.hasvariants == 0 ? 0.4 : 1
|
|
57122
57278
|
}
|
|
57123
57279
|
}), sectionproperties.showbadge == 'Show' && item.hassale == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
57124
57280
|
"class": "allcentered",
|
|
@@ -57156,7 +57312,7 @@
|
|
|
57156
57312
|
fontSize: sectionproperties.pillfontSize + 'px',
|
|
57157
57313
|
direction: 'ltr'
|
|
57158
57314
|
}
|
|
57159
|
-
}, '-' + Math.round(10.0 * ((parseInt(item.defaultprice) - parseInt(item.defaultsaleprice)) / parseInt(item.defaultprice)) * 100) / 10.0 + '%')), item.
|
|
57315
|
+
}, '-' + Math.round(10.0 * ((parseInt(item.defaultprice) - parseInt(item.defaultsaleprice)) / parseInt(item.defaultprice)) * 100) / 10.0 + '%')), item.currentquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' && item.hasvariants == 0 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
57160
57316
|
"class": "".concat(card_cssstyles.outstockbadge) + ' allcentered '
|
|
57161
57317
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
57162
57318
|
"class": "m-0 p-0"
|
|
@@ -57182,7 +57338,7 @@
|
|
|
57182
57338
|
}, sectionproperties.cartBtnShow == 'Show' && /*#__PURE__*/React__default["default"].createElement("p", {
|
|
57183
57339
|
"class": "".concat(card_cssstyles.cart_btn) + ' m-0 p-0 d-flex align-items-center justify-content-center cursor-pointer ',
|
|
57184
57340
|
onClick: function onClick() {
|
|
57185
|
-
if (item.
|
|
57341
|
+
if (item.currentquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' && item.hasvariants == 0) {
|
|
57186
57342
|
NotificationManager.warning('', langdetect == 'en' ? 'Sold Out' : 'نفذت الكمية');
|
|
57187
57343
|
} else {
|
|
57188
57344
|
setShowProductInfoModalContext(true);
|
|
@@ -58902,7 +59058,7 @@
|
|
|
58902
59058
|
var setProductIdProdutInfoModalContext = props.actions.setProductIdProdutInfoModalContext;
|
|
58903
59059
|
var cardonclickfunctionContext = props.actions.cardonclickfunctionContext;
|
|
58904
59060
|
var ikimagecredcontext = props.actions.ikimagecredcontext;
|
|
58905
|
-
|
|
59061
|
+
props.actions.NotificationManager;
|
|
58906
59062
|
var plainString = function plainString(html) {
|
|
58907
59063
|
var divContainer = document.createElement('div');
|
|
58908
59064
|
divContainer.innerHTML = html;
|
|
@@ -58940,7 +59096,7 @@
|
|
|
58940
59096
|
borderTopLeftRadius: langdetect == 'en' ? sectionproperties.image_bordertopleftradius + 'px' : sectionproperties.image_bordertoprightradius + 'px',
|
|
58941
59097
|
borderTopRightRadius: langdetect == 'en' ? sectionproperties.image_bordertoprightradius + 'px' : sectionproperties.image_bordertopleftradius + 'px',
|
|
58942
59098
|
transition: '.3s',
|
|
58943
|
-
opacity: item.
|
|
59099
|
+
opacity: item.currentquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' && item.hasvariants == 0 ? 0.4 : 1,
|
|
58944
59100
|
'@media (max-width: 800px)': {
|
|
58945
59101
|
height: sectionproperties.height_responsive != null ? sectionproperties.height_responsive + 'px' : sectionproperties.image_height + 'px'
|
|
58946
59102
|
}
|
|
@@ -59156,7 +59312,7 @@
|
|
|
59156
59312
|
height: sectionproperties.imageInnerWidth_Height + '%',
|
|
59157
59313
|
objectFit: sectionproperties.bgcovercontain == 'Cover' ? 'cover' : 'contain'
|
|
59158
59314
|
}
|
|
59159
|
-
})), item.
|
|
59315
|
+
})), item.currentquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' && item.hasvariants == 0 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
59160
59316
|
"class": "".concat(card_cssstyles.outstockbadge) + ' allcentered '
|
|
59161
59317
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
59162
59318
|
"class": "m-0 p-0"
|
|
@@ -59240,12 +59396,8 @@
|
|
|
59240
59396
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
59241
59397
|
"class": "".concat(card_cssstyles.cart_btn) + ' m-0 p-0 d-flex align-items-center justify-content-center mt-1 ',
|
|
59242
59398
|
onClick: function onClick() {
|
|
59243
|
-
|
|
59244
|
-
|
|
59245
|
-
} else {
|
|
59246
|
-
setShowProductInfoModalContext(true);
|
|
59247
|
-
setProductIdProdutInfoModalContext(item.productid);
|
|
59248
|
-
}
|
|
59399
|
+
setShowProductInfoModalContext(true);
|
|
59400
|
+
setProductIdProdutInfoModalContext(item.productid);
|
|
59249
59401
|
}
|
|
59250
59402
|
}, sectionproperties.cartBtn_iconFontSize != 0 && /*#__PURE__*/React__default["default"].createElement("i", {
|
|
59251
59403
|
"class": langdetect == 'en' ? 'h-100 mr-2 d-flex align-items-center justify-content-center' : 'h-100 ml-2 d-flex align-items-center justify-content-center'
|
|
@@ -60366,7 +60518,7 @@
|
|
|
60366
60518
|
borderBottomRightRadius: langdetect == 'en' ? sectionproperties.image_borderBottomRightRadius + 'px' : sectionproperties.image_borderBottomLeftRadius + 'px',
|
|
60367
60519
|
borderTopLeftRadius: langdetect == 'en' ? sectionproperties.image_bordertopleftradius + 'px' : sectionproperties.image_bordertoprightradius + 'px',
|
|
60368
60520
|
borderTopRightRadius: langdetect == 'en' ? sectionproperties.image_bordertoprightradius + 'px' : sectionproperties.image_bordertopleftradius + 'px',
|
|
60369
|
-
opacity: item.
|
|
60521
|
+
opacity: item.currentquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' && item.hasvariants == 0 ? sectionproperties.outofstockimageopcity : 1,
|
|
60370
60522
|
transition: '.3s'
|
|
60371
60523
|
}),
|
|
60372
60524
|
productNameStyles: glamor.css({
|
|
@@ -60598,7 +60750,7 @@
|
|
|
60598
60750
|
height: sectionproperties.badge_height + 'px',
|
|
60599
60751
|
background: sectionproperties.badge_bgcolor,
|
|
60600
60752
|
borderRadius: sectionproperties.badge_borderradius + 'px',
|
|
60601
|
-
display: item.
|
|
60753
|
+
display: item.currentquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' && item.hasvariants == 0 && sectionproperties.outofstock_replacebadges == 'Replace' ? 'none' : 'flex'
|
|
60602
60754
|
}
|
|
60603
60755
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
60604
60756
|
"class": "m-0 p-0",
|
|
@@ -60618,7 +60770,7 @@
|
|
|
60618
60770
|
height: sectionproperties.pillheight + 'px',
|
|
60619
60771
|
background: sectionproperties.pillbgcolor,
|
|
60620
60772
|
borderRadius: sectionproperties.pillborderBottomLeftRadius + 'px',
|
|
60621
|
-
display: item.
|
|
60773
|
+
display: item.currentquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' && item.hasvariants == 0 && sectionproperties.outofstock_replacebadges == 'Replace' ? 'none' : 'flex'
|
|
60622
60774
|
}
|
|
60623
60775
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
60624
60776
|
"class": "m-0 p-0 text-uppercase",
|
|
@@ -60676,11 +60828,11 @@
|
|
|
60676
60828
|
height: sectionproperties.imageInnerWidth_Height + '%',
|
|
60677
60829
|
objectFit: sectionproperties.bgcovercontain == 'Cover' ? 'cover' : 'contain'
|
|
60678
60830
|
}
|
|
60679
|
-
})), item.
|
|
60831
|
+
})), item.currentquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' && item.hasvariants == 0 && sectionproperties.outofstock_centered == 'Not centered' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
60680
60832
|
"class": "".concat(card_cssstyles.outstockbadge) + ' allcentered '
|
|
60681
60833
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
60682
60834
|
"class": "m-0 p-0"
|
|
60683
|
-
}, langdetect == 'en' ? sectionproperties.outstock_contenten : sectionproperties.outstock_contentar)), item.
|
|
60835
|
+
}, langdetect == 'en' ? sectionproperties.outstock_contenten : sectionproperties.outstock_contentar)), item.currentquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' && item.hasvariants == 0 && sectionproperties.outofstock_centered == 'Centered' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
60684
60836
|
"class": "".concat(card_cssstyles.outstockbadgecentered) + ' allcentered '
|
|
60685
60837
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
60686
60838
|
"class": "m-0 p-0"
|
|
@@ -60690,7 +60842,7 @@
|
|
|
60690
60842
|
if (sectionproperties.quantitybtn_show == 'Show' && showquantity == false) {
|
|
60691
60843
|
setshowquantity(true);
|
|
60692
60844
|
} else {
|
|
60693
|
-
if (item.
|
|
60845
|
+
if (item.currentquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' && item.hasvariants == 0) {
|
|
60694
60846
|
NotificationManager.warning('', langdetect == 'en' ? 'Sold Out' : 'نفذت الكمية');
|
|
60695
60847
|
} else {
|
|
60696
60848
|
setShowProductInfoModalContext(true);
|