tabexseriescomponents 0.50.212 → 0.50.214

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
@@ -2485,7 +2485,7 @@ var Variantoptions = function Variantoptions(props) {
2485
2485
  textTransform: sectionproperties.varianttitle_texttransform,
2486
2486
  fontSize: sectionproperties.varianttitle_fontSize + 'px'
2487
2487
  }
2488
- }, sectionproperties.showselect == 'Show' && /*#__PURE__*/React__default["default"].createElement("span", null, lang.select), " ", '', " ", langdetect == 'en' ? item.optionname : item.optionname_ar, ":", ' ', item.optionname == 'color' && /*#__PURE__*/React__default["default"].createElement("span", {
2488
+ }, sectionproperties.showselect == 'Show' && /*#__PURE__*/React__default["default"].createElement("span", null, lang.select), " ", '', item["optionname_".concat(langdetect)] || item.optionname, item.optionname == 'color' && /*#__PURE__*/React__default["default"].createElement("span", {
2489
2489
  style: {
2490
2490
  color: '#62554a'
2491
2491
  }
@@ -2607,7 +2607,7 @@ var Variantoptions = function Variantoptions(props) {
2607
2607
  fontSize: sectionproperties.variantcontainer_fontSize + 'px',
2608
2608
  fontWeight: 500
2609
2609
  }
2610
- }, langdetect == 'en' ? optionvaluesitem.valuename : optionvaluesitem.valuename_ar));
2610
+ }, optionvaluesitem["valuename_".concat(langdetect)] || optionvaluesitem.valuename));
2611
2611
  }
2612
2612
  } else {
2613
2613
  var _authdetailsContext$i5, _authdetailsContext$i7;
@@ -2646,77 +2646,7 @@ var Variantoptions = function Variantoptions(props) {
2646
2646
  fontSize: sectionproperties.variantcontainer_fontSize + 'px',
2647
2647
  fontWeight: 500
2648
2648
  }
2649
- }, langdetect == 'en' ? optionvaluesitem.valuename : optionvaluesitem.valuename_ar))
2650
- // <div
2651
- // className={
2652
- // productinfostyles.variant_container +
2653
- // ' mr-2 variabttcontainer allcentered pl-2 pr-2 ' +
2654
- // `${isoptionvalueselected == 1 ? productinfostyles.variant_container_active : ''}`
2655
- // }
2656
- // onClick={() => {
2657
- // if (optionvaluesitem.isenabled == 1) {
2658
- // selectproductoptionvalue(index, optionvaluesitem, optionvaluesindex);
2659
- // } else {
2660
- // clearchoosenvaluesbutkeepcurrentvalue(index, optionvaluesitem, optionvaluesindex);
2661
- // }
2662
- // }}
2663
- // style={{
2664
- // backgroundColor:
2665
- // sectionproperties.variantcontainerbordercolor != undefined && sectionproperties.variantcontainerbordercolor != null
2666
- // ? sectionproperties.variantcontainer_bgcolor
2667
- // : isoptionvalueselected == 1
2668
- // ? 'green'
2669
- // : isoptionvaluedenabled == 1
2670
- // ? sectionproperties.variantcontainer_bgcolor
2671
- // : 'grey',
2672
- // width: 'auto',
2673
- // height: sectionproperties.variantcontainer_height + 'px',
2674
- // borderRadius: sectionproperties.variantcontainer_borderBottomLeftRadius + 'px',
2675
- // position: 'relative',
2676
- // // border:
2677
- // // isoptionvalueselected == 1
2678
- // // ? '2px solid green'
2679
- // // : isoptionvaluedenabled == 1
2680
- // // ? '1px solid ' + sectionproperties.variantcontainerbordercolor
2681
- // // : '1px solid ' + ' grey ',
2682
- // border: isoptionvalueselected == 1 ? '2px solid ' + sectionproperties.activeproductcolor : '1px solid #ccc',
2683
- // }}
2684
- // >
2685
- // {isoptionvalueselected == 1 && sectionproperties.showRemovebutton == 'Show' && (
2686
- // <p
2687
- // class="m-0 p-0 bg-danger bgdanger-hover"
2688
- // style={{
2689
- // position: 'absolute',
2690
- // top: '-15px',
2691
- // right: '-5px',
2692
- // width: '3vh',
2693
- // height: '3vh',
2694
- // borderRadius: 100,
2695
- // }}
2696
- // >
2697
- // <i class="h-100 allcentered">
2698
- // <IoMdClose />
2699
- // </i>
2700
- // </p>
2701
- // )}
2702
- // <p
2703
- // className={'m-0 p-0 allcentered'}
2704
- // style={{
2705
- // fontWeight: 500,
2706
- // // color: sectionproperties.variantcontainer_color,
2707
- // fontSize: sectionproperties.variantcontainer_fontSize + 'px',
2708
- // color:
2709
- // sectionproperties.variantcontainerbordercolor != undefined &&
2710
- // sectionproperties.variantcontainerbordercolor != null &&
2711
- // isoptionvalueselected == 1
2712
- // ? sectionproperties.activeproductcolor
2713
- // : sectionproperties.variantcontainer_color,
2714
- // }}
2715
- // >
2716
- // sad {langdetect == 'en' ? optionvaluesitem.valuename : optionvaluesitem.valuename_ar}
2717
- // </p>
2718
- // </div>
2719
- ;
2649
+ }, optionvaluesitem["valuename_".concat(langdetect)] || optionvaluesitem.valuename));
2720
2650
  }
2721
2651
  }))));
2722
2652
  })))), sectionproperties.showsizeguidebtn == 'Show' && sizeguideimage.length != 0 && sectionproperties.sizeguideposition == 'Besides Variants' && /*#__PURE__*/React__default["default"].createElement("div", {
@@ -2763,7 +2693,7 @@ var Variantoptions = function Variantoptions(props) {
2763
2693
  textTransform: sectionproperties.varianttitle_texttransform,
2764
2694
  fontSize: sectionproperties.varianttitle_fontSize + 'px'
2765
2695
  }
2766
- }, sectionproperties.showselect == 'Show' && /*#__PURE__*/React__default["default"].createElement("span", null, lang.select), " ", '', " ", langdetect == 'en' ? item.optionname : item.optionname_ar, ":"))), item.optionvalues.map(function (optionvaluesitem, optionvaluesindex) {
2696
+ }, sectionproperties.showselect == 'Show' && /*#__PURE__*/React__default["default"].createElement("span", null, lang.select), " ", '', " ", item["optionname_".concat(langdetect)] || item.optionname, ":"))), item.optionvalues.map(function (optionvaluesitem, optionvaluesindex) {
2767
2697
  var isoptionvalueselected = 0;
2768
2698
  if (optionvaluesitem.isselected == 1) {
2769
2699
  isoptionvalueselected = 1;
@@ -2793,11 +2723,9 @@ var Variantoptions = function Variantoptions(props) {
2793
2723
  style: {
2794
2724
  background: optionvaluesitem.valuename,
2795
2725
  opacity: isoptionvaluedenabled == 1 ? 1 : 0.2
2796
- // cursor: isoptionvaluedenabled == 1 ? 'pointer' : 'not-allowed',
2797
2726
  }
2798
2727
  }));
2799
2728
  } else {
2800
- // else if (item.optionname == 'size' || item.optionname == 'Size') {
2801
2729
  return /*#__PURE__*/React__default["default"].createElement("li", {
2802
2730
  style: {
2803
2731
  width: 'auto'
@@ -2812,8 +2740,6 @@ var Variantoptions = function Variantoptions(props) {
2812
2740
  }
2813
2741
  },
2814
2742
  style: {
2815
- // cursor: isoptionvaluedenabled == 1 ? 'pointer' : 'not-allowed',
2816
- // backgroundColor: isoptionvalueselected == 1 ? 'green' : isoptionvaluedenabled == 1 ? sectionproperties.variantcontainer_bgcolor : 'grey',
2817
2743
  background: sectionproperties.variantcontainerbordercolor != undefined && sectionproperties.variantcontainerbordercolor != null ? sectionproperties.variantcontainer_bgcolor : isoptionvalueselected == 1 ? 'green' : isoptionvaluedenabled == 1 ? sectionproperties.variantcontainer_bgcolor : 'grey',
2818
2744
  minWidth: sectionproperties.variantcontainer_minwidth + 'px',
2819
2745
  height: sectionproperties.variantcontainer_height + 'px',
@@ -2828,66 +2754,8 @@ var Variantoptions = function Variantoptions(props) {
2828
2754
  fontSize: sectionproperties.variantcontainer_fontSize + 'px',
2829
2755
  fontWeight: 500
2830
2756
  }
2831
- }, langdetect == 'en' ? optionvaluesitem.valuename : optionvaluesitem.valuename_ar)));
2757
+ }, optionvaluesitem["valuename_".concat(langdetect)] || optionvaluesitem.valuename)));
2832
2758
  }
2833
- // else {
2834
- // return (
2835
- // <li
2836
- // style={{
2837
- // width: 'auto',
2838
- // }}
2839
- // >
2840
- // <div
2841
- // className={
2842
- // productinfostyles.variant_container +
2843
- // ' mx-2 mb-2 variabttcontainer allcentered pl-2 pr-2 ' +
2844
- // `${isoptionvalueselected == 1 ? productinfostyles.variant_container_active : ''}`
2845
- // }
2846
- // onClick={() => {
2847
- // if (optionvaluesitem.isenabled == 1) {
2848
- // selectproductoptionvalue(index, optionvaluesitem, optionvaluesindex);
2849
- // } else {
2850
- // clearchoosenvaluesbutkeepcurrentvalue(index, optionvaluesitem, optionvaluesindex);
2851
- // }
2852
- // }}
2853
- // style={{
2854
- // backgroundColor: isoptionvalueselected == 1 ? 'green' : isoptionvaluedenabled == 1 ? sectionproperties.variantcontainer_bgcolor : 'grey',
2855
- // width: 'auto',
2856
- // height: sectionproperties.variantcontainer_height + 'px',
2857
- // borderRadius: sectionproperties.variantcontainer_borderBottomLeftRadius + 'px',
2858
- // position: 'relative',
2859
- // }}
2860
- // >
2861
- // {isoptionvalueselected == 1 && sectionproperties.showRemovebutton == 'Show' && (
2862
- // <p
2863
- // class="m-0 p-0 bg-danger bgdanger-hover"
2864
- // style={{
2865
- // position: 'absolute',
2866
- // top: '-15px',
2867
- // right: '-5px',
2868
- // width: '3vh',
2869
- // height: '3vh',
2870
- // borderRadius: 100,
2871
- // }}
2872
- // >
2873
- // <i class="h-100 allcentered">
2874
- // <IoMdClose />
2875
- // </i>
2876
- // </p>
2877
- // )}
2878
- // <p
2879
- // className={'m-0 p-0 allcentered'}
2880
- // style={{
2881
- // color: sectionproperties.variantcontainer_color,
2882
- // fontSize: sectionproperties.variantcontainer_fontSize + 'px',
2883
- // }}
2884
- // >
2885
- // {langdetect == 'en' ? optionvaluesitem.valuename : optionvaluesitem.valuename_ar}
2886
- // </p>
2887
- // </div>
2888
- // </li>
2889
- // );
2890
- // }
2891
2759
  }));
