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.esm.js
CHANGED
|
@@ -129,7 +129,7 @@ import { GoLocation } from '@react-icons/all-files/go/GoLocation';
|
|
|
129
129
|
import { RiRoadMapLine } from '@react-icons/all-files/ri/RiRoadMapLine';
|
|
130
130
|
import { HiOutlineClock } from '@react-icons/all-files/hi/HiOutlineClock';
|
|
131
131
|
import { AiOutlineLinkedin } from '@react-icons/all-files/ai/AiOutlineLinkedin';
|
|
132
|
-
import 'react-select';
|
|
132
|
+
import Select$5 from 'react-select';
|
|
133
133
|
import ReactPlayer from 'react-player';
|
|
134
134
|
import BackgroundSlideshow from 'react-background-slideshow';
|
|
135
135
|
import _extends from '@babel/runtime/helpers/extends';
|
|
@@ -8149,6 +8149,12 @@ var Checkout = function Checkout(props) {
|
|
|
8149
8149
|
}, /*#__PURE__*/React.createElement("div", {
|
|
8150
8150
|
className: "col-lg-12 p-0"
|
|
8151
8151
|
}, 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) {
|
|
8152
|
+
if (item.product_extrafields != null) {
|
|
8153
|
+
var product_extrafields = JSON.parse(item.product_extrafields);
|
|
8154
|
+
// var product_extrafields_parsed = JSON.stringify(product_extrafields);
|
|
8155
|
+
// alert(product_extrafields_parsed);
|
|
8156
|
+
}
|
|
8157
|
+
|
|
8152
8158
|
return /*#__PURE__*/React.createElement("div", {
|
|
8153
8159
|
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',
|
|
8154
8160
|
style: {
|
|
@@ -8230,12 +8236,24 @@ var Checkout = function Checkout(props) {
|
|
|
8230
8236
|
className: "col-lg-12 col-md-12 col-sm-12 d-flex mt-2"
|
|
8231
8237
|
}, item.productinfo.hasvariants == 1 && item.productinfo.variantinfo.variantoptions.map(function (variantitem, variantindex) {
|
|
8232
8238
|
return /*#__PURE__*/React.createElement("div", {
|
|
8239
|
+
"class": "row m-0 w-100"
|
|
8240
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
8233
8241
|
className: "col-lg-12 col-md-12 col-sm-12 p-0 d-flex"
|
|
8234
8242
|
}, /*#__PURE__*/React.createElement("p", {
|
|
8235
8243
|
className: 'text-capitalize text-dark m-0 p-0 font-weight-500 font-13 m-0 p-0 '
|
|
8236
8244
|
}, variantitem.optionname, ":"), /*#__PURE__*/React.createElement("p", {
|
|
8237
8245
|
className: ' text-capitalize text-dark font-weight-500 m-0 p-0 ml-1 mr-1 '
|
|
8238
|
-
}, variantitem.optionvalue));
|
|
8246
|
+
}, variantitem.optionvalue)));
|
|
8247
|
+
}), item.product_extrafields != null && product_extrafields.map(function (extrafielditem, extrafieldindex) {
|
|
8248
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
8249
|
+
"class": "row m-0 w-100"
|
|
8250
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
8251
|
+
className: "col-lg-12 col-md-12 col-sm-12 p-0 d-flex"
|
|
8252
|
+
}, /*#__PURE__*/React.createElement("p", {
|
|
8253
|
+
className: 'text-capitalize text-dark m-0 p-0 font-weight-500 font-13 m-0 p-0 '
|
|
8254
|
+
}, langdetect == 'en' ? extrafielditem.title_en : extrafielditem.title_ar, ":"), /*#__PURE__*/React.createElement("p", {
|
|
8255
|
+
className: ' text-capitalize text-dark font-weight-500 m-0 p-0 ml-1 mr-1 '
|
|
8256
|
+
}, " ", extrafielditem.value)));
|
|
8239
8257
|
}))));
|
|
8240
8258
|
}), /*#__PURE__*/React.createElement("div", {
|
|
8241
8259
|
"class": "".concat(checkoutstyles.innersection) + ' row m-0 w-100 p-3 '
|
|
@@ -13281,6 +13299,7 @@ var CardsSection = function CardsSection(props) {
|
|
|
13281
13299
|
if (fetchAuthorizationQueryContext !== null && fetchAuthorizationQueryContext !== void 0 && fetchAuthorizationQueryContext.isSuccess) {
|
|
13282
13300
|
var _categories;
|
|
13283
13301
|
var categories = fetchAuthorizationQueryContext.data.data.instinfo.instcategories;
|
|
13302
|
+
// alert(JSON.stringify(categories));
|
|
13284
13303
|
var parentcollections = [];
|
|
13285
13304
|
(_categories = categories) === null || _categories === void 0 ? void 0 : _categories.forEach(function (catitem, catindex) {
|
|
13286
13305
|
catitem === null || catitem === void 0 ? void 0 : catitem.parentcolletions.forEach(function (parentcolitem) {
|
|
@@ -13298,6 +13317,15 @@ var CardsSection = function CardsSection(props) {
|
|
|
13298
13317
|
});
|
|
13299
13318
|
parentcollections = arrafterfilter;
|
|
13300
13319
|
}
|
|
13320
|
+
if (props.collectionidprops != null && props.collectionidprops != undefined && props.collectionidprops != 'all') {
|
|
13321
|
+
var arrafterfilter = [];
|
|
13322
|
+
parentcollections.forEach(function (parentcolitem, parcolindex) {
|
|
13323
|
+
if (parentcolitem.categoryid == props.collectionidprops) {
|
|
13324
|
+
arrafterfilter.push(parentcolitem);
|
|
13325
|
+
}
|
|
13326
|
+
});
|
|
13327
|
+
parentcollections = arrafterfilter;
|
|
13328
|
+
}
|
|
13301
13329
|
}
|
|
13302
13330
|
if (fetchingtype == 'innercategories') {
|
|
13303
13331
|
var arrafterfilter = [];
|
|
@@ -13877,6 +13905,8 @@ var CardsSection = function CardsSection(props) {
|
|
|
13877
13905
|
} else {
|
|
13878
13906
|
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, encodeURIComponent(JSON.stringify(ProductFilterObjContext)));
|
|
13879
13907
|
}
|
|
13908
|
+
} else if (fetchingtype == 'parentcollections') {
|
|
13909
|
+
routingcountext(StaticPagesLinksContext.InnerCategory, true, 'parentcollections/' + (sectionitem === null || sectionitem === void 0 ? void 0 : sectionitem.productsfetchingtypeparentcollectioncategoryid), true);
|
|
13880
13910
|
} else {
|
|
13881
13911
|
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, false);
|
|
13882
13912
|
}
|
|
@@ -24468,7 +24498,7 @@ var SocialMediaSection = function SocialMediaSection(props) {
|
|
|
24468
24498
|
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; }
|
|
24469
24499
|
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(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; }
|
|
24470
24500
|
var Modernheader = function Modernheader(props) {
|
|
24471
|
-
var _logoarrayofobjects$, _logoarrayofobjects$2, _authdetailsContext$c, _fetchcustomercartQue, _fetchcustomercartQue2, _fetchcustomercartQue3, _fetchcustomercartQue4, _fetchcustomercartQue5, _fetchcustomercartQue6, _fetchcustomercartQue7, _fetchcustomercartQue8, _fetchcustomercartQue9, _fetchcustomercartQue10;
|
|
24501
|
+
var _authdetailsContext$i, _logoarrayofobjects$, _logoarrayofobjects$2, _authdetailsContext$c, _fetchcustomercartQue, _fetchcustomercartQue2, _fetchcustomercartQue3, _fetchcustomercartQue4, _fetchcustomercartQue5, _fetchcustomercartQue6, _fetchcustomercartQue7, _fetchcustomercartQue8, _fetchcustomercartQue9, _fetchcustomercartQue10;
|
|
24472
24502
|
var _useState = useState(''),
|
|
24473
24503
|
_useState2 = _slicedToArray(_useState, 2),
|
|
24474
24504
|
sectionproperties = _useState2[0],
|
|
@@ -24738,7 +24768,42 @@ var Modernheader = function Modernheader(props) {
|
|
|
24738
24768
|
sectionpropertiesprops: sectionproperties,
|
|
24739
24769
|
templateproperties_contextprops: templateproperties_context,
|
|
24740
24770
|
actions: actions
|
|
24741
|
-
})),
|
|
24771
|
+
})), sectionproperties.showwhatsapp == 'Show' && /*#__PURE__*/React.createElement("a", {
|
|
24772
|
+
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),
|
|
24773
|
+
target: '_blank',
|
|
24774
|
+
style: {
|
|
24775
|
+
position: 'fixed',
|
|
24776
|
+
bottom: 10,
|
|
24777
|
+
right: 10,
|
|
24778
|
+
zIndex: 999999,
|
|
24779
|
+
transition: 'all 0.3s ease-out'
|
|
24780
|
+
}
|
|
24781
|
+
}, /*#__PURE__*/React.createElement("img", {
|
|
24782
|
+
src: 'https://tabex-co.com/storage/StaticImages/whatsapp.png',
|
|
24783
|
+
style: {
|
|
24784
|
+
width: '40px',
|
|
24785
|
+
height: '40px',
|
|
24786
|
+
cursor: 'pointer'
|
|
24787
|
+
}
|
|
24788
|
+
})), sectionproperties.showfooterphonenumber == 'Show' && /*#__PURE__*/React.createElement("a", {
|
|
24789
|
+
href: 'tel:' + (authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.CuContactphonenumber),
|
|
24790
|
+
target: '_self',
|
|
24791
|
+
style: {
|
|
24792
|
+
position: 'fixed',
|
|
24793
|
+
bottom: 60,
|
|
24794
|
+
right: 10,
|
|
24795
|
+
zIndex: 999999,
|
|
24796
|
+
transition: 'all 0.3s ease-out'
|
|
24797
|
+
}
|
|
24798
|
+
}, /*#__PURE__*/React.createElement("i", {
|
|
24799
|
+
"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'
|
|
24800
|
+
}, /*#__PURE__*/React.createElement(FiPhone, {
|
|
24801
|
+
size: 30,
|
|
24802
|
+
color: sectionproperties.uppersection_iconcolor,
|
|
24803
|
+
style: {
|
|
24804
|
+
transform: langdetect == 'en' ? 'scaleX(1)' : 'scaleX(-1)'
|
|
24805
|
+
}
|
|
24806
|
+
}))), templateproperties_context.showsocialmedia == 'Show' && /*#__PURE__*/React.createElement(SocialMediaSection, {
|
|
24742
24807
|
sectionpropertiesprops: sectionproperties,
|
|
24743
24808
|
templateproperties_contextprops: templateproperties_context,
|
|
24744
24809
|
actions: actions
|
|
@@ -32526,6 +32591,15 @@ var Allinonefooter = function Allinonefooter(props) {
|
|
|
32526
32591
|
backgroundColor: sectionproperties.vl_bg,
|
|
32527
32592
|
marginBottom: sectionproperties.divider_mb + 'px',
|
|
32528
32593
|
marginTop: sectionproperties.divider_mt + 'px'
|
|
32594
|
+
}),
|
|
32595
|
+
payimgcont: css({
|
|
32596
|
+
marginLeft: langdetect == 'en' ? '10px' : 0,
|
|
32597
|
+
marginRight: langdetect == 'en' ? 0 : '10px'
|
|
32598
|
+
}),
|
|
32599
|
+
payimg: css({
|
|
32600
|
+
width: '100%',
|
|
32601
|
+
height: '100%',
|
|
32602
|
+
objectFit: 'contain'
|
|
32529
32603
|
})
|
|
32530
32604
|
};
|
|
32531
32605
|
useEffect(function () {
|
|
@@ -32788,11 +32862,59 @@ var Allinonefooter = function Allinonefooter(props) {
|
|
|
32788
32862
|
}
|
|
32789
32863
|
}, /*#__PURE__*/React.createElement(FaWhatsapp, {
|
|
32790
32864
|
size: sectionproperties.youtubebtniconfontsize
|
|
32791
|
-
})))))))), /*#__PURE__*/React.createElement("div", {
|
|
32865
|
+
})))))))), sectionproperties.showpaymentfooter == 'Show' && /*#__PURE__*/React.createElement("div", {
|
|
32866
|
+
className: "row m-0 w-100 d-flex d-md-none"
|
|
32867
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
32868
|
+
"class": "".concat(footerStyles.divider) + ' my-3 '
|
|
32869
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
32870
|
+
className: "col-lg-12 p-0 m-0 w-100 d-flex flex-row align-items-center justify-content-center"
|
|
32871
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
32872
|
+
className: "".concat(footerStyles.payimgcont),
|
|
32873
|
+
style: {
|
|
32874
|
+
width: '50px',
|
|
32875
|
+
height: '40px'
|
|
32876
|
+
}
|
|
32877
|
+
}, /*#__PURE__*/React.createElement("img", {
|
|
32878
|
+
src: 'https://tabex-co.com/storage/StaticImages/visa.png',
|
|
32879
|
+
className: "".concat(footerStyles.payimg)
|
|
32880
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
32881
|
+
className: "".concat(footerStyles.payimgcont),
|
|
32882
|
+
style: {
|
|
32883
|
+
width: '70px',
|
|
32884
|
+
height: '30px'
|
|
32885
|
+
}
|
|
32886
|
+
}, /*#__PURE__*/React.createElement("img", {
|
|
32887
|
+
src: 'https://tabex-co.com/storage/StaticImages/mastercard.png',
|
|
32888
|
+
className: "".concat(footerStyles.payimg)
|
|
32889
|
+
})))), /*#__PURE__*/React.createElement("div", {
|
|
32792
32890
|
"class": "".concat(footerStyles.divider) + ' d-none d-md-flex '
|
|
32793
32891
|
}), /*#__PURE__*/React.createElement("div", {
|
|
32794
32892
|
"class": "row m-0 w-100 justify-content-center d-none d-md-flex"
|
|
32795
|
-
}, StoreInformation())
|
|
32893
|
+
}, StoreInformation()), sectionproperties.showpaymentfooter == 'Show' && /*#__PURE__*/React.createElement("div", {
|
|
32894
|
+
className: "row m-0 w-100 d-none d-md-flex"
|
|
32895
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
32896
|
+
"class": "".concat(footerStyles.divider) + ' my-3 '
|
|
32897
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
32898
|
+
className: "col-lg-12 p-0 m-0 w-100 d-flex flex-row align-items-center justify-content-center"
|
|
32899
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
32900
|
+
className: "".concat(footerStyles.payimgcont),
|
|
32901
|
+
style: {
|
|
32902
|
+
width: '50px',
|
|
32903
|
+
height: '40px'
|
|
32904
|
+
}
|
|
32905
|
+
}, /*#__PURE__*/React.createElement("img", {
|
|
32906
|
+
src: 'https://tabex-co.com/storage/StaticImages/visa.png',
|
|
32907
|
+
className: "".concat(footerStyles.payimg)
|
|
32908
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
32909
|
+
className: "".concat(footerStyles.payimgcont),
|
|
32910
|
+
style: {
|
|
32911
|
+
width: '70px',
|
|
32912
|
+
height: '30px'
|
|
32913
|
+
}
|
|
32914
|
+
}, /*#__PURE__*/React.createElement("img", {
|
|
32915
|
+
src: 'https://tabex-co.com/storage/StaticImages/mastercard.png',
|
|
32916
|
+
className: "".concat(footerStyles.payimg)
|
|
32917
|
+
}))))));
|
|
32796
32918
|
};
|
|
32797
32919
|
|
|
32798
32920
|
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; }
|
|
@@ -42658,7 +42780,7 @@ var CustomerAddressForm = function CustomerAddressForm(props) {
|
|
|
42658
42780
|
}
|
|
42659
42781
|
},
|
|
42660
42782
|
styles: langdetect == 'en' ? defaultstyles : defaultstylestranslated,
|
|
42661
|
-
placeholder:
|
|
42783
|
+
placeholder: '',
|
|
42662
42784
|
isSearchable: true
|
|
42663
42785
|
})), sectionproperties.hidecountrystatecity == 'Show' && /*#__PURE__*/React.createElement("div", {
|
|
42664
42786
|
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'
|
|
@@ -42678,7 +42800,7 @@ var CustomerAddressForm = function CustomerAddressForm(props) {
|
|
|
42678
42800
|
duration: "1s"
|
|
42679
42801
|
})), FetchTabexStatesPayloadobjContext.country_id == '' && /*#__PURE__*/React.createElement(Select, {
|
|
42680
42802
|
styles: langdetect == 'en' ? defaultstyles : defaultstylestranslated,
|
|
42681
|
-
placeholder:
|
|
42803
|
+
placeholder: '',
|
|
42682
42804
|
isSearchable: true
|
|
42683
42805
|
}), !fetchTabexStatesQueryContext.isFetching && fetchTabexStatesQueryContext.isSuccess && /*#__PURE__*/React.createElement(Select, {
|
|
42684
42806
|
options: fetchTabexStatesQueryContext.data.data.states,
|
|
@@ -42717,7 +42839,7 @@ var CustomerAddressForm = function CustomerAddressForm(props) {
|
|
|
42717
42839
|
}
|
|
42718
42840
|
},
|
|
42719
42841
|
styles: langdetect == 'en' ? defaultstyles : defaultstylestranslated,
|
|
42720
|
-
placeholder:
|
|
42842
|
+
placeholder: '',
|
|
42721
42843
|
isSearchable: true
|
|
42722
42844
|
})), sectionproperties.hidecountrystatecity == 'Show' && /*#__PURE__*/React.createElement("div", {
|
|
42723
42845
|
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'
|
|
@@ -42736,7 +42858,7 @@ var CustomerAddressForm = function CustomerAddressForm(props) {
|
|
|
42736
42858
|
height: "20px",
|
|
42737
42859
|
duration: "1s"
|
|
42738
42860
|
})), FetchTabexStatesPayloadobjContext.country_id == '' && /*#__PURE__*/React.createElement(Select, {
|
|
42739
|
-
placeholder:
|
|
42861
|
+
placeholder: '',
|
|
42740
42862
|
styles: langdetect == 'en' ? defaultstyles : defaultstylestranslated,
|
|
42741
42863
|
isSearchable: true
|
|
42742
42864
|
}), !fetchTabexCitiesQueryContext.isFetching && fetchTabexCitiesQueryContext.isSuccess && /*#__PURE__*/React.createElement(Select, {
|
|
@@ -42772,7 +42894,7 @@ var CustomerAddressForm = function CustomerAddressForm(props) {
|
|
|
42772
42894
|
}
|
|
42773
42895
|
},
|
|
42774
42896
|
styles: langdetect == 'en' ? defaultstyles : defaultstylestranslated,
|
|
42775
|
-
placeholder:
|
|
42897
|
+
placeholder: '',
|
|
42776
42898
|
isSearchable: true
|
|
42777
42899
|
})), sectionproperties.hideaddress == 'Show' && props.srcfrom != 'filter' && /*#__PURE__*/React.createElement("div", {
|
|
42778
42900
|
className: 'col-lg-12 col-md-12 col-sm-12 mb-4 p-sm-0'
|
|
@@ -42833,6 +42955,7 @@ var BackgroundImageWithTopContent = function BackgroundImageWithTopContent(props
|
|
|
42833
42955
|
var fetchproductsfilerobjcontext = props.actions.fetchproductsfilerobjcontext;
|
|
42834
42956
|
var routingcountext = props.actions.routingcountext;
|
|
42835
42957
|
var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
|
|
42958
|
+
// const fetchcollectionsQueryContext = props.actions.fetchcollectionsQueryContext;
|
|
42836
42959
|
var _useState7 = useState({
|
|
42837
42960
|
countryid: '',
|
|
42838
42961
|
stateid: '',
|
|
@@ -42841,14 +42964,35 @@ var BackgroundImageWithTopContent = function BackgroundImageWithTopContent(props
|
|
|
42841
42964
|
_useState8 = _slicedToArray(_useState7, 2),
|
|
42842
42965
|
payloadobj = _useState8[0],
|
|
42843
42966
|
setpayloadobj = _useState8[1];
|
|
42967
|
+
var _useState9 = useState([]),
|
|
42968
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
42969
|
+
collectionsarray = _useState10[0],
|
|
42970
|
+
setcollectionsarray = _useState10[1];
|
|
42971
|
+
var _useState11 = useState([]),
|
|
42972
|
+
_useState12 = _slicedToArray(_useState11, 2);
|
|
42973
|
+
_useState12[0];
|
|
42974
|
+
_useState12[1];
|
|
42844
42975
|
var FetchQueriesEngineContext = props.actions.FetchQueriesEngineContext;
|
|
42845
42976
|
var setFetchQueriesEngineContext = props.actions.setFetchQueriesEngineContext;
|
|
42977
|
+
var authdetailsContext = props.actions.authdetailsContext;
|
|
42978
|
+
props.actions.fetchcollectionsQueryContext;
|
|
42846
42979
|
useEffect(function () {
|
|
42847
42980
|
var tempFetchQueriesEngineContext = _objectSpread$15({}, FetchQueriesEngineContext);
|
|
42848
42981
|
tempFetchQueriesEngineContext.fetchtabexcountries = true;
|
|
42982
|
+
tempFetchQueriesEngineContext.collections = true;
|
|
42849
42983
|
setFetchQueriesEngineContext(_objectSpread$15({}, tempFetchQueriesEngineContext));
|
|
42850
42984
|
var tempFetchQueriesEngineContext = _objectSpread$15({}, FetchQueriesEngineContext);
|
|
42985
|
+
|
|
42986
|
+
// authdetailsContext?.instinfo?.instcollections?
|
|
42851
42987
|
}, []);
|
|
42988
|
+
useEffect(function () {
|
|
42989
|
+
var _authdetailsContext$i, _authdetailsContext$i2;
|
|
42990
|
+
var temppcollarray = _toConsumableArray(collectionsarray);
|
|
42991
|
+
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) {
|
|
42992
|
+
temppcollarray.push(arrayItem);
|
|
42993
|
+
});
|
|
42994
|
+
setcollectionsarray(_toConsumableArray(temppcollarray));
|
|
42995
|
+
}, [authdetailsContext]);
|
|
42852
42996
|
useEffect(function () {
|
|
42853
42997
|
var secpropobj = {};
|
|
42854
42998
|
StatePagePropertiesContext.pageobj.sections.forEach(function (sectionitem, sectionindex) {
|
|
@@ -42859,7 +43003,6 @@ var BackgroundImageWithTopContent = function BackgroundImageWithTopContent(props
|
|
|
42859
43003
|
}
|
|
42860
43004
|
});
|
|
42861
43005
|
setsectionproperties(_objectSpread$15({}, secpropobj));
|
|
42862
|
-
// alert(JSON.stringify(fetchTabexCountriesQueryContext));
|
|
42863
43006
|
}, [StatePagePropertiesContext]);
|
|
42864
43007
|
useEffect(function () {
|
|
42865
43008
|
if (sectionproperties.length != 0) {
|
|
@@ -43040,7 +43183,7 @@ var BackgroundImageWithTopContent = function BackgroundImageWithTopContent(props
|
|
|
43040
43183
|
}, sectionproperties.sectiontitleshow == 'Show' && /*#__PURE__*/React.createElement("div", {
|
|
43041
43184
|
"class": "col-lg-12 col-md-12 col-sm-12 p-0 allcentered"
|
|
43042
43185
|
}, /*#__PURE__*/React.createElement("div", {
|
|
43043
|
-
"class": "wordbreak",
|
|
43186
|
+
"class": "wordbreak text-md-center",
|
|
43044
43187
|
style: {
|
|
43045
43188
|
fontSize: sectionproperties.sectionTitleFontSize + 'px',
|
|
43046
43189
|
color: sectionproperties.sectionTitleColor,
|
|
@@ -43059,7 +43202,7 @@ var BackgroundImageWithTopContent = function BackgroundImageWithTopContent(props
|
|
|
43059
43202
|
maxWidth: '500px'
|
|
43060
43203
|
}
|
|
43061
43204
|
}, langdetect == 'en' ? sectionproperties.descriptionContentEn : sectionproperties.descriptionContentAr)), /*#__PURE__*/React.createElement("div", {
|
|
43062
|
-
"class":
|
|
43205
|
+
"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',
|
|
43063
43206
|
style: {
|
|
43064
43207
|
backgroundColor: sectionproperties.reservation_bgcolor,
|
|
43065
43208
|
borderRadius: sectionproperties.reservation_borderradius + 'px',
|
|
@@ -43074,8 +43217,45 @@ var BackgroundImageWithTopContent = function BackgroundImageWithTopContent(props
|
|
|
43074
43217
|
"class": "col-lg-12 p-0"
|
|
43075
43218
|
}, /*#__PURE__*/React.createElement("div", {
|
|
43076
43219
|
"class": "row m-0 w-100 allcentered"
|
|
43077
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
43078
|
-
|
|
43220
|
+
}, sectionproperties.showcollectionsfilter == 'Show' && /*#__PURE__*/React.createElement("div", {
|
|
43221
|
+
className: ' col-lg-2 col-md-12 col-sm-12 mb-md-3 '
|
|
43222
|
+
}, /*#__PURE__*/React.createElement("label", {
|
|
43223
|
+
className: ' d-flex justify-content-start ',
|
|
43224
|
+
style: {
|
|
43225
|
+
color: sectionproperties.form_labelcolor,
|
|
43226
|
+
textTransform: sectionproperties.form_labeltexttransform,
|
|
43227
|
+
fontWeight: sectionproperties.form_labelfontweight,
|
|
43228
|
+
fontSize: sectionproperties.form_labelfontsize + 'px',
|
|
43229
|
+
marginBottom: sectionproperties.inputfieldbordertype == 'All' ? 10 : 0
|
|
43230
|
+
}
|
|
43231
|
+
}, langdetect == 'en' ? sectionproperties.collectionsfilternameen : sectionproperties.collectionsfilternamear), /*#__PURE__*/React.createElement(Select$5, {
|
|
43232
|
+
options: collectionsarray,
|
|
43233
|
+
getOptionLabel: function getOptionLabel(option) {
|
|
43234
|
+
var crname = '';
|
|
43235
|
+
if (langdetect == 'en') {
|
|
43236
|
+
crname = option.title_en;
|
|
43237
|
+
} else if (langdetect == 'ar') {
|
|
43238
|
+
crname = option.title_ar;
|
|
43239
|
+
}
|
|
43240
|
+
return crname;
|
|
43241
|
+
},
|
|
43242
|
+
getOptionValue: function getOptionValue(option) {
|
|
43243
|
+
return option.collectionid;
|
|
43244
|
+
},
|
|
43245
|
+
autocomplete: "new-password"
|
|
43246
|
+
// value={fetchTabexCountriesQueryContext.data.data.countries.filter((option) => option.id == props?.payloadobj?.countryid)}
|
|
43247
|
+
,
|
|
43248
|
+
onChange: function onChange(option) {
|
|
43249
|
+
var temp = payloadobj;
|
|
43250
|
+
temp.collections = [];
|
|
43251
|
+
temp.collections.push(option.collectionid);
|
|
43252
|
+
setpayloadobj(_objectSpread$15({}, temp));
|
|
43253
|
+
},
|
|
43254
|
+
styles: langdetect == 'en' ? defaultstyles : defaultstylestranslated,
|
|
43255
|
+
isSearchable: true,
|
|
43256
|
+
placeholder: ''
|
|
43257
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
43258
|
+
"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'
|
|
43079
43259
|
}, /*#__PURE__*/React.createElement(CustomerAddressForm
|
|
43080
43260
|
// customeraddressrequierd={customeraddressrequierd}
|
|
43081
43261
|
// payloadobj={payloadobj}
|
|
@@ -43093,7 +43273,7 @@ var BackgroundImageWithTopContent = function BackgroundImageWithTopContent(props
|
|
|
43093
43273
|
fetchTabexStatesQueryContext: fetchTabexStatesQueryContext,
|
|
43094
43274
|
fetchTabexCitiesQueryContext: fetchTabexCitiesQueryContext
|
|
43095
43275
|
})), sectionproperties.showpricerange == 'Show' && /*#__PURE__*/React.createElement("div", {
|
|
43096
|
-
className: "".concat(langdetect == 'en' ? 'text-left' : 'text-right') + ' col-lg-3 col-md-12 col-sm-12 mb-sm-3 '
|
|
43276
|
+
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 '
|
|
43097
43277
|
}, /*#__PURE__*/React.createElement("label", {
|
|
43098
43278
|
className: "".concat(sectionstyles.input_label_name) + ' mb-3 '
|
|
43099
43279
|
}, langdetect == 'en' ? 'Price' : 'السعر'), /*#__PURE__*/React.createElement("div", {
|
|
@@ -43113,7 +43293,7 @@ var BackgroundImageWithTopContent = function BackgroundImageWithTopContent(props
|
|
|
43113
43293
|
setpricevalue(_objectSpread$15({}, value));
|
|
43114
43294
|
}
|
|
43115
43295
|
}))))), sectionproperties.generalbtn_show == 'Show' && /*#__PURE__*/React.createElement("div", {
|
|
43116
|
-
"class":
|
|
43296
|
+
"class": 'col-lg-12 mt-3 p-0 allcentered'
|
|
43117
43297
|
}, /*#__PURE__*/React.createElement("button", {
|
|
43118
43298
|
"class": sectionstyles.btnstyles + ' allcentered ',
|
|
43119
43299
|
onClick: function onClick() {
|
|
@@ -43140,6 +43320,9 @@ var BackgroundImageWithTopContent = function BackgroundImageWithTopContent(props
|
|
|
43140
43320
|
tempfetchproductsfilerobjcontext.cityid = payloadobj.cityid;
|
|
43141
43321
|
}
|
|
43142
43322
|
}
|
|
43323
|
+
if ((payloadobj === null || payloadobj === void 0 ? void 0 : payloadobj.collections) != null && payloadobj.collections.length != 0) {
|
|
43324
|
+
tempfetchproductsfilerobjcontext.collections = payloadobj.collections;
|
|
43325
|
+
}
|
|
43143
43326
|
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) {
|
|
43144
43327
|
tempfetchproductsfilerobjcontext.price_min = pricevalue.min;
|
|
43145
43328
|
}
|