tabexseriescomponents 0.0.408 → 0.0.409

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
@@ -15220,6 +15220,7 @@ var CardsSection = function CardsSection(props) {
15220
15220
  _useState14 = _slicedToArray__default["default"](_useState13, 2),
15221
15221
  perpageItems = _useState14[0],
15222
15222
  setperpageItems = _useState14[1];
15223
+ var AddtoCartMutationContext = props.actions.AddtoCartMutationContext;
15223
15224
  React.useEffect(function () {
15224
15225
  var productfilerobjtemp = ProductFilterObjContext;
15225
15226
  if (props.filterparamsprops != undefined) {
@@ -15515,6 +15516,7 @@ var CardsSection = function CardsSection(props) {
15515
15516
  cardobj.productcashbackvalue = arrayItem.productinfo.productcashbackvalue;
15516
15517
  cardobj.product_phonenumber = arrayItem.productinfo.product_phonenumber;
15517
15518
  cardobj.productcanrate = arrayItem.productinfo.productcanrate;
15519
+ cardobj.sku = arrayItem.productinfo.sku;
15518
15520
  if (langdetect == 'en') {
15519
15521
  cardobj.currencyname = fetchAuthorizationQueryContext === null || fetchAuthorizationQueryContext === void 0 ? void 0 : fetchAuthorizationQueryContext.data.data.currencyname_en;
15520
15522
  } else {
@@ -16077,7 +16079,8 @@ var CardsSection = function CardsSection(props) {
16077
16079
  sectionindexprops: index,
16078
16080
  sectionidprops: item.sectionid,
16079
16081
  actions: actions,
16080
- fontFamilyprops: sectionproperties.sectiontitlefontfamily == 'ASUL' ? 'ASUL' : ''
16082
+ fontFamilyprops: sectionproperties.sectiontitlefontfamily == 'ASUL' ? 'ASUL' : '',
16083
+ AddtoCartMutationContext: AddtoCartMutationContext
16081
16084
  }));
16082
16085
  } else if (sectionproperties.overallnumberofcards != 0) {
16083
16086
  if (cardinfoindex < sectionproperties.overallnumberofcards) {
@@ -16091,7 +16094,8 @@ var CardsSection = function CardsSection(props) {
16091
16094
  sectionindexprops: index,
16092
16095
  sectionidprops: item.sectionid,
16093
16096
  actions: actions,
16094
- fontFamilyprops: sectionproperties.sectiontitlefontfamily == 'ASUL' ? 'ASUL' : ''
16097
+ fontFamilyprops: sectionproperties.sectiontitlefontfamily == 'ASUL' ? 'ASUL' : '',
16098
+ AddtoCartMutationContext: AddtoCartMutationContext
16095
16099
  }));
16096
16100
  }
16097
16101
  }
@@ -16279,7 +16283,8 @@ var CardsSection = function CardsSection(props) {
16279
16283
  sectionidprops: item.sectionid,
16280
16284
  actions: actions,
16281
16285
  fontFamilyprops: sectionproperties.sectiontitlefontfamily == 'ASUL' ? 'ASUL' : '',
16282
- numberOfColsvertical: sectionproperties.numberOfColsvertical
16286
+ numberOfColsvertical: sectionproperties.numberOfColsvertical,
16287
+ AddtoCartMutationContext: AddtoCartMutationContext
16283
16288
  }));
16284
16289
  } else if (sectionproperties.overallnumberofcards != 0) {
16285
16290
  if (cardinfoindex < sectionproperties.overallnumberofcards) {
@@ -16295,7 +16300,8 @@ var CardsSection = function CardsSection(props) {
16295
16300
  sectionidprops: item.sectionid,
16296
16301
  actions: actions,
16297
16302
  fontFamilyprops: sectionproperties.sectiontitlefontfamily == 'ASUL' ? 'ASUL' : '',
16298
- numberOfColsvertical: sectionproperties.numberOfColsvertical
16303
+ numberOfColsvertical: sectionproperties.numberOfColsvertical,
16304
+ AddtoCartMutationContext: AddtoCartMutationContext
16299
16305
  }));
16300
16306
  }
16301
16307
  }