2892
2760
  })), sectionproperties.variantstyle == 'Select Box' && (ProductInfoObj === null || ProductInfoObj === void 0 || (_ProductInfoObj$data6 = ProductInfoObj.data) === null || _ProductInfoObj$data6 === void 0 || (_ProductInfoObj$data6 = _ProductInfoObj$data6.productinfo) === null || _ProductInfoObj$data6 === void 0 || (_ProductInfoObj$data6 = _ProductInfoObj$data6.productoptions) === null || _ProductInfoObj$data6 === void 0 ? void 0 : _ProductInfoObj$data6.map(function (item, index) {
2893
2761
  var orgselectoptions = [];
@@ -2898,13 +2766,6 @@ var Variantoptions = function Variantoptions(props) {
2898
2766
  // optionvaluesitem.isselected
2899
2767
  }
2900
2768
  orgselectoptions.forEach(function (getselcitem, getselindex) {
2901
- // if (getselcitem.isselected == 1 && issingleoptionoutofstock(getselcitem)['isoutofstock'] == true && sectionproperties.showoutofstockwithoutselection == 'Show') {
2902
- // selecteditemid = getselcitem.valueid + langdetect == 'en' ? '(Unavailable)' : 'غير متاح';
2903
- // } else if (getselcitem.isselected == 1 && sectionproperties.showoutofstockwithoutselection == 'Hide') {
2904
- // selecteditemid = getselcitem.valueid;
2905
- // } else {
2906
- // selecteditemid = getselcitem.valueid;
2907
- // }
2908
2769
  if (getselcitem.isselected == 1) {
2909
2770
  selecteditemid = getselcitem.valueid;
2910
2771
  }
@@ -2919,7 +2780,7 @@ var Variantoptions = function Variantoptions(props) {
2919
2780
  textTransform: sectionproperties.varianttitle_texttransform,
2920
2781
  fontSize: sectionproperties.varianttitle_fontSize + 'px'
2921
2782
  }
2922
- }, langdetect == 'en' ? item.optionname : item.optionname_ar), /*#__PURE__*/React__default["default"].createElement("div", {
2783
+ }, item["optionname_".concat(langdetect)] || item.optionname), /*#__PURE__*/React__default["default"].createElement("div", {
2923
2784
  style: {
2924
2785
  width: '100%'
2925
2786
  },
@@ -5599,7 +5460,7 @@ var Product_itemtype = function Product_itemtype(props) {
5599
5460
  size: sectionproperties.cartBtn_iconFontSize
5600
5461
  }), sectionproperties.carticonstyle == 'Shopping cart 2' && /*#__PURE__*/React__default["default"].createElement(MdAddShoppingCart.MdAddShoppingCart, {
5601
5462
  size: sectionproperties.cartBtn_iconFontSize
5602
- })), langdetect == 'ar' ? sectionproperties.cartBtnContentarabic : sectionproperties["cartBtnContentrus".concat(langdetect)] || sectionproperties.cartBtnContentenglish), AddtoCartMutationContext.isLoading && /*#__PURE__*/React__default["default"].createElement("div", {
5463
+ })), sectionproperties["cartBtnContent".concat(langdetect)] || sectionproperties.cartBtnContentenglish), AddtoCartMutationContext.isLoading && /*#__PURE__*/React__default["default"].createElement("div", {
5603
5464
  className: ' d-flex align-items-center justify-content-center '
5604
5465
  }, /*#__PURE__*/React__default["default"].createElement(reactCssfxLoading.CircularProgress, {
5605
5466
  color: sectionproperties.cartBtnTextcolor,
@@ -5688,7 +5549,7 @@ var Product_itemtype = function Product_itemtype(props) {
5688
5549
  size: sectionproperties.cartBtn_iconFontSize
5689
5550
  }), sectionproperties.carticonstyle == 'Shopping cart 2' && /*#__PURE__*/React__default["default"].createElement(MdAddShoppingCart.MdAddShoppingCart, {
5690
5551
  size: sectionproperties.cartBtn_iconFontSize
5691
- })), langdetect == 'ar' ? sectionproperties.cartBtnContentarabic : sectionproperties["cartBtnContentrus".concat(langdetect)] || sectionproperties.cartBtnContentenglish), AddtoCartMutationContext.isLoading && /*#__PURE__*/React__default["default"].createElement("div", {
5552
+ })), sectionproperties["cartBtnContent".concat(langdetect)] || sectionproperties.cartBtnContentenglish), AddtoCartMutationContext.isLoading && /*#__PURE__*/React__default["default"].createElement("div", {
5692
5553
  className: ' d-flex align-items-center justify-content-center '
5693
5554
  }, /*#__PURE__*/React__default["default"].createElement(reactCssfxLoading.CircularProgress, {
5694
5555
  color: sectionproperties.cartBtnTextcolor,
@@ -6240,7 +6101,7 @@ var Product_itemtype = function Product_itemtype(props) {
6240
6101
  function ownKeys$2D(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; }
6241
6102
  function _objectSpread$2D(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2D(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2D(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
6242
6103
  var Serviceinfotabs = function Serviceinfotabs(props) {
6243
- var _fetchProductInfoQuer10, _fetchProductInfoQuer11, _fetchProductInfoQuer12, _fetchProductInfoQuer13, _authdetailsContext$i, _fetchProductInfoQuer14, _fetchProductInfoQuer15, _fetchProductInfoQuer18, _fetchProductInfoQuer19, _fetchProductInfoQuer22, _fetchProductInfoQuer23;
6104
+ var _fetchProductInfoQuer10, _fetchProductInfoQuer11, _fetchProductInfoQuer12, _fetchProductInfoQuer13, _authdetailsContext$i, _fetchProductInfoQuer14, _fetchProductInfoQuer15;
6244
6105
  var langdetect = props.actions.langdetect;
6245
6106
  var lang = props.actions.lang;
6246
6107
  var sectionproperties = props.actions.sectionproperties;
@@ -7044,7 +6905,7 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
7044
6905
  size: sectionproperties.cartBtn_iconFontSize
7045
6906
  }), sectionproperties.carticonstyle == 'Shopping cart 2' && /*#__PURE__*/React__default["default"].createElement(MdAddShoppingCart.MdAddShoppingCart, {
7046
6907
  size: sectionproperties.cartBtn_iconFontSize
7047
- })), sectionproperties.overwritecertbtntext == 'Yes' ? langdetect != 'ar' ? sectionproperties.cartBtnContentenglish : sectionproperties.cartBtnContentarabic : langdetect != 'ar' ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer18 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer18 === void 0 || (_fetchProductInfoQuer18 = _fetchProductInfoQuer18.data) === null || _fetchProductInfoQuer18 === void 0 || (_fetchProductInfoQuer18 = _fetchProductInfoQuer18.productinfo) === null || _fetchProductInfoQuer18 === void 0 ? void 0 : _fetchProductInfoQuer18.productactionbuttontext_en : fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer19 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer19 === void 0 || (_fetchProductInfoQuer19 = _fetchProductInfoQuer19.data) === null || _fetchProductInfoQuer19 === void 0 || (_fetchProductInfoQuer19 = _fetchProductInfoQuer19.productinfo) === null || _fetchProductInfoQuer19 === void 0 ? void 0 : _fetchProductInfoQuer19.productactionbuttontext_ar), AddtoCartMutationContext.isLoading && /*#__PURE__*/React__default["default"].createElement("div", {
6908
+ })), sectionproperties["cartBtnContent".concat(langdetect)] || sectionproperties.cartBtnContentenglish), AddtoCartMutationContext.isLoading && /*#__PURE__*/React__default["default"].createElement("div", {
7048
6909
  className: ' d-flex align-items-center justify-content-center '
7049
6910
  }, /*#__PURE__*/React__default["default"].createElement(reactCssfxLoading.CircularProgress, {
7050
6911
  color: "white",
@@ -7086,15 +6947,15 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
7086
6947
  }, /*#__PURE__*/React__default["default"].createElement("button", {
7087
6948
  className: "".concat(productinfo_cssstyles.cart_btn) + ' w-100 d-flex align-items-center justify-content-center ',
7088
6949
  onClick: function onClick() {
7089
- var _fetchProductInfoQuer20, _fetchProductInfoQuer21;
7090
- if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer20 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer20 === void 0 || (_fetchProductInfoQuer20 = _fetchProductInfoQuer20.data) === null || _fetchProductInfoQuer20 === void 0 || (_fetchProductInfoQuer20 = _fetchProductInfoQuer20.productinfo) === null || _fetchProductInfoQuer20 === void 0 || (_fetchProductInfoQuer20 = _fetchProductInfoQuer20.serviceinfo) === null || _fetchProductInfoQuer20 === void 0 ? void 0 : _fetchProductInfoQuer20.scheduletype) == 'days') {
6950
+ var _fetchProductInfoQuer18, _fetchProductInfoQuer19;
6951
+ if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer18 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer18 === void 0 || (_fetchProductInfoQuer18 = _fetchProductInfoQuer18.data) === null || _fetchProductInfoQuer18 === void 0 || (_fetchProductInfoQuer18 = _fetchProductInfoQuer18.productinfo) === null || _fetchProductInfoQuer18 === void 0 || (_fetchProductInfoQuer18 = _fetchProductInfoQuer18.serviceinfo) === null || _fetchProductInfoQuer18 === void 0 ? void 0 : _fetchProductInfoQuer18.scheduletype) == 'days') {
7091
6952
  if (addtocardpayloadobj.from.length != 0 && addtocardpayloadobj.to.length != 0 && addtocardpayloadobj.quantity != 0) {
7092
6953
  addtocartfunc();
7093
6954
  if (sectionproperties.cartbtntype == 'Goes to checkout') {
7094
6955
  routingcountext(StaticPagesLinksContext.Checkout);
7095
6956
  }
7096
6957
  }
7097
- } else if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer21 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer21 === void 0 || (_fetchProductInfoQuer21 = _fetchProductInfoQuer21.data) === null || _fetchProductInfoQuer21 === void 0 || (_fetchProductInfoQuer21 = _fetchProductInfoQuer21.productinfo) === null || _fetchProductInfoQuer21 === void 0 || (_fetchProductInfoQuer21 = _fetchProductInfoQuer21.serviceinfo) === null || _fetchProductInfoQuer21 === void 0 ? void 0 : _fetchProductInfoQuer21.scheduletype) == 'minutes') {
6958
+ } else if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer19 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer19 === void 0 || (_fetchProductInfoQuer19 = _fetchProductInfoQuer19.data) === null || _fetchProductInfoQuer19 === void 0 || (_fetchProductInfoQuer19 = _fetchProductInfoQuer19.productinfo) === null || _fetchProductInfoQuer19 === void 0 || (_fetchProductInfoQuer19 = _fetchProductInfoQuer19.serviceinfo) === null || _fetchProductInfoQuer19 === void 0 ? void 0 : _fetchProductInfoQuer19.scheduletype) == 'minutes') {
7098
6959
  if (addtocardpayloadobj.date.length != 0 && addtocardpayloadobj.time.length != 0) {
7099
6960
  addtocartfunc();
7100
6961
  if (sectionproperties.cartbtntype == 'Goes to checkout') {
@@ -7127,7 +6988,7 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
7127
6988
  size: sectionproperties.cartBtn_iconFontSize
7128
6989
  }), sectionproperties.carticonstyle == 'Shopping cart 2' && /*#__PURE__*/React__default["default"].createElement(MdAddShoppingCart.MdAddShoppingCart, {
7129
6990
  size: sectionproperties.cartBtn_iconFontSize
7130
- })), sectionproperties.overwritecertbtntext == 'Yes' ? langdetect != 'ar' ? sectionproperties.cartBtnContentenglish : sectionproperties.cartBtnContentarabic : langdetect != 'ar' ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer22 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer22 === void 0 || (_fetchProductInfoQuer22 = _fetchProductInfoQuer22.data) === null || _fetchProductInfoQuer22 === void 0 || (_fetchProductInfoQuer22 = _fetchProductInfoQuer22.productinfo) === null || _fetchProductInfoQuer22 === void 0 ? void 0 : _fetchProductInfoQuer22.productactionbuttontext_en : fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer23 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer23 === void 0 || (_fetchProductInfoQuer23 = _fetchProductInfoQuer23.data) === null || _fetchProductInfoQuer23 === void 0 || (_fetchProductInfoQuer23 = _fetchProductInfoQuer23.productinfo) === null || _fetchProductInfoQuer23 === void 0 ? void 0 : _fetchProductInfoQuer23.productactionbuttontext_ar), AddtoCartMutationContext.isLoading && /*#__PURE__*/React__default["default"].createElement("div", {
6991
+ })), sectionproperties["cartBtnContent".concat(langdetect)] || sectionproperties.cartBtnContentenglish), AddtoCartMutationContext.isLoading && /*#__PURE__*/React__default["default"].createElement("div", {
7131
6992
  className: ' d-flex align-items-center justify-content-center '
7132
6993
  }, /*#__PURE__*/React__default["default"].createElement(reactCssfxLoading.CircularProgress, {
7133
6994
  color: "white",
@@ -7171,13 +7032,13 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
7171
7032
  }, /*#__PURE__*/React__default["default"].createElement("button", {
7172
7033
  className: "".concat(productinfo_cssstyles.checkoutbtn, " ") + ' d-flex align-items-center justify-content-center ml-sm-auto mr-sm-auto mb-sm-2 ',
7173
7034
  onClick: function onClick() {
7174
- var _fetchProductInfoQuer24, _fetchProductInfoQuer25;
7175
- if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer24 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer24 === void 0 || (_fetchProductInfoQuer24 = _fetchProductInfoQuer24.data) === null || _fetchProductInfoQuer24 === void 0 || (_fetchProductInfoQuer24 = _fetchProductInfoQuer24.productinfo) === null || _fetchProductInfoQuer24 === void 0 || (_fetchProductInfoQuer24 = _fetchProductInfoQuer24.serviceinfo) === null || _fetchProductInfoQuer24 === void 0 ? void 0 : _fetchProductInfoQuer24.scheduletype) == 'days') {
7035
+ var _fetchProductInfoQuer20, _fetchProductInfoQuer21;
7036
+ if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer20 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer20 === void 0 || (_fetchProductInfoQuer20 = _fetchProductInfoQuer20.data) === null || _fetchProductInfoQuer20 === void 0 || (_fetchProductInfoQuer20 = _fetchProductInfoQuer20.productinfo) === null || _fetchProductInfoQuer20 === void 0 || (_fetchProductInfoQuer20 = _fetchProductInfoQuer20.serviceinfo) === null || _fetchProductInfoQuer20 === void 0 ? void 0 : _fetchProductInfoQuer20.scheduletype) == 'days') {
7176
7037
  if (addtocardpayloadobj.from.length != 0 && addtocardpayloadobj.to.length != 0 && addtocardpayloadobj.quantity != 0) {
7177
7038
  addtocartfunc();
7178
7039
  routingcountext(StaticPagesLinksContext.Checkout);
7179
7040
  }
7180
- } else if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer25 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer25 === void 0 || (_fetchProductInfoQuer25 = _fetchProductInfoQuer25.data) === null || _fetchProductInfoQuer25 === void 0 || (_fetchProductInfoQuer25 = _fetchProductInfoQuer25.productinfo) === null || _fetchProductInfoQuer25 === void 0 || (_fetchProductInfoQuer25 = _fetchProductInfoQuer25.serviceinfo) === null || _fetchProductInfoQuer25 === void 0 ? void 0 : _fetchProductInfoQuer25.scheduletype) == 'minutes') {
7041
+ } else if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer21 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer21 === void 0 || (_fetchProductInfoQuer21 = _fetchProductInfoQuer21.data) === null || _fetchProductInfoQuer21 === void 0 || (_fetchProductInfoQuer21 = _fetchProductInfoQuer21.productinfo) === null || _fetchProductInfoQuer21 === void 0 || (_fetchProductInfoQuer21 = _fetchProductInfoQuer21.serviceinfo) === null || _fetchProductInfoQuer21 === void 0 ? void 0 : _fetchProductInfoQuer21.scheduletype) == 'minutes') {
7181
7042
  if (addtocardpayloadobj.date.length != 0 && addtocardpayloadobj.time.length != 0) {
7182
7043
  addtocartfunc();
7183
7044
  routingcountext(StaticPagesLinksContext.Checkout);
package/dist/index.esm.js CHANGED
@@ -2433,7 +2433,7 @@ var Variantoptions = function Variantoptions(props) {
2433
2433
  textTransform: sectionproperties.varianttitle_texttransform,
2434
2434
  fontSize: sectionproperties.varianttitle_fontSize + 'px'
2435
2435
  }
2436
- }, sectionproperties.showselect == 'Show' && /*#__PURE__*/React.createElement("span", null, lang.select), " ", '', " ", langdetect == 'en' ? item.optionname : item.optionname_ar, ":", ' ', item.optionname == 'color' && /*#__PURE__*/React.createElement("span", {
2436
+ }, sectionproperties.showselect == 'Show' && /*#__PURE__*/React.createElement("span", null, lang.select), " ", '', item["optionname_".concat(langdetect)] || item.optionname, item.optionname == 'color' && /*#__PURE__*/React.createElement("span", {
2437
2437
  style: {
2438
2438
  color: '#62554a'
2439
2439
  }
@@ -2555,7 +2555,7 @@ var Variantoptions = function Variantoptions(props) {
2555
2555
  fontSize: sectionproperties.variantcontainer_fontSize + 'px',
2556
2556
  fontWeight: 500
2557
2557
  }
2558
- }, langdetect == 'en' ? optionvaluesitem.valuename : optionvaluesitem.valuename_ar));
2558
+ }, optionvaluesitem["valuename_".concat(langdetect)] || optionvaluesitem.valuename));
2559
2559
  }
