tabexseriescomponents 0.2.1124 → 0.2.1126

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
@@ -6520,7 +6520,7 @@ var Article_itemtype = function Article_itemtype(props) {
6520
6520
  function ownKeys$2B(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; }
6521
6521
  function _objectSpread$2B(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2B(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2B(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
6522
6522
  var Productinfo = function Productinfo(props) {
6523
- var _css, _fetchProductInfoQuer83, _ref, _fetchProductInfoQuer84, _ref2, _fetchProductInfoQuer85, _ref3, _authdetailsContext$i17, _authdetailsContext$i18, _authdetailsContext$i19, _authdetailsContext$i20, _authdetailsContext$i21, _fetchProductInfoQuer86, _fetchProductInfoQuer87, _fetchProductInfoQuer88, _returnpolicyobj5, _returnpolicyobj6, _returnpolicyobj7, _returnpolicyobj8, _fetchProductInfoQuer89, _fetchProductInfoQuer90, _returnpolicyobj9, _returnpolicyobj0, _returnpolicyobj1, _returnpolicyobj10, _fetchProductInfoQuer91, _fetchProductInfoQuer92, _returnpolicyobj11, _returnpolicyobj12, _returnpolicyobj13, _returnpolicyobj14, _authdetailsContext$i22, _fetchProductInfoQuer93, _fetchProductInfoQuer94, _fetchProductInfoQuer95, _fetchProductInfoQuer96, _returnpolicyobj15, _returnpolicyobj16, _returnpolicyobj17, _returnpolicyobj18, _authdetailsContext$i23, _fetchProductInfoQuer97, _fetchProductInfoQuer98, _fetchProductInfoQuer99, _fetchProductInfoQuer100;
6523
+ var _css, _fetchProductInfoQuer83, _ref, _fetchProductInfoQuer84, _ref2, _fetchProductInfoQuer85, _ref3, _authdetailsContext$i18, _authdetailsContext$i19, _authdetailsContext$i20, _authdetailsContext$i21, _authdetailsContext$i22, _fetchProductInfoQuer86, _fetchProductInfoQuer87, _fetchProductInfoQuer88, _returnpolicyobj5, _returnpolicyobj6, _returnpolicyobj7, _returnpolicyobj8, _fetchProductInfoQuer89, _fetchProductInfoQuer90, _returnpolicyobj9, _returnpolicyobj0, _returnpolicyobj1, _returnpolicyobj10, _fetchProductInfoQuer91, _fetchProductInfoQuer92, _returnpolicyobj11, _returnpolicyobj12, _returnpolicyobj13, _returnpolicyobj14, _authdetailsContext$i23, _fetchProductInfoQuer93, _fetchProductInfoQuer94, _fetchProductInfoQuer95, _fetchProductInfoQuer96, _returnpolicyobj15, _returnpolicyobj16, _returnpolicyobj17, _returnpolicyobj18, _authdetailsContext$i24, _fetchProductInfoQuer97, _fetchProductInfoQuer98, _fetchProductInfoQuer99, _fetchProductInfoQuer100;
6524
6524
  var _useState = React.useState({}),
6525
6525
  _useState2 = _slicedToArray__default["default"](_useState, 2),
6526
6526
  ProductInfoObj = _useState2[0],
@@ -7599,6 +7599,9 @@ var Productinfo = function Productinfo(props) {
7599
7599
  } else {
7600
7600
  setisoutofstock(false);
7601
7601
  }
7602
+ var url = new URL(window.location.href);
7603
+ url.searchParams.set('variant', variantobj.variantid);
7604
+ window.history.replaceState(null, '', url.toString());
7602
7605
  setvariantsku(variantobj === null || variantobj === void 0 ? void 0 : variantobj.sku);
7603
7606
  setcurrentshowingimageindex(variantimageindex);
7604
7607
  setaddtocardpayloadobj(_objectSpread$2B({}, tempaddtocardpayloadobj));
@@ -7872,6 +7875,42 @@ var Productinfo = function Productinfo(props) {
7872
7875
  }
7873
7876
  }
7874
7877
  };
7878
+ var _useState55 = React.useState(false),
7879
+ _useState56 = _slicedToArray__default["default"](_useState55, 2),
7880
+ isVarianturlLoaded = _useState56[0],
7881
+ setisVarianturlLoaded = _useState56[1];
7882
+ React.useEffect(function () {
7883
+ var _authdetailsContext$i10;
7884
+ if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i10 = authdetailsContext.instinfo) === null || _authdetailsContext$i10 === void 0 ? void 0 : _authdetailsContext$i10.contactinfo.instid) == '68f918a4ccb85') {
7885
+ var params = new URLSearchParams(window.location.search);
7886
+ var variantId = params.get('variant');
7887
+ if (isVarianturlLoaded == false) {
7888
+ if (variantId) {
7889
+ if (ProductInfoObj != undefined && ProductInfoObj != null && Object.keys(ProductInfoObj).length != 0) {
7890
+ var _productarr$data$prod3;
7891
+ var productarr = ProductInfoObj;
7892
+ (_productarr$data$prod3 = productarr.data.productinfo) === null || _productarr$data$prod3 === void 0 || _productarr$data$prod3.variants.forEach(function (ProductVariantItem, ProductVariantIndex) {
7893
+ if (ProductVariantItem.variantid == variantId) {
7894
+ ProductVariantItem.variantoptions.forEach(function (varinatoptionitem, variantoptionindex) {
7895
+ productarr.data.productinfo.productoptions.forEach(function (productoptionsitem, productoptionsindex) {
7896
+ var _productoptionsitem$o;
7897
+ productoptionsitem === null || productoptionsitem === void 0 || (_productoptionsitem$o = productoptionsitem.optionvalues) === null || _productoptionsitem$o === void 0 || _productoptionsitem$o.forEach(function (optionvaluesitem, optionvaluesindex) {
7898
+ if (varinatoptionitem.valueid == optionvaluesitem.valueid) {
7899
+ selectproductoptionvalue(productoptionsindex, optionvaluesitem, optionvaluesindex);
7900
+ }
7901
+ });
7902
+ });
7903
+ });
7904
+ }
7905
+ });
7906
+ setisVarianturlLoaded(true);
7907
+ }
7908
+ } else {
7909
+ setisVarianturlLoaded(true);
7910
+ }
7911
+ }
7912
+ }
7913
+ }, [ProductInfoObj]);
7875
7914
  // const DescriptionContent = () => {
7876
7915
  // return (
7877
7916
  // <div class="col-lg-12 pl-5 pr-5 p-md-0 w-100">
@@ -8637,7 +8676,7 @@ var Productinfo = function Productinfo(props) {
8637
8676
  })));
8638
8677
  };
8639
8678
  var StoreInfo = function StoreInfo(position) {
8640
- var _fetchProductInfoQuer77, _authdetailsContext$i11, _returnpolicyobj, _returnpolicyobj2, _returnpolicyobj3, _returnpolicyobj4, _authdetailsContext$i12, _authdetailsContext$i14;
8679
+ var _fetchProductInfoQuer77, _authdetailsContext$i12, _returnpolicyobj, _returnpolicyobj2, _returnpolicyobj3, _returnpolicyobj4, _authdetailsContext$i13, _authdetailsContext$i15;
8641
8680
  return /*#__PURE__*/React__default["default"].createElement("div", {
8642
8681
  "class": sectionproperties.storeinformationcontainerborderwidth != 0 ? 'row m-0 w-100 p-3' : 'row m-0 w-100',
8643
8682
  style: {
@@ -8716,8 +8755,8 @@ var Productinfo = function Productinfo(props) {
8716
8755
  }, authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.CuContactphonenumber))), sectionproperties.showfooteremail == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
8717
8756
  className: "".concat(productinfo_cssstyles.storeinfobtn, " ").concat(productinfo_cssstyles.storeinfocontainer) + ' mb-t col-lg-12 p-0 d-flex align-items-center cursor-pointer ',
8718
8757
  onClick: function onClick() {
8719
- var _authdetailsContext$i10;
8720
- window.open('mailto:' + (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i10 = authdetailsContext.instinfo) === null || _authdetailsContext$i10 === void 0 || (_authdetailsContext$i10 = _authdetailsContext$i10.contactinfo) === null || _authdetailsContext$i10 === void 0 ? void 0 : _authdetailsContext$i10.email), '_self');
8758
+ var _authdetailsContext$i11;
8759
+ window.open('mailto:' + (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i11 = authdetailsContext.instinfo) === null || _authdetailsContext$i11 === void 0 || (_authdetailsContext$i11 = _authdetailsContext$i11.contactinfo) === null || _authdetailsContext$i11 === void 0 ? void 0 : _authdetailsContext$i11.email), '_self');
8721
8760
  }