@@ -43816,7 +43822,7 @@ var Newsletterfooter = function Newsletterfooter(props) {
43816
43822
  onClick: function onClick() {
43817
43823
  routingcountext(StaticPagesLinksContext.Wishlist);
43818
43824
  }
43819
- }, langdetect == 'en' ? sectionproperties.wishlisttitle_en : sectionproperties.previousorders_titlear)), authdetailsContext.loggedin && /*#__PURE__*/React__default["default"].createElement("div", {
43825
+ }, langdetect == 'en' ? sectionproperties.wishlisttitle_en : sectionproperties.wishlisttitle_ar)), authdetailsContext.loggedin && /*#__PURE__*/React__default["default"].createElement("div", {
43820
43826
  "class": "col-lg-12 col-md-12 col-sm-12 p-0 d-flex mb-1"
43821
43827
  }, /*#__PURE__*/React__default["default"].createElement("p", {
43822
43828
  "class": "".concat(footerStyles.subPages) + ' wordbreak m-0 p-0 ',
@@ -61112,6 +61118,7 @@ var Card23 = function Card23(props) {
61112
61118
  _useState4 = _slicedToArray__default["default"](_useState3, 2),
61113
61119
  item = _useState4[0],
61114
61120
  setitem = _useState4[1];
61121
+ var AddtoCartMutationContext = props.AddtoCartMutationContext;
61115
61122
  var _useState5 = React.useState(''),
61116
61123
  _useState6 = _slicedToArray__default["default"](_useState5, 2),
61117
61124
  secondimage = _useState6[0],
@@ -61233,7 +61240,7 @@ var Card23 = function Card23(props) {
61233
61240
  }
61234
61241
  }),
61235
61242
  cart_btn: glamor.css({
61236
- width: sectionproperties.cartBtnWidth + 'px',
61243
+ width: sectionproperties.cartBtnWidth + '%',
61237
61244
  height: sectionproperties.cartBtnHeight + 'px',
61238
61245
  background: sectionproperties.cartbtn_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.cartBtnbgColor,
61239
61246
  borderRadius: sectionproperties.cart_btn_borderBottomLeftRadius + 'px',
@@ -61248,6 +61255,23 @@ var Card23 = function Card23(props) {
61248
61255
  borderColor: sectionproperties.cartBtnTextcoloronhover
61249
61256
  }
61250
61257
  }),
61258
+ buynow: glamor.css({
61259
+ width: sectionproperties.cartBtnWidth + '%',
61260
+ height: sectionproperties.cartBtnHeight + 'px',
61261
+ background: sectionproperties.cartBtnTextcolor,
61262
+ borderRadius: sectionproperties.cart_btn_borderBottomLeftRadius + 'px',
61263
+ color: 'white',
61264
+ fontSize: sectionproperties.cartBtnTextfontsize + 'px',
61265
+ fontWeight: sectionproperties.cartBtnTextfontweight,
61266
+ // border: sectionproperties.cartbtnborderwidth + 'px solid ' + sectionproperties.cartbtnbordercolor,
61267
+ transition: '.3s',
61268
+ ':hover': {
61269
+ background: sectionproperties.cartBtnTextcoloronhover,
61270
+ color: 'white'
61271
+ // borderColor: sectionproperties.cartBtnTextcoloronhover,
61272
+ }
61273
+ }),
61274
+
61251
61275
  iconsContainer: glamor.css({
61252
61276
  display: 'flex',
61253
61277
  flexDirection: 'column',
@@ -61418,6 +61442,33 @@ var Card23 = function Card23(props) {
61418
61442
  "class": "m-0 p-0"
61419
61443
  }, langdetect == 'en' ? sectionproperties.outstock_contenten : sectionproperties.outstock_contentar)));
61420
61444
  };