2560
2560
  } else {
2561
2561
  var _authdetailsContext$i5, _authdetailsContext$i7;
@@ -2594,77 +2594,7 @@ var Variantoptions = function Variantoptions(props) {
2594
2594
  fontSize: sectionproperties.variantcontainer_fontSize + 'px',
2595
2595
  fontWeight: 500
2596
2596
  }
2597
- }, langdetect == 'en' ? optionvaluesitem.valuename : optionvaluesitem.valuename_ar))
2598
- // <div
2599
- // className={
2600
- // productinfostyles.variant_container +
2601
- // ' mr-2 variabttcontainer allcentered pl-2 pr-2 ' +
2602
- // `${isoptionvalueselected == 1 ? productinfostyles.variant_container_active : ''}`
2603
- // }
2604
- // onClick={() => {
2605
- // if (optionvaluesitem.isenabled == 1) {
2606
- // selectproductoptionvalue(index, optionvaluesitem, optionvaluesindex);
2607
- // } else {
2608
- // clearchoosenvaluesbutkeepcurrentvalue(index, optionvaluesitem, optionvaluesindex);
2609
- // }
2610
- // }}
2611
- // style={{
2612
- // backgroundColor:
2613
- // sectionproperties.variantcontainerbordercolor != undefined && sectionproperties.variantcontainerbordercolor != null
2614
- // ? sectionproperties.variantcontainer_bgcolor
2615
- // : isoptionvalueselected == 1
2616
- // ? 'green'
2617
- // : isoptionvaluedenabled == 1
2618
- // ? sectionproperties.variantcontainer_bgcolor
2619
- // : 'grey',
2620
- // width: 'auto',
2621
- // height: sectionproperties.variantcontainer_height + 'px',
2622
- // borderRadius: sectionproperties.variantcontainer_borderBottomLeftRadius + 'px',
2623
- // position: 'relative',
2624
- // // border:
2625
- // // isoptionvalueselected == 1
2626
- // // ? '2px solid green'
2627
- // // : isoptionvaluedenabled == 1
2628
- // // ? '1px solid ' + sectionproperties.variantcontainerbordercolor
2629
- // // : '1px solid ' + ' grey ',
2630
- // border: isoptionvalueselected == 1 ? '2px solid ' + sectionproperties.activeproductcolor : '1px solid #ccc',
2631
- // }}
2632
- // >
2633
- // {isoptionvalueselected == 1 && sectionproperties.showRemovebutton == 'Show' && (
2634
- // <p
2635
- // class="m-0 p-0 bg-danger bgdanger-hover"
2636
- // style={{
2637
- // position: 'absolute',
2638
- // top: '-15px',
2639
- // right: '-5px',
2640
- // width: '3vh',
2641
- // height: '3vh',
2642
- // borderRadius: 100,
2643
- // }}
2644
- // >
2645
- // <i class="h-100 allcentered">
2646
- // <IoMdClose />
2647
- // </i>
2648
- // </p>
2649
- // )}
2650
- // <p
2651
- // className={'m-0 p-0 allcentered'}
2652
- // style={{
2653
- // fontWeight: 500,
2654
- // // color: sectionproperties.variantcontainer_color,
2655
- // fontSize: sectionproperties.variantcontainer_fontSize + 'px',
2656
- // color:
2657
- // sectionproperties.variantcontainerbordercolor != undefined &&
2658
- // sectionproperties.variantcontainerbordercolor != null &&
2659
- // isoptionvalueselected == 1
2660
- // ? sectionproperties.activeproductcolor
2661
- // : sectionproperties.variantcontainer_color,
2662
- // }}
2663
- // >
2664
- // sad {langdetect == 'en' ? optionvaluesitem.valuename : optionvaluesitem.valuename_ar}
2665
- // </p>
2666
- // </div>
2667
- ;
2597
+ }, optionvaluesitem["valuename_".concat(langdetect)] || optionvaluesitem.valuename));
2668
2598
  }
