tabexseriescomponents 0.0.257 → 0.0.259

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
@@ -1627,12 +1627,8 @@ var Product_itemtype = function Product_itemtype(props) {
1627
1627
  className: "".concat(productinfo_cssstyles.cart_btn, " ") + ' ml-2 mr-2 d-flex align-items-center justify-content-center mb-sm-2 ',
1628
1628
  onClick: function onClick() {
1629
1629
  if (fetchProductInfoQueryContext.data.data.productinfo.maximumproductquant >= addtocardpayloadobj.quantity && fetchProductInfoQueryContext.data.data.productinfo.minimumproductquant <= addtocardpayloadobj.quantity) {
1630
- var _fetchProductInfoQuer37, _fetchProductInfoQuer38, _fetchProductInfoQuer39;
1631
- if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer37 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer37 === void 0 ? void 0 : (_fetchProductInfoQuer38 = _fetchProductInfoQuer37.data) === null || _fetchProductInfoQuer38 === void 0 ? void 0 : (_fetchProductInfoQuer39 = _fetchProductInfoQuer38.productinfo) === null || _fetchProductInfoQuer39 === void 0 ? void 0 : _fetchProductInfoQuer39.isproductforcedtocheckout) == 0) {
1632
- addtocartfunc();
1633
- } else {
1634
- routingcountext(StaticPagesLinksContext.Checkout);
1635
- }
1630
+ // if (fetchProductInfoQueryContext?.data?.data?.productinfo?.isproductforcedtocheckout == 0) {
1631
+ addtocartfunc();
1636
1632
  } else {
1637
1633
  NotificationManager.warning('', 'Max: ' + fetchProductInfoQueryContext.data.data.productinfo.maximumproductquant + ', Min: ' + fetchProductInfoQueryContext.data.data.productinfo.minimumproductquant);
1638
1634
  }