61445
+ var _useState9 = React.useState(''),
61446
+ _useState10 = _slicedToArray__default["default"](_useState9, 2),
61447
+ addtocardpayloadobj = _useState10[0];
61448
+ _useState10[1];
61449
+ var AddtoCartContext = props.actions.AddtoCartContext;
61450
+ var addtocartfunc = function addtocartfunc(forcetocheckout) {
61451
+ var forcetocheckoutvalue = forcetocheckout;
61452
+ var tempaddtocardpayloadobj = _objectSpread$x({}, addtocardpayloadobj);
61453
+ tempaddtocardpayloadobj.productid = item.productid;
61454
+ tempaddtocardpayloadobj.functype = 'add';
61455
+ tempaddtocardpayloadobj.item_type = 'product';
61456
+ tempaddtocardpayloadobj.quantity = 1;
61457
+ if (forcetocheckoutvalue != undefined) {
61458
+ tempaddtocardpayloadobj.forcetocheckoutvalue = forcetocheckoutvalue;
61459
+ }
61460
+
61461
+ // Pixel_EventsContext('AddToCart', {
61462
+ // content_ids: [item.productid],
61463
+ // content_name: item.name_en + ' - ' + item.name_ar,
61464
+ // content_sku: item.sku,
61465
+ // content_type: 'product',
61466
+ // currency: item.currencyname_en,
61467
+ // value: item.defaultprice,
61468
+ // quantity: 1,
61469
+ // });
61470
+ AddtoCartContext(tempaddtocardpayloadobj);
61471
+ };
61421
61472
  return /*#__PURE__*/React__default["default"].createElement("div", {
61422
61473
  "class": langdetect == 'en' ? sectionproperties.card_marginLeft != 0 ? 'row m-0 w-100 pl-sm-2' : sectionproperties.card_marginRight != 0 ? 'row m-0 w-100 pr-sm-2' : 'row m-0 w-100' : langdetect == 'en' ? sectionproperties.card_marginRight != 0 ? 'row m-0 w-100 pr-sm-2' : sectionproperties.card_marginLeft != 0 ? 'row m-0 w-100 pl-sm-2' : 'row m-0 w-100' : 'row m-0 w-100',
61423
61474
  style: {
@@ -61595,9 +61646,9 @@ var Card23 = function Card23(props) {
61595
61646
  }, "/"), sectionproperties.prodsalePriceshow == 'Show' && item.hassale == 1 && /*#__PURE__*/React__default["default"].createElement("p", {
61596
61647
  "class": langdetect == 'en' ? "".concat(cardsstyles2.productSalePricestyles) + ' linethrough m-0 wordbreak d-flex mt-sm-auto mb-sm-auto text-right text-sm-left ' : "".concat(cardsstyles2.productSalePricestyles) + ' linethrough m-0 wordbreak d-flex mt-sm-auto mb-sm-auto text-left text-sm-right '
61597
61648
  }, langdetect == 'en' ? item.currencyname : '', " ", item.defaultprice, " ", langdetect == 'en' ? '' : item.currencyname)), /*#__PURE__*/React__default["default"].createElement("div", {
61598
- "class": "d-flex align-items-center m-0"
61649
+ "class": "d-flex align-items-center m-0 flex-column w-100"
61599
61650
  }, sectionproperties.cartBtnShow == 'Show' && /*#__PURE__*/React__default["default"].createElement("button", {
61600
- "class": "".concat(cardsstyles2.cart_btn) + ' allcentered ',
61651
+ "class": "".concat(cardsstyles2.cart_btn) + ' allcentered mt-3 ',
61601
61652
  onClick: function onClick() {
61602
61653
  setShowProductInfoModalContext(true);
61603
61654
  setProductIdProdutInfoModalContext(item.productid);
@@ -61628,7 +61679,17 @@ var Card23 = function Card23(props) {
61628
61679
  size: sectionproperties.cartBtn_iconFontSize
61629
61680
  })), /*#__PURE__*/React__default["default"].createElement("p", {
61630
61681
  "class": "m-0 p-0"
61631
- }, langdetect == 'en' ? sectionproperties.cartBtnContentenglish : sectionproperties.cartBtnContentarabic))))))));
61682
+ }, langdetect == 'en' ? sectionproperties.cartBtnContentenglish : sectionproperties.cartBtnContentarabic))), sectionproperties.showbuynowbtn == 'Show' && /*#__PURE__*/React__default["default"].createElement("button", {
61683
+ "class": "".concat(cardsstyles2.buynow) + ' allcentered mt-3 ',
61684
+ onClick: function onClick() {
61685
+ addtocartfunc('forcetocheckout');
61686
+ },
61687
+ disabled: AddtoCartMutationContext.isLoading == true ? true : false
61688
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
61689
+ "class": "d-flex align-items-center justify-content-center"
61690
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
61691
+ "class": "m-0 p-0"
61692
+ }, langdetect == 'en' ? 'Buy Now' : 'اشترى الان'))))))));
61632
61693
  };
61633
61694
 
