tabexseriescomponents 0.2.992 → 0.2.994

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
@@ -54,6 +54,7 @@ var AiOutlinePlus = require('@react-icons/all-files/ai/AiOutlinePlus');
54
54
  var AiOutlineCheck = require('@react-icons/all-files/ai/AiOutlineCheck');
55
55
  var DatePicker = require('react-datepicker');
56
56
  var FiCalendar = require('@react-icons/all-files/fi/FiCalendar');
57
+ require('@mui/system');
57
58
  var reactHorizontalScrollingMenu = require('react-horizontal-scrolling-menu');
58
59
  var material = require('@mui/material');
59
60
  var HiOutlinePhone = require('@react-icons/all-files/hi/HiOutlinePhone');
@@ -77,7 +78,6 @@ var FiCheckCircle = require('@react-icons/all-files/fi/FiCheckCircle');
77
78
  var BiPhone = require('@react-icons/all-files/bi/BiPhone');
78
79
  var Select$4 = require('react-select');
79
80
  var PhoneInput = require('react-phone-input-2');
80
- require('@mui/system');
81
81
  var BsChevronLeft = require('@react-icons/all-files/bs/BsChevronLeft');
82
82
  var BsChevronRight = require('@react-icons/all-files/bs/BsChevronRight');
83
83
  require('@react-icons/all-files/ri/RiArrowUpSLine');
@@ -2071,7 +2071,7 @@ var Variantoptions = function Variantoptions(props) {
2071
2071
  };
2072
2072
 