@@ -7466,7 +7462,17 @@ var Checkout = function Checkout(props) {
7466
7462
  })), !fetchTabexCountriesQueryContext.isFetching && fetchTabexCountriesQueryContext.isSuccess && /*#__PURE__*/React__default["default"].createElement(Select$1, {
7467
7463
  options: fetchTabexCountriesQueryContext.data.data.countries,
7468
7464
  getOptionLabel: function getOptionLabel(option) {
7469
- return option.name;
7465
+ var crname = '';
7466
+ if (langdetect == 'en') {
7467
+ crname = option.name;
7468
+ } else if (langdetect == 'ar') {
7469
+ if (option.name_ar != null) {
7470
+ crname = option.name_ar;
7471
+ } else {
7472
+ crname = option.name;
7473
+ }
7474
+ }
7475
+ return crname;
7470
7476
  },
7471
7477
  getOptionValue: function getOptionValue(option) {
7472
7478
  return option.id;
@@ -7497,9 +7503,22 @@ var Checkout = function Checkout(props) {
7497
7503
  height: "20px",
7498
7504
  duration: "1s"
7499
7505
  })), !fetchTabexStatesQueryContext.isFetching && fetchTabexStatesQueryContext.isSuccess && /*#__PURE__*/React__default["default"].createElement(Select$1, {
7500
- options: fetchTabexStatesQueryContext.data.data.states,
7506
+ options: fetchTabexStatesQueryContext.data.data.states
7507
+ // getOptionLabel={(option) => option.name}
7508
+ // getOptionValue={(option) => option.id}
7509
+ ,
7501
7510
  getOptionLabel: function getOptionLabel(option) {
7502
- return option.name;
7511
+ var crname = '';
7512
+ if (langdetect == 'en') {
7513
+ crname = option.name;
7514
+ } else if (langdetect == 'ar') {
7515
+ if (option.name_ar != null) {
7516
+ crname = option.name_ar;
7517
+ } else {
7518
+ crname = option.name;
7519
+ }
7520
+ }
7521
+ return crname;
7503
7522
  },
7504
7523
  getOptionValue: function getOptionValue(option) {
7505
7524
  return option.id;
@@ -7537,7 +7556,17 @@ var Checkout = function Checkout(props) {
7537
7556
  })), !fetchTabexCitiesQueryContext.isFetching && fetchTabexCitiesQueryContext.isSuccess && /*#__PURE__*/React__default["default"].createElement(Select$1, {
7538
7557
  options: fetchTabexCitiesQueryContext.data.data.cities,
7539
7558
  getOptionLabel: function getOptionLabel(option) {
7540
- return option.name;
7559
+ var crname = '';
7560
+ if (langdetect == 'en') {
7561
+ crname = option.name;
7562
+ } else if (langdetect == 'ar') {
7563
+ if (option.name_ar != null) {
7564
+ crname = option.name_ar;
7565
+ } else {
7566
+ crname = option.name;
7567
+ }
7568
+ }
7569
+ return crname;
7541
7570
  },
7542
7571
  getOptionValue: function getOptionValue(option) {
7543
7572
  return option.id;
@@ -11252,6 +11281,7 @@ var CardsSection = function CardsSection(props) {
11252
11281
  cardobj.productimages = arrayItem.productinfo.productimages;
11253
11282
  cardobj.quantity = itemquantity;
11254
11283
  cardobj.timestamp = arrayItem.productinfo.timestamp;
11284
+ cardobj.productquantity = arrayItem.productinfo.productquantity;
11255
11285
  if (langdetect == 'en') {
11256
11286
  cardobj.currencyname = fetchAuthorizationQueryContext === null || fetchAuthorizationQueryContext === void 0 ? void 0 : fetchAuthorizationQueryContext.data.data.currencyname_en;
11257
11287
  } else {
@@ -11634,7 +11664,7 @@ var CardsSection = function CardsSection(props) {
11634
11664
  "class": sectionproperties.sectiontitleposition == 'Centered' ? 'd-none align-items-center justify-content-center' : 'd-none d-md-flex align-items-center justify-content-center'
11635
11665
  }, /*#__PURE__*/React__default["default"].createElement("i", {
11636
11666
  "class": "h-100 d-flex align-items-center justify-content-center"
11637
- }, ' ', langdetect == 'en' ? /*#__PURE__*/React__default["default"].createElement(HiOutlineArrowRight.HiOutlineArrowRight, {
11667
+ }, langdetect == 'en' ? /*#__PURE__*/React__default["default"].createElement(HiOutlineArrowRight.HiOutlineArrowRight, {
11638
11668
  size: sectionproperties.viewmorebtn_fontSize
11639
11669
  }) : /*#__PURE__*/React__default["default"].createElement(HiOutlineArrowLeft.HiOutlineArrowLeft, {
11640
11670
  size: sectionproperties.viewmorebtn_fontSize
@@ -40776,6 +40806,40 @@ var ServicesectionCenteredcards = function ServicesectionCenteredcards(props) {
40776
40806
  flex: '1 1 auto',
40777
40807
  minWidth: '10%',
40778
40808
  background: sectionproperties.linebgcolor
40809
+ }),
40810
+ text1Styles: glamor.css({
40811
+ color: sectionproperties.slideshowText1ContentColor,
40812
+ fontSize: sectionproperties.slideshowText1ContentFontSize + 'px',
40813
+ fontWeight: sectionproperties.slideshowText1ContentFontWeight,
40814
+ textAlign: sectionproperties.justifyContentCenter == 'Centered' ? 'center' : '',
40815
+ ':hover': {
40816
+ transition: '.3s',
40817
+ color: sectionproperties.text1secondarycolor
40818
+ }
40819
+ }),
40820
+ imageContainer: glamor.css({
40821
+ width: sectionproperties.image_width + 'px',
40822
+ height: sectionproperties.image_height + 'px',
40823
+ borderBottomLeftRadius: sectionproperties.image_borderBottomLeftRadius + 'px',
40824
+ borderBottomRightRadius: sectionproperties.image_borderBottomRightRadius + 'px',
40825
+ borderTopLeftRadius: sectionproperties.image_bordertopleftradius + 'px',
40826
+ borderTopRightRadius: sectionproperties.image_bordertoprightradius + 'px',
40827
+ background: sectionproperties.image_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.image_bgcolor,
40828
+ justifyContent: sectionproperties.iconcontainerheight == '0' ? 'start' : 'center',
40829
+ ':hover': {
40830
+ transition: '.3s',
40831
+ backgroundColor: sectionproperties.activedotcolor
40832
+ }
40833
+ }),
40834
+ cardContainer: glamor.css({
40835
+ ':hover .imageContainer': {
40836
+ transition: '.3s',
40837
+ backgroundColor: sectionproperties.activedotcolor
40838
+ },
40839
+ ':hover .text1Styles': {
40840
+ transition: '.3s',
40841
+ color: sectionproperties.text1secondarycolor
40842
+ }
40779
40843
  })
40780
40844
  };
40781
40845
  return /*#__PURE__*/React__default["default"].createElement("div", {
@@ -40884,8 +40948,9 @@ var ServicesectionCenteredcards = function ServicesectionCenteredcards(props) {
40884
40948
  zIndex: 2
40885
40949
  }
40886
40950
  }, /*#__PURE__*/React__default["default"].createElement("div", {
40887
- "class": sectionproperties.innersectionbordertype != 'All' ? 'row m-0 w-100 mb-auto border-md-none' : 'row m-0 w-100 mb-auto',
40951
+ "class": sectionproperties.innersectionbordertype != 'All' ? sectionStyles.cardContainer + ' row m-0 w-100 mb-auto border-md-none ' : sectionStyles.cardContainer + ' row m-0 w-100 mb-auto ',
40888
40952
  style: {
40953
+ cursor: cardinfoitem.iscardclickable == 'Yes' ? 'pointer' : 'default',
40889
40954
  background: sectionproperties.reservation_bgcolor,
40890
40955
  paddingTop: sectionproperties.reservation_padding_top + 'px',
40891
40956
  paddingBottom: sectionproperties.reservation_padding_bottom + 'px',
@@ -40896,6 +40961,11 @@ var ServicesectionCenteredcards = function ServicesectionCenteredcards(props) {
40896
40961
  borderRight: cardinfoindex != cardsarray.length - 1 ? sectionproperties.innersectionbordertype == 'Right' ? langdetect == 'en' ? sectionproperties.innersectionborderWidth + 'px solid ' + sectionproperties.innersectionborderColor : '' : '' : '',
40897
40962
  borderLeft: sectionproperties.innersectionbordertype == 'Right' ? langdetect == 'ar' ? sectionproperties.innersectionborderWidth + 'px solid ' + sectionproperties.innersectionborderColor : '' : '',
40898
40963
  boxShadow: ' 0 0 10px ' + sectionproperties.innerSectionShadowColor
40964
+ },
40965
+ onClick: function onClick() {
40966
+ if (cardinfoitem.iscardclickable == 'Yes') {
40967
+ window.open(cardinfoitem.btnlink, '_blank');
40968
+ }
40899
40969
  }
40900
40970
  }, /*#__PURE__*/React__default["default"].createElement("div", {
40901
40971
  "class": "col-lg-12 d-flex align-items-center p-0",
@@ -40904,21 +40974,12 @@ var ServicesectionCenteredcards = function ServicesectionCenteredcards(props) {
40904
40974
  justifyContent: sectionproperties.justifyContentCenter == 'Centered' ? 'center' : 'start'
40905
40975
  }
40906
40976
  }, /*#__PURE__*/React__default["default"].createElement("div", {
40907
- "class": 'd-flex align-items-center',
40908
- style: {
40909
- width: sectionproperties.image_width + 'px',
40910
- height: sectionproperties.image_height + 'px',
40911
- borderBottomLeftRadius: sectionproperties.image_borderBottomLeftRadius + 'px',
40912
- borderBottomRightRadius: sectionproperties.image_borderBottomRightRadius + 'px',
40913
- borderTopLeftRadius: sectionproperties.image_bordertopleftradius + 'px',
40914
- borderTopRightRadius: sectionproperties.image_bordertoprightradius + 'px',
40915
- background: sectionproperties.image_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.image_bgcolor,
40916
- justifyContent: sectionproperties.iconcontainerheight == '0' ? 'start' : 'center'
40917
- }
40977
+ "class": sectionStyles.imageContainer + ' d-flex align-items-center imageContainer ',
40978
+ style: {}
40918
40979
  }, /*#__PURE__*/React__default["default"].createElement(Imagekitimagecomp, {
40919
40980
  urlEndpoint: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint,
40920
40981
  publicKey: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimagepublickey,
40921
- path: cardsarray.length != 0 ? cardsarray[cardinfoindex].cardobj_img : '',
40982
+ path: cardsarray.length != 0 ? cardinfoitem.cardobj_img : '',
40922
40983
  style: {
40923
40984
  maxHeight: sectionproperties.iconcontainerwidth + '%',
40924
40985
  maxWidth: sectionproperties.iconcontainerwidth + '%',
@@ -40931,14 +40992,11 @@ var ServicesectionCenteredcards = function ServicesectionCenteredcards(props) {
40931
40992
  justifyContent: sectionproperties.justifyContentCenter == 'Centered' ? 'center' : 'start'
40932
40993
  }
40933
40994
  }, /*#__PURE__*/React__default["default"].createElement("p", {
40934
- "class": "p-0 m-0 wordbreak wordbreak-noellipsis",
40995
+ "class": sectionStyles.text1Styles + ' p-0 m-0 wordbreak wordbreak-noellipsis text1Styles ',
40935
40996
  style: {
40936
- color: sectionproperties.slideshowText1ContentColor,
40937
- fontSize: sectionproperties.slideshowText1ContentFontSize + 'px',
40938
- fontWeight: sectionproperties.slideshowText1ContentFontWeight,
40939
- textAlign: sectionproperties.justifyContentCenter == 'Centered' ? 'center' : ''
40997
+ cursor: cardinfoitem.iscardclickable == 'Yes' ? 'pointer' : 'default'
40940
40998
  }
40941
- }, langdetect == 'en' ? cardsarray[cardinfoindex].cardobj_titleen : cardsarray[cardinfoindex].cardobj_titlear)), /*#__PURE__*/React__default["default"].createElement("div", {
40999
+ }, langdetect == 'en' ? cardinfoitem.cardobj_titleen : cardinfoitem.cardobj_titlear)), /*#__PURE__*/React__default["default"].createElement("div", {
40942
41000
  "class": "col-lg-12 d-flex p-0",
40943
41001
  style: {
40944
41002
  justifyContent: sectionproperties.justifyContentCenter == 'Centered' ? 'center' : 'start'
@@ -40951,7 +41009,7 @@ var ServicesectionCenteredcards = function ServicesectionCenteredcards(props) {
40951
41009
  fontWeight: sectionproperties.slideshowText2ContentFontWeight,
40952
41010
  textAlign: sectionproperties.justifyContentCenter == 'Centered' ? 'center' : ''
40953
41011
  }
40954
- }, langdetect == 'en' ? cardsarray[cardinfoindex].cardobj_descripen : cardsarray[cardinfoindex].cardobj_descripar))));
41012
+ }, langdetect == 'en' ? cardinfoitem.cardobj_descripen : cardinfoitem.cardobj_descripar))));
40955
41013
  }))));
40956
41014
  };
40957
41015
 
@@ -53668,6 +53726,7 @@ var Simpleproductcard = function Simpleproductcard(props) {
53668
53726
  props.actions.routingcountext;
53669
53727
  var cardonclickfunctionContext = props.actions.cardonclickfunctionContext;
53670
53728
  var ikimagecredcontext = props.actions.ikimagecredcontext;
53729
+ var NotificationManager = props.actions.NotificationManager;
53671
53730
  var _useState5 = React.useState(props.cardinfoindexprops),
53672
53731
  _useState6 = _slicedToArray__default["default"](_useState5, 2);
53673
53732
  _useState6[0];
@@ -53709,7 +53768,8 @@ var Simpleproductcard = function Simpleproductcard(props) {
53709
53768
  borderBottomRightRadius: langdetect == 'en' ? sectionproperties.image_borderBottomRightRadius + 'px' : sectionproperties.image_borderBottomLeftRadius + 'px',
53710
53769
  borderTopLeftRadius: langdetect == 'en' ? sectionproperties.image_bordertopleftradius + 'px' : sectionproperties.image_bordertoprightradius + 'px',
53711
53770
  borderTopRightRadius: langdetect == 'en' ? sectionproperties.image_bordertoprightradius + 'px' : sectionproperties.image_bordertopleftradius + 'px',
53712
- transition: '.3s'
53771
+ transition: '.3s',
53772
+ opacity: item.productquantity < 1 ? 0.4 : 1
53713
53773
  }),
53714
53774
  productNameStyles: glamor.css({
53715
53775
  color: sectionproperties.prodNameColor,
@@ -53764,6 +53824,21 @@ var Simpleproductcard = function Simpleproductcard(props) {
53764
53824
  color: sectionproperties.cartBtnTextcoloronhover,
53765
53825
  borderColor: sectionproperties.cartBtnTextcoloronhover
53766
53826
  }
53827
+ }),
53828
+ outstockbadge: glamor.css({
53829
+ width: sectionproperties.outstock_width + 'px',
53830
+ height: sectionproperties.outstock_height + 'px',
53831
+ background: sectionproperties.outstock_bg,
53832
+ color: sectionproperties.outstock_color,
53833
+ fontSize: sectionproperties.outstock_fontSize + 'px',
53834
+ borderRadius: sectionproperties.outstock_borderradius + 'px',
53835
+ position: 'absolute',
53836
+ zIndex: 2,
53837
+ top: 0,
53838
+ bottom: 0,
53839
+ left: 0,
53840
+ right: 0,
53841
+ margin: 'auto'
53767
53842
  })
53768
53843
  };