8722
8761
  }, /*#__PURE__*/React__default["default"].createElement("div", {
8723
8762
  "class": productinfo_cssstyles.iconContainer + ' iconContainer '
@@ -8737,7 +8776,7 @@ var Productinfo = function Productinfo(props) {
8737
8776
  style: {
8738
8777
  textAlign: langdetect == 'en' ? 'left' : 'right'
8739
8778
  }
8740
- }, authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i11 = authdetailsContext.instinfo) === null || _authdetailsContext$i11 === void 0 || (_authdetailsContext$i11 = _authdetailsContext$i11.contactinfo) === null || _authdetailsContext$i11 === void 0 ? void 0 : _authdetailsContext$i11.email))), /*#__PURE__*/React__default["default"].createElement("div", {
8779
+ }, authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i12 = authdetailsContext.instinfo) === null || _authdetailsContext$i12 === void 0 || (_authdetailsContext$i12 = _authdetailsContext$i12.contactinfo) === null || _authdetailsContext$i12 === void 0 ? void 0 : _authdetailsContext$i12.email))), /*#__PURE__*/React__default["default"].createElement("div", {
8741
8780
  "class": "col-lg-12 my-2",
8742
8781
  style: {
8743
8782
  display: sectionproperties.showfirstpolicy_storeinfo == 'Hide' && sectionproperties.showsecondpolicy_storeinfo == 'Hide' ? 'none' : 'block'
@@ -8789,25 +8828,25 @@ var Productinfo = function Productinfo(props) {
8789
8828
  }
8790
8829
  }, /*#__PURE__*/React__default["default"].createElement("p", {
8791
8830
  "class": "m-0 p-0"
8792
- }, langdetect == 'en' ? sectionproperties.phonetitle_en : sectionproperties.phonetitle_ar))), sectionproperties.showfooteremail == 'Show' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i12 = authdetailsContext.instinfo) === null || _authdetailsContext$i12 === void 0 || (_authdetailsContext$i12 = _authdetailsContext$i12.contactinfo) === null || _authdetailsContext$i12 === void 0 ? void 0 : _authdetailsContext$i12.email) != null && /*#__PURE__*/React__default["default"].createElement("div", {
8831
+ }, langdetect == 'en' ? sectionproperties.phonetitle_en : sectionproperties.phonetitle_ar))), sectionproperties.showfooteremail == 'Show' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i13 = authdetailsContext.instinfo) === null || _authdetailsContext$i13 === void 0 || (_authdetailsContext$i13 = _authdetailsContext$i13.contactinfo) === null || _authdetailsContext$i13 === void 0 ? void 0 : _authdetailsContext$i13.email) != null && /*#__PURE__*/React__default["default"].createElement("div", {
8793
8832
  "class": position == 'belowinfo' ? 'col-lg-12 allcentered mb-2 p-0' : 'col-lg-12 allcentered mb-2 p-sm-0'
8794
8833
  }, /*#__PURE__*/React__default["default"].createElement("button", {
8795
8834
  "class": productinfo_cssstyles.storeinfobtn + ' allcentered ',
8796
8835
  onClick: function onClick() {
8797
- var _authdetailsContext$i13;
8798
- window.open('mailto:' + (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i13 = authdetailsContext.instinfo) === null || _authdetailsContext$i13 === void 0 || (_authdetailsContext$i13 = _authdetailsContext$i13.contactinfo) === null || _authdetailsContext$i13 === void 0 ? void 0 : _authdetailsContext$i13.email), '_self');
8836
+ var _authdetailsContext$i14;
8837
+ window.open('mailto:' + (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i14 = authdetailsContext.instinfo) === null || _authdetailsContext$i14 === void 0 || (_authdetailsContext$i14 = _authdetailsContext$i14.contactinfo) === null || _authdetailsContext$i14 === void 0 ? void 0 : _authdetailsContext$i14.email), '_self');
8799
8838
  }
8800
8839
  }, /*#__PURE__*/React__default["default"].createElement("p", {
8801
8840
  "class": "m-0 p-0"
8802
- }, langdetect == 'en' ? sectionproperties.emailtitle_en : sectionproperties.emailtitle_ar))), sectionproperties.showwhatsapp == 'Show' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i14 = authdetailsContext.instinfo) === null || _authdetailsContext$i14 === void 0 ? void 0 : _authdetailsContext$i14.whatsappnumber) != null && /*#__PURE__*/React__default["default"].createElement("div", {
8841
+ }, langdetect == 'en' ? sectionproperties.emailtitle_en : sectionproperties.emailtitle_ar))), sectionproperties.showwhatsapp == 'Show' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i15 = authdetailsContext.instinfo) === null || _authdetailsContext$i15 === void 0 ? void 0 : _authdetailsContext$i15.whatsappnumber) != null && /*#__PURE__*/React__default["default"].createElement("div", {
8803
8842
  "class": position == 'belowinfo' ? 'col-lg-12 allcentered mb-2 p-0' : 'col-lg-12 allcentered mb-2 p-sm-0'
8804
8843
  }, /*#__PURE__*/React__default["default"].createElement("button", {
8805
8844
  "class": productinfo_cssstyles.storeinfobtn + ' allcentered ',
8806
8845
  onClick: function onClick() {
8807
- var _authdetailsContext$i15;
8808
- if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i15 = authdetailsContext.instinfo) === null || _authdetailsContext$i15 === void 0 ? void 0 : _authdetailsContext$i15.whatsappnumber) != null) {
8809
- var _authdetailsContext$i16;
8810
- window.open('https://api.whatsapp.com/send?phone=' + (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i16 = authdetailsContext.instinfo) === null || _authdetailsContext$i16 === void 0 ? void 0 : _authdetailsContext$i16.whatsappnumber), '_blank');
8846
+ var _authdetailsContext$i16;
8847
+ if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i16 = authdetailsContext.instinfo) === null || _authdetailsContext$i16 === void 0 ? void 0 : _authdetailsContext$i16.whatsappnumber) != null) {
8848
+ var _authdetailsContext$i17;
8849
+ window.open('https://api.whatsapp.com/send?phone=' + (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i17 = authdetailsContext.instinfo) === null || _authdetailsContext$i17 === void 0 ? void 0 : _authdetailsContext$i17.whatsappnumber), '_blank');
8811
8850
  }
8812
8851
  }
8813
8852
  }, /*#__PURE__*/React__default["default"].createElement("p", {
@@ -8915,7 +8954,7 @@ var Productinfo = function Productinfo(props) {
8915
8954
  lang: lang,
8916
8955
  srcfromprops: props.srcfromprops
8917
8956
  }, _defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_ref3, "returnpolicyobj", returnpolicyobj), "productinfo_cssstyles", productinfo_cssstyles), "addtocartfunc", addtocartfunc), "selectproductoptionvalue", selectproductoptionvalue), "clearchoosenvaluesbutkeepcurrentvalue", clearchoosenvaluesbutkeepcurrentvalue), "productimagesarray", productimagesarray), "fetchProductInfoQueryContext", fetchProductInfoQueryContext), "sectionproperties", sectionproperties), "addtocardpayloadobj", addtocardpayloadobj), "ProductInfoObj", ProductInfoObj), _defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_ref3, "currentshowingimageindex", currentshowingimageindex), "setcurrentshowingimageindex", setcurrentshowingimageindex), "setaddtocardpayloadobj", setaddtocardpayloadobj), "routingcountext", routingcountext), "AddtoCartMutationContext", AddtoCartMutationContext), "authdetailsContext", authdetailsContext), "addtofavoritescontext", addtofavoritescontext), "StaticPagesLinksContext", StaticPagesLinksContext), "variantindexcompleted", variantindexcompleted), "GeneralAPIMutationContext", GeneralAPIMutationContext), _defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_ref3, "NotificationManager", NotificationManager), "getprice_discountpriceprops", getprice_discountpriceprops), "quantityconditionfoundobjprops", quantityconditionfoundobj), "relatedproducts", relatedproducts), "getQuantityCondition", getQuantityCondition), "StoreInfoprops", StoreInfo), "templatepropcontext", templatepropcontext), "ikimagecredcontext", ikimagecredcontext), "sizeguideimage", sizeguideimage), "setopensizeguidemodal", setopensizeguidemodal), _defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_ref3, "isOptionInStock", isOptionInStock), "addtocartfunc_extras", addtocartfunc_extras), "productpdfsarray", productpdfsarray))