2669
2599
  }))));
2670
2600
  })))), sectionproperties.showsizeguidebtn == 'Show' && sizeguideimage.length != 0 && sectionproperties.sizeguideposition == 'Besides Variants' && /*#__PURE__*/React.createElement("div", {
@@ -2711,7 +2641,7 @@ var Variantoptions = function Variantoptions(props) {
2711
2641
  textTransform: sectionproperties.varianttitle_texttransform,
2712
2642
  fontSize: sectionproperties.varianttitle_fontSize + 'px'
2713
2643
  }
2714
- }, sectionproperties.showselect == 'Show' && /*#__PURE__*/React.createElement("span", null, lang.select), " ", '', " ", langdetect == 'en' ? item.optionname : item.optionname_ar, ":"))), item.optionvalues.map(function (optionvaluesitem, optionvaluesindex) {
2644
+ }, sectionproperties.showselect == 'Show' && /*#__PURE__*/React.createElement("span", null, lang.select), " ", '', " ", item["optionname_".concat(langdetect)] || item.optionname, ":"))), item.optionvalues.map(function (optionvaluesitem, optionvaluesindex) {
2715
2645
  var isoptionvalueselected = 0;
2716
2646
  if (optionvaluesitem.isselected == 1) {
2717
2647
  isoptionvalueselected = 1;
@@ -2741,11 +2671,9 @@ var Variantoptions = function Variantoptions(props) {
2741
2671
  style: {
2742
2672
  background: optionvaluesitem.valuename,
2743
2673
  opacity: isoptionvaluedenabled == 1 ? 1 : 0.2
2744
- // cursor: isoptionvaluedenabled == 1 ? 'pointer' : 'not-allowed',
2745
2674
  }
2746
2675
  }));
2747
2676
  } else {
2748
- // else if (item.optionname == 'size' || item.optionname == 'Size') {
2749
2677
  return /*#__PURE__*/React.createElement("li", {
2750
2678
  style: {
2751
2679
  width: 'auto'
@@ -2760,8 +2688,6 @@ var Variantoptions = function Variantoptions(props) {
2760
2688
  }
2761
2689
  },
2762
2690
  style: {
2763
- // cursor: isoptionvaluedenabled == 1 ? 'pointer' : 'not-allowed',
2764
- // backgroundColor: isoptionvalueselected == 1 ? 'green' : isoptionvaluedenabled == 1 ? sectionproperties.variantcontainer_bgcolor : 'grey',
2765
2691
  background: sectionproperties.variantcontainerbordercolor != undefined && sectionproperties.variantcontainerbordercolor != null ? sectionproperties.variantcontainer_bgcolor : isoptionvalueselected == 1 ? 'green' : isoptionvaluedenabled == 1 ? sectionproperties.variantcontainer_bgcolor : 'grey',
2766
2692
  minWidth: sectionproperties.variantcontainer_minwidth + 'px',
2767
2693
  height: sectionproperties.variantcontainer_height + 'px',
@@ -2776,66 +2702,8 @@ var Variantoptions = function Variantoptions(props) {
2776
2702
  fontSize: sectionproperties.variantcontainer_fontSize + 'px',
2777
2703
  fontWeight: 500
2778
2704
  }
2779
- }, langdetect == 'en' ? optionvaluesitem.valuename : optionvaluesitem.valuename_ar)));
2705
+ }, optionvaluesitem["valuename_".concat(langdetect)] || optionvaluesitem.valuename)));
2780
2706
  }
2781
- // else {
2782
- // return (
2783
- // <li
2784
- // style={{
2785
- // width: 'auto',
2786
- // }}
2787
- // >
2788
- // <div
2789
- // className={
2790
- // productinfostyles.variant_container +
2791
- // ' mx-2 mb-2 variabttcontainer allcentered pl-2 pr-2 ' +
2792
- // `${isoptionvalueselected == 1 ? productinfostyles.variant_container_active : ''}`
2793
- // }
2794
- // onClick={() => {
2795
- // if (optionvaluesitem.isenabled == 1) {
2796
- // selectproductoptionvalue(index, optionvaluesitem, optionvaluesindex);
2797
- // } else {
2798
- // clearchoosenvaluesbutkeepcurrentvalue(index, optionvaluesitem, optionvaluesindex);
2799
- // }
2800
- // }}
2801
- // style={{
2802
- // backgroundColor: isoptionvalueselected == 1 ? 'green' : isoptionvaluedenabled == 1 ? sectionproperties.variantcontainer_bgcolor : 'grey',
2803
- // width: 'auto',
2804
- // height: sectionproperties.variantcontainer_height + 'px',
2805
- // borderRadius: sectionproperties.variantcontainer_borderBottomLeftRadius + 'px',
2806
- // position: 'relative',
2807
- // }}
2808
- // >
2809
- // {isoptionvalueselected == 1 && sectionproperties.showRemovebutton == 'Show' && (
2810
- // <p
2811
- // class="m-0 p-0 bg-danger bgdanger-hover"
2812
- // style={{
2813
- // position: 'absolute',
2814
- // top: '-15px',
2815
- // right: '-5px',
2816
- // width: '3vh',
2817
- // height: '3vh',
2818
- // borderRadius: 100,
2819
- // }}
2820
- // >
2821
- // <i class="h-100 allcentered">
2822
- // <IoMdClose />
2823
- // </i>
2824
- // </p>
2825
- // )}
2826
- // <p
2827
- // className={'m-0 p-0 allcentered'}
2828
- // style={{
2829
- // color: sectionproperties.variantcontainer_color,
2830
- // fontSize: sectionproperties.variantcontainer_fontSize + 'px',
2831
- // }}
2832
- // >
2833
- // {langdetect == 'en' ? optionvaluesitem.valuename : optionvaluesitem.valuename_ar}
2834
- // </p>
2835
- // </div>
2836
- // </li>
2837
- // );
2838
- // }
2839
2707
  }));
