tabexseriescomponents 0.0.571 → 0.0.574

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.esm.js CHANGED
@@ -2246,7 +2246,7 @@ var ProductExtraFields = function ProductExtraFields(props) {
2246
2246
  };
2247
2247
 
2248
2248
  var DescriptionContent = function DescriptionContent(props) {
2249
- var _fetchProductInfoQuer, _fetchProductInfoQuer2, _fetchProductInfoQuer3, _fetchProductInfoQuer4, _fetchProductInfoQuer5, _fetchProductInfoQuer6, _fetchProductInfoQuer7, _fetchProductInfoQuer8, _fetchProductInfoQuer9, _fetchProductInfoQuer10, _fetchProductInfoQuer11, _fetchProductInfoQuer12;
2249
+ var _fetchProductInfoQuer, _fetchProductInfoQuer2, _fetchProductInfoQuer3, _fetchProductInfoQuer4, _fetchProductInfoQuer5, _fetchProductInfoQuer6, _fetchProductInfoQuer7, _fetchProductInfoQuer8, _fetchProductInfoQuer9, _fetchProductInfoQuer10, _fetchProductInfoQuer11, _fetchProductInfoQuer12, _fetchProductInfoQuer13, _fetchProductInfoQuer14;
2250
2250
  var lang = props.actions.lang;
2251
2251
  var langdetect = props.actions.langdetect;
2252
2252
  var fetchProductInfoQueryContext = props.actions.fetchProductInfoQueryContext;
@@ -2257,7 +2257,7 @@ var DescriptionContent = function DescriptionContent(props) {
2257
2257
  setShowMore = _useState2[1];
2258
2258
  var ikimagecredcontext = props.actions.ikimagecredcontext;
2259
2259
  return /*#__PURE__*/React.createElement("div", {
2260
- "class": props.srcfromprops == 'undername' ? 'col-lg-12 p-0 w-100' : props.srcfromprops == 'undername' ? 'col-lg-12 p-0 w-100' : sectionproperties.gallerystyle == 'Style 1' ? 'col-lg-12 pl-5 pr-5 p-md-0 w-100' : 'col-lg-12 p-0 w-100'
2260
+ "class": props.srcfromprops == 'Articles' ? 'mt-3 px-3 mb-4' : props.srcfromprops == 'undername' ? 'col-lg-12 p-0 w-100' : props.srcfromprops == 'undername' ? 'col-lg-12 p-0 w-100' : sectionproperties.gallerystyle == 'Style 1' ? 'col-lg-12 pl-5 pr-5 p-md-0 w-100' : 'col-lg-12 p-0 w-100'
2261
2261
  }, /*#__PURE__*/React.createElement("div", {
2262
2262
  "class": "row m-0 w-100"
2263
2263
  }, sectionproperties.gallerystyle == 'Style 2' && props.srcfromprops != 'collap' && /*#__PURE__*/React.createElement("div", {
@@ -2275,7 +2275,7 @@ var DescriptionContent = function DescriptionContent(props) {
2275
2275
  className: "row m-0 w-100 d-flex"
2276
2276
  }, /*#__PURE__*/React.createElement("div", {
2277
2277
  "class": "col-lg-12 p-0 d-flex justify-content-start"
2278
- }, /*#__PURE__*/React.createElement("p", {
2278
+ }, props.srcfromprops != 'Articles' && /*#__PURE__*/React.createElement("p", {
2279
2279
  className: 'm-0 p-0 wordbreak',
2280
2280
  style: {
2281
2281
  textAlign: langdetect == 'en' ? 'left' : 'right',
@@ -2284,35 +2284,52 @@ var DescriptionContent = function DescriptionContent(props) {
2284
2284
  dangerouslySetInnerHTML: {
2285
2285
  __html: showMore == true ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer3 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer3 === void 0 || (_fetchProductInfoQuer3 = _fetchProductInfoQuer3.data) === null || _fetchProductInfoQuer3 === void 0 || (_fetchProductInfoQuer3 = _fetchProductInfoQuer3.productinfo) === null || _fetchProductInfoQuer3 === void 0 ? void 0 : _fetchProductInfoQuer3.description_en : fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer4 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer4 === void 0 || (_fetchProductInfoQuer4 = _fetchProductInfoQuer4.data) === null || _fetchProductInfoQuer4 === void 0 || (_fetchProductInfoQuer4 = _fetchProductInfoQuer4.productinfo) === null || _fetchProductInfoQuer4 === void 0 ? void 0 : _fetchProductInfoQuer4.description_en.slice(0, 1000)
2286
2286
  }
2287
- })), /*#__PURE__*/React.createElement("div", {
2287
+ }), props.srcfromprops == 'Articles' && /*#__PURE__*/React.createElement("p", {
2288
+ className: 'm-0 p-0 wordbreak',
2289
+ style: {
2290
+ textAlign: langdetect == 'en' ? 'left' : 'right',
2291
+ color: '#000000'
2292
+ },
2293
+ dangerouslySetInnerHTML: {
2294
+ __html: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer5 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer5 === void 0 || (_fetchProductInfoQuer5 = _fetchProductInfoQuer5.data) === null || _fetchProductInfoQuer5 === void 0 || (_fetchProductInfoQuer5 = _fetchProductInfoQuer5.productinfo) === null || _fetchProductInfoQuer5 === void 0 ? void 0 : _fetchProductInfoQuer5.description_en
2295
+ }
2296
+ })), props.srcfromprops != 'Articles' && /*#__PURE__*/React.createElement("div", {
2288
2297
  "class": "col-lg-12 allcentered"
2289
- }, (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer5 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer5 === void 0 || (_fetchProductInfoQuer5 = _fetchProductInfoQuer5.data) === null || _fetchProductInfoQuer5 === void 0 || (_fetchProductInfoQuer5 = _fetchProductInfoQuer5.productinfo) === null || _fetchProductInfoQuer5 === void 0 ? void 0 : _fetchProductInfoQuer5.description_en.length) > 1000 && /*#__PURE__*/React.createElement("p", {
2298
+ }, (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer6 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer6 === void 0 || (_fetchProductInfoQuer6 = _fetchProductInfoQuer6.data) === null || _fetchProductInfoQuer6 === void 0 || (_fetchProductInfoQuer6 = _fetchProductInfoQuer6.productinfo) === null || _fetchProductInfoQuer6 === void 0 ? void 0 : _fetchProductInfoQuer6.description_en.length) > 1000 && /*#__PURE__*/React.createElement("p", {
2290
2299
  "class": "m-0 p-0 cursor-pointer text-grey font-weight-600",
2291
2300
  onClick: function onClick() {
2292
2301
  return setShowMore(!showMore);
2293
2302
  }
2294
- }, showMore ? lang.showless : lang.showmore)))), langdetect == 'ar' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer6 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer6 === void 0 || (_fetchProductInfoQuer6 = _fetchProductInfoQuer6.data) === null || _fetchProductInfoQuer6 === void 0 || (_fetchProductInfoQuer6 = _fetchProductInfoQuer6.productinfo) === null || _fetchProductInfoQuer6 === void 0 ? void 0 : _fetchProductInfoQuer6.description_ar) != '' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer7 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer7 === void 0 || (_fetchProductInfoQuer7 = _fetchProductInfoQuer7.data) === null || _fetchProductInfoQuer7 === void 0 || (_fetchProductInfoQuer7 = _fetchProductInfoQuer7.productinfo) === null || _fetchProductInfoQuer7 === void 0 ? void 0 : _fetchProductInfoQuer7.description_ar) != null && sectionproperties.prodCatShow == 'Show' && /*#__PURE__*/React.createElement("div", {
2303
+ }, showMore ? lang.showless : lang.showmore)))), langdetect == 'ar' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer7 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer7 === void 0 || (_fetchProductInfoQuer7 = _fetchProductInfoQuer7.data) === null || _fetchProductInfoQuer7 === void 0 || (_fetchProductInfoQuer7 = _fetchProductInfoQuer7.productinfo) === null || _fetchProductInfoQuer7 === void 0 ? void 0 : _fetchProductInfoQuer7.description_ar) != '' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer8 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer8 === void 0 || (_fetchProductInfoQuer8 = _fetchProductInfoQuer8.data) === null || _fetchProductInfoQuer8 === void 0 || (_fetchProductInfoQuer8 = _fetchProductInfoQuer8.productinfo) === null || _fetchProductInfoQuer8 === void 0 ? void 0 : _fetchProductInfoQuer8.description_ar) != null && sectionproperties.prodCatShow == 'Show' && /*#__PURE__*/React.createElement("div", {
2295
2304
  className: "col-lg-12 p-0 mb-4 d-flex justify-content-center"
2296
2305
  }, /*#__PURE__*/React.createElement("div", {
2297
2306
  className: "row m-0 w-100 d-flex"
2298
2307
  }, /*#__PURE__*/React.createElement("div", {
2299
2308
  "class": "col-lg-12 p-0 d-flex justify-content-start flex-column"
2300
- }, /*#__PURE__*/React.createElement("p", {
2309
+ }, props.srcfromprops != 'Articles' && /*#__PURE__*/React.createElement("p", {
2301
2310
  className: 'text-black m-0 p-0 wordbreak',
2302
2311
  style: {
2303
2312
  textAlign: langdetect == 'en' ? 'left' : 'right'
2304
2313
  },
2305
2314
  dangerouslySetInnerHTML: {
2306
- __html: showMore == true ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer8 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer8 === void 0 || (_fetchProductInfoQuer8 = _fetchProductInfoQuer8.data) === null || _fetchProductInfoQuer8 === void 0 || (_fetchProductInfoQuer8 = _fetchProductInfoQuer8.productinfo) === null || _fetchProductInfoQuer8 === void 0 ? void 0 : _fetchProductInfoQuer8.description_ar : fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer9 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer9 === void 0 || (_fetchProductInfoQuer9 = _fetchProductInfoQuer9.data) === null || _fetchProductInfoQuer9 === void 0 || (_fetchProductInfoQuer9 = _fetchProductInfoQuer9.productinfo) === null || _fetchProductInfoQuer9 === void 0 ? void 0 : _fetchProductInfoQuer9.description_ar.slice(0, 1000)
2315
+ __html: showMore == true ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer9 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer9 === void 0 || (_fetchProductInfoQuer9 = _fetchProductInfoQuer9.data) === null || _fetchProductInfoQuer9 === void 0 || (_fetchProductInfoQuer9 = _fetchProductInfoQuer9.productinfo) === null || _fetchProductInfoQuer9 === void 0 ? void 0 : _fetchProductInfoQuer9.description_ar : fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer10 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer10 === void 0 || (_fetchProductInfoQuer10 = _fetchProductInfoQuer10.data) === null || _fetchProductInfoQuer10 === void 0 || (_fetchProductInfoQuer10 = _fetchProductInfoQuer10.productinfo) === null || _fetchProductInfoQuer10 === void 0 ? void 0 : _fetchProductInfoQuer10.description_ar.slice(0, 1000)
2307
2316
  }
2308
- })), /*#__PURE__*/React.createElement("div", {
2317
+ }), props.srcfromprops == 'Articles' && /*#__PURE__*/React.createElement("p", {
2318
+ className: 'text-black m-0 p-0 wordbreak',
2319
+ style: {
2320
+ textAlign: langdetect == 'en' ? 'left' : 'right'
2321
+ },
2322
+ dangerouslySetInnerHTML: {
2323
+ __html: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer11 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer11 === void 0 || (_fetchProductInfoQuer11 = _fetchProductInfoQuer11.data) === null || _fetchProductInfoQuer11 === void 0 || (_fetchProductInfoQuer11 = _fetchProductInfoQuer11.productinfo) === null || _fetchProductInfoQuer11 === void 0 ? void 0 : _fetchProductInfoQuer11.description_ar
2324
+ }
2325
+ })), props.srcfromprops != 'Articles' && /*#__PURE__*/React.createElement("div", {
2309
2326
  "class": "col-lg-12 allcentered"
2310
- }, (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer10 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer10 === void 0 || (_fetchProductInfoQuer10 = _fetchProductInfoQuer10.data) === null || _fetchProductInfoQuer10 === void 0 || (_fetchProductInfoQuer10 = _fetchProductInfoQuer10.productinfo) === null || _fetchProductInfoQuer10 === void 0 ? void 0 : _fetchProductInfoQuer10.description_ar.length) > 1000 && /*#__PURE__*/React.createElement("p", {
2327
+ }, (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer12 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer12 === void 0 || (_fetchProductInfoQuer12 = _fetchProductInfoQuer12.data) === null || _fetchProductInfoQuer12 === void 0 || (_fetchProductInfoQuer12 = _fetchProductInfoQuer12.productinfo) === null || _fetchProductInfoQuer12 === void 0 ? void 0 : _fetchProductInfoQuer12.description_ar.length) > 1000 && /*#__PURE__*/React.createElement("p", {
2311
2328
  "class": "m-0 p-0 cursor-pointer text-grey font-weight-600 text-right",
2312
2329
  onClick: function onClick() {
2313
2330
  return setShowMore(!showMore);
2314
2331
  }
2315
- }, showMore ? lang.showless : lang.showmore)))), props.srcfromprops != 'collap' && sectionproperties.showGallery == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer11 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer11 === void 0 || (_fetchProductInfoQuer11 = _fetchProductInfoQuer11.data) === null || _fetchProductInfoQuer11 === void 0 || (_fetchProductInfoQuer11 = _fetchProductInfoQuer11.productinfo) === null || _fetchProductInfoQuer11 === void 0 || (_fetchProductInfoQuer11 = _fetchProductInfoQuer11.productimages) === null || _fetchProductInfoQuer11 === void 0 ? void 0 : _fetchProductInfoQuer11.length) != 0 && /*#__PURE__*/React.createElement("div", {
2332
+ }, showMore ? lang.showless : lang.showmore)))), props.srcfromprops != 'collap' && sectionproperties.showGallery == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer13 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer13 === void 0 || (_fetchProductInfoQuer13 = _fetchProductInfoQuer13.data) === null || _fetchProductInfoQuer13 === void 0 || (_fetchProductInfoQuer13 = _fetchProductInfoQuer13.productinfo) === null || _fetchProductInfoQuer13 === void 0 || (_fetchProductInfoQuer13 = _fetchProductInfoQuer13.productimages) === null || _fetchProductInfoQuer13 === void 0 ? void 0 : _fetchProductInfoQuer13.length) != 0 && /*#__PURE__*/React.createElement("div", {
2316
2333
  "class": "col-lg-12 p-0"
2317
2334
  }, /*#__PURE__*/React.createElement("div", {
2318
2335
  "class": "row m-0 w-100 allcentered pl-md-3 pr-md-3",
@@ -2320,7 +2337,7 @@ var DescriptionContent = function DescriptionContent(props) {
2320
2337
  paddingLeft: sectionproperties.galleryPaddingHorizontal + 'px',
2321
2338
  paddingRight: sectionproperties.galleryPaddingHorizontal + 'px'
2322
2339
  }
2323
- }, fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer12 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer12 === void 0 || (_fetchProductInfoQuer12 = _fetchProductInfoQuer12.data) === null || _fetchProductInfoQuer12 === void 0 || (_fetchProductInfoQuer12 = _fetchProductInfoQuer12.productinfo) === null || _fetchProductInfoQuer12 === void 0 || (_fetchProductInfoQuer12 = _fetchProductInfoQuer12.productimages) === null || _fetchProductInfoQuer12 === void 0 ? void 0 : _fetchProductInfoQuer12.map(function (item, index) {
2340
+ }, fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer14 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer14 === void 0 || (_fetchProductInfoQuer14 = _fetchProductInfoQuer14.data) === null || _fetchProductInfoQuer14 === void 0 || (_fetchProductInfoQuer14 = _fetchProductInfoQuer14.productinfo) === null || _fetchProductInfoQuer14 === void 0 || (_fetchProductInfoQuer14 = _fetchProductInfoQuer14.productimages) === null || _fetchProductInfoQuer14 === void 0 ? void 0 : _fetchProductInfoQuer14.map(function (item, index) {
2324
2341
  if (index <= 6) {
2325
2342
  return /*#__PURE__*/React.createElement("div", {
2326
2343
  "class": ' col-md-4 col-sm-12 mb-3 col-lg-' + sectionproperties.galleryNoOfCols,
@@ -5094,6 +5111,177 @@ var Service_itemtype = function Service_itemtype(props) {
5094
5111
  }, StoreInfoprops()))));
5095
5112
  };
5096
5113
 
5114
+ var Article_itemtype = function Article_itemtype(props) {
5115
+ var _fetchProductInfoQuer, _fetchProductInfoQuer2, _fetchProductInfoQuer3, _fetchProductInfoQuer4, _fetchProductInfoQuer5, _fetchProductInfoQuer6;
5116
+ props.actions.lang;
5117
+ var langdetect = props.actions.langdetect;
5118
+ var srcfromprops = props.actions.srcfromprops;
5119
+ props.actions.returnpolicyobj;
5120
+ var productinfo_cssstyles = props.actions.productinfo_cssstyles;
5121
+ props.actions.addtocartfunc;
5122
+ props.actions.selectproductoptionvalue;
5123
+ props.actions.clearchoosenvaluesbutkeepcurrentvalue;
5124
+ props.actions.productimagesarray;
5125
+ var fetchProductInfoQueryContext = props.actions.fetchProductInfoQueryContext;
5126
+ var sectionproperties = props.actions.sectionproperties;
5127
+ props.actions.addtocardpayloadobj;
5128
+ props.actions.setaddtocardpayloadobj;
5129
+ var routingcountext = props.actions.routingcountext;
5130
+ props.actions.AddtoCartMutationContext;
5131
+ var authdetailsContext = props.actions.authdetailsContext;
5132
+ props.actions.variantsku;
5133
+ props.actions.addtofavoritescontext;
5134
+ props.actions.variantindexcompleted;
5135
+ props.actions.ProductInfoObj;
5136
+ props.actions.NotificationManager;
5137
+ var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
5138
+ props.actions.getprice_discountpriceprops;
5139
+ var ikimagecredcontext = props.actions.ikimagecredcontext;
5140
+ var currentshowingimageindex_pro = props.actions.currentshowingimageindex;
5141
+ props.actions.StoreInfoprops;
5142
+ var _useState = useState(currentshowingimageindex_pro),
5143
+ _useState2 = _slicedToArray(_useState, 2);
5144
+ _useState2[0];
5145
+ _useState2[1];
5146
+ // const DescriptionContent = props.actions.DescriptionContent;
5147
+ var _useState3 = useState(''),
5148
+ _useState4 = _slicedToArray(_useState3, 2);
5149
+ _useState4[0];
5150
+ var setshareUrl = _useState4[1];
5151
+ var _useState5 = useState(''),
5152
+ _useState6 = _slicedToArray(_useState5, 2);
5153
+ _useState6[0];
5154
+ var settitle = _useState6[1];
5155
+ var _useState7 = useState(fetchProductInfoQueryContext.data.data.productinfo),
5156
+ _useState8 = _slicedToArray(_useState7, 2);
5157
+ _useState8[0];
5158
+ var setitem = _useState8[1];
5159
+ useEffect(function () {
5160
+ var itemobj = fetchProductInfoQueryContext.data.data.productinfo;
5161
+ if (stringIsEnglish(fetchProductInfoQueryContext.data.data.productinfo.name_en)) {
5162
+ itemobj.titlelang = 'en';
5163
+ } else {
5164
+ itemobj.titlelang = 'ar';
5165
+ }
5166
+ if (stringIsEnglish(fetchProductInfoQueryContext.data.data.productinfo.description_en)) {
5167
+ itemobj.decriptionlang = 'en';
5168
+ } else {
5169
+ itemobj.decriptionlang = 'ar';
5170
+ }
5171
+ setitem(itemobj);
5172
+ settitle(fetchProductInfoQueryContext.data.data.productinfo.name_en);
5173
+ setshareUrl('https://' + authdetailsContext.instinfo.instcred.instexternaldomain + '/productinform/' + fetchProductInfoQueryContext.data.data.productinfo.productid);
5174
+ }, [props.itemprops]);
5175
+ function stringIsEnglish(str) {
5176
+ var titlelang = 'English';
5177
+ var arabic = /[\u0600-\u06FF]/;
5178
+ if (!arabic.test(str)) {
5179
+ titlelang = true;
5180
+ } else {
5181
+ titlelang = false;
5182
+ }
5183
+ return titlelang;
5184
+ }
5185
+ return /*#__PURE__*/React.createElement("div", {
5186
+ className: sectionproperties.card_marginLeft != 0 ? ' row m-0 w-100 pl-lg-3 pr-lg-3 pl-md-4 pr-md-4 p-sm-0 ' : ' row m-0 w-100 p-sm-0 ',
5187
+ style: {
5188
+ paddingLeft: srcfromprops == 'Productinfomodel' ? langdetect == 'en' ? sectionproperties.card_marginLeft + 'px' : sectionproperties.card_marginRight + 'px' : 0,
5189
+ paddingRight: srcfromprops == 'Productinfomodel' ? langdetect == 'en' ? sectionproperties.card_marginRight + 'px' : sectionproperties.card_marginLeft + 'px' : 0
5190
+ }
5191
+ }, /*#__PURE__*/React.createElement("div", {
5192
+ "class": ' col-lg-12 p-0 '
5193
+ }, /*#__PURE__*/React.createElement("div", {
5194
+ "class": "".concat(productinfo_cssstyles.cardcontainer) + ' row ml-0 mr-0 w-100 pl-md-3 pr-md-3 px-1025-1 ',
5195
+ style: {
5196
+ minHeight: sectionproperties.height + 'vh'
5197
+ // paddingLeft: srcfromprops == 'templatedraftrouter' ? 0 : langdetect == 'en' ? sectionproperties.card_marginLeft + 'px' : sectionproperties.card_marginRight + 'px',
5198
+ // paddingRight: srcfromprops == 'templatedraftrouter' ? 0 : langdetect == 'en' ? sectionproperties.card_marginRight + 'px' : sectionproperties.card_marginLeft + 'px',
5199
+ }
5200
+ }, /*#__PURE__*/React.createElement("div", {
5201
+ "class": "w-100 scrollhorizontalwithscrollbar "
5202
+ }, (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 || (_fetchProductInfoQuer = _fetchProductInfoQuer.productimages) === null || _fetchProductInfoQuer === void 0 ? void 0 : _fetchProductInfoQuer.length) != 0 && (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.productimages.map(function (item, index) {
5203
+ return /*#__PURE__*/React.createElement("div", {
5204
+ "class": ' scrollhorizontalcard mx-2 ',
5205
+ style: {
5206
+ height: sectionproperties.image_height + 'px',
5207
+ width: sectionproperties.image_width + 'px'
5208
+ }
5209
+ }, /*#__PURE__*/React.createElement(Imagekitimagecomp, {
5210
+ urlEndpoint: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint,
5211
+ publicKey: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimagepublickey,
5212
+ path: '/tr:w-' + sectionproperties.imagetr_w + ',h-' + sectionproperties.imagetr_h + '/' + item.path,
5213
+ style: {
5214
+ width: '100%',
5215
+ height: '100%',
5216
+ objectFit: 'contain'
5217
+ },
5218
+ loading: "lazy"
5219
+ }));
5220
+ }))), /*#__PURE__*/React.createElement("div", {
5221
+ "class": "col-lg-12 p-0"
5222
+ }, /*#__PURE__*/React.createElement("div", {
5223
+ "class": "row mx-0 w-100",
5224
+ style: {
5225
+ marginTop: '3rem'
5226
+ }
5227
+ }, /*#__PURE__*/React.createElement("div", {
5228
+ className: 'col-lg-12 px-3 px-md-2'
5229
+ }, /*#__PURE__*/React.createElement("div", {
5230
+ className: 'row m-0 w-100'
5231
+ }, sectionproperties.showmeasurementunit == 'Show' && /*#__PURE__*/React.createElement("div", {
5232
+ className: 'col-lg-12 p-0 mb-1 d-flex justify-content-start align-items-center mb-1 mt-3'
5233
+ }, /*#__PURE__*/React.createElement("p", {
5234
+ className: ' m-0 p-0 wordbreak d-flex justify-content-start ',
5235
+ style: {
5236
+ textAlign: langdetect == 'en' ? 'left' : 'right',
5237
+ fontWeight: 400,
5238
+ color: sectionproperties.measurementunitcolor,
5239
+ fontSize: sectionproperties.measurementunitcolor + 'px'
5240
+ }
5241
+ }, fetchProductInfoQueryContext.data.data.productinfo.measurmentunit)), /*#__PURE__*/React.createElement("div", {
5242
+ className: 'col-lg-12 p-0 mb-1 d-flex justify-content-start align-items-center'
5243
+ }, /*#__PURE__*/React.createElement("p", {
5244
+ className: props.srcfromprops != 'templatedraftrouter' ? "".concat(productinfo_cssstyles.productname, " ").concat(productinfo_cssstyles.productnamehover) + ' m-0 p-0 wordbreak d-flex justify-content-start cursor-pointer font-sm-15 ' : "".concat(productinfo_cssstyles.productname) + ' m-0 p-0 wordbreak d-flex justify-content-start font-sm-15 ',
5245
+ onClick: function onClick() {
5246
+ if (props.srcfromprops != 'templatedraftrouter') {
5247
+ routingcountext(StaticPagesLinksContext.productinfo, true, fetchProductInfoQueryContext.data.data.productinfo.productid);
5248
+ }
5249
+ },
5250
+ style: {
5251
+ textAlign: langdetect == 'en' ? 'left' : 'right'
5252
+ }
5253
+ }, langdetect == 'en' ? fetchProductInfoQueryContext.data.data.productinfo.name_en : fetchProductInfoQueryContext.data.data.productinfo.name_ar)), langdetect == 'en' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer3 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer3 === void 0 || (_fetchProductInfoQuer3 = _fetchProductInfoQuer3.data) === null || _fetchProductInfoQuer3 === void 0 || (_fetchProductInfoQuer3 = _fetchProductInfoQuer3.productinfo) === null || _fetchProductInfoQuer3 === void 0 ? void 0 : _fetchProductInfoQuer3.short_description_en) != null && /*#__PURE__*/React.createElement("div", {
5254
+ "class": "col-lg-12 p-0"
5255
+ }, /*#__PURE__*/React.createElement("div", {
5256
+ "class": "col-lg-12 p-0 d-flex justify-content-start"
5257
+ }, /*#__PURE__*/React.createElement("p", {
5258
+ className: 'text-black m-0 p-0 wordbreak',
5259
+ style: {
5260
+ textAlign: langdetect == 'en' ? 'left' : 'right'
5261
+ },
5262
+ dangerouslySetInnerHTML: {
5263
+ __html: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer4 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer4 === void 0 || (_fetchProductInfoQuer4 = _fetchProductInfoQuer4.data) === null || _fetchProductInfoQuer4 === void 0 || (_fetchProductInfoQuer4 = _fetchProductInfoQuer4.productinfo) === null || _fetchProductInfoQuer4 === void 0 ? void 0 : _fetchProductInfoQuer4.short_description_en
5264
+ }
5265
+ }))), langdetect == 'ar' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer5 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer5 === void 0 || (_fetchProductInfoQuer5 = _fetchProductInfoQuer5.data) === null || _fetchProductInfoQuer5 === void 0 || (_fetchProductInfoQuer5 = _fetchProductInfoQuer5.productinfo) === null || _fetchProductInfoQuer5 === void 0 ? void 0 : _fetchProductInfoQuer5.short_description_ar) != null && /*#__PURE__*/React.createElement("div", {
5266
+ "class": "col-lg-12 p-0"
5267
+ }, /*#__PURE__*/React.createElement("div", {
5268
+ "class": "col-lg-12 p-0 d-flex justify-content-start"
5269
+ }, /*#__PURE__*/React.createElement("p", {
5270
+ className: 'text-black m-0 p-0 wordbreak',
5271
+ style: {
5272
+ textAlign: langdetect == 'en' ? 'left' : 'right'
5273
+ },
5274
+ dangerouslySetInnerHTML: {
5275
+ __html: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer6 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer6 === void 0 || (_fetchProductInfoQuer6 = _fetchProductInfoQuer6.data) === null || _fetchProductInfoQuer6 === void 0 || (_fetchProductInfoQuer6 = _fetchProductInfoQuer6.productinfo) === null || _fetchProductInfoQuer6 === void 0 ? void 0 : _fetchProductInfoQuer6.short_description_ar
5276
+ }
5277
+ }))), /*#__PURE__*/React.createElement("div", {
5278
+ "class": "col-lg-12 p-0"
5279
+ }, /*#__PURE__*/React.createElement(DescriptionContent, {
5280
+ actions: props.actions,
5281
+ srcfromprops: 'Articles'
5282
+ })))))))));
5283
+ };
5284
+
5097
5285
  function ownKeys$2s(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; }
5098
5286
  function _objectSpread$2s(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2s(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2s(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
5099
5287
  var AddReview = function AddReview(props) {
@@ -5606,7 +5794,7 @@ var ProductReviews = function ProductReviews(props) {
5606
5794
  function ownKeys$2q(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; }
5607
5795
  function _objectSpread$2q(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2q(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2q(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
5608
5796
  var Productinfo = function Productinfo(props) {
5609
- var _css, _ref, _ref2, _fetchProductInfoQuer35, _fetchProductInfoQuer36, _returnpolicyobj, _returnpolicyobj2, _returnpolicyobj3, _returnpolicyobj4, _fetchProductInfoQuer37, _fetchProductInfoQuer38, _returnpolicyobj5, _returnpolicyobj6, _returnpolicyobj7, _returnpolicyobj8, _fetchProductInfoQuer39, _fetchProductInfoQuer40, _returnpolicyobj9, _returnpolicyobj10, _returnpolicyobj11, _returnpolicyobj12;
5797
+ var _css, _ref, _ref2, _ref3, _fetchProductInfoQuer35, _fetchProductInfoQuer36, _returnpolicyobj, _returnpolicyobj2, _returnpolicyobj3, _returnpolicyobj4, _fetchProductInfoQuer37, _fetchProductInfoQuer38, _returnpolicyobj5, _returnpolicyobj6, _returnpolicyobj7, _returnpolicyobj8, _fetchProductInfoQuer39, _fetchProductInfoQuer40, _returnpolicyobj9, _returnpolicyobj10, _returnpolicyobj11, _returnpolicyobj12;
5610
5798
  var _useState = useState({}),
5611
5799
  _useState2 = _slicedToArray(_useState, 2),
5612
5800
  ProductInfoObj = _useState2[0],
@@ -7022,7 +7210,7 @@ var Productinfo = function Productinfo(props) {
7022
7210
  paddingLeft: props.srcfromprops == 'Productinfomodel' ? langdetect == 'en' ? sectionproperties.card_marginLeft + 'px' : sectionproperties.card_marginRight + 'px' : 0,
7023
7211
  paddingRight: props.srcfromprops == 'Productinfomodel' ? langdetect == 'en' ? sectionproperties.card_marginRight + 'px' : sectionproperties.card_marginLeft + 'px' : 0
7024
7212
  }
7025
- }, fetchProductInfoQueryContext.data.data.productinfo.item_type != 'service' && /*#__PURE__*/React.createElement(Product_itemtype, {
7213
+ }, fetchProductInfoQueryContext.data.data.productinfo.item_type == 'product' && /*#__PURE__*/React.createElement(Product_itemtype, {
7026
7214
  actions: (_ref = {
7027
7215
  setisoutofstock: setisoutofstock,
7028
7216
  isoutofstock: isoutofstock,
@@ -7031,8 +7219,17 @@ var Productinfo = function Productinfo(props) {
7031
7219
  lang: lang,
7032
7220
  srcfromprops: props.srcfromprops
7033
7221
  }, _defineProperty(_ref, "returnpolicyobj", returnpolicyobj), _defineProperty(_ref, "productinfo_cssstyles", productinfo_cssstyles), _defineProperty(_ref, "addtocartfunc", addtocartfunc), _defineProperty(_ref, "selectproductoptionvalue", selectproductoptionvalue), _defineProperty(_ref, "clearchoosenvaluesbutkeepcurrentvalue", clearchoosenvaluesbutkeepcurrentvalue), _defineProperty(_ref, "productimagesarray", productimagesarray), _defineProperty(_ref, "fetchProductInfoQueryContext", fetchProductInfoQueryContext), _defineProperty(_ref, "ProductInfoObj", ProductInfoObj), _defineProperty(_ref, "sectionproperties", sectionproperties), _defineProperty(_ref, "addtocardpayloadobj", addtocardpayloadobj), _defineProperty(_ref, "setaddtocardpayloadobj", setaddtocardpayloadobj), _defineProperty(_ref, "routingcountext", routingcountext), _defineProperty(_ref, "AddtoCartMutationContext", AddtoCartMutationContext), _defineProperty(_ref, "authdetailsContext", authdetailsContext), _defineProperty(_ref, "addtofavoritescontext", addtofavoritescontext), _defineProperty(_ref, "variantindexcompleted", variantindexcompleted), _defineProperty(_ref, "StaticPagesLinksContext", StaticPagesLinksContext), _defineProperty(_ref, "NotificationManager", NotificationManager), _defineProperty(_ref, "GeneralAPIMutationContext", GeneralAPIMutationContext), _defineProperty(_ref, "quantityconditionfoundobjprops", quantityconditionfoundobj), _defineProperty(_ref, "relatedproducts", relatedproducts), _defineProperty(_ref, "getprice_discountpriceprops", getprice_discountpriceprops), _defineProperty(_ref, "StoreInfoprops", StoreInfo), _defineProperty(_ref, "currentshowingimageindex", currentshowingimageindex), _defineProperty(_ref, "setcurrentshowingimageindex", setcurrentshowingimageindex), _defineProperty(_ref, "templatepropcontext", templatepropcontext), _defineProperty(_ref, "ikimagecredcontext", ikimagecredcontext), _defineProperty(_ref, "variantindex", variantindex), _defineProperty(_ref, "setvariantindex", setvariantindex), _defineProperty(_ref, "variantsku", variantsku), _defineProperty(_ref, "variantvalueidentifier", variantvalueidentifier), _ref)
7034
- }), fetchProductInfoQueryContext.data.data.productinfo.item_type == 'service' && /*#__PURE__*/React.createElement(Service_itemtype, {
7222
+ }), fetchProductInfoQueryContext.data.data.productinfo.item_type == 'Article' && /*#__PURE__*/React.createElement(Article_itemtype, {
7035
7223
  actions: (_ref2 = {
7224
+ setisoutofstock: setisoutofstock,
7225
+ isoutofstock: isoutofstock,
7226
+ returnpolicyobj: returnpolicyobj,
7227
+ langdetect: langdetect,
7228
+ lang: lang,
7229
+ srcfromprops: props.srcfromprops
7230
+ }, _defineProperty(_ref2, "returnpolicyobj", returnpolicyobj), _defineProperty(_ref2, "productinfo_cssstyles", productinfo_cssstyles), _defineProperty(_ref2, "addtocartfunc", addtocartfunc), _defineProperty(_ref2, "selectproductoptionvalue", selectproductoptionvalue), _defineProperty(_ref2, "clearchoosenvaluesbutkeepcurrentvalue", clearchoosenvaluesbutkeepcurrentvalue), _defineProperty(_ref2, "productimagesarray", productimagesarray), _defineProperty(_ref2, "fetchProductInfoQueryContext", fetchProductInfoQueryContext), _defineProperty(_ref2, "ProductInfoObj", ProductInfoObj), _defineProperty(_ref2, "sectionproperties", sectionproperties), _defineProperty(_ref2, "addtocardpayloadobj", addtocardpayloadobj), _defineProperty(_ref2, "setaddtocardpayloadobj", setaddtocardpayloadobj), _defineProperty(_ref2, "routingcountext", routingcountext), _defineProperty(_ref2, "AddtoCartMutationContext", AddtoCartMutationContext), _defineProperty(_ref2, "authdetailsContext", authdetailsContext), _defineProperty(_ref2, "addtofavoritescontext", addtofavoritescontext), _defineProperty(_ref2, "variantindexcompleted", variantindexcompleted), _defineProperty(_ref2, "StaticPagesLinksContext", StaticPagesLinksContext), _defineProperty(_ref2, "NotificationManager", NotificationManager), _defineProperty(_ref2, "GeneralAPIMutationContext", GeneralAPIMutationContext), _defineProperty(_ref2, "quantityconditionfoundobjprops", quantityconditionfoundobj), _defineProperty(_ref2, "relatedproducts", relatedproducts), _defineProperty(_ref2, "getprice_discountpriceprops", getprice_discountpriceprops), _defineProperty(_ref2, "StoreInfoprops", StoreInfo), _defineProperty(_ref2, "currentshowingimageindex", currentshowingimageindex), _defineProperty(_ref2, "setcurrentshowingimageindex", setcurrentshowingimageindex), _defineProperty(_ref2, "templatepropcontext", templatepropcontext), _defineProperty(_ref2, "ikimagecredcontext", ikimagecredcontext), _defineProperty(_ref2, "variantindex", variantindex), _defineProperty(_ref2, "setvariantindex", setvariantindex), _defineProperty(_ref2, "variantsku", variantsku), _defineProperty(_ref2, "variantvalueidentifier", variantvalueidentifier), _ref2)
7231
+ }), fetchProductInfoQueryContext.data.data.productinfo.item_type == 'service' && /*#__PURE__*/React.createElement(Service_itemtype, {
7232
+ actions: (_ref3 = {
7036
7233
  variantsku: variantsku,
7037
7234
  setisoutofstock: setisoutofstock,
7038
7235
  isoutofstock: isoutofstock,
@@ -7040,7 +7237,7 @@ var Productinfo = function Productinfo(props) {
7040
7237
  langdetect: langdetect,
7041
7238
  lang: lang,
7042
7239
  srcfromprops: props.srcfromprops
7043
- }, _defineProperty(_ref2, "returnpolicyobj", returnpolicyobj), _defineProperty(_ref2, "productinfo_cssstyles", productinfo_cssstyles), _defineProperty(_ref2, "addtocartfunc", addtocartfunc), _defineProperty(_ref2, "selectproductoptionvalue", selectproductoptionvalue), _defineProperty(_ref2, "clearchoosenvaluesbutkeepcurrentvalue", clearchoosenvaluesbutkeepcurrentvalue), _defineProperty(_ref2, "productimagesarray", productimagesarray), _defineProperty(_ref2, "fetchProductInfoQueryContext", fetchProductInfoQueryContext), _defineProperty(_ref2, "sectionproperties", sectionproperties), _defineProperty(_ref2, "addtocardpayloadobj", addtocardpayloadobj), _defineProperty(_ref2, "ProductInfoObj", ProductInfoObj), _defineProperty(_ref2, "currentshowingimageindex", currentshowingimageindex), _defineProperty(_ref2, "setcurrentshowingimageindex", setcurrentshowingimageindex), _defineProperty(_ref2, "setaddtocardpayloadobj", setaddtocardpayloadobj), _defineProperty(_ref2, "routingcountext", routingcountext), _defineProperty(_ref2, "AddtoCartMutationContext", AddtoCartMutationContext), _defineProperty(_ref2, "authdetailsContext", authdetailsContext), _defineProperty(_ref2, "addtofavoritescontext", addtofavoritescontext), _defineProperty(_ref2, "StaticPagesLinksContext", StaticPagesLinksContext), _defineProperty(_ref2, "variantindexcompleted", variantindexcompleted), _defineProperty(_ref2, "GeneralAPIMutationContext", GeneralAPIMutationContext), _defineProperty(_ref2, "NotificationManager", NotificationManager), _defineProperty(_ref2, "getprice_discountpriceprops", getprice_discountpriceprops), _defineProperty(_ref2, "quantityconditionfoundobjprops", quantityconditionfoundobj), _defineProperty(_ref2, "relatedproducts", relatedproducts), _defineProperty(_ref2, "getQuantityCondition", getQuantityCondition), _defineProperty(_ref2, "StoreInfoprops", StoreInfo), _defineProperty(_ref2, "templatepropcontext", templatepropcontext), _defineProperty(_ref2, "ikimagecredcontext", ikimagecredcontext), _ref2)
7240
+ }, _defineProperty(_ref3, "returnpolicyobj", returnpolicyobj), _defineProperty(_ref3, "productinfo_cssstyles", productinfo_cssstyles), _defineProperty(_ref3, "addtocartfunc", addtocartfunc), _defineProperty(_ref3, "selectproductoptionvalue", selectproductoptionvalue), _defineProperty(_ref3, "clearchoosenvaluesbutkeepcurrentvalue", clearchoosenvaluesbutkeepcurrentvalue), _defineProperty(_ref3, "productimagesarray", productimagesarray), _defineProperty(_ref3, "fetchProductInfoQueryContext", fetchProductInfoQueryContext), _defineProperty(_ref3, "sectionproperties", sectionproperties), _defineProperty(_ref3, "addtocardpayloadobj", addtocardpayloadobj), _defineProperty(_ref3, "ProductInfoObj", ProductInfoObj), _defineProperty(_ref3, "currentshowingimageindex", currentshowingimageindex), _defineProperty(_ref3, "setcurrentshowingimageindex", setcurrentshowingimageindex), _defineProperty(_ref3, "setaddtocardpayloadobj", setaddtocardpayloadobj), _defineProperty(_ref3, "routingcountext", routingcountext), _defineProperty(_ref3, "AddtoCartMutationContext", AddtoCartMutationContext), _defineProperty(_ref3, "authdetailsContext", authdetailsContext), _defineProperty(_ref3, "addtofavoritescontext", addtofavoritescontext), _defineProperty(_ref3, "StaticPagesLinksContext", StaticPagesLinksContext), _defineProperty(_ref3, "variantindexcompleted", variantindexcompleted), _defineProperty(_ref3, "GeneralAPIMutationContext", GeneralAPIMutationContext), _defineProperty(_ref3, "NotificationManager", NotificationManager), _defineProperty(_ref3, "getprice_discountpriceprops", getprice_discountpriceprops), _defineProperty(_ref3, "quantityconditionfoundobjprops", quantityconditionfoundobj), _defineProperty(_ref3, "relatedproducts", relatedproducts), _defineProperty(_ref3, "getQuantityCondition", getQuantityCondition), _defineProperty(_ref3, "StoreInfoprops", StoreInfo), _defineProperty(_ref3, "templatepropcontext", templatepropcontext), _defineProperty(_ref3, "ikimagecredcontext", ikimagecredcontext), _ref3)
7044
7241
  }), props.srcfromprops != 'templatedraftrouter' && /*#__PURE__*/React.createElement("div", {
7045
7242
  className: sectionproperties.card_marginLeft != 0 ? ' col-lg-12 p-0 pl-lg-3 pr-lg-3 pl-md-4 pr-md-4 pl-sm-1 pr-sm-1 ' : ' col-lg-12 p-sm-0 ',
7046
7243
  style: {
@@ -16658,192 +16855,180 @@ var Filter$1 = function Filter(props) {
16658
16855
  function ownKeys$2a(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; }
16659
16856
  function _objectSpread$2a(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2a(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2a(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
16660
16857
  var CollectionsFilterHorizontal = function CollectionsFilterHorizontal(props) {
16661
- var _authdetailsContext$i;
16662
16858
  props.actions.lang;
16663
16859
  var langdetect = props.actions.langdetect;
16664
16860
  props.actions.productfiltercontext;
16665
16861
  props.actions.setproductfiltercontext;
16666
16862
  var ProductFilterObjContext = props.actions.ProductFilterObjContext;
16667
16863
  var setProductFilterObjContext = props.actions.setProductFilterObjContext;
16668
- var authdetailsContext = props.actions.authdetailsContext;
16864
+ props.actions.authdetailsContext;
16669
16865
  var routingcountext = props.actions.routingcountext;
16670
16866
  var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
16671
16867
  props.actions.ikimagecredcontext;
16672
- var FetchQueriesEngineContext = props.actions.FetchQueriesEngineContext;
16673
- var setFetchQueriesEngineContext = props.actions.setFetchQueriesEngineContext;
16868
+ props.actions.FetchQueriesEngineContext;
16869
+ props.actions.setFetchQueriesEngineContext;
16870
+ props.actions.fetchcollectionsQueryContext;
16871
+ var fetchCategoriesQueryContext = props.actions.fetchCategoriesQueryContext;
16674
16872
  var _useState = useState(''),
16675
16873
  _useState2 = _slicedToArray(_useState, 2),
16676
16874
  sectionproperties = _useState2[0],
16677
16875
  setsectionproperties = _useState2[1];
16678
16876
  var _useState3 = useState([]),
16679
- _useState4 = _slicedToArray(_useState3, 2),
16680
- collectionstobevisible = _useState4[0],
16681
- setcollectionstobevisible = _useState4[1];
16682
- var _useState5 = useState(_toConsumableArray(authdetailsContext.instinfo.instcollections)),
16877
+ _useState4 = _slicedToArray(_useState3, 2);
16878
+ _useState4[0];
16879
+ _useState4[1];
16880
+ // const [instcollections, setinstcollections] = useState([...fetchcollectionsQueryContext?.data?.data?.collections]);
16881
+ var _useState5 = useState([]),
16683
16882
  _useState6 = _slicedToArray(_useState5, 2),
16684
- instcollections = _useState6[0],
16685
- setinstcollections = _useState6[1];
16686
- var _useState7 = useState(_toConsumableArray(authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i = authdetailsContext.instinfo) === null || _authdetailsContext$i === void 0 ? void 0 : _authdetailsContext$i.instcategories)),
16687
- _useState8 = _slicedToArray(_useState7, 2),
16688
- instcategories = _useState8[0],
16689
- setinstcategories = _useState8[1];
16690
- var _useState9 = useState(false),
16691
- _useState10 = _slicedToArray(_useState9, 2);
16692
- _useState10[0];
16693
- _useState10[1];
16883
+ instcategories = _useState6[0],
16884
+ setinstcategories = _useState6[1];
16885
+ var _useState7 = useState(false),
16886
+ _useState8 = _slicedToArray(_useState7, 2);
16887
+ _useState8[0];
16888
+ _useState8[1];
16694
16889
  useEffect(function () {
16695
- filterupdater();
16890
+ // filterupdater();
16696
16891
  }, []);
16697
16892
  useEffect(function () {
16698
- var _authdetailsContext$i2;
16699
- setinstcollections(_toConsumableArray(authdetailsContext.instinfo.instcollections));
16700
- setinstcategories(_toConsumableArray(authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i2 = authdetailsContext.instinfo) === null || _authdetailsContext$i2 === void 0 ? void 0 : _authdetailsContext$i2.instcategories));
16701
- }, [authdetailsContext]);
16893
+ if (fetchCategoriesQueryContext.isSuccess) {
16894
+ var _fetchCategoriesQuery;
16895
+ setinstcategories(_toConsumableArray(fetchCategoriesQueryContext === null || fetchCategoriesQueryContext === void 0 || (_fetchCategoriesQuery = fetchCategoriesQueryContext.data) === null || _fetchCategoriesQuery === void 0 || (_fetchCategoriesQuery = _fetchCategoriesQuery.data) === null || _fetchCategoriesQuery === void 0 ? void 0 : _fetchCategoriesQuery.categories));
16896
+ }
16897
+ }, [fetchCategoriesQueryContext.isSuccess]);
16702
16898
  useEffect(function () {
16703
16899
  if (props.sectionpropertiesprops != undefined && props.sectionpropertiesprops.length != 0) {
16704
16900
  setsectionproperties(props.sectionpropertiesprops);
16705
16901
  }
16706
16902
  }, [props.sectionpropertiesprops]);
16707
16903
  useEffect(function () {
16708
- filterupdater();
16709
- }, [ProductFilterObjContext]);
16710
- useEffect(function () {
16711
- if ((sectionproperties === null || sectionproperties === void 0 ? void 0 : sectionproperties.filterretreivetype) == 'Depend on chosen parent group') {
16712
- if ((ProductFilterObjContext === null || ProductFilterObjContext === void 0 ? void 0 : ProductFilterObjContext.collections) != undefined && (ProductFilterObjContext === null || ProductFilterObjContext === void 0 ? void 0 : ProductFilterObjContext.collections) != null && Array.isArray(ProductFilterObjContext === null || ProductFilterObjContext === void 0 ? void 0 : ProductFilterObjContext.collections)) {
16713
- var _parentidsfound;
16714
- var collectiontobevisible = [];
16715
- var parentidsfound = [];
16716
- if (ProductFilterObjContext.ProductFetchingType == 'Parent Collection') {
16717
- parentidsfound = ProductFilterObjContext === null || ProductFilterObjContext === void 0 ? void 0 : ProductFilterObjContext.collections;
16718
- } else if (ProductFilterObjContext.ProductFetchingType == 'Category') {
16719
- instcategories === null || instcategories === void 0 || instcategories.forEach(function (catitem, catindex) {
16720
- var _ProductFilterObjCont;
16721
- ProductFilterObjContext === null || ProductFilterObjContext === void 0 || (_ProductFilterObjCont = ProductFilterObjContext.collections) === null || _ProductFilterObjCont === void 0 || _ProductFilterObjCont.forEach(function (colitem2, colindex2) {
16722
- if (catitem.categoryid == colitem2) {
16723
- var _catitem$parentcollet;
16724
- catitem === null || catitem === void 0 || (_catitem$parentcollet = catitem.parentcolletions) === null || _catitem$parentcollet === void 0 || _catitem$parentcollet.forEach(function (parentcolitem, parentcolindex) {
16725
- parentidsfound.push(parentcolitem.parentcollectionid);
16726
- });
16727
- }
16728
- });
16729
- });
16730
- } else {
16731
- instcategories === null || instcategories === void 0 || instcategories.forEach(function (catitem, catindex) {
16732
- var _catitem$parentcollet2;
16733
- catitem === null || catitem === void 0 || (_catitem$parentcollet2 = catitem.parentcolletions) === null || _catitem$parentcollet2 === void 0 || _catitem$parentcollet2.forEach(function (parentcolitem, parentcolindex) {
16734
- var _parentcolitem$collec;
16735
- parentcolitem === null || parentcolitem === void 0 || (_parentcolitem$collec = parentcolitem.collections) === null || _parentcolitem$collec === void 0 || _parentcolitem$collec.forEach(function (colitem, colindex) {
16736
- var _ProductFilterObjCont2;
16737
- ProductFilterObjContext === null || ProductFilterObjContext === void 0 || (_ProductFilterObjCont2 = ProductFilterObjContext.collections) === null || _ProductFilterObjCont2 === void 0 || _ProductFilterObjCont2.forEach(function (colitem2, colindex2) {
16738
- if (colitem.collectionid == colitem2) {
16739
- parentidsfound.push(parentcolitem.parentcollectionid);
16740
- }
16741
- });
16742
- });
16743
- });
16744
- });
16745
- }
16746
- parentidsfound = parentidsfound.filter(function (val, id, array) {
16747
- return array.indexOf(val) == id;
16748
- });
16749
- if (((_parentidsfound = parentidsfound) === null || _parentidsfound === void 0 ? void 0 : _parentidsfound.length) != 0) {
16750
- instcategories === null || instcategories === void 0 || instcategories.forEach(function (catitem, catindex) {
16751
- var _catitem$parentcollet3;
16752
- catitem === null || catitem === void 0 || (_catitem$parentcollet3 = catitem.parentcolletions) === null || _catitem$parentcollet3 === void 0 || _catitem$parentcollet3.forEach(function (parentcolitem, parentcolindex) {
16753
- var _parentidsfound2;
16754
- (_parentidsfound2 = parentidsfound) === null || _parentidsfound2 === void 0 || _parentidsfound2.forEach(function (parentidfounditem, parentidfoundindex) {
16755
- if (parentidfounditem == (parentcolitem === null || parentcolitem === void 0 ? void 0 : parentcolitem.parentcollectionid)) {
16756
- var _parentcolitem$collec2;
16757
- parentcolitem === null || parentcolitem === void 0 || (_parentcolitem$collec2 = parentcolitem.collections) === null || _parentcolitem$collec2 === void 0 || _parentcolitem$collec2.forEach(function (colitem, colindex) {
16758
- var iscolexists = false;
16759
- collectiontobevisible === null || collectiontobevisible === void 0 || collectiontobevisible.forEach(function (colitemex, colindexex) {
16760
- if (colitemex.collectionid == colitem.collectionid) {
16761
- iscolexists = true;
16762
- }
16763
- });
16764
- if (iscolexists == false) {
16765
- collectiontobevisible.push(colitem);
16766
- }
16767
- });
16768
- }
16769
- });
16770
- });
16771
- });
16772
- if ((collectiontobevisible === null || collectiontobevisible === void 0 ? void 0 : collectiontobevisible.length) != 0) {
16773
- setcollectionstobevisible(collectiontobevisible);
16774
- } else {
16775
- setcollectionstobevisible(instcollections);
16776
- }
16777
- } else {
16778
- setcollectionstobevisible(instcollections);
16779
- }
16780
- } else {
16781
- setcollectionstobevisible(instcollections);
16782
- }
16783
- } else {
16784
- setcollectionstobevisible(instcollections);
16785
- }
16904
+ // filterupdater();
16786
16905
  }, [ProductFilterObjContext]);
16787
- var filterupdater = function filterupdater() {
16788
- setTimeout(function () {
16789
- var tempFetchQueriesEngineContext = _objectSpread$2a({}, FetchQueriesEngineContext);
16790
- tempFetchQueriesEngineContext.fetchtabexcountries = true;
16791
- setFetchQueriesEngineContext(tempFetchQueriesEngineContext);
16792
- }, 100);
16793
- if (instcategories.length != 0) {
16794
- var _ProductFilterObjCont3;
16795
- var tempInstcategories = _toConsumableArray(instcategories);
16796
- tempInstcategories.forEach(function (catitem, catindex) {
16797
- catitem.parentcolletions.forEach(function (parentcolitem, parentcolindex) {
16798
- parentcolitem.collections.forEach(function (colitem, colindex) {
16799
- colitem.isfilterselected = false;
16800
- });
16801
- });
16802
- });
16803
- ProductFilterObjContext === null || ProductFilterObjContext === void 0 || (_ProductFilterObjCont3 = ProductFilterObjContext.collections) === null || _ProductFilterObjCont3 === void 0 || _ProductFilterObjCont3.forEach(function (filteritem, filterindex) {
16804
- tempInstcategories.forEach(function (catitem, catindex) {
16805
- catitem.parentcolletions.forEach(function (parentcolitem, parentcolindex) {
16806
- parentcolitem.collections.forEach(function (colitem, colindex) {
16807
- if (colitem.collectionid == filteritem) {
16808
- colitem.isfilterselected = true;
16809
- }
16810
- });
16811
- });
16812
- });
16813
- });
16814
- setinstcategories(_toConsumableArray(tempInstcategories));
16815
- }
16816
- if (instcollections.length != 0) {
16817
- var _ProductFilterObjCont4;
16818
- var tempInstcollections = _toConsumableArray(instcollections);
16819
- tempInstcollections.forEach(function (instfilteritem, valefilteritemindex) {
16820
- instfilteritem.isfilterselected = false;
16821
- });
16822
- ProductFilterObjContext === null || ProductFilterObjContext === void 0 || (_ProductFilterObjCont4 = ProductFilterObjContext.collections) === null || _ProductFilterObjCont4 === void 0 || _ProductFilterObjCont4.forEach(function (filteritem, filterindex) {
16823
- tempInstcollections === null || tempInstcollections === void 0 || tempInstcollections.forEach(function (instfilteritem, instfilterindex) {
16824
- if (instfilteritem.collectionid == filteritem) {
16825
- instfilteritem.isfilterselected = true;
16826
- }
16827
- });
16828
- });
16829
- setinstcollections(_toConsumableArray(tempInstcollections));
16830
- }
16831
- };
16906
+
16907
+ // useEffect(() => {
16908
+ // if (sectionproperties?.filterretreivetype == 'Depend on chosen parent group') {
16909
+ // if (ProductFilterObjContext?.collections != undefined && ProductFilterObjContext?.collections != null && Array.isArray(ProductFilterObjContext?.collections)) {
16910
+ // var collectiontobevisible = [];
16911
+ // var parentidsfound = [];
16912
+ // if (ProductFilterObjContext.ProductFetchingType == 'Parent Collection') {
16913
+ // parentidsfound = ProductFilterObjContext?.collections;
16914
+ // } else if (ProductFilterObjContext.ProductFetchingType == 'Category') {
16915
+ // instcategories?.forEach(function (catitem, catindex) {
16916
+ // ProductFilterObjContext?.collections?.forEach(function (colitem2, colindex2) {
16917
+ // if (catitem.categoryid == colitem2) {
16918
+ // catitem?.parentcolletions?.forEach(function (parentcolitem, parentcolindex) {
16919
+ // parentidsfound.push(parentcolitem.parentcollectionid);
16920
+ // });
16921
+ // }
16922
+ // });
16923
+ // });
16924
+ // } else {
16925
+ // instcategories?.forEach(function (catitem, catindex) {
16926
+ // catitem?.parentcolletions?.forEach(function (parentcolitem, parentcolindex) {
16927
+ // parentcolitem?.collections?.forEach(function (colitem, colindex) {
16928
+ // ProductFilterObjContext?.collections?.forEach(function (colitem2, colindex2) {
16929
+ // if (colitem.collectionid == colitem2) {
16930
+ // parentidsfound.push(parentcolitem.parentcollectionid);
16931
+ // }
16932
+ // });
16933
+ // });
16934
+ // });
16935
+ // });
16936
+ // }
16937
+
16938
+ // parentidsfound = parentidsfound.filter((val, id, array) => array.indexOf(val) == id);
16939
+
16940
+ // if (parentidsfound?.length != 0) {
16941
+ // instcategories?.forEach(function (catitem, catindex) {
16942
+ // catitem?.parentcolletions?.forEach(function (parentcolitem, parentcolindex) {
16943
+ // parentidsfound?.forEach(function (parentidfounditem, parentidfoundindex) {
16944
+ // if (parentidfounditem == parentcolitem?.parentcollectionid) {
16945
+ // parentcolitem?.collections?.forEach(function (colitem, colindex) {
16946
+ // var iscolexists = false;
16947
+ // collectiontobevisible?.forEach(function (colitemex, colindexex) {
16948
+ // if (colitemex.collectionid == colitem.collectionid) {
16949
+ // iscolexists = true;
16950
+ // }
16951
+ // });
16952
+ // if (iscolexists == false) {
16953
+ // collectiontobevisible.push(colitem);
16954
+ // }
16955
+ // });
16956
+ // }
16957
+ // });
16958
+ // });
16959
+ // });
16960
+
16961
+ // if (collectiontobevisible?.length != 0) {
16962
+ // setcollectionstobevisible(collectiontobevisible);
16963
+ // } else {
16964
+ // setcollectionstobevisible(instcollections);
16965
+ // }
16966
+ // } else {
16967
+ // setcollectionstobevisible(instcollections);
16968
+ // }
16969
+ // } else {
16970
+ // setcollectionstobevisible(instcollections);
16971
+ // }
16972
+ // } else {
16973
+ // setcollectionstobevisible(instcollections);
16974
+ // }
16975
+ // }, [ProductFilterObjContext]);
16976
+
16977
+ // const filterupdater = () => {
16978
+ // if (instcategories.length != 0) {
16979
+ // var tempInstcategories = [...instcategories];
16980
+ // tempInstcategories.forEach(function (catitem, catindex) {
16981
+ // catitem.parentcolletions.forEach(function (parentcolitem, parentcolindex) {
16982
+ // parentcolitem.collections.forEach(function (colitem, colindex) {
16983
+ // colitem.isfilterselected = false;
16984
+ // });
16985
+ // });
16986
+ // });
16987
+
16988
+ // ProductFilterObjContext?.collections?.forEach(function (filteritem, filterindex) {
16989
+ // tempInstcategories.forEach(function (catitem, catindex) {
16990
+ // catitem.parentcolletions.forEach(function (parentcolitem, parentcolindex) {
16991
+ // parentcolitem.collections.forEach(function (colitem, colindex) {
16992
+ // if (colitem.collectionid == filteritem) {
16993
+ // colitem.isfilterselected = true;
16994
+ // }
16995
+ // });
16996
+ // });
16997
+ // });
16998
+ // });
16999
+
17000
+ // setinstcategories([...tempInstcategories]);
17001
+ // }
17002
+ // // if (instcollections.length != 0) {
17003
+ // // var tempInstcollections = [...instcollections];
17004
+ // // tempInstcollections.forEach(function (instfilteritem, valefilteritemindex) {
17005
+ // // instfilteritem.isfilterselected = false;
17006
+ // // });
17007
+ // // ProductFilterObjContext?.collections?.forEach(function (filteritem, filterindex) {
17008
+ // // tempInstcollections?.forEach(function (instfilteritem, instfilterindex) {
17009
+ // // if (instfilteritem.collectionid == filteritem) {
17010
+ // // instfilteritem.isfilterselected = true;
17011
+ // // }
17012
+ // // });
17013
+ // // });
17014
+ // // setinstcollections([...tempInstcollections]);
17015
+ // // }
17016
+ // };
16832
17017
  var setCollectionFilterFunc = function setCollectionFilterFunc(collectionid) {
16833
17018
  var _tempfetchproductsfil;
16834
17019
  var tempfetchproductsfilerobjcontext = _objectSpread$2a({}, ProductFilterObjContext);
16835
17020
  var CollectionExists = false;
16836
- tempfetchproductsfilerobjcontext === null || tempfetchproductsfilerobjcontext === void 0 || (_tempfetchproductsfil = tempfetchproductsfilerobjcontext.collections) === null || _tempfetchproductsfil === void 0 || _tempfetchproductsfil.forEach(function (filteritem, filterindex) {
17021
+ tempfetchproductsfilerobjcontext === null || tempfetchproductsfilerobjcontext === void 0 || (_tempfetchproductsfil = tempfetchproductsfilerobjcontext.categories) === null || _tempfetchproductsfil === void 0 || _tempfetchproductsfil.forEach(function (filteritem, filterindex) {
16837
17022
  if (filteritem == collectionid) {
16838
17023
  CollectionExists = true;
16839
- tempfetchproductsfilerobjcontext.collections.splice(filterindex, 1);
17024
+ tempfetchproductsfilerobjcontext.categories.splice(filterindex, 1);
16840
17025
  }
16841
17026
  });
16842
17027
  if (!CollectionExists) {
16843
- if (tempfetchproductsfilerobjcontext.collections != undefined && Array.isArray(tempfetchproductsfilerobjcontext.collections)) {
16844
- tempfetchproductsfilerobjcontext.collections = [collectionid];
17028
+ if (tempfetchproductsfilerobjcontext.categories != undefined && Array.isArray(tempfetchproductsfilerobjcontext.categories)) {
17029
+ tempfetchproductsfilerobjcontext.categories = [collectionid];
16845
17030
  } else {
16846
- tempfetchproductsfilerobjcontext.collections = [collectionid];
17031
+ tempfetchproductsfilerobjcontext.categories = [collectionid];
16847
17032
  }
16848
17033
  }
16849
17034
  tempfetchproductsfilerobjcontext.page = 0;
@@ -16856,11 +17041,11 @@ var CollectionsFilterHorizontal = function CollectionsFilterHorizontal(props) {
16856
17041
  var CollectionsFilter = function CollectionsFilter() {
16857
17042
  return /*#__PURE__*/React.createElement("div", {
16858
17043
  "class": "col-lg-12 p-0 scrollhorixontalcontainer text-center px-sm-3"
16859
- }, collectionstobevisible.map(function (item, index) {
17044
+ }, instcategories.map(function (item, index) {
16860
17045
  return /*#__PURE__*/React.createElement("p", {
16861
17046
  "class": filter_cssstyles.filteritem + ' m-0 p-0 cursor-pointer scrollhorixontaldiv mx-4 mx-sm-2 ',
16862
17047
  onClick: function onClick() {
16863
- setCollectionFilterFunc(item.collectionid);
17048
+ setCollectionFilterFunc(item.categoryid);
16864
17049
  },
16865
17050
  style: {
16866
17051
  color: item.isfilterselected ? sectionproperties.activecat_color : ''
@@ -42539,7 +42724,7 @@ var Footer1 = function Footer1(props) {
42539
42724
  function ownKeys$1B(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; }
42540
42725
  function _objectSpread$1B(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1B(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1B(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
42541
42726
  var Footer2 = function Footer2(props) {
42542
- var _logoarrayofobjects$, _logoarrayofobjects$2, _authdetailsContext$i, _authdetailsContext$i8, _authdetailsContext$i11, _authdetailsContext$i14, _authdetailsContext$i18, _authdetailsContext$i19;
42727
+ var _logoarrayofobjects$, _logoarrayofobjects$2, _authdetailsContext$i2, _authdetailsContext$i9, _authdetailsContext$i12, _authdetailsContext$i15, _returnpolicyobj, _returnpolicyobj2, _returnpolicyobj3, _returnpolicyobj4, _returnpolicyobj5, _returnpolicyobj6, _authdetailsContext$i19, _authdetailsContext$i20;
42543
42728
  var _useState = useState(''),
42544
42729
  _useState2 = _slicedToArray(_useState, 2),
42545
42730
  sectionproperties = _useState2[0],
@@ -42700,6 +42885,16 @@ var Footer2 = function Footer2(props) {
42700
42885
  }
42701
42886
  })
42702
42887
  };
42888
+ var returnpolicyobj = function returnpolicyobj(policytype) {
42889
+ var _authdetailsContext$i;
42890
+ var policyobj = {};
42891
+ authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i = authdetailsContext.instinfo) === null || _authdetailsContext$i === void 0 || (_authdetailsContext$i = _authdetailsContext$i.instpolicies) === null || _authdetailsContext$i === void 0 || _authdetailsContext$i.forEach(function (item, index) {
42892
+ if (item.policytype == policytype) {
42893
+ policyobj = item;
42894
+ }
42895
+ });
42896
+ return policyobj;
42897
+ };
42703
42898
  return /*#__PURE__*/React.createElement("div", {
42704
42899
  "class": "row m-0 w-100 d-flex justify-content-center"
42705
42900
  }, /*#__PURE__*/React.createElement("footer", {
@@ -42729,15 +42924,15 @@ var Footer2 = function Footer2(props) {
42729
42924
  fontSize: sectionproperties.titlefontsize + 'px',
42730
42925
  marginLeft: sectionproperties.titlemarginleft + 'px'
42731
42926
  }
42732
- }, authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i = authdetailsContext.instinfo) === null || _authdetailsContext$i === void 0 ? void 0 : _authdetailsContext$i.storename_en)), /*#__PURE__*/React.createElement("div", {
42927
+ }, authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i2 = authdetailsContext.instinfo) === null || _authdetailsContext$i2 === void 0 ? void 0 : _authdetailsContext$i2.storename_en)), /*#__PURE__*/React.createElement("div", {
42733
42928
  "class": " col-lg-12 d-flex flex-row align-items-center justify-content-center "
42734
42929
  }, sectionproperties.fbbtn_show == 'Show' && /*#__PURE__*/React.createElement("div", {
42735
42930
  "class": "".concat(footerStyles.facebook_btn) + ' d-flex align-items-center justify-content-center ml-3 mr-3 ',
42736
42931
  onClick: function onClick() {
42737
- var _authdetailsContext$i2;
42738
- if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i2 = authdetailsContext.instinfo) === null || _authdetailsContext$i2 === void 0 ? void 0 : _authdetailsContext$i2.facebooklink) != null) {
42739
- var _authdetailsContext$i3;
42740
- window.open(authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i3 = authdetailsContext.instinfo) === null || _authdetailsContext$i3 === void 0 ? void 0 : _authdetailsContext$i3.facebooklink, '_blank');
42932
+ var _authdetailsContext$i3;
42933
+ if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i3 = authdetailsContext.instinfo) === null || _authdetailsContext$i3 === void 0 ? void 0 : _authdetailsContext$i3.facebooklink) != null) {
42934
+ var _authdetailsContext$i4;
42935
+ window.open(authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i4 = authdetailsContext.instinfo) === null || _authdetailsContext$i4 === void 0 ? void 0 : _authdetailsContext$i4.facebooklink, '_blank');
42741
42936
  }
42742
42937
  }
42743
42938
  }, /*#__PURE__*/React.createElement(FaFacebookF, {
@@ -42745,10 +42940,10 @@ var Footer2 = function Footer2(props) {
42745
42940
  })), sectionproperties.instbtn_show == 'Show' && /*#__PURE__*/React.createElement("div", {
42746
42941
  "class": "".concat(footerStyles.instgram_btn) + ' d-flex align-items-center justify-content-center ml-3 mr-3 ',
42747
42942
  onClick: function onClick() {
42748
- var _authdetailsContext$i4;
42749
- if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i4 = authdetailsContext.instinfo) === null || _authdetailsContext$i4 === void 0 ? void 0 : _authdetailsContext$i4.instagramlink) != null) {
42750
- var _authdetailsContext$i5;
42751
- window.open(authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i5 = authdetailsContext.instinfo) === null || _authdetailsContext$i5 === void 0 ? void 0 : _authdetailsContext$i5.instagramlink, '_blank');
42943
+ var _authdetailsContext$i5;
42944
+ if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i5 = authdetailsContext.instinfo) === null || _authdetailsContext$i5 === void 0 ? void 0 : _authdetailsContext$i5.instagramlink) != null) {
42945
+ var _authdetailsContext$i6;
42946
+ window.open(authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i6 = authdetailsContext.instinfo) === null || _authdetailsContext$i6 === void 0 ? void 0 : _authdetailsContext$i6.instagramlink, '_blank');
42752
42947
  }
42753
42948
  }
42754
42949
  }, /*#__PURE__*/React.createElement(AiFillInstagram, {
@@ -42756,43 +42951,43 @@ var Footer2 = function Footer2(props) {
42756
42951
  })), sectionproperties.youtbtn_show == 'Show' && /*#__PURE__*/React.createElement("div", {
42757
42952
  "class": "".concat(footerStyles.youtube_btn) + ' d-flex align-items-center justify-content-center ml-3 mr-3 ',
42758
42953
  onClick: function onClick() {
42759
- var _authdetailsContext$i6;
42760
- if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i6 = authdetailsContext.instinfo) === null || _authdetailsContext$i6 === void 0 ? void 0 : _authdetailsContext$i6.whatsappnumber) != null) {
42761
- var _authdetailsContext$i7;
42762
- window.open('https://api.whatsapp.com/send?phone=' + (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i7 = authdetailsContext.instinfo) === null || _authdetailsContext$i7 === void 0 ? void 0 : _authdetailsContext$i7.whatsappnumber), '_blank');
42954
+ var _authdetailsContext$i7;
42955
+ if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i7 = authdetailsContext.instinfo) === null || _authdetailsContext$i7 === void 0 ? void 0 : _authdetailsContext$i7.whatsappnumber) != null) {
42956
+ var _authdetailsContext$i8;
42957
+ window.open('https://api.whatsapp.com/send?phone=' + (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i8 = authdetailsContext.instinfo) === null || _authdetailsContext$i8 === void 0 ? void 0 : _authdetailsContext$i8.whatsappnumber), '_blank');
42763
42958
  }
42764
42959
  }
42765
42960
  }, /*#__PURE__*/React.createElement(FaWhatsapp, {
42766
42961
  size: sectionproperties.youtubebtniconfontsize
42767
- })), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i8 = authdetailsContext.instinfo) === null || _authdetailsContext$i8 === void 0 ? void 0 : _authdetailsContext$i8.youtubelink) != null && /*#__PURE__*/React.createElement("div", {
42962
+ })), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i9 = authdetailsContext.instinfo) === null || _authdetailsContext$i9 === void 0 ? void 0 : _authdetailsContext$i9.youtubelink) != null && /*#__PURE__*/React.createElement("div", {
42768
42963
  "class": "".concat(footerStyles.youtube_btn) + ' d-flex align-items-center justify-content-center ml-3 mr-3 ',
42769
42964
  onClick: function onClick() {
42770
- var _authdetailsContext$i9;
42771
- if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i9 = authdetailsContext.instinfo) === null || _authdetailsContext$i9 === void 0 ? void 0 : _authdetailsContext$i9.youtubelink) != null) {
42772
- var _authdetailsContext$i10;
42773
- window.open(authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i10 = authdetailsContext.instinfo) === null || _authdetailsContext$i10 === void 0 ? void 0 : _authdetailsContext$i10.youtubelink, '_blank');
42965
+ var _authdetailsContext$i10;
42966
+ if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i10 = authdetailsContext.instinfo) === null || _authdetailsContext$i10 === void 0 ? void 0 : _authdetailsContext$i10.youtubelink) != null) {
42967
+ var _authdetailsContext$i11;
42968
+ window.open(authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i11 = authdetailsContext.instinfo) === null || _authdetailsContext$i11 === void 0 ? void 0 : _authdetailsContext$i11.youtubelink, '_blank');
42774
42969
  }