8918
- }), props.srcfromprops != 'templatedraftrouter' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i17 = authdetailsContext.instinfo) === null || _authdetailsContext$i17 === void 0 ? void 0 : _authdetailsContext$i17.contactinfo.instid) != '6852e5ed44e14' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i18 = authdetailsContext.instinfo) === null || _authdetailsContext$i18 === void 0 ? void 0 : _authdetailsContext$i18.contactinfo.instid) != '68a9e83c05b75' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i19 = authdetailsContext.instinfo) === null || _authdetailsContext$i19 === void 0 ? void 0 : _authdetailsContext$i19.contactinfo.instid) != '68c27b4570751' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i20 = authdetailsContext.instinfo) === null || _authdetailsContext$i20 === void 0 ? void 0 : _authdetailsContext$i20.contactinfo.instid) != '68e4efe8cb18e' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i21 = authdetailsContext.instinfo) === null || _authdetailsContext$i21 === void 0 ? void 0 : _authdetailsContext$i21.contactinfo.instid) != '693ae1f70d9a4' && /*#__PURE__*/React__default["default"].createElement("div", {
8957
+ }), props.srcfromprops != 'templatedraftrouter' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i18 = authdetailsContext.instinfo) === null || _authdetailsContext$i18 === void 0 ? void 0 : _authdetailsContext$i18.contactinfo.instid) != '6852e5ed44e14' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i19 = authdetailsContext.instinfo) === null || _authdetailsContext$i19 === void 0 ? void 0 : _authdetailsContext$i19.contactinfo.instid) != '68a9e83c05b75' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i20 = authdetailsContext.instinfo) === null || _authdetailsContext$i20 === void 0 ? void 0 : _authdetailsContext$i20.contactinfo.instid) != '68c27b4570751' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i21 = authdetailsContext.instinfo) === null || _authdetailsContext$i21 === void 0 ? void 0 : _authdetailsContext$i21.contactinfo.instid) != '68e4efe8cb18e' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i22 = authdetailsContext.instinfo) === null || _authdetailsContext$i22 === void 0 ? void 0 : _authdetailsContext$i22.contactinfo.instid) != '693ae1f70d9a4' && /*#__PURE__*/React__default["default"].createElement("div", {
8919
8958
  className: sectionproperties.card_marginLeft != 0 ? ' col-lg-12 p-0 pl-lg-3 pr-lg-3 pl-md-4 pr-md-4 pl-sm-1 pr-sm-1 ' : ' col-lg-12 p-sm-0 ',
8920
8959
  style: {
8921
8960
  paddingLeft: props.srcfromprops == 'Productinfomodel' ? langdetect == 'en' ? sectionproperties.card_marginLeft + 'px' : sectionproperties.card_marginRight + 'px' : 0,
@@ -9106,7 +9145,7 @@ var Productinfo = function Productinfo(props) {
9106
9145
  productinfo_cssstyles: productinfo_cssstyles,
9107
9146
  sectionproperties: sectionproperties
9108
9147
  })
9109
- }))))), props.srcfromprops != 'templatedraftrouter' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i22 = authdetailsContext.instinfo) === null || _authdetailsContext$i22 === void 0 ? void 0 : _authdetailsContext$i22.contactinfo.instid) == '68e4efe8cb18e' && /*#__PURE__*/React__default["default"].createElement("div", {
9148
+ }))))), props.srcfromprops != 'templatedraftrouter' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i23 = authdetailsContext.instinfo) === null || _authdetailsContext$i23 === void 0 ? void 0 : _authdetailsContext$i23.contactinfo.instid) == '68e4efe8cb18e' && /*#__PURE__*/React__default["default"].createElement("div", {
9110
9149
  className: sectionproperties.card_marginLeft != 0 ? ' col-lg-12 p-0 pl-lg-3 pr-lg-3 pl-md-4 pr-md-4 pl-sm-1 pr-sm-1 ' : ' col-lg-12 p-sm-0 ',
9111
9150
  style: {
9112
9151
  paddingLeft: props.srcfromprops == 'Productinfomodel' ? langdetect == 'en' ? sectionproperties.card_marginLeft + 'px' : sectionproperties.card_marginRight + 'px' : 0,
@@ -9257,7 +9296,7 @@ var Productinfo = function Productinfo(props) {
9257
9296
  productinfo_cssstyles: productinfo_cssstyles,
9258
9297
  sectionproperties: sectionproperties
9259
9298
  })
9260
- }))))), props.srcfromprops != 'templatedraftrouter' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i23 = authdetailsContext.instinfo) === null || _authdetailsContext$i23 === void 0 ? void 0 : _authdetailsContext$i23.contactinfo.instid) == '693ae1f70d9a4' && /*#__PURE__*/React__default["default"].createElement("div", {
9299
+ }))))), props.srcfromprops != 'templatedraftrouter' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i24 = authdetailsContext.instinfo) === null || _authdetailsContext$i24 === void 0 ? void 0 : _authdetailsContext$i24.contactinfo.instid) == '693ae1f70d9a4' && /*#__PURE__*/React__default["default"].createElement("div", {
9261
9300
  className: sectionproperties.card_marginLeft != 0 ? ' col-lg-12 p-0 pl-lg-3 pr-lg-3 pl-md-4 pr-md-4 pl-sm-1 pr-sm-1 ' : ' col-lg-12 p-sm-0 ',
9262
9301
  style: {
9263
9302
  paddingLeft: props.srcfromprops == 'Productinfomodel' ? langdetect == 'en' ? sectionproperties.card_marginLeft + 'px' : sectionproperties.card_marginRight + 'px' : 0,
@@ -12059,7 +12098,7 @@ styleInject(css_248z$G);
12059
12098
  function ownKeys$2w(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; }
12060
12099
  function _objectSpread$2w(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2w(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2w(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
12061
12100
  var Checkout = function Checkout(props) {
12062
- var _fetchTabexCountriesQ2, _css, _authdetailsContext$i0, _authdetailsContext$i1, _fetchcustomercartQue67, _authdetailsContext$i10, _fetchcustomercartQue68, _authdetailsContext$i11, _authdetailsContext$i12, _authdetailsContext$i13, _authdetailsContext$i14, _authdetailsContext$i15, _fetchcustomercartQue69, _authdetailsContext$i16, _fetchcustomercartQue75, _fetchcustomercartQue76, _fetchcustomercartQue77, _fetchcustomercartQue78, _fetchcustomercartQue79, _fetchcustomercartQue81, _fetchcustomercartQue83, _fetchcustomercartQue85, _fetchcustomercartQue87, _fetchcustomercartQue89, _authdetailsContext$i19, _fetchcustomercartQue91, _authdetailsContext$i20, _fetchcustomercartQue93, _authdetailsContext$i21, _fetchcustomercartQue95, _authdetailsContext$i22, _fetchcustomercartQue97, _authdetailsContext$i23, _fetchcustomercartQue99, _authdetailsContext$i24, _fetchcustomercartQue101, _fetchcustomercartQue103, _fetchcustomercartQue104;
12101
+ var _fetchTabexCountriesQ2, _css, _authdetailsContext$i0, _authdetailsContext$i1, _fetchcustomercartQue67, _authdetailsContext$i10, _fetchcustomercartQue68, _authdetailsContext$i11, _authdetailsContext$i12, _authdetailsContext$i13, _authdetailsContext$i14, _authdetailsContext$i15, _fetchcustomercartQue69, _authdetailsContext$i16, _fetchcustomercartQue75, _fetchcustomercartQue76, _fetchcustomercartQue77, _fetchcustomercartQue78, _fetchcustomercartQue79, _fetchcustomercartQue81, _fetchcustomercartQue83, _fetchcustomercartQue85, _fetchcustomercartQue87, _fetchcustomercartQue89, _authdetailsContext$i19, _fetchcustomercartQue91, _authdetailsContext$i20, _fetchcustomercartQue93, _authdetailsContext$i21, _fetchcustomercartQue95, _authdetailsContext$i22, _fetchcustomercartQue97, _authdetailsContext$i23, _fetchcustomercartQue99, _authdetailsContext$i24, _fetchcustomercartQue101, _authdetailsContext$i25, _fetchcustomercartQue103, _fetchcustomercartQue105, _fetchcustomercartQue106;
12063
12102
  var _useState = React.useState(null),
12064
12103
  _useState2 = _slicedToArray__default["default"](_useState, 2);
12065
12104
  _useState2[0];
@@ -13904,7 +13943,29 @@ var Checkout = function Checkout(props) {
13904
13943
  d: "M5,10.75 L8.5,14.25 L19.4,2.3 C18.8333333,1.43333333 18.0333333,1 17,1 L4,1 C2.35,1 1,2.35 1,4 L1,17 C1,18.65 2.35,20 4,20 L17,20 C18.65,20 20,18.65 20,17 L20,7.99769186"
13905
13944
  })), /*#__PURE__*/React__default["default"].createElement("p", {
13906
13945
  className: "".concat(formstyles.checkbox_label) + ' ml-2 mb-0 wordbreak cursor-pointer mr-2 '
13907
- }, langdetect == 'en' ? 'Tamara' : ' تمارا'))), instapaychosen && /*#__PURE__*/React__default["default"].createElement("div", {
13946
+ }, langdetect == 'en' ? 'Tamara' : ' تمارا'))), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i25 = authdetailsContext.instinfo) === null || _authdetailsContext$i25 === void 0 ? void 0 : _authdetailsContext$i25.acceptTabby) == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
13947
+ className: "col-xl-4 col-lg-4 col-md-12 mb-3"
13948
+ }, /*#__PURE__*/React__default["default"].createElement("label", {
13949
+ className: langdetect == 'en' ? "".concat(formstyles.checkbox, " ").concat(checkoutstyles.checkbox, " ") + ' d-flex mb-0 ' : "".concat(formstyles.checkbox, " ").concat(formstyles.checkboxtranslated, " ").concat(checkoutstyles.checkbox, " ") + ' d-flex mb-0 '
13950
+ }, /*#__PURE__*/React__default["default"].createElement("input", {
13951
+ type: "checkbox",
13952
+ className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
13953
+ checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue103 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue103 === void 0 || (_fetchcustomercartQue103 = _fetchcustomercartQue103.data) === null || _fetchcustomercartQue103 === void 0 ? void 0 : _fetchcustomercartQue103.customercart.paymentmethod) == 'Tabby' ? true : false,
13954
+ onChange: function onChange() {
13955
+ var _fetchcustomercartQue104;
13956
+ if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue104 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue104 === void 0 || (_fetchcustomercartQue104 = _fetchcustomercartQue104.data) === null || _fetchcustomercartQue104 === void 0 ? void 0 : _fetchcustomercartQue104.customercart.paymentmethod) != 'Tabby') {
13957
+ cartinfoupdater('paymentmethod', 'Tabby');
13958
+ setinstapaychosen(false);
13959
+ }
13960
+ }
13961
+ }), /*#__PURE__*/React__default["default"].createElement("svg", {
13962
+ viewBox: "0 0 21 21",
13963
+ className: checkoutstyles.svgstyles + ' h-100 '
13964
+ }, /*#__PURE__*/React__default["default"].createElement("path", {
13965
+ d: "M5,10.75 L8.5,14.25 L19.4,2.3 C18.8333333,1.43333333 18.0333333,1 17,1 L4,1 C2.35,1 1,2.35 1,4 L1,17 C1,18.65 2.35,20 4,20 L17,20 C18.65,20 20,18.65 20,17 L20,7.99769186"
13966
+ })), /*#__PURE__*/React__default["default"].createElement("p", {
13967
+ className: "".concat(formstyles.checkbox_label, " ") + ' ml-2 mb-0 wordbreak cursor-pointer mr-2 '
13968
+ }, langdetect == 'en' ? 'Tabby' : 'Tabby'))), instapaychosen && /*#__PURE__*/React__default["default"].createElement("div", {
13908
13969
  "class": "col-12 px-3 px-md-2 my-3"
13909
13970
  }, /*#__PURE__*/React__default["default"].createElement("p", {
13910
13971
  "class": ' pb-0 pl-md-2 pr-md-2 ',
@@ -13914,7 +13975,7 @@ var Checkout = function Checkout(props) {
13914
13975
  dangerouslySetInnerHTML: {
13915
13976
  __html: langdetect == 'en' ? sectionproperties.instapayoptioncontenten : sectionproperties.instapayoptioncontentar
13916
13977
  }
13917
- }))))), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue103 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue103 === void 0 || (_fetchcustomercartQue103 = _fetchcustomercartQue103.data) === null || _fetchcustomercartQue103 === void 0 ? void 0 : _fetchcustomercartQue103.customercart.paymentmethod) == 'onlinepayment1' && /*#__PURE__*/React__default["default"].createElement("div", {
13978
+ }))))), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue105 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue105 === void 0 || (_fetchcustomercartQue105 = _fetchcustomercartQue105.data) === null || _fetchcustomercartQue105 === void 0 ? void 0 : _fetchcustomercartQue105.customercart.paymentmethod) == 'onlinepayment1' && /*#__PURE__*/React__default["default"].createElement("div", {
13918
13979
  className: "col-lg-12 p-0 w-100 mb-3"
13919
13980
  }, /*#__PURE__*/React__default["default"].createElement("div", {
13920
13981
  style: {
@@ -14054,7 +14115,7 @@ var Checkout = function Checkout(props) {
14054
14115
  color: '#000',
14055
14116
  textAlign: 'center'
14056
14117
  }
14057
- }, fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue104 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue104 === void 0 || (_fetchcustomercartQue104 = _fetchcustomercartQue104.data) === null || _fetchcustomercartQue104 === void 0 || (_fetchcustomercartQue104 = _fetchcustomercartQue104.customercart) === null || _fetchcustomercartQue104 === void 0 ? void 0 : _fetchcustomercartQue104.zonenotes)))), /*#__PURE__*/React__default["default"].createElement(reactBootstrap.Modal.Footer, null)));
14118
+ }, fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue106 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue106 === void 0 || (_fetchcustomercartQue106 = _fetchcustomercartQue106.data) === null || _fetchcustomercartQue106 === void 0 || (_fetchcustomercartQue106 = _fetchcustomercartQue106.customercart) === null || _fetchcustomercartQue106 === void 0 ? void 0 : _fetchcustomercartQue106.zonenotes)))), /*#__PURE__*/React__default["default"].createElement(reactBootstrap.Modal.Footer, null)));
14058
14119
  };
14059
14120
 
14060
14121
  function ownKeys$2v(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
@@ -6469,7 +6469,7 @@ var Article_itemtype = function Article_itemtype(props) {
6469
6469
  function ownKeys$2B(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; }
6470
6470
  function _objectSpread$2B(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2B(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2B(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
6471
6471
  var Productinfo = function Productinfo(props) {
6472
- var _css, _fetchProductInfoQuer83, _ref, _fetchProductInfoQuer84, _ref2, _fetchProductInfoQuer85, _ref3, _authdetailsContext$i17, _authdetailsContext$i18, _authdetailsContext$i19, _authdetailsContext$i20, _authdetailsContext$i21, _fetchProductInfoQuer86, _fetchProductInfoQuer87, _fetchProductInfoQuer88, _returnpolicyobj5, _returnpolicyobj6, _returnpolicyobj7, _returnpolicyobj8, _fetchProductInfoQuer89, _fetchProductInfoQuer90, _returnpolicyobj9, _returnpolicyobj0, _returnpolicyobj1, _returnpolicyobj10, _fetchProductInfoQuer91, _fetchProductInfoQuer92, _returnpolicyobj11, _returnpolicyobj12, _returnpolicyobj13, _returnpolicyobj14, _authdetailsContext$i22, _fetchProductInfoQuer93, _fetchProductInfoQuer94, _fetchProductInfoQuer95, _fetchProductInfoQuer96, _returnpolicyobj15, _returnpolicyobj16, _returnpolicyobj17, _returnpolicyobj18, _authdetailsContext$i23, _fetchProductInfoQuer97, _fetchProductInfoQuer98, _fetchProductInfoQuer99, _fetchProductInfoQuer100;
6472
+ var _css, _fetchProductInfoQuer83, _ref, _fetchProductInfoQuer84, _ref2, _fetchProductInfoQuer85, _ref3, _authdetailsContext$i18, _authdetailsContext$i19, _authdetailsContext$i20, _authdetailsContext$i21, _authdetailsContext$i22, _fetchProductInfoQuer86, _fetchProductInfoQuer87, _fetchProductInfoQuer88, _returnpolicyobj5, _returnpolicyobj6, _returnpolicyobj7, _returnpolicyobj8, _fetchProductInfoQuer89, _fetchProductInfoQuer90, _returnpolicyobj9, _returnpolicyobj0, _returnpolicyobj1, _returnpolicyobj10, _fetchProductInfoQuer91, _fetchProductInfoQuer92, _returnpolicyobj11, _returnpolicyobj12, _returnpolicyobj13, _returnpolicyobj14, _authdetailsContext$i23, _fetchProductInfoQuer93, _fetchProductInfoQuer94, _fetchProductInfoQuer95, _fetchProductInfoQuer96, _returnpolicyobj15, _returnpolicyobj16, _returnpolicyobj17, _returnpolicyobj18, _authdetailsContext$i24, _fetchProductInfoQuer97, _fetchProductInfoQuer98, _fetchProductInfoQuer99, _fetchProductInfoQuer100;
6473
6473
  var _useState = useState({}),
6474
6474
  _useState2 = _slicedToArray(_useState, 2),
6475
6475
  ProductInfoObj = _useState2[0],
@@ -7548,6 +7548,9 @@ var Productinfo = function Productinfo(props) {
7548
7548
  } else {
7549
7549
  setisoutofstock(false);
7550
7550
  }
7551
+ var url = new URL(window.location.href);
7552
+ url.searchParams.set('variant', variantobj.variantid);
7553
+ window.history.replaceState(null, '', url.toString());
7551
7554
  setvariantsku(variantobj === null || variantobj === void 0 ? void 0 : variantobj.sku);
7552
7555
  setcurrentshowingimageindex(variantimageindex);
7553
7556
  setaddtocardpayloadobj(_objectSpread$2B({}, tempaddtocardpayloadobj));
@@ -7821,6 +7824,42 @@ var Productinfo = function Productinfo(props) {
7821
7824
  }
7822
7825
  }
7823
7826
  };
7827
+ var _useState55 = useState(false),
7828
+ _useState56 = _slicedToArray(_useState55, 2),
7829
+ isVarianturlLoaded = _useState56[0],
7830
+ setisVarianturlLoaded = _useState56[1];
7831
+ useEffect(function () {
7832
+ var _authdetailsContext$i10;
7833
+ if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i10 = authdetailsContext.instinfo) === null || _authdetailsContext$i10 === void 0 ? void 0 : _authdetailsContext$i10.contactinfo.instid) == '68f918a4ccb85') {
7834
+ var params = new URLSearchParams(window.location.search);
7835
+ var variantId = params.get('variant');
7836
+ if (isVarianturlLoaded == false) {
7837
+ if (variantId) {
7838
+ if (ProductInfoObj != undefined && ProductInfoObj != null && Object.keys(ProductInfoObj).length != 0) {
7839
+ var _productarr$data$prod3;
7840
+ var productarr = ProductInfoObj;
7841
+ (_productarr$data$prod3 = productarr.data.productinfo) === null || _productarr$data$prod3 === void 0 || _productarr$data$prod3.variants.forEach(function (ProductVariantItem, ProductVariantIndex) {
7842
+ if (ProductVariantItem.variantid == variantId) {
7843
+ ProductVariantItem.variantoptions.forEach(function (varinatoptionitem, variantoptionindex) {
7844
+ productarr.data.productinfo.productoptions.forEach(function (productoptionsitem, productoptionsindex) {
7845
+ var _productoptionsitem$o;
7846
+ productoptionsitem === null || productoptionsitem === void 0 || (_productoptionsitem$o = productoptionsitem.optionvalues) === null || _productoptionsitem$o === void 0 || _productoptionsitem$o.forEach(function (optionvaluesitem, optionvaluesindex) {
7847
+ if (varinatoptionitem.valueid == optionvaluesitem.valueid) {
7848
+ selectproductoptionvalue(productoptionsindex, optionvaluesitem, optionvaluesindex);
7849
+ }
7850
+ });
7851
+ });
7852
+ });
7853
+ }
7854
+ });
7855
+ setisVarianturlLoaded(true);
7856
+ }
7857
+ } else {
7858
+ setisVarianturlLoaded(true);
7859
+ }
7860
+ }
7861
+ }
7862
+ }, [ProductInfoObj]);
7824
7863
  // const DescriptionContent = () => {
7825
7864
  // return (
7826
7865
  // <div class="col-lg-12 pl-5 pr-5 p-md-0 w-100">
@@ -8586,7 +8625,7 @@ var Productinfo = function Productinfo(props) {
8586
8625
  })));
