tabexseriescomponents 0.0.279 → 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 +335 -104
- package/dist/index.esm.js +336 -105
- package/dist/index.umd.js +336 -105
- package/package.json +1 -1
- package/{srclibrary31-3.zip → srclibrary.zip} +0 -0
package/dist/index.esm.js
CHANGED
|
@@ -121,7 +121,7 @@ import { AiOutlinePhone } from '@react-icons/all-files/ai/AiOutlinePhone';
|
|
|
121
121
|
import { GoLocation } from '@react-icons/all-files/go/GoLocation';
|
|
122
122
|
import { RiRoadMapLine } from '@react-icons/all-files/ri/RiRoadMapLine';
|
|
123
123
|
import { HiOutlineClock } from '@react-icons/all-files/hi/HiOutlineClock';
|
|
124
|
-
import Select$
|
|
124
|
+
import Select$3 from 'react-select';
|
|
125
125
|
import { IoIosArrowRoundForward } from '@react-icons/all-files/io/IoIosArrowRoundForward';
|
|
126
126
|
import { IoIosArrowRoundBack } from '@react-icons/all-files/io/IoIosArrowRoundBack';
|
|
127
127
|
import ReactPlayer from 'react-player';
|
|
@@ -3499,7 +3499,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
3499
3499
|
props.actions.TabexSectionsComponentsContext;
|
|
3500
3500
|
var FetchQueriesEngineContext = props.actions.FetchQueriesEngineContext;
|
|
3501
3501
|
var setFetchQueriesEngineContext = props.actions.setFetchQueriesEngineContext;
|
|
3502
|
-
|
|
3502
|
+
props.actions.serverbaselink;
|
|
3503
3503
|
var AddtoCartMutationContext = props.actions.AddtoCartMutationContext;
|
|
3504
3504
|
var ProductIdProdutInfoModalContext = props.actions.ProductIdProdutInfoModalContext;
|
|
3505
3505
|
var AddtoCartContext = props.actions.AddtoCartContext;
|
|
@@ -3649,15 +3649,15 @@ var Productinfo = function Productinfo(props) {
|
|
|
3649
3649
|
setfetchproductinfoObjContext(_objectSpread$1$({}, tempfetchproductinfoObjContext));
|
|
3650
3650
|
};
|
|
3651
3651
|
useEffect(function () {
|
|
3652
|
-
if (!fetchProductInfoQueryContext.isFetching && fetchProductInfoQueryContext.isSuccess) {
|
|
3652
|
+
if (!fetchProductInfoQueryContext.isFetching && fetchProductInfoQueryContext.isSuccess && ikimagecredcontext != undefined) {
|
|
3653
3653
|
if (fetchProductInfoQueryContext.data.data.productinfo != null) {
|
|
3654
3654
|
var _fetchProductInfoQuer, _fetchProductInfoQuer2, _fetchProductInfoQuer3, _fetchProductInfoQuer4, _fetchProductInfoQuer5, _fetchProductInfoQuer6, _fetchProductInfoQuer7;
|
|
3655
3655
|
var tempproductimagesarray = [];
|
|
3656
3656
|
if (Array.isArray(fetchProductInfoQueryContext.data.data.productinfo.productimages)) {
|
|
3657
3657
|
fetchProductInfoQueryContext.data.data.productinfo.productimages.forEach(function (arrayItem, arrayindex) {
|
|
3658
3658
|
var productimagesarrayobj = {
|
|
3659
|
-
thumbnail:
|
|
3660
|
-
original:
|
|
3659
|
+
thumbnail: (ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint) + arrayItem.path,
|
|
3660
|
+
original: (ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint) + arrayItem.path,
|
|
3661
3661
|
galleryid: arrayItem.galleryid
|
|
3662
3662
|
// description:
|
|
3663
3663
|
// // { dangerouslySetInnerHTML={{
|
|
@@ -3689,7 +3689,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
3689
3689
|
}
|
|
3690
3690
|
}
|
|
3691
3691
|
}
|
|
3692
|
-
}, [fetchProductInfoQueryContext.isSuccess, fetchProductInfoQueryContext.data]);
|
|
3692
|
+
}, [fetchProductInfoQueryContext.isSuccess, fetchProductInfoQueryContext.data, ikimagecredcontext]);
|
|
3693
3693
|
var clearchoosenvaluesbutkeepcurrentvalue = function clearchoosenvaluesbutkeepcurrentvalue(optionindex, optionvaluesitem, optionvaluesindex) {
|
|
3694
3694
|
var _productarr$data, _productarr$data$prod, _productarr$data$prod2;
|
|
3695
3695
|
var productarr = ProductInfoObj;
|
|
@@ -4993,7 +4993,7 @@ var Staticpagesrouter = function Staticpagesrouter(props) {
|
|
|
4993
4993
|
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; }
|
|
4994
4994
|
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(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; }
|
|
4995
4995
|
var Ordershistory = function Ordershistory(props) {
|
|
4996
|
-
var _props$actions2, _bgimagesarray$, _bgimagesarray$5, _bgimagesarray$6, _bgimagesarray$7, _bgimagesarray$8, _fetchorderhistoryQue4, _fetchorderhistoryQue5, _fetchorderhistoryQue6, _fetchorderhistoryQue7, _fetchorderhistoryQue8;
|
|
4996
|
+
var _props$actions2, _bgimagesarray$, _bgimagesarray$5, _bgimagesarray$6, _bgimagesarray$7, _bgimagesarray$8, _fetchorderhistoryQue4, _fetchorderhistoryQue5, _fetchorderhistoryQue6, _fetchorderhistoryQue7, _fetchorderhistoryQue8, _fetchorderhistoryQue9, _fetchorderhistoryQue10, _fetchorderhistoryQue11, _fetchorderhistoryQue12, _fetchorderhistoryQue13, _fetchorderhistoryQue14;
|
|
4997
4997
|
var lang = props.actions.lang;
|
|
4998
4998
|
var langdetect = props.actions.langdetect;
|
|
4999
4999
|
var routingcountext = props.actions.routingcountext;
|
|
@@ -5808,7 +5808,20 @@ var Ordershistory = function Ordershistory(props) {
|
|
|
5808
5808
|
className: "col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0"
|
|
5809
5809
|
}, /*#__PURE__*/React.createElement("p", {
|
|
5810
5810
|
className: "".concat(orderhistory_cssstyles.summarysectionstyles) + ' m-0 p-0 text-capitalize '
|
|
5811
|
-
}, 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].
|
|
5811
|
+
}, 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.createElement("div", {
|
|
5812
|
+
className: "row m-0 w-100 mb-2"
|
|
5813
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
5814
|
+
className: "col-lg-6 col-md-6 col-sm-6 d-flex p-0"
|
|
5815
|
+
}, /*#__PURE__*/React.createElement("p", {
|
|
5816
|
+
className: "".concat(orderhistory_cssstyles.summarysectionstyles) + ' m-0 p-0 d-flex align-items-center '
|
|
5817
|
+
}, langdetect == 'en' ? 'Wallet discount' : 'خصم المحفظة')), /*#__PURE__*/React.createElement("div", {
|
|
5818
|
+
className: "col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0"
|
|
5819
|
+
}, /*#__PURE__*/React.createElement("p", {
|
|
5820
|
+
className: "".concat(orderhistory_cssstyles.summarysectionstyles) + ' m-0 p-0 text-capitalize ',
|
|
5821
|
+
style: {
|
|
5822
|
+
color: 'red'
|
|
5823
|
+
}
|
|
5824
|
+
}, 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.createElement("div", {
|
|
5812
5825
|
className: "row m-0 w-100 mb-2"
|
|
5813
5826
|
}, /*#__PURE__*/React.createElement("div", {
|
|
5814
5827
|
className: "col-lg-6 col-md-6 col-sm-6 d-flex p-0"
|
|
@@ -7064,11 +7077,11 @@ var defaultstylestranslated = {
|
|
|
7064
7077
|
|
|
7065
7078
|
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; }
|
|
7066
7079
|
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(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; }
|
|
7067
|
-
var Select$
|
|
7080
|
+
var Select$2 = /*#__PURE__*/React.lazy(function () {
|
|
7068
7081
|
return import('react-select');
|
|
7069
7082
|
});
|
|
7070
7083
|
var Checkout = function Checkout(props) {
|
|
7071
|
-
var _css, _checkoutstyles,
|
|
7084
|
+
var _css, _checkoutstyles, _fetchcustomercartQue91, _fetchcustomercartQue92, _fetchcustomercartQue93, _fetchcustomercartQue94, _fetchcustomercartQue95, _fetchcustomercartQue96, _fetchcustomercartQue105, _fetchcustomercartQue106, _fetchcustomercartQue107, _fetchcustomercartQue108, _fetchcustomercartQue109, _fetchcustomercartQue110, _fetchcustomercartQue111, _fetchcustomercartQue112, _fetchcustomercartQue113, _fetchcustomercartQue116, _fetchcustomercartQue117, _fetchcustomercartQue120, _fetchcustomercartQue121, _fetchcustomercartQue124, _fetchcustomercartQue125;
|
|
7072
7085
|
var _useState = useState(null),
|
|
7073
7086
|
_useState2 = _slicedToArray(_useState, 2),
|
|
7074
7087
|
timer = _useState2[0],
|
|
@@ -7082,6 +7095,7 @@ var Checkout = function Checkout(props) {
|
|
|
7082
7095
|
var templatepropcontext = props.actions.templatepropcontext;
|
|
7083
7096
|
var fetchcustomercartQueryContext = props.actions.fetchcustomercartQueryContext;
|
|
7084
7097
|
var FetchQueriesEngineContext = props.actions.FetchQueriesEngineContext;
|
|
7098
|
+
var GeneralAPIMutationContext = props.actions.GeneralAPIMutationContext;
|
|
7085
7099
|
var setFetchQueriesEngineContext = props.actions.setFetchQueriesEngineContext;
|
|
7086
7100
|
var fetchTabexCountriesQueryContext = props.actions.fetchTabexCountriesQueryContext;
|
|
7087
7101
|
var fetchTabexStatesQueryContext = props.actions.fetchTabexStatesQueryContext;
|
|
@@ -7193,6 +7207,19 @@ var Checkout = function Checkout(props) {
|
|
|
7193
7207
|
ChooseState_CountryMutationContext.mutate(payloadobj);
|
|
7194
7208
|
}
|
|
7195
7209
|
};
|
|
7210
|
+
var usewalletpoints = function usewalletpoints() {
|
|
7211
|
+
GeneralAPIMutationContext.mutate({
|
|
7212
|
+
endpointurl: '/usewalletpoints',
|
|
7213
|
+
mutateSuccesscallback: function mutateSuccesscallback(data, variables) {
|
|
7214
|
+
if (data.data.status) {
|
|
7215
|
+
NotificationManager.success('', 'Success');
|
|
7216
|
+
fetchcustomercartQueryContext.refetch();
|
|
7217
|
+
} else {
|
|
7218
|
+
NotificationManager.warning('', data.data.reason);
|
|
7219
|
+
}
|
|
7220
|
+
}
|
|
7221
|
+
});
|
|
7222
|
+
};
|
|
7196
7223
|
var checkoutstyles = (_checkoutstyles = {
|
|
7197
7224
|
Salepricestyless: css({
|
|
7198
7225
|
fontSize: sectionproperties.prodsalepriceFontSize + 'px',
|
|
@@ -7361,7 +7388,7 @@ var Checkout = function Checkout(props) {
|
|
|
7361
7388
|
border: sectionproperties.innersectionborderWidth + 'px solid ' + sectionproperties.innersectionborderColor
|
|
7362
7389
|
})), _checkoutstyles);
|
|
7363
7390
|
var Mycart = function Mycart() {
|
|
7364
|
-
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;
|
|
7391
|
+
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;
|
|
7365
7392
|
return /*#__PURE__*/React.createElement("div", {
|
|
7366
7393
|
className: "row m-0 w-100"
|
|
7367
7394
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -7529,7 +7556,39 @@ var Checkout = function Checkout(props) {
|
|
|
7529
7556
|
width: "20px",
|
|
7530
7557
|
height: "20px",
|
|
7531
7558
|
duration: "1s"
|
|
7532
|
-
})))))), /*#__PURE__*/React.createElement("div", {
|
|
7559
|
+
})))))), (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.createElement("div", {
|
|
7560
|
+
className: "row m-0 w-100"
|
|
7561
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
7562
|
+
className: "col-lg-6 col-md-6 col-sm-6 p-0"
|
|
7563
|
+
}, /*#__PURE__*/React.createElement("p", {
|
|
7564
|
+
className: "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 d-flex align-items-center wordbreak '
|
|
7565
|
+
}, langdetect == 'en' ? 'Wallet balance' : 'حساب المحفظة')), /*#__PURE__*/React.createElement("div", {
|
|
7566
|
+
className: "col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0"
|
|
7567
|
+
}, /*#__PURE__*/React.createElement("p", {
|
|
7568
|
+
className: langdetect == 'en' ? "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-right ' : "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-left '
|
|
7569
|
+
}, 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.createElement("div", {
|
|
7570
|
+
className: "col-lg-12 col-md-12 col-sm-6 d-flex justify-content-center p-0"
|
|
7571
|
+
}, /*#__PURE__*/React.createElement("p", {
|
|
7572
|
+
style: {
|
|
7573
|
+
color: 'green',
|
|
7574
|
+
cursor: 'pointer'
|
|
7575
|
+
},
|
|
7576
|
+
onClick: function onClick() {
|
|
7577
|
+
usewalletpoints();
|
|
7578
|
+
}
|
|
7579
|
+
}, 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.createElement("div", {
|
|
7580
|
+
className: "row m-0 w-100"
|
|
7581
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
7582
|
+
className: "col-lg-12 col-md-12 col-sm-6 d-flex justify-content-center p-0"
|
|
7583
|
+
}, /*#__PURE__*/React.createElement("p", {
|
|
7584
|
+
style: {
|
|
7585
|
+
color: 'red',
|
|
7586
|
+
cursor: 'pointer'
|
|
7587
|
+
},
|
|
7588
|
+
onClick: function onClick() {
|
|
7589
|
+
usewalletpoints();
|
|
7590
|
+
}
|
|
7591
|
+
}, langdetect == 'en' ? 'Remove Points' : 'حذف النقاط'))), /*#__PURE__*/React.createElement("div", {
|
|
7533
7592
|
className: "row m-0 w-100"
|
|
7534
7593
|
}, /*#__PURE__*/React.createElement("div", {
|
|
7535
7594
|
className: "col-lg-6 col-md-6 col-sm-6 p-0"
|
|
@@ -7539,7 +7598,20 @@ var Checkout = function Checkout(props) {
|
|
|
7539
7598
|
className: "col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0"
|
|
7540
7599
|
}, /*#__PURE__*/React.createElement("p", {
|
|
7541
7600
|
className: langdetect == 'en' ? "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-right ' : "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-left '
|
|
7542
|
-
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', parseFloat(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (
|
|
7601
|
+
}, 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.createElement("div", {
|
|
7602
|
+
className: "row m-0 w-100"
|
|
7603
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
7604
|
+
className: "col-lg-6 col-md-6 col-sm-6 p-0"
|
|
7605
|
+
}, /*#__PURE__*/React.createElement("p", {
|
|
7606
|
+
className: "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 d-flex align-items-center wordbreak '
|
|
7607
|
+
}, "Wallet points used")), /*#__PURE__*/React.createElement("div", {
|
|
7608
|
+
className: "col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0"
|
|
7609
|
+
}, /*#__PURE__*/React.createElement("p", {
|
|
7610
|
+
className: langdetect == 'en' ? "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-right ' : "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-left ',
|
|
7611
|
+
style: {
|
|
7612
|
+
color: 'red'
|
|
7613
|
+
}
|
|
7614
|
+
}, 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.createElement("div", {
|
|
7543
7615
|
className: "col-lg-12 p-0 mb-1"
|
|
7544
7616
|
}, /*#__PURE__*/React.createElement("div", {
|
|
7545
7617
|
className: "row m-0 w-100"
|
|
@@ -7551,7 +7623,7 @@ var Checkout = function Checkout(props) {
|
|
|
7551
7623
|
className: "col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0"
|
|
7552
7624
|
}, /*#__PURE__*/React.createElement("p", {
|
|
7553
7625
|
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 '
|
|
7554
|
-
}, (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (
|
|
7626
|
+
}, (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.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.createElement("span", null, "0"))))), sectionproperties.hideshipping == 'Show' && /*#__PURE__*/React.createElement("div", {
|
|
7555
7627
|
className: "col-lg-12 p-0"
|
|
7556
7628
|
}, /*#__PURE__*/React.createElement("div", {
|
|
7557
7629
|
className: "row m-0 w-100"
|
|
@@ -7559,11 +7631,11 @@ var Checkout = function Checkout(props) {
|
|
|
7559
7631
|
className: "col-lg-6 col-md-6 col-sm-6 p-0"
|
|
7560
7632
|
}, /*#__PURE__*/React.createElement("p", {
|
|
7561
7633
|
className: "".concat(checkoutstyles.summarysectionstyles, " ") + ' m-0 p-0 d-flex align-items-start wordbreak '
|
|
7562
|
-
}, lang.shippingfees)), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (
|
|
7634
|
+
}, 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.createElement("div", {
|
|
7563
7635
|
className: "col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0"
|
|
7564
7636
|
}, /*#__PURE__*/React.createElement("p", {
|
|
7565
7637
|
className: langdetect == 'en' ? "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-right ' : "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-left '
|
|
7566
|
-
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', parseFloat(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (
|
|
7638
|
+
}, 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.createElement("div", {
|
|
7567
7639
|
className: "col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0"
|
|
7568
7640
|
}, /*#__PURE__*/React.createElement("p", {
|
|
7569
7641
|
className: "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 d-flex align-items-start wordbreak ',
|
|
@@ -7602,7 +7674,7 @@ var Checkout = function Checkout(props) {
|
|
|
7602
7674
|
textTransform: sectionproperties.total_texttransform,
|
|
7603
7675
|
color: sectionproperties.total_color
|
|
7604
7676
|
}
|
|
7605
|
-
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', parseFloat(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (
|
|
7677
|
+
}, 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.createElement("div", {
|
|
7606
7678
|
"class": "col-lg-12 p-0 my-2 p-2 allcentered mb-3",
|
|
7607
7679
|
style: {
|
|
7608
7680
|
background: '#eee',
|
|
@@ -7632,7 +7704,7 @@ var Checkout = function Checkout(props) {
|
|
|
7632
7704
|
width: "20px",
|
|
7633
7705
|
height: "20px",
|
|
7634
7706
|
duration: "1s"
|
|
7635
|
-
}), !AddOrderMutationContext.isLoading ? (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (
|
|
7707
|
+
}), !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 : ''))))));
|
|
7636
7708
|
};
|
|
7637
7709
|
return /*#__PURE__*/React.createElement("div", {
|
|
7638
7710
|
className: 'row m-0 w-100 d-flex justify-content-center p-sm-0 '
|
|
@@ -7789,7 +7861,7 @@ var Checkout = function Checkout(props) {
|
|
|
7789
7861
|
}, lang.name), /*#__PURE__*/React.createElement("input", {
|
|
7790
7862
|
type: 'text',
|
|
7791
7863
|
className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
|
|
7792
|
-
value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (
|
|
7864
|
+
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,
|
|
7793
7865
|
onChange: function onChange(event) {
|
|
7794
7866
|
cartinfoupdater('name', event.target.value);
|
|
7795
7867
|
},
|
|
@@ -7804,7 +7876,7 @@ var Checkout = function Checkout(props) {
|
|
|
7804
7876
|
}, langdetect == 'en' ? 'Phone Number' : 'رقم الهاتف'), /*#__PURE__*/React.createElement("input", {
|
|
7805
7877
|
type: 'text',
|
|
7806
7878
|
className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
|
|
7807
|
-
value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (
|
|
7879
|
+
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,
|
|
7808
7880
|
onChange: function onChange(event) {
|
|
7809
7881
|
cartinfoupdater('mobile', event.target.value);
|
|
7810
7882
|
},
|
|
@@ -7819,7 +7891,7 @@ var Checkout = function Checkout(props) {
|
|
|
7819
7891
|
}, lang.email), /*#__PURE__*/React.createElement("input", {
|
|
7820
7892
|
type: 'text',
|
|
7821
7893
|
className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
|
|
7822
|
-
value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (
|
|
7894
|
+
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,
|
|
7823
7895
|
onChange: function onChange(event) {
|
|
7824
7896
|
cartinfoupdater('email', event.target.value);
|
|
7825
7897
|
},
|
|
@@ -7841,7 +7913,7 @@ var Checkout = function Checkout(props) {
|
|
|
7841
7913
|
width: "20px",
|
|
7842
7914
|
height: "20px",
|
|
7843
7915
|
duration: "1s"
|
|
7844
|
-
})), !fetchTabexCountriesQueryContext.isFetching && fetchTabexCountriesQueryContext.isSuccess && /*#__PURE__*/React.createElement(Select$
|
|
7916
|
+
})), !fetchTabexCountriesQueryContext.isFetching && fetchTabexCountriesQueryContext.isSuccess && /*#__PURE__*/React.createElement(Select$2, {
|
|
7845
7917
|
options: fetchTabexCountriesQueryContext.data.data.countries,
|
|
7846
7918
|
getOptionLabel: function getOptionLabel(option) {
|
|
7847
7919
|
var crname = '';
|
|
@@ -7860,8 +7932,8 @@ var Checkout = function Checkout(props) {
|
|
|
7860
7932
|
return option.id;
|
|
7861
7933
|
},
|
|
7862
7934
|
value: fetchTabexCountriesQueryContext.data.data.countries.filter(function (option) {
|
|
7863
|
-
var
|
|
7864
|
-
return option.id == (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (
|
|
7935
|
+
var _fetchcustomercartQue97, _fetchcustomercartQue98;
|
|
7936
|
+
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);
|
|
7865
7937
|
}),
|
|
7866
7938
|
onChange: function onChange(option) {
|
|
7867
7939
|
var tempFetchTabexStatesPayloadobjContext = _objectSpread$1V({}, FetchTabexStatesPayloadobjContext);
|
|
@@ -7884,7 +7956,7 @@ var Checkout = function Checkout(props) {
|
|
|
7884
7956
|
width: "20px",
|
|
7885
7957
|
height: "20px",
|
|
7886
7958
|
duration: "1s"
|
|
7887
|
-
})), !fetchTabexStatesQueryContext.isFetching && fetchTabexStatesQueryContext.isSuccess && /*#__PURE__*/React.createElement(Select$
|
|
7959
|
+
})), !fetchTabexStatesQueryContext.isFetching && fetchTabexStatesQueryContext.isSuccess && /*#__PURE__*/React.createElement(Select$2, {
|
|
7888
7960
|
options: fetchTabexStatesQueryContext.data.data.states
|
|
7889
7961
|
// getOptionLabel={(option) => option.name}
|
|
7890
7962
|
// getOptionValue={(option) => option.id}
|
|
@@ -7906,12 +7978,12 @@ var Checkout = function Checkout(props) {
|
|
|
7906
7978
|
return option.id;
|
|
7907
7979
|
},
|
|
7908
7980
|
value: fetchTabexStatesQueryContext.data.data.states.filter(function (option) {
|
|
7909
|
-
var
|
|
7910
|
-
return option.id == (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (
|
|
7981
|
+
var _fetchcustomercartQue99, _fetchcustomercartQue100;
|
|
7982
|
+
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);
|
|
7911
7983
|
}),
|
|
7912
7984
|
onChange: function onChange(option) {
|
|
7913
|
-
var
|
|
7914
|
-
if (option.id.length != 0 && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (
|
|
7985
|
+
var _fetchcustomercartQue101, _fetchcustomercartQue102;
|
|
7986
|
+
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) {
|
|
7915
7987
|
var tempFetchTabexStatesPayloadobjContext = _objectSpread$1V({}, FetchTabexStatesPayloadobjContext);
|
|
7916
7988
|
tempFetchTabexStatesPayloadobjContext.functype = 'cities';
|
|
7917
7989
|
tempFetchTabexStatesPayloadobjContext.state_id = option.id;
|
|
@@ -7935,7 +8007,7 @@ var Checkout = function Checkout(props) {
|
|
|
7935
8007
|
width: "20px",
|
|
7936
8008
|
height: "20px",
|
|
7937
8009
|
duration: "1s"
|
|
7938
|
-
})), !fetchTabexCitiesQueryContext.isFetching && fetchTabexCitiesQueryContext.isSuccess && /*#__PURE__*/React.createElement(Select$
|
|
8010
|
+
})), !fetchTabexCitiesQueryContext.isFetching && fetchTabexCitiesQueryContext.isSuccess && /*#__PURE__*/React.createElement(Select$2, {
|
|
7939
8011
|
options: fetchTabexCitiesQueryContext.data.data.cities,
|
|
7940
8012
|
getOptionLabel: function getOptionLabel(option) {
|
|
7941
8013
|
var crname = '';
|
|
@@ -7954,8 +8026,8 @@ var Checkout = function Checkout(props) {
|
|
|
7954
8026
|
return option.id;
|
|
7955
8027
|
},
|
|
7956
8028
|
value: fetchTabexCitiesQueryContext.data.data.cities.filter(function (option) {
|
|
7957
|
-
var
|
|
7958
|
-
return option.id == (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (
|
|
8029
|
+
var _fetchcustomercartQue103, _fetchcustomercartQue104;
|
|
8030
|
+
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);
|
|
7959
8031
|
}),
|
|
7960
8032
|
onChange: function onChange(option) {
|
|
7961
8033
|
cartinfoupdater('cityid', option.id);
|
|
@@ -7970,7 +8042,7 @@ var Checkout = function Checkout(props) {
|
|
|
7970
8042
|
}, lang.shippingaddress), /*#__PURE__*/React.createElement(TextareaAutosize, {
|
|
7971
8043
|
type: 'text',
|
|
7972
8044
|
className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
|
|
7973
|
-
value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (
|
|
8045
|
+
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,
|
|
7974
8046
|
onChange: function onChange(event) {
|
|
7975
8047
|
cartinfoupdater('address', event.target.value);
|
|
7976
8048
|
},
|
|
@@ -7985,7 +8057,7 @@ var Checkout = function Checkout(props) {
|
|
|
7985
8057
|
}, langdetect == 'en' ? 'Notes' : 'الملاحظات'), /*#__PURE__*/React.createElement(TextareaAutosize, {
|
|
7986
8058
|
type: 'text',
|
|
7987
8059
|
className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
|
|
7988
|
-
value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (
|
|
8060
|
+
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,
|
|
7989
8061
|
onChange: function onChange(event) {
|
|
7990
8062
|
cartinfoupdater('notes', event.target.value);
|
|
7991
8063
|
},
|
|
@@ -8000,7 +8072,7 @@ var Checkout = function Checkout(props) {
|
|
|
8000
8072
|
}, langdetect == 'en' ? 'Affiliate code' : 'رمز المسوق'), /*#__PURE__*/React.createElement("input", {
|
|
8001
8073
|
type: 'number',
|
|
8002
8074
|
className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
|
|
8003
|
-
value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (
|
|
8075
|
+
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,
|
|
8004
8076
|
onChange: function onChange(event) {
|
|
8005
8077
|
cartinfoupdater('aff_code', event.target.value);
|
|
8006
8078
|
},
|
|
@@ -8031,10 +8103,10 @@ var Checkout = function Checkout(props) {
|
|
|
8031
8103
|
id: 'codcheckbox',
|
|
8032
8104
|
type: "checkbox",
|
|
8033
8105
|
className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
|
|
8034
|
-
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (
|
|
8106
|
+
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,
|
|
8035
8107
|
onChange: function onChange() {
|
|
8036
|
-
var
|
|
8037
|
-
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (
|
|
8108
|
+
var _fetchcustomercartQue114, _fetchcustomercartQue115;
|
|
8109
|
+
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') {
|
|
8038
8110
|
cartinfoupdater('paymentmethod', 'cod');
|
|
8039
8111
|
}
|
|
8040
8112
|
}
|
|
@@ -8053,10 +8125,10 @@ var Checkout = function Checkout(props) {
|
|
|
8053
8125
|
}, /*#__PURE__*/React.createElement("input", {
|
|
8054
8126
|
type: "checkbox",
|
|
8055
8127
|
className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
|
|
8056
|
-
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (
|
|
8128
|
+
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,
|
|
8057
8129
|
onChange: function onChange() {
|
|
8058
|
-
var
|
|
8059
|
-
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (
|
|
8130
|
+
var _fetchcustomercartQue118, _fetchcustomercartQue119;
|
|
8131
|
+
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') {
|
|
8060
8132
|
cartinfoupdater('paymentmethod', 'cardondelivery');
|
|
8061
8133
|
}
|
|
8062
8134
|
}
|
|
@@ -8074,10 +8146,10 @@ var Checkout = function Checkout(props) {
|
|
|
8074
8146
|
}, /*#__PURE__*/React.createElement("input", {
|
|
8075
8147
|
type: "checkbox",
|
|
8076
8148
|
className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
|
|
8077
|
-
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (
|
|
8149
|
+
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,
|
|
8078
8150
|
onChange: function onChange() {
|
|
8079
|
-
var
|
|
8080
|
-
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (
|
|
8151
|
+
var _fetchcustomercartQue122, _fetchcustomercartQue123;
|
|
8152
|
+
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') {
|
|
8081
8153
|
cartinfoupdater('paymentmethod', 'onlinepayment');
|
|
8082
8154
|
}
|
|
8083
8155
|
}
|
|
@@ -8088,7 +8160,7 @@ var Checkout = function Checkout(props) {
|
|
|
8088
8160
|
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"
|
|
8089
8161
|
})), /*#__PURE__*/React.createElement("p", {
|
|
8090
8162
|
className: "".concat(formstyles.checkbox_label) + ' ml-2 mb-0 wordbreak cursor-pointer mr-2 '
|
|
8091
|
-
}, " ", lang.onlinepayment)))))), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (
|
|
8163
|
+
}, " ", 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.createElement("div", {
|
|
8092
8164
|
className: "col-lg-12 p-0 w-100 mb-3"
|
|
8093
8165
|
}, /*#__PURE__*/React.createElement("div", {
|
|
8094
8166
|
style: {
|
|
@@ -8195,7 +8267,7 @@ var Checkout = function Checkout(props) {
|
|
|
8195
8267
|
|
|
8196
8268
|
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; }
|
|
8197
8269
|
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(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; }
|
|
8198
|
-
var Select = /*#__PURE__*/React.lazy(function () {
|
|
8270
|
+
var Select$1 = /*#__PURE__*/React.lazy(function () {
|
|
8199
8271
|
return import('react-select');
|
|
8200
8272
|
});
|
|
8201
8273
|
var CustomerInformationForm = function CustomerInformationForm(props) {
|
|
@@ -8562,7 +8634,7 @@ var CustomerInformationForm = function CustomerInformationForm(props) {
|
|
|
8562
8634
|
width: "20px",
|
|
8563
8635
|
height: "20px",
|
|
8564
8636
|
duration: "1s"
|
|
8565
|
-
})), !fetchTabexCountriesQueryContext.isFetching && fetchTabexCountriesQueryContext.isSuccess && /*#__PURE__*/React.createElement(Select, {
|
|
8637
|
+
})), !fetchTabexCountriesQueryContext.isFetching && fetchTabexCountriesQueryContext.isSuccess && /*#__PURE__*/React.createElement(Select$1, {
|
|
8566
8638
|
options: fetchTabexCountriesQueryContext.data.data.countries,
|
|
8567
8639
|
getOptionLabel: function getOptionLabel(option) {
|
|
8568
8640
|
var crname = '';
|
|
@@ -8610,11 +8682,11 @@ var CustomerInformationForm = function CustomerInformationForm(props) {
|
|
|
8610
8682
|
width: "20px",
|
|
8611
8683
|
height: "20px",
|
|
8612
8684
|
duration: "1s"
|
|
8613
|
-
})), FetchTabexStatesPayloadobjContext.country_id == '' && /*#__PURE__*/React.createElement(Select, {
|
|
8685
|
+
})), FetchTabexStatesPayloadobjContext.country_id == '' && /*#__PURE__*/React.createElement(Select$1, {
|
|
8614
8686
|
styles: langdetect == 'en' ? defaultstyles : defaultstylestranslated,
|
|
8615
8687
|
placeholder: lang.choosestategov,
|
|
8616
8688
|
isSearchable: true
|
|
8617
|
-
}), !fetchTabexStatesQueryContext.isFetching && fetchTabexStatesQueryContext.isSuccess && /*#__PURE__*/React.createElement(Select, {
|
|
8689
|
+
}), !fetchTabexStatesQueryContext.isFetching && fetchTabexStatesQueryContext.isSuccess && /*#__PURE__*/React.createElement(Select$1, {
|
|
8618
8690
|
options: fetchTabexStatesQueryContext.data.data.states,
|
|
8619
8691
|
getOptionLabel: function getOptionLabel(option) {
|
|
8620
8692
|
var crname = '';
|
|
@@ -8662,11 +8734,11 @@ var CustomerInformationForm = function CustomerInformationForm(props) {
|
|
|
8662
8734
|
width: "20px",
|
|
8663
8735
|
height: "20px",
|
|
8664
8736
|
duration: "1s"
|
|
8665
|
-
})), FetchTabexStatesPayloadobjContext.country_id == '' && /*#__PURE__*/React.createElement(Select, {
|
|
8737
|
+
})), FetchTabexStatesPayloadobjContext.country_id == '' && /*#__PURE__*/React.createElement(Select$1, {
|
|
8666
8738
|
placeholder: lang.choosecity,
|
|
8667
8739
|
styles: langdetect == 'en' ? defaultstyles : defaultstylestranslated,
|
|
8668
8740
|
isSearchable: true
|
|
8669
|
-
}), !fetchTabexCitiesQueryContext.isFetching && fetchTabexCitiesQueryContext.isSuccess && /*#__PURE__*/React.createElement(Select, {
|
|
8741
|
+
}), !fetchTabexCitiesQueryContext.isFetching && fetchTabexCitiesQueryContext.isSuccess && /*#__PURE__*/React.createElement(Select$1, {
|
|
8670
8742
|
options: fetchTabexCitiesQueryContext.data.data.cities,
|
|
8671
8743
|
getOptionLabel: function getOptionLabel(option) {
|
|
8672
8744
|
var crname = '';
|
|
@@ -10857,8 +10929,11 @@ styleInject(css_248z$B);
|
|
|
10857
10929
|
|
|
10858
10930
|
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; }
|
|
10859
10931
|
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(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; }
|
|
10932
|
+
var Select = /*#__PURE__*/React.lazy(function () {
|
|
10933
|
+
return import('react-select');
|
|
10934
|
+
});
|
|
10860
10935
|
var Filter$1 = function Filter(props) {
|
|
10861
|
-
var _authdetailsContext$i;
|
|
10936
|
+
var _authdetailsContext$i, _fetchTabexCountriesQ, _fetchTabexCountriesQ2, _fetchTabexStatesQuer, _fetchTabexStatesQuer2, _fetchTabexStatesQuer3, _fetchTabexStatesQuer4, _fetchTabexCitiesQuer, _fetchTabexCitiesQuer2, _fetchTabexCitiesQuer3, _fetchTabexCitiesQuer4;
|
|
10862
10937
|
var lang = props.actions.lang;
|
|
10863
10938
|
var langdetect = props.actions.langdetect;
|
|
10864
10939
|
props.actions.productfiltercontext;
|
|
@@ -10869,6 +10944,13 @@ var Filter$1 = function Filter(props) {
|
|
|
10869
10944
|
var routingcountext = props.actions.routingcountext;
|
|
10870
10945
|
var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
|
|
10871
10946
|
var ikimagecredcontext = props.actions.ikimagecredcontext;
|
|
10947
|
+
var fetchTabexCountriesQueryContext = props.actions.fetchTabexCountriesQueryContext;
|
|
10948
|
+
var FetchQueriesEngineContext = props.actions.FetchQueriesEngineContext;
|
|
10949
|
+
var setFetchQueriesEngineContext = props.actions.setFetchQueriesEngineContext;
|
|
10950
|
+
var fetchTabexCitiesQueryContext = props.actions.fetchTabexCitiesQueryContext;
|
|
10951
|
+
var fetchTabexStatesQueryContext = props.actions.fetchTabexStatesQueryContext;
|
|
10952
|
+
var FetchTabexStatesPayloadobjContext = props.actions.FetchTabexStatesPayloadobjContext;
|
|
10953
|
+
var setFetchTabexStatesPayloadobjContext = props.actions.setFetchTabexStatesPayloadobjContext;
|
|
10872
10954
|
var _useState = useState(''),
|
|
10873
10955
|
_useState2 = _slicedToArray(_useState, 2),
|
|
10874
10956
|
sectionproperties = _useState2[0],
|
|
@@ -10896,9 +10978,6 @@ var Filter$1 = function Filter(props) {
|
|
|
10896
10978
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
10897
10979
|
raterangevalue = _useState12[0],
|
|
10898
10980
|
setraterangevalue = _useState12[1];
|
|
10899
|
-
props.actions.fetchTabexCountriesQueryContext;
|
|
10900
|
-
props.actions.FetchQueriesEngineContext;
|
|
10901
|
-
props.actions.setFetchQueriesEngineContext;
|
|
10902
10981
|
var timeoutRef = React.useRef(null);
|
|
10903
10982
|
var _useState13 = useState([{
|
|
10904
10983
|
payloadvalue: 'sortprice',
|
|
@@ -10960,19 +11039,28 @@ var Filter$1 = function Filter(props) {
|
|
|
10960
11039
|
}
|
|
10961
11040
|
}, 500);
|
|
10962
11041
|
}, [raterangevalue]);
|
|
10963
|
-
|
|
10964
|
-
|
|
10965
|
-
|
|
10966
|
-
|
|
10967
|
-
|
|
10968
|
-
|
|
10969
|
-
|
|
10970
|
-
|
|
10971
|
-
|
|
10972
|
-
|
|
10973
|
-
// alert(JSON.stringify(FetchQueriesEngineContext));
|
|
10974
|
-
// }, []);
|
|
11042
|
+
useEffect(function () {
|
|
11043
|
+
if (fetchTabexStatesQueryContext.isSuccess) {
|
|
11044
|
+
if (ProductFilterObjContext.stateid != undefined && ProductFilterObjContext.stateid != null && ProductFilterObjContext.stateid != '' && ProductFilterObjContext.stateid != 'all') {
|
|
11045
|
+
var tempFetchTabexStatesPayloadobjContext = _objectSpread$1N({}, FetchTabexStatesPayloadobjContext);
|
|
11046
|
+
tempFetchTabexStatesPayloadobjContext.functype = 'cities';
|
|
11047
|
+
tempFetchTabexStatesPayloadobjContext.state_id = ProductFilterObjContext.stateid;
|
|
11048
|
+
setFetchTabexStatesPayloadobjContext(_objectSpread$1N({}, tempFetchTabexStatesPayloadobjContext));
|
|
11049
|
+
}
|
|
11050
|
+
}
|
|
11051
|
+
}, [fetchTabexStatesQueryContext.isSuccess]);
|
|
10975
11052
|
var filterupdater = function filterupdater() {
|
|
11053
|
+
setTimeout(function () {
|
|
11054
|
+
var tempFetchQueriesEngineContext = _objectSpread$1N({}, FetchQueriesEngineContext);
|
|
11055
|
+
tempFetchQueriesEngineContext.fetchtabexcountries = true;
|
|
11056
|
+
setFetchQueriesEngineContext(tempFetchQueriesEngineContext);
|
|
11057
|
+
}, 100);
|
|
11058
|
+
if (ProductFilterObjContext.countryid != undefined && ProductFilterObjContext.countryid != null && ProductFilterObjContext.countryid != '' && ProductFilterObjContext.countryid != 'all') {
|
|
11059
|
+
var tempFetchTabexStatesPayloadobjContext = _objectSpread$1N({}, FetchTabexStatesPayloadobjContext);
|
|
11060
|
+
tempFetchTabexStatesPayloadobjContext.functype = 'states';
|
|
11061
|
+
tempFetchTabexStatesPayloadobjContext.country_id = ProductFilterObjContext.countryid;
|
|
11062
|
+
setFetchTabexStatesPayloadobjContext(_objectSpread$1N({}, tempFetchTabexStatesPayloadobjContext));
|
|
11063
|
+
}
|
|
10976
11064
|
if (instfilters.length != 0) {
|
|
10977
11065
|
var _ProductFilterObjCont;
|
|
10978
11066
|
var tempinstfilters = _toConsumableArray(instfilters);
|
|
@@ -11058,8 +11146,10 @@ var Filter$1 = function Filter(props) {
|
|
|
11058
11146
|
}
|
|
11059
11147
|
tempfetchproductsfilerobjcontext.page = 0;
|
|
11060
11148
|
setProductFilterObjContext(_objectSpread$1N({}, tempfetchproductsfilerobjcontext));
|
|
11061
|
-
|
|
11149
|
+
filterrouting(tempfetchproductsfilerobjcontext);
|
|
11150
|
+
// routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, encodeURIComponent(JSON.stringify(tempfetchproductsfilerobjcontext)));
|
|
11062
11151
|
};
|
|
11152
|
+
|
|
11063
11153
|
var setCollectionFilterFunc = function setCollectionFilterFunc(collectionid) {
|
|
11064
11154
|
var _tempfetchproductsfil2;
|
|
11065
11155
|
var tempfetchproductsfilerobjcontext = _objectSpread$1N({}, ProductFilterObjContext);
|
|
@@ -11075,8 +11165,10 @@ var Filter$1 = function Filter(props) {
|
|
|
11075
11165
|
}
|
|
11076
11166
|
tempfetchproductsfilerobjcontext.page = 0;
|
|
11077
11167
|
setProductFilterObjContext(_objectSpread$1N({}, tempfetchproductsfilerobjcontext));
|
|
11078
|
-
|
|
11168
|
+
filterrouting(tempfetchproductsfilerobjcontext);
|
|
11169
|
+
// routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, encodeURIComponent(JSON.stringify(tempfetchproductsfilerobjcontext)));
|
|
11079
11170
|
};
|
|
11171
|
+
|
|
11080
11172
|
var CategoriesFilter = function CategoriesFilter() {
|
|
11081
11173
|
return /*#__PURE__*/React.createElement("div", {
|
|
11082
11174
|
"class": "col-lg-12 p-0"
|
|
@@ -11405,6 +11497,19 @@ var Filter$1 = function Filter(props) {
|
|
|
11405
11497
|
}
|
|
11406
11498
|
})
|
|
11407
11499
|
};
|
|
11500
|
+
var filterrouting = function filterrouting(tempfetchproductsfilerobjcontext) {
|
|
11501
|
+
var path = window.location.pathname.split('/');
|
|
11502
|
+
var currentpagepath = path[1];
|
|
11503
|
+
var pagenamepathinstaticpagelinkcont = '';
|
|
11504
|
+
for (var key in StaticPagesLinksContext) {
|
|
11505
|
+
if (StaticPagesLinksContext[key] == currentpagepath) {
|
|
11506
|
+
pagenamepathinstaticpagelinkcont = key;
|
|
11507
|
+
}
|
|
11508
|
+
}
|
|
11509
|
+
if (pagenamepathinstaticpagelinkcont != undefined && pagenamepathinstaticpagelinkcont != '') {
|
|
11510
|
+
routingcountext(StaticPagesLinksContext[pagenamepathinstaticpagelinkcont], true, encodeURIComponent(JSON.stringify(tempfetchproductsfilerobjcontext)));
|
|
11511
|
+
}
|
|
11512
|
+
};
|
|
11408
11513
|
return /*#__PURE__*/React.createElement("div", {
|
|
11409
11514
|
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',
|
|
11410
11515
|
style: {
|
|
@@ -11556,7 +11661,6 @@ var Filter$1 = function Filter(props) {
|
|
|
11556
11661
|
return /*#__PURE__*/React.createElement("div", {
|
|
11557
11662
|
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 ',
|
|
11558
11663
|
onClick: function onClick() {
|
|
11559
|
-
// setfilterfunc(valueitem.valueid, valueindex, index, 'assign');
|
|
11560
11664
|
var tempfetchproductsfilerobjcontext = _objectSpread$1N({}, ProductFilterObjContext);
|
|
11561
11665
|
if (tempfetchproductsfilerobjcontext[item.payloadvalue] == valueitem.value) {
|
|
11562
11666
|
tempfetchproductsfilerobjcontext[item.payloadvalue] = '';
|
|
@@ -11565,7 +11669,7 @@ var Filter$1 = function Filter(props) {
|
|
|
11565
11669
|
}
|
|
11566
11670
|
tempfetchproductsfilerobjcontext.page = 0;
|
|
11567
11671
|
setProductFilterObjContext(_objectSpread$1N({}, tempfetchproductsfilerobjcontext));
|
|
11568
|
-
|
|
11672
|
+
filterrouting(tempfetchproductsfilerobjcontext);
|
|
11569
11673
|
}
|
|
11570
11674
|
}, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
|
|
11571
11675
|
className: " ".concat(ischecked ? filter_cssstyles.btn_item_active : '', " ").concat(filterstyles.btn_item, " ").concat(filter_cssstyles.btn_item) + ' mb-2 d-flex align-items-center '
|
|
@@ -11632,11 +11736,145 @@ var Filter$1 = function Filter(props) {
|
|
|
11632
11736
|
className: "mt-2 mb-3"
|
|
11633
11737
|
})), /*#__PURE__*/React.createElement("div", {
|
|
11634
11738
|
className: filter_cssstyles.filteraccordion + ' col-lg-12 filter-accordion p-md-0 pl-4 pr-4 '
|
|
11635
|
-
}, sectionproperties.
|
|
11739
|
+
}, sectionproperties.showcountriesfilter == 'Show' && /*#__PURE__*/React.createElement("div", {
|
|
11636
11740
|
"class": "row m-0 w-100"
|
|
11637
|
-
},
|
|
11741
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
11742
|
+
"class": "col-lg-12 p-0 mt-3"
|
|
11743
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
11744
|
+
"class": "row m-0 w-100"
|
|
11745
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
11746
|
+
"class": "col-lg-12 p-0 mb-3"
|
|
11747
|
+
}, (fetchTabexCountriesQueryContext === null || fetchTabexCountriesQueryContext === void 0 ? void 0 : fetchTabexCountriesQueryContext.isFetching) && /*#__PURE__*/React.createElement("div", {
|
|
11748
|
+
className: "w-100 allcentered mt-1"
|
|
11749
|
+
}, /*#__PURE__*/React.createElement(CircularProgress, {
|
|
11750
|
+
color: "#000",
|
|
11751
|
+
width: "20px",
|
|
11752
|
+
height: "20px",
|
|
11753
|
+
duration: "1s"
|
|
11754
|
+
})), !(fetchTabexCountriesQueryContext !== null && fetchTabexCountriesQueryContext !== void 0 && fetchTabexCountriesQueryContext.isFetching) && (fetchTabexCountriesQueryContext === null || fetchTabexCountriesQueryContext === void 0 ? void 0 : fetchTabexCountriesQueryContext.isSuccess) && /*#__PURE__*/React.createElement(Select, {
|
|
11755
|
+
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,
|
|
11756
|
+
getOptionLabel: function getOptionLabel(option) {
|
|
11757
|
+
var crname = '';
|
|
11758
|
+
if (langdetect == 'en') {
|
|
11759
|
+
crname = option.name;
|
|
11760
|
+
} else if (langdetect == 'ar') {
|
|
11761
|
+
if (option.name_ar != null) {
|
|
11762
|
+
crname = option.name_ar;
|
|
11763
|
+
} else {
|
|
11764
|
+
crname = option.name;
|
|
11765
|
+
}
|
|
11766
|
+
}
|
|
11767
|
+
return crname;
|
|
11768
|
+
},
|
|
11769
|
+
getOptionValue: function getOptionValue(option) {
|
|
11770
|
+
return option.id;
|
|
11771
|
+
},
|
|
11772
|
+
value: fetchTabexCountriesQueryContext.data.data.countries.filter(function (option) {
|
|
11773
|
+
return option.id == ProductFilterObjContext.countryid;
|
|
11774
|
+
}),
|
|
11775
|
+
onChange: function onChange(option) {
|
|
11776
|
+
var tempFetchTabexStatesPayloadobjContext = _objectSpread$1N({}, FetchTabexStatesPayloadobjContext);
|
|
11777
|
+
tempFetchTabexStatesPayloadobjContext.functype = 'states';
|
|
11778
|
+
tempFetchTabexStatesPayloadobjContext.country_id = option.id;
|
|
11779
|
+
setFetchTabexStatesPayloadobjContext(_objectSpread$1N({}, tempFetchTabexStatesPayloadobjContext));
|
|
11780
|
+
var tempfetchproductsfilerobjcontext = _objectSpread$1N({}, ProductFilterObjContext);
|
|
11781
|
+
tempfetchproductsfilerobjcontext.countryid = option.id;
|
|
11782
|
+
tempfetchproductsfilerobjcontext.page = 0;
|
|
11783
|
+
setProductFilterObjContext(_objectSpread$1N({}, tempfetchproductsfilerobjcontext));
|
|
11784
|
+
filterrouting(tempfetchproductsfilerobjcontext);
|
|
11785
|
+
},
|
|
11786
|
+
styles: langdetect == 'en' ? defaultstyles : defaultstylestranslated,
|
|
11787
|
+
placeholder: lang.choosecountry,
|
|
11788
|
+
isSearchable: true
|
|
11789
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
11790
|
+
"class": "col-lg-12 mb-3 p-0"
|
|
11791
|
+
}, (fetchTabexStatesQueryContext === null || fetchTabexStatesQueryContext === void 0 ? void 0 : fetchTabexStatesQueryContext.isFetching) && /*#__PURE__*/React.createElement("div", {
|
|
11792
|
+
className: "w-100 allcentered mt-1"
|
|
11793
|
+
}, /*#__PURE__*/React.createElement(CircularProgress, {
|
|
11794
|
+
color: "#000",
|
|
11795
|
+
width: "20px",
|
|
11796
|
+
height: "20px",
|
|
11797
|
+
duration: "1s"
|
|
11798
|
+
})), !(fetchTabexStatesQueryContext !== null && fetchTabexStatesQueryContext !== void 0 && fetchTabexStatesQueryContext.isFetching) && (fetchTabexStatesQueryContext === null || fetchTabexStatesQueryContext === void 0 ? void 0 : fetchTabexStatesQueryContext.isSuccess) && /*#__PURE__*/React.createElement(Select, {
|
|
11799
|
+
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,
|
|
11800
|
+
getOptionLabel: function getOptionLabel(option) {
|
|
11801
|
+
var crname = '';
|
|
11802
|
+
if (langdetect == 'en') {
|
|
11803
|
+
crname = option.name;
|
|
11804
|
+
} else if (langdetect == 'ar') {
|
|
11805
|
+
if (option.name_ar != null) {
|
|
11806
|
+
crname = option.name_ar;
|
|
11807
|
+
} else {
|
|
11808
|
+
crname = option.name;
|
|
11809
|
+
}
|
|
11810
|
+
}
|
|
11811
|
+
return crname;
|
|
11812
|
+
},
|
|
11813
|
+
getOptionValue: function getOptionValue(option) {
|
|
11814
|
+
return option.id;
|
|
11815
|
+
},
|
|
11816
|
+
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) {
|
|
11817
|
+
return option.id == ProductFilterObjContext.stateid;
|
|
11818
|
+
}),
|
|
11819
|
+
onChange: function onChange(option) {
|
|
11820
|
+
var tempFetchTabexStatesPayloadobjContext = _objectSpread$1N({}, FetchTabexStatesPayloadobjContext);
|
|
11821
|
+
tempFetchTabexStatesPayloadobjContext.functype = 'cities';
|
|
11822
|
+
tempFetchTabexStatesPayloadobjContext.state_id = option.id;
|
|
11823
|
+
setFetchTabexStatesPayloadobjContext(_objectSpread$1N({}, tempFetchTabexStatesPayloadobjContext));
|
|
11824
|
+
var tempfetchproductsfilerobjcontext = _objectSpread$1N({}, ProductFilterObjContext);
|
|
11825
|
+
tempfetchproductsfilerobjcontext.stateid = option.id;
|
|
11826
|
+
tempfetchproductsfilerobjcontext.page = 0;
|
|
11827
|
+
setProductFilterObjContext(_objectSpread$1N({}, tempfetchproductsfilerobjcontext));
|
|
11828
|
+
filterrouting(tempfetchproductsfilerobjcontext);
|
|
11829
|
+
},
|
|
11830
|
+
styles: langdetect == 'en' ? defaultstyles : defaultstylestranslated,
|
|
11831
|
+
placeholder: lang.choosestategov,
|
|
11832
|
+
isSearchable: true
|
|
11833
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
11834
|
+
"class": "col-lg-12 mb-3 p-0"
|
|
11835
|
+
}, (fetchTabexCitiesQueryContext === null || fetchTabexCitiesQueryContext === void 0 ? void 0 : fetchTabexCitiesQueryContext.isFetching) && /*#__PURE__*/React.createElement("div", {
|
|
11836
|
+
className: "w-100 allcentered mt-1"
|
|
11837
|
+
}, /*#__PURE__*/React.createElement(CircularProgress, {
|
|
11838
|
+
color: "#000",
|
|
11839
|
+
width: "20px",
|
|
11840
|
+
height: "20px",
|
|
11841
|
+
duration: "1s"
|
|
11842
|
+
})), !(fetchTabexCitiesQueryContext !== null && fetchTabexCitiesQueryContext !== void 0 && fetchTabexCitiesQueryContext.isFetching) && (fetchTabexCitiesQueryContext === null || fetchTabexCitiesQueryContext === void 0 ? void 0 : fetchTabexCitiesQueryContext.isSuccess) && /*#__PURE__*/React.createElement(Select, {
|
|
11843
|
+
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,
|
|
11844
|
+
getOptionLabel: function getOptionLabel(option) {
|
|
11845
|
+
var crname = '';
|
|
11846
|
+
if (langdetect == 'en') {
|
|
11847
|
+
crname = option.name;
|
|
11848
|
+
} else if (langdetect == 'ar') {
|
|
11849
|
+
if (option.name_ar != null) {
|
|
11850
|
+
crname = option.name_ar;
|
|
11851
|
+
} else {
|
|
11852
|
+
crname = option.name;
|
|
11853
|
+
}
|
|
11854
|
+
}
|
|
11855
|
+
return crname;
|
|
11856
|
+
},
|
|
11857
|
+
getOptionValue: function getOptionValue(option) {
|
|
11858
|
+
return option.id;
|
|
11859
|
+
},
|
|
11860
|
+
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) {
|
|
11861
|
+
return option.id == ProductFilterObjContext.cityid;
|
|
11862
|
+
}),
|
|
11863
|
+
onChange: function onChange(option) {
|
|
11864
|
+
var tempfetchproductsfilerobjcontext = _objectSpread$1N({}, ProductFilterObjContext);
|
|
11865
|
+
tempfetchproductsfilerobjcontext.cityid = option.id;
|
|
11866
|
+
tempfetchproductsfilerobjcontext.page = 0;
|
|
11867
|
+
setProductFilterObjContext(_objectSpread$1N({}, tempfetchproductsfilerobjcontext));
|
|
11868
|
+
filterrouting(tempfetchproductsfilerobjcontext);
|
|
11869
|
+
},
|
|
11870
|
+
styles: langdetect == 'en' ? defaultstyles : defaultstylestranslated,
|
|
11871
|
+
placeholder: lang.choosecity,
|
|
11872
|
+
isSearchable: true
|
|
11873
|
+
}))))), sectionproperties.filterType == 'All' && sectionproperties.showcategoriesfilter == 'Show' && /*#__PURE__*/React.createElement("div", {
|
|
11638
11874
|
"class": "row m-0 w-100"
|
|
11639
|
-
},
|
|
11875
|
+
}, CategoriesFilter()), sectionproperties.filterType == 'Collections' && sectionproperties.showcategoriesfilter == 'Show' && /*#__PURE__*/React.createElement("div", {
|
|
11876
|
+
"class": "row m-0 w-100"
|
|
11877
|
+
}, CollectionsFilter()), sectionproperties.showvariantsfilter == 'Show' && InstFilters()))), /*#__PURE__*/React.createElement("div", {
|
|
11640
11878
|
className: "col-lg-12"
|
|
11641
11879
|
}, /*#__PURE__*/React.createElement(Offcanvas, {
|
|
11642
11880
|
show: props === null || props === void 0 ? void 0 : props.openFilterSlider,
|
|
@@ -22577,7 +22815,7 @@ var Modernheader = function Modernheader(props) {
|
|
|
22577
22815
|
var favoriteprojectscountContext = props.actions.favoriteprojectscountContext;
|
|
22578
22816
|
var routingcountext = props.actions.routingcountext;
|
|
22579
22817
|
var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
|
|
22580
|
-
|
|
22818
|
+
props.actions.history;
|
|
22581
22819
|
var ikimagecredcontext = props.actions.ikimagecredcontext;
|
|
22582
22820
|
var actions = props.actions;
|
|
22583
22821
|
useEffect(function () {
|
|
@@ -23150,32 +23388,29 @@ var Modernheader = function Modernheader(props) {
|
|
|
23150
23388
|
display: sectionproperties.showhidesubheader == 'Show' && sectionproperties.subheaderposition == 'Besides Top Navigation' ? 'none' : 'flex'
|
|
23151
23389
|
}
|
|
23152
23390
|
}, /*#__PURE__*/React.createElement("ul", null, templatepropcontext.pagesnprop.map(function (item, index) {
|
|
23153
|
-
|
|
23154
|
-
|
|
23155
|
-
|
|
23156
|
-
|
|
23157
|
-
|
|
23158
|
-
activeclass2 = header_cssstyles.topbar_item_active;
|
|
23159
|
-
activeclass3 = header_cssstyles.topbar_item_text_active;
|
|
23160
|
-
}
|
|
23391
|
+
// if (item.isselected) {
|
|
23392
|
+
// activeclass = headerstyles.navbar_item_active;
|
|
23393
|
+
// activeclass2 = header_cssstyles.topbar_item_active;
|
|
23394
|
+
// activeclass3 = header_cssstyles.topbar_item_text_active;
|
|
23395
|
+
// }
|
|
23161
23396
|
if (item.isnavigation == 1 && item.isactive == 1) {
|
|
23162
23397
|
return /*#__PURE__*/React.createElement("div", {
|
|
23163
23398
|
"class": "cursor-pointer",
|
|
23164
23399
|
onClick: function onClick() {
|
|
23165
|
-
|
|
23400
|
+
routingcountext(item.navigationroute, false, '');
|
|
23166
23401
|
}
|
|
23167
23402
|
}, /*#__PURE__*/React.createElement("li", {
|
|
23168
|
-
"class": "".concat(headerstyles$7.topbar_item_container) + ' nav-item '
|
|
23169
|
-
|
|
23170
|
-
|
|
23171
|
-
|
|
23172
|
-
|
|
23173
|
-
|
|
23174
|
-
}
|
|
23403
|
+
"class": "".concat(headerstyles$7.topbar_item_container) + ' nav-item '
|
|
23404
|
+
// onClick={() => {
|
|
23405
|
+
// fetch_inst_tabex_websitetemplatesQueryContext.data.data.template.pages.forEach(function (pageitem, pageindex) {
|
|
23406
|
+
// pageitem.isselected = false;
|
|
23407
|
+
// });
|
|
23408
|
+
// fetch_inst_tabex_websitetemplatesQueryContext.data.data.template.pages[index].isselected = true;
|
|
23409
|
+
// }}
|
|
23175
23410
|
}, /*#__PURE__*/React.createElement("div", {
|
|
23176
|
-
"class": "".concat(headerstyles$7.topbar_item, " ").concat(header_cssstyles.topbar_item, " ").concat(header_cssstyles.nav_link
|
|
23411
|
+
"class": "".concat(headerstyles$7.topbar_item, " ").concat(header_cssstyles.topbar_item, " ").concat(header_cssstyles.nav_link)
|
|
23177
23412
|
}, /*#__PURE__*/React.createElement("span", {
|
|
23178
|
-
"class": "".concat(headerstyles$7.topbar_item_text, " ").concat(header_cssstyles.topbar_item_text
|
|
23413
|
+
"class": "".concat(headerstyles$7.topbar_item_text, " ").concat(header_cssstyles.topbar_item_text)
|
|
23179
23414
|
}, langdetect == 'en' ? item.pagename : item.pagename_ar))));
|
|
23180
23415
|
}
|
|
23181
23416
|
}))), sectionproperties.showhidesubheader == 'Show' && sectionproperties.subheaderposition == 'Besides Top Navigation' && /*#__PURE__*/React.createElement(Subheader, {
|
|
@@ -39256,14 +39491,14 @@ var BackgroundImageWithTopContent = function BackgroundImageWithTopContent(props
|
|
|
39256
39491
|
className: "".concat(langdetect == 'en' ? 'text-left' : 'text-right') + ' col-lg-12 col-md-12 col-sm-12 mb-3 p-0 '
|
|
39257
39492
|
}, /*#__PURE__*/React.createElement("label", {
|
|
39258
39493
|
className: "".concat(sectionstyles.input_label_name) + ' m-0 '
|
|
39259
|
-
}, lang.country), /*#__PURE__*/React.createElement(Select$
|
|
39494
|
+
}, lang.country), /*#__PURE__*/React.createElement(Select$3, {
|
|
39260
39495
|
options: countries,
|
|
39261
39496
|
styles: langdetect == 'en' ? defaultstyles : defaultstylestranslated
|
|
39262
39497
|
})), /*#__PURE__*/React.createElement("div", {
|
|
39263
39498
|
className: "".concat(langdetect == 'en' ? 'text-left' : 'text-right') + ' col-lg-12 col-md-12 col-sm-12 mb-3 p-0 '
|
|
39264
39499
|
}, /*#__PURE__*/React.createElement("label", {
|
|
39265
39500
|
className: "".concat(sectionstyles.input_label_name) + ' m-0 '
|
|
39266
|
-
}, langdetect == 'en' ? 'State' : 'الولاية'), /*#__PURE__*/React.createElement(Select$
|
|
39501
|
+
}, langdetect == 'en' ? 'State' : 'الولاية'), /*#__PURE__*/React.createElement(Select$3, {
|
|
39267
39502
|
options: states,
|
|
39268
39503
|
styles: langdetect == 'en' ? defaultstyles : defaultstylestranslated
|
|
39269
39504
|
})), /*#__PURE__*/React.createElement("div", {
|
|
@@ -53592,22 +53827,18 @@ var Productcard_with_circularbg = function Productcard_with_circularbg(props) {
|
|
|
53592
53827
|
borderTopRightRadius: langdetect == 'en' ? sectionproperties.image_bordertoprightradius + 'px' : sectionproperties.image_bordertopleftradius + 'px',
|
|
53593
53828
|
overflow: 'hidden',
|
|
53594
53829
|
background: sectionproperties.image_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.image_bgcolor,
|
|
53595
|
-
padding: sectionproperties.imagepadding + 'px'
|
|
53830
|
+
padding: sectionproperties.imagepadding + 'px',
|
|
53831
|
+
border: sectionproperties.image_borderwidth + 'px solid ' + sectionproperties.image_bordercolor
|
|
53596
53832
|
}
|
|
53597
53833
|
}, /*#__PURE__*/React.createElement(Imagekitimagecomp, {
|
|
53598
53834
|
urlEndpoint: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint,
|
|
53599
53835
|
publicKey: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimagepublickey,
|
|
53600
|
-
path: '/tr:w-
|
|
53836
|
+
path: '/tr:w-' + sectionproperties.imagetr_w + ',h-' + sectionproperties.imagetr_h + '/' + item.image,
|
|
53601
53837
|
loading: "lazy",
|
|
53602
53838
|
style: {
|
|
53603
|
-
height: '
|
|
53604
|
-
width: '
|
|
53605
|
-
objectFit: sectionproperties.bgcovercontain
|
|
53606
|
-
borderBottomLeftRadius: langdetect == 'en' ? sectionproperties.image_borderBottomLeftRadius + 'px' : sectionproperties.image_borderBottomRightRadius + 'px',
|
|
53607
|
-
borderBottomRightRadius: langdetect == 'en' ? sectionproperties.image_borderBottomRightRadius + 'px' : sectionproperties.image_borderBottomLeftRadius + 'px',
|
|
53608
|
-
borderTopLeftRadius: langdetect == 'en' ? sectionproperties.image_bordertopleftradius + 'px' : sectionproperties.image_bordertoprightradius + 'px',
|
|
53609
|
-
borderTopRightRadius: langdetect == 'en' ? sectionproperties.image_bordertoprightradius + 'px' : sectionproperties.image_bordertopleftradius + 'px',
|
|
53610
|
-
border: sectionproperties.image_borderwidth + 'px solid ' + sectionproperties.image_bordercolor
|
|
53839
|
+
height: sectionproperties.imageInnerWidth_Height + '%',
|
|
53840
|
+
width: sectionproperties.imageInnerWidth_Height + '%',
|
|
53841
|
+
objectFit: sectionproperties.bgcovercontain == 'Cover' ? 'cover' : 'contain'
|
|
53611
53842
|
}
|
|
53612
53843
|
}))), sectionproperties.prodNameShow == 'Show' && /*#__PURE__*/React.createElement("div", {
|
|
53613
53844
|
"class": "col-lg-12 d-flex align-items-center justify-content-center",
|