42775
42970
  }
42776
42971
  }, /*#__PURE__*/React.createElement(AiFillYoutube, {
42777
42972
  size: sectionproperties.instgrambtniconfontsize
42778
- })), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i11 = authdetailsContext.instinfo) === null || _authdetailsContext$i11 === void 0 ? void 0 : _authdetailsContext$i11.linkedinlink) != null && /*#__PURE__*/React.createElement("div", {
42973
+ })), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i12 = authdetailsContext.instinfo) === null || _authdetailsContext$i12 === void 0 ? void 0 : _authdetailsContext$i12.linkedinlink) != null && /*#__PURE__*/React.createElement("div", {
42779
42974
  "class": "".concat(footerStyles.youtube_btn) + ' d-flex align-items-center justify-content-center ml-3 mr-3 ',
42780
42975
  onClick: function onClick() {
42781
- var _authdetailsContext$i12;
42782
- if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i12 = authdetailsContext.instinfo) === null || _authdetailsContext$i12 === void 0 ? void 0 : _authdetailsContext$i12.linkedinlink) != null) {
42783
- var _authdetailsContext$i13;
42784
- window.open(authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i13 = authdetailsContext.instinfo) === null || _authdetailsContext$i13 === void 0 ? void 0 : _authdetailsContext$i13.linkedinlink, '_blank');
42976
+ var _authdetailsContext$i13;
42977
+ if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i13 = authdetailsContext.instinfo) === null || _authdetailsContext$i13 === void 0 ? void 0 : _authdetailsContext$i13.linkedinlink) != null) {
42978
+ var _authdetailsContext$i14;
42979
+ window.open(authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i14 = authdetailsContext.instinfo) === null || _authdetailsContext$i14 === void 0 ? void 0 : _authdetailsContext$i14.linkedinlink, '_blank');
42785
42980
  }