2073
2073
  var ProductExtras = function ProductExtras(props) {
2074
- var _fetchProductInfoQuer, _fetchProductInfoQuer2;
2074
+ var _fetchProductInfoQuer;
2075
2075
  props.actions.lang;
2076
2076
  var langdetect = props.actions.langdetect;
2077
2077
  var fetchProductInfoQueryContext = props.actions.fetchProductInfoQueryContext;
@@ -2081,8 +2081,10 @@ var ProductExtras = function ProductExtras(props) {
2081
2081
  props.actions.addtocardpayloadobj;
2082
2082
  props.actions.setaddtocardpayloadobj;
2083
2083
  props.actions;
2084
- fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer === void 0 || (_fetchProductInfoQuer = _fetchProductInfoQuer.data) === null || _fetchProductInfoQuer === void 0 || (_fetchProductInfoQuer = _fetchProductInfoQuer.productinfo) === null || _fetchProductInfoQuer === void 0 ? void 0 : _fetchProductInfoQuer.productid;
2084
+ var productid = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer === void 0 || (_fetchProductInfoQuer = _fetchProductInfoQuer.data) === null || _fetchProductInfoQuer === void 0 || (_fetchProductInfoQuer = _fetchProductInfoQuer.productinfo) === null || _fetchProductInfoQuer === void 0 ? void 0 : _fetchProductInfoQuer.productid;
2085
2085
  // const templatepropcontext = props.actions.templatepropcontext;
2086
+
2087
+ var addtocartfunc = props.addtocartfunc;
2086
2088
  var authdetailsContext = props.actions.authdetailsContext;
2087
2089
  props.actions.productinfo_cssstyles;
2088
2090
  var _useState = React.useState([]),
@@ -2105,9 +2107,20 @@ var ProductExtras = function ProductExtras(props) {
2105
2107
  _useState0 = _slicedToArray__default["default"](_useState9, 2);
2106
2108
  _useState0[0];
2107
2109
  _useState0[1];
2110
+ var _useState1 = React.useState([]),
2111
+ _useState10 = _slicedToArray__default["default"](_useState1, 2),
2112
+ product_prod_extras_array = _useState10[0],
2113
+ setproduct_prod_extras_array = _useState10[1];
2108
2114
  React.useEffect(function () {
2109
2115
  if (fetchProductInfoQueryContext.isSuccess) ;
2110
2116
  }, [filterproductreviews]);
2117
+ React.useEffect(function () {
2118
+ if (fetchProductInfoQueryContext.isSuccess) {
2119
+ var _fetchProductInfoQuer2;
2120
+ var tempprodextraarr = _toConsumableArray__default["default"](fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer2 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer2 === void 0 || (_fetchProductInfoQuer2 = _fetchProductInfoQuer2.data) === null || _fetchProductInfoQuer2 === void 0 || (_fetchProductInfoQuer2 = _fetchProductInfoQuer2.productinfo) === null || _fetchProductInfoQuer2 === void 0 ? void 0 : _fetchProductInfoQuer2.product_extras);
2121
+ setproduct_prod_extras_array(_toConsumableArray__default["default"](tempprodextraarr));
2122
+ }
2123
+ }, [fetchProductInfoQueryContext.isSuccess, fetchProductInfoQueryContext.data]);
2111
2124
  var formstyles = {
2112
2125
  input_label_name: glamor.css({
2113
2126
  color: sectionproperties.form_labelcolor,
@@ -2124,7 +2137,7 @@ var ProductExtras = function ProductExtras(props) {
2124
2137
  };
2125
2138
  return /*#__PURE__*/React__default["default"].createElement("div", {
2126
2139
  className: 'row w-100 ml-0 mr-0 mt-3'
2127
- }, fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer2 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer2 === void 0 || (_fetchProductInfoQuer2 = _fetchProductInfoQuer2.data) === null || _fetchProductInfoQuer2 === void 0 || (_fetchProductInfoQuer2 = _fetchProductInfoQuer2.productinfo) === null || _fetchProductInfoQuer2 === void 0 || (_fetchProductInfoQuer2 = _fetchProductInfoQuer2.product_extras) === null || _fetchProductInfoQuer2 === void 0 ? void 0 : _fetchProductInfoQuer2.map(function (item, index) {
2140
+ }, product_prod_extras_array === null || product_prod_extras_array === void 0 ? void 0 : product_prod_extras_array.map(function (item, index) {
2128
2141
  var _item$productinfo, _item$productinfo2, _item$productinfo3, _item$productinfo4;
2129
2142
  return /*#__PURE__*/React__default["default"].createElement("div", {
2130
2143
  "class": props.srcfromprops == 'servicestyle2' ? 'col-lg-12 col-sm-12 p-0 mb-3' : 'col-lg-6 col-sm-12 p-0 mb-3'
@@ -2168,7 +2181,32 @@ var ProductExtras = function ProductExtras(props) {
2168
2181
  style: {
2169
2182
  flex: 1
2170
2183
  },
2171
- "class": "text-black cursor-pointer "
2184
+ "class": "text-black cursor-pointer ",
2185
+ onClick: function onClick() {
2186
+ var _item$productinfo5;
2187
+ var quantity = 0;
2188
+ var tempproduct_prod_extras_array = _toConsumableArray__default["default"](product_prod_extras_array);
2189
+ if (parseFloat(tempproduct_prod_extras_array[index].quantity) <= 0) {
2190
+ quantity = 0;
2191
+ } else {
2192
+ quantity = parseFloat(tempproduct_prod_extras_array[index].quantity);
2193
+ }
2194
+ quantity = quantity - 1;
2195
+ tempproduct_prod_extras_array[index].quantity = quantity;
2196
+ addtocartfunc(false, {
2197
+ functype: 'add',
2198
+ item_type: 'Extras',
2199
+ productid: item === null || item === void 0 || (_item$productinfo5 = item.productinfo) === null || _item$productinfo5 === void 0 ? void 0 : _item$productinfo5.productid,
2200
+ main_ref_productid: productid,
2201
+ variantid: '',
2202
+ quantity: quantity,
2203
+ date: '',
2204
+ time: '',
2205
+ from: '',
2206
+ to: '',
2207
+ extrafields: []
2208
+ });
2209
+ }
2172
2210
  }, /*#__PURE__*/React__default["default"].createElement("i", {
2173
2211
  className: 'h-100 allcentered'
2174
2212
  }, /*#__PURE__*/React__default["default"].createElement(FiMinus.FiMinus, {
@@ -2179,11 +2217,34 @@ var ProductExtras = function ProductExtras(props) {
2179
2217
  flex: 1,
2180
2218
  fontSize: 18
2181
2219
  }
2182
- }, "0"), /*#__PURE__*/React__default["default"].createElement("span", {
2220
+ }, item === null || item === void 0 ? void 0 : item.quantity), /*#__PURE__*/React__default["default"].createElement("span", {
2183
2221
  style: {
2184
2222
  flex: 1
2185
2223
  },
2186
- "class": "text-black cursor-pointer "
2224
+ "class": "text-black cursor-pointer ",
2225
+ onClick: function onClick() {
2226
+ var _item$productinfo6;
2227
+ var quantity = 0;
2228
+ var tempproduct_prod_extras_array = _toConsumableArray__default["default"](product_prod_extras_array);
2229
+ if (tempproduct_prod_extras_array[index].quantity != undefined && tempproduct_prod_extras_array[index].quantity != null && tempproduct_prod_extras_array[index].quantity != 0) {
2230
+ quantity = parseFloat(tempproduct_prod_extras_array[index].quantity);
2231
+ }
2232
+ quantity = quantity + 1;
2233
+ tempproduct_prod_extras_array[index].quantity = quantity;
2234
+ addtocartfunc(false, {
2235
+ functype: 'add',
2236
+ item_type: 'Extras',
2237
+ productid: item === null || item === void 0 || (_item$productinfo6 = item.productinfo) === null || _item$productinfo6 === void 0 ? void 0 : _item$productinfo6.productid,
2238
+ main_ref_productid: productid,
2239
+ variantid: '',
2240
+ quantity: quantity,
2241
+ date: '',
2242
+ time: '',
2243
+ from: '',
2244
+ to: '',
2245
+ extrafields: []
2246
+ });
2247
+ }
2187
2248
  }, /*#__PURE__*/React__default["default"].createElement("i", {
2188
2249
  className: 'h-100 allcentered'
2189
2250
  }, /*#__PURE__*/React__default["default"].createElement(FiPlus.FiPlus, {
@@ -7738,7 +7799,7 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
7738
7799
  };
7739
7800
 
7740
7801
  var Service_itemtype = function Service_itemtype(props) {
7741
- var _css, _authdetailsContext$i, _fetchProductInfoQuer, _fetchProductInfoQuer2, _fetchProductInfoQuer3, _fetchProductInfoQuer4, _fetchProductInfoQuer5, _fetchProductInfoQuer6, _fetchProductInfoQuer7, _fetchProductInfoQuer8, _fetchProductInfoQuer9, _fetchProductInfoQuer0, _fetchProductInfoQuer1, _fetchProductInfoQuer10, _fetchProductInfoQuer11, _fetchProductInfoQuer12, _fetchProductInfoQuer13, _fetchProductInfoQuer14, _fetchProductInfoQuer15, _fetchProductInfoQuer16, _returnpolicyobj, _returnpolicyobj2, _returnpolicyobj3, _returnpolicyobj4, _returnpolicyobj5, _returnpolicyobj6, _returnpolicyobj7, _returnpolicyobj8, _authdetailsContext$i2, _fetchProductInfoQuer17, _fetchProductInfoQuer18, _fetchProductInfoQuer19, _fetchProductInfoQuer20, _fetchProductInfoQuer21, _sizeguideimage$;
7802
+ var _css, _authdetailsContext$i, _fetchProductInfoQuer, _fetchProductInfoQuer2, _fetchProductInfoQuer3, _fetchProductInfoQuer4, _fetchProductInfoQuer5, _fetchProductInfoQuer6, _fetchProductInfoQuer7, _fetchProductInfoQuer8, _fetchProductInfoQuer9, _fetchProductInfoQuer0, _fetchProductInfoQuer1, _fetchProductInfoQuer10, _fetchProductInfoQuer11, _fetchProductInfoQuer12, _fetchProductInfoQuer13, _fetchProductInfoQuer14, _fetchProductInfoQuer15, _fetchProductInfoQuer16, _returnpolicyobj, _returnpolicyobj2, _returnpolicyobj3, _returnpolicyobj4, _returnpolicyobj5, _returnpolicyobj6, _returnpolicyobj7, _returnpolicyobj8, _authdetailsContext$i2, _fetchProductInfoQuer17, _fetchProductInfoQuer18, _fetchProductInfoQuer19, _fetchProductInfoQuer20, _sizeguideimage$;
7742
7803
  var lang = props.actions.lang;
7743
7804
  var langdetect = props.actions.langdetect;
7744
7805
  var srcfromprops = props.actions.srcfromprops;
@@ -7794,12 +7855,6 @@ var Service_itemtype = function Service_itemtype(props) {
7794
7855
  settitle(fetchProductInfoQueryContext.data.data.productinfo.name_en);
7795
7856
  setshareUrl('https://' + authdetailsContext.instinfo.instcred.instexternaldomain + '/productinform/' + fetchProductInfoQueryContext.data.data.productinfo.productid);
7796
7857
  }, [props.itemprops]);
7797
- var Slideshowsettings = {
7798
- indicators: true,
7799
- arrows: true,
7800
- pauseOnHover: false,
7801
- scale: 2
7802
- };
7803
7858
  function stringIsEnglish(str) {
7804
7859
  var titlelang = 'English';
7805
7860
  var arabic = /[\u0600-\u06FF]/;
@@ -7863,7 +7918,7 @@ var Service_itemtype = function Service_itemtype(props) {
7863
7918
  };
7864
7919
  return /*#__PURE__*/React__default["default"].createElement("div", {
7865
7920
  "class": ' col-lg-12 p-0 '
7866
- }, (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i = authdetailsContext.instinfo) === null || _authdetailsContext$i === void 0 ? void 0 : _authdetailsContext$i.instid) != '679e614485d6a' && /*#__PURE__*/React__default["default"].createElement("div", {
7921
+ }, (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i = authdetailsContext.instinfo) === null || _authdetailsContext$i === void 0 ? void 0 : _authdetailsContext$i.instid) != '68b59be871aaf' && /*#__PURE__*/React__default["default"].createElement("div", {
7867
7922
  "class": "".concat(productinfo_cssstyles.cardcontainer) + ' row ml-0 mr-0 w-100 pl-md-3 pr-md-3 px-1025-1 ',
7868
7923
  style: {
7869
7924
  minHeight: sectionproperties.height + 'vh'
@@ -8582,7 +8637,7 @@ var Service_itemtype = function Service_itemtype(props) {
8582
8637
  paddingLeft: langdetect == 'en' ? '.5em' : 0,
8583
8638
  paddingRight: langdetect == 'ar' ? '.5rem' : 0
8584
8639
  }
8585
- }, StoreInfoprops()))), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i2 = authdetailsContext.instinfo) === null || _authdetailsContext$i2 === void 0 ? void 0 : _authdetailsContext$i2.instid) == '679e614485d6a' && /*#__PURE__*/React__default["default"].createElement("div", {
8640
+ }, StoreInfoprops()))), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i2 = authdetailsContext.instinfo) === null || _authdetailsContext$i2 === void 0 ? void 0 : _authdetailsContext$i2.instid) == '68b59be871aaf' && /*#__PURE__*/React__default["default"].createElement("div", {
8586
8641
  "class": "".concat(productinfo_cssstyles.cardcontainer) + ' row ml-0 mr-0 w-100 pl-md-3 pr-md-3 px-1025-1 ',
8587
8642
  style: {
8588
8643
  minHeight: sectionproperties.height + 'vh',
@@ -8591,53 +8646,28 @@ var Service_itemtype = function Service_itemtype(props) {
8591
8646
  paddingTop: '60px'
8592
8647
  }
8593
8648
  }, /*#__PURE__*/React__default["default"].createElement("div", {
8594
- "class": 'col-lg-12 p-0 d-flex justify-content-center h-sm-auto mb-5',
8595
- style: {
8596
- height: '60vh'
8597
- }
8649
+ "class": 'col-lg-12 p-0 d-flex justify-content-center h-sm-auto mb-5'
8598
8650
  }, /*#__PURE__*/React__default["default"].createElement("div", {
8599
- "class": 'h-sm-auto',
8600
- style: {
8601
- position: 'relative',
8602
- width: '100vw',
8603
- height: '60vh',
8604
- overflow: 'hidden'
8605
- }
8606
- }, /*#__PURE__*/React__default["default"].createElement(reactSlideshowImage.Slide, _extends__default["default"]({}, Slideshowsettings, {
8607
- transitionDuration: 4000,
8608
- duration: 4000,
8609
- arrow: true,
8610
- easing: "ease"
8611
- }), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer17 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer17 === void 0 || (_fetchProductInfoQuer17 = _fetchProductInfoQuer17.data) === null || _fetchProductInfoQuer17 === void 0 || (_fetchProductInfoQuer17 = _fetchProductInfoQuer17.productinfo) === null || _fetchProductInfoQuer17 === void 0 || (_fetchProductInfoQuer17 = _fetchProductInfoQuer17.productimages) === null || _fetchProductInfoQuer17 === void 0 ? void 0 : _fetchProductInfoQuer17.length) != 0 && (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.productimages.map(function (item, index) {
8612
- if (item.is_size_guide != 1) {
8613
- return /*#__PURE__*/React__default["default"].createElement("div", {
8614
- "class": "row m-0 w-100 h-sm-auto",
8615
- style: {
8616
- // height: sectionproperties.bgcovercontain == 'Cover' ? sectionproperties.height + 'vh' : 'auto',
8617
- height: '60vh'
8618
- }
8619
- }, /*#__PURE__*/React__default["default"].createElement("div", {
8620
- "class": 'p-0 align-items-center d-flex',
8621
- key: index,
8622
- style: _defineProperty__default["default"]({
8623
- direction: langdetect == 'en' ? 'ltr' : 'rtl',
8624
- width: '100%',
8625
- height: '100%'
8626
- }, "height", '60vh')
8627
- }, /*#__PURE__*/React__default["default"].createElement(Imagekitimagecomp, {
8628
- urlEndpoint: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint,
8629
- publicKey: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimagepublickey,
8630
- path: item.path,
8631
- style: {
8632
- objectFit: sectionproperties.bgcovercontain == 'Contain' ? 'contain' : 'cover',
8633
- margin: 0,
8634
- padding: 0,
8635
- width: '100%',
8636
- height: '100%'
8637
- }
8638
- })));
8639
- }
8640
- }))))), /*#__PURE__*/React__default["default"].createElement("div", {
8651
+ "class": 'row m-0 w-100'
8652
+ }, (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer17 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer17 === void 0 || (_fetchProductInfoQuer17 = _fetchProductInfoQuer17.data) === null || _fetchProductInfoQuer17 === void 0 || (_fetchProductInfoQuer17 = _fetchProductInfoQuer17.productinfo) === null || _fetchProductInfoQuer17 === void 0 || (_fetchProductInfoQuer17 = _fetchProductInfoQuer17.productimages) === null || _fetchProductInfoQuer17 === void 0 ? void 0 : _fetchProductInfoQuer17.length) != 0 && (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.productimages.map(function (item, index) {
8653
+ return /*#__PURE__*/React__default["default"].createElement("div", {
8654
+ "class": "col-lg-3 col-md-4 col-md-6 mb-md-2"
8655
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
8656
+ "class": ' w-100 h-100',
8657
+ style: {}
8658
+ }, /*#__PURE__*/React__default["default"].createElement(Imagekitimagecomp, {
8659
+ urlEndpoint: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint,
8660
+ publicKey: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimagepublickey,
8661
+ path: '/tr:w-500,h-500/' + item.path,
8662
+ style: {
8663
+ width: '100%',
8664
+ height: '100%',
8665
+ objectFit: 'contain',
8666
+ borderRadius: 20
8667
+ },
8668
+ loading: "lazy"
8669
+ })));
8670
+ })))), /*#__PURE__*/React__default["default"].createElement("div", {
8641
8671
  "class": "col-lg-8"
8642
8672
  }, /*#__PURE__*/React__default["default"].createElement("div", {
8643
8673
  "class": "row m-0 w-100",
@@ -8663,58 +8693,7 @@ var Service_itemtype = function Service_itemtype(props) {
8663
8693
  }, /*#__PURE__*/React__default["default"].createElement(DescriptionContent, {
8664
8694
  actions: props.actions,
8665
8695
  srcfromprops: 'servicestyle2'
8666
- })), /*#__PURE__*/React__default["default"].createElement("div", {
8667
- "class": "col-lg-12 p-0 mb-3"
8668
- }, /*#__PURE__*/React__default["default"].createElement("p", {
8669
- "class": "m-0 p-0",
8670
- style: {
8671
- color: '#000',
8672
- fontSize: 20,
8673
- fontWeight: 600
8674
- }
8675
- }, "What's Included:")), /*#__PURE__*/React__default["default"].createElement("div", {
8676
- "class": "col-lg-12 text-start p-md-0"
8677
- }, /*#__PURE__*/React__default["default"].createElement("div", {
8678
- className: "row m-0 w-100"
8679
- }, 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.productfeatures) === null || _fetchProductInfoQuer21 === void 0 ? void 0 : _fetchProductInfoQuer21.map(function (fitem, findex) {
8680
- return /*#__PURE__*/React__default["default"].createElement("div", {
8681
- "class": "col-lg-12 col-md-12 p-0 mb-3 mt-2"
8682
- }, /*#__PURE__*/React__default["default"].createElement("div", {
8683
- "class": "row m-0 w-100 text-start"
8684
- }, /*#__PURE__*/React__default["default"].createElement("div", {
8685
- "class": "col-lg-12 text-start mb-3 text-uppercase p-0"
8686
- }, /*#__PURE__*/React__default["default"].createElement("div", {
8687
- style: {
8688
- width: '30px'
8689
- },
8690
- "class": langdetect == 'en' ? 'mr-2' : 'ml-2'
8691
- }, /*#__PURE__*/React__default["default"].createElement(Imagekitimagecomp, {
8692
- urlEndpoint: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint,
8693
- publicKey: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimagepublickey,
8694
- path: fitem === null || fitem === void 0 ? void 0 : fitem.feature_image_url,
8695
- loading: "lazy",
8696
- style: {
8697
- maxWidth: '100%',
8698
- maxHeight: '100%'
8699
- }
8700
- })), /*#__PURE__*/React__default["default"].createElement("p", {
8701
- "class": "m-0 p-0",
8702
- style: {
8703
- color: sectionproperties.featurecolor,
8704
- fontWeight: sectionproperties.featurefontweight,
8705
- fontSize: sectionproperties.featurefontsize
8706
- }
8707
- }, langdetect == 'en' ? fitem === null || fitem === void 0 ? void 0 : fitem.name_en : fitem === null || fitem === void 0 ? void 0 : fitem.name_ar)), /*#__PURE__*/React__default["default"].createElement("div", {
8708
- "class": "col-lg-12 text-start text-capitalize"
8709
- }, /*#__PURE__*/React__default["default"].createElement("p", {
8710
- "class": "m-0 p-0",
8711
- style: {
8712
- color: sectionproperties.featurevaluecolor,
8713
- fontWeight: sectionproperties.featurevaluefontweight,
8714
- fontSize: sectionproperties.featurevaluefontsize
8715
- }
8716
- }, langdetect == 'en' ? fitem === null || fitem === void 0 ? void 0 : fitem.value_en : fitem === null || fitem === void 0 ? void 0 : fitem.value_ar))));
8717
- }))))), /*#__PURE__*/React__default["default"].createElement("div", {
8696
+ })))), /*#__PURE__*/React__default["default"].createElement("div", {
8718
8697
  "class": "col-lg-4"
8719
8698
  }, /*#__PURE__*/React__default["default"].createElement("div", {
8720
8699
  "class": "row m-0 w-100 p-3",
@@ -8723,15 +8702,12 @@ var Service_itemtype = function Service_itemtype(props) {
8723
8702
  borderRadius: 10,
8724
8703
  boxShadow: '0 0 10px #ccc'
8725
8704
  }
8726
- }, /*#__PURE__*/React__default["default"].createElement(ProductHeaderPricing, {
8705
+ }, sectionproperties.showDefaultPricingSection == 'Show' && /*#__PURE__*/React__default["default"].createElement(ProductHeaderPricing, {
8727
8706
  actions: props.actions,
8728
8707
  srcfromprops: 'servicestyle2'
8729
- }), /*#__PURE__*/React__default["default"].createElement("div", {
8708
+ }), sectionproperties.showDefaultPricingSection == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
8730
8709
  "class": "col-12 p-0"
8731
- }, /*#__PURE__*/React__default["default"].createElement("hr", null)), /*#__PURE__*/React__default["default"].createElement(ProductExtras, {
8732
- actions: props.actions,
8733
- srcfromprops: 'servicestyle2'
8734
- }), /*#__PURE__*/React__default["default"].createElement(Serviceinfotabs, {
8710
+ }, /*#__PURE__*/React__default["default"].createElement("hr", null)), /*#__PURE__*/React__default["default"].createElement(Serviceinfotabs, {
8735
8711
  actions: {
8736
8712
  fetchProductInfoQueryContext: fetchProductInfoQueryContext,
8737
8713
  sectionproperties: sectionproperties,
@@ -8750,6 +8726,12 @@ var Service_itemtype = function Service_itemtype(props) {
8750
8726
  StaticPagesLinksContext: StaticPagesLinksContext,
8751
8727
  addtofavoritescontext: addtofavoritescontext
8752
8728
  }
8729
+ }), /*#__PURE__*/React__default["default"].createElement(Variantoptions, {
8730
+ actions: props.actions
8731
+ }), /*#__PURE__*/React__default["default"].createElement(ProductExtras, {
8732
+ actions: props.actions,
8733
+ srcfromprops: 'servicestyle2',
8734
+ addtocartfunc: addtocartfunc
8753
8735
  })))), sizeguideimage.length != 0 && /*#__PURE__*/React__default["default"].createElement(reactBootstrap.Modal, {
8754
8736
  show: opensizeguidemodal,
8755
8737
  onHide: function onHide() {
@@ -91773,11 +91755,23 @@ var Simpleproductcard = function Simpleproductcard(props) {
91773
91755
  _useState0 = _slicedToArray__default["default"](_useState9, 2),
91774
91756
  Variant_Color_ImageObj = _useState0[0],
91775
91757
  setVariant_Color_ImageObj = _useState0[1];
91776
- var authdetailsContext = props.actions.authdetailsContext;
91777
- var _useState1 = React.useState(false),
91758
+ var _useState1 = React.useState(0),
91778
91759
  _useState10 = _slicedToArray__default["default"](_useState1, 2),
91779
- showquantity = _useState10[0],
91780
- setshowquantity = _useState10[1];
91760
+ price = _useState10[0],
91761
+ setprice = _useState10[1];
91762
+ var _useState11 = React.useState(0),
91763
+ _useState12 = _slicedToArray__default["default"](_useState11, 2),
91764
+ sale_price = _useState12[0],
91765
+ setsale_price = _useState12[1];
91766
+ var _useState13 = React.useState(0),
91767
+ _useState14 = _slicedToArray__default["default"](_useState13, 2),
91768
+ has_sale = _useState14[0],
91769
+ sethas_sale = _useState14[1];
91770
+ var authdetailsContext = props.actions.authdetailsContext;
91771
+ var _useState15 = React.useState(false),
91772
+ _useState16 = _slicedToArray__default["default"](_useState15, 2),
91773
+ showquantity = _useState16[0],
91774
+ setshowquantity = _useState16[1];
91781
91775
  var plainString = function plainString(html) {
91782
91776
  var divContainer = document.createElement('div');
91783
91777
  divContainer.innerHTML = html;
@@ -91795,8 +91789,13 @@ var Simpleproductcard = function Simpleproductcard(props) {
91795
91789
  setsectionproperties(_objectSpread$6({}, secpropobj));
91796
91790
  }, [StatePagePropertiesContext]);
91797
91791
  React.useEffect(function () {
91792
+ var _props$cardinfoitempr, _props$cardinfoitempr2, _props$cardinfoitempr3;
91798
91793
  setitem(props.cardinfoitemprops);
91794
+ setprice(props === null || props === void 0 || (_props$cardinfoitempr = props.cardinfoitemprops) === null || _props$cardinfoitempr === void 0 ? void 0 : _props$cardinfoitempr.defaultprice);
91795
+ setsale_price(props === null || props === void 0 || (_props$cardinfoitempr2 = props.cardinfoitemprops) === null || _props$cardinfoitempr2 === void 0 ? void 0 : _props$cardinfoitempr2.defaultsaleprice);
91796
+ sethas_sale(props === null || props === void 0 || (_props$cardinfoitempr3 = props.cardinfoitemprops) === null || _props$cardinfoitempr3 === void 0 ? void 0 : _props$cardinfoitempr3.hassale);
91799
91797
  }, [props.cardinfoitemprops]);
91798
+
91800
91799
  // useEffect(() => {
91801
91800
  // if (item.quantity == 0) {
91802
91801
  // setshowquantity(false);
@@ -92062,32 +92061,32 @@ var Simpleproductcard = function Simpleproductcard(props) {
92062
92061
  }
92063
92062
  })
92064
92063
  };
92065
- var _useState11 = React.useState(''),
92066
- _useState12 = _slicedToArray__default["default"](_useState11, 2),
92067
- secondimage = _useState12[0],
92068
- setsecondimage = _useState12[1];
92064
+ var _useState17 = React.useState(''),
92065
+ _useState18 = _slicedToArray__default["default"](_useState17, 2),
92066
+ secondimage = _useState18[0],
92067
+ setsecondimage = _useState18[1];
92069
92068
  React.useEffect(function () {
92070
- var _props$cardinfoitempr;
92069
+ var _props$cardinfoitempr4;
92071
92070
  setitem(props.cardinfoitemprops);
92072
- if ((props === null || props === void 0 || (_props$cardinfoitempr = props.cardinfoitemprops) === null || _props$cardinfoitempr === void 0 || (_props$cardinfoitempr = _props$cardinfoitempr.productimages) === null || _props$cardinfoitempr === void 0 ? void 0 : _props$cardinfoitempr.length) == 1) {
92073
- var _props$cardinfoitempr2;
92074
- setsecondimage(props === null || props === void 0 || (_props$cardinfoitempr2 = props.cardinfoitemprops) === null || _props$cardinfoitempr2 === void 0 ? void 0 : _props$cardinfoitempr2.image);
92071
+ if ((props === null || props === void 0 || (_props$cardinfoitempr4 = props.cardinfoitemprops) === null || _props$cardinfoitempr4 === void 0 || (_props$cardinfoitempr4 = _props$cardinfoitempr4.productimages) === null || _props$cardinfoitempr4 === void 0 ? void 0 : _props$cardinfoitempr4.length) == 1) {
92072
+ var _props$cardinfoitempr5;
92073
+ setsecondimage(props === null || props === void 0 || (_props$cardinfoitempr5 = props.cardinfoitemprops) === null || _props$cardinfoitempr5 === void 0 ? void 0 : _props$cardinfoitempr5.image);
92075
92074
  } else {
92076
- var _props$cardinfoitempr3, _props$cardinfoitempr4;
92077
- if ((props === null || props === void 0 ? void 0 : props.cardinfoitemprops) != undefined && (props === null || props === void 0 || (_props$cardinfoitempr3 = props.cardinfoitemprops) === null || _props$cardinfoitempr3 === void 0 ? void 0 : _props$cardinfoitempr3.productimages) != undefined && Array.isArray(props === null || props === void 0 || (_props$cardinfoitempr4 = props.cardinfoitemprops) === null || _props$cardinfoitempr4 === void 0 ? void 0 : _props$cardinfoitempr4.productimages)) {
92078
- var _props$cardinfoitempr5, _props$cardinfoitempr6, _props$cardinfoitempr7;
92079
- if ((props === null || props === void 0 || (_props$cardinfoitempr5 = props.cardinfoitemprops) === null || _props$cardinfoitempr5 === void 0 ? void 0 : _props$cardinfoitempr5.productimages[0]) != undefined && (props === null || props === void 0 || (_props$cardinfoitempr6 = props.cardinfoitemprops) === null || _props$cardinfoitempr6 === void 0 || (_props$cardinfoitempr6 = _props$cardinfoitempr6.productimages[0]) === null || _props$cardinfoitempr6 === void 0 ? void 0 : _props$cardinfoitempr6.path) == (props === null || props === void 0 || (_props$cardinfoitempr7 = props.cardinfoitemprops) === null || _props$cardinfoitempr7 === void 0 ? void 0 : _props$cardinfoitempr7.image)) {
92080
- var _props$cardinfoitempr8;
92081
- if ((props === null || props === void 0 || (_props$cardinfoitempr8 = props.cardinfoitemprops) === null || _props$cardinfoitempr8 === void 0 || (_props$cardinfoitempr8 = _props$cardinfoitempr8.productimages[1]) === null || _props$cardinfoitempr8 === void 0 ? void 0 : _props$cardinfoitempr8.length) != 0) {
92082
- var _props$cardinfoitempr9;
92083
- setsecondimage(props === null || props === void 0 || (_props$cardinfoitempr9 = props.cardinfoitemprops) === null || _props$cardinfoitempr9 === void 0 || (_props$cardinfoitempr9 = _props$cardinfoitempr9.productimages[1]) === null || _props$cardinfoitempr9 === void 0 ? void 0 : _props$cardinfoitempr9.path);
92075
+ var _props$cardinfoitempr6, _props$cardinfoitempr7;
92076
+ if ((props === null || props === void 0 ? void 0 : props.cardinfoitemprops) != undefined && (props === null || props === void 0 || (_props$cardinfoitempr6 = props.cardinfoitemprops) === null || _props$cardinfoitempr6 === void 0 ? void 0 : _props$cardinfoitempr6.productimages) != undefined && Array.isArray(props === null || props === void 0 || (_props$cardinfoitempr7 = props.cardinfoitemprops) === null || _props$cardinfoitempr7 === void 0 ? void 0 : _props$cardinfoitempr7.productimages)) {
92077
+ var _props$cardinfoitempr8, _props$cardinfoitempr9, _props$cardinfoitempr0;
92078
+ if ((props === null || props === void 0 || (_props$cardinfoitempr8 = props.cardinfoitemprops) === null || _props$cardinfoitempr8 === void 0 ? void 0 : _props$cardinfoitempr8.productimages[0]) != undefined && (props === null || props === void 0 || (_props$cardinfoitempr9 = props.cardinfoitemprops) === null || _props$cardinfoitempr9 === void 0 || (_props$cardinfoitempr9 = _props$cardinfoitempr9.productimages[0]) === null || _props$cardinfoitempr9 === void 0 ? void 0 : _props$cardinfoitempr9.path) == (props === null || props === void 0 || (_props$cardinfoitempr0 = props.cardinfoitemprops) === null || _props$cardinfoitempr0 === void 0 ? void 0 : _props$cardinfoitempr0.image)) {
92079
+ var _props$cardinfoitempr1;
92080
+ if ((props === null || props === void 0 || (_props$cardinfoitempr1 = props.cardinfoitemprops) === null || _props$cardinfoitempr1 === void 0 || (_props$cardinfoitempr1 = _props$cardinfoitempr1.productimages[1]) === null || _props$cardinfoitempr1 === void 0 ? void 0 : _props$cardinfoitempr1.length) != 0) {
92081
+ var _props$cardinfoitempr10;
92082
+ setsecondimage(props === null || props === void 0 || (_props$cardinfoitempr10 = props.cardinfoitemprops) === null || _props$cardinfoitempr10 === void 0 || (_props$cardinfoitempr10 = _props$cardinfoitempr10.productimages[1]) === null || _props$cardinfoitempr10 === void 0 ? void 0 : _props$cardinfoitempr10.path);
92084
92083
  } else {
92085
- var _props$cardinfoitempr0;
92086
- setsecondimage(props === null || props === void 0 || (_props$cardinfoitempr0 = props.cardinfoitemprops) === null || _props$cardinfoitempr0 === void 0 ? void 0 : _props$cardinfoitempr0.image);
92084
+ var _props$cardinfoitempr11;
92085
+ setsecondimage(props === null || props === void 0 || (_props$cardinfoitempr11 = props.cardinfoitemprops) === null || _props$cardinfoitempr11 === void 0 ? void 0 : _props$cardinfoitempr11.image);
92087
92086
  }
92088
92087
  } else {
92089
- var _props$cardinfoitempr1;
92090
- setsecondimage(props === null || props === void 0 || (_props$cardinfoitempr1 = props.cardinfoitemprops) === null || _props$cardinfoitempr1 === void 0 || (_props$cardinfoitempr1 = _props$cardinfoitempr1.productimages[0]) === null || _props$cardinfoitempr1 === void 0 ? void 0 : _props$cardinfoitempr1.path);
92088
+ var _props$cardinfoitempr12;
92089
+ setsecondimage(props === null || props === void 0 || (_props$cardinfoitempr12 = props.cardinfoitemprops) === null || _props$cardinfoitempr12 === void 0 || (_props$cardinfoitempr12 = _props$cardinfoitempr12.productimages[0]) === null || _props$cardinfoitempr12 === void 0 ? void 0 : _props$cardinfoitempr12.path);
92091
92090
  }
92092
92091
  }
92093
92092
  }
@@ -92273,10 +92272,10 @@ var Simpleproductcard = function Simpleproductcard(props) {
92273
92272
  }
92274
92273
  }));
92275
92274
  };
92276
- var _useState13 = React.useState(0),
92277
- _useState14 = _slicedToArray__default["default"](_useState13, 2),
92278
- clickCount = _useState14[0],
92279
- setClickCount = _useState14[1];
92275
+ var _useState19 = React.useState(0),
92276
+ _useState20 = _slicedToArray__default["default"](_useState19, 2),
92277
+ clickCount = _useState20[0],
92278
+ setClickCount = _useState20[1];
92280
92279
  var handleClick = function handleClick() {
92281
92280
  // Increase the click count by 1
92282
92281
  setClickCount(function (prevCount) {
@@ -92319,14 +92318,14 @@ var Simpleproductcard = function Simpleproductcard(props) {
92319
92318
  fontSize: sectionproperties.pillfontSize + 'px',
92320
92319
  direction: 'ltr'
92321
92320
  }
92322
- }, '-' + parseFloat(Math.round(10.0 * ((parseInt(item.defaultprice) - parseInt(item.defaultsaleprice)) / parseInt(item.defaultprice)) * 100) / 10.0).toFixed(0) + '%'), sectionproperties.countertype == 'Value' && /*#__PURE__*/React__default["default"].createElement("p", {
92321
+ }, '-' + parseFloat(Math.round(10.0 * ((parseInt(price) - parseInt(sale_price)) / parseInt(price)) * 100) / 10.0).toFixed(0) + '%'), sectionproperties.countertype == 'Value' && /*#__PURE__*/React__default["default"].createElement("p", {
92323
92322
  "class": "m-0 p-0 text-uppercase",
92324
92323
  style: {
92325
92324
  color: sectionproperties.pillcolor,
92326
92325
  fontSize: sectionproperties.pillfontSize + 'px',
92327
92326
  direction: 'ltr'
92328
92327
  }
92329
- }, langdetect == 'en' ? 'Save' : 'وفر', " ", langdetect == 'en' ? item.currencyname : '', ' ', parseFloat(Math.round(parseInt(item.defaultprice) - parseInt(item.defaultsaleprice))).toFixed(0), " ", langdetect == 'en' ? '' : item.currencyname));
92328
+ }, langdetect == 'en' ? 'Save' : 'وفر', " ", langdetect == 'en' ? item.currencyname : '', " ", parseFloat(Math.round(parseInt(price) - parseInt(sale_price))).toFixed(0), ' ', langdetect == 'en' ? '' : item.currencyname));
92330
92329
  };
92331
92330
  return /*#__PURE__*/React__default["default"].createElement("div", {
92332
92331
  "class": props.sectiontypeprops2 == 'vertical' ? sectionproperties.card_marginLeft == 0 && sectionproperties.card_marginRight == 0 ? "".concat(card_cssstyles.productcard) + ' w-100 ' : "".concat(card_cssstyles.productcard) + ' w-100 px-md-1 ' : " ".concat(card_cssstyles.productcard),
@@ -92431,7 +92430,7 @@ var Simpleproductcard = function Simpleproductcard(props) {
92431
92430
  color: sectionproperties.badge_color,
92432
92431
  fontSize: sectionproperties.badge_fontsize + 'px'
92433
92432
  }
92434
- }, langdetect == 'en' ? sectionproperties.badgeContentEn : sectionproperties.badgeContentAr)), sectionproperties.showpill == 'Show' && item.hassale == 1 && sectionproperties.counterposition == 'Top' && /*#__PURE__*/React__default["default"].createElement("div", {
92433
+ }, langdetect == 'en' ? sectionproperties.badgeContentEn : sectionproperties.badgeContentAr)), sectionproperties.showpill == 'Show' && has_sale == 1 && sectionproperties.counterposition == 'Top' && /*#__PURE__*/React__default["default"].createElement("div", {
92435
92434
  style: {
92436
92435
  position: 'absolute',
92437
92436
  top: sectionproperties.pillpositionfromtop + 'px',
@@ -92646,11 +92645,11 @@ var Simpleproductcard = function Simpleproductcard(props) {
92646
92645
  }
92647
92646
  }, sectionproperties.prodPriceShow == 'Show' && /*#__PURE__*/React__default["default"].createElement("p", {
92648
92647
  "class": sectionproperties.priceDirection == 'Horizontal Direction' ? "".concat(card_cssstyles.productPricestyles) + ' m-0 ' : "".concat(card_cssstyles.productPricestyles) + ' m-0 '
92649
- }, langdetect == 'en' ? item.currencyname : '', " ", item.hassale == 1 ? item.defaultsaleprice : item.defaultprice, ' ', langdetect == 'en' ? '' : item.currencyname), sectionproperties.prodsalePriceshow == 'Show' && item.hassale == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
92648
+ }, langdetect == 'en' ? item.currencyname : '', " ", has_sale == 1 ? sale_price : price, " ", langdetect == 'en' ? '' : item.currencyname), sectionproperties.prodsalePriceshow == 'Show' && has_sale == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
92650
92649
  "class": sectionproperties.priceDirection == 'Horizontal' ? ' d-flex align-items-center p-0 mb-0 ' : ' d-flex align-items-center p-0 mb-0'
92651
92650
  }, /*#__PURE__*/React__default["default"].createElement("p", {
92652
92651
  "class": "".concat(card_cssstyles.productSalePricestyles) + ' linethrough m-0 mr-2 ml-2 '
92653
- }, langdetect == 'en' ? item.currencyname : '', " ", item.defaultprice, " ", langdetect == 'en' ? '' : item.currencyname)), sectionproperties.showpill == 'Show' && item.hassale == 1 && sectionproperties.counterposition == 'Besides Sale Price' && /*#__PURE__*/React__default["default"].createElement("div", {
92652
+ }, langdetect == 'en' ? item.currencyname : '', " ", price, " ", langdetect == 'en' ? '' : item.currencyname)), sectionproperties.showpill == 'Show' && has_sale == 1 && sectionproperties.counterposition == 'Besides Sale Price' && /*#__PURE__*/React__default["default"].createElement("div", {
92654
92653
  style: {}
92655
92654
  }, PillContainer()))), sectionproperties.showvariantscont == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