53769
53844
  return /*#__PURE__*/React__default["default"].createElement("div", {
@@ -53876,7 +53951,7 @@ var Simpleproductcard = function Simpleproductcard(props) {
53876
53951
  style: {
53877
53952
  zIndex: 1
53878
53953
  }
53879
- }, /*#__PURE__*/React__default["default"].createElement(Imagekitimagecomp, {
53954
+ }, item.image != '' && /*#__PURE__*/React__default["default"].createElement(Imagekitimagecomp, {
53880
53955
  urlEndpoint: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint,
53881
53956
  publicKey: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimagepublickey,
53882
53957
  path: '/tr:w-' + sectionproperties.imagetr_w + ',h-' + sectionproperties.imagetr_h + '/' + item.image,
@@ -53886,7 +53961,11 @@ var Simpleproductcard = function Simpleproductcard(props) {
53886
53961
  height: sectionproperties.imageInnerWidth_Height + '%',
53887
53962
  objectFit: sectionproperties.bgcovercontain == 'Cover' ? 'cover' : 'contain'
53888
53963
  }
53889
- }))), /*#__PURE__*/React__default["default"].createElement("div", null, /*#__PURE__*/React__default["default"].createElement("div", {
53964
+ })), item.productquantity < 1 && /*#__PURE__*/React__default["default"].createElement("div", {
53965
+ "class": "".concat(card_cssstyles.outstockbadge) + ' allcentered '
53966
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
53967
+ "class": "m-0 p-0"
53968
+ }, langdetect == 'en' ? sectionproperties.outstock_contenten : sectionproperties.outstock_contentar))), /*#__PURE__*/React__default["default"].createElement("div", null, /*#__PURE__*/React__default["default"].createElement("div", {
53890
53969
  "class": "row m-0 w-100 "
53891
53970
  }, sectionproperties.prodNameShow == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
53892
53971
  "class": "col-lg-12 p-0"
@@ -53915,8 +53994,12 @@ var Simpleproductcard = function Simpleproductcard(props) {
53915
53994
  }, langdetect == 'en' ? 'EGP' : '', " ", item.defaultprice, " ", langdetect == 'en' ? '' : 'ج.م'))))), sectionproperties.cartBtnShow == 'Show' && /*#__PURE__*/React__default["default"].createElement("p", {
53916
53995
  "class": "".concat(card_cssstyles.cart_btn) + ' m-0 p-0 d-flex align-items-center justify-content-center mt-1 ',
53917
53996
  onClick: function onClick() {
53918
- setShowProductInfoModalContext(true);
53919
- setProductIdProdutInfoModalContext(item.productid);
53997
+ if (item.productquantity > 0) {
53998
+ setShowProductInfoModalContext(true);
53999
+ setProductIdProdutInfoModalContext(item.productid);
54000
+ } else {
54001
+ NotificationManager.warning('', langdetect == 'en' ? 'Sold Out' : 'نفذت الكمية');
54002
+ }
53920
54003
  }
53921
54004
  }, sectionproperties.cartBtn_iconFontSize != 0 && /*#__PURE__*/React__default["default"].createElement("i", {
53922
54005
  "class": langdetect == 'en' ? 'h-100 mr-2 d-flex align-items-center justify-content-center' : 'h-100 ml-2 d-flex align-items-center justify-content-center'
package/dist/index.esm.js CHANGED
@@ -1580,12 +1580,8 @@ var Product_itemtype = function Product_itemtype(props) {
1580
1580
  className: "".concat(productinfo_cssstyles.cart_btn, " ") + ' ml-2 mr-2 d-flex align-items-center justify-content-center mb-sm-2 ',
1581
1581
  onClick: function onClick() {
1582
1582
  if (fetchProductInfoQueryContext.data.data.productinfo.maximumproductquant >= addtocardpayloadobj.quantity && fetchProductInfoQueryContext.data.data.productinfo.minimumproductquant <= addtocardpayloadobj.quantity) {
1583
- var _fetchProductInfoQuer37, _fetchProductInfoQuer38, _fetchProductInfoQuer39;
1584
- if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer37 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer37 === void 0 ? void 0 : (_fetchProductInfoQuer38 = _fetchProductInfoQuer37.data) === null || _fetchProductInfoQuer38 === void 0 ? void 0 : (_fetchProductInfoQuer39 = _fetchProductInfoQuer38.productinfo) === null || _fetchProductInfoQuer39 === void 0 ? void 0 : _fetchProductInfoQuer39.isproductforcedtocheckout) == 0) {
1585
- addtocartfunc();
1586
- } else {
1587
- routingcountext(StaticPagesLinksContext.Checkout);
1588
- }
1583
+ // if (fetchProductInfoQueryContext?.data?.data?.productinfo?.isproductforcedtocheckout == 0) {
1584
+ addtocartfunc();
1589
1585
  } else {
1590
1586
  NotificationManager.warning('', 'Max: ' + fetchProductInfoQueryContext.data.data.productinfo.maximumproductquant + ', Min: ' + fetchProductInfoQueryContext.data.data.productinfo.minimumproductquant);
1591
1587
  }
@@ -7419,7 +7415,17 @@ var Checkout = function Checkout(props) {
7419
7415
  })), !fetchTabexCountriesQueryContext.isFetching && fetchTabexCountriesQueryContext.isSuccess && /*#__PURE__*/React.createElement(Select$1, {
7420
7416
  options: fetchTabexCountriesQueryContext.data.data.countries,
7421
7417
  getOptionLabel: function getOptionLabel(option) {
7422
- return option.name;
7418
+ var crname = '';
7419
+ if (langdetect == 'en') {
7420
+ crname = option.name;
7421
+ } else if (langdetect == 'ar') {
7422
+ if (option.name_ar != null) {
7423
+ crname = option.name_ar;
7424
+ } else {
7425
+ crname = option.name;
7426
+ }
7427
+ }
7428
+ return crname;
7423
7429
  },
7424
7430
  getOptionValue: function getOptionValue(option) {
7425
7431
  return option.id;
@@ -7450,9 +7456,22 @@ var Checkout = function Checkout(props) {
7450
7456
  height: "20px",
7451
7457
  duration: "1s"
7452
7458
  })), !fetchTabexStatesQueryContext.isFetching && fetchTabexStatesQueryContext.isSuccess && /*#__PURE__*/React.createElement(Select$1, {
7453
- options: fetchTabexStatesQueryContext.data.data.states,
7459
+ options: fetchTabexStatesQueryContext.data.data.states
7460
+ // getOptionLabel={(option) => option.name}
7461
+ // getOptionValue={(option) => option.id}
7462
+ ,
7454
7463
  getOptionLabel: function getOptionLabel(option) {
7455
- return option.name;
7464
+ var crname = '';
7465
+ if (langdetect == 'en') {
7466
+ crname = option.name;
7467
+ } else if (langdetect == 'ar') {
7468
+ if (option.name_ar != null) {
7469
+ crname = option.name_ar;
7470
+ } else {
7471
+ crname = option.name;
7472
+ }
7473
+ }
7474
+ return crname;
7456
7475
  },
7457
7476
  getOptionValue: function getOptionValue(option) {
7458
7477
  return option.id;
@@ -7490,7 +7509,17 @@ var Checkout = function Checkout(props) {
7490
7509
  })), !fetchTabexCitiesQueryContext.isFetching && fetchTabexCitiesQueryContext.isSuccess && /*#__PURE__*/React.createElement(Select$1, {
7491
7510
  options: fetchTabexCitiesQueryContext.data.data.cities,
7492
7511
  getOptionLabel: function getOptionLabel(option) {
7493
- return option.name;
7512
+ var crname = '';
7513
+ if (langdetect == 'en') {
7514
+ crname = option.name;
7515
+ } else if (langdetect == 'ar') {
7516
+ if (option.name_ar != null) {
7517
+ crname = option.name_ar;
7518
+ } else {
7519
+ crname = option.name;
7520
+ }
7521
+ }
7522
+ return crname;
7494
7523
  },
7495
7524
  getOptionValue: function getOptionValue(option) {
7496
7525
  return option.id;
@@ -11205,6 +11234,7 @@ var CardsSection = function CardsSection(props) {
11205
11234
  cardobj.productimages = arrayItem.productinfo.productimages;
11206
11235
  cardobj.quantity = itemquantity;
11207
11236
  cardobj.timestamp = arrayItem.productinfo.timestamp;
11237
+ cardobj.productquantity = arrayItem.productinfo.productquantity;
11208
11238
  if (langdetect == 'en') {
11209
11239
  cardobj.currencyname = fetchAuthorizationQueryContext === null || fetchAuthorizationQueryContext === void 0 ? void 0 : fetchAuthorizationQueryContext.data.data.currencyname_en;
11210
11240
  } else {
@@ -11587,7 +11617,7 @@ var CardsSection = function CardsSection(props) {
11587
11617
  "class": sectionproperties.sectiontitleposition == 'Centered' ? 'd-none align-items-center justify-content-center' : 'd-none d-md-flex align-items-center justify-content-center'
11588
11618
  }, /*#__PURE__*/React.createElement("i", {
11589
11619
  "class": "h-100 d-flex align-items-center justify-content-center"
11590
- }, ' ', langdetect == 'en' ? /*#__PURE__*/React.createElement(HiOutlineArrowRight, {
11620
+ }, langdetect == 'en' ? /*#__PURE__*/React.createElement(HiOutlineArrowRight, {
11591
11621
  size: sectionproperties.viewmorebtn_fontSize
11592
11622
  }) : /*#__PURE__*/React.createElement(HiOutlineArrowLeft, {
11593
11623
  size: sectionproperties.viewmorebtn_fontSize
@@ -40729,6 +40759,40 @@ var ServicesectionCenteredcards = function ServicesectionCenteredcards(props) {
40729
40759
  flex: '1 1 auto',
40730
40760
  minWidth: '10%',
40731
40761
  background: sectionproperties.linebgcolor
40762
+ }),
40763
+ text1Styles: css({
40764
+ color: sectionproperties.slideshowText1ContentColor,
40765
+ fontSize: sectionproperties.slideshowText1ContentFontSize + 'px',
40766
+ fontWeight: sectionproperties.slideshowText1ContentFontWeight,
40767
+ textAlign: sectionproperties.justifyContentCenter == 'Centered' ? 'center' : '',
40768
+ ':hover': {
40769
+ transition: '.3s',
40770
+ color: sectionproperties.text1secondarycolor
40771
+ }
40772
+ }),
40773
+ imageContainer: css({
40774
+ width: sectionproperties.image_width + 'px',
40775
+ height: sectionproperties.image_height + 'px',
40776
+ borderBottomLeftRadius: sectionproperties.image_borderBottomLeftRadius + 'px',
40777
+ borderBottomRightRadius: sectionproperties.image_borderBottomRightRadius + 'px',
40778
+ borderTopLeftRadius: sectionproperties.image_bordertopleftradius + 'px',
40779
+ borderTopRightRadius: sectionproperties.image_bordertoprightradius + 'px',
40780
+ background: sectionproperties.image_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.image_bgcolor,
40781
+ justifyContent: sectionproperties.iconcontainerheight == '0' ? 'start' : 'center',
40782
+ ':hover': {
40783
+ transition: '.3s',
40784
+ backgroundColor: sectionproperties.activedotcolor
40785
+ }
40786
+ }),
40787
+ cardContainer: css({
40788
+ ':hover .imageContainer': {
40789
+ transition: '.3s',
40790
+ backgroundColor: sectionproperties.activedotcolor
40791
+ },
40792
+ ':hover .text1Styles': {
40793
+ transition: '.3s',
40794
+ color: sectionproperties.text1secondarycolor
40795
+ }
40732
40796
  })
40733
40797
  };
40734
40798
  return /*#__PURE__*/React.createElement("div", {
@@ -40837,8 +40901,9 @@ var ServicesectionCenteredcards = function ServicesectionCenteredcards(props) {
40837
40901
  zIndex: 2
40838
40902
  }
40839
40903
  }, /*#__PURE__*/React.createElement("div", {
40840
- "class": sectionproperties.innersectionbordertype != 'All' ? 'row m-0 w-100 mb-auto border-md-none' : 'row m-0 w-100 mb-auto',
40904
+ "class": sectionproperties.innersectionbordertype != 'All' ? sectionStyles.cardContainer + ' row m-0 w-100 mb-auto border-md-none ' : sectionStyles.cardContainer + ' row m-0 w-100 mb-auto ',
40841
40905
  style: {
40906
+ cursor: cardinfoitem.iscardclickable == 'Yes' ? 'pointer' : 'default',
40842
40907
  background: sectionproperties.reservation_bgcolor,
40843
40908
  paddingTop: sectionproperties.reservation_padding_top + 'px',
40844
40909
  paddingBottom: sectionproperties.reservation_padding_bottom + 'px',
@@ -40849,6 +40914,11 @@ var ServicesectionCenteredcards = function ServicesectionCenteredcards(props) {
40849
40914
  borderRight: cardinfoindex != cardsarray.length - 1 ? sectionproperties.innersectionbordertype == 'Right' ? langdetect == 'en' ? sectionproperties.innersectionborderWidth + 'px solid ' + sectionproperties.innersectionborderColor : '' : '' : '',
40850
40915
  borderLeft: sectionproperties.innersectionbordertype == 'Right' ? langdetect == 'ar' ? sectionproperties.innersectionborderWidth + 'px solid ' + sectionproperties.innersectionborderColor : '' : '',
40851
40916
  boxShadow: ' 0 0 10px ' + sectionproperties.innerSectionShadowColor
40917
+ },
40918
+ onClick: function onClick() {
40919
+ if (cardinfoitem.iscardclickable == 'Yes') {
40920
+ window.open(cardinfoitem.btnlink, '_blank');
40921
+ }
40852
40922
  }
40853
40923
  }, /*#__PURE__*/React.createElement("div", {
40854
40924
  "class": "col-lg-12 d-flex align-items-center p-0",
@@ -40857,21 +40927,12 @@ var ServicesectionCenteredcards = function ServicesectionCenteredcards(props) {
40857
40927
  justifyContent: sectionproperties.justifyContentCenter == 'Centered' ? 'center' : 'start'
40858
40928
  }
40859
40929
  }, /*#__PURE__*/React.createElement("div", {
40860
- "class": 'd-flex align-items-center',
40861
- style: {
40862
- width: sectionproperties.image_width + 'px',
40863
- height: sectionproperties.image_height + 'px',
40864
- borderBottomLeftRadius: sectionproperties.image_borderBottomLeftRadius + 'px',
40865
- borderBottomRightRadius: sectionproperties.image_borderBottomRightRadius + 'px',
40866
- borderTopLeftRadius: sectionproperties.image_bordertopleftradius + 'px',
40867
- borderTopRightRadius: sectionproperties.image_bordertoprightradius + 'px',
40868
- background: sectionproperties.image_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.image_bgcolor,
40869
- justifyContent: sectionproperties.iconcontainerheight == '0' ? 'start' : 'center'
40870
- }
40930
+ "class": sectionStyles.imageContainer + ' d-flex align-items-center imageContainer ',
40931
+ style: {}
40871
40932
  }, /*#__PURE__*/React.createElement(Imagekitimagecomp, {
40872
40933
  urlEndpoint: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint,
40873
40934
  publicKey: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimagepublickey,
40874
- path: cardsarray.length != 0 ? cardsarray[cardinfoindex].cardobj_img : '',
40935
+ path: cardsarray.length != 0 ? cardinfoitem.cardobj_img : '',
40875
40936
  style: {
40876
40937
  maxHeight: sectionproperties.iconcontainerwidth + '%',
40877
40938
  maxWidth: sectionproperties.iconcontainerwidth + '%',
@@ -40884,14 +40945,11 @@ var ServicesectionCenteredcards = function ServicesectionCenteredcards(props) {
40884
40945
  justifyContent: sectionproperties.justifyContentCenter == 'Centered' ? 'center' : 'start'
40885
40946
  }
40886
40947
  }, /*#__PURE__*/React.createElement("p", {
40887
- "class": "p-0 m-0 wordbreak wordbreak-noellipsis",
40948
+ "class": sectionStyles.text1Styles + ' p-0 m-0 wordbreak wordbreak-noellipsis text1Styles ',
40888
40949
  style: {
40889
- color: sectionproperties.slideshowText1ContentColor,
40890
- fontSize: sectionproperties.slideshowText1ContentFontSize + 'px',
40891
- fontWeight: sectionproperties.slideshowText1ContentFontWeight,
40892
- textAlign: sectionproperties.justifyContentCenter == 'Centered' ? 'center' : ''
40950
+ cursor: cardinfoitem.iscardclickable == 'Yes' ? 'pointer' : 'default'
40893
40951
  }
40894
- }, langdetect == 'en' ? cardsarray[cardinfoindex].cardobj_titleen : cardsarray[cardinfoindex].cardobj_titlear)), /*#__PURE__*/React.createElement("div", {
40952
+ }, langdetect == 'en' ? cardinfoitem.cardobj_titleen : cardinfoitem.cardobj_titlear)), /*#__PURE__*/React.createElement("div", {
40895
40953
  "class": "col-lg-12 d-flex p-0",
40896
40954
  style: {
40897
40955
  justifyContent: sectionproperties.justifyContentCenter == 'Centered' ? 'center' : 'start'
@@ -40904,7 +40962,7 @@ var ServicesectionCenteredcards = function ServicesectionCenteredcards(props) {
40904
40962
  fontWeight: sectionproperties.slideshowText2ContentFontWeight,
40905
40963
  textAlign: sectionproperties.justifyContentCenter == 'Centered' ? 'center' : ''
40906
40964
  }
40907
- }, langdetect == 'en' ? cardsarray[cardinfoindex].cardobj_descripen : cardsarray[cardinfoindex].cardobj_descripar))));
40965
+ }, langdetect == 'en' ? cardinfoitem.cardobj_descripen : cardinfoitem.cardobj_descripar))));
40908
40966
  }))));
40909
40967
  };
40910
40968
 
@@ -53621,6 +53679,7 @@ var Simpleproductcard = function Simpleproductcard(props) {
53621
53679
  props.actions.routingcountext;
53622
53680
  var cardonclickfunctionContext = props.actions.cardonclickfunctionContext;
53623
53681
  var ikimagecredcontext = props.actions.ikimagecredcontext;
53682
+ var NotificationManager = props.actions.NotificationManager;
53624
53683
  var _useState5 = useState(props.cardinfoindexprops),
53625
53684
  _useState6 = _slicedToArray(_useState5, 2);
53626
53685
  _useState6[0];
@@ -53662,7 +53721,8 @@ var Simpleproductcard = function Simpleproductcard(props) {
53662
53721
  borderBottomRightRadius: langdetect == 'en' ? sectionproperties.image_borderBottomRightRadius + 'px' : sectionproperties.image_borderBottomLeftRadius + 'px',
53663
53722
  borderTopLeftRadius: langdetect == 'en' ? sectionproperties.image_bordertopleftradius + 'px' : sectionproperties.image_bordertoprightradius + 'px',
53664
53723
  borderTopRightRadius: langdetect == 'en' ? sectionproperties.image_bordertoprightradius + 'px' : sectionproperties.image_bordertopleftradius + 'px',
53665
- transition: '.3s'
53724
+ transition: '.3s',
53725
+ opacity: item.productquantity < 1 ? 0.4 : 1
53666
53726
  }),
53667
53727
  productNameStyles: css({
53668
53728
  color: sectionproperties.prodNameColor,
@@ -53717,6 +53777,21 @@ var Simpleproductcard = function Simpleproductcard(props) {
53717
53777
  color: sectionproperties.cartBtnTextcoloronhover,
53718
53778
  borderColor: sectionproperties.cartBtnTextcoloronhover
53719
53779
  }
53780
+ }),
53781
+ outstockbadge: css({
53782
+ width: sectionproperties.outstock_width + 'px',
53783
+ height: sectionproperties.outstock_height + 'px',
53784
+ background: sectionproperties.outstock_bg,
53785
+ color: sectionproperties.outstock_color,
53786
+ fontSize: sectionproperties.outstock_fontSize + 'px',
53787
+ borderRadius: sectionproperties.outstock_borderradius + 'px',
53788
+ position: 'absolute',
53789
+ zIndex: 2,
53790
+ top: 0,
53791
+ bottom: 0,
53792
+ left: 0,
53793
+ right: 0,
53794
+ margin: 'auto'
53720
53795
  })
53721
53796
  };
53722
53797
  return /*#__PURE__*/React.createElement("div", {
@@ -53829,7 +53904,7 @@ var Simpleproductcard = function Simpleproductcard(props) {
53829
53904
  style: {
53830
53905
  zIndex: 1
53831
53906
  }
53832
- }, /*#__PURE__*/React.createElement(Imagekitimagecomp, {
53907
+ }, item.image != '' && /*#__PURE__*/React.createElement(Imagekitimagecomp, {
53833
53908
  urlEndpoint: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint,
53834
53909
  publicKey: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimagepublickey,
53835
53910
  path: '/tr:w-' + sectionproperties.imagetr_w + ',h-' + sectionproperties.imagetr_h + '/' + item.image,
@@ -53839,7 +53914,11 @@ var Simpleproductcard = function Simpleproductcard(props) {
53839
53914
  height: sectionproperties.imageInnerWidth_Height + '%',
53840
53915
  objectFit: sectionproperties.bgcovercontain == 'Cover' ? 'cover' : 'contain'
53841
53916
  }
53842
- }))), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
53917
+ })), item.productquantity < 1 && /*#__PURE__*/React.createElement("div", {
53918
+ "class": "".concat(card_cssstyles.outstockbadge) + ' allcentered '
53919
+ }, /*#__PURE__*/React.createElement("p", {
53920
+ "class": "m-0 p-0"
53921
+ }, langdetect == 'en' ? sectionproperties.outstock_contenten : sectionproperties.outstock_contentar))), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
53843
53922
  "class": "row m-0 w-100 "