8587
8626
  };
8588
8627
  var StoreInfo = function StoreInfo(position) {
8589
- var _fetchProductInfoQuer77, _authdetailsContext$i11, _returnpolicyobj, _returnpolicyobj2, _returnpolicyobj3, _returnpolicyobj4, _authdetailsContext$i12, _authdetailsContext$i14;
8628
+ var _fetchProductInfoQuer77, _authdetailsContext$i12, _returnpolicyobj, _returnpolicyobj2, _returnpolicyobj3, _returnpolicyobj4, _authdetailsContext$i13, _authdetailsContext$i15;
8590
8629
  return /*#__PURE__*/React.createElement("div", {
8591
8630
  "class": sectionproperties.storeinformationcontainerborderwidth != 0 ? 'row m-0 w-100 p-3' : 'row m-0 w-100',
8592
8631
  style: {
@@ -8665,8 +8704,8 @@ var Productinfo = function Productinfo(props) {
8665
8704
  }, authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.CuContactphonenumber))), sectionproperties.showfooteremail == 'Show' && /*#__PURE__*/React.createElement("div", {
8666
8705
  className: "".concat(productinfo_cssstyles.storeinfobtn, " ").concat(productinfo_cssstyles.storeinfocontainer) + ' mb-t col-lg-12 p-0 d-flex align-items-center cursor-pointer ',
8667
8706
  onClick: function onClick() {
8668
- var _authdetailsContext$i10;
8669
- window.open('mailto:' + (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i10 = authdetailsContext.instinfo) === null || _authdetailsContext$i10 === void 0 || (_authdetailsContext$i10 = _authdetailsContext$i10.contactinfo) === null || _authdetailsContext$i10 === void 0 ? void 0 : _authdetailsContext$i10.email), '_self');
8707
+ var _authdetailsContext$i11;
8708
+ window.open('mailto:' + (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i11 = authdetailsContext.instinfo) === null || _authdetailsContext$i11 === void 0 || (_authdetailsContext$i11 = _authdetailsContext$i11.contactinfo) === null || _authdetailsContext$i11 === void 0 ? void 0 : _authdetailsContext$i11.email), '_self');
8670
8709
  }
8671
8710
  }, /*#__PURE__*/React.createElement("div", {
8672
8711
  "class": productinfo_cssstyles.iconContainer + ' iconContainer '
@@ -8686,7 +8725,7 @@ var Productinfo = function Productinfo(props) {
8686
8725
  style: {
8687
8726
  textAlign: langdetect == 'en' ? 'left' : 'right'
8688
8727
  }
8689
- }, authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i11 = authdetailsContext.instinfo) === null || _authdetailsContext$i11 === void 0 || (_authdetailsContext$i11 = _authdetailsContext$i11.contactinfo) === null || _authdetailsContext$i11 === void 0 ? void 0 : _authdetailsContext$i11.email))), /*#__PURE__*/React.createElement("div", {
8728
+ }, authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i12 = authdetailsContext.instinfo) === null || _authdetailsContext$i12 === void 0 || (_authdetailsContext$i12 = _authdetailsContext$i12.contactinfo) === null || _authdetailsContext$i12 === void 0 ? void 0 : _authdetailsContext$i12.email))), /*#__PURE__*/React.createElement("div", {
8690
8729
  "class": "col-lg-12 my-2",
8691
8730
  style: {
8692
8731
  display: sectionproperties.showfirstpolicy_storeinfo == 'Hide' && sectionproperties.showsecondpolicy_storeinfo == 'Hide' ? 'none' : 'block'
@@ -8738,25 +8777,25 @@ var Productinfo = function Productinfo(props) {
8738
8777
  }
8739
8778
  }, /*#__PURE__*/React.createElement("p", {
8740
8779
  "class": "m-0 p-0"
8741
- }, langdetect == 'en' ? sectionproperties.phonetitle_en : sectionproperties.phonetitle_ar))), sectionproperties.showfooteremail == 'Show' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i12 = authdetailsContext.instinfo) === null || _authdetailsContext$i12 === void 0 || (_authdetailsContext$i12 = _authdetailsContext$i12.contactinfo) === null || _authdetailsContext$i12 === void 0 ? void 0 : _authdetailsContext$i12.email) != null && /*#__PURE__*/React.createElement("div", {
8780
+ }, langdetect == 'en' ? sectionproperties.phonetitle_en : sectionproperties.phonetitle_ar))), sectionproperties.showfooteremail == 'Show' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i13 = authdetailsContext.instinfo) === null || _authdetailsContext$i13 === void 0 || (_authdetailsContext$i13 = _authdetailsContext$i13.contactinfo) === null || _authdetailsContext$i13 === void 0 ? void 0 : _authdetailsContext$i13.email) != null && /*#__PURE__*/React.createElement("div", {
8742
8781
  "class": position == 'belowinfo' ? 'col-lg-12 allcentered mb-2 p-0' : 'col-lg-12 allcentered mb-2 p-sm-0'
8743
8782
  }, /*#__PURE__*/React.createElement("button", {
8744
8783
  "class": productinfo_cssstyles.storeinfobtn + ' allcentered ',
8745
8784
  onClick: function onClick() {
8746
- var _authdetailsContext$i13;
8747
- window.open('mailto:' + (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i13 = authdetailsContext.instinfo) === null || _authdetailsContext$i13 === void 0 || (_authdetailsContext$i13 = _authdetailsContext$i13.contactinfo) === null || _authdetailsContext$i13 === void 0 ? void 0 : _authdetailsContext$i13.email), '_self');
8785
+ var _authdetailsContext$i14;
8786
+ window.open('mailto:' + (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i14 = authdetailsContext.instinfo) === null || _authdetailsContext$i14 === void 0 || (_authdetailsContext$i14 = _authdetailsContext$i14.contactinfo) === null || _authdetailsContext$i14 === void 0 ? void 0 : _authdetailsContext$i14.email), '_self');
8748
8787
  }
8749
8788
  }, /*#__PURE__*/React.createElement("p", {
8750
8789
  "class": "m-0 p-0"
8751
- }, langdetect == 'en' ? sectionproperties.emailtitle_en : sectionproperties.emailtitle_ar))), sectionproperties.showwhatsapp == 'Show' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i14 = authdetailsContext.instinfo) === null || _authdetailsContext$i14 === void 0 ? void 0 : _authdetailsContext$i14.whatsappnumber) != null && /*#__PURE__*/React.createElement("div", {
8790
+ }, langdetect == 'en' ? sectionproperties.emailtitle_en : sectionproperties.emailtitle_ar))), sectionproperties.showwhatsapp == 'Show' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i15 = authdetailsContext.instinfo) === null || _authdetailsContext$i15 === void 0 ? void 0 : _authdetailsContext$i15.whatsappnumber) != null && /*#__PURE__*/React.createElement("div", {
8752
8791
  "class": position == 'belowinfo' ? 'col-lg-12 allcentered mb-2 p-0' : 'col-lg-12 allcentered mb-2 p-sm-0'
8753
8792
  }, /*#__PURE__*/React.createElement("button", {
8754
8793
  "class": productinfo_cssstyles.storeinfobtn + ' allcentered ',
8755
8794
  onClick: function onClick() {
8756
- var _authdetailsContext$i15;
8757
- if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i15 = authdetailsContext.instinfo) === null || _authdetailsContext$i15 === void 0 ? void 0 : _authdetailsContext$i15.whatsappnumber) != null) {
8758
- var _authdetailsContext$i16;
8759
- window.open('https://api.whatsapp.com/send?phone=' + (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i16 = authdetailsContext.instinfo) === null || _authdetailsContext$i16 === void 0 ? void 0 : _authdetailsContext$i16.whatsappnumber), '_blank');
8795
+ var _authdetailsContext$i16;
8796
+ if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i16 = authdetailsContext.instinfo) === null || _authdetailsContext$i16 === void 0 ? void 0 : _authdetailsContext$i16.whatsappnumber) != null) {
8797
+ var _authdetailsContext$i17;
8798
+ window.open('https://api.whatsapp.com/send?phone=' + (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i17 = authdetailsContext.instinfo) === null || _authdetailsContext$i17 === void 0 ? void 0 : _authdetailsContext$i17.whatsappnumber), '_blank');
8760
8799
  }
8761
8800
  }