92656
92655
  "class": "col-12 p-0"
@@ -92662,7 +92661,37 @@ var Simpleproductcard = function Simpleproductcard(props) {
92662
92661
  fetchingtypeprops: props.fetchingtypeprops
92663
92662
  },
92664
92663
  foundMatchedVariantFunc: function foundMatchedVariantFunc(variantCompletedObj) {
92664
+ // alert(JSON.stringify(variantCompletedObj));
92665
+ // console.log(variantCompletedObj);
92665
92666
  setvariantObj(variantCompletedObj);
92667
+ var variant_price = 0;
92668
+ var variant_saleprice = 0;
92669
+ var variant_hassale = 0;
92670
+ var is_found = false;
92671
+ if (variantCompletedObj != null && variantCompletedObj != undefined) {
92672
+ var _variantCompletedObj$;
92673
+ if (variantCompletedObj.variant_prices != undefined && variantCompletedObj != null && (variantCompletedObj === null || variantCompletedObj === void 0 || (_variantCompletedObj$ = variantCompletedObj.variant_prices) === null || _variantCompletedObj$ === void 0 ? void 0 : _variantCompletedObj$.length) != 0) {
92674
+ var _variantCompletedObj$2, _variantCompletedObj$3, _variantCompletedObj$5, _variantCompletedObj$6, _variantCompletedObj$8, _variantCompletedObj$9;
92675
+ if ((variantCompletedObj === null || variantCompletedObj === void 0 || (_variantCompletedObj$2 = variantCompletedObj.variant_prices[0]) === null || _variantCompletedObj$2 === void 0 ? void 0 : _variantCompletedObj$2.price) != undefined && (variantCompletedObj === null || variantCompletedObj === void 0 || (_variantCompletedObj$3 = variantCompletedObj.variant_prices[0]) === null || _variantCompletedObj$3 === void 0 ? void 0 : _variantCompletedObj$3.price) != null) {
92676
+ var _variantCompletedObj$4;
92677
+ variant_price = variantCompletedObj === null || variantCompletedObj === void 0 || (_variantCompletedObj$4 = variantCompletedObj.variant_prices[0]) === null || _variantCompletedObj$4 === void 0 ? void 0 : _variantCompletedObj$4.price;
92678
+ is_found = true;
92679
+ }
92680
+ if ((variantCompletedObj === null || variantCompletedObj === void 0 || (_variantCompletedObj$5 = variantCompletedObj.variant_prices[0]) === null || _variantCompletedObj$5 === void 0 ? void 0 : _variantCompletedObj$5.price) != undefined && (variantCompletedObj === null || variantCompletedObj === void 0 || (_variantCompletedObj$6 = variantCompletedObj.variant_prices[0]) === null || _variantCompletedObj$6 === void 0 ? void 0 : _variantCompletedObj$6.price) != null) {
92681
+ var _variantCompletedObj$7;
92682
+ variant_saleprice = variantCompletedObj === null || variantCompletedObj === void 0 || (_variantCompletedObj$7 = variantCompletedObj.variant_prices[0]) === null || _variantCompletedObj$7 === void 0 ? void 0 : _variantCompletedObj$7.saleprice;
92683
+ }
92684
+ if ((variantCompletedObj === null || variantCompletedObj === void 0 || (_variantCompletedObj$8 = variantCompletedObj.variant_prices[0]) === null || _variantCompletedObj$8 === void 0 ? void 0 : _variantCompletedObj$8.price) != undefined && (variantCompletedObj === null || variantCompletedObj === void 0 || (_variantCompletedObj$9 = variantCompletedObj.variant_prices[0]) === null || _variantCompletedObj$9 === void 0 ? void 0 : _variantCompletedObj$9.price) != null) {
92685
+ var _variantCompletedObj$0;
92686
+ variant_hassale = variantCompletedObj === null || variantCompletedObj === void 0 || (_variantCompletedObj$0 = variantCompletedObj.variant_prices[0]) === null || _variantCompletedObj$0 === void 0 ? void 0 : _variantCompletedObj$0.hassale;
92687
+ }
92688
+ }
92689
+ }
92690
+ if (is_found) {
92691
+ setprice(variant_price);
92692
+ setsale_price(variant_saleprice);
92693
+ sethas_sale(variant_hassale);
92694
+ }
92666
92695
  },