2840
2708
  })), sectionproperties.variantstyle == 'Select Box' && (ProductInfoObj === null || ProductInfoObj === void 0 || (_ProductInfoObj$data6 = ProductInfoObj.data) === null || _ProductInfoObj$data6 === void 0 || (_ProductInfoObj$data6 = _ProductInfoObj$data6.productinfo) === null || _ProductInfoObj$data6 === void 0 || (_ProductInfoObj$data6 = _ProductInfoObj$data6.productoptions) === null || _ProductInfoObj$data6 === void 0 ? void 0 : _ProductInfoObj$data6.map(function (item, index) {
2841
2709
  var orgselectoptions = [];
@@ -2846,13 +2714,6 @@ var Variantoptions = function Variantoptions(props) {
2846
2714
  // optionvaluesitem.isselected
2847
2715
  }
2848
2716
  orgselectoptions.forEach(function (getselcitem, getselindex) {
2849
- // if (getselcitem.isselected == 1 && issingleoptionoutofstock(getselcitem)['isoutofstock'] == true && sectionproperties.showoutofstockwithoutselection == 'Show') {
2850
- // selecteditemid = getselcitem.valueid + langdetect == 'en' ? '(Unavailable)' : 'غير متاح';
2851
- // } else if (getselcitem.isselected == 1 && sectionproperties.showoutofstockwithoutselection == 'Hide') {
2852
- // selecteditemid = getselcitem.valueid;
2853
- // } else {
2854
- // selecteditemid = getselcitem.valueid;
2855
- // }
2856
2717
  if (getselcitem.isselected == 1) {
2857
2718
  selecteditemid = getselcitem.valueid;
2858
2719
  }
@@ -2867,7 +2728,7 @@ var Variantoptions = function Variantoptions(props) {
2867
2728
  textTransform: sectionproperties.varianttitle_texttransform,
2868
2729
  fontSize: sectionproperties.varianttitle_fontSize + 'px'
2869
2730
  }
2870
- }, langdetect == 'en' ? item.optionname : item.optionname_ar), /*#__PURE__*/React.createElement("div", {
2731
+ }, item["optionname_".concat(langdetect)] || item.optionname), /*#__PURE__*/React.createElement("div", {
2871
2732
  style: {
2872
2733
  width: '100%'
2873
2734
  },
@@ -5547,7 +5408,7 @@ var Product_itemtype = function Product_itemtype(props) {
5547
5408
  size: sectionproperties.cartBtn_iconFontSize
5548
5409
  }), sectionproperties.carticonstyle == 'Shopping cart 2' && /*#__PURE__*/React.createElement(MdAddShoppingCart, {
5549
5410
  size: sectionproperties.cartBtn_iconFontSize
5550
- })), langdetect == 'ar' ? sectionproperties.cartBtnContentarabic : sectionproperties["cartBtnContentrus".concat(langdetect)] || sectionproperties.cartBtnContentenglish), AddtoCartMutationContext.isLoading && /*#__PURE__*/React.createElement("div", {
5411
+ })), sectionproperties["cartBtnContent".concat(langdetect)] || sectionproperties.cartBtnContentenglish), AddtoCartMutationContext.isLoading && /*#__PURE__*/React.createElement("div", {
5551
5412
  className: ' d-flex align-items-center justify-content-center '
5552
5413
  }, /*#__PURE__*/React.createElement(CircularProgress, {
5553
5414
  color: sectionproperties.cartBtnTextcolor,
@@ -5636,7 +5497,7 @@ var Product_itemtype = function Product_itemtype(props) {
5636
5497
  size: sectionproperties.cartBtn_iconFontSize
5637
5498
  }), sectionproperties.carticonstyle == 'Shopping cart 2' && /*#__PURE__*/React.createElement(MdAddShoppingCart, {
5638
5499
  size: sectionproperties.cartBtn_iconFontSize
5639
- })), langdetect == 'ar' ? sectionproperties.cartBtnContentarabic : sectionproperties["cartBtnContentrus".concat(langdetect)] || sectionproperties.cartBtnContentenglish), AddtoCartMutationContext.isLoading && /*#__PURE__*/React.createElement("div", {
5500
+ })), sectionproperties["cartBtnContent".concat(langdetect)] || sectionproperties.cartBtnContentenglish), AddtoCartMutationContext.isLoading && /*#__PURE__*/React.createElement("div", {
5640
5501
  className: ' d-flex align-items-center justify-content-center '
5641
5502
  }, /*#__PURE__*/React.createElement(CircularProgress, {
5642
5503
  color: sectionproperties.cartBtnTextcolor,
@@ -6188,7 +6049,7 @@ var Product_itemtype = function Product_itemtype(props) {
6188
6049
  function ownKeys$2D(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; }
6189
6050
  function _objectSpread$2D(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2D(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2D(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
6190
6051
  var Serviceinfotabs = function Serviceinfotabs(props) {
6191
- var _fetchProductInfoQuer10, _fetchProductInfoQuer11, _fetchProductInfoQuer12, _fetchProductInfoQuer13, _authdetailsContext$i, _fetchProductInfoQuer14, _fetchProductInfoQuer15, _fetchProductInfoQuer18, _fetchProductInfoQuer19, _fetchProductInfoQuer22, _fetchProductInfoQuer23;
6052
+ var _fetchProductInfoQuer10, _fetchProductInfoQuer11, _fetchProductInfoQuer12, _fetchProductInfoQuer13, _authdetailsContext$i, _fetchProductInfoQuer14, _fetchProductInfoQuer15;
6192
6053
  var langdetect = props.actions.langdetect;
6193
6054
  var lang = props.actions.lang;
6194
6055
  var sectionproperties = props.actions.sectionproperties;
@@ -6992,7 +6853,7 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
6992
6853
  size: sectionproperties.cartBtn_iconFontSize
6993
6854
  }), sectionproperties.carticonstyle == 'Shopping cart 2' && /*#__PURE__*/React.createElement(MdAddShoppingCart, {
6994
6855
  size: sectionproperties.cartBtn_iconFontSize
6995
- })), sectionproperties.overwritecertbtntext == 'Yes' ? langdetect != 'ar' ? sectionproperties.cartBtnContentenglish : sectionproperties.cartBtnContentarabic : langdetect != 'ar' ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer18 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer18 === void 0 || (_fetchProductInfoQuer18 = _fetchProductInfoQuer18.data) === null || _fetchProductInfoQuer18 === void 0 || (_fetchProductInfoQuer18 = _fetchProductInfoQuer18.productinfo) === null || _fetchProductInfoQuer18 === void 0 ? void 0 : _fetchProductInfoQuer18.productactionbuttontext_en : fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer19 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer19 === void 0 || (_fetchProductInfoQuer19 = _fetchProductInfoQuer19.data) === null || _fetchProductInfoQuer19 === void 0 || (_fetchProductInfoQuer19 = _fetchProductInfoQuer19.productinfo) === null || _fetchProductInfoQuer19 === void 0 ? void 0 : _fetchProductInfoQuer19.productactionbuttontext_ar), AddtoCartMutationContext.isLoading && /*#__PURE__*/React.createElement("div", {
6856
+ })), sectionproperties["cartBtnContent".concat(langdetect)] || sectionproperties.cartBtnContentenglish), AddtoCartMutationContext.isLoading && /*#__PURE__*/React.createElement("div", {
6996
6857
  className: ' d-flex align-items-center justify-content-center '
6997
6858
  }, /*#__PURE__*/React.createElement(CircularProgress, {
6998
6859
  color: "white",
@@ -7034,15 +6895,15 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
7034
6895
  }, /*#__PURE__*/React.createElement("button", {
7035
6896
  className: "".concat(productinfo_cssstyles.cart_btn) + ' w-100 d-flex align-items-center justify-content-center ',
7036
6897
  onClick: function onClick() {
7037
- var _fetchProductInfoQuer20, _fetchProductInfoQuer21;
7038
- if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer20 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer20 === void 0 || (_fetchProductInfoQuer20 = _fetchProductInfoQuer20.data) === null || _fetchProductInfoQuer20 === void 0 || (_fetchProductInfoQuer20 = _fetchProductInfoQuer20.productinfo) === null || _fetchProductInfoQuer20 === void 0 || (_fetchProductInfoQuer20 = _fetchProductInfoQuer20.serviceinfo) === null || _fetchProductInfoQuer20 === void 0 ? void 0 : _fetchProductInfoQuer20.scheduletype) == 'days') {
6898
+ var _fetchProductInfoQuer18, _fetchProductInfoQuer19;
6899
+ if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer18 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer18 === void 0 || (_fetchProductInfoQuer18 = _fetchProductInfoQuer18.data) === null || _fetchProductInfoQuer18 === void 0 || (_fetchProductInfoQuer18 = _fetchProductInfoQuer18.productinfo) === null || _fetchProductInfoQuer18 === void 0 || (_fetchProductInfoQuer18 = _fetchProductInfoQuer18.serviceinfo) === null || _fetchProductInfoQuer18 === void 0 ? void 0 : _fetchProductInfoQuer18.scheduletype) == 'days') {
7039
6900
  if (addtocardpayloadobj.from.length != 0 && addtocardpayloadobj.to.length != 0 && addtocardpayloadobj.quantity != 0) {
7040
6901
  addtocartfunc();
7041
6902
  if (sectionproperties.cartbtntype == 'Goes to checkout') {
7042
6903
  routingcountext(StaticPagesLinksContext.Checkout);
7043
6904
  }
7044
6905
  }
7045
- } else if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer21 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer21 === void 0 || (_fetchProductInfoQuer21 = _fetchProductInfoQuer21.data) === null || _fetchProductInfoQuer21 === void 0 || (_fetchProductInfoQuer21 = _fetchProductInfoQuer21.productinfo) === null || _fetchProductInfoQuer21 === void 0 || (_fetchProductInfoQuer21 = _fetchProductInfoQuer21.serviceinfo) === null || _fetchProductInfoQuer21 === void 0 ? void 0 : _fetchProductInfoQuer21.scheduletype) == 'minutes') {
6906
+ } else if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer19 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer19 === void 0 || (_fetchProductInfoQuer19 = _fetchProductInfoQuer19.data) === null || _fetchProductInfoQuer19 === void 0 || (_fetchProductInfoQuer19 = _fetchProductInfoQuer19.productinfo) === null || _fetchProductInfoQuer19 === void 0 || (_fetchProductInfoQuer19 = _fetchProductInfoQuer19.serviceinfo) === null || _fetchProductInfoQuer19 === void 0 ? void 0 : _fetchProductInfoQuer19.scheduletype) == 'minutes') {
7046
6907
  if (addtocardpayloadobj.date.length != 0 && addtocardpayloadobj.time.length != 0) {
7047
6908
  addtocartfunc();
7048
6909
  if (sectionproperties.cartbtntype == 'Goes to checkout') {
@@ -7075,7 +6936,7 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
7075
6936
  size: sectionproperties.cartBtn_iconFontSize
7076
6937
  }), sectionproperties.carticonstyle == 'Shopping cart 2' && /*#__PURE__*/React.createElement(MdAddShoppingCart, {
7077
6938
  size: sectionproperties.cartBtn_iconFontSize
7078
- })), sectionproperties.overwritecertbtntext == 'Yes' ? langdetect != 'ar' ? sectionproperties.cartBtnContentenglish : sectionproperties.cartBtnContentarabic : langdetect != 'ar' ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer22 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer22 === void 0 || (_fetchProductInfoQuer22 = _fetchProductInfoQuer22.data) === null || _fetchProductInfoQuer22 === void 0 || (_fetchProductInfoQuer22 = _fetchProductInfoQuer22.productinfo) === null || _fetchProductInfoQuer22 === void 0 ? void 0 : _fetchProductInfoQuer22.productactionbuttontext_en : fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer23 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer23 === void 0 || (_fetchProductInfoQuer23 = _fetchProductInfoQuer23.data) === null || _fetchProductInfoQuer23 === void 0 || (_fetchProductInfoQuer23 = _fetchProductInfoQuer23.productinfo) === null || _fetchProductInfoQuer23 === void 0 ? void 0 : _fetchProductInfoQuer23.productactionbuttontext_ar), AddtoCartMutationContext.isLoading && /*#__PURE__*/React.createElement("div", {
6939
+ })), sectionproperties["cartBtnContent".concat(langdetect)] || sectionproperties.cartBtnContentenglish), AddtoCartMutationContext.isLoading && /*#__PURE__*/React.createElement("div", {
7079
6940
  className: ' d-flex align-items-center justify-content-center '
7080
6941
  }, /*#__PURE__*/React.createElement(CircularProgress, {
7081
6942
  color: "white",
@@ -7119,13 +6980,13 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
7119
6980
  }, /*#__PURE__*/React.createElement("button", {
7120
6981
  className: "".concat(productinfo_cssstyles.checkoutbtn, " ") + ' d-flex align-items-center justify-content-center ml-sm-auto mr-sm-auto mb-sm-2 ',
7121
6982
  onClick: function onClick() {
7122
- var _fetchProductInfoQuer24, _fetchProductInfoQuer25;
7123
- if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer24 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer24 === void 0 || (_fetchProductInfoQuer24 = _fetchProductInfoQuer24.data) === null || _fetchProductInfoQuer24 === void 0 || (_fetchProductInfoQuer24 = _fetchProductInfoQuer24.productinfo) === null || _fetchProductInfoQuer24 === void 0 || (_fetchProductInfoQuer24 = _fetchProductInfoQuer24.serviceinfo) === null || _fetchProductInfoQuer24 === void 0 ? void 0 : _fetchProductInfoQuer24.scheduletype) == 'days') {
6983
+ var _fetchProductInfoQuer20, _fetchProductInfoQuer21;
6984
+ if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer20 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer20 === void 0 || (_fetchProductInfoQuer20 = _fetchProductInfoQuer20.data) === null || _fetchProductInfoQuer20 === void 0 || (_fetchProductInfoQuer20 = _fetchProductInfoQuer20.productinfo) === null || _fetchProductInfoQuer20 === void 0 || (_fetchProductInfoQuer20 = _fetchProductInfoQuer20.serviceinfo) === null || _fetchProductInfoQuer20 === void 0 ? void 0 : _fetchProductInfoQuer20.scheduletype) == 'days') {
7124
6985
  if (addtocardpayloadobj.from.length != 0 && addtocardpayloadobj.to.length != 0 && addtocardpayloadobj.quantity != 0) {
7125
6986
  addtocartfunc();
7126
6987
  routingcountext(StaticPagesLinksContext.Checkout);
7127
6988
  }
7128
- } else if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer25 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer25 === void 0 || (_fetchProductInfoQuer25 = _fetchProductInfoQuer25.data) === null || _fetchProductInfoQuer25 === void 0 || (_fetchProductInfoQuer25 = _fetchProductInfoQuer25.productinfo) === null || _fetchProductInfoQuer25 === void 0 || (_fetchProductInfoQuer25 = _fetchProductInfoQuer25.serviceinfo) === null || _fetchProductInfoQuer25 === void 0 ? void 0 : _fetchProductInfoQuer25.scheduletype) == 'minutes') {
6989
+ } else if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer21 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer21 === void 0 || (_fetchProductInfoQuer21 = _fetchProductInfoQuer21.data) === null || _fetchProductInfoQuer21 === void 0 || (_fetchProductInfoQuer21 = _fetchProductInfoQuer21.productinfo) === null || _fetchProductInfoQuer21 === void 0 || (_fetchProductInfoQuer21 = _fetchProductInfoQuer21.serviceinfo) === null || _fetchProductInfoQuer21 === void 0 ? void 0 : _fetchProductInfoQuer21.scheduletype) == 'minutes') {
7129
6990
  if (addtocardpayloadobj.date.length != 0 && addtocardpayloadobj.time.length != 0) {
7130
6991
  addtocartfunc();
7131
6992
  routingcountext(StaticPagesLinksContext.Checkout);
package/dist/index.umd.js CHANGED
@@ -2291,7 +2291,7 @@
2291
2291
  textTransform: sectionproperties.varianttitle_texttransform,
2292
2292
  fontSize: sectionproperties.varianttitle_fontSize + 'px'
2293
2293
  }
2294
- }, sectionproperties.showselect == 'Show' && /*#__PURE__*/React__default["default"].createElement("span", null, lang.select), " ", '', " ", langdetect == 'en' ? item.optionname : item.optionname_ar, ":", ' ', item.optionname == 'color' && /*#__PURE__*/React__default["default"].createElement("span", {
2294
+ }, sectionproperties.showselect == 'Show' && /*#__PURE__*/React__default["default"].createElement("span", null, lang.select), " ", '', item["optionname_".concat(langdetect)] || item.optionname, item.optionname == 'color' && /*#__PURE__*/React__default["default"].createElement("span", {
2295
2295
  style: {
2296
2296
  color: '#62554a'
2297
2297
  }
@@ -2413,7 +2413,7 @@
2413
2413
  fontSize: sectionproperties.variantcontainer_fontSize + 'px',
2414
2414
  fontWeight: 500
2415
2415
  }
2416
- }, langdetect == 'en' ? optionvaluesitem.valuename : optionvaluesitem.valuename_ar));
2416
+ }, optionvaluesitem["valuename_".concat(langdetect)] || optionvaluesitem.valuename));
2417
2417
  }