61634
61695
  function ownKeys$w(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
package/dist/index.esm.js CHANGED
@@ -15171,6 +15171,7 @@ var CardsSection = function CardsSection(props) {
15171
15171
  _useState14 = _slicedToArray(_useState13, 2),
15172
15172
  perpageItems = _useState14[0],
15173
15173
  setperpageItems = _useState14[1];
15174
+ var AddtoCartMutationContext = props.actions.AddtoCartMutationContext;
15174
15175
  useEffect(function () {
15175
15176
  var productfilerobjtemp = ProductFilterObjContext;
15176
15177
  if (props.filterparamsprops != undefined) {
@@ -15466,6 +15467,7 @@ var CardsSection = function CardsSection(props) {
15466
15467
  cardobj.productcashbackvalue = arrayItem.productinfo.productcashbackvalue;
15467
15468
  cardobj.product_phonenumber = arrayItem.productinfo.product_phonenumber;
15468
15469
  cardobj.productcanrate = arrayItem.productinfo.productcanrate;
15470
+ cardobj.sku = arrayItem.productinfo.sku;
15469
15471
  if (langdetect == 'en') {
15470
15472
  cardobj.currencyname = fetchAuthorizationQueryContext === null || fetchAuthorizationQueryContext === void 0 ? void 0 : fetchAuthorizationQueryContext.data.data.currencyname_en;
15471
15473
  } else {
@@ -16028,7 +16030,8 @@ var CardsSection = function CardsSection(props) {
16028
16030
  sectionindexprops: index,
16029
16031
  sectionidprops: item.sectionid,
16030
16032
  actions: actions,
16031
- fontFamilyprops: sectionproperties.sectiontitlefontfamily == 'ASUL' ? 'ASUL' : ''
16033
+ fontFamilyprops: sectionproperties.sectiontitlefontfamily == 'ASUL' ? 'ASUL' : '',
16034
+ AddtoCartMutationContext: AddtoCartMutationContext
16032
16035
  }));
16033
16036
  } else if (sectionproperties.overallnumberofcards != 0) {
16034
16037
  if (cardinfoindex < sectionproperties.overallnumberofcards) {
@@ -16042,7 +16045,8 @@ var CardsSection = function CardsSection(props) {
16042
16045
  sectionindexprops: index,
16043
16046
  sectionidprops: item.sectionid,
16044
16047
  actions: actions,
16045
- fontFamilyprops: sectionproperties.sectiontitlefontfamily == 'ASUL' ? 'ASUL' : ''
16048
+ fontFamilyprops: sectionproperties.sectiontitlefontfamily == 'ASUL' ? 'ASUL' : '',
16049
+ AddtoCartMutationContext: AddtoCartMutationContext
16046
16050
  }));
16047
16051
  }
16048
16052
  }
@@ -16230,7 +16234,8 @@ var CardsSection = function CardsSection(props) {
16230
16234
  sectionidprops: item.sectionid,
16231
16235
  actions: actions,
16232
16236
  fontFamilyprops: sectionproperties.sectiontitlefontfamily == 'ASUL' ? 'ASUL' : '',
16233
- numberOfColsvertical: sectionproperties.numberOfColsvertical
16237
+ numberOfColsvertical: sectionproperties.numberOfColsvertical,
16238
+ AddtoCartMutationContext: AddtoCartMutationContext
16234
16239
  }));
16235
16240
  } else if (sectionproperties.overallnumberofcards != 0) {
16236
16241
  if (cardinfoindex < sectionproperties.overallnumberofcards) {
@@ -16246,7 +16251,8 @@ var CardsSection = function CardsSection(props) {
16246
16251
  sectionidprops: item.sectionid,
16247
16252
  actions: actions,
16248
16253
  fontFamilyprops: sectionproperties.sectiontitlefontfamily == 'ASUL' ? 'ASUL' : '',
16249
- numberOfColsvertical: sectionproperties.numberOfColsvertical
16254
+ numberOfColsvertical: sectionproperties.numberOfColsvertical,
16255
+ AddtoCartMutationContext: AddtoCartMutationContext
16250
16256
  }));
16251
16257
  }
16252
16258
  }
@@ -43767,7 +43773,7 @@ var Newsletterfooter = function Newsletterfooter(props) {
43767
43773
  onClick: function onClick() {
43768
43774
  routingcountext(StaticPagesLinksContext.Wishlist);
43769
43775
  }
43770
- }, langdetect == 'en' ? sectionproperties.wishlisttitle_en : sectionproperties.previousorders_titlear)), authdetailsContext.loggedin && /*#__PURE__*/React.createElement("div", {
43776
+ }, langdetect == 'en' ? sectionproperties.wishlisttitle_en : sectionproperties.wishlisttitle_ar)), authdetailsContext.loggedin && /*#__PURE__*/React.createElement("div", {
43771
43777
  "class": "col-lg-12 col-md-12 col-sm-12 p-0 d-flex mb-1"
43772
43778
  }, /*#__PURE__*/React.createElement("p", {
43773
43779
  "class": "".concat(footerStyles.subPages) + ' wordbreak m-0 p-0 ',
@@ -61063,6 +61069,7 @@ var Card23 = function Card23(props) {
61063
61069
  _useState4 = _slicedToArray(_useState3, 2),
61064
61070
  item = _useState4[0],
61065
61071
  setitem = _useState4[1];
61072
+ var AddtoCartMutationContext = props.AddtoCartMutationContext;
61066
61073
  var _useState5 = useState(''),
61067
61074
  _useState6 = _slicedToArray(_useState5, 2),
61068
61075
  secondimage = _useState6[0],
@@ -61184,7 +61191,7 @@ var Card23 = function Card23(props) {
61184
61191
  }
61185
61192
  }),
61186
61193
  cart_btn: css({
61187
- width: sectionproperties.cartBtnWidth + 'px',
61194
+ width: sectionproperties.cartBtnWidth + '%',
61188
61195
  height: sectionproperties.cartBtnHeight + 'px',
61189
61196
  background: sectionproperties.cartbtn_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.cartBtnbgColor,
61190
61197
  borderRadius: sectionproperties.cart_btn_borderBottomLeftRadius + 'px',
@@ -61199,6 +61206,23 @@ var Card23 = function Card23(props) {
61199
61206
  borderColor: sectionproperties.cartBtnTextcoloronhover
61200
61207
  }
61201
61208
  }),
61209
+ buynow: css({
61210
+ width: sectionproperties.cartBtnWidth + '%',
61211
+ height: sectionproperties.cartBtnHeight + 'px',
61212
+ background: sectionproperties.cartBtnTextcolor,
61213
+ borderRadius: sectionproperties.cart_btn_borderBottomLeftRadius + 'px',
61214
+ color: 'white',
61215
+ fontSize: sectionproperties.cartBtnTextfontsize + 'px',
61216
+ fontWeight: sectionproperties.cartBtnTextfontweight,
61217
+ // border: sectionproperties.cartbtnborderwidth + 'px solid ' + sectionproperties.cartbtnbordercolor,
61218
+ transition: '.3s',
61219
+ ':hover': {
61220
+ background: sectionproperties.cartBtnTextcoloronhover,
61221
+ color: 'white'
61222
+ // borderColor: sectionproperties.cartBtnTextcoloronhover,
61223
+ }
61224
+ }),
61225
+
61202
61226
  iconsContainer: css({
61203
61227
  display: 'flex',
61204
61228
  flexDirection: 'column',
@@ -61369,6 +61393,33 @@ var Card23 = function Card23(props) {
61369
61393
  "class": "m-0 p-0"
61370
61394
  }, langdetect == 'en' ? sectionproperties.outstock_contenten : sectionproperties.outstock_contentar)));
61371
61395
  };