53844
53923
  }, sectionproperties.prodNameShow == 'Show' && /*#__PURE__*/React.createElement("div", {
53845
53924
  "class": "col-lg-12 p-0"
@@ -53868,8 +53947,12 @@ var Simpleproductcard = function Simpleproductcard(props) {
53868
53947
  }, langdetect == 'en' ? 'EGP' : '', " ", item.defaultprice, " ", langdetect == 'en' ? '' : 'ج.م'))))), sectionproperties.cartBtnShow == 'Show' && /*#__PURE__*/React.createElement("p", {
53869
53948
  "class": "".concat(card_cssstyles.cart_btn) + ' m-0 p-0 d-flex align-items-center justify-content-center mt-1 ',
53870
53949
  onClick: function onClick() {
53871
- setShowProductInfoModalContext(true);
53872
- setProductIdProdutInfoModalContext(item.productid);
53950
+ if (item.productquantity > 0) {
53951
+ setShowProductInfoModalContext(true);
53952
+ setProductIdProdutInfoModalContext(item.productid);
53953
+ } else {
53954
+ NotificationManager.warning('', langdetect == 'en' ? 'Sold Out' : 'نفذت الكمية');
53955
+ }
53873
53956
  }
53874
53957
  }, sectionproperties.cartBtn_iconFontSize != 0 && /*#__PURE__*/React.createElement("i", {
53875
53958
  "class": langdetect == 'en' ? 'h-100 mr-2 d-flex align-items-center justify-content-center' : 'h-100 ml-2 d-flex align-items-center justify-content-center'
package/dist/index.umd.js CHANGED
@@ -1479,12 +1479,8 @@
1479
1479
  className: "".concat(productinfo_cssstyles.cart_btn, " ") + ' ml-2 mr-2 d-flex align-items-center justify-content-center mb-sm-2 ',
1480
1480
  onClick: function onClick() {
1481
1481
  if (fetchProductInfoQueryContext.data.data.productinfo.maximumproductquant >= addtocardpayloadobj.quantity && fetchProductInfoQueryContext.data.data.productinfo.minimumproductquant <= addtocardpayloadobj.quantity) {
1482
- var _fetchProductInfoQuer37, _fetchProductInfoQuer38, _fetchProductInfoQuer39;
1483
- if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer37 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer37 === void 0 ? void 0 : (_fetchProductInfoQuer38 = _fetchProductInfoQuer37.data) === null || _fetchProductInfoQuer38 === void 0 ? void 0 : (_fetchProductInfoQuer39 = _fetchProductInfoQuer38.productinfo) === null || _fetchProductInfoQuer39 === void 0 ? void 0 : _fetchProductInfoQuer39.isproductforcedtocheckout) == 0) {
1484
- addtocartfunc();
1485
- } else {
1486
- routingcountext(StaticPagesLinksContext.Checkout);
1487
- }
1482
+ // if (fetchProductInfoQueryContext?.data?.data?.productinfo?.isproductforcedtocheckout == 0) {
1483
+ addtocartfunc();
1488
1484
  } else {
1489
1485
  NotificationManager.warning('', 'Max: ' + fetchProductInfoQueryContext.data.data.productinfo.maximumproductquant + ', Min: ' + fetchProductInfoQueryContext.data.data.productinfo.minimumproductquant);
1490
1486
  }
@@ -7318,7 +7314,17 @@
7318
7314
  })), !fetchTabexCountriesQueryContext.isFetching && fetchTabexCountriesQueryContext.isSuccess && /*#__PURE__*/React__default["default"].createElement(Select$1, {
7319
7315
  options: fetchTabexCountriesQueryContext.data.data.countries,
7320
7316
  getOptionLabel: function getOptionLabel(option) {
7321
- return option.name;
7317
+ var crname = '';
7318
+ if (langdetect == 'en') {
7319
+ crname = option.name;
7320
+ } else if (langdetect == 'ar') {
7321
+ if (option.name_ar != null) {
7322
+ crname = option.name_ar;
7323
+ } else {
7324
+ crname = option.name;
7325
+ }
7326
+ }
7327
+ return crname;
7322
7328
  },
7323
7329
  getOptionValue: function getOptionValue(option) {
7324
7330
  return option.id;
@@ -7349,9 +7355,22 @@
7349
7355
  height: "20px",
7350
7356
  duration: "1s"
7351
7357
  })), !fetchTabexStatesQueryContext.isFetching && fetchTabexStatesQueryContext.isSuccess && /*#__PURE__*/React__default["default"].createElement(Select$1, {
7352
- options: fetchTabexStatesQueryContext.data.data.states,
7358
+ options: fetchTabexStatesQueryContext.data.data.states
7359
+ // getOptionLabel={(option) => option.name}
7360
+ // getOptionValue={(option) => option.id}
7361
+ ,
7353
7362
  getOptionLabel: function getOptionLabel(option) {
7354
- return option.name;
7363
+ var crname = '';
7364
+ if (langdetect == 'en') {
7365
+ crname = option.name;
7366
+ } else if (langdetect == 'ar') {
7367
+ if (option.name_ar != null) {
7368
+ crname = option.name_ar;
7369
+ } else {
7370
+ crname = option.name;
7371
+ }
7372
+ }
7373
+ return crname;
7355
7374
  },
7356
7375
  getOptionValue: function getOptionValue(option) {
7357
7376
  return option.id;
@@ -7389,7 +7408,17 @@
7389
7408
  })), !fetchTabexCitiesQueryContext.isFetching && fetchTabexCitiesQueryContext.isSuccess && /*#__PURE__*/React__default["default"].createElement(Select$1, {
7390
7409
  options: fetchTabexCitiesQueryContext.data.data.cities,
7391
7410
  getOptionLabel: function getOptionLabel(option) {
7392
- return option.name;
7411
+ var crname = '';
7412
+ if (langdetect == 'en') {
7413
+ crname = option.name;
7414
+ } else if (langdetect == 'ar') {
7415
+ if (option.name_ar != null) {
7416
+ crname = option.name_ar;
7417
+ } else {
7418
+ crname = option.name;
7419
+ }
7420
+ }
7421
+ return crname;
7393
7422
  },
7394
7423
  getOptionValue: function getOptionValue(option) {
7395
7424
  return option.id;
@@ -11104,6 +11133,7 @@
11104
11133
  cardobj.productimages = arrayItem.productinfo.productimages;
11105
11134
  cardobj.quantity = itemquantity;
11106
11135
  cardobj.timestamp = arrayItem.productinfo.timestamp;
11136
+ cardobj.productquantity = arrayItem.productinfo.productquantity;
11107
11137
  if (langdetect == 'en') {
11108
11138
  cardobj.currencyname = fetchAuthorizationQueryContext === null || fetchAuthorizationQueryContext === void 0 ? void 0 : fetchAuthorizationQueryContext.data.data.currencyname_en;
11109
11139
  } else {
@@ -11486,7 +11516,7 @@
11486
11516
  "class": sectionproperties.sectiontitleposition == 'Centered' ? 'd-none align-items-center justify-content-center' : 'd-none d-md-flex align-items-center justify-content-center'
11487
11517
  }, /*#__PURE__*/React__default["default"].createElement("i", {
11488
11518
  "class": "h-100 d-flex align-items-center justify-content-center"
11489
- }, ' ', langdetect == 'en' ? /*#__PURE__*/React__default["default"].createElement(HiOutlineArrowRight.HiOutlineArrowRight, {
11519
+ }, langdetect == 'en' ? /*#__PURE__*/React__default["default"].createElement(HiOutlineArrowRight.HiOutlineArrowRight, {
11490
11520
  size: sectionproperties.viewmorebtn_fontSize
11491
11521
  }) : /*#__PURE__*/React__default["default"].createElement(HiOutlineArrowLeft.HiOutlineArrowLeft, {
11492
11522
  size: sectionproperties.viewmorebtn_fontSize
@@ -40628,6 +40658,40 @@
40628
40658
  flex: '1 1 auto',
40629
40659
  minWidth: '10%',
40630
40660
  background: sectionproperties.linebgcolor
40661
+ }),
40662
+ text1Styles: glamor.css({
40663
+ color: sectionproperties.slideshowText1ContentColor,
40664
+ fontSize: sectionproperties.slideshowText1ContentFontSize + 'px',
40665
+ fontWeight: sectionproperties.slideshowText1ContentFontWeight,
40666
+ textAlign: sectionproperties.justifyContentCenter == 'Centered' ? 'center' : '',
40667
+ ':hover': {
40668
+ transition: '.3s',
40669
+ color: sectionproperties.text1secondarycolor
40670
+ }
40671
+ }),
40672
+ imageContainer: glamor.css({
40673
+ width: sectionproperties.image_width + 'px',
40674
+ height: sectionproperties.image_height + 'px',
40675
+ borderBottomLeftRadius: sectionproperties.image_borderBottomLeftRadius + 'px',
40676
+ borderBottomRightRadius: sectionproperties.image_borderBottomRightRadius + 'px',
40677
+ borderTopLeftRadius: sectionproperties.image_bordertopleftradius + 'px',
40678
+ borderTopRightRadius: sectionproperties.image_bordertoprightradius + 'px',
40679
+ background: sectionproperties.image_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.image_bgcolor,
40680
+ justifyContent: sectionproperties.iconcontainerheight == '0' ? 'start' : 'center',
40681
+ ':hover': {
40682
+ transition: '.3s',
40683
+ backgroundColor: sectionproperties.activedotcolor
40684
+ }
40685
+ }),
40686
+ cardContainer: glamor.css({
40687
+ ':hover .imageContainer': {
40688
+ transition: '.3s',
40689
+ backgroundColor: sectionproperties.activedotcolor
40690
+ },
40691
+ ':hover .text1Styles': {
40692
+ transition: '.3s',
40693
+ color: sectionproperties.text1secondarycolor
40694
+ }
40631
40695
  })
40632
40696
  };
40633
40697
  return /*#__PURE__*/React__default["default"].createElement("div", {
@@ -40736,8 +40800,9 @@
40736
40800
  zIndex: 2
40737
40801
  }
40738
40802
  }, /*#__PURE__*/React__default["default"].createElement("div", {
40739
- "class": sectionproperties.innersectionbordertype != 'All' ? 'row m-0 w-100 mb-auto border-md-none' : 'row m-0 w-100 mb-auto',
40803
+ "class": sectionproperties.innersectionbordertype != 'All' ? sectionStyles.cardContainer + ' row m-0 w-100 mb-auto border-md-none ' : sectionStyles.cardContainer + ' row m-0 w-100 mb-auto ',
40740
40804
  style: {
40805
+ cursor: cardinfoitem.iscardclickable == 'Yes' ? 'pointer' : 'default',
40741
40806
  background: sectionproperties.reservation_bgcolor,
40742
40807
  paddingTop: sectionproperties.reservation_padding_top + 'px',
40743
40808
  paddingBottom: sectionproperties.reservation_padding_bottom + 'px',
@@ -40748,6 +40813,11 @@
40748
40813
  borderRight: cardinfoindex != cardsarray.length - 1 ? sectionproperties.innersectionbordertype == 'Right' ? langdetect == 'en' ? sectionproperties.innersectionborderWidth + 'px solid ' + sectionproperties.innersectionborderColor : '' : '' : '',
40749
40814
  borderLeft: sectionproperties.innersectionbordertype == 'Right' ? langdetect == 'ar' ? sectionproperties.innersectionborderWidth + 'px solid ' + sectionproperties.innersectionborderColor : '' : '',
40750
40815
  boxShadow: ' 0 0 10px ' + sectionproperties.innerSectionShadowColor
40816
+ },
40817
+ onClick: function onClick() {
40818
+ if (cardinfoitem.iscardclickable == 'Yes') {
40819
+ window.open(cardinfoitem.btnlink, '_blank');
40820
+ }
40751
40821
  }
40752
40822
  }, /*#__PURE__*/React__default["default"].createElement("div", {
40753
40823
  "class": "col-lg-12 d-flex align-items-center p-0",
@@ -40756,21 +40826,12 @@
40756
40826
  justifyContent: sectionproperties.justifyContentCenter == 'Centered' ? 'center' : 'start'
40757
40827
  }
40758
40828
  }, /*#__PURE__*/React__default["default"].createElement("div", {
40759
- "class": 'd-flex align-items-center',
40760
- style: {
40761
- width: sectionproperties.image_width + 'px',
40762
- height: sectionproperties.image_height + 'px',
40763
- borderBottomLeftRadius: sectionproperties.image_borderBottomLeftRadius + 'px',
40764
- borderBottomRightRadius: sectionproperties.image_borderBottomRightRadius + 'px',
40765
- borderTopLeftRadius: sectionproperties.image_bordertopleftradius + 'px',
40766
- borderTopRightRadius: sectionproperties.image_bordertoprightradius + 'px',
40767
- background: sectionproperties.image_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.image_bgcolor,
40768
- justifyContent: sectionproperties.iconcontainerheight == '0' ? 'start' : 'center'
40769
- }
40829
+ "class": sectionStyles.imageContainer + ' d-flex align-items-center imageContainer ',
40830
+ style: {}
40770
40831
  }, /*#__PURE__*/React__default["default"].createElement(Imagekitimagecomp, {
40771
40832
  urlEndpoint: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint,
40772
40833
  publicKey: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimagepublickey,
40773
- path: cardsarray.length != 0 ? cardsarray[cardinfoindex].cardobj_img : '',
40834
+ path: cardsarray.length != 0 ? cardinfoitem.cardobj_img : '',
40774
40835
  style: {
40775
40836
  maxHeight: sectionproperties.iconcontainerwidth + '%',
40776
40837
  maxWidth: sectionproperties.iconcontainerwidth + '%',
@@ -40783,14 +40844,11 @@
40783
40844
  justifyContent: sectionproperties.justifyContentCenter == 'Centered' ? 'center' : 'start'
40784
40845
  }
40785
40846
  }, /*#__PURE__*/React__default["default"].createElement("p", {
40786
- "class": "p-0 m-0 wordbreak wordbreak-noellipsis",
40847
+ "class": sectionStyles.text1Styles + ' p-0 m-0 wordbreak wordbreak-noellipsis text1Styles ',
40787
40848
  style: {
40788
- color: sectionproperties.slideshowText1ContentColor,
40789
- fontSize: sectionproperties.slideshowText1ContentFontSize + 'px',
40790
- fontWeight: sectionproperties.slideshowText1ContentFontWeight,
40791
- textAlign: sectionproperties.justifyContentCenter == 'Centered' ? 'center' : ''
40849
+ cursor: cardinfoitem.iscardclickable == 'Yes' ? 'pointer' : 'default'
40792
40850
  }
40793
- }, langdetect == 'en' ? cardsarray[cardinfoindex].cardobj_titleen : cardsarray[cardinfoindex].cardobj_titlear)), /*#__PURE__*/React__default["default"].createElement("div", {
40851
+ }, langdetect == 'en' ? cardinfoitem.cardobj_titleen : cardinfoitem.cardobj_titlear)), /*#__PURE__*/React__default["default"].createElement("div", {
40794
40852
  "class": "col-lg-12 d-flex p-0",
40795
40853
  style: {
40796
40854
  justifyContent: sectionproperties.justifyContentCenter == 'Centered' ? 'center' : 'start'
@@ -40803,7 +40861,7 @@
40803
40861
  fontWeight: sectionproperties.slideshowText2ContentFontWeight,
40804
40862
  textAlign: sectionproperties.justifyContentCenter == 'Centered' ? 'center' : ''
40805
40863
  }
40806
- }, langdetect == 'en' ? cardsarray[cardinfoindex].cardobj_descripen : cardsarray[cardinfoindex].cardobj_descripar))));
40864
+ }, langdetect == 'en' ? cardinfoitem.cardobj_descripen : cardinfoitem.cardobj_descripar))));
40807
40865
  }))));