92667
92696
  foundImageColorMatchingFunc: function foundImageColorMatchingFunc(variantIMAGECompletedObj) {
92668
92697
  setVariant_Color_ImageObj(variantIMAGECompletedObj);
@@ -92691,7 +92720,7 @@ var Simpleproductcard = function Simpleproductcard(props) {
92691
92720
  style: {
92692
92721
  fontWeight: sectionproperties.profitcontainersecondaryfontweight
92693
92722
  }
92694
- }, langdetect == 'en' ? item.currencyname : '', ' ', parseFloat(Math.round(parseInt(item.hassale == 1 ? item.defaultsaleprice : item.defaultprice) * (item.prodaffpercentprofit / 100))).toFixed(0), ' ', langdetect == 'en' ? '' : item.currencyname)))), sectionproperties.quantityshow == 'Show' && item.currentquantity > 0 && /*#__PURE__*/React__default["default"].createElement("div", {
92723
+ }, langdetect == 'en' ? item.currencyname : '', ' ', parseFloat(Math.round(parseInt(has_sale == 1 ? sale_price : price) * (item.prodaffpercentprofit / 100))).toFixed(0), ' ', langdetect == 'en' ? '' : item.currencyname)))), sectionproperties.quantityshow == 'Show' && item.currentquantity > 0 && /*#__PURE__*/React__default["default"].createElement("div", {
92695
92724
  "class": "col-lg-12 p-0 d-flex align-items-center",
92696
92725
  style: {
92697
92726
  justifyContent: sectionproperties.productnamecentered == 'Centered' ? 'center' : 'start'