61396
+ var _useState9 = useState(''),
61397
+ _useState10 = _slicedToArray(_useState9, 2),
61398
+ addtocardpayloadobj = _useState10[0];
61399
+ _useState10[1];
61400
+ var AddtoCartContext = props.actions.AddtoCartContext;
61401
+ var addtocartfunc = function addtocartfunc(forcetocheckout) {
61402
+ var forcetocheckoutvalue = forcetocheckout;
61403
+ var tempaddtocardpayloadobj = _objectSpread$x({}, addtocardpayloadobj);
61404
+ tempaddtocardpayloadobj.productid = item.productid;
61405
+ tempaddtocardpayloadobj.functype = 'add';
61406
+ tempaddtocardpayloadobj.item_type = 'product';
61407
+ tempaddtocardpayloadobj.quantity = 1;
61408
+ if (forcetocheckoutvalue != undefined) {
61409
+ tempaddtocardpayloadobj.forcetocheckoutvalue = forcetocheckoutvalue;
61410
+ }
61411
+
61412
+ // Pixel_EventsContext('AddToCart', {
61413
+ // content_ids: [item.productid],
61414
+ // content_name: item.name_en + ' - ' + item.name_ar,
61415
+ // content_sku: item.sku,
61416
+ // content_type: 'product',
61417
+ // currency: item.currencyname_en,
61418
+ // value: item.defaultprice,
61419
+ // quantity: 1,
61420
+ // });
61421
+ AddtoCartContext(tempaddtocardpayloadobj);
61422
+ };
61372
61423
  return /*#__PURE__*/React.createElement("div", {
61373
61424
  "class": langdetect == 'en' ? sectionproperties.card_marginLeft != 0 ? 'row m-0 w-100 pl-sm-2' : sectionproperties.card_marginRight != 0 ? 'row m-0 w-100 pr-sm-2' : 'row m-0 w-100' : langdetect == 'en' ? sectionproperties.card_marginRight != 0 ? 'row m-0 w-100 pr-sm-2' : sectionproperties.card_marginLeft != 0 ? 'row m-0 w-100 pl-sm-2' : 'row m-0 w-100' : 'row m-0 w-100',
61374
61425
  style: {
@@ -61546,9 +61597,9 @@ var Card23 = function Card23(props) {
61546
61597
  }, "/"), sectionproperties.prodsalePriceshow == 'Show' && item.hassale == 1 && /*#__PURE__*/React.createElement("p", {
61547
61598
  "class": langdetect == 'en' ? "".concat(cardsstyles2.productSalePricestyles) + ' linethrough m-0 wordbreak d-flex mt-sm-auto mb-sm-auto text-right text-sm-left ' : "".concat(cardsstyles2.productSalePricestyles) + ' linethrough m-0 wordbreak d-flex mt-sm-auto mb-sm-auto text-left text-sm-right '
61548
61599
  }, langdetect == 'en' ? item.currencyname : '', " ", item.defaultprice, " ", langdetect == 'en' ? '' : item.currencyname)), /*#__PURE__*/React.createElement("div", {
61549
- "class": "d-flex align-items-center m-0"
61600
+ "class": "d-flex align-items-center m-0 flex-column w-100"
61550
61601
  }, sectionproperties.cartBtnShow == 'Show' && /*#__PURE__*/React.createElement("button", {
61551
- "class": "".concat(cardsstyles2.cart_btn) + ' allcentered ',
61602
+ "class": "".concat(cardsstyles2.cart_btn) + ' allcentered mt-3 ',
61552
61603
  onClick: function onClick() {
61553
61604
  setShowProductInfoModalContext(true);
61554
61605
  setProductIdProdutInfoModalContext(item.productid);
@@ -61579,7 +61630,17 @@ var Card23 = function Card23(props) {
61579
61630
  size: sectionproperties.cartBtn_iconFontSize
61580
61631
  })), /*#__PURE__*/React.createElement("p", {
61581
61632
  "class": "m-0 p-0"
61582
- }, langdetect == 'en' ? sectionproperties.cartBtnContentenglish : sectionproperties.cartBtnContentarabic))))))));
61633
+ }, langdetect == 'en' ? sectionproperties.cartBtnContentenglish : sectionproperties.cartBtnContentarabic))), sectionproperties.showbuynowbtn == 'Show' && /*#__PURE__*/React.createElement("button", {
61634
+ "class": "".concat(cardsstyles2.buynow) + ' allcentered mt-3 ',
61635
+ onClick: function onClick() {
61636
+ addtocartfunc('forcetocheckout');
61637
+ },
61638
+ disabled: AddtoCartMutationContext.isLoading == true ? true : false
61639
+ }, /*#__PURE__*/React.createElement("div", {
61640
+ "class": "d-flex align-items-center justify-content-center"
61641
+ }, /*#__PURE__*/React.createElement("p", {
61642
+ "class": "m-0 p-0"
61643
+ }, langdetect == 'en' ? 'Buy Now' : 'اشترى الان'))))))));
61583
61644
  };
61584
61645
 
61585
61646
  function ownKeys$w(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
package/dist/index.umd.js CHANGED
@@ -15052,6 +15052,7 @@
15052
15052
  _useState14 = _slicedToArray__default["default"](_useState13, 2),
15053
15053
  perpageItems = _useState14[0],
15054
15054
  setperpageItems = _useState14[1];
15055
+ var AddtoCartMutationContext = props.actions.AddtoCartMutationContext;
15055
15056
  React.useEffect(function () {
15056
15057
  var productfilerobjtemp = ProductFilterObjContext;
15057
15058
  if (props.filterparamsprops != undefined) {
@@ -15347,6 +15348,7 @@
15347
15348
  cardobj.productcashbackvalue = arrayItem.productinfo.productcashbackvalue;
15348
15349
  cardobj.product_phonenumber = arrayItem.productinfo.product_phonenumber;
15349
15350
  cardobj.productcanrate = arrayItem.productinfo.productcanrate;
15351
+ cardobj.sku = arrayItem.productinfo.sku;
15350
15352
  if (langdetect == 'en') {
15351
15353
  cardobj.currencyname = fetchAuthorizationQueryContext === null || fetchAuthorizationQueryContext === void 0 ? void 0 : fetchAuthorizationQueryContext.data.data.currencyname_en;
15352
15354
  } else {
@@ -15909,7 +15911,8 @@
15909
15911
  sectionindexprops: index,
15910
15912
  sectionidprops: item.sectionid,
15911
15913
  actions: actions,
15912
- fontFamilyprops: sectionproperties.sectiontitlefontfamily == 'ASUL' ? 'ASUL' : ''
15914
+ fontFamilyprops: sectionproperties.sectiontitlefontfamily == 'ASUL' ? 'ASUL' : '',
15915
+ AddtoCartMutationContext: AddtoCartMutationContext
15913
15916
  }));
15914
15917
  } else if (sectionproperties.overallnumberofcards != 0) {
15915
15918
  if (cardinfoindex < sectionproperties.overallnumberofcards) {
@@ -15923,7 +15926,8 @@
15923
15926
  sectionindexprops: index,
15924
15927
  sectionidprops: item.sectionid,
15925
15928
  actions: actions,
15926
- fontFamilyprops: sectionproperties.sectiontitlefontfamily == 'ASUL' ? 'ASUL' : ''
15929
+ fontFamilyprops: sectionproperties.sectiontitlefontfamily == 'ASUL' ? 'ASUL' : '',
15930
+ AddtoCartMutationContext: AddtoCartMutationContext
15927
15931
  }));
15928
15932
  }
15929
15933
  }
@@ -16111,7 +16115,8 @@
16111
16115
  sectionidprops: item.sectionid,
16112
16116
  actions: actions,
16113
16117
  fontFamilyprops: sectionproperties.sectiontitlefontfamily == 'ASUL' ? 'ASUL' : '',
16114
- numberOfColsvertical: sectionproperties.numberOfColsvertical
16118
+ numberOfColsvertical: sectionproperties.numberOfColsvertical,
16119
+ AddtoCartMutationContext: AddtoCartMutationContext
16115
16120
  }));
16116
16121
  } else if (sectionproperties.overallnumberofcards != 0) {
16117
16122
  if (cardinfoindex < sectionproperties.overallnumberofcards) {
@@ -16127,7 +16132,8 @@
16127
16132
  sectionidprops: item.sectionid,
16128
16133
  actions: actions,
16129
16134
  fontFamilyprops: sectionproperties.sectiontitlefontfamily == 'ASUL' ? 'ASUL' : '',
16130
- numberOfColsvertical: sectionproperties.numberOfColsvertical
16135
+ numberOfColsvertical: sectionproperties.numberOfColsvertical,
16136
+ AddtoCartMutationContext: AddtoCartMutationContext
16131
16137
  }));
16132
16138
  }
16133
16139
  }
@@ -43648,7 +43654,7 @@
43648
43654
  onClick: function onClick() {
43649
43655
  routingcountext(StaticPagesLinksContext.Wishlist);
43650
43656
  }
43651
- }, langdetect == 'en' ? sectionproperties.wishlisttitle_en : sectionproperties.previousorders_titlear)), authdetailsContext.loggedin && /*#__PURE__*/React__default["default"].createElement("div", {
43657
+ }, langdetect == 'en' ? sectionproperties.wishlisttitle_en : sectionproperties.wishlisttitle_ar)), authdetailsContext.loggedin && /*#__PURE__*/React__default["default"].createElement("div", {
43652
43658
  "class": "col-lg-12 col-md-12 col-sm-12 p-0 d-flex mb-1"
43653
43659
  }, /*#__PURE__*/React__default["default"].createElement("p", {
43654
43660
  "class": "".concat(footerStyles.subPages) + ' wordbreak m-0 p-0 ',
@@ -60944,6 +60950,7 @@
60944
60950
  _useState4 = _slicedToArray__default["default"](_useState3, 2),
60945
60951
  item = _useState4[0],
60946
60952
  setitem = _useState4[1];
60953
+ var AddtoCartMutationContext = props.AddtoCartMutationContext;
60947
60954
  var _useState5 = React.useState(''),
60948
60955
  _useState6 = _slicedToArray__default["default"](_useState5, 2),
60949
60956
  secondimage = _useState6[0],
@@ -61065,7 +61072,7 @@
61065
61072
  }
61066
61073
  }),
61067
61074
  cart_btn: glamor.css({
61068
- width: sectionproperties.cartBtnWidth + 'px',
61075
+ width: sectionproperties.cartBtnWidth + '%',
61069
61076
  height: sectionproperties.cartBtnHeight + 'px',
61070
61077
  background: sectionproperties.cartbtn_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.cartBtnbgColor,
61071
61078
  borderRadius: sectionproperties.cart_btn_borderBottomLeftRadius + 'px',
@@ -61080,6 +61087,23 @@
61080
61087
  borderColor: sectionproperties.cartBtnTextcoloronhover
61081
61088
  }
61082
61089
  }),
61090
+ buynow: glamor.css({
61091
+ width: sectionproperties.cartBtnWidth + '%',
61092
+ height: sectionproperties.cartBtnHeight + 'px',
61093
+ background: sectionproperties.cartBtnTextcolor,
61094
+ borderRadius: sectionproperties.cart_btn_borderBottomLeftRadius + 'px',
61095
+ color: 'white',
61096
+ fontSize: sectionproperties.cartBtnTextfontsize + 'px',
61097
+ fontWeight: sectionproperties.cartBtnTextfontweight,
61098
+ // border: sectionproperties.cartbtnborderwidth + 'px solid ' + sectionproperties.cartbtnbordercolor,
61099
+ transition: '.3s',
61100
+ ':hover': {
61101
+ background: sectionproperties.cartBtnTextcoloronhover,
61102
+ color: 'white'
61103
+ // borderColor: sectionproperties.cartBtnTextcoloronhover,
61104
+ }
61105
+ }),
61106
+
61083
61107
  iconsContainer: glamor.css({
61084
61108
  display: 'flex',
61085
61109
  flexDirection: 'column',
@@ -61250,6 +61274,33 @@
61250
61274
  "class": "m-0 p-0"
61251
61275
  }, langdetect == 'en' ? sectionproperties.outstock_contenten : sectionproperties.outstock_contentar)));
61252
61276
  };
61277
+ var _useState9 = React.useState(''),
61278
+ _useState10 = _slicedToArray__default["default"](_useState9, 2),
61279
+ addtocardpayloadobj = _useState10[0];
61280
+ _useState10[1];
61281
+ var AddtoCartContext = props.actions.AddtoCartContext;
61282
+ var addtocartfunc = function addtocartfunc(forcetocheckout) {
61283
+ var forcetocheckoutvalue = forcetocheckout;
61284
+ var tempaddtocardpayloadobj = _objectSpread$x({}, addtocardpayloadobj);
61285
+ tempaddtocardpayloadobj.productid = item.productid;
61286
+ tempaddtocardpayloadobj.functype = 'add';
61287
+ tempaddtocardpayloadobj.item_type = 'product';
61288
+ tempaddtocardpayloadobj.quantity = 1;
61289
+ if (forcetocheckoutvalue != undefined) {
61290
+ tempaddtocardpayloadobj.forcetocheckoutvalue = forcetocheckoutvalue;
61291
+ }
61292
+
61293
+ // Pixel_EventsContext('AddToCart', {
61294
+ // content_ids: [item.productid],
61295
+ // content_name: item.name_en + ' - ' + item.name_ar,
61296
+ // content_sku: item.sku,
61297
+ // content_type: 'product',
61298
+ // currency: item.currencyname_en,
61299
+ // value: item.defaultprice,
61300
+ // quantity: 1,
61301
+ // });
61302
+ AddtoCartContext(tempaddtocardpayloadobj);
61303
+ };
61253
61304
  return /*#__PURE__*/React__default["default"].createElement("div", {
61254
61305
  "class": langdetect == 'en' ? sectionproperties.card_marginLeft != 0 ? 'row m-0 w-100 pl-sm-2' : sectionproperties.card_marginRight != 0 ? 'row m-0 w-100 pr-sm-2' : 'row m-0 w-100' : langdetect == 'en' ? sectionproperties.card_marginRight != 0 ? 'row m-0 w-100 pr-sm-2' : sectionproperties.card_marginLeft != 0 ? 'row m-0 w-100 pl-sm-2' : 'row m-0 w-100' : 'row m-0 w-100',
61255
61306
  style: {
@@ -61427,9 +61478,9 @@
61427
61478
  }, "/"), sectionproperties.prodsalePriceshow == 'Show' && item.hassale == 1 && /*#__PURE__*/React__default["default"].createElement("p", {
61428
61479
  "class": langdetect == 'en' ? "".concat(cardsstyles2.productSalePricestyles) + ' linethrough m-0 wordbreak d-flex mt-sm-auto mb-sm-auto text-right text-sm-left ' : "".concat(cardsstyles2.productSalePricestyles) + ' linethrough m-0 wordbreak d-flex mt-sm-auto mb-sm-auto text-left text-sm-right '
61429
61480
  }, langdetect == 'en' ? item.currencyname : '', " ", item.defaultprice, " ", langdetect == 'en' ? '' : item.currencyname)), /*#__PURE__*/React__default["default"].createElement("div", {
61430
- "class": "d-flex align-items-center m-0"
61481
+ "class": "d-flex align-items-center m-0 flex-column w-100"
61431
61482
  }, sectionproperties.cartBtnShow == 'Show' && /*#__PURE__*/React__default["default"].createElement("button", {
61432
- "class": "".concat(cardsstyles2.cart_btn) + ' allcentered ',
61483
+ "class": "".concat(cardsstyles2.cart_btn) + ' allcentered mt-3 ',
61433
61484
  onClick: function onClick() {
61434
61485
  setShowProductInfoModalContext(true);
61435
61486
  setProductIdProdutInfoModalContext(item.productid);
@@ -61460,7 +61511,17 @@
61460
61511
  size: sectionproperties.cartBtn_iconFontSize
61461
61512
  })), /*#__PURE__*/React__default["default"].createElement("p", {
61462
61513
  "class": "m-0 p-0"
61463
- }, langdetect == 'en' ? sectionproperties.cartBtnContentenglish : sectionproperties.cartBtnContentarabic))))))));
61514
+ }, langdetect == 'en' ? sectionproperties.cartBtnContentenglish : sectionproperties.cartBtnContentarabic))), sectionproperties.showbuynowbtn == 'Show' && /*#__PURE__*/React__default["default"].createElement("button", {
61515
+ "class": "".concat(cardsstyles2.buynow) + ' allcentered mt-3 ',
61516
+ onClick: function onClick() {
61517
+ addtocartfunc('forcetocheckout');
61518
+ },
61519
+ disabled: AddtoCartMutationContext.isLoading == true ? true : false
61520
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
61521
+ "class": "d-flex align-items-center justify-content-center"
61522
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
61523
+ "class": "m-0 p-0"
61524
+ }, langdetect == 'en' ? 'Buy Now' : 'اشترى الان'))))))));
61464
61525
  };
61465
61526
 
61466
61527
  function ownKeys$w(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tabexseriescomponents",
3
- "version": "0.0.408",
3
+ "version": "0.0.409",
4
4
  "description": "your description",
5
5
  "main": "dist/index.cjs.js",
6
6
  "scripts": {