tabexseriescomponents 0.0.143 → 0.0.145
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 +207 -221
- package/dist/index.esm.js +207 -221
- package/dist/index.umd.js +211 -224
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -20,7 +20,6 @@ var AiOutlineUser = require('@react-icons/all-files/ai/AiOutlineUser');
|
|
|
20
20
|
var IoMdClose = require('@react-icons/all-files/io/IoMdClose');
|
|
21
21
|
var reactBootstrap = require('react-bootstrap');
|
|
22
22
|
require('react-query');
|
|
23
|
-
var reactRouter = require('react-router');
|
|
24
23
|
var imagekitioReact = require('imagekitio-react');
|
|
25
24
|
var ImageGallery = require('react-image-gallery');
|
|
26
25
|
var MdAddShoppingCart = require('@react-icons/all-files/md/MdAddShoppingCart');
|
|
@@ -1029,7 +1028,7 @@ styleInject(css_248z$K);
|
|
|
1029
1028
|
function ownKeys$1P(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
1030
1029
|
function _objectSpread$1P(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1P(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1P(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
1031
1030
|
var Product_itemtype = function Product_itemtype(props) {
|
|
1032
|
-
var _fetchProductInfoQuer, _fetchProductInfoQuer2, _fetchProductInfoQuer3, _fetchProductInfoQuer4, _fetchProductInfoQuer5, _fetchProductInfoQuer6, _fetchProductInfoQuer7, _fetchProductInfoQuer8, _fetchProductInfoQuer9, _fetchProductInfoQuer10, _fetchProductInfoQuer11, _fetchProductInfoQuer12, _fetchProductInfoQuer13, _fetchProductInfoQuer14, _fetchProductInfoQuer15, _fetchProductInfoQuer16, _fetchProductInfoQuer17, _fetchProductInfoQuer18, _fetchProductInfoQuer19, _fetchProductInfoQuer20, _fetchProductInfoQuer21, _fetchProductInfoQuer22, _fetchProductInfoQuer23, _fetchProductInfoQuer24, _fetchProductInfoQuer25, _fetchProductInfoQuer26, _fetchProductInfoQuer27, _fetchProductInfoQuer28, _fetchProductInfoQuer29, _fetchProductInfoQuer30, _fetchProductInfoQuer31, _fetchProductInfoQuer32, _fetchProductInfoQuer33, _ProductInfoObj$data, _ProductInfoObj$data$, _ProductInfoObj$data$2, _fetchProductInfoQuer34, _fetchProductInfoQuer35, _fetchProductInfoQuer36, _ProductInfoObj$data2, _ProductInfoObj$data3, _ProductInfoObj$data4, _fetchProductInfoQuer37, _fetchProductInfoQuer38, _fetchProductInfoQuer39, _fetchProductInfoQuer40, _fetchProductInfoQuer41, _fetchProductInfoQuer42, _fetchProductInfoQuer43, _fetchProductInfoQuer44, _fetchProductInfoQuer45, _fetchProductInfoQuer46, _fetchProductInfoQuer47, _fetchProductInfoQuer48, _authdetailsContext$c, _returnpolicyobj, _returnpolicyobj2, _returnpolicyobj3, _returnpolicyobj4, _returnpolicyobj5, _returnpolicyobj6, _returnpolicyobj7, _returnpolicyobj8, _authdetailsContext$i, _authdetailsContext$i2;
|
|
1031
|
+
var _fetchProductInfoQuer, _fetchProductInfoQuer2, _fetchProductInfoQuer3, _fetchProductInfoQuer4, _fetchProductInfoQuer5, _fetchProductInfoQuer6, _fetchProductInfoQuer7, _fetchProductInfoQuer8, _fetchProductInfoQuer9, _fetchProductInfoQuer10, _fetchProductInfoQuer11, _fetchProductInfoQuer12, _fetchProductInfoQuer13, _fetchProductInfoQuer14, _fetchProductInfoQuer15, _fetchProductInfoQuer16, _fetchProductInfoQuer17, _fetchProductInfoQuer18, _fetchProductInfoQuer19, _fetchProductInfoQuer20, _fetchProductInfoQuer21, _fetchProductInfoQuer22, _fetchProductInfoQuer23, _fetchProductInfoQuer24, _fetchProductInfoQuer25, _fetchProductInfoQuer26, _fetchProductInfoQuer27, _fetchProductInfoQuer28, _fetchProductInfoQuer29, _fetchProductInfoQuer30, _fetchProductInfoQuer31, _fetchProductInfoQuer32, _fetchProductInfoQuer33, _ProductInfoObj$data, _ProductInfoObj$data$, _ProductInfoObj$data$2, _fetchProductInfoQuer34, _fetchProductInfoQuer35, _fetchProductInfoQuer36, _ProductInfoObj$data2, _ProductInfoObj$data3, _ProductInfoObj$data4, _fetchProductInfoQuer37, _fetchProductInfoQuer38, _fetchProductInfoQuer39, _fetchProductInfoQuer40, _fetchProductInfoQuer41, _fetchProductInfoQuer42, _fetchProductInfoQuer43, _fetchProductInfoQuer44, _fetchProductInfoQuer45, _fetchProductInfoQuer46, _fetchProductInfoQuer47, _fetchProductInfoQuer48, _fetchProductInfoQuer49, _fetchProductInfoQuer50, _fetchProductInfoQuer51, _authdetailsContext$c, _returnpolicyobj, _returnpolicyobj2, _returnpolicyobj3, _returnpolicyobj4, _returnpolicyobj5, _returnpolicyobj6, _returnpolicyobj7, _returnpolicyobj8, _authdetailsContext$i, _authdetailsContext$i2;
|
|
1033
1032
|
var lang = props.actions.lang;
|
|
1034
1033
|
var langdetect = props.actions.langdetect;
|
|
1035
1034
|
var srcfromprops = props.actions.srcfromprops;
|
|
@@ -1082,7 +1081,8 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
1082
1081
|
items: productimagesarray,
|
|
1083
1082
|
thumbnailPosition: "bottom",
|
|
1084
1083
|
showNav: false,
|
|
1085
|
-
showPlayButton: false
|
|
1084
|
+
showPlayButton: false,
|
|
1085
|
+
showFullscreenButton: true
|
|
1086
1086
|
}))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1087
1087
|
className: langdetect == 'en' ? 'col-xl-7 col-lg-8 col-md-12 col-sm-12 pl-3 pr-0 p-md-0' : 'col-xl-7 col-lg-8 col-md-12 col-sm-12 pl-0 pr-3 p-md-0'
|
|
1088
1088
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -1459,11 +1459,13 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
1459
1459
|
fontWeight: sectionproperties.prodPriceFontWeight,
|
|
1460
1460
|
color: sectionproperties.prodPriceColor
|
|
1461
1461
|
}
|
|
1462
|
-
}, (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer37 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer37 === void 0 ? void 0 : (_fetchProductInfoQuer38 = _fetchProductInfoQuer37.data) === null || _fetchProductInfoQuer38 === void 0 ? void 0 : (_fetchProductInfoQuer39 = _fetchProductInfoQuer38.productinfo) === null || _fetchProductInfoQuer39 === void 0 ? void 0 : _fetchProductInfoQuer39.hasvariants) == 1 && (variantindexcompleted === null || variantindexcompleted === void 0 ? void 0 : variantindexcompleted.length)
|
|
1462
|
+
}, (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer37 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer37 === void 0 ? void 0 : (_fetchProductInfoQuer38 = _fetchProductInfoQuer37.data) === null || _fetchProductInfoQuer38 === void 0 ? void 0 : (_fetchProductInfoQuer39 = _fetchProductInfoQuer38.productinfo) === null || _fetchProductInfoQuer39 === void 0 ? void 0 : _fetchProductInfoQuer39.hasvariants) == 1 && (variantindexcompleted === null || variantindexcompleted === void 0 ? void 0 : variantindexcompleted.length) == 0 && /*#__PURE__*/React__default["default"].createElement("p", {
|
|
1463
|
+
"class": "m-0 p-0"
|
|
1464
|
+
}, fetchProductInfoQueryContext.data.data.productinfo.defaultprice), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer40 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer40 === void 0 ? void 0 : (_fetchProductInfoQuer41 = _fetchProductInfoQuer40.data) === null || _fetchProductInfoQuer41 === void 0 ? void 0 : (_fetchProductInfoQuer42 = _fetchProductInfoQuer41.productinfo) === null || _fetchProductInfoQuer42 === void 0 ? void 0 : _fetchProductInfoQuer42.hasvariants) == 1 && (variantindexcompleted === null || variantindexcompleted === void 0 ? void 0 : variantindexcompleted.length) != 0 && /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, fetchProductInfoQueryContext.data.data.productinfo.variants[variantindexcompleted].hassale == 1 && /*#__PURE__*/React__default["default"].createElement("p", {
|
|
1463
1465
|
className: langdetect == 'en' ? ' m-0 p-0 d-flex align-items-center justify-content-end wordbreak text-right ' : ' m-0 p-0 d-flex align-items-center justify-content-end wordbreak text-left '
|
|
1464
1466
|
}, langdetect == 'en' ? 'EGP' : '', ' ', fetchProductInfoQueryContext.data.data.productinfo.variants[variantindexcompleted].variantsaleprice, ' ', langdetect == 'en' ? '' : 'ج.م'), /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, fetchProductInfoQueryContext.data.data.productinfo.variants[variantindexcompleted].hassale == 0 && /*#__PURE__*/React__default["default"].createElement("p", {
|
|
1465
1467
|
className: langdetect == 'en' ? ' m-0 p-0 d-flex align-items-center justify-content-end wordbreak text-right wordbreak ' : ' m-0 p-0 d-flex align-items-center justify-content-end wordbreak text-left wordbreak '
|
|
1466
|
-
}, langdetect == 'en' ? 'EGP' : '', ' ', fetchProductInfoQueryContext.data.data.productinfo.variants[variantindexcompleted].variantprice, ' ', langdetect == 'en' ? '' : 'ج.م'))), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (
|
|
1468
|
+
}, langdetect == 'en' ? 'EGP' : '', ' ', fetchProductInfoQueryContext.data.data.productinfo.variants[variantindexcompleted].variantprice, ' ', langdetect == 'en' ? '' : 'ج.م'))), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer43 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer43 === void 0 ? void 0 : (_fetchProductInfoQuer44 = _fetchProductInfoQuer43.data) === null || _fetchProductInfoQuer44 === void 0 ? void 0 : (_fetchProductInfoQuer45 = _fetchProductInfoQuer44.productinfo) === null || _fetchProductInfoQuer45 === void 0 ? void 0 : _fetchProductInfoQuer45.hasvariants) == 0 && /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, fetchProductInfoQueryContext.data.data.productinfo.hassale == 0 && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
1467
1469
|
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 '
|
|
1468
1470
|
}, langdetect == 'en' ? 'EGP' : '', " ", fetchProductInfoQueryContext.data.data.productinfo.defaultprice, ' ', langdetect == 'en' ? '' : 'ج.م'), /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, fetchProductInfoQueryContext.data.data.productinfo.hassale == 1 && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
1469
1471
|
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 '
|
|
@@ -1474,11 +1476,11 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
1474
1476
|
fontSize: sectionproperties.prodsalepriceFontSize + 'px',
|
|
1475
1477
|
fontWeight: sectionproperties.prodsalePriceFontWeight
|
|
1476
1478
|
}
|
|
1477
|
-
}, (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (
|
|
1479
|
+
}, (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer46 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer46 === void 0 ? void 0 : (_fetchProductInfoQuer47 = _fetchProductInfoQuer46.data) === null || _fetchProductInfoQuer47 === void 0 ? void 0 : (_fetchProductInfoQuer48 = _fetchProductInfoQuer47.productinfo) === null || _fetchProductInfoQuer48 === void 0 ? void 0 : _fetchProductInfoQuer48.hasvariants) == 0 && /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, fetchProductInfoQueryContext.data.data.productinfo.hassale == 1 && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
1478
1480
|
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 '
|
|
1479
1481
|
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
1480
1482
|
className: "ml-2 mr-2"
|
|
1481
|
-
}, "-"), " ", langdetect == 'en' ? 'EGP' : '', ' ', fetchProductInfoQueryContext.data.data.productinfo.defaultprice, " ", langdetect == 'en' ? '' : 'ج.م')), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (
|
|
1483
|
+
}, "-"), " ", langdetect == 'en' ? 'EGP' : '', ' ', fetchProductInfoQueryContext.data.data.productinfo.defaultprice, " ", langdetect == 'en' ? '' : 'ج.م')), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer49 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer49 === void 0 ? void 0 : (_fetchProductInfoQuer50 = _fetchProductInfoQuer49.data) === null || _fetchProductInfoQuer50 === void 0 ? void 0 : (_fetchProductInfoQuer51 = _fetchProductInfoQuer50.productinfo) === null || _fetchProductInfoQuer51 === void 0 ? void 0 : _fetchProductInfoQuer51.hasvariants) == 1 && variantindexcompleted.length != 0 && /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, fetchProductInfoQueryContext.data.data.productinfo.variants[variantindexcompleted].hassale == 1 && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
1482
1484
|
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 '
|
|
1483
1485
|
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
1484
1486
|
className: "ml-2 mr-2"
|
|
@@ -2345,10 +2347,6 @@ function ownKeys$1N(object, enumerableOnly) { var keys = Object.keys(object); if
|
|
|
2345
2347
|
function _objectSpread$1N(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1N(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1N(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
2346
2348
|
var Productinfo = function Productinfo(props) {
|
|
2347
2349
|
var _ref, _ref2;
|
|
2348
|
-
var _useState = React.useState(false),
|
|
2349
|
-
_useState2 = _slicedToArray__default["default"](_useState, 2);
|
|
2350
|
-
_useState2[0];
|
|
2351
|
-
var setvariantModalShow = _useState2[1];
|
|
2352
2350
|
var StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
|
|
2353
2351
|
var lang = props.actions.lang;
|
|
2354
2352
|
var langdetect = props.actions.langdetect;
|
|
@@ -2373,28 +2371,52 @@ var Productinfo = function Productinfo(props) {
|
|
|
2373
2371
|
var setCurrentPageIdContext = props.actions.setCurrentPageIdContext;
|
|
2374
2372
|
var NotificationManager = props.actions.NotificationManager;
|
|
2375
2373
|
var productidparam = props.productidparam;
|
|
2374
|
+
var _useState = React.useState(''),
|
|
2375
|
+
_useState2 = _slicedToArray__default["default"](_useState, 2),
|
|
2376
|
+
sectionproperties = _useState2[0],
|
|
2377
|
+
setsectionproperties = _useState2[1];
|
|
2376
2378
|
var _useState3 = React.useState(''),
|
|
2377
|
-
_useState4 = _slicedToArray__default["default"](_useState3, 2)
|
|
2378
|
-
|
|
2379
|
-
|
|
2379
|
+
_useState4 = _slicedToArray__default["default"](_useState3, 2);
|
|
2380
|
+
_useState4[0];
|
|
2381
|
+
var setCurrentPageId = _useState4[1];
|
|
2380
2382
|
var _useState5 = React.useState(''),
|
|
2381
2383
|
_useState6 = _slicedToArray__default["default"](_useState5, 2);
|
|
2382
2384
|
_useState6[0];
|
|
2383
|
-
var
|
|
2384
|
-
var _useState7 = React.useState(
|
|
2385
|
-
_useState8 = _slicedToArray__default["default"](_useState7, 2)
|
|
2386
|
-
_useState8[0]
|
|
2387
|
-
|
|
2388
|
-
var _useState9 = React.useState(
|
|
2385
|
+
var setRelatedProductsTagid = _useState6[1];
|
|
2386
|
+
var _useState7 = React.useState({}),
|
|
2387
|
+
_useState8 = _slicedToArray__default["default"](_useState7, 2),
|
|
2388
|
+
ProductInfoObj = _useState8[0],
|
|
2389
|
+
setProductInfoObj = _useState8[1];
|
|
2390
|
+
var _useState9 = React.useState([]),
|
|
2389
2391
|
_useState10 = _slicedToArray__default["default"](_useState9, 2),
|
|
2390
|
-
|
|
2391
|
-
|
|
2392
|
+
Relatedproducts = _useState10[0],
|
|
2393
|
+
setRelatedproducts = _useState10[1];
|
|
2392
2394
|
var _useState11 = React.useState([]),
|
|
2393
2395
|
_useState12 = _slicedToArray__default["default"](_useState11, 2),
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
var
|
|
2397
|
-
|
|
2396
|
+
productimagesarray = _useState12[0],
|
|
2397
|
+
setproductimagesarray = _useState12[1];
|
|
2398
|
+
var _useState13 = React.useState({
|
|
2399
|
+
functype: 'add',
|
|
2400
|
+
item_type: 'product',
|
|
2401
|
+
productid: '',
|
|
2402
|
+
variantid: '',
|
|
2403
|
+
quantity: 1,
|
|
2404
|
+
date: '',
|
|
2405
|
+
time: '',
|
|
2406
|
+
from: '',
|
|
2407
|
+
to: ''
|
|
2408
|
+
}),
|
|
2409
|
+
_useState14 = _slicedToArray__default["default"](_useState13, 2),
|
|
2410
|
+
addtocardpayloadobj = _useState14[0],
|
|
2411
|
+
setaddtocardpayloadobj = _useState14[1];
|
|
2412
|
+
var _useState15 = React.useState(''),
|
|
2413
|
+
_useState16 = _slicedToArray__default["default"](_useState15, 2),
|
|
2414
|
+
variantindexcompleted = _useState16[0],
|
|
2415
|
+
setvariantindexcompleted = _useState16[1];
|
|
2416
|
+
var _useState17 = React.useState(false),
|
|
2417
|
+
_useState18 = _slicedToArray__default["default"](_useState17, 2),
|
|
2418
|
+
isloaded = _useState18[0],
|
|
2419
|
+
setisloaded = _useState18[1];
|
|
2398
2420
|
React.useEffect(function () {
|
|
2399
2421
|
if (Object.keys(StatePagePropertiesContext).length != 0) {
|
|
2400
2422
|
var secpropobj = {};
|
|
@@ -2404,12 +2426,6 @@ var Productinfo = function Productinfo(props) {
|
|
|
2404
2426
|
setsectionproperties(_objectSpread$1N({}, secpropobj));
|
|
2405
2427
|
}
|
|
2406
2428
|
}, [StatePagePropertiesContext]);
|
|
2407
|
-
|
|
2408
|
-
// const FetchRelatedProductsQuery = useQuery([' FetchRelatedProducts_API' + RelatedProductsTagid], () => FetchRelatedProducts_API({ tagid: RelatedProductsTagid, productid: '' }), {
|
|
2409
|
-
// keepPreviousData: true,
|
|
2410
|
-
// staleTime: Infinity,
|
|
2411
|
-
// enabled: fetchproductinfoObjContext.productid != undefined && fetchproductinfoObjContext.productid.length != 0 && RelatedProductsTagid.length != 0 ? true : false,
|
|
2412
|
-
// });
|
|
2413
2429
|
React.useEffect(function () {
|
|
2414
2430
|
var cartindex = templatepropcontext.pagesnprop.findIndex(function (x) {
|
|
2415
2431
|
return x.staticpageid == '6218bccb810ae';
|
|
@@ -2418,7 +2434,6 @@ var Productinfo = function Productinfo(props) {
|
|
|
2418
2434
|
setpageindexcontext(cartindex);
|
|
2419
2435
|
setCurrentPageId(templatepropcontext.pagesnprop[cartindex].pageid);
|
|
2420
2436
|
if (props.srcfromprops != 'templatedraftrouter') {
|
|
2421
|
-
// setpageindexcontext(cartindex);
|
|
2422
2437
|
setCurrentPageIdContext(templatepropcontext.pagesnprop[cartindex].pageid);
|
|
2423
2438
|
}
|
|
2424
2439
|
}
|
|
@@ -2431,32 +2446,6 @@ var Productinfo = function Productinfo(props) {
|
|
|
2431
2446
|
});
|
|
2432
2447
|
setsectionproperties(_objectSpread$1N({}, secpropobj));
|
|
2433
2448
|
}, [pageindexcontext]);
|
|
2434
|
-
var _useState13 = React.useState([]),
|
|
2435
|
-
_useState14 = _slicedToArray__default["default"](_useState13, 2),
|
|
2436
|
-
productimagesarray = _useState14[0],
|
|
2437
|
-
setproductimagesarray = _useState14[1];
|
|
2438
|
-
var _useState15 = React.useState({
|
|
2439
|
-
functype: 'add',
|
|
2440
|
-
item_type: 'product',
|
|
2441
|
-
productid: '',
|
|
2442
|
-
variantid: '',
|
|
2443
|
-
quantity: 1,
|
|
2444
|
-
date: '',
|
|
2445
|
-
time: '',
|
|
2446
|
-
from: '',
|
|
2447
|
-
to: ''
|
|
2448
|
-
}),
|
|
2449
|
-
_useState16 = _slicedToArray__default["default"](_useState15, 2),
|
|
2450
|
-
addtocardpayloadobj = _useState16[0],
|
|
2451
|
-
setaddtocardpayloadobj = _useState16[1];
|
|
2452
|
-
var _useState17 = React.useState(''),
|
|
2453
|
-
_useState18 = _slicedToArray__default["default"](_useState17, 2),
|
|
2454
|
-
variantindexcompleted = _useState18[0],
|
|
2455
|
-
setvariantindexcompleted = _useState18[1];
|
|
2456
|
-
var _useState19 = React.useState(false),
|
|
2457
|
-
_useState20 = _slicedToArray__default["default"](_useState19, 2),
|
|
2458
|
-
isloaded = _useState20[0],
|
|
2459
|
-
setisloaded = _useState20[1];
|
|
2460
2449
|
React.useEffect(function () {
|
|
2461
2450
|
if (productidparam == undefined) {
|
|
2462
2451
|
productidassigner(ProductIdProdutInfoModalContext);
|
|
@@ -2666,9 +2655,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
2666
2655
|
if (addtocardpayloadobj.variantid.length != 0) {
|
|
2667
2656
|
runfunc = true;
|
|
2668
2657
|
} else {
|
|
2669
|
-
|
|
2670
|
-
// alert('asd');
|
|
2671
|
-
// NotificationManager.warning('', 'Please Choose Product Options');
|
|
2658
|
+
NotificationManager.warning('', 'Please Choose Product Options');
|
|
2672
2659
|
}
|
|
2673
2660
|
} else {
|
|
2674
2661
|
runfunc = true;
|
|
@@ -2680,6 +2667,137 @@ var Productinfo = function Productinfo(props) {
|
|
|
2680
2667
|
AddtoCartContext(addtocardpayloadobj);
|
|
2681
2668
|
}
|
|
2682
2669
|
};
|
|
2670
|
+
var returnpolicyobj = function returnpolicyobj(policytype) {
|
|
2671
|
+
var _authdetailsContext$i, _authdetailsContext$i2;
|
|
2672
|
+
var policyobj = {};
|
|
2673
|
+
authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i = authdetailsContext.instinfo) === null || _authdetailsContext$i === void 0 ? void 0 : (_authdetailsContext$i2 = _authdetailsContext$i.instpolicies) === null || _authdetailsContext$i2 === void 0 ? void 0 : _authdetailsContext$i2.forEach(function (item, index) {
|
|
2674
|
+
if (item.policytype == policytype) {
|
|
2675
|
+
policyobj = item;
|
|
2676
|
+
}
|
|
2677
|
+
});
|
|
2678
|
+
return policyobj;
|
|
2679
|
+
};
|
|
2680
|
+
var relatedproducts = function relatedproducts() {
|
|
2681
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2682
|
+
className: "w-100 row m-0 d-flex justify-content-start"
|
|
2683
|
+
}, Relatedproducts.length != 0 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2684
|
+
className: "w-100 row m-0 d-flex justify-content-start"
|
|
2685
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2686
|
+
className: "col-lg-12"
|
|
2687
|
+
}, /*#__PURE__*/React__default["default"].createElement("hr", {
|
|
2688
|
+
className: "mt-0"
|
|
2689
|
+
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2690
|
+
className: "col-lg-12",
|
|
2691
|
+
style: {
|
|
2692
|
+
background: sectionproperties.relatedproductsbg,
|
|
2693
|
+
paddingTop: sectionproperties.relatedproductspaddingTop + 'px',
|
|
2694
|
+
paddingBottom: sectionproperties.relatedproductspaddingBottom + 'px',
|
|
2695
|
+
paddingLeft: sectionproperties.relatedproductspaddingLeft + 'px',
|
|
2696
|
+
paddingRight: sectionproperties.relatedproductspaddingRight + 'px',
|
|
2697
|
+
borderTopLeftRadius: sectionproperties.relatedproductsbgbtlr + 'px',
|
|
2698
|
+
borderTopRightRadius: sectionproperties.relatedproductsbgbtrr + 'px',
|
|
2699
|
+
borderBottomLeftRadius: sectionproperties.relatedproductsbgbblr + 'px',
|
|
2700
|
+
borderBottomRightRadius: sectionproperties.relatedproductsbgbbrr + 'px',
|
|
2701
|
+
boxShadow: sectionproperties.relatedproductsbgbbrrshowshadow == 'Show' ? '0 0 10px ' + sectionproperties.relatedproductsshadowcolor : 'none'
|
|
2702
|
+
}
|
|
2703
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2704
|
+
className: "row m-0 w-100"
|
|
2705
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2706
|
+
className: "col-lg-12 col-md-12 col-sm-12 d-flex align-items-center p-0 mb-2"
|
|
2707
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", null, sectionproperties.relatedproductstitlestyle == 'Line Under Text' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2708
|
+
className: "col-lg-12 col-md-12 col-sm-12 d-flex align-items-center p-0"
|
|
2709
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2710
|
+
className: ' col-lg-12 d-flex align-items-center p-0'
|
|
2711
|
+
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
2712
|
+
className: "".concat(productinfo_cssstyles.sectiontitlespan),
|
|
2713
|
+
style: {
|
|
2714
|
+
fontSize: sectionproperties.relatedproductstitlefontsize + 'px',
|
|
2715
|
+
color: sectionproperties.relatedproductstitlecolor,
|
|
2716
|
+
fontWeight: sectionproperties.relatedproductstitlefontweight,
|
|
2717
|
+
textTransform: sectionproperties.relatedproductstitletextTransform
|
|
2718
|
+
}
|
|
2719
|
+
}, lang.relatedproducts)))), sectionproperties.relatedproductstitlestyle == 'Line Before Text' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2720
|
+
className: "col-lg-12 col-md-12 col-sm-12 d-flex align-items-center p-0",
|
|
2721
|
+
style: {
|
|
2722
|
+
justifyContent: sectionproperties.sectiontitleposition == 'Centered' ? 'center' : ''
|
|
2723
|
+
}
|
|
2724
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2725
|
+
className: "".concat(generalstyles.sectiontitlecont2)
|
|
2726
|
+
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
2727
|
+
className: "".concat(productinfo_cssstyles.sectiontitlespan2) + ' pl-3 ',
|
|
2728
|
+
style: {
|
|
2729
|
+
fontSize: sectionproperties.relatedproductstitlefontsize + 'px',
|
|
2730
|
+
color: sectionproperties.relatedproductstitlecolor,
|
|
2731
|
+
fontWeight: sectionproperties.relatedproductstitlefontweight,
|
|
2732
|
+
textTransform: sectionproperties.relatedproductstitletextTransform
|
|
2733
|
+
}
|
|
2734
|
+
}, "Related", /*#__PURE__*/React__default["default"].createElement("br", null), " Products"))))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2735
|
+
className: "col-lg-12 p-0 pl-md-2 pr-md-2"
|
|
2736
|
+
}, /*#__PURE__*/React__default["default"].createElement(reactHorizontalScrollingMenu.ScrollMenu
|
|
2737
|
+
// onWheel={onWheel}
|
|
2738
|
+
, {
|
|
2739
|
+
transitionBehavior: 'auto',
|
|
2740
|
+
wrapperClassName: '',
|
|
2741
|
+
itemClassName: 'scrollmenuclassnameitem',
|
|
2742
|
+
scrollContainerClassName: 'scrollmenuclasssubscrollbar'
|
|
2743
|
+
}, Relatedproducts.map(function (item, index) {
|
|
2744
|
+
if (item.productinfo != null) {
|
|
2745
|
+
if (item.productid != fetchProductInfoQueryContext.data.data.productinfo.productid) {
|
|
2746
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2747
|
+
className: "col-lg-12 w-100 p-2",
|
|
2748
|
+
onClick: function onClick() {
|
|
2749
|
+
if (props.srcfromprops != 'templatdraftrouter') {
|
|
2750
|
+
productidassigner(item.productid);
|
|
2751
|
+
} else {
|
|
2752
|
+
routingcountext(StaticPagesLinksContext.productinfo, true, item.productid);
|
|
2753
|
+
}
|
|
2754
|
+
}
|
|
2755
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2756
|
+
className: "row w-100 m-0 cursor-pointer p-1",
|
|
2757
|
+
style: {
|
|
2758
|
+
boxShadow: '0 0 10px #ccc',
|
|
2759
|
+
cursor: 'pointer',
|
|
2760
|
+
borderRadius: '10px',
|
|
2761
|
+
background: 'white'
|
|
2762
|
+
}
|
|
2763
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2764
|
+
className: 'col-lg-2 col-md-2 col-sm-2 pl-0'
|
|
2765
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2766
|
+
className: productinfo_cssstyles.imagecont
|
|
2767
|
+
}, /*#__PURE__*/React__default["default"].createElement(imagekitioReact.IKImage, {
|
|
2768
|
+
urlEndpoint: IKurlEndpoint,
|
|
2769
|
+
publicKey: IKpublicKey,
|
|
2770
|
+
path: item.productinfo.productmainimage,
|
|
2771
|
+
style: {
|
|
2772
|
+
borderBottomLeftRadius: sectionproperties.prodimage__borderBottomLeftRadius + 'px',
|
|
2773
|
+
borderBottomRightRadius: sectionproperties.prodimage__borderBottomRightRadius + 'px',
|
|
2774
|
+
borderTopLeftRadius: sectionproperties.prodimage__borderTopLeftRadius + 'px',
|
|
2775
|
+
borderTopRightRadius: sectionproperties.prodimage__borderTopRightRadius + 'px',
|
|
2776
|
+
width: '100%',
|
|
2777
|
+
height: '100%',
|
|
2778
|
+
objectFit: 'cover'
|
|
2779
|
+
},
|
|
2780
|
+
loading: "lazy"
|
|
2781
|
+
}))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2782
|
+
className: "col-lg-10 col-md-10 col-sm-10 pl-3 "
|
|
2783
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2784
|
+
className: "row m-0 w-100"
|
|
2785
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2786
|
+
className: "col-lg-12 col-md-12 col-sm-12 p-0 d-flex justify-content-start"
|
|
2787
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
2788
|
+
className: "".concat(productinfo_cssstyles.relatedproductNameStyles) + ' m-0 p-0 module line-clamp d-flex justify-content-start ',
|
|
2789
|
+
style: {
|
|
2790
|
+
fontSize: '15px'
|
|
2791
|
+
}
|
|
2792
|
+
}, langdetect == 'en' ? item.productinfo.name_en : item.productinfo.name_ar)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2793
|
+
className: langdetect == 'en' ? "".concat(productinfo_cssstyles.relatedproductPricestyles) + ' col-lg-12 col-md-12 col-sm-12 p-0 d-flex wordbreak text-right ' : "".concat(productinfo_cssstyles.relatedproductPricestyles) + ' col-lg-12 col-md-12 col-sm-12 p-0 d-flex wordbreak text-left '
|
|
2794
|
+
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
2795
|
+
className: 'ml-1 mr-1'
|
|
2796
|
+
}, item.productinfo.hasvariants == 1 ? item.productinfo.variants.variantsaleprice : item.productinfo.defaultsaleprice, ' ', langdetect == 'en' ? 'EGP' : 'ج.م'))))));
|
|
2797
|
+
}
|
|
2798
|
+
}
|
|
2799
|
+
})))))));
|
|
2800
|
+
};
|
|
2683
2801
|
var productinfo_cssstyles = {
|
|
2684
2802
|
sectiontitlespan: glamor.css({
|
|
2685
2803
|
':after': {
|
|
@@ -2862,137 +2980,6 @@ var Productinfo = function Productinfo(props) {
|
|
|
2862
2980
|
fontSize: sectionproperties.footerinfotext_secondaryfontsize + 'px'
|
|
2863
2981
|
})
|
|
2864
2982
|
};
|
|
2865
|
-
var returnpolicyobj = function returnpolicyobj(policytype) {
|
|
2866
|
-
var _authdetailsContext$i, _authdetailsContext$i2;
|
|
2867
|
-
var policyobj = {};
|
|
2868
|
-
authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i = authdetailsContext.instinfo) === null || _authdetailsContext$i === void 0 ? void 0 : (_authdetailsContext$i2 = _authdetailsContext$i.instpolicies) === null || _authdetailsContext$i2 === void 0 ? void 0 : _authdetailsContext$i2.forEach(function (item, index) {
|
|
2869
|
-
if (item.policytype == policytype) {
|
|
2870
|
-
policyobj = item;
|
|
2871
|
-
}
|
|
2872
|
-
});
|
|
2873
|
-
return policyobj;
|
|
2874
|
-
};
|
|
2875
|
-
var relatedproducts = function relatedproducts() {
|
|
2876
|
-
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2877
|
-
className: "w-100 row m-0 d-flex justify-content-start"
|
|
2878
|
-
}, Relatedproducts.length != 0 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2879
|
-
className: "w-100 row m-0 d-flex justify-content-start"
|
|
2880
|
-
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2881
|
-
className: "col-lg-12"
|
|
2882
|
-
}, /*#__PURE__*/React__default["default"].createElement("hr", {
|
|
2883
|
-
className: "mt-0"
|
|
2884
|
-
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2885
|
-
className: "col-lg-12",
|
|
2886
|
-
style: {
|
|
2887
|
-
background: sectionproperties.relatedproductsbg,
|
|
2888
|
-
paddingTop: sectionproperties.relatedproductspaddingTop + 'px',
|
|
2889
|
-
paddingBottom: sectionproperties.relatedproductspaddingBottom + 'px',
|
|
2890
|
-
paddingLeft: sectionproperties.relatedproductspaddingLeft + 'px',
|
|
2891
|
-
paddingRight: sectionproperties.relatedproductspaddingRight + 'px',
|
|
2892
|
-
borderTopLeftRadius: sectionproperties.relatedproductsbgbtlr + 'px',
|
|
2893
|
-
borderTopRightRadius: sectionproperties.relatedproductsbgbtrr + 'px',
|
|
2894
|
-
borderBottomLeftRadius: sectionproperties.relatedproductsbgbblr + 'px',
|
|
2895
|
-
borderBottomRightRadius: sectionproperties.relatedproductsbgbbrr + 'px',
|
|
2896
|
-
boxShadow: sectionproperties.relatedproductsbgbbrrshowshadow == 'Show' ? '0 0 10px ' + sectionproperties.relatedproductsshadowcolor : 'none'
|
|
2897
|
-
}
|
|
2898
|
-
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2899
|
-
className: "row m-0 w-100"
|
|
2900
|
-
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2901
|
-
className: "col-lg-12 col-md-12 col-sm-12 d-flex align-items-center p-0 mb-2"
|
|
2902
|
-
}, /*#__PURE__*/React__default["default"].createElement("div", null, sectionproperties.relatedproductstitlestyle == 'Line Under Text' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2903
|
-
className: "col-lg-12 col-md-12 col-sm-12 d-flex align-items-center p-0"
|
|
2904
|
-
}, /*#__PURE__*/React__default["default"].createElement("div", null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2905
|
-
className: ' col-lg-12 d-flex align-items-center p-0'
|
|
2906
|
-
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
2907
|
-
className: "".concat(productinfo_cssstyles.sectiontitlespan),
|
|
2908
|
-
style: {
|
|
2909
|
-
fontSize: sectionproperties.relatedproductstitlefontsize + 'px',
|
|
2910
|
-
color: sectionproperties.relatedproductstitlecolor,
|
|
2911
|
-
fontWeight: sectionproperties.relatedproductstitlefontweight,
|
|
2912
|
-
textTransform: sectionproperties.relatedproductstitletextTransform
|
|
2913
|
-
}
|
|
2914
|
-
}, lang.relatedproducts)))), sectionproperties.relatedproductstitlestyle == 'Line Before Text' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2915
|
-
className: "col-lg-12 col-md-12 col-sm-12 d-flex align-items-center p-0",
|
|
2916
|
-
style: {
|
|
2917
|
-
justifyContent: sectionproperties.sectiontitleposition == 'Centered' ? 'center' : ''
|
|
2918
|
-
}
|
|
2919
|
-
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2920
|
-
className: "".concat(generalstyles.sectiontitlecont2)
|
|
2921
|
-
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
2922
|
-
className: "".concat(productinfo_cssstyles.sectiontitlespan2) + ' pl-3 ',
|
|
2923
|
-
style: {
|
|
2924
|
-
fontSize: sectionproperties.relatedproductstitlefontsize + 'px',
|
|
2925
|
-
color: sectionproperties.relatedproductstitlecolor,
|
|
2926
|
-
fontWeight: sectionproperties.relatedproductstitlefontweight,
|
|
2927
|
-
textTransform: sectionproperties.relatedproductstitletextTransform
|
|
2928
|
-
}
|
|
2929
|
-
}, "Related", /*#__PURE__*/React__default["default"].createElement("br", null), " Products"))))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2930
|
-
className: "col-lg-12 p-0 pl-md-2 pr-md-2"
|
|
2931
|
-
}, /*#__PURE__*/React__default["default"].createElement(reactHorizontalScrollingMenu.ScrollMenu
|
|
2932
|
-
// onWheel={onWheel}
|
|
2933
|
-
, {
|
|
2934
|
-
transitionBehavior: 'auto',
|
|
2935
|
-
wrapperClassName: '',
|
|
2936
|
-
itemClassName: 'scrollmenuclassnameitem',
|
|
2937
|
-
scrollContainerClassName: 'scrollmenuclasssubscrollbar'
|
|
2938
|
-
}, Relatedproducts.map(function (item, index) {
|
|
2939
|
-
if (item.productinfo != null) {
|
|
2940
|
-
if (item.productid != fetchProductInfoQueryContext.data.data.productinfo.productid) {
|
|
2941
|
-
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2942
|
-
className: "col-lg-12 w-100 p-2",
|
|
2943
|
-
onClick: function onClick() {
|
|
2944
|
-
if (props.srcfromprops != 'templatdraftrouter') {
|
|
2945
|
-
productidassigner(item.productid);
|
|
2946
|
-
} else {
|
|
2947
|
-
routingcountext(StaticPagesLinksContext.productinfo, true, item.productid);
|
|
2948
|
-
}
|
|
2949
|
-
}
|
|
2950
|
-
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2951
|
-
className: "row w-100 m-0 cursor-pointer p-1",
|
|
2952
|
-
style: {
|
|
2953
|
-
boxShadow: '0 0 10px #ccc',
|
|
2954
|
-
cursor: 'pointer',
|
|
2955
|
-
borderRadius: '10px',
|
|
2956
|
-
background: 'white'
|
|
2957
|
-
}
|
|
2958
|
-
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2959
|
-
className: 'col-lg-2 col-md-2 col-sm-2 pl-0'
|
|
2960
|
-
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2961
|
-
className: productinfo_cssstyles.imagecont
|
|
2962
|
-
}, /*#__PURE__*/React__default["default"].createElement(imagekitioReact.IKImage, {
|
|
2963
|
-
urlEndpoint: IKurlEndpoint,
|
|
2964
|
-
publicKey: IKpublicKey,
|
|
2965
|
-
path: item.productinfo.productmainimage,
|
|
2966
|
-
style: {
|
|
2967
|
-
borderBottomLeftRadius: sectionproperties.prodimage__borderBottomLeftRadius + 'px',
|
|
2968
|
-
borderBottomRightRadius: sectionproperties.prodimage__borderBottomRightRadius + 'px',
|
|
2969
|
-
borderTopLeftRadius: sectionproperties.prodimage__borderTopLeftRadius + 'px',
|
|
2970
|
-
borderTopRightRadius: sectionproperties.prodimage__borderTopRightRadius + 'px',
|
|
2971
|
-
width: '100%',
|
|
2972
|
-
height: '100%',
|
|
2973
|
-
objectFit: 'cover'
|
|
2974
|
-
},
|
|
2975
|
-
loading: "lazy"
|
|
2976
|
-
}))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2977
|
-
className: "col-lg-10 col-md-10 col-sm-10 pl-3 "
|
|
2978
|
-
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2979
|
-
className: "row m-0 w-100"
|
|
2980
|
-
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2981
|
-
className: "col-lg-12 col-md-12 col-sm-12 p-0 d-flex justify-content-start"
|
|
2982
|
-
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
2983
|
-
className: "".concat(productinfo_cssstyles.relatedproductNameStyles) + ' m-0 p-0 module line-clamp d-flex justify-content-start ',
|
|
2984
|
-
style: {
|
|
2985
|
-
fontSize: '15px'
|
|
2986
|
-
}
|
|
2987
|
-
}, langdetect == 'en' ? item.productinfo.name_en : item.productinfo.name_ar)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2988
|
-
className: langdetect == 'en' ? "".concat(productinfo_cssstyles.relatedproductPricestyles) + ' col-lg-12 col-md-12 col-sm-12 p-0 d-flex wordbreak text-right ' : "".concat(productinfo_cssstyles.relatedproductPricestyles) + ' col-lg-12 col-md-12 col-sm-12 p-0 d-flex wordbreak text-left '
|
|
2989
|
-
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
2990
|
-
className: 'ml-1 mr-1'
|
|
2991
|
-
}, item.productinfo.hasvariants == 1 ? item.productinfo.variants.variantsaleprice : item.productinfo.defaultsaleprice, ' ', langdetect == 'en' ? 'EGP' : 'ج.م'))))));
|
|
2992
|
-
}
|
|
2993
|
-
}
|
|
2994
|
-
})))))));
|
|
2995
|
-
};
|
|
2996
2983
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2997
2984
|
className: 'row w-100 ml-0 mr-0',
|
|
2998
2985
|
style: {
|
|
@@ -7744,7 +7731,7 @@ var CartSlider = function CartSlider(props) {
|
|
|
7744
7731
|
}, /*#__PURE__*/React__default["default"].createElement("hr", {
|
|
7745
7732
|
className: "mt-2 mb-2"
|
|
7746
7733
|
}))))), /*#__PURE__*/React__default["default"].createElement(reactBootstrap.Offcanvas.Body, null, (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue === void 0 ? void 0 : (_fetchcustomercartQue2 = _fetchcustomercartQue.data) === null || _fetchcustomercartQue2 === void 0 ? void 0 : _fetchcustomercartQue2.status) && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7747
|
-
className: "".concat(cartstyles.cartslider_container, " ")
|
|
7734
|
+
className: "".concat(cartstyles.cartslider_container, " ") + ' pb-5 '
|
|
7748
7735
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7749
7736
|
className: "".concat(cartstyles.close_menu_icon_cont, " ").concat(cart_cssstyles.close_menu_icon_cont),
|
|
7750
7737
|
onClick: function onClick() {
|
|
@@ -9793,7 +9780,7 @@ var Subheader = function Subheader(props) {
|
|
|
9793
9780
|
}, sectionproperties != undefined && sectionproperties.length != 0 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
9794
9781
|
"class": "".concat(headerstyles$f.sub_container) + ' w-100 p-md-0 '
|
|
9795
9782
|
}, fetchCategoriesQueryContext.isSuccess && fetchCategoriesQueryContext.data.data.status && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
9796
|
-
"class": "".concat(headerstyles$f.subheader) + ' row w-100 m-0 d-flex flex-row align-items-center w-sm-100 ',
|
|
9783
|
+
"class": "".concat(headerstyles$f.subheader) + ' row w-100 m-0 d-flex flex-row align-items-center justify-content-center w-sm-100 ',
|
|
9797
9784
|
style: {
|
|
9798
9785
|
position: 'relative',
|
|
9799
9786
|
background: 'transparent'
|
|
@@ -16697,7 +16684,7 @@ var HeaderwithContactinfo = function HeaderwithContactinfo(props) {
|
|
|
16697
16684
|
zIndex: 2
|
|
16698
16685
|
}
|
|
16699
16686
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
16700
|
-
"class": "col-lg-2 p-0 d-flex align-items-center justify-content-start"
|
|
16687
|
+
"class": "col-xl-2 col-lg-2 p-0 d-flex align-items-center justify-content-start"
|
|
16701
16688
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
16702
16689
|
"class": "".concat(header_cssstyles.header_logo) + ' d-flex align-items-center justify-content-center ',
|
|
16703
16690
|
style: {
|
|
@@ -16715,7 +16702,7 @@ var HeaderwithContactinfo = function HeaderwithContactinfo(props) {
|
|
|
16715
16702
|
maxHeight: '100%'
|
|
16716
16703
|
}
|
|
16717
16704
|
}))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
16718
|
-
"class": "col-
|
|
16705
|
+
"class": "col-xl-8 col-lg-7 p-0 d-flex align-items-center justify-content-start h-100"
|
|
16719
16706
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
16720
16707
|
"class": "scrollhorizontal w-100 align-items-center justify-content-start h-100",
|
|
16721
16708
|
style: {
|
|
@@ -16751,7 +16738,7 @@ var HeaderwithContactinfo = function HeaderwithContactinfo(props) {
|
|
|
16751
16738
|
subheadercontentpositionprops: 'start'
|
|
16752
16739
|
}
|
|
16753
16740
|
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
16754
|
-
"class": "col-
|
|
16741
|
+
"class": "col-xl-2 col-lg-3 d-flex align-items-center justify-content-end"
|
|
16755
16742
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
16756
16743
|
"class": "headerdropdownml ml-3 mr-3"
|
|
16757
16744
|
}, /*#__PURE__*/React__default["default"].createElement(Dropdown__default["default"], null, /*#__PURE__*/React__default["default"].createElement(Dropdown__default["default"].Toggle, null, !authdetailsContext.loggedin && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -17154,7 +17141,7 @@ var Modernheader = function Modernheader(props) {
|
|
|
17154
17141
|
width: sectionproperties.loggedinuserbtn_width + 'px',
|
|
17155
17142
|
height: sectionproperties.loggedinuserbtn_height + 'px',
|
|
17156
17143
|
border: sectionproperties.userlogginbtnborderwidth + 'px solid ' + sectionproperties.userlogginbtnbordercolor,
|
|
17157
|
-
borderRadius: sectionproperties.
|
|
17144
|
+
borderRadius: sectionproperties.userbtn_borderBottomLeftRadius + 'px',
|
|
17158
17145
|
background: sectionproperties.userBtnbgColor_loggedin,
|
|
17159
17146
|
color: sectionproperties.userBtniconcolor_loggedin,
|
|
17160
17147
|
transition: '.3s'
|
|
@@ -17294,18 +17281,15 @@ var Modernheader = function Modernheader(props) {
|
|
|
17294
17281
|
right: sectionproperties.cartbadgeright + 'px'
|
|
17295
17282
|
}),
|
|
17296
17283
|
languagecontainer: glamor.css({
|
|
17297
|
-
backgroundColor: sectionproperties.language_container_bgcolor,
|
|
17298
17284
|
width: sectionproperties.language_container_width + 'px',
|
|
17299
17285
|
height: sectionproperties.language_container_height + 'px',
|
|
17300
17286
|
color: sectionproperties.language_container_color,
|
|
17301
|
-
borderRadius: sectionproperties.language_container_borderRadius + 'px',
|
|
17302
17287
|
fontSize: sectionproperties.language_container_fontsize + 'px',
|
|
17303
17288
|
fontWeight: 600,
|
|
17304
17289
|
cursor: 'pointer',
|
|
17305
17290
|
transition: '.3s',
|
|
17306
17291
|
':hover': {
|
|
17307
|
-
color: sectionproperties.language_container_coloronhover
|
|
17308
|
-
backgroundColor: sectionproperties.language_container_bgcoloronhover
|
|
17292
|
+
color: sectionproperties.language_container_coloronhover
|
|
17309
17293
|
}
|
|
17310
17294
|
})
|
|
17311
17295
|
};
|
|
@@ -17336,7 +17320,7 @@ var Modernheader = function Modernheader(props) {
|
|
|
17336
17320
|
}, /*#__PURE__*/React__default["default"].createElement("input", {
|
|
17337
17321
|
type: "text",
|
|
17338
17322
|
placeholder: lang.searchproducts,
|
|
17339
|
-
"class": "".concat(header_cssstyles.searchbarcont_input),
|
|
17323
|
+
"class": "".concat(header_cssstyles.searchbarcont_input) + ' pb-1 ',
|
|
17340
17324
|
onChange: function onChange(event) {
|
|
17341
17325
|
setSearchHeaderInputContext(event.target.value);
|
|
17342
17326
|
}
|
|
@@ -17401,7 +17385,7 @@ var Modernheader = function Modernheader(props) {
|
|
|
17401
17385
|
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
17402
17386
|
}
|
|
17403
17387
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
17404
|
-
"class": "m-0 p-0",
|
|
17388
|
+
"class": "m-0 p-0 mb-1",
|
|
17405
17389
|
style: {
|
|
17406
17390
|
color: sectionproperties.greetingtextcolor,
|
|
17407
17391
|
fontSize: sectionproperties.greetingtextfontsize + 'px',
|
|
@@ -17572,7 +17556,7 @@ var Modernheader = function Modernheader(props) {
|
|
|
17572
17556
|
"class": langdetect == 'en' ? 'headerdropdownml' : 'headerdropdownmr'
|
|
17573
17557
|
}, /*#__PURE__*/React__default["default"].createElement(Dropdown__default["default"], null, /*#__PURE__*/React__default["default"].createElement(Dropdown__default["default"].Toggle, null, /*#__PURE__*/React__default["default"].createElement("li", {
|
|
17574
17558
|
"class": "".concat(headerstyles$7.header_menu) + ' allcentered '
|
|
17575
|
-
}, langdetect == '
|
|
17559
|
+
}, langdetect == 'ar' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
17576
17560
|
"class": "".concat(header_cssstyles.languagecontainer) + ' row m-0 w-100 d-flex align-items-center '
|
|
17577
17561
|
}, /*#__PURE__*/React__default["default"].createElement("img", {
|
|
17578
17562
|
src: egyptflag$1,
|
|
@@ -17589,7 +17573,7 @@ var Modernheader = function Modernheader(props) {
|
|
|
17589
17573
|
"class": "ml-2 mr-2"
|
|
17590
17574
|
}), /*#__PURE__*/React__default["default"].createElement("p", {
|
|
17591
17575
|
"class": "m-0 p-0"
|
|
17592
|
-
}, "\u0639")), langdetect == '
|
|
17576
|
+
}, "\u0639")), langdetect == 'en' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
17593
17577
|
"class": "".concat(header_cssstyles.languagecontainer) + ' row m-0 w-100 d-flex align-items-center '
|
|
17594
17578
|
}, /*#__PURE__*/React__default["default"].createElement("img", {
|
|
17595
17579
|
src: usflag$1,
|
|
@@ -17647,7 +17631,7 @@ var Modernheader = function Modernheader(props) {
|
|
|
17647
17631
|
})), sectionproperties.showlowerheadersection == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
17648
17632
|
"class": "".concat(header_cssstyles.navbar_nav, " ") + ' row w-100 m-0 d-flex align-items-center '
|
|
17649
17633
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
17650
|
-
"class": "col-lg-12 col-md-12 justify-content-center align-items-center m-auto",
|
|
17634
|
+
"class": "col-lg-12 col-md-12 justify-content-center align-items-center m-auto p-0",
|
|
17651
17635
|
style: {
|
|
17652
17636
|
display: sectionproperties.subheaderposition == 'Besides Top Navigation' ? 'block' : 'flex'
|
|
17653
17637
|
}
|
|
@@ -22824,7 +22808,9 @@ var TwoTieredHeader = function TwoTieredHeader(props) {
|
|
|
22824
22808
|
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
22825
22809
|
"class": langdetect == 'en' ? 'headerdropdownml dropdown-toggle_w100' : 'headerdropdownmr dropdown-toggle_w100',
|
|
22826
22810
|
style: {
|
|
22827
|
-
width: authdetailsContext.loggedin == true ? 'auto' : '
|
|
22811
|
+
width: authdetailsContext.loggedin == true ? 'auto' : langdetect == 'en' ? '105px' : '120px',
|
|
22812
|
+
marginRight: langdetect == 'en' ? sectionproperties.btnsposition == 'Bottom' ? '13px' : '.1rem' : 0,
|
|
22813
|
+
marginLeft: langdetect == 'ar' ? sectionproperties.btnsposition == 'Bottom' ? '13px' : '.1rem' : 0
|
|
22828
22814
|
}
|
|
22829
22815
|
}, /*#__PURE__*/React__default["default"].createElement(Dropdown__default["default"], null, /*#__PURE__*/React__default["default"].createElement(Dropdown__default["default"].Toggle, null, !authdetailsContext.loggedin && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
22830
22816
|
"class": ' d-flex justify-content-center align-items-center '
|
|
@@ -22956,11 +22942,11 @@ var TwoTieredHeader = function TwoTieredHeader(props) {
|
|
|
22956
22942
|
"class": "".concat(header_cssstyles.dropdownitem) + ' dropdownitem d-flex align-items-center m-0 p-0 '
|
|
22957
22943
|
}, /*#__PURE__*/React__default["default"].createElement(BiLogOutCircle.BiLogOutCircle, null), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
22958
22944
|
"class": "ml-2 mr-2"
|
|
22959
|
-
}, lang.logout))))))), sectionproperties.
|
|
22945
|
+
}, lang.logout))))))), sectionproperties.lang_position == 'Top' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
22960
22946
|
"class": langdetect == 'en' ? 'headerdropdownml' : 'headerdropdownmr',
|
|
22961
22947
|
style: {
|
|
22962
|
-
marginLeft: langdetect == 'en' ? authdetailsContext.loggedin == true ? '1.8rem' : '1.9rem' : 0,
|
|
22963
|
-
marginRight: langdetect == 'ar' ? authdetailsContext.loggedin == true ? '1.8rem' : '1.9rem' : 0
|
|
22948
|
+
marginLeft: langdetect == 'en' ? authdetailsContext.loggedin == true ? sectionproperties.btnsposition == 'Bottom' ? '.5rem' : '1.8rem' : '1.9rem' : 0,
|
|
22949
|
+
marginRight: langdetect == 'ar' ? authdetailsContext.loggedin == true ? sectionproperties.btnsposition == 'Bottom' ? '.5rem' : '1.8rem' : '1.9rem' : 0
|
|
22964
22950
|
}
|
|
22965
22951
|
}, /*#__PURE__*/React__default["default"].createElement(Dropdown__default["default"], null, /*#__PURE__*/React__default["default"].createElement(Dropdown__default["default"].Toggle, null, /*#__PURE__*/React__default["default"].createElement("li", {
|
|
22966
22952
|
"class": "".concat(headerstyles$4.header_menu) + ' allcentered '
|
|
@@ -23077,8 +23063,8 @@ var TwoTieredHeader = function TwoTieredHeader(props) {
|
|
|
23077
23063
|
routingcountext(StaticPagesLinksContext.Wishlist);
|
|
23078
23064
|
},
|
|
23079
23065
|
style: {
|
|
23080
|
-
marginRight: langdetect == 'en' ? '
|
|
23081
|
-
marginLeft: langdetect == 'ar' ? '
|
|
23066
|
+
marginRight: sectionproperties.lang_position == 'Top' ? langdetect == 'en' ? '2.1rem' : 0 : langdetect == 'en' ? '2.1rem' : 0,
|
|
23067
|
+
marginLeft: sectionproperties.lang_position == 'Top' ? langdetect == 'ar' ? '2.5rem' : 0 : langdetect == 'ar' ? '2.5rem' : 0
|
|
23082
23068
|
}
|
|
23083
23069
|
}, sectionproperties.faviconshape == 'Heart Shape' && /*#__PURE__*/React__default["default"].createElement(FaRegHeart.FaRegHeart, {
|
|
23084
23070
|
size: sectionproperties.favBtnIconfontsize
|
|
@@ -23087,8 +23073,8 @@ var TwoTieredHeader = function TwoTieredHeader(props) {
|
|
|
23087
23073
|
})), sectionproperties.cartBtnShow == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
23088
23074
|
"class": 'd-flex align-items-center justify-content-end',
|
|
23089
23075
|
style: {
|
|
23090
|
-
marginRight: langdetect == 'en' ? '1.5rem' : 0,
|
|
23091
|
-
marginLeft: langdetect == 'ar' ? '1.5rem' : 0
|
|
23076
|
+
marginRight: sectionproperties.lang_position == 'Top' ? 0 : langdetect == 'en' ? '1.5rem' : 0,
|
|
23077
|
+
marginLeft: sectionproperties.lang_position == 'Top' ? 0 : langdetect == 'ar' ? '1.5rem' : 0
|
|
23092
23078
|
}
|
|
23093
23079
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
23094
23080
|
"class": "".concat(header_cssstyles.cart_btn) + ' allcentered ',
|
|
@@ -23113,7 +23099,7 @@ var TwoTieredHeader = function TwoTieredHeader(props) {
|
|
|
23113
23099
|
size: sectionproperties.cartBtn_iconFontSize
|
|
23114
23100
|
}), sectionproperties.carticonstyle == 'Shopping cart 2' && /*#__PURE__*/React__default["default"].createElement(MdAddShoppingCart.MdAddShoppingCart, {
|
|
23115
23101
|
size: sectionproperties.cartBtn_iconFontSize
|
|
23116
|
-
}))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
23102
|
+
}))), sectionproperties.lang_position == 'Bottom' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
23117
23103
|
"class": langdetect == 'en' ? 'headerdropdownml' : 'headerdropdownmr'
|
|
23118
23104
|
}, /*#__PURE__*/React__default["default"].createElement(Dropdown__default["default"], null, /*#__PURE__*/React__default["default"].createElement(Dropdown__default["default"].Toggle, null, /*#__PURE__*/React__default["default"].createElement("li", {
|
|
23119
23105
|
"class": "".concat(headerstyles$4.header_menu) + ' allcentered '
|
|
@@ -39849,12 +39835,12 @@ var Categorycard_with_twolinestransition = function Categorycard_with_twolinestr
|
|
|
39849
39835
|
}, /*#__PURE__*/React__default["default"].createElement(imagekitioReact.IKImage, {
|
|
39850
39836
|
urlEndpoint: IKurlEndpoint,
|
|
39851
39837
|
publicKey: IKpublicKey,
|
|
39852
|
-
path: item.image,
|
|
39838
|
+
path: '/tr:w-' + sectionproperties.imagetr_w + ',h-' + sectionproperties.imagetr_h + '/' + item.image,
|
|
39853
39839
|
loading: "lazy",
|
|
39854
39840
|
style: {
|
|
39855
39841
|
height: '100%',
|
|
39856
39842
|
width: '100%',
|
|
39857
|
-
objectFit:
|
|
39843
|
+
objectFit: sectionproperties.bgcovercontain
|
|
39858
39844
|
}
|
|
39859
39845
|
}), /*#__PURE__*/React__default["default"].createElement("figcaption", {
|
|
39860
39846
|
"class": "".concat(categorycard_cssstyles.caption) + ' row w-100 m-0 d-flex align-items-center justify-content-center ',
|
|
@@ -42772,11 +42758,11 @@ var Productcard_animatedbuttons = function Productcard_animatedbuttons(props) {
|
|
|
42772
42758
|
}, /*#__PURE__*/React__default["default"].createElement(imagekitioReact.IKImage, {
|
|
42773
42759
|
urlEndpoint: IKurlEndpoint,
|
|
42774
42760
|
publicKey: IKpublicKey,
|
|
42775
|
-
path: '/tr:w-
|
|
42761
|
+
path: '/tr:w-' + sectionproperties.imagetr_w + ',h-' + sectionproperties.imagetr_h + '/' + item.image,
|
|
42776
42762
|
style: {
|
|
42777
42763
|
width: '100%',
|
|
42778
42764
|
height: '100%',
|
|
42779
|
-
objectFit:
|
|
42765
|
+
objectFit: sectionproperties.bgcovercontain,
|
|
42780
42766
|
borderBottomLeftRadius: langdetect == 'en' ? sectionproperties.image_borderBottomLeftRadius + 'px' : sectionproperties.image_borderBottomRightRadius + 'px',
|
|
42781
42767
|
borderBottomRightRadius: langdetect == 'en' ? sectionproperties.image_borderBottomRightRadius + 'px' : sectionproperties.image_borderBottomLeftRadius + 'px',
|
|
42782
42768
|
borderTopLeftRadius: langdetect == 'en' ? sectionproperties.image_bordertopleftradius + 'px' : sectionproperties.image_bordertoprightradius + 'px',
|