2418
2418
  } else {
2419
2419
  var _authdetailsContext$i5, _authdetailsContext$i7;
@@ -2452,77 +2452,7 @@
2452
2452
  fontSize: sectionproperties.variantcontainer_fontSize + 'px',
2453
2453
  fontWeight: 500
2454
2454
  }
2455
- }, langdetect == 'en' ? optionvaluesitem.valuename : optionvaluesitem.valuename_ar))
2456
- // <div
2457
- // className={
2458
- // productinfostyles.variant_container +
2459
- // ' mr-2 variabttcontainer allcentered pl-2 pr-2 ' +
2460
- // `${isoptionvalueselected == 1 ? productinfostyles.variant_container_active : ''}`
2461
- // }
2462
- // onClick={() => {
2463
- // if (optionvaluesitem.isenabled == 1) {
2464
- // selectproductoptionvalue(index, optionvaluesitem, optionvaluesindex);
2465
- // } else {
2466
- // clearchoosenvaluesbutkeepcurrentvalue(index, optionvaluesitem, optionvaluesindex);
2467
- // }
2468
- // }}
2469
- // style={{
2470
- // backgroundColor:
2471
- // sectionproperties.variantcontainerbordercolor != undefined && sectionproperties.variantcontainerbordercolor != null
2472
- // ? sectionproperties.variantcontainer_bgcolor
2473
- // : isoptionvalueselected == 1
2474
- // ? 'green'
2475
- // : isoptionvaluedenabled == 1
2476
- // ? sectionproperties.variantcontainer_bgcolor
2477
- // : 'grey',
2478
- // width: 'auto',
2479
- // height: sectionproperties.variantcontainer_height + 'px',
2480
- // borderRadius: sectionproperties.variantcontainer_borderBottomLeftRadius + 'px',
2481
- // position: 'relative',
2482
- // // border:
2483
- // // isoptionvalueselected == 1
2484
- // // ? '2px solid green'
2485
- // // : isoptionvaluedenabled == 1
2486
- // // ? '1px solid ' + sectionproperties.variantcontainerbordercolor
2487
- // // : '1px solid ' + ' grey ',
2488
- // border: isoptionvalueselected == 1 ? '2px solid ' + sectionproperties.activeproductcolor : '1px solid #ccc',
2489
- // }}
2490
- // >
2491
- // {isoptionvalueselected == 1 && sectionproperties.showRemovebutton == 'Show' && (
2492
- // <p
2493
- // class="m-0 p-0 bg-danger bgdanger-hover"
2494
- // style={{
2495
- // position: 'absolute',
2496
- // top: '-15px',
2497
- // right: '-5px',
2498
- // width: '3vh',
2499
- // height: '3vh',
2500
- // borderRadius: 100,
2501
- // }}
2502
- // >
2503
- // <i class="h-100 allcentered">
2504
- // <IoMdClose />
2505
- // </i>
2506
- // </p>
2507
- // )}
2508
- // <p
2509
- // className={'m-0 p-0 allcentered'}
2510
- // style={{
2511
- // fontWeight: 500,
2512
- // // color: sectionproperties.variantcontainer_color,
2513
- // fontSize: sectionproperties.variantcontainer_fontSize + 'px',
2514
- // color:
2515
- // sectionproperties.variantcontainerbordercolor != undefined &&
2516
- // sectionproperties.variantcontainerbordercolor != null &&
2517
- // isoptionvalueselected == 1
2518
- // ? sectionproperties.activeproductcolor
2519
- // : sectionproperties.variantcontainer_color,
2520
- // }}
2521
- // >
2522
- // sad {langdetect == 'en' ? optionvaluesitem.valuename : optionvaluesitem.valuename_ar}
2523
- // </p>
2524
- // </div>
2525
- ;
2455
+ }, optionvaluesitem["valuename_".concat(langdetect)] || optionvaluesitem.valuename));
2526
2456
  }
2527
2457
  }))));
2528
2458
  })))), sectionproperties.showsizeguidebtn == 'Show' && sizeguideimage.length != 0 && sectionproperties.sizeguideposition == 'Besides Variants' && /*#__PURE__*/React__default["default"].createElement("div", {
@@ -2569,7 +2499,7 @@
2569
2499
  textTransform: sectionproperties.varianttitle_texttransform,
2570
2500
  fontSize: sectionproperties.varianttitle_fontSize + 'px'
2571
2501
  }
2572
- }, sectionproperties.showselect == 'Show' && /*#__PURE__*/React__default["default"].createElement("span", null, lang.select), " ", '', " ", langdetect == 'en' ? item.optionname : item.optionname_ar, ":"))), item.optionvalues.map(function (optionvaluesitem, optionvaluesindex) {
2502
+ }, sectionproperties.showselect == 'Show' && /*#__PURE__*/React__default["default"].createElement("span", null, lang.select), " ", '', " ", item["optionname_".concat(langdetect)] || item.optionname, ":"))), item.optionvalues.map(function (optionvaluesitem, optionvaluesindex) {
2573
2503
  var isoptionvalueselected = 0;
2574
2504
  if (optionvaluesitem.isselected == 1) {
2575
2505
  isoptionvalueselected = 1;
@@ -2599,11 +2529,9 @@
2599
2529
  style: {
2600
2530
  background: optionvaluesitem.valuename,
2601
2531
  opacity: isoptionvaluedenabled == 1 ? 1 : 0.2
2602
- // cursor: isoptionvaluedenabled == 1 ? 'pointer' : 'not-allowed',
2603
2532
  }
2604
2533
  }));
