tabexseriescomponents 0.0.278 → 0.0.280
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 +551 -112
- package/dist/index.esm.js +552 -113
- package/dist/index.umd.js +552 -113
- package/package.json +1 -1
- package/srclibrary.zip +0 -0
package/dist/index.cjs.js
CHANGED
|
@@ -123,7 +123,7 @@ var AiOutlinePhone = require('@react-icons/all-files/ai/AiOutlinePhone');
|
|
|
123
123
|
var GoLocation = require('@react-icons/all-files/go/GoLocation');
|
|
124
124
|
var RiRoadMapLine = require('@react-icons/all-files/ri/RiRoadMapLine');
|
|
125
125
|
var HiOutlineClock = require('@react-icons/all-files/hi/HiOutlineClock');
|
|
126
|
-
var Select$
|
|
126
|
+
var Select$3 = require('react-select');
|
|
127
127
|
var IoIosArrowRoundForward = require('@react-icons/all-files/io/IoIosArrowRoundForward');
|
|
128
128
|
var IoIosArrowRoundBack = require('@react-icons/all-files/io/IoIosArrowRoundBack');
|
|
129
129
|
var ReactPlayer = require('react-player');
|
|
@@ -181,7 +181,7 @@ var Dropdown__default = /*#__PURE__*/_interopDefaultLegacy(Dropdown);
|
|
|
181
181
|
var PhoneInput__default = /*#__PURE__*/_interopDefaultLegacy(PhoneInput);
|
|
182
182
|
var InputRange__default = /*#__PURE__*/_interopDefaultLegacy(InputRange);
|
|
183
183
|
var ReactPaginate__default = /*#__PURE__*/_interopDefaultLegacy(ReactPaginate);
|
|
184
|
-
var Select__default = /*#__PURE__*/_interopDefaultLegacy(Select$
|
|
184
|
+
var Select__default = /*#__PURE__*/_interopDefaultLegacy(Select$3);
|
|
185
185
|
var ReactPlayer__default = /*#__PURE__*/_interopDefaultLegacy(ReactPlayer);
|
|
186
186
|
var BackgroundSlideshow__default = /*#__PURE__*/_interopDefaultLegacy(BackgroundSlideshow);
|
|
187
187
|
var _extends__default = /*#__PURE__*/_interopDefaultLegacy(_extends);
|
|
@@ -3546,7 +3546,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
3546
3546
|
props.actions.TabexSectionsComponentsContext;
|
|
3547
3547
|
var FetchQueriesEngineContext = props.actions.FetchQueriesEngineContext;
|
|
3548
3548
|
var setFetchQueriesEngineContext = props.actions.setFetchQueriesEngineContext;
|
|
3549
|
-
|
|
3549
|
+
props.actions.serverbaselink;
|
|
3550
3550
|
var AddtoCartMutationContext = props.actions.AddtoCartMutationContext;
|
|
3551
3551
|
var ProductIdProdutInfoModalContext = props.actions.ProductIdProdutInfoModalContext;
|
|
3552
3552
|
var AddtoCartContext = props.actions.AddtoCartContext;
|
|
@@ -3696,15 +3696,15 @@ var Productinfo = function Productinfo(props) {
|
|
|
3696
3696
|
setfetchproductinfoObjContext(_objectSpread$1$({}, tempfetchproductinfoObjContext));
|
|
3697
3697
|
};
|
|
3698
3698
|
React.useEffect(function () {
|
|
3699
|
-
if (!fetchProductInfoQueryContext.isFetching && fetchProductInfoQueryContext.isSuccess) {
|
|
3699
|
+
if (!fetchProductInfoQueryContext.isFetching && fetchProductInfoQueryContext.isSuccess && ikimagecredcontext != undefined) {
|
|
3700
3700
|
if (fetchProductInfoQueryContext.data.data.productinfo != null) {
|
|
3701
3701
|
var _fetchProductInfoQuer, _fetchProductInfoQuer2, _fetchProductInfoQuer3, _fetchProductInfoQuer4, _fetchProductInfoQuer5, _fetchProductInfoQuer6, _fetchProductInfoQuer7;
|
|
3702
3702
|
var tempproductimagesarray = [];
|
|
3703
3703
|
if (Array.isArray(fetchProductInfoQueryContext.data.data.productinfo.productimages)) {
|
|
3704
3704
|
fetchProductInfoQueryContext.data.data.productinfo.productimages.forEach(function (arrayItem, arrayindex) {
|
|
3705
3705
|
var productimagesarrayobj = {
|
|
3706
|
-
thumbnail:
|
|
3707
|
-
original:
|
|
3706
|
+
thumbnail: (ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint) + arrayItem.path,
|
|
3707
|
+
original: (ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint) + arrayItem.path,
|
|
3708
3708
|
galleryid: arrayItem.galleryid
|
|
3709
3709
|
// description:
|
|
3710
3710
|
// // { dangerouslySetInnerHTML={{
|
|
@@ -3736,7 +3736,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
3736
3736
|
}
|
|
3737
3737
|
}
|
|
3738
3738
|
}
|
|
3739
|
-
}, [fetchProductInfoQueryContext.isSuccess, fetchProductInfoQueryContext.data]);
|
|
3739
|
+
}, [fetchProductInfoQueryContext.isSuccess, fetchProductInfoQueryContext.data, ikimagecredcontext]);
|
|
3740
3740
|
var clearchoosenvaluesbutkeepcurrentvalue = function clearchoosenvaluesbutkeepcurrentvalue(optionindex, optionvaluesitem, optionvaluesindex) {
|
|
3741
3741
|
var _productarr$data, _productarr$data$prod, _productarr$data$prod2;
|
|
3742
3742
|
var productarr = ProductInfoObj;
|
|
@@ -5040,7 +5040,7 @@ var Staticpagesrouter = function Staticpagesrouter(props) {
|
|
|
5040
5040
|
function ownKeys$1Z(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; }
|
|
5041
5041
|
function _objectSpread$1Z(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1Z(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1Z(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
5042
5042
|
var Ordershistory = function Ordershistory(props) {
|
|
5043
|
-
var _props$actions2, _bgimagesarray$, _bgimagesarray$5, _bgimagesarray$6, _bgimagesarray$7, _bgimagesarray$8, _fetchorderhistoryQue4, _fetchorderhistoryQue5, _fetchorderhistoryQue6, _fetchorderhistoryQue7, _fetchorderhistoryQue8;
|
|
5043
|
+
var _props$actions2, _bgimagesarray$, _bgimagesarray$5, _bgimagesarray$6, _bgimagesarray$7, _bgimagesarray$8, _fetchorderhistoryQue4, _fetchorderhistoryQue5, _fetchorderhistoryQue6, _fetchorderhistoryQue7, _fetchorderhistoryQue8, _fetchorderhistoryQue9, _fetchorderhistoryQue10, _fetchorderhistoryQue11, _fetchorderhistoryQue12, _fetchorderhistoryQue13, _fetchorderhistoryQue14;
|
|
5044
5044
|
var lang = props.actions.lang;
|
|
5045
5045
|
var langdetect = props.actions.langdetect;
|
|
5046
5046
|
var routingcountext = props.actions.routingcountext;
|
|
@@ -5855,7 +5855,20 @@ var Ordershistory = function Ordershistory(props) {
|
|
|
5855
5855
|
className: "col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0"
|
|
5856
5856
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
5857
5857
|
className: "".concat(orderhistory_cssstyles.summarysectionstyles) + ' m-0 p-0 text-capitalize '
|
|
5858
|
-
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', fetchorderhistoryQueryContext.data.data.ordershistory[orderindex].orderitemstotalprice, ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar))), fetchorderhistoryQueryContext.data.data.ordershistory[orderindex].
|
|
5858
|
+
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', fetchorderhistoryQueryContext.data.data.ordershistory[orderindex].orderitemstotalprice, ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar))), (fetchorderhistoryQueryContext === null || fetchorderhistoryQueryContext === void 0 ? void 0 : (_fetchorderhistoryQue9 = fetchorderhistoryQueryContext.data) === null || _fetchorderhistoryQue9 === void 0 ? void 0 : (_fetchorderhistoryQue10 = _fetchorderhistoryQue9.data) === null || _fetchorderhistoryQue10 === void 0 ? void 0 : (_fetchorderhistoryQue11 = _fetchorderhistoryQue10.ordershistory[orderindex]) === null || _fetchorderhistoryQue11 === void 0 ? void 0 : _fetchorderhistoryQue11.usewalletpoints) == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5859
|
+
className: "row m-0 w-100 mb-2"
|
|
5860
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5861
|
+
className: "col-lg-6 col-md-6 col-sm-6 d-flex p-0"
|
|
5862
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
5863
|
+
className: "".concat(orderhistory_cssstyles.summarysectionstyles) + ' m-0 p-0 d-flex align-items-center '
|
|
5864
|
+
}, langdetect == 'en' ? 'Wallet discount' : 'خصم المحفظة')), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5865
|
+
className: "col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0"
|
|
5866
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
5867
|
+
className: "".concat(orderhistory_cssstyles.summarysectionstyles) + ' m-0 p-0 text-capitalize ',
|
|
5868
|
+
style: {
|
|
5869
|
+
color: 'red'
|
|
5870
|
+
}
|
|
5871
|
+
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', " -", ' ', fetchorderhistoryQueryContext === null || fetchorderhistoryQueryContext === void 0 ? void 0 : (_fetchorderhistoryQue12 = fetchorderhistoryQueryContext.data) === null || _fetchorderhistoryQue12 === void 0 ? void 0 : (_fetchorderhistoryQue13 = _fetchorderhistoryQue12.data) === null || _fetchorderhistoryQue13 === void 0 ? void 0 : (_fetchorderhistoryQue14 = _fetchorderhistoryQue13.ordershistory[orderindex]) === null || _fetchorderhistoryQue14 === void 0 ? void 0 : _fetchorderhistoryQue14.walletpointsused, langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar))), fetchorderhistoryQueryContext.data.data.ordershistory[orderindex].haspromocode == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5859
5872
|
className: "row m-0 w-100 mb-2"
|
|
5860
5873
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5861
5874
|
className: "col-lg-6 col-md-6 col-sm-6 d-flex p-0"
|
|
@@ -7111,11 +7124,11 @@ var defaultstylestranslated = {
|
|
|
7111
7124
|
|
|
7112
7125
|
function ownKeys$1V(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
7113
7126
|
function _objectSpread$1V(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1V(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1V(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
7114
|
-
var Select$
|
|
7127
|
+
var Select$2 = /*#__PURE__*/React__default["default"].lazy(function () {
|
|
7115
7128
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('react-select')); });
|
|
7116
7129
|
});
|
|
7117
7130
|
var Checkout = function Checkout(props) {
|
|
7118
|
-
var _css, _checkoutstyles,
|
|
7131
|
+
var _css, _checkoutstyles, _fetchcustomercartQue91, _fetchcustomercartQue92, _fetchcustomercartQue93, _fetchcustomercartQue94, _fetchcustomercartQue95, _fetchcustomercartQue96, _fetchcustomercartQue105, _fetchcustomercartQue106, _fetchcustomercartQue107, _fetchcustomercartQue108, _fetchcustomercartQue109, _fetchcustomercartQue110, _fetchcustomercartQue111, _fetchcustomercartQue112, _fetchcustomercartQue113, _fetchcustomercartQue116, _fetchcustomercartQue117, _fetchcustomercartQue120, _fetchcustomercartQue121, _fetchcustomercartQue124, _fetchcustomercartQue125;
|
|
7119
7132
|
var _useState = React.useState(null),
|
|
7120
7133
|
_useState2 = _slicedToArray__default["default"](_useState, 2),
|
|
7121
7134
|
timer = _useState2[0],
|
|
@@ -7129,6 +7142,7 @@ var Checkout = function Checkout(props) {
|
|
|
7129
7142
|
var templatepropcontext = props.actions.templatepropcontext;
|
|
7130
7143
|
var fetchcustomercartQueryContext = props.actions.fetchcustomercartQueryContext;
|
|
7131
7144
|
var FetchQueriesEngineContext = props.actions.FetchQueriesEngineContext;
|
|
7145
|
+
var GeneralAPIMutationContext = props.actions.GeneralAPIMutationContext;
|
|
7132
7146
|
var setFetchQueriesEngineContext = props.actions.setFetchQueriesEngineContext;
|
|
7133
7147
|
var fetchTabexCountriesQueryContext = props.actions.fetchTabexCountriesQueryContext;
|
|
7134
7148
|
var fetchTabexStatesQueryContext = props.actions.fetchTabexStatesQueryContext;
|
|
@@ -7240,6 +7254,19 @@ var Checkout = function Checkout(props) {
|
|
|
7240
7254
|
ChooseState_CountryMutationContext.mutate(payloadobj);
|
|
7241
7255
|
}
|
|
7242
7256
|
};
|
|
7257
|
+
var usewalletpoints = function usewalletpoints() {
|
|
7258
|
+
GeneralAPIMutationContext.mutate({
|
|
7259
|
+
endpointurl: '/usewalletpoints',
|
|
7260
|
+
mutateSuccesscallback: function mutateSuccesscallback(data, variables) {
|
|
7261
|
+
if (data.data.status) {
|
|
7262
|
+
NotificationManager.success('', 'Success');
|
|
7263
|
+
fetchcustomercartQueryContext.refetch();
|
|
7264
|
+
} else {
|
|
7265
|
+
NotificationManager.warning('', data.data.reason);
|
|
7266
|
+
}
|
|
7267
|
+
}
|
|
7268
|
+
});
|
|
7269
|
+
};
|
|
7243
7270
|
var checkoutstyles = (_checkoutstyles = {
|
|
7244
7271
|
Salepricestyless: glamor.css({
|
|
7245
7272
|
fontSize: sectionproperties.prodsalepriceFontSize + 'px',
|
|
@@ -7408,7 +7435,7 @@ var Checkout = function Checkout(props) {
|
|
|
7408
7435
|
border: sectionproperties.innersectionborderWidth + 'px solid ' + sectionproperties.innersectionborderColor
|
|
7409
7436
|
})), _checkoutstyles);
|
|
7410
7437
|
var Mycart = function Mycart() {
|
|
7411
|
-
var _fetchcustomercartQue37, _fetchcustomercartQue38, _fetchcustomercartQue39, _fetchcustomercartQue40, _fetchcustomercartQue41, _fetchcustomercartQue42, _fetchcustomercartQue49, _fetchcustomercartQue50, _fetchcustomercartQue51, _fetchcustomercartQue52, _fetchcustomercartQue53, _fetchcustomercartQue54, _fetchcustomercartQue55, _fetchcustomercartQue56, _fetchcustomercartQue57, _fetchcustomercartQue58, _fetchcustomercartQue59, _fetchcustomercartQue60, _fetchcustomercartQue61, _fetchcustomercartQue62, _fetchcustomercartQue63, _fetchcustomercartQue64, _fetchcustomercartQue65, _fetchcustomercartQue66, _fetchcustomercartQue67, _fetchcustomercartQue68, _fetchcustomercartQue69, _fetchcustomercartQue70, _fetchcustomercartQue71, _fetchcustomercartQue72;
|
|
7438
|
+
var _fetchcustomercartQue37, _fetchcustomercartQue38, _fetchcustomercartQue39, _fetchcustomercartQue40, _fetchcustomercartQue41, _fetchcustomercartQue42, _fetchcustomercartQue49, _fetchcustomercartQue50, _fetchcustomercartQue51, _fetchcustomercartQue52, _fetchcustomercartQue53, _fetchcustomercartQue54, _fetchcustomercartQue55, _fetchcustomercartQue56, _fetchcustomercartQue57, _fetchcustomercartQue58, _fetchcustomercartQue59, _fetchcustomercartQue60, _fetchcustomercartQue61, _fetchcustomercartQue62, _fetchcustomercartQue63, _fetchcustomercartQue64, _fetchcustomercartQue65, _fetchcustomercartQue66, _fetchcustomercartQue67, _fetchcustomercartQue68, _fetchcustomercartQue69, _fetchcustomercartQue70, _fetchcustomercartQue71, _fetchcustomercartQue72, _fetchcustomercartQue73, _fetchcustomercartQue74, _fetchcustomercartQue75, _fetchcustomercartQue76, _fetchcustomercartQue77, _fetchcustomercartQue78, _fetchcustomercartQue79, _fetchcustomercartQue80, _fetchcustomercartQue81, _fetchcustomercartQue82, _fetchcustomercartQue83, _fetchcustomercartQue84, _fetchcustomercartQue85, _fetchcustomercartQue86, _fetchcustomercartQue87, _fetchcustomercartQue88, _fetchcustomercartQue89, _fetchcustomercartQue90;
|
|
7412
7439
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7413
7440
|
className: "row m-0 w-100"
|
|
7414
7441
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -7576,7 +7603,39 @@ var Checkout = function Checkout(props) {
|
|
|
7576
7603
|
width: "20px",
|
|
7577
7604
|
height: "20px",
|
|
7578
7605
|
duration: "1s"
|
|
7579
|
-
})))))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7606
|
+
})))))), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue51 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue51 === void 0 ? void 0 : (_fetchcustomercartQue52 = _fetchcustomercartQue51.data) === null || _fetchcustomercartQue52 === void 0 ? void 0 : (_fetchcustomercartQue53 = _fetchcustomercartQue52.customercart) === null || _fetchcustomercartQue53 === void 0 ? void 0 : _fetchcustomercartQue53.availablewalletbalance) > 0 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7607
|
+
className: "row m-0 w-100"
|
|
7608
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7609
|
+
className: "col-lg-6 col-md-6 col-sm-6 p-0"
|
|
7610
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
7611
|
+
className: "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 d-flex align-items-center wordbreak '
|
|
7612
|
+
}, langdetect == 'en' ? 'Wallet balance' : 'حساب المحفظة')), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7613
|
+
className: "col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0"
|
|
7614
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
7615
|
+
className: langdetect == 'en' ? "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-right ' : "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-left '
|
|
7616
|
+
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', " ", fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue54 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue54 === void 0 ? void 0 : (_fetchcustomercartQue55 = _fetchcustomercartQue54.data) === null || _fetchcustomercartQue55 === void 0 ? void 0 : (_fetchcustomercartQue56 = _fetchcustomercartQue55.customercart) === null || _fetchcustomercartQue56 === void 0 ? void 0 : _fetchcustomercartQue56.availablewalletbalance, langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar)), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue57 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue57 === void 0 ? void 0 : (_fetchcustomercartQue58 = _fetchcustomercartQue57.data) === null || _fetchcustomercartQue58 === void 0 ? void 0 : (_fetchcustomercartQue59 = _fetchcustomercartQue58.customercart) === null || _fetchcustomercartQue59 === void 0 ? void 0 : _fetchcustomercartQue59.usewalletpoints) == 0 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7617
|
+
className: "col-lg-12 col-md-12 col-sm-6 d-flex justify-content-center p-0"
|
|
7618
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
7619
|
+
style: {
|
|
7620
|
+
color: 'green',
|
|
7621
|
+
cursor: 'pointer'
|
|
7622
|
+
},
|
|
7623
|
+
onClick: function onClick() {
|
|
7624
|
+
usewalletpoints();
|
|
7625
|
+
}
|
|
7626
|
+
}, langdetect == 'en' ? 'Use Points' : 'إستخدام النقاط'))), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue60 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue60 === void 0 ? void 0 : (_fetchcustomercartQue61 = _fetchcustomercartQue60.data) === null || _fetchcustomercartQue61 === void 0 ? void 0 : (_fetchcustomercartQue62 = _fetchcustomercartQue61.customercart) === null || _fetchcustomercartQue62 === void 0 ? void 0 : _fetchcustomercartQue62.usewalletpoints) == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7627
|
+
className: "row m-0 w-100"
|
|
7628
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7629
|
+
className: "col-lg-12 col-md-12 col-sm-6 d-flex justify-content-center p-0"
|
|
7630
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
7631
|
+
style: {
|
|
7632
|
+
color: 'red',
|
|
7633
|
+
cursor: 'pointer'
|
|
7634
|
+
},
|
|
7635
|
+
onClick: function onClick() {
|
|
7636
|
+
usewalletpoints();
|
|
7637
|
+
}
|
|
7638
|
+
}, langdetect == 'en' ? 'Remove Points' : 'حذف النقاط'))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7580
7639
|
className: "row m-0 w-100"
|
|
7581
7640
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7582
7641
|
className: "col-lg-6 col-md-6 col-sm-6 p-0"
|
|
@@ -7586,7 +7645,20 @@ var Checkout = function Checkout(props) {
|
|
|
7586
7645
|
className: "col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0"
|
|
7587
7646
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
7588
7647
|
className: langdetect == 'en' ? "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-right ' : "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-left '
|
|
7589
|
-
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', parseFloat(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (
|
|
7648
|
+
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', parseFloat(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue63 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue63 === void 0 ? void 0 : (_fetchcustomercartQue64 = _fetchcustomercartQue63.data) === null || _fetchcustomercartQue64 === void 0 ? void 0 : _fetchcustomercartQue64.customercart.totalprice).toFixed(2), ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar)))), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue65 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue65 === void 0 ? void 0 : (_fetchcustomercartQue66 = _fetchcustomercartQue65.data) === null || _fetchcustomercartQue66 === void 0 ? void 0 : (_fetchcustomercartQue67 = _fetchcustomercartQue66.customercart) === null || _fetchcustomercartQue67 === void 0 ? void 0 : _fetchcustomercartQue67.usewalletpoints) == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7649
|
+
className: "row m-0 w-100"
|
|
7650
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7651
|
+
className: "col-lg-6 col-md-6 col-sm-6 p-0"
|
|
7652
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
7653
|
+
className: "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 d-flex align-items-center wordbreak '
|
|
7654
|
+
}, "Wallet points used")), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7655
|
+
className: "col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0"
|
|
7656
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
7657
|
+
className: langdetect == 'en' ? "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-right ' : "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-left ',
|
|
7658
|
+
style: {
|
|
7659
|
+
color: 'red'
|
|
7660
|
+
}
|
|
7661
|
+
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', " -", ' ', parseFloat(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue68 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue68 === void 0 ? void 0 : (_fetchcustomercartQue69 = _fetchcustomercartQue68.data) === null || _fetchcustomercartQue69 === void 0 ? void 0 : (_fetchcustomercartQue70 = _fetchcustomercartQue69.customercart) === null || _fetchcustomercartQue70 === void 0 ? void 0 : _fetchcustomercartQue70.walletpointsused), " ", langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar))), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue71 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue71 === void 0 ? void 0 : (_fetchcustomercartQue72 = _fetchcustomercartQue71.data) === null || _fetchcustomercartQue72 === void 0 ? void 0 : _fetchcustomercartQue72.customercart.couponexists) && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue73 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue73 === void 0 ? void 0 : (_fetchcustomercartQue74 = _fetchcustomercartQue73.data) === null || _fetchcustomercartQue74 === void 0 ? void 0 : _fetchcustomercartQue74.customercart.discountprice) != 0 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7590
7662
|
className: "col-lg-12 p-0 mb-1"
|
|
7591
7663
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7592
7664
|
className: "row m-0 w-100"
|
|
@@ -7598,7 +7670,7 @@ var Checkout = function Checkout(props) {
|
|
|
7598
7670
|
className: "col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0"
|
|
7599
7671
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
7600
7672
|
className: langdetect == 'en' ? "".concat(checkoutstyles.summarysectionstyles, " ") + ' m-0 p-0 text-danger wordbreak text-right ' : "".concat(checkoutstyles.summarysectionstyles, " ") + ' m-0 p-0 text-danger wordbreak text-left '
|
|
7601
|
-
}, (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (
|
|
7673
|
+
}, (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue75 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue75 === void 0 ? void 0 : (_fetchcustomercartQue76 = _fetchcustomercartQue75.data) === null || _fetchcustomercartQue76 === void 0 ? void 0 : _fetchcustomercartQue76.customercart.discountprice) != 0 && /*#__PURE__*/React__default["default"].createElement("span", null, "- ", langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', parseFloat(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue77 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue77 === void 0 ? void 0 : (_fetchcustomercartQue78 = _fetchcustomercartQue77.data) === null || _fetchcustomercartQue78 === void 0 ? void 0 : _fetchcustomercartQue78.customercart.discountprice).toFixed(2), ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue79 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue79 === void 0 ? void 0 : (_fetchcustomercartQue80 = _fetchcustomercartQue79.data) === null || _fetchcustomercartQue80 === void 0 ? void 0 : _fetchcustomercartQue80.customercart.discountprice) == 0 && /*#__PURE__*/React__default["default"].createElement("span", null, "0"))))), sectionproperties.hideshipping == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7602
7674
|
className: "col-lg-12 p-0"
|
|
7603
7675
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7604
7676
|
className: "row m-0 w-100"
|
|
@@ -7606,11 +7678,11 @@ var Checkout = function Checkout(props) {
|
|
|
7606
7678
|
className: "col-lg-6 col-md-6 col-sm-6 p-0"
|
|
7607
7679
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
7608
7680
|
className: "".concat(checkoutstyles.summarysectionstyles, " ") + ' m-0 p-0 d-flex align-items-start wordbreak '
|
|
7609
|
-
}, lang.shippingfees)), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (
|
|
7681
|
+
}, lang.shippingfees)), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue81 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue81 === void 0 ? void 0 : (_fetchcustomercartQue82 = _fetchcustomercartQue81.data) === null || _fetchcustomercartQue82 === void 0 ? void 0 : _fetchcustomercartQue82.customercart.zoneexists) && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7610
7682
|
className: "col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0"
|
|
7611
7683
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
7612
7684
|
className: langdetect == 'en' ? "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-right ' : "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-left '
|
|
7613
|
-
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', parseFloat(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (
|
|
7685
|
+
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', parseFloat(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue83 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue83 === void 0 ? void 0 : (_fetchcustomercartQue84 = _fetchcustomercartQue83.data) === null || _fetchcustomercartQue84 === void 0 ? void 0 : _fetchcustomercartQue84.customercart.zoneprice).toFixed(2), ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar)), !(fetchcustomercartQueryContext !== null && fetchcustomercartQueryContext !== void 0 && (_fetchcustomercartQue85 = fetchcustomercartQueryContext.data) !== null && _fetchcustomercartQue85 !== void 0 && (_fetchcustomercartQue86 = _fetchcustomercartQue85.data) !== null && _fetchcustomercartQue86 !== void 0 && _fetchcustomercartQue86.customercart.zoneexists) && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7614
7686
|
className: "col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0"
|
|
7615
7687
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
7616
7688
|
className: "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 d-flex align-items-start wordbreak ',
|
|
@@ -7649,7 +7721,7 @@ var Checkout = function Checkout(props) {
|
|
|
7649
7721
|
textTransform: sectionproperties.total_texttransform,
|
|
7650
7722
|
color: sectionproperties.total_color
|
|
7651
7723
|
}
|
|
7652
|
-
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', parseFloat(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (
|
|
7724
|
+
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', parseFloat(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue87 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue87 === void 0 ? void 0 : (_fetchcustomercartQue88 = _fetchcustomercartQue87.data) === null || _fetchcustomercartQue88 === void 0 ? void 0 : _fetchcustomercartQue88.customercart.totalpriceafterdiscount).toFixed(2), ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar)))))), sectionproperties.slideshowtext1_show == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7653
7725
|
"class": "col-lg-12 p-0 my-2 p-2 allcentered mb-3",
|
|
7654
7726
|
style: {
|
|
7655
7727
|
background: '#eee',
|
|
@@ -7679,7 +7751,7 @@ var Checkout = function Checkout(props) {
|
|
|
7679
7751
|
width: "20px",
|
|
7680
7752
|
height: "20px",
|
|
7681
7753
|
duration: "1s"
|
|
7682
|
-
}), !AddOrderMutationContext.isLoading ? (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (
|
|
7754
|
+
}), !AddOrderMutationContext.isLoading ? (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue89 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue89 === void 0 ? void 0 : (_fetchcustomercartQue90 = _fetchcustomercartQue89.data) === null || _fetchcustomercartQue90 === void 0 ? void 0 : _fetchcustomercartQue90.customercart.paymentmethod) == 'onlinepayment' ? lang.continuetopayment : authdetailsContext.loggedin ? langdetect == 'en' ? sectionproperties.checkoutbtn_en2 : sectionproperties.checkoutbtn_ar2 : lang.confirmorder + ' ' + lang.asaguest : ''))))));
|
|
7683
7755
|
};
|
|
7684
7756
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7685
7757
|
className: 'row m-0 w-100 d-flex justify-content-center p-sm-0 '
|
|
@@ -7836,7 +7908,7 @@ var Checkout = function Checkout(props) {
|
|
|
7836
7908
|
}, lang.name), /*#__PURE__*/React__default["default"].createElement("input", {
|
|
7837
7909
|
type: 'text',
|
|
7838
7910
|
className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
|
|
7839
|
-
value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (
|
|
7911
|
+
value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue91 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue91 === void 0 ? void 0 : (_fetchcustomercartQue92 = _fetchcustomercartQue91.data) === null || _fetchcustomercartQue92 === void 0 ? void 0 : _fetchcustomercartQue92.customercart.name,
|
|
7840
7912
|
onChange: function onChange(event) {
|
|
7841
7913
|
cartinfoupdater('name', event.target.value);
|
|
7842
7914
|
},
|
|
@@ -7851,7 +7923,7 @@ var Checkout = function Checkout(props) {
|
|
|
7851
7923
|
}, langdetect == 'en' ? 'Phone Number' : 'رقم الهاتف'), /*#__PURE__*/React__default["default"].createElement("input", {
|
|
7852
7924
|
type: 'text',
|
|
7853
7925
|
className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
|
|
7854
|
-
value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (
|
|
7926
|
+
value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue93 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue93 === void 0 ? void 0 : (_fetchcustomercartQue94 = _fetchcustomercartQue93.data) === null || _fetchcustomercartQue94 === void 0 ? void 0 : _fetchcustomercartQue94.customercart.mobile,
|
|
7855
7927
|
onChange: function onChange(event) {
|
|
7856
7928
|
cartinfoupdater('mobile', event.target.value);
|
|
7857
7929
|
},
|
|
@@ -7866,7 +7938,7 @@ var Checkout = function Checkout(props) {
|
|
|
7866
7938
|
}, lang.email), /*#__PURE__*/React__default["default"].createElement("input", {
|
|
7867
7939
|
type: 'text',
|
|
7868
7940
|
className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
|
|
7869
|
-
value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (
|
|
7941
|
+
value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue95 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue95 === void 0 ? void 0 : (_fetchcustomercartQue96 = _fetchcustomercartQue95.data) === null || _fetchcustomercartQue96 === void 0 ? void 0 : _fetchcustomercartQue96.customercart.email,
|
|
7870
7942
|
onChange: function onChange(event) {
|
|
7871
7943
|
cartinfoupdater('email', event.target.value);
|
|
7872
7944
|
},
|
|
@@ -7888,7 +7960,7 @@ var Checkout = function Checkout(props) {
|
|
|
7888
7960
|
width: "20px",
|
|
7889
7961
|
height: "20px",
|
|
7890
7962
|
duration: "1s"
|
|
7891
|
-
})), !fetchTabexCountriesQueryContext.isFetching && fetchTabexCountriesQueryContext.isSuccess && /*#__PURE__*/React__default["default"].createElement(Select$
|
|
7963
|
+
})), !fetchTabexCountriesQueryContext.isFetching && fetchTabexCountriesQueryContext.isSuccess && /*#__PURE__*/React__default["default"].createElement(Select$2, {
|
|
7892
7964
|
options: fetchTabexCountriesQueryContext.data.data.countries,
|
|
7893
7965
|
getOptionLabel: function getOptionLabel(option) {
|
|
7894
7966
|
var crname = '';
|
|
@@ -7907,8 +7979,8 @@ var Checkout = function Checkout(props) {
|
|
|
7907
7979
|
return option.id;
|
|
7908
7980
|
},
|
|
7909
7981
|
value: fetchTabexCountriesQueryContext.data.data.countries.filter(function (option) {
|
|
7910
|
-
var
|
|
7911
|
-
return option.id == (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (
|
|
7982
|
+
var _fetchcustomercartQue97, _fetchcustomercartQue98;
|
|
7983
|
+
return option.id == (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue97 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue97 === void 0 ? void 0 : (_fetchcustomercartQue98 = _fetchcustomercartQue97.data) === null || _fetchcustomercartQue98 === void 0 ? void 0 : _fetchcustomercartQue98.customercart.countryid);
|
|
7912
7984
|
}),
|
|
7913
7985
|
onChange: function onChange(option) {
|
|
7914
7986
|
var tempFetchTabexStatesPayloadobjContext = _objectSpread$1V({}, FetchTabexStatesPayloadobjContext);
|
|
@@ -7931,7 +8003,7 @@ var Checkout = function Checkout(props) {
|
|
|
7931
8003
|
width: "20px",
|
|
7932
8004
|
height: "20px",
|
|
7933
8005
|
duration: "1s"
|
|
7934
|
-
})), !fetchTabexStatesQueryContext.isFetching && fetchTabexStatesQueryContext.isSuccess && /*#__PURE__*/React__default["default"].createElement(Select$
|
|
8006
|
+
})), !fetchTabexStatesQueryContext.isFetching && fetchTabexStatesQueryContext.isSuccess && /*#__PURE__*/React__default["default"].createElement(Select$2, {
|
|
7935
8007
|
options: fetchTabexStatesQueryContext.data.data.states
|
|
7936
8008
|
// getOptionLabel={(option) => option.name}
|
|
7937
8009
|
// getOptionValue={(option) => option.id}
|
|
@@ -7953,12 +8025,12 @@ var Checkout = function Checkout(props) {
|
|
|
7953
8025
|
return option.id;
|
|
7954
8026
|
},
|
|
7955
8027
|
value: fetchTabexStatesQueryContext.data.data.states.filter(function (option) {
|
|
7956
|
-
var
|
|
7957
|
-
return option.id == (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (
|
|
8028
|
+
var _fetchcustomercartQue99, _fetchcustomercartQue100;
|
|
8029
|
+
return option.id == (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue99 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue99 === void 0 ? void 0 : (_fetchcustomercartQue100 = _fetchcustomercartQue99.data) === null || _fetchcustomercartQue100 === void 0 ? void 0 : _fetchcustomercartQue100.customercart.stateid);
|
|
7958
8030
|
}),
|
|
7959
8031
|
onChange: function onChange(option) {
|
|
7960
|
-
var
|
|
7961
|
-
if (option.id.length != 0 && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (
|
|
8032
|
+
var _fetchcustomercartQue101, _fetchcustomercartQue102;
|
|
8033
|
+
if (option.id.length != 0 && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue101 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue101 === void 0 ? void 0 : (_fetchcustomercartQue102 = _fetchcustomercartQue101.data) === null || _fetchcustomercartQue102 === void 0 ? void 0 : _fetchcustomercartQue102.customercart.countryid.length) != 0) {
|
|
7962
8034
|
var tempFetchTabexStatesPayloadobjContext = _objectSpread$1V({}, FetchTabexStatesPayloadobjContext);
|
|
7963
8035
|
tempFetchTabexStatesPayloadobjContext.functype = 'cities';
|
|
7964
8036
|
tempFetchTabexStatesPayloadobjContext.state_id = option.id;
|
|
@@ -7982,7 +8054,7 @@ var Checkout = function Checkout(props) {
|
|
|
7982
8054
|
width: "20px",
|
|
7983
8055
|
height: "20px",
|
|
7984
8056
|
duration: "1s"
|
|
7985
|
-
})), !fetchTabexCitiesQueryContext.isFetching && fetchTabexCitiesQueryContext.isSuccess && /*#__PURE__*/React__default["default"].createElement(Select$
|
|
8057
|
+
})), !fetchTabexCitiesQueryContext.isFetching && fetchTabexCitiesQueryContext.isSuccess && /*#__PURE__*/React__default["default"].createElement(Select$2, {
|
|
7986
8058
|
options: fetchTabexCitiesQueryContext.data.data.cities,
|
|
7987
8059
|
getOptionLabel: function getOptionLabel(option) {
|
|
7988
8060
|
var crname = '';
|
|
@@ -8001,8 +8073,8 @@ var Checkout = function Checkout(props) {
|
|
|
8001
8073
|
return option.id;
|
|
8002
8074
|
},
|
|
8003
8075
|
value: fetchTabexCitiesQueryContext.data.data.cities.filter(function (option) {
|
|
8004
|
-
var
|
|
8005
|
-
return option.id == (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (
|
|
8076
|
+
var _fetchcustomercartQue103, _fetchcustomercartQue104;
|
|
8077
|
+
return option.id == (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue103 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue103 === void 0 ? void 0 : (_fetchcustomercartQue104 = _fetchcustomercartQue103.data) === null || _fetchcustomercartQue104 === void 0 ? void 0 : _fetchcustomercartQue104.customercart.cityid);
|
|
8006
8078
|
}),
|
|
8007
8079
|
onChange: function onChange(option) {
|
|
8008
8080
|
cartinfoupdater('cityid', option.id);
|
|
@@ -8017,7 +8089,7 @@ var Checkout = function Checkout(props) {
|
|
|
8017
8089
|
}, lang.shippingaddress), /*#__PURE__*/React__default["default"].createElement(TextareaAutosize__default["default"], {
|
|
8018
8090
|
type: 'text',
|
|
8019
8091
|
className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
|
|
8020
|
-
value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (
|
|
8092
|
+
value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue105 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue105 === void 0 ? void 0 : (_fetchcustomercartQue106 = _fetchcustomercartQue105.data) === null || _fetchcustomercartQue106 === void 0 ? void 0 : _fetchcustomercartQue106.customercart.address,
|
|
8021
8093
|
onChange: function onChange(event) {
|
|
8022
8094
|
cartinfoupdater('address', event.target.value);
|
|
8023
8095
|
},
|
|
@@ -8032,7 +8104,7 @@ var Checkout = function Checkout(props) {
|
|
|
8032
8104
|
}, langdetect == 'en' ? 'Notes' : 'الملاحظات'), /*#__PURE__*/React__default["default"].createElement(TextareaAutosize__default["default"], {
|
|
8033
8105
|
type: 'text',
|
|
8034
8106
|
className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
|
|
8035
|
-
value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (
|
|
8107
|
+
value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue107 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue107 === void 0 ? void 0 : (_fetchcustomercartQue108 = _fetchcustomercartQue107.data) === null || _fetchcustomercartQue108 === void 0 ? void 0 : _fetchcustomercartQue108.customercart.notes,
|
|
8036
8108
|
onChange: function onChange(event) {
|
|
8037
8109
|
cartinfoupdater('notes', event.target.value);
|
|
8038
8110
|
},
|
|
@@ -8047,7 +8119,7 @@ var Checkout = function Checkout(props) {
|
|
|
8047
8119
|
}, langdetect == 'en' ? 'Affiliate code' : 'رمز المسوق'), /*#__PURE__*/React__default["default"].createElement("input", {
|
|
8048
8120
|
type: 'number',
|
|
8049
8121
|
className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
|
|
8050
|
-
value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (
|
|
8122
|
+
value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue109 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue109 === void 0 ? void 0 : (_fetchcustomercartQue110 = _fetchcustomercartQue109.data) === null || _fetchcustomercartQue110 === void 0 ? void 0 : (_fetchcustomercartQue111 = _fetchcustomercartQue110.customercart) === null || _fetchcustomercartQue111 === void 0 ? void 0 : _fetchcustomercartQue111.aff_code,
|
|
8051
8123
|
onChange: function onChange(event) {
|
|
8052
8124
|
cartinfoupdater('aff_code', event.target.value);
|
|
8053
8125
|
},
|
|
@@ -8078,10 +8150,10 @@ var Checkout = function Checkout(props) {
|
|
|
8078
8150
|
id: 'codcheckbox',
|
|
8079
8151
|
type: "checkbox",
|
|
8080
8152
|
className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
|
|
8081
|
-
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (
|
|
8153
|
+
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue112 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue112 === void 0 ? void 0 : (_fetchcustomercartQue113 = _fetchcustomercartQue112.data) === null || _fetchcustomercartQue113 === void 0 ? void 0 : _fetchcustomercartQue113.customercart.paymentmethod) == 'cod' ? true : false,
|
|
8082
8154
|
onChange: function onChange() {
|
|
8083
|
-
var
|
|
8084
|
-
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (
|
|
8155
|
+
var _fetchcustomercartQue114, _fetchcustomercartQue115;
|
|
8156
|
+
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue114 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue114 === void 0 ? void 0 : (_fetchcustomercartQue115 = _fetchcustomercartQue114.data) === null || _fetchcustomercartQue115 === void 0 ? void 0 : _fetchcustomercartQue115.customercart.paymentmethod) != 'cod') {
|
|
8085
8157
|
cartinfoupdater('paymentmethod', 'cod');
|
|
8086
8158
|
}
|
|
8087
8159
|
}
|
|
@@ -8100,10 +8172,10 @@ var Checkout = function Checkout(props) {
|
|
|
8100
8172
|
}, /*#__PURE__*/React__default["default"].createElement("input", {
|
|
8101
8173
|
type: "checkbox",
|
|
8102
8174
|
className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
|
|
8103
|
-
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (
|
|
8175
|
+
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue116 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue116 === void 0 ? void 0 : (_fetchcustomercartQue117 = _fetchcustomercartQue116.data) === null || _fetchcustomercartQue117 === void 0 ? void 0 : _fetchcustomercartQue117.customercart.paymentmethod) == 'cardondelivery' ? true : false,
|
|
8104
8176
|
onChange: function onChange() {
|
|
8105
|
-
var
|
|
8106
|
-
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (
|
|
8177
|
+
var _fetchcustomercartQue118, _fetchcustomercartQue119;
|
|
8178
|
+
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue118 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue118 === void 0 ? void 0 : (_fetchcustomercartQue119 = _fetchcustomercartQue118.data) === null || _fetchcustomercartQue119 === void 0 ? void 0 : _fetchcustomercartQue119.customercart.paymentmethod) != 'cardondelivery') {
|
|
8107
8179
|
cartinfoupdater('paymentmethod', 'cardondelivery');
|
|
8108
8180
|
}
|
|
8109
8181
|
}
|
|
@@ -8121,10 +8193,10 @@ var Checkout = function Checkout(props) {
|
|
|
8121
8193
|
}, /*#__PURE__*/React__default["default"].createElement("input", {
|
|
8122
8194
|
type: "checkbox",
|
|
8123
8195
|
className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
|
|
8124
|
-
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (
|
|
8196
|
+
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue120 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue120 === void 0 ? void 0 : (_fetchcustomercartQue121 = _fetchcustomercartQue120.data) === null || _fetchcustomercartQue121 === void 0 ? void 0 : _fetchcustomercartQue121.customercart.paymentmethod) == 'onlinepayment' ? true : false,
|
|
8125
8197
|
onChange: function onChange() {
|
|
8126
|
-
var
|
|
8127
|
-
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (
|
|
8198
|
+
var _fetchcustomercartQue122, _fetchcustomercartQue123;
|
|
8199
|
+
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue122 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue122 === void 0 ? void 0 : (_fetchcustomercartQue123 = _fetchcustomercartQue122.data) === null || _fetchcustomercartQue123 === void 0 ? void 0 : _fetchcustomercartQue123.customercart.paymentmethod) != 'onlinepayment') {
|
|
8128
8200
|
cartinfoupdater('paymentmethod', 'onlinepayment');
|
|
8129
8201
|
}
|
|
8130
8202
|
}
|
|
@@ -8135,7 +8207,7 @@ var Checkout = function Checkout(props) {
|
|
|
8135
8207
|
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"
|
|
8136
8208
|
})), /*#__PURE__*/React__default["default"].createElement("p", {
|
|
8137
8209
|
className: "".concat(formstyles.checkbox_label) + ' ml-2 mb-0 wordbreak cursor-pointer mr-2 '
|
|
8138
|
-
}, " ", lang.onlinepayment)))))), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (
|
|
8210
|
+
}, " ", lang.onlinepayment)))))), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue124 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue124 === void 0 ? void 0 : (_fetchcustomercartQue125 = _fetchcustomercartQue124.data) === null || _fetchcustomercartQue125 === void 0 ? void 0 : _fetchcustomercartQue125.customercart.paymentmethod) == 'onlinepayment1' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8139
8211
|
className: "col-lg-12 p-0 w-100 mb-3"
|
|
8140
8212
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8141
8213
|
style: {
|
|
@@ -8242,7 +8314,7 @@ var Checkout = function Checkout(props) {
|
|
|
8242
8314
|
|
|
8243
8315
|
function ownKeys$1U(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
8244
8316
|
function _objectSpread$1U(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1U(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1U(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
8245
|
-
var Select = /*#__PURE__*/React__default["default"].lazy(function () {
|
|
8317
|
+
var Select$1 = /*#__PURE__*/React__default["default"].lazy(function () {
|
|
8246
8318
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('react-select')); });
|
|
8247
8319
|
});
|
|
8248
8320
|
var CustomerInformationForm = function CustomerInformationForm(props) {
|
|
@@ -8609,7 +8681,7 @@ var CustomerInformationForm = function CustomerInformationForm(props) {
|
|
|
8609
8681
|
width: "20px",
|
|
8610
8682
|
height: "20px",
|
|
8611
8683
|
duration: "1s"
|
|
8612
|
-
})), !fetchTabexCountriesQueryContext.isFetching && fetchTabexCountriesQueryContext.isSuccess && /*#__PURE__*/React__default["default"].createElement(Select, {
|
|
8684
|
+
})), !fetchTabexCountriesQueryContext.isFetching && fetchTabexCountriesQueryContext.isSuccess && /*#__PURE__*/React__default["default"].createElement(Select$1, {
|
|
8613
8685
|
options: fetchTabexCountriesQueryContext.data.data.countries,
|
|
8614
8686
|
getOptionLabel: function getOptionLabel(option) {
|
|
8615
8687
|
var crname = '';
|
|
@@ -8657,11 +8729,11 @@ var CustomerInformationForm = function CustomerInformationForm(props) {
|
|
|
8657
8729
|
width: "20px",
|
|
8658
8730
|
height: "20px",
|
|
8659
8731
|
duration: "1s"
|
|
8660
|
-
})), FetchTabexStatesPayloadobjContext.country_id == '' && /*#__PURE__*/React__default["default"].createElement(Select, {
|
|
8732
|
+
})), FetchTabexStatesPayloadobjContext.country_id == '' && /*#__PURE__*/React__default["default"].createElement(Select$1, {
|
|
8661
8733
|
styles: langdetect == 'en' ? defaultstyles : defaultstylestranslated,
|
|
8662
8734
|
placeholder: lang.choosestategov,
|
|
8663
8735
|
isSearchable: true
|
|
8664
|
-
}), !fetchTabexStatesQueryContext.isFetching && fetchTabexStatesQueryContext.isSuccess && /*#__PURE__*/React__default["default"].createElement(Select, {
|
|
8736
|
+
}), !fetchTabexStatesQueryContext.isFetching && fetchTabexStatesQueryContext.isSuccess && /*#__PURE__*/React__default["default"].createElement(Select$1, {
|
|
8665
8737
|
options: fetchTabexStatesQueryContext.data.data.states,
|
|
8666
8738
|
getOptionLabel: function getOptionLabel(option) {
|
|
8667
8739
|
var crname = '';
|
|
@@ -8709,11 +8781,11 @@ var CustomerInformationForm = function CustomerInformationForm(props) {
|
|
|
8709
8781
|
width: "20px",
|
|
8710
8782
|
height: "20px",
|
|
8711
8783
|
duration: "1s"
|
|
8712
|
-
})), FetchTabexStatesPayloadobjContext.country_id == '' && /*#__PURE__*/React__default["default"].createElement(Select, {
|
|
8784
|
+
})), FetchTabexStatesPayloadobjContext.country_id == '' && /*#__PURE__*/React__default["default"].createElement(Select$1, {
|
|
8713
8785
|
placeholder: lang.choosecity,
|
|
8714
8786
|
styles: langdetect == 'en' ? defaultstyles : defaultstylestranslated,
|
|
8715
8787
|
isSearchable: true
|
|
8716
|
-
}), !fetchTabexCitiesQueryContext.isFetching && fetchTabexCitiesQueryContext.isSuccess && /*#__PURE__*/React__default["default"].createElement(Select, {
|
|
8788
|
+
}), !fetchTabexCitiesQueryContext.isFetching && fetchTabexCitiesQueryContext.isSuccess && /*#__PURE__*/React__default["default"].createElement(Select$1, {
|
|
8717
8789
|
options: fetchTabexCitiesQueryContext.data.data.cities,
|
|
8718
8790
|
getOptionLabel: function getOptionLabel(option) {
|
|
8719
8791
|
var crname = '';
|
|
@@ -10904,8 +10976,11 @@ styleInject(css_248z$B);
|
|
|
10904
10976
|
|
|
10905
10977
|
function ownKeys$1N(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
10906
10978
|
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; }
|
|
10979
|
+
var Select = /*#__PURE__*/React__default["default"].lazy(function () {
|
|
10980
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('react-select')); });
|
|
10981
|
+
});
|
|
10907
10982
|
var Filter$1 = function Filter(props) {
|
|
10908
|
-
var _authdetailsContext$i;
|
|
10983
|
+
var _authdetailsContext$i, _fetchTabexCountriesQ, _fetchTabexCountriesQ2, _fetchTabexStatesQuer, _fetchTabexStatesQuer2, _fetchTabexStatesQuer3, _fetchTabexStatesQuer4, _fetchTabexCitiesQuer, _fetchTabexCitiesQuer2, _fetchTabexCitiesQuer3, _fetchTabexCitiesQuer4;
|
|
10909
10984
|
var lang = props.actions.lang;
|
|
10910
10985
|
var langdetect = props.actions.langdetect;
|
|
10911
10986
|
props.actions.productfiltercontext;
|
|
@@ -10916,6 +10991,13 @@ var Filter$1 = function Filter(props) {
|
|
|
10916
10991
|
var routingcountext = props.actions.routingcountext;
|
|
10917
10992
|
var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
|
|
10918
10993
|
var ikimagecredcontext = props.actions.ikimagecredcontext;
|
|
10994
|
+
var fetchTabexCountriesQueryContext = props.actions.fetchTabexCountriesQueryContext;
|
|
10995
|
+
var FetchQueriesEngineContext = props.actions.FetchQueriesEngineContext;
|
|
10996
|
+
var setFetchQueriesEngineContext = props.actions.setFetchQueriesEngineContext;
|
|
10997
|
+
var fetchTabexCitiesQueryContext = props.actions.fetchTabexCitiesQueryContext;
|
|
10998
|
+
var fetchTabexStatesQueryContext = props.actions.fetchTabexStatesQueryContext;
|
|
10999
|
+
var FetchTabexStatesPayloadobjContext = props.actions.FetchTabexStatesPayloadobjContext;
|
|
11000
|
+
var setFetchTabexStatesPayloadobjContext = props.actions.setFetchTabexStatesPayloadobjContext;
|
|
10919
11001
|
var _useState = React.useState(''),
|
|
10920
11002
|
_useState2 = _slicedToArray__default["default"](_useState, 2),
|
|
10921
11003
|
sectionproperties = _useState2[0],
|
|
@@ -10943,9 +11025,6 @@ var Filter$1 = function Filter(props) {
|
|
|
10943
11025
|
_useState12 = _slicedToArray__default["default"](_useState11, 2),
|
|
10944
11026
|
raterangevalue = _useState12[0],
|
|
10945
11027
|
setraterangevalue = _useState12[1];
|
|
10946
|
-
props.actions.fetchTabexCountriesQueryContext;
|
|
10947
|
-
props.actions.FetchQueriesEngineContext;
|
|
10948
|
-
props.actions.setFetchQueriesEngineContext;
|
|
10949
11028
|
var timeoutRef = React__default["default"].useRef(null);
|
|
10950
11029
|
var _useState13 = React.useState([{
|
|
10951
11030
|
payloadvalue: 'sortprice',
|
|
@@ -11007,19 +11086,28 @@ var Filter$1 = function Filter(props) {
|
|
|
11007
11086
|
}
|
|
11008
11087
|
}, 500);
|
|
11009
11088
|
}, [raterangevalue]);
|
|
11010
|
-
|
|
11011
|
-
|
|
11012
|
-
|
|
11013
|
-
|
|
11014
|
-
|
|
11015
|
-
|
|
11016
|
-
|
|
11017
|
-
|
|
11018
|
-
|
|
11019
|
-
|
|
11020
|
-
// alert(JSON.stringify(FetchQueriesEngineContext));
|
|
11021
|
-
// }, []);
|
|
11089
|
+
React.useEffect(function () {
|
|
11090
|
+
if (fetchTabexStatesQueryContext.isSuccess) {
|
|
11091
|
+
if (ProductFilterObjContext.stateid != undefined && ProductFilterObjContext.stateid != null && ProductFilterObjContext.stateid != '' && ProductFilterObjContext.stateid != 'all') {
|
|
11092
|
+
var tempFetchTabexStatesPayloadobjContext = _objectSpread$1N({}, FetchTabexStatesPayloadobjContext);
|
|
11093
|
+
tempFetchTabexStatesPayloadobjContext.functype = 'cities';
|
|
11094
|
+
tempFetchTabexStatesPayloadobjContext.state_id = ProductFilterObjContext.stateid;
|
|
11095
|
+
setFetchTabexStatesPayloadobjContext(_objectSpread$1N({}, tempFetchTabexStatesPayloadobjContext));
|
|
11096
|
+
}
|
|
11097
|
+
}
|
|
11098
|
+
}, [fetchTabexStatesQueryContext.isSuccess]);
|
|
11022
11099
|
var filterupdater = function filterupdater() {
|
|
11100
|
+
setTimeout(function () {
|
|
11101
|
+
var tempFetchQueriesEngineContext = _objectSpread$1N({}, FetchQueriesEngineContext);
|
|
11102
|
+
tempFetchQueriesEngineContext.fetchtabexcountries = true;
|
|
11103
|
+
setFetchQueriesEngineContext(tempFetchQueriesEngineContext);
|
|
11104
|
+
}, 100);
|
|
11105
|
+
if (ProductFilterObjContext.countryid != undefined && ProductFilterObjContext.countryid != null && ProductFilterObjContext.countryid != '' && ProductFilterObjContext.countryid != 'all') {
|
|
11106
|
+
var tempFetchTabexStatesPayloadobjContext = _objectSpread$1N({}, FetchTabexStatesPayloadobjContext);
|
|
11107
|
+
tempFetchTabexStatesPayloadobjContext.functype = 'states';
|
|
11108
|
+
tempFetchTabexStatesPayloadobjContext.country_id = ProductFilterObjContext.countryid;
|
|
11109
|
+
setFetchTabexStatesPayloadobjContext(_objectSpread$1N({}, tempFetchTabexStatesPayloadobjContext));
|
|
11110
|
+
}
|
|
11023
11111
|
if (instfilters.length != 0) {
|
|
11024
11112
|
var _ProductFilterObjCont;
|
|
11025
11113
|
var tempinstfilters = _toConsumableArray__default["default"](instfilters);
|
|
@@ -11105,8 +11193,10 @@ var Filter$1 = function Filter(props) {
|
|
|
11105
11193
|
}
|
|
11106
11194
|
tempfetchproductsfilerobjcontext.page = 0;
|
|
11107
11195
|
setProductFilterObjContext(_objectSpread$1N({}, tempfetchproductsfilerobjcontext));
|
|
11108
|
-
|
|
11196
|
+
filterrouting(tempfetchproductsfilerobjcontext);
|
|
11197
|
+
// routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, encodeURIComponent(JSON.stringify(tempfetchproductsfilerobjcontext)));
|
|
11109
11198
|
};
|
|
11199
|
+
|
|
11110
11200
|
var setCollectionFilterFunc = function setCollectionFilterFunc(collectionid) {
|
|
11111
11201
|
var _tempfetchproductsfil2;
|
|
11112
11202
|
var tempfetchproductsfilerobjcontext = _objectSpread$1N({}, ProductFilterObjContext);
|
|
@@ -11122,8 +11212,10 @@ var Filter$1 = function Filter(props) {
|
|
|
11122
11212
|
}
|
|
11123
11213
|
tempfetchproductsfilerobjcontext.page = 0;
|
|
11124
11214
|
setProductFilterObjContext(_objectSpread$1N({}, tempfetchproductsfilerobjcontext));
|
|
11125
|
-
|
|
11215
|
+
filterrouting(tempfetchproductsfilerobjcontext);
|
|
11216
|
+
// routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, encodeURIComponent(JSON.stringify(tempfetchproductsfilerobjcontext)));
|
|
11126
11217
|
};
|
|
11218
|
+
|
|
11127
11219
|
var CategoriesFilter = function CategoriesFilter() {
|
|
11128
11220
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
11129
11221
|
"class": "col-lg-12 p-0"
|
|
@@ -11452,6 +11544,19 @@ var Filter$1 = function Filter(props) {
|
|
|
11452
11544
|
}
|
|
11453
11545
|
})
|
|
11454
11546
|
};
|
|
11547
|
+
var filterrouting = function filterrouting(tempfetchproductsfilerobjcontext) {
|
|
11548
|
+
var path = window.location.pathname.split('/');
|
|
11549
|
+
var currentpagepath = path[1];
|
|
11550
|
+
var pagenamepathinstaticpagelinkcont = '';
|
|
11551
|
+
for (var key in StaticPagesLinksContext) {
|
|
11552
|
+
if (StaticPagesLinksContext[key] == currentpagepath) {
|
|
11553
|
+
pagenamepathinstaticpagelinkcont = key;
|
|
11554
|
+
}
|
|
11555
|
+
}
|
|
11556
|
+
if (pagenamepathinstaticpagelinkcont != undefined && pagenamepathinstaticpagelinkcont != '') {
|
|
11557
|
+
routingcountext(StaticPagesLinksContext[pagenamepathinstaticpagelinkcont], true, encodeURIComponent(JSON.stringify(tempfetchproductsfilerobjcontext)));
|
|
11558
|
+
}
|
|
11559
|
+
};
|
|
11455
11560
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
11456
11561
|
className: sectionproperties.filterdirection == 'Horizontal' ? 'col-lg-12 p-0 w-100 filter mt-md-0 ' : 'col-lg-12 p-0 w-100 filter mt-md-0 d-md-none',
|
|
11457
11562
|
style: {
|
|
@@ -11603,7 +11708,6 @@ var Filter$1 = function Filter(props) {
|
|
|
11603
11708
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
11604
11709
|
className: "".concat(filterstyles.border_left_line, " ").concat(filterstyles.timelineinnercont, " ").concat(filter_cssstyles.timelineinnercont, "\n ").concat(ischecked ? "".concat(filter_cssstyles.timelineinnercont_active, " ").concat(filterstyles.timelineinnercont_active) : '', "\n \n ") + ' d-flex align-items-start pb-3 ',
|
|
11605
11710
|
onClick: function onClick() {
|
|
11606
|
-
// setfilterfunc(valueitem.valueid, valueindex, index, 'assign');
|
|
11607
11711
|
var tempfetchproductsfilerobjcontext = _objectSpread$1N({}, ProductFilterObjContext);
|
|
11608
11712
|
if (tempfetchproductsfilerobjcontext[item.payloadvalue] == valueitem.value) {
|
|
11609
11713
|
tempfetchproductsfilerobjcontext[item.payloadvalue] = '';
|
|
@@ -11612,7 +11716,7 @@ var Filter$1 = function Filter(props) {
|
|
|
11612
11716
|
}
|
|
11613
11717
|
tempfetchproductsfilerobjcontext.page = 0;
|
|
11614
11718
|
setProductFilterObjContext(_objectSpread$1N({}, tempfetchproductsfilerobjcontext));
|
|
11615
|
-
|
|
11719
|
+
filterrouting(tempfetchproductsfilerobjcontext);
|
|
11616
11720
|
}
|
|
11617
11721
|
}, /*#__PURE__*/React__default["default"].createElement("div", null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
11618
11722
|
className: " ".concat(ischecked ? filter_cssstyles.btn_item_active : '', " ").concat(filterstyles.btn_item, " ").concat(filter_cssstyles.btn_item) + ' mb-2 d-flex align-items-center '
|
|
@@ -11679,11 +11783,145 @@ var Filter$1 = function Filter(props) {
|
|
|
11679
11783
|
className: "mt-2 mb-3"
|
|
11680
11784
|
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
11681
11785
|
className: filter_cssstyles.filteraccordion + ' col-lg-12 filter-accordion p-md-0 pl-4 pr-4 '
|
|
11682
|
-
}, sectionproperties.
|
|
11786
|
+
}, sectionproperties.showcountriesfilter == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
11683
11787
|
"class": "row m-0 w-100"
|
|
11684
|
-
},
|
|
11788
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
11789
|
+
"class": "col-lg-12 p-0 mt-3"
|
|
11790
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
11685
11791
|
"class": "row m-0 w-100"
|
|
11686
|
-
},
|
|
11792
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
11793
|
+
"class": "col-lg-12 p-0 mb-3"
|
|
11794
|
+
}, (fetchTabexCountriesQueryContext === null || fetchTabexCountriesQueryContext === void 0 ? void 0 : fetchTabexCountriesQueryContext.isFetching) && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
11795
|
+
className: "w-100 allcentered mt-1"
|
|
11796
|
+
}, /*#__PURE__*/React__default["default"].createElement(reactCssfxLoading.CircularProgress, {
|
|
11797
|
+
color: "#000",
|
|
11798
|
+
width: "20px",
|
|
11799
|
+
height: "20px",
|
|
11800
|
+
duration: "1s"
|
|
11801
|
+
})), !(fetchTabexCountriesQueryContext !== null && fetchTabexCountriesQueryContext !== void 0 && fetchTabexCountriesQueryContext.isFetching) && (fetchTabexCountriesQueryContext === null || fetchTabexCountriesQueryContext === void 0 ? void 0 : fetchTabexCountriesQueryContext.isSuccess) && /*#__PURE__*/React__default["default"].createElement(Select, {
|
|
11802
|
+
options: fetchTabexCountriesQueryContext === null || fetchTabexCountriesQueryContext === void 0 ? void 0 : (_fetchTabexCountriesQ = fetchTabexCountriesQueryContext.data) === null || _fetchTabexCountriesQ === void 0 ? void 0 : (_fetchTabexCountriesQ2 = _fetchTabexCountriesQ.data) === null || _fetchTabexCountriesQ2 === void 0 ? void 0 : _fetchTabexCountriesQ2.countries,
|
|
11803
|
+
getOptionLabel: function getOptionLabel(option) {
|
|
11804
|
+
var crname = '';
|
|
11805
|
+
if (langdetect == 'en') {
|
|
11806
|
+
crname = option.name;
|
|
11807
|
+
} else if (langdetect == 'ar') {
|
|
11808
|
+
if (option.name_ar != null) {
|
|
11809
|
+
crname = option.name_ar;
|
|
11810
|
+
} else {
|
|
11811
|
+
crname = option.name;
|
|
11812
|
+
}
|
|
11813
|
+
}
|
|
11814
|
+
return crname;
|
|
11815
|
+
},
|
|
11816
|
+
getOptionValue: function getOptionValue(option) {
|
|
11817
|
+
return option.id;
|
|
11818
|
+
},
|
|
11819
|
+
value: fetchTabexCountriesQueryContext.data.data.countries.filter(function (option) {
|
|
11820
|
+
return option.id == ProductFilterObjContext.countryid;
|
|
11821
|
+
}),
|
|
11822
|
+
onChange: function onChange(option) {
|
|
11823
|
+
var tempFetchTabexStatesPayloadobjContext = _objectSpread$1N({}, FetchTabexStatesPayloadobjContext);
|
|
11824
|
+
tempFetchTabexStatesPayloadobjContext.functype = 'states';
|
|
11825
|
+
tempFetchTabexStatesPayloadobjContext.country_id = option.id;
|
|
11826
|
+
setFetchTabexStatesPayloadobjContext(_objectSpread$1N({}, tempFetchTabexStatesPayloadobjContext));
|
|
11827
|
+
var tempfetchproductsfilerobjcontext = _objectSpread$1N({}, ProductFilterObjContext);
|
|
11828
|
+
tempfetchproductsfilerobjcontext.countryid = option.id;
|
|
11829
|
+
tempfetchproductsfilerobjcontext.page = 0;
|
|
11830
|
+
setProductFilterObjContext(_objectSpread$1N({}, tempfetchproductsfilerobjcontext));
|
|
11831
|
+
filterrouting(tempfetchproductsfilerobjcontext);
|
|
11832
|
+
},
|
|
11833
|
+
styles: langdetect == 'en' ? defaultstyles : defaultstylestranslated,
|
|
11834
|
+
placeholder: lang.choosecountry,
|
|
11835
|
+
isSearchable: true
|
|
11836
|
+
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
11837
|
+
"class": "col-lg-12 mb-3 p-0"
|
|
11838
|
+
}, (fetchTabexStatesQueryContext === null || fetchTabexStatesQueryContext === void 0 ? void 0 : fetchTabexStatesQueryContext.isFetching) && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
11839
|
+
className: "w-100 allcentered mt-1"
|
|
11840
|
+
}, /*#__PURE__*/React__default["default"].createElement(reactCssfxLoading.CircularProgress, {
|
|
11841
|
+
color: "#000",
|
|
11842
|
+
width: "20px",
|
|
11843
|
+
height: "20px",
|
|
11844
|
+
duration: "1s"
|
|
11845
|
+
})), !(fetchTabexStatesQueryContext !== null && fetchTabexStatesQueryContext !== void 0 && fetchTabexStatesQueryContext.isFetching) && (fetchTabexStatesQueryContext === null || fetchTabexStatesQueryContext === void 0 ? void 0 : fetchTabexStatesQueryContext.isSuccess) && /*#__PURE__*/React__default["default"].createElement(Select, {
|
|
11846
|
+
options: fetchTabexStatesQueryContext === null || fetchTabexStatesQueryContext === void 0 ? void 0 : (_fetchTabexStatesQuer = fetchTabexStatesQueryContext.data) === null || _fetchTabexStatesQuer === void 0 ? void 0 : (_fetchTabexStatesQuer2 = _fetchTabexStatesQuer.data) === null || _fetchTabexStatesQuer2 === void 0 ? void 0 : _fetchTabexStatesQuer2.states,
|
|
11847
|
+
getOptionLabel: function getOptionLabel(option) {
|
|
11848
|
+
var crname = '';
|
|
11849
|
+
if (langdetect == 'en') {
|
|
11850
|
+
crname = option.name;
|
|
11851
|
+
} else if (langdetect == 'ar') {
|
|
11852
|
+
if (option.name_ar != null) {
|
|
11853
|
+
crname = option.name_ar;
|
|
11854
|
+
} else {
|
|
11855
|
+
crname = option.name;
|
|
11856
|
+
}
|
|
11857
|
+
}
|
|
11858
|
+
return crname;
|
|
11859
|
+
},
|
|
11860
|
+
getOptionValue: function getOptionValue(option) {
|
|
11861
|
+
return option.id;
|
|
11862
|
+
},
|
|
11863
|
+
value: fetchTabexStatesQueryContext === null || fetchTabexStatesQueryContext === void 0 ? void 0 : (_fetchTabexStatesQuer3 = fetchTabexStatesQueryContext.data) === null || _fetchTabexStatesQuer3 === void 0 ? void 0 : (_fetchTabexStatesQuer4 = _fetchTabexStatesQuer3.data) === null || _fetchTabexStatesQuer4 === void 0 ? void 0 : _fetchTabexStatesQuer4.states.filter(function (option) {
|
|
11864
|
+
return option.id == ProductFilterObjContext.stateid;
|
|
11865
|
+
}),
|
|
11866
|
+
onChange: function onChange(option) {
|
|
11867
|
+
var tempFetchTabexStatesPayloadobjContext = _objectSpread$1N({}, FetchTabexStatesPayloadobjContext);
|
|
11868
|
+
tempFetchTabexStatesPayloadobjContext.functype = 'cities';
|
|
11869
|
+
tempFetchTabexStatesPayloadobjContext.state_id = option.id;
|
|
11870
|
+
setFetchTabexStatesPayloadobjContext(_objectSpread$1N({}, tempFetchTabexStatesPayloadobjContext));
|
|
11871
|
+
var tempfetchproductsfilerobjcontext = _objectSpread$1N({}, ProductFilterObjContext);
|
|
11872
|
+
tempfetchproductsfilerobjcontext.stateid = option.id;
|
|
11873
|
+
tempfetchproductsfilerobjcontext.page = 0;
|
|
11874
|
+
setProductFilterObjContext(_objectSpread$1N({}, tempfetchproductsfilerobjcontext));
|
|
11875
|
+
filterrouting(tempfetchproductsfilerobjcontext);
|
|
11876
|
+
},
|
|
11877
|
+
styles: langdetect == 'en' ? defaultstyles : defaultstylestranslated,
|
|
11878
|
+
placeholder: lang.choosestategov,
|
|
11879
|
+
isSearchable: true
|
|
11880
|
+
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
11881
|
+
"class": "col-lg-12 mb-3 p-0"
|
|
11882
|
+
}, (fetchTabexCitiesQueryContext === null || fetchTabexCitiesQueryContext === void 0 ? void 0 : fetchTabexCitiesQueryContext.isFetching) && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
11883
|
+
className: "w-100 allcentered mt-1"
|
|
11884
|
+
}, /*#__PURE__*/React__default["default"].createElement(reactCssfxLoading.CircularProgress, {
|
|
11885
|
+
color: "#000",
|
|
11886
|
+
width: "20px",
|
|
11887
|
+
height: "20px",
|
|
11888
|
+
duration: "1s"
|
|
11889
|
+
})), !(fetchTabexCitiesQueryContext !== null && fetchTabexCitiesQueryContext !== void 0 && fetchTabexCitiesQueryContext.isFetching) && (fetchTabexCitiesQueryContext === null || fetchTabexCitiesQueryContext === void 0 ? void 0 : fetchTabexCitiesQueryContext.isSuccess) && /*#__PURE__*/React__default["default"].createElement(Select, {
|
|
11890
|
+
options: fetchTabexCitiesQueryContext === null || fetchTabexCitiesQueryContext === void 0 ? void 0 : (_fetchTabexCitiesQuer = fetchTabexCitiesQueryContext.data) === null || _fetchTabexCitiesQuer === void 0 ? void 0 : (_fetchTabexCitiesQuer2 = _fetchTabexCitiesQuer.data) === null || _fetchTabexCitiesQuer2 === void 0 ? void 0 : _fetchTabexCitiesQuer2.cities,
|
|
11891
|
+
getOptionLabel: function getOptionLabel(option) {
|
|
11892
|
+
var crname = '';
|
|
11893
|
+
if (langdetect == 'en') {
|
|
11894
|
+
crname = option.name;
|
|
11895
|
+
} else if (langdetect == 'ar') {
|
|
11896
|
+
if (option.name_ar != null) {
|
|
11897
|
+
crname = option.name_ar;
|
|
11898
|
+
} else {
|
|
11899
|
+
crname = option.name;
|
|
11900
|
+
}
|
|
11901
|
+
}
|
|
11902
|
+
return crname;
|
|
11903
|
+
},
|
|
11904
|
+
getOptionValue: function getOptionValue(option) {
|
|
11905
|
+
return option.id;
|
|
11906
|
+
},
|
|
11907
|
+
value: fetchTabexCitiesQueryContext === null || fetchTabexCitiesQueryContext === void 0 ? void 0 : (_fetchTabexCitiesQuer3 = fetchTabexCitiesQueryContext.data) === null || _fetchTabexCitiesQuer3 === void 0 ? void 0 : (_fetchTabexCitiesQuer4 = _fetchTabexCitiesQuer3.data) === null || _fetchTabexCitiesQuer4 === void 0 ? void 0 : _fetchTabexCitiesQuer4.cities.filter(function (option) {
|
|
11908
|
+
return option.id == ProductFilterObjContext.cityid;
|
|
11909
|
+
}),
|
|
11910
|
+
onChange: function onChange(option) {
|
|
11911
|
+
var tempfetchproductsfilerobjcontext = _objectSpread$1N({}, ProductFilterObjContext);
|
|
11912
|
+
tempfetchproductsfilerobjcontext.cityid = option.id;
|
|
11913
|
+
tempfetchproductsfilerobjcontext.page = 0;
|
|
11914
|
+
setProductFilterObjContext(_objectSpread$1N({}, tempfetchproductsfilerobjcontext));
|
|
11915
|
+
filterrouting(tempfetchproductsfilerobjcontext);
|
|
11916
|
+
},
|
|
11917
|
+
styles: langdetect == 'en' ? defaultstyles : defaultstylestranslated,
|
|
11918
|
+
placeholder: lang.choosecity,
|
|
11919
|
+
isSearchable: true
|
|
11920
|
+
}))))), sectionproperties.filterType == 'All' && sectionproperties.showcategoriesfilter == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
11921
|
+
"class": "row m-0 w-100"
|
|
11922
|
+
}, CategoriesFilter()), sectionproperties.filterType == 'Collections' && sectionproperties.showcategoriesfilter == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
11923
|
+
"class": "row m-0 w-100"
|
|
11924
|
+
}, CollectionsFilter()), sectionproperties.showvariantsfilter == 'Show' && InstFilters()))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
11687
11925
|
className: "col-lg-12"
|
|
11688
11926
|
}, /*#__PURE__*/React__default["default"].createElement(reactBootstrap.Offcanvas, {
|
|
11689
11927
|
show: props === null || props === void 0 ? void 0 : props.openFilterSlider,
|
|
@@ -17269,7 +17507,11 @@ var CTAHeader = function CTAHeader(props) {
|
|
|
17269
17507
|
paddingLeft: langdetect == 'en' ? sectionproperties.lowersection_paddingleft + 'px' : sectionproperties.lowersection_paddingright + 'px',
|
|
17270
17508
|
paddingRight: langdetect == 'en' ? sectionproperties.lowersection_paddingright + 'px' : sectionproperties.lowersection_paddingleft + 'px',
|
|
17271
17509
|
paddingTop: sectionproperties.lowersection_paddingtop + 'px',
|
|
17272
|
-
paddingBottom: sectionproperties.lowersection_paddingbottom + 'px'
|
|
17510
|
+
paddingBottom: sectionproperties.lowersection_paddingbottom + 'px',
|
|
17511
|
+
borderBottomLeftRadius: langdetect == 'en' ? sectionproperties.lowersection_borderBottomLeftRadius + 'px' : sectionproperties.lowersection_BorderBottomRightRadius + 'px',
|
|
17512
|
+
borderBottomRightRadius: langdetect == 'en' ? sectionproperties.lowersection_BorderBottomRightRadius + 'px' : sectionproperties.lowersection_borderBottomLeftRadius + 'px',
|
|
17513
|
+
borderTopLeftRadius: langdetect == 'en' ? sectionproperties.lowersection_borderTopLeftRadius + 'px' : sectionproperties.lowersection_borderTopRightRadius + 'px',
|
|
17514
|
+
borderTopRightRadius: langdetect == 'en' ? sectionproperties.lowersection_borderTopRightRadius + 'px' : sectionproperties.lowersection_borderTopLeftRadius + 'px'
|
|
17273
17515
|
}),
|
|
17274
17516
|
facebook_btn: glamor.css({
|
|
17275
17517
|
cursor: 'pointer',
|
|
@@ -17425,7 +17667,13 @@ var CTAHeader = function CTAHeader(props) {
|
|
|
17425
17667
|
"class": "row m-0 w-100 justify-content-center",
|
|
17426
17668
|
style: {
|
|
17427
17669
|
width: '100vw',
|
|
17428
|
-
zIndex: 1000
|
|
17670
|
+
zIndex: 1000,
|
|
17671
|
+
background: sectionproperties.header_backgroundColor
|
|
17672
|
+
}
|
|
17673
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
17674
|
+
"class": "row m-0 w-md-100",
|
|
17675
|
+
style: {
|
|
17676
|
+
width: sectionproperties.header_width + 'vw'
|
|
17429
17677
|
}
|
|
17430
17678
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
17431
17679
|
"class": "col-lg-12 p-0 d-md-none d-sm-none",
|
|
@@ -17660,7 +17908,61 @@ var CTAHeader = function CTAHeader(props) {
|
|
|
17660
17908
|
size: sectionproperties.cartBtn_iconFontSize
|
|
17661
17909
|
}), sectionproperties.carticonstyle == 'Calendar 1' && /*#__PURE__*/React__default["default"].createElement(FiCalendar.FiCalendar, {
|
|
17662
17910
|
size: sectionproperties.cartBtn_iconFontSize
|
|
17663
|
-
}))
|
|
17911
|
+
})), sectionproperties.lang_position == 'Top' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
17912
|
+
"class": langdetect == 'en' ? 'headerdropdownml ml-3' : 'headerdropdownmr mr-3'
|
|
17913
|
+
}, /*#__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", {
|
|
17914
|
+
"class": ' d-flex align-items-center justify-content-center '
|
|
17915
|
+
}, langdetect == 'en' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
17916
|
+
"class": "".concat(header_cssstyles.languagecontainer) + ' row m-0 w-100 d-flex align-items-center '
|
|
17917
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
17918
|
+
"class": "m-0 p-0 mr-2"
|
|
17919
|
+
}, "En"), /*#__PURE__*/React__default["default"].createElement(MdKeyboardArrowDown.MdKeyboardArrowDown, null)), langdetect == 'ar' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
17920
|
+
"class": "".concat(header_cssstyles.languagecontainer) + ' row m-0 w-100 d-flex align-items-center '
|
|
17921
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
17922
|
+
"class": "m-0 p-0 ml-2"
|
|
17923
|
+
}, "\u0639"), /*#__PURE__*/React__default["default"].createElement(MdKeyboardArrowDown.MdKeyboardArrowDown, null)))), /*#__PURE__*/React__default["default"].createElement(Dropdown__default["default"].Menu, null, /*#__PURE__*/React__default["default"].createElement(Dropdown__default["default"].Item, {
|
|
17924
|
+
onClick: function onClick() {
|
|
17925
|
+
setlang('ar');
|
|
17926
|
+
}
|
|
17927
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
17928
|
+
"class": "".concat(header_cssstyles.dropdownitemcontainer) + ' p-0 '
|
|
17929
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
17930
|
+
"class": 'dropdownitem d-flex align-items-center m-0 p-0',
|
|
17931
|
+
style: {
|
|
17932
|
+
fontSize: sectionproperties.dropdown_fontsize + 'px',
|
|
17933
|
+
fontWeight: sectionproperties.dropdown_fontweight,
|
|
17934
|
+
textTransform: sectionproperties.dropdown_texttransform
|
|
17935
|
+
}
|
|
17936
|
+
}, /*#__PURE__*/React__default["default"].createElement("img", {
|
|
17937
|
+
src: 'https://tabex-co.com/storage/StaticImages/egyptflag.png',
|
|
17938
|
+
style: {
|
|
17939
|
+
maxWidth: '2vh',
|
|
17940
|
+
maxHeight: '2vh'
|
|
17941
|
+
}
|
|
17942
|
+
}), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
17943
|
+
"class": 'ml-2 mr-2'
|
|
17944
|
+
}, lang.arabic)))), /*#__PURE__*/React__default["default"].createElement(Dropdown__default["default"].Divider, null), /*#__PURE__*/React__default["default"].createElement(Dropdown__default["default"].Item, {
|
|
17945
|
+
onClick: function onClick() {
|
|
17946
|
+
setlang('en');
|
|
17947
|
+
}
|
|
17948
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
17949
|
+
"class": "".concat(header_cssstyles.dropdownitemcontainer) + ' p-0 '
|
|
17950
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
17951
|
+
"class": 'dropdownitem d-flex align-items-center justify-content-center m-0 p-0',
|
|
17952
|
+
style: {
|
|
17953
|
+
fontSize: sectionproperties.dropdown_fontsize + 'px',
|
|
17954
|
+
fontWeight: sectionproperties.dropdown_fontweight,
|
|
17955
|
+
textTransform: sectionproperties.dropdown_texttransform
|
|
17956
|
+
}
|
|
17957
|
+
}, /*#__PURE__*/React__default["default"].createElement("img", {
|
|
17958
|
+
src: 'https://tabex-co.com/storage/StaticImages/usflag.png',
|
|
17959
|
+
style: {
|
|
17960
|
+
maxWidth: '2vh',
|
|
17961
|
+
maxHeight: '2vh'
|
|
17962
|
+
}
|
|
17963
|
+
}), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
17964
|
+
"class": 'ml-2 mr-2'
|
|
17965
|
+
}, lang.english))))))))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
17664
17966
|
"class": "col-lg-12 p-0 allcentered",
|
|
17665
17967
|
style: {
|
|
17666
17968
|
backgroundColor: sectionproperties.uppersection_bgcolortransparent == 'Transparent' ? 'Transparent' : sectionproperties.uppersection_bgcolor
|
|
@@ -17754,7 +18056,7 @@ var CTAHeader = function CTAHeader(props) {
|
|
|
17754
18056
|
}, ButtonDropdown(item, index, fetchedarray));
|
|
17755
18057
|
}
|
|
17756
18058
|
}))))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
17757
|
-
"class":
|
|
18059
|
+
"class": sectionproperties.generalbtn_show == 'Hide' && sectionproperties.fbbtn_show == 'Hide' && sectionproperties.instbtn_show == 'Hide' && sectionproperties.youtbtn_show == 'Hide' && sectionproperties.lang_position == 'Top' ? 'col-lg-12 p-0 d-flex align-items-center justify-content-center' : 'col-lg-6 p-0 d-flex align-items-center justify-content-center'
|
|
17758
18060
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
17759
18061
|
"class": "scrollhorizontal w-100 align-items-center justify-content-center h-100 flex-row",
|
|
17760
18062
|
style: {
|
|
@@ -17835,7 +18137,7 @@ var CTAHeader = function CTAHeader(props) {
|
|
|
17835
18137
|
}
|
|
17836
18138
|
}, /*#__PURE__*/React__default["default"].createElement(FaWhatsapp.FaWhatsapp, {
|
|
17837
18139
|
size: sectionproperties.youtubebtniconfontsize
|
|
17838
|
-
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
18140
|
+
})), sectionproperties.lang_position == 'Bottom' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
17839
18141
|
"class": langdetect == 'en' ? 'headerdropdownml ml-3' : 'headerdropdownmr mr-3'
|
|
17840
18142
|
}, /*#__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", {
|
|
17841
18143
|
"class": ' d-flex align-items-center justify-content-center '
|
|
@@ -17905,7 +18207,7 @@ var CTAHeader = function CTAHeader(props) {
|
|
|
17905
18207
|
}, /*#__PURE__*/React__default["default"].createElement(Headerresponsive, {
|
|
17906
18208
|
sectionpropertiesprops: sectionproperties,
|
|
17907
18209
|
actions: actions
|
|
17908
|
-
})));
|
|
18210
|
+
}))));
|
|
17909
18211
|
};
|
|
17910
18212
|
|
|
17911
18213
|
var css_248z$v = ".Header_threesectionslogocentered-module_header_innercontainer__yjjgZ {\n display: flex;\n align-items: center;\n align-content: center;\n position: relative;\n z-index: 1000;\n transition: all 0.2s;\n}\n\n.Header_threesectionslogocentered-module_header_innercontainer__yjjgZ .Header_threesectionslogocentered-module_navbar_item__YMaF8 {\n position: relative;\n cursor: pointer;\n white-space: nowrap;\n display: flex;\n align-items: center;\n}\n.Header_threesectionslogocentered-module_header_innercontainer__yjjgZ .Header_threesectionslogocentered-module_navbar_item__YMaF8 .Header_threesectionslogocentered-module_navbar_item_text__0DPls {\n transition: transform 0.3s cubic-bezier(0.2, 1, 0.8, 1);\n transition: 0.3s;\n padding: 0;\n}\n.Header_threesectionslogocentered-module_header_innercontainer__yjjgZ .Header_threesectionslogocentered-module_navbar_item__YMaF8 .Header_threesectionslogocentered-module_navbar_item_text__0DPls:after {\n position: absolute;\n left: 0;\n bottom: -10px;\n right: 0;\n width: 7px;\n height: 7px;\n content: '';\n border-radius: 50%;\n margin: 0 auto;\n opacity: 0;\n -webkit-transition: all, 0.3s;\n -moz-transition: all, 0.3s;\n -ms-transition: all, 0.3s;\n -o-transition: all, 0.3s;\n transition: all, 0.3s;\n}\n.Header_threesectionslogocentered-module_header_innercontainer__yjjgZ .Header_threesectionslogocentered-module_navbar_item__YMaF8:hover .Header_threesectionslogocentered-module_navbar_item_text__0DPls:after {\n opacity: 1;\n}\n/* Side Nav Active */\n.Header_threesectionslogocentered-module_header_innercontainer__yjjgZ .Header_threesectionslogocentered-module_navbar_item_active__ladUm .Header_threesectionslogocentered-module_navbar_item_text__0DPls:after {\n opacity: 1;\n}\n\n/* Search Bar */\n.Header_threesectionslogocentered-module_header_innercontainer__yjjgZ .Header_threesectionslogocentered-module_searchbarcont__9MNXO input::placeholder {\n color: #8c8c8c;\n font-weight: normal;\n}\n/* Badge */\n.Header_threesectionslogocentered-module_badge_counter_header_notifications__qekYU {\n position: absolute;\n transform: scale(0.3);\n transform-origin: top right;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n.Header_threesectionslogocentered-module_searchbar__5KdKx {\n display: inline-block;\n border: none;\n outline: none;\n width: 0px;\n position: absolute;\n top: 0;\n background: none;\n z-index: 3;\n transition: width .4s cubic-bezier(0.000, 0.795, 0.000, 1.000);\n cursor: pointer;\n}\n.Header_threesectionslogocentered-module_searchbar__5KdKx:focus {\n width: 300px !important;\n z-index: 1;\n cursor: text;\n}\n.Header_threesectionslogocentered-module_searchbaractive__8Pp-9 {\n display: inline-block;\n z-index: 2;\n cursor: pointer;\n cursor: pointer;\n}\n ";
|
|
@@ -22560,7 +22862,7 @@ var Modernheader = function Modernheader(props) {
|
|
|
22560
22862
|
var favoriteprojectscountContext = props.actions.favoriteprojectscountContext;
|
|
22561
22863
|
var routingcountext = props.actions.routingcountext;
|
|
22562
22864
|
var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
|
|
22563
|
-
|
|
22865
|
+
props.actions.history;
|
|
22564
22866
|
var ikimagecredcontext = props.actions.ikimagecredcontext;
|
|
22565
22867
|
var actions = props.actions;
|
|
22566
22868
|
React.useEffect(function () {
|
|
@@ -23133,32 +23435,29 @@ var Modernheader = function Modernheader(props) {
|
|
|
23133
23435
|
display: sectionproperties.showhidesubheader == 'Show' && sectionproperties.subheaderposition == 'Besides Top Navigation' ? 'none' : 'flex'
|
|
23134
23436
|
}
|
|
23135
23437
|
}, /*#__PURE__*/React__default["default"].createElement("ul", null, templatepropcontext.pagesnprop.map(function (item, index) {
|
|
23136
|
-
|
|
23137
|
-
|
|
23138
|
-
|
|
23139
|
-
|
|
23140
|
-
|
|
23141
|
-
activeclass2 = header_cssstyles.topbar_item_active;
|
|
23142
|
-
activeclass3 = header_cssstyles.topbar_item_text_active;
|
|
23143
|
-
}
|
|
23438
|
+
// if (item.isselected) {
|
|
23439
|
+
// activeclass = headerstyles.navbar_item_active;
|
|
23440
|
+
// activeclass2 = header_cssstyles.topbar_item_active;
|
|
23441
|
+
// activeclass3 = header_cssstyles.topbar_item_text_active;
|
|
23442
|
+
// }
|
|
23144
23443
|
if (item.isnavigation == 1 && item.isactive == 1) {
|
|
23145
23444
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
23146
23445
|
"class": "cursor-pointer",
|
|
23147
23446
|
onClick: function onClick() {
|
|
23148
|
-
|
|
23447
|
+
routingcountext(item.navigationroute, false, '');
|
|
23149
23448
|
}
|
|
23150
23449
|
}, /*#__PURE__*/React__default["default"].createElement("li", {
|
|
23151
|
-
"class": "".concat(headerstyles$7.topbar_item_container) + ' nav-item '
|
|
23152
|
-
|
|
23153
|
-
|
|
23154
|
-
|
|
23155
|
-
|
|
23156
|
-
|
|
23157
|
-
}
|
|
23450
|
+
"class": "".concat(headerstyles$7.topbar_item_container) + ' nav-item '
|
|
23451
|
+
// onClick={() => {
|
|
23452
|
+
// fetch_inst_tabex_websitetemplatesQueryContext.data.data.template.pages.forEach(function (pageitem, pageindex) {
|
|
23453
|
+
// pageitem.isselected = false;
|
|
23454
|
+
// });
|
|
23455
|
+
// fetch_inst_tabex_websitetemplatesQueryContext.data.data.template.pages[index].isselected = true;
|
|
23456
|
+
// }}
|
|
23158
23457
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
23159
|
-
"class": "".concat(headerstyles$7.topbar_item, " ").concat(header_cssstyles.topbar_item, " ").concat(header_cssstyles.nav_link
|
|
23458
|
+
"class": "".concat(headerstyles$7.topbar_item, " ").concat(header_cssstyles.topbar_item, " ").concat(header_cssstyles.nav_link)
|
|
23160
23459
|
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
23161
|
-
"class": "".concat(headerstyles$7.topbar_item_text, " ").concat(header_cssstyles.topbar_item_text
|
|
23460
|
+
"class": "".concat(headerstyles$7.topbar_item_text, " ").concat(header_cssstyles.topbar_item_text)
|
|
23162
23461
|
}, langdetect == 'en' ? item.pagename : item.pagename_ar))));
|
|
23163
23462
|
}
|
|
23164
23463
|
}))), sectionproperties.showhidesubheader == 'Show' && sectionproperties.subheaderposition == 'Besides Top Navigation' && /*#__PURE__*/React__default["default"].createElement(Subheader, {
|
|
@@ -44362,7 +44661,9 @@ var Slideshowzoom = function Slideshowzoom(props) {
|
|
|
44362
44661
|
}))));
|
|
44363
44662
|
};
|
|
44364
44663
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
44365
|
-
"class":
|
|
44664
|
+
"class": "row m-0 w-100"
|
|
44665
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
44666
|
+
"class": sectionproperties.card_marginLeft != 0 && sectionproperties.card_marginRight != 0 ? 'row ml-0 mr-0 w-100 d-flex d-md-none justify-content-center align-items-center pl-sm-2 pr-sm-2' : 'row ml-0 mr-0 w-100 d-flex d-md-none justify-content-center align-items-center ',
|
|
44366
44667
|
style: {
|
|
44367
44668
|
paddingLeft: langdetect == 'en' ? sectionproperties.card_marginLeft + 'px' : sectionproperties.card_marginRight + 'px',
|
|
44368
44669
|
paddingRight: langdetect == 'en' ? sectionproperties.card_marginRight + 'px' : sectionproperties.card_marginLeft + 'px',
|
|
@@ -44503,7 +44804,149 @@ var Slideshowzoom = function Slideshowzoom(props) {
|
|
|
44503
44804
|
sectionproperties: sectionproperties,
|
|
44504
44805
|
props: props
|
|
44505
44806
|
});
|
|
44506
|
-
})))))))
|
|
44807
|
+
}))))))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
44808
|
+
"class": sectionproperties.card_marginLeft != 0 && sectionproperties.card_marginRight != 0 ? 'row ml-0 mr-0 w-100 d-none d-md-flex justify-content-center align-items-center pl-sm-2 pr-sm-2' : 'row ml-0 mr-0 w-100 d-none d-md-flex justify-content-center align-items-center ',
|
|
44809
|
+
style: {
|
|
44810
|
+
paddingLeft: langdetect == 'en' ? sectionproperties.card_marginLeft + 'px' : sectionproperties.card_marginRight + 'px',
|
|
44811
|
+
paddingRight: langdetect == 'en' ? sectionproperties.card_marginRight + 'px' : sectionproperties.card_marginLeft + 'px',
|
|
44812
|
+
background: sectionproperties.backgroundColor,
|
|
44813
|
+
marginBottom: sectionproperties.marginBottom + 'px',
|
|
44814
|
+
paddingTop: sectionproperties.marginTopResp + 'px'
|
|
44815
|
+
}
|
|
44816
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
44817
|
+
"class": cardarrayofobjs.length != 0 ? 'col-lg-12 p-0 d-flex justify-content-center' : 'col-lg-12 p-0 d-flex justify-content-center h-md-auto h-sm-auto',
|
|
44818
|
+
style: {
|
|
44819
|
+
height: sectionproperties.bgcovercontain == 'Cover' ? sectionproperties.height + 'vh' : 'auto'
|
|
44820
|
+
}
|
|
44821
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
44822
|
+
"class": cardarrayofobjs.length != 0 ? '' : sectionproperties.width == '100' ? 'h-sm-auto' : 'h-sm-auto pl-sm-2 pr-sm-2 w-sm-100',
|
|
44823
|
+
style: {
|
|
44824
|
+
position: 'relative',
|
|
44825
|
+
borderTopLeftRadius: sectionproperties.borderTopLeftRadius + 'px',
|
|
44826
|
+
borderTopRightRadius: sectionproperties.borderTopRightRadius + 'px',
|
|
44827
|
+
borderBottomRightRadius: sectionproperties.borderBottomRightRadius + 'px',
|
|
44828
|
+
borderBottomLeftRadius: sectionproperties.borderBottomLeftRadius + 'px',
|
|
44829
|
+
width: sectionproperties.width + 'vw',
|
|
44830
|
+
height: sectionproperties.bgcovercontain == 'Cover' ? sectionproperties.height + 'vh' : 'auto',
|
|
44831
|
+
overflow: 'hidden'
|
|
44832
|
+
}
|
|
44833
|
+
}, /*#__PURE__*/React__default["default"].createElement(reactSlideshowImage.Zoom, _extends__default["default"]({}, Slideshowsettings, {
|
|
44834
|
+
transitionDuration: 1500,
|
|
44835
|
+
duration: 1500,
|
|
44836
|
+
arrow: true,
|
|
44837
|
+
easing: "ease"
|
|
44838
|
+
}), Object.keys(bgimagearrayofobjs).length != 0 && bgimagearrayofobjs.map(function (item, index) {
|
|
44839
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
44840
|
+
"class": cardarrayofobjs.length != 0 ? 'row m-0 w-100' : 'row m-0 w-100 h-md-auto h-sm-auto',
|
|
44841
|
+
style: {
|
|
44842
|
+
borderTopLeftRadius: sectionproperties.borderTopLeftRadius + 'px',
|
|
44843
|
+
borderTopRightRadius: sectionproperties.borderTopRightRadius + 'px',
|
|
44844
|
+
borderBottomRightRadius: sectionproperties.borderBottomRightRadius + 'px',
|
|
44845
|
+
borderBottomLeftRadius: sectionproperties.borderBottomLeftRadius + 'px',
|
|
44846
|
+
height: sectionproperties.bgcovercontain == 'Cover' ? sectionproperties.height + 'vh' : 'auto'
|
|
44847
|
+
}
|
|
44848
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
44849
|
+
"class": ' p-0 align-items-center d-flex d-md-none ',
|
|
44850
|
+
key: index,
|
|
44851
|
+
style: {
|
|
44852
|
+
cursor: item.IsClickableimg == 'Yes' ? 'pointer' : 'default',
|
|
44853
|
+
width: '100%',
|
|
44854
|
+
height: '100%',
|
|
44855
|
+
borderTopLeftRadius: sectionproperties.borderTopLeftRadius + 'px',
|
|
44856
|
+
borderTopRightRadius: sectionproperties.borderTopRightRadius + 'px',
|
|
44857
|
+
borderBottomRightRadius: sectionproperties.borderBottomRightRadius + 'px',
|
|
44858
|
+
borderBottomLeftRadius: sectionproperties.borderBottomLeftRadius + 'px',
|
|
44859
|
+
paddingTop: sectionproperties.paddingTop + 'px',
|
|
44860
|
+
paddingLeft: langdetect == 'en' ? sectionproperties.paddingLeft + 'px' : '',
|
|
44861
|
+
paddingRight: langdetect == 'en' ? '' : sectionproperties.paddingLeft + 'px'
|
|
44862
|
+
},
|
|
44863
|
+
onClick: function onClick() {
|
|
44864
|
+
if (item.IsClickableimg == 'Yes') {
|
|
44865
|
+
if (item.clickableimg_page_route && item.clickableimg_page_route.length != 0) {
|
|
44866
|
+
routingcountext(item.clickableimg_page_route, false, '');
|
|
44867
|
+
} else {
|
|
44868
|
+
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + item.Clickableimg_getcoection);
|
|
44869
|
+
}
|
|
44870
|
+
}
|
|
44871
|
+
}
|
|
44872
|
+
}, /*#__PURE__*/React__default["default"].createElement(Imagekitimagecomp, {
|
|
44873
|
+
urlEndpoint: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint,
|
|
44874
|
+
publicKey: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimagepublickey,
|
|
44875
|
+
path: langdetect == 'en' ? '/tr:w-' + sectionproperties.imagetr_w + ',h-' + sectionproperties.imagetr_h + '/' + item.imageen : '/tr:w-' + sectionproperties.imagetr_w + ',h-' + sectionproperties.imagetr_h + '/' + item.imagear,
|
|
44876
|
+
style: {
|
|
44877
|
+
cursor: item.IsClickableimg == 'Yes' ? 'pointer' : 'default',
|
|
44878
|
+
objectFit: sectionproperties.bgcovercontain == 'Cover' ? 'cover' : 'contain',
|
|
44879
|
+
margin: 0,
|
|
44880
|
+
padding: 0,
|
|
44881
|
+
width: '100%',
|
|
44882
|
+
height: '100%'
|
|
44883
|
+
}
|
|
44884
|
+
}), SlideShowTextContainer(item)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
44885
|
+
"class": ' p-0 align-items-center d-none d-md-flex ',
|
|
44886
|
+
key: index,
|
|
44887
|
+
style: {
|
|
44888
|
+
cursor: item.IsClickableimg == 'Yes' ? 'pointer' : 'default',
|
|
44889
|
+
width: '100%',
|
|
44890
|
+
height: '100%',
|
|
44891
|
+
borderTopLeftRadius: sectionproperties.borderTopLeftRadius + 'px',
|
|
44892
|
+
borderTopRightRadius: sectionproperties.borderTopRightRadius + 'px',
|
|
44893
|
+
borderBottomRightRadius: sectionproperties.borderBottomRightRadius + 'px',
|
|
44894
|
+
borderBottomLeftRadius: sectionproperties.borderBottomLeftRadius + 'px',
|
|
44895
|
+
paddingTop: sectionproperties.paddingTop + 'px',
|
|
44896
|
+
paddingLeft: langdetect == 'en' ? sectionproperties.paddingLeft + 'px' : '',
|
|
44897
|
+
paddingRight: langdetect == 'en' ? '' : sectionproperties.paddingLeft + 'px'
|
|
44898
|
+
},
|
|
44899
|
+
onClick: function onClick() {
|
|
44900
|
+
if (item.IsClickableimg == 'Yes') {
|
|
44901
|
+
if (item.clickableimg_page_route && item.clickableimg_page_route.length != 0) {
|
|
44902
|
+
routingcountext(item.clickableimg_page_route, false, '');
|
|
44903
|
+
} else {
|
|
44904
|
+
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + item.Clickableimg_getcoection);
|
|
44905
|
+
}
|
|
44906
|
+
}
|
|
44907
|
+
}
|
|
44908
|
+
}, /*#__PURE__*/React__default["default"].createElement(Imagekitimagecomp, {
|
|
44909
|
+
urlEndpoint: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint,
|
|
44910
|
+
publicKey: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimagepublickey,
|
|
44911
|
+
path: langdetect == 'en' ? '/tr:w-' + sectionproperties.imagetr_w_resp + ',h-' + sectionproperties.imagetr_h_resp + '/' + item.image_resp_en : '/tr:w-' + sectionproperties.imagetr_w_resp + ',h-' + sectionproperties.imagetr_h_resp + '/' + item.image_resp_ar,
|
|
44912
|
+
style: {
|
|
44913
|
+
cursor: item.IsClickableimg == 'Yes' ? 'pointer' : 'default',
|
|
44914
|
+
objectFit: sectionproperties.bgcovercontainresponsive == 'Cover' ? 'cover' : 'contain',
|
|
44915
|
+
margin: 0,
|
|
44916
|
+
padding: 0,
|
|
44917
|
+
width: '100%',
|
|
44918
|
+
height: '100%'
|
|
44919
|
+
}
|
|
44920
|
+
}), SlideShowTextContainer(item)));
|
|
44921
|
+
})), cardarrayofobjs.length != 0 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
44922
|
+
style: {
|
|
44923
|
+
position: 'absolute',
|
|
44924
|
+
left: 0,
|
|
44925
|
+
bottom: 60,
|
|
44926
|
+
zIndex: 100
|
|
44927
|
+
},
|
|
44928
|
+
"class": "row m-0 w-100 "
|
|
44929
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
44930
|
+
"class": ' col-xl-12 p-0 col-lg-12 col-md-12 col-sm-12 w-100'
|
|
44931
|
+
}, /*#__PURE__*/React__default["default"].createElement(reactHorizontalScrollingMenu.ScrollMenu, {
|
|
44932
|
+
itemClassName: "slideshowCard"
|
|
44933
|
+
// LeftArrow={LeftArrow}
|
|
44934
|
+
// RightArrow={RightArrow}
|
|
44935
|
+
,
|
|
44936
|
+
transitionDuration: 500,
|
|
44937
|
+
transitionEase: easingFunctions['linear'],
|
|
44938
|
+
scrollContainerClassName: 'scrollmenuclasssubscrollbar'
|
|
44939
|
+
}, Object.keys(cardarrayofobjs).length != 0 && cardarrayofobjs.map(function (cardItem, cardIndex) {
|
|
44940
|
+
var id = cardIndex;
|
|
44941
|
+
return /*#__PURE__*/React__default["default"].createElement(CardsArrayOfObjects, {
|
|
44942
|
+
title: id,
|
|
44943
|
+
itemId: id,
|
|
44944
|
+
key: id,
|
|
44945
|
+
cardItem: cardItem,
|
|
44946
|
+
sectionproperties: sectionproperties,
|
|
44947
|
+
props: props
|
|
44948
|
+
});
|
|
44949
|
+
}))))))));
|
|
44507
44950
|
};
|
|
44508
44951
|
var easingFunctions = {
|
|
44509
44952
|
noEasing: undefined,
|
|
@@ -53431,22 +53874,18 @@ var Productcard_with_circularbg = function Productcard_with_circularbg(props) {
|
|
|
53431
53874
|
borderTopRightRadius: langdetect == 'en' ? sectionproperties.image_bordertoprightradius + 'px' : sectionproperties.image_bordertopleftradius + 'px',
|
|
53432
53875
|
overflow: 'hidden',
|
|
53433
53876
|
background: sectionproperties.image_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.image_bgcolor,
|
|
53434
|
-
padding: sectionproperties.imagepadding + 'px'
|
|
53877
|
+
padding: sectionproperties.imagepadding + 'px',
|
|
53878
|
+
border: sectionproperties.image_borderwidth + 'px solid ' + sectionproperties.image_bordercolor
|
|
53435
53879
|
}
|
|
53436
53880
|
}, /*#__PURE__*/React__default["default"].createElement(Imagekitimagecomp, {
|
|
53437
53881
|
urlEndpoint: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint,
|
|
53438
53882
|
publicKey: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimagepublickey,
|
|
53439
|
-
path: '/tr:w-
|
|
53883
|
+
path: '/tr:w-' + sectionproperties.imagetr_w + ',h-' + sectionproperties.imagetr_h + '/' + item.image,
|
|
53440
53884
|
loading: "lazy",
|
|
53441
53885
|
style: {
|
|
53442
|
-
height: '
|
|
53443
|
-
width: '
|
|
53444
|
-
objectFit: sectionproperties.bgcovercontain
|
|
53445
|
-
borderBottomLeftRadius: langdetect == 'en' ? sectionproperties.image_borderBottomLeftRadius + 'px' : sectionproperties.image_borderBottomRightRadius + 'px',
|
|
53446
|
-
borderBottomRightRadius: langdetect == 'en' ? sectionproperties.image_borderBottomRightRadius + 'px' : sectionproperties.image_borderBottomLeftRadius + 'px',
|
|
53447
|
-
borderTopLeftRadius: langdetect == 'en' ? sectionproperties.image_bordertopleftradius + 'px' : sectionproperties.image_bordertoprightradius + 'px',
|
|
53448
|
-
borderTopRightRadius: langdetect == 'en' ? sectionproperties.image_bordertoprightradius + 'px' : sectionproperties.image_bordertopleftradius + 'px',
|
|
53449
|
-
border: sectionproperties.image_borderwidth + 'px solid ' + sectionproperties.image_bordercolor
|
|
53886
|
+
height: sectionproperties.imageInnerWidth_Height + '%',
|
|
53887
|
+
width: sectionproperties.imageInnerWidth_Height + '%',
|
|
53888
|
+
objectFit: sectionproperties.bgcovercontain == 'Cover' ? 'cover' : 'contain'
|
|
53450
53889
|
}
|
|
53451
53890
|
}))), sectionproperties.prodNameShow == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
53452
53891
|
"class": "col-lg-12 d-flex align-items-center justify-content-center",
|