tabexseriescomponents 0.0.348 → 0.0.349
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 +675 -875
- package/dist/index.esm.js +676 -876
- package/dist/index.umd.js +677 -875
- package/package.json +1 -1
- package/srclibrary.zip +0 -0
package/dist/index.cjs.js
CHANGED
|
@@ -31,9 +31,6 @@ var FiShoppingBag = require('@react-icons/all-files/fi/FiShoppingBag');
|
|
|
31
31
|
var FiShoppingCart = require('@react-icons/all-files/fi/FiShoppingCart');
|
|
32
32
|
var AiFillStar$1 = require('@react-icons/all-files/ai/AiFillStar');
|
|
33
33
|
var AiOutlineStar = require('@react-icons/all-files/ai/AiOutlineStar');
|
|
34
|
-
var AiOutlineTwitter = require('@react-icons/all-files/ai/AiOutlineTwitter');
|
|
35
|
-
var FaWhatsapp = require('@react-icons/all-files/fa/FaWhatsapp');
|
|
36
|
-
var FaLinkedinIn = require('@react-icons/all-files/fa/FaLinkedinIn');
|
|
37
34
|
var reactShare = require('react-share');
|
|
38
35
|
var FiMinus = require('@react-icons/all-files/fi/FiMinus');
|
|
39
36
|
var FiPlus = require('@react-icons/all-files/fi/FiPlus');
|
|
@@ -58,7 +55,7 @@ var HiOutlineChevronLeft = require('@react-icons/all-files/hi/HiOutlineChevronLe
|
|
|
58
55
|
var GoGlobe = require('@react-icons/all-files/go/GoGlobe');
|
|
59
56
|
var VscGlobe = require('@react-icons/all-files/vsc/VscGlobe');
|
|
60
57
|
var HiOutlineTrash = require('@react-icons/all-files/hi/HiOutlineTrash');
|
|
61
|
-
require('@react-icons/all-files/bi/BiSad');
|
|
58
|
+
var BiSad = require('@react-icons/all-files/bi/BiSad');
|
|
62
59
|
var FiCalendar = require('@react-icons/all-files/fi/FiCalendar');
|
|
63
60
|
var Dropdown = require('react-bootstrap/Dropdown');
|
|
64
61
|
var _asyncToGenerator = require('@babel/runtime/helpers/asyncToGenerator');
|
|
@@ -93,6 +90,7 @@ var HiOutlineArrowLeft = require('@react-icons/all-files/hi/HiOutlineArrowLeft')
|
|
|
93
90
|
var ReactPaginate = require('react-paginate');
|
|
94
91
|
var FaFacebook = require('@react-icons/all-files/fa/FaFacebook');
|
|
95
92
|
var AiFillInstagram = require('@react-icons/all-files/ai/AiFillInstagram');
|
|
93
|
+
var FaWhatsapp = require('@react-icons/all-files/fa/FaWhatsapp');
|
|
96
94
|
var BiGlobe = require('@react-icons/all-files/bi/BiGlobe');
|
|
97
95
|
var MdKeyboardArrowDown = require('@react-icons/all-files/md/MdKeyboardArrowDown');
|
|
98
96
|
var FaMoneyBillWave = require('@react-icons/all-files/fa/FaMoneyBillWave');
|
|
@@ -2179,12 +2177,15 @@ var DescriptionContent = function DescriptionContent(props) {
|
|
|
2179
2177
|
function ownKeys$2n(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; }
|
|
2180
2178
|
function _objectSpread$2n(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2n(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2n(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
2181
2179
|
var Product_itemtype = function Product_itemtype(props) {
|
|
2182
|
-
var _fetchProductInfoQuer14, _fetchProductInfoQuer15, _fetchProductInfoQuer16, _fetchProductInfoQuer17, _fetchProductInfoQuer18, _fetchProductInfoQuer19, _fetchProductInfoQuer20, _fetchProductInfoQuer21, _fetchProductInfoQuer22,
|
|
2180
|
+
var _fetchProductInfoQuer2, _fetchProductInfoQuer3, _fetchProductInfoQuer4, _fetchProductInfoQuer5, _fetchProductInfoQuer6, _fetchProductInfoQuer7, _fetchProductInfoQuer8, _fetchProductInfoQuer9, _fetchProductInfoQuer10, _fetchProductInfoQuer11, _fetchProductInfoQuer12, _fetchProductInfoQuer13, _fetchProductInfoQuer14, _fetchProductInfoQuer15, _fetchProductInfoQuer16, _fetchProductInfoQuer17, _ProductInfoObj$data, _fetchProductInfoQuer18, _fetchProductInfoQuer19, _fetchProductInfoQuer20, _fetchProductInfoQuer21, _fetchProductInfoQuer22, _fetchProductInfoQuer24, _fetchProductInfoQuer25, _fetchProductInfoQuer26, _fetchProductInfoQuer28, _fetchProductInfoQuer29, _fetchProductInfoQuer30, _fetchProductInfoQuer31, _fetchProductInfoQuer32, _fetchProductInfoQuer33, _fetchProductInfoQuer34;
|
|
2183
2181
|
var lang = props.actions.lang;
|
|
2184
2182
|
var langdetect = props.actions.langdetect;
|
|
2185
2183
|
var srcfromprops = props.actions.srcfromprops;
|
|
2184
|
+
props.actions.returnpolicyobj;
|
|
2186
2185
|
var productinfo_cssstyles = props.actions.productinfo_cssstyles;
|
|
2187
2186
|
var addtocartfunc = props.actions.addtocartfunc;
|
|
2187
|
+
props.actions.selectproductoptionvalue;
|
|
2188
|
+
props.actions.clearchoosenvaluesbutkeepcurrentvalue;
|
|
2188
2189
|
var productimagesarray = props.actions.productimagesarray;
|
|
2189
2190
|
var fetchProductInfoQueryContext = props.actions.fetchProductInfoQueryContext;
|
|
2190
2191
|
var sectionproperties = props.actions.sectionproperties;
|
|
@@ -2245,395 +2246,71 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
2245
2246
|
}
|
|
2246
2247
|
return titlelang;
|
|
2247
2248
|
}
|
|
2248
|
-
var GalleryStyle1Section = function GalleryStyle1Section() {
|
|
2249
|
-
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2250
|
-
className: sectionproperties.maximizegalleryfullscreen == 'Yes' ? ' col-lg-12 p-0 maximize ' : 'col-lg-12 p-0',
|
|
2251
|
-
style: {
|
|
2252
|
-
width: '100%',
|
|
2253
|
-
height: 'auto'
|
|
2254
|
-
}
|
|
2255
|
-
}, productimagesarray.length == 0 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2256
|
-
style: {
|
|
2257
|
-
width: '100%',
|
|
2258
|
-
height: '30vh',
|
|
2259
|
-
background: '#eee',
|
|
2260
|
-
borderRadius: 10
|
|
2261
|
-
}
|
|
2262
|
-
}, /*#__PURE__*/React__default["default"].createElement("i", {
|
|
2263
|
-
"class": "h-100 allcentered text-light"
|
|
2264
|
-
}, /*#__PURE__*/React__default["default"].createElement(FiLayers.FiLayers, {
|
|
2265
|
-
size: 26
|
|
2266
|
-
}))), productimagesarray.length != 0 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2267
|
-
"class": "w-100 d-block d-md-none"
|
|
2268
|
-
}, /*#__PURE__*/React__default["default"].createElement(ImageGallery__default["default"], {
|
|
2269
|
-
items: productimagesarray,
|
|
2270
|
-
thumbnailPosition: sectionproperties.thumbnailposition == 'Bottom' ? 'bottom' : 'left',
|
|
2271
|
-
showNav: false,
|
|
2272
|
-
showPlayButton: false,
|
|
2273
|
-
showFullscreenButton: true,
|
|
2274
|
-
startIndex: currentshowingimageindex
|
|
2275
|
-
})), productimagesarray.length != 0 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2276
|
-
"class": "w-100 d-none d-md-block"
|
|
2277
|
-
}, /*#__PURE__*/React__default["default"].createElement(ImageGallery__default["default"], {
|
|
2278
|
-
items: productimagesarray,
|
|
2279
|
-
thumbnailPosition: 'bottom',
|
|
2280
|
-
showNav: false,
|
|
2281
|
-
showPlayButton: false,
|
|
2282
|
-
showFullscreenButton: true,
|
|
2283
|
-
startIndex: currentshowingimageindex
|
|
2284
|
-
})));
|
|
2285
|
-
};
|
|
2286
|
-
var ProductNameSection = function ProductNameSection() {
|
|
2287
|
-
return /*#__PURE__*/React__default["default"].createElement("p", {
|
|
2288
|
-
className: 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 ',
|
|
2289
|
-
onClick: function onClick() {
|
|
2290
|
-
if (srcfromprops == 'templatedraftrouter') {
|
|
2291
|
-
routingcountext(StaticPagesLinksContext.productinfo, true, fetchProductInfoQueryContext.data.data.productinfo.productid);
|
|
2292
|
-
}
|
|
2293
|
-
},
|
|
2294
|
-
style: {
|
|
2295
|
-
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
2296
|
-
}
|
|
2297
|
-
}, langdetect == 'en' ? fetchProductInfoQueryContext.data.data.productinfo.name_en : fetchProductInfoQueryContext.data.data.productinfo.name_ar);
|
|
2298
|
-
};
|
|
2299
|
-
var SKUSection = function SKUSection() {
|
|
2300
|
-
var _fetchProductInfoQuer, _fetchProductInfoQuer2;
|
|
2301
|
-
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2302
|
-
"class": sectionproperties.availabilitybtnposition == 'Under SKU' && sectionproperties.show_availability == 'Show' ? 'row m-0 w-100 mt-3' : 'row m-0 w-100'
|
|
2303
|
-
}, sectionproperties.showSKU == 'Show' && sectionproperties.productInformationType == 'Product/Service Information' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2304
|
-
"class": sectionproperties.availabilitybtnposition == 'Under SKU' && sectionproperties.show_availability == 'Show' ? 'col-lg-12 p-0 mb-1 d-flex justify-content-start' : sectionproperties.deliverytimeshow == 'Show' && (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.deliverydatetext) != null ? 'col-lg-12 p-0 mb-2 d-flex justify-content-start' : 'col-lg-12 p-0 mb-3 d-flex justify-content-start'
|
|
2305
|
-
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
2306
|
-
"class": "m-0 p-0 d-flex justify-content-start"
|
|
2307
|
-
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
2308
|
-
style: {
|
|
2309
|
-
color: sectionproperties.skuColor,
|
|
2310
|
-
fontWeight: sectionproperties.skuFontWeight,
|
|
2311
|
-
fontSize: sectionproperties.skuFontSize + 'px',
|
|
2312
|
-
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
2313
|
-
}
|
|
2314
|
-
}, langdetect == 'en' ? sectionproperties.skutitleEn : sectionproperties.skutitleAr, ":", ' '), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
2315
|
-
"class": "ml-1 mr-1",
|
|
2316
|
-
style: {
|
|
2317
|
-
color: '#7e859b',
|
|
2318
|
-
fontWeight: sectionproperties.skuSecondaryFontWeight,
|
|
2319
|
-
fontSize: sectionproperties.skuFontSize + 'px',
|
|
2320
|
-
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
2321
|
-
}
|
|
2322
|
-
}, fetchProductInfoQueryContext.data.data.productinfo.sku))), sectionproperties.availabilitybtnposition == 'Under SKU' && sectionproperties.show_availability == 'Show' && (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.isproducttobesold) == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2323
|
-
"class": 'col-lg-12 p-0 mb-3 d-flex justify-content-start'
|
|
2324
|
-
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
2325
|
-
"class": "m-0 p-0 d-flex justify-content-start"
|
|
2326
|
-
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
2327
|
-
style: {
|
|
2328
|
-
fontSize: sectionproperties.availability_fontsize + 'px',
|
|
2329
|
-
color: sectionproperties.availability_textcolor,
|
|
2330
|
-
textAlign: langdetect == 'en' ? 'left' : 'right',
|
|
2331
|
-
fontWeight: sectionproperties.skuFontWeight
|
|
2332
|
-
}
|
|
2333
|
-
}, lang.availability, ":"), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
2334
|
-
"class": "ml-1 mr-1",
|
|
2335
|
-
style: {
|
|
2336
|
-
color: fetchProductInfoQueryContext.data.data.productinfo.quantavailtype == 'nolimit' ? sectionproperties.availability_availabletextcolor : sectionproperties.availability_limitedtextcolor,
|
|
2337
|
-
fontSize: sectionproperties.availability_fontsize + 'px',
|
|
2338
|
-
fontWeight: sectionproperties.skuSecondaryFontWeight,
|
|
2339
|
-
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
2340
|
-
}
|
|
2341
|
-
}, fetchProductInfoQueryContext.data.data.productinfo.quantavailtype == 'nolimit' ? lang.instock : lang.limitedquantity))));
|
|
2342
|
-
};
|
|
2343
2249
|
var ShareButtonsContainer = function ShareButtonsContainer() {
|
|
2344
2250
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2345
2251
|
"class": "row m-0 w-100"
|
|
2346
2252
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2347
2253
|
"class": "col-lg-12 d-flex justify-content-center flex-column align-items-center p-0"
|
|
2348
2254
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
2349
|
-
"class": "m-0 p-0
|
|
2255
|
+
"class": "m-0 p-0",
|
|
2350
2256
|
style: {
|
|
2351
2257
|
fontWeight: sectionproperties.sharebtn_FontWeight,
|
|
2352
2258
|
color: sectionproperties.sharebtn_color,
|
|
2353
|
-
fontSize: sectionproperties.sharebtn_fontSize + 'px'
|
|
2354
|
-
textAlign: sectionproperties.sharecentered == 'Centered' ? 'center' : langdetect == 'en' ? 'left' : 'right'
|
|
2259
|
+
fontSize: sectionproperties.sharebtn_fontSize + 'px'
|
|
2355
2260
|
}
|
|
2356
2261
|
}, langdetect == 'en' ? sectionproperties.sharebtn_contentEn : sectionproperties.sharebtn_contentAr), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2357
|
-
className: "Demo__container w-100 m-0
|
|
2358
|
-
style: {
|
|
2359
|
-
justifyContent: srcfromprops != 'templatedraftrouter' ? 'start' : sectionproperties.sharecentered == 'Centered' ? 'center' : 'start'
|
|
2360
|
-
}
|
|
2262
|
+
className: "Demo__container w-100 m-0 allcentered mt-3"
|
|
2361
2263
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2362
|
-
className: "Demo__some-network ml-2 mr-2
|
|
2264
|
+
className: "Demo__some-network ml-2 mr-2"
|
|
2363
2265
|
}, /*#__PURE__*/React__default["default"].createElement(reactShare.FacebookShareButton, {
|
|
2364
2266
|
url: shareUrl,
|
|
2365
2267
|
quote: title,
|
|
2366
|
-
className: "Demo__some-network__share-button
|
|
2367
|
-
}, /*#__PURE__*/React__default["default"].createElement(
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
}, /*#__PURE__*/React__default["default"].createElement("
|
|
2371
|
-
|
|
2372
|
-
}, /*#__PURE__*/React__default["default"].createElement(FaFacebookF.FaFacebookF, null))))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2373
|
-
className: "Demo__some-network ml-2 mr-2 allcentered"
|
|
2268
|
+
className: "Demo__some-network__share-button"
|
|
2269
|
+
}, /*#__PURE__*/React__default["default"].createElement(reactShare.FacebookIcon, {
|
|
2270
|
+
size: 40,
|
|
2271
|
+
round: true
|
|
2272
|
+
}))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2273
|
+
className: "Demo__some-network ml-2 mr-2"
|
|
2374
2274
|
}, /*#__PURE__*/React__default["default"].createElement(reactShare.TwitterShareButton, {
|
|
2375
2275
|
url: shareUrl,
|
|
2376
2276
|
title: title,
|
|
2377
|
-
className: "Demo__some-network__share-button
|
|
2378
|
-
}, /*#__PURE__*/React__default["default"].createElement(
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
}, /*#__PURE__*/React__default["default"].createElement("
|
|
2382
|
-
"class": "h-100 allcentered"
|
|
2383
|
-
}, /*#__PURE__*/React__default["default"].createElement(AiOutlineTwitter.AiOutlineTwitter, {
|
|
2384
|
-
size: 16
|
|
2385
|
-
}))))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2277
|
+
className: "Demo__some-network__share-button"
|
|
2278
|
+
}, /*#__PURE__*/React__default["default"].createElement(reactShare.TwitterIcon, {
|
|
2279
|
+
size: 40,
|
|
2280
|
+
round: true
|
|
2281
|
+
}))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2386
2282
|
className: "Demo__some-network ml-2 mr-2"
|
|
2387
2283
|
}, /*#__PURE__*/React__default["default"].createElement(reactShare.WhatsappShareButton, {
|
|
2388
2284
|
url: shareUrl,
|
|
2389
2285
|
title: title,
|
|
2390
2286
|
separator: ":: ",
|
|
2391
2287
|
className: "Demo__some-network__share-button"
|
|
2392
|
-
}, /*#__PURE__*/React__default["default"].createElement(
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
}, /*#__PURE__*/React__default["default"].createElement("
|
|
2396
|
-
"class": "h-100 allcentered"
|
|
2397
|
-
}, /*#__PURE__*/React__default["default"].createElement(FaWhatsapp.FaWhatsapp, {
|
|
2398
|
-
size: 16
|
|
2399
|
-
}))))), sectionproperties.showsharelinkedin == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2288
|
+
}, /*#__PURE__*/React__default["default"].createElement(reactShare.WhatsappIcon, {
|
|
2289
|
+
size: 40,
|
|
2290
|
+
round: true
|
|
2291
|
+
}))), sectionproperties.showsharelinkedin == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2400
2292
|
className: "Demo__some-network ml-2 mr-2"
|
|
2401
2293
|
}, /*#__PURE__*/React__default["default"].createElement(reactShare.LinkedinShareButton, {
|
|
2402
2294
|
url: shareUrl,
|
|
2403
2295
|
title: title,
|
|
2404
2296
|
separator: ":: ",
|
|
2405
2297
|
className: "Demo__some-network__share-button"
|
|
2406
|
-
}, /*#__PURE__*/React__default["default"].createElement(
|
|
2407
|
-
|
|
2408
|
-
|
|
2409
|
-
}, /*#__PURE__*/React__default["default"].createElement("i", {
|
|
2410
|
-
"class": "h-100 allcentered"
|
|
2411
|
-
}, /*#__PURE__*/React__default["default"].createElement(FaLinkedinIn.FaLinkedinIn, null))))))));
|
|
2412
|
-
};
|
|
2413
|
-
var Quantitybtn_Cartbtn_Favbottombtn = function Quantitybtn_Cartbtn_Favbottombtn() {
|
|
2414
|
-
var _fetchProductInfoQuer3, _fetchProductInfoQuer4, _fetchProductInfoQuer5, _fetchProductInfoQuer7, _fetchProductInfoQuer8, _fetchProductInfoQuer9, _fetchProductInfoQuer11, _fetchProductInfoQuer12;
|
|
2415
|
-
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2416
|
-
"class": "col-lg-12 p-0"
|
|
2417
|
-
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2418
|
-
"class": "row m-0 w-100 d-flex align-items-center",
|
|
2419
|
-
style: {
|
|
2420
|
-
justifyContent: sectionproperties.cartbtncentered == 'Centered' ? 'center' : 'start'
|
|
2421
|
-
}
|
|
2422
|
-
}, sectionproperties.quantitybtn_show == 'Show' && (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.isproducttobesold) == 1 && (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.isproducthasquantitychange) == 1 && /*#__PURE__*/React__default["default"].createElement("button", {
|
|
2423
|
-
className: " ".concat(productinfo_cssstyles.quantitybtn) + ' p-0 d-flex align-items-center justify-content-center mb-sm-2 ',
|
|
2424
|
-
style: {
|
|
2425
|
-
height: sectionproperties.quantitybtn_height + 'px',
|
|
2426
|
-
width: sectionproperties.quantitybtn_width + 'px',
|
|
2427
|
-
flexDirection: 'row',
|
|
2428
|
-
direction: 'ltr'
|
|
2429
|
-
}
|
|
2430
|
-
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
2431
|
-
className: "".concat(productinfo_cssstyles.minus_quantitybtn_icon_container) + ' m-1 ',
|
|
2432
|
-
onClick: function onClick() {
|
|
2433
|
-
var tempaddtocardpayloadobj = _objectSpread$2n({}, addtocardpayloadobj);
|
|
2434
|
-
if (tempaddtocardpayloadobj.quantity > 0) {
|
|
2435
|
-
tempaddtocardpayloadobj.quantity = tempaddtocardpayloadobj.quantity - 1;
|
|
2436
|
-
}
|
|
2437
|
-
setaddtocardpayloadobj(_objectSpread$2n({}, tempaddtocardpayloadobj));
|
|
2438
|
-
}
|
|
2439
|
-
}, /*#__PURE__*/React__default["default"].createElement("i", {
|
|
2440
|
-
className: sectionproperties.quantityiconstyle == 'Arrows' ? 'fa fa-chevron-down' : 'h-100 allcentered',
|
|
2441
|
-
style: {
|
|
2442
|
-
fontSize: sectionproperties.remove_quantitybtn_textfontsize + 'px'
|
|
2443
|
-
}
|
|
2444
|
-
}, sectionproperties.quantityiconstyle == 'Plus/Minus' && /*#__PURE__*/React__default["default"].createElement(FiMinus.FiMinus, {
|
|
2445
|
-
size: sectionproperties.remove_quantitybtn_textfontsize
|
|
2446
|
-
}))), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
2447
|
-
className: "".concat(productinfo_cssstyles.quantitybtn_text)
|
|
2448
|
-
}, addtocardpayloadobj.quantity), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
2449
|
-
className: "".concat(productinfo_cssstyles.add_quantitybtn_icon_container) + ' m-1 ',
|
|
2450
|
-
onClick: function onClick() {
|
|
2451
|
-
var tempaddtocardpayloadobj = _objectSpread$2n({}, addtocardpayloadobj);
|
|
2452
|
-
tempaddtocardpayloadobj.quantity = tempaddtocardpayloadobj.quantity + 1;
|
|
2453
|
-
setaddtocardpayloadobj(_objectSpread$2n({}, tempaddtocardpayloadobj));
|
|
2454
|
-
}
|
|
2455
|
-
}, /*#__PURE__*/React__default["default"].createElement("i", {
|
|
2456
|
-
className: sectionproperties.quantityiconstyle == 'Arrows' ? 'fa fa-chevron-up' : 'h-100 allcentered'
|
|
2457
|
-
// className="fa fa-chevron-up"
|
|
2458
|
-
,
|
|
2459
|
-
style: {
|
|
2460
|
-
fontSize: sectionproperties.add_quantitybtn_textfontsize + 'px'
|
|
2461
|
-
}
|
|
2462
|
-
}, sectionproperties.quantityiconstyle == 'Plus/Minus' && /*#__PURE__*/React__default["default"].createElement(FiPlus.FiPlus, {
|
|
2463
|
-
size: sectionproperties.add_quantitybtn_textfontsize
|
|
2464
|
-
})))), sectionproperties.cartbtnalone == 'Besides Other Buttons' && sectionproperties.cartBtnShow == 'Show' && (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 ? void 0 : _fetchProductInfoQuer5.isproducttobesold) == 1 && /*#__PURE__*/React__default["default"].createElement("button", {
|
|
2465
|
-
className: "".concat(productinfo_cssstyles.cart_btn, " ") + ' ml-2 mr-2 d-flex align-items-center justify-content-center mb-sm-2 ',
|
|
2466
|
-
onClick: function onClick() {
|
|
2467
|
-
if (fetchProductInfoQueryContext.data.data.productinfo.product_calltoaction == 'Call') {
|
|
2468
|
-
var _fetchProductInfoQuer6;
|
|
2469
|
-
window.open('tel:' + ((_fetchProductInfoQuer6 = fetchProductInfoQueryContext.data.data.productinfo) === null || _fetchProductInfoQuer6 === void 0 ? void 0 : _fetchProductInfoQuer6.product_phonenumber), '_blank');
|
|
2470
|
-
} else {
|
|
2471
|
-
if (fetchProductInfoQueryContext.data.data.productinfo.maximumproductquant >= addtocardpayloadobj.quantity && fetchProductInfoQueryContext.data.data.productinfo.minimumproductquant <= addtocardpayloadobj.quantity) {
|
|
2472
|
-
addtocartfunc();
|
|
2473
|
-
} else {
|
|
2474
|
-
NotificationManager.warning('', lang.maximum + ': ' + fetchProductInfoQueryContext.data.data.productinfo.maximumproductquant + ', ' + lang.minimum + ': ' + fetchProductInfoQueryContext.data.data.productinfo.minimumproductquant);
|
|
2475
|
-
}
|
|
2476
|
-
}
|
|
2477
|
-
},
|
|
2478
|
-
disabled: AddtoCartMutationContext.isLoading == true ? true : false
|
|
2479
|
-
}, !AddtoCartMutationContext.isLoading && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
2480
|
-
className: ' d-flex align-items-center justify-content-center '
|
|
2481
|
-
}, /*#__PURE__*/React__default["default"].createElement("i", {
|
|
2482
|
-
className: langdetect == 'en' ? 'h-100 d-flex align-items-center justify-content-center mr-2' : 'h-100 d-flex align-items-center justify-content-center ml-2'
|
|
2483
|
-
}, sectionproperties.carticonstyle == 'Shopping bag 1' && /*#__PURE__*/React__default["default"].createElement(FiShoppingBag.FiShoppingBag, {
|
|
2484
|
-
className: "",
|
|
2485
|
-
size: sectionproperties.cartBtn_iconFontSize
|
|
2486
|
-
}), sectionproperties.carticonstyle == 'Shopping bag 2' && /*#__PURE__*/React__default["default"].createElement(CgShoppingBag.CgShoppingBag, {
|
|
2487
|
-
className: "",
|
|
2488
|
-
size: sectionproperties.cartBtn_iconFontSize
|
|
2489
|
-
}), sectionproperties.carticonstyle == 'Shopping bag 3' && /*#__PURE__*/React__default["default"].createElement(BsBag.BsBag, {
|
|
2490
|
-
className: "",
|
|
2491
|
-
size: sectionproperties.cartBtn_iconFontSize
|
|
2492
|
-
}), sectionproperties.carticonstyle == 'Shopping bag 4' && /*#__PURE__*/React__default["default"].createElement(IoBagHandleOutline.IoBagHandleOutline, {
|
|
2493
|
-
className: "",
|
|
2494
|
-
size: sectionproperties.cartBtn_iconFontSize
|
|
2495
|
-
}), sectionproperties.carticonstyle == 'Shopping cart 1' && /*#__PURE__*/React__default["default"].createElement(FiShoppingCart.FiShoppingCart, {
|
|
2496
|
-
className: "",
|
|
2497
|
-
size: sectionproperties.cartBtn_iconFontSize
|
|
2498
|
-
}), sectionproperties.carticonstyle == 'Shopping cart 2' && /*#__PURE__*/React__default["default"].createElement(MdAddShoppingCart.MdAddShoppingCart, {
|
|
2499
|
-
size: sectionproperties.cartBtn_iconFontSize
|
|
2500
|
-
})), langdetect == 'en' ? 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 ? void 0 : _fetchProductInfoQuer7.productactionbuttontext_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.productactionbuttontext_ar), AddtoCartMutationContext.isLoading && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2501
|
-
className: ' d-flex align-items-center justify-content-center '
|
|
2502
|
-
}, /*#__PURE__*/React__default["default"].createElement(reactCssfxLoading.CircularProgress, {
|
|
2503
|
-
color: "white",
|
|
2504
|
-
width: "20px",
|
|
2505
|
-
height: "20px",
|
|
2506
|
-
duration: "1s"
|
|
2507
|
-
}))), sectionproperties.btnposition == 'Bottom' && sectionproperties.favBtnShow == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2508
|
-
className: productinfo_cssstyles.wishlist_btn + ' d-flex justify-content-center align-items-center mb-sm-2 ',
|
|
2509
|
-
onClick: function onClick() {
|
|
2510
|
-
addtofavoritescontext(fetchProductInfoQueryContext.data.data.productinfo.productid);
|
|
2511
|
-
},
|
|
2512
|
-
style: {
|
|
2513
|
-
background: fetchProductInfoQueryContext.data.data.productinfo.IsFavExists == true ? sectionproperties.activebgcolor : ''
|
|
2514
|
-
}
|
|
2515
|
-
}, /*#__PURE__*/React__default["default"].createElement("i", {
|
|
2516
|
-
className: "h-100 d-flex align-items-center justify-content-center"
|
|
2517
|
-
}, fetchProductInfoQueryContext.data.data.productinfo.IsFavExists && /*#__PURE__*/React__default["default"].createElement("i", {
|
|
2518
|
-
className: "h-100 d-flex align-items-center justify-content-center"
|
|
2519
|
-
}, sectionproperties.faviconshape == 'Star Shape' && /*#__PURE__*/React__default["default"].createElement(AiFillStar$1.AiFillStar, {
|
|
2520
|
-
size: sectionproperties.favBtnIconfontsize,
|
|
2521
|
-
style: {
|
|
2522
|
-
color: sectionproperties.activefaviconcolor
|
|
2523
|
-
}
|
|
2524
|
-
}), sectionproperties.faviconshape == 'Heart Shape' && /*#__PURE__*/React__default["default"].createElement(FaHeart$1.FaHeart, {
|
|
2525
|
-
size: sectionproperties.favBtnIconfontsize,
|
|
2526
|
-
style: {
|
|
2527
|
-
color: sectionproperties.activefaviconcolor
|
|
2528
|
-
}
|
|
2529
|
-
})), !fetchProductInfoQueryContext.data.data.productinfo.IsFavExists && /*#__PURE__*/React__default["default"].createElement("i", {
|
|
2530
|
-
className: "h-100 d-flex align-items-center justify-content-center"
|
|
2531
|
-
}, sectionproperties.faviconshape == 'Star Shape' && /*#__PURE__*/React__default["default"].createElement(AiOutlineStar.AiOutlineStar, {
|
|
2532
|
-
size: sectionproperties.favBtnIconfontsize
|
|
2533
|
-
}), sectionproperties.faviconshape == 'Heart Shape' && /*#__PURE__*/React__default["default"].createElement(FaRegHeart.FaRegHeart, {
|
|
2534
|
-
size: sectionproperties.favBtnIconfontsize
|
|
2535
|
-
}))), !fetchProductInfoQueryContext.data.data.productinfo.IsFavExists && sectionproperties.favBtnTextfontsize != 0 && /*#__PURE__*/React__default["default"].createElement("p", {
|
|
2536
|
-
"class": "m-0 p-0",
|
|
2537
|
-
style: {
|
|
2538
|
-
fontSize: sectionproperties.favBtnTextfontsize + 'px'
|
|
2539
|
-
}
|
|
2540
|
-
}, langdetect == 'en' ? sectionproperties.favbtncontent_en : sectionproperties.favbtncontent_ar), fetchProductInfoQueryContext.data.data.productinfo.IsFavExists && sectionproperties.favBtnTextfontsize != 0 && /*#__PURE__*/React__default["default"].createElement("p", {
|
|
2541
|
-
"class": "m-0 p-0",
|
|
2542
|
-
style: {
|
|
2543
|
-
fontSize: sectionproperties.favBtnTextfontsize + 'px'
|
|
2544
|
-
}
|
|
2545
|
-
}, langdetect == 'en' ? sectionproperties.favbtnaddedcontent_en : sectionproperties.favbtnaddedcontent_ar))), sectionproperties.cartbtnalone == 'Alone' && sectionproperties.cartBtnShow == 'Show' && (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.isproducttobesold) == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2546
|
-
"class": "row m-0 w-100 mt-3",
|
|
2547
|
-
style: {
|
|
2548
|
-
overflow: 'hidden'
|
|
2549
|
-
}
|
|
2550
|
-
}, /*#__PURE__*/React__default["default"].createElement("button", {
|
|
2551
|
-
className: "".concat(productinfo_cssstyles.cart_btn, " ") + ' d-flex align-items-center justify-content-center mb-sm-2 ',
|
|
2552
|
-
style: {
|
|
2553
|
-
width: sectionproperties.cartBtnWidth + '%'
|
|
2554
|
-
},
|
|
2555
|
-
onClick: function onClick() {
|
|
2556
|
-
if (fetchProductInfoQueryContext.data.data.productinfo.product_calltoaction == 'Call') {
|
|
2557
|
-
var _fetchProductInfoQuer10;
|
|
2558
|
-
window.open('tel:' + ((_fetchProductInfoQuer10 = fetchProductInfoQueryContext.data.data.productinfo) === null || _fetchProductInfoQuer10 === void 0 ? void 0 : _fetchProductInfoQuer10.product_phonenumber), '_blank');
|
|
2559
|
-
} else {
|
|
2560
|
-
if (fetchProductInfoQueryContext.data.data.productinfo.maximumproductquant >= addtocardpayloadobj.quantity && fetchProductInfoQueryContext.data.data.productinfo.minimumproductquant <= addtocardpayloadobj.quantity) {
|
|
2561
|
-
addtocartfunc();
|
|
2562
|
-
} else {
|
|
2563
|
-
NotificationManager.warning('', lang.maximum + ': ' + fetchProductInfoQueryContext.data.data.productinfo.maximumproductquant + ', ' + lang.minimum + ': ' + fetchProductInfoQueryContext.data.data.productinfo.minimumproductquant);
|
|
2564
|
-
}
|
|
2565
|
-
}
|
|
2566
|
-
},
|
|
2567
|
-
disabled: AddtoCartMutationContext.isLoading == true ? true : false
|
|
2568
|
-
}, !AddtoCartMutationContext.isLoading && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
2569
|
-
className: ' d-flex align-items-center justify-content-center '
|
|
2570
|
-
}, /*#__PURE__*/React__default["default"].createElement("i", {
|
|
2571
|
-
className: langdetect == 'en' ? 'h-100 d-flex align-items-center justify-content-center mr-2' : 'h-100 d-flex align-items-center justify-content-center ml-2'
|
|
2572
|
-
}, sectionproperties.carticonstyle == 'Shopping bag 1' && /*#__PURE__*/React__default["default"].createElement(FiShoppingBag.FiShoppingBag, {
|
|
2573
|
-
className: "",
|
|
2574
|
-
size: sectionproperties.cartBtn_iconFontSize
|
|
2575
|
-
}), sectionproperties.carticonstyle == 'Shopping bag 2' && /*#__PURE__*/React__default["default"].createElement(CgShoppingBag.CgShoppingBag, {
|
|
2576
|
-
className: "",
|
|
2577
|
-
size: sectionproperties.cartBtn_iconFontSize
|
|
2578
|
-
}), sectionproperties.carticonstyle == 'Shopping bag 3' && /*#__PURE__*/React__default["default"].createElement(BsBag.BsBag, {
|
|
2579
|
-
className: "",
|
|
2580
|
-
size: sectionproperties.cartBtn_iconFontSize
|
|
2581
|
-
}), sectionproperties.carticonstyle == 'Shopping bag 4' && /*#__PURE__*/React__default["default"].createElement(IoBagHandleOutline.IoBagHandleOutline, {
|
|
2582
|
-
className: "",
|
|
2583
|
-
size: sectionproperties.cartBtn_iconFontSize
|
|
2584
|
-
}), sectionproperties.carticonstyle == 'Shopping cart 1' && /*#__PURE__*/React__default["default"].createElement(FiShoppingCart.FiShoppingCart, {
|
|
2585
|
-
className: "",
|
|
2586
|
-
size: sectionproperties.cartBtn_iconFontSize
|
|
2587
|
-
}), sectionproperties.carticonstyle == 'Shopping cart 2' && /*#__PURE__*/React__default["default"].createElement(MdAddShoppingCart.MdAddShoppingCart, {
|
|
2588
|
-
size: sectionproperties.cartBtn_iconFontSize
|
|
2589
|
-
})), langdetect == 'en' ? 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.productactionbuttontext_en : 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 ? void 0 : _fetchProductInfoQuer12.productactionbuttontext_ar), AddtoCartMutationContext.isLoading && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2590
|
-
className: ' d-flex align-items-center justify-content-center '
|
|
2591
|
-
}, /*#__PURE__*/React__default["default"].createElement(reactCssfxLoading.CircularProgress, {
|
|
2592
|
-
color: "white",
|
|
2593
|
-
width: "20px",
|
|
2594
|
-
height: "20px",
|
|
2595
|
-
duration: "1s"
|
|
2596
|
-
}))), sectionproperties.btnposition == 'Besides Cart Button' && sectionproperties.favBtnShow == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2597
|
-
className: productinfo_cssstyles.wishlist_btn + ' d-flex justify-content-center align-items-center mb-sm-2 mx-3 ',
|
|
2598
|
-
onClick: function onClick() {
|
|
2599
|
-
addtofavoritescontext(fetchProductInfoQueryContext.data.data.productinfo.productid);
|
|
2600
|
-
},
|
|
2601
|
-
style: {
|
|
2602
|
-
background: fetchProductInfoQueryContext.data.data.productinfo.IsFavExists == true ? sectionproperties.activebgcolor : ''
|
|
2603
|
-
}
|
|
2604
|
-
}, /*#__PURE__*/React__default["default"].createElement("i", {
|
|
2605
|
-
className: "h-100 d-flex align-items-center justify-content-center"
|
|
2606
|
-
}, fetchProductInfoQueryContext.data.data.productinfo.IsFavExists && /*#__PURE__*/React__default["default"].createElement("i", {
|
|
2607
|
-
className: "h-100 d-flex align-items-center justify-content-center"
|
|
2608
|
-
}, sectionproperties.faviconshape == 'Star Shape' && /*#__PURE__*/React__default["default"].createElement(AiFillStar$1.AiFillStar, {
|
|
2609
|
-
size: sectionproperties.favBtnIconfontsize,
|
|
2610
|
-
style: {
|
|
2611
|
-
color: sectionproperties.activefaviconcolor
|
|
2612
|
-
}
|
|
2613
|
-
}), sectionproperties.faviconshape == 'Heart Shape' && /*#__PURE__*/React__default["default"].createElement(FaHeart$1.FaHeart, {
|
|
2614
|
-
size: sectionproperties.favBtnIconfontsize,
|
|
2615
|
-
style: {
|
|
2616
|
-
color: sectionproperties.activefaviconcolor
|
|
2617
|
-
}
|
|
2618
|
-
})), !fetchProductInfoQueryContext.data.data.productinfo.IsFavExists && /*#__PURE__*/React__default["default"].createElement("i", {
|
|
2619
|
-
className: "h-100 d-flex align-items-center justify-content-center"
|
|
2620
|
-
}, sectionproperties.faviconshape == 'Star Shape' && /*#__PURE__*/React__default["default"].createElement(AiOutlineStar.AiOutlineStar, {
|
|
2621
|
-
size: sectionproperties.favBtnIconfontsize
|
|
2622
|
-
}), sectionproperties.faviconshape == 'Heart Shape' && /*#__PURE__*/React__default["default"].createElement(FaRegHeart.FaRegHeart, {
|
|
2623
|
-
size: sectionproperties.favBtnIconfontsize
|
|
2298
|
+
}, /*#__PURE__*/React__default["default"].createElement(reactShare.LinkedinIcon, {
|
|
2299
|
+
size: 40,
|
|
2300
|
+
round: true
|
|
2624
2301
|
}))))));
|
|
2625
2302
|
};
|
|
2626
2303
|
// {fetchProductInfoQueryContext.data.data.productinfo.hassale == 0
|
|
2627
2304
|
// ? parseFloat(getprice_discountpriceprops('defaultprice', 1, variantindexcompleted)).toFixed(2)
|
|
2628
2305
|
// : parseFloat(getprice_discountpriceprops('defaultsaleprice', 1, variantindexcompleted)).toFixed(2)}
|
|
2629
2306
|
React.useEffect(function () {
|
|
2630
|
-
var
|
|
2307
|
+
var _fetchProductInfoQuer;
|
|
2631
2308
|
var totalprice = '';
|
|
2632
2309
|
if (variantindexcompleted.length == 0 && fetchProductInfoQueryContext.data.data.productinfo.hassale == 0) {
|
|
2633
2310
|
totalprice = parseFloat(getprice_discountpriceprops('defaultprice', 1, variantindexcompleted)).toFixed(2);
|
|
2634
2311
|
} else if (variantindexcompleted.length == 0 && fetchProductInfoQueryContext.data.data.productinfo.hassale == 1) {
|
|
2635
2312
|
totalprice = parseFloat(getprice_discountpriceprops('defaultsaleprice', 1, variantindexcompleted)).toFixed(2);
|
|
2636
|
-
} else if (variantindexcompleted.length != 0 && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
2313
|
+
} else if (variantindexcompleted.length != 0 && (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.variants[variantindexcompleted]) === null || _fetchProductInfoQuer === void 0 ? void 0 : _fetchProductInfoQuer.hassale) == 1) {
|
|
2637
2314
|
totalprice = parseFloat(getprice_discountpriceprops('defaultsaleprice', 1, variantindexcompleted)).toFixed(2);
|
|
2638
2315
|
} else {
|
|
2639
2316
|
totalprice = parseFloat(getprice_discountpriceprops('defaultprice', 1, variantindexcompleted)).toFixed(2);
|
|
@@ -2649,13 +2326,13 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
2649
2326
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2650
2327
|
"class": ' col-lg-12 p-0 '
|
|
2651
2328
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2652
|
-
"class":
|
|
2329
|
+
"class": "".concat(productinfo_cssstyles.cardcontainer) + ' row ml-0 mr-0 w-100 pl-md-3 pr-md-3 px-1025-1 ',
|
|
2653
2330
|
style: {
|
|
2654
2331
|
minHeight: sectionproperties.height + 'vh'
|
|
2655
2332
|
}
|
|
2656
2333
|
}, sectionproperties.gallerystyle == 'Style 2' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2657
2334
|
"class": "w-100 scrollhorizontalwithscrollbar"
|
|
2658
|
-
}, (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
2335
|
+
}, (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) {
|
|
2659
2336
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2660
2337
|
"class": ' scrollhorizontalcard mx-2 ',
|
|
2661
2338
|
style: {
|
|
@@ -2686,17 +2363,60 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
2686
2363
|
className: 'row m-0 w-100'
|
|
2687
2364
|
}, sectionproperties.gallerystyle == 'Style 1' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2688
2365
|
className: "col-xl-5 col-lg-4 col-md-12 col-sm-12 mb-md-3 pb-md-4 pl-1 pr-1"
|
|
2689
|
-
},
|
|
2366
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2367
|
+
className: sectionproperties.maximizegalleryfullscreen == 'Yes' ? ' col-lg-12 p-0 maximize ' : 'col-lg-12 p-0',
|
|
2368
|
+
style: {
|
|
2369
|
+
width: '100%',
|
|
2370
|
+
height: 'auto'
|
|
2371
|
+
}
|
|
2372
|
+
}, productimagesarray.length == 0 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2373
|
+
style: {
|
|
2374
|
+
width: '100%',
|
|
2375
|
+
height: '30vh',
|
|
2376
|
+
background: '#eee',
|
|
2377
|
+
borderRadius: 10
|
|
2378
|
+
}
|
|
2379
|
+
}, /*#__PURE__*/React__default["default"].createElement("i", {
|
|
2380
|
+
"class": "h-100 allcentered text-light"
|
|
2381
|
+
}, /*#__PURE__*/React__default["default"].createElement(FiLayers.FiLayers, {
|
|
2382
|
+
size: 26
|
|
2383
|
+
}))), productimagesarray.length != 0 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2384
|
+
"class": "w-100 d-block d-md-none"
|
|
2385
|
+
}, /*#__PURE__*/React__default["default"].createElement(ImageGallery__default["default"], {
|
|
2386
|
+
items: productimagesarray,
|
|
2387
|
+
thumbnailPosition: sectionproperties.thumbnailposition == 'Bottom' ? 'bottom' : 'left',
|
|
2388
|
+
showNav: false,
|
|
2389
|
+
showPlayButton: false,
|
|
2390
|
+
showFullscreenButton: true,
|
|
2391
|
+
startIndex: currentshowingimageindex
|
|
2392
|
+
})), productimagesarray.length != 0 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2393
|
+
"class": "w-100 d-none d-md-block"
|
|
2394
|
+
}, /*#__PURE__*/React__default["default"].createElement(ImageGallery__default["default"], {
|
|
2395
|
+
items: productimagesarray,
|
|
2396
|
+
thumbnailPosition: 'bottom',
|
|
2397
|
+
showNav: false,
|
|
2398
|
+
showPlayButton: false,
|
|
2399
|
+
showFullscreenButton: true,
|
|
2400
|
+
startIndex: currentshowingimageindex
|
|
2401
|
+
})))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2690
2402
|
className: sectionproperties.gallerystyle == 'Style 1' ? langdetect == 'en' ? 'col-xl-7 col-lg-8 col-md-12 col-sm-12 pl-4 pr-0 p-md-0' : 'col-xl-7 col-lg-8 col-md-12 col-sm-12 pl-0 pr-4 p-md-0' : 'col-xl-12 col-lg-12 col-md-12 col-sm-12 px-3 px-md-2'
|
|
2691
2403
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2692
2404
|
className: "row m-0 w-100"
|
|
2693
2405
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2694
|
-
className: (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
2695
|
-
},
|
|
2406
|
+
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'
|
|
2407
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
2408
|
+
className: "".concat(productinfo_cssstyles.productname, " ").concat(productinfo_cssstyles.productnamehover) + ' m-0 p-0 wordbreak d-flex justify-content-start cursor-pointer font-sm-15 ',
|
|
2409
|
+
onClick: function onClick() {
|
|
2410
|
+
routingcountext(StaticPagesLinksContext.productinfo, true, fetchProductInfoQueryContext.data.data.productinfo.productid);
|
|
2411
|
+
},
|
|
2412
|
+
style: {
|
|
2413
|
+
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
2414
|
+
}
|
|
2415
|
+
}, langdetect == 'en' ? fetchProductInfoQueryContext.data.data.productinfo.name_en : fetchProductInfoQueryContext.data.data.productinfo.name_ar)), (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 ? void 0 : _fetchProductInfoQuer5.productcanrate) == 1 && sectionproperties.showrating == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2696
2416
|
className: "col-lg-4 col-md-4 col-sm-4 p-0 mb-1 d-flex justify-content-end align-items-center"
|
|
2697
2417
|
}, /*#__PURE__*/React__default["default"].createElement(ReactStars__default["default"], {
|
|
2698
2418
|
count: 5,
|
|
2699
|
-
value: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
2419
|
+
value: 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 ? void 0 : _fetchProductInfoQuer6.productoverallrate,
|
|
2700
2420
|
edit: false,
|
|
2701
2421
|
size: 18,
|
|
2702
2422
|
emptyIcon: /*#__PURE__*/React__default["default"].createElement("i", {
|
|
@@ -2717,7 +2437,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
2717
2437
|
activeColor: "#ffd700"
|
|
2718
2438
|
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2719
2439
|
className: "col-lg-4 col-md-4 col-sm-4 p-0 mb-1 d-flex justify-content-end align-items-center"
|
|
2720
|
-
}, sectionproperties.availabilitybtnposition == 'Top' && sectionproperties.show_availability == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
2440
|
+
}, sectionproperties.availabilitybtnposition == 'Top' && sectionproperties.show_availability == 'Show' && (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 ? void 0 : _fetchProductInfoQuer7.isproducttobesold) == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2721
2441
|
style: {
|
|
2722
2442
|
width: sectionproperties.availability_width + 'px',
|
|
2723
2443
|
height: sectionproperties.availability_height + 'px',
|
|
@@ -2764,139 +2484,367 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
2764
2484
|
size: sectionproperties.favBtnIconfontsize
|
|
2765
2485
|
}), sectionproperties.faviconshape == 'Heart Shape' && /*#__PURE__*/React__default["default"].createElement(FaRegHeart.FaRegHeart, {
|
|
2766
2486
|
size: sectionproperties.favBtnIconfontsize
|
|
2767
|
-
}))))), sectionproperties.descriptionposition == 'Top' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2768
|
-
"class": "col-lg-12 p-0"
|
|
2769
|
-
}, /*#__PURE__*/React__default["default"].createElement(DescriptionContent, {
|
|
2770
|
-
actions: props.actions,
|
|
2771
|
-
srcfromprops: 'undername'
|
|
2772
|
-
})), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
2773
|
-
"class": "col-lg-12 p-0 d-flex justify-content-start mt-2 mb-2"
|
|
2774
|
-
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
2775
|
-
"class": "m-0 p-0",
|
|
2776
|
-
style: {
|
|
2777
|
-
color: '#000'
|
|
2778
|
-
}
|
|
2779
|
-
}, langdetect == 'en' ? 'Seller' : 'البائع', ":", ' ', /*#__PURE__*/React__default["default"].createElement("span", {
|
|
2780
|
-
style: {
|
|
2781
|
-
fontWeight: 600
|
|
2782
|
-
}
|
|
2783
|
-
}, fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
2784
|
-
"class":
|
|
2785
|
-
},
|
|
2786
|
-
"class": "
|
|
2787
|
-
}, /*#__PURE__*/React__default["default"].createElement("
|
|
2788
|
-
|
|
2789
|
-
|
|
2790
|
-
|
|
2791
|
-
|
|
2792
|
-
|
|
2793
|
-
|
|
2794
|
-
|
|
2795
|
-
|
|
2796
|
-
|
|
2797
|
-
|
|
2798
|
-
|
|
2799
|
-
|
|
2800
|
-
|
|
2801
|
-
|
|
2802
|
-
|
|
2803
|
-
|
|
2804
|
-
|
|
2805
|
-
|
|
2806
|
-
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
2807
|
-
"class": "m-0 p-0
|
|
2808
|
-
|
|
2809
|
-
|
|
2810
|
-
|
|
2811
|
-
|
|
2812
|
-
|
|
2813
|
-
|
|
2814
|
-
|
|
2815
|
-
|
|
2816
|
-
|
|
2817
|
-
|
|
2818
|
-
|
|
2819
|
-
|
|
2820
|
-
|
|
2821
|
-
|
|
2822
|
-
}
|
|
2823
|
-
|
|
2824
|
-
|
|
2825
|
-
|
|
2826
|
-
|
|
2827
|
-
|
|
2828
|
-
|
|
2829
|
-
|
|
2830
|
-
|
|
2831
|
-
|
|
2832
|
-
|
|
2833
|
-
|
|
2834
|
-
|
|
2835
|
-
|
|
2836
|
-
|
|
2837
|
-
|
|
2838
|
-
|
|
2839
|
-
|
|
2840
|
-
|
|
2841
|
-
|
|
2842
|
-
|
|
2843
|
-
|
|
2844
|
-
|
|
2845
|
-
|
|
2846
|
-
}
|
|
2847
|
-
}, /*#__PURE__*/React__default["default"].createElement("
|
|
2848
|
-
|
|
2849
|
-
|
|
2850
|
-
|
|
2851
|
-
|
|
2852
|
-
|
|
2853
|
-
|
|
2854
|
-
|
|
2855
|
-
|
|
2856
|
-
|
|
2857
|
-
|
|
2858
|
-
|
|
2859
|
-
|
|
2860
|
-
|
|
2861
|
-
|
|
2862
|
-
|
|
2863
|
-
|
|
2864
|
-
|
|
2865
|
-
|
|
2866
|
-
|
|
2867
|
-
|
|
2868
|
-
|
|
2869
|
-
|
|
2870
|
-
|
|
2871
|
-
|
|
2872
|
-
|
|
2873
|
-
|
|
2874
|
-
|
|
2875
|
-
|
|
2876
|
-
|
|
2877
|
-
|
|
2878
|
-
|
|
2879
|
-
|
|
2880
|
-
|
|
2881
|
-
|
|
2882
|
-
|
|
2883
|
-
|
|
2884
|
-
|
|
2885
|
-
|
|
2886
|
-
|
|
2887
|
-
|
|
2888
|
-
|
|
2889
|
-
|
|
2890
|
-
|
|
2891
|
-
}, /*#__PURE__*/React__default["default"].createElement(
|
|
2892
|
-
|
|
2893
|
-
|
|
2894
|
-
|
|
2895
|
-
|
|
2896
|
-
|
|
2897
|
-
|
|
2898
|
-
|
|
2899
|
-
},
|
|
2487
|
+
}))))), sectionproperties.descriptionposition == 'Top' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2488
|
+
"class": "col-lg-12 p-0"
|
|
2489
|
+
}, /*#__PURE__*/React__default["default"].createElement(DescriptionContent, {
|
|
2490
|
+
actions: props.actions,
|
|
2491
|
+
srcfromprops: 'undername'
|
|
2492
|
+
})), (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.vendorinfo) != null && sectionproperties.showvendor == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2493
|
+
"class": "col-lg-12 p-0 d-flex justify-content-start mt-2 mb-2"
|
|
2494
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
2495
|
+
"class": "m-0 p-0",
|
|
2496
|
+
style: {
|
|
2497
|
+
color: '#000'
|
|
2498
|
+
}
|
|
2499
|
+
}, langdetect == 'en' ? 'Seller' : 'البائع', ":", ' ', /*#__PURE__*/React__default["default"].createElement("span", {
|
|
2500
|
+
style: {
|
|
2501
|
+
fontWeight: 600
|
|
2502
|
+
}
|
|
2503
|
+
}, 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.vendorinfo) === null || _fetchProductInfoQuer9 === void 0 ? void 0 : _fetchProductInfoQuer9.vendorname))), sectionproperties.showSKU == 'Show' && sectionproperties.productInformationType == 'Product/Service Information' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2504
|
+
"class": sectionproperties.deliverytimeshow == 'Show' && (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.deliverydatetext) != null ? 'col-lg-12 p-0 mb-2 d-flex justify-content-start' : 'col-lg-12 p-0 mb-3 d-flex justify-content-start'
|
|
2505
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
2506
|
+
"class": "m-0 p-0 d-flex justify-content-start"
|
|
2507
|
+
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
2508
|
+
style: {
|
|
2509
|
+
color: sectionproperties.skuColor,
|
|
2510
|
+
fontWeight: sectionproperties.skuFontWeight,
|
|
2511
|
+
fontSize: sectionproperties.skuFontSize + 'px',
|
|
2512
|
+
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
2513
|
+
}
|
|
2514
|
+
}, langdetect == 'en' ? sectionproperties.skutitleEn : sectionproperties.skutitleAr, ":", ' '), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
2515
|
+
"class": "ml-1 mr-1",
|
|
2516
|
+
style: {
|
|
2517
|
+
color: '#7e859b',
|
|
2518
|
+
fontWeight: sectionproperties.skuSecondaryFontWeight,
|
|
2519
|
+
fontSize: sectionproperties.skuFontSize + 'px',
|
|
2520
|
+
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
2521
|
+
}
|
|
2522
|
+
}, fetchProductInfoQueryContext.data.data.productinfo.sku))), (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.currentquantity) < 1 && sectionproperties.showoutofstock == 'Show' && (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 ? void 0 : _fetchProductInfoQuer12.quantavailtype) == 'limit' && (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.hasvariants) == 0 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2523
|
+
"class": "col-lg-12 p-0 d-flex justify-content-start mb-2"
|
|
2524
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2525
|
+
"class": "".concat(productinfo_cssstyles.outstockbadge) + ' allcentered '
|
|
2526
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
2527
|
+
"class": "m-0 p-0"
|
|
2528
|
+
}, langdetect == 'en' ? sectionproperties.outstock_contenten : sectionproperties.outstock_contentar))), sectionproperties.deliverytimeshow == 'Show' && (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.deliverydatetext) != null && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2529
|
+
"class": "mb-4 col-lg-12 allcentered",
|
|
2530
|
+
style: {
|
|
2531
|
+
width: '100%',
|
|
2532
|
+
backgroundColor: sectionproperties.deliverytimecontainerBg,
|
|
2533
|
+
paddingLeft: sectionproperties.deliverytimecontainerpaddinghorizontal + 'px',
|
|
2534
|
+
paddingRight: sectionproperties.deliverytimecontainerpaddinghorizontal + 'px',
|
|
2535
|
+
paddingTop: sectionproperties.deliverytimecontainerpaddingvertical + 'px',
|
|
2536
|
+
paddingBottom: sectionproperties.deliverytimecontainerpaddingvertical + 'px',
|
|
2537
|
+
border: sectionproperties.deliverytimecontainerborderwidth + 'px solid ' + sectionproperties.deliverytimecontainerbordercolor,
|
|
2538
|
+
borderRadius: sectionproperties.deliverytimecontainerborderradius + 'px',
|
|
2539
|
+
fontSize: sectionproperties.deliverytimecontainerfontsize + 'px',
|
|
2540
|
+
fontWeight: sectionproperties.deliverytimecontainerfontWeight,
|
|
2541
|
+
marginTop: 15
|
|
2542
|
+
}
|
|
2543
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
2544
|
+
"class": "m-0 p-0 ",
|
|
2545
|
+
style: {
|
|
2546
|
+
textAlign: langdetect == 'en' ? 'left' : 'right',
|
|
2547
|
+
color: sectionproperties.deliverytimecontainercolor
|
|
2548
|
+
}
|
|
2549
|
+
}, sectionproperties.showdeliverytitle == 'Show' && /*#__PURE__*/React__default["default"].createElement("span", null, langdetect == 'en' ? sectionproperties.deliverycontent_en : sectionproperties.deliverycontent_ar, ": "), ' ', 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 ? void 0 : _fetchProductInfoQuer15.deliverydatetext)), (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 ? void 0 : _fetchProductInfoQuer16.isproducttobesold) == 1 && /*#__PURE__*/React__default["default"].createElement(ProductHeaderPricing, {
|
|
2550
|
+
actions: props.actions
|
|
2551
|
+
}), (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.hasvariants) == 1 && sectionproperties.productInformationType == 'Profile' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2552
|
+
className: "row m-0 w-100 d-flex align-items-start"
|
|
2553
|
+
}, ProductInfoObj === null || ProductInfoObj === void 0 || (_ProductInfoObj$data = ProductInfoObj.data) === null || _ProductInfoObj$data === void 0 || (_ProductInfoObj$data = _ProductInfoObj$data.productinfo) === null || _ProductInfoObj$data === void 0 || (_ProductInfoObj$data = _ProductInfoObj$data.productoptions) === null || _ProductInfoObj$data === void 0 ? void 0 : _ProductInfoObj$data.map(function (item, index) {
|
|
2554
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2555
|
+
className: "col-lg-12 p-0 d-flex justify-content-start",
|
|
2556
|
+
style: {
|
|
2557
|
+
position: 'relative'
|
|
2558
|
+
}
|
|
2559
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2560
|
+
style: {
|
|
2561
|
+
width: 2,
|
|
2562
|
+
height: '100%',
|
|
2563
|
+
background: sectionproperties.upperseparatorbgcolor,
|
|
2564
|
+
position: 'absolute',
|
|
2565
|
+
top: 7
|
|
2566
|
+
}
|
|
2567
|
+
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2568
|
+
style: {
|
|
2569
|
+
width: 10,
|
|
2570
|
+
height: 10,
|
|
2571
|
+
background: sectionproperties.upperseparatorsecondarybgcolor,
|
|
2572
|
+
borderRadius: 100,
|
|
2573
|
+
position: 'absolute',
|
|
2574
|
+
top: 7,
|
|
2575
|
+
left: langdetect == 'en' ? -4 : '',
|
|
2576
|
+
right: langdetect == 'ar' ? -4 : ''
|
|
2577
|
+
}
|
|
2578
|
+
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2579
|
+
className: "row m-0 w-100 d-flex align-items-start pb-3",
|
|
2580
|
+
style: {
|
|
2581
|
+
paddingLeft: langdetect == 'en' ? '1rem' : 0,
|
|
2582
|
+
paddingRight: langdetect == 'ar' ? '1rem' : 0
|
|
2583
|
+
}
|
|
2584
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
2585
|
+
className: ' m-0 p-0 wordbreak',
|
|
2586
|
+
style: {
|
|
2587
|
+
color: sectionproperties.varianttitle_color,
|
|
2588
|
+
fontWeight: sectionproperties.varianttitle_fontweight,
|
|
2589
|
+
textTransform: sectionproperties.varianttitle_texttransform,
|
|
2590
|
+
fontSize: sectionproperties.varianttitle_fontSize + 'px'
|
|
2591
|
+
}
|
|
2592
|
+
}, langdetect == 'en' ? item.optionname : item.optionname_ar, ":"), item.optionvalues.map(function (optionvaluesitem, optionvaluesindex) {
|
|
2593
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2594
|
+
className: productinfostyles.variant_container + ' mr-2 variabttcontainer allcentered ',
|
|
2595
|
+
style: {
|
|
2596
|
+
backgroundColor: sectionproperties.variantcontainer_bgcolortransparent == 'Transparent' ? 'transparent' : sectionproperties.variantcontainer_bgcolor,
|
|
2597
|
+
minWidth: sectionproperties.variantcontainer_bgcolortransparent == 'Transparent' ? 'auto' : sectionproperties.variantcontainer_minwidth + 'px',
|
|
2598
|
+
height: sectionproperties.variantcontainer_bgcolortransparent == 'Transparent' ? 'auto' : sectionproperties.variantcontainer_height + 'px',
|
|
2599
|
+
borderRadius: sectionproperties.variantcontainer_borderBottomLeftRadius + 'px',
|
|
2600
|
+
transform: 'none',
|
|
2601
|
+
cursor: 'default'
|
|
2602
|
+
}
|
|
2603
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
2604
|
+
className: 'm-0 p-0 allcentered font-weight-500',
|
|
2605
|
+
style: {
|
|
2606
|
+
color: sectionproperties.variantcontainer_color,
|
|
2607
|
+
fontSize: sectionproperties.variantcontainer_fontSize + 'px'
|
|
2608
|
+
}
|
|
2609
|
+
}, langdetect == 'en' ? optionvaluesitem.valuename : optionvaluesitem.valuename_ar));
|
|
2610
|
+
})));
|
|
2611
|
+
})), /*#__PURE__*/React__default["default"].createElement(Variantoptions, {
|
|
2612
|
+
actions: props.actions
|
|
2613
|
+
}), sectionproperties.showextrafield == 'Show' && /*#__PURE__*/React__default["default"].createElement(ProductExtraFields, {
|
|
2614
|
+
actions: props.actions
|
|
2615
|
+
}), sectionproperties.gallerystyle == 'Style 2' && sectionproperties.prodCatShow == 'Show' && /*#__PURE__*/React__default["default"].createElement(DescriptionContent, {
|
|
2616
|
+
actions: props.actions
|
|
2617
|
+
}), sectionproperties.quantitybtn_show == 'Show' && sectionproperties.cartBtnShow == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2618
|
+
className: "col-lg-12 p-0 mb-3"
|
|
2619
|
+
}, /*#__PURE__*/React__default["default"].createElement("hr", {
|
|
2620
|
+
className: "mb-0 mt-2"
|
|
2621
|
+
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2622
|
+
className: "col-lg-12 p-0 mb-3",
|
|
2623
|
+
style: {
|
|
2624
|
+
display: sectionproperties.quantitybtn_show == 'Hide' && sectionproperties.cartBtnShow == 'Hide' ? 'none' : 'flex'
|
|
2625
|
+
}
|
|
2626
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2627
|
+
className: "row m-0 w-100 d-flex align-items-center"
|
|
2628
|
+
}, (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.isproducttobesold) == 1 && (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 ? void 0 : _fetchProductInfoQuer19.isproducthasquantitychange) == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2629
|
+
className: "col-lg-12 p-0 mb-2 d-flex justofy-content-start"
|
|
2630
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
2631
|
+
className: "m-0 p-0",
|
|
2632
|
+
style: {
|
|
2633
|
+
color: sectionproperties.generaltext_fontColor,
|
|
2634
|
+
fontSize: sectionproperties.generaltext_fontSize + 'px',
|
|
2635
|
+
textTransform: sectionproperties.generaltext_textTransform,
|
|
2636
|
+
fontWeight: sectionproperties.generaltext_fontWeight
|
|
2637
|
+
}
|
|
2638
|
+
}, lang.quantity, ":")), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2639
|
+
"class": "col-lg-12 p-0"
|
|
2640
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2641
|
+
"class": "row m-0 w-100 d-flex align-items-center",
|
|
2642
|
+
style: {
|
|
2643
|
+
justifyContent: sectionproperties.cartbtncentered == 'Centered' ? 'center' : 'start'
|
|
2644
|
+
}
|
|
2645
|
+
}, sectionproperties.quantitybtn_show == 'Show' && (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 ? void 0 : _fetchProductInfoQuer20.isproducttobesold) == 1 && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer21 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer21 === void 0 || (_fetchProductInfoQuer21 = _fetchProductInfoQuer21.data) === null || _fetchProductInfoQuer21 === void 0 || (_fetchProductInfoQuer21 = _fetchProductInfoQuer21.productinfo) === null || _fetchProductInfoQuer21 === void 0 ? void 0 : _fetchProductInfoQuer21.isproducthasquantitychange) == 1 && /*#__PURE__*/React__default["default"].createElement("button", {
|
|
2646
|
+
className: " ".concat(productinfo_cssstyles.quantitybtn) + ' p-0 d-flex align-items-center justify-content-center mb-sm-2 ',
|
|
2647
|
+
style: {
|
|
2648
|
+
height: sectionproperties.quantitybtn_height + 'px',
|
|
2649
|
+
width: sectionproperties.quantitybtn_width + 'px',
|
|
2650
|
+
flexDirection: 'row',
|
|
2651
|
+
direction: 'ltr'
|
|
2652
|
+
}
|
|
2653
|
+
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
2654
|
+
className: "".concat(productinfo_cssstyles.minus_quantitybtn_icon_container) + ' m-1 ',
|
|
2655
|
+
onClick: function onClick() {
|
|
2656
|
+
var tempaddtocardpayloadobj = _objectSpread$2n({}, addtocardpayloadobj);
|
|
2657
|
+
if (tempaddtocardpayloadobj.quantity > 0) {
|
|
2658
|
+
tempaddtocardpayloadobj.quantity = tempaddtocardpayloadobj.quantity - 1;
|
|
2659
|
+
}
|
|
2660
|
+
setaddtocardpayloadobj(_objectSpread$2n({}, tempaddtocardpayloadobj));
|
|
2661
|
+
}
|
|
2662
|
+
}, /*#__PURE__*/React__default["default"].createElement("i", {
|
|
2663
|
+
className: sectionproperties.quantityiconstyle == 'Arrows' ? 'fa fa-chevron-down' : 'h-100 allcentered',
|
|
2664
|
+
style: {
|
|
2665
|
+
fontSize: sectionproperties.remove_quantitybtn_textfontsize + 'px'
|
|
2666
|
+
}
|
|
2667
|
+
}, sectionproperties.quantityiconstyle == 'Plus/Minus' && /*#__PURE__*/React__default["default"].createElement(FiMinus.FiMinus, {
|
|
2668
|
+
size: sectionproperties.remove_quantitybtn_textfontsize
|
|
2669
|
+
}))), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
2670
|
+
className: "".concat(productinfo_cssstyles.quantitybtn_text)
|
|
2671
|
+
}, addtocardpayloadobj.quantity), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
2672
|
+
className: "".concat(productinfo_cssstyles.add_quantitybtn_icon_container) + ' m-1 ',
|
|
2673
|
+
onClick: function onClick() {
|
|
2674
|
+
var tempaddtocardpayloadobj = _objectSpread$2n({}, addtocardpayloadobj);
|
|
2675
|
+
tempaddtocardpayloadobj.quantity = tempaddtocardpayloadobj.quantity + 1;
|
|
2676
|
+
setaddtocardpayloadobj(_objectSpread$2n({}, tempaddtocardpayloadobj));
|
|
2677
|
+
}
|
|
2678
|
+
}, /*#__PURE__*/React__default["default"].createElement("i", {
|
|
2679
|
+
className: sectionproperties.quantityiconstyle == 'Arrows' ? 'fa fa-chevron-up' : 'h-100 allcentered'
|
|
2680
|
+
// className="fa fa-chevron-up"
|
|
2681
|
+
,
|
|
2682
|
+
style: {
|
|
2683
|
+
fontSize: sectionproperties.add_quantitybtn_textfontsize + 'px'
|
|
2684
|
+
}
|
|
2685
|
+
}, sectionproperties.quantityiconstyle == 'Plus/Minus' && /*#__PURE__*/React__default["default"].createElement(FiPlus.FiPlus, {
|
|
2686
|
+
size: sectionproperties.add_quantitybtn_textfontsize
|
|
2687
|
+
})))), sectionproperties.cartbtnalone == 'Besides Other Buttons' && sectionproperties.cartBtnShow == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer22 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer22 === void 0 || (_fetchProductInfoQuer22 = _fetchProductInfoQuer22.data) === null || _fetchProductInfoQuer22 === void 0 || (_fetchProductInfoQuer22 = _fetchProductInfoQuer22.productinfo) === null || _fetchProductInfoQuer22 === void 0 ? void 0 : _fetchProductInfoQuer22.isproducttobesold) == 1 && /*#__PURE__*/React__default["default"].createElement("button", {
|
|
2688
|
+
className: "".concat(productinfo_cssstyles.cart_btn, " ") + ' ml-2 mr-2 d-flex align-items-center justify-content-center mb-sm-2 ',
|
|
2689
|
+
onClick: function onClick() {
|
|
2690
|
+
if (fetchProductInfoQueryContext.data.data.productinfo.product_calltoaction == 'Call') {
|
|
2691
|
+
var _fetchProductInfoQuer23;
|
|
2692
|
+
window.open('tel:' + ((_fetchProductInfoQuer23 = fetchProductInfoQueryContext.data.data.productinfo) === null || _fetchProductInfoQuer23 === void 0 ? void 0 : _fetchProductInfoQuer23.product_phonenumber), '_blank');
|
|
2693
|
+
} else {
|
|
2694
|
+
if (fetchProductInfoQueryContext.data.data.productinfo.maximumproductquant >= addtocardpayloadobj.quantity && fetchProductInfoQueryContext.data.data.productinfo.minimumproductquant <= addtocardpayloadobj.quantity) {
|
|
2695
|
+
addtocartfunc();
|
|
2696
|
+
} else {
|
|
2697
|
+
NotificationManager.warning('', lang.maximum + ': ' + fetchProductInfoQueryContext.data.data.productinfo.maximumproductquant + ', ' + lang.minimum + ': ' + fetchProductInfoQueryContext.data.data.productinfo.minimumproductquant);
|
|
2698
|
+
}
|
|
2699
|
+
}
|
|
2700
|
+
},
|
|
2701
|
+
disabled: AddtoCartMutationContext.isLoading == true ? true : false
|
|
2702
|
+
}, !AddtoCartMutationContext.isLoading && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
2703
|
+
className: ' d-flex align-items-center justify-content-center '
|
|
2704
|
+
}, /*#__PURE__*/React__default["default"].createElement("i", {
|
|
2705
|
+
className: langdetect == 'en' ? 'h-100 d-flex align-items-center justify-content-center mr-2' : 'h-100 d-flex align-items-center justify-content-center ml-2'
|
|
2706
|
+
}, sectionproperties.carticonstyle == 'Shopping bag 1' && /*#__PURE__*/React__default["default"].createElement(FiShoppingBag.FiShoppingBag, {
|
|
2707
|
+
className: "",
|
|
2708
|
+
size: sectionproperties.cartBtn_iconFontSize
|
|
2709
|
+
}), sectionproperties.carticonstyle == 'Shopping bag 2' && /*#__PURE__*/React__default["default"].createElement(CgShoppingBag.CgShoppingBag, {
|
|
2710
|
+
className: "",
|
|
2711
|
+
size: sectionproperties.cartBtn_iconFontSize
|
|
2712
|
+
}), sectionproperties.carticonstyle == 'Shopping bag 3' && /*#__PURE__*/React__default["default"].createElement(BsBag.BsBag, {
|
|
2713
|
+
className: "",
|
|
2714
|
+
size: sectionproperties.cartBtn_iconFontSize
|
|
2715
|
+
}), sectionproperties.carticonstyle == 'Shopping bag 4' && /*#__PURE__*/React__default["default"].createElement(IoBagHandleOutline.IoBagHandleOutline, {
|
|
2716
|
+
className: "",
|
|
2717
|
+
size: sectionproperties.cartBtn_iconFontSize
|
|
2718
|
+
}), sectionproperties.carticonstyle == 'Shopping cart 1' && /*#__PURE__*/React__default["default"].createElement(FiShoppingCart.FiShoppingCart, {
|
|
2719
|
+
className: "",
|
|
2720
|
+
size: sectionproperties.cartBtn_iconFontSize
|
|
2721
|
+
}), sectionproperties.carticonstyle == 'Shopping cart 2' && /*#__PURE__*/React__default["default"].createElement(MdAddShoppingCart.MdAddShoppingCart, {
|
|
2722
|
+
size: sectionproperties.cartBtn_iconFontSize
|
|
2723
|
+
})), langdetect == 'en' ? 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.productactionbuttontext_en : fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer25 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer25 === void 0 || (_fetchProductInfoQuer25 = _fetchProductInfoQuer25.data) === null || _fetchProductInfoQuer25 === void 0 || (_fetchProductInfoQuer25 = _fetchProductInfoQuer25.productinfo) === null || _fetchProductInfoQuer25 === void 0 ? void 0 : _fetchProductInfoQuer25.productactionbuttontext_ar), AddtoCartMutationContext.isLoading && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2724
|
+
className: ' d-flex align-items-center justify-content-center '
|
|
2725
|
+
}, /*#__PURE__*/React__default["default"].createElement(reactCssfxLoading.CircularProgress, {
|
|
2726
|
+
color: "white",
|
|
2727
|
+
width: "20px",
|
|
2728
|
+
height: "20px",
|
|
2729
|
+
duration: "1s"
|
|
2730
|
+
}))), sectionproperties.btnposition == 'Bottom' && sectionproperties.favBtnShow == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2731
|
+
className: productinfo_cssstyles.wishlist_btn + ' d-flex justify-content-center align-items-center mb-sm-2 ',
|
|
2732
|
+
onClick: function onClick() {
|
|
2733
|
+
addtofavoritescontext(fetchProductInfoQueryContext.data.data.productinfo.productid);
|
|
2734
|
+
},
|
|
2735
|
+
style: {
|
|
2736
|
+
background: fetchProductInfoQueryContext.data.data.productinfo.IsFavExists == true ? sectionproperties.activebgcolor : ''
|
|
2737
|
+
}
|
|
2738
|
+
}, /*#__PURE__*/React__default["default"].createElement("i", {
|
|
2739
|
+
className: "h-100 d-flex align-items-center justify-content-center"
|
|
2740
|
+
}, fetchProductInfoQueryContext.data.data.productinfo.IsFavExists && /*#__PURE__*/React__default["default"].createElement("i", {
|
|
2741
|
+
className: "h-100 d-flex align-items-center justify-content-center"
|
|
2742
|
+
}, sectionproperties.faviconshape == 'Star Shape' && /*#__PURE__*/React__default["default"].createElement(AiFillStar$1.AiFillStar, {
|
|
2743
|
+
size: sectionproperties.favBtnIconfontsize,
|
|
2744
|
+
style: {
|
|
2745
|
+
color: sectionproperties.activefaviconcolor
|
|
2746
|
+
}
|
|
2747
|
+
}), sectionproperties.faviconshape == 'Heart Shape' && /*#__PURE__*/React__default["default"].createElement(FaHeart$1.FaHeart, {
|
|
2748
|
+
size: sectionproperties.favBtnIconfontsize,
|
|
2749
|
+
style: {
|
|
2750
|
+
color: sectionproperties.activefaviconcolor
|
|
2751
|
+
}
|
|
2752
|
+
})), !fetchProductInfoQueryContext.data.data.productinfo.IsFavExists && /*#__PURE__*/React__default["default"].createElement("i", {
|
|
2753
|
+
className: "h-100 d-flex align-items-center justify-content-center"
|
|
2754
|
+
}, sectionproperties.faviconshape == 'Star Shape' && /*#__PURE__*/React__default["default"].createElement(AiOutlineStar.AiOutlineStar, {
|
|
2755
|
+
size: sectionproperties.favBtnIconfontsize
|
|
2756
|
+
}), sectionproperties.faviconshape == 'Heart Shape' && /*#__PURE__*/React__default["default"].createElement(FaRegHeart.FaRegHeart, {
|
|
2757
|
+
size: sectionproperties.favBtnIconfontsize
|
|
2758
|
+
}))), !fetchProductInfoQueryContext.data.data.productinfo.IsFavExists && sectionproperties.favBtnTextfontsize != 0 && /*#__PURE__*/React__default["default"].createElement("p", {
|
|
2759
|
+
"class": "m-0 p-0",
|
|
2760
|
+
style: {
|
|
2761
|
+
fontSize: sectionproperties.favBtnTextfontsize + 'px'
|
|
2762
|
+
}
|
|
2763
|
+
}, langdetect == 'en' ? sectionproperties.favbtncontent_en : sectionproperties.favbtncontent_ar), fetchProductInfoQueryContext.data.data.productinfo.IsFavExists && sectionproperties.favBtnTextfontsize != 0 && /*#__PURE__*/React__default["default"].createElement("p", {
|
|
2764
|
+
"class": "m-0 p-0",
|
|
2765
|
+
style: {
|
|
2766
|
+
fontSize: sectionproperties.favBtnTextfontsize + 'px'
|
|
2767
|
+
}
|
|
2768
|
+
}, langdetect == 'en' ? sectionproperties.favbtnaddedcontent_en : sectionproperties.favbtnaddedcontent_ar))), sectionproperties.cartbtnalone == 'Alone' && sectionproperties.cartBtnShow == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer26 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer26 === void 0 || (_fetchProductInfoQuer26 = _fetchProductInfoQuer26.data) === null || _fetchProductInfoQuer26 === void 0 || (_fetchProductInfoQuer26 = _fetchProductInfoQuer26.productinfo) === null || _fetchProductInfoQuer26 === void 0 ? void 0 : _fetchProductInfoQuer26.isproducttobesold) == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2769
|
+
"class": "row m-0 w-100 mt-3",
|
|
2770
|
+
style: {
|
|
2771
|
+
overflow: 'hidden'
|
|
2772
|
+
}
|
|
2773
|
+
}, /*#__PURE__*/React__default["default"].createElement("button", {
|
|
2774
|
+
className: "".concat(productinfo_cssstyles.cart_btn, " ") + ' d-flex align-items-center justify-content-center mb-sm-2 ',
|
|
2775
|
+
style: {
|
|
2776
|
+
width: sectionproperties.cartBtnWidth + '%'
|
|
2777
|
+
},
|
|
2778
|
+
onClick: function onClick() {
|
|
2779
|
+
if (fetchProductInfoQueryContext.data.data.productinfo.product_calltoaction == 'Call') {
|
|
2780
|
+
var _fetchProductInfoQuer27;
|
|
2781
|
+
window.open('tel:' + ((_fetchProductInfoQuer27 = fetchProductInfoQueryContext.data.data.productinfo) === null || _fetchProductInfoQuer27 === void 0 ? void 0 : _fetchProductInfoQuer27.product_phonenumber), '_blank');
|
|
2782
|
+
} else {
|
|
2783
|
+
if (fetchProductInfoQueryContext.data.data.productinfo.maximumproductquant >= addtocardpayloadobj.quantity && fetchProductInfoQueryContext.data.data.productinfo.minimumproductquant <= addtocardpayloadobj.quantity) {
|
|
2784
|
+
addtocartfunc();
|
|
2785
|
+
} else {
|
|
2786
|
+
NotificationManager.warning('', lang.maximum + ': ' + fetchProductInfoQueryContext.data.data.productinfo.maximumproductquant + ', ' + lang.minimum + ': ' + fetchProductInfoQueryContext.data.data.productinfo.minimumproductquant);
|
|
2787
|
+
}
|
|
2788
|
+
}
|
|
2789
|
+
},
|
|
2790
|
+
disabled: AddtoCartMutationContext.isLoading == true ? true : false
|
|
2791
|
+
}, !AddtoCartMutationContext.isLoading && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
2792
|
+
className: ' d-flex align-items-center justify-content-center '
|
|
2793
|
+
}, /*#__PURE__*/React__default["default"].createElement("i", {
|
|
2794
|
+
className: langdetect == 'en' ? 'h-100 d-flex align-items-center justify-content-center mr-2' : 'h-100 d-flex align-items-center justify-content-center ml-2'
|
|
2795
|
+
}, sectionproperties.carticonstyle == 'Shopping bag 1' && /*#__PURE__*/React__default["default"].createElement(FiShoppingBag.FiShoppingBag, {
|
|
2796
|
+
className: "",
|
|
2797
|
+
size: sectionproperties.cartBtn_iconFontSize
|
|
2798
|
+
}), sectionproperties.carticonstyle == 'Shopping bag 2' && /*#__PURE__*/React__default["default"].createElement(CgShoppingBag.CgShoppingBag, {
|
|
2799
|
+
className: "",
|
|
2800
|
+
size: sectionproperties.cartBtn_iconFontSize
|
|
2801
|
+
}), sectionproperties.carticonstyle == 'Shopping bag 3' && /*#__PURE__*/React__default["default"].createElement(BsBag.BsBag, {
|
|
2802
|
+
className: "",
|
|
2803
|
+
size: sectionproperties.cartBtn_iconFontSize
|
|
2804
|
+
}), sectionproperties.carticonstyle == 'Shopping bag 4' && /*#__PURE__*/React__default["default"].createElement(IoBagHandleOutline.IoBagHandleOutline, {
|
|
2805
|
+
className: "",
|
|
2806
|
+
size: sectionproperties.cartBtn_iconFontSize
|
|
2807
|
+
}), sectionproperties.carticonstyle == 'Shopping cart 1' && /*#__PURE__*/React__default["default"].createElement(FiShoppingCart.FiShoppingCart, {
|
|
2808
|
+
className: "",
|
|
2809
|
+
size: sectionproperties.cartBtn_iconFontSize
|
|
2810
|
+
}), sectionproperties.carticonstyle == 'Shopping cart 2' && /*#__PURE__*/React__default["default"].createElement(MdAddShoppingCart.MdAddShoppingCart, {
|
|
2811
|
+
size: sectionproperties.cartBtn_iconFontSize
|
|
2812
|
+
})), langdetect == 'en' ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer28 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer28 === void 0 || (_fetchProductInfoQuer28 = _fetchProductInfoQuer28.data) === null || _fetchProductInfoQuer28 === void 0 || (_fetchProductInfoQuer28 = _fetchProductInfoQuer28.productinfo) === null || _fetchProductInfoQuer28 === void 0 ? void 0 : _fetchProductInfoQuer28.productactionbuttontext_en : fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer29 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer29 === void 0 || (_fetchProductInfoQuer29 = _fetchProductInfoQuer29.data) === null || _fetchProductInfoQuer29 === void 0 || (_fetchProductInfoQuer29 = _fetchProductInfoQuer29.productinfo) === null || _fetchProductInfoQuer29 === void 0 ? void 0 : _fetchProductInfoQuer29.productactionbuttontext_ar), AddtoCartMutationContext.isLoading && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2813
|
+
className: ' d-flex align-items-center justify-content-center '
|
|
2814
|
+
}, /*#__PURE__*/React__default["default"].createElement(reactCssfxLoading.CircularProgress, {
|
|
2815
|
+
color: "white",
|
|
2816
|
+
width: "20px",
|
|
2817
|
+
height: "20px",
|
|
2818
|
+
duration: "1s"
|
|
2819
|
+
}))), sectionproperties.btnposition == 'Besides Cart Button' && sectionproperties.favBtnShow == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2820
|
+
className: productinfo_cssstyles.wishlist_btn + ' d-flex justify-content-center align-items-center mb-sm-2 mx-3 ',
|
|
2821
|
+
onClick: function onClick() {
|
|
2822
|
+
addtofavoritescontext(fetchProductInfoQueryContext.data.data.productinfo.productid);
|
|
2823
|
+
},
|
|
2824
|
+
style: {
|
|
2825
|
+
background: fetchProductInfoQueryContext.data.data.productinfo.IsFavExists == true ? sectionproperties.activebgcolor : ''
|
|
2826
|
+
}
|
|
2827
|
+
}, /*#__PURE__*/React__default["default"].createElement("i", {
|
|
2828
|
+
className: "h-100 d-flex align-items-center justify-content-center"
|
|
2829
|
+
}, fetchProductInfoQueryContext.data.data.productinfo.IsFavExists && /*#__PURE__*/React__default["default"].createElement("i", {
|
|
2830
|
+
className: "h-100 d-flex align-items-center justify-content-center"
|
|
2831
|
+
}, sectionproperties.faviconshape == 'Star Shape' && /*#__PURE__*/React__default["default"].createElement(AiFillStar$1.AiFillStar, {
|
|
2832
|
+
size: sectionproperties.favBtnIconfontsize,
|
|
2833
|
+
style: {
|
|
2834
|
+
color: sectionproperties.activefaviconcolor
|
|
2835
|
+
}
|
|
2836
|
+
}), sectionproperties.faviconshape == 'Heart Shape' && /*#__PURE__*/React__default["default"].createElement(FaHeart$1.FaHeart, {
|
|
2837
|
+
size: sectionproperties.favBtnIconfontsize,
|
|
2838
|
+
style: {
|
|
2839
|
+
color: sectionproperties.activefaviconcolor
|
|
2840
|
+
}
|
|
2841
|
+
})), !fetchProductInfoQueryContext.data.data.productinfo.IsFavExists && /*#__PURE__*/React__default["default"].createElement("i", {
|
|
2842
|
+
className: "h-100 d-flex align-items-center justify-content-center"
|
|
2843
|
+
}, sectionproperties.faviconshape == 'Star Shape' && /*#__PURE__*/React__default["default"].createElement(AiOutlineStar.AiOutlineStar, {
|
|
2844
|
+
size: sectionproperties.favBtnIconfontsize
|
|
2845
|
+
}), sectionproperties.faviconshape == 'Heart Shape' && /*#__PURE__*/React__default["default"].createElement(FaRegHeart.FaRegHeart, {
|
|
2846
|
+
size: sectionproperties.favBtnIconfontsize
|
|
2847
|
+
})))))))), sectionproperties.productInformationType == 'Product/Service Information' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer30 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer30 === void 0 || (_fetchProductInfoQuer30 = _fetchProductInfoQuer30.data) === null || _fetchProductInfoQuer30 === void 0 || (_fetchProductInfoQuer30 = _fetchProductInfoQuer30.productinfo) === null || _fetchProductInfoQuer30 === void 0 ? void 0 : _fetchProductInfoQuer30.isproducttobesold) == 1 && sectionproperties.showtotalsection == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2900
2848
|
className: "col-lg-12 p-0 mb-3"
|
|
2901
2849
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2902
2850
|
className: "row m-0 w-100 d-flex flex-row"
|
|
@@ -2919,7 +2867,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
2919
2867
|
}
|
|
2920
2868
|
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
2921
2869
|
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 '
|
|
2922
|
-
}, 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 || (
|
|
2870
|
+
}, 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 || (_fetchProductInfoQuer31 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer31 === void 0 || (_fetchProductInfoQuer31 = _fetchProductInfoQuer31.data) === null || _fetchProductInfoQuer31 === void 0 || (_fetchProductInfoQuer31 = _fetchProductInfoQuer31.productinfo) === null || _fetchProductInfoQuer31 === void 0 || (_fetchProductInfoQuer31 = _fetchProductInfoQuer31.variants[variantindexcompleted]) === null || _fetchProductInfoQuer31 === void 0 ? void 0 : _fetchProductInfoQuer31.hassale) == 1 && parseFloat(getprice_discountpriceprops('defaultsaleprice', 1, variantindexcompleted)).toFixed(2), variantindexcompleted != undefined && variantindexcompleted.length != 0 && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer32 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer32 === void 0 || (_fetchProductInfoQuer32 = _fetchProductInfoQuer32.data) === null || _fetchProductInfoQuer32 === void 0 || (_fetchProductInfoQuer32 = _fetchProductInfoQuer32.productinfo) === null || _fetchProductInfoQuer32 === void 0 || (_fetchProductInfoQuer32 = _fetchProductInfoQuer32.variants[variantindexcompleted]) === null || _fetchProductInfoQuer32 === void 0 ? void 0 : _fetchProductInfoQuer32.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", {
|
|
2923
2871
|
className: 'm-0 p-0 linethrough wordbreak',
|
|
2924
2872
|
style: {
|
|
2925
2873
|
color: sectionproperties.prodsalePriceColor,
|
|
@@ -2933,14 +2881,14 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
2933
2881
|
style: {
|
|
2934
2882
|
textDecoration: 'none'
|
|
2935
2883
|
}
|
|
2936
|
-
}, "-"), 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 || (
|
|
2884
|
+
}, "-"), 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 || (_fetchProductInfoQuer33 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer33 === void 0 || (_fetchProductInfoQuer33 = _fetchProductInfoQuer33.data) === null || _fetchProductInfoQuer33 === void 0 || (_fetchProductInfoQuer33 = _fetchProductInfoQuer33.productinfo) === null || _fetchProductInfoQuer33 === void 0 || (_fetchProductInfoQuer33 = _fetchProductInfoQuer33.variants[variantindexcompleted]) === null || _fetchProductInfoQuer33 === void 0 ? void 0 : _fetchProductInfoQuer33.hassale) == 1 && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
2937
2885
|
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 '
|
|
2938
2886
|
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
2939
2887
|
className: "ml-2 mr-2",
|
|
2940
2888
|
style: {
|
|
2941
2889
|
textDecoration: 'none'
|
|
2942
2890
|
}
|
|
2943
|
-
}, "-"), 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 || (
|
|
2891
|
+
}, "-"), 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 || (_fetchProductInfoQuer34 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer34 === void 0 || (_fetchProductInfoQuer34 = _fetchProductInfoQuer34.data) === null || _fetchProductInfoQuer34 === void 0 || (_fetchProductInfoQuer34 = _fetchProductInfoQuer34.productinfo) === null || _fetchProductInfoQuer34 === void 0 ? void 0 : _fetchProductInfoQuer34.isproducttobesold) == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2944
2892
|
className: "col-lg-12 p-0 mb-3 mt-2"
|
|
2945
2893
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2946
2894
|
style: {
|
|
@@ -2966,7 +2914,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
2966
2914
|
className: "font-weight-600"
|
|
2967
2915
|
}, lang.availability, ":"), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
2968
2916
|
className: "ml-1 mr-1"
|
|
2969
|
-
}, fetchProductInfoQueryContext.data.data.productinfo.quantavailtype == 'nolimit' ? lang.available : lang.limitedquantity)))), sectionproperties.showShareButton == 'Show' && sectionproperties.sharebtnstyle == 'Style 1' &&
|
|
2917
|
+
}, fetchProductInfoQueryContext.data.data.productinfo.quantavailtype == 'nolimit' ? lang.available : lang.limitedquantity)))), sectionproperties.showShareButton == 'Show' && sectionproperties.sharebtnstyle == 'Style 1' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2970
2918
|
"class": "col-lg-12 p-0"
|
|
2971
2919
|
}, /*#__PURE__*/React__default["default"].createElement("hr", {
|
|
2972
2920
|
"class": "mb-3 mt-3",
|
|
@@ -2985,6 +2933,11 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
2985
2933
|
paddingRight: langdetect == 'ar' ? '.5rem' : 0
|
|
2986
2934
|
}
|
|
2987
2935
|
}, StoreInfoprops(), sectionproperties.showShareButton == 'Show' && sectionproperties.sharebtnstyle == 'Style 2' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2936
|
+
"class": productinfo_cssstyles.storeinfocontainer + ' col-lg-12 p-0 ',
|
|
2937
|
+
style: {}
|
|
2938
|
+
}, /*#__PURE__*/React__default["default"].createElement("hr", {
|
|
2939
|
+
"class": "my-3"
|
|
2940
|
+
})), sectionproperties.showShareButton == 'Show' && sectionproperties.sharebtnstyle == 'Style 2' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2988
2941
|
"class": "col-lg-12 p-0 allcentered mt-2"
|
|
2989
2942
|
}, ShareButtonsContainer()))))))), sectionproperties.storeinfoposition == 'On The Right' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2990
2943
|
className: langdetect == 'en' ? 'col-lg-3 pr-0 border-md-none p-md-0 pt-4 pl-md-0 pr-md-0' : 'col-lg-3 pl-0 border-md-none md-0 pt-4 pl-md-0 pr-md-0',
|
|
@@ -7178,16 +7131,14 @@ function ownKeys$2g(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySym
|
|
|
7178
7131
|
function _objectSpread$2g(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2g(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2g(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
7179
7132
|
var Wishlist = function Wishlist(props) {
|
|
7180
7133
|
var _bgimagesarray$, _bgimagesarray$5, _bgimagesarray$6, _bgimagesarray$7, _bgimagesarray$8;
|
|
7181
|
-
props.actions.lang;
|
|
7134
|
+
var lang = props.actions.lang;
|
|
7182
7135
|
var langdetect = props.actions.langdetect;
|
|
7183
|
-
var routingcountext = props.actions.routingcountext;
|
|
7184
7136
|
var fetchFavoriteProductsQueryContext = props.actions.fetchFavoriteProductsQueryContext;
|
|
7185
7137
|
var FetchQueriesEngineContext = props.actions.FetchQueriesEngineContext;
|
|
7186
7138
|
var setFetchQueriesEngineContext = props.actions.setFetchQueriesEngineContext;
|
|
7187
7139
|
var addtofavoritescontext = props.actions.addtofavoritescontext;
|
|
7188
7140
|
var setShowProductInfoModalContext = props.actions.setShowProductInfoModalContext;
|
|
7189
7141
|
var ikimagecredcontext = props.actions.ikimagecredcontext;
|
|
7190
|
-
var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
|
|
7191
7142
|
var setProductIdProdutInfoModalContext = props.actions.setProductIdProdutInfoModalContext;
|
|
7192
7143
|
var StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
|
|
7193
7144
|
var actions = props.actions;
|
|
@@ -7199,7 +7150,6 @@ var Wishlist = function Wishlist(props) {
|
|
|
7199
7150
|
_useState4 = _slicedToArray__default["default"](_useState3, 2),
|
|
7200
7151
|
bgimagesarray = _useState4[0],
|
|
7201
7152
|
setbgimagesarray = _useState4[1];
|
|
7202
|
-
var authdetailsContext = props.actions.authdetailsContext;
|
|
7203
7153
|
React.useEffect(function () {
|
|
7204
7154
|
if (Object.keys(StatePagePropertiesContext).length != 0) {
|
|
7205
7155
|
var secpropobj = {};
|
|
@@ -7252,23 +7202,22 @@ var Wishlist = function Wishlist(props) {
|
|
|
7252
7202
|
cart_btn: glamor.css({
|
|
7253
7203
|
width: sectionproperties.cartBtnWidth + 'px',
|
|
7254
7204
|
height: sectionproperties.cartBtnHeight + 'px',
|
|
7255
|
-
background: sectionproperties.cartBtnbgColor,
|
|
7205
|
+
background: sectionproperties.cartbtn_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.cartBtnbgColor,
|
|
7256
7206
|
borderRadius: sectionproperties.cart_btn_borderBottomLeftRadius + 'px',
|
|
7257
7207
|
color: sectionproperties.cartBtnTextcolor,
|
|
7258
7208
|
textTransform: sectionproperties.cartBtnTexttransform,
|
|
7259
7209
|
fontWeight: sectionproperties.cartBtnTextfontweight,
|
|
7260
7210
|
border: sectionproperties.cartbtnborderwidth + 'px solid ' + sectionproperties.cartbtnbordercolor,
|
|
7261
|
-
fontSize: sectionproperties.cartBtnTextfontsize + 'px',
|
|
7262
7211
|
transition: '.3s',
|
|
7263
7212
|
':hover': {
|
|
7264
|
-
background: sectionproperties.cartBtnbgColoronhover,
|
|
7213
|
+
background: sectionproperties.cartbtn_transparentbgcoloronhover == 'Transparent' ? 'transparent' : sectionproperties.cartBtnbgColoronhover,
|
|
7265
7214
|
color: sectionproperties.cartBtnTextcoloronhover,
|
|
7266
7215
|
borderColor: sectionproperties.cartBtnTextcoloronhover
|
|
7267
7216
|
}
|
|
7268
7217
|
}),
|
|
7269
7218
|
trash_btn: glamor.css({
|
|
7270
|
-
width: sectionproperties.trashbtn_Width
|
|
7271
|
-
height: sectionproperties.trashbtn_Height
|
|
7219
|
+
width: sectionproperties.trashbtn_Width + 'px',
|
|
7220
|
+
height: sectionproperties.trashbtn_Height + 'px',
|
|
7272
7221
|
background: sectionproperties.trashbtn_bgColortransparent == 'Transparent' ? 'transparent' : sectionproperties.trashbtn_bgColor,
|
|
7273
7222
|
color: sectionproperties.trashbtn_Textcolor,
|
|
7274
7223
|
borderRadius: sectionproperties.trashbtn_borderBottomLeftRadius + 'px',
|
|
@@ -7280,13 +7229,20 @@ var Wishlist = function Wishlist(props) {
|
|
|
7280
7229
|
}
|
|
7281
7230
|
}),
|
|
7282
7231
|
imagecont: glamor.css({
|
|
7283
|
-
width: '
|
|
7284
|
-
height: '
|
|
7232
|
+
width: '70px',
|
|
7233
|
+
height: '60px',
|
|
7234
|
+
border: sectionproperties.prodimage_borderwidth + 'px solid ' + sectionproperties.prodimage_color,
|
|
7285
7235
|
backgroundColor: sectionproperties.prodimage_bgcolor,
|
|
7286
|
-
|
|
7236
|
+
borderBottomLeftRadius: sectionproperties.prodimage__borderBottomLeftRadius + 'px',
|
|
7237
|
+
borderBottomRightRadius: sectionproperties.prodimage__borderBottomRightRadius + 'px',
|
|
7238
|
+
borderTopLeftRadius: sectionproperties.prodimage__borderTopLeftRadius + 'px',
|
|
7239
|
+
borderTopRightRadius: sectionproperties.prodimage__borderTopRightRadius + 'px',
|
|
7287
7240
|
display: 'flex',
|
|
7288
7241
|
alignItems: 'center',
|
|
7289
7242
|
justifyContent: 'center',
|
|
7243
|
+
backgroundRepeat: 'no-repeat',
|
|
7244
|
+
backgroundSize: 'cover',
|
|
7245
|
+
backgroundPosition: 'center',
|
|
7290
7246
|
position: 'relative'
|
|
7291
7247
|
}),
|
|
7292
7248
|
containerstyle: glamor.css({
|
|
@@ -7296,23 +7252,6 @@ var Wishlist = function Wishlist(props) {
|
|
|
7296
7252
|
'@media (max-width: 800px)': {
|
|
7297
7253
|
marginTop: sectionproperties.marginTopResp + 'px'
|
|
7298
7254
|
}
|
|
7299
|
-
}),
|
|
7300
|
-
btnstyles: glamor.css({
|
|
7301
|
-
width: sectionproperties.generalbtn_width + '%',
|
|
7302
|
-
height: sectionproperties.generalbtn_height + 'px',
|
|
7303
|
-
borderRadius: sectionproperties.generalbtnborderradius + 'px',
|
|
7304
|
-
background: sectionproperties.generalbtn_bgColor,
|
|
7305
|
-
color: sectionproperties.generalbtn_textColor,
|
|
7306
|
-
fontSize: sectionproperties.generalbtn_fontsize + 'px',
|
|
7307
|
-
fontWeight: sectionproperties.generalbtn_fontweight,
|
|
7308
|
-
':hover': {
|
|
7309
|
-
transition: '.3s',
|
|
7310
|
-
color: sectionproperties.generalbtn_textColoronhover,
|
|
7311
|
-
backgroundColor: sectionproperties.generalbtn_bgColoronhover
|
|
7312
|
-
},
|
|
7313
|
-
'@media (max-width: 800px)': {
|
|
7314
|
-
width: '80%'
|
|
7315
|
-
}
|
|
7316
7255
|
})
|
|
7317
7256
|
};
|
|
7318
7257
|
React.useEffect(function () {
|
|
@@ -7363,7 +7302,10 @@ var Wishlist = function Wishlist(props) {
|
|
|
7363
7302
|
margin: 0,
|
|
7364
7303
|
padding: 0,
|
|
7365
7304
|
background: sectionproperties.image_bgcolor,
|
|
7366
|
-
|
|
7305
|
+
borderTopLeftRadius: sectionproperties.image_bordertopleftradius + 'px',
|
|
7306
|
+
borderTopRightRadius: sectionproperties.image_bordertoprightradius + 'px',
|
|
7307
|
+
borderBottomLeftRadius: sectionproperties.image_borderBottomLeftRadius + 'px',
|
|
7308
|
+
borderBottomRightRadius: sectionproperties.image_borderBottomRightRadius + 'px',
|
|
7367
7309
|
zIndex: -1,
|
|
7368
7310
|
objectFit: sectionproperties.bgcovercontain
|
|
7369
7311
|
}
|
|
@@ -7379,19 +7321,45 @@ var Wishlist = function Wishlist(props) {
|
|
|
7379
7321
|
padding: 0,
|
|
7380
7322
|
objectFit: sectionproperties.bgcovercontainresponsive,
|
|
7381
7323
|
background: sectionproperties.image_bgcolor,
|
|
7382
|
-
|
|
7324
|
+
borderTopLeftRadius: sectionproperties.image_bordertopleftradius + 'px',
|
|
7325
|
+
borderTopRightRadius: sectionproperties.image_bordertoprightradius + 'px',
|
|
7326
|
+
borderBottomLeftRadius: sectionproperties.image_borderBottomLeftRadius + 'px',
|
|
7327
|
+
borderBottomRightRadius: sectionproperties.image_borderBottomRightRadius + 'px',
|
|
7383
7328
|
zIndex: -1
|
|
7384
7329
|
}
|
|
7385
|
-
})
|
|
7330
|
+
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7331
|
+
className: ' col-lg-12 p-0 w-100 d-flex align-items-center justify-content-center ',
|
|
7332
|
+
style: {
|
|
7333
|
+
position: 'absolute',
|
|
7334
|
+
top: 0,
|
|
7335
|
+
right: 0,
|
|
7336
|
+
bottom: 0,
|
|
7337
|
+
left: 0
|
|
7338
|
+
}
|
|
7339
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
7340
|
+
className: ' m-0 p-0 ',
|
|
7341
|
+
style: {
|
|
7342
|
+
fontSize: sectionproperties.imagetextfontsize + 'px',
|
|
7343
|
+
color: sectionproperties.imagetextcolor,
|
|
7344
|
+
textTransform: sectionproperties.imagetexttextTransform,
|
|
7345
|
+
fontWeight: sectionproperties.imagetextfontWeight
|
|
7346
|
+
}
|
|
7347
|
+
}, lang.mywishlist)))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7386
7348
|
className: "col-lg-12 p-0"
|
|
7387
7349
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7388
7350
|
className: 'row ml-0 mr-0 d-flex justify-content-center w-100 pl-lg-4 pr-lg-4 pl-md-3 pr-md-3 pl-sm-2 pr-sm-2',
|
|
7389
7351
|
style: {
|
|
7390
|
-
|
|
7391
|
-
|
|
7352
|
+
width: sectionproperties.width + 'vw',
|
|
7353
|
+
paddingLeft: sectionproperties.paddingLeft + 'px',
|
|
7354
|
+
paddingRight: sectionproperties.paddingRight + 'px',
|
|
7392
7355
|
paddingTop: sectionproperties.paddingTop + 'px',
|
|
7393
7356
|
paddingBottom: sectionproperties.paddingBottom + 'px',
|
|
7394
|
-
|
|
7357
|
+
borderBottomLeftRadius: sectionproperties.borderBottomLeftRadius + 'px',
|
|
7358
|
+
borderBottomRightRadius: sectionproperties.borderBottomRightRadius + 'px',
|
|
7359
|
+
borderTopLeftRadius: sectionproperties.borderTopLeftRadius + 'px',
|
|
7360
|
+
borderTopRightRadius: sectionproperties.borderTopRightRadius + 'px',
|
|
7361
|
+
borderColor: sectionproperties.sectioncardbordercolor,
|
|
7362
|
+
border: sectionproperties.sectioncardborderwidth + 'px solid'
|
|
7395
7363
|
}
|
|
7396
7364
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7397
7365
|
className: 'col-lg-12 p-0'
|
|
@@ -7401,118 +7369,24 @@ var Wishlist = function Wishlist(props) {
|
|
|
7401
7369
|
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7402
7370
|
className: 'col-lg-12 p-0'
|
|
7403
7371
|
}, fetchFavoriteProductsQueryContext.isFetching && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7404
|
-
className: "
|
|
7405
|
-
style: {
|
|
7406
|
-
height: '50vh',
|
|
7407
|
-
padding: '20px'
|
|
7408
|
-
}
|
|
7409
|
-
}, sectionproperties.showbgimage == 'Hide' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7410
|
-
className: "col-lg-12 col-md-12 col-sm-12 d-flex align-items-center justify-content-start p-0",
|
|
7411
|
-
style: {
|
|
7412
|
-
marginTop: sectionproperties.sectionTitleMarginTop + 'px',
|
|
7413
|
-
marginBottom: sectionproperties.sectionTitleMarginBottom + 'px'
|
|
7414
|
-
}
|
|
7415
|
-
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
7416
|
-
"class": "m-0 p-0 mt-5 mt-sm-2",
|
|
7417
|
-
style: {
|
|
7418
|
-
fontSize: sectionproperties.sectionTitleFontSize + 'px',
|
|
7419
|
-
color: sectionproperties.sectionTitleColor,
|
|
7420
|
-
fontWeight: sectionproperties.sectionTitleFontWeight
|
|
7421
|
-
}
|
|
7422
|
-
}, langdetect == 'en' ? sectionproperties.sectionTitleContent : sectionproperties.sectionTitleContent_ar)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7423
|
-
"class": "col-lg-12 p-0 d-flex d-md-none"
|
|
7424
|
-
}, /*#__PURE__*/React__default["default"].createElement("table", {
|
|
7425
|
-
className: 'table'
|
|
7426
|
-
}, /*#__PURE__*/React__default["default"].createElement("thead", {
|
|
7427
|
-
className: ""
|
|
7428
|
-
}, /*#__PURE__*/React__default["default"].createElement("th", {
|
|
7429
|
-
className: 'mw-150 mw-md-300'
|
|
7430
|
-
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
7431
|
-
"class": "my-1 is-loading"
|
|
7432
|
-
})), /*#__PURE__*/React__default["default"].createElement("th", {
|
|
7433
|
-
className: "text-center",
|
|
7434
|
-
style: {
|
|
7435
|
-
minWidth: '100px'
|
|
7436
|
-
}
|
|
7437
|
-
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
7438
|
-
"class": "my-1 is-loading"
|
|
7439
|
-
})), /*#__PURE__*/React__default["default"].createElement("th", {
|
|
7440
|
-
className: "text-center"
|
|
7441
|
-
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
7442
|
-
"class": "my-1 is-loading"
|
|
7443
|
-
}))), /*#__PURE__*/React__default["default"].createElement("tbody", null, _toConsumableArray__default["default"](Array(3)).map(function (item, index) {
|
|
7444
|
-
return /*#__PURE__*/React__default["default"].createElement("tr", {
|
|
7445
|
-
className: ""
|
|
7446
|
-
}, /*#__PURE__*/React__default["default"].createElement("td", {
|
|
7447
|
-
className: "mw-150 mw-md-300"
|
|
7448
|
-
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
7449
|
-
"class": "my-1 is-loading"
|
|
7450
|
-
})), /*#__PURE__*/React__default["default"].createElement("td", {
|
|
7451
|
-
className: "text-center",
|
|
7452
|
-
style: {
|
|
7453
|
-
minWidth: '100px'
|
|
7454
|
-
}
|
|
7455
|
-
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
7456
|
-
"class": "my-1 is-loading"
|
|
7457
|
-
})), /*#__PURE__*/React__default["default"].createElement("td", {
|
|
7458
|
-
className: "text-center",
|
|
7459
|
-
style: {
|
|
7460
|
-
minWidth: '100px'
|
|
7461
|
-
}
|
|
7462
|
-
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
7463
|
-
"class": "my-1 is-loading"
|
|
7464
|
-
})));
|
|
7465
|
-
})))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7466
|
-
"class": "col-lg-12 p-0 d-none d-md-flex"
|
|
7467
|
-
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7468
|
-
className: "row m-0 w-100 align-items-center justify-content-center",
|
|
7372
|
+
className: "w-100 d-flex align-items-center justify-content-center",
|
|
7469
7373
|
style: {
|
|
7470
7374
|
height: '50vh'
|
|
7471
7375
|
}
|
|
7472
|
-
},
|
|
7473
|
-
|
|
7474
|
-
|
|
7475
|
-
|
|
7476
|
-
|
|
7477
|
-
|
|
7478
|
-
className: ' col-3 p-0 '
|
|
7479
|
-
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7480
|
-
className: "".concat(wishlist_cssstyles.imagecont) + ' w-100 p-0 is-loading image '
|
|
7481
|
-
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7482
|
-
className: "col-9 pt-2"
|
|
7483
|
-
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7484
|
-
"class": "row m-0 w-100 d-flex"
|
|
7485
|
-
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7486
|
-
"class": "col-10 p-0 mb-1"
|
|
7487
|
-
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
7488
|
-
className: ' m-0 p-0 is-loading mb-auto '
|
|
7489
|
-
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7490
|
-
"class": "col-lg-12 p-0"
|
|
7491
|
-
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
7492
|
-
"class": ' m-0 p-0 is-loading '
|
|
7493
|
-
})))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7494
|
-
"class": "col-lg-12 allcentered p-0 mt-4"
|
|
7495
|
-
}, /*#__PURE__*/React__default["default"].createElement("button", {
|
|
7496
|
-
className: ' w-100 is-loading ',
|
|
7497
|
-
style: {
|
|
7498
|
-
height: sectionproperties.cartBtnHeight + 'px'
|
|
7499
|
-
}
|
|
7500
|
-
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7501
|
-
"class": "col-lg-12 p-0 my-3",
|
|
7502
|
-
style: {
|
|
7503
|
-
background: '#eee',
|
|
7504
|
-
height: 1,
|
|
7505
|
-
width: '100%'
|
|
7506
|
-
}
|
|
7507
|
-
})));
|
|
7508
|
-
})))), !fetchFavoriteProductsQueryContext.isFetching && fetchFavoriteProductsQueryContext.isSuccess && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7376
|
+
}, /*#__PURE__*/React__default["default"].createElement(reactCssfxLoading.Messaging, {
|
|
7377
|
+
color: "#ccc",
|
|
7378
|
+
width: "10px",
|
|
7379
|
+
height: "10px",
|
|
7380
|
+
duration: "1s"
|
|
7381
|
+
})), !fetchFavoriteProductsQueryContext.isFetching && fetchFavoriteProductsQueryContext.isSuccess && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7509
7382
|
className: "row ml-0 mr-0 w-100 "
|
|
7510
7383
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7511
7384
|
className: 'col-lg-12 d-flex w-100 p-0'
|
|
7512
|
-
}, sectionproperties.pagedesign == 'Design 1 (Cards)' &&
|
|
7385
|
+
}, sectionproperties.pagedesign == 'Design 1 (Cards)' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7513
7386
|
className: 'row m-0 d-flex justify-content-center w-100',
|
|
7514
7387
|
style: {
|
|
7515
7388
|
background: sectionproperties.reservation_bgcolor,
|
|
7389
|
+
border: sectionproperties.innersectionborderWidth + 'px solid ' + sectionproperties.innersectionborderColor,
|
|
7516
7390
|
borderRadius: sectionproperties.reservation_borderradius + 'px',
|
|
7517
7391
|
padding: '20px',
|
|
7518
7392
|
minHeight: '70vh'
|
|
@@ -7577,7 +7451,24 @@ var Wishlist = function Wishlist(props) {
|
|
|
7577
7451
|
fontSize: sectionproperties.cartBtnTextfontsize + 'px'
|
|
7578
7452
|
}
|
|
7579
7453
|
}, langdetect == 'en' ? sectionproperties.cartBtnContentenglish : sectionproperties.cartBtnContentarabic))));
|
|
7580
|
-
}))
|
|
7454
|
+
})), fetchFavoriteProductsQueryContext.data.data.products.length == 0 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7455
|
+
className: "row m-0 w-100 d-flex align-items-center justify-content-center h-100",
|
|
7456
|
+
style: {
|
|
7457
|
+
height: '50vh'
|
|
7458
|
+
}
|
|
7459
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7460
|
+
className: ' col-lg-12 d-flex align-items-center justify-content-center text-light flex-column h-100 pt-5 pb-5 '
|
|
7461
|
+
}, /*#__PURE__*/React__default["default"].createElement(BiSad.BiSad, {
|
|
7462
|
+
size: sectionproperties.noprod_iconfontSize,
|
|
7463
|
+
color: sectionproperties.noprod_iconcolor
|
|
7464
|
+
}), /*#__PURE__*/React__default["default"].createElement("p", {
|
|
7465
|
+
"class": "m-0 p-0 mt-2",
|
|
7466
|
+
style: {
|
|
7467
|
+
fontWeight: sectionproperties.noprod_fontWeight,
|
|
7468
|
+
color: sectionproperties.noprod_color,
|
|
7469
|
+
fontSize: sectionproperties.noprod_fontSize + 'px'
|
|
7470
|
+
}
|
|
7471
|
+
}, langdetect == 'en' ? sectionproperties.nocards_content_en : sectionproperties.nocards_content_ar))))), sectionproperties.pagedesign == 'Design 2 (Table)' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7581
7472
|
className: ' row m-0 w-100 p-sm-3 ',
|
|
7582
7473
|
style: {
|
|
7583
7474
|
background: sectionproperties.reservation_bgcolor,
|
|
@@ -7587,49 +7478,24 @@ var Wishlist = function Wishlist(props) {
|
|
|
7587
7478
|
minHeight: '70vh'
|
|
7588
7479
|
}
|
|
7589
7480
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7590
|
-
className: '
|
|
7591
|
-
}, sectionproperties.showbgimage == 'Hide' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7592
|
-
className: "col-lg-12 col-md-12 col-sm-12 d-flex align-items-center justify-content-start p-0",
|
|
7593
|
-
style: {
|
|
7594
|
-
marginTop: sectionproperties.sectionTitleMarginTop + 'px',
|
|
7595
|
-
marginBottom: sectionproperties.sectionTitleMarginBottom + 'px'
|
|
7596
|
-
}
|
|
7597
|
-
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
7598
|
-
"class": "m-0 p-0 mt-5 mt-sm-2",
|
|
7599
|
-
style: {
|
|
7600
|
-
fontSize: sectionproperties.sectionTitleFontSize + 'px',
|
|
7601
|
-
color: sectionproperties.sectionTitleColor,
|
|
7602
|
-
fontWeight: sectionproperties.sectionTitleFontWeight
|
|
7603
|
-
}
|
|
7604
|
-
}, langdetect == 'en' ? sectionproperties.sectionTitleContent : sectionproperties.sectionTitleContent_ar)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7605
|
-
className: ' col-lg-12 table_responsive p-0 d-block d-md-none '
|
|
7481
|
+
className: ' col-lg-12 table_responsive p-0 '
|
|
7606
7482
|
}, /*#__PURE__*/React__default["default"].createElement("table", {
|
|
7607
|
-
className: 'table'
|
|
7483
|
+
className: 'table table_thbg'
|
|
7608
7484
|
}, /*#__PURE__*/React__default["default"].createElement("thead", {
|
|
7609
|
-
className: ""
|
|
7610
|
-
}, /*#__PURE__*/React__default["default"].createElement("th", {
|
|
7611
|
-
className: langdetect == 'en' ? 'text-left font-weight-500 font-14 mw-150 mw-md-300' : 'text-right font-weight-500 font-14 mw-150 mw-md-300',
|
|
7612
|
-
style: {
|
|
7613
|
-
color: sectionproperties.sectionTitleColor
|
|
7614
|
-
}
|
|
7615
|
-
}, langdetect == 'en' ? sectionproperties.productnametitle_en : sectionproperties.productnametitle_ar), sectionproperties.prodPriceShow == 'Show' && /*#__PURE__*/React__default["default"].createElement("th", {
|
|
7616
|
-
className: "text-center font-weight-500 font-14",
|
|
7617
|
-
style: {
|
|
7618
|
-
minWidth: '100px',
|
|
7619
|
-
color: sectionproperties.sectionTitleColor
|
|
7620
|
-
}
|
|
7621
|
-
}, langdetect == 'en' ? 'Unit Price' : 'السعر'), sectionproperties.cartBtnShow == 'Show' && /*#__PURE__*/React__default["default"].createElement("th", {
|
|
7622
|
-
className: "text-center font-weight-500 font-14",
|
|
7485
|
+
className: "",
|
|
7623
7486
|
style: {
|
|
7624
|
-
|
|
7625
|
-
color: sectionproperties.sectionTitleColor
|
|
7487
|
+
background: '#eee'
|
|
7626
7488
|
}
|
|
7627
|
-
}
|
|
7628
|
-
className:
|
|
7489
|
+
}, /*#__PURE__*/React__default["default"].createElement("th", {
|
|
7490
|
+
className: langdetect == 'en' ? 'text-left font-weight-500 font-14 text-light mw-150 mw-md-300' : 'text-right font-weight-500 font-14 text-light mw-150 mw-md-300'
|
|
7491
|
+
}, langdetect == 'en' ? sectionproperties.productnametitle_en : sectionproperties.productnametitle_ar), sectionproperties.cartBtnShow == 'Show' && /*#__PURE__*/React__default["default"].createElement("th", {
|
|
7492
|
+
className: "text-center font-weight-500 font-14 text-light",
|
|
7629
7493
|
style: {
|
|
7630
|
-
|
|
7494
|
+
minWidth: '100px'
|
|
7631
7495
|
}
|
|
7632
|
-
})
|
|
7496
|
+
}, langdetect == 'en' ? sectionproperties.cartBtnContentenglish : sectionproperties.cartBtnContentarabic), /*#__PURE__*/React__default["default"].createElement("th", {
|
|
7497
|
+
className: "text-center font-weight-500 font-14 text-light"
|
|
7498
|
+
}, lang.remove)), /*#__PURE__*/React__default["default"].createElement("tbody", null, fetchFavoriteProductsQueryContext.data.data.products.map(function (item, index) {
|
|
7633
7499
|
return /*#__PURE__*/React__default["default"].createElement("tr", {
|
|
7634
7500
|
className: "border-none"
|
|
7635
7501
|
}, /*#__PURE__*/React__default["default"].createElement("td", {
|
|
@@ -7645,28 +7511,14 @@ var Wishlist = function Wishlist(props) {
|
|
|
7645
7511
|
style: {
|
|
7646
7512
|
width: '100%',
|
|
7647
7513
|
height: '100%',
|
|
7648
|
-
objectFit: '
|
|
7514
|
+
objectFit: 'cover'
|
|
7649
7515
|
},
|
|
7650
7516
|
loading: "lazy"
|
|
7651
7517
|
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7652
|
-
className: "col-lg-9 col-md-9 col-sm-8
|
|
7653
|
-
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
7654
|
-
className: "".concat(wishlist_cssstyles.productNameStyles) + ' m-0 p-0 wordbreak wordbreak3 mb-auto ',
|
|
7655
|
-
style: {
|
|
7656
|
-
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
7657
|
-
}
|
|
7658
|
-
}, item.name_en)))), sectionproperties.prodPriceShow = /*#__PURE__*/React__default["default"].createElement("td", {
|
|
7659
|
-
className: "text-center",
|
|
7660
|
-
style: {
|
|
7661
|
-
minWidth: '100px'
|
|
7662
|
-
}
|
|
7663
|
-
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7664
|
-
"class": "row m-0 w-100 allcentered flex-column"
|
|
7518
|
+
className: "col-lg-9 col-md-9 col-sm-8"
|
|
7665
7519
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
7666
|
-
"
|
|
7667
|
-
},
|
|
7668
|
-
"class": wishlist_cssstyles.productsalePricestyles + ' m-0 p-0 linethrough mt-2 '
|
|
7669
|
-
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', " ", item.defaultprice, ' ', langdetect == 'ar' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar : ''))), sectionproperties.cartBtnShow == 'Show' && /*#__PURE__*/React__default["default"].createElement("td", {
|
|
7520
|
+
className: "".concat(wishlist_cssstyles.productNameStyles) + ' m-0 p-0 wordbreak wordbreak3 d-flex justify-content-start mb-auto '
|
|
7521
|
+
}, item.name_en)))), sectionproperties.cartBtnShow == 'Show' && /*#__PURE__*/React__default["default"].createElement("td", {
|
|
7670
7522
|
className: "text-center",
|
|
7671
7523
|
style: {
|
|
7672
7524
|
minWidth: '100px'
|
|
@@ -7677,7 +7529,28 @@ var Wishlist = function Wishlist(props) {
|
|
|
7677
7529
|
setShowProductInfoModalContext(true);
|
|
7678
7530
|
setProductIdProdutInfoModalContext(item.productid);
|
|
7679
7531
|
}
|
|
7680
|
-
},
|
|
7532
|
+
}, sectionproperties.carticonstyle == 'Shopping bag 1' && /*#__PURE__*/React__default["default"].createElement(FiShoppingBag.FiShoppingBag, {
|
|
7533
|
+
className: "",
|
|
7534
|
+
size: sectionproperties.cartBtn_iconFontSize
|
|
7535
|
+
}), sectionproperties.carticonstyle == 'Shopping bag 2' && /*#__PURE__*/React__default["default"].createElement(CgShoppingBag.CgShoppingBag, {
|
|
7536
|
+
className: "",
|
|
7537
|
+
size: sectionproperties.cartBtn_iconFontSize
|
|
7538
|
+
}), sectionproperties.carticonstyle == 'Shopping bag 3' && /*#__PURE__*/React__default["default"].createElement(BsBag.BsBag, {
|
|
7539
|
+
className: "",
|
|
7540
|
+
size: sectionproperties.cartBtn_iconFontSize
|
|
7541
|
+
}), sectionproperties.carticonstyle == 'Shopping bag 4' && /*#__PURE__*/React__default["default"].createElement(IoBagHandleOutline.IoBagHandleOutline, {
|
|
7542
|
+
className: "",
|
|
7543
|
+
size: sectionproperties.cartBtn_iconFontSize
|
|
7544
|
+
}), sectionproperties.carticonstyle == 'Shopping cart 1' && /*#__PURE__*/React__default["default"].createElement(FiShoppingCart.FiShoppingCart, {
|
|
7545
|
+
className: "",
|
|
7546
|
+
size: sectionproperties.cartBtn_iconFontSize
|
|
7547
|
+
}), sectionproperties.carticonstyle == 'Shopping cart 2' && /*#__PURE__*/React__default["default"].createElement(MdAddShoppingCart.MdAddShoppingCart, {
|
|
7548
|
+
className: "",
|
|
7549
|
+
size: sectionproperties.cartBtn_iconFontSize
|
|
7550
|
+
}), sectionproperties.carticonstyle == 'Calendar 1' && /*#__PURE__*/React__default["default"].createElement(FiCalendar.FiCalendar, {
|
|
7551
|
+
className: "",
|
|
7552
|
+
size: sectionproperties.cartBtn_iconFontSize
|
|
7553
|
+
}))), /*#__PURE__*/React__default["default"].createElement("td", {
|
|
7681
7554
|
className: "text-center"
|
|
7682
7555
|
}, /*#__PURE__*/React__default["default"].createElement("button", {
|
|
7683
7556
|
className: " ".concat(wishlist_cssstyles.trash_btn) + ' d-flex align-items-center justify-content-center text-uppercase font-weight-500 m-auto ',
|
|
@@ -7687,110 +7560,22 @@ var Wishlist = function Wishlist(props) {
|
|
|
7687
7560
|
style: {
|
|
7688
7561
|
fontSize: sectionproperties.trashbtn_Textfontsize + 'px'
|
|
7689
7562
|
}
|
|
7690
|
-
},
|
|
7691
|
-
|
|
7692
|
-
|
|
7693
|
-
})))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7694
|
-
className: ' col-lg-12 p-0 d-none d-md-flex align-items-center justify-content-start '
|
|
7695
|
-
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7696
|
-
className: ' row m-0 w-100 d-flex align-items-center justify-content-start '
|
|
7697
|
-
}, fetchFavoriteProductsQueryContext.data.data.products.map(function (item, index) {
|
|
7698
|
-
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7699
|
-
"class": "col-lg-12 p-0"
|
|
7700
|
-
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7701
|
-
"class": "row m-0 w-100"
|
|
7702
|
-
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7703
|
-
className: ' col-3 p-0 '
|
|
7704
|
-
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7705
|
-
className: "".concat(wishlist_cssstyles.imagecont) + ' w-100 p-0 '
|
|
7706
|
-
}, /*#__PURE__*/React__default["default"].createElement(Imagekitimagecomp, {
|
|
7707
|
-
urlEndpoint: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint,
|
|
7708
|
-
publicKey: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimagepublickey,
|
|
7709
|
-
path: item.productmainimage,
|
|
7710
|
-
style: {
|
|
7711
|
-
width: '100%',
|
|
7712
|
-
height: '100%',
|
|
7713
|
-
objectFit: 'contain'
|
|
7714
|
-
},
|
|
7715
|
-
loading: "lazy"
|
|
7716
|
-
}))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7717
|
-
className: "col-9 pt-2"
|
|
7718
|
-
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7719
|
-
"class": "row m-0 w-100 d-flex"
|
|
7720
|
-
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7721
|
-
"class": "col-10 p-0 d-flex align-items-center justify-content-start"
|
|
7722
|
-
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
7723
|
-
className: "".concat(wishlist_cssstyles.productNameStyles) + ' m-0 p-0 wordbreak wordbreak3 mb-auto ',
|
|
7724
|
-
style: {
|
|
7725
|
-
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
7726
|
-
}
|
|
7727
|
-
}, item.name_en)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7728
|
-
"class": "col-2 p-0 d-flex align-items-center justify-content-end"
|
|
7729
|
-
}, /*#__PURE__*/React__default["default"].createElement("button", {
|
|
7730
|
-
className: " ".concat(wishlist_cssstyles.trash_btnresp) + ' allcentered ',
|
|
7731
|
-
onClick: function onClick() {
|
|
7732
|
-
addtofavoritescontext(item.productid);
|
|
7733
|
-
}
|
|
7734
|
-
}, /*#__PURE__*/React__default["default"].createElement(HiOutlineTrash.HiOutlineTrash, {
|
|
7735
|
-
size: sectionproperties.trashbtn_Textfontsize
|
|
7736
|
-
}))), sectionproperties.prodPriceShow = /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7737
|
-
"class": "col-lg-12 p-0 d-flex align-items-center justify-content-start"
|
|
7738
|
-
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
7739
|
-
"class": wishlist_cssstyles.productPricestyles + ' m-0 p-0 '
|
|
7740
|
-
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', item.hassale == 1 ? item.defaultsaleprice : item.defaultprice, ' ', langdetect == 'ar' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar : ''), item.hassale == 1 && /*#__PURE__*/React__default["default"].createElement("p", {
|
|
7741
|
-
"class": wishlist_cssstyles.productsalePricestyles + ' m-0 p-0 linethrough mx-2 mt-auto '
|
|
7742
|
-
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', " ", item.defaultprice, ' ', langdetect == 'ar' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar : '')))), sectionproperties.cartBtnShow == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7743
|
-
"class": "col-lg-12 allcentered p-0 mt-4"
|
|
7744
|
-
}, /*#__PURE__*/React__default["default"].createElement("button", {
|
|
7745
|
-
className: "".concat(wishlist_cssstyles.cart_btn) + ' w-100 ',
|
|
7746
|
-
onClick: function onClick() {
|
|
7747
|
-
setShowProductInfoModalContext(true);
|
|
7748
|
-
setProductIdProdutInfoModalContext(item.productid);
|
|
7749
|
-
}
|
|
7750
|
-
}, langdetect == 'en' ? item.productactionbuttontext_en : item.productactionbuttontext_ar)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7751
|
-
"class": "col-lg-12 p-0 my-3",
|
|
7752
|
-
style: {
|
|
7753
|
-
background: '#eee',
|
|
7754
|
-
height: 1,
|
|
7755
|
-
width: '100%'
|
|
7756
|
-
}
|
|
7757
|
-
})));
|
|
7758
|
-
}))))), fetchFavoriteProductsQueryContext.data.data.products.length == 0 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7759
|
-
className: "row m-0 w-100 d-flex justify-content-center pt-5 pb-5",
|
|
7760
|
-
style: {
|
|
7761
|
-
maxHeight: '60vh',
|
|
7762
|
-
padding: '20px'
|
|
7763
|
-
}
|
|
7563
|
+
}, lang.remove)));
|
|
7564
|
+
}))), fetchFavoriteProductsQueryContext.data.data.products.length == 0 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7565
|
+
className: "row m-0 w-100 d-flex align-items-center justify-content-center pt-5 pb-5"
|
|
7764
7566
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7765
|
-
className:
|
|
7766
|
-
|
|
7767
|
-
|
|
7768
|
-
|
|
7769
|
-
|
|
7770
|
-
|
|
7771
|
-
"class": "m-0 p-0 mt-5 mt-sm-2",
|
|
7772
|
-
style: {
|
|
7773
|
-
fontSize: sectionproperties.sectionTitleFontSize + 'px',
|
|
7774
|
-
color: sectionproperties.sectionTitleColor,
|
|
7775
|
-
fontWeight: sectionproperties.sectionTitleFontWeight
|
|
7776
|
-
}
|
|
7777
|
-
}, langdetect == 'en' ? sectionproperties.sectionTitleContent : sectionproperties.sectionTitleContent_ar)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7778
|
-
className: ' col-lg-12 d-flex align-items-center justify-content-start text-light px-0 mb-3 '
|
|
7779
|
-
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
7780
|
-
"class": sectionproperties.noprod_iconfontSize == 0 ? 'm-0 p-0' : 'm-0 p-0 mt-2',
|
|
7567
|
+
className: ' col-lg-12 d-flex align-items-center justify-content-center text-light flex-column h-100 pt-5 pb-5 '
|
|
7568
|
+
}, /*#__PURE__*/React__default["default"].createElement(BiSad.BiSad, {
|
|
7569
|
+
size: sectionproperties.noprod_iconfontSize,
|
|
7570
|
+
color: sectionproperties.noprod_iconcolor
|
|
7571
|
+
}), /*#__PURE__*/React__default["default"].createElement("p", {
|
|
7572
|
+
"class": "m-0 p-0 mt-2",
|
|
7781
7573
|
style: {
|
|
7782
7574
|
fontWeight: sectionproperties.noprod_fontWeight,
|
|
7783
7575
|
color: sectionproperties.noprod_color,
|
|
7784
7576
|
fontSize: sectionproperties.noprod_fontSize + 'px'
|
|
7785
7577
|
}
|
|
7786
|
-
}, langdetect == 'en' ? sectionproperties.nocards_content_en : sectionproperties.nocards_content_ar)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7787
|
-
className: ' col-lg-12 d-flex align-items-center justify-content-start text-light px-0 mb-5 '
|
|
7788
|
-
}, /*#__PURE__*/React__default["default"].createElement("button", {
|
|
7789
|
-
"class": "".concat(wishlist_cssstyles.btnstyles),
|
|
7790
|
-
onClick: function onClick() {
|
|
7791
|
-
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, false);
|
|
7792
|
-
}
|
|
7793
|
-
}, langdetect == 'en' ? sectionproperties.generalbtn_content : sectionproperties.slideshow_btn_text_ar))))))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7578
|
+
}, langdetect == 'en' ? sectionproperties.nocards_content_en : sectionproperties.nocards_content_ar))))))))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7794
7579
|
className: "col-lg-12 d-flex align-items-center justify-content-center p-0 "
|
|
7795
7580
|
})));
|
|
7796
7581
|
};
|
|
@@ -7798,7 +7583,7 @@ var Wishlist = function Wishlist(props) {
|
|
|
7798
7583
|
function ownKeys$2f(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; }
|
|
7799
7584
|
function _objectSpread$2f(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2f(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2f(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
7800
7585
|
var Viewcart = function Viewcart(props) {
|
|
7801
|
-
var _bgimagesarray$, _bgimagesarray$5, _bgimagesarray$6, _bgimagesarray$7, _bgimagesarray$8, _fetchcustomercartQue7, _fetchcustomercartQue8
|
|
7586
|
+
var _bgimagesarray$, _bgimagesarray$5, _bgimagesarray$6, _bgimagesarray$7, _bgimagesarray$8, _fetchcustomercartQue7, _fetchcustomercartQue8;
|
|
7802
7587
|
var lang = props.actions.lang;
|
|
7803
7588
|
var langdetect = props.actions.langdetect;
|
|
7804
7589
|
var fetchcustomercartQueryContext = props.actions.fetchcustomercartQueryContext;
|
|
@@ -7821,10 +7606,6 @@ var Viewcart = function Viewcart(props) {
|
|
|
7821
7606
|
_useState4 = _slicedToArray__default["default"](_useState3, 2);
|
|
7822
7607
|
_useState4[0];
|
|
7823
7608
|
var setimagesarray = _useState4[1];
|
|
7824
|
-
var _useState5 = React.useState([]),
|
|
7825
|
-
_useState6 = _slicedToArray__default["default"](_useState5, 2),
|
|
7826
|
-
bgimagesarray = _useState6[0],
|
|
7827
|
-
setbgimagesarray = _useState6[1];
|
|
7828
7609
|
React.useEffect(function () {
|
|
7829
7610
|
if (Object.keys(StatePagePropertiesContext).length != 0) {
|
|
7830
7611
|
var _StatePagePropertiesC;
|
|
@@ -7851,16 +7632,6 @@ var Viewcart = function Viewcart(props) {
|
|
|
7851
7632
|
}
|
|
7852
7633
|
}
|
|
7853
7634
|
}, [sectionproperties]);
|
|
7854
|
-
React.useEffect(function () {
|
|
7855
|
-
if (sectionproperties.length != 0) {
|
|
7856
|
-
if (sectionproperties.arrayofobjectimagesonly != null) {
|
|
7857
|
-
var arrayofobjectimagesonlyparsed = JSON.parse(sectionproperties.arrayofobjectimagesonly);
|
|
7858
|
-
if (Array.isArray(arrayofobjectimagesonlyparsed)) {
|
|
7859
|
-
setbgimagesarray(_toConsumableArray__default["default"](arrayofobjectimagesonlyparsed));
|
|
7860
|
-
}
|
|
7861
|
-
}
|
|
7862
|
-
}
|
|
7863
|
-
}, [sectionproperties]);
|
|
7864
7635
|
var Summary = function Summary() {
|
|
7865
7636
|
var _fetchcustomercartQue, _fetchcustomercartQue2, _fetchcustomercartQue3, _fetchcustomercartQue4, _fetchcustomercartQue5, _fetchcustomercartQue6;
|
|
7866
7637
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -7932,23 +7703,6 @@ var Viewcart = function Viewcart(props) {
|
|
|
7932
7703
|
}, langdetect == 'en' ? sectionproperties.checkoutButtonContenten : sectionproperties.checkoutButtonContentar)))));
|
|
7933
7704
|
};
|
|
7934
7705
|
var viewcart_cssstyles = {
|
|
7935
|
-
btnstyles: glamor.css({
|
|
7936
|
-
width: sectionproperties.generalbtn_width + '%',
|
|
7937
|
-
height: sectionproperties.generalbtn_height + 'px',
|
|
7938
|
-
borderRadius: sectionproperties.generalbtnborderradius + 'px',
|
|
7939
|
-
background: sectionproperties.generalbtn_bgColor,
|
|
7940
|
-
color: sectionproperties.generalbtn_textColor,
|
|
7941
|
-
fontSize: sectionproperties.generalbtn_fontsize + 'px',
|
|
7942
|
-
fontWeight: sectionproperties.generalbtn_fontweight,
|
|
7943
|
-
':hover': {
|
|
7944
|
-
transition: '.3s',
|
|
7945
|
-
color: sectionproperties.generalbtn_textColoronhover,
|
|
7946
|
-
backgroundColor: sectionproperties.generalbtn_bgColoronhover
|
|
7947
|
-
},
|
|
7948
|
-
'@media (max-width: 800px)': {
|
|
7949
|
-
width: '80%'
|
|
7950
|
-
}
|
|
7951
|
-
}),
|
|
7952
7706
|
checkoutbtnstyles: glamor.css({
|
|
7953
7707
|
background: sectionproperties.checkoutBtnbgColortranparent == 'Transparent' ? 'transparent' : sectionproperties.checkoutBtnbgColor,
|
|
7954
7708
|
width: sectionproperties.checkoutBtnWidth + 'px',
|
|
@@ -8069,8 +7823,10 @@ var Viewcart = function Viewcart(props) {
|
|
|
8069
7823
|
}
|
|
8070
7824
|
}),
|
|
8071
7825
|
tableimagecont: glamor.css({
|
|
8072
|
-
width:
|
|
8073
|
-
height: sectionproperties.
|
|
7826
|
+
width: '70px',
|
|
7827
|
+
height: sectionproperties.prodimage__borderBottomLeftRadius == 100 ? '70px' : '60px',
|
|
7828
|
+
border: sectionproperties.prodimage_borderwidth + 'px solid ' + sectionproperties.prodimage_color,
|
|
7829
|
+
backgroundColor: sectionproperties.prodimage_bgcolor,
|
|
8074
7830
|
display: 'flex',
|
|
8075
7831
|
alignItems: 'center',
|
|
8076
7832
|
justifyContent: 'center',
|
|
@@ -8085,6 +7841,20 @@ var Viewcart = function Viewcart(props) {
|
|
|
8085
7841
|
}
|
|
8086
7842
|
})
|
|
8087
7843
|
};
|
|
7844
|
+
var _useState5 = React.useState([]),
|
|
7845
|
+
_useState6 = _slicedToArray__default["default"](_useState5, 2),
|
|
7846
|
+
bgimagesarray = _useState6[0],
|
|
7847
|
+
setbgimagesarray = _useState6[1];
|
|
7848
|
+
React.useEffect(function () {
|
|
7849
|
+
if (sectionproperties.length != 0) {
|
|
7850
|
+
if (sectionproperties.arrayofobjectimagesonly != null) {
|
|
7851
|
+
var arrayofobjectimagesonlyparsed = JSON.parse(sectionproperties.arrayofobjectimagesonly);
|
|
7852
|
+
if (Array.isArray(arrayofobjectimagesonlyparsed)) {
|
|
7853
|
+
setbgimagesarray(_toConsumableArray__default["default"](arrayofobjectimagesonlyparsed));
|
|
7854
|
+
}
|
|
7855
|
+
}
|
|
7856
|
+
}
|
|
7857
|
+
}, [sectionproperties]);
|
|
8088
7858
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8089
7859
|
className: viewcart_cssstyles.containerstyles + ' row ml-0 mr-0 w-100 d-flex justify-content-center ',
|
|
8090
7860
|
style: {}
|
|
@@ -8108,7 +7878,7 @@ var Viewcart = function Viewcart(props) {
|
|
|
8108
7878
|
"class": sectionproperties.bgcovercontainresponsive == 'Contain' ? 'h-sm-auto mb-sm-4' : '',
|
|
8109
7879
|
style: {
|
|
8110
7880
|
width: sectionproperties.image_width + 'vw',
|
|
8111
|
-
height: 'auto',
|
|
7881
|
+
height: sectionproperties.image_height == 0 ? 'auto' : sectionproperties.image_height + 'vh',
|
|
8112
7882
|
marginBottom: sectionproperties.image_mb + 'px',
|
|
8113
7883
|
position: 'relative'
|
|
8114
7884
|
}
|
|
@@ -8120,11 +7890,15 @@ var Viewcart = function Viewcart(props) {
|
|
|
8120
7890
|
style: {
|
|
8121
7891
|
height: '100%',
|
|
8122
7892
|
width: '100%',
|
|
8123
|
-
objectFit: 'contain',
|
|
8124
7893
|
margin: 0,
|
|
8125
7894
|
padding: 0,
|
|
8126
|
-
|
|
8127
|
-
|
|
7895
|
+
background: sectionproperties.image_bgcolor,
|
|
7896
|
+
borderTopLeftRadius: sectionproperties.image_bordertopleftradius + 'px',
|
|
7897
|
+
borderTopRightRadius: sectionproperties.image_bordertoprightradius + 'px',
|
|
7898
|
+
borderBottomLeftRadius: sectionproperties.image_borderBottomLeftRadius + 'px',
|
|
7899
|
+
borderBottomRightRadius: sectionproperties.image_borderBottomRightRadius + 'px',
|
|
7900
|
+
zIndex: -1,
|
|
7901
|
+
objectFit: sectionproperties.bgcovercontain
|
|
8128
7902
|
}
|
|
8129
7903
|
}), /*#__PURE__*/React__default["default"].createElement(Imagekitimagecomp, {
|
|
8130
7904
|
urlEndpoint: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint,
|
|
@@ -8134,22 +7908,48 @@ var Viewcart = function Viewcart(props) {
|
|
|
8134
7908
|
style: {
|
|
8135
7909
|
height: '100%',
|
|
8136
7910
|
width: '100%',
|
|
8137
|
-
objectFit: 'contain',
|
|
8138
7911
|
margin: 0,
|
|
8139
7912
|
padding: 0,
|
|
8140
|
-
|
|
7913
|
+
objectFit: sectionproperties.bgcovercontainresponsive,
|
|
7914
|
+
background: sectionproperties.image_bgcolor,
|
|
7915
|
+
borderTopLeftRadius: sectionproperties.image_bordertopleftradius + 'px',
|
|
7916
|
+
borderTopRightRadius: sectionproperties.image_bordertoprightradius + 'px',
|
|
7917
|
+
borderBottomLeftRadius: sectionproperties.image_borderBottomLeftRadius + 'px',
|
|
7918
|
+
borderBottomRightRadius: sectionproperties.image_borderBottomRightRadius + 'px',
|
|
8141
7919
|
zIndex: -1
|
|
8142
7920
|
}
|
|
8143
|
-
})
|
|
7921
|
+
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7922
|
+
className: ' col-lg-12 p-0 w-100 d-flex align-items-center justify-content-center ',
|
|
7923
|
+
style: {
|
|
7924
|
+
position: 'absolute',
|
|
7925
|
+
top: 0,
|
|
7926
|
+
right: 0,
|
|
7927
|
+
bottom: 0,
|
|
7928
|
+
left: 0
|
|
7929
|
+
}
|
|
7930
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
7931
|
+
className: ' m-0 p-0 ',
|
|
7932
|
+
style: {
|
|
7933
|
+
fontSize: sectionproperties.imagetextfontsize + 'px',
|
|
7934
|
+
color: sectionproperties.imagetextcolor,
|
|
7935
|
+
textTransform: sectionproperties.imagetexttextTransform,
|
|
7936
|
+
fontWeight: sectionproperties.imagetextfontWeight
|
|
7937
|
+
}
|
|
7938
|
+
}, lang.mycart)))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8144
7939
|
className: "col-lg-12 p-0"
|
|
8145
7940
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8146
7941
|
className: 'row ml-0 mr-0 d-flex justify-content-center w-100 pl-lg-4 pr-lg-4 pl-md-3 pr-md-3 pl-sm-2 pr-sm-2',
|
|
8147
7942
|
style: {
|
|
8148
|
-
paddingLeft: sectionproperties.
|
|
8149
|
-
paddingRight: sectionproperties.
|
|
7943
|
+
paddingLeft: sectionproperties.paddingLeft + 'px',
|
|
7944
|
+
paddingRight: sectionproperties.paddingRight + 'px',
|
|
8150
7945
|
paddingTop: sectionproperties.paddingTop + 'px',
|
|
8151
7946
|
paddingBottom: sectionproperties.paddingBottom + 'px',
|
|
8152
|
-
|
|
7947
|
+
borderBottomLeftRadius: sectionproperties.borderBottomLeftRadius + 'px',
|
|
7948
|
+
borderBottomRightRadius: sectionproperties.borderBottomRightRadius + 'px',
|
|
7949
|
+
borderTopLeftRadius: sectionproperties.borderTopLeftRadius + 'px',
|
|
7950
|
+
borderTopRightRadius: sectionproperties.borderTopRightRadius + 'px'
|
|
7951
|
+
// borderColor: sectionproperties.sectioncardbordercolor,
|
|
7952
|
+
// border: sectionproperties.sectioncardborderwidth + 'px solid',
|
|
8153
7953
|
}
|
|
8154
7954
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8155
7955
|
className: 'col-lg-12 p-0'
|
|
@@ -8158,7 +7958,7 @@ var Viewcart = function Viewcart(props) {
|
|
|
8158
7958
|
actions: actions
|
|
8159
7959
|
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8160
7960
|
className: 'col-lg-12 d-flex w-100 p-0'
|
|
8161
|
-
},
|
|
7961
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8162
7962
|
className: "row m-0 w-100"
|
|
8163
7963
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8164
7964
|
className: langdetect == 'en' ? 'col-lg-9 pr-0' : 'col-lg-9 pl-0'
|
|
@@ -8174,7 +7974,10 @@ var Viewcart = function Viewcart(props) {
|
|
|
8174
7974
|
}, /*#__PURE__*/React__default["default"].createElement("table", {
|
|
8175
7975
|
className: 'table table_thbg'
|
|
8176
7976
|
}, /*#__PURE__*/React__default["default"].createElement("thead", {
|
|
8177
|
-
className: ""
|
|
7977
|
+
className: "",
|
|
7978
|
+
style: {
|
|
7979
|
+
background: '#eee'
|
|
7980
|
+
}
|
|
8178
7981
|
}, /*#__PURE__*/React__default["default"].createElement("th", {
|
|
8179
7982
|
className: langdetect == 'en' ? 'text-left font-weight-500 font-14 text-light mw-150 mw-md-300' : 'text-right font-weight-500 font-14 text-light mw-150 mw-md-300'
|
|
8180
7983
|
}, langdetect == 'en' ? sectionproperties.productnametitle_en : sectionproperties.productnametitle_ar), /*#__PURE__*/React__default["default"].createElement("th", {
|
|
@@ -8191,7 +7994,7 @@ var Viewcart = function Viewcart(props) {
|
|
|
8191
7994
|
}
|
|
8192
7995
|
}, lang.total), /*#__PURE__*/React__default["default"].createElement("th", {
|
|
8193
7996
|
className: "text-capitalize text-center font-weight-500 font-14 text-uppercase text-light"
|
|
8194
|
-
}, lang.remove)), /*#__PURE__*/React__default["default"].createElement("tbody", null, fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
7997
|
+
}, lang.remove)), /*#__PURE__*/React__default["default"].createElement("tbody", null, fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue7 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue7 === void 0 || (_fetchcustomercartQue7 = _fetchcustomercartQue7.data) === null || _fetchcustomercartQue7 === void 0 || (_fetchcustomercartQue7 = _fetchcustomercartQue7.customercart) === null || _fetchcustomercartQue7 === void 0 || (_fetchcustomercartQue7 = _fetchcustomercartQue7.cartitems) === null || _fetchcustomercartQue7 === void 0 ? void 0 : _fetchcustomercartQue7.map(function (item, index) {
|
|
8195
7998
|
return /*#__PURE__*/React__default["default"].createElement("tr", {
|
|
8196
7999
|
className: "border-none"
|
|
8197
8000
|
}, /*#__PURE__*/React__default["default"].createElement("td", {
|
|
@@ -8207,7 +8010,8 @@ var Viewcart = function Viewcart(props) {
|
|
|
8207
8010
|
style: {
|
|
8208
8011
|
width: '100%',
|
|
8209
8012
|
height: '100%',
|
|
8210
|
-
objectFit: 'contain'
|
|
8013
|
+
objectFit: sectionproperties.prodimage__borderBottomLeftRadius == '100' ? 'cover' : 'contain',
|
|
8014
|
+
borderRadius: sectionproperties.prodimage__borderBottomLeftRadius + 'px'
|
|
8211
8015
|
},
|
|
8212
8016
|
loading: "lazy"
|
|
8213
8017
|
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -8361,43 +8165,36 @@ var Viewcart = function Viewcart(props) {
|
|
|
8361
8165
|
deletecartitemContext(item);
|
|
8362
8166
|
}
|
|
8363
8167
|
}, lang.remove)));
|
|
8364
|
-
}))))))
|
|
8365
|
-
className:
|
|
8366
|
-
}, Summary())), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue9 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue9 === void 0 || (_fetchcustomercartQue9 = _fetchcustomercartQue9.data) === null || _fetchcustomercartQue9 === void 0 || (_fetchcustomercartQue9 = _fetchcustomercartQue9.customercart) === null || _fetchcustomercartQue9 === void 0 ? void 0 : _fetchcustomercartQue9.cartitems.length) == 0 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8367
|
-
className: "row m-0 w-100 d-flex justify-content-center pt-5 pb-5",
|
|
8168
|
+
})))), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue8 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue8 === void 0 || (_fetchcustomercartQue8 = _fetchcustomercartQue8.data) === null || _fetchcustomercartQue8 === void 0 || (_fetchcustomercartQue8 = _fetchcustomercartQue8.customercart) === null || _fetchcustomercartQue8 === void 0 ? void 0 : _fetchcustomercartQue8.cartitems.length) == 0 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8169
|
+
className: "row m-0 w-100 d-flex align-items-center justify-content-center h-100 pt-5 pb-5",
|
|
8368
8170
|
style: {
|
|
8369
|
-
|
|
8171
|
+
height: '50vh'
|
|
8370
8172
|
}
|
|
8371
8173
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8372
|
-
className:
|
|
8174
|
+
className: ' col-lg-12 d-flex align-items-center justify-content-center text-light flex-column h-100 pt-5 pb-5 '
|
|
8175
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8176
|
+
className: "col-lg-12 d-flex align-items-center justify-content-center text-light flex-column"
|
|
8177
|
+
}, sectionproperties.noproducticontype == 'Cart' && /*#__PURE__*/React__default["default"].createElement("img", {
|
|
8178
|
+
src: 'https://tabex-co.com/storage/StaticImages/shoppingcart.png',
|
|
8373
8179
|
style: {
|
|
8374
|
-
|
|
8375
|
-
|
|
8180
|
+
maxWidth: '250px',
|
|
8181
|
+
maxHeight: '250px'
|
|
8376
8182
|
}
|
|
8377
|
-
}, /*#__PURE__*/React__default["default"].createElement(
|
|
8378
|
-
"class": "m-0 p-0",
|
|
8183
|
+
}), sectionproperties.noproducticontype == 'Calendar' && /*#__PURE__*/React__default["default"].createElement(FiCalendar.FiCalendar, {
|
|
8379
8184
|
style: {
|
|
8380
|
-
fontSize: sectionproperties.
|
|
8381
|
-
color: sectionproperties.
|
|
8382
|
-
fontWeight: sectionproperties.sectionTitleFontWeight
|
|
8185
|
+
fontSize: sectionproperties.noprod_iconfontSize + 'px',
|
|
8186
|
+
color: sectionproperties.noprod_iconcolor
|
|
8383
8187
|
}
|
|
8384
|
-
}
|
|
8385
|
-
|
|
8386
|
-
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
8387
|
-
"class": sectionproperties.noprod_iconfontSize == 0 ? 'm-0 p-0' : 'm-0 p-0 mt-2',
|
|
8188
|
+
}), /*#__PURE__*/React__default["default"].createElement("p", {
|
|
8189
|
+
"class": "m-0 p-0 mt-2",
|
|
8388
8190
|
style: {
|
|
8389
8191
|
fontWeight: sectionproperties.noprod_fontWeight,
|
|
8390
8192
|
color: sectionproperties.noprod_color,
|
|
8391
8193
|
fontSize: sectionproperties.noprod_fontSize + 'px'
|
|
8392
8194
|
}
|
|
8393
|
-
}, langdetect == 'en' ? sectionproperties.nocards_content_en : sectionproperties.nocards_content_ar)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8394
|
-
className: ' col-lg-
|
|
8395
|
-
},
|
|
8396
|
-
"class": "".concat(viewcart_cssstyles.btnstyles),
|
|
8397
|
-
onClick: function onClick() {
|
|
8398
|
-
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, false);
|
|
8399
|
-
}
|
|
8400
|
-
}, langdetect == 'en' ? sectionproperties.generalbtn_content : sectionproperties.slideshow_btn_text_ar)))))));
|
|
8195
|
+
}, langdetect == 'en' ? sectionproperties.nocards_content_en : sectionproperties.nocards_content_ar)))))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8196
|
+
className: langdetect == 'en' ? ' col-lg-3 pr-0 px-sm-0 mb-4 ' : ' col-lg-3 pl-0 px-sm-0 mb-4'
|
|
8197
|
+
}, Summary()))))));
|
|
8401
8198
|
};
|
|
8402
8199
|
|
|
8403
8200
|
var css_248z$G = "/* Forms */\n.form-module_form_control__4-RGw {\n display: block;\n width: 100%;\n /* height: 25px; */\n /* font-size: 1rem; */\n font-weight: 500;\n /* color: #444054; */\n /* background-color: white; */\n /* border-radius: 20px; */\n /* box-shadow: 0 0 10px #e6e6e6; */\n /* height: 40px; */\n padding-left: 0;\n padding-right: 0;\n /* font-size: 14px; */\n transition: background 0s ease-out;\n padding: 0 10px;\n}\n.form-module_textarea__zG0ed{\n resize: none;\n /* background-color: #eee; */\n}\n@media screen and (prefers-reduced-motion: reduce) {\n .form-module_form_control__4-RGw {\n transition: none;\n }\n}\n.form-module_form_control__4-RGw::-ms-expand {\n background-color: transparent;\n border: 0;\n}\n.form-module_form_control__4-RGw::placeholder {\n color: #eac435;\n opacity: 1;\n}\n.form-module_form_control__4-RGw:disabled,\n.form-module_form_control__4-RGw[readonly] {\n background-color: #e9ecef;\n opacity: 1;\n cursor: not-allowed;\n}\ntextarea.form-module_form_control__4-RGw {\n /* min-height: 100px !important; */\n padding-top: 10px;\n padding-bottom: 10px;\n}\n.form-module_form_control__4-RGw:focus {\n transition-duration: 0.3s;\n box-shadow: none;\n /* box-shadow: 0 0 10px #ccc; */\n}\n.form-module_form_control__4-RGw::-moz-placeholder {\n color: #aaaaaa;\n font-weight: 400;\n font-size: 14px;\n}\n.form-module_form_control__4-RGw:-ms-input-placeholder {\n color: #aaaaaa;\n font-weight: 400;\n font-size: 14px;\n}\n.form-module_form_control__4-RGw::-webkit-input-placeholder {\n color: #aaaaaa;\n font-weight: 400;\n font-size: 14px;\n}\n\n.form-module_form_control_border_none__TJvdZ {\n background-image: none;\n}\n.form-module_form_control__4-RGw.form-module_disabled__AtvSI,\n.form-module_form_control__4-RGw:disabled,\n.form-module_form_control__4-RGw[disabled] {\n cursor: not-allowed;\n}\n.form-module_input_label_name__416wN {\n font-size: 16px;\n text-transform: capitalize;\n color: var(--cardheader);\n font-weight: 500;\n}\n.form-module_input_label_name-bolder__UQn0a {\n font-weight: 500;\n}\n.form-module_input_icon__X-CzC {\n position: absolute;\n bottom: 5px;\n left: 0;\n color: #d9d9d9;\n}\n/* Radio Buttons */\n.form-module_radiobtn_label__-4Hoi {\n display: flex;\n cursor: pointer;\n font-weight: 500;\n position: relative;\n overflow: hidden;\n margin-bottom: 0;\n}\n.form-module_radiobtn_label__-4Hoi input {\n position: absolute;\n left: -9999px;\n display: none;\n}\n.form-module_radiobtn_label__-4Hoi input:checked + span {\n background-color: #f0f5f5;\n color: var(--focus);\n font-weight: 500;\n}\n.form-module_radiobtn_label__-4Hoi input:checked + span:before {\n box-shadow: inset 0 0 0 0.3em #eac435;\n}\n.form-module_radiobtn_label__-4Hoi span {\n display: flex;\n align-items: center;\n text-transform: capitalize;\n padding: 0.375em 0.75em 0.375em 0.375em;\n border-radius: 99em;\n transition: 0.25s ease;\n font-weight: normal;\n color: var(--focus);\n}\n.form-module_radiobtn_label__-4Hoi span:hover {\n background-color: #e6e6e6;\n}\n.form-module_radiobtn_label__-4Hoi span:before {\n display: flex;\n flex-shrink: 0;\n content: '';\n background-color: #fff;\n width: 1em;\n height: 1em;\n border-radius: 50%;\n margin-right: 0.375em;\n transition: 0.25s ease;\n box-shadow: inset 0 0 0 0.125em var(--focus);\n}\n.form-module_radiobtn_label__-4Hoi.form-module_text-grey__JdZMY span:before {\n box-shadow: inset 0 0 0 0.125em grey;\n}\n.form-module_radiobtn_label__-4Hoi input.form-module_disabled__AtvSI {\n cursor: not-allowed;\n}\n.form-module_radiobtn_label_translated__WN5Jj span:before {\n display: flex;\n flex-shrink: 0;\n content: '';\n background-color: #fff;\n width: 1em;\n height: 1em;\n border-radius: 50%;\n margin-left: 0.375em;\n margin-right: 0;\n transition: 0.25s ease;\n box-shadow: inset 0 0 0 0.125em var(--focus);\n}\n.form-module_radiobtn_label_translated__WN5Jj input.form-module_disabled__AtvSI {\n cursor: not-allowed;\n}\n\n/* Checkbox */\n.form-module_checkbox__XPkWy {\n --border: #022648;\n --border-hover: #959ed0;\n --tick: #fff;\n position: relative;\n /* color: var(--cardheader); */\n}\n.form-module_checkbox_label__VvcKs {\n font-size: 16px;\n text-transform: capitalize;\n font-weight: 500;\n cursor: pointer;\n}\n.form-module_checkbox__XPkWy:hover {\n /* color: var(--border-hover); */\n}\n.form-module_checkbox__XPkWy input,\n.form-module_checkbox__XPkWy svg {\n width: 16px;\n height: 16px;\n display: block;\n}\n.form-module_checkbox_sub__QWYil input {\n width: 15px;\n height: 15px;\n}\n.form-module_checkbox__XPkWy input {\n -webkit-appearance: none;\n -moz-appearance: none;\n position: relative;\n outline: none;\n background: white;\n border: none;\n margin: 0;\n padding: 0;\n cursor: pointer;\n border-radius: 4px;\n transition: box-shadow 0.3s;\n box-shadow: inset 0 0 0 var(--s, 1px) var(--b, var(--border));\n}\n.form-module_checkbox__XPkWy input:disabled {\n cursor: not-allowed;\n}\n.form-module_checkbox__XPkWy input:hover {\n /* --s: 2px; */\n /* --b: var(--border-hover); */\n}\n.form-module_checkbox__XPkWy input:checked {\n /* --b: var(--secondary); */\n}\n.form-module_checkbox__XPkWy svg {\n pointer-events: none;\n fill: none;\n stroke-width: 2px;\n stroke-linecap: round;\n stroke-linejoin: round;\n /* stroke: var(--stroke, var(--secondary)); */\n position: absolute;\n top: 0;\n left: 0;\n width: 16px;\n height: 21px;\n transform: scale(var(--scale, 1)) translateZ(0);\n}\n.form-module_checkbox_sub__QWYil svg {\n pointer-events: none;\n fill: none;\n stroke-width: 2px;\n stroke-linecap: round;\n stroke-linejoin: round;\n stroke: var(--stroke, var(--secondary));\n position: absolute;\n top: 0;\n left: 0;\n width: 16px;\n height: 21px;\n transform: scale(var(--scale, 1)) translateZ(0);\n}\n.form-module_checkboxtranslated__zvEV- svg {\n right: 0;\n}\n.form-module_checkbox__XPkWy input:checked {\n --s: 2px;\n transition-delay: 0.4s;\n}\n.form-module_checkbox__XPkWy input:checked + svg {\n --a: 16.1 86.12;\n --o: 102.22;\n}\n.form-module_checkbox__XPkWy svg {\n stroke-dasharray: var(--a, 86.12);\n stroke-dashoffset: var(--o, 86.12);\n transition: stroke-dasharray 0.6s, stroke-dashoffset 0.6s;\n}\n";
|
|
@@ -9632,7 +9429,7 @@ var Checkout = function Checkout(props) {
|
|
|
9632
9429
|
d: "M5,10.75 L8.5,14.25 L19.4,2.3 C18.8333333,1.43333333 18.0333333,1 17,1 L4,1 C2.35,1 1,2.35 1,4 L1,17 C1,18.65 2.35,20 4,20 L17,20 C18.65,20 20,18.65 20,17 L20,7.99769186"
|
|
9633
9430
|
})), /*#__PURE__*/React__default["default"].createElement("p", {
|
|
9634
9431
|
className: "".concat(formstyles.checkbox_label) + ' ml-2 mb-0 wordbreak cursor-pointer mr-2 '
|
|
9635
|
-
},
|
|
9432
|
+
}, langdetect == 'en' ? 'Mobile Wallet' : 'المحفظة الإلكترونية')))))), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue75 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue75 === void 0 || (_fetchcustomercartQue75 = _fetchcustomercartQue75.data) === null || _fetchcustomercartQue75 === void 0 ? void 0 : _fetchcustomercartQue75.customercart.paymentmethod) == 'onlinepayment1' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
9636
9433
|
className: "col-lg-12 p-0 w-100 mb-3"
|
|
9637
9434
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
9638
9435
|
style: {
|
|
@@ -16550,6 +16347,10 @@ var Searchlist$1 = function Searchlist(props) {
|
|
|
16550
16347
|
color: sectionproperties.searchlist_prodNameColorOnHover
|
|
16551
16348
|
}
|
|
16552
16349
|
}),
|
|
16350
|
+
productnamecont: glamor.css({
|
|
16351
|
+
paddingLeft: langdetect == 'en' ? '0.25rem' : 0,
|
|
16352
|
+
paddingRight: langdetect == 'ar' ? '0.25rem' : 0
|
|
16353
|
+
}),
|
|
16553
16354
|
productNameStyles: glamor.css({
|
|
16554
16355
|
fontSize: sectionproperties.searchlist_prodNameFontSize + 'px',
|
|
16555
16356
|
textTransform: sectionproperties.searchlist_prodNameTextTranform,
|
|
@@ -16657,7 +16458,7 @@ var Searchlist$1 = function Searchlist(props) {
|
|
|
16657
16458
|
borderRadius: sectionproperties.searchlist_prodimage_borderradius + 'px'
|
|
16658
16459
|
}
|
|
16659
16460
|
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
16660
|
-
"class": props.srcfromprops == 'StylishHeader' ? 'col-lg-11 col-md-11 col-sm-9
|
|
16461
|
+
"class": props.srcfromprops == 'StylishHeader' ? searchlist_styles.productnamecont + ' col-lg-11 col-md-11 col-sm-9 d-flex ' : props.srcfromprops == 'searchlistsliderheaderfullwidth' ? searchlist_styles.productnamecont + ' col-lg-9 col-md-10 col-sm-9 d-flex ' : searchlist_styles.productnamecont + ' col-lg-10 col-md-11 col-sm-9 d-flex ',
|
|
16661
16462
|
style: {
|
|
16662
16463
|
alignItems: sectionproperties.searchlistshowprice == 'Show' ? 'start' : 'center'
|
|
16663
16464
|
}
|
|
@@ -18400,8 +18201,8 @@ var HeaderresponsiveStyle2 = function HeaderresponsiveStyle2(props) {
|
|
|
18400
18201
|
setmenuactive = _useState6[1];
|
|
18401
18202
|
var _useState7 = React.useState(false),
|
|
18402
18203
|
_useState8 = _slicedToArray__default["default"](_useState7, 2),
|
|
18403
|
-
openSearch = _useState8[0]
|
|
18404
|
-
|
|
18204
|
+
openSearch = _useState8[0];
|
|
18205
|
+
_useState8[1];
|
|
18405
18206
|
React.useEffect(function () {
|
|
18406
18207
|
if (props.sectionpropertiesprops != undefined) {
|
|
18407
18208
|
setsectionproperties(_objectSpread$1T({}, props.sectionpropertiesprops));
|
|
@@ -18672,12 +18473,7 @@ var HeaderresponsiveStyle2 = function HeaderresponsiveStyle2(props) {
|
|
|
18672
18473
|
}
|
|
18673
18474
|
}))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
18674
18475
|
className: "col-md-6 col-sm-6 d-flex align-items-center justify-content-end p-0"
|
|
18675
|
-
}, /*#__PURE__*/React__default["default"].createElement("i", {
|
|
18676
|
-
"class": "h-100 allcentered",
|
|
18677
|
-
onClick: function onClick() {
|
|
18678
|
-
setopenSearch(true);
|
|
18679
|
-
}
|
|
18680
|
-
}, /*#__PURE__*/React__default["default"].createElement(IoSearchOutline.IoSearchOutline, null)), sectionproperties.cartBtnShow == 'Show' && CartButton(), /*#__PURE__*/React__default["default"].createElement("i", {
|
|
18476
|
+
}, sectionproperties.cartBtnShow == 'Show' && CartButton(), /*#__PURE__*/React__default["default"].createElement("i", {
|
|
18681
18477
|
"class": ' h-100 allcentered ',
|
|
18682
18478
|
style: {
|
|
18683
18479
|
color: sectionproperties.cart_BtnTextcolor_resp
|
|
@@ -34653,10 +34449,14 @@ var TwoTieredHeader = function TwoTieredHeader(props) {
|
|
|
34653
34449
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
34654
34450
|
"class": langdetect == 'en' ? "".concat(header_cssstyles.categorydropdownbtn) + ' row w-100 m-0 align-items-center pl-2 ' : "".concat(header_cssstyles.categorydropdownbtn) + ' row w-100 m-0 align-items-center pr-2 ',
|
|
34655
34451
|
style: {
|
|
34656
|
-
display: 'flex'
|
|
34452
|
+
display: 'flex',
|
|
34453
|
+
color: '#000'
|
|
34657
34454
|
}
|
|
34658
34455
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
34659
|
-
"class": 'col-lg-10 d-flex justify-content-start m-0 p-0'
|
|
34456
|
+
"class": header_cssstyles.categorydropdownbtn + ' col-lg-10 d-flex justify-content-start m-0 p-0 ',
|
|
34457
|
+
style: {
|
|
34458
|
+
color: '#000'
|
|
34459
|
+
}
|
|
34660
34460
|
}, langdetect == 'en' ? sectionproperties.generalbtn_content : sectionproperties.slideshow_btn_text_ar), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
34661
34461
|
"class": "col-lg-2 p-0 h-100 d-flex align-items-center justify-content-end"
|
|
34662
34462
|
}, /*#__PURE__*/React__default["default"].createElement("i", {
|