tabexseriescomponents 0.0.332 → 0.0.334
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 +263 -81
- package/dist/index.esm.js +263 -81
- package/dist/index.umd.js +263 -81
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -1517,9 +1517,8 @@ var Variantoptions = function Variantoptions(props) {
|
|
|
1517
1517
|
}))));
|
|
1518
1518
|
};
|
|
1519
1519
|
|
|
1520
|
-
//productidprops
|
|
1521
1520
|
var ProductHeaderPricing = function ProductHeaderPricing(props) {
|
|
1522
|
-
var
|
|
1521
|
+
var _fetchProductInfoQuer5, _fetchProductInfoQuer6, _fetchProductInfoQuer7, _fetchProductInfoQuer8, _fetchProductInfoQuer9, _fetchProductInfoQuer10, _fetchProductInfoQuer11, _fetchProductInfoQuer12, _fetchProductInfoQuer13, _fetchProductInfoQuer14, _fetchProductInfoQuer15, _fetchProductInfoQuer16, _fetchProductInfoQuer17, _fetchProductInfoQuer18, _fetchProductInfoQuer19, _fetchProductInfoQuer20, _fetchProductInfoQuer21, _fetchProductInfoQuer22, _fetchProductInfoQuer23, _fetchProductInfoQuer24, _fetchProductInfoQuer25;
|
|
1523
1522
|
props.actions.lang;
|
|
1524
1523
|
var langdetect = props.actions.langdetect;
|
|
1525
1524
|
var fetchProductInfoQueryContext = props.actions.fetchProductInfoQueryContext;
|
|
@@ -1529,6 +1528,63 @@ var ProductHeaderPricing = function ProductHeaderPricing(props) {
|
|
|
1529
1528
|
var getprice_discountpriceprops = props.actions.getprice_discountpriceprops;
|
|
1530
1529
|
var quantityconditionfoundobjprops = props.actions.quantityconditionfoundobjprops;
|
|
1531
1530
|
var productinfo_cssstyles = props.actions.productinfo_cssstyles;
|
|
1531
|
+
var _useState = React.useState(''),
|
|
1532
|
+
_useState2 = _slicedToArray__default["default"](_useState, 2),
|
|
1533
|
+
defaultpricing = _useState2[0],
|
|
1534
|
+
setdefaultpricing = _useState2[1];
|
|
1535
|
+
React.useEffect(function () {
|
|
1536
|
+
var _fetchProductInfoQuer, _fetchProductInfoQuer2, _fetchProductInfoQuer3, _fetchProductInfoQuer4;
|
|
1537
|
+
var price = '';
|
|
1538
|
+
if (variantindexcompleted == undefined && fetchProductInfoQueryContext.data.data.productinfo.hassale == 0) {
|
|
1539
|
+
price = getprice_discountpriceprops('defaultprice', 0, variantindexcompleted);
|
|
1540
|
+
} else if (variantindexcompleted == undefined && fetchProductInfoQueryContext.data.data.productinfo.hassale == 1) {
|
|
1541
|
+
price = getprice_discountpriceprops('defaultsaleprice', 0, variantindexcompleted);
|
|
1542
|
+
} else if (variantindexcompleted != undefined && (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 : (_fetchProductInfoQuer4 = _fetchProductInfoQuer3.variants[variantindexcompleted]) === null || _fetchProductInfoQuer4 === void 0 ? void 0 : _fetchProductInfoQuer4.hassale) == 1) {
|
|
1543
|
+
price = getprice_discountpriceprops('defaultsaleprice', 0, variantindexcompleted);
|
|
1544
|
+
} else {
|
|
1545
|
+
price = getprice_discountpriceprops('defaultprice', 0, variantindexcompleted);
|
|
1546
|
+
}
|
|
1547
|
+
setdefaultpricing(price);
|
|
1548
|
+
}, [variantindexcompleted]);
|
|
1549
|
+
var SaleCounterPill = function SaleCounterPill() {
|
|
1550
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1551
|
+
"class": "row m-0 w-100"
|
|
1552
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1553
|
+
"class": "col-lg-12 p-0 d-flex align-items-center justift-content-start"
|
|
1554
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
1555
|
+
"class": "m-0 p-0 d-flex align-items-center justift-content-start"
|
|
1556
|
+
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
1557
|
+
style: {
|
|
1558
|
+
fontSize: sectionproperties.counterTitleFontSize + 'px',
|
|
1559
|
+
color: sectionproperties.counterTitleColor,
|
|
1560
|
+
fontWeight: sectionproperties.counterTitleFontWeight
|
|
1561
|
+
}
|
|
1562
|
+
}, langdetect == 'en' ? sectionproperties.countertitleen : sectionproperties.countertitlear), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
1563
|
+
"class": "ml-1 mr-1",
|
|
1564
|
+
style: {
|
|
1565
|
+
fontSize: sectionproperties.counterValueFontSize + 'px',
|
|
1566
|
+
color: sectionproperties.counterValueColor,
|
|
1567
|
+
fontWeight: sectionproperties.counterValueFontWeight
|
|
1568
|
+
}
|
|
1569
|
+
}, parseFloat(getprice_discountpriceprops('defaultprice', 0, variantindexcompleted) - getprice_discountpriceprops('defaultsaleprice', 0, variantindexcompleted)).toFixed(2), ' ', langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1570
|
+
style: {
|
|
1571
|
+
background: sectionproperties.pillbgcolor,
|
|
1572
|
+
width: 'fit-content',
|
|
1573
|
+
borderRadius: sectionproperties.pillborderBottomLeftRadius + 'px',
|
|
1574
|
+
border: sectionproperties.pillBorderWidth + 'px solid ' + sectionproperties.pillBorderColor,
|
|
1575
|
+
direction: 'ltr'
|
|
1576
|
+
},
|
|
1577
|
+
"class": "ml-2 mr-2"
|
|
1578
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
1579
|
+
"class": "m-0 pl-2 pr-2 py-0",
|
|
1580
|
+
style: {
|
|
1581
|
+
color: sectionproperties.pillcolor,
|
|
1582
|
+
fontWeight: sectionproperties.pillfontWeight,
|
|
1583
|
+
fontSize: '13px',
|
|
1584
|
+
lineHeight: '25px'
|
|
1585
|
+
}
|
|
1586
|
+
}, '-' + 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) + '%'))));
|
|
1587
|
+
};
|
|
1532
1588
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1533
1589
|
"class": "col-lg-12 p-0"
|
|
1534
1590
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -1563,54 +1619,37 @@ var ProductHeaderPricing = function ProductHeaderPricing(props) {
|
|
|
1563
1619
|
fontWeight: sectionproperties.defaultPriceFontWeight,
|
|
1564
1620
|
color: sectionproperties.defaultPriceColor
|
|
1565
1621
|
}
|
|
1566
|
-
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ',
|
|
1622
|
+
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', defaultpricing, " ", langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar), fetchProductInfoQueryContext.data.data.productinfo.hassale == 1 && fetchProductInfoQueryContext.data.data.productinfo.hasvariants == 0 && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
1567
1623
|
style: {
|
|
1568
1624
|
fontSize: sectionproperties.defaultSalePriceFontSize + 'px',
|
|
1569
1625
|
fontWeight: sectionproperties.defaultSalePriceFontWeight,
|
|
1570
1626
|
color: sectionproperties.defaultSalePriceColor
|
|
1571
1627
|
}
|
|
1572
|
-
}, ' ', "-", ' '), fetchProductInfoQueryContext.data.data.productinfo.hassale == 1 && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
1573
|
-
"class": "linethrough",
|
|
1628
|
+
}, ' ', "-", ' '), fetchProductInfoQueryContext.data.data.productinfo.hasvariants == 1 && variantindexcompleted != undefined && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer5 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer5 === void 0 ? void 0 : (_fetchProductInfoQuer6 = _fetchProductInfoQuer5.data) === null || _fetchProductInfoQuer6 === void 0 ? void 0 : (_fetchProductInfoQuer7 = _fetchProductInfoQuer6.productinfo) === null || _fetchProductInfoQuer7 === void 0 ? void 0 : (_fetchProductInfoQuer8 = _fetchProductInfoQuer7.variants[variantindexcompleted]) === null || _fetchProductInfoQuer8 === void 0 ? void 0 : _fetchProductInfoQuer8.hassale) == 1 && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
1574
1629
|
style: {
|
|
1575
1630
|
fontSize: sectionproperties.defaultSalePriceFontSize + 'px',
|
|
1576
1631
|
fontWeight: sectionproperties.defaultSalePriceFontWeight,
|
|
1577
1632
|
color: sectionproperties.defaultSalePriceColor
|
|
1578
1633
|
}
|
|
1579
|
-
},
|
|
1580
|
-
"class": "
|
|
1581
|
-
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
1582
|
-
"class": "m-0 p-0 d-flex align-items-center justift-content-start"
|
|
1583
|
-
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
1584
|
-
style: {
|
|
1585
|
-
fontSize: sectionproperties.counterTitleFontSize + 'px',
|
|
1586
|
-
color: sectionproperties.counterTitleColor,
|
|
1587
|
-
fontWeight: sectionproperties.counterTitleFontWeight
|
|
1588
|
-
}
|
|
1589
|
-
}, langdetect == 'en' ? sectionproperties.countertitleen : sectionproperties.countertitlear), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
1590
|
-
"class": "ml-1 mr-1",
|
|
1634
|
+
}, ' ', "-", ' '), fetchProductInfoQueryContext.data.data.productinfo.hassale == 1 && fetchProductInfoQueryContext.data.data.productinfo.hasvariants == 0 && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
1635
|
+
"class": "linethrough",
|
|
1591
1636
|
style: {
|
|
1592
|
-
fontSize: sectionproperties.
|
|
1593
|
-
|
|
1594
|
-
|
|
1637
|
+
fontSize: sectionproperties.defaultSalePriceFontSize + 'px',
|
|
1638
|
+
fontWeight: sectionproperties.defaultSalePriceFontWeight,
|
|
1639
|
+
color: sectionproperties.defaultSalePriceColor
|
|
1595
1640
|
}
|
|
1596
|
-
},
|
|
1597
|
-
|
|
1598
|
-
background: sectionproperties.pillbgcolor,
|
|
1599
|
-
width: 'fit-content',
|
|
1600
|
-
borderRadius: sectionproperties.pillborderBottomLeftRadius + 'px',
|
|
1601
|
-
border: sectionproperties.pillBorderWidth + 'px solid ' + sectionproperties.pillBorderColor,
|
|
1602
|
-
direction: 'ltr'
|
|
1603
|
-
},
|
|
1604
|
-
"class": "ml-2 mr-2"
|
|
1605
|
-
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
1606
|
-
"class": "m-0 pl-2 pr-2 py-0",
|
|
1641
|
+
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', " ", getprice_discountpriceprops('defaultprice', 0, variantindexcompleted), ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer9 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer9 === void 0 ? void 0 : (_fetchProductInfoQuer10 = _fetchProductInfoQuer9.data) === null || _fetchProductInfoQuer10 === void 0 ? void 0 : (_fetchProductInfoQuer11 = _fetchProductInfoQuer10.productinfo) === null || _fetchProductInfoQuer11 === void 0 ? void 0 : _fetchProductInfoQuer11.hasvariants) == 1 && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer12 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer12 === void 0 ? void 0 : (_fetchProductInfoQuer13 = _fetchProductInfoQuer12.data) === null || _fetchProductInfoQuer13 === void 0 ? void 0 : (_fetchProductInfoQuer14 = _fetchProductInfoQuer13.productinfo) === null || _fetchProductInfoQuer14 === void 0 ? void 0 : (_fetchProductInfoQuer15 = _fetchProductInfoQuer14.variants[variantindexcompleted]) === null || _fetchProductInfoQuer15 === void 0 ? void 0 : _fetchProductInfoQuer15.hassale) == 1 && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
1642
|
+
"class": "linethrough",
|
|
1607
1643
|
style: {
|
|
1608
|
-
|
|
1609
|
-
fontWeight: sectionproperties.
|
|
1610
|
-
|
|
1611
|
-
lineHeight: '25px'
|
|
1644
|
+
fontSize: sectionproperties.defaultSalePriceFontSize + 'px',
|
|
1645
|
+
fontWeight: sectionproperties.defaultSalePriceFontWeight,
|
|
1646
|
+
color: sectionproperties.defaultSalePriceColor
|
|
1612
1647
|
}
|
|
1613
|
-
}, '
|
|
1648
|
+
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', " ", getprice_discountpriceprops('defaultprice', 0, variantindexcompleted), ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar))), fetchProductInfoQueryContext.data.data.productinfo.hassale == 1 && sectionproperties.showpill == 'Show' && fetchProductInfoQueryContext.data.data.productinfo.hasvariants == 0 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1649
|
+
"class": "col-lg-12 p-0 d-flex align-items-center justift-content-start"
|
|
1650
|
+
}, SaleCounterPill()), fetchProductInfoQueryContext.data.data.productinfo.hasvariants == 1 && variantindexcompleted != undefined && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer16 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer16 === void 0 ? void 0 : (_fetchProductInfoQuer17 = _fetchProductInfoQuer16.data) === null || _fetchProductInfoQuer17 === void 0 ? void 0 : (_fetchProductInfoQuer18 = _fetchProductInfoQuer17.productinfo) === null || _fetchProductInfoQuer18 === void 0 ? void 0 : (_fetchProductInfoQuer19 = _fetchProductInfoQuer18.variants[variantindexcompleted]) === null || _fetchProductInfoQuer19 === void 0 ? void 0 : _fetchProductInfoQuer19.hassale) == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1651
|
+
"class": "col-lg-12 p-0 d-flex align-items-center justift-content-start"
|
|
1652
|
+
}, SaleCounterPill()))), sectionproperties.showcashbackcontainer == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer20 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer20 === void 0 ? void 0 : (_fetchProductInfoQuer21 = _fetchProductInfoQuer20.data) === null || _fetchProductInfoQuer21 === void 0 ? void 0 : (_fetchProductInfoQuer22 = _fetchProductInfoQuer21.productinfo) === null || _fetchProductInfoQuer22 === void 0 ? void 0 : _fetchProductInfoQuer22.productcashbackvalue) > 0 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1614
1653
|
"class": "col-lg-12 p-0 d-flex justify-content-start mt-1 mb-2"
|
|
1615
1654
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1616
1655
|
"class": "".concat(productinfo_cssstyles.cashbackoutercontainer) + ' d-flex flex-row allcentered px-2 '
|
|
@@ -1624,7 +1663,7 @@ var ProductHeaderPricing = function ProductHeaderPricing(props) {
|
|
|
1624
1663
|
style: {
|
|
1625
1664
|
fontWeight: 600
|
|
1626
1665
|
}
|
|
1627
|
-
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', " ", fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (
|
|
1666
|
+
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', " ", 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.productcashbackvalue, ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar))), sectionproperties.showprofitcontainer == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1628
1667
|
"class": "col-lg-12 p-0 mb-2"
|
|
1629
1668
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1630
1669
|
"class": productinfo_cssstyles.profitcontainer + ' allcentered '
|
|
@@ -1904,7 +1943,7 @@ var DescriptionContent = function DescriptionContent(props) {
|
|
|
1904
1943
|
function ownKeys$2d(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; }
|
|
1905
1944
|
function _objectSpread$2d(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$2d(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$2d(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
1906
1945
|
var Product_itemtype = function Product_itemtype(props) {
|
|
1907
|
-
var
|
|
1946
|
+
var _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, _fetchProductInfoQuer44, _fetchProductInfoQuer45, _fetchProductInfoQuer46, _fetchProductInfoQuer47, _fetchProductInfoQuer48, _fetchProductInfoQuer49, _fetchProductInfoQuer50, _fetchProductInfoQuer51, _fetchProductInfoQuer52, _fetchProductInfoQuer53, _fetchProductInfoQuer54, _ProductInfoObj$data, _ProductInfoObj$data$, _ProductInfoObj$data$2, _fetchProductInfoQuer55, _fetchProductInfoQuer56, _fetchProductInfoQuer57, _fetchProductInfoQuer58, _fetchProductInfoQuer59, _fetchProductInfoQuer60, _fetchProductInfoQuer61, _fetchProductInfoQuer62, _fetchProductInfoQuer63, _fetchProductInfoQuer64, _fetchProductInfoQuer65, _fetchProductInfoQuer66, _fetchProductInfoQuer67, _fetchProductInfoQuer68, _fetchProductInfoQuer69, _fetchProductInfoQuer70, _fetchProductInfoQuer71, _fetchProductInfoQuer72, _fetchProductInfoQuer73, _fetchProductInfoQuer74, _fetchProductInfoQuer75, _fetchProductInfoQuer76, _fetchProductInfoQuer77, _fetchProductInfoQuer78, _fetchProductInfoQuer79, _fetchProductInfoQuer80, _fetchProductInfoQuer81, _fetchProductInfoQuer82, _fetchProductInfoQuer83, _fetchProductInfoQuer84, _fetchProductInfoQuer85, _fetchProductInfoQuer86, _fetchProductInfoQuer87, _fetchProductInfoQuer88, _fetchProductInfoQuer89, _fetchProductInfoQuer90, _fetchProductInfoQuer91, _fetchProductInfoQuer92, _fetchProductInfoQuer93, _fetchProductInfoQuer94;
|
|
1908
1947
|
var lang = props.actions.lang;
|
|
1909
1948
|
var langdetect = props.actions.langdetect;
|
|
1910
1949
|
var srcfromprops = props.actions.srcfromprops;
|
|
@@ -1943,6 +1982,10 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
1943
1982
|
_useState6 = _slicedToArray__default["default"](_useState5, 2);
|
|
1944
1983
|
_useState6[0];
|
|
1945
1984
|
var setitem = _useState6[1];
|
|
1985
|
+
var _useState7 = React.useState(''),
|
|
1986
|
+
_useState8 = _slicedToArray__default["default"](_useState7, 2),
|
|
1987
|
+
totalprice = _useState8[0],
|
|
1988
|
+
settotalprice = _useState8[1];
|
|
1946
1989
|
React.useEffect(function () {
|
|
1947
1990
|
var itemobj = fetchProductInfoQueryContext.data.data.productinfo;
|
|
1948
1991
|
if (stringIsEnglish(fetchProductInfoQueryContext.data.data.productinfo.name_en)) {
|
|
@@ -2023,6 +2066,23 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
2023
2066
|
round: true
|
|
2024
2067
|
}))))));
|
|
2025
2068
|
};
|
|
2069
|
+
// {fetchProductInfoQueryContext.data.data.productinfo.hassale == 0
|
|
2070
|
+
// ? parseFloat(getprice_discountpriceprops('defaultprice', 1, variantindexcompleted)).toFixed(2)
|
|
2071
|
+
// : parseFloat(getprice_discountpriceprops('defaultsaleprice', 1, variantindexcompleted)).toFixed(2)}
|
|
2072
|
+
React.useEffect(function () {
|
|
2073
|
+
var _fetchProductInfoQuer, _fetchProductInfoQuer2, _fetchProductInfoQuer3, _fetchProductInfoQuer4;
|
|
2074
|
+
var totalprice = '';
|
|
2075
|
+
if (variantindexcompleted == undefined && fetchProductInfoQueryContext.data.data.productinfo.hassale == 0) {
|
|
2076
|
+
totalprice = parseFloat(getprice_discountpriceprops('defaultprice', 0, variantindexcompleted)).toFixed(2);
|
|
2077
|
+
} else if (variantindexcompleted == undefined && fetchProductInfoQueryContext.data.data.productinfo.hassale == 1) {
|
|
2078
|
+
totalprice = parseFloat(getprice_discountpriceprops('defaultsaleprice', 0, variantindexcompleted)).toFixed(2);
|
|
2079
|
+
} else if (variantindexcompleted != undefined && (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 : (_fetchProductInfoQuer4 = _fetchProductInfoQuer3.variants[variantindexcompleted]) === null || _fetchProductInfoQuer4 === void 0 ? void 0 : _fetchProductInfoQuer4.hassale) == 1) {
|
|
2080
|
+
totalprice = parseFloat(getprice_discountpriceprops('defaultsaleprice', 0, variantindexcompleted)).toFixed(2);
|
|
2081
|
+
} else {
|
|
2082
|
+
totalprice = parseFloat(getprice_discountpriceprops('defaultprice', 0, variantindexcompleted)).toFixed(2);
|
|
2083
|
+
}
|
|
2084
|
+
settotalprice(totalprice);
|
|
2085
|
+
}, [variantindexcompleted]);
|
|
2026
2086
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2027
2087
|
className: sectionproperties.card_marginLeft != 0 ? ' row m-0 w-100 pl-lg-3 pr-lg-3 pl-md-4 pr-md-4 p-sm-0 ' : ' row m-0 w-100 p-sm-0 ',
|
|
2028
2088
|
style: {
|
|
@@ -2038,7 +2098,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
2038
2098
|
}
|
|
2039
2099
|
}, sectionproperties.gallerystyle == 'Style 2' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2040
2100
|
"class": "w-100 scrollhorizontalwithscrollbar"
|
|
2041
|
-
}, (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (
|
|
2101
|
+
}, (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer5 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer5 === void 0 ? void 0 : (_fetchProductInfoQuer6 = _fetchProductInfoQuer5.data) === null || _fetchProductInfoQuer6 === void 0 ? void 0 : (_fetchProductInfoQuer7 = _fetchProductInfoQuer6.productinfo) === null || _fetchProductInfoQuer7 === void 0 ? void 0 : (_fetchProductInfoQuer8 = _fetchProductInfoQuer7.productimages) === null || _fetchProductInfoQuer8 === void 0 ? void 0 : _fetchProductInfoQuer8.length) != 0 && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer9 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer9 === void 0 ? void 0 : (_fetchProductInfoQuer10 = _fetchProductInfoQuer9.data) === null || _fetchProductInfoQuer10 === void 0 ? void 0 : (_fetchProductInfoQuer11 = _fetchProductInfoQuer10.productinfo) === null || _fetchProductInfoQuer11 === void 0 ? void 0 : _fetchProductInfoQuer11.productimages.map(function (item, index) {
|
|
2042
2102
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2043
2103
|
"class": ' scrollhorizontalcard mx-2 ',
|
|
2044
2104
|
style: {
|
|
@@ -2109,7 +2169,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
2109
2169
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2110
2170
|
className: "row m-0 w-100"
|
|
2111
2171
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2112
|
-
className: (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (
|
|
2172
|
+
className: (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer12 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer12 === void 0 ? void 0 : (_fetchProductInfoQuer13 = _fetchProductInfoQuer12.data) === null || _fetchProductInfoQuer13 === void 0 ? void 0 : (_fetchProductInfoQuer14 = _fetchProductInfoQuer13.productinfo) === null || _fetchProductInfoQuer14 === void 0 ? void 0 : _fetchProductInfoQuer14.productcanrate) == 1 ? 'col-lg-8 col-md-8 col-sm-8 p-0 mb-1 d-flex justify-content-start align-items-center' : sectionproperties.btnposition == 'Top' ? 'col-lg-8 col-md-8 col-sm-8 p-0 mb-1 d-flex justify-content-start align-items-center' : sectionproperties.availabilitybtnposition == 'Top' && sectionproperties.show_availability == 'Show' ? 'col-lg-8 col-md-8 col-sm-8 p-0 mb-1 d-flex justify-content-start align-items-center' : 'col-lg-12 p-0 mb-1 d-flex justify-content-start align-items-center'
|
|
2113
2173
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
2114
2174
|
className: "".concat(productinfo_cssstyles.productname, " ").concat(productinfo_cssstyles.productnamehover) + ' m-0 p-0 wordbreak d-flex justify-content-start cursor-pointer font-sm-15 ',
|
|
2115
2175
|
onClick: function onClick() {
|
|
@@ -2118,11 +2178,11 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
2118
2178
|
style: {
|
|
2119
2179
|
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
2120
2180
|
}
|
|
2121
|
-
}, langdetect == 'en' ? fetchProductInfoQueryContext.data.data.productinfo.name_en : fetchProductInfoQueryContext.data.data.productinfo.name_ar)), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (
|
|
2181
|
+
}, langdetect == 'en' ? fetchProductInfoQueryContext.data.data.productinfo.name_en : fetchProductInfoQueryContext.data.data.productinfo.name_ar)), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer15 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer15 === void 0 ? void 0 : (_fetchProductInfoQuer16 = _fetchProductInfoQuer15.data) === null || _fetchProductInfoQuer16 === void 0 ? void 0 : (_fetchProductInfoQuer17 = _fetchProductInfoQuer16.productinfo) === null || _fetchProductInfoQuer17 === void 0 ? void 0 : _fetchProductInfoQuer17.productcanrate) == 1 && sectionproperties.showrating == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2122
2182
|
className: "col-lg-4 col-md-4 col-sm-4 p-0 mb-1 d-flex justify-content-end align-items-center"
|
|
2123
2183
|
}, /*#__PURE__*/React__default["default"].createElement(ReactStars__default["default"], {
|
|
2124
2184
|
count: 5,
|
|
2125
|
-
value: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (
|
|
2185
|
+
value: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer18 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer18 === void 0 ? void 0 : (_fetchProductInfoQuer19 = _fetchProductInfoQuer18.data) === null || _fetchProductInfoQuer19 === void 0 ? void 0 : (_fetchProductInfoQuer20 = _fetchProductInfoQuer19.productinfo) === null || _fetchProductInfoQuer20 === void 0 ? void 0 : _fetchProductInfoQuer20.productoverallrate,
|
|
2126
2186
|
edit: false,
|
|
2127
2187
|
size: 18,
|
|
2128
2188
|
emptyIcon: /*#__PURE__*/React__default["default"].createElement("i", {
|
|
@@ -2143,7 +2203,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
2143
2203
|
activeColor: "#ffd700"
|
|
2144
2204
|
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2145
2205
|
className: "col-lg-4 col-md-4 col-sm-4 p-0 mb-1 d-flex justify-content-end align-items-center"
|
|
2146
|
-
}, sectionproperties.availabilitybtnposition == 'Top' && sectionproperties.show_availability == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (
|
|
2206
|
+
}, sectionproperties.availabilitybtnposition == 'Top' && sectionproperties.show_availability == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer21 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer21 === void 0 ? void 0 : (_fetchProductInfoQuer22 = _fetchProductInfoQuer21.data) === null || _fetchProductInfoQuer22 === void 0 ? void 0 : (_fetchProductInfoQuer23 = _fetchProductInfoQuer22.productinfo) === null || _fetchProductInfoQuer23 === void 0 ? void 0 : _fetchProductInfoQuer23.isproducttobesold) == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2147
2207
|
style: {
|
|
2148
2208
|
width: sectionproperties.availability_width + 'px',
|
|
2149
2209
|
height: sectionproperties.availability_height + 'px',
|
|
@@ -2190,7 +2250,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
2190
2250
|
size: sectionproperties.favBtnIconfontsize
|
|
2191
2251
|
}), sectionproperties.faviconshape == 'Heart Shape' && /*#__PURE__*/React__default["default"].createElement(FaRegHeart.FaRegHeart, {
|
|
2192
2252
|
size: sectionproperties.favBtnIconfontsize
|
|
2193
|
-
}))))), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (
|
|
2253
|
+
}))))), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer24 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer24 === void 0 ? void 0 : (_fetchProductInfoQuer25 = _fetchProductInfoQuer24.data) === null || _fetchProductInfoQuer25 === void 0 ? void 0 : (_fetchProductInfoQuer26 = _fetchProductInfoQuer25.productinfo) === null || _fetchProductInfoQuer26 === void 0 ? void 0 : _fetchProductInfoQuer26.vendorinfo) != null && sectionproperties.showvendor == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2194
2254
|
"class": "col-lg-12 p-0 d-flex justify-content-start mt-2 mb-2"
|
|
2195
2255
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
2196
2256
|
"class": "m-0 p-0",
|
|
@@ -2201,8 +2261,8 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
2201
2261
|
style: {
|
|
2202
2262
|
fontWeight: 600
|
|
2203
2263
|
}
|
|
2204
|
-
}, fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (
|
|
2205
|
-
"class": sectionproperties.deliverytimeshow == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (
|
|
2264
|
+
}, fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer27 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer27 === void 0 ? void 0 : (_fetchProductInfoQuer28 = _fetchProductInfoQuer27.data) === null || _fetchProductInfoQuer28 === void 0 ? void 0 : (_fetchProductInfoQuer29 = _fetchProductInfoQuer28.productinfo) === null || _fetchProductInfoQuer29 === void 0 ? void 0 : (_fetchProductInfoQuer30 = _fetchProductInfoQuer29.vendorinfo) === null || _fetchProductInfoQuer30 === void 0 ? void 0 : _fetchProductInfoQuer30.vendorname))), sectionproperties.showSKU == 'Show' && sectionproperties.productInformationType == 'Product/Service Information' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2265
|
+
"class": sectionproperties.deliverytimeshow == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer31 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer31 === void 0 ? void 0 : (_fetchProductInfoQuer32 = _fetchProductInfoQuer31.data) === null || _fetchProductInfoQuer32 === void 0 ? void 0 : (_fetchProductInfoQuer33 = _fetchProductInfoQuer32.productinfo) === null || _fetchProductInfoQuer33 === void 0 ? void 0 : _fetchProductInfoQuer33.deliverydatetext) != null ? 'col-lg-12 p-0 mb-2 d-flex justify-content-start' : 'col-lg-12 p-0 mb-3 d-flex justify-content-start'
|
|
2206
2266
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
2207
2267
|
"class": "m-0 p-0 d-flex justify-content-start"
|
|
2208
2268
|
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
@@ -2220,13 +2280,13 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
2220
2280
|
fontSize: sectionproperties.skuFontSize + 'px',
|
|
2221
2281
|
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
2222
2282
|
}
|
|
2223
|
-
}, fetchProductInfoQueryContext.data.data.productinfo.sku))), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (
|
|
2283
|
+
}, fetchProductInfoQueryContext.data.data.productinfo.sku))), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer34 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer34 === void 0 ? void 0 : (_fetchProductInfoQuer35 = _fetchProductInfoQuer34.data) === null || _fetchProductInfoQuer35 === void 0 ? void 0 : (_fetchProductInfoQuer36 = _fetchProductInfoQuer35.productinfo) === null || _fetchProductInfoQuer36 === void 0 ? void 0 : _fetchProductInfoQuer36.currentquantity) < 1 && sectionproperties.showoutofstock == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer37 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer37 === void 0 ? void 0 : (_fetchProductInfoQuer38 = _fetchProductInfoQuer37.data) === null || _fetchProductInfoQuer38 === void 0 ? void 0 : (_fetchProductInfoQuer39 = _fetchProductInfoQuer38.productinfo) === null || _fetchProductInfoQuer39 === void 0 ? void 0 : _fetchProductInfoQuer39.quantavailtype) == 'limit' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer40 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer40 === void 0 ? void 0 : (_fetchProductInfoQuer41 = _fetchProductInfoQuer40.data) === null || _fetchProductInfoQuer41 === void 0 ? void 0 : (_fetchProductInfoQuer42 = _fetchProductInfoQuer41.productinfo) === null || _fetchProductInfoQuer42 === void 0 ? void 0 : _fetchProductInfoQuer42.hasvariants) == 0 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2224
2284
|
"class": "col-lg-12 p-0 d-flex justify-content-start mb-2"
|
|
2225
2285
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2226
2286
|
"class": "".concat(productinfo_cssstyles.outstockbadge) + ' allcentered '
|
|
2227
2287
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
2228
2288
|
"class": "m-0 p-0"
|
|
2229
|
-
}, langdetect == 'en' ? sectionproperties.outstock_contenten : sectionproperties.outstock_contentar))), sectionproperties.deliverytimeshow == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (
|
|
2289
|
+
}, langdetect == 'en' ? sectionproperties.outstock_contenten : sectionproperties.outstock_contentar))), sectionproperties.deliverytimeshow == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer43 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer43 === void 0 ? void 0 : (_fetchProductInfoQuer44 = _fetchProductInfoQuer43.data) === null || _fetchProductInfoQuer44 === void 0 ? void 0 : (_fetchProductInfoQuer45 = _fetchProductInfoQuer44.productinfo) === null || _fetchProductInfoQuer45 === void 0 ? void 0 : _fetchProductInfoQuer45.deliverydatetext) != null && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2230
2290
|
"class": "mb-4 col-lg-12 allcentered",
|
|
2231
2291
|
style: {
|
|
2232
2292
|
width: '100%',
|
|
@@ -2247,9 +2307,9 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
2247
2307
|
textAlign: langdetect == 'en' ? 'left' : 'right',
|
|
2248
2308
|
color: sectionproperties.deliverytimecontainercolor
|
|
2249
2309
|
}
|
|
2250
|
-
}, sectionproperties.showdeliverytitle == 'Show' && /*#__PURE__*/React__default["default"].createElement("span", null, langdetect == 'en' ? sectionproperties.deliverycontent_en : sectionproperties.deliverycontent_ar, ": "), ' ', fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (
|
|
2310
|
+
}, sectionproperties.showdeliverytitle == 'Show' && /*#__PURE__*/React__default["default"].createElement("span", null, langdetect == 'en' ? sectionproperties.deliverycontent_en : sectionproperties.deliverycontent_ar, ": "), ' ', fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer46 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer46 === void 0 ? void 0 : (_fetchProductInfoQuer47 = _fetchProductInfoQuer46.data) === null || _fetchProductInfoQuer47 === void 0 ? void 0 : (_fetchProductInfoQuer48 = _fetchProductInfoQuer47.productinfo) === null || _fetchProductInfoQuer48 === void 0 ? void 0 : _fetchProductInfoQuer48.deliverydatetext)), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer49 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer49 === void 0 ? void 0 : (_fetchProductInfoQuer50 = _fetchProductInfoQuer49.data) === null || _fetchProductInfoQuer50 === void 0 ? void 0 : (_fetchProductInfoQuer51 = _fetchProductInfoQuer50.productinfo) === null || _fetchProductInfoQuer51 === void 0 ? void 0 : _fetchProductInfoQuer51.isproducttobesold) == 1 && /*#__PURE__*/React__default["default"].createElement(ProductHeaderPricing, {
|
|
2251
2311
|
actions: props.actions
|
|
2252
|
-
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (
|
|
2312
|
+
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer52 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer52 === void 0 ? void 0 : (_fetchProductInfoQuer53 = _fetchProductInfoQuer52.data) === null || _fetchProductInfoQuer53 === void 0 ? void 0 : (_fetchProductInfoQuer54 = _fetchProductInfoQuer53.productinfo) === null || _fetchProductInfoQuer54 === void 0 ? void 0 : _fetchProductInfoQuer54.hasvariants) == 1 && sectionproperties.productInformationType == 'Profile' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2253
2313
|
className: "row m-0 w-100 d-flex align-items-start"
|
|
2254
2314
|
}, 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) {
|
|
2255
2315
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -2326,7 +2386,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
2326
2386
|
}
|
|
2327
2387
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2328
2388
|
className: "row m-0 w-100 d-flex align-items-center"
|
|
2329
|
-
}, (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (
|
|
2389
|
+
}, (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer55 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer55 === void 0 ? void 0 : (_fetchProductInfoQuer56 = _fetchProductInfoQuer55.data) === null || _fetchProductInfoQuer56 === void 0 ? void 0 : (_fetchProductInfoQuer57 = _fetchProductInfoQuer56.productinfo) === null || _fetchProductInfoQuer57 === void 0 ? void 0 : _fetchProductInfoQuer57.isproducttobesold) == 1 && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer58 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer58 === void 0 ? void 0 : (_fetchProductInfoQuer59 = _fetchProductInfoQuer58.data) === null || _fetchProductInfoQuer59 === void 0 ? void 0 : (_fetchProductInfoQuer60 = _fetchProductInfoQuer59.productinfo) === null || _fetchProductInfoQuer60 === void 0 ? void 0 : _fetchProductInfoQuer60.isproducthasquantitychange) == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2330
2390
|
className: "col-lg-12 p-0 mb-2 d-flex justofy-content-start"
|
|
2331
2391
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
2332
2392
|
className: "m-0 p-0",
|
|
@@ -2343,7 +2403,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
2343
2403
|
style: {
|
|
2344
2404
|
justifyContent: sectionproperties.cartbtncentered == 'Centered' ? 'center' : 'start'
|
|
2345
2405
|
}
|
|
2346
|
-
}, sectionproperties.quantitybtn_show == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (
|
|
2406
|
+
}, sectionproperties.quantitybtn_show == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer61 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer61 === void 0 ? void 0 : (_fetchProductInfoQuer62 = _fetchProductInfoQuer61.data) === null || _fetchProductInfoQuer62 === void 0 ? void 0 : (_fetchProductInfoQuer63 = _fetchProductInfoQuer62.productinfo) === null || _fetchProductInfoQuer63 === void 0 ? void 0 : _fetchProductInfoQuer63.isproducttobesold) == 1 && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer64 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer64 === void 0 ? void 0 : (_fetchProductInfoQuer65 = _fetchProductInfoQuer64.data) === null || _fetchProductInfoQuer65 === void 0 ? void 0 : (_fetchProductInfoQuer66 = _fetchProductInfoQuer65.productinfo) === null || _fetchProductInfoQuer66 === void 0 ? void 0 : _fetchProductInfoQuer66.isproducthasquantitychange) == 1 && /*#__PURE__*/React__default["default"].createElement("button", {
|
|
2347
2407
|
className: " ".concat(productinfo_cssstyles.quantitybtn) + ' p-0 d-flex align-items-center justify-content-center mb-sm-2 ',
|
|
2348
2408
|
style: {
|
|
2349
2409
|
height: sectionproperties.quantitybtn_height + 'px',
|
|
@@ -2385,7 +2445,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
2385
2445
|
}
|
|
2386
2446
|
}, sectionproperties.quantityiconstyle == 'Plus/Minus' && /*#__PURE__*/React__default["default"].createElement(FiPlus.FiPlus, {
|
|
2387
2447
|
size: sectionproperties.add_quantitybtn_textfontsize
|
|
2388
|
-
})))), sectionproperties.cartbtnalone == 'Besides Other Buttons' && sectionproperties.cartBtnShow == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (
|
|
2448
|
+
})))), sectionproperties.cartbtnalone == 'Besides Other Buttons' && sectionproperties.cartBtnShow == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer67 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer67 === void 0 ? void 0 : (_fetchProductInfoQuer68 = _fetchProductInfoQuer67.data) === null || _fetchProductInfoQuer68 === void 0 ? void 0 : (_fetchProductInfoQuer69 = _fetchProductInfoQuer68.productinfo) === null || _fetchProductInfoQuer69 === void 0 ? void 0 : _fetchProductInfoQuer69.isproducttobesold) == 1 && /*#__PURE__*/React__default["default"].createElement("button", {
|
|
2389
2449
|
className: "".concat(productinfo_cssstyles.cart_btn, " ") + ' ml-2 mr-2 d-flex align-items-center justify-content-center mb-sm-2 ',
|
|
2390
2450
|
onClick: function onClick() {
|
|
2391
2451
|
if (fetchProductInfoQueryContext.data.data.productinfo.maximumproductquant >= addtocardpayloadobj.quantity && fetchProductInfoQueryContext.data.data.productinfo.minimumproductquant <= addtocardpayloadobj.quantity) {
|
|
@@ -2416,7 +2476,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
2416
2476
|
size: sectionproperties.cartBtn_iconFontSize
|
|
2417
2477
|
}), sectionproperties.carticonstyle == 'Shopping cart 2' && /*#__PURE__*/React__default["default"].createElement(MdAddShoppingCart.MdAddShoppingCart, {
|
|
2418
2478
|
size: sectionproperties.cartBtn_iconFontSize
|
|
2419
|
-
})), langdetect == 'en' ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (
|
|
2479
|
+
})), langdetect == 'en' ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer70 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer70 === void 0 ? void 0 : (_fetchProductInfoQuer71 = _fetchProductInfoQuer70.data) === null || _fetchProductInfoQuer71 === void 0 ? void 0 : (_fetchProductInfoQuer72 = _fetchProductInfoQuer71.productinfo) === null || _fetchProductInfoQuer72 === void 0 ? void 0 : _fetchProductInfoQuer72.productactionbuttontext_en : fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer73 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer73 === void 0 ? void 0 : (_fetchProductInfoQuer74 = _fetchProductInfoQuer73.data) === null || _fetchProductInfoQuer74 === void 0 ? void 0 : (_fetchProductInfoQuer75 = _fetchProductInfoQuer74.productinfo) === null || _fetchProductInfoQuer75 === void 0 ? void 0 : _fetchProductInfoQuer75.productactionbuttontext_ar), AddtoCartMutationContext.isLoading && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2420
2480
|
className: ' d-flex align-items-center justify-content-center '
|
|
2421
2481
|
}, /*#__PURE__*/React__default["default"].createElement(reactCssfxLoading.CircularProgress, {
|
|
2422
2482
|
color: "white",
|
|
@@ -2461,7 +2521,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
2461
2521
|
style: {
|
|
2462
2522
|
fontSize: sectionproperties.favBtnTextfontsize + 'px'
|
|
2463
2523
|
}
|
|
2464
|
-
}, langdetect == 'en' ? sectionproperties.favbtnaddedcontent_en : sectionproperties.favbtnaddedcontent_ar))), sectionproperties.cartbtnalone == 'Alone' && sectionproperties.cartBtnShow == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (
|
|
2524
|
+
}, langdetect == 'en' ? sectionproperties.favbtnaddedcontent_en : sectionproperties.favbtnaddedcontent_ar))), sectionproperties.cartbtnalone == 'Alone' && sectionproperties.cartBtnShow == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer76 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer76 === void 0 ? void 0 : (_fetchProductInfoQuer77 = _fetchProductInfoQuer76.data) === null || _fetchProductInfoQuer77 === void 0 ? void 0 : (_fetchProductInfoQuer78 = _fetchProductInfoQuer77.productinfo) === null || _fetchProductInfoQuer78 === void 0 ? void 0 : _fetchProductInfoQuer78.isproducttobesold) == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2465
2525
|
"class": "row m-0 w-100 mt-3",
|
|
2466
2526
|
style: {
|
|
2467
2527
|
overflow: 'hidden'
|
|
@@ -2500,7 +2560,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
2500
2560
|
size: sectionproperties.cartBtn_iconFontSize
|
|
2501
2561
|
}), sectionproperties.carticonstyle == 'Shopping cart 2' && /*#__PURE__*/React__default["default"].createElement(MdAddShoppingCart.MdAddShoppingCart, {
|
|
2502
2562
|
size: sectionproperties.cartBtn_iconFontSize
|
|
2503
|
-
})), langdetect == 'en' ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (
|
|
2563
|
+
})), langdetect == 'en' ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer79 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer79 === void 0 ? void 0 : (_fetchProductInfoQuer80 = _fetchProductInfoQuer79.data) === null || _fetchProductInfoQuer80 === void 0 ? void 0 : (_fetchProductInfoQuer81 = _fetchProductInfoQuer80.productinfo) === null || _fetchProductInfoQuer81 === void 0 ? void 0 : _fetchProductInfoQuer81.productactionbuttontext_en : fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer82 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer82 === void 0 ? void 0 : (_fetchProductInfoQuer83 = _fetchProductInfoQuer82.data) === null || _fetchProductInfoQuer83 === void 0 ? void 0 : (_fetchProductInfoQuer84 = _fetchProductInfoQuer83.productinfo) === null || _fetchProductInfoQuer84 === void 0 ? void 0 : _fetchProductInfoQuer84.productactionbuttontext_ar), AddtoCartMutationContext.isLoading && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2504
2564
|
className: ' d-flex align-items-center justify-content-center '
|
|
2505
2565
|
}, /*#__PURE__*/React__default["default"].createElement(reactCssfxLoading.CircularProgress, {
|
|
2506
2566
|
color: "white",
|
|
@@ -2535,7 +2595,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
2535
2595
|
size: sectionproperties.favBtnIconfontsize
|
|
2536
2596
|
}), sectionproperties.faviconshape == 'Heart Shape' && /*#__PURE__*/React__default["default"].createElement(FaRegHeart.FaRegHeart, {
|
|
2537
2597
|
size: sectionproperties.favBtnIconfontsize
|
|
2538
|
-
})))))))), sectionproperties.productInformationType == 'Product/Service Information' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (
|
|
2598
|
+
})))))))), sectionproperties.productInformationType == 'Product/Service Information' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer85 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer85 === void 0 ? void 0 : (_fetchProductInfoQuer86 = _fetchProductInfoQuer85.data) === null || _fetchProductInfoQuer86 === void 0 ? void 0 : (_fetchProductInfoQuer87 = _fetchProductInfoQuer86.productinfo) === null || _fetchProductInfoQuer87 === void 0 ? void 0 : _fetchProductInfoQuer87.isproducttobesold) == 1 && sectionproperties.showtotalsection == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2539
2599
|
className: "col-lg-12 p-0 mb-3"
|
|
2540
2600
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2541
2601
|
className: "row m-0 w-100 d-flex flex-row"
|
|
@@ -2558,21 +2618,28 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
2558
2618
|
}
|
|
2559
2619
|
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
2560
2620
|
className: langdetect == 'en' ? ' d-flex align-items-center justify-content-end wordbreak text-right ' : ' d-flex align-items-center justify-content-end wordbreak text-left '
|
|
2561
|
-
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '',
|
|
2621
|
+
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', " ", totalprice, langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar)), /*#__PURE__*/React__default["default"].createElement("p", {
|
|
2562
2622
|
className: 'm-0 p-0 linethrough wordbreak',
|
|
2563
2623
|
style: {
|
|
2564
2624
|
color: sectionproperties.prodsalePriceColor,
|
|
2565
2625
|
fontSize: sectionproperties.prodsalepriceFontSize + 'px',
|
|
2566
2626
|
fontWeight: sectionproperties.prodsalePriceFontWeight
|
|
2567
2627
|
}
|
|
2568
|
-
}, fetchProductInfoQueryContext.data.data.productinfo.hassale == 1 && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
2628
|
+
}, fetchProductInfoQueryContext.data.data.productinfo.hassale == 1 && fetchProductInfoQueryContext.data.data.productinfo.hasvariants == 0 && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
2569
2629
|
className: langdetect == 'en' ? ' d-flex align-items-center justify-content-end wordbreak text-right wordbreak ' : ' d-flex align-items-center justify-content-end wordbreak text-left wordbreak '
|
|
2570
2630
|
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
2571
2631
|
className: "ml-2 mr-2",
|
|
2572
2632
|
style: {
|
|
2573
2633
|
textDecoration: 'none'
|
|
2574
2634
|
}
|
|
2575
|
-
}, "-"), 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)
|
|
2635
|
+
}, "-"), 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), fetchProductInfoQueryContext.data.data.productinfo.hasvariants == 1 && variantindexcompleted != undefined && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer88 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer88 === void 0 ? void 0 : (_fetchProductInfoQuer89 = _fetchProductInfoQuer88.data) === null || _fetchProductInfoQuer89 === void 0 ? void 0 : (_fetchProductInfoQuer90 = _fetchProductInfoQuer89.productinfo) === null || _fetchProductInfoQuer90 === void 0 ? void 0 : (_fetchProductInfoQuer91 = _fetchProductInfoQuer90.variants[variantindexcompleted]) === null || _fetchProductInfoQuer91 === void 0 ? void 0 : _fetchProductInfoQuer91.hassale) == 1 && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
2636
|
+
className: langdetect == 'en' ? ' d-flex align-items-center justify-content-end wordbreak text-right wordbreak ' : ' d-flex align-items-center justify-content-end wordbreak text-left wordbreak '
|
|
2637
|
+
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
2638
|
+
className: "ml-2 mr-2",
|
|
2639
|
+
style: {
|
|
2640
|
+
textDecoration: 'none'
|
|
2641
|
+
}
|
|
2642
|
+
}, "-"), 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 : (_fetchProductInfoQuer92 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer92 === void 0 ? void 0 : (_fetchProductInfoQuer93 = _fetchProductInfoQuer92.data) === null || _fetchProductInfoQuer93 === void 0 ? void 0 : (_fetchProductInfoQuer94 = _fetchProductInfoQuer93.productinfo) === null || _fetchProductInfoQuer94 === void 0 ? void 0 : _fetchProductInfoQuer94.isproducttobesold) == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2576
2643
|
className: "col-lg-12 p-0 mb-3 mt-2"
|
|
2577
2644
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2578
2645
|
style: {
|
|
@@ -4243,26 +4310,30 @@ var Productinfo = function Productinfo(props) {
|
|
|
4243
4310
|
_useState22 = _slicedToArray__default["default"](_useState21, 2),
|
|
4244
4311
|
variantindexcompleted = _useState22[0],
|
|
4245
4312
|
setvariantindexcompleted = _useState22[1];
|
|
4246
|
-
var _useState23 = React.useState(
|
|
4313
|
+
var _useState23 = React.useState(''),
|
|
4247
4314
|
_useState24 = _slicedToArray__default["default"](_useState23, 2),
|
|
4248
|
-
|
|
4249
|
-
|
|
4315
|
+
variantindex = _useState24[0],
|
|
4316
|
+
setvariantindex = _useState24[1];
|
|
4250
4317
|
var _useState25 = React.useState(false),
|
|
4251
|
-
_useState26 = _slicedToArray__default["default"](_useState25, 2)
|
|
4252
|
-
_useState26[0]
|
|
4253
|
-
_useState26[1];
|
|
4254
|
-
var _useState27 = React.useState(
|
|
4255
|
-
_useState28 = _slicedToArray__default["default"](_useState27, 2)
|
|
4256
|
-
|
|
4257
|
-
|
|
4318
|
+
_useState26 = _slicedToArray__default["default"](_useState25, 2),
|
|
4319
|
+
isloaded = _useState26[0],
|
|
4320
|
+
setisloaded = _useState26[1];
|
|
4321
|
+
var _useState27 = React.useState(false),
|
|
4322
|
+
_useState28 = _slicedToArray__default["default"](_useState27, 2);
|
|
4323
|
+
_useState28[0];
|
|
4324
|
+
_useState28[1];
|
|
4258
4325
|
var _useState29 = React.useState(0),
|
|
4259
4326
|
_useState30 = _slicedToArray__default["default"](_useState29, 2),
|
|
4260
|
-
|
|
4261
|
-
|
|
4262
|
-
var _useState31 = React.useState(
|
|
4327
|
+
currentshowingimageindex = _useState30[0],
|
|
4328
|
+
setcurrentshowingimageindex = _useState30[1];
|
|
4329
|
+
var _useState31 = React.useState(0),
|
|
4263
4330
|
_useState32 = _slicedToArray__default["default"](_useState31, 2),
|
|
4264
|
-
|
|
4265
|
-
|
|
4331
|
+
tabIndex = _useState32[0],
|
|
4332
|
+
setTabIndex = _useState32[1];
|
|
4333
|
+
var _useState33 = React.useState('descriptiontab'),
|
|
4334
|
+
_useState34 = _slicedToArray__default["default"](_useState33, 2),
|
|
4335
|
+
tabname = _useState34[0],
|
|
4336
|
+
settabname = _useState34[1];
|
|
4266
4337
|
var handleTabChange = function handleTabChange(event, newTabIndex) {
|
|
4267
4338
|
setTabIndex(newTabIndex);
|
|
4268
4339
|
};
|
|
@@ -4519,6 +4590,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
4519
4590
|
setcurrentshowingimageindex(variantimageindex);
|
|
4520
4591
|
setaddtocardpayloadobj(_objectSpread$29({}, tempaddtocardpayloadobj));
|
|
4521
4592
|
setvariantindexcompleted(ProductVariantIndex);
|
|
4593
|
+
setvariantindex(ProductVariantIndex);
|
|
4522
4594
|
}
|
|
4523
4595
|
}
|
|
4524
4596
|
});
|
|
@@ -5417,7 +5489,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
5417
5489
|
langdetect: langdetect,
|
|
5418
5490
|
lang: lang,
|
|
5419
5491
|
srcfromprops: props.srcfromprops
|
|
5420
|
-
}, _defineProperty__default["default"](_ref, "returnpolicyobj", returnpolicyobj), _defineProperty__default["default"](_ref, "productinfo_cssstyles", productinfo_cssstyles), _defineProperty__default["default"](_ref, "addtocartfunc", addtocartfunc), _defineProperty__default["default"](_ref, "selectproductoptionvalue", selectproductoptionvalue), _defineProperty__default["default"](_ref, "clearchoosenvaluesbutkeepcurrentvalue", clearchoosenvaluesbutkeepcurrentvalue), _defineProperty__default["default"](_ref, "productimagesarray", productimagesarray), _defineProperty__default["default"](_ref, "fetchProductInfoQueryContext", fetchProductInfoQueryContext), _defineProperty__default["default"](_ref, "ProductInfoObj", ProductInfoObj), _defineProperty__default["default"](_ref, "sectionproperties", sectionproperties), _defineProperty__default["default"](_ref, "addtocardpayloadobj", addtocardpayloadobj), _defineProperty__default["default"](_ref, "setaddtocardpayloadobj", setaddtocardpayloadobj), _defineProperty__default["default"](_ref, "routingcountext", routingcountext), _defineProperty__default["default"](_ref, "AddtoCartMutationContext", AddtoCartMutationContext), _defineProperty__default["default"](_ref, "authdetailsContext", authdetailsContext), _defineProperty__default["default"](_ref, "addtofavoritescontext", addtofavoritescontext), _defineProperty__default["default"](_ref, "variantindexcompleted", variantindexcompleted), _defineProperty__default["default"](_ref, "StaticPagesLinksContext", StaticPagesLinksContext), _defineProperty__default["default"](_ref, "NotificationManager", NotificationManager), _defineProperty__default["default"](_ref, "GeneralAPIMutationContext", GeneralAPIMutationContext), _defineProperty__default["default"](_ref, "quantityconditionfoundobjprops", quantityconditionfoundobj), _defineProperty__default["default"](_ref, "relatedproducts", relatedproducts), _defineProperty__default["default"](_ref, "getprice_discountpriceprops", getprice_discountpriceprops), _defineProperty__default["default"](_ref, "StoreInfoprops", StoreInfo), _defineProperty__default["default"](_ref, "currentshowingimageindex", currentshowingimageindex), _defineProperty__default["default"](_ref, "setcurrentshowingimageindex", setcurrentshowingimageindex), _defineProperty__default["default"](_ref, "templatepropcontext", templatepropcontext), _defineProperty__default["default"](_ref, "ikimagecredcontext", ikimagecredcontext), _ref)
|
|
5492
|
+
}, _defineProperty__default["default"](_ref, "returnpolicyobj", returnpolicyobj), _defineProperty__default["default"](_ref, "productinfo_cssstyles", productinfo_cssstyles), _defineProperty__default["default"](_ref, "addtocartfunc", addtocartfunc), _defineProperty__default["default"](_ref, "selectproductoptionvalue", selectproductoptionvalue), _defineProperty__default["default"](_ref, "clearchoosenvaluesbutkeepcurrentvalue", clearchoosenvaluesbutkeepcurrentvalue), _defineProperty__default["default"](_ref, "productimagesarray", productimagesarray), _defineProperty__default["default"](_ref, "fetchProductInfoQueryContext", fetchProductInfoQueryContext), _defineProperty__default["default"](_ref, "ProductInfoObj", ProductInfoObj), _defineProperty__default["default"](_ref, "sectionproperties", sectionproperties), _defineProperty__default["default"](_ref, "addtocardpayloadobj", addtocardpayloadobj), _defineProperty__default["default"](_ref, "setaddtocardpayloadobj", setaddtocardpayloadobj), _defineProperty__default["default"](_ref, "routingcountext", routingcountext), _defineProperty__default["default"](_ref, "AddtoCartMutationContext", AddtoCartMutationContext), _defineProperty__default["default"](_ref, "authdetailsContext", authdetailsContext), _defineProperty__default["default"](_ref, "addtofavoritescontext", addtofavoritescontext), _defineProperty__default["default"](_ref, "variantindexcompleted", variantindexcompleted), _defineProperty__default["default"](_ref, "StaticPagesLinksContext", StaticPagesLinksContext), _defineProperty__default["default"](_ref, "NotificationManager", NotificationManager), _defineProperty__default["default"](_ref, "GeneralAPIMutationContext", GeneralAPIMutationContext), _defineProperty__default["default"](_ref, "quantityconditionfoundobjprops", quantityconditionfoundobj), _defineProperty__default["default"](_ref, "relatedproducts", relatedproducts), _defineProperty__default["default"](_ref, "getprice_discountpriceprops", getprice_discountpriceprops), _defineProperty__default["default"](_ref, "StoreInfoprops", StoreInfo), _defineProperty__default["default"](_ref, "currentshowingimageindex", currentshowingimageindex), _defineProperty__default["default"](_ref, "setcurrentshowingimageindex", setcurrentshowingimageindex), _defineProperty__default["default"](_ref, "templatepropcontext", templatepropcontext), _defineProperty__default["default"](_ref, "ikimagecredcontext", ikimagecredcontext), _defineProperty__default["default"](_ref, "variantindex", variantindex), _defineProperty__default["default"](_ref, "setvariantindex", setvariantindex), _ref)
|
|
5421
5493
|
}), fetchProductInfoQueryContext.data.data.productinfo.item_type == 'service' && /*#__PURE__*/React__default["default"].createElement(Service_itemtype, {
|
|
5422
5494
|
actions: (_ref2 = {
|
|
5423
5495
|
returnpolicyobj: returnpolicyobj,
|
|
@@ -8196,6 +8268,12 @@ var Checkout = function Checkout(props) {
|
|
|
8196
8268
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8197
8269
|
className: "col-lg-12 p-0"
|
|
8198
8270
|
}, fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue37 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue37 === void 0 ? void 0 : (_fetchcustomercartQue38 = _fetchcustomercartQue37.data) === null || _fetchcustomercartQue38 === void 0 ? void 0 : _fetchcustomercartQue38.customercart.cartitems.map(function (item, index) {
|
|
8271
|
+
if (item.product_extrafields != null) {
|
|
8272
|
+
var product_extrafields = JSON.parse(item.product_extrafields);
|
|
8273
|
+
// var product_extrafields_parsed = JSON.stringify(product_extrafields);
|
|
8274
|
+
// alert(product_extrafields_parsed);
|
|
8275
|
+
}
|
|
8276
|
+
|
|
8199
8277
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8200
8278
|
className: langdetect == 'en' ? 'col-lg-12 col-md-12 col-sm-12 pt-3 pb-3 pl-2 pr-0 mb-3' : 'col-lg-12 col-md-12 col-sm-12 pt-3 pb-3 pr-2 pl-0 mb-3',
|
|
8201
8279
|
style: {
|
|
@@ -8277,12 +8355,24 @@ var Checkout = function Checkout(props) {
|
|
|
8277
8355
|
className: "col-lg-12 col-md-12 col-sm-12 d-flex mt-2"
|
|
8278
8356
|
}, item.productinfo.hasvariants == 1 && item.productinfo.variantinfo.variantoptions.map(function (variantitem, variantindex) {
|
|
8279
8357
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8358
|
+
"class": "row m-0 w-100"
|
|
8359
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8280
8360
|
className: "col-lg-12 col-md-12 col-sm-12 p-0 d-flex"
|
|
8281
8361
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
8282
8362
|
className: 'text-capitalize text-dark m-0 p-0 font-weight-500 font-13 m-0 p-0 '
|
|
8283
8363
|
}, variantitem.optionname, ":"), /*#__PURE__*/React__default["default"].createElement("p", {
|
|
8284
8364
|
className: ' text-capitalize text-dark font-weight-500 m-0 p-0 ml-1 mr-1 '
|
|
8285
|
-
}, variantitem.optionvalue));
|
|
8365
|
+
}, variantitem.optionvalue)));
|
|
8366
|
+
}), item.product_extrafields != null && product_extrafields.map(function (extrafielditem, extrafieldindex) {
|
|
8367
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8368
|
+
"class": "row m-0 w-100"
|
|
8369
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8370
|
+
className: "col-lg-12 col-md-12 col-sm-12 p-0 d-flex"
|
|
8371
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
8372
|
+
className: 'text-capitalize text-dark m-0 p-0 font-weight-500 font-13 m-0 p-0 '
|
|
8373
|
+
}, langdetect == 'en' ? extrafielditem.title_en : extrafielditem.title_ar, ":"), /*#__PURE__*/React__default["default"].createElement("p", {
|
|
8374
|
+
className: ' text-capitalize text-dark font-weight-500 m-0 p-0 ml-1 mr-1 '
|
|
8375
|
+
}, " ", extrafielditem.value)));
|
|
8286
8376
|
}))));
|
|
8287
8377
|
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8288
8378
|
"class": "".concat(checkoutstyles.innersection) + ' row m-0 w-100 p-3 '
|
|
@@ -24527,7 +24617,7 @@ var SocialMediaSection = function SocialMediaSection(props) {
|
|
|
24527
24617
|
function ownKeys$1G(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; }
|
|
24528
24618
|
function _objectSpread$1G(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1G(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1G(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
24529
24619
|
var Modernheader = function Modernheader(props) {
|
|
24530
|
-
var _logoarrayofobjects$, _logoarrayofobjects$2, _authdetailsContext$c, _fetchcustomercartQue, _fetchcustomercartQue2, _fetchcustomercartQue3, _fetchcustomercartQue4, _fetchcustomercartQue5, _fetchcustomercartQue6, _fetchcustomercartQue7, _fetchcustomercartQue8, _fetchcustomercartQue9, _fetchcustomercartQue10;
|
|
24620
|
+
var _authdetailsContext$i, _logoarrayofobjects$, _logoarrayofobjects$2, _authdetailsContext$c, _fetchcustomercartQue, _fetchcustomercartQue2, _fetchcustomercartQue3, _fetchcustomercartQue4, _fetchcustomercartQue5, _fetchcustomercartQue6, _fetchcustomercartQue7, _fetchcustomercartQue8, _fetchcustomercartQue9, _fetchcustomercartQue10;
|
|
24531
24621
|
var _useState = React.useState(''),
|
|
24532
24622
|
_useState2 = _slicedToArray__default["default"](_useState, 2),
|
|
24533
24623
|
sectionproperties = _useState2[0],
|
|
@@ -24797,7 +24887,42 @@ var Modernheader = function Modernheader(props) {
|
|
|
24797
24887
|
sectionpropertiesprops: sectionproperties,
|
|
24798
24888
|
templateproperties_contextprops: templateproperties_context,
|
|
24799
24889
|
actions: actions
|
|
24800
|
-
})),
|
|
24890
|
+
})), sectionproperties.showwhatsapp == 'Show' && /*#__PURE__*/React__default["default"].createElement("a", {
|
|
24891
|
+
href: 'https://api.whatsapp.com/send?phone=' + (authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i = authdetailsContext.instinfo) === null || _authdetailsContext$i === void 0 ? void 0 : _authdetailsContext$i.whatsappnumber),
|
|
24892
|
+
target: '_blank',
|
|
24893
|
+
style: {
|
|
24894
|
+
position: 'fixed',
|
|
24895
|
+
bottom: 10,
|
|
24896
|
+
right: 10,
|
|
24897
|
+
zIndex: 999999,
|
|
24898
|
+
transition: 'all 0.3s ease-out'
|
|
24899
|
+
}
|
|
24900
|
+
}, /*#__PURE__*/React__default["default"].createElement("img", {
|
|
24901
|
+
src: 'https://tabex-co.com/storage/StaticImages/whatsapp.png',
|
|
24902
|
+
style: {
|
|
24903
|
+
width: '40px',
|
|
24904
|
+
height: '40px',
|
|
24905
|
+
cursor: 'pointer'
|
|
24906
|
+
}
|
|
24907
|
+
})), sectionproperties.showfooterphonenumber == 'Show' && /*#__PURE__*/React__default["default"].createElement("a", {
|
|
24908
|
+
href: 'tel:' + (authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.CuContactphonenumber),
|
|
24909
|
+
target: '_self',
|
|
24910
|
+
style: {
|
|
24911
|
+
position: 'fixed',
|
|
24912
|
+
bottom: 60,
|
|
24913
|
+
right: 10,
|
|
24914
|
+
zIndex: 999999,
|
|
24915
|
+
transition: 'all 0.3s ease-out'
|
|
24916
|
+
}
|
|
24917
|
+
}, /*#__PURE__*/React__default["default"].createElement("i", {
|
|
24918
|
+
"class": langdetect == 'en' ? 'h-100 d-flex align-items-center justify-content-center mr-2' : 'h-100 d-flex align-items-center justify-content-center ml-2'
|
|
24919
|
+
}, /*#__PURE__*/React__default["default"].createElement(FiPhone.FiPhone, {
|
|
24920
|
+
size: 30,
|
|
24921
|
+
color: sectionproperties.uppersection_iconcolor,
|
|
24922
|
+
style: {
|
|
24923
|
+
transform: langdetect == 'en' ? 'scaleX(1)' : 'scaleX(-1)'
|
|
24924
|
+
}
|
|
24925
|
+
}))), templateproperties_context.showsocialmedia == 'Show' && /*#__PURE__*/React__default["default"].createElement(SocialMediaSection, {
|
|
24801
24926
|
sectionpropertiesprops: sectionproperties,
|
|
24802
24927
|
templateproperties_contextprops: templateproperties_context,
|
|
24803
24928
|
actions: actions
|
|
@@ -32585,6 +32710,15 @@ var Allinonefooter = function Allinonefooter(props) {
|
|
|
32585
32710
|
backgroundColor: sectionproperties.vl_bg,
|
|
32586
32711
|
marginBottom: sectionproperties.divider_mb + 'px',
|
|
32587
32712
|
marginTop: sectionproperties.divider_mt + 'px'
|
|
32713
|
+
}),
|
|
32714
|
+
payimgcont: glamor.css({
|
|
32715
|
+
marginLeft: langdetect == 'en' ? '10px' : 0,
|
|
32716
|
+
marginRight: langdetect == 'en' ? 0 : '10px'
|
|
32717
|
+
}),
|
|
32718
|
+
payimg: glamor.css({
|
|
32719
|
+
width: '100%',
|
|
32720
|
+
height: '100%',
|
|
32721
|
+
objectFit: 'contain'
|
|
32588
32722
|
})
|
|
32589
32723
|
};
|
|
32590
32724
|
React.useEffect(function () {
|
|
@@ -32847,11 +32981,59 @@ var Allinonefooter = function Allinonefooter(props) {
|
|
|
32847
32981
|
}
|
|
32848
32982
|
}, /*#__PURE__*/React__default["default"].createElement(FaWhatsapp.FaWhatsapp, {
|
|
32849
32983
|
size: sectionproperties.youtubebtniconfontsize
|
|
32850
|
-
})))))))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
32984
|
+
})))))))), sectionproperties.showpaymentfooter == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
32985
|
+
className: "row m-0 w-100 d-flex d-md-none"
|
|
32986
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
32987
|
+
"class": "".concat(footerStyles.divider) + ' my-3 '
|
|
32988
|
+
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
32989
|
+
className: "col-lg-12 p-0 m-0 w-100 d-flex flex-row align-items-center justify-content-center"
|
|
32990
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
32991
|
+
className: "".concat(footerStyles.payimgcont),
|
|
32992
|
+
style: {
|
|
32993
|
+
width: '50px',
|
|
32994
|
+
height: '40px'
|
|
32995
|
+
}
|
|
32996
|
+
}, /*#__PURE__*/React__default["default"].createElement("img", {
|
|
32997
|
+
src: 'https://tabex-co.com/storage/StaticImages/visa.png',
|
|
32998
|
+
className: "".concat(footerStyles.payimg)
|
|
32999
|
+
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
33000
|
+
className: "".concat(footerStyles.payimgcont),
|
|
33001
|
+
style: {
|
|
33002
|
+
width: '70px',
|
|
33003
|
+
height: '30px'
|
|
33004
|
+
}
|
|
33005
|
+
}, /*#__PURE__*/React__default["default"].createElement("img", {
|
|
33006
|
+
src: 'https://tabex-co.com/storage/StaticImages/mastercard.png',
|
|
33007
|
+
className: "".concat(footerStyles.payimg)
|
|
33008
|
+
})))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
32851
33009
|
"class": "".concat(footerStyles.divider) + ' d-none d-md-flex '
|
|
32852
33010
|
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
32853
33011
|
"class": "row m-0 w-100 justify-content-center d-none d-md-flex"
|
|
32854
|
-
}, StoreInformation())
|
|
33012
|
+
}, StoreInformation()), sectionproperties.showpaymentfooter == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
33013
|
+
className: "row m-0 w-100 d-none d-md-flex"
|
|
33014
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
33015
|
+
"class": "".concat(footerStyles.divider) + ' my-3 '
|
|
33016
|
+
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
33017
|
+
className: "col-lg-12 p-0 m-0 w-100 d-flex flex-row align-items-center justify-content-center"
|
|
33018
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
33019
|
+
className: "".concat(footerStyles.payimgcont),
|
|
33020
|
+
style: {
|
|
33021
|
+
width: '50px',
|
|
33022
|
+
height: '40px'
|
|
33023
|
+
}
|
|
33024
|
+
}, /*#__PURE__*/React__default["default"].createElement("img", {
|
|
33025
|
+
src: 'https://tabex-co.com/storage/StaticImages/visa.png',
|
|
33026
|
+
className: "".concat(footerStyles.payimg)
|
|
33027
|
+
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
33028
|
+
className: "".concat(footerStyles.payimgcont),
|
|
33029
|
+
style: {
|
|
33030
|
+
width: '70px',
|
|
33031
|
+
height: '30px'
|
|
33032
|
+
}
|
|
33033
|
+
}, /*#__PURE__*/React__default["default"].createElement("img", {
|
|
33034
|
+
src: 'https://tabex-co.com/storage/StaticImages/mastercard.png',
|
|
33035
|
+
className: "".concat(footerStyles.payimg)
|
|
33036
|
+
}))))));
|
|
32855
33037
|
};
|
|
32856
33038
|
|
|
32857
33039
|
function ownKeys$1v(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; }
|