40808
40866
  };
40809
40867
 
@@ -53520,6 +53578,7 @@
53520
53578
  props.actions.routingcountext;
53521
53579
  var cardonclickfunctionContext = props.actions.cardonclickfunctionContext;
53522
53580
  var ikimagecredcontext = props.actions.ikimagecredcontext;
53581
+ var NotificationManager = props.actions.NotificationManager;
53523
53582
  var _useState5 = React.useState(props.cardinfoindexprops),
53524
53583
  _useState6 = _slicedToArray__default["default"](_useState5, 2);
53525
53584
  _useState6[0];
@@ -53561,7 +53620,8 @@
53561
53620
  borderBottomRightRadius: langdetect == 'en' ? sectionproperties.image_borderBottomRightRadius + 'px' : sectionproperties.image_borderBottomLeftRadius + 'px',
53562
53621
  borderTopLeftRadius: langdetect == 'en' ? sectionproperties.image_bordertopleftradius + 'px' : sectionproperties.image_bordertoprightradius + 'px',
53563
53622
  borderTopRightRadius: langdetect == 'en' ? sectionproperties.image_bordertoprightradius + 'px' : sectionproperties.image_bordertopleftradius + 'px',
53564
- transition: '.3s'
53623
+ transition: '.3s',
53624
+ opacity: item.productquantity < 1 ? 0.4 : 1
53565
53625
  }),