2605
2534
  } else {
2606
- // else if (item.optionname == 'size' || item.optionname == 'Size') {
2607
2535
  return /*#__PURE__*/React__default["default"].createElement("li", {
2608
2536
  style: {
2609
2537
  width: 'auto'
@@ -2618,8 +2546,6 @@
2618
2546
  }
2619
2547
  },
2620
2548
  style: {
2621
- // cursor: isoptionvaluedenabled == 1 ? 'pointer' : 'not-allowed',
2622
- // backgroundColor: isoptionvalueselected == 1 ? 'green' : isoptionvaluedenabled == 1 ? sectionproperties.variantcontainer_bgcolor : 'grey',
2623
2549
  background: sectionproperties.variantcontainerbordercolor != undefined && sectionproperties.variantcontainerbordercolor != null ? sectionproperties.variantcontainer_bgcolor : isoptionvalueselected == 1 ? 'green' : isoptionvaluedenabled == 1 ? sectionproperties.variantcontainer_bgcolor : 'grey',
2624
2550
  minWidth: sectionproperties.variantcontainer_minwidth + 'px',
2625
2551
  height: sectionproperties.variantcontainer_height + 'px',
@@ -2634,66 +2560,8 @@
2634
2560
  fontSize: sectionproperties.variantcontainer_fontSize + 'px',
2635
2561
  fontWeight: 500
2636
2562
  }
2637
- }, langdetect == 'en' ? optionvaluesitem.valuename : optionvaluesitem.valuename_ar)));
2563
+ }, optionvaluesitem["valuename_".concat(langdetect)] || optionvaluesitem.valuename)));
2638
2564
  }
2639
- // else {
2640
- // return (
2641
- // <li
2642
- // style={{
2643
- // width: 'auto',
2644
- // }}
2645
- // >
2646
- // <div
2647
- // className={
2648
- // productinfostyles.variant_container +
2649
- // ' mx-2 mb-2 variabttcontainer allcentered pl-2 pr-2 ' +
2650
- // `${isoptionvalueselected == 1 ? productinfostyles.variant_container_active : ''}`
2651
- // }
2652
- // onClick={() => {
2653
- // if (optionvaluesitem.isenabled == 1) {
2654
- // selectproductoptionvalue(index, optionvaluesitem, optionvaluesindex);
2655
- // } else {
2656
- // clearchoosenvaluesbutkeepcurrentvalue(index, optionvaluesitem, optionvaluesindex);
2657
- // }
2658
- // }}
2659
- // style={{
2660
- // backgroundColor: isoptionvalueselected == 1 ? 'green' : isoptionvaluedenabled == 1 ? sectionproperties.variantcontainer_bgcolor : 'grey',
2661
- // width: 'auto',
2662
- // height: sectionproperties.variantcontainer_height + 'px',
2663
- // borderRadius: sectionproperties.variantcontainer_borderBottomLeftRadius + 'px',
2664
- // position: 'relative',
2665
- // }}
2666
- // >
2667
- // {isoptionvalueselected == 1 && sectionproperties.showRemovebutton == 'Show' && (
2668
- // <p
2669
- // class="m-0 p-0 bg-danger bgdanger-hover"
2670
- // style={{
2671
- // position: 'absolute',
2672
- // top: '-15px',
2673
- // right: '-5px',
2674
- // width: '3vh',
2675
- // height: '3vh',
2676
- // borderRadius: 100,
2677
- // }}
2678
- // >
2679
- // <i class="h-100 allcentered">
2680
- // <IoMdClose />
2681
- // </i>
2682
- // </p>
2683
- // )}
2684
- // <p
2685
- // className={'m-0 p-0 allcentered'}
2686
- // style={{
2687
- // color: sectionproperties.variantcontainer_color,
2688
- // fontSize: sectionproperties.variantcontainer_fontSize + 'px',
2689
- // }}
2690
- // >
2691
- // {langdetect == 'en' ? optionvaluesitem.valuename : optionvaluesitem.valuename_ar}
2692
- // </p>
2693
- // </div>
2694
- // </li>
2695
- // );
2696
- // }
2697
2565
  }));