42786
42981
  }
42787
42982
  }, /*#__PURE__*/React.createElement(FaLinkedinIn, {
42788
42983
  size: sectionproperties.instgrambtniconfontsize
42789
- })), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i14 = authdetailsContext.instinfo) === null || _authdetailsContext$i14 === void 0 ? void 0 : _authdetailsContext$i14.tiktoklink) != null && /*#__PURE__*/React.createElement("div", {
42984
+ })), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i15 = authdetailsContext.instinfo) === null || _authdetailsContext$i15 === void 0 ? void 0 : _authdetailsContext$i15.tiktoklink) != null && /*#__PURE__*/React.createElement("div", {
42790
42985
  "class": "".concat(footerStyles.youtube_btn) + ' d-flex align-items-center justify-content-center ml-3 mr-3 ',
42791
42986
  onClick: function onClick() {
42792
- var _authdetailsContext$i15;
42793
- if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i15 = authdetailsContext.instinfo) === null || _authdetailsContext$i15 === void 0 ? void 0 : _authdetailsContext$i15.tiktoklink) != null) {
42794
- var _authdetailsContext$i16;
42795
- window.open(authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i16 = authdetailsContext.instinfo) === null || _authdetailsContext$i16 === void 0 ? void 0 : _authdetailsContext$i16.tiktoklink, '_blank');
42987
+ var _authdetailsContext$i16;
42988
+ if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i16 = authdetailsContext.instinfo) === null || _authdetailsContext$i16 === void 0 ? void 0 : _authdetailsContext$i16.tiktoklink) != null) {
42989
+ var _authdetailsContext$i17;
42990
+ window.open(authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i17 = authdetailsContext.instinfo) === null || _authdetailsContext$i17 === void 0 ? void 0 : _authdetailsContext$i17.tiktoklink, '_blank');
42796
42991
  }
