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.cjs.js
CHANGED
|
@@ -1480,6 +1480,7 @@ var Variantoptions = function Variantoptions(props) {
|
|
|
1480
1480
|
|
|
1481
1481
|
//productidprops
|
|
1482
1482
|
var ProductHeaderPricing = function ProductHeaderPricing(props) {
|
|
1483
|
+
var _fetchProductInfoQuer, _fetchProductInfoQuer2, _fetchProductInfoQuer3, _fetchProductInfoQuer4, _fetchProductInfoQuer5, _fetchProductInfoQuer6;
|
|
1483
1484
|
props.actions.lang;
|
|
1484
1485
|
var langdetect = props.actions.langdetect;
|
|
1485
1486
|
var fetchProductInfoQueryContext = props.actions.fetchProductInfoQueryContext;
|
|
@@ -1488,19 +1489,7 @@ var ProductHeaderPricing = function ProductHeaderPricing(props) {
|
|
|
1488
1489
|
var variantindexcompleted = props.actions.variantindexcompleted;
|
|
1489
1490
|
var getprice_discountpriceprops = props.actions.getprice_discountpriceprops;
|
|
1490
1491
|
var quantityconditionfoundobjprops = props.actions.quantityconditionfoundobjprops;
|
|
1491
|
-
var productinfo_cssstyles =
|
|
1492
|
-
profitcontainer: glamor.css({
|
|
1493
|
-
width: sectionproperties.profitcontainerwidth + '%',
|
|
1494
|
-
height: sectionproperties.profitcontainerheight + 'px',
|
|
1495
|
-
background: sectionproperties.profitcontainerbgcolor,
|
|
1496
|
-
border: sectionproperties.profitcontainerborderwidth + 'px solid' + sectionproperties.profitcontainerbordercolor,
|
|
1497
|
-
borderRadius: sectionproperties.profitcontainerborderradius + 'px',
|
|
1498
|
-
color: sectionproperties.profitcontainercolor,
|
|
1499
|
-
'@media (max-width: 800px)': {
|
|
1500
|
-
width: '90%'
|
|
1501
|
-
}
|
|
1502
|
-
})
|
|
1503
|
-
};
|
|
1492
|
+
var productinfo_cssstyles = props.actions.productinfo_cssstyles;
|
|
1504
1493
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1505
1494
|
"class": "col-lg-12 p-0"
|
|
1506
1495
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -1582,7 +1571,21 @@ var ProductHeaderPricing = function ProductHeaderPricing(props) {
|
|
|
1582
1571
|
fontSize: '13px',
|
|
1583
1572
|
lineHeight: '25px'
|
|
1584
1573
|
}
|
|
1585
|
-
}, '-' + 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.
|
|
1574
|
+
}, '-' + 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", {
|
|
1575
|
+
"class": "col-lg-12 p-0 d-flex justify-content-start mt-1 mb-2"
|
|
1576
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1577
|
+
"class": "".concat(productinfo_cssstyles.cashbackoutercontainer) + ' d-flex flex-row allcentered px-2 '
|
|
1578
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
1579
|
+
"class": "m-0 p-0",
|
|
1580
|
+
style: {
|
|
1581
|
+
fontWeight: 500
|
|
1582
|
+
}
|
|
1583
|
+
}, langdetect == 'en' ? sectionproperties.cashbackcontainercontenten : sectionproperties.cashbackcontainercontentar), /*#__PURE__*/React__default["default"].createElement("p", {
|
|
1584
|
+
"class": "m-0 p-0 mx-1",
|
|
1585
|
+
style: {
|
|
1586
|
+
fontWeight: 600
|
|
1587
|
+
}
|
|
1588
|
+
}, 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", {
|
|
1586
1589
|
"class": "col-lg-12 p-0 mb-2"
|
|
1587
1590
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1588
1591
|
"class": productinfo_cssstyles.profitcontainer + ' allcentered '
|
|
@@ -1766,7 +1769,7 @@ var ProductExtraFields = function ProductExtraFields(props) {
|
|
|
1766
1769
|
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; }
|
|
1767
1770
|
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; }
|
|
1768
1771
|
var Product_itemtype = function Product_itemtype(props) {
|
|
1769
|
-
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,
|
|
1772
|
+
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;
|
|
1770
1773
|
var lang = props.actions.lang;
|
|
1771
1774
|
var langdetect = props.actions.langdetect;
|
|
1772
1775
|
var srcfromprops = props.actions.srcfromprops;
|
|
@@ -1862,7 +1865,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
1862
1865
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1863
1866
|
className: "col-xl-5 col-lg-4 col-md-12 col-sm-12 mb-md-3 pb-md-4 pl-1 pr-1"
|
|
1864
1867
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1865
|
-
className: sectionproperties.maximizegalleryfullscreen == 'Yes' ? 'col-lg-12 p-0 maximize' : 'col-lg-12 p-0',
|
|
1868
|
+
className: sectionproperties.maximizegalleryfullscreen == 'Yes' ? ' col-lg-12 p-0 maximize ' : 'col-lg-12 p-0',
|
|
1866
1869
|
style: {
|
|
1867
1870
|
width: '100%',
|
|
1868
1871
|
height: 'auto'
|
|
@@ -2001,7 +2004,13 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
2001
2004
|
fontSize: sectionproperties.skuFontSize + 'px',
|
|
2002
2005
|
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
2003
2006
|
}
|
|
2004
|
-
}, fetchProductInfoQueryContext.data.data.productinfo.sku))), sectionproperties.
|
|
2007
|
+
}, 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", {
|
|
2008
|
+
"class": "col-lg-12 p-0 d-flex justify-content-start mb-2"
|
|
2009
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2010
|
+
"class": "".concat(productinfo_cssstyles.outstockbadge) + ' allcentered '
|
|
2011
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
2012
|
+
"class": "m-0 p-0"
|
|
2013
|
+
}, 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", {
|
|
2005
2014
|
"class": "mb-4 col-lg-12",
|
|
2006
2015
|
style: {
|
|
2007
2016
|
width: '100%',
|
|
@@ -2021,9 +2030,9 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
2021
2030
|
style: {
|
|
2022
2031
|
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
2023
2032
|
}
|
|
2024
|
-
}, langdetect == 'en' ? 'Delivery Time' : 'مدة الشحن', ": ", fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (
|
|
2033
|
+
}, 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, {
|
|
2025
2034
|
actions: props.actions
|
|
2026
|
-
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (
|
|
2035
|
+
}), (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", {
|
|
2027
2036
|
className: "row m-0 w-100 d-flex align-items-start"
|
|
2028
2037
|
}, 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) {
|
|
2029
2038
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -2098,7 +2107,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
2098
2107
|
}
|
|
2099
2108
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2100
2109
|
className: "row m-0 w-100 d-flex align-items-center"
|
|
2101
|
-
}, (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (
|
|
2110
|
+
}, (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", {
|
|
2102
2111
|
className: "col-lg-12 p-0 mb-2 d-flex justofy-content-start"
|
|
2103
2112
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
2104
2113
|
className: "m-0 p-0",
|
|
@@ -2115,7 +2124,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
2115
2124
|
style: {
|
|
2116
2125
|
justifyContent: sectionproperties.cartbtncentered == 'Centered' ? 'center' : 'start'
|
|
2117
2126
|
}
|
|
2118
|
-
}, sectionproperties.quantitybtn_show == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (
|
|
2127
|
+
}, 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", {
|
|
2119
2128
|
className: " ".concat(productinfo_cssstyles.quantitybtn) + ' p-0 d-flex align-items-center justify-content-center mb-sm-2 ',
|
|
2120
2129
|
style: {
|
|
2121
2130
|
height: sectionproperties.quantitybtn_height + 'px',
|
|
@@ -2157,7 +2166,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
2157
2166
|
}
|
|
2158
2167
|
}, sectionproperties.quantityiconstyle == 'Plus/Minus' && /*#__PURE__*/React__default["default"].createElement(FiPlus.FiPlus, {
|
|
2159
2168
|
size: sectionproperties.add_quantitybtn_textfontsize
|
|
2160
|
-
})))), sectionproperties.cartbtnalone == 'Besides Other Buttons' && sectionproperties.cartBtnShow == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (
|
|
2169
|
+
})))), 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", {
|
|
2161
2170
|
className: "".concat(productinfo_cssstyles.cart_btn, " ") + ' ml-2 mr-2 d-flex align-items-center justify-content-center mb-sm-2 ',
|
|
2162
2171
|
onClick: function onClick() {
|
|
2163
2172
|
if (fetchProductInfoQueryContext.data.data.productinfo.maximumproductquant >= addtocardpayloadobj.quantity && fetchProductInfoQueryContext.data.data.productinfo.minimumproductquant <= addtocardpayloadobj.quantity) {
|
|
@@ -2223,7 +2232,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
2223
2232
|
size: sectionproperties.favBtnIconfontsize
|
|
2224
2233
|
}), sectionproperties.faviconshape == 'Heart Shape' && /*#__PURE__*/React__default["default"].createElement(FaRegHeart.FaRegHeart, {
|
|
2225
2234
|
size: sectionproperties.favBtnIconfontsize
|
|
2226
|
-
}))))), sectionproperties.cartbtnalone == 'Alone' && sectionproperties.cartBtnShow == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (
|
|
2235
|
+
}))))), 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", {
|
|
2227
2236
|
"class": "row m-0 w-100 mt-3",
|
|
2228
2237
|
style: {
|
|
2229
2238
|
overflow: 'hidden'
|
|
@@ -2297,7 +2306,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
2297
2306
|
size: sectionproperties.favBtnIconfontsize
|
|
2298
2307
|
}), sectionproperties.faviconshape == 'Heart Shape' && /*#__PURE__*/React__default["default"].createElement(FaRegHeart.FaRegHeart, {
|
|
2299
2308
|
size: sectionproperties.favBtnIconfontsize
|
|
2300
|
-
})))))))), sectionproperties.productInformationType == 'Product/Service Information' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (
|
|
2309
|
+
})))))))), 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", {
|
|
2301
2310
|
className: "col-lg-12 p-0 mb-3"
|
|
2302
2311
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2303
2312
|
className: "row m-0 w-100 d-flex flex-row"
|
|
@@ -2334,7 +2343,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
2334
2343
|
style: {
|
|
2335
2344
|
textDecoration: 'none'
|
|
2336
2345
|
}
|
|
2337
|
-
}, "-"), 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 : (
|
|
2346
|
+
}, "-"), 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", {
|
|
2338
2347
|
className: "col-lg-12 p-0 mb-3 mt-2"
|
|
2339
2348
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2340
2349
|
style: {
|
|
@@ -4733,6 +4742,40 @@ var Productinfo = function Productinfo(props) {
|
|
|
4733
4742
|
backgroundColor: sectionproperties.checkoutBtnbgColoronhover,
|
|
4734
4743
|
color: sectionproperties.checkoutBtncoloronhover
|
|
4735
4744
|
}
|
|
4745
|
+
}),
|
|
4746
|
+
outstockbadge: glamor.css({
|
|
4747
|
+
minWidth: sectionproperties.outstock_width + 'px',
|
|
4748
|
+
height: sectionproperties.outstock_height + 'px',
|
|
4749
|
+
background: sectionproperties.outstock_bg,
|
|
4750
|
+
color: sectionproperties.outstock_color,
|
|
4751
|
+
fontSize: sectionproperties.outstock_fontSize + 'px',
|
|
4752
|
+
borderRadius: sectionproperties.outstock_borderradius + 'px'
|
|
4753
|
+
}),
|
|
4754
|
+
cashbackoutercontainer: glamor.css({
|
|
4755
|
+
// minWidth: 'fit-content',
|
|
4756
|
+
width: sectionproperties.cashbackcontainerwidth + '%',
|
|
4757
|
+
height: sectionproperties.cashbackcontainerheight + 'px',
|
|
4758
|
+
background: sectionproperties.cashbackcontainerbgcolor,
|
|
4759
|
+
color: sectionproperties.cashbackcontainercolor,
|
|
4760
|
+
fontSize: sectionproperties.cashbackcontainerfontsize + 'px',
|
|
4761
|
+
border: sectionproperties.cashbackcontainerborderwidth + 'px ' + sectionproperties.cashbackcontainerborderstyle + sectionproperties.cashbackcontainerbordercolor,
|
|
4762
|
+
borderRadius: sectionproperties.cashbackcontainerborderradius + 'px'
|
|
4763
|
+
}),
|
|
4764
|
+
profitcontainer: glamor.css({
|
|
4765
|
+
width: sectionproperties.profitcontainerwidth + '%',
|
|
4766
|
+
height: sectionproperties.profitcontainerheight + 'px',
|
|
4767
|
+
background: sectionproperties.profitcontainerbgcolor,
|
|
4768
|
+
border: sectionproperties.profitcontainerborderwidth + 'px solid' + sectionproperties.profitcontainerbordercolor,
|
|
4769
|
+
borderRadius: sectionproperties.profitcontainerborderradius + 'px',
|
|
4770
|
+
color: sectionproperties.profitcontainercolor,
|
|
4771
|
+
'@media (max-width: 800px)': {
|
|
4772
|
+
width: '90%'
|
|
4773
|
+
}
|
|
4774
|
+
}),
|
|
4775
|
+
imagegallery: glamor.css({
|
|
4776
|
+
'.image-gallery-thumbnail.active': {
|
|
4777
|
+
border: '2px solid red '
|
|
4778
|
+
}
|
|
4736
4779
|
})
|
|
4737
4780
|
};
|
|
4738
4781
|
var getprice_discountpriceprops = function getprice_discountpriceprops(type, withtotal, variantindexcompleted) {
|
|
@@ -4787,7 +4830,11 @@ var Productinfo = function Productinfo(props) {
|
|
|
4787
4830
|
if (withtotal == true) {
|
|
4788
4831
|
price = price * quantity;
|
|
4789
4832
|
}
|
|
4790
|
-
|
|
4833
|
+
if (price != undefined) {
|
|
4834
|
+
return price;
|
|
4835
|
+
} else {
|
|
4836
|
+
return 0;
|
|
4837
|
+
}
|
|
4791
4838
|
};
|
|
4792
4839
|
var getQuantityCondition = function getQuantityCondition() {
|
|
4793
4840
|
var _fetchProductInfoQuer46, _fetchProductInfoQuer47, _fetchProductInfoQuer48, _fetchProductInfoQuer49;
|
|
@@ -7572,7 +7619,7 @@ var Checkout = function Checkout(props) {
|
|
|
7572
7619
|
endpointurl: '/usewalletpoints',
|
|
7573
7620
|
mutateSuccesscallback: function mutateSuccesscallback(data, variables) {
|
|
7574
7621
|
if (data.data.status) {
|
|
7575
|
-
NotificationManager.success('', '
|
|
7622
|
+
NotificationManager.success('', langdetect == 'en' ? 'Done' : 'تم');
|
|
7576
7623
|
fetchcustomercartQueryContext.refetch();
|
|
7577
7624
|
} else {
|
|
7578
7625
|
NotificationManager.warning('', data.data.reason);
|
|
@@ -7800,13 +7847,19 @@ var Checkout = function Checkout(props) {
|
|
|
7800
7847
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7801
7848
|
className: "row m-0 w-100"
|
|
7802
7849
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7803
|
-
className: "col-lg-12 col-md-12 col-sm-12 p-0"
|
|
7850
|
+
className: "col-lg-12 col-md-12 col-sm-12 p-0 d-flex justify-content-start"
|
|
7804
7851
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
7805
|
-
className: "".concat(checkoutstyles.productNameStyles) + ' m-0 p-0
|
|
7852
|
+
className: "".concat(checkoutstyles.productNameStyles) + ' m-0 p-0 w-100 ',
|
|
7853
|
+
style: {
|
|
7854
|
+
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
7855
|
+
}
|
|
7806
7856
|
}, langdetect == 'en' ? item.productinfo.name_en : item.productinfo.name_ar)), sectionproperties.producttype == 'Product' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7807
|
-
className: "col-lg-12 p-0"
|
|
7857
|
+
className: "col-lg-12 p-0 d-flex justify-content-start"
|
|
7808
7858
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
7809
|
-
className: "m-0 p-0 font-weight-500 text-light
|
|
7859
|
+
className: "m-0 p-0 font-weight-500 text-light w-100",
|
|
7860
|
+
style: {
|
|
7861
|
+
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
7862
|
+
}
|
|
7810
7863
|
}, lang.qty, ": ", item.quantity)))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7811
7864
|
className: "col-lg-3 col-md-3 col-sm-2 p-0"
|
|
7812
7865
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -7964,7 +8017,7 @@ var Checkout = function Checkout(props) {
|
|
|
7964
8017
|
className: "col-lg-6 col-md-6 col-sm-6 p-0"
|
|
7965
8018
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
7966
8019
|
className: "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 d-flex align-items-center wordbreak '
|
|
7967
|
-
},
|
|
8020
|
+
}, langdetect == 'en' ? 'Wallet points used' : 'النقاط المستخدمة')), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7968
8021
|
className: "col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0"
|
|
7969
8022
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
7970
8023
|
className: langdetect == 'en' ? "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-right ' : "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-left ',
|
|
@@ -12849,12 +12902,15 @@ var CardsSection = function CardsSection(props) {
|
|
|
12849
12902
|
cardobj.defaultsaleprice = arrayItem.productinfo.defaultsaleprice;
|
|
12850
12903
|
cardobj.productimages = arrayItem.productinfo.productimages;
|
|
12851
12904
|
cardobj.quantity = itemquantity;
|
|
12905
|
+
// cardobj.currentquantity = currentquantity;
|
|
12852
12906
|
cardobj.timestamp = arrayItem.productinfo.timestamp;
|
|
12853
12907
|
cardobj.productquantity = arrayItem.productinfo.productquantity;
|
|
12908
|
+
cardobj.currentquantity = arrayItem.productinfo.currentquantity;
|
|
12854
12909
|
cardobj.quantavailtype = arrayItem.productinfo.quantavailtype;
|
|
12855
12910
|
cardobj.isproducttobesold = arrayItem.productinfo.isproducttobesold;
|
|
12856
12911
|
cardobj.measurmentunit = arrayItem.productinfo.measurmentunit;
|
|
12857
12912
|
cardobj.prodaffpercentprofit = arrayItem.productinfo.prodaffpercentprofit;
|
|
12913
|
+
cardobj.productcashbackvalue = arrayItem.productinfo.productcashbackvalue;
|
|
12858
12914
|
if (langdetect == 'en') {
|
|
12859
12915
|
cardobj.currencyname = fetchAuthorizationQueryContext === null || fetchAuthorizationQueryContext === void 0 ? void 0 : fetchAuthorizationQueryContext.data.data.currencyname_en;
|
|
12860
12916
|
} else {
|
|
@@ -14295,7 +14351,7 @@ var Subheader = function Subheader(props) {
|
|
|
14295
14351
|
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; }
|
|
14296
14352
|
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; }
|
|
14297
14353
|
var Headerresponsive = function Headerresponsive(props) {
|
|
14298
|
-
var _logoarrayofobjects$, _logoarrayofobjects$2, _authdetailsContext$i, _authdetailsContext$i2, _authdetailsContext$i3, _authdetailsContext$i4, _authdetailsContext$i5, _authdetailsContext$i6;
|
|
14354
|
+
var _logoarrayofobjects$, _logoarrayofobjects$2, _authdetailsContext$c, _authdetailsContext$c2, _authdetailsContext$i, _authdetailsContext$i2, _authdetailsContext$i3, _authdetailsContext$i4, _authdetailsContext$i5, _authdetailsContext$i6;
|
|
14299
14355
|
var actions = props.actions;
|
|
14300
14356
|
var LogoutMutationContext = props.actions.LogoutMutationContext;
|
|
14301
14357
|
var setsidecartnavshowcontext = props.actions.setsidecartnavshowcontext;
|
|
@@ -14710,6 +14766,10 @@ var Headerresponsive = function Headerresponsive(props) {
|
|
|
14710
14766
|
}
|
|
14711
14767
|
}, /*#__PURE__*/React__default["default"].createElement(Dropdown__default["default"].Item, {
|
|
14712
14768
|
className: "".concat(header_cssstyles.dropdownitem) + ' d-flex align-items-center justify-content-center '
|
|
14769
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
14770
|
+
"class": "row m-0 w-100"
|
|
14771
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
14772
|
+
"class": 'flex-row w-100 d-flex justify-content-start'
|
|
14713
14773
|
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
14714
14774
|
style: {
|
|
14715
14775
|
color: '#8fa0bd',
|
|
@@ -14724,7 +14784,23 @@ var Headerresponsive = function Headerresponsive(props) {
|
|
|
14724
14784
|
color: sectionproperties.dropdownusernamecolor,
|
|
14725
14785
|
fontSize: sectionproperties.dropdownusernamefontsize + 'px'
|
|
14726
14786
|
}
|
|
14727
|
-
}, authdetailsContext.customerinfo.name)), /*#__PURE__*/React__default["default"].createElement(
|
|
14787
|
+
}, 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", {
|
|
14788
|
+
"class": ' row w-100 m-0 p-0 flex-row mt-1 w-100 justify-content-start'
|
|
14789
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
14790
|
+
"class": "m-0 p-0",
|
|
14791
|
+
style: {
|
|
14792
|
+
color: templateproperties_context.walletcontainercolorresponsive,
|
|
14793
|
+
fontSize: templateproperties_context.walletfontize + 'px',
|
|
14794
|
+
fontWeight: 500
|
|
14795
|
+
}
|
|
14796
|
+
}, langdetect == 'en' ? templateproperties_context.walletcontent_en : templateproperties_context.walletcontent_ar), /*#__PURE__*/React__default["default"].createElement("p", {
|
|
14797
|
+
"class": "m-0 p-0 mx-1",
|
|
14798
|
+
style: {
|
|
14799
|
+
color: templateproperties_context.walletcontainersecondarycolorresponsive,
|
|
14800
|
+
fontSize: '15px',
|
|
14801
|
+
fontWeight: 600
|
|
14802
|
+
}
|
|
14803
|
+
}, 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, {
|
|
14728
14804
|
style: {
|
|
14729
14805
|
marginBottom: 0,
|
|
14730
14806
|
marginTop: 0
|
|
@@ -17006,7 +17082,10 @@ var ClassicHeader = function ClassicHeader(props) {
|
|
|
17006
17082
|
style: {
|
|
17007
17083
|
width: sectionproperties.header_width + 'vw'
|
|
17008
17084
|
}
|
|
17009
|
-
}, /*#__PURE__*/React__default["default"].createElement(
|
|
17085
|
+
}, sectionproperties.showtextslider == 'Show' && /*#__PURE__*/React__default["default"].createElement(MarqueeHeader, {
|
|
17086
|
+
sectionpropertiesprops: sectionproperties,
|
|
17087
|
+
actions: actions
|
|
17088
|
+
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
17010
17089
|
"class": "".concat(headerstyles$d.headercontainer) + ' col-lg-12 pl-0 pr-0 d-md-none ',
|
|
17011
17090
|
style: {
|
|
17012
17091
|
position: sectionproperties.headerstyles_position,
|
|
@@ -29618,7 +29697,7 @@ var HeaderWithSearchOnCenter = function HeaderWithSearchOnCenter(props) {
|
|
|
29618
29697
|
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; }
|
|
29619
29698
|
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; }
|
|
29620
29699
|
var TwoTieredHeader = function TwoTieredHeader(props) {
|
|
29621
|
-
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;
|
|
29700
|
+
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;
|
|
29622
29701
|
var lang = props.actions.lang;
|
|
29623
29702
|
var langdetect = props.actions.langdetect;
|
|
29624
29703
|
var setlang = props.actions.setlang;
|
|
@@ -29644,6 +29723,10 @@ var TwoTieredHeader = function TwoTieredHeader(props) {
|
|
|
29644
29723
|
_useState4 = _slicedToArray__default["default"](_useState3, 2),
|
|
29645
29724
|
dropdownselect = _useState4[0],
|
|
29646
29725
|
setdropdownselect = _useState4[1];
|
|
29726
|
+
var _useState5 = React.useState([]),
|
|
29727
|
+
_useState6 = _slicedToArray__default["default"](_useState5, 2),
|
|
29728
|
+
logoarrayofobjects = _useState6[0],
|
|
29729
|
+
setlogoarrayofobjects = _useState6[1];
|
|
29647
29730
|
React.useEffect(function () {
|
|
29648
29731
|
var secpropobj = {};
|
|
29649
29732
|
StatePagePropertiesContext.pageobj.sections.forEach(function (sectionitem, sectionindex) {
|
|
@@ -29662,10 +29745,6 @@ var TwoTieredHeader = function TwoTieredHeader(props) {
|
|
|
29662
29745
|
}
|
|
29663
29746
|
setsectionproperties(_objectSpread$1u({}, secpropobj));
|
|
29664
29747
|
}, [StatePagePropertiesContext]);
|
|
29665
|
-
var _useState5 = React.useState([]),
|
|
29666
|
-
_useState6 = _slicedToArray__default["default"](_useState5, 2),
|
|
29667
|
-
logoarrayofobjects = _useState6[0],
|
|
29668
|
-
setlogoarrayofobjects = _useState6[1];
|
|
29669
29748
|
React.useEffect(function () {
|
|
29670
29749
|
if (templateproperties_context.length != 0 && templateproperties_context.logoarrayofobjects != undefined) {
|
|
29671
29750
|
var logoarrayofobjectsparsed = JSON.parse(templateproperties_context.logoarrayofobjects);
|
|
@@ -29938,6 +30017,12 @@ var TwoTieredHeader = function TwoTieredHeader(props) {
|
|
|
29938
30017
|
marginBottom: sectionproperties.header_marginBottom + 'px',
|
|
29939
30018
|
width: sectionproperties.header_width + 'vw',
|
|
29940
30019
|
maxWidth: '100vw'
|
|
30020
|
+
}),
|
|
30021
|
+
walletoutercontainer: glamor.css({
|
|
30022
|
+
height: templateproperties_context.walletcontainerheight + 'px',
|
|
30023
|
+
width: 'fit-content',
|
|
30024
|
+
border: '2px dashed white',
|
|
30025
|
+
borderRadius: 5
|
|
29941
30026
|
})
|
|
29942
30027
|
};
|
|
29943
30028
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -30139,8 +30224,8 @@ var TwoTieredHeader = function TwoTieredHeader(props) {
|
|
|
30139
30224
|
"class": langdetect == 'en' ? 'headerdropdownml dropdown-toggle_w100' : 'headerdropdownmr dropdown-toggle_w100',
|
|
30140
30225
|
style: {
|
|
30141
30226
|
width: authdetailsContext.loggedin == true ? 'auto' : langdetect == 'en' ? '105px' : '120px',
|
|
30142
|
-
marginRight: langdetect == 'en' ? sectionproperties.btnsposition == 'Bottom' ? '13px' : '.1rem' : 0,
|
|
30143
|
-
marginLeft: langdetect == 'ar' ? sectionproperties.btnsposition == 'Bottom' ? '13px' : '.1rem' : 0
|
|
30227
|
+
marginRight: langdetect == 'en' ? sectionproperties.showfooterphonenumber == 'Hide' && sectionproperties.lang_position == 'Top' && authdetailsContext.loggedin == true ? '3.5rem' : sectionproperties.btnsposition == 'Bottom' ? '13px' : '.1rem' : 0,
|
|
30228
|
+
marginLeft: langdetect == 'ar' ? sectionproperties.showfooterphonenumber == 'Hide' && sectionproperties.lang_position == 'Top' && authdetailsContext.loggedin == true ? '3.5rem' : sectionproperties.btnsposition == 'Bottom' ? '13px' : '.1rem' : 0
|
|
30144
30229
|
}
|
|
30145
30230
|
}, /*#__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", {
|
|
30146
30231
|
"class": ' d-flex justify-content-center align-items-center '
|
|
@@ -30184,7 +30269,7 @@ var TwoTieredHeader = function TwoTieredHeader(props) {
|
|
|
30184
30269
|
style: {
|
|
30185
30270
|
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
30186
30271
|
}
|
|
30187
|
-
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
30272
|
+
}, (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", {
|
|
30188
30273
|
"class": "m-0 p-0",
|
|
30189
30274
|
style: {
|
|
30190
30275
|
color: sectionproperties.greetingtextcolor,
|
|
@@ -30197,7 +30282,24 @@ var TwoTieredHeader = function TwoTieredHeader(props) {
|
|
|
30197
30282
|
style: {
|
|
30198
30283
|
maxWidth: sectionproperties.showfooterphonenumber == 'Show' ? '65px' : '140px'
|
|
30199
30284
|
}
|
|
30200
|
-
}, authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$
|
|
30285
|
+
}, 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", {
|
|
30286
|
+
"class": ' m-0 p-0 d-flex justify-content-start flex-row ',
|
|
30287
|
+
style: {}
|
|
30288
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
30289
|
+
"class": "m-0 p-0",
|
|
30290
|
+
style: {
|
|
30291
|
+
color: templateproperties_context.walletcolor,
|
|
30292
|
+
fontSize: templateproperties_context.walletfontize + 'px',
|
|
30293
|
+
fontWeight: 500
|
|
30294
|
+
}
|
|
30295
|
+
}, langdetect == 'en' ? templateproperties_context.walletcontent_en : templateproperties_context.walletcontent_ar), /*#__PURE__*/React__default["default"].createElement("p", {
|
|
30296
|
+
"class": "m-0 p-0 mx-1",
|
|
30297
|
+
style: {
|
|
30298
|
+
color: templateproperties_context.walletsecondarycolor,
|
|
30299
|
+
fontSize: '15px',
|
|
30300
|
+
fontWeight: 600
|
|
30301
|
+
}
|
|
30302
|
+
}, 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, {
|
|
30201
30303
|
onClick: function onClick() {
|
|
30202
30304
|
routingcountext(StaticPagesLinksContext.Login);
|
|
30203
30305
|
}
|
|
@@ -30232,7 +30334,7 @@ var TwoTieredHeader = function TwoTieredHeader(props) {
|
|
|
30232
30334
|
onClick: function onClick() {
|
|
30233
30335
|
routingcountext(StaticPagesLinksContext.accountinfo);
|
|
30234
30336
|
}
|
|
30235
|
-
}, authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$
|
|
30337
|
+
}, 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, {
|
|
30236
30338
|
onClick: function onClick() {
|
|
30237
30339
|
routingcountext(StaticPagesLinksContext.Ordershistory);
|
|
30238
30340
|
}
|
|
@@ -49091,7 +49193,7 @@ var CircleCardWithVariants = function CircleCardWithVariants(props) {
|
|
|
49091
49193
|
borderBottomRightRadius: langdetect == 'en' ? sectionproperties.image_borderBottomRightRadius + 'px' : sectionproperties.image_borderBottomLeftRadius + 'px',
|
|
49092
49194
|
borderTopLeftRadius: langdetect == 'en' ? sectionproperties.image_bordertopleftradius + 'px' : sectionproperties.image_bordertoprightradius + 'px',
|
|
49093
49195
|
borderTopRightRadius: langdetect == 'en' ? sectionproperties.image_bordertoprightradius + 'px' : sectionproperties.image_bordertopleftradius + 'px',
|
|
49094
|
-
opacity: item.
|
|
49196
|
+
opacity: item.currentquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' && item.hasvariants == 0 ? 0.4 : 1
|
|
49095
49197
|
|
|
49096
49198
|
// border: sectionproperties.image_borderwidth + 'px solid ' + sectionproperties.image_bordercolor,
|
|
49097
49199
|
},
|
|
@@ -49124,7 +49226,7 @@ var CircleCardWithVariants = function CircleCardWithVariants(props) {
|
|
|
49124
49226
|
fontSize: sectionproperties.pillfontSize + 'px',
|
|
49125
49227
|
direction: 'ltr'
|
|
49126
49228
|
}
|
|
49127
|
-
}, '-' + Math.round(10.0 * ((parseInt(item.defaultprice) - parseInt(item.defaultsaleprice)) / parseInt(item.defaultprice)) * 100) / 10.0 + '%')), item.
|
|
49229
|
+
}, '-' + 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", {
|
|
49128
49230
|
"class": "".concat(card_cssstyles.outstockbadge) + ' allcentered '
|
|
49129
49231
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
49130
49232
|
"class": "m-0 p-0"
|
|
@@ -49175,7 +49277,7 @@ var CircleCardWithVariants = function CircleCardWithVariants(props) {
|
|
|
49175
49277
|
}))), sectionproperties.cartBtnShow == 'Show' && showquantity == false && /*#__PURE__*/React__default["default"].createElement("button", {
|
|
49176
49278
|
"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 ',
|
|
49177
49279
|
onClick: function onClick() {
|
|
49178
|
-
if (item.
|
|
49280
|
+
if (item.currentquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' && item.hasvariants == 0) {
|
|
49179
49281
|
NotificationManager.warning('', langdetect == 'en' ? 'Sold Out' : 'نفذت الكمية');
|
|
49180
49282
|
} else if (sectionproperties.quantitybtn_show == 'Show') {
|
|
49181
49283
|
setshowquantity(true);
|
|
@@ -51047,6 +51149,7 @@ var Card23 = function Card23(props) {
|
|
|
51047
51149
|
_useState6 = _slicedToArray__default["default"](_useState5, 2),
|
|
51048
51150
|
secondimage = _useState6[0],
|
|
51049
51151
|
setsecondimage = _useState6[1];
|
|
51152
|
+
props.actions.NotificationManager;
|
|
51050
51153
|
var StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
|
|
51051
51154
|
props.actions.lang;
|
|
51052
51155
|
var langdetect = props.actions.langdetect;
|
|
@@ -51215,6 +51318,31 @@ var Card23 = function Card23(props) {
|
|
|
51215
51318
|
borderBottomRightRadius: langdetect == 'en' ? sectionproperties.image_borderBottomRightRadius + 'px' : sectionproperties.image_borderBottomLeftRadius + 'px',
|
|
51216
51319
|
borderTopLeftRadius: langdetect == 'en' ? sectionproperties.image_bordertopleftradius + 'px' : sectionproperties.image_bordertoprightradius + 'px',
|
|
51217
51320
|
borderTopRightRadius: langdetect == 'en' ? sectionproperties.image_bordertoprightradius + 'px' : sectionproperties.image_bordertopleftradius + 'px'
|
|
51321
|
+
}),
|
|
51322
|
+
outstockbadge: glamor.css({
|
|
51323
|
+
width: sectionproperties.outstock_width + 'px',
|
|
51324
|
+
height: sectionproperties.outstock_height + 'px',
|
|
51325
|
+
background: sectionproperties.outstock_bg,
|
|
51326
|
+
color: sectionproperties.outstock_color,
|
|
51327
|
+
fontSize: sectionproperties.outstock_fontSize + 'px',
|
|
51328
|
+
borderRadius: sectionproperties.outstock_borderradius + 'px',
|
|
51329
|
+
position: 'absolute',
|
|
51330
|
+
zIndex: 2,
|
|
51331
|
+
top: 0,
|
|
51332
|
+
bottom: 0,
|
|
51333
|
+
left: 0,
|
|
51334
|
+
right: 0,
|
|
51335
|
+
margin: 'auto'
|
|
51336
|
+
}),
|
|
51337
|
+
cashbackoutercontainer: glamor.css({
|
|
51338
|
+
minWidth: 'fit-content',
|
|
51339
|
+
maxWidth: sectionproperties.cashbackcontainerwidth + '%',
|
|
51340
|
+
height: sectionproperties.cashbackcontainerheight + 'px',
|
|
51341
|
+
background: sectionproperties.cashbackcontainerbgcolor,
|
|
51342
|
+
color: sectionproperties.cashbackcontainercolor,
|
|
51343
|
+
fontSize: sectionproperties.cashbackcontainerfontsize + 'px',
|
|
51344
|
+
border: sectionproperties.cashbackcontainerborderwidth + 'px ' + sectionproperties.cashbackcontainerborderstyle + sectionproperties.cashbackcontainerbordercolor,
|
|
51345
|
+
borderRadius: sectionproperties.cashbackcontainerborderradius + 'px'
|
|
51218
51346
|
})
|
|
51219
51347
|
};
|
|
51220
51348
|
var plainString = function plainString(html) {
|
|
@@ -51228,13 +51356,17 @@ var Card23 = function Card23(props) {
|
|
|
51228
51356
|
transition = true;
|
|
51229
51357
|
}
|
|
51230
51358
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
51231
|
-
"class": "w-100 cursor-pointer"
|
|
51359
|
+
"class": "w-100 cursor-pointer",
|
|
51360
|
+
style: {
|
|
51361
|
+
position: 'relative'
|
|
51362
|
+
}
|
|
51232
51363
|
}, /*#__PURE__*/React__default["default"].createElement(Imagekitimagecomp, {
|
|
51233
51364
|
"class": transition ? cardstyles$7.intialimage : '',
|
|
51234
51365
|
urlEndpoint: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint,
|
|
51235
51366
|
publicKey: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimagepublickey,
|
|
51236
51367
|
path: '/tr:w-' + sectionproperties.imagetr_w + ',h-' + sectionproperties.imagetr_h + '/' + item.image,
|
|
51237
51368
|
style: {
|
|
51369
|
+
opacity: item.currentquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' && item.hasvariants == 0 ? sectionproperties.outofstockimageopcity : 1,
|
|
51238
51370
|
width: sectionproperties.imageInnerWidth_Height + '%',
|
|
51239
51371
|
height: sectionproperties.imageInnerWidth_Height + '%',
|
|
51240
51372
|
objectFit: sectionproperties.bgcovercontain == 'Cover' ? 'cover' : 'contain',
|
|
@@ -51271,8 +51403,8 @@ var Card23 = function Card23(props) {
|
|
|
51271
51403
|
"class": "row m-0 align-items-center justify-content-center",
|
|
51272
51404
|
style: {
|
|
51273
51405
|
position: 'absolute',
|
|
51274
|
-
top:
|
|
51275
|
-
left:
|
|
51406
|
+
top: sectionproperties.badge_top + 'px',
|
|
51407
|
+
left: sectionproperties.badge_right + 'px',
|
|
51276
51408
|
height: sectionproperties.badge_height + 'px',
|
|
51277
51409
|
width: sectionproperties.badge_width + 'px',
|
|
51278
51410
|
backgroundColor: sectionproperties.badge_bgcolor,
|
|
@@ -51303,7 +51435,11 @@ var Card23 = function Card23(props) {
|
|
|
51303
51435
|
fontSize: sectionproperties.pillfontSize + 'px',
|
|
51304
51436
|
direction: 'ltr'
|
|
51305
51437
|
}
|
|
51306
|
-
}, '-' + Math.round(10.0 * ((parseInt(item.defaultprice) - parseInt(item.defaultsaleprice)) / parseInt(item.defaultprice)) * 100) / 10.0 + '%'))
|
|
51438
|
+
}, '-' + 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", {
|
|
51439
|
+
"class": "".concat(cardsstyles2.outstockbadge) + ' allcentered '
|
|
51440
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
51441
|
+
"class": "m-0 p-0"
|
|
51442
|
+
}, langdetect == 'en' ? sectionproperties.outstock_contenten : sectionproperties.outstock_contentar)));
|
|
51307
51443
|
};
|
|
51308
51444
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
51309
51445
|
"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',
|
|
@@ -51413,7 +51549,21 @@ var Card23 = function Card23(props) {
|
|
|
51413
51549
|
paddingTop: '10px',
|
|
51414
51550
|
paddingBottom: '10px'
|
|
51415
51551
|
}
|
|
51552
|
+
}, sectionproperties.showcashbackcontainer == 'Show' && item.productcashbackvalue > 0 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
51553
|
+
"class": "col-lg-12 p-0 d-flex justify-content-start my-1"
|
|
51416
51554
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
51555
|
+
"class": "".concat(cardsstyles2.cashbackoutercontainer) + ' d-flex flex-row allcentered px-2 '
|
|
51556
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
51557
|
+
"class": "m-0 p-0",
|
|
51558
|
+
style: {
|
|
51559
|
+
fontWeight: 500
|
|
51560
|
+
}
|
|
51561
|
+
}, langdetect == 'en' ? sectionproperties.cashbackcontainercontenten : sectionproperties.cashbackcontainercontentar), /*#__PURE__*/React__default["default"].createElement("p", {
|
|
51562
|
+
"class": "m-0 p-0 mx-1",
|
|
51563
|
+
style: {
|
|
51564
|
+
fontWeight: 600
|
|
51565
|
+
}
|
|
51566
|
+
}, langdetect == 'en' ? item.currencyname : '', " ", item.productcashbackvalue, " ", langdetect == 'en' ? '' : item.currencyname))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
51417
51567
|
"class": "col-lg-12 p-0"
|
|
51418
51568
|
}, sectionproperties.prodCatShow == 'Show' && /*#__PURE__*/React__default["default"].createElement("p", {
|
|
51419
51569
|
"class": "".concat(cardsstyles2.productDescStyles) + ' col-lg-12 wordbreak wordbreak1 p-0 m-0 ',
|
|
@@ -51437,14 +51587,20 @@ var Card23 = function Card23(props) {
|
|
|
51437
51587
|
"class": "row m-0 w-100 align-items-center mt-1 mb-1"
|
|
51438
51588
|
}, sectionproperties.prodPriceShow == 'Show' && /*#__PURE__*/React__default["default"].createElement("p", {
|
|
51439
51589
|
"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 '
|
|
51440
|
-
}, langdetect == 'en' ?
|
|
51590
|
+
}, 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", {
|
|
51441
51591
|
"class": "".concat(cardsstyles2.productSalePricestyles)
|
|
51442
51592
|
}, "/"), sectionproperties.prodsalePriceshow == 'Show' && item.hassale == 1 && /*#__PURE__*/React__default["default"].createElement("p", {
|
|
51443
51593
|
"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 '
|
|
51444
|
-
}, langdetect == 'en' ?
|
|
51594
|
+
}, langdetect == 'en' ? item.currencyname : '', " ", item.defaultprice, " ", langdetect == 'en' ? '' : item.currencyname)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
51445
51595
|
"class": "d-flex align-items-center m-0"
|
|
51446
51596
|
}, sectionproperties.cartBtnShow == 'Show' && /*#__PURE__*/React__default["default"].createElement("button", {
|
|
51447
|
-
"class": "".concat(cardsstyles2.cart_btn) + ' allcentered '
|
|
51597
|
+
"class": "".concat(cardsstyles2.cart_btn) + ' allcentered '
|
|
51598
|
+
// onClick={() => {
|
|
51599
|
+
// setShowProductInfoModalContext(true);
|
|
51600
|
+
// setProductIdProdutInfoModalContext(item.productid);
|
|
51601
|
+
|
|
51602
|
+
// }}
|
|
51603
|
+
,
|
|
51448
51604
|
onClick: function onClick() {
|
|
51449
51605
|
setShowProductInfoModalContext(true);
|
|
51450
51606
|
setProductIdProdutInfoModalContext(item.productid);
|
|
@@ -51911,7 +52067,7 @@ var Card23 = function Card23(props) {
|
|
|
51911
52067
|
// : `${cardsstyles2.productPricestyles}` + ' m-0 wordbreak d-flex align-items-center text-left text-sm-right '
|
|
51912
52068
|
// }
|
|
51913
52069
|
// >
|
|
51914
|
-
//
|
|
52070
|
+
// {langdetect == 'en' ? item.currencyname : ''} {item.hassale == 1 ? item.defaultsaleprice : item.defaultprice} {langdetect == 'en' ? '' : item.currencyname}
|
|
51915
52071
|
// </p>
|
|
51916
52072
|
// )}
|
|
51917
52073
|
// {sectionproperties.prodsalePriceshow == 'Show' && item.hassale == 1 && <span class={`${cardsstyles2.productSalePricestyles}`}>/</span>}
|
|
@@ -51923,7 +52079,7 @@ var Card23 = function Card23(props) {
|
|
|
51923
52079
|
// : `${cardsstyles2.productSalePricestyles}` + ' linethrough m-0 wordbreak d-flex mt-sm-auto mb-sm-auto text-left text-sm-right '
|
|
51924
52080
|
// }
|
|
51925
52081
|
// >
|
|
51926
|
-
//
|
|
52082
|
+
// {langdetect == 'en' ? item.currencyname : ''} {item.defaultprice} {langdetect == 'en' ? '' : item.currencyname}
|
|
51927
52083
|
// </p>
|
|
51928
52084
|
// )}
|
|
51929
52085
|
// </div>
|
|
@@ -52170,7 +52326,7 @@ var Card23 = function Card23(props) {
|
|
|
52170
52326
|
// : `${cardsstyles2.productPricestyles}` + ' m-0 wordbreak d-flex align-items-center text-left text-sm-right '
|
|
52171
52327
|
// }
|
|
52172
52328
|
// >
|
|
52173
|
-
//
|
|
52329
|
+
// {langdetect == 'en' ? item.currencyname : ''} {item.hassale == 1 ? item.defaultsaleprice : item.defaultprice} {langdetect == 'en' ? '' : item.currencyname}
|
|
52174
52330
|
// </p>
|
|
52175
52331
|
// )}
|
|
52176
52332
|
// {sectionproperties.prodsalePriceshow == 'Show' && item.hassale == 1 && <span class={`${cardsstyles2.productSalePricestyles}`}>/</span>}
|
|
@@ -52182,7 +52338,7 @@ var Card23 = function Card23(props) {
|
|
|
52182
52338
|
// : `${cardsstyles2.productSalePricestyles}` + ' linethrough m-0 wordbreak d-flex mt-sm-auto mb-sm-auto text-left text-sm-right '
|
|
52183
52339
|
// }
|
|
52184
52340
|
// >
|
|
52185
|
-
//
|
|
52341
|
+
// {langdetect == 'en' ? item.currencyname : ''} {item.defaultprice} {langdetect == 'en' ? '' : item.currencyname}
|
|
52186
52342
|
// </p>
|
|
52187
52343
|
// )}
|
|
52188
52344
|
// </div>
|
|
@@ -52741,7 +52897,7 @@ var Productcard_with_zoominonhover = function Productcard_with_zoominonhover(pro
|
|
|
52741
52897
|
borderTopLeftRadius: langdetect == 'en' ? sectionproperties.image_bordertopleftradius + 'px' : sectionproperties.image_bordertoprightradius + 'px',
|
|
52742
52898
|
borderTopRightRadius: langdetect == 'en' ? sectionproperties.image_bordertoprightradius + 'px' : sectionproperties.image_bordertopleftradius + 'px',
|
|
52743
52899
|
background: sectionproperties.image_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.image_bgcolor,
|
|
52744
|
-
opacity: item.
|
|
52900
|
+
opacity: item.currentquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' ? 0.4 : 1
|
|
52745
52901
|
}),
|
|
52746
52902
|
quantitybtn: glamor.css({
|
|
52747
52903
|
flex: 1,
|
|
@@ -52963,7 +53119,7 @@ var Productcard_with_zoominonhover = function Productcard_with_zoominonhover(pro
|
|
|
52963
53119
|
color: sectionproperties.badge_color,
|
|
52964
53120
|
fontSize: sectionproperties.badge_fontsize + 'px'
|
|
52965
53121
|
}
|
|
52966
|
-
}, langdetect == 'en' ? sectionproperties.badgeContentEn : sectionproperties.badgeContentAr)), item.
|
|
53122
|
+
}, langdetect == 'en' ? sectionproperties.badgeContentEn : sectionproperties.badgeContentAr)), item.currentquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
52967
53123
|
"class": "".concat(cardsstyles2.outstockbadge) + ' allcentered '
|
|
52968
53124
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
52969
53125
|
"class": "m-0 p-0"
|
|
@@ -53003,7 +53159,7 @@ var Productcard_with_zoominonhover = function Productcard_with_zoominonhover(pro
|
|
|
53003
53159
|
transform: ' rotate(-180deg)'
|
|
53004
53160
|
},
|
|
53005
53161
|
onClick: function onClick() {
|
|
53006
|
-
if (item.
|
|
53162
|
+
if (item.currentquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit') {
|
|
53007
53163
|
NotificationManager.warning('', langdetect == 'en' ? 'Sold Out' : 'نفذت الكمية');
|
|
53008
53164
|
} else if (item.hasvariants == 0) {
|
|
53009
53165
|
updatequantity('remove');
|
|
@@ -53017,7 +53173,7 @@ var Productcard_with_zoominonhover = function Productcard_with_zoominonhover(pro
|
|
|
53017
53173
|
})), langdetect == 'ar' && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
53018
53174
|
"class": "".concat(cardsstyles2.add_quantitybtn_icon_container) + ' m-1 ',
|
|
53019
53175
|
onClick: function onClick() {
|
|
53020
|
-
if (item.
|
|
53176
|
+
if (item.currentquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit') {
|
|
53021
53177
|
NotificationManager.warning('', langdetect == 'en' ? 'Sold Out' : 'نفذت الكمية');
|
|
53022
53178
|
} else if (item.hasvariants == 0) {
|
|
53023
53179
|
updatequantity('add');
|
|
@@ -53036,7 +53192,7 @@ var Productcard_with_zoominonhover = function Productcard_with_zoominonhover(pro
|
|
|
53036
53192
|
transform: ' rotate(-180deg)'
|
|
53037
53193
|
},
|
|
53038
53194
|
onClick: function onClick() {
|
|
53039
|
-
if (item.
|
|
53195
|
+
if (item.currentquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit') {
|
|
53040
53196
|
NotificationManager.warning('', langdetect == 'en' ? 'Sold Out' : 'نفذت الكمية');
|
|
53041
53197
|
} else if (item.hasvariants == 0) {
|
|
53042
53198
|
updatequantity('remove');
|
|
@@ -53050,7 +53206,7 @@ var Productcard_with_zoominonhover = function Productcard_with_zoominonhover(pro
|
|
|
53050
53206
|
})), langdetect == 'en' && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
53051
53207
|
"class": "".concat(cardsstyles2.add_quantitybtn_icon_container) + ' m-1 ',
|
|
53052
53208
|
onClick: function onClick() {
|
|
53053
|
-
if (item.
|
|
53209
|
+
if (item.currentquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit') {
|
|
53054
53210
|
NotificationManager.warning('', langdetect == 'en' ? 'Sold Out' : 'نفذت الكمية');
|
|
53055
53211
|
} else if (item.hasvariants == 0) {
|
|
53056
53212
|
updatequantity('add');
|
|
@@ -57273,7 +57429,7 @@ var Productcard_with_slideanimation = function Productcard_with_slideanimation(p
|
|
|
57273
57429
|
borderBottomRightRadius: langdetect == 'en' ? sectionproperties.image_borderBottomRightRadius + 'px' : sectionproperties.image_borderBottomLeftRadius + 'px',
|
|
57274
57430
|
borderTopLeftRadius: langdetect == 'en' ? sectionproperties.image_bordertopleftradius + 'px' : sectionproperties.image_bordertoprightradius + 'px',
|
|
57275
57431
|
borderTopRightRadius: langdetect == 'en' ? sectionproperties.image_bordertoprightradius + 'px' : sectionproperties.image_bordertopleftradius + 'px',
|
|
57276
|
-
opacity: item.
|
|
57432
|
+
opacity: item.currentquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' && item.hasvariants == 0 ? 0.4 : 1
|
|
57277
57433
|
}
|
|
57278
57434
|
}), sectionproperties.showbadge == 'Show' && item.hassale == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
57279
57435
|
"class": "allcentered",
|
|
@@ -57311,7 +57467,7 @@ var Productcard_with_slideanimation = function Productcard_with_slideanimation(p
|
|
|
57311
57467
|
fontSize: sectionproperties.pillfontSize + 'px',
|
|
57312
57468
|
direction: 'ltr'
|
|
57313
57469
|
}
|
|
57314
|
-
}, '-' + Math.round(10.0 * ((parseInt(item.defaultprice) - parseInt(item.defaultsaleprice)) / parseInt(item.defaultprice)) * 100) / 10.0 + '%')), item.
|
|
57470
|
+
}, '-' + 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", {
|
|
57315
57471
|
"class": "".concat(card_cssstyles.outstockbadge) + ' allcentered '
|
|
57316
57472
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
57317
57473
|
"class": "m-0 p-0"
|
|
@@ -57337,7 +57493,7 @@ var Productcard_with_slideanimation = function Productcard_with_slideanimation(p
|
|
|
57337
57493
|
}, sectionproperties.cartBtnShow == 'Show' && /*#__PURE__*/React__default["default"].createElement("p", {
|
|
57338
57494
|
"class": "".concat(card_cssstyles.cart_btn) + ' m-0 p-0 d-flex align-items-center justify-content-center cursor-pointer ',
|
|
57339
57495
|
onClick: function onClick() {
|
|
57340
|
-
if (item.
|
|
57496
|
+
if (item.currentquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' && item.hasvariants == 0) {
|
|
57341
57497
|
NotificationManager.warning('', langdetect == 'en' ? 'Sold Out' : 'نفذت الكمية');
|
|
57342
57498
|
} else {
|
|
57343
57499
|
setShowProductInfoModalContext(true);
|
|
@@ -59057,7 +59213,7 @@ var Simpleproductcard = function Simpleproductcard(props) {
|
|
|
59057
59213
|
var setProductIdProdutInfoModalContext = props.actions.setProductIdProdutInfoModalContext;
|
|
59058
59214
|
var cardonclickfunctionContext = props.actions.cardonclickfunctionContext;
|
|
59059
59215
|
var ikimagecredcontext = props.actions.ikimagecredcontext;
|
|
59060
|
-
|
|
59216
|
+
props.actions.NotificationManager;
|
|
59061
59217
|
var plainString = function plainString(html) {
|
|
59062
59218
|
var divContainer = document.createElement('div');
|
|
59063
59219
|
divContainer.innerHTML = html;
|
|
@@ -59095,7 +59251,7 @@ var Simpleproductcard = function Simpleproductcard(props) {
|
|
|
59095
59251
|
borderTopLeftRadius: langdetect == 'en' ? sectionproperties.image_bordertopleftradius + 'px' : sectionproperties.image_bordertoprightradius + 'px',
|
|
59096
59252
|
borderTopRightRadius: langdetect == 'en' ? sectionproperties.image_bordertoprightradius + 'px' : sectionproperties.image_bordertopleftradius + 'px',
|
|
59097
59253
|
transition: '.3s',
|
|
59098
|
-
opacity: item.
|
|
59254
|
+
opacity: item.currentquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' && item.hasvariants == 0 ? 0.4 : 1,
|
|
59099
59255
|
'@media (max-width: 800px)': {
|
|
59100
59256
|
height: sectionproperties.height_responsive != null ? sectionproperties.height_responsive + 'px' : sectionproperties.image_height + 'px'
|
|
59101
59257
|
}
|
|
@@ -59311,7 +59467,7 @@ var Simpleproductcard = function Simpleproductcard(props) {
|
|
|
59311
59467
|
height: sectionproperties.imageInnerWidth_Height + '%',
|
|
59312
59468
|
objectFit: sectionproperties.bgcovercontain == 'Cover' ? 'cover' : 'contain'
|
|
59313
59469
|
}
|
|
59314
|
-
})), item.
|
|
59470
|
+
})), item.currentquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' && item.hasvariants == 0 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
59315
59471
|
"class": "".concat(card_cssstyles.outstockbadge) + ' allcentered '
|
|
59316
59472
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
59317
59473
|
"class": "m-0 p-0"
|
|
@@ -59395,12 +59551,8 @@ var Simpleproductcard = function Simpleproductcard(props) {
|
|
|
59395
59551
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
59396
59552
|
"class": "".concat(card_cssstyles.cart_btn) + ' m-0 p-0 d-flex align-items-center justify-content-center mt-1 ',
|
|
59397
59553
|
onClick: function onClick() {
|
|
59398
|
-
|
|
59399
|
-
|
|
59400
|
-
} else {
|
|
59401
|
-
setShowProductInfoModalContext(true);
|
|
59402
|
-
setProductIdProdutInfoModalContext(item.productid);
|
|
59403
|
-
}
|
|
59554
|
+
setShowProductInfoModalContext(true);
|
|
59555
|
+
setProductIdProdutInfoModalContext(item.productid);
|
|
59404
59556
|
}
|
|
59405
59557
|
}, sectionproperties.cartBtn_iconFontSize != 0 && /*#__PURE__*/React__default["default"].createElement("i", {
|
|
59406
59558
|
"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'
|
|
@@ -60521,7 +60673,7 @@ var QuantityButtonBasedProductCard = function QuantityButtonBasedProductCard(pro
|
|
|
60521
60673
|
borderBottomRightRadius: langdetect == 'en' ? sectionproperties.image_borderBottomRightRadius + 'px' : sectionproperties.image_borderBottomLeftRadius + 'px',
|
|
60522
60674
|
borderTopLeftRadius: langdetect == 'en' ? sectionproperties.image_bordertopleftradius + 'px' : sectionproperties.image_bordertoprightradius + 'px',
|
|
60523
60675
|
borderTopRightRadius: langdetect == 'en' ? sectionproperties.image_bordertoprightradius + 'px' : sectionproperties.image_bordertopleftradius + 'px',
|
|
60524
|
-
opacity: item.
|
|
60676
|
+
opacity: item.currentquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' && item.hasvariants == 0 ? sectionproperties.outofstockimageopcity : 1,
|
|
60525
60677
|
transition: '.3s'
|
|
60526
60678
|
}),
|
|
60527
60679
|
productNameStyles: glamor.css({
|
|
@@ -60753,7 +60905,7 @@ var QuantityButtonBasedProductCard = function QuantityButtonBasedProductCard(pro
|
|
|
60753
60905
|
height: sectionproperties.badge_height + 'px',
|
|
60754
60906
|
background: sectionproperties.badge_bgcolor,
|
|
60755
60907
|
borderRadius: sectionproperties.badge_borderradius + 'px',
|
|
60756
|
-
display: item.
|
|
60908
|
+
display: item.currentquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' && item.hasvariants == 0 && sectionproperties.outofstock_replacebadges == 'Replace' ? 'none' : 'flex'
|
|
60757
60909
|
}
|
|
60758
60910
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
60759
60911
|
"class": "m-0 p-0",
|
|
@@ -60773,7 +60925,7 @@ var QuantityButtonBasedProductCard = function QuantityButtonBasedProductCard(pro
|
|
|
60773
60925
|
height: sectionproperties.pillheight + 'px',
|
|
60774
60926
|
background: sectionproperties.pillbgcolor,
|
|
60775
60927
|
borderRadius: sectionproperties.pillborderBottomLeftRadius + 'px',
|
|
60776
|
-
display: item.
|
|
60928
|
+
display: item.currentquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' && item.hasvariants == 0 && sectionproperties.outofstock_replacebadges == 'Replace' ? 'none' : 'flex'
|
|
60777
60929
|
}
|
|
60778
60930
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
60779
60931
|
"class": "m-0 p-0 text-uppercase",
|
|
@@ -60831,11 +60983,11 @@ var QuantityButtonBasedProductCard = function QuantityButtonBasedProductCard(pro
|
|
|
60831
60983
|
height: sectionproperties.imageInnerWidth_Height + '%',
|
|
60832
60984
|
objectFit: sectionproperties.bgcovercontain == 'Cover' ? 'cover' : 'contain'
|
|
60833
60985
|
}
|
|
60834
|
-
})), item.
|
|
60986
|
+
})), item.currentquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' && item.hasvariants == 0 && sectionproperties.outofstock_centered == 'Not centered' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
60835
60987
|
"class": "".concat(card_cssstyles.outstockbadge) + ' allcentered '
|
|
60836
60988
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
60837
60989
|
"class": "m-0 p-0"
|
|
60838
|
-
}, langdetect == 'en' ? sectionproperties.outstock_contenten : sectionproperties.outstock_contentar)), item.
|
|
60990
|
+
}, 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", {
|
|
60839
60991
|
"class": "".concat(card_cssstyles.outstockbadgecentered) + ' allcentered '
|
|
60840
60992
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
60841
60993
|
"class": "m-0 p-0"
|
|
@@ -60845,7 +60997,7 @@ var QuantityButtonBasedProductCard = function QuantityButtonBasedProductCard(pro
|
|
|
60845
60997
|
if (sectionproperties.quantitybtn_show == 'Show' && showquantity == false) {
|
|
60846
60998
|
setshowquantity(true);
|
|
60847
60999
|
} else {
|
|
60848
|
-
if (item.
|
|
61000
|
+
if (item.currentquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' && item.hasvariants == 0) {
|
|
60849
61001
|
NotificationManager.warning('', langdetect == 'en' ? 'Sold Out' : 'نفذت الكمية');
|
|
60850
61002
|
} else {
|
|
60851
61003
|
setShowProductInfoModalContext(true);
|