53566
53626
  productNameStyles: glamor.css({
53567
53627
  color: sectionproperties.prodNameColor,
@@ -53616,6 +53676,21 @@
53616
53676
  color: sectionproperties.cartBtnTextcoloronhover,
53617
53677
  borderColor: sectionproperties.cartBtnTextcoloronhover
53618
53678
  }
53679
+ }),
53680
+ outstockbadge: glamor.css({
53681
+ width: sectionproperties.outstock_width + 'px',
53682
+ height: sectionproperties.outstock_height + 'px',
53683
+ background: sectionproperties.outstock_bg,
53684
+ color: sectionproperties.outstock_color,
53685
+ fontSize: sectionproperties.outstock_fontSize + 'px',
53686
+ borderRadius: sectionproperties.outstock_borderradius + 'px',
53687
+ position: 'absolute',
53688
+ zIndex: 2,
53689
+ top: 0,
53690
+ bottom: 0,
53691
+ left: 0,
53692
+ right: 0,
53693
+ margin: 'auto'
53619
53694
  })
53620
53695
  };
53621
53696
  return /*#__PURE__*/React__default["default"].createElement("div", {
@@ -53728,7 +53803,7 @@
53728
53803
  style: {
53729
53804
  zIndex: 1
53730
53805
  }
53731
- }, /*#__PURE__*/React__default["default"].createElement(Imagekitimagecomp, {
53806
+ }, item.image != '' && /*#__PURE__*/React__default["default"].createElement(Imagekitimagecomp, {
53732
53807
  urlEndpoint: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint,
53733
53808
  publicKey: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimagepublickey,
53734
53809
  path: '/tr:w-' + sectionproperties.imagetr_w + ',h-' + sectionproperties.imagetr_h + '/' + item.image,
@@ -53738,7 +53813,11 @@
53738
53813
  height: sectionproperties.imageInnerWidth_Height + '%',
53739
53814
  objectFit: sectionproperties.bgcovercontain == 'Cover' ? 'cover' : 'contain'
53740
53815
  }
53741
- }))), /*#__PURE__*/React__default["default"].createElement("div", null, /*#__PURE__*/React__default["default"].createElement("div", {
53816
+ })), item.productquantity < 1 && /*#__PURE__*/React__default["default"].createElement("div", {
53817
+ "class": "".concat(card_cssstyles.outstockbadge) + ' allcentered '
53818
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
53819
+ "class": "m-0 p-0"
53820
+ }, langdetect == 'en' ? sectionproperties.outstock_contenten : sectionproperties.outstock_contentar))), /*#__PURE__*/React__default["default"].createElement("div", null, /*#__PURE__*/React__default["default"].createElement("div", {
53742
53821
  "class": "row m-0 w-100 "
53743
53822
  }, sectionproperties.prodNameShow == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
53744
53823
  "class": "col-lg-12 p-0"
@@ -53767,8 +53846,12 @@
53767
53846
  }, langdetect == 'en' ? 'EGP' : '', " ", item.defaultprice, " ", langdetect == 'en' ? '' : 'ج.م'))))), sectionproperties.cartBtnShow == 'Show' && /*#__PURE__*/React__default["default"].createElement("p", {
53768
53847
  "class": "".concat(card_cssstyles.cart_btn) + ' m-0 p-0 d-flex align-items-center justify-content-center mt-1 ',
53769
53848
  onClick: function onClick() {
53770
- setShowProductInfoModalContext(true);
53771
- setProductIdProdutInfoModalContext(item.productid);
53849
+ if (item.productquantity > 0) {
53850
+ setShowProductInfoModalContext(true);
53851
+ setProductIdProdutInfoModalContext(item.productid);
53852
+ } else {
53853
+ NotificationManager.warning('', langdetect == 'en' ? 'Sold Out' : 'نفذت الكمية');
53854
+ }
53772
53855
  }
53773
53856
  }, sectionproperties.cartBtn_iconFontSize != 0 && /*#__PURE__*/React__default["default"].createElement("i", {
53774
53857
  "class": langdetect == 'en' ? 'h-100 mr-2 d-flex align-items-center justify-content-center' : 'h-100 ml-2 d-flex align-items-center justify-content-center'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tabexseriescomponents",
3
- "version": "0.0.257",
3
+ "version": "0.0.259",
4
4
  "description": "your description",
5
5
  "main": "dist/index.cjs.js",
6
6
  "scripts": {