42797
42992
  }
42798
42993
  }, /*#__PURE__*/React.createElement(IoLogoTiktok, {
@@ -42845,12 +43040,31 @@ var Footer2 = function Footer2(props) {
42845
43040
  }
42846
43041
  }, lang.orderhistory), /*#__PURE__*/React.createElement("div", {
42847
43042
  "class": "".concat(footerStyles.vl) + ' d-flex align-items-center justify-content-center mb-3'
42848
- }), /*#__PURE__*/React.createElement("p", {
43043
+ }), sectionproperties.separatepolicies == 'No' && /*#__PURE__*/React.createElement("p", {
42849
43044
  "class": "".concat(footerStyles.footersubtitlestyles) + ' mb-md-0 ',
42850
43045
  onClick: function onClick() {
42851
43046
  routingcountext(StaticPagesLinksContext.Policies);
42852
43047
  }
42853
- }, lang.policies)), sectionproperties.showhidesubpages == 'Show' && /*#__PURE__*/React.createElement("div", {
43048
+ }, lang.policies), sectionproperties.separatepolicies == 'Yes' && /*#__PURE__*/React.createElement("p", {
43049
+ "class": "".concat(footerStyles.footersubtitlestyles) + ' mb-md-0 ',
43050
+ onClick: function onClick() {
43051
+ routingcountext(StaticPagesLinksContext.PrivacyPolicy);
43052
+ }
43053
+ }, langdetect == 'en' ? (_returnpolicyobj = returnpolicyobj('Privacy Policy')) === null || _returnpolicyobj === void 0 ? void 0 : _returnpolicyobj.policypagename_en : (_returnpolicyobj2 = returnpolicyobj('Privacy Policy')) === null || _returnpolicyobj2 === void 0 ? void 0 : _returnpolicyobj2.policypagename_ar), sectionproperties.separatepolicies == 'Yes' && /*#__PURE__*/React.createElement("div", {
43054
+ "class": "".concat(footerStyles.vl) + ' d-flex align-items-center justify-content-center mb-3'
43055
+ }), sectionproperties.separatepolicies == 'Yes' && /*#__PURE__*/React.createElement("p", {
43056
+ "class": "".concat(footerStyles.footersubtitlestyles) + ' mb-md-0 ',
43057
+ onClick: function onClick() {
43058
+ routingcountext(StaticPagesLinksContext.ShippingPolicy);
43059
+ }
43060
+ }, langdetect == 'en' ? (_returnpolicyobj3 = returnpolicyobj('Shipping Policy')) === null || _returnpolicyobj3 === void 0 ? void 0 : _returnpolicyobj3.policypagename_en : (_returnpolicyobj4 = returnpolicyobj('Shipping Policy')) === null || _returnpolicyobj4 === void 0 ? void 0 : _returnpolicyobj4.policypagename_ar), sectionproperties.separatepolicies == 'Yes' && /*#__PURE__*/React.createElement("div", {
43061
+ "class": "".concat(footerStyles.vl) + ' d-flex align-items-center justify-content-center mb-3'
43062
+ }), sectionproperties.separatepolicies == 'Yes' && /*#__PURE__*/React.createElement("p", {
43063
+ "class": "".concat(footerStyles.footersubtitlestyles) + ' mb-md-0 ',
43064
+ onClick: function onClick() {
43065
+ routingcountext(StaticPagesLinksContext.RefundPolicy);
43066
+ }
43067
+ }, langdetect == 'en' ? (_returnpolicyobj5 = returnpolicyobj('Refund Policy')) === null || _returnpolicyobj5 === void 0 ? void 0 : _returnpolicyobj5.policypagename_en : (_returnpolicyobj6 = returnpolicyobj('Refund Policy')) === null || _returnpolicyobj6 === void 0 ? void 0 : _returnpolicyobj6.policypagename_ar)), sectionproperties.showhidesubpages == 'Show' && /*#__PURE__*/React.createElement("div", {
42854
43068
  "class": "d-none d-md-block align-items-center justify-content-center mt-3 p-0 row m-0 w-100"
42855
43069
  }, /*#__PURE__*/React.createElement("div", {
42856
43070
  "class": "row m-0 w-100"
@@ -42884,12 +43098,12 @@ var Footer2 = function Footer2(props) {
42884
43098
  }, /*#__PURE__*/React.createElement("p", {
42885
43099
  "class": ' storeinfotext d-flex align-items-center justify-content-md-center cursor-pointer text-transform-none ',
42886
43100
  onClick: function onClick() {
42887
- var _authdetailsContext$i17;
42888
- window.open('mailto:' + (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i17 = authdetailsContext.instinfo) === null || _authdetailsContext$i17 === void 0 || (_authdetailsContext$i17 = _authdetailsContext$i17.contactinfo) === null || _authdetailsContext$i17 === void 0 ? void 0 : _authdetailsContext$i17.email), '_self');
43101
+ var _authdetailsContext$i18;
43102
+ window.open('mailto:' + (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i18 = authdetailsContext.instinfo) === null || _authdetailsContext$i18 === void 0 || (_authdetailsContext$i18 = _authdetailsContext$i18.contactinfo) === null || _authdetailsContext$i18 === void 0 ? void 0 : _authdetailsContext$i18.email), '_self');
42889
43103
  }
42890
43104
  }, /*#__PURE__*/React.createElement("i", {
42891
43105
  "class": ' fa fa-at mr-2 ml-2 '
42892
- }), authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i18 = authdetailsContext.instinfo) === null || _authdetailsContext$i18 === void 0 || (_authdetailsContext$i18 = _authdetailsContext$i18.contactinfo) === null || _authdetailsContext$i18 === void 0 ? void 0 : _authdetailsContext$i18.email)), /*#__PURE__*/React.createElement("div", {
43106
+ }), authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i19 = authdetailsContext.instinfo) === null || _authdetailsContext$i19 === void 0 || (_authdetailsContext$i19 = _authdetailsContext$i19.contactinfo) === null || _authdetailsContext$i19 === void 0 ? void 0 : _authdetailsContext$i19.email)), /*#__PURE__*/React.createElement("div", {
42893
43107
  "class": "".concat(footerStyles.footerinfotext) + ' col-lg-4 col-md-4 col-sm-12 d-flex justify-content-center justify-content-md-center align-items-start p-0 '
42894
43108
  }, /*#__PURE__*/React.createElement("p", {
42895
43109
  "class": ' storeinfotext d-flex align-items-center justify-content-md-center cursor-pointer ',
@@ -42906,21 +43120,21 @@ var Footer2 = function Footer2(props) {
42906
43120
  "class": ' h-100 d-flex align-items-center justify-content-center mr-2 ml-2 '
42907
43121
  }, /*#__PURE__*/React.createElement(IoLocationSharp, {
42908
43122
  size: sectionproperties.footerinfoicon_fontsize
42909
- })), authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i19 = authdetailsContext.instinfo) === null || _authdetailsContext$i19 === void 0 ? void 0 : _authdetailsContext$i19.address_en)))), sectionproperties.showdownloadsection == 'Show' && /*#__PURE__*/React.createElement("div", {
43123
+ })), authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i20 = authdetailsContext.instinfo) === null || _authdetailsContext$i20 === void 0 ? void 0 : _authdetailsContext$i20.address_en)))), sectionproperties.showdownloadsection == 'Show' && /*#__PURE__*/React.createElement("div", {
42910
43124
  "class": "col-lg-12 d-flex align-items-center justify-content-center p-sm-0"
42911
43125
  }, /*#__PURE__*/React.createElement("img", {
42912
43126
  "class": "".concat(footerStyles.apptore) + ' d-flex justify-content-center align-items-center cursor-pointer mx-2 ',
42913
43127
  src: 'https://tabex-co.com/storage/StaticImages/appstore.png',
42914
43128
  onClick: function onClick() {
42915
- var _authdetailsContext$i20;
42916
- window.open(authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i20 = authdetailsContext.instinfo) === null || _authdetailsContext$i20 === void 0 ? void 0 : _authdetailsContext$i20.mobileapplink_appstore, '_blank');
43129
+ var _authdetailsContext$i21;
43130
+ window.open(authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i21 = authdetailsContext.instinfo) === null || _authdetailsContext$i21 === void 0 ? void 0 : _authdetailsContext$i21.mobileapplink_appstore, '_blank');
42917
43131
  }
42918
43132
  }), /*#__PURE__*/React.createElement("img", {
42919
43133
  "class": "".concat(footerStyles.googleplay) + ' d-flex justify-content-center align-items-center cursor-pointer mx-2 ',
42920
43134
  src: 'https://tabex-co.com/storage/StaticImages/googleplay.png',
42921
43135
  onClick: function onClick() {
42922
- var _authdetailsContext$i21;
42923
- window.open(authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i21 = authdetailsContext.instinfo) === null || _authdetailsContext$i21 === void 0 ? void 0 : _authdetailsContext$i21.mobileapplink_playstore, '_blank');
43136
+ var _authdetailsContext$i22;
43137
+ window.open(authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i22 = authdetailsContext.instinfo) === null || _authdetailsContext$i22 === void 0 ? void 0 : _authdetailsContext$i22.mobileapplink_playstore, '_blank');
42924
43138
  }
