tabexseriescomponents 0.0.331 → 0.0.333
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 +202 -18
- package/dist/index.esm.js +201 -18
- package/dist/index.umd.js +203 -19
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -131,7 +131,7 @@ var GoLocation = require('@react-icons/all-files/go/GoLocation');
|
|
|
131
131
|
var RiRoadMapLine = require('@react-icons/all-files/ri/RiRoadMapLine');
|
|
132
132
|
var HiOutlineClock = require('@react-icons/all-files/hi/HiOutlineClock');
|
|
133
133
|
var AiOutlineLinkedin = require('@react-icons/all-files/ai/AiOutlineLinkedin');
|
|
134
|
-
require('react-select');
|
|
134
|
+
var Select$5 = require('react-select');
|
|
135
135
|
var ReactPlayer = require('react-player');
|
|
136
136
|
var BackgroundSlideshow = require('react-background-slideshow');
|
|
137
137
|
var _extends = require('@babel/runtime/helpers/extends');
|
|
@@ -185,6 +185,7 @@ var Dropdown__default = /*#__PURE__*/_interopDefaultLegacy(Dropdown);
|
|
|
185
185
|
var PhoneInput__default = /*#__PURE__*/_interopDefaultLegacy(PhoneInput);
|
|
186
186
|
var InputRange__default = /*#__PURE__*/_interopDefaultLegacy(InputRange);
|
|
187
187
|
var ReactPaginate__default = /*#__PURE__*/_interopDefaultLegacy(ReactPaginate);
|
|
188
|
+
var Select__default = /*#__PURE__*/_interopDefaultLegacy(Select$5);
|
|
188
189
|
var ReactPlayer__default = /*#__PURE__*/_interopDefaultLegacy(ReactPlayer);
|
|
189
190
|
var BackgroundSlideshow__default = /*#__PURE__*/_interopDefaultLegacy(BackgroundSlideshow);
|
|
190
191
|
var _extends__default = /*#__PURE__*/_interopDefaultLegacy(_extends);
|
|
@@ -8195,6 +8196,12 @@ var Checkout = function Checkout(props) {
|
|
|
8195
8196
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8196
8197
|
className: "col-lg-12 p-0"
|
|
8197
8198
|
}, fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue37 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue37 === void 0 ? void 0 : (_fetchcustomercartQue38 = _fetchcustomercartQue37.data) === null || _fetchcustomercartQue38 === void 0 ? void 0 : _fetchcustomercartQue38.customercart.cartitems.map(function (item, index) {
|
|
8199
|
+
if (item.product_extrafields != null) {
|
|
8200
|
+
var product_extrafields = JSON.parse(item.product_extrafields);
|
|
8201
|
+
// var product_extrafields_parsed = JSON.stringify(product_extrafields);
|
|
8202
|
+
// alert(product_extrafields_parsed);
|
|
8203
|
+
}
|
|
8204
|
+
|
|
8198
8205
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8199
8206
|
className: langdetect == 'en' ? 'col-lg-12 col-md-12 col-sm-12 pt-3 pb-3 pl-2 pr-0 mb-3' : 'col-lg-12 col-md-12 col-sm-12 pt-3 pb-3 pr-2 pl-0 mb-3',
|
|
8200
8207
|
style: {
|
|
@@ -8276,12 +8283,24 @@ var Checkout = function Checkout(props) {
|
|
|
8276
8283
|
className: "col-lg-12 col-md-12 col-sm-12 d-flex mt-2"
|
|
8277
8284
|
}, item.productinfo.hasvariants == 1 && item.productinfo.variantinfo.variantoptions.map(function (variantitem, variantindex) {
|
|
8278
8285
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8286
|
+
"class": "row m-0 w-100"
|
|
8287
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8279
8288
|
className: "col-lg-12 col-md-12 col-sm-12 p-0 d-flex"
|
|
8280
8289
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
8281
8290
|
className: 'text-capitalize text-dark m-0 p-0 font-weight-500 font-13 m-0 p-0 '
|
|
8282
8291
|
}, variantitem.optionname, ":"), /*#__PURE__*/React__default["default"].createElement("p", {
|
|
8283
8292
|
className: ' text-capitalize text-dark font-weight-500 m-0 p-0 ml-1 mr-1 '
|
|
8284
|
-
}, variantitem.optionvalue));
|
|
8293
|
+
}, variantitem.optionvalue)));
|
|
8294
|
+
}), item.product_extrafields != null && product_extrafields.map(function (extrafielditem, extrafieldindex) {
|
|
8295
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8296
|
+
"class": "row m-0 w-100"
|
|
8297
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8298
|
+
className: "col-lg-12 col-md-12 col-sm-12 p-0 d-flex"
|
|
8299
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
8300
|
+
className: 'text-capitalize text-dark m-0 p-0 font-weight-500 font-13 m-0 p-0 '
|
|
8301
|
+
}, langdetect == 'en' ? extrafielditem.title_en : extrafielditem.title_ar, ":"), /*#__PURE__*/React__default["default"].createElement("p", {
|
|
8302
|
+
className: ' text-capitalize text-dark font-weight-500 m-0 p-0 ml-1 mr-1 '
|
|
8303
|
+
}, " ", extrafielditem.value)));
|
|
8285
8304
|
}))));
|
|
8286
8305
|
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8287
8306
|
"class": "".concat(checkoutstyles.innersection) + ' row m-0 w-100 p-3 '
|
|
@@ -13327,6 +13346,7 @@ var CardsSection = function CardsSection(props) {
|
|
|
13327
13346
|
if (fetchAuthorizationQueryContext !== null && fetchAuthorizationQueryContext !== void 0 && fetchAuthorizationQueryContext.isSuccess) {
|
|
13328
13347
|
var _categories;
|
|
13329
13348
|
var categories = fetchAuthorizationQueryContext.data.data.instinfo.instcategories;
|
|
13349
|
+
// alert(JSON.stringify(categories));
|
|
13330
13350
|
var parentcollections = [];
|
|
13331
13351
|
(_categories = categories) === null || _categories === void 0 ? void 0 : _categories.forEach(function (catitem, catindex) {
|
|
13332
13352
|
catitem === null || catitem === void 0 ? void 0 : catitem.parentcolletions.forEach(function (parentcolitem) {
|
|
@@ -13344,6 +13364,15 @@ var CardsSection = function CardsSection(props) {
|
|
|
13344
13364
|
});
|
|
13345
13365
|
parentcollections = arrafterfilter;
|
|
13346
13366
|
}
|
|
13367
|
+
if (props.collectionidprops != null && props.collectionidprops != undefined && props.collectionidprops != 'all') {
|
|
13368
|
+
var arrafterfilter = [];
|
|
13369
|
+
parentcollections.forEach(function (parentcolitem, parcolindex) {
|
|
13370
|
+
if (parentcolitem.categoryid == props.collectionidprops) {
|
|
13371
|
+
arrafterfilter.push(parentcolitem);
|
|
13372
|
+
}
|
|
13373
|
+
});
|
|
13374
|
+
parentcollections = arrafterfilter;
|
|
13375
|
+
}
|
|
13347
13376
|
}
|
|
13348
13377
|
if (fetchingtype == 'innercategories') {
|
|
13349
13378
|
var arrafterfilter = [];
|
|
@@ -13923,6 +13952,8 @@ var CardsSection = function CardsSection(props) {
|
|
|
13923
13952
|
} else {
|
|
13924
13953
|
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, encodeURIComponent(JSON.stringify(ProductFilterObjContext)));
|
|
13925
13954
|
}
|
|
13955
|
+
} else if (fetchingtype == 'parentcollections') {
|
|
13956
|
+
routingcountext(StaticPagesLinksContext.InnerCategory, true, 'parentcollections/' + (sectionitem === null || sectionitem === void 0 ? void 0 : sectionitem.productsfetchingtypeparentcollectioncategoryid), true);
|
|
13926
13957
|
} else {
|
|
13927
13958
|
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, false);
|
|
13928
13959
|
}
|
|
@@ -24514,7 +24545,7 @@ var SocialMediaSection = function SocialMediaSection(props) {
|
|
|
24514
24545
|
function ownKeys$1G(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; }
|
|
24515
24546
|
function _objectSpread$1G(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1G(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1G(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
24516
24547
|
var Modernheader = function Modernheader(props) {
|
|
24517
|
-
var _logoarrayofobjects$, _logoarrayofobjects$2, _authdetailsContext$c, _fetchcustomercartQue, _fetchcustomercartQue2, _fetchcustomercartQue3, _fetchcustomercartQue4, _fetchcustomercartQue5, _fetchcustomercartQue6, _fetchcustomercartQue7, _fetchcustomercartQue8, _fetchcustomercartQue9, _fetchcustomercartQue10;
|
|
24548
|
+
var _authdetailsContext$i, _logoarrayofobjects$, _logoarrayofobjects$2, _authdetailsContext$c, _fetchcustomercartQue, _fetchcustomercartQue2, _fetchcustomercartQue3, _fetchcustomercartQue4, _fetchcustomercartQue5, _fetchcustomercartQue6, _fetchcustomercartQue7, _fetchcustomercartQue8, _fetchcustomercartQue9, _fetchcustomercartQue10;
|
|
24518
24549
|
var _useState = React.useState(''),
|
|
24519
24550
|
_useState2 = _slicedToArray__default["default"](_useState, 2),
|
|
24520
24551
|
sectionproperties = _useState2[0],
|
|
@@ -24784,7 +24815,42 @@ var Modernheader = function Modernheader(props) {
|
|
|
24784
24815
|
sectionpropertiesprops: sectionproperties,
|
|
24785
24816
|
templateproperties_contextprops: templateproperties_context,
|
|
24786
24817
|
actions: actions
|
|
24787
|
-
})),
|
|
24818
|
+
})), sectionproperties.showwhatsapp == 'Show' && /*#__PURE__*/React__default["default"].createElement("a", {
|
|
24819
|
+
href: 'https://api.whatsapp.com/send?phone=' + (authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i = authdetailsContext.instinfo) === null || _authdetailsContext$i === void 0 ? void 0 : _authdetailsContext$i.whatsappnumber),
|
|
24820
|
+
target: '_blank',
|
|
24821
|
+
style: {
|
|
24822
|
+
position: 'fixed',
|
|
24823
|
+
bottom: 10,
|
|
24824
|
+
right: 10,
|
|
24825
|
+
zIndex: 999999,
|
|
24826
|
+
transition: 'all 0.3s ease-out'
|
|
24827
|
+
}
|
|
24828
|
+
}, /*#__PURE__*/React__default["default"].createElement("img", {
|
|
24829
|
+
src: 'https://tabex-co.com/storage/StaticImages/whatsapp.png',
|
|
24830
|
+
style: {
|
|
24831
|
+
width: '40px',
|
|
24832
|
+
height: '40px',
|
|
24833
|
+
cursor: 'pointer'
|
|
24834
|
+
}
|
|
24835
|
+
})), sectionproperties.showfooterphonenumber == 'Show' && /*#__PURE__*/React__default["default"].createElement("a", {
|
|
24836
|
+
href: 'tel:' + (authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.CuContactphonenumber),
|
|
24837
|
+
target: '_self',
|
|
24838
|
+
style: {
|
|
24839
|
+
position: 'fixed',
|
|
24840
|
+
bottom: 60,
|
|
24841
|
+
right: 10,
|
|
24842
|
+
zIndex: 999999,
|
|
24843
|
+
transition: 'all 0.3s ease-out'
|
|
24844
|
+
}
|
|
24845
|
+
}, /*#__PURE__*/React__default["default"].createElement("i", {
|
|
24846
|
+
"class": langdetect == 'en' ? 'h-100 d-flex align-items-center justify-content-center mr-2' : 'h-100 d-flex align-items-center justify-content-center ml-2'
|
|
24847
|
+
}, /*#__PURE__*/React__default["default"].createElement(FiPhone.FiPhone, {
|
|
24848
|
+
size: 30,
|
|
24849
|
+
color: sectionproperties.uppersection_iconcolor,
|
|
24850
|
+
style: {
|
|
24851
|
+
transform: langdetect == 'en' ? 'scaleX(1)' : 'scaleX(-1)'
|
|
24852
|
+
}
|
|
24853
|
+
}))), templateproperties_context.showsocialmedia == 'Show' && /*#__PURE__*/React__default["default"].createElement(SocialMediaSection, {
|
|
24788
24854
|
sectionpropertiesprops: sectionproperties,
|
|
24789
24855
|
templateproperties_contextprops: templateproperties_context,
|
|
24790
24856
|
actions: actions
|
|
@@ -32572,6 +32638,15 @@ var Allinonefooter = function Allinonefooter(props) {
|
|
|
32572
32638
|
backgroundColor: sectionproperties.vl_bg,
|
|
32573
32639
|
marginBottom: sectionproperties.divider_mb + 'px',
|
|
32574
32640
|
marginTop: sectionproperties.divider_mt + 'px'
|
|
32641
|
+
}),
|
|
32642
|
+
payimgcont: glamor.css({
|
|
32643
|
+
marginLeft: langdetect == 'en' ? '10px' : 0,
|
|
32644
|
+
marginRight: langdetect == 'en' ? 0 : '10px'
|
|
32645
|
+
}),
|
|
32646
|
+
payimg: glamor.css({
|
|
32647
|
+
width: '100%',
|
|
32648
|
+
height: '100%',
|
|
32649
|
+
objectFit: 'contain'
|
|
32575
32650
|
})
|
|
32576
32651
|
};
|
|
32577
32652
|
React.useEffect(function () {
|
|
@@ -32834,11 +32909,59 @@ var Allinonefooter = function Allinonefooter(props) {
|
|
|
32834
32909
|
}
|
|
32835
32910
|
}, /*#__PURE__*/React__default["default"].createElement(FaWhatsapp.FaWhatsapp, {
|
|
32836
32911
|
size: sectionproperties.youtubebtniconfontsize
|
|
32837
|
-
})))))))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
32912
|
+
})))))))), sectionproperties.showpaymentfooter == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
32913
|
+
className: "row m-0 w-100 d-flex d-md-none"
|
|
32914
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
32915
|
+
"class": "".concat(footerStyles.divider) + ' my-3 '
|
|
32916
|
+
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
32917
|
+
className: "col-lg-12 p-0 m-0 w-100 d-flex flex-row align-items-center justify-content-center"
|
|
32918
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
32919
|
+
className: "".concat(footerStyles.payimgcont),
|
|
32920
|
+
style: {
|
|
32921
|
+
width: '50px',
|
|
32922
|
+
height: '40px'
|
|
32923
|
+
}
|
|
32924
|
+
}, /*#__PURE__*/React__default["default"].createElement("img", {
|
|
32925
|
+
src: 'https://tabex-co.com/storage/StaticImages/visa.png',
|
|
32926
|
+
className: "".concat(footerStyles.payimg)
|
|
32927
|
+
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
32928
|
+
className: "".concat(footerStyles.payimgcont),
|
|
32929
|
+
style: {
|
|
32930
|
+
width: '70px',
|
|
32931
|
+
height: '30px'
|
|
32932
|
+
}
|
|
32933
|
+
}, /*#__PURE__*/React__default["default"].createElement("img", {
|
|
32934
|
+
src: 'https://tabex-co.com/storage/StaticImages/mastercard.png',
|
|
32935
|
+
className: "".concat(footerStyles.payimg)
|
|
32936
|
+
})))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
32838
32937
|
"class": "".concat(footerStyles.divider) + ' d-none d-md-flex '
|
|
32839
32938
|
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
32840
32939
|
"class": "row m-0 w-100 justify-content-center d-none d-md-flex"
|
|
32841
|
-
}, StoreInformation())
|
|
32940
|
+
}, StoreInformation()), sectionproperties.showpaymentfooter == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
32941
|
+
className: "row m-0 w-100 d-none d-md-flex"
|
|
32942
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
32943
|
+
"class": "".concat(footerStyles.divider) + ' my-3 '
|
|
32944
|
+
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
32945
|
+
className: "col-lg-12 p-0 m-0 w-100 d-flex flex-row align-items-center justify-content-center"
|
|
32946
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
32947
|
+
className: "".concat(footerStyles.payimgcont),
|
|
32948
|
+
style: {
|
|
32949
|
+
width: '50px',
|
|
32950
|
+
height: '40px'
|
|
32951
|
+
}
|
|
32952
|
+
}, /*#__PURE__*/React__default["default"].createElement("img", {
|
|
32953
|
+
src: 'https://tabex-co.com/storage/StaticImages/visa.png',
|
|
32954
|
+
className: "".concat(footerStyles.payimg)
|
|
32955
|
+
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
32956
|
+
className: "".concat(footerStyles.payimgcont),
|
|
32957
|
+
style: {
|
|
32958
|
+
width: '70px',
|
|
32959
|
+
height: '30px'
|
|
32960
|
+
}
|
|
32961
|
+
}, /*#__PURE__*/React__default["default"].createElement("img", {
|
|
32962
|
+
src: 'https://tabex-co.com/storage/StaticImages/mastercard.png',
|
|
32963
|
+
className: "".concat(footerStyles.payimg)
|
|
32964
|
+
}))))));
|
|
32842
32965
|
};
|
|
32843
32966
|
|
|
32844
32967
|
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; }
|
|
@@ -42704,7 +42827,7 @@ var CustomerAddressForm = function CustomerAddressForm(props) {
|
|
|
42704
42827
|
}
|
|
42705
42828
|
},
|
|
42706
42829
|
styles: langdetect == 'en' ? defaultstyles : defaultstylestranslated,
|
|
42707
|
-
placeholder:
|
|
42830
|
+
placeholder: '',
|
|
42708
42831
|
isSearchable: true
|
|
42709
42832
|
})), sectionproperties.hidecountrystatecity == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
42710
42833
|
className: props.srcfrom == 'filter' ? ' col-lg-4 col-md-12 col-sm-12 mb-sm-3 ' : sectionproperties.cardstyletype == 'Style 1' ? 'col-lg-4 col-md-12 col-sm-12 mb-4 p-sm-0' : 'col-lg-12 col-md-12 col-sm-12 mb-4 p-sm-0'
|
|
@@ -42724,7 +42847,7 @@ var CustomerAddressForm = function CustomerAddressForm(props) {
|
|
|
42724
42847
|
duration: "1s"
|
|
42725
42848
|
})), FetchTabexStatesPayloadobjContext.country_id == '' && /*#__PURE__*/React__default["default"].createElement(Select, {
|
|
42726
42849
|
styles: langdetect == 'en' ? defaultstyles : defaultstylestranslated,
|
|
42727
|
-
placeholder:
|
|
42850
|
+
placeholder: '',
|
|
42728
42851
|
isSearchable: true
|
|
42729
42852
|
}), !fetchTabexStatesQueryContext.isFetching && fetchTabexStatesQueryContext.isSuccess && /*#__PURE__*/React__default["default"].createElement(Select, {
|
|
42730
42853
|
options: fetchTabexStatesQueryContext.data.data.states,
|
|
@@ -42763,7 +42886,7 @@ var CustomerAddressForm = function CustomerAddressForm(props) {
|
|
|
42763
42886
|
}
|
|
42764
42887
|
},
|
|
42765
42888
|
styles: langdetect == 'en' ? defaultstyles : defaultstylestranslated,
|
|
42766
|
-
placeholder:
|
|
42889
|
+
placeholder: '',
|
|
42767
42890
|
isSearchable: true
|
|
42768
42891
|
})), sectionproperties.hidecountrystatecity == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
42769
42892
|
className: props.srcfrom == 'filter' ? ' col-lg-4 col-md-12 col-sm-12 mb-sm-3 ' : sectionproperties.cardstyletype == 'Style 1' ? 'col-lg-4 col-md-12 col-sm-12 mb-4 p-sm-0' : 'col-lg-12 col-md-12 col-sm-12 mb-4 p-sm-0'
|
|
@@ -42782,7 +42905,7 @@ var CustomerAddressForm = function CustomerAddressForm(props) {
|
|
|
42782
42905
|
height: "20px",
|
|
42783
42906
|
duration: "1s"
|
|
42784
42907
|
})), FetchTabexStatesPayloadobjContext.country_id == '' && /*#__PURE__*/React__default["default"].createElement(Select, {
|
|
42785
|
-
placeholder:
|
|
42908
|
+
placeholder: '',
|
|
42786
42909
|
styles: langdetect == 'en' ? defaultstyles : defaultstylestranslated,
|
|
42787
42910
|
isSearchable: true
|
|
42788
42911
|
}), !fetchTabexCitiesQueryContext.isFetching && fetchTabexCitiesQueryContext.isSuccess && /*#__PURE__*/React__default["default"].createElement(Select, {
|
|
@@ -42818,7 +42941,7 @@ var CustomerAddressForm = function CustomerAddressForm(props) {
|
|
|
42818
42941
|
}
|
|
42819
42942
|
},
|
|
42820
42943
|
styles: langdetect == 'en' ? defaultstyles : defaultstylestranslated,
|
|
42821
|
-
placeholder:
|
|
42944
|
+
placeholder: '',
|
|
42822
42945
|
isSearchable: true
|
|
42823
42946
|
})), sectionproperties.hideaddress == 'Show' && props.srcfrom != 'filter' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
42824
42947
|
className: 'col-lg-12 col-md-12 col-sm-12 mb-4 p-sm-0'
|
|
@@ -42879,6 +43002,7 @@ var BackgroundImageWithTopContent = function BackgroundImageWithTopContent(props
|
|
|
42879
43002
|
var fetchproductsfilerobjcontext = props.actions.fetchproductsfilerobjcontext;
|
|
42880
43003
|
var routingcountext = props.actions.routingcountext;
|
|
42881
43004
|
var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
|
|
43005
|
+
// const fetchcollectionsQueryContext = props.actions.fetchcollectionsQueryContext;
|
|
42882
43006
|
var _useState7 = React.useState({
|
|
42883
43007
|
countryid: '',
|
|
42884
43008
|
stateid: '',
|
|
@@ -42887,14 +43011,35 @@ var BackgroundImageWithTopContent = function BackgroundImageWithTopContent(props
|
|
|
42887
43011
|
_useState8 = _slicedToArray__default["default"](_useState7, 2),
|
|
42888
43012
|
payloadobj = _useState8[0],
|
|
42889
43013
|
setpayloadobj = _useState8[1];
|
|
43014
|
+
var _useState9 = React.useState([]),
|
|
43015
|
+
_useState10 = _slicedToArray__default["default"](_useState9, 2),
|
|
43016
|
+
collectionsarray = _useState10[0],
|
|
43017
|
+
setcollectionsarray = _useState10[1];
|
|
43018
|
+
var _useState11 = React.useState([]),
|
|
43019
|
+
_useState12 = _slicedToArray__default["default"](_useState11, 2);
|
|
43020
|
+
_useState12[0];
|
|
43021
|
+
_useState12[1];
|
|
42890
43022
|
var FetchQueriesEngineContext = props.actions.FetchQueriesEngineContext;
|
|
42891
43023
|
var setFetchQueriesEngineContext = props.actions.setFetchQueriesEngineContext;
|
|
43024
|
+
var authdetailsContext = props.actions.authdetailsContext;
|
|
43025
|
+
props.actions.fetchcollectionsQueryContext;
|
|
42892
43026
|
React.useEffect(function () {
|
|
42893
43027
|
var tempFetchQueriesEngineContext = _objectSpread$15({}, FetchQueriesEngineContext);
|
|
42894
43028
|
tempFetchQueriesEngineContext.fetchtabexcountries = true;
|
|
43029
|
+
tempFetchQueriesEngineContext.collections = true;
|
|
42895
43030
|
setFetchQueriesEngineContext(_objectSpread$15({}, tempFetchQueriesEngineContext));
|
|
42896
43031
|
var tempFetchQueriesEngineContext = _objectSpread$15({}, FetchQueriesEngineContext);
|
|
43032
|
+
|
|
43033
|
+
// authdetailsContext?.instinfo?.instcollections?
|
|
42897
43034
|
}, []);
|
|
43035
|
+
React.useEffect(function () {
|
|
43036
|
+
var _authdetailsContext$i, _authdetailsContext$i2;
|
|
43037
|
+
var temppcollarray = _toConsumableArray__default["default"](collectionsarray);
|
|
43038
|
+
authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i = authdetailsContext.instinfo) === null || _authdetailsContext$i === void 0 ? void 0 : (_authdetailsContext$i2 = _authdetailsContext$i.instcollections) === null || _authdetailsContext$i2 === void 0 ? void 0 : _authdetailsContext$i2.forEach(function (arrayItem) {
|
|
43039
|
+
temppcollarray.push(arrayItem);
|
|
43040
|
+
});
|
|
43041
|
+
setcollectionsarray(_toConsumableArray__default["default"](temppcollarray));
|
|
43042
|
+
}, [authdetailsContext]);
|
|
42898
43043
|
React.useEffect(function () {
|
|
42899
43044
|
var secpropobj = {};
|
|
42900
43045
|
StatePagePropertiesContext.pageobj.sections.forEach(function (sectionitem, sectionindex) {
|
|
@@ -42905,7 +43050,6 @@ var BackgroundImageWithTopContent = function BackgroundImageWithTopContent(props
|
|
|
42905
43050
|
}
|
|
42906
43051
|
});
|
|
42907
43052
|
setsectionproperties(_objectSpread$15({}, secpropobj));
|
|
42908
|
-
// alert(JSON.stringify(fetchTabexCountriesQueryContext));
|
|
42909
43053
|
}, [StatePagePropertiesContext]);
|
|
42910
43054
|
React.useEffect(function () {
|
|
42911
43055
|
if (sectionproperties.length != 0) {
|
|
@@ -43086,7 +43230,7 @@ var BackgroundImageWithTopContent = function BackgroundImageWithTopContent(props
|
|
|
43086
43230
|
}, sectionproperties.sectiontitleshow == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
43087
43231
|
"class": "col-lg-12 col-md-12 col-sm-12 p-0 allcentered"
|
|
43088
43232
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
43089
|
-
"class": "wordbreak",
|
|
43233
|
+
"class": "wordbreak text-md-center",
|
|
43090
43234
|
style: {
|
|
43091
43235
|
fontSize: sectionproperties.sectionTitleFontSize + 'px',
|
|
43092
43236
|
color: sectionproperties.sectionTitleColor,
|
|
@@ -43105,7 +43249,7 @@ var BackgroundImageWithTopContent = function BackgroundImageWithTopContent(props
|
|
|
43105
43249
|
maxWidth: '500px'
|
|
43106
43250
|
}
|
|
43107
43251
|
}, langdetect == 'en' ? sectionproperties.descriptionContentEn : sectionproperties.descriptionContentAr)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
43108
|
-
"class":
|
|
43252
|
+
"class": sectionproperties.showcollectionsfilter == 'Show' ? 'col-lg-11 col-md-10 col-sm-10 allcentered mt-3' : 'col-lg-9 col-md-10 col-sm-10 allcentered mt-3',
|
|
43109
43253
|
style: {
|
|
43110
43254
|
backgroundColor: sectionproperties.reservation_bgcolor,
|
|
43111
43255
|
borderRadius: sectionproperties.reservation_borderradius + 'px',
|
|
@@ -43120,8 +43264,45 @@ var BackgroundImageWithTopContent = function BackgroundImageWithTopContent(props
|
|
|
43120
43264
|
"class": "col-lg-12 p-0"
|
|
43121
43265
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
43122
43266
|
"class": "row m-0 w-100 allcentered"
|
|
43123
|
-
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
43124
|
-
|
|
43267
|
+
}, sectionproperties.showcollectionsfilter == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
43268
|
+
className: ' col-lg-2 col-md-12 col-sm-12 mb-md-3 '
|
|
43269
|
+
}, /*#__PURE__*/React__default["default"].createElement("label", {
|
|
43270
|
+
className: ' d-flex justify-content-start ',
|
|
43271
|
+
style: {
|
|
43272
|
+
color: sectionproperties.form_labelcolor,
|
|
43273
|
+
textTransform: sectionproperties.form_labeltexttransform,
|
|
43274
|
+
fontWeight: sectionproperties.form_labelfontweight,
|
|
43275
|
+
fontSize: sectionproperties.form_labelfontsize + 'px',
|
|
43276
|
+
marginBottom: sectionproperties.inputfieldbordertype == 'All' ? 10 : 0
|
|
43277
|
+
}
|
|
43278
|
+
}, langdetect == 'en' ? sectionproperties.collectionsfilternameen : sectionproperties.collectionsfilternamear), /*#__PURE__*/React__default["default"].createElement(Select__default["default"], {
|
|
43279
|
+
options: collectionsarray,
|
|
43280
|
+
getOptionLabel: function getOptionLabel(option) {
|
|
43281
|
+
var crname = '';
|
|
43282
|
+
if (langdetect == 'en') {
|
|
43283
|
+
crname = option.title_en;
|
|
43284
|
+
} else if (langdetect == 'ar') {
|
|
43285
|
+
crname = option.title_ar;
|
|
43286
|
+
}
|
|
43287
|
+
return crname;
|
|
43288
|
+
},
|
|
43289
|
+
getOptionValue: function getOptionValue(option) {
|
|
43290
|
+
return option.collectionid;
|
|
43291
|
+
},
|
|
43292
|
+
autocomplete: "new-password"
|
|
43293
|
+
// value={fetchTabexCountriesQueryContext.data.data.countries.filter((option) => option.id == props?.payloadobj?.countryid)}
|
|
43294
|
+
,
|
|
43295
|
+
onChange: function onChange(option) {
|
|
43296
|
+
var temp = payloadobj;
|
|
43297
|
+
temp.collections = [];
|
|
43298
|
+
temp.collections.push(option.collectionid);
|
|
43299
|
+
setpayloadobj(_objectSpread$15({}, temp));
|
|
43300
|
+
},
|
|
43301
|
+
styles: langdetect == 'en' ? defaultstyles : defaultstylestranslated,
|
|
43302
|
+
isSearchable: true,
|
|
43303
|
+
placeholder: ''
|
|
43304
|
+
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
43305
|
+
"class": sectionproperties.showcollectionsfilter == 'Show' && sectionproperties.showpricerange == 'Show' && sectionproperties.showpricerange == 'Show' ? 'col-lg-8 p-0' : sectionproperties.showpricerange == 'Show' ? 'col-lg-9 p-0' : 'col-lg-12 p-0'
|
|
43125
43306
|
}, /*#__PURE__*/React__default["default"].createElement(CustomerAddressForm
|
|
43126
43307
|
// customeraddressrequierd={customeraddressrequierd}
|
|
43127
43308
|
// payloadobj={payloadobj}
|
|
@@ -43139,7 +43320,7 @@ var BackgroundImageWithTopContent = function BackgroundImageWithTopContent(props
|
|
|
43139
43320
|
fetchTabexStatesQueryContext: fetchTabexStatesQueryContext,
|
|
43140
43321
|
fetchTabexCitiesQueryContext: fetchTabexCitiesQueryContext
|
|
43141
43322
|
})), sectionproperties.showpricerange == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
43142
|
-
className: "".concat(langdetect == 'en' ? 'text-left' : 'text-right') + ' col-lg-3 col-md-12 col-sm-12 mb-sm-3 '
|
|
43323
|
+
className: sectionproperties.showcollectionsfilter == 'Show' && sectionproperties.showpricerange == 'Show' && sectionproperties.showpricerange == 'Show' ? "".concat(langdetect == 'en' ? 'text-left' : 'text-right') + ' col-lg-2 col-md-12 col-sm-12 mb-sm-3 ' : "".concat(langdetect == 'en' ? 'text-left' : 'text-right') + ' col-lg-3 col-md-12 col-sm-12 mb-sm-3 '
|
|
43143
43324
|
}, /*#__PURE__*/React__default["default"].createElement("label", {
|
|
43144
43325
|
className: "".concat(sectionstyles.input_label_name) + ' mb-3 '
|
|
43145
43326
|
}, langdetect == 'en' ? 'Price' : 'السعر'), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -43159,7 +43340,7 @@ var BackgroundImageWithTopContent = function BackgroundImageWithTopContent(props
|
|
|
43159
43340
|
setpricevalue(_objectSpread$15({}, value));
|
|
43160
43341
|
}
|
|
43161
43342
|
}))))), sectionproperties.generalbtn_show == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
43162
|
-
"class":
|
|
43343
|
+
"class": 'col-lg-12 mt-3 p-0 allcentered'
|
|
43163
43344
|
}, /*#__PURE__*/React__default["default"].createElement("button", {
|
|
43164
43345
|
"class": sectionstyles.btnstyles + ' allcentered ',
|
|
43165
43346
|
onClick: function onClick() {
|
|
@@ -43186,6 +43367,9 @@ var BackgroundImageWithTopContent = function BackgroundImageWithTopContent(props
|
|
|
43186
43367
|
tempfetchproductsfilerobjcontext.cityid = payloadobj.cityid;
|
|
43187
43368
|
}
|
|
43188
43369
|
}
|
|
43370
|
+
if ((payloadobj === null || payloadobj === void 0 ? void 0 : payloadobj.collections) != null && payloadobj.collections.length != 0) {
|
|
43371
|
+
tempfetchproductsfilerobjcontext.collections = payloadobj.collections;
|
|
43372
|
+
}
|
|
43189
43373
|
if ((pricevalue === null || pricevalue === void 0 ? void 0 : pricevalue.min) != null && (pricevalue === null || pricevalue === void 0 ? void 0 : (_pricevalue$min = pricevalue.min) === null || _pricevalue$min === void 0 ? void 0 : _pricevalue$min.length) != 0) {
|
|
43190
43374
|
tempfetchproductsfilerobjcontext.price_min = pricevalue.min;
|
|
43191
43375
|
}
|