8762
8801
  }, /*#__PURE__*/React.createElement("p", {
@@ -8864,7 +8903,7 @@ var Productinfo = function Productinfo(props) {
8864
8903
  lang: lang,
8865
8904
  srcfromprops: props.srcfromprops
8866
8905
  }, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_ref3, "returnpolicyobj", returnpolicyobj), "productinfo_cssstyles", productinfo_cssstyles), "addtocartfunc", addtocartfunc), "selectproductoptionvalue", selectproductoptionvalue), "clearchoosenvaluesbutkeepcurrentvalue", clearchoosenvaluesbutkeepcurrentvalue), "productimagesarray", productimagesarray), "fetchProductInfoQueryContext", fetchProductInfoQueryContext), "sectionproperties", sectionproperties), "addtocardpayloadobj", addtocardpayloadobj), "ProductInfoObj", ProductInfoObj), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_ref3, "currentshowingimageindex", currentshowingimageindex), "setcurrentshowingimageindex", setcurrentshowingimageindex), "setaddtocardpayloadobj", setaddtocardpayloadobj), "routingcountext", routingcountext), "AddtoCartMutationContext", AddtoCartMutationContext), "authdetailsContext", authdetailsContext), "addtofavoritescontext", addtofavoritescontext), "StaticPagesLinksContext", StaticPagesLinksContext), "variantindexcompleted", variantindexcompleted), "GeneralAPIMutationContext", GeneralAPIMutationContext), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_ref3, "NotificationManager", NotificationManager), "getprice_discountpriceprops", getprice_discountpriceprops), "quantityconditionfoundobjprops", quantityconditionfoundobj), "relatedproducts", relatedproducts), "getQuantityCondition", getQuantityCondition), "StoreInfoprops", StoreInfo), "templatepropcontext", templatepropcontext), "ikimagecredcontext", ikimagecredcontext), "sizeguideimage", sizeguideimage), "setopensizeguidemodal", setopensizeguidemodal), _defineProperty(_defineProperty(_defineProperty(_ref3, "isOptionInStock", isOptionInStock), "addtocartfunc_extras", addtocartfunc_extras), "productpdfsarray", productpdfsarray))
8867
- }), props.srcfromprops != 'templatedraftrouter' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i17 = authdetailsContext.instinfo) === null || _authdetailsContext$i17 === void 0 ? void 0 : _authdetailsContext$i17.contactinfo.instid) != '6852e5ed44e14' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i18 = authdetailsContext.instinfo) === null || _authdetailsContext$i18 === void 0 ? void 0 : _authdetailsContext$i18.contactinfo.instid) != '68a9e83c05b75' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i19 = authdetailsContext.instinfo) === null || _authdetailsContext$i19 === void 0 ? void 0 : _authdetailsContext$i19.contactinfo.instid) != '68c27b4570751' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i20 = authdetailsContext.instinfo) === null || _authdetailsContext$i20 === void 0 ? void 0 : _authdetailsContext$i20.contactinfo.instid) != '68e4efe8cb18e' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i21 = authdetailsContext.instinfo) === null || _authdetailsContext$i21 === void 0 ? void 0 : _authdetailsContext$i21.contactinfo.instid) != '693ae1f70d9a4' && /*#__PURE__*/React.createElement("div", {
8906
+ }), props.srcfromprops != 'templatedraftrouter' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i18 = authdetailsContext.instinfo) === null || _authdetailsContext$i18 === void 0 ? void 0 : _authdetailsContext$i18.contactinfo.instid) != '6852e5ed44e14' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i19 = authdetailsContext.instinfo) === null || _authdetailsContext$i19 === void 0 ? void 0 : _authdetailsContext$i19.contactinfo.instid) != '68a9e83c05b75' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i20 = authdetailsContext.instinfo) === null || _authdetailsContext$i20 === void 0 ? void 0 : _authdetailsContext$i20.contactinfo.instid) != '68c27b4570751' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i21 = authdetailsContext.instinfo) === null || _authdetailsContext$i21 === void 0 ? void 0 : _authdetailsContext$i21.contactinfo.instid) != '68e4efe8cb18e' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i22 = authdetailsContext.instinfo) === null || _authdetailsContext$i22 === void 0 ? void 0 : _authdetailsContext$i22.contactinfo.instid) != '693ae1f70d9a4' && /*#__PURE__*/React.createElement("div", {
8868
8907
  className: sectionproperties.card_marginLeft != 0 ? ' col-lg-12 p-0 pl-lg-3 pr-lg-3 pl-md-4 pr-md-4 pl-sm-1 pr-sm-1 ' : ' col-lg-12 p-sm-0 ',
8869
8908
  style: {
8870
8909
  paddingLeft: props.srcfromprops == 'Productinfomodel' ? langdetect == 'en' ? sectionproperties.card_marginLeft + 'px' : sectionproperties.card_marginRight + 'px' : 0,
@@ -9055,7 +9094,7 @@ var Productinfo = function Productinfo(props) {
9055
9094
  productinfo_cssstyles: productinfo_cssstyles,
9056
9095
  sectionproperties: sectionproperties
9057
9096
  })
9058
- }))))), props.srcfromprops != 'templatedraftrouter' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i22 = authdetailsContext.instinfo) === null || _authdetailsContext$i22 === void 0 ? void 0 : _authdetailsContext$i22.contactinfo.instid) == '68e4efe8cb18e' && /*#__PURE__*/React.createElement("div", {
9097
+ }))))), props.srcfromprops != 'templatedraftrouter' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i23 = authdetailsContext.instinfo) === null || _authdetailsContext$i23 === void 0 ? void 0 : _authdetailsContext$i23.contactinfo.instid) == '68e4efe8cb18e' && /*#__PURE__*/React.createElement("div", {
9059
9098
  className: sectionproperties.card_marginLeft != 0 ? ' col-lg-12 p-0 pl-lg-3 pr-lg-3 pl-md-4 pr-md-4 pl-sm-1 pr-sm-1 ' : ' col-lg-12 p-sm-0 ',
9060
9099
  style: {
9061
9100
  paddingLeft: props.srcfromprops == 'Productinfomodel' ? langdetect == 'en' ? sectionproperties.card_marginLeft + 'px' : sectionproperties.card_marginRight + 'px' : 0,
@@ -9206,7 +9245,7 @@ var Productinfo = function Productinfo(props) {
9206
9245
  productinfo_cssstyles: productinfo_cssstyles,
9207
9246
  sectionproperties: sectionproperties
9208
9247
  })
9209
- }))))), props.srcfromprops != 'templatedraftrouter' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i23 = authdetailsContext.instinfo) === null || _authdetailsContext$i23 === void 0 ? void 0 : _authdetailsContext$i23.contactinfo.instid) == '693ae1f70d9a4' && /*#__PURE__*/React.createElement("div", {
9248
+ }))))), props.srcfromprops != 'templatedraftrouter' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i24 = authdetailsContext.instinfo) === null || _authdetailsContext$i24 === void 0 ? void 0 : _authdetailsContext$i24.contactinfo.instid) == '693ae1f70d9a4' && /*#__PURE__*/React.createElement("div", {
9210
9249
  className: sectionproperties.card_marginLeft != 0 ? ' col-lg-12 p-0 pl-lg-3 pr-lg-3 pl-md-4 pr-md-4 pl-sm-1 pr-sm-1 ' : ' col-lg-12 p-sm-0 ',
9211
9250
  style: {
9212
9251
  paddingLeft: props.srcfromprops == 'Productinfomodel' ? langdetect == 'en' ? sectionproperties.card_marginLeft + 'px' : sectionproperties.card_marginRight + 'px' : 0,
@@ -12008,7 +12047,7 @@ styleInject(css_248z$G);
12008
12047
  function ownKeys$2w(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; }
12009
12048
  function _objectSpread$2w(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2w(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2w(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
12010
12049
  var Checkout = function Checkout(props) {
12011
- var _fetchTabexCountriesQ2, _css, _authdetailsContext$i0, _authdetailsContext$i1, _fetchcustomercartQue67, _authdetailsContext$i10, _fetchcustomercartQue68, _authdetailsContext$i11, _authdetailsContext$i12, _authdetailsContext$i13, _authdetailsContext$i14, _authdetailsContext$i15, _fetchcustomercartQue69, _authdetailsContext$i16, _fetchcustomercartQue75, _fetchcustomercartQue76, _fetchcustomercartQue77, _fetchcustomercartQue78, _fetchcustomercartQue79, _fetchcustomercartQue81, _fetchcustomercartQue83, _fetchcustomercartQue85, _fetchcustomercartQue87, _fetchcustomercartQue89, _authdetailsContext$i19, _fetchcustomercartQue91, _authdetailsContext$i20, _fetchcustomercartQue93, _authdetailsContext$i21, _fetchcustomercartQue95, _authdetailsContext$i22, _fetchcustomercartQue97, _authdetailsContext$i23, _fetchcustomercartQue99, _authdetailsContext$i24, _fetchcustomercartQue101, _fetchcustomercartQue103, _fetchcustomercartQue104;
12050
+ var _fetchTabexCountriesQ2, _css, _authdetailsContext$i0, _authdetailsContext$i1, _fetchcustomercartQue67, _authdetailsContext$i10, _fetchcustomercartQue68, _authdetailsContext$i11, _authdetailsContext$i12, _authdetailsContext$i13, _authdetailsContext$i14, _authdetailsContext$i15, _fetchcustomercartQue69, _authdetailsContext$i16, _fetchcustomercartQue75, _fetchcustomercartQue76, _fetchcustomercartQue77, _fetchcustomercartQue78, _fetchcustomercartQue79, _fetchcustomercartQue81, _fetchcustomercartQue83, _fetchcustomercartQue85, _fetchcustomercartQue87, _fetchcustomercartQue89, _authdetailsContext$i19, _fetchcustomercartQue91, _authdetailsContext$i20, _fetchcustomercartQue93, _authdetailsContext$i21, _fetchcustomercartQue95, _authdetailsContext$i22, _fetchcustomercartQue97, _authdetailsContext$i23, _fetchcustomercartQue99, _authdetailsContext$i24, _fetchcustomercartQue101, _authdetailsContext$i25, _fetchcustomercartQue103, _fetchcustomercartQue105, _fetchcustomercartQue106;
12012
12051
  var _useState = useState(null),
12013
12052
  _useState2 = _slicedToArray(_useState, 2);
12014
12053
  _useState2[0];
@@ -13853,7 +13892,29 @@ var Checkout = function Checkout(props) {
13853
13892
  d: "M5,10.75 L8.5,14.25 L19.4,2.3 C18.8333333,1.43333333 18.0333333,1 17,1 L4,1 C2.35,1 1,2.35 1,4 L1,17 C1,18.65 2.35,20 4,20 L17,20 C18.65,20 20,18.65 20,17 L20,7.99769186"
13854
13893
  })), /*#__PURE__*/React.createElement("p", {
13855
13894
  className: "".concat(formstyles.checkbox_label) + ' ml-2 mb-0 wordbreak cursor-pointer mr-2 '
13856
- }, langdetect == 'en' ? 'Tamara' : ' تمارا'))), instapaychosen && /*#__PURE__*/React.createElement("div", {
13895
+ }, langdetect == 'en' ? 'Tamara' : ' تمارا'))), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i25 = authdetailsContext.instinfo) === null || _authdetailsContext$i25 === void 0 ? void 0 : _authdetailsContext$i25.acceptTabby) == 1 && /*#__PURE__*/React.createElement("div", {
13896
+ className: "col-xl-4 col-lg-4 col-md-12 mb-3"
13897
+ }, /*#__PURE__*/React.createElement("label", {
13898
+ className: langdetect == 'en' ? "".concat(formstyles.checkbox, " ").concat(checkoutstyles.checkbox, " ") + ' d-flex mb-0 ' : "".concat(formstyles.checkbox, " ").concat(formstyles.checkboxtranslated, " ").concat(checkoutstyles.checkbox, " ") + ' d-flex mb-0 '
13899
+ }, /*#__PURE__*/React.createElement("input", {
13900
+ type: "checkbox",
13901
+ className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
13902
+ checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue103 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue103 === void 0 || (_fetchcustomercartQue103 = _fetchcustomercartQue103.data) === null || _fetchcustomercartQue103 === void 0 ? void 0 : _fetchcustomercartQue103.customercart.paymentmethod) == 'Tabby' ? true : false,
13903
+ onChange: function onChange() {
13904
+ var _fetchcustomercartQue104;
13905
+ if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue104 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue104 === void 0 || (_fetchcustomercartQue104 = _fetchcustomercartQue104.data) === null || _fetchcustomercartQue104 === void 0 ? void 0 : _fetchcustomercartQue104.customercart.paymentmethod) != 'Tabby') {
13906
+ cartinfoupdater('paymentmethod', 'Tabby');
13907
+ setinstapaychosen(false);
13908
+ }
13909
+ }
13910
+ }), /*#__PURE__*/React.createElement("svg", {
13911
+ viewBox: "0 0 21 21",
13912
+ className: checkoutstyles.svgstyles + ' h-100 '
13913
+ }, /*#__PURE__*/React.createElement("path", {
13914
+ d: "M5,10.75 L8.5,14.25 L19.4,2.3 C18.8333333,1.43333333 18.0333333,1 17,1 L4,1 C2.35,1 1,2.35 1,4 L1,17 C1,18.65 2.35,20 4,20 L17,20 C18.65,20 20,18.65 20,17 L20,7.99769186"
13915
+ })), /*#__PURE__*/React.createElement("p", {
13916
+ className: "".concat(formstyles.checkbox_label, " ") + ' ml-2 mb-0 wordbreak cursor-pointer mr-2 '
13917
+ }, langdetect == 'en' ? 'Tabby' : 'Tabby'))), instapaychosen && /*#__PURE__*/React.createElement("div", {
13857
13918
  "class": "col-12 px-3 px-md-2 my-3"
13858
13919
  }, /*#__PURE__*/React.createElement("p", {
13859
13920
  "class": ' pb-0 pl-md-2 pr-md-2 ',
@@ -13863,7 +13924,7 @@ var Checkout = function Checkout(props) {
13863
13924
  dangerouslySetInnerHTML: {
13864
13925
  __html: langdetect == 'en' ? sectionproperties.instapayoptioncontenten : sectionproperties.instapayoptioncontentar
13865
13926
  }
13866
- }))))), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue103 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue103 === void 0 || (_fetchcustomercartQue103 = _fetchcustomercartQue103.data) === null || _fetchcustomercartQue103 === void 0 ? void 0 : _fetchcustomercartQue103.customercart.paymentmethod) == 'onlinepayment1' && /*#__PURE__*/React.createElement("div", {
13927
+ }))))), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue105 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue105 === void 0 || (_fetchcustomercartQue105 = _fetchcustomercartQue105.data) === null || _fetchcustomercartQue105 === void 0 ? void 0 : _fetchcustomercartQue105.customercart.paymentmethod) == 'onlinepayment1' && /*#__PURE__*/React.createElement("div", {
13867
13928
  className: "col-lg-12 p-0 w-100 mb-3"
13868
13929
  }, /*#__PURE__*/React.createElement("div", {
13869
13930
  style: {
@@ -14003,7 +14064,7 @@ var Checkout = function Checkout(props) {
14003
14064
  color: '#000',
14004
14065
  textAlign: 'center'
14005
14066
  }
14006
- }, fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue104 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue104 === void 0 || (_fetchcustomercartQue104 = _fetchcustomercartQue104.data) === null || _fetchcustomercartQue104 === void 0 || (_fetchcustomercartQue104 = _fetchcustomercartQue104.customercart) === null || _fetchcustomercartQue104 === void 0 ? void 0 : _fetchcustomercartQue104.zonenotes)))), /*#__PURE__*/React.createElement(Modal.Footer, null)));
14067
+ }, fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue106 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue106 === void 0 || (_fetchcustomercartQue106 = _fetchcustomercartQue106.data) === null || _fetchcustomercartQue106 === void 0 || (_fetchcustomercartQue106 = _fetchcustomercartQue106.customercart) === null || _fetchcustomercartQue106 === void 0 ? void 0 : _fetchcustomercartQue106.zonenotes)))), /*#__PURE__*/React.createElement(Modal.Footer, null)));
14007
14068
  };