42925
43139
  })))));
42926
43140
  };
@@ -69241,7 +69455,7 @@ var Horizontalcard = function Horizontalcard(props) {
69241
69455
  setitem(props.cardinfoitemprops);
69242
69456
  }, [props.cardinfoitemprops]);
69243
69457
  var card_cssstyles = {
69244
- productcard: css({
69458
+ productcard: css(_defineProperty({
69245
69459
  marginTop: sectionproperties.marginTop + 'px',
69246
69460
  marginBottom: sectionproperties.marginBottom + 'px',
69247
69461
  background: sectionproperties.backgroundColortransparent == 'Transparent' ? 'transparent' : sectionproperties.backgroundColor,
@@ -69250,9 +69464,8 @@ var Horizontalcard = function Horizontalcard(props) {
69250
69464
  borderTopLeftRadius: langdetect == 'en' ? sectionproperties.borderTopLeftRadius + 'px' : sectionproperties.borderTopRightRadius + 'px',
69251
69465
  borderTopRightRadius: langdetect == 'en' ? sectionproperties.borderTopRightRadius + 'px' : sectionproperties.borderTopLeftRadius + 'px',
69252
69466
  border: sectionproperties.bordertype == 'All' ? sectionproperties.sectioncardborderwidth + 'px solid ' + sectionproperties.sectioncardbordercolor : '',
69253
- borderBottom: sectionproperties.sectioncardborderwidth + 'px solid ' + sectionproperties.sectioncardbordercolor,
69254
- boxShadow: '0 0 10px ' + sectionproperties.sectioncardshadowcolor
69255
- }),
69467
+ borderBottom: sectionproperties.bordertype == 'Bottom' ? sectionproperties.sectioncardborderwidth + 'px solid ' + sectionproperties.sectioncardbordercolor : ''
69468
+ }, "border", sectionproperties.bordertype == 'All' ? sectionproperties.sectioncardborderwidth + 'px solid ' + sectionproperties.sectioncardbordercolor : '')),
69256
69469
  productNameStyles: css({
69257
69470
  color: sectionproperties.prodNameColor,
69258
69471
  fontSize: sectionproperties.prodNameFontSize + 'px',
@@ -69420,7 +69633,7 @@ var Horizontalcard = function Horizontalcard(props) {
69420
69633
  position: 'relative'
69421
69634
  }
69422
69635
  }, /*#__PURE__*/React.createElement("div", {
69423
- "class": 'col-lg-9 col-md-9 col-sm-9 p-0 mb-2',
69636
+ "class": 'col-lg-9 col-md-9 col-sm-9 p-0 mb-2 d-flex align-items-center',
69424
69637
  style: {
69425
69638
  minHeight: '6vh'
69426
69639
  }
@@ -69469,7 +69682,7 @@ var Horizontalcard = function Horizontalcard(props) {
69469
69682
  style: {
69470
69683
  textAlign: langdetect == 'en' ? 'left' : 'right'
69471
69684
  }
69472
- }, plainString(langdetect == 'en' ? item.description_en : item.description_ar))), sectionproperties.cartBtnShow == 'Show' && props.numberOfColsvertical == '1' && /*#__PURE__*/React.createElement("div", {
69685
+ }, plainString(langdetect == 'en' ? item.description : item.description))), sectionproperties.cartBtnShow == 'Show' && props.numberOfColsvertical == '1' && /*#__PURE__*/React.createElement("div", {
69473
69686
  "class": "col-lg-3 col-md-12 col-sm-12 p-0 d-flex align-items-center justify-content-end justify-content-md-start"
69474
69687
  }, /*#__PURE__*/React.createElement("button", {
69475
69688
  "class": card_cssstyles.cart_btn,
@@ -69479,14 +69692,42 @@ var Horizontalcard = function Horizontalcard(props) {
69479
69692
  }
69480
69693
  }, langdetect == 'en' ? sectionproperties.cartBtnContentenglish : sectionproperties.cartBtnContentarabic)), item.isproducttobesold == 1 && /*#__PURE__*/React.createElement("div", {
69481
69694
  "class": "col-lg-12 p-0 d-flex align-items-center"
69482
- }, sectionproperties.prodPriceShow == 'Show' && /*#__PURE__*/React.createElement("p", {
69695
+ }, /*#__PURE__*/React.createElement("div", {
69696
+ "class": "row m-0 w-100"
69697
+ }, sectionproperties.prodPriceShow == 'Show' && /*#__PURE__*/React.createElement("div", {
69698
+ "class": "col-lg-12 p-0 text-start"
69699
+ }, /*#__PURE__*/React.createElement("p", {
69483
69700
  "class": card_cssstyles.productPricestyles + ' m-0 p-0 '
69484
- }, langdetect == 'en' ? item.currencyname : '', " ", item.hassale == 1 ? item.defaultsaleprice : item.defaultprice, ' ', langdetect == 'en' ? '' : item.currencyname), item.hassale == 1 && sectionproperties.prodsalePriceshow == 'Show' && /*#__PURE__*/React.createElement("p", {
69701
+ }, langdetect == 'en' ? item.currencyname : '', " ", item.hassale == 1 ? item.defaultsaleprice : item.defaultprice, ' ', langdetect == 'en' ? '' : item.currencyname)), /*#__PURE__*/React.createElement("div", {
69702
+ "class": "col-lg-12 p-0 text-start"
69703
+ }, item.hassale == 1 && sectionproperties.prodsalePriceshow == 'Show' && /*#__PURE__*/React.createElement("p", {
69485
69704
  "class": card_cssstyles.productSalePricestyles + ' m-0 p-0 ml-2 mr-2 ',
69486
69705
  style: {
69487
69706
  textDecoration: 'line-through'
69488
69707
  }
69489
- }, langdetect == 'en' ? item.currencyname : '', " ", item.defaultprice, " ", langdetect == 'en' ? '' : item.currencyname)), sectionproperties.cartBtnShow == 'Show' && props.numberOfColsvertical != '1' && /*#__PURE__*/React.createElement("div", {
69708
+ }, langdetect == 'en' ? item.currencyname : '', " ", item.defaultprice, " ", langdetect == 'en' ? '' : item.currencyname), sectionproperties.showpill == 'Show' && item.hassale == 1 && /*#__PURE__*/React.createElement("div", {
69709
+ "class": 'allcentered',
69710
+ style: {
69711
+ width: sectionproperties.pillwidth + 'px',
69712
+ height: sectionproperties.pillheight + 'px',
69713
+ background: sectionproperties.pillbgcolor,
69714
+ borderRadius: sectionproperties.pillborderBottomLeftRadius + 'px'
69715
+ }
69716
+ }, sectionproperties.countertype == 'Percentage' && /*#__PURE__*/React.createElement("p", {
69717
+ "class": "m-0 p-0",
69718
+ style: {
69719
+ color: sectionproperties.pillcolor,
69720
+ fontSize: sectionproperties.pillfontSize + 'px',
69721
+ direction: 'ltr'
69722
+ }
69723
+ }, '-' + parseFloat(Math.round(10.0 * ((parseInt(item.defaultprice) - parseInt(item.defaultsaleprice)) / parseInt(item.defaultprice)) * 100) / 10.0).toFixed(0) + '%'), sectionproperties.countertype == 'Value' && /*#__PURE__*/React.createElement("p", {
69724
+ "class": "m-0 p-0 text-uppercase",
69725
+ style: {
69726
+ color: sectionproperties.pillcolor,
69727
+ fontSize: sectionproperties.pillfontSize + 'px',
69728
+ direction: 'ltr'
69729
+ }
69730
+ }, langdetect == 'en' ? 'Save' : 'وفر', " ", langdetect == 'en' ? item.currencyname : '', ' ', parseFloat(Math.round(parseInt(item.defaultprice) - parseInt(item.defaultsaleprice))).toFixed(0), ' ', langdetect == 'en' ? '' : item.currencyname))))), sectionproperties.cartBtnShow == 'Show' && props.numberOfColsvertical != '1' && /*#__PURE__*/React.createElement("div", {
69490
69731
  "class": "col-lg-12 p-0 d-flex align-items-center mt-2"
69491
69732
  }, /*#__PURE__*/React.createElement("button", {
69492
69733
  "class": card_cssstyles.cart_btn,
@@ -74185,9 +74426,9 @@ var Simpleproductcard = function Simpleproductcard(props) {
74185
74426
  var StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
74186
74427
  props.actions.lang;
74187
74428
  var langdetect = props.actions.langdetect;
74188
- props.actions.setShowProductInfoModalContext;
74429
+ var setShowProductInfoModalContext = props.actions.setShowProductInfoModalContext;
74189
74430
  var addtofavoritescontext = props.actions.addtofavoritescontext;
74190
- props.actions.setProductIdProdutInfoModalContext;
74431
+ var setProductIdProdutInfoModalContext = props.actions.setProductIdProdutInfoModalContext;
74191
74432
  var cardonclickfunctionContext = props.actions.cardonclickfunctionContext;
74192
74433
  var ikimagecredcontext = props.actions.ikimagecredcontext;
74193
74434
  props.actions.NotificationManager;
@@ -74217,6 +74458,12 @@ var Simpleproductcard = function Simpleproductcard(props) {
74217
74458
  '@media (max-width: 800px)': {
74218
74459
  minWidth: props.sectiontypeprops2 == 'vertical' ? '100%' : sectionproperties.widthresponsive + 'px',
74219
74460
  maxWidth: props.sectiontypeprops2 == 'vertical' ? '100%' : sectionproperties.widthresponsive + 'px'
74461
+ },
74462
+ ':hover .iconsContainer': {
74463
+ opacity: 1,
74464
+ transition: 'all, 0.4s',
74465
+ right: 10,
74466
+ transform: "translateX(0px)"
74220
74467
  }
74221
74468
  }),
74222
74469
  productcardimagecont: css({
@@ -74341,6 +74588,26 @@ var Simpleproductcard = function Simpleproductcard(props) {
74341
74588
  backgroundColor: sectionproperties.backgroundColortransparent != 'Transparent' && sectionproperties.backgroundColor == '#ffffff' ? 'rgba(250,250,250,' + sectionproperties.bgopacityonhover + ')' : 1,
74342
74589
  transition: 0.3
74343
74590
  }
74591
+ }),
74592
+ iconsContainer: css({
74593
+ display: 'flex',
74594
+ flexDirection: 'column',
74595
+ position: 'absolute',
74596
+ top: 5,
74597
+ right: -15,
74598
+ opacity: 0,
74599
+ transform: "translateX(5px)",
74600
+ zIndex: 10,
74601
+ '@media (max-width: 800px)': {
74602
+ opacity: 1,
74603
+ right: 10
74604
+ }
74605
+ }),
74606
+ iconsContainer2: css({
74607
+ opacity: 1,
74608
+ transition: 'all, 0.4s',
74609
+ right: 10,
74610
+ transform: "translateX(0px)"
74344
74611
  })
74345
74612
  };
74346
74613
  var _useState5 = useState(''),
@@ -74439,6 +74706,32 @@ var Simpleproductcard = function Simpleproductcard(props) {
74439
74706
  cardonclickfunctionContext(sectionproperties === null || sectionproperties === void 0 ? void 0 : sectionproperties.onClickRoute, productidtobesend, props.fetchingtypeprops, item.collectionid);
74440
74707
  }
74441
74708
  };
74709
+ var PillContainer = function PillContainer() {
74710
+ return /*#__PURE__*/React.createElement("div", {
74711
+ "class": sectionproperties.pillwidth == 0 ? ' px-2 allcentered' : 'allcentered',
74712
+ style: {
74713
+ zIndex: 2,
74714
+ width: sectionproperties.pillwidth == 0 ? 'auto' : sectionproperties.pillwidth + 'px',
74715
+ height: sectionproperties.pillheight + 'px',
74716
+ background: sectionproperties.pillbgcolor,
74717
+ borderRadius: sectionproperties.pillborderBottomLeftRadius + 'px'
74718
+ }
74719
+ }, sectionproperties.countertype == 'Percentage' && /*#__PURE__*/React.createElement("p", {
74720
+ "class": "m-0 p-0",
74721
+ style: {
74722
+ color: sectionproperties.pillcolor,
74723
+ fontSize: sectionproperties.pillfontSize + 'px',
74724
+ direction: 'ltr'
74725
+ }
74726
+ }, '-' + parseFloat(Math.round(10.0 * ((parseInt(item.defaultprice) - parseInt(item.defaultsaleprice)) / parseInt(item.defaultprice)) * 100) / 10.0).toFixed(0) + '%'), sectionproperties.countertype == 'Value' && /*#__PURE__*/React.createElement("p", {
74727
+ "class": "m-0 p-0 text-uppercase",
74728
+ style: {
74729
+ color: sectionproperties.pillcolor,
74730
+ fontSize: sectionproperties.pillfontSize + 'px',
74731
+ direction: 'ltr'
74732
+ }
74733
+ }, langdetect == 'en' ? 'Save' : 'وفر', " ", langdetect == 'en' ? item.currencyname : '', ' ', parseFloat(Math.round(parseInt(item.defaultprice) - parseInt(item.defaultsaleprice))).toFixed(0), " ", langdetect == 'en' ? '' : item.currencyname));
74734
+ };
74442
74735
  return /*#__PURE__*/React.createElement("div", {
74443
74736
  "class": props.sectiontypeprops2 == 'vertical' ? "".concat(card_cssstyles.productcard) + ' w-100 px-md-1 ' : " ".concat(card_cssstyles.productcard),
74444
74737
  style: {
@@ -74460,7 +74753,43 @@ var Simpleproductcard = function Simpleproductcard(props) {
74460
74753
  style: {
74461
74754
  position: 'relative'
74462
74755
  }
74756
+ }, sectionproperties.btnswithtransition == 'With Transition' && /*#__PURE__*/React.createElement("div", {
74757
+ "class": "".concat(card_cssstyles.iconsContainer) + ' iconsContainer p-0 d-flex '
74463
74758
  }, sectionproperties.favBtnShow == 'Show' && /*#__PURE__*/React.createElement("button", {
74759
+ "class": " ".concat(card_cssstyles.wishlist_btn) + ' mt-2 mb-2 ',
74760
+ onClick: function onClick() {
74761
+ addtofavoritescontext(item.productid);
74762
+ }
74763
+ }, item.IsFavExists && /*#__PURE__*/React.createElement("i", {
74764
+ "class": "h-100 d-flex align-items-center justify-content-center icon"
74765
+ }, sectionproperties.faviconshape == 'Star Shape' && /*#__PURE__*/React.createElement(AiFillStar$1, {
74766
+ size: sectionproperties.favBtnIconfontsize,
74767
+ style: {
74768
+ color: sectionproperties.activefaviconcolor
74769
+ }
74770
+ }), sectionproperties.faviconshape == 'Heart Shape' && /*#__PURE__*/React.createElement(FaHeart$1, {
74771
+ size: sectionproperties.favBtnIconfontsize,
74772
+ style: {
74773
+ color: sectionproperties.activefaviconcolor
74774
+ }
74775
+ })), !item.IsFavExists && /*#__PURE__*/React.createElement("i", {
74776
+ "class": "h-100 d-flex align-items-center justify-content-center icon"
74777
+ }, sectionproperties.faviconshape == 'Star Shape' && /*#__PURE__*/React.createElement(AiOutlineStar, {
74778
+ size: sectionproperties.favBtnIconfontsize
74779
+ }), sectionproperties.faviconshape == 'Heart Shape' && /*#__PURE__*/React.createElement(FaRegHeart, {
74780
+ size: sectionproperties.favBtnIconfontsize
74781
+ }))), sectionproperties.showproductinfomodalbtn == 'Show' && /*#__PURE__*/React.createElement("button", {
74782
+ "class": "".concat(card_cssstyles.wishlist_btn) + ' ',
74783
+ onClick: function onClick(e) {
74784
+ e.stopPropagation();
74785
+ setShowProductInfoModalContext(true);
74786
+ setProductIdProdutInfoModalContext(item.productid);
74787
+ }
74788
+ }, /*#__PURE__*/React.createElement("i", {
74789
+ "class": "h-100 d-flex align-items-center justify-content-center icon"
74790
+ }, /*#__PURE__*/React.createElement(BsEye, {
74791
+ size: sectionproperties.generalbtn_fontsize
74792
+ })))), sectionproperties.favBtnShow == 'Show' && sectionproperties.btnswithtransition != 'With Transition' && /*#__PURE__*/React.createElement("button", {
74464
74793
  "class": " ".concat(card_cssstyles.wishlist_btn) + ' m-0 p-0 d-flex align-items-center justify-content-center ',
74465
74794
  onClick: function onClick(e) {
74466
74795
  e.stopPropagation();
@@ -74501,7 +74830,7 @@ var Simpleproductcard = function Simpleproductcard(props) {
74501
74830
  top: sectionproperties.badge_top + 'px',
74502
74831
  left: langdetect == 'en' ? sectionproperties.badge_right + 'px' : '',
74503
74832
  right: langdetect == 'en' ? '' : sectionproperties.badge_right + 'px',
74504
- width: sectionproperties.badge_width + 'px',
74833
+ width: sectionproperties.badge_width == 0 ? '90%' : sectionproperties.badge_width + 'px',
74505
74834
  height: sectionproperties.badge_height + 'px',
74506
74835
  background: sectionproperties.badge_bgcolor,
74507
74836
  borderRadius: sectionproperties.badge_borderradius + 'px'
@@ -74512,34 +74841,14 @@ var Simpleproductcard = function Simpleproductcard(props) {
74512
74841
  color: sectionproperties.badge_color,
74513
74842
  fontSize: sectionproperties.badge_fontsize + 'px'
74514
74843
  }
74515
- }, langdetect == 'en' ? sectionproperties.badgeContentEn : sectionproperties.badgeContentAr)), sectionproperties.showpill == 'Show' && item.hassale == 1 && /*#__PURE__*/React.createElement("div", {
74516
- "class": sectionproperties.pillwidth == 0 ? ' px-2 allcentered' : 'allcentered',
74844
+ }, langdetect == 'en' ? sectionproperties.badgeContentEn : sectionproperties.badgeContentAr)), sectionproperties.showpill == 'Show' && item.hassale == 1 && sectionproperties.counterposition == 'Top' && /*#__PURE__*/React.createElement("div", {
74517
74845
  style: {
74518
- zIndex: 2,
74519
74846
  position: 'absolute',
74520
74847
  top: sectionproperties.pillpositionfromtop + 'px',
74521
74848
  left: langdetect == 'en' ? sectionproperties.pillpositionfromright + 'px' : '',
74522
- right: langdetect == 'en' ? '' : sectionproperties.pillpositionfromright + 'px',
74523
- width: sectionproperties.pillwidth == 0 ? 'auto' : sectionproperties.pillwidth + 'px',
74524
- height: sectionproperties.pillheight + 'px',
74525
- background: sectionproperties.pillbgcolor,
74526
- borderRadius: sectionproperties.pillborderBottomLeftRadius + 'px'
74527
- }
74528
- }, sectionproperties.countertype == 'Percentage' && /*#__PURE__*/React.createElement("p", {
74529
- "class": "m-0 p-0",
74530
- style: {
74531
- color: sectionproperties.pillcolor,
74532
- fontSize: sectionproperties.pillfontSize + 'px',
74533
- direction: 'ltr'
74534
- }
74535
- }, '-' + parseFloat(Math.round(10.0 * ((parseInt(item.defaultprice) - parseInt(item.defaultsaleprice)) / parseInt(item.defaultprice)) * 100) / 10.0).toFixed(0) + '%'), sectionproperties.countertype == 'Value' && /*#__PURE__*/React.createElement("p", {
74536
- "class": "m-0 p-0 text-uppercase",
74537
- style: {
74538
- color: sectionproperties.pillcolor,
74539
- fontSize: sectionproperties.pillfontSize + 'px',
74540
- direction: 'ltr'
74849
+ right: langdetect == 'en' ? '' : sectionproperties.pillpositionfromright + 'px'
74541
74850
  }
74542
- }, langdetect == 'en' ? 'Save' : 'وفر', " ", langdetect == 'en' ? item.currencyname : '', ' ', parseFloat(Math.round(parseInt(item.defaultprice) - parseInt(item.defaultsaleprice))).toFixed(0), " ", langdetect == 'en' ? '' : item.currencyname)), (item === null || item === void 0 ? void 0 : item.producttags) != undefined && (item === null || item === void 0 || (_item$producttags = item.producttags) === null || _item$producttags === void 0 ? void 0 : _item$producttags.length) != 0 && sectionproperties.showtag == 'Show' && /*#__PURE__*/React.createElement("div", {
74851
+ }, PillContainer()), (item === null || item === void 0 ? void 0 : item.producttags) != undefined && (item === null || item === void 0 || (_item$producttags = item.producttags) === null || _item$producttags === void 0 ? void 0 : _item$producttags.length) != 0 && sectionproperties.showtag == 'Show' && /*#__PURE__*/React.createElement("div", {
74543
74852
  "class": "allcentered",
74544
74853
  style: {
74545
74854
  position: 'absolute',
@@ -74661,17 +74970,19 @@ var Simpleproductcard = function Simpleproductcard(props) {
74661
74970
  marginBottom: sectionproperties.productpricemarginBottom + 'px'
74662
74971
  }
74663
74972
  }, /*#__PURE__*/React.createElement("div", {
74664
- "class": ' d-flex align-items-center p-0 mb-0 flex-column ',
74973
+ "class": sectionproperties.priceDirection == 'Horizontal Direction' ? ' d-flex align-items-center p-0 mb-0 flex-row ' : ' d-flex align-items-center p-0 mb-0 flex-column ',
74665
74974
  style: {
74666
74975
  textAlign: sectionproperties.productnamecentered == 'Centered' ? 'center' : langdetect == 'en' ? 'left' : 'right'
74667
74976
  }
74668
74977
  }, sectionproperties.prodPriceShow == 'Show' && /*#__PURE__*/React.createElement("p", {
74669
- "class": "".concat(card_cssstyles.productPricestyles) + ' m-0 '
74978
+ "class": sectionproperties.priceDirection == 'Horizontal Direction' ? "".concat(card_cssstyles.productPricestyles) + ' m-0 ' : "".concat(card_cssstyles.productPricestyles) + ' m-0 '
74670
74979
  }, langdetect == 'en' ? item.currencyname : '', " ", item.hassale == 1 ? item.defaultsaleprice : item.defaultprice, ' ', langdetect == 'en' ? '' : item.currencyname), sectionproperties.prodsalePriceshow == 'Show' && item.hassale == 1 && /*#__PURE__*/React.createElement("div", {
74671
- "class": " d-flex align-items-center p-0 mb-0"
74980
+ "class": sectionproperties.priceDirection == 'Horizontal' ? ' d-flex align-items-center p-0 mb-0 ' : ' d-flex align-items-center p-0 mb-0'
74672
74981
  }, /*#__PURE__*/React.createElement("p", {
74673
74982
  "class": "".concat(card_cssstyles.productSalePricestyles) + ' linethrough m-0 mr-2 ml-2 '
74674
- }, langdetect == 'en' ? item.currencyname : '', " ", item.defaultprice, " ", langdetect == 'en' ? '' : item.currencyname)))), sectionproperties.showprofitcontainer == 'Show' && /*#__PURE__*/React.createElement("div", {
74983
+ }, langdetect == 'en' ? item.currencyname : '', " ", item.defaultprice, " ", langdetect == 'en' ? '' : item.currencyname)), sectionproperties.showpill == 'Show' && item.hassale == 1 && sectionproperties.counterposition == 'Besides Sale Price' && /*#__PURE__*/React.createElement("div", {
74984
+ style: {}
74985
+ }, PillContainer()))), sectionproperties.showprofitcontainer == 'Show' && /*#__PURE__*/React.createElement("div", {
74675
74986
  "class": "col-lg-12 p-0",
74676
74987
  style: {
74677
74988
  justifyContent: sectionproperties.productnamecentered == 'Centered' ? 'center' : 'start'