2698
2566
  })), sectionproperties.variantstyle == 'Select Box' && (ProductInfoObj === null || ProductInfoObj === void 0 || (_ProductInfoObj$data6 = ProductInfoObj.data) === null || _ProductInfoObj$data6 === void 0 || (_ProductInfoObj$data6 = _ProductInfoObj$data6.productinfo) === null || _ProductInfoObj$data6 === void 0 || (_ProductInfoObj$data6 = _ProductInfoObj$data6.productoptions) === null || _ProductInfoObj$data6 === void 0 ? void 0 : _ProductInfoObj$data6.map(function (item, index) {
2699
2567
  var orgselectoptions = [];
@@ -2704,13 +2572,6 @@
2704
2572
  // optionvaluesitem.isselected
2705
2573
  }
2706
2574
  orgselectoptions.forEach(function (getselcitem, getselindex) {
2707
- // if (getselcitem.isselected == 1 && issingleoptionoutofstock(getselcitem)['isoutofstock'] == true && sectionproperties.showoutofstockwithoutselection == 'Show') {
2708
- // selecteditemid = getselcitem.valueid + langdetect == 'en' ? '(Unavailable)' : 'غير متاح';
2709
- // } else if (getselcitem.isselected == 1 && sectionproperties.showoutofstockwithoutselection == 'Hide') {
2710
- // selecteditemid = getselcitem.valueid;
2711
- // } else {
2712
- // selecteditemid = getselcitem.valueid;
2713
- // }
2714
2575
  if (getselcitem.isselected == 1) {
2715
2576
  selecteditemid = getselcitem.valueid;
2716
2577
  }
@@ -2725,7 +2586,7 @@
2725
2586
  textTransform: sectionproperties.varianttitle_texttransform,
2726
2587
  fontSize: sectionproperties.varianttitle_fontSize + 'px'
2727
2588
  }
2728
- }, langdetect == 'en' ? item.optionname : item.optionname_ar), /*#__PURE__*/React__default["default"].createElement("div", {
2589
+ }, item["optionname_".concat(langdetect)] || item.optionname), /*#__PURE__*/React__default["default"].createElement("div", {
2729
2590
  style: {
2730
2591
  width: '100%'
2731
2592
  },
@@ -5405,7 +5266,7 @@
5405
5266
  size: sectionproperties.cartBtn_iconFontSize
5406
5267
  }), sectionproperties.carticonstyle == 'Shopping cart 2' && /*#__PURE__*/React__default["default"].createElement(MdAddShoppingCart.MdAddShoppingCart, {
5407
5268
  size: sectionproperties.cartBtn_iconFontSize
5408
- })), langdetect == 'ar' ? sectionproperties.cartBtnContentarabic : sectionproperties["cartBtnContentrus".concat(langdetect)] || sectionproperties.cartBtnContentenglish), AddtoCartMutationContext.isLoading && /*#__PURE__*/React__default["default"].createElement("div", {
5269
+ })), sectionproperties["cartBtnContent".concat(langdetect)] || sectionproperties.cartBtnContentenglish), AddtoCartMutationContext.isLoading && /*#__PURE__*/React__default["default"].createElement("div", {
5409
5270
  className: ' d-flex align-items-center justify-content-center '
5410
5271
  }, /*#__PURE__*/React__default["default"].createElement(reactCssfxLoading.CircularProgress, {
5411
5272
  color: sectionproperties.cartBtnTextcolor,
@@ -5494,7 +5355,7 @@
5494
5355
  size: sectionproperties.cartBtn_iconFontSize
5495
5356
  }), sectionproperties.carticonstyle == 'Shopping cart 2' && /*#__PURE__*/React__default["default"].createElement(MdAddShoppingCart.MdAddShoppingCart, {
5496
5357
  size: sectionproperties.cartBtn_iconFontSize
5497
- })), langdetect == 'ar' ? sectionproperties.cartBtnContentarabic : sectionproperties["cartBtnContentrus".concat(langdetect)] || sectionproperties.cartBtnContentenglish), AddtoCartMutationContext.isLoading && /*#__PURE__*/React__default["default"].createElement("div", {
5358
+ })), sectionproperties["cartBtnContent".concat(langdetect)] || sectionproperties.cartBtnContentenglish), AddtoCartMutationContext.isLoading && /*#__PURE__*/React__default["default"].createElement("div", {
5498
5359
  className: ' d-flex align-items-center justify-content-center '
5499
5360
  }, /*#__PURE__*/React__default["default"].createElement(reactCssfxLoading.CircularProgress, {
5500
5361
  color: sectionproperties.cartBtnTextcolor,
@@ -6046,7 +5907,7 @@
6046
5907
  function ownKeys$2D(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; }
6047
5908
  function _objectSpread$2D(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2D(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2D(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
6048
5909
  var Serviceinfotabs = function Serviceinfotabs(props) {
6049
- var _fetchProductInfoQuer10, _fetchProductInfoQuer11, _fetchProductInfoQuer12, _fetchProductInfoQuer13, _authdetailsContext$i, _fetchProductInfoQuer14, _fetchProductInfoQuer15, _fetchProductInfoQuer18, _fetchProductInfoQuer19, _fetchProductInfoQuer22, _fetchProductInfoQuer23;
5910
+ var _fetchProductInfoQuer10, _fetchProductInfoQuer11, _fetchProductInfoQuer12, _fetchProductInfoQuer13, _authdetailsContext$i, _fetchProductInfoQuer14, _fetchProductInfoQuer15;
6050
5911
  var langdetect = props.actions.langdetect;
6051
5912
  var lang = props.actions.lang;
6052
5913
  var sectionproperties = props.actions.sectionproperties;
@@ -6850,7 +6711,7 @@
6850
6711
  size: sectionproperties.cartBtn_iconFontSize
6851
6712
  }), sectionproperties.carticonstyle == 'Shopping cart 2' && /*#__PURE__*/React__default["default"].createElement(MdAddShoppingCart.MdAddShoppingCart, {
6852
6713
  size: sectionproperties.cartBtn_iconFontSize
6853
- })), sectionproperties.overwritecertbtntext == 'Yes' ? langdetect != 'ar' ? sectionproperties.cartBtnContentenglish : sectionproperties.cartBtnContentarabic : langdetect != 'ar' ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer18 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer18 === void 0 || (_fetchProductInfoQuer18 = _fetchProductInfoQuer18.data) === null || _fetchProductInfoQuer18 === void 0 || (_fetchProductInfoQuer18 = _fetchProductInfoQuer18.productinfo) === null || _fetchProductInfoQuer18 === void 0 ? void 0 : _fetchProductInfoQuer18.productactionbuttontext_en : fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer19 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer19 === void 0 || (_fetchProductInfoQuer19 = _fetchProductInfoQuer19.data) === null || _fetchProductInfoQuer19 === void 0 || (_fetchProductInfoQuer19 = _fetchProductInfoQuer19.productinfo) === null || _fetchProductInfoQuer19 === void 0 ? void 0 : _fetchProductInfoQuer19.productactionbuttontext_ar), AddtoCartMutationContext.isLoading && /*#__PURE__*/React__default["default"].createElement("div", {
6714
+ })), sectionproperties["cartBtnContent".concat(langdetect)] || sectionproperties.cartBtnContentenglish), AddtoCartMutationContext.isLoading && /*#__PURE__*/React__default["default"].createElement("div", {
6854
6715
  className: ' d-flex align-items-center justify-content-center '
6855
6716
  }, /*#__PURE__*/React__default["default"].createElement(reactCssfxLoading.CircularProgress, {
6856
6717
  color: "white",
@@ -6892,15 +6753,15 @@
6892
6753
  }, /*#__PURE__*/React__default["default"].createElement("button", {
6893
6754
  className: "".concat(productinfo_cssstyles.cart_btn) + ' w-100 d-flex align-items-center justify-content-center ',
6894
6755
  onClick: function onClick() {
6895
- var _fetchProductInfoQuer20, _fetchProductInfoQuer21;
6896
- if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer20 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer20 === void 0 || (_fetchProductInfoQuer20 = _fetchProductInfoQuer20.data) === null || _fetchProductInfoQuer20 === void 0 || (_fetchProductInfoQuer20 = _fetchProductInfoQuer20.productinfo) === null || _fetchProductInfoQuer20 === void 0 || (_fetchProductInfoQuer20 = _fetchProductInfoQuer20.serviceinfo) === null || _fetchProductInfoQuer20 === void 0 ? void 0 : _fetchProductInfoQuer20.scheduletype) == 'days') {
6756
+ var _fetchProductInfoQuer18, _fetchProductInfoQuer19;
6757
+ if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer18 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer18 === void 0 || (_fetchProductInfoQuer18 = _fetchProductInfoQuer18.data) === null || _fetchProductInfoQuer18 === void 0 || (_fetchProductInfoQuer18 = _fetchProductInfoQuer18.productinfo) === null || _fetchProductInfoQuer18 === void 0 || (_fetchProductInfoQuer18 = _fetchProductInfoQuer18.serviceinfo) === null || _fetchProductInfoQuer18 === void 0 ? void 0 : _fetchProductInfoQuer18.scheduletype) == 'days') {
6897
6758
  if (addtocardpayloadobj.from.length != 0 && addtocardpayloadobj.to.length != 0 && addtocardpayloadobj.quantity != 0) {
6898
6759
  addtocartfunc();
6899
6760
  if (sectionproperties.cartbtntype == 'Goes to checkout') {
6900
6761
  routingcountext(StaticPagesLinksContext.Checkout);
6901
6762
  }
6902
6763
  }
6903
- } else if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer21 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer21 === void 0 || (_fetchProductInfoQuer21 = _fetchProductInfoQuer21.data) === null || _fetchProductInfoQuer21 === void 0 || (_fetchProductInfoQuer21 = _fetchProductInfoQuer21.productinfo) === null || _fetchProductInfoQuer21 === void 0 || (_fetchProductInfoQuer21 = _fetchProductInfoQuer21.serviceinfo) === null || _fetchProductInfoQuer21 === void 0 ? void 0 : _fetchProductInfoQuer21.scheduletype) == 'minutes') {
6764
+ } else if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer19 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer19 === void 0 || (_fetchProductInfoQuer19 = _fetchProductInfoQuer19.data) === null || _fetchProductInfoQuer19 === void 0 || (_fetchProductInfoQuer19 = _fetchProductInfoQuer19.productinfo) === null || _fetchProductInfoQuer19 === void 0 || (_fetchProductInfoQuer19 = _fetchProductInfoQuer19.serviceinfo) === null || _fetchProductInfoQuer19 === void 0 ? void 0 : _fetchProductInfoQuer19.scheduletype) == 'minutes') {
6904
6765
  if (addtocardpayloadobj.date.length != 0 && addtocardpayloadobj.time.length != 0) {
6905
6766
  addtocartfunc();
6906
6767
  if (sectionproperties.cartbtntype == 'Goes to checkout') {
@@ -6933,7 +6794,7 @@
6933
6794
  size: sectionproperties.cartBtn_iconFontSize
6934
6795
  }), sectionproperties.carticonstyle == 'Shopping cart 2' && /*#__PURE__*/React__default["default"].createElement(MdAddShoppingCart.MdAddShoppingCart, {
6935
6796
  size: sectionproperties.cartBtn_iconFontSize
6936
- })), sectionproperties.overwritecertbtntext == 'Yes' ? langdetect != 'ar' ? sectionproperties.cartBtnContentenglish : sectionproperties.cartBtnContentarabic : langdetect != 'ar' ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer22 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer22 === void 0 || (_fetchProductInfoQuer22 = _fetchProductInfoQuer22.data) === null || _fetchProductInfoQuer22 === void 0 || (_fetchProductInfoQuer22 = _fetchProductInfoQuer22.productinfo) === null || _fetchProductInfoQuer22 === void 0 ? void 0 : _fetchProductInfoQuer22.productactionbuttontext_en : fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer23 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer23 === void 0 || (_fetchProductInfoQuer23 = _fetchProductInfoQuer23.data) === null || _fetchProductInfoQuer23 === void 0 || (_fetchProductInfoQuer23 = _fetchProductInfoQuer23.productinfo) === null || _fetchProductInfoQuer23 === void 0 ? void 0 : _fetchProductInfoQuer23.productactionbuttontext_ar), AddtoCartMutationContext.isLoading && /*#__PURE__*/React__default["default"].createElement("div", {
6797
+ })), sectionproperties["cartBtnContent".concat(langdetect)] || sectionproperties.cartBtnContentenglish), AddtoCartMutationContext.isLoading && /*#__PURE__*/React__default["default"].createElement("div", {
6937
6798
  className: ' d-flex align-items-center justify-content-center '
6938
6799
  }, /*#__PURE__*/React__default["default"].createElement(reactCssfxLoading.CircularProgress, {
6939
6800
  color: "white",
@@ -6977,13 +6838,13 @@
6977
6838
  }, /*#__PURE__*/React__default["default"].createElement("button", {
6978
6839
  className: "".concat(productinfo_cssstyles.checkoutbtn, " ") + ' d-flex align-items-center justify-content-center ml-sm-auto mr-sm-auto mb-sm-2 ',
6979
6840
  onClick: function onClick() {
6980
- var _fetchProductInfoQuer24, _fetchProductInfoQuer25;
6981
- if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer24 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer24 === void 0 || (_fetchProductInfoQuer24 = _fetchProductInfoQuer24.data) === null || _fetchProductInfoQuer24 === void 0 || (_fetchProductInfoQuer24 = _fetchProductInfoQuer24.productinfo) === null || _fetchProductInfoQuer24 === void 0 || (_fetchProductInfoQuer24 = _fetchProductInfoQuer24.serviceinfo) === null || _fetchProductInfoQuer24 === void 0 ? void 0 : _fetchProductInfoQuer24.scheduletype) == 'days') {
6841
+ var _fetchProductInfoQuer20, _fetchProductInfoQuer21;
6842
+ if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer20 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer20 === void 0 || (_fetchProductInfoQuer20 = _fetchProductInfoQuer20.data) === null || _fetchProductInfoQuer20 === void 0 || (_fetchProductInfoQuer20 = _fetchProductInfoQuer20.productinfo) === null || _fetchProductInfoQuer20 === void 0 || (_fetchProductInfoQuer20 = _fetchProductInfoQuer20.serviceinfo) === null || _fetchProductInfoQuer20 === void 0 ? void 0 : _fetchProductInfoQuer20.scheduletype) == 'days') {
6982
6843
  if (addtocardpayloadobj.from.length != 0 && addtocardpayloadobj.to.length != 0 && addtocardpayloadobj.quantity != 0) {
6983
6844
  addtocartfunc();
6984
6845
  routingcountext(StaticPagesLinksContext.Checkout);
6985
6846
  }
6986
- } else if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer25 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer25 === void 0 || (_fetchProductInfoQuer25 = _fetchProductInfoQuer25.data) === null || _fetchProductInfoQuer25 === void 0 || (_fetchProductInfoQuer25 = _fetchProductInfoQuer25.productinfo) === null || _fetchProductInfoQuer25 === void 0 || (_fetchProductInfoQuer25 = _fetchProductInfoQuer25.serviceinfo) === null || _fetchProductInfoQuer25 === void 0 ? void 0 : _fetchProductInfoQuer25.scheduletype) == 'minutes') {
6847
+ } else if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer21 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer21 === void 0 || (_fetchProductInfoQuer21 = _fetchProductInfoQuer21.data) === null || _fetchProductInfoQuer21 === void 0 || (_fetchProductInfoQuer21 = _fetchProductInfoQuer21.productinfo) === null || _fetchProductInfoQuer21 === void 0 || (_fetchProductInfoQuer21 = _fetchProductInfoQuer21.serviceinfo) === null || _fetchProductInfoQuer21 === void 0 ? void 0 : _fetchProductInfoQuer21.scheduletype) == 'minutes') {
6987
6848
  if (addtocardpayloadobj.date.length != 0 && addtocardpayloadobj.time.length != 0) {
6988
6849
  addtocartfunc();
6989
6850
  routingcountext(StaticPagesLinksContext.Checkout);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tabexseriescomponents",
3
- "version": "0.50.212",
3
+ "version": "0.50.214",
4
4
  "type": "module",
5
5
  "description": "your description",
6
6
  "main": "dist/index.cjs.js",