tabexseriescomponents 0.0.433 → 0.0.435
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 +499 -96
- package/dist/index.esm.js +499 -96
- package/dist/index.umd.js +498 -97
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -32,6 +32,11 @@ var FiShoppingBag = require('@react-icons/all-files/fi/FiShoppingBag');
|
|
|
32
32
|
var FiShoppingCart = require('@react-icons/all-files/fi/FiShoppingCart');
|
|
33
33
|
var AiFillStar$1 = require('@react-icons/all-files/ai/AiFillStar');
|
|
34
34
|
var AiOutlineStar = require('@react-icons/all-files/ai/AiOutlineStar');
|
|
35
|
+
var FaPlus = require('@react-icons/all-files/fa/FaPlus');
|
|
36
|
+
var FaMinus = require('@react-icons/all-files/fa/FaMinus');
|
|
37
|
+
var FiBox = require('@react-icons/all-files/fi/FiBox');
|
|
38
|
+
var RiArrowGoBackLine = require('@react-icons/all-files/ri/RiArrowGoBackLine');
|
|
39
|
+
var reactAccessibleAccordion = require('react-accessible-accordion');
|
|
35
40
|
var reactShare = require('react-share');
|
|
36
41
|
var FiMinus = require('@react-icons/all-files/fi/FiMinus');
|
|
37
42
|
var FiPlus = require('@react-icons/all-files/fi/FiPlus');
|
|
@@ -72,7 +77,6 @@ require('@react-icons/all-files/ri/RiArrowUpSLine');
|
|
|
72
77
|
require('@react-icons/all-files/ri/RiArrowDownSLine');
|
|
73
78
|
var IoIosArrowRoundForward = require('@react-icons/all-files/io/IoIosArrowRoundForward');
|
|
74
79
|
var IoIosArrowRoundBack = require('@react-icons/all-files/io/IoIosArrowRoundBack');
|
|
75
|
-
var reactAccessibleAccordion = require('react-accessible-accordion');
|
|
76
80
|
var FiChevronUp = require('@react-icons/all-files/fi/FiChevronUp');
|
|
77
81
|
var FiChevronDown = require('@react-icons/all-files/fi/FiChevronDown');
|
|
78
82
|
var HiOutlinePlus = require('@react-icons/all-files/hi/HiOutlinePlus');
|
|
@@ -139,8 +143,6 @@ var FaLinkedinIn = require('@react-icons/all-files/fa/FaLinkedinIn');
|
|
|
139
143
|
var RiRoadMapLine = require('@react-icons/all-files/ri/RiRoadMapLine');
|
|
140
144
|
var HiOutlineClock = require('@react-icons/all-files/hi/HiOutlineClock');
|
|
141
145
|
var AiOutlineLinkedin = require('@react-icons/all-files/ai/AiOutlineLinkedin');
|
|
142
|
-
var FaPlus = require('@react-icons/all-files/fa/FaPlus');
|
|
143
|
-
var FaMinus = require('@react-icons/all-files/fa/FaMinus');
|
|
144
146
|
var FaArrowAltCircleRight = require('@react-icons/all-files/fa/FaArrowAltCircleRight');
|
|
145
147
|
var FaArrowAltCircleLeft = require('@react-icons/all-files/fa/FaArrowAltCircleLeft');
|
|
146
148
|
var Select$5 = require('react-select');
|
|
@@ -2199,7 +2201,7 @@ var DescriptionContent = function DescriptionContent(props) {
|
|
|
2199
2201
|
setShowMore = _useState2[1];
|
|
2200
2202
|
var ikimagecredcontext = props.actions.ikimagecredcontext;
|
|
2201
2203
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2202
|
-
"class": props.srcfromprops == 'undername' ? 'col-lg-12 p-0 w-100' : sectionproperties.gallerystyle == 'Style 1' ? 'col-lg-12 pl-5 pr-5 p-md-0 w-100' : 'col-lg-12 p-0 w-100'
|
|
2204
|
+
"class": props.srcfromprops == 'undername' ? 'col-lg-12 p-0 w-100' : props.srcfromprops == 'undername' ? 'col-lg-12 p-0 w-100' : sectionproperties.gallerystyle == 'Style 1' ? 'col-lg-12 pl-5 pr-5 p-md-0 w-100' : 'col-lg-12 p-0 w-100'
|
|
2203
2205
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2204
2206
|
"class": "row m-0 w-100"
|
|
2205
2207
|
}, sectionproperties.gallerystyle == 'Style 2' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -2212,13 +2214,13 @@ var DescriptionContent = function DescriptionContent(props) {
|
|
|
2212
2214
|
fontWeight: sectionproperties.prodCatFontWeight
|
|
2213
2215
|
}
|
|
2214
2216
|
}, langdetect == 'en' ? sectionproperties.descriptionContentEn : sectionproperties.descriptionContentAr)), langdetect == 'en' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer === void 0 || (_fetchProductInfoQuer = _fetchProductInfoQuer.data) === null || _fetchProductInfoQuer === void 0 || (_fetchProductInfoQuer = _fetchProductInfoQuer.productinfo) === null || _fetchProductInfoQuer === void 0 ? void 0 : _fetchProductInfoQuer.description_en) != '' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer2 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer2 === void 0 || (_fetchProductInfoQuer2 = _fetchProductInfoQuer2.data) === null || _fetchProductInfoQuer2 === void 0 || (_fetchProductInfoQuer2 = _fetchProductInfoQuer2.productinfo) === null || _fetchProductInfoQuer2 === void 0 ? void 0 : _fetchProductInfoQuer2.description_en) != null && sectionproperties.prodCatShow == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2215
|
-
className:
|
|
2217
|
+
className: props.srcfromprops == 'collap' ? 'col-lg-12 p-0 d-flex justify-content-center' : 'col-lg-12 p-0 mb-4 d-flex justify-content-center'
|
|
2216
2218
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2217
2219
|
className: "row m-0 w-100 d-flex"
|
|
2218
2220
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2219
2221
|
"class": "col-lg-12 p-0 d-flex justify-content-start"
|
|
2220
2222
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
2221
|
-
className: '
|
|
2223
|
+
className: 'm-0 p-0 wordbreak',
|
|
2222
2224
|
style: {
|
|
2223
2225
|
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
2224
2226
|
},
|
|
@@ -2286,11 +2288,11 @@ var DescriptionContent = function DescriptionContent(props) {
|
|
|
2286
2288
|
function ownKeys$2t(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
2287
2289
|
function _objectSpread$2t(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2t(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2t(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
2288
2290
|
var Product_itemtype = function Product_itemtype(props) {
|
|
2289
|
-
var _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, _fetchProductInfoQuer29, _fetchProductInfoQuer30, _fetchProductInfoQuer31, _fetchProductInfoQuer33, _fetchProductInfoQuer34, _fetchProductInfoQuer35, _fetchProductInfoQuer36, _fetchProductInfoQuer37, _fetchProductInfoQuer38, _fetchProductInfoQuer39, _fetchProductInfoQuer40;
|
|
2291
|
+
var _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, _fetchProductInfoQuer29, _fetchProductInfoQuer30, _fetchProductInfoQuer31, _fetchProductInfoQuer33, _fetchProductInfoQuer34, _fetchProductInfoQuer35, _fetchProductInfoQuer36, _fetchProductInfoQuer37, _returnpolicyobj, _returnpolicyobj2, _returnpolicyobj3, _returnpolicyobj4, _returnpolicyobj5, _returnpolicyobj6, _returnpolicyobj7, _returnpolicyobj8, _fetchProductInfoQuer38, _fetchProductInfoQuer39, _fetchProductInfoQuer40, _fetchProductInfoQuer41, _fetchProductInfoQuer42;
|
|
2290
2292
|
var lang = props.actions.lang;
|
|
2291
2293
|
var langdetect = props.actions.langdetect;
|
|
2292
2294
|
var srcfromprops = props.actions.srcfromprops;
|
|
2293
|
-
props.actions.returnpolicyobj;
|
|
2295
|
+
var returnpolicyobj = props.actions.returnpolicyobj;
|
|
2294
2296
|
var productinfo_cssstyles = props.actions.productinfo_cssstyles;
|
|
2295
2297
|
var addtocartfunc = props.actions.addtocartfunc;
|
|
2296
2298
|
props.actions.selectproductoptionvalue;
|
|
@@ -2468,8 +2470,11 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
2468
2470
|
style: {
|
|
2469
2471
|
minHeight: sectionproperties.height + 'vh'
|
|
2470
2472
|
}
|
|
2471
|
-
}, sectionproperties.gallerystyle == 'Style 2' &&
|
|
2472
|
-
|
|
2473
|
+
}, sectionproperties.gallerystyle == 'Style 2' &&
|
|
2474
|
+
/*#__PURE__*/
|
|
2475
|
+
// scrollhorizontalwithscrollbarremove
|
|
2476
|
+
React__default["default"].createElement("div", {
|
|
2477
|
+
"class": "w-100 scrollhorizontalwithscrollbar "
|
|
2473
2478
|
}, (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer2 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer2 === void 0 || (_fetchProductInfoQuer2 = _fetchProductInfoQuer2.data) === null || _fetchProductInfoQuer2 === void 0 || (_fetchProductInfoQuer2 = _fetchProductInfoQuer2.productinfo) === null || _fetchProductInfoQuer2 === void 0 || (_fetchProductInfoQuer2 = _fetchProductInfoQuer2.productimages) === null || _fetchProductInfoQuer2 === void 0 ? void 0 : _fetchProductInfoQuer2.length) != 0 && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer3 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer3 === void 0 || (_fetchProductInfoQuer3 = _fetchProductInfoQuer3.data) === null || _fetchProductInfoQuer3 === void 0 || (_fetchProductInfoQuer3 = _fetchProductInfoQuer3.productinfo) === null || _fetchProductInfoQuer3 === void 0 ? void 0 : _fetchProductInfoQuer3.productimages.map(function (item, index) {
|
|
2474
2479
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2475
2480
|
"class": ' scrollhorizontalcard mx-2 ',
|
|
@@ -2555,7 +2560,17 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
2555
2560
|
// }
|
|
2556
2561
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2557
2562
|
className: sectionproperties.evencols == 'Yes' ? 'row m-0 w-100 mt-md-5' : 'row m-0 w-100'
|
|
2558
|
-
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2563
|
+
}, sectionproperties.showmeasurementunit == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2564
|
+
className: 'col-lg-12 p-0 mb-1 d-flex justify-content-start align-items-center mb-1 mt-3'
|
|
2565
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
2566
|
+
className: ' m-0 p-0 wordbreak d-flex justify-content-start ',
|
|
2567
|
+
style: {
|
|
2568
|
+
textAlign: langdetect == 'en' ? 'left' : 'right',
|
|
2569
|
+
fontWeight: 400,
|
|
2570
|
+
color: sectionproperties.measurementunitcolor,
|
|
2571
|
+
fontSize: sectionproperties.measurementunitcolor + 'px'
|
|
2572
|
+
}
|
|
2573
|
+
}, fetchProductInfoQueryContext.data.data.productinfo.measurmentunit)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2559
2574
|
className: (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer4 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer4 === void 0 || (_fetchProductInfoQuer4 = _fetchProductInfoQuer4.data) === null || _fetchProductInfoQuer4 === void 0 || (_fetchProductInfoQuer4 = _fetchProductInfoQuer4.productinfo) === null || _fetchProductInfoQuer4 === void 0 ? void 0 : _fetchProductInfoQuer4.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'
|
|
2560
2575
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
2561
2576
|
className: props.srcfromprops != 'templatedraftrouter' ? "".concat(productinfo_cssstyles.productname, " ").concat(productinfo_cssstyles.productnamehover) + ' m-0 p-0 wordbreak d-flex justify-content-start cursor-pointer font-sm-15 ' : "".concat(productinfo_cssstyles.productname) + ' m-0 p-0 wordbreak d-flex justify-content-start font-sm-15 ',
|
|
@@ -2641,7 +2656,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
2641
2656
|
size: sectionproperties.favBtnIconfontsize
|
|
2642
2657
|
}))))), sectionproperties.showSKU == 'Show' && sectionproperties.productInformationType == 'Product/Service Information' && sectionproperties.skuposition == 'Top' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2643
2658
|
"class": 'col-lg-12 p-0 my-3 d-flex justify-content-start'
|
|
2644
|
-
}, ProductsSKUContainer()), langdetect == 'en' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer8 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer8 === void 0 || (_fetchProductInfoQuer8 = _fetchProductInfoQuer8.data) === null || _fetchProductInfoQuer8 === void 0 || (_fetchProductInfoQuer8 = _fetchProductInfoQuer8.productinfo) === null || _fetchProductInfoQuer8 === void 0 ? void 0 : _fetchProductInfoQuer8.short_description_en) != null && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2659
|
+
}, ProductsSKUContainer()), langdetect == 'en' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer8 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer8 === void 0 || (_fetchProductInfoQuer8 = _fetchProductInfoQuer8.data) === null || _fetchProductInfoQuer8 === void 0 || (_fetchProductInfoQuer8 = _fetchProductInfoQuer8.productinfo) === null || _fetchProductInfoQuer8 === void 0 ? void 0 : _fetchProductInfoQuer8.short_description_en) != null && sectionproperties.descriptionstyle == 'Style 1' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2645
2660
|
"class": "col-lg-12 p-0"
|
|
2646
2661
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2647
2662
|
"class": "col-lg-12 p-0 d-flex justify-content-start"
|
|
@@ -2653,7 +2668,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
2653
2668
|
dangerouslySetInnerHTML: {
|
|
2654
2669
|
__html: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer9 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer9 === void 0 || (_fetchProductInfoQuer9 = _fetchProductInfoQuer9.data) === null || _fetchProductInfoQuer9 === void 0 || (_fetchProductInfoQuer9 = _fetchProductInfoQuer9.productinfo) === null || _fetchProductInfoQuer9 === void 0 ? void 0 : _fetchProductInfoQuer9.short_description_en
|
|
2655
2670
|
}
|
|
2656
|
-
}))), langdetect == 'ar' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer10 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer10 === void 0 || (_fetchProductInfoQuer10 = _fetchProductInfoQuer10.data) === null || _fetchProductInfoQuer10 === void 0 || (_fetchProductInfoQuer10 = _fetchProductInfoQuer10.productinfo) === null || _fetchProductInfoQuer10 === void 0 ? void 0 : _fetchProductInfoQuer10.short_description_ar) != null && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2671
|
+
}))), langdetect == 'ar' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer10 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer10 === void 0 || (_fetchProductInfoQuer10 = _fetchProductInfoQuer10.data) === null || _fetchProductInfoQuer10 === void 0 || (_fetchProductInfoQuer10 = _fetchProductInfoQuer10.productinfo) === null || _fetchProductInfoQuer10 === void 0 ? void 0 : _fetchProductInfoQuer10.short_description_ar) != null && sectionproperties.descriptionstyle == 'Style 1' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2657
2672
|
"class": "col-lg-12 p-0"
|
|
2658
2673
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2659
2674
|
"class": "col-lg-12 p-0 d-flex justify-content-start"
|
|
@@ -2665,7 +2680,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
2665
2680
|
dangerouslySetInnerHTML: {
|
|
2666
2681
|
__html: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer11 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer11 === void 0 || (_fetchProductInfoQuer11 = _fetchProductInfoQuer11.data) === null || _fetchProductInfoQuer11 === void 0 || (_fetchProductInfoQuer11 = _fetchProductInfoQuer11.productinfo) === null || _fetchProductInfoQuer11 === void 0 ? void 0 : _fetchProductInfoQuer11.short_description_ar
|
|
2667
2682
|
}
|
|
2668
|
-
}))), sectionproperties.descriptionposition == 'Top' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2683
|
+
}))), sectionproperties.descriptionposition == 'Top' && sectionproperties.descriptionstyle == 'Style 1' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2669
2684
|
"class": "col-lg-12 p-0"
|
|
2670
2685
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2671
2686
|
"class": "row m-0 w-100"
|
|
@@ -2803,7 +2818,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
2803
2818
|
marginTop: sectionproperties.ctabuttnnsmarginvertical + 'px',
|
|
2804
2819
|
marginBottom: sectionproperties.ctabuttnnsmarginvertical + 'px'
|
|
2805
2820
|
}
|
|
2806
|
-
}, (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer23 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer23 === void 0 || (_fetchProductInfoQuer23 = _fetchProductInfoQuer23.data) === null || _fetchProductInfoQuer23 === void 0 || (_fetchProductInfoQuer23 = _fetchProductInfoQuer23.productinfo) === null || _fetchProductInfoQuer23 === void 0 ? void 0 : _fetchProductInfoQuer23.isproducttobesold) == 1 && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer24 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer24 === void 0 || (_fetchProductInfoQuer24 = _fetchProductInfoQuer24.data) === null || _fetchProductInfoQuer24 === void 0 || (_fetchProductInfoQuer24 = _fetchProductInfoQuer24.productinfo) === null || _fetchProductInfoQuer24 === void 0 ? void 0 : _fetchProductInfoQuer24.isproducthasquantitychange) == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2821
|
+
}, (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer23 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer23 === void 0 || (_fetchProductInfoQuer23 = _fetchProductInfoQuer23.data) === null || _fetchProductInfoQuer23 === void 0 || (_fetchProductInfoQuer23 = _fetchProductInfoQuer23.productinfo) === null || _fetchProductInfoQuer23 === void 0 ? void 0 : _fetchProductInfoQuer23.isproducttobesold) == 1 && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer24 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer24 === void 0 || (_fetchProductInfoQuer24 = _fetchProductInfoQuer24.data) === null || _fetchProductInfoQuer24 === void 0 || (_fetchProductInfoQuer24 = _fetchProductInfoQuer24.productinfo) === null || _fetchProductInfoQuer24 === void 0 ? void 0 : _fetchProductInfoQuer24.isproducthasquantitychange) == 1 && sectionproperties.quantitybtn_show == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2807
2822
|
className: "col-lg-12 p-0 mb-2 d-flex justofy-content-start"
|
|
2808
2823
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
2809
2824
|
className: "m-0 p-0",
|
|
@@ -3068,7 +3083,220 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
3068
3083
|
width: "20px",
|
|
3069
3084
|
height: "20px",
|
|
3070
3085
|
duration: "1s"
|
|
3071
|
-
}))))))), sectionproperties.
|
|
3086
|
+
}))))))), sectionproperties.descriptionstyle == 'Style 2' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3087
|
+
"class": "col-lg-12 col-md-12 p-md-0 mt-3"
|
|
3088
|
+
}, /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.Accordion, {
|
|
3089
|
+
allowMultipleExpanded: true,
|
|
3090
|
+
allowZeroExpanded: true
|
|
3091
|
+
}, /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItem, null, /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItemHeading, null, /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItemButton, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3092
|
+
"class": "row m-0 w-100"
|
|
3093
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3094
|
+
className: "col-lg-10 col-md-10 col-sm-10 p-0 d-flex align-items-center justify-content-start"
|
|
3095
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
3096
|
+
"class": "m-0 p-0",
|
|
3097
|
+
style: {
|
|
3098
|
+
textAlign: langdetect == 'en' ? 'left' : 'right',
|
|
3099
|
+
fontWeight: sectionproperties.prodCatFontWeight,
|
|
3100
|
+
color: sectionproperties.prodCatColor,
|
|
3101
|
+
fontSize: sectionproperties.prodCatFontSize + 'px'
|
|
3102
|
+
}
|
|
3103
|
+
}, langdetect == 'en' ? sectionproperties.descriptionContentEn : sectionproperties.descriptionContentAr)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3104
|
+
className: "col-lg-2 col-md-2 col-sm-2 p-0"
|
|
3105
|
+
}, /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItemState, null, function (state) {
|
|
3106
|
+
if (state.expanded == true) {
|
|
3107
|
+
return /*#__PURE__*/React__default["default"].createElement("i", {
|
|
3108
|
+
className: ' h-100 d-flex align-items-center justify-content-end '
|
|
3109
|
+
}, /*#__PURE__*/React__default["default"].createElement(FaMinus.FaMinus, {
|
|
3110
|
+
color: sectionproperties.prodCatColor
|
|
3111
|
+
}));
|
|
3112
|
+
} else {
|
|
3113
|
+
return /*#__PURE__*/React__default["default"].createElement("i", {
|
|
3114
|
+
className: ' h-100 d-flex align-items-center justify-content-end '
|
|
3115
|
+
}, /*#__PURE__*/React__default["default"].createElement(FaPlus.FaPlus, {
|
|
3116
|
+
color: sectionproperties.prodCatColor
|
|
3117
|
+
}));
|
|
3118
|
+
}
|
|
3119
|
+
}))))), /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItemPanel, {
|
|
3120
|
+
className: "p-0"
|
|
3121
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3122
|
+
"class": "col-lg-12 p-0 mt-3"
|
|
3123
|
+
}, /*#__PURE__*/React__default["default"].createElement(DescriptionContent, {
|
|
3124
|
+
actions: props.actions,
|
|
3125
|
+
srcfromprops: 'collap'
|
|
3126
|
+
})))))), sectionproperties.descriptionstyle == 'Style 2' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3127
|
+
"class": "col-lg-12 col-md-12 my-3 p-md-0"
|
|
3128
|
+
}, /*#__PURE__*/React__default["default"].createElement("hr", {
|
|
3129
|
+
"class": "m-0"
|
|
3130
|
+
})), sectionproperties.descriptionstyle == 'Style 2' && sectionproperties.showshortdescription == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3131
|
+
"class": "col-lg-12 col-md-12 p-md-0"
|
|
3132
|
+
}, /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.Accordion, {
|
|
3133
|
+
allowMultipleExpanded: true,
|
|
3134
|
+
allowZeroExpanded: true
|
|
3135
|
+
}, /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItem, null, /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItemHeading, null, /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItemButton, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3136
|
+
"class": "row m-0 w-100"
|
|
3137
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3138
|
+
className: "col-lg-10 col-md-10 col-sm-10 p-0 d-flex align-items-center justify-content-start"
|
|
3139
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
3140
|
+
"class": "m-0 p-0",
|
|
3141
|
+
style: {
|
|
3142
|
+
textAlign: langdetect == 'en' ? 'left' : 'right',
|
|
3143
|
+
fontWeight: sectionproperties.prodCatFontWeight,
|
|
3144
|
+
color: sectionproperties.prodCatColor,
|
|
3145
|
+
fontSize: sectionproperties.prodCatFontSize + 'px'
|
|
3146
|
+
}
|
|
3147
|
+
}, langdetect == 'en' ? sectionproperties.shortdescriptiontitle_en : sectionproperties.shortdescriptiontitle_ar)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3148
|
+
className: "col-lg-2 col-md-2 col-sm-2 p-0"
|
|
3149
|
+
}, /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItemState, null, function (state) {
|
|
3150
|
+
if (state.expanded == true) {
|
|
3151
|
+
return /*#__PURE__*/React__default["default"].createElement("i", {
|
|
3152
|
+
className: ' h-100 d-flex align-items-center justify-content-end '
|
|
3153
|
+
}, /*#__PURE__*/React__default["default"].createElement(FaMinus.FaMinus, {
|
|
3154
|
+
color: sectionproperties.prodCatColor
|
|
3155
|
+
}));
|
|
3156
|
+
} else {
|
|
3157
|
+
return /*#__PURE__*/React__default["default"].createElement("i", {
|
|
3158
|
+
className: ' h-100 d-flex align-items-center justify-content-end '
|
|
3159
|
+
}, /*#__PURE__*/React__default["default"].createElement(FaPlus.FaPlus, {
|
|
3160
|
+
color: sectionproperties.prodCatColor
|
|
3161
|
+
}));
|
|
3162
|
+
}
|
|
3163
|
+
}))))), /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItemPanel, {
|
|
3164
|
+
className: "p-0"
|
|
3165
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3166
|
+
"class": "col-lg-12 p-0 mt-3"
|
|
3167
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
3168
|
+
className: 'm-0 p-0 wordbreak',
|
|
3169
|
+
style: {
|
|
3170
|
+
textAlign: langdetect == 'en' ? 'left' : 'right',
|
|
3171
|
+
color: sectionproperties.prodCatColor
|
|
3172
|
+
},
|
|
3173
|
+
dangerouslySetInnerHTML: {
|
|
3174
|
+
__html: langdetect == 'en' ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer36 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer36 === void 0 || (_fetchProductInfoQuer36 = _fetchProductInfoQuer36.data) === null || _fetchProductInfoQuer36 === void 0 || (_fetchProductInfoQuer36 = _fetchProductInfoQuer36.productinfo) === null || _fetchProductInfoQuer36 === void 0 ? void 0 : _fetchProductInfoQuer36.short_description_en : fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer37 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer37 === void 0 || (_fetchProductInfoQuer37 = _fetchProductInfoQuer37.data) === null || _fetchProductInfoQuer37 === void 0 || (_fetchProductInfoQuer37 = _fetchProductInfoQuer37.productinfo) === null || _fetchProductInfoQuer37 === void 0 ? void 0 : _fetchProductInfoQuer37.short_description_ar
|
|
3175
|
+
}
|
|
3176
|
+
})))))), sectionproperties.descriptionstyle == 'Style 2' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3177
|
+
"class": "col-lg-12 col-md-12 my-3 p-md-0"
|
|
3178
|
+
}, /*#__PURE__*/React__default["default"].createElement("hr", {
|
|
3179
|
+
"class": "m-0"
|
|
3180
|
+
})), sectionproperties.descriptionstyle == 'Style 2' && sectionproperties.showshortdescription == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3181
|
+
"class": "col-lg-12 col-md-12 p-md-0"
|
|
3182
|
+
}, /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.Accordion, {
|
|
3183
|
+
allowMultipleExpanded: true,
|
|
3184
|
+
allowZeroExpanded: true
|
|
3185
|
+
}, /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItem, null, /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItemHeading, null, /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItemButton, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3186
|
+
"class": "row m-0 w-100"
|
|
3187
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3188
|
+
className: "col-lg-10 col-md-10 col-sm-10 p-0 d-flex align-items-center justify-content-start"
|
|
3189
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
3190
|
+
"class": "m-0 p-0 ",
|
|
3191
|
+
style: {
|
|
3192
|
+
textAlign: langdetect == 'en' ? 'left' : 'right',
|
|
3193
|
+
fontWeight: sectionproperties.prodCatFontWeight,
|
|
3194
|
+
color: sectionproperties.prodCatColor,
|
|
3195
|
+
fontSize: sectionproperties.prodCatFontSize + 'px'
|
|
3196
|
+
}
|
|
3197
|
+
}, langdetect == 'en' ? sectionproperties.policiestitleen : sectionproperties.policiestitlear)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3198
|
+
className: "col-lg-2 col-md-2 col-sm-2 p-0"
|
|
3199
|
+
}, /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItemState, null, function (state) {
|
|
3200
|
+
if (state.expanded == true) {
|
|
3201
|
+
return /*#__PURE__*/React__default["default"].createElement("i", {
|
|
3202
|
+
className: ' h-100 d-flex align-items-center justify-content-end '
|
|
3203
|
+
}, /*#__PURE__*/React__default["default"].createElement(FaMinus.FaMinus, {
|
|
3204
|
+
color: sectionproperties.prodCatColor
|
|
3205
|
+
}));
|
|
3206
|
+
} else {
|
|
3207
|
+
return /*#__PURE__*/React__default["default"].createElement("i", {
|
|
3208
|
+
className: ' h-100 d-flex align-items-center justify-content-end '
|
|
3209
|
+
}, /*#__PURE__*/React__default["default"].createElement(FaPlus.FaPlus, {
|
|
3210
|
+
color: sectionproperties.prodCatColor
|
|
3211
|
+
}));
|
|
3212
|
+
}
|
|
3213
|
+
}))))), /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItemPanel, {
|
|
3214
|
+
className: "p-0"
|
|
3215
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3216
|
+
"class": "col-lg-12 p-0 mb-3 d-flex flex-row text-start align-items-center mt-3"
|
|
3217
|
+
}, /*#__PURE__*/React__default["default"].createElement("i", {
|
|
3218
|
+
"class": "h-100 allcentered mx-2"
|
|
3219
|
+
}, /*#__PURE__*/React__default["default"].createElement(FiBox.FiBox, {
|
|
3220
|
+
size: 15,
|
|
3221
|
+
style: {
|
|
3222
|
+
color: sectionproperties.prodCatColor
|
|
3223
|
+
}
|
|
3224
|
+
})), /*#__PURE__*/React__default["default"].createElement("p", {
|
|
3225
|
+
"class": "m-0 p-0 text-uppercase",
|
|
3226
|
+
style: {
|
|
3227
|
+
textAlign: langdetect == 'en' ? 'left' : 'right',
|
|
3228
|
+
fontWeight: sectionproperties.prodCatFontWeight,
|
|
3229
|
+
color: sectionproperties.prodCatColor,
|
|
3230
|
+
fontSize: '14px'
|
|
3231
|
+
}
|
|
3232
|
+
}, langdetect == 'en' ? (_returnpolicyobj = returnpolicyobj('Shipping Policy')) === null || _returnpolicyobj === void 0 ? void 0 : _returnpolicyobj.policypagename_en : (_returnpolicyobj2 = returnpolicyobj('Shipping Policy')) === null || _returnpolicyobj2 === void 0 ? void 0 : _returnpolicyobj2.policypagename_ar)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3233
|
+
"class": "col-lg-12 p-0 mb-4 px-4"
|
|
3234
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
3235
|
+
className: ' m-0 p-0 wordbreak ',
|
|
3236
|
+
style: {
|
|
3237
|
+
textAlign: langdetect == 'en' ? 'left' : 'right',
|
|
3238
|
+
fontWeight: sectionproperties.prodCatFontWeight,
|
|
3239
|
+
color: sectionproperties.prodCatColor,
|
|
3240
|
+
fontSize: '15px'
|
|
3241
|
+
},
|
|
3242
|
+
dangerouslySetInnerHTML: {
|
|
3243
|
+
__html: langdetect == 'en' ? (_returnpolicyobj3 = returnpolicyobj('Shipping Policy')) === null || _returnpolicyobj3 === void 0 ? void 0 : _returnpolicyobj3.policysummary_en : (_returnpolicyobj4 = returnpolicyobj('Shipping Policy')) === null || _returnpolicyobj4 === void 0 ? void 0 : _returnpolicyobj4.policysummary_ar
|
|
3244
|
+
}
|
|
3245
|
+
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3246
|
+
"class": "col-lg-12 p-0 mb-4 px-4"
|
|
3247
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
3248
|
+
className: ' m-0 p-0 wordbreak cursor-pointer ',
|
|
3249
|
+
style: {
|
|
3250
|
+
textAlign: langdetect == 'en' ? 'left' : 'right',
|
|
3251
|
+
textDecoration: 'underline',
|
|
3252
|
+
color: sectionproperties.prodCatColor
|
|
3253
|
+
},
|
|
3254
|
+
onClick: function onClick() {
|
|
3255
|
+
routingcountext(StaticPagesLinksContext.ShippingPolicy);
|
|
3256
|
+
}
|
|
3257
|
+
}, "SEE MORE")), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3258
|
+
"class": "col-lg-12 p-0 mb-3 d-flex flex-row text-start align-items-center"
|
|
3259
|
+
}, /*#__PURE__*/React__default["default"].createElement("i", {
|
|
3260
|
+
"class": "h-100 allcentered mx-2"
|
|
3261
|
+
}, /*#__PURE__*/React__default["default"].createElement(RiArrowGoBackLine.RiArrowGoBackLine, {
|
|
3262
|
+
size: 15,
|
|
3263
|
+
style: {
|
|
3264
|
+
color: sectionproperties.prodCatColor
|
|
3265
|
+
}
|
|
3266
|
+
})), /*#__PURE__*/React__default["default"].createElement("p", {
|
|
3267
|
+
"class": "m-0 p-0 text-uppercase",
|
|
3268
|
+
style: {
|
|
3269
|
+
textAlign: langdetect == 'en' ? 'left' : 'right',
|
|
3270
|
+
fontWeight: sectionproperties.prodCatFontWeight,
|
|
3271
|
+
color: sectionproperties.prodCatColor,
|
|
3272
|
+
fontSize: '14px'
|
|
3273
|
+
}
|
|
3274
|
+
}, langdetect == 'en' ? (_returnpolicyobj5 = returnpolicyobj('Refund Policy')) === null || _returnpolicyobj5 === void 0 ? void 0 : _returnpolicyobj5.policypagename_en : (_returnpolicyobj6 = returnpolicyobj('Refund Policy')) === null || _returnpolicyobj6 === void 0 ? void 0 : _returnpolicyobj6.policypagename_ar)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3275
|
+
"class": "col-lg-12 p-0 mb-4 px-4"
|
|
3276
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
3277
|
+
className: ' m-0 p-0 wordbreak ',
|
|
3278
|
+
style: {
|
|
3279
|
+
textAlign: langdetect == 'en' ? 'left' : 'right',
|
|
3280
|
+
fontWeight: sectionproperties.prodCatFontWeight,
|
|
3281
|
+
color: sectionproperties.prodCatColor,
|
|
3282
|
+
fontSize: '15px'
|
|
3283
|
+
},
|
|
3284
|
+
dangerouslySetInnerHTML: {
|
|
3285
|
+
__html: langdetect == 'en' ? (_returnpolicyobj7 = returnpolicyobj('Refund Policy')) === null || _returnpolicyobj7 === void 0 ? void 0 : _returnpolicyobj7.policysummary_en : (_returnpolicyobj8 = returnpolicyobj('Refund Policy')) === null || _returnpolicyobj8 === void 0 ? void 0 : _returnpolicyobj8.policysummary_ar
|
|
3286
|
+
}
|
|
3287
|
+
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3288
|
+
"class": "col-lg-12 p-0 mb-4 px-4"
|
|
3289
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
3290
|
+
className: ' m-0 p-0 wordbreak cursor-pointer ',
|
|
3291
|
+
style: {
|
|
3292
|
+
textAlign: langdetect == 'en' ? 'left' : 'right',
|
|
3293
|
+
textDecoration: 'underline',
|
|
3294
|
+
color: sectionproperties.prodCatColor
|
|
3295
|
+
},
|
|
3296
|
+
onClick: function onClick() {
|
|
3297
|
+
routingcountext(StaticPagesLinksContext.RefundPolicy);
|
|
3298
|
+
}
|
|
3299
|
+
}, "SEE MORE")))))), sectionproperties.productInformationType == 'Product/Service Information' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer38 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer38 === void 0 || (_fetchProductInfoQuer38 = _fetchProductInfoQuer38.data) === null || _fetchProductInfoQuer38 === void 0 || (_fetchProductInfoQuer38 = _fetchProductInfoQuer38.productinfo) === null || _fetchProductInfoQuer38 === void 0 ? void 0 : _fetchProductInfoQuer38.isproducttobesold) == 1 && sectionproperties.showtotalsection == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3072
3300
|
className: "col-lg-12 p-0 mb-3"
|
|
3073
3301
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3074
3302
|
className: "row m-0 w-100 d-flex flex-row"
|
|
@@ -3091,7 +3319,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
3091
3319
|
}
|
|
3092
3320
|
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
3093
3321
|
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 '
|
|
3094
|
-
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', variantindexcompleted != undefined && variantindexcompleted.length == 0 && fetchProductInfoQueryContext.data.data.productinfo.hassale == 0 && parseFloat(getprice_discountpriceprops('defaultprice', 1, variantindexcompleted)).toFixed(2), variantindexcompleted != undefined && variantindexcompleted.length == 0 && fetchProductInfoQueryContext.data.data.productinfo.hassale == 1 && parseFloat(getprice_discountpriceprops('defaultsaleprice', 1, variantindexcompleted)).toFixed(2), variantindexcompleted != undefined && variantindexcompleted.length != 0 && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
3322
|
+
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', variantindexcompleted != undefined && variantindexcompleted.length == 0 && fetchProductInfoQueryContext.data.data.productinfo.hassale == 0 && parseFloat(getprice_discountpriceprops('defaultprice', 1, variantindexcompleted)).toFixed(2), variantindexcompleted != undefined && variantindexcompleted.length == 0 && fetchProductInfoQueryContext.data.data.productinfo.hassale == 1 && parseFloat(getprice_discountpriceprops('defaultsaleprice', 1, variantindexcompleted)).toFixed(2), variantindexcompleted != undefined && variantindexcompleted.length != 0 && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer39 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer39 === void 0 || (_fetchProductInfoQuer39 = _fetchProductInfoQuer39.data) === null || _fetchProductInfoQuer39 === void 0 || (_fetchProductInfoQuer39 = _fetchProductInfoQuer39.productinfo) === null || _fetchProductInfoQuer39 === void 0 || (_fetchProductInfoQuer39 = _fetchProductInfoQuer39.variants[variantindexcompleted]) === null || _fetchProductInfoQuer39 === void 0 ? void 0 : _fetchProductInfoQuer39.hassale) == 1 && parseFloat(getprice_discountpriceprops('defaultsaleprice', 1, variantindexcompleted)).toFixed(2), variantindexcompleted != undefined && variantindexcompleted.length != 0 && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer40 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer40 === void 0 || (_fetchProductInfoQuer40 = _fetchProductInfoQuer40.data) === null || _fetchProductInfoQuer40 === void 0 || (_fetchProductInfoQuer40 = _fetchProductInfoQuer40.productinfo) === null || _fetchProductInfoQuer40 === void 0 || (_fetchProductInfoQuer40 = _fetchProductInfoQuer40.variants[variantindexcompleted]) === null || _fetchProductInfoQuer40 === void 0 ? void 0 : _fetchProductInfoQuer40.hassale) == 0 && parseFloat(getprice_discountpriceprops('defaultprice', 1, variantindexcompleted)).toFixed(2), langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar)), /*#__PURE__*/React__default["default"].createElement("p", {
|
|
3095
3323
|
className: 'm-0 p-0 linethrough wordbreak',
|
|
3096
3324
|
style: {
|
|
3097
3325
|
color: sectionproperties.prodsalePriceColor,
|
|
@@ -3105,14 +3333,14 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
3105
3333
|
style: {
|
|
3106
3334
|
textDecoration: 'none'
|
|
3107
3335
|
}
|
|
3108
|
-
}, "-"), langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', parseFloat(getprice_discountpriceprops('defaultprice', 1, variantindexcompleted)), ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar), variantindexcompleted != undefined && variantindexcompleted.length != 0 && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
3336
|
+
}, "-"), langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', parseFloat(getprice_discountpriceprops('defaultprice', 1, variantindexcompleted)), ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar), variantindexcompleted != undefined && variantindexcompleted.length != 0 && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer41 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer41 === void 0 || (_fetchProductInfoQuer41 = _fetchProductInfoQuer41.data) === null || _fetchProductInfoQuer41 === void 0 || (_fetchProductInfoQuer41 = _fetchProductInfoQuer41.productinfo) === null || _fetchProductInfoQuer41 === void 0 || (_fetchProductInfoQuer41 = _fetchProductInfoQuer41.variants[variantindexcompleted]) === null || _fetchProductInfoQuer41 === void 0 ? void 0 : _fetchProductInfoQuer41.hassale) == 1 && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
3109
3337
|
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 '
|
|
3110
3338
|
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
3111
3339
|
className: "ml-2 mr-2",
|
|
3112
3340
|
style: {
|
|
3113
3341
|
textDecoration: 'none'
|
|
3114
3342
|
}
|
|
3115
|
-
}, "-"), 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 || (
|
|
3343
|
+
}, "-"), 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 || (_fetchProductInfoQuer42 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer42 === void 0 || (_fetchProductInfoQuer42 = _fetchProductInfoQuer42.data) === null || _fetchProductInfoQuer42 === void 0 || (_fetchProductInfoQuer42 = _fetchProductInfoQuer42.productinfo) === null || _fetchProductInfoQuer42 === void 0 ? void 0 : _fetchProductInfoQuer42.isproducttobesold) == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3116
3344
|
className: "col-lg-12 p-0 mb-3 mt-2"
|
|
3117
3345
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3118
3346
|
style: {
|
|
@@ -3188,7 +3416,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
3188
3416
|
function ownKeys$2s(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3189
3417
|
function _objectSpread$2s(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2s(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2s(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
3190
3418
|
var Serviceinfotabs = function Serviceinfotabs(props) {
|
|
3191
|
-
var
|
|
3419
|
+
var _fetchProductInfoQuer5, _fetchProductInfoQuer6, _fetchProductInfoQuer7, _fetchProductInfoQuer8, _fetchProductInfoQuer9, _fetchProductInfoQuer10, _fetchProductInfoQuer13, _fetchProductInfoQuer14, _fetchProductInfoQuer17, _fetchProductInfoQuer18;
|
|
3192
3420
|
var langdetect = props.actions.langdetect;
|
|
3193
3421
|
var lang = props.actions.lang;
|
|
3194
3422
|
var sectionproperties = props.actions.sectionproperties;
|
|
@@ -3362,11 +3590,148 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
|
|
|
3362
3590
|
}
|
|
3363
3591
|
})
|
|
3364
3592
|
};
|
|
3593
|
+
function getLastChoosedSlotIndex(slots) {
|
|
3594
|
+
var lastChoosedIndex = -1; // Initialize with -1 indicating no slot is choosed
|
|
3595
|
+
for (var i = 0; i < slots.length; i++) {
|
|
3596
|
+
if (slots[i].ischoosed) {
|
|
3597
|
+
lastChoosedIndex = i;
|
|
3598
|
+
}
|
|
3599
|
+
}
|
|
3600
|
+
return lastChoosedIndex;
|
|
3601
|
+
}
|
|
3602
|
+
var chooseitemslot = function chooseitemslot(slot, index) {
|
|
3603
|
+
var _fetchProductInfoQuer, _fetchProductInfoQuer2, _fetchProductInfoQuer3, _fetchProductInfoQuer4;
|
|
3604
|
+
var reservedslottobetaken = null;
|
|
3605
|
+
var reservedslotArrtobetaken = [];
|
|
3606
|
+
var slotschooosedcounter_tobe_usedonly_in_merge = 0;
|
|
3607
|
+
var is_multi_slots = false;
|
|
3608
|
+
var is_slots_must_be_adjacent = false;
|
|
3609
|
+
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer === void 0 || (_fetchProductInfoQuer = _fetchProductInfoQuer.data) === null || _fetchProductInfoQuer === void 0 || (_fetchProductInfoQuer = _fetchProductInfoQuer.productinfo) === null || _fetchProductInfoQuer === void 0 || (_fetchProductInfoQuer = _fetchProductInfoQuer.serviceinfo) === null || _fetchProductInfoQuer === void 0 ? void 0 : _fetchProductInfoQuer.is_slots_adjacent) != undefined && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer2 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer2 === void 0 || (_fetchProductInfoQuer2 = _fetchProductInfoQuer2.data) === null || _fetchProductInfoQuer2 === void 0 || (_fetchProductInfoQuer2 = _fetchProductInfoQuer2.productinfo) === null || _fetchProductInfoQuer2 === void 0 || (_fetchProductInfoQuer2 = _fetchProductInfoQuer2.serviceinfo) === null || _fetchProductInfoQuer2 === void 0 ? void 0 : _fetchProductInfoQuer2.is_slots_adjacent) == 1) {
|
|
3610
|
+
is_slots_must_be_adjacent = true;
|
|
3611
|
+
}
|
|
3612
|
+
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer3 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer3 === void 0 || (_fetchProductInfoQuer3 = _fetchProductInfoQuer3.data) === null || _fetchProductInfoQuer3 === void 0 || (_fetchProductInfoQuer3 = _fetchProductInfoQuer3.productinfo) === null || _fetchProductInfoQuer3 === void 0 || (_fetchProductInfoQuer3 = _fetchProductInfoQuer3.serviceinfo) === null || _fetchProductInfoQuer3 === void 0 ? void 0 : _fetchProductInfoQuer3.is_slots_multi) != undefined && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer4 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer4 === void 0 || (_fetchProductInfoQuer4 = _fetchProductInfoQuer4.data) === null || _fetchProductInfoQuer4 === void 0 || (_fetchProductInfoQuer4 = _fetchProductInfoQuer4.productinfo) === null || _fetchProductInfoQuer4 === void 0 || (_fetchProductInfoQuer4 = _fetchProductInfoQuer4.serviceinfo) === null || _fetchProductInfoQuer4 === void 0 ? void 0 : _fetchProductInfoQuer4.is_slots_multi) == 1) {
|
|
3613
|
+
is_multi_slots = true;
|
|
3614
|
+
}
|
|
3615
|
+
var tempslots = _toConsumableArray__default["default"](slots);
|
|
3616
|
+
if (is_multi_slots == false) {
|
|
3617
|
+
tempslots === null || tempslots === void 0 || tempslots.forEach(function (item, index) {
|
|
3618
|
+
item.ischoosed = false;
|
|
3619
|
+
});
|
|
3620
|
+
}
|
|
3621
|
+
tempslots === null || tempslots === void 0 || tempslots.forEach(function (item, index) {
|
|
3622
|
+
if (item.ischoosed == true) {
|
|
3623
|
+
slotschooosedcounter_tobe_usedonly_in_merge = slotschooosedcounter_tobe_usedonly_in_merge + 1;
|
|
3624
|
+
}
|
|
3625
|
+
});
|
|
3626
|
+
if (is_slots_must_be_adjacent == false) {
|
|
3627
|
+
if (tempslots[index].ischoosed != undefined && tempslots[index].ischoosed != null) {
|
|
3628
|
+
if (tempslots[index].ischoosed == true) {
|
|
3629
|
+
tempslots[index].ischoosed = false;
|
|
3630
|
+
} else {
|
|
3631
|
+
tempslots[index].ischoosed = true;
|
|
3632
|
+
}
|
|
3633
|
+
} else {
|
|
3634
|
+
tempslots[index].ischoosed = true;
|
|
3635
|
+
}
|
|
3636
|
+
} else if (is_slots_must_be_adjacent == true) {
|
|
3637
|
+
var _tempslots$index;
|
|
3638
|
+
// Check if the selected slot is beside the previously selected slots
|
|
3639
|
+
if (slotschooosedcounter_tobe_usedonly_in_merge == 0) {
|
|
3640
|
+
if (tempslots[index].ischoosed != undefined && tempslots[index].ischoosed != null) {
|
|
3641
|
+
if (tempslots[index].ischoosed == true) {
|
|
3642
|
+
tempslots[index].ischoosed = false;
|
|
3643
|
+
} else {
|
|
3644
|
+
tempslots[index].ischoosed = true;
|
|
3645
|
+
}
|
|
3646
|
+
} else {
|
|
3647
|
+
tempslots[index].ischoosed = true;
|
|
3648
|
+
}
|
|
3649
|
+
} else if (slotschooosedcounter_tobe_usedonly_in_merge == 1 && ((_tempslots$index = tempslots[index]) === null || _tempslots$index === void 0 ? void 0 : _tempslots$index.ischoosed) == true) {
|
|
3650
|
+
if (tempslots[index].ischoosed != undefined && tempslots[index].ischoosed != null) {
|
|
3651
|
+
if (tempslots[index].ischoosed == true) {
|
|
3652
|
+
tempslots[index].ischoosed = false;
|
|
3653
|
+
}
|
|
3654
|
+
}
|
|
3655
|
+
} else if (index > 0 && tempslots[index - 1].ischoosed) {
|
|
3656
|
+
// The selected slot is beside the previous slot, mark it as chosen
|
|
3657
|
+
if (tempslots[index].ischoosed == true) {
|
|
3658
|
+
var lastSelectedIndex = getLastChoosedSlotIndex(tempslots);
|
|
3659
|
+
// if (lastSelectedIndex === index) {
|
|
3660
|
+
tempslots[lastSelectedIndex].ischoosed = false;
|
|
3661
|
+
// }
|
|
3662
|
+
} else {
|
|
3663
|
+
tempslots[index].ischoosed = true;
|
|
3664
|
+
}
|
|
3665
|
+
// tempslots[index].ischoosed = !tempslots[index].ischoosed;
|
|
3666
|
+
} else if (index < tempslots.length - 1 && tempslots[index + 1].ischoosed) {
|
|
3667
|
+
// The selected slot is beside the next slot, mark it as chosen
|
|
3668
|
+
if (tempslots[index].ischoosed == true) {
|
|
3669
|
+
var lastSelectedIndex = getLastChoosedSlotIndex(tempslots);
|
|
3670
|
+
// if (lastSelectedIndex === index) {
|
|
3671
|
+
tempslots[lastSelectedIndex].ischoosed = false;
|
|
3672
|
+
// }
|
|
3673
|
+
} else {
|
|
3674
|
+
tempslots[index].ischoosed = true;
|
|
3675
|
+
}
|
|
3676
|
+
// tempslots[index].ischoosed = !tempslots[index].ischoosed;
|
|
3677
|
+
} else {
|
|
3678
|
+
// The selected slot is not beside the previously selected slots
|
|
3679
|
+
// Handle this case according to your requirements (e.g., show an error message)
|
|
3680
|
+
NotificationManager.warning('', 'You can only choose slots beside each other.');
|
|
3681
|
+
}
|
|
3682
|
+
}
|
|
3683
|
+
setslots(_toConsumableArray__default["default"](tempslots));
|
|
3684
|
+
tempslots === null || tempslots === void 0 || tempslots.forEach(function (item, index) {
|
|
3685
|
+
if (item.ischoosed == true) {
|
|
3686
|
+
reservedslotArrtobetaken.push({
|
|
3687
|
+
slot: item.slot
|
|
3688
|
+
});
|
|
3689
|
+
}
|
|
3690
|
+
});
|
|
3691
|
+
if (reservedslotArrtobetaken.length != 0) {
|
|
3692
|
+
reservedslottobetaken = reservedslotArrtobetaken[0].slot;
|
|
3693
|
+
setaddtocardpayloadobj(_objectSpread$2s(_objectSpread$2s({}, addtocardpayloadobj), {}, {
|
|
3694
|
+
time: reservedslottobetaken,
|
|
3695
|
+
reserved_slots: reservedslotArrtobetaken,
|
|
3696
|
+
quantity: parseInt(reservedslotArrtobetaken.length)
|
|
3697
|
+
}));
|
|
3698
|
+
} else {
|
|
3699
|
+
NotificationManager.warning('', 'No Slots Reserved');
|
|
3700
|
+
}
|
|
3701
|
+
};
|
|
3702
|
+
// const chooseitemslot = (slot, index) => {
|
|
3703
|
+
// var reservedslottobetaken = null;
|
|
3704
|
+
// var reservedslotArrtobetaken = [];
|
|
3705
|
+
// var tempslots = [...slots];
|
|
3706
|
+
// if (tempslots[index].ischoosed != undefined && tempslots[index].ischoosed != null) {
|
|
3707
|
+
// if (tempslots[index].ischoosed == true) {
|
|
3708
|
+
// tempslots[index].ischoosed = false;
|
|
3709
|
+
// } else {
|
|
3710
|
+
// tempslots[index].ischoosed = true;
|
|
3711
|
+
// }
|
|
3712
|
+
// } else {
|
|
3713
|
+
// tempslots[index].ischoosed = true;
|
|
3714
|
+
// }
|
|
3715
|
+
|
|
3716
|
+
// setslots([...tempslots]);
|
|
3717
|
+
// tempslots?.forEach(function (item, index) {
|
|
3718
|
+
// if (item.ischoosed == true) {
|
|
3719
|
+
// reservedslotArrtobetaken.push({ slot: item.slot });
|
|
3720
|
+
// }
|
|
3721
|
+
// });
|
|
3722
|
+
|
|
3723
|
+
// if (reservedslotArrtobetaken.length != 0) {
|
|
3724
|
+
// reservedslottobetaken = reservedslotArrtobetaken[0].slot;
|
|
3725
|
+
// setaddtocardpayloadobj({ ...addtocardpayloadobj, time: reservedslottobetaken, reserved_slots: reservedslotArrtobetaken, quantity: parseInt(reservedslotArrtobetaken.length) });
|
|
3726
|
+
// } else {
|
|
3727
|
+
// NotificationManager.warning('', 'No Slots Reserved');
|
|
3728
|
+
// }
|
|
3729
|
+
// };
|
|
3365
3730
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3366
|
-
className: (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
3731
|
+
className: (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer5 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer5 === void 0 || (_fetchProductInfoQuer5 = _fetchProductInfoQuer5.data) === null || _fetchProductInfoQuer5 === void 0 || (_fetchProductInfoQuer5 = _fetchProductInfoQuer5.productinfo) === null || _fetchProductInfoQuer5 === void 0 || (_fetchProductInfoQuer5 = _fetchProductInfoQuer5.serviceinfo) === null || _fetchProductInfoQuer5 === void 0 ? void 0 : _fetchProductInfoQuer5.scheduletype) == 'minutes' ? 'col-lg-12 mt-3 p-0' : 'col-lg-10 mt-3 p-0'
|
|
3367
3732
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3368
3733
|
"class": "row m-0 w-100"
|
|
3369
|
-
}, (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
3734
|
+
}, (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer6 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer6 === void 0 || (_fetchProductInfoQuer6 = _fetchProductInfoQuer6.data) === null || _fetchProductInfoQuer6 === void 0 || (_fetchProductInfoQuer6 = _fetchProductInfoQuer6.productinfo) === null || _fetchProductInfoQuer6 === void 0 || (_fetchProductInfoQuer6 = _fetchProductInfoQuer6.serviceinfo) === null || _fetchProductInfoQuer6 === void 0 ? void 0 : _fetchProductInfoQuer6.scheduletype) == 'days' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3370
3735
|
"class": "row m-0 w-100"
|
|
3371
3736
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3372
3737
|
"class": "col-lg-6 col-md-12 col-sm-12 mb-2 pl-1 pr-1"
|
|
@@ -3381,8 +3746,8 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
|
|
|
3381
3746
|
}, /*#__PURE__*/React__default["default"].createElement("input", {
|
|
3382
3747
|
type: "date",
|
|
3383
3748
|
"class": TabsStyles.inputfield + ' w-100 allcentered pl-1 pr-1 ',
|
|
3384
|
-
min: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
3385
|
-
max: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
3749
|
+
min: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer7 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer7 === void 0 || (_fetchProductInfoQuer7 = _fetchProductInfoQuer7.data) === null || _fetchProductInfoQuer7 === void 0 || (_fetchProductInfoQuer7 = _fetchProductInfoQuer7.productinfo) === null || _fetchProductInfoQuer7 === void 0 || (_fetchProductInfoQuer7 = _fetchProductInfoQuer7.serviceinfo) === null || _fetchProductInfoQuer7 === void 0 ? void 0 : _fetchProductInfoQuer7.reservationstarts,
|
|
3750
|
+
max: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer8 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer8 === void 0 || (_fetchProductInfoQuer8 = _fetchProductInfoQuer8.data) === null || _fetchProductInfoQuer8 === void 0 || (_fetchProductInfoQuer8 = _fetchProductInfoQuer8.productinfo) === null || _fetchProductInfoQuer8 === void 0 || (_fetchProductInfoQuer8 = _fetchProductInfoQuer8.serviceinfo) === null || _fetchProductInfoQuer8 === void 0 ? void 0 : _fetchProductInfoQuer8.reservationends,
|
|
3386
3751
|
onChange: function onChange(event) {
|
|
3387
3752
|
setaddtocardpayloadobj(_objectSpread$2s(_objectSpread$2s({}, addtocardpayloadobj), {}, {
|
|
3388
3753
|
from: event.target.value
|
|
@@ -3408,7 +3773,7 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
|
|
|
3408
3773
|
to: event.target.value
|
|
3409
3774
|
}));
|
|
3410
3775
|
}
|
|
3411
|
-
}))))), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
3776
|
+
}))))), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer9 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer9 === void 0 || (_fetchProductInfoQuer9 = _fetchProductInfoQuer9.data) === null || _fetchProductInfoQuer9 === void 0 || (_fetchProductInfoQuer9 = _fetchProductInfoQuer9.productinfo) === null || _fetchProductInfoQuer9 === void 0 || (_fetchProductInfoQuer9 = _fetchProductInfoQuer9.serviceinfo) === null || _fetchProductInfoQuer9 === void 0 ? void 0 : _fetchProductInfoQuer9.scheduletype) == 'minutes' && /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3412
3777
|
"class": "col-lg-12 col-md-12 col-sm-12 mb-2"
|
|
3413
3778
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3414
3779
|
"class": "row m-0 w-100"
|
|
@@ -3455,7 +3820,7 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
|
|
|
3455
3820
|
"class": "w-100"
|
|
3456
3821
|
}, slots.map(function (item, index) {
|
|
3457
3822
|
var ischoosed = false;
|
|
3458
|
-
if (item.
|
|
3823
|
+
if (item.ischoosed) {
|
|
3459
3824
|
ischoosed = true;
|
|
3460
3825
|
}
|
|
3461
3826
|
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -3475,9 +3840,8 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
|
|
|
3475
3840
|
color: ischoosed ? sectionproperties.generalbtn_bgColortransparent == 'Transparent' ? sectionproperties.generalbtn_textColoronhover : sectionproperties.generalbtn_textColor : ''
|
|
3476
3841
|
},
|
|
3477
3842
|
onClick: function onClick() {
|
|
3478
|
-
|
|
3479
|
-
|
|
3480
|
-
}));
|
|
3843
|
+
chooseitemslot(item.slot, index);
|
|
3844
|
+
// setaddtocardpayloadobj({ ...addtocardpayloadobj, time: item.slot });
|
|
3481
3845
|
}
|
|
3482
3846
|
}, ischoosed == false && /*#__PURE__*/React__default["default"].createElement("span", null, langdetect == 'en' ? sectionproperties.generalbtn_content : sectionproperties.slideshow_btn_text_ar), ischoosed == true && /*#__PURE__*/React__default["default"].createElement("span", null, langdetect == 'en' ? sectionproperties.generalbtn_bookedcontent : sectionproperties.generalbtn_bookedcontent_ar))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3483
3847
|
"class": "col-sm-3 p-0 d-none d-sm-flex justify-content-end justify-content-sm-center align-items-sm-center"
|
|
@@ -3518,7 +3882,7 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
|
|
|
3518
3882
|
}, slots.map(function (item, index) {
|
|
3519
3883
|
var _slot, _slot2;
|
|
3520
3884
|
var ischoosed = false;
|
|
3521
|
-
if (item.
|
|
3885
|
+
if (item.ischoosed) {
|
|
3522
3886
|
ischoosed = true;
|
|
3523
3887
|
}
|
|
3524
3888
|
var slot = item.slot;
|
|
@@ -3558,9 +3922,7 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
|
|
|
3558
3922
|
"class": ischoosed == true ? TabsStyles.timeSlotContainer_active + ' allcentered cursor-pointer px-1 ' : TabsStyles.timeSlotContainer + ' allcentered cursor-pointer px-1 ',
|
|
3559
3923
|
style: {},
|
|
3560
3924
|
onClick: function onClick() {
|
|
3561
|
-
|
|
3562
|
-
time: item.slot
|
|
3563
|
-
}));
|
|
3925
|
+
chooseitemslot(item.slot, index);
|
|
3564
3926
|
}
|
|
3565
3927
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
3566
3928
|
"class": ' p-0 m-0 '
|
|
@@ -3589,7 +3951,7 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
|
|
|
3589
3951
|
className: "col-lg-12 p-0 mb-3"
|
|
3590
3952
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3591
3953
|
className: "row m-0 w-100"
|
|
3592
|
-
}, (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
3954
|
+
}, (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer10 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer10 === void 0 || (_fetchProductInfoQuer10 = _fetchProductInfoQuer10.data) === null || _fetchProductInfoQuer10 === void 0 || (_fetchProductInfoQuer10 = _fetchProductInfoQuer10.productinfo) === null || _fetchProductInfoQuer10 === void 0 || (_fetchProductInfoQuer10 = _fetchProductInfoQuer10.serviceinfo) === null || _fetchProductInfoQuer10 === void 0 ? void 0 : _fetchProductInfoQuer10.scheduletype) == 'days' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3593
3955
|
className: "col-lg-12 p-0"
|
|
3594
3956
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3595
3957
|
className: "row m-0 w-100"
|
|
@@ -3653,15 +4015,15 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
|
|
|
3653
4015
|
}, /*#__PURE__*/React__default["default"].createElement("button", {
|
|
3654
4016
|
className: "".concat(productinfo_cssstyles.cart_btn, " ") + ' d-flex align-items-center justify-content-center ml-sm-auto mr-sm-auto mb-sm-2 ',
|
|
3655
4017
|
onClick: function onClick() {
|
|
3656
|
-
var
|
|
3657
|
-
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
4018
|
+
var _fetchProductInfoQuer11, _fetchProductInfoQuer12;
|
|
4019
|
+
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer11 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer11 === void 0 || (_fetchProductInfoQuer11 = _fetchProductInfoQuer11.data) === null || _fetchProductInfoQuer11 === void 0 || (_fetchProductInfoQuer11 = _fetchProductInfoQuer11.productinfo) === null || _fetchProductInfoQuer11 === void 0 || (_fetchProductInfoQuer11 = _fetchProductInfoQuer11.serviceinfo) === null || _fetchProductInfoQuer11 === void 0 ? void 0 : _fetchProductInfoQuer11.scheduletype) == 'days') {
|
|
3658
4020
|
if (addtocardpayloadobj.from.length != 0 && addtocardpayloadobj.to.length != 0 && addtocardpayloadobj.quantity != 0) {
|
|
3659
4021
|
addtocartfunc();
|
|
3660
4022
|
// if (sectionproperties.cartbtntype == 'Goes to checkout') {
|
|
3661
4023
|
// routingcountext(StaticPagesLinksContext.Checkout);
|
|
3662
4024
|
// }
|
|
3663
4025
|
}
|
|
3664
|
-
} else if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
4026
|
+
} else if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer12 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer12 === void 0 || (_fetchProductInfoQuer12 = _fetchProductInfoQuer12.data) === null || _fetchProductInfoQuer12 === void 0 || (_fetchProductInfoQuer12 = _fetchProductInfoQuer12.productinfo) === null || _fetchProductInfoQuer12 === void 0 || (_fetchProductInfoQuer12 = _fetchProductInfoQuer12.serviceinfo) === null || _fetchProductInfoQuer12 === void 0 ? void 0 : _fetchProductInfoQuer12.scheduletype) == 'minutes') {
|
|
3665
4027
|
if (addtocardpayloadobj.date.length != 0 && addtocardpayloadobj.time.length != 0) {
|
|
3666
4028
|
addtocartfunc();
|
|
3667
4029
|
// if (sectionproperties.cartbtntype == 'Goes to checkout') {
|
|
@@ -3694,7 +4056,7 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
|
|
|
3694
4056
|
size: sectionproperties.cartBtn_iconFontSize
|
|
3695
4057
|
}), sectionproperties.carticonstyle == 'Shopping cart 2' && /*#__PURE__*/React__default["default"].createElement(MdAddShoppingCart.MdAddShoppingCart, {
|
|
3696
4058
|
size: sectionproperties.cartBtn_iconFontSize
|
|
3697
|
-
})), langdetect == 'en' ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
4059
|
+
})), langdetect == 'en' ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer13 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer13 === void 0 || (_fetchProductInfoQuer13 = _fetchProductInfoQuer13.data) === null || _fetchProductInfoQuer13 === void 0 || (_fetchProductInfoQuer13 = _fetchProductInfoQuer13.productinfo) === null || _fetchProductInfoQuer13 === void 0 ? void 0 : _fetchProductInfoQuer13.productactionbuttontext_en : fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer14 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer14 === void 0 || (_fetchProductInfoQuer14 = _fetchProductInfoQuer14.data) === null || _fetchProductInfoQuer14 === void 0 || (_fetchProductInfoQuer14 = _fetchProductInfoQuer14.productinfo) === null || _fetchProductInfoQuer14 === void 0 ? void 0 : _fetchProductInfoQuer14.productactionbuttontext_ar), AddtoCartMutationContext.isLoading && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3698
4060
|
className: ' d-flex align-items-center justify-content-center '
|
|
3699
4061
|
}, /*#__PURE__*/React__default["default"].createElement(reactCssfxLoading.CircularProgress, {
|
|
3700
4062
|
color: "white",
|
|
@@ -3736,15 +4098,15 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
|
|
|
3736
4098
|
}, /*#__PURE__*/React__default["default"].createElement("button", {
|
|
3737
4099
|
className: "".concat(productinfo_cssstyles.cart_btn) + ' w-100 d-flex align-items-center justify-content-center ',
|
|
3738
4100
|
onClick: function onClick() {
|
|
3739
|
-
var
|
|
3740
|
-
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
4101
|
+
var _fetchProductInfoQuer15, _fetchProductInfoQuer16;
|
|
4102
|
+
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer15 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer15 === void 0 || (_fetchProductInfoQuer15 = _fetchProductInfoQuer15.data) === null || _fetchProductInfoQuer15 === void 0 || (_fetchProductInfoQuer15 = _fetchProductInfoQuer15.productinfo) === null || _fetchProductInfoQuer15 === void 0 || (_fetchProductInfoQuer15 = _fetchProductInfoQuer15.serviceinfo) === null || _fetchProductInfoQuer15 === void 0 ? void 0 : _fetchProductInfoQuer15.scheduletype) == 'days') {
|
|
3741
4103
|
if (addtocardpayloadobj.from.length != 0 && addtocardpayloadobj.to.length != 0 && addtocardpayloadobj.quantity != 0) {
|
|
3742
4104
|
addtocartfunc();
|
|
3743
4105
|
if (sectionproperties.cartbtntype == 'Goes to checkout') {
|
|
3744
4106
|
routingcountext(StaticPagesLinksContext.Checkout);
|
|
3745
4107
|
}
|
|
3746
4108
|
}
|
|
3747
|
-
} else if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
4109
|
+
} else if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer16 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer16 === void 0 || (_fetchProductInfoQuer16 = _fetchProductInfoQuer16.data) === null || _fetchProductInfoQuer16 === void 0 || (_fetchProductInfoQuer16 = _fetchProductInfoQuer16.productinfo) === null || _fetchProductInfoQuer16 === void 0 || (_fetchProductInfoQuer16 = _fetchProductInfoQuer16.serviceinfo) === null || _fetchProductInfoQuer16 === void 0 ? void 0 : _fetchProductInfoQuer16.scheduletype) == 'minutes') {
|
|
3748
4110
|
if (addtocardpayloadobj.date.length != 0 && addtocardpayloadobj.time.length != 0) {
|
|
3749
4111
|
addtocartfunc();
|
|
3750
4112
|
if (sectionproperties.cartbtntype == 'Goes to checkout') {
|
|
@@ -3777,7 +4139,7 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
|
|
|
3777
4139
|
size: sectionproperties.cartBtn_iconFontSize
|
|
3778
4140
|
}), sectionproperties.carticonstyle == 'Shopping cart 2' && /*#__PURE__*/React__default["default"].createElement(MdAddShoppingCart.MdAddShoppingCart, {
|
|
3779
4141
|
size: sectionproperties.cartBtn_iconFontSize
|
|
3780
|
-
})), langdetect == 'en' ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
4142
|
+
})), langdetect == 'en' ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer17 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer17 === void 0 || (_fetchProductInfoQuer17 = _fetchProductInfoQuer17.data) === null || _fetchProductInfoQuer17 === void 0 || (_fetchProductInfoQuer17 = _fetchProductInfoQuer17.productinfo) === null || _fetchProductInfoQuer17 === void 0 ? void 0 : _fetchProductInfoQuer17.productactionbuttontext_en : fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer18 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer18 === void 0 || (_fetchProductInfoQuer18 = _fetchProductInfoQuer18.data) === null || _fetchProductInfoQuer18 === void 0 || (_fetchProductInfoQuer18 = _fetchProductInfoQuer18.productinfo) === null || _fetchProductInfoQuer18 === void 0 ? void 0 : _fetchProductInfoQuer18.productactionbuttontext_ar), AddtoCartMutationContext.isLoading && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3781
4143
|
className: ' d-flex align-items-center justify-content-center '
|
|
3782
4144
|
}, /*#__PURE__*/React__default["default"].createElement(reactCssfxLoading.CircularProgress, {
|
|
3783
4145
|
color: "white",
|
|
@@ -3821,13 +4183,13 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
|
|
|
3821
4183
|
}, /*#__PURE__*/React__default["default"].createElement("button", {
|
|
3822
4184
|
className: "".concat(productinfo_cssstyles.checkoutbtn, " ") + ' d-flex align-items-center justify-content-center ml-sm-auto mr-sm-auto mb-sm-2 ',
|
|
3823
4185
|
onClick: function onClick() {
|
|
3824
|
-
var
|
|
3825
|
-
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
4186
|
+
var _fetchProductInfoQuer19, _fetchProductInfoQuer20;
|
|
4187
|
+
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer19 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer19 === void 0 || (_fetchProductInfoQuer19 = _fetchProductInfoQuer19.data) === null || _fetchProductInfoQuer19 === void 0 || (_fetchProductInfoQuer19 = _fetchProductInfoQuer19.productinfo) === null || _fetchProductInfoQuer19 === void 0 || (_fetchProductInfoQuer19 = _fetchProductInfoQuer19.serviceinfo) === null || _fetchProductInfoQuer19 === void 0 ? void 0 : _fetchProductInfoQuer19.scheduletype) == 'days') {
|
|
3826
4188
|
if (addtocardpayloadobj.from.length != 0 && addtocardpayloadobj.to.length != 0 && addtocardpayloadobj.quantity != 0) {
|
|
3827
4189
|
addtocartfunc();
|
|
3828
4190
|
routingcountext(StaticPagesLinksContext.Checkout);
|
|
3829
4191
|
}
|
|
3830
|
-
} else if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
4192
|
+
} else if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer20 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer20 === void 0 || (_fetchProductInfoQuer20 = _fetchProductInfoQuer20.data) === null || _fetchProductInfoQuer20 === void 0 || (_fetchProductInfoQuer20 = _fetchProductInfoQuer20.productinfo) === null || _fetchProductInfoQuer20 === void 0 || (_fetchProductInfoQuer20 = _fetchProductInfoQuer20.serviceinfo) === null || _fetchProductInfoQuer20 === void 0 ? void 0 : _fetchProductInfoQuer20.scheduletype) == 'minutes') {
|
|
3831
4193
|
if (addtocardpayloadobj.date.length != 0 && addtocardpayloadobj.time.length != 0) {
|
|
3832
4194
|
addtocartfunc();
|
|
3833
4195
|
routingcountext(StaticPagesLinksContext.Checkout);
|
|
@@ -22135,40 +22497,14 @@ var ElegantHeader = function ElegantHeader(props) {
|
|
|
22135
22497
|
onClick: function onClick() {
|
|
22136
22498
|
setlang('en');
|
|
22137
22499
|
}
|
|
22138
|
-
}, /*#__PURE__*/React__default["default"].createElement("
|
|
22139
|
-
src: 'https://tabex-co.com/storage/StaticImages/egyptflag.png',
|
|
22140
|
-
style: {
|
|
22141
|
-
maxWidth: '2vh',
|
|
22142
|
-
maxHeight: '2vh'
|
|
22143
|
-
}
|
|
22144
|
-
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
22145
|
-
style: {
|
|
22146
|
-
height: '20px',
|
|
22147
|
-
width: '1.5px',
|
|
22148
|
-
background: '#e6e6e6'
|
|
22149
|
-
},
|
|
22150
|
-
"class": "ml-2 mr-2"
|
|
22151
|
-
}), /*#__PURE__*/React__default["default"].createElement("p", {
|
|
22500
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
22152
22501
|
"class": "m-0 p-0"
|
|
22153
22502
|
}, "\u0639")), langdetect == 'en' && sectionproperties.showlanuagecontainer == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
22154
22503
|
"class": "".concat(header_cssstyles.languagecontainer) + ' allcentered mx-4 ',
|
|
22155
22504
|
onClick: function onClick() {
|
|
22156
22505
|
setlang('ar');
|
|
22157
22506
|
}
|
|
22158
|
-
}, /*#__PURE__*/React__default["default"].createElement("
|
|
22159
|
-
src: 'https://tabex-co.com/storage/StaticImages/usflag.png',
|
|
22160
|
-
style: {
|
|
22161
|
-
maxWidth: '2vh',
|
|
22162
|
-
maxHeight: '2vh'
|
|
22163
|
-
}
|
|
22164
|
-
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
22165
|
-
style: {
|
|
22166
|
-
height: '20px',
|
|
22167
|
-
width: '1.5px',
|
|
22168
|
-
background: '#e6e6e6'
|
|
22169
|
-
},
|
|
22170
|
-
"class": "ml-2 mr-2"
|
|
22171
|
-
}), /*#__PURE__*/React__default["default"].createElement("p", {
|
|
22507
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
22172
22508
|
"class": "m-0 p-0"
|
|
22173
22509
|
}, "En")), sectionproperties.ShowUserBtn == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
22174
22510
|
"class": "allcentered"
|
|
@@ -45124,8 +45460,9 @@ var Newsletterfooter = function Newsletterfooter(props) {
|
|
|
45124
45460
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
45125
45461
|
"class": "row m-0 w-100 d-none d-md-flex editor-accordion"
|
|
45126
45462
|
}, /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.Accordion, {
|
|
45463
|
+
"class": "w-100",
|
|
45127
45464
|
allowMultipleExpanded: true,
|
|
45128
|
-
|
|
45465
|
+
allowZeroExpanded: true
|
|
45129
45466
|
}, /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItem, null, /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItemHeading, null, /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItemButton, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
45130
45467
|
"class": "row m-0 w-100"
|
|
45131
45468
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -45156,6 +45493,7 @@ var Newsletterfooter = function Newsletterfooter(props) {
|
|
|
45156
45493
|
"class": "row m-0 w-100 d-none d-md-flex editor-accordion"
|
|
45157
45494
|
}, /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.Accordion, {
|
|
45158
45495
|
allowMultipleExpanded: true,
|
|
45496
|
+
allowZeroExpanded: true,
|
|
45159
45497
|
"class": "w-100"
|
|
45160
45498
|
}, /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItem, null, /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItemHeading, null, /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItemButton, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
45161
45499
|
"class": "row m-0 w-100"
|
|
@@ -45678,7 +46016,9 @@ var Newsletterincenter = function Newsletterincenter(props) {
|
|
|
45678
46016
|
}, /*#__PURE__*/React__default["default"].createElement("hr", null)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
45679
46017
|
"class": "col-lg-12 col-md-12 d-none d-md-flex"
|
|
45680
46018
|
}, /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.Accordion, {
|
|
45681
|
-
"class": "w-100"
|
|
46019
|
+
"class": "w-100",
|
|
46020
|
+
allowMultipleExpanded: true,
|
|
46021
|
+
allowZeroExpanded: true
|
|
45682
46022
|
}, /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItem, null, /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItemHeading, null, /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItemButton, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
45683
46023
|
"class": "row m-0 w-100"
|
|
45684
46024
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -45706,7 +46046,9 @@ var Newsletterincenter = function Newsletterincenter(props) {
|
|
|
45706
46046
|
}, /*#__PURE__*/React__default["default"].createElement("hr", null)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
45707
46047
|
"class": "col-lg-12 col-md-12 d-none d-md-flex"
|
|
45708
46048
|
}, /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.Accordion, {
|
|
45709
|
-
"class": "w-100"
|
|
46049
|
+
"class": "w-100",
|
|
46050
|
+
allowMultipleExpanded: true,
|
|
46051
|
+
allowZeroExpanded: true
|
|
45710
46052
|
}, /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItem, null, /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItemHeading, null, /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItemButton, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
45711
46053
|
"class": "row m-0 w-100"
|
|
45712
46054
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -71100,6 +71442,82 @@ var Simpleproductcard = function Simpleproductcard(props) {
|
|
|
71100
71442
|
fontWeight: sectionproperties.prodCatFontWeight
|
|
71101
71443
|
})
|
|
71102
71444
|
};
|
|
71445
|
+
var _useState5 = React.useState(''),
|
|
71446
|
+
_useState6 = _slicedToArray__default["default"](_useState5, 2),
|
|
71447
|
+
secondimage = _useState6[0],
|
|
71448
|
+
setsecondimage = _useState6[1];
|
|
71449
|
+
React.useEffect(function () {
|
|
71450
|
+
var _props$cardinfoitempr;
|
|
71451
|
+
setitem(props.cardinfoitemprops);
|
|
71452
|
+
if ((props === null || props === void 0 || (_props$cardinfoitempr = props.cardinfoitemprops) === null || _props$cardinfoitempr === void 0 || (_props$cardinfoitempr = _props$cardinfoitempr.productimages) === null || _props$cardinfoitempr === void 0 ? void 0 : _props$cardinfoitempr.length) == 1) {
|
|
71453
|
+
var _props$cardinfoitempr2;
|
|
71454
|
+
setsecondimage(props === null || props === void 0 || (_props$cardinfoitempr2 = props.cardinfoitemprops) === null || _props$cardinfoitempr2 === void 0 ? void 0 : _props$cardinfoitempr2.image);
|
|
71455
|
+
} else {
|
|
71456
|
+
var _props$cardinfoitempr3, _props$cardinfoitempr4;
|
|
71457
|
+
if ((props === null || props === void 0 ? void 0 : props.cardinfoitemprops) != undefined && (props === null || props === void 0 || (_props$cardinfoitempr3 = props.cardinfoitemprops) === null || _props$cardinfoitempr3 === void 0 ? void 0 : _props$cardinfoitempr3.productimages) != undefined && Array.isArray(props === null || props === void 0 || (_props$cardinfoitempr4 = props.cardinfoitemprops) === null || _props$cardinfoitempr4 === void 0 ? void 0 : _props$cardinfoitempr4.productimages)) {
|
|
71458
|
+
var _props$cardinfoitempr5, _props$cardinfoitempr6, _props$cardinfoitempr7;
|
|
71459
|
+
if ((props === null || props === void 0 || (_props$cardinfoitempr5 = props.cardinfoitemprops) === null || _props$cardinfoitempr5 === void 0 ? void 0 : _props$cardinfoitempr5.productimages[0]) != undefined && (props === null || props === void 0 || (_props$cardinfoitempr6 = props.cardinfoitemprops) === null || _props$cardinfoitempr6 === void 0 || (_props$cardinfoitempr6 = _props$cardinfoitempr6.productimages[0]) === null || _props$cardinfoitempr6 === void 0 ? void 0 : _props$cardinfoitempr6.path) == (props === null || props === void 0 || (_props$cardinfoitempr7 = props.cardinfoitemprops) === null || _props$cardinfoitempr7 === void 0 ? void 0 : _props$cardinfoitempr7.image)) {
|
|
71460
|
+
var _props$cardinfoitempr8;
|
|
71461
|
+
if ((props === null || props === void 0 || (_props$cardinfoitempr8 = props.cardinfoitemprops) === null || _props$cardinfoitempr8 === void 0 || (_props$cardinfoitempr8 = _props$cardinfoitempr8.productimages[1]) === null || _props$cardinfoitempr8 === void 0 ? void 0 : _props$cardinfoitempr8.length) != 0) {
|
|
71462
|
+
var _props$cardinfoitempr9;
|
|
71463
|
+
setsecondimage(props === null || props === void 0 || (_props$cardinfoitempr9 = props.cardinfoitemprops) === null || _props$cardinfoitempr9 === void 0 || (_props$cardinfoitempr9 = _props$cardinfoitempr9.productimages[1]) === null || _props$cardinfoitempr9 === void 0 ? void 0 : _props$cardinfoitempr9.path);
|
|
71464
|
+
} else {
|
|
71465
|
+
var _props$cardinfoitempr10;
|
|
71466
|
+
setsecondimage(props === null || props === void 0 || (_props$cardinfoitempr10 = props.cardinfoitemprops) === null || _props$cardinfoitempr10 === void 0 ? void 0 : _props$cardinfoitempr10.image);
|
|
71467
|
+
}
|
|
71468
|
+
} else {
|
|
71469
|
+
var _props$cardinfoitempr11;
|
|
71470
|
+
setsecondimage(props === null || props === void 0 || (_props$cardinfoitempr11 = props.cardinfoitemprops) === null || _props$cardinfoitempr11 === void 0 || (_props$cardinfoitempr11 = _props$cardinfoitempr11.productimages[0]) === null || _props$cardinfoitempr11 === void 0 ? void 0 : _props$cardinfoitempr11.path);
|
|
71471
|
+
}
|
|
71472
|
+
}
|
|
71473
|
+
}
|
|
71474
|
+
}, [props.cardinfoitemprops]);
|
|
71475
|
+
var Image = function Image(type) {
|
|
71476
|
+
var transition = false;
|
|
71477
|
+
if (sectionproperties.hideshowcardtransition == 'Show' && type != 'responsive') {
|
|
71478
|
+
transition = true;
|
|
71479
|
+
}
|
|
71480
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
71481
|
+
"class": "w-100 cursor-pointer",
|
|
71482
|
+
style: {
|
|
71483
|
+
position: 'relative'
|
|
71484
|
+
}
|
|
71485
|
+
}, /*#__PURE__*/React__default["default"].createElement(Imagekitimagecomp, {
|
|
71486
|
+
"class": transition ? cardstyles$7.intialimage : '',
|
|
71487
|
+
urlEndpoint: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint,
|
|
71488
|
+
publicKey: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimagepublickey,
|
|
71489
|
+
path: '/tr:w-' + sectionproperties.imagetr_w + ',h-' + sectionproperties.imagetr_h + '/' + item.image,
|
|
71490
|
+
loading: "lazy",
|
|
71491
|
+
style: {
|
|
71492
|
+
width: sectionproperties.imageInnerWidth_Height + '%',
|
|
71493
|
+
height: sectionproperties.imageInnerWidth_Height + '%',
|
|
71494
|
+
objectFit: sectionproperties.bgcovercontain == 'Cover' ? 'cover' : 'contain'
|
|
71495
|
+
},
|
|
71496
|
+
onClick: function onClick(e) {
|
|
71497
|
+
e.stopPropagation();
|
|
71498
|
+
cardonclickfunctionContext(sectionproperties === null || sectionproperties === void 0 ? void 0 : sectionproperties.onClickRoute, item.productid, props.fetchingtypeprops, item.collectionid);
|
|
71499
|
+
}
|
|
71500
|
+
}), transition && /*#__PURE__*/React__default["default"].createElement(Imagekitimagecomp, {
|
|
71501
|
+
"class": cardstyles$7.secondaryimage,
|
|
71502
|
+
urlEndpoint: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint,
|
|
71503
|
+
publicKey: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimagepublickey,
|
|
71504
|
+
path: '/tr:w-' + sectionproperties.imagetr_w + ',h-' + sectionproperties.imagetr_h + '/' + secondimage,
|
|
71505
|
+
loading: "lazy",
|
|
71506
|
+
style: {
|
|
71507
|
+
width: sectionproperties.imageInnerWidth_Height + '%',
|
|
71508
|
+
height: sectionproperties.imageInnerWidth_Height + '%',
|
|
71509
|
+
objectFit: sectionproperties.bgcovercontain == 'Cover' ? 'cover' : 'contain'
|
|
71510
|
+
},
|
|
71511
|
+
onClick: function onClick(e) {
|
|
71512
|
+
e.stopPropagation();
|
|
71513
|
+
cardonclickfunctionContext(sectionproperties === null || sectionproperties === void 0 ? void 0 : sectionproperties.onClickRoute, item.productid, props.fetchingtypeprops, item.collectionid);
|
|
71514
|
+
|
|
71515
|
+
// setShowProductInfoModalContext(true);
|
|
71516
|
+
// setProductIdProdutInfoModalContext(item.productid);
|
|
71517
|
+
}
|
|
71518
|
+
}));
|
|
71519
|
+
};
|
|
71520
|
+
|
|
71103
71521
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
71104
71522
|
"class": props.sectiontypeprops2 == 'vertical' ? "".concat(card_cssstyles.productcard) + ' w-100 px-md-1 ' : " ".concat(card_cssstyles.productcard),
|
|
71105
71523
|
style: {
|
|
@@ -71215,31 +71633,16 @@ var Simpleproductcard = function Simpleproductcard(props) {
|
|
|
71215
71633
|
direction: 'ltr'
|
|
71216
71634
|
}
|
|
71217
71635
|
}, langdetect == 'en' ? 'Save' : 'وفر', " ", langdetect == 'en' ? item.currencyname : '', ' ', parseFloat(Math.round(parseInt(item.defaultprice) - parseInt(item.defaultsaleprice))).toFixed(0), " ", langdetect == 'en' ? '' : item.currencyname)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
71218
|
-
|
|
71219
|
-
if ((sectionproperties === null || sectionproperties === void 0 ? void 0 : sectionproperties.onClickRoute) == 'Product Information') {
|
|
71220
|
-
// setShowProductInfoModalContext(true);
|
|
71221
|
-
// setProductIdProdutInfoModalContext(item.productid);
|
|
71222
|
-
cardonclickfunctionContext(sectionproperties === null || sectionproperties === void 0 ? void 0 : sectionproperties.onClickRoute, item.productid, props.fetchingtypeprops, item.collectionid);
|
|
71223
|
-
} else {
|
|
71224
|
-
cardonclickfunctionContext(sectionproperties === null || sectionproperties === void 0 ? void 0 : sectionproperties.onClickRoute, item.productid, props.fetchingtypeprops, item.collectionid);
|
|
71225
|
-
}
|
|
71226
|
-
},
|
|
71227
|
-
"class": "".concat(card_cssstyles.productcardimagecont) + ' w-100 p-0 d-flex align-items-center justify-content-center ',
|
|
71636
|
+
"class": sectionproperties.hideshowcardtransition == 'Show' ? " ".concat(card_cssstyles.productcardimagecont, " ").concat(cardstyles$7.imagecontainer) + ' d-flex d-md-none ' : " ".concat(card_cssstyles.productcardimagecont, " ") + ' d-flex d-md-none ',
|
|
71228
71637
|
style: {
|
|
71229
|
-
zIndex: 1,
|
|
71230
71638
|
marginBottom: sectionproperties.image_mb + 'px'
|
|
71231
71639
|
}
|
|
71232
|
-
},
|
|
71233
|
-
|
|
71234
|
-
publicKey: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimagepublickey,
|
|
71235
|
-
path: '/tr:w-' + sectionproperties.imagetr_w + ',h-' + sectionproperties.imagetr_h + '/' + item.image,
|
|
71236
|
-
loading: "lazy",
|
|
71640
|
+
}, Image('normal')), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
71641
|
+
"class": card_cssstyles.productcardimagecont + ' d-none d-md-flex ',
|
|
71237
71642
|
style: {
|
|
71238
|
-
|
|
71239
|
-
height: sectionproperties.imageInnerWidth_Height + '%',
|
|
71240
|
-
objectFit: sectionproperties.bgcovercontain == 'Cover' ? 'cover' : 'contain'
|
|
71643
|
+
marginBottom: sectionproperties.image_mb + 'px'
|
|
71241
71644
|
}
|
|
71242
|
-
})), item.currentquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' && item.hasvariants == 0 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
71645
|
+
}, Image('responsive')), item.currentquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' && item.hasvariants == 0 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
71243
71646
|
"class": "".concat(card_cssstyles.outstockbadge) + ' allcentered '
|
|
71244
71647
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
71245
71648
|
"class": "m-0 p-0"
|