tabexseriescomponents 0.0.331 → 0.0.332

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 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);
@@ -13327,6 +13328,7 @@ var CardsSection = function CardsSection(props) {
13327
13328
  if (fetchAuthorizationQueryContext !== null && fetchAuthorizationQueryContext !== void 0 && fetchAuthorizationQueryContext.isSuccess) {
13328
13329
  var _categories;
13329
13330
  var categories = fetchAuthorizationQueryContext.data.data.instinfo.instcategories;
13331
+ // alert(JSON.stringify(categories));
13330
13332
  var parentcollections = [];
13331
13333
  (_categories = categories) === null || _categories === void 0 ? void 0 : _categories.forEach(function (catitem, catindex) {
13332
13334
  catitem === null || catitem === void 0 ? void 0 : catitem.parentcolletions.forEach(function (parentcolitem) {
@@ -13344,6 +13346,15 @@ var CardsSection = function CardsSection(props) {
13344
13346
  });
13345
13347
  parentcollections = arrafterfilter;
13346
13348
  }
13349
+ if (props.collectionidprops != null && props.collectionidprops != undefined && props.collectionidprops != 'all') {
13350
+ var arrafterfilter = [];
13351
+ parentcollections.forEach(function (parentcolitem, parcolindex) {
13352
+ if (parentcolitem.categoryid == props.collectionidprops) {
13353
+ arrafterfilter.push(parentcolitem);
13354
+ }
13355
+ });
13356
+ parentcollections = arrafterfilter;
13357
+ }
13347
13358
  }
13348
13359
  if (fetchingtype == 'innercategories') {
13349
13360
  var arrafterfilter = [];
@@ -13923,6 +13934,8 @@ var CardsSection = function CardsSection(props) {
13923
13934
  } else {
13924
13935
  routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, encodeURIComponent(JSON.stringify(ProductFilterObjContext)));
13925
13936
  }
13937
+ } else if (fetchingtype == 'parentcollections') {
13938
+ routingcountext(StaticPagesLinksContext.InnerCategory, true, 'parentcollections/' + (sectionitem === null || sectionitem === void 0 ? void 0 : sectionitem.productsfetchingtypeparentcollectioncategoryid), true);
13926
13939
  } else {
13927
13940
  routingcountext(StaticPagesLinksContext.GeneralProductsComponent, false);
13928
13941
  }
@@ -42704,7 +42717,7 @@ var CustomerAddressForm = function CustomerAddressForm(props) {
42704
42717
  }
42705
42718
  },
42706
42719
  styles: langdetect == 'en' ? defaultstyles : defaultstylestranslated,
42707
- placeholder: langdetect == 'en' ? 'Choose Country' : 'إختر البلد',
42720
+ placeholder: '',
42708
42721
  isSearchable: true
42709
42722
  })), sectionproperties.hidecountrystatecity == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
42710
42723
  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 +42737,7 @@ var CustomerAddressForm = function CustomerAddressForm(props) {
42724
42737
  duration: "1s"
42725
42738
  })), FetchTabexStatesPayloadobjContext.country_id == '' && /*#__PURE__*/React__default["default"].createElement(Select, {
42726
42739
  styles: langdetect == 'en' ? defaultstyles : defaultstylestranslated,
42727
- placeholder: lang.choosestategov,
42740
+ placeholder: '',
42728
42741
  isSearchable: true
42729
42742
  }), !fetchTabexStatesQueryContext.isFetching && fetchTabexStatesQueryContext.isSuccess && /*#__PURE__*/React__default["default"].createElement(Select, {
42730
42743
  options: fetchTabexStatesQueryContext.data.data.states,
@@ -42763,7 +42776,7 @@ var CustomerAddressForm = function CustomerAddressForm(props) {
42763
42776
  }
42764
42777
  },
42765
42778
  styles: langdetect == 'en' ? defaultstyles : defaultstylestranslated,
42766
- placeholder: lang.choosestategov,
42779
+ placeholder: '',
42767
42780
  isSearchable: true
42768
42781
  })), sectionproperties.hidecountrystatecity == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
42769
42782
  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 +42795,7 @@ var CustomerAddressForm = function CustomerAddressForm(props) {
42782
42795
  height: "20px",
42783
42796
  duration: "1s"
42784
42797
  })), FetchTabexStatesPayloadobjContext.country_id == '' && /*#__PURE__*/React__default["default"].createElement(Select, {
42785
- placeholder: lang.choosecity,
42798
+ placeholder: '',
42786
42799
  styles: langdetect == 'en' ? defaultstyles : defaultstylestranslated,
42787
42800
  isSearchable: true
42788
42801
  }), !fetchTabexCitiesQueryContext.isFetching && fetchTabexCitiesQueryContext.isSuccess && /*#__PURE__*/React__default["default"].createElement(Select, {
@@ -42818,7 +42831,7 @@ var CustomerAddressForm = function CustomerAddressForm(props) {
42818
42831
  }
42819
42832
  },
42820
42833
  styles: langdetect == 'en' ? defaultstyles : defaultstylestranslated,
42821
- placeholder: lang.choosecity,
42834
+ placeholder: '',
42822
42835
  isSearchable: true
42823
42836
  })), sectionproperties.hideaddress == 'Show' && props.srcfrom != 'filter' && /*#__PURE__*/React__default["default"].createElement("div", {
42824
42837
  className: 'col-lg-12 col-md-12 col-sm-12 mb-4 p-sm-0'
@@ -42879,6 +42892,7 @@ var BackgroundImageWithTopContent = function BackgroundImageWithTopContent(props
42879
42892
  var fetchproductsfilerobjcontext = props.actions.fetchproductsfilerobjcontext;
42880
42893
  var routingcountext = props.actions.routingcountext;
42881
42894
  var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
42895
+ // const fetchcollectionsQueryContext = props.actions.fetchcollectionsQueryContext;
42882
42896
  var _useState7 = React.useState({
42883
42897
  countryid: '',
42884
42898
  stateid: '',
@@ -42887,14 +42901,35 @@ var BackgroundImageWithTopContent = function BackgroundImageWithTopContent(props
42887
42901
  _useState8 = _slicedToArray__default["default"](_useState7, 2),
42888
42902
  payloadobj = _useState8[0],
42889
42903
  setpayloadobj = _useState8[1];
42904
+ var _useState9 = React.useState([]),
42905
+ _useState10 = _slicedToArray__default["default"](_useState9, 2),
42906
+ collectionsarray = _useState10[0],
42907
+ setcollectionsarray = _useState10[1];
42908
+ var _useState11 = React.useState([]),
42909
+ _useState12 = _slicedToArray__default["default"](_useState11, 2);
42910
+ _useState12[0];
42911
+ _useState12[1];
42890
42912
  var FetchQueriesEngineContext = props.actions.FetchQueriesEngineContext;
42891
42913
  var setFetchQueriesEngineContext = props.actions.setFetchQueriesEngineContext;
42914
+ var authdetailsContext = props.actions.authdetailsContext;
42915
+ props.actions.fetchcollectionsQueryContext;
42892
42916
  React.useEffect(function () {
42893
42917
  var tempFetchQueriesEngineContext = _objectSpread$15({}, FetchQueriesEngineContext);
42894
42918
  tempFetchQueriesEngineContext.fetchtabexcountries = true;
42919
+ tempFetchQueriesEngineContext.collections = true;
42895
42920
  setFetchQueriesEngineContext(_objectSpread$15({}, tempFetchQueriesEngineContext));
42896
42921
  var tempFetchQueriesEngineContext = _objectSpread$15({}, FetchQueriesEngineContext);
42922
+
42923
+ // authdetailsContext?.instinfo?.instcollections?
42897
42924
  }, []);
42925
+ React.useEffect(function () {
42926
+ var _authdetailsContext$i, _authdetailsContext$i2;
42927
+ var temppcollarray = _toConsumableArray__default["default"](collectionsarray);
42928
+ 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) {
42929
+ temppcollarray.push(arrayItem);
42930
+ });
42931
+ setcollectionsarray(_toConsumableArray__default["default"](temppcollarray));
42932
+ }, [authdetailsContext]);
42898
42933
  React.useEffect(function () {
42899
42934
  var secpropobj = {};
42900
42935
  StatePagePropertiesContext.pageobj.sections.forEach(function (sectionitem, sectionindex) {
@@ -42905,7 +42940,6 @@ var BackgroundImageWithTopContent = function BackgroundImageWithTopContent(props
42905
42940
  }
42906
42941
  });
42907
42942
  setsectionproperties(_objectSpread$15({}, secpropobj));
42908
- // alert(JSON.stringify(fetchTabexCountriesQueryContext));
42909
42943
  }, [StatePagePropertiesContext]);
42910
42944
  React.useEffect(function () {
42911
42945
  if (sectionproperties.length != 0) {
@@ -43086,7 +43120,7 @@ var BackgroundImageWithTopContent = function BackgroundImageWithTopContent(props
43086
43120
  }, sectionproperties.sectiontitleshow == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
43087
43121
  "class": "col-lg-12 col-md-12 col-sm-12 p-0 allcentered"
43088
43122
  }, /*#__PURE__*/React__default["default"].createElement("div", {
43089
- "class": "wordbreak",
43123
+ "class": "wordbreak text-md-center",
43090
43124
  style: {
43091
43125
  fontSize: sectionproperties.sectionTitleFontSize + 'px',
43092
43126
  color: sectionproperties.sectionTitleColor,
@@ -43105,7 +43139,7 @@ var BackgroundImageWithTopContent = function BackgroundImageWithTopContent(props
43105
43139
  maxWidth: '500px'
43106
43140
  }
43107
43141
  }, langdetect == 'en' ? sectionproperties.descriptionContentEn : sectionproperties.descriptionContentAr)), /*#__PURE__*/React__default["default"].createElement("div", {
43108
- "class": "col-lg-9 col-md-10 col-sm-10 allcentered mt-3",
43142
+ "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
43143
  style: {
43110
43144
  backgroundColor: sectionproperties.reservation_bgcolor,
43111
43145
  borderRadius: sectionproperties.reservation_borderradius + 'px',
@@ -43120,8 +43154,45 @@ var BackgroundImageWithTopContent = function BackgroundImageWithTopContent(props
43120
43154
  "class": "col-lg-12 p-0"
43121
43155
  }, /*#__PURE__*/React__default["default"].createElement("div", {
43122
43156
  "class": "row m-0 w-100 allcentered"
43123
- }, /*#__PURE__*/React__default["default"].createElement("div", {
43124
- "class": sectionproperties.showpricerange == 'Show' ? 'col-lg-9 p-0' : 'col-lg-12 p-0'
43157
+ }, sectionproperties.showcollectionsfilter == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
43158
+ className: ' col-lg-2 col-md-12 col-sm-12 mb-md-3 '
43159
+ }, /*#__PURE__*/React__default["default"].createElement("label", {
43160
+ className: ' d-flex justify-content-start ',
43161
+ style: {
43162
+ color: sectionproperties.form_labelcolor,
43163
+ textTransform: sectionproperties.form_labeltexttransform,
43164
+ fontWeight: sectionproperties.form_labelfontweight,
43165
+ fontSize: sectionproperties.form_labelfontsize + 'px',
43166
+ marginBottom: sectionproperties.inputfieldbordertype == 'All' ? 10 : 0
43167
+ }
43168
+ }, langdetect == 'en' ? sectionproperties.collectionsfilternameen : sectionproperties.collectionsfilternamear), /*#__PURE__*/React__default["default"].createElement(Select__default["default"], {
43169
+ options: collectionsarray,
43170
+ getOptionLabel: function getOptionLabel(option) {
43171
+ var crname = '';
43172
+ if (langdetect == 'en') {
43173
+ crname = option.title_en;
43174
+ } else if (langdetect == 'ar') {
43175
+ crname = option.title_ar;
43176
+ }
43177
+ return crname;
43178
+ },
43179
+ getOptionValue: function getOptionValue(option) {
43180
+ return option.collectionid;
43181
+ },
43182
+ autocomplete: "new-password"
43183
+ // value={fetchTabexCountriesQueryContext.data.data.countries.filter((option) => option.id == props?.payloadobj?.countryid)}
43184
+ ,
43185
+ onChange: function onChange(option) {
43186
+ var temp = payloadobj;
43187
+ temp.collections = [];
43188
+ temp.collections.push(option.collectionid);
43189
+ setpayloadobj(_objectSpread$15({}, temp));
43190
+ },
43191
+ styles: langdetect == 'en' ? defaultstyles : defaultstylestranslated,
43192
+ isSearchable: true,
43193
+ placeholder: ''
43194
+ })), /*#__PURE__*/React__default["default"].createElement("div", {
43195
+ "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
43196
  }, /*#__PURE__*/React__default["default"].createElement(CustomerAddressForm
43126
43197
  // customeraddressrequierd={customeraddressrequierd}
43127
43198
  // payloadobj={payloadobj}
@@ -43139,7 +43210,7 @@ var BackgroundImageWithTopContent = function BackgroundImageWithTopContent(props
43139
43210
  fetchTabexStatesQueryContext: fetchTabexStatesQueryContext,
43140
43211
  fetchTabexCitiesQueryContext: fetchTabexCitiesQueryContext
43141
43212
  })), 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 '
43213
+ 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
43214
  }, /*#__PURE__*/React__default["default"].createElement("label", {
43144
43215
  className: "".concat(sectionstyles.input_label_name) + ' mb-3 '
43145
43216
  }, langdetect == 'en' ? 'Price' : 'السعر'), /*#__PURE__*/React__default["default"].createElement("div", {
@@ -43159,7 +43230,7 @@ var BackgroundImageWithTopContent = function BackgroundImageWithTopContent(props
43159
43230
  setpricevalue(_objectSpread$15({}, value));
43160
43231
  }
43161
43232
  }))))), sectionproperties.generalbtn_show == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
43162
- "class": "col-lg-12 p-0 allcentered mt-3"
43233
+ "class": 'col-lg-12 mt-3 p-0 allcentered'
43163
43234
  }, /*#__PURE__*/React__default["default"].createElement("button", {
43164
43235
  "class": sectionstyles.btnstyles + ' allcentered ',
43165
43236
  onClick: function onClick() {
@@ -43186,6 +43257,9 @@ var BackgroundImageWithTopContent = function BackgroundImageWithTopContent(props
43186
43257
  tempfetchproductsfilerobjcontext.cityid = payloadobj.cityid;
43187
43258
  }
43188
43259
  }
43260
+ if ((payloadobj === null || payloadobj === void 0 ? void 0 : payloadobj.collections) != null && payloadobj.collections.length != 0) {
43261
+ tempfetchproductsfilerobjcontext.collections = payloadobj.collections;
43262
+ }
43189
43263
  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
43264
  tempfetchproductsfilerobjcontext.price_min = pricevalue.min;
43191
43265
  }
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';
@@ -13281,6 +13281,7 @@ var CardsSection = function CardsSection(props) {
13281
13281
  if (fetchAuthorizationQueryContext !== null && fetchAuthorizationQueryContext !== void 0 && fetchAuthorizationQueryContext.isSuccess) {
13282
13282
  var _categories;
13283
13283
  var categories = fetchAuthorizationQueryContext.data.data.instinfo.instcategories;
13284
+ // alert(JSON.stringify(categories));
13284
13285
  var parentcollections = [];
13285
13286
  (_categories = categories) === null || _categories === void 0 ? void 0 : _categories.forEach(function (catitem, catindex) {
13286
13287
  catitem === null || catitem === void 0 ? void 0 : catitem.parentcolletions.forEach(function (parentcolitem) {
@@ -13298,6 +13299,15 @@ var CardsSection = function CardsSection(props) {
13298
13299
  });
13299
13300
  parentcollections = arrafterfilter;
13300
13301
  }
13302
+ if (props.collectionidprops != null && props.collectionidprops != undefined && props.collectionidprops != 'all') {
13303
+ var arrafterfilter = [];
13304
+ parentcollections.forEach(function (parentcolitem, parcolindex) {
13305
+ if (parentcolitem.categoryid == props.collectionidprops) {
13306
+ arrafterfilter.push(parentcolitem);
13307
+ }
13308
+ });
13309
+ parentcollections = arrafterfilter;
13310
+ }
13301
13311
  }
13302
13312
  if (fetchingtype == 'innercategories') {
13303
13313
  var arrafterfilter = [];
@@ -13877,6 +13887,8 @@ var CardsSection = function CardsSection(props) {
13877
13887
  } else {
13878
13888
  routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, encodeURIComponent(JSON.stringify(ProductFilterObjContext)));
13879
13889
  }
13890
+ } else if (fetchingtype == 'parentcollections') {
13891
+ routingcountext(StaticPagesLinksContext.InnerCategory, true, 'parentcollections/' + (sectionitem === null || sectionitem === void 0 ? void 0 : sectionitem.productsfetchingtypeparentcollectioncategoryid), true);
13880
13892
  } else {
13881
13893
  routingcountext(StaticPagesLinksContext.GeneralProductsComponent, false);
13882
13894
  }
@@ -42658,7 +42670,7 @@ var CustomerAddressForm = function CustomerAddressForm(props) {
42658
42670
  }
42659
42671
  },
42660
42672
  styles: langdetect == 'en' ? defaultstyles : defaultstylestranslated,
42661
- placeholder: langdetect == 'en' ? 'Choose Country' : 'إختر البلد',
42673
+ placeholder: '',
42662
42674
  isSearchable: true
42663
42675
  })), sectionproperties.hidecountrystatecity == 'Show' && /*#__PURE__*/React.createElement("div", {
42664
42676
  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 +42690,7 @@ var CustomerAddressForm = function CustomerAddressForm(props) {
42678
42690
  duration: "1s"
42679
42691
  })), FetchTabexStatesPayloadobjContext.country_id == '' && /*#__PURE__*/React.createElement(Select, {
42680
42692
  styles: langdetect == 'en' ? defaultstyles : defaultstylestranslated,
42681
- placeholder: lang.choosestategov,
42693
+ placeholder: '',
42682
42694
  isSearchable: true
42683
42695
  }), !fetchTabexStatesQueryContext.isFetching && fetchTabexStatesQueryContext.isSuccess && /*#__PURE__*/React.createElement(Select, {
42684
42696
  options: fetchTabexStatesQueryContext.data.data.states,
@@ -42717,7 +42729,7 @@ var CustomerAddressForm = function CustomerAddressForm(props) {
42717
42729
  }
42718
42730
  },
42719
42731
  styles: langdetect == 'en' ? defaultstyles : defaultstylestranslated,
42720
- placeholder: lang.choosestategov,
42732
+ placeholder: '',
42721
42733
  isSearchable: true
42722
42734
  })), sectionproperties.hidecountrystatecity == 'Show' && /*#__PURE__*/React.createElement("div", {
42723
42735
  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 +42748,7 @@ var CustomerAddressForm = function CustomerAddressForm(props) {
42736
42748
  height: "20px",
42737
42749
  duration: "1s"
42738
42750
  })), FetchTabexStatesPayloadobjContext.country_id == '' && /*#__PURE__*/React.createElement(Select, {
42739
- placeholder: lang.choosecity,
42751
+ placeholder: '',
42740
42752
  styles: langdetect == 'en' ? defaultstyles : defaultstylestranslated,
42741
42753
  isSearchable: true
42742
42754
  }), !fetchTabexCitiesQueryContext.isFetching && fetchTabexCitiesQueryContext.isSuccess && /*#__PURE__*/React.createElement(Select, {
@@ -42772,7 +42784,7 @@ var CustomerAddressForm = function CustomerAddressForm(props) {
42772
42784
  }
42773
42785
  },
42774
42786
  styles: langdetect == 'en' ? defaultstyles : defaultstylestranslated,
42775
- placeholder: lang.choosecity,
42787
+ placeholder: '',
42776
42788
  isSearchable: true
42777
42789
  })), sectionproperties.hideaddress == 'Show' && props.srcfrom != 'filter' && /*#__PURE__*/React.createElement("div", {
42778
42790
  className: 'col-lg-12 col-md-12 col-sm-12 mb-4 p-sm-0'
@@ -42833,6 +42845,7 @@ var BackgroundImageWithTopContent = function BackgroundImageWithTopContent(props
42833
42845
  var fetchproductsfilerobjcontext = props.actions.fetchproductsfilerobjcontext;
42834
42846
  var routingcountext = props.actions.routingcountext;
42835
42847
  var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
42848
+ // const fetchcollectionsQueryContext = props.actions.fetchcollectionsQueryContext;
42836
42849
  var _useState7 = useState({
42837
42850
  countryid: '',
42838
42851
  stateid: '',
@@ -42841,14 +42854,35 @@ var BackgroundImageWithTopContent = function BackgroundImageWithTopContent(props
42841
42854
  _useState8 = _slicedToArray(_useState7, 2),
42842
42855
  payloadobj = _useState8[0],
42843
42856
  setpayloadobj = _useState8[1];
42857
+ var _useState9 = useState([]),
42858
+ _useState10 = _slicedToArray(_useState9, 2),
42859
+ collectionsarray = _useState10[0],
42860
+ setcollectionsarray = _useState10[1];
42861
+ var _useState11 = useState([]),
42862
+ _useState12 = _slicedToArray(_useState11, 2);
42863
+ _useState12[0];
42864
+ _useState12[1];
42844
42865
  var FetchQueriesEngineContext = props.actions.FetchQueriesEngineContext;
42845
42866
  var setFetchQueriesEngineContext = props.actions.setFetchQueriesEngineContext;
42867
+ var authdetailsContext = props.actions.authdetailsContext;
42868
+ props.actions.fetchcollectionsQueryContext;
42846
42869
  useEffect(function () {
42847
42870
  var tempFetchQueriesEngineContext = _objectSpread$15({}, FetchQueriesEngineContext);
42848
42871
  tempFetchQueriesEngineContext.fetchtabexcountries = true;
42872
+ tempFetchQueriesEngineContext.collections = true;
42849
42873
  setFetchQueriesEngineContext(_objectSpread$15({}, tempFetchQueriesEngineContext));
42850
42874
  var tempFetchQueriesEngineContext = _objectSpread$15({}, FetchQueriesEngineContext);
42875
+
42876
+ // authdetailsContext?.instinfo?.instcollections?
42851
42877
  }, []);
42878
+ useEffect(function () {
42879
+ var _authdetailsContext$i, _authdetailsContext$i2;
42880
+ var temppcollarray = _toConsumableArray(collectionsarray);
42881
+ 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) {
42882
+ temppcollarray.push(arrayItem);
42883
+ });
42884
+ setcollectionsarray(_toConsumableArray(temppcollarray));
42885
+ }, [authdetailsContext]);
42852
42886
  useEffect(function () {
42853
42887
  var secpropobj = {};
42854
42888
  StatePagePropertiesContext.pageobj.sections.forEach(function (sectionitem, sectionindex) {
@@ -42859,7 +42893,6 @@ var BackgroundImageWithTopContent = function BackgroundImageWithTopContent(props
42859
42893
  }
42860
42894
  });
42861
42895
  setsectionproperties(_objectSpread$15({}, secpropobj));
42862
- // alert(JSON.stringify(fetchTabexCountriesQueryContext));
42863
42896
  }, [StatePagePropertiesContext]);
42864
42897
  useEffect(function () {
42865
42898
  if (sectionproperties.length != 0) {
@@ -43040,7 +43073,7 @@ var BackgroundImageWithTopContent = function BackgroundImageWithTopContent(props
43040
43073
  }, sectionproperties.sectiontitleshow == 'Show' && /*#__PURE__*/React.createElement("div", {
43041
43074
  "class": "col-lg-12 col-md-12 col-sm-12 p-0 allcentered"
43042
43075
  }, /*#__PURE__*/React.createElement("div", {
43043
- "class": "wordbreak",
43076
+ "class": "wordbreak text-md-center",
43044
43077
  style: {
43045
43078
  fontSize: sectionproperties.sectionTitleFontSize + 'px',
43046
43079
  color: sectionproperties.sectionTitleColor,
@@ -43059,7 +43092,7 @@ var BackgroundImageWithTopContent = function BackgroundImageWithTopContent(props
43059
43092
  maxWidth: '500px'
43060
43093
  }
43061
43094
  }, langdetect == 'en' ? sectionproperties.descriptionContentEn : sectionproperties.descriptionContentAr)), /*#__PURE__*/React.createElement("div", {
43062
- "class": "col-lg-9 col-md-10 col-sm-10 allcentered mt-3",
43095
+ "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
43096
  style: {
43064
43097
  backgroundColor: sectionproperties.reservation_bgcolor,
43065
43098
  borderRadius: sectionproperties.reservation_borderradius + 'px',
@@ -43074,8 +43107,45 @@ var BackgroundImageWithTopContent = function BackgroundImageWithTopContent(props
43074
43107
  "class": "col-lg-12 p-0"
43075
43108
  }, /*#__PURE__*/React.createElement("div", {
43076
43109
  "class": "row m-0 w-100 allcentered"
43077
- }, /*#__PURE__*/React.createElement("div", {
43078
- "class": sectionproperties.showpricerange == 'Show' ? 'col-lg-9 p-0' : 'col-lg-12 p-0'
43110
+ }, sectionproperties.showcollectionsfilter == 'Show' && /*#__PURE__*/React.createElement("div", {
43111
+ className: ' col-lg-2 col-md-12 col-sm-12 mb-md-3 '
43112
+ }, /*#__PURE__*/React.createElement("label", {
43113
+ className: ' d-flex justify-content-start ',
43114
+ style: {
43115
+ color: sectionproperties.form_labelcolor,
43116
+ textTransform: sectionproperties.form_labeltexttransform,
43117
+ fontWeight: sectionproperties.form_labelfontweight,
43118
+ fontSize: sectionproperties.form_labelfontsize + 'px',
43119
+ marginBottom: sectionproperties.inputfieldbordertype == 'All' ? 10 : 0
43120
+ }
43121
+ }, langdetect == 'en' ? sectionproperties.collectionsfilternameen : sectionproperties.collectionsfilternamear), /*#__PURE__*/React.createElement(Select$5, {
43122
+ options: collectionsarray,
43123
+ getOptionLabel: function getOptionLabel(option) {
43124
+ var crname = '';
43125
+ if (langdetect == 'en') {
43126
+ crname = option.title_en;
43127
+ } else if (langdetect == 'ar') {
43128
+ crname = option.title_ar;
43129
+ }
43130
+ return crname;
43131
+ },
43132
+ getOptionValue: function getOptionValue(option) {
43133
+ return option.collectionid;
43134
+ },
43135
+ autocomplete: "new-password"
43136
+ // value={fetchTabexCountriesQueryContext.data.data.countries.filter((option) => option.id == props?.payloadobj?.countryid)}
43137
+ ,
43138
+ onChange: function onChange(option) {
43139
+ var temp = payloadobj;
43140
+ temp.collections = [];
43141
+ temp.collections.push(option.collectionid);
43142
+ setpayloadobj(_objectSpread$15({}, temp));
43143
+ },
43144
+ styles: langdetect == 'en' ? defaultstyles : defaultstylestranslated,
43145
+ isSearchable: true,
43146
+ placeholder: ''
43147
+ })), /*#__PURE__*/React.createElement("div", {
43148
+ "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
43149
  }, /*#__PURE__*/React.createElement(CustomerAddressForm
43080
43150
  // customeraddressrequierd={customeraddressrequierd}
43081
43151
  // payloadobj={payloadobj}
@@ -43093,7 +43163,7 @@ var BackgroundImageWithTopContent = function BackgroundImageWithTopContent(props
43093
43163
  fetchTabexStatesQueryContext: fetchTabexStatesQueryContext,
43094
43164
  fetchTabexCitiesQueryContext: fetchTabexCitiesQueryContext
43095
43165
  })), 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 '
43166
+ 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
43167
  }, /*#__PURE__*/React.createElement("label", {
43098
43168
  className: "".concat(sectionstyles.input_label_name) + ' mb-3 '
43099
43169
  }, langdetect == 'en' ? 'Price' : 'السعر'), /*#__PURE__*/React.createElement("div", {
@@ -43113,7 +43183,7 @@ var BackgroundImageWithTopContent = function BackgroundImageWithTopContent(props
43113
43183
  setpricevalue(_objectSpread$15({}, value));
43114
43184
  }
43115
43185
  }))))), sectionproperties.generalbtn_show == 'Show' && /*#__PURE__*/React.createElement("div", {
43116
- "class": "col-lg-12 p-0 allcentered mt-3"
43186
+ "class": 'col-lg-12 mt-3 p-0 allcentered'
43117
43187
  }, /*#__PURE__*/React.createElement("button", {
43118
43188
  "class": sectionstyles.btnstyles + ' allcentered ',
43119
43189
  onClick: function onClick() {
@@ -43140,6 +43210,9 @@ var BackgroundImageWithTopContent = function BackgroundImageWithTopContent(props
43140
43210
  tempfetchproductsfilerobjcontext.cityid = payloadobj.cityid;
43141
43211
  }
43142
43212
  }
43213
+ if ((payloadobj === null || payloadobj === void 0 ? void 0 : payloadobj.collections) != null && payloadobj.collections.length != 0) {
43214
+ tempfetchproductsfilerobjcontext.collections = payloadobj.collections;
43215
+ }
43143
43216
  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
43217
  tempfetchproductsfilerobjcontext.price_min = pricevalue.min;
43145
43218
  }
package/dist/index.umd.js CHANGED
@@ -1,8 +1,8 @@
1
1
  (function (global, factory) {
2
2
  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('@babel/runtime/helpers/slicedToArray'), require('react'), require('@babel/runtime/helpers/classCallCheck'), require('@babel/runtime/helpers/createClass'), require('@babel/runtime/helpers/assertThisInitialized'), require('@babel/runtime/helpers/inherits'), require('@babel/runtime/helpers/possibleConstructorReturn'), require('@babel/runtime/helpers/getPrototypeOf'), require('@babel/runtime/helpers/defineProperty'), require('universal-cookie'), require('react-cssfx-loading'), require('glamor'), require('@react-oauth/google'), require('jwt-decode'), require('react-facebook-login/dist/facebook-login-render-props'), require('@react-icons/all-files/fa/FaFacebookF'), require('@react-icons/all-files/ai/AiOutlineUser'), require('@react-icons/all-files/io/IoMdClose'), require('react-bootstrap'), require('imagekitio-react'), require('react-image-gallery'), require('@react-icons/all-files/md/MdAddShoppingCart'), require('@react-icons/all-files/io5/IoBagHandleOutline'), require('@react-icons/all-files/bs/BsBag'), require('@react-icons/all-files/cg/CgShoppingBag'), require('@react-icons/all-files/fa/FaRegHeart'), require('@react-icons/all-files/fa/FaHeart'), require('@react-icons/all-files/fi/FiShoppingBag'), require('@react-icons/all-files/fi/FiShoppingCart'), require('@react-icons/all-files/ai/AiFillStar'), require('@react-icons/all-files/ai/AiOutlineStar'), require('react-share'), require('@react-icons/all-files/fi/FiMinus'), require('@react-icons/all-files/fi/FiPlus'), require('react-rating-stars-component'), require('@react-icons/all-files/fi/FiLayers'), require('@babel/runtime/helpers/toConsumableArray'), require('react-textarea-autosize'), require('@react-icons/all-files/ai/AiOutlineClockCircle'), require('@react-icons/all-files/ai/AiOutlinePlus'), require('@react-icons/all-files/ai/AiOutlineCheck'), require('react-horizontal-scrolling-menu'), require('@mui/material'), require('@react-icons/all-files/hi/HiOutlinePhone'), require('@react-icons/all-files/ai/AiOutlineMail'), require('@react-icons/all-files/fa/FaShippingFast'), require('@react-icons/all-files/ri/RiSecurePaymentLine'), require('@react-icons/all-files/ai/AiOutlineSecurityScan'), require('@react-icons/all-files/fa/FaStar'), require('@react-icons/all-files/io5/IoLocationSharp'), require('@react-icons/all-files/hi/HiOutlineChevronRight'), require('@react-icons/all-files/hi/HiOutlineChevronLeft'), require('@react-icons/all-files/go/GoGlobe'), require('@react-icons/all-files/vsc/VscGlobe'), require('@react-icons/all-files/hi/HiOutlineTrash'), require('@react-icons/all-files/bi/BiSad'), require('@react-icons/all-files/fi/FiCalendar'), require('react-bootstrap/Dropdown'), require('@react-icons/all-files/hi/HiUser'), require('@react-icons/all-files/gr/GrMail'), require('@react-icons/all-files/fi/FiCheckCircle'), require('@react-icons/all-files/bi/BiPhone'), require('react-phone-input-2'), require('@react-icons/all-files/ai/AiOutlineEye'), require('@react-icons/all-files/ai/AiOutlineEyeInvisible'), require('@react-icons/all-files/bs/BsChevronLeft'), require('@react-icons/all-files/bs/BsChevronRight'), require('@react-icons/all-files/ri/RiArrowUpSLine'), require('@react-icons/all-files/ri/RiArrowDownSLine'), require('@react-icons/all-files/io/IoIosArrowRoundForward'), require('@react-icons/all-files/io/IoIosArrowRoundBack'), require('react-accessible-accordion'), require('@react-icons/all-files/fi/FiChevronUp'), require('@react-icons/all-files/fi/FiChevronDown'), require('@react-icons/all-files/hi/HiOutlinePlus'), require('@react-icons/all-files/ai/AiOutlineMinus'), require('react-router-dom'), require('react-query'), require('@react-icons/all-files/io5/IoBagCheckOutline'), require('@react-icons/all-files/io5/IoBagRemoveOutline'), require('react-input-range'), require('react-intersection-observer'), require('@react-icons/all-files/fa/FaArrowAltCircleRight'), require('@react-icons/all-files/fa/FaArrowAltCircleLeft'), require('@react-icons/all-files/fi/FiFilter'), require('@react-icons/all-files/fi/FiChevronLeft'), require('@react-icons/all-files/fi/FiChevronRight'), require('@react-icons/all-files/hi/HiOutlineArrowRight'), require('@react-icons/all-files/hi/HiOutlineArrowLeft'), require('react-paginate'), require('@react-icons/all-files/bi/BiGlobe'), require('@react-icons/all-files/md/MdKeyboardArrowDown'), require('@react-icons/all-files/fa/FaMoneyBillWave'), require('@react-icons/all-files/bi/BiLogOutCircle'), require('@react-icons/all-files/bi/BiChevronDown'), require('@react-icons/all-files/bi/BiUser'), require('@react-icons/all-files/ai/AiOutlineLogin'), require('@react-icons/all-files/ai/AiOutlineUserAdd'), require('@react-icons/all-files/ri/RiSearchLine'), require('@react-icons/all-files/cg/CgMenuLeft'), require('@react-icons/all-files/cg/CgMenuRight'), require('@react-icons/all-files/hi/HiOutlineShoppingBag'), require('@react-icons/all-files/ri/RiHandbagLine'), require('@react-icons/all-files/bi/BiSearch'), require('@react-icons/all-files/fi/FiUser'), require('@react-icons/all-files/ai/AiOutlineHeart'), require('@react-icons/all-files/fi/FiPhone'), require('@react-icons/all-files/hi/HiMenuAlt4'), require('@react-icons/all-files/fi/FiSearch'), require('@react-icons/all-files/bs/BsSearch'), require('@react-icons/all-files/ai/AiFillInstagram'), require('@react-icons/all-files/fa/FaWhatsapp'), require('@react-icons/all-files/go/GoSearch'), require('@react-icons/all-files/ai/AiOutlineInstagram'), require('@react-icons/all-files/bs/BsChevronDown'), require('@react-icons/all-files/ri/RiUserSettingsLine'), require('@react-icons/all-files/io5/IoClose'), require('@react-icons/all-files/hi/HiUserCircle'), require('@react-icons/all-files/md/MdKeyboardArrowUp'), require('@react-icons/all-files/bs/BsInfoCircle'), require('@react-icons/all-files/ai/AiFillPhone'), require('@react-icons/all-files/fa/FaTelegramPlane'), require('@react-icons/all-files/ai/AiFillYoutube'), require('@react-icons/all-files/io5/IoLogoTiktok'), require('@react-icons/all-files/fa/FaPhoneAlt'), require('@react-icons/all-files/fa/FaPhone'), require('@react-icons/all-files/ai/AiOutlinePhone'), require('@react-icons/all-files/go/GoLocation'), require('@react-icons/all-files/ri/RiRoadMapLine'), require('@react-icons/all-files/hi/HiOutlineClock'), require('@react-icons/all-files/ai/AiOutlineLinkedin'), require('react-select'), require('react-player'), require('react-background-slideshow'), require('@babel/runtime/helpers/extends'), require('react-slideshow-image'), require('@react-icons/all-files/hi/HiOutlineLocationMarker'), require('@react-icons/all-files/fi/FiPhoneCall'), require('@react-icons/all-files/fa/FaRegEye'), require('@react-icons/all-files/bs/BsArrowRight'), require('@react-icons/all-files/bs/BsArrowLeft'), require('@react-icons/all-files/bs/BsEye'), require('@react-icons/all-files/bi/BiTimeFive'), require('@react-icons/all-files/io/IoIosArrowUp')) :
3
3
  typeof define === 'function' && define.amd ? define(['@babel/runtime/helpers/slicedToArray', 'react', '@babel/runtime/helpers/classCallCheck', '@babel/runtime/helpers/createClass', '@babel/runtime/helpers/assertThisInitialized', '@babel/runtime/helpers/inherits', '@babel/runtime/helpers/possibleConstructorReturn', '@babel/runtime/helpers/getPrototypeOf', '@babel/runtime/helpers/defineProperty', 'universal-cookie', 'react-cssfx-loading', 'glamor', '@react-oauth/google', 'jwt-decode', 'react-facebook-login/dist/facebook-login-render-props', '@react-icons/all-files/fa/FaFacebookF', '@react-icons/all-files/ai/AiOutlineUser', '@react-icons/all-files/io/IoMdClose', 'react-bootstrap', 'imagekitio-react', 'react-image-gallery', '@react-icons/all-files/md/MdAddShoppingCart', '@react-icons/all-files/io5/IoBagHandleOutline', '@react-icons/all-files/bs/BsBag', '@react-icons/all-files/cg/CgShoppingBag', '@react-icons/all-files/fa/FaRegHeart', '@react-icons/all-files/fa/FaHeart', '@react-icons/all-files/fi/FiShoppingBag', '@react-icons/all-files/fi/FiShoppingCart', '@react-icons/all-files/ai/AiFillStar', '@react-icons/all-files/ai/AiOutlineStar', 'react-share', '@react-icons/all-files/fi/FiMinus', '@react-icons/all-files/fi/FiPlus', 'react-rating-stars-component', '@react-icons/all-files/fi/FiLayers', '@babel/runtime/helpers/toConsumableArray', 'react-textarea-autosize', '@react-icons/all-files/ai/AiOutlineClockCircle', '@react-icons/all-files/ai/AiOutlinePlus', '@react-icons/all-files/ai/AiOutlineCheck', 'react-horizontal-scrolling-menu', '@mui/material', '@react-icons/all-files/hi/HiOutlinePhone', '@react-icons/all-files/ai/AiOutlineMail', '@react-icons/all-files/fa/FaShippingFast', '@react-icons/all-files/ri/RiSecurePaymentLine', '@react-icons/all-files/ai/AiOutlineSecurityScan', '@react-icons/all-files/fa/FaStar', '@react-icons/all-files/io5/IoLocationSharp', '@react-icons/all-files/hi/HiOutlineChevronRight', '@react-icons/all-files/hi/HiOutlineChevronLeft', '@react-icons/all-files/go/GoGlobe', '@react-icons/all-files/vsc/VscGlobe', '@react-icons/all-files/hi/HiOutlineTrash', '@react-icons/all-files/bi/BiSad', '@react-icons/all-files/fi/FiCalendar', 'react-bootstrap/Dropdown', '@react-icons/all-files/hi/HiUser', '@react-icons/all-files/gr/GrMail', '@react-icons/all-files/fi/FiCheckCircle', '@react-icons/all-files/bi/BiPhone', 'react-phone-input-2', '@react-icons/all-files/ai/AiOutlineEye', '@react-icons/all-files/ai/AiOutlineEyeInvisible', '@react-icons/all-files/bs/BsChevronLeft', '@react-icons/all-files/bs/BsChevronRight', '@react-icons/all-files/ri/RiArrowUpSLine', '@react-icons/all-files/ri/RiArrowDownSLine', '@react-icons/all-files/io/IoIosArrowRoundForward', '@react-icons/all-files/io/IoIosArrowRoundBack', 'react-accessible-accordion', '@react-icons/all-files/fi/FiChevronUp', '@react-icons/all-files/fi/FiChevronDown', '@react-icons/all-files/hi/HiOutlinePlus', '@react-icons/all-files/ai/AiOutlineMinus', 'react-router-dom', 'react-query', '@react-icons/all-files/io5/IoBagCheckOutline', '@react-icons/all-files/io5/IoBagRemoveOutline', 'react-input-range', 'react-intersection-observer', '@react-icons/all-files/fa/FaArrowAltCircleRight', '@react-icons/all-files/fa/FaArrowAltCircleLeft', '@react-icons/all-files/fi/FiFilter', '@react-icons/all-files/fi/FiChevronLeft', '@react-icons/all-files/fi/FiChevronRight', '@react-icons/all-files/hi/HiOutlineArrowRight', '@react-icons/all-files/hi/HiOutlineArrowLeft', 'react-paginate', '@react-icons/all-files/bi/BiGlobe', '@react-icons/all-files/md/MdKeyboardArrowDown', '@react-icons/all-files/fa/FaMoneyBillWave', '@react-icons/all-files/bi/BiLogOutCircle', '@react-icons/all-files/bi/BiChevronDown', '@react-icons/all-files/bi/BiUser', '@react-icons/all-files/ai/AiOutlineLogin', '@react-icons/all-files/ai/AiOutlineUserAdd', '@react-icons/all-files/ri/RiSearchLine', '@react-icons/all-files/cg/CgMenuLeft', '@react-icons/all-files/cg/CgMenuRight', '@react-icons/all-files/hi/HiOutlineShoppingBag', '@react-icons/all-files/ri/RiHandbagLine', '@react-icons/all-files/bi/BiSearch', '@react-icons/all-files/fi/FiUser', '@react-icons/all-files/ai/AiOutlineHeart', '@react-icons/all-files/fi/FiPhone', '@react-icons/all-files/hi/HiMenuAlt4', '@react-icons/all-files/fi/FiSearch', '@react-icons/all-files/bs/BsSearch', '@react-icons/all-files/ai/AiFillInstagram', '@react-icons/all-files/fa/FaWhatsapp', '@react-icons/all-files/go/GoSearch', '@react-icons/all-files/ai/AiOutlineInstagram', '@react-icons/all-files/bs/BsChevronDown', '@react-icons/all-files/ri/RiUserSettingsLine', '@react-icons/all-files/io5/IoClose', '@react-icons/all-files/hi/HiUserCircle', '@react-icons/all-files/md/MdKeyboardArrowUp', '@react-icons/all-files/bs/BsInfoCircle', '@react-icons/all-files/ai/AiFillPhone', '@react-icons/all-files/fa/FaTelegramPlane', '@react-icons/all-files/ai/AiFillYoutube', '@react-icons/all-files/io5/IoLogoTiktok', '@react-icons/all-files/fa/FaPhoneAlt', '@react-icons/all-files/fa/FaPhone', '@react-icons/all-files/ai/AiOutlinePhone', '@react-icons/all-files/go/GoLocation', '@react-icons/all-files/ri/RiRoadMapLine', '@react-icons/all-files/hi/HiOutlineClock', '@react-icons/all-files/ai/AiOutlineLinkedin', 'react-select', 'react-player', 'react-background-slideshow', '@babel/runtime/helpers/extends', 'react-slideshow-image', '@react-icons/all-files/hi/HiOutlineLocationMarker', '@react-icons/all-files/fi/FiPhoneCall', '@react-icons/all-files/fa/FaRegEye', '@react-icons/all-files/bs/BsArrowRight', '@react-icons/all-files/bs/BsArrowLeft', '@react-icons/all-files/bs/BsEye', '@react-icons/all-files/bi/BiTimeFive', '@react-icons/all-files/io/IoIosArrowUp'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.tabexseriescomponents = factory(global._slicedToArray, global.React, global._classCallCheck, global._createClass, global._assertThisInitialized, global._inherits, global._possibleConstructorReturn, global._getPrototypeOf, global._defineProperty, global.Cookies, global.reactCssfxLoading, global.glamor, global.google, global.jwtDecode, global.FacebookLogin, global.FaFacebookF, global.AiOutlineUser, global.IoMdClose, global.reactBootstrap, global.imagekitioReact, global.ImageGallery, global.MdAddShoppingCart, global.IoBagHandleOutline, global.BsBag, global.CgShoppingBag, global.FaRegHeart, global.FaHeart$1, global.FiShoppingBag, global.FiShoppingCart, global.AiFillStar$1, global.AiOutlineStar, global.reactShare, global.FiMinus, global.FiPlus, global.ReactStars, global.FiLayers, global._toConsumableArray, global.TextareaAutosize, global.AiOutlineClockCircle, global.AiOutlinePlus, global.AiOutlineCheck, global.reactHorizontalScrollingMenu, global.material, global.HiOutlinePhone, global.AiOutlineMail, global.FaShippingFast, global.RiSecurePaymentLine, global.AiOutlineSecurityScan, global.FaStar, global.IoLocationSharp, global.HiOutlineChevronRight, global.HiOutlineChevronLeft, global.GoGlobe, global.VscGlobe, global.HiOutlineTrash, global.BiSad, global.FiCalendar, global.Dropdown, global.HiUser, global.GrMail, global.FiCheckCircle, global.BiPhone, global.PhoneInput, null, null, global.BsChevronLeft, global.BsChevronRight, null, null, global.IoIosArrowRoundForward, global.IoIosArrowRoundBack, global.reactAccessibleAccordion, global.FiChevronUp, global.FiChevronDown, global.HiOutlinePlus, global.AiOutlineMinus, null, null, global.IoBagCheckOutline, global.IoBagRemoveOutline, global.InputRange, global.reactIntersectionObserver, global.FaArrowAltCircleRight, global.FaArrowAltCircleLeft, global.FiFilter, global.FiChevronLeft, global.FiChevronRight, global.HiOutlineArrowRight, global.HiOutlineArrowLeft, global.ReactPaginate, global.BiGlobe, global.MdKeyboardArrowDown, global.FaMoneyBillWave, global.BiLogOutCircle, global.BiChevronDown, global.BiUser, global.AiOutlineLogin, global.AiOutlineUserAdd, global.RiSearchLine, global.CgMenuLeft, global.CgMenuRight, global.HiOutlineShoppingBag, global.RiHandbagLine, global.BiSearch, global.FiUser, global.AiOutlineHeart, global.FiPhone, global.HiMenuAlt4, global.FiSearch, global.BsSearch, global.AiFillInstagram, global.FaWhatsapp, global.GoSearch, global.AiOutlineInstagram, global.BsChevronDown, global.RiUserSettingsLine, global.IoClose, global.HiUserCircle, global.MdKeyboardArrowUp, global.BsInfoCircle, global.AiFillPhone, global.FaTelegramPlane, global.AiFillYoutube, global.IoLogoTiktok, global.FaPhoneAlt, global.FaPhone, global.AiOutlinePhone, global.GoLocation, global.RiRoadMapLine, global.HiOutlineClock, global.AiOutlineLinkedin, null, global.ReactPlayer, global.BackgroundSlideshow, global._extends, global.reactSlideshowImage, global.HiOutlineLocationMarker, global.FiPhoneCall, global.FaRegEye, global.BsArrowRight, global.BsArrowLeft, global.BsEye, global.BiTimeFive, global.IoIosArrowUp));
5
- })(this, (function (_slicedToArray, React, _classCallCheck, _createClass, _assertThisInitialized, _inherits, _possibleConstructorReturn, _getPrototypeOf, _defineProperty, Cookies, reactCssfxLoading, glamor, google, jwtDecode, FacebookLogin, FaFacebookF, AiOutlineUser, IoMdClose, reactBootstrap, imagekitioReact, ImageGallery, MdAddShoppingCart, IoBagHandleOutline, BsBag, CgShoppingBag, FaRegHeart, FaHeart$1, FiShoppingBag, FiShoppingCart, AiFillStar$1, AiOutlineStar, reactShare, FiMinus, FiPlus, ReactStars, FiLayers, _toConsumableArray, TextareaAutosize, AiOutlineClockCircle, AiOutlinePlus, AiOutlineCheck, reactHorizontalScrollingMenu, material, HiOutlinePhone, AiOutlineMail, FaShippingFast, RiSecurePaymentLine, AiOutlineSecurityScan, FaStar, IoLocationSharp, HiOutlineChevronRight, HiOutlineChevronLeft, GoGlobe, VscGlobe, HiOutlineTrash, BiSad, FiCalendar, Dropdown, HiUser, GrMail, FiCheckCircle, BiPhone, PhoneInput, AiOutlineEye, AiOutlineEyeInvisible, BsChevronLeft, BsChevronRight, RiArrowUpSLine, RiArrowDownSLine, IoIosArrowRoundForward, IoIosArrowRoundBack, reactAccessibleAccordion, FiChevronUp, FiChevronDown, HiOutlinePlus, AiOutlineMinus, reactRouterDom, reactQuery, IoBagCheckOutline, IoBagRemoveOutline, InputRange, reactIntersectionObserver, FaArrowAltCircleRight, FaArrowAltCircleLeft, FiFilter, FiChevronLeft, FiChevronRight, HiOutlineArrowRight, HiOutlineArrowLeft, ReactPaginate, BiGlobe, MdKeyboardArrowDown, FaMoneyBillWave, BiLogOutCircle, BiChevronDown, BiUser, AiOutlineLogin, AiOutlineUserAdd, RiSearchLine, CgMenuLeft, CgMenuRight, HiOutlineShoppingBag, RiHandbagLine, BiSearch, FiUser, AiOutlineHeart, FiPhone, HiMenuAlt4, FiSearch, BsSearch, AiFillInstagram, FaWhatsapp, GoSearch, AiOutlineInstagram, BsChevronDown, RiUserSettingsLine, IoClose, HiUserCircle, MdKeyboardArrowUp, BsInfoCircle, AiFillPhone, FaTelegramPlane, AiFillYoutube, IoLogoTiktok, FaPhoneAlt, FaPhone, AiOutlinePhone, GoLocation, RiRoadMapLine, HiOutlineClock, AiOutlineLinkedin, reactSelect, ReactPlayer, BackgroundSlideshow, _extends, reactSlideshowImage, HiOutlineLocationMarker, FiPhoneCall, FaRegEye, BsArrowRight, BsArrowLeft, BsEye, BiTimeFive, IoIosArrowUp) { 'use strict';
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.tabexseriescomponents = factory(global._slicedToArray, global.React, global._classCallCheck, global._createClass, global._assertThisInitialized, global._inherits, global._possibleConstructorReturn, global._getPrototypeOf, global._defineProperty, global.Cookies, global.reactCssfxLoading, global.glamor, global.google, global.jwtDecode, global.FacebookLogin, global.FaFacebookF, global.AiOutlineUser, global.IoMdClose, global.reactBootstrap, global.imagekitioReact, global.ImageGallery, global.MdAddShoppingCart, global.IoBagHandleOutline, global.BsBag, global.CgShoppingBag, global.FaRegHeart, global.FaHeart$1, global.FiShoppingBag, global.FiShoppingCart, global.AiFillStar$1, global.AiOutlineStar, global.reactShare, global.FiMinus, global.FiPlus, global.ReactStars, global.FiLayers, global._toConsumableArray, global.TextareaAutosize, global.AiOutlineClockCircle, global.AiOutlinePlus, global.AiOutlineCheck, global.reactHorizontalScrollingMenu, global.material, global.HiOutlinePhone, global.AiOutlineMail, global.FaShippingFast, global.RiSecurePaymentLine, global.AiOutlineSecurityScan, global.FaStar, global.IoLocationSharp, global.HiOutlineChevronRight, global.HiOutlineChevronLeft, global.GoGlobe, global.VscGlobe, global.HiOutlineTrash, global.BiSad, global.FiCalendar, global.Dropdown, global.HiUser, global.GrMail, global.FiCheckCircle, global.BiPhone, global.PhoneInput, null, null, global.BsChevronLeft, global.BsChevronRight, null, null, global.IoIosArrowRoundForward, global.IoIosArrowRoundBack, global.reactAccessibleAccordion, global.FiChevronUp, global.FiChevronDown, global.HiOutlinePlus, global.AiOutlineMinus, null, null, global.IoBagCheckOutline, global.IoBagRemoveOutline, global.InputRange, global.reactIntersectionObserver, global.FaArrowAltCircleRight, global.FaArrowAltCircleLeft, global.FiFilter, global.FiChevronLeft, global.FiChevronRight, global.HiOutlineArrowRight, global.HiOutlineArrowLeft, global.ReactPaginate, global.BiGlobe, global.MdKeyboardArrowDown, global.FaMoneyBillWave, global.BiLogOutCircle, global.BiChevronDown, global.BiUser, global.AiOutlineLogin, global.AiOutlineUserAdd, global.RiSearchLine, global.CgMenuLeft, global.CgMenuRight, global.HiOutlineShoppingBag, global.RiHandbagLine, global.BiSearch, global.FiUser, global.AiOutlineHeart, global.FiPhone, global.HiMenuAlt4, global.FiSearch, global.BsSearch, global.AiFillInstagram, global.FaWhatsapp, global.GoSearch, global.AiOutlineInstagram, global.BsChevronDown, global.RiUserSettingsLine, global.IoClose, global.HiUserCircle, global.MdKeyboardArrowUp, global.BsInfoCircle, global.AiFillPhone, global.FaTelegramPlane, global.AiFillYoutube, global.IoLogoTiktok, global.FaPhoneAlt, global.FaPhone, global.AiOutlinePhone, global.GoLocation, global.RiRoadMapLine, global.HiOutlineClock, global.AiOutlineLinkedin, global.Select$5, global.ReactPlayer, global.BackgroundSlideshow, global._extends, global.reactSlideshowImage, global.HiOutlineLocationMarker, global.FiPhoneCall, global.FaRegEye, global.BsArrowRight, global.BsArrowLeft, global.BsEye, global.BiTimeFive, global.IoIosArrowUp));
5
+ })(this, (function (_slicedToArray, React, _classCallCheck, _createClass, _assertThisInitialized, _inherits, _possibleConstructorReturn, _getPrototypeOf, _defineProperty, Cookies, reactCssfxLoading, glamor, google, jwtDecode, FacebookLogin, FaFacebookF, AiOutlineUser, IoMdClose, reactBootstrap, imagekitioReact, ImageGallery, MdAddShoppingCart, IoBagHandleOutline, BsBag, CgShoppingBag, FaRegHeart, FaHeart$1, FiShoppingBag, FiShoppingCart, AiFillStar$1, AiOutlineStar, reactShare, FiMinus, FiPlus, ReactStars, FiLayers, _toConsumableArray, TextareaAutosize, AiOutlineClockCircle, AiOutlinePlus, AiOutlineCheck, reactHorizontalScrollingMenu, material, HiOutlinePhone, AiOutlineMail, FaShippingFast, RiSecurePaymentLine, AiOutlineSecurityScan, FaStar, IoLocationSharp, HiOutlineChevronRight, HiOutlineChevronLeft, GoGlobe, VscGlobe, HiOutlineTrash, BiSad, FiCalendar, Dropdown, HiUser, GrMail, FiCheckCircle, BiPhone, PhoneInput, AiOutlineEye, AiOutlineEyeInvisible, BsChevronLeft, BsChevronRight, RiArrowUpSLine, RiArrowDownSLine, IoIosArrowRoundForward, IoIosArrowRoundBack, reactAccessibleAccordion, FiChevronUp, FiChevronDown, HiOutlinePlus, AiOutlineMinus, reactRouterDom, reactQuery, IoBagCheckOutline, IoBagRemoveOutline, InputRange, reactIntersectionObserver, FaArrowAltCircleRight, FaArrowAltCircleLeft, FiFilter, FiChevronLeft, FiChevronRight, HiOutlineArrowRight, HiOutlineArrowLeft, ReactPaginate, BiGlobe, MdKeyboardArrowDown, FaMoneyBillWave, BiLogOutCircle, BiChevronDown, BiUser, AiOutlineLogin, AiOutlineUserAdd, RiSearchLine, CgMenuLeft, CgMenuRight, HiOutlineShoppingBag, RiHandbagLine, BiSearch, FiUser, AiOutlineHeart, FiPhone, HiMenuAlt4, FiSearch, BsSearch, AiFillInstagram, FaWhatsapp, GoSearch, AiOutlineInstagram, BsChevronDown, RiUserSettingsLine, IoClose, HiUserCircle, MdKeyboardArrowUp, BsInfoCircle, AiFillPhone, FaTelegramPlane, AiFillYoutube, IoLogoTiktok, FaPhoneAlt, FaPhone, AiOutlinePhone, GoLocation, RiRoadMapLine, HiOutlineClock, AiOutlineLinkedin, Select$5, ReactPlayer, BackgroundSlideshow, _extends, reactSlideshowImage, HiOutlineLocationMarker, FiPhoneCall, FaRegEye, BsArrowRight, BsArrowLeft, BsEye, BiTimeFive, IoIosArrowUp) { 'use strict';
6
6
 
7
7
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
8
8
 
@@ -26,6 +26,7 @@
26
26
  var PhoneInput__default = /*#__PURE__*/_interopDefaultLegacy(PhoneInput);
27
27
  var InputRange__default = /*#__PURE__*/_interopDefaultLegacy(InputRange);
28
28
  var ReactPaginate__default = /*#__PURE__*/_interopDefaultLegacy(ReactPaginate);
29
+ var Select__default = /*#__PURE__*/_interopDefaultLegacy(Select$5);
29
30
  var ReactPlayer__default = /*#__PURE__*/_interopDefaultLegacy(ReactPlayer);
30
31
  var BackgroundSlideshow__default = /*#__PURE__*/_interopDefaultLegacy(BackgroundSlideshow);
31
32
  var _extends__default = /*#__PURE__*/_interopDefaultLegacy(_extends);
@@ -13168,6 +13169,7 @@
13168
13169
  if (fetchAuthorizationQueryContext !== null && fetchAuthorizationQueryContext !== void 0 && fetchAuthorizationQueryContext.isSuccess) {
13169
13170
  var _categories;
13170
13171
  var categories = fetchAuthorizationQueryContext.data.data.instinfo.instcategories;
13172
+ // alert(JSON.stringify(categories));
13171
13173
  var parentcollections = [];
13172
13174
  (_categories = categories) === null || _categories === void 0 ? void 0 : _categories.forEach(function (catitem, catindex) {
13173
13175
  catitem === null || catitem === void 0 ? void 0 : catitem.parentcolletions.forEach(function (parentcolitem) {
@@ -13185,6 +13187,15 @@
13185
13187
  });
13186
13188
  parentcollections = arrafterfilter;
13187
13189
  }
13190
+ if (props.collectionidprops != null && props.collectionidprops != undefined && props.collectionidprops != 'all') {
13191
+ var arrafterfilter = [];
13192
+ parentcollections.forEach(function (parentcolitem, parcolindex) {
13193
+ if (parentcolitem.categoryid == props.collectionidprops) {
13194
+ arrafterfilter.push(parentcolitem);
13195
+ }
13196
+ });
13197
+ parentcollections = arrafterfilter;
13198
+ }
13188
13199
  }
13189
13200
  if (fetchingtype == 'innercategories') {
13190
13201
  var arrafterfilter = [];
@@ -13764,6 +13775,8 @@
13764
13775
  } else {
13765
13776
  routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, encodeURIComponent(JSON.stringify(ProductFilterObjContext)));
13766
13777
  }
13778
+ } else if (fetchingtype == 'parentcollections') {
13779
+ routingcountext(StaticPagesLinksContext.InnerCategory, true, 'parentcollections/' + (sectionitem === null || sectionitem === void 0 ? void 0 : sectionitem.productsfetchingtypeparentcollectioncategoryid), true);
13767
13780
  } else {
13768
13781
  routingcountext(StaticPagesLinksContext.GeneralProductsComponent, false);
13769
13782
  }
@@ -42545,7 +42558,7 @@
42545
42558
  }
42546
42559
  },
42547
42560
  styles: langdetect == 'en' ? defaultstyles : defaultstylestranslated,
42548
- placeholder: langdetect == 'en' ? 'Choose Country' : 'إختر البلد',
42561
+ placeholder: '',
42549
42562
  isSearchable: true
42550
42563
  })), sectionproperties.hidecountrystatecity == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
42551
42564
  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'
@@ -42565,7 +42578,7 @@
42565
42578
  duration: "1s"
42566
42579
  })), FetchTabexStatesPayloadobjContext.country_id == '' && /*#__PURE__*/React__default["default"].createElement(Select, {
42567
42580
  styles: langdetect == 'en' ? defaultstyles : defaultstylestranslated,
42568
- placeholder: lang.choosestategov,
42581
+ placeholder: '',
42569
42582
  isSearchable: true
42570
42583
  }), !fetchTabexStatesQueryContext.isFetching && fetchTabexStatesQueryContext.isSuccess && /*#__PURE__*/React__default["default"].createElement(Select, {
42571
42584
  options: fetchTabexStatesQueryContext.data.data.states,
@@ -42604,7 +42617,7 @@
42604
42617
  }
42605
42618
  },
42606
42619
  styles: langdetect == 'en' ? defaultstyles : defaultstylestranslated,
42607
- placeholder: lang.choosestategov,
42620
+ placeholder: '',
42608
42621
  isSearchable: true
42609
42622
  })), sectionproperties.hidecountrystatecity == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
42610
42623
  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'
@@ -42623,7 +42636,7 @@
42623
42636
  height: "20px",
42624
42637
  duration: "1s"
42625
42638
  })), FetchTabexStatesPayloadobjContext.country_id == '' && /*#__PURE__*/React__default["default"].createElement(Select, {
42626
- placeholder: lang.choosecity,
42639
+ placeholder: '',
42627
42640
  styles: langdetect == 'en' ? defaultstyles : defaultstylestranslated,
42628
42641
  isSearchable: true
42629
42642
  }), !fetchTabexCitiesQueryContext.isFetching && fetchTabexCitiesQueryContext.isSuccess && /*#__PURE__*/React__default["default"].createElement(Select, {
@@ -42659,7 +42672,7 @@
42659
42672
  }
42660
42673
  },
42661
42674
  styles: langdetect == 'en' ? defaultstyles : defaultstylestranslated,
42662
- placeholder: lang.choosecity,
42675
+ placeholder: '',
42663
42676
  isSearchable: true
42664
42677
  })), sectionproperties.hideaddress == 'Show' && props.srcfrom != 'filter' && /*#__PURE__*/React__default["default"].createElement("div", {
42665
42678
  className: 'col-lg-12 col-md-12 col-sm-12 mb-4 p-sm-0'
@@ -42720,6 +42733,7 @@
42720
42733
  var fetchproductsfilerobjcontext = props.actions.fetchproductsfilerobjcontext;
42721
42734
  var routingcountext = props.actions.routingcountext;
42722
42735
  var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
42736
+ // const fetchcollectionsQueryContext = props.actions.fetchcollectionsQueryContext;
42723
42737
  var _useState7 = React.useState({
42724
42738
  countryid: '',
42725
42739
  stateid: '',
@@ -42728,14 +42742,35 @@
42728
42742
  _useState8 = _slicedToArray__default["default"](_useState7, 2),
42729
42743
  payloadobj = _useState8[0],
42730
42744
  setpayloadobj = _useState8[1];
42745
+ var _useState9 = React.useState([]),
42746
+ _useState10 = _slicedToArray__default["default"](_useState9, 2),
42747
+ collectionsarray = _useState10[0],
42748
+ setcollectionsarray = _useState10[1];
42749
+ var _useState11 = React.useState([]),
42750
+ _useState12 = _slicedToArray__default["default"](_useState11, 2);
42751
+ _useState12[0];
42752
+ _useState12[1];
42731
42753
  var FetchQueriesEngineContext = props.actions.FetchQueriesEngineContext;
42732
42754
  var setFetchQueriesEngineContext = props.actions.setFetchQueriesEngineContext;
42755
+ var authdetailsContext = props.actions.authdetailsContext;
42756
+ props.actions.fetchcollectionsQueryContext;
42733
42757
  React.useEffect(function () {
42734
42758
  var tempFetchQueriesEngineContext = _objectSpread$15({}, FetchQueriesEngineContext);
42735
42759
  tempFetchQueriesEngineContext.fetchtabexcountries = true;
42760
+ tempFetchQueriesEngineContext.collections = true;
42736
42761
  setFetchQueriesEngineContext(_objectSpread$15({}, tempFetchQueriesEngineContext));
42737
42762
  var tempFetchQueriesEngineContext = _objectSpread$15({}, FetchQueriesEngineContext);
42763
+
42764
+ // authdetailsContext?.instinfo?.instcollections?
42738
42765
  }, []);
42766
+ React.useEffect(function () {
42767
+ var _authdetailsContext$i, _authdetailsContext$i2;
42768
+ var temppcollarray = _toConsumableArray__default["default"](collectionsarray);
42769
+ 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) {
42770
+ temppcollarray.push(arrayItem);
42771
+ });
42772
+ setcollectionsarray(_toConsumableArray__default["default"](temppcollarray));
42773
+ }, [authdetailsContext]);
42739
42774
  React.useEffect(function () {
42740
42775
  var secpropobj = {};
42741
42776
  StatePagePropertiesContext.pageobj.sections.forEach(function (sectionitem, sectionindex) {
@@ -42746,7 +42781,6 @@
42746
42781
  }
42747
42782
  });
42748
42783
  setsectionproperties(_objectSpread$15({}, secpropobj));
42749
- // alert(JSON.stringify(fetchTabexCountriesQueryContext));
42750
42784
  }, [StatePagePropertiesContext]);
42751
42785
  React.useEffect(function () {
42752
42786
  if (sectionproperties.length != 0) {
@@ -42927,7 +42961,7 @@
42927
42961
  }, sectionproperties.sectiontitleshow == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
42928
42962
  "class": "col-lg-12 col-md-12 col-sm-12 p-0 allcentered"
42929
42963
  }, /*#__PURE__*/React__default["default"].createElement("div", {
42930
- "class": "wordbreak",
42964
+ "class": "wordbreak text-md-center",
42931
42965
  style: {
42932
42966
  fontSize: sectionproperties.sectionTitleFontSize + 'px',
42933
42967
  color: sectionproperties.sectionTitleColor,
@@ -42946,7 +42980,7 @@
42946
42980
  maxWidth: '500px'
42947
42981
  }
42948
42982
  }, langdetect == 'en' ? sectionproperties.descriptionContentEn : sectionproperties.descriptionContentAr)), /*#__PURE__*/React__default["default"].createElement("div", {
42949
- "class": "col-lg-9 col-md-10 col-sm-10 allcentered mt-3",
42983
+ "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',
42950
42984
  style: {
42951
42985
  backgroundColor: sectionproperties.reservation_bgcolor,
42952
42986
  borderRadius: sectionproperties.reservation_borderradius + 'px',
@@ -42961,8 +42995,45 @@
42961
42995
  "class": "col-lg-12 p-0"
42962
42996
  }, /*#__PURE__*/React__default["default"].createElement("div", {
42963
42997
  "class": "row m-0 w-100 allcentered"
42964
- }, /*#__PURE__*/React__default["default"].createElement("div", {
42965
- "class": sectionproperties.showpricerange == 'Show' ? 'col-lg-9 p-0' : 'col-lg-12 p-0'
42998
+ }, sectionproperties.showcollectionsfilter == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
42999
+ className: ' col-lg-2 col-md-12 col-sm-12 mb-md-3 '
43000
+ }, /*#__PURE__*/React__default["default"].createElement("label", {
43001
+ className: ' d-flex justify-content-start ',
43002
+ style: {
43003
+ color: sectionproperties.form_labelcolor,
43004
+ textTransform: sectionproperties.form_labeltexttransform,
43005
+ fontWeight: sectionproperties.form_labelfontweight,
43006
+ fontSize: sectionproperties.form_labelfontsize + 'px',
43007
+ marginBottom: sectionproperties.inputfieldbordertype == 'All' ? 10 : 0
43008
+ }
43009
+ }, langdetect == 'en' ? sectionproperties.collectionsfilternameen : sectionproperties.collectionsfilternamear), /*#__PURE__*/React__default["default"].createElement(Select__default["default"], {
43010
+ options: collectionsarray,
43011
+ getOptionLabel: function getOptionLabel(option) {
43012
+ var crname = '';
43013
+ if (langdetect == 'en') {
43014
+ crname = option.title_en;
43015
+ } else if (langdetect == 'ar') {
43016
+ crname = option.title_ar;
43017
+ }
43018
+ return crname;
43019
+ },
43020
+ getOptionValue: function getOptionValue(option) {
43021
+ return option.collectionid;
43022
+ },
43023
+ autocomplete: "new-password"
43024
+ // value={fetchTabexCountriesQueryContext.data.data.countries.filter((option) => option.id == props?.payloadobj?.countryid)}
43025
+ ,
43026
+ onChange: function onChange(option) {
43027
+ var temp = payloadobj;
43028
+ temp.collections = [];
43029
+ temp.collections.push(option.collectionid);
43030
+ setpayloadobj(_objectSpread$15({}, temp));
43031
+ },
43032
+ styles: langdetect == 'en' ? defaultstyles : defaultstylestranslated,
43033
+ isSearchable: true,
43034
+ placeholder: ''
43035
+ })), /*#__PURE__*/React__default["default"].createElement("div", {
43036
+ "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'
42966
43037
  }, /*#__PURE__*/React__default["default"].createElement(CustomerAddressForm
42967
43038
  // customeraddressrequierd={customeraddressrequierd}
42968
43039
  // payloadobj={payloadobj}
@@ -42980,7 +43051,7 @@
42980
43051
  fetchTabexStatesQueryContext: fetchTabexStatesQueryContext,
42981
43052
  fetchTabexCitiesQueryContext: fetchTabexCitiesQueryContext
42982
43053
  })), sectionproperties.showpricerange == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
42983
- className: "".concat(langdetect == 'en' ? 'text-left' : 'text-right') + ' col-lg-3 col-md-12 col-sm-12 mb-sm-3 '
43054
+ 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 '
42984
43055
  }, /*#__PURE__*/React__default["default"].createElement("label", {
42985
43056
  className: "".concat(sectionstyles.input_label_name) + ' mb-3 '
42986
43057
  }, langdetect == 'en' ? 'Price' : 'السعر'), /*#__PURE__*/React__default["default"].createElement("div", {
@@ -43000,7 +43071,7 @@
43000
43071
  setpricevalue(_objectSpread$15({}, value));
43001
43072
  }
43002
43073
  }))))), sectionproperties.generalbtn_show == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
43003
- "class": "col-lg-12 p-0 allcentered mt-3"
43074
+ "class": 'col-lg-12 mt-3 p-0 allcentered'
43004
43075
  }, /*#__PURE__*/React__default["default"].createElement("button", {
43005
43076
  "class": sectionstyles.btnstyles + ' allcentered ',
43006
43077
  onClick: function onClick() {
@@ -43027,6 +43098,9 @@
43027
43098
  tempfetchproductsfilerobjcontext.cityid = payloadobj.cityid;
43028
43099
  }
43029
43100
  }
43101
+ if ((payloadobj === null || payloadobj === void 0 ? void 0 : payloadobj.collections) != null && payloadobj.collections.length != 0) {
43102
+ tempfetchproductsfilerobjcontext.collections = payloadobj.collections;
43103
+ }
43030
43104
  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) {
43031
43105
  tempfetchproductsfilerobjcontext.price_min = pricevalue.min;
43032
43106
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tabexseriescomponents",
3
- "version": "0.0.331",
3
+ "version": "0.0.332",
4
4
  "description": "your description",
5
5
  "main": "dist/index.cjs.js",
6
6
  "scripts": {