tabexseriescomponents 0.0.264 → 0.0.266

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.esm.js CHANGED
@@ -7771,7 +7771,7 @@ var CustomerInformationForm = function CustomerInformationForm(props) {
7771
7771
  var _fetchAuthorizationQu, _fetchAuthorizationQu2, _fetchAuthorizationQu3, _fetchAuthorizationQu4, _fetchAuthorizationQu5, _fetchAuthorizationQu6, _css, _authdetailsContext$c, _authdetailsContext$c2;
7772
7772
  var lang = props.actions.lang;
7773
7773
  var langdetect = props.actions.langdetect;
7774
- var routingcountext = props.actions.routingcountext;
7774
+ props.actions.routingcountext;
7775
7775
  var FetchQueriesEngineContext = props.actions.FetchQueriesEngineContext;
7776
7776
  var setFetchQueriesEngineContext = props.actions.setFetchQueriesEngineContext;
7777
7777
  var fetchinstitutecustomerinfosignupQueryContext = props.actions.fetchinstitutecustomerinfosignupQueryContext;
@@ -8589,9 +8589,9 @@ var CustomerInformationForm = function CustomerInformationForm(props) {
8589
8589
  }, langdetect == 'en' ? sectionproperties.termsandconditiontext_en : sectionproperties.termsandconditiontext_ar, ' ', /*#__PURE__*/React.createElement("span", {
8590
8590
  "class": formstyles.terms + ' cursor-pointer ',
8591
8591
  onClick: function onClick() {
8592
- routingcountext(StaticPagesLinksContext.Policies);
8592
+ window.open(window.location.origin + '/policies', '_blank');
8593
8593
  }
8594
- }, "\u0627\u0644\u0634\u0631\u0648\u0637 \u0648 \u0627\u0644\u0627\u062D\u0643\u0627\u0645"))), /*#__PURE__*/React.createElement("div", {
8594
+ }, langdetect == 'en' ? 'Terms & Conditions' : 'الشروط و الاحكام'))), /*#__PURE__*/React.createElement("div", {
8595
8595
  className: "col-lg-12 col-md-12 col-sm-12 d-flex align-items-center justify-content-center mb-3 mt-3"
8596
8596
  }, /*#__PURE__*/React.createElement("button", {
8597
8597
  className: "".concat(formstyles.signupbtn) + ' d-flex align-items-center justify-content-center ',
@@ -11391,6 +11391,7 @@ var CardsSection = function CardsSection(props) {
11391
11391
  cardobj.quantity = itemquantity;
11392
11392
  cardobj.timestamp = arrayItem.productinfo.timestamp;
11393
11393
  cardobj.productquantity = arrayItem.productinfo.productquantity;
11394
+ cardobj.quantavailtype = arrayItem.productinfo.quantavailtype;
11394
11395
  if (langdetect == 'en') {
11395
11396
  cardobj.currencyname = fetchAuthorizationQueryContext === null || fetchAuthorizationQueryContext === void 0 ? void 0 : fetchAuthorizationQueryContext.data.data.currencyname_en;
11396
11397
  } else {
@@ -11774,19 +11775,24 @@ var CardsSection = function CardsSection(props) {
11774
11775
  } else {
11775
11776
  routingcountext(StaticPagesLinksContext.GeneralProductsComponent, false);
11776
11777
  }
11778
+ },
11779
+ style: {
11780
+ flexDirection: 'row'
11777
11781
  }
11778
- }, sectionproperties.viewmorebtntype == 'Text' && /*#__PURE__*/React.createElement("span", {
11782
+ }, /*#__PURE__*/React.createElement("span", {
11779
11783
  "class": sectionproperties.sectiontitleposition == 'Centered' ? 'd-flex justify-content-center align-items-center' : 'd-flex justify-content-center align-items-center d-md-none'
11780
11784
  }, /*#__PURE__*/React.createElement("span", {
11781
11785
  "class": sectionproperties.sectiontitlefontfamily == 'ASUL' ? 'ASUL' : ''
11782
- }, langdetect == 'en' ? sectionproperties.viewmorebtn_text : sectionproperties.viewmorebtn_text_ar)), sectionproperties.viewmorebtntype == 'Icon' && /*#__PURE__*/React.createElement("span", {
11783
- "class": sectionproperties.sectiontitleposition == 'Centered' ? 'd-flex justify-content-center align-items-center' : 'd-flex justify-content-center align-items-center d-md-none'
11784
- }, /*#__PURE__*/React.createElement("i", {
11785
- "class": "h-100 allcentered"
11786
+ }, langdetect == 'en' ? sectionproperties.viewmorebtn_text : sectionproperties.viewmorebtn_text_ar), sectionproperties.showIcon == 'Show' && /*#__PURE__*/React.createElement("i", {
11787
+ "class": sectionproperties.sectiontitleposition == 'Centered' ? 'd-flex justify-content-center align-items-center h-100 allcentered' : 'd-flex justify-content-center align-items-center d-md-none h-100',
11788
+ style: {
11789
+ marginLeft: 5,
11790
+ marginRight: 5
11791
+ }
11786
11792
  }, langdetect == 'en' ? /*#__PURE__*/React.createElement(HiOutlineArrowRight, {
11787
- size: sectionproperties.viewmorebtn_fontSize
11793
+ size: sectionproperties.viewmoreiconfontsize
11788
11794
  }) : /*#__PURE__*/React.createElement(HiOutlineArrowLeft, {
11789
- size: sectionproperties.viewmorebtn_fontSize
11795
+ size: sectionproperties.viewmoreiconfontsize
11790
11796
  }))), /*#__PURE__*/React.createElement("span", {
11791
11797
  "class": sectionproperties.sectiontitleposition == 'Centered' ? 'd-none align-items-center justify-content-center' : 'd-none d-md-flex align-items-center justify-content-center'
11792
11798
  }, /*#__PURE__*/React.createElement("i", {
@@ -23874,7 +23880,7 @@ styleInject(css_248z$o);
23874
23880
  function ownKeys$1u(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
23875
23881
  function _objectSpread$1u(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1u(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1u(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
23876
23882
  var SearchFocusedHeader = function SearchFocusedHeader(props) {
23877
- var _css, _authdetailsContext$i3, _authdetailsContext$i4, _logoarrayofobjects$, _logoarrayofobjects$2, _authdetailsContext$c, _authdetailsContext$i11, _authdetailsContext$i12, _fetchcustomercartQue, _fetchcustomercartQue2, _fetchcustomercartQue3, _fetchcustomercartQue4, _fetchcustomercartQue5, _fetchcustomercartQue6, _authdetailsContext$i13, _authdetailsContext$i14;
23883
+ var _css, _authdetailsContext$i3, _authdetailsContext$i4, _authdetailsContext$i5, _authdetailsContext$i8, _authdetailsContext$i11, _logoarrayofobjects$, _logoarrayofobjects$2, _authdetailsContext$c, _authdetailsContext$i14, _authdetailsContext$i15, _fetchcustomercartQue, _fetchcustomercartQue2, _fetchcustomercartQue3, _fetchcustomercartQue4, _fetchcustomercartQue5, _fetchcustomercartQue6, _authdetailsContext$i16, _authdetailsContext$i17;
23878
23884
  var lang = props.actions.lang;
23879
23885
  var langdetect = props.actions.langdetect;
23880
23886
  var setlang = props.actions.setlang;
@@ -24341,35 +24347,35 @@ var SearchFocusedHeader = function SearchFocusedHeader(props) {
24341
24347
  "class": "col-lg-3 d-flex align-items-center p-0"
24342
24348
  }, /*#__PURE__*/React.createElement("div", {
24343
24349
  "class": "row m-0 d-flex justify-content-end w-100"
24344
- }, sectionproperties.fbbtn_show == 'Show' && /*#__PURE__*/React.createElement("div", {
24350
+ }, sectionproperties.fbbtn_show == 'Show' && (authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i5 = authdetailsContext.instinfo) === null || _authdetailsContext$i5 === void 0 ? void 0 : _authdetailsContext$i5.facebooklink) != null && /*#__PURE__*/React.createElement("div", {
24345
24351
  "class": header_cssstyles.fbbtn + ' p-0 allcentered cursor-pointer ',
24346
24352
  onClick: function onClick() {
24347
- var _authdetailsContext$i5;
24348
- if ((authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i5 = authdetailsContext.instinfo) === null || _authdetailsContext$i5 === void 0 ? void 0 : _authdetailsContext$i5.facebooklink) != null) {
24349
- var _authdetailsContext$i6;
24350
- window.open(authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i6 = authdetailsContext.instinfo) === null || _authdetailsContext$i6 === void 0 ? void 0 : _authdetailsContext$i6.facebooklink, '_blank');
24353
+ var _authdetailsContext$i6;
24354
+ if ((authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i6 = authdetailsContext.instinfo) === null || _authdetailsContext$i6 === void 0 ? void 0 : _authdetailsContext$i6.facebooklink) != null) {
24355
+ var _authdetailsContext$i7;
24356
+ window.open(authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i7 = authdetailsContext.instinfo) === null || _authdetailsContext$i7 === void 0 ? void 0 : _authdetailsContext$i7.facebooklink, '_blank');
24351
24357
  }
24352
24358
  }
24353
24359
  }, /*#__PURE__*/React.createElement(FaFacebookF, {
24354
24360
  size: sectionproperties.facebkbtnniconfontsize
24355
- })), sectionproperties.youtbtn_show == 'Show' && /*#__PURE__*/React.createElement("div", {
24361
+ })), sectionproperties.youtbtn_show == 'Show' && (authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i8 = authdetailsContext.instinfo) === null || _authdetailsContext$i8 === void 0 ? void 0 : _authdetailsContext$i8.whatsappnumber) != null && /*#__PURE__*/React.createElement("div", {
24356
24362
  "class": header_cssstyles.whatsappbtn + ' p-0 allcentered cursor-pointer ',
24357
24363
  onClick: function onClick() {
24358
- var _authdetailsContext$i7;
24359
- if ((authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i7 = authdetailsContext.instinfo) === null || _authdetailsContext$i7 === void 0 ? void 0 : _authdetailsContext$i7.whatsappnumber) != null) {
24360
- var _authdetailsContext$i8;
24361
- window.open('https://api.whatsapp.com/send?phone=' + (authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i8 = authdetailsContext.instinfo) === null || _authdetailsContext$i8 === void 0 ? void 0 : _authdetailsContext$i8.whatsappnumber), '_blank');
24364
+ var _authdetailsContext$i9;
24365
+ if ((authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i9 = authdetailsContext.instinfo) === null || _authdetailsContext$i9 === void 0 ? void 0 : _authdetailsContext$i9.whatsappnumber) != null) {
24366
+ var _authdetailsContext$i10;
24367
+ window.open('https://api.whatsapp.com/send?phone=' + (authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i10 = authdetailsContext.instinfo) === null || _authdetailsContext$i10 === void 0 ? void 0 : _authdetailsContext$i10.whatsappnumber), '_blank');
24362
24368
  }
24363
24369
  }
24364
24370
  }, /*#__PURE__*/React.createElement(FaWhatsapp, {
24365
24371
  size: sectionproperties.youtubebtniconfontsize
24366
- })), sectionproperties.instbtn_show == 'Show' && /*#__PURE__*/React.createElement("div", {
24372
+ })), sectionproperties.instbtn_show == 'Show' && (authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i11 = authdetailsContext.instinfo) === null || _authdetailsContext$i11 === void 0 ? void 0 : _authdetailsContext$i11.instagramlink) && /*#__PURE__*/React.createElement("div", {
24367
24373
  "class": header_cssstyles.instagrambtn + ' p-0 allcentered cursor-pointer ',
24368
24374
  onClick: function onClick() {
24369
- var _authdetailsContext$i9;
24370
- if ((authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i9 = authdetailsContext.instinfo) === null || _authdetailsContext$i9 === void 0 ? void 0 : _authdetailsContext$i9.instagramlink) != null) {
24371
- var _authdetailsContext$i10;
24372
- window.open(authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i10 = authdetailsContext.instinfo) === null || _authdetailsContext$i10 === void 0 ? void 0 : _authdetailsContext$i10.instagramlink, '_blank');
24375
+ var _authdetailsContext$i12;
24376
+ if ((authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i12 = authdetailsContext.instinfo) === null || _authdetailsContext$i12 === void 0 ? void 0 : _authdetailsContext$i12.instagramlink) != null) {
24377
+ var _authdetailsContext$i13;
24378
+ window.open(authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i13 = authdetailsContext.instinfo) === null || _authdetailsContext$i13 === void 0 ? void 0 : _authdetailsContext$i13.instagramlink, '_blank');
24373
24379
  }
24374
24380
  }
24375
24381
  }, /*#__PURE__*/React.createElement(AiOutlineInstagram, {
@@ -24490,7 +24496,7 @@ var SearchFocusedHeader = function SearchFocusedHeader(props) {
24490
24496
  onClick: function onClick() {
24491
24497
  routingcountext(StaticPagesLinksContext.accountinfo);
24492
24498
  }
24493
- }, authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i11 = authdetailsContext.instinfo) === null || _authdetailsContext$i11 === void 0 ? void 0 : (_authdetailsContext$i12 = _authdetailsContext$i11.customerinfo) === null || _authdetailsContext$i12 === void 0 ? void 0 : _authdetailsContext$i12.name))), /*#__PURE__*/React.createElement(Dropdown.Divider, null), /*#__PURE__*/React.createElement(Dropdown.Item, {
24499
+ }, authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i14 = authdetailsContext.instinfo) === null || _authdetailsContext$i14 === void 0 ? void 0 : (_authdetailsContext$i15 = _authdetailsContext$i14.customerinfo) === null || _authdetailsContext$i15 === void 0 ? void 0 : _authdetailsContext$i15.name))), /*#__PURE__*/React.createElement(Dropdown.Divider, null), /*#__PURE__*/React.createElement(Dropdown.Item, {
24494
24500
  onClick: function onClick() {
24495
24501
  routingcountext(StaticPagesLinksContext.Ordershistory);
24496
24502
  }
@@ -24666,7 +24672,7 @@ var SearchFocusedHeader = function SearchFocusedHeader(props) {
24666
24672
  minWidth: '250px',
24667
24673
  marginLeft: '0px'
24668
24674
  }
24669
- }, authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i13 = authdetailsContext.instinfo) === null || _authdetailsContext$i13 === void 0 ? void 0 : (_authdetailsContext$i14 = _authdetailsContext$i13.instcollections) === null || _authdetailsContext$i14 === void 0 ? void 0 : _authdetailsContext$i14.map(function (item, index) {
24675
+ }, authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i16 = authdetailsContext.instinfo) === null || _authdetailsContext$i16 === void 0 ? void 0 : (_authdetailsContext$i17 = _authdetailsContext$i16.instcollections) === null || _authdetailsContext$i17 === void 0 ? void 0 : _authdetailsContext$i17.map(function (item, index) {
24670
24676
  return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Dropdown.Item, {
24671
24677
  onClick: function onClick() {
24672
24678
  routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + item.collectionid);
@@ -34472,105 +34478,381 @@ var ElegantCategoriesCardSection = function ElegantCategoriesCardSection(props)
34472
34478
  function ownKeys$19(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; }
34473
34479
  function _objectSpread$19(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$19(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$19(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
34474
34480
  var RandomlyStructuredCollectionCards = function RandomlyStructuredCollectionCards(props) {
34475
- var _useInView = useInView();
34476
- _useInView.ref;
34477
- var inView = _useInView.inView;
34481
+ var StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
34478
34482
  props.actions.lang;
34479
34483
  var langdetect = props.actions.langdetect;
34480
- var fetchProductsQuery = props.actions.fetchProductsQuery;
34484
+ var fetchcustomercartQueryContext = props.actions.fetchcustomercartQueryContext;
34485
+ var favoriteprojectscountContext = props.actions.favoriteprojectscountContext;
34486
+ var routingcountext = props.actions.routingcountext;
34487
+ var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
34488
+ var ProductFilterObjContext = props.actions.ProductFilterObjContext;
34489
+ var setProductFilterObjContext = props.actions.setProductFilterObjContext;
34481
34490
  props.actions.TabexSectionsComponentsContext;
34482
- var StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
34483
- var fetchcollectionsQueryContext = props.actions.fetchcollectionsQueryContext;
34484
34491
  var FetchQueriesEngineContext = props.actions.FetchQueriesEngineContext;
34485
34492
  var setFetchQueriesEngineContext = props.actions.setFetchQueriesEngineContext;
34486
- var routingcountext = props.actions.routingcountext;
34487
- var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
34493
+ var fetchProductsQuery = props.actions.fetchProductsQuery;
34494
+ var fetchcollectionsQueryContext = props.actions.fetchcollectionsQueryContext;
34495
+ var setParentCollectionsForCollectionQueryArr = props.actions.setParentCollectionsForCollectionQueryArr;
34496
+ props.actions.ParentCollectionsForCollectionQueryArr;
34488
34497
  var setfetchingtype = props.actions.setfetchingtype;
34489
34498
  var fetchingtype = props.actions.fetchingtype;
34499
+ props.actions.addtofavoritescontext;
34500
+ var fetchAuthorizationQueryContext = props.actions.fetchAuthorizationQueryContext;
34501
+ var FetchVendorsQuery = props.actions.FetchVendorsQuery;
34490
34502
  var ikimagecredcontext = props.actions.ikimagecredcontext;
34503
+ var _useState = useState(false),
34504
+ _useState2 = _slicedToArray(_useState, 2);
34505
+ _useState2[0];
34506
+ _useState2[1];
34491
34507
  props.actions;
34492
- var setParentCollectionsForCollectionQueryArr = props.actions.setParentCollectionsForCollectionQueryArr;
34493
- props.actions.ParentCollectionsForCollectionQueryArr;
34494
- var _useState = useState(''),
34495
- _useState2 = _slicedToArray(_useState, 2),
34496
- sectionproperties = _useState2[0],
34497
- setsectionproperties = _useState2[1];
34498
- var _useState3 = useState([]),
34508
+ var _useState3 = useState(''),
34499
34509
  _useState4 = _slicedToArray(_useState3, 2),
34500
- cardsarray = _useState4[0],
34501
- setcardsarray = _useState4[1];
34502
- var _useState5 = useState({
34510
+ sectionproperties = _useState4[0],
34511
+ setsectionproperties = _useState4[1];
34512
+ var _useState5 = useState([]),
34513
+ _useState6 = _slicedToArray(_useState5, 2),
34514
+ cardsarray = _useState6[0],
34515
+ setcardsarray = _useState6[1];
34516
+ var _useState7 = useState(''),
34517
+ _useState8 = _slicedToArray(_useState7, 2),
34518
+ sectionitem = _useState8[0],
34519
+ setsectionitem = _useState8[1];
34520
+ var _useState9 = useState({
34503
34521
  productfetchingtype: 'Random',
34504
- collectionid: ''
34522
+ collectionid: '',
34523
+ grouptype: ''
34505
34524
  }),
34506
- _useState6 = _slicedToArray(_useState5, 2),
34507
- ProductsFetchingTypeSectionObj = _useState6[0],
34508
- setProductsFetchingTypeSectionObj = _useState6[1];
34509
- React.useEffect(function () {
34510
- if (inView) {
34511
- fetchProductsQuery.fetchNextPage();
34512
- }
34513
- }, [inView]);
34525
+ _useState10 = _slicedToArray(_useState9, 2),
34526
+ ProductsFetchingTypeSectionObj = _useState10[0],
34527
+ setProductsFetchingTypeSectionObj = _useState10[1];
34528
+ var _useState11 = useState([]),
34529
+ _useState12 = _slicedToArray(_useState11, 2);
34530
+ _useState12[0];
34531
+ var setmaincontainerarrayofobjs = _useState12[1];
34532
+ // React.useEffect(() => {
34533
+ // if (inView) {
34534
+ // fetchProductsQuery.fetchNextPage();
34535
+ // }
34536
+ // }, [inView]);
34514
34537
  useEffect(function () {
34538
+ var productfilerobjtemp = ProductFilterObjContext;
34539
+ if (props.filterparamsprops != undefined) {
34540
+ var filterpar = decodeURIComponent(props.filterparamsprops);
34541
+ var filterparsed = JSON.parse(filterpar);
34542
+ if (filterparsed != undefined) {
34543
+ productfilerobjtemp = filterparsed;
34544
+ setProductFilterObjContext(filterparsed);
34545
+ }
34546
+ }
34515
34547
  StatePagePropertiesContext.pageobj.sections.forEach(function (sectionitem, sectionindex) {
34516
34548
  if (sectionitem.sectionid == props.sectionidprops) {
34517
34549
  var secpropobj = {};
34550
+ setsectionitem(sectionitem);
34518
34551
  sectionitem.sectionproperties.forEach(function (sectionpropertiesobj, sectionpropertiesindex) {
34519
34552
  secpropobj[sectionpropertiesobj.property_css_name] = sectionpropertiesobj.property_value;
34520
34553
  });
34521
34554
  setsectionproperties(_objectSpread$19({}, secpropobj));
34522
- setfetchingtype(sectionitem.fetchingtype);
34523
- setProductsFetchingTypeSectionObj({
34524
- productfetchingtype: sectionitem.productsfetchingtype,
34525
- collectionid: sectionitem.productsfetchingtypeCollectioncollectionid
34526
- });
34555
+ if (props.srcfromprops == 'GeneralProductsComponent') {
34556
+ setfetchingtype('products');
34557
+ var lcproductfetchingtype = 'Random';
34558
+ if (productfilerobjtemp.ProductFetchingType != undefined && productfilerobjtemp.ProductFetchingType != null && productfilerobjtemp.ProductFetchingType.length != 0) {
34559
+ lcproductfetchingtype = productfilerobjtemp.ProductFetchingType;
34560
+ }
34561
+ setProductsFetchingTypeSectionObj({
34562
+ productfetchingtype: lcproductfetchingtype,
34563
+ collectionid: props.collectionidprops,
34564
+ grouptype: props.grouptypeprops,
34565
+ grouptyperefid: props.grouptyperefidprops
34566
+ });
34567
+ } else if (props.srcfromprops == 'InnerGroups' || props.srcfromprops == 'InnerCategory' || props.srcfromprops == 'InnerParentCollection') {
34568
+ setfetchingtype(props.grouptypeprops);
34569
+ } else {
34570
+ setfetchingtype(sectionitem.fetchingtype);
34571
+ setProductsFetchingTypeSectionObj({
34572
+ productfetchingtype: sectionitem.productsfetchingtype,
34573
+ collectionid: sectionitem.productsfetchingtypeCollectioncollectionid,
34574
+ grouptype: props.grouptypeprops,
34575
+ grouptyperefid: props.grouptyperefidprops
34576
+ });
34577
+ }
34527
34578
  }
34528
34579
  });
34529
34580
  }, [StatePagePropertiesContext]);
34530
34581
  useEffect(function () {
34531
34582
  if (sectionproperties.length != 0) {
34532
34583
  if (cardsarray.length == 0) {
34533
- if (fetchcollectionsQueryContext.isSuccess) {
34534
- cardobjassigner(fetchcollectionsQueryContext.data.data.collections);
34584
+ if (fetchingtype == 'collections') {
34585
+ if (fetchcollectionsQueryContext.isSuccess) {
34586
+ cardobjassigner(fetchcollectionsQueryContext.data.data.collections);
34587
+ }
34588
+ } else if (fetchingtype == 'products') {
34589
+ if (fetchProductsQuery.isSuccess) {
34590
+ var _fetchProductsQuery$d, _fetchProductsQuery$d2, _fetchProductsQuery$d3;
34591
+ var allpagesarr = [];
34592
+ // fetchProductsQuery.data.pages.forEach((page) => {
34593
+ // page.data.products.forEach((productobj) => {
34594
+ // allpagesarr.push(productobj);
34595
+ // });
34596
+ // });
34597
+ fetchProductsQuery === null || fetchProductsQuery === void 0 ? void 0 : (_fetchProductsQuery$d = fetchProductsQuery.data) === null || _fetchProductsQuery$d === void 0 ? void 0 : (_fetchProductsQuery$d2 = _fetchProductsQuery$d.data) === null || _fetchProductsQuery$d2 === void 0 ? void 0 : (_fetchProductsQuery$d3 = _fetchProductsQuery$d2.products) === null || _fetchProductsQuery$d3 === void 0 ? void 0 : _fetchProductsQuery$d3.forEach(function (item) {
34598
+ allpagesarr.push(item);
34599
+ });
34600
+ cardobjassigner(allpagesarr);
34601
+ }
34602
+ } else if (fetchingtype == 'vendors') {
34603
+ if (FetchVendorsQuery.isSuccess) {
34604
+ var _FetchVendorsQuery$da, _FetchVendorsQuery$da2;
34605
+ cardobjassigner(FetchVendorsQuery === null || FetchVendorsQuery === void 0 ? void 0 : (_FetchVendorsQuery$da = FetchVendorsQuery.data) === null || _FetchVendorsQuery$da === void 0 ? void 0 : (_FetchVendorsQuery$da2 = _FetchVendorsQuery$da.data) === null || _FetchVendorsQuery$da2 === void 0 ? void 0 : _FetchVendorsQuery$da2.vendors);
34606
+ }
34535
34607
  }
34536
34608
  }
34537
34609
  }
34538
34610
  }, [sectionproperties]);
34539
34611
  useEffect(function () {
34540
- if (fetchingtype.length != 0) {
34612
+ if ((fetchingtype === null || fetchingtype === void 0 ? void 0 : fetchingtype.length) != 0) {
34541
34613
  var tempFetchQueriesEngineContext = FetchQueriesEngineContext;
34542
- if (ProductsFetchingTypeSectionObj.collectionid == 'all' || ProductsFetchingTypeSectionObj.collectionid == null || ProductsFetchingTypeSectionObj.collectionid == undefined) {
34543
- setParentCollectionsForCollectionQueryArr('all');
34544
- } else {
34545
- setParentCollectionsForCollectionQueryArr([ProductsFetchingTypeSectionObj.collectionid]);
34614
+ if (fetchingtype == 'collections') {
34615
+ if (ProductsFetchingTypeSectionObj.collectionid == 'all' || ProductsFetchingTypeSectionObj.collectionid == null || ProductsFetchingTypeSectionObj.collectionid == undefined) {
34616
+ setParentCollectionsForCollectionQueryArr('all');
34617
+ } else {
34618
+ setParentCollectionsForCollectionQueryArr([ProductsFetchingTypeSectionObj.collectionid]);
34619
+ }
34620
+ }
34621
+ if (fetchingtype == 'products') {
34622
+ var tempfetchproductsfilerobjcontext = ProductFilterObjContext;
34623
+ tempfetchproductsfilerobjcontext.ProductFetchingType = ProductsFetchingTypeSectionObj.productfetchingtype;
34624
+ if (ProductsFetchingTypeSectionObj.grouptype == 'collections' || ProductsFetchingTypeSectionObj.grouptype == 'categories' || ProductsFetchingTypeSectionObj.grouptype == 'parentcollections') ; else {
34625
+ if (tempfetchproductsfilerobjcontext.collections != undefined) {
34626
+ tempfetchproductsfilerobjcontext.collections.push(ProductsFetchingTypeSectionObj.collectionid);
34627
+ }
34628
+ }
34629
+ tempfetchproductsfilerobjcontext.grouptype = ProductsFetchingTypeSectionObj.grouptype;
34630
+ tempfetchproductsfilerobjcontext.grouptyperefid = ProductsFetchingTypeSectionObj.grouptyperefid;
34631
+ setProductFilterObjContext(_objectSpread$19({}, tempfetchproductsfilerobjcontext));
34632
+ }
34633
+ if (fetchingtype == 'categories') {
34634
+ if (fetchAuthorizationQueryContext !== null && fetchAuthorizationQueryContext !== void 0 && fetchAuthorizationQueryContext.isSuccess) {
34635
+ var categories = fetchAuthorizationQueryContext.data.data.instinfo.instcategories;
34636
+ cardobjassigner(categories);
34637
+ }
34638
+ }
34639
+ if (fetchingtype == 'parentcollections' || fetchingtype == 'innercategories') {
34640
+ if (fetchAuthorizationQueryContext !== null && fetchAuthorizationQueryContext !== void 0 && fetchAuthorizationQueryContext.isSuccess) {
34641
+ var _categories;
34642
+ var categories = fetchAuthorizationQueryContext.data.data.instinfo.instcategories;
34643
+ var parentcollections = [];
34644
+ (_categories = categories) === null || _categories === void 0 ? void 0 : _categories.forEach(function (catitem, catindex) {
34645
+ catitem === null || catitem === void 0 ? void 0 : catitem.parentcolletions.forEach(function (parentcolitem) {
34646
+ parentcolitem.categoryid = catitem.categoryid;
34647
+ parentcollections.push(parentcolitem);
34648
+ });
34649
+ });
34650
+ if (fetchingtype == 'parentcollections') {
34651
+ if ((sectionitem === null || sectionitem === void 0 ? void 0 : sectionitem.productsfetchingtypeparentcollectioncategoryid) != null && (sectionitem === null || sectionitem === void 0 ? void 0 : sectionitem.productsfetchingtypeparentcollectioncategoryid) != undefined && (sectionitem === null || sectionitem === void 0 ? void 0 : sectionitem.productsfetchingtypeparentcollectioncategoryid) != 'all') {
34652
+ var arrafterfilter = [];
34653
+ parentcollections.forEach(function (parentcolitem, parcolindex) {
34654
+ if (parentcolitem.categoryid == (sectionitem === null || sectionitem === void 0 ? void 0 : sectionitem.productsfetchingtypeparentcollectioncategoryid)) {
34655
+ arrafterfilter.push(parentcolitem);
34656
+ }
34657
+ });
34658
+ parentcollections = arrafterfilter;
34659
+ }
34660
+ }
34661
+ if (fetchingtype == 'innercategories') {
34662
+ var arrafterfilter = [];
34663
+ parentcollections.forEach(function (parentcolitem, parcolindex) {
34664
+ if (parentcolitem.categoryid == props.collectionidprops) {
34665
+ arrafterfilter.push(parentcolitem);
34666
+ }
34667
+ });
34668
+ parentcollections = arrafterfilter;
34669
+ }
34670
+ cardobjassigner(parentcollections);
34671
+ }
34672
+ } else if (fetchingtype == 'innerparentcollections') {
34673
+ if (fetchAuthorizationQueryContext !== null && fetchAuthorizationQueryContext !== void 0 && fetchAuthorizationQueryContext.isSuccess) {
34674
+ var _categories2;
34675
+ var categories = fetchAuthorizationQueryContext.data.data.instinfo.instcategories;
34676
+ var collections = [];
34677
+ (_categories2 = categories) === null || _categories2 === void 0 ? void 0 : _categories2.forEach(function (catitem, catindex) {
34678
+ catitem === null || catitem === void 0 ? void 0 : catitem.parentcolletions.forEach(function (parentcolitem) {
34679
+ var _parentcolitem$collec;
34680
+ parentcolitem.categoryid = catitem.categoryid;
34681
+ parentcolitem === null || parentcolitem === void 0 ? void 0 : (_parentcolitem$collec = parentcolitem.collections) === null || _parentcolitem$collec === void 0 ? void 0 : _parentcolitem$collec.forEach(function (collitem, colindex) {
34682
+ collitem.parentcollectionid = parentcolitem.parentcollectionid;
34683
+ collections.push(collitem);
34684
+ });
34685
+ });
34686
+ });
34687
+ if (fetchingtype == 'innerparentcollections') {
34688
+ var collectionsafterfilter = [];
34689
+ collections.forEach(function (colitem, colindex) {
34690
+ if (colitem.parentcollectionid == props.collectionidprops) {
34691
+ var iscollexists = false;
34692
+ collectionsafterfilter.forEach(function (existcolitem) {
34693
+ if (colitem.collectionid == existcolitem.collectionid) {
34694
+ iscollexists = true;
34695
+ }
34696
+ });
34697
+ if (iscollexists == false) {
34698
+ collectionsafterfilter.push(colitem);
34699
+ }
34700
+ }
34701
+ });
34702
+ collections = collectionsafterfilter;
34703
+ }
34704
+ cardobjassigner(collections);
34705
+ }
34546
34706
  }
34547
34707
  setFetchQueriesEngineContext(_objectSpread$19({}, tempFetchQueriesEngineContext));
34548
34708
  }
34549
34709
  }, [fetchingtype, ProductsFetchingTypeSectionObj]);
34550
34710
  useEffect(function () {
34551
- if (fetchcollectionsQueryContext.isSuccess) {
34552
- cardobjassigner(fetchcollectionsQueryContext.data.data.collections);
34711
+ if (fetchingtype == 'products') {
34712
+ if (fetchProductsQuery.isSuccess && fetchcustomercartQueryContext.isSuccess) {
34713
+ var _fetchProductsQuery$d4, _fetchProductsQuery$d5, _fetchProductsQuery$d6;
34714
+ var allpagesarr = [];
34715
+ fetchProductsQuery === null || fetchProductsQuery === void 0 ? void 0 : (_fetchProductsQuery$d4 = fetchProductsQuery.data) === null || _fetchProductsQuery$d4 === void 0 ? void 0 : (_fetchProductsQuery$d5 = _fetchProductsQuery$d4.data) === null || _fetchProductsQuery$d5 === void 0 ? void 0 : (_fetchProductsQuery$d6 = _fetchProductsQuery$d5.products) === null || _fetchProductsQuery$d6 === void 0 ? void 0 : _fetchProductsQuery$d6.forEach(function (item) {
34716
+ allpagesarr.push(item);
34717
+ });
34718
+ cardobjassigner(allpagesarr);
34719
+ }
34553
34720
  }
34554
- }, [fetchcollectionsQueryContext.isSuccess]);
34721
+ }, [fetchProductsQuery === null || fetchProductsQuery === void 0 ? void 0 : fetchProductsQuery.isSuccess, fetchProductsQuery === null || fetchProductsQuery === void 0 ? void 0 : fetchProductsQuery.dataUpdatedAt, fetchProductsQuery === null || fetchProductsQuery === void 0 ? void 0 : fetchProductsQuery.data, fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : fetchcustomercartQueryContext.dataUpdatedAt]);
34722
+ useEffect(function () {
34723
+ if (fetchingtype == 'collections') {
34724
+ if (fetchcollectionsQueryContext.isSuccess) {
34725
+ cardobjassigner(fetchcollectionsQueryContext.data.data.collections);
34726
+ }
34727
+ }
34728
+ }, [fetchcollectionsQueryContext === null || fetchcollectionsQueryContext === void 0 ? void 0 : fetchcollectionsQueryContext.isSuccess]);
34729
+ useEffect(function () {
34730
+ if (fetchingtype == 'vendors') {
34731
+ if (FetchVendorsQuery.isSuccess) {
34732
+ if (FetchVendorsQuery.data.data.vendors != undefined && FetchVendorsQuery.data.data.vendors.length != 0) {
34733
+ var _FetchVendorsQuery$da3, _FetchVendorsQuery$da4;
34734
+ cardobjassigner(FetchVendorsQuery === null || FetchVendorsQuery === void 0 ? void 0 : (_FetchVendorsQuery$da3 = FetchVendorsQuery.data) === null || _FetchVendorsQuery$da3 === void 0 ? void 0 : (_FetchVendorsQuery$da4 = _FetchVendorsQuery$da3.data) === null || _FetchVendorsQuery$da4 === void 0 ? void 0 : _FetchVendorsQuery$da4.vendors);
34735
+ }
34736
+ }
34737
+ }
34738
+ }, [FetchVendorsQuery.isSuccess]);
34739
+ useEffect(function () {
34740
+ favassigner();
34741
+ }, [favoriteprojectscountContext]);
34742
+ useEffect(function () {
34743
+ if (sectionproperties.length != 0 && sectionproperties.maincontainerarrayofobjs != undefined) {
34744
+ var maincontainerarrayofobjsparsed = JSON.parse(sectionproperties.maincontainerarrayofobjs);
34745
+ if (Array.isArray(maincontainerarrayofobjsparsed)) {
34746
+ setmaincontainerarrayofobjs(_toConsumableArray(maincontainerarrayofobjsparsed));
34747
+ }
34748
+ }
34749
+ }, [sectionproperties]);
34750
+ var favassigner = function favassigner() {
34751
+ if (fetchingtype == 'products') {
34752
+ if (cardsarray.length != 0) {
34753
+ if (favoriteprojectscountContext != undefined && Array.isArray(favoriteprojectscountContext)) {
34754
+ var tempcardsarray = _toConsumableArray(cardsarray);
34755
+ tempcardsarray.forEach(function (arrayItem, arrayindex) {
34756
+ arrayItem.IsFavExists = false;
34757
+ });
34758
+ tempcardsarray.forEach(function (arrayItem, arrayindex) {
34759
+ favoriteprojectscountContext.forEach(function (favitem, favindex) {
34760
+ if (arrayItem.productid == favitem) {
34761
+ arrayItem.IsFavExists = true;
34762
+ }
34763
+ });
34764
+ });
34765
+ setcardsarray(_toConsumableArray(tempcardsarray));
34766
+ }
34767
+ }
34768
+ }
34769
+ };
34555
34770
  var cardobjassigner = function cardobjassigner(fetchedarray) {
34556
34771
  var temparray = [];
34557
34772
  fetchedarray.forEach(function (arrayItem, arrayindex) {
34558
34773
  var cardobj = {
34559
34774
  name: '',
34560
- image: '',
34561
- index: arrayindex,
34562
- collectionid: ''
34775
+ image: ''
34563
34776
  };
34564
- cardobj.collectionid = arrayItem.collectionid;
34565
- if (langdetect == 'en') {
34566
- cardobj.name = arrayItem.title_en;
34567
- cardobj.description = arrayItem.description_en;
34568
- } else if (langdetect == 'ar') {
34569
- cardobj.name = arrayItem.title_ar;
34570
- cardobj.description = arrayItem.description_ar;
34777
+ if (fetchingtype == 'products') {
34778
+ var itemquantity = 0;
34779
+ if (langdetect == 'en') {
34780
+ cardobj.name = arrayItem.productinfo.name_en;
34781
+ } else {
34782
+ cardobj.name = arrayItem.productinfo.name_ar;
34783
+ }
34784
+ if (langdetect == 'en') {
34785
+ cardobj.description = arrayItem.productinfo.description_en;
34786
+ } else {
34787
+ cardobj.description = arrayItem.productinfo.description_ar;
34788
+ }
34789
+ if (arrayItem.productinfo.hasvariants == 0) {
34790
+ fetchcustomercartQueryContext.data.data.customercart.cartitems.forEach(function (cartitem, cartindex) {
34791
+ if (cartitem.productid == arrayItem.productinfo.productid) {
34792
+ itemquantity = cartitem.quantity;
34793
+ }
34794
+ });
34795
+ }
34796
+ cardobj.image = arrayItem.productinfo.productmainimage;
34797
+ cardobj.hassale = arrayItem.productinfo.hassale;
34798
+ cardobj.productid = arrayItem.productinfo.productid;
34799
+ cardobj.hasvariants = arrayItem.productinfo.hasvariants;
34800
+ cardobj.description_en = arrayItem.productinfo.description_en;
34801
+ cardobj.description_ar = arrayItem.productinfo.description_ar;
34802
+ cardobj.defaultprice = arrayItem.productinfo.defaultprice;
34803
+ cardobj.defaultsaleprice = arrayItem.productinfo.defaultsaleprice;
34804
+ cardobj.productimages = arrayItem.productinfo.productimages;
34805
+ cardobj.quantity = itemquantity;
34806
+ cardobj.timestamp = arrayItem.productinfo.timestamp;
34807
+ cardobj.productquantity = arrayItem.productinfo.productquantity;
34808
+ cardobj.quantavailtype = arrayItem.productinfo.quantavailtype;
34809
+ if (langdetect == 'en') {
34810
+ cardobj.currencyname = fetchAuthorizationQueryContext === null || fetchAuthorizationQueryContext === void 0 ? void 0 : fetchAuthorizationQueryContext.data.data.currencyname_en;
34811
+ } else {
34812
+ cardobj.currencyname = fetchAuthorizationQueryContext === null || fetchAuthorizationQueryContext === void 0 ? void 0 : fetchAuthorizationQueryContext.data.data.currencyname_ar;
34813
+ }
34814
+ if (favoriteprojectscountContext != undefined && favoriteprojectscountContext.length != 0) {
34815
+ favoriteprojectscountContext.forEach(function (favitem, favindex) {
34816
+ if (arrayItem.productinfo.productid == favitem) {
34817
+ cardobj.IsFavExists = true;
34818
+ }
34819
+ });
34820
+ }
34821
+ } else if (fetchingtype == 'collections' || fetchingtype == 'innerparentcollections') {
34822
+ cardobj.collectionid = arrayItem.collectionid;
34823
+ if (langdetect == 'en') {
34824
+ cardobj.name = arrayItem.title_en;
34825
+ cardobj.description = arrayItem.description_en;
34826
+ } else if (langdetect == 'ar') {
34827
+ cardobj.name = arrayItem.title_ar;
34828
+ cardobj.description = arrayItem.description_ar;
34829
+ }
34830
+ cardobj.image = arrayItem.collectionlogo;
34831
+ } else if (fetchingtype == 'categories') {
34832
+ cardobj.collectionid = arrayItem.categoryid;
34833
+ if (langdetect == 'en') {
34834
+ cardobj.name = arrayItem.title_en;
34835
+ cardobj.description = arrayItem.description_en;
34836
+ } else if (langdetect == 'ar') {
34837
+ cardobj.name = arrayItem.title_ar;
34838
+ cardobj.description = arrayItem.description_ar;
34839
+ }
34840
+ cardobj.image = arrayItem.categorylogo;
34841
+ } else if (fetchingtype == 'parentcollections' || fetchingtype == 'innercategories') {
34842
+ cardobj.collectionid = arrayItem.parentcollectionid;
34843
+ if (langdetect == 'en') {
34844
+ cardobj.name = arrayItem.title_en;
34845
+ cardobj.description = arrayItem.description_en;
34846
+ } else if (langdetect == 'ar') {
34847
+ cardobj.name = arrayItem.title_ar;
34848
+ cardobj.description = arrayItem.description_ar;
34849
+ }
34850
+ cardobj.image = arrayItem.parentcollectionlogo;
34851
+ } else if (fetchingtype == 'custom') ; else if (fetchingtype == 'vendors') {
34852
+ cardobj.name = arrayItem.vendorname;
34853
+ cardobj.collectionid = arrayItem.vendorid;
34854
+ cardobj.image = arrayItem.vendorlogourl;
34571
34855
  }
34572
- cardobj.image = arrayItem.collectionlogo;
34573
- cardobj.collectionid = arrayItem.collectionid;
34574
34856
  temparray.push(cardobj);
34575
34857
  });
34576
34858
  setcardsarray([].concat(temparray));
@@ -40395,19 +40677,19 @@ var Image_with_leftwords = function Image_with_leftwords(props) {
40395
40677
  return /*#__PURE__*/React.createElement("div", {
40396
40678
  "class": sectionproperties.image_height == 0 ? 'col-lg-6 col-md-12 d-flex justify-content-start justify-content-md-center h-auto p-0' : 'col-lg-6 col-md-12 d-flex justify-content-start justify-content-md-center p-0',
40397
40679
  style: {
40398
- cursor: ((_imagesarray$ = imagesarray[0]) === null || _imagesarray$ === void 0 ? void 0 : _imagesarray$.IsClickable) == 'Yes' ? 'pointer' : 'default',
40680
+ cursor: ((_imagesarray$ = imagesarray[0]) === null || _imagesarray$ === void 0 ? void 0 : _imagesarray$.IsClickableimg) == 'Yes' ? 'pointer' : 'default',
40399
40681
  background: sectionproperties.image_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.image_bgcolor
40400
40682
  },
40401
40683
  onClick: function onClick() {
40402
40684
  var _imagesarray$2;
40403
- if (((_imagesarray$2 = imagesarray[0]) === null || _imagesarray$2 === void 0 ? void 0 : _imagesarray$2.IsClickable) == 'Yes') {
40685
+ if (((_imagesarray$2 = imagesarray[0]) === null || _imagesarray$2 === void 0 ? void 0 : _imagesarray$2.IsClickableimg) == 'Yes') {
40404
40686
  var _imagesarray$3, _imagesarray$4;
40405
- if ((_imagesarray$3 = imagesarray[0]) !== null && _imagesarray$3 !== void 0 && _imagesarray$3.clickable_page_route && ((_imagesarray$4 = imagesarray[0]) === null || _imagesarray$4 === void 0 ? void 0 : _imagesarray$4.clickable_page_route.length) != 0) {
40687
+ if ((_imagesarray$3 = imagesarray[0]) !== null && _imagesarray$3 !== void 0 && _imagesarray$3.clickableimg_page_route && ((_imagesarray$4 = imagesarray[0]) === null || _imagesarray$4 === void 0 ? void 0 : _imagesarray$4.clickableimg_page_route.length) != 0) {
40406
40688
  var _imagesarray$5;
40407
- routingcountext((_imagesarray$5 = imagesarray[0]) === null || _imagesarray$5 === void 0 ? void 0 : _imagesarray$5.clickable_page_route, false, '');
40689
+ routingcountext((_imagesarray$5 = imagesarray[0]) === null || _imagesarray$5 === void 0 ? void 0 : _imagesarray$5.clickableimg_page_route, false, '');
40408
40690
  } else {
40409
40691
  var _imagesarray$6;
40410
- routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + ((_imagesarray$6 = imagesarray[0]) === null || _imagesarray$6 === void 0 ? void 0 : _imagesarray$6.Clickable_Reference_Collection_ID));
40692
+ routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + ((_imagesarray$6 = imagesarray[0]) === null || _imagesarray$6 === void 0 ? void 0 : _imagesarray$6.Clickableimg_getcoection));
40411
40693
  }
40412
40694
  }
40413
40695
  }
@@ -47598,7 +47880,6 @@ var Productcard_with_zoominonhover = function Productcard_with_zoominonhover(pro
47598
47880
  borderRadius: sectionproperties.fav_btn_borderBottomLeftRadius + 'px',
47599
47881
  color: sectionproperties.favBtniconcolor,
47600
47882
  fontSize: sectionproperties.favBtnTextfontsize + 'px',
47601
- textTransform: sectionproperties.favBtnTexttransform,
47602
47883
  fontWeight: sectionproperties.favBtnTextfontweight,
47603
47884
  transition: '.3s',
47604
47885
  border: sectionproperties.favbtnborderwidth + 'px solid ' + sectionproperties.favbtnbordercolor,
@@ -47630,7 +47911,8 @@ var Productcard_with_zoominonhover = function Productcard_with_zoominonhover(pro
47630
47911
  borderBottomRightRadius: langdetect == 'en' ? sectionproperties.image_borderBottomRightRadius + 'px' : sectionproperties.image_borderBottomLeftRadius + 'px',
47631
47912
  borderTopLeftRadius: langdetect == 'en' ? sectionproperties.image_bordertopleftradius + 'px' : sectionproperties.image_bordertoprightradius + 'px',
47632
47913
  borderTopRightRadius: langdetect == 'en' ? sectionproperties.image_bordertoprightradius + 'px' : sectionproperties.image_bordertopleftradius + 'px',
47633
- background: sectionproperties.image_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.image_bgcolor
47914
+ background: sectionproperties.image_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.image_bgcolor,
47915
+ opacity: item.productquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' ? 0.4 : 1
47634
47916
  }),
47635
47917
  quantitybtn: css({
47636
47918
  flex: 1,
@@ -47685,6 +47967,21 @@ var Productcard_with_zoominonhover = function Productcard_with_zoominonhover(pro
47685
47967
  color: sectionproperties.remove_quantitybtn_textcoloronhover,
47686
47968
  background: sectionproperties.remove_quantitybtn_bgcoloronhover
47687
47969
  }
47970
+ }),
47971
+ outstockbadge: css({
47972
+ width: sectionproperties.outstock_width + 'px',
47973
+ height: sectionproperties.outstock_height + 'px',
47974
+ background: sectionproperties.outstock_bg,
47975
+ color: sectionproperties.outstock_color,
47976
+ fontSize: sectionproperties.outstock_fontSize + 'px',
47977
+ borderRadius: sectionproperties.outstock_borderradius + 'px',
47978
+ position: 'absolute',
47979
+ zIndex: 2,
47980
+ top: 0,
47981
+ bottom: 0,
47982
+ left: 0,
47983
+ right: 0,
47984
+ margin: 'auto'
47688
47985
  })
47689
47986
  };
47690
47987
  var addtocartbuttonrender = function addtocartbuttonrender() {
@@ -47744,7 +48041,7 @@ var Productcard_with_zoominonhover = function Productcard_with_zoominonhover(pro
47744
48041
  size: sectionproperties.cartBtn_iconFontSize
47745
48042
  }), sectionproperties.carticonstyle == 'Shopping cart 2' && /*#__PURE__*/React.createElement(MdAddShoppingCart, {
47746
48043
  size: sectionproperties.cartBtn_iconFontSize
47747
- })), lang.addtocart);
48044
+ })), langdetect == 'en' ? sectionproperties.cartBtnContentenglish : sectionproperties.cartBtnContentarabic);
47748
48045
  }
47749
48046
  };
47750
48047
  return /*#__PURE__*/React.createElement("div", {
@@ -47760,7 +48057,10 @@ var Productcard_with_zoominonhover = function Productcard_with_zoominonhover(pro
47760
48057
  }, /*#__PURE__*/React.createElement("div", {
47761
48058
  "class": "".concat(cardsstyles$4.card_inner)
47762
48059
  }, /*#__PURE__*/React.createElement("div", {
47763
- "class": "".concat(cardsstyles$4.card_thumbnail)
48060
+ "class": "".concat(cardsstyles$4.card_thumbnail),
48061
+ style: {
48062
+ position: 'relative'
48063
+ }
47764
48064
  }, /*#__PURE__*/React.createElement("div", {
47765
48065
  "class": "".concat(cardsstyles$4.img_container, " ").concat(cardsstyles2.img_container) + ' w-100 allcentered ',
47766
48066
  onClick: function onClick() {
@@ -47834,7 +48134,11 @@ var Productcard_with_zoominonhover = function Productcard_with_zoominonhover(pro
47834
48134
  color: sectionproperties.badge_color,
47835
48135
  fontSize: sectionproperties.badge_fontsize + 'px'
47836
48136
  }
47837
- }, langdetect == 'en' ? sectionproperties.badgeContentEn : sectionproperties.badgeContentAr))), /*#__PURE__*/React.createElement("div", {
48137
+ }, langdetect == 'en' ? sectionproperties.badgeContentEn : sectionproperties.badgeContentAr)), item.productquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' && /*#__PURE__*/React.createElement("div", {
48138
+ "class": "".concat(cardsstyles2.outstockbadge) + ' allcentered '
48139
+ }, /*#__PURE__*/React.createElement("p", {
48140
+ "class": "m-0 p-0"
48141
+ }, langdetect == 'en' ? sectionproperties.outstock_contenten : sectionproperties.outstock_contentar))), /*#__PURE__*/React.createElement("div", {
47838
48142
  "class": "".concat(cardsstyles$4.product_details) + ' mb-2 '
47839
48143
  }, sectionproperties.prodNameShow == 'Show' && /*#__PURE__*/React.createElement("div", {
47840
48144
  "class": "col-lg-12"
@@ -47870,7 +48174,9 @@ var Productcard_with_zoominonhover = function Productcard_with_zoominonhover(pro
47870
48174
  transform: ' rotate(-180deg)'
47871
48175
  },
47872
48176
  onClick: function onClick() {
47873
- if (item.hasvariants == 0) {
48177
+ if (item.productquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit') {
48178
+ NotificationManager.warning('', langdetect == 'en' ? 'Sold Out' : 'نفذت الكمية');
48179
+ } else if (item.hasvariants == 0) {
47874
48180
  updatequantity('remove');
47875
48181
  } else {
47876
48182
  setShowProductInfoModalContext(true);
@@ -47882,7 +48188,9 @@ var Productcard_with_zoominonhover = function Productcard_with_zoominonhover(pro
47882
48188
  })), langdetect == 'ar' && /*#__PURE__*/React.createElement("span", {
47883
48189
  "class": "".concat(cardsstyles2.add_quantitybtn_icon_container) + ' m-1 ',
47884
48190
  onClick: function onClick() {
47885
- if (item.hasvariants == 0) {
48191
+ if (item.productquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit') {
48192
+ NotificationManager.warning('', langdetect == 'en' ? 'Sold Out' : 'نفذت الكمية');
48193
+ } else if (item.hasvariants == 0) {
47886
48194
  updatequantity('add');
47887
48195
  } else {
47888
48196
  setShowProductInfoModalContext(true);
@@ -47899,7 +48207,9 @@ var Productcard_with_zoominonhover = function Productcard_with_zoominonhover(pro
47899
48207
  transform: ' rotate(-180deg)'
47900
48208
  },
47901
48209
  onClick: function onClick() {
47902
- if (item.hasvariants == 0) {
48210
+ if (item.productquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit') {
48211
+ NotificationManager.warning('', langdetect == 'en' ? 'Sold Out' : 'نفذت الكمية');
48212
+ } else if (item.hasvariants == 0) {
47903
48213
  updatequantity('remove');
47904
48214
  } else {
47905
48215
  setShowProductInfoModalContext(true);
@@ -47911,7 +48221,9 @@ var Productcard_with_zoominonhover = function Productcard_with_zoominonhover(pro
47911
48221
  })), langdetect == 'en' && /*#__PURE__*/React.createElement("span", {
47912
48222
  "class": "".concat(cardsstyles2.add_quantitybtn_icon_container) + ' m-1 ',
47913
48223
  onClick: function onClick() {
47914
- if (item.hasvariants == 0) {
48224
+ if (item.productquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit') {
48225
+ NotificationManager.warning('', langdetect == 'en' ? 'Sold Out' : 'نفذت الكمية');
48226
+ } else if (item.hasvariants == 0) {
47915
48227
  updatequantity('add');
47916
48228
  } else {
47917
48229
  setShowProductInfoModalContext(true);
@@ -52085,8 +52397,8 @@ var Productcard_with_slideanimation = function Productcard_with_slideanimation(p
52085
52397
  path: '/tr:w-' + sectionproperties.imagetr_w + ',h-' + sectionproperties.imagetr_w + '/' + item.image,
52086
52398
  loading: "lazy",
52087
52399
  style: {
52088
- width: '100%',
52089
- height: '100%',
52400
+ width: sectionproperties.imageInnerWidth_Height + '%',
52401
+ height: sectionproperties.imageInnerWidth_Height + '%',
52090
52402
  objectFit: sectionproperties.bgcovercontain == 'Cover' ? 'cover' : 'contain',
52091
52403
  background: sectionproperties.image_bgcolortransparent == 'Transparent' ? '' : sectionproperties.image_bgcolor,
52092
52404
  border: sectionproperties.image_borderwidth + 'px solid ' + sectionproperties.image_bordercolor,
@@ -53907,7 +54219,7 @@ var Simpleproductcard = function Simpleproductcard(props) {
53907
54219
  borderTopLeftRadius: langdetect == 'en' ? sectionproperties.image_bordertopleftradius + 'px' : sectionproperties.image_bordertoprightradius + 'px',
53908
54220
  borderTopRightRadius: langdetect == 'en' ? sectionproperties.image_bordertoprightradius + 'px' : sectionproperties.image_bordertopleftradius + 'px',
53909
54221
  transition: '.3s',
53910
- opacity: item.productquantity < 1 ? 0.4 : 1
54222
+ opacity: item.productquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' ? 0.4 : 1
53911
54223
  }),
53912
54224
  productNameStyles: css({
53913
54225
  color: sectionproperties.prodNameColor,
@@ -54099,7 +54411,7 @@ var Simpleproductcard = function Simpleproductcard(props) {
54099
54411
  height: sectionproperties.imageInnerWidth_Height + '%',
54100
54412
  objectFit: sectionproperties.bgcovercontain == 'Cover' ? 'cover' : 'contain'
54101
54413
  }
54102
- })), item.productquantity < 1 && /*#__PURE__*/React.createElement("div", {
54414
+ })), item.productquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' && /*#__PURE__*/React.createElement("div", {
54103
54415
  "class": "".concat(card_cssstyles.outstockbadge) + ' allcentered '
54104
54416
  }, /*#__PURE__*/React.createElement("p", {
54105
54417
  "class": "m-0 p-0"
@@ -54132,7 +54444,7 @@ var Simpleproductcard = function Simpleproductcard(props) {
54132
54444
  }, langdetect == 'en' ? 'EGP' : '', " ", item.defaultprice, " ", langdetect == 'en' ? '' : 'ج.م'))))), sectionproperties.cartBtnShow == 'Show' && /*#__PURE__*/React.createElement("p", {
54133
54445
  "class": "".concat(card_cssstyles.cart_btn) + ' m-0 p-0 d-flex align-items-center justify-content-center mt-1 ',
54134
54446
  onClick: function onClick() {
54135
- if (item.productquantity > 0) {
54447
+ if (item.productquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit') {
54136
54448
  setShowProductInfoModalContext(true);
54137
54449
  setProductIdProdutInfoModalContext(item.productid);
54138
54450
  } else {