14008
14069
 
14009
14070
  function ownKeys$2v(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
@@ -6328,7 +6328,7 @@
6328
6328
  function ownKeys$2B(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; }
6329
6329
  function _objectSpread$2B(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2B(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2B(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
6330
6330
  var Productinfo = function Productinfo(props) {
6331
- var _css, _fetchProductInfoQuer83, _ref, _fetchProductInfoQuer84, _ref2, _fetchProductInfoQuer85, _ref3, _authdetailsContext$i17, _authdetailsContext$i18, _authdetailsContext$i19, _authdetailsContext$i20, _authdetailsContext$i21, _fetchProductInfoQuer86, _fetchProductInfoQuer87, _fetchProductInfoQuer88, _returnpolicyobj5, _returnpolicyobj6, _returnpolicyobj7, _returnpolicyobj8, _fetchProductInfoQuer89, _fetchProductInfoQuer90, _returnpolicyobj9, _returnpolicyobj0, _returnpolicyobj1, _returnpolicyobj10, _fetchProductInfoQuer91, _fetchProductInfoQuer92, _returnpolicyobj11, _returnpolicyobj12, _returnpolicyobj13, _returnpolicyobj14, _authdetailsContext$i22, _fetchProductInfoQuer93, _fetchProductInfoQuer94, _fetchProductInfoQuer95, _fetchProductInfoQuer96, _returnpolicyobj15, _returnpolicyobj16, _returnpolicyobj17, _returnpolicyobj18, _authdetailsContext$i23, _fetchProductInfoQuer97, _fetchProductInfoQuer98, _fetchProductInfoQuer99, _fetchProductInfoQuer100;
6331
+ var _css, _fetchProductInfoQuer83, _ref, _fetchProductInfoQuer84, _ref2, _fetchProductInfoQuer85, _ref3, _authdetailsContext$i18, _authdetailsContext$i19, _authdetailsContext$i20, _authdetailsContext$i21, _authdetailsContext$i22, _fetchProductInfoQuer86, _fetchProductInfoQuer87, _fetchProductInfoQuer88, _returnpolicyobj5, _returnpolicyobj6, _returnpolicyobj7, _returnpolicyobj8, _fetchProductInfoQuer89, _fetchProductInfoQuer90, _returnpolicyobj9, _returnpolicyobj0, _returnpolicyobj1, _returnpolicyobj10, _fetchProductInfoQuer91, _fetchProductInfoQuer92, _returnpolicyobj11, _returnpolicyobj12, _returnpolicyobj13, _returnpolicyobj14, _authdetailsContext$i23, _fetchProductInfoQuer93, _fetchProductInfoQuer94, _fetchProductInfoQuer95, _fetchProductInfoQuer96, _returnpolicyobj15, _returnpolicyobj16, _returnpolicyobj17, _returnpolicyobj18, _authdetailsContext$i24, _fetchProductInfoQuer97, _fetchProductInfoQuer98, _fetchProductInfoQuer99, _fetchProductInfoQuer100;
6332
6332
  var _useState = React.useState({}),
6333
6333
  _useState2 = _slicedToArray__default["default"](_useState, 2),
6334
6334
  ProductInfoObj = _useState2[0],
@@ -7407,6 +7407,9 @@
7407
7407
  } else {
7408
7408
  setisoutofstock(false);
7409
7409
  }
7410
+ var url = new URL(window.location.href);
7411
+ url.searchParams.set('variant', variantobj.variantid);
7412
+ window.history.replaceState(null, '', url.toString());
7410
7413
  setvariantsku(variantobj === null || variantobj === void 0 ? void 0 : variantobj.sku);
7411
7414
  setcurrentshowingimageindex(variantimageindex);
7412
7415
  setaddtocardpayloadobj(_objectSpread$2B({}, tempaddtocardpayloadobj));
@@ -7680,6 +7683,42 @@
7680
7683
  }
7681
7684
  }
7682
7685
  };
7686
+ var _useState55 = React.useState(false),
7687
+ _useState56 = _slicedToArray__default["default"](_useState55, 2),
7688
+ isVarianturlLoaded = _useState56[0],
7689
+ setisVarianturlLoaded = _useState56[1];
7690
+ React.useEffect(function () {
7691
+ var _authdetailsContext$i10;
7692
+ if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i10 = authdetailsContext.instinfo) === null || _authdetailsContext$i10 === void 0 ? void 0 : _authdetailsContext$i10.contactinfo.instid) == '68f918a4ccb85') {
7693
+ var params = new URLSearchParams(window.location.search);
7694
+ var variantId = params.get('variant');
7695
+ if (isVarianturlLoaded == false) {
7696
+ if (variantId) {
7697
+ if (ProductInfoObj != undefined && ProductInfoObj != null && Object.keys(ProductInfoObj).length != 0) {
7698
+ var _productarr$data$prod3;
7699
+ var productarr = ProductInfoObj;
7700
+ (_productarr$data$prod3 = productarr.data.productinfo) === null || _productarr$data$prod3 === void 0 || _productarr$data$prod3.variants.forEach(function (ProductVariantItem, ProductVariantIndex) {
7701
+ if (ProductVariantItem.variantid == variantId) {
7702
+ ProductVariantItem.variantoptions.forEach(function (varinatoptionitem, variantoptionindex) {
7703
+ productarr.data.productinfo.productoptions.forEach(function (productoptionsitem, productoptionsindex) {
7704
+ var _productoptionsitem$o;
7705
+ productoptionsitem === null || productoptionsitem === void 0 || (_productoptionsitem$o = productoptionsitem.optionvalues) === null || _productoptionsitem$o === void 0 || _productoptionsitem$o.forEach(function (optionvaluesitem, optionvaluesindex) {
7706
+ if (varinatoptionitem.valueid == optionvaluesitem.valueid) {
7707
+ selectproductoptionvalue(productoptionsindex, optionvaluesitem, optionvaluesindex);
7708
+ }
7709
+ });
7710
+ });
7711
+ });
7712
+ }
7713
+ });
7714
+ setisVarianturlLoaded(true);
7715
+ }
7716
+ } else {
7717
+ setisVarianturlLoaded(true);
7718
+ }
7719
+ }
7720
+ }
7721
+ }, [ProductInfoObj]);
7683
7722
  // const DescriptionContent = () => {
7684
7723
  // return (
7685
7724
  // <div class="col-lg-12 pl-5 pr-5 p-md-0 w-100">
@@ -8445,7 +8484,7 @@
8445
8484
  })));
8446
8485
  };
8447
8486
  var StoreInfo = function StoreInfo(position) {
8448
- var _fetchProductInfoQuer77, _authdetailsContext$i11, _returnpolicyobj, _returnpolicyobj2, _returnpolicyobj3, _returnpolicyobj4, _authdetailsContext$i12, _authdetailsContext$i14;
8487
+ var _fetchProductInfoQuer77, _authdetailsContext$i12, _returnpolicyobj, _returnpolicyobj2, _returnpolicyobj3, _returnpolicyobj4, _authdetailsContext$i13, _authdetailsContext$i15;
8449
8488
  return /*#__PURE__*/React__default["default"].createElement("div", {
8450
8489
  "class": sectionproperties.storeinformationcontainerborderwidth != 0 ? 'row m-0 w-100 p-3' : 'row m-0 w-100',
8451
8490
  style: {
@@ -8524,8 +8563,8 @@
8524
8563
  }, authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.CuContactphonenumber))), sectionproperties.showfooteremail == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
8525
8564
  className: "".concat(productinfo_cssstyles.storeinfobtn, " ").concat(productinfo_cssstyles.storeinfocontainer) + ' mb-t col-lg-12 p-0 d-flex align-items-center cursor-pointer ',
8526
8565
  onClick: function onClick() {
8527
- var _authdetailsContext$i10;
8528
- window.open('mailto:' + (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i10 = authdetailsContext.instinfo) === null || _authdetailsContext$i10 === void 0 || (_authdetailsContext$i10 = _authdetailsContext$i10.contactinfo) === null || _authdetailsContext$i10 === void 0 ? void 0 : _authdetailsContext$i10.email), '_self');
8566
+ var _authdetailsContext$i11;
8567
+ window.open('mailto:' + (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i11 = authdetailsContext.instinfo) === null || _authdetailsContext$i11 === void 0 || (_authdetailsContext$i11 = _authdetailsContext$i11.contactinfo) === null || _authdetailsContext$i11 === void 0 ? void 0 : _authdetailsContext$i11.email), '_self');
8529
8568
  }
8530
8569
  }, /*#__PURE__*/React__default["default"].createElement("div", {
8531
8570
  "class": productinfo_cssstyles.iconContainer + ' iconContainer '
@@ -8545,7 +8584,7 @@
8545
8584
  style: {
8546
8585
  textAlign: langdetect == 'en' ? 'left' : 'right'
8547
8586
  }
8548
- }, authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i11 = authdetailsContext.instinfo) === null || _authdetailsContext$i11 === void 0 || (_authdetailsContext$i11 = _authdetailsContext$i11.contactinfo) === null || _authdetailsContext$i11 === void 0 ? void 0 : _authdetailsContext$i11.email))), /*#__PURE__*/React__default["default"].createElement("div", {
8587
+ }, authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i12 = authdetailsContext.instinfo) === null || _authdetailsContext$i12 === void 0 || (_authdetailsContext$i12 = _authdetailsContext$i12.contactinfo) === null || _authdetailsContext$i12 === void 0 ? void 0 : _authdetailsContext$i12.email))), /*#__PURE__*/React__default["default"].createElement("div", {
8549
8588
  "class": "col-lg-12 my-2",
8550
8589
  style: {
8551
8590
  display: sectionproperties.showfirstpolicy_storeinfo == 'Hide' && sectionproperties.showsecondpolicy_storeinfo == 'Hide' ? 'none' : 'block'
@@ -8597,25 +8636,25 @@
8597
8636
  }
8598
8637
  }, /*#__PURE__*/React__default["default"].createElement("p", {
8599
8638
  "class": "m-0 p-0"
8600
- }, langdetect == 'en' ? sectionproperties.phonetitle_en : sectionproperties.phonetitle_ar))), sectionproperties.showfooteremail == 'Show' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i12 = authdetailsContext.instinfo) === null || _authdetailsContext$i12 === void 0 || (_authdetailsContext$i12 = _authdetailsContext$i12.contactinfo) === null || _authdetailsContext$i12 === void 0 ? void 0 : _authdetailsContext$i12.email) != null && /*#__PURE__*/React__default["default"].createElement("div", {
8639
+ }, langdetect == 'en' ? sectionproperties.phonetitle_en : sectionproperties.phonetitle_ar))), sectionproperties.showfooteremail == 'Show' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i13 = authdetailsContext.instinfo) === null || _authdetailsContext$i13 === void 0 || (_authdetailsContext$i13 = _authdetailsContext$i13.contactinfo) === null || _authdetailsContext$i13 === void 0 ? void 0 : _authdetailsContext$i13.email) != null && /*#__PURE__*/React__default["default"].createElement("div", {
8601
8640
  "class": position == 'belowinfo' ? 'col-lg-12 allcentered mb-2 p-0' : 'col-lg-12 allcentered mb-2 p-sm-0'
8602
8641
  }, /*#__PURE__*/React__default["default"].createElement("button", {
8603
8642
  "class": productinfo_cssstyles.storeinfobtn + ' allcentered ',
8604
8643
  onClick: function onClick() {
8605
- var _authdetailsContext$i13;
8606
- window.open('mailto:' + (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i13 = authdetailsContext.instinfo) === null || _authdetailsContext$i13 === void 0 || (_authdetailsContext$i13 = _authdetailsContext$i13.contactinfo) === null || _authdetailsContext$i13 === void 0 ? void 0 : _authdetailsContext$i13.email), '_self');
8644
+ var _authdetailsContext$i14;
8645
+ window.open('mailto:' + (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i14 = authdetailsContext.instinfo) === null || _authdetailsContext$i14 === void 0 || (_authdetailsContext$i14 = _authdetailsContext$i14.contactinfo) === null || _authdetailsContext$i14 === void 0 ? void 0 : _authdetailsContext$i14.email), '_self');
8607
8646
  }
8608
8647
  }, /*#__PURE__*/React__default["default"].createElement("p", {
8609
8648
  "class": "m-0 p-0"
8610
- }, langdetect == 'en' ? sectionproperties.emailtitle_en : sectionproperties.emailtitle_ar))), sectionproperties.showwhatsapp == 'Show' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i14 = authdetailsContext.instinfo) === null || _authdetailsContext$i14 === void 0 ? void 0 : _authdetailsContext$i14.whatsappnumber) != null && /*#__PURE__*/React__default["default"].createElement("div", {
8649
+ }, langdetect == 'en' ? sectionproperties.emailtitle_en : sectionproperties.emailtitle_ar))), sectionproperties.showwhatsapp == 'Show' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i15 = authdetailsContext.instinfo) === null || _authdetailsContext$i15 === void 0 ? void 0 : _authdetailsContext$i15.whatsappnumber) != null && /*#__PURE__*/React__default["default"].createElement("div", {
8611
8650
  "class": position == 'belowinfo' ? 'col-lg-12 allcentered mb-2 p-0' : 'col-lg-12 allcentered mb-2 p-sm-0'
8612
8651
  }, /*#__PURE__*/React__default["default"].createElement("button", {
8613
8652
  "class": productinfo_cssstyles.storeinfobtn + ' allcentered ',
8614
8653
  onClick: function onClick() {
8615
- var _authdetailsContext$i15;
8616
- if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i15 = authdetailsContext.instinfo) === null || _authdetailsContext$i15 === void 0 ? void 0 : _authdetailsContext$i15.whatsappnumber) != null) {
8617
- var _authdetailsContext$i16;
8618
- window.open('https://api.whatsapp.com/send?phone=' + (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i16 = authdetailsContext.instinfo) === null || _authdetailsContext$i16 === void 0 ? void 0 : _authdetailsContext$i16.whatsappnumber), '_blank');
8654
+ var _authdetailsContext$i16;
8655
+ if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i16 = authdetailsContext.instinfo) === null || _authdetailsContext$i16 === void 0 ? void 0 : _authdetailsContext$i16.whatsappnumber) != null) {
8656
+ var _authdetailsContext$i17;
8657
+ window.open('https://api.whatsapp.com/send?phone=' + (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i17 = authdetailsContext.instinfo) === null || _authdetailsContext$i17 === void 0 ? void 0 : _authdetailsContext$i17.whatsappnumber), '_blank');
8619
8658
  }
8620
8659
  }
8621
8660
  }, /*#__PURE__*/React__default["default"].createElement("p", {
@@ -8723,7 +8762,7 @@
8723
8762
  lang: lang,
8724
8763
  srcfromprops: props.srcfromprops
8725
8764
  }, _defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_ref3, "returnpolicyobj", returnpolicyobj), "productinfo_cssstyles", productinfo_cssstyles), "addtocartfunc", addtocartfunc), "selectproductoptionvalue", selectproductoptionvalue), "clearchoosenvaluesbutkeepcurrentvalue", clearchoosenvaluesbutkeepcurrentvalue), "productimagesarray", productimagesarray), "fetchProductInfoQueryContext", fetchProductInfoQueryContext), "sectionproperties", sectionproperties), "addtocardpayloadobj", addtocardpayloadobj), "ProductInfoObj", ProductInfoObj), _defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_ref3, "currentshowingimageindex", currentshowingimageindex), "setcurrentshowingimageindex", setcurrentshowingimageindex), "setaddtocardpayloadobj", setaddtocardpayloadobj), "routingcountext", routingcountext), "AddtoCartMutationContext", AddtoCartMutationContext), "authdetailsContext", authdetailsContext), "addtofavoritescontext", addtofavoritescontext), "StaticPagesLinksContext", StaticPagesLinksContext), "variantindexcompleted", variantindexcompleted), "GeneralAPIMutationContext", GeneralAPIMutationContext), _defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_ref3, "NotificationManager", NotificationManager), "getprice_discountpriceprops", getprice_discountpriceprops), "quantityconditionfoundobjprops", quantityconditionfoundobj), "relatedproducts", relatedproducts), "getQuantityCondition", getQuantityCondition), "StoreInfoprops", StoreInfo), "templatepropcontext", templatepropcontext), "ikimagecredcontext", ikimagecredcontext), "sizeguideimage", sizeguideimage), "setopensizeguidemodal", setopensizeguidemodal), _defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_ref3, "isOptionInStock", isOptionInStock), "addtocartfunc_extras", addtocartfunc_extras), "productpdfsarray", productpdfsarray))
8726
- }), props.srcfromprops != 'templatedraftrouter' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i17 = authdetailsContext.instinfo) === null || _authdetailsContext$i17 === void 0 ? void 0 : _authdetailsContext$i17.contactinfo.instid) != '6852e5ed44e14' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i18 = authdetailsContext.instinfo) === null || _authdetailsContext$i18 === void 0 ? void 0 : _authdetailsContext$i18.contactinfo.instid) != '68a9e83c05b75' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i19 = authdetailsContext.instinfo) === null || _authdetailsContext$i19 === void 0 ? void 0 : _authdetailsContext$i19.contactinfo.instid) != '68c27b4570751' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i20 = authdetailsContext.instinfo) === null || _authdetailsContext$i20 === void 0 ? void 0 : _authdetailsContext$i20.contactinfo.instid) != '68e4efe8cb18e' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i21 = authdetailsContext.instinfo) === null || _authdetailsContext$i21 === void 0 ? void 0 : _authdetailsContext$i21.contactinfo.instid) != '693ae1f70d9a4' && /*#__PURE__*/React__default["default"].createElement("div", {
8765
+ }), props.srcfromprops != 'templatedraftrouter' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i18 = authdetailsContext.instinfo) === null || _authdetailsContext$i18 === void 0 ? void 0 : _authdetailsContext$i18.contactinfo.instid) != '6852e5ed44e14' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i19 = authdetailsContext.instinfo) === null || _authdetailsContext$i19 === void 0 ? void 0 : _authdetailsContext$i19.contactinfo.instid) != '68a9e83c05b75' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i20 = authdetailsContext.instinfo) === null || _authdetailsContext$i20 === void 0 ? void 0 : _authdetailsContext$i20.contactinfo.instid) != '68c27b4570751' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i21 = authdetailsContext.instinfo) === null || _authdetailsContext$i21 === void 0 ? void 0 : _authdetailsContext$i21.contactinfo.instid) != '68e4efe8cb18e' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i22 = authdetailsContext.instinfo) === null || _authdetailsContext$i22 === void 0 ? void 0 : _authdetailsContext$i22.contactinfo.instid) != '693ae1f70d9a4' && /*#__PURE__*/React__default["default"].createElement("div", {
8727
8766
  className: sectionproperties.card_marginLeft != 0 ? ' col-lg-12 p-0 pl-lg-3 pr-lg-3 pl-md-4 pr-md-4 pl-sm-1 pr-sm-1 ' : ' col-lg-12 p-sm-0 ',
8728
8767
  style: {
8729
8768
  paddingLeft: props.srcfromprops == 'Productinfomodel' ? langdetect == 'en' ? sectionproperties.card_marginLeft + 'px' : sectionproperties.card_marginRight + 'px' : 0,
@@ -8914,7 +8953,7 @@
8914
8953
  productinfo_cssstyles: productinfo_cssstyles,
8915
8954
  sectionproperties: sectionproperties
8916
8955
  })
8917
- }))))), props.srcfromprops != 'templatedraftrouter' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i22 = authdetailsContext.instinfo) === null || _authdetailsContext$i22 === void 0 ? void 0 : _authdetailsContext$i22.contactinfo.instid) == '68e4efe8cb18e' && /*#__PURE__*/React__default["default"].createElement("div", {
8956
+ }))))), props.srcfromprops != 'templatedraftrouter' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i23 = authdetailsContext.instinfo) === null || _authdetailsContext$i23 === void 0 ? void 0 : _authdetailsContext$i23.contactinfo.instid) == '68e4efe8cb18e' && /*#__PURE__*/React__default["default"].createElement("div", {
8918
8957
  className: sectionproperties.card_marginLeft != 0 ? ' col-lg-12 p-0 pl-lg-3 pr-lg-3 pl-md-4 pr-md-4 pl-sm-1 pr-sm-1 ' : ' col-lg-12 p-sm-0 ',
8919
8958
  style: {
8920
8959
  paddingLeft: props.srcfromprops == 'Productinfomodel' ? langdetect == 'en' ? sectionproperties.card_marginLeft + 'px' : sectionproperties.card_marginRight + 'px' : 0,
@@ -9065,7 +9104,7 @@
9065
9104
  productinfo_cssstyles: productinfo_cssstyles,
9066
9105
  sectionproperties: sectionproperties
9067
9106
  })
9068
- }))))), props.srcfromprops != 'templatedraftrouter' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i23 = authdetailsContext.instinfo) === null || _authdetailsContext$i23 === void 0 ? void 0 : _authdetailsContext$i23.contactinfo.instid) == '693ae1f70d9a4' && /*#__PURE__*/React__default["default"].createElement("div", {
9107
+ }))))), props.srcfromprops != 'templatedraftrouter' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i24 = authdetailsContext.instinfo) === null || _authdetailsContext$i24 === void 0 ? void 0 : _authdetailsContext$i24.contactinfo.instid) == '693ae1f70d9a4' && /*#__PURE__*/React__default["default"].createElement("div", {
9069
9108
  className: sectionproperties.card_marginLeft != 0 ? ' col-lg-12 p-0 pl-lg-3 pr-lg-3 pl-md-4 pr-md-4 pl-sm-1 pr-sm-1 ' : ' col-lg-12 p-sm-0 ',
9070
9109
  style: {
9071
9110
  paddingLeft: props.srcfromprops == 'Productinfomodel' ? langdetect == 'en' ? sectionproperties.card_marginLeft + 'px' : sectionproperties.card_marginRight + 'px' : 0,
@@ -11867,7 +11906,7 @@
11867
11906
  function ownKeys$2w(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; }
11868
11907
  function _objectSpread$2w(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2w(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2w(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
11869
11908
  var Checkout = function Checkout(props) {
11870
- var _fetchTabexCountriesQ2, _css, _authdetailsContext$i0, _authdetailsContext$i1, _fetchcustomercartQue67, _authdetailsContext$i10, _fetchcustomercartQue68, _authdetailsContext$i11, _authdetailsContext$i12, _authdetailsContext$i13, _authdetailsContext$i14, _authdetailsContext$i15, _fetchcustomercartQue69, _authdetailsContext$i16, _fetchcustomercartQue75, _fetchcustomercartQue76, _fetchcustomercartQue77, _fetchcustomercartQue78, _fetchcustomercartQue79, _fetchcustomercartQue81, _fetchcustomercartQue83, _fetchcustomercartQue85, _fetchcustomercartQue87, _fetchcustomercartQue89, _authdetailsContext$i19, _fetchcustomercartQue91, _authdetailsContext$i20, _fetchcustomercartQue93, _authdetailsContext$i21, _fetchcustomercartQue95, _authdetailsContext$i22, _fetchcustomercartQue97, _authdetailsContext$i23, _fetchcustomercartQue99, _authdetailsContext$i24, _fetchcustomercartQue101, _fetchcustomercartQue103, _fetchcustomercartQue104;
11909
+ var _fetchTabexCountriesQ2, _css, _authdetailsContext$i0, _authdetailsContext$i1, _fetchcustomercartQue67, _authdetailsContext$i10, _fetchcustomercartQue68, _authdetailsContext$i11, _authdetailsContext$i12, _authdetailsContext$i13, _authdetailsContext$i14, _authdetailsContext$i15, _fetchcustomercartQue69, _authdetailsContext$i16, _fetchcustomercartQue75, _fetchcustomercartQue76, _fetchcustomercartQue77, _fetchcustomercartQue78, _fetchcustomercartQue79, _fetchcustomercartQue81, _fetchcustomercartQue83, _fetchcustomercartQue85, _fetchcustomercartQue87, _fetchcustomercartQue89, _authdetailsContext$i19, _fetchcustomercartQue91, _authdetailsContext$i20, _fetchcustomercartQue93, _authdetailsContext$i21, _fetchcustomercartQue95, _authdetailsContext$i22, _fetchcustomercartQue97, _authdetailsContext$i23, _fetchcustomercartQue99, _authdetailsContext$i24, _fetchcustomercartQue101, _authdetailsContext$i25, _fetchcustomercartQue103, _fetchcustomercartQue105, _fetchcustomercartQue106;
11871
11910
  var _useState = React.useState(null),
11872
11911
  _useState2 = _slicedToArray__default["default"](_useState, 2);
11873
11912
  _useState2[0];
@@ -13712,7 +13751,29 @@
13712
13751
  d: "M5,10.75 L8.5,14.25 L19.4,2.3 C18.8333333,1.43333333 18.0333333,1 17,1 L4,1 C2.35,1 1,2.35 1,4 L1,17 C1,18.65 2.35,20 4,20 L17,20 C18.65,20 20,18.65 20,17 L20,7.99769186"
13713
13752
  })), /*#__PURE__*/React__default["default"].createElement("p", {
13714
13753
  className: "".concat(formstyles.checkbox_label) + ' ml-2 mb-0 wordbreak cursor-pointer mr-2 '
13715
- }, langdetect == 'en' ? 'Tamara' : ' تمارا'))), instapaychosen && /*#__PURE__*/React__default["default"].createElement("div", {
13754
+ }, langdetect == 'en' ? 'Tamara' : ' تمارا'))), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i25 = authdetailsContext.instinfo) === null || _authdetailsContext$i25 === void 0 ? void 0 : _authdetailsContext$i25.acceptTabby) == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
13755
+ className: "col-xl-4 col-lg-4 col-md-12 mb-3"
13756
+ }, /*#__PURE__*/React__default["default"].createElement("label", {
13757
+ className: langdetect == 'en' ? "".concat(formstyles.checkbox, " ").concat(checkoutstyles.checkbox, " ") + ' d-flex mb-0 ' : "".concat(formstyles.checkbox, " ").concat(formstyles.checkboxtranslated, " ").concat(checkoutstyles.checkbox, " ") + ' d-flex mb-0 '
13758
+ }, /*#__PURE__*/React__default["default"].createElement("input", {
13759
+ type: "checkbox",
13760
+ className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
13761
+ checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue103 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue103 === void 0 || (_fetchcustomercartQue103 = _fetchcustomercartQue103.data) === null || _fetchcustomercartQue103 === void 0 ? void 0 : _fetchcustomercartQue103.customercart.paymentmethod) == 'Tabby' ? true : false,
13762
+ onChange: function onChange() {
13763
+ var _fetchcustomercartQue104;
13764
+ if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue104 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue104 === void 0 || (_fetchcustomercartQue104 = _fetchcustomercartQue104.data) === null || _fetchcustomercartQue104 === void 0 ? void 0 : _fetchcustomercartQue104.customercart.paymentmethod) != 'Tabby') {
13765
+ cartinfoupdater('paymentmethod', 'Tabby');
13766
+ setinstapaychosen(false);
13767
+ }
13768
+ }
13769
+ }), /*#__PURE__*/React__default["default"].createElement("svg", {
13770
+ viewBox: "0 0 21 21",
13771
+ className: checkoutstyles.svgstyles + ' h-100 '
13772
+ }, /*#__PURE__*/React__default["default"].createElement("path", {
13773
+ d: "M5,10.75 L8.5,14.25 L19.4,2.3 C18.8333333,1.43333333 18.0333333,1 17,1 L4,1 C2.35,1 1,2.35 1,4 L1,17 C1,18.65 2.35,20 4,20 L17,20 C18.65,20 20,18.65 20,17 L20,7.99769186"
13774
+ })), /*#__PURE__*/React__default["default"].createElement("p", {
13775
+ className: "".concat(formstyles.checkbox_label, " ") + ' ml-2 mb-0 wordbreak cursor-pointer mr-2 '
13776
+ }, langdetect == 'en' ? 'Tabby' : 'Tabby'))), instapaychosen && /*#__PURE__*/React__default["default"].createElement("div", {
13716
13777
  "class": "col-12 px-3 px-md-2 my-3"
13717
13778
  }, /*#__PURE__*/React__default["default"].createElement("p", {
13718
13779
  "class": ' pb-0 pl-md-2 pr-md-2 ',
@@ -13722,7 +13783,7 @@
13722
13783
  dangerouslySetInnerHTML: {
13723
13784
  __html: langdetect == 'en' ? sectionproperties.instapayoptioncontenten : sectionproperties.instapayoptioncontentar
13724
13785
  }
13725
- }))))), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue103 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue103 === void 0 || (_fetchcustomercartQue103 = _fetchcustomercartQue103.data) === null || _fetchcustomercartQue103 === void 0 ? void 0 : _fetchcustomercartQue103.customercart.paymentmethod) == 'onlinepayment1' && /*#__PURE__*/React__default["default"].createElement("div", {
13786
+ }))))), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue105 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue105 === void 0 || (_fetchcustomercartQue105 = _fetchcustomercartQue105.data) === null || _fetchcustomercartQue105 === void 0 ? void 0 : _fetchcustomercartQue105.customercart.paymentmethod) == 'onlinepayment1' && /*#__PURE__*/React__default["default"].createElement("div", {
13726
13787
  className: "col-lg-12 p-0 w-100 mb-3"
13727
13788
  }, /*#__PURE__*/React__default["default"].createElement("div", {
13728
13789
  style: {
@@ -13862,7 +13923,7 @@
13862
13923
  color: '#000',
13863
13924
  textAlign: 'center'
13864
13925
  }
13865
- }, fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue104 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue104 === void 0 || (_fetchcustomercartQue104 = _fetchcustomercartQue104.data) === null || _fetchcustomercartQue104 === void 0 || (_fetchcustomercartQue104 = _fetchcustomercartQue104.customercart) === null || _fetchcustomercartQue104 === void 0 ? void 0 : _fetchcustomercartQue104.zonenotes)))), /*#__PURE__*/React__default["default"].createElement(reactBootstrap.Modal.Footer, null)));
13926
+ }, fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue106 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue106 === void 0 || (_fetchcustomercartQue106 = _fetchcustomercartQue106.data) === null || _fetchcustomercartQue106 === void 0 || (_fetchcustomercartQue106 = _fetchcustomercartQue106.customercart) === null || _fetchcustomercartQue106 === void 0 ? void 0 : _fetchcustomercartQue106.zonenotes)))), /*#__PURE__*/React__default["default"].createElement(reactBootstrap.Modal.Footer, null)));
13866
13927
  };
13867
13928
 
13868
13929
  function ownKeys$2v(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.2.1124",
3
+ "version": "0.2.1126",
4
4
  "type": "module",
5
5
  "description": "your description",
6
6
  "main": "dist/index.cjs.js",