tabexseriescomponents 0.0.573 → 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.cjs.js CHANGED
@@ -2295,7 +2295,7 @@ var ProductExtraFields = function ProductExtraFields(props) {
2295
2295
  };
2296
2296
 
2297
2297
  var DescriptionContent = function DescriptionContent(props) {
2298
- var _fetchProductInfoQuer, _fetchProductInfoQuer2, _fetchProductInfoQuer3, _fetchProductInfoQuer4, _fetchProductInfoQuer5, _fetchProductInfoQuer6, _fetchProductInfoQuer7, _fetchProductInfoQuer8, _fetchProductInfoQuer9, _fetchProductInfoQuer10, _fetchProductInfoQuer11, _fetchProductInfoQuer12;
2298
+ var _fetchProductInfoQuer, _fetchProductInfoQuer2, _fetchProductInfoQuer3, _fetchProductInfoQuer4, _fetchProductInfoQuer5, _fetchProductInfoQuer6, _fetchProductInfoQuer7, _fetchProductInfoQuer8, _fetchProductInfoQuer9, _fetchProductInfoQuer10, _fetchProductInfoQuer11, _fetchProductInfoQuer12, _fetchProductInfoQuer13, _fetchProductInfoQuer14;
2299
2299
  var lang = props.actions.lang;
2300
2300
  var langdetect = props.actions.langdetect;
2301
2301
  var fetchProductInfoQueryContext = props.actions.fetchProductInfoQueryContext;
@@ -2306,7 +2306,7 @@ var DescriptionContent = function DescriptionContent(props) {
2306
2306
  setShowMore = _useState2[1];
2307
2307
  var ikimagecredcontext = props.actions.ikimagecredcontext;
2308
2308
  return /*#__PURE__*/React__default["default"].createElement("div", {
2309
- "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'
2309
+ "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'
2310
2310
  }, /*#__PURE__*/React__default["default"].createElement("div", {
2311
2311
  "class": "row m-0 w-100"
2312
2312
  }, sectionproperties.gallerystyle == 'Style 2' && props.srcfromprops != 'collap' && /*#__PURE__*/React__default["default"].createElement("div", {
@@ -2324,7 +2324,7 @@ var DescriptionContent = function DescriptionContent(props) {
2324
2324
  className: "row m-0 w-100 d-flex"
2325
2325
  }, /*#__PURE__*/React__default["default"].createElement("div", {
2326
2326
  "class": "col-lg-12 p-0 d-flex justify-content-start"
2327
- }, /*#__PURE__*/React__default["default"].createElement("p", {
2327
+ }, props.srcfromprops != 'Articles' && /*#__PURE__*/React__default["default"].createElement("p", {
2328
2328
  className: 'm-0 p-0 wordbreak',
2329
2329
  style: {
2330
2330
  textAlign: langdetect == 'en' ? 'left' : 'right',
@@ -2333,35 +2333,52 @@ var DescriptionContent = function DescriptionContent(props) {
2333
2333
  dangerouslySetInnerHTML: {
2334
2334
  __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)
2335
2335
  }
2336
- })), /*#__PURE__*/React__default["default"].createElement("div", {
2336
+ }), props.srcfromprops == 'Articles' && /*#__PURE__*/React__default["default"].createElement("p", {
2337
+ className: 'm-0 p-0 wordbreak',
2338
+ style: {
2339
+ textAlign: langdetect == 'en' ? 'left' : 'right',
2340
+ color: '#000000'
2341
+ },
2342
+ dangerouslySetInnerHTML: {
2343
+ __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
2344
+ }
2345
+ })), props.srcfromprops != 'Articles' && /*#__PURE__*/React__default["default"].createElement("div", {
2337
2346
  "class": "col-lg-12 allcentered"
2338
- }, (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__default["default"].createElement("p", {
2347
+ }, (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__default["default"].createElement("p", {
2339
2348
  "class": "m-0 p-0 cursor-pointer text-grey font-weight-600",
2340
2349
  onClick: function onClick() {
2341
2350
  return setShowMore(!showMore);
2342
2351
  }
2343
- }, 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__default["default"].createElement("div", {
2352
+ }, 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__default["default"].createElement("div", {
2344
2353
  className: "col-lg-12 p-0 mb-4 d-flex justify-content-center"
2345
2354
  }, /*#__PURE__*/React__default["default"].createElement("div", {
2346
2355
  className: "row m-0 w-100 d-flex"
2347
2356
  }, /*#__PURE__*/React__default["default"].createElement("div", {
2348
2357
  "class": "col-lg-12 p-0 d-flex justify-content-start flex-column"
2349
- }, /*#__PURE__*/React__default["default"].createElement("p", {
2358
+ }, props.srcfromprops != 'Articles' && /*#__PURE__*/React__default["default"].createElement("p", {
2350
2359
  className: 'text-black m-0 p-0 wordbreak',
2351
2360
  style: {
2352
2361
  textAlign: langdetect == 'en' ? 'left' : 'right'
2353
2362
  },
2354
2363
  dangerouslySetInnerHTML: {
2355
- __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)
2364
+ __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)
2356
2365
  }
2357
- })), /*#__PURE__*/React__default["default"].createElement("div", {
2366
+ }), props.srcfromprops == 'Articles' && /*#__PURE__*/React__default["default"].createElement("p", {
2367
+ className: 'text-black m-0 p-0 wordbreak',
2368
+ style: {
2369
+ textAlign: langdetect == 'en' ? 'left' : 'right'
2370
+ },
2371
+ dangerouslySetInnerHTML: {
2372
+ __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
2373
+ }
2374
+ })), props.srcfromprops != 'Articles' && /*#__PURE__*/React__default["default"].createElement("div", {
2358
2375
  "class": "col-lg-12 allcentered"
2359
- }, (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__default["default"].createElement("p", {
2376
+ }, (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__default["default"].createElement("p", {
2360
2377
  "class": "m-0 p-0 cursor-pointer text-grey font-weight-600 text-right",
2361
2378
  onClick: function onClick() {
2362
2379
  return setShowMore(!showMore);
2363
2380
  }
2364
- }, 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__default["default"].createElement("div", {
2381
+ }, 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__default["default"].createElement("div", {
2365
2382
  "class": "col-lg-12 p-0"
2366
2383
  }, /*#__PURE__*/React__default["default"].createElement("div", {
2367
2384
  "class": "row m-0 w-100 allcentered pl-md-3 pr-md-3",
@@ -2369,7 +2386,7 @@ var DescriptionContent = function DescriptionContent(props) {
2369
2386
  paddingLeft: sectionproperties.galleryPaddingHorizontal + 'px',
2370
2387
  paddingRight: sectionproperties.galleryPaddingHorizontal + 'px'
2371
2388
  }
2372
- }, 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) {
2389
+ }, 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) {
2373
2390
  if (index <= 6) {
2374
2391
  return /*#__PURE__*/React__default["default"].createElement("div", {
2375
2392
  "class": ' col-md-4 col-sm-12 mb-3 col-lg-' + sectionproperties.galleryNoOfCols,
@@ -5143,6 +5160,177 @@ var Service_itemtype = function Service_itemtype(props) {
5143
5160
  }, StoreInfoprops()))));
5144
5161
  };
5145
5162
 
5163
+ var Article_itemtype = function Article_itemtype(props) {
5164
+ var _fetchProductInfoQuer, _fetchProductInfoQuer2, _fetchProductInfoQuer3, _fetchProductInfoQuer4, _fetchProductInfoQuer5, _fetchProductInfoQuer6;
5165
+ props.actions.lang;
5166
+ var langdetect = props.actions.langdetect;
5167
+ var srcfromprops = props.actions.srcfromprops;
5168
+ props.actions.returnpolicyobj;
5169
+ var productinfo_cssstyles = props.actions.productinfo_cssstyles;
5170
+ props.actions.addtocartfunc;
5171
+ props.actions.selectproductoptionvalue;
5172
+ props.actions.clearchoosenvaluesbutkeepcurrentvalue;
5173
+ props.actions.productimagesarray;
5174
+ var fetchProductInfoQueryContext = props.actions.fetchProductInfoQueryContext;
5175
+ var sectionproperties = props.actions.sectionproperties;
5176
+ props.actions.addtocardpayloadobj;
5177
+ props.actions.setaddtocardpayloadobj;
5178
+ var routingcountext = props.actions.routingcountext;
5179
+ props.actions.AddtoCartMutationContext;
5180
+ var authdetailsContext = props.actions.authdetailsContext;
5181
+ props.actions.variantsku;
5182
+ props.actions.addtofavoritescontext;
5183
+ props.actions.variantindexcompleted;
5184
+ props.actions.ProductInfoObj;
5185
+ props.actions.NotificationManager;
5186
+ var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
5187
+ props.actions.getprice_discountpriceprops;
5188
+ var ikimagecredcontext = props.actions.ikimagecredcontext;
5189
+ var currentshowingimageindex_pro = props.actions.currentshowingimageindex;
5190
+ props.actions.StoreInfoprops;
5191
+ var _useState = React.useState(currentshowingimageindex_pro),
5192
+ _useState2 = _slicedToArray__default["default"](_useState, 2);
5193
+ _useState2[0];
5194
+ _useState2[1];
5195
+ // const DescriptionContent = props.actions.DescriptionContent;
5196
+ var _useState3 = React.useState(''),
5197
+ _useState4 = _slicedToArray__default["default"](_useState3, 2);
5198
+ _useState4[0];
5199
+ var setshareUrl = _useState4[1];
5200
+ var _useState5 = React.useState(''),
5201
+ _useState6 = _slicedToArray__default["default"](_useState5, 2);
5202
+ _useState6[0];
5203
+ var settitle = _useState6[1];
5204
+ var _useState7 = React.useState(fetchProductInfoQueryContext.data.data.productinfo),
5205
+ _useState8 = _slicedToArray__default["default"](_useState7, 2);
5206
+ _useState8[0];
5207
+ var setitem = _useState8[1];
5208
+ React.useEffect(function () {
5209
+ var itemobj = fetchProductInfoQueryContext.data.data.productinfo;
5210
+ if (stringIsEnglish(fetchProductInfoQueryContext.data.data.productinfo.name_en)) {
5211
+ itemobj.titlelang = 'en';
5212
+ } else {
5213
+ itemobj.titlelang = 'ar';
5214
+ }
5215
+ if (stringIsEnglish(fetchProductInfoQueryContext.data.data.productinfo.description_en)) {
5216
+ itemobj.decriptionlang = 'en';
5217
+ } else {
5218
+ itemobj.decriptionlang = 'ar';
5219
+ }
5220
+ setitem(itemobj);
5221
+ settitle(fetchProductInfoQueryContext.data.data.productinfo.name_en);
5222
+ setshareUrl('https://' + authdetailsContext.instinfo.instcred.instexternaldomain + '/productinform/' + fetchProductInfoQueryContext.data.data.productinfo.productid);
5223
+ }, [props.itemprops]);
5224
+ function stringIsEnglish(str) {
5225
+ var titlelang = 'English';
5226
+ var arabic = /[\u0600-\u06FF]/;
5227
+ if (!arabic.test(str)) {
5228
+ titlelang = true;
5229
+ } else {
5230
+ titlelang = false;
5231
+ }
5232
+ return titlelang;
5233
+ }
5234
+ return /*#__PURE__*/React__default["default"].createElement("div", {
5235
+ 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 ',
5236
+ style: {
5237
+ paddingLeft: srcfromprops == 'Productinfomodel' ? langdetect == 'en' ? sectionproperties.card_marginLeft + 'px' : sectionproperties.card_marginRight + 'px' : 0,
5238
+ paddingRight: srcfromprops == 'Productinfomodel' ? langdetect == 'en' ? sectionproperties.card_marginRight + 'px' : sectionproperties.card_marginLeft + 'px' : 0
5239
+ }
5240
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
5241
+ "class": ' col-lg-12 p-0 '
5242
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
5243
+ "class": "".concat(productinfo_cssstyles.cardcontainer) + ' row ml-0 mr-0 w-100 pl-md-3 pr-md-3 px-1025-1 ',
5244
+ style: {
5245
+ minHeight: sectionproperties.height + 'vh'
5246
+ // paddingLeft: srcfromprops == 'templatedraftrouter' ? 0 : langdetect == 'en' ? sectionproperties.card_marginLeft + 'px' : sectionproperties.card_marginRight + 'px',
5247
+ // paddingRight: srcfromprops == 'templatedraftrouter' ? 0 : langdetect == 'en' ? sectionproperties.card_marginRight + 'px' : sectionproperties.card_marginLeft + 'px',
5248
+ }
5249
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
5250
+ "class": "w-100 scrollhorizontalwithscrollbar "
5251
+ }, (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) {
5252
+ return /*#__PURE__*/React__default["default"].createElement("div", {
5253
+ "class": ' scrollhorizontalcard mx-2 ',
5254
+ style: {
5255
+ height: sectionproperties.image_height + 'px',
5256
+ width: sectionproperties.image_width + 'px'
5257
+ }
5258
+ }, /*#__PURE__*/React__default["default"].createElement(Imagekitimagecomp, {
5259
+ urlEndpoint: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint,
5260
+ publicKey: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimagepublickey,
5261
+ path: '/tr:w-' + sectionproperties.imagetr_w + ',h-' + sectionproperties.imagetr_h + '/' + item.path,
5262
+ style: {
5263
+ width: '100%',
5264
+ height: '100%',
5265
+ objectFit: 'contain'
5266
+ },
5267
+ loading: "lazy"
5268
+ }));
5269
+ }))), /*#__PURE__*/React__default["default"].createElement("div", {
5270
+ "class": "col-lg-12 p-0"
5271
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
5272
+ "class": "row mx-0 w-100",
5273
+ style: {
5274
+ marginTop: '3rem'
5275
+ }
5276
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
5277
+ className: 'col-lg-12 px-3 px-md-2'
5278
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
5279
+ className: 'row m-0 w-100'
5280
+ }, sectionproperties.showmeasurementunit == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
5281
+ className: 'col-lg-12 p-0 mb-1 d-flex justify-content-start align-items-center mb-1 mt-3'
5282
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
5283
+ className: ' m-0 p-0 wordbreak d-flex justify-content-start ',
5284
+ style: {
5285
+ textAlign: langdetect == 'en' ? 'left' : 'right',
5286
+ fontWeight: 400,
5287
+ color: sectionproperties.measurementunitcolor,
5288
+ fontSize: sectionproperties.measurementunitcolor + 'px'
5289
+ }
5290
+ }, fetchProductInfoQueryContext.data.data.productinfo.measurmentunit)), /*#__PURE__*/React__default["default"].createElement("div", {
5291
+ className: 'col-lg-12 p-0 mb-1 d-flex justify-content-start align-items-center'
5292
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
5293
+ 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 ',
5294
+ onClick: function onClick() {
5295
+ if (props.srcfromprops != 'templatedraftrouter') {
5296
+ routingcountext(StaticPagesLinksContext.productinfo, true, fetchProductInfoQueryContext.data.data.productinfo.productid);
5297
+ }
5298
+ },
5299
+ style: {
5300
+ textAlign: langdetect == 'en' ? 'left' : 'right'
5301
+ }
5302
+ }, 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__default["default"].createElement("div", {
5303
+ "class": "col-lg-12 p-0"
5304
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
5305
+ "class": "col-lg-12 p-0 d-flex justify-content-start"
5306
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
5307
+ className: 'text-black m-0 p-0 wordbreak',
5308
+ style: {
5309
+ textAlign: langdetect == 'en' ? 'left' : 'right'
5310
+ },
5311
+ dangerouslySetInnerHTML: {
5312
+ __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
5313
+ }
5314
+ }))), 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__default["default"].createElement("div", {
5315
+ "class": "col-lg-12 p-0"
5316
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
5317
+ "class": "col-lg-12 p-0 d-flex justify-content-start"
5318
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
5319
+ className: 'text-black m-0 p-0 wordbreak',
5320
+ style: {
5321
+ textAlign: langdetect == 'en' ? 'left' : 'right'
5322
+ },
5323
+ dangerouslySetInnerHTML: {
5324
+ __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
5325
+ }
5326
+ }))), /*#__PURE__*/React__default["default"].createElement("div", {
5327
+ "class": "col-lg-12 p-0"
5328
+ }, /*#__PURE__*/React__default["default"].createElement(DescriptionContent, {
5329
+ actions: props.actions,
5330
+ srcfromprops: 'Articles'
5331
+ })))))))));
5332
+ };
5333
+
5146
5334
  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; }
5147
5335
  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__default["default"](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; }
5148
5336
  var AddReview = function AddReview(props) {
@@ -5655,7 +5843,7 @@ var ProductReviews = function ProductReviews(props) {
5655
5843
  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; }
5656
5844
  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__default["default"](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; }
5657
5845
  var Productinfo = function Productinfo(props) {
5658
- var _css, _ref, _ref2, _fetchProductInfoQuer35, _fetchProductInfoQuer36, _returnpolicyobj, _returnpolicyobj2, _returnpolicyobj3, _returnpolicyobj4, _fetchProductInfoQuer37, _fetchProductInfoQuer38, _returnpolicyobj5, _returnpolicyobj6, _returnpolicyobj7, _returnpolicyobj8, _fetchProductInfoQuer39, _fetchProductInfoQuer40, _returnpolicyobj9, _returnpolicyobj10, _returnpolicyobj11, _returnpolicyobj12;
5846
+ var _css, _ref, _ref2, _ref3, _fetchProductInfoQuer35, _fetchProductInfoQuer36, _returnpolicyobj, _returnpolicyobj2, _returnpolicyobj3, _returnpolicyobj4, _fetchProductInfoQuer37, _fetchProductInfoQuer38, _returnpolicyobj5, _returnpolicyobj6, _returnpolicyobj7, _returnpolicyobj8, _fetchProductInfoQuer39, _fetchProductInfoQuer40, _returnpolicyobj9, _returnpolicyobj10, _returnpolicyobj11, _returnpolicyobj12;
5659
5847
  var _useState = React.useState({}),
5660
5848
  _useState2 = _slicedToArray__default["default"](_useState, 2),
5661
5849
  ProductInfoObj = _useState2[0],
@@ -7071,7 +7259,7 @@ var Productinfo = function Productinfo(props) {
7071
7259
  paddingLeft: props.srcfromprops == 'Productinfomodel' ? langdetect == 'en' ? sectionproperties.card_marginLeft + 'px' : sectionproperties.card_marginRight + 'px' : 0,
7072
7260
  paddingRight: props.srcfromprops == 'Productinfomodel' ? langdetect == 'en' ? sectionproperties.card_marginRight + 'px' : sectionproperties.card_marginLeft + 'px' : 0
7073
7261
  }
7074
- }, fetchProductInfoQueryContext.data.data.productinfo.item_type != 'service' && /*#__PURE__*/React__default["default"].createElement(Product_itemtype, {
7262
+ }, fetchProductInfoQueryContext.data.data.productinfo.item_type == 'product' && /*#__PURE__*/React__default["default"].createElement(Product_itemtype, {
7075
7263
  actions: (_ref = {
7076
7264
  setisoutofstock: setisoutofstock,
7077
7265
  isoutofstock: isoutofstock,
@@ -7080,8 +7268,17 @@ var Productinfo = function Productinfo(props) {
7080
7268
  lang: lang,
7081
7269
  srcfromprops: props.srcfromprops
7082
7270
  }, _defineProperty__default["default"](_ref, "returnpolicyobj", returnpolicyobj), _defineProperty__default["default"](_ref, "productinfo_cssstyles", productinfo_cssstyles), _defineProperty__default["default"](_ref, "addtocartfunc", addtocartfunc), _defineProperty__default["default"](_ref, "selectproductoptionvalue", selectproductoptionvalue), _defineProperty__default["default"](_ref, "clearchoosenvaluesbutkeepcurrentvalue", clearchoosenvaluesbutkeepcurrentvalue), _defineProperty__default["default"](_ref, "productimagesarray", productimagesarray), _defineProperty__default["default"](_ref, "fetchProductInfoQueryContext", fetchProductInfoQueryContext), _defineProperty__default["default"](_ref, "ProductInfoObj", ProductInfoObj), _defineProperty__default["default"](_ref, "sectionproperties", sectionproperties), _defineProperty__default["default"](_ref, "addtocardpayloadobj", addtocardpayloadobj), _defineProperty__default["default"](_ref, "setaddtocardpayloadobj", setaddtocardpayloadobj), _defineProperty__default["default"](_ref, "routingcountext", routingcountext), _defineProperty__default["default"](_ref, "AddtoCartMutationContext", AddtoCartMutationContext), _defineProperty__default["default"](_ref, "authdetailsContext", authdetailsContext), _defineProperty__default["default"](_ref, "addtofavoritescontext", addtofavoritescontext), _defineProperty__default["default"](_ref, "variantindexcompleted", variantindexcompleted), _defineProperty__default["default"](_ref, "StaticPagesLinksContext", StaticPagesLinksContext), _defineProperty__default["default"](_ref, "NotificationManager", NotificationManager), _defineProperty__default["default"](_ref, "GeneralAPIMutationContext", GeneralAPIMutationContext), _defineProperty__default["default"](_ref, "quantityconditionfoundobjprops", quantityconditionfoundobj), _defineProperty__default["default"](_ref, "relatedproducts", relatedproducts), _defineProperty__default["default"](_ref, "getprice_discountpriceprops", getprice_discountpriceprops), _defineProperty__default["default"](_ref, "StoreInfoprops", StoreInfo), _defineProperty__default["default"](_ref, "currentshowingimageindex", currentshowingimageindex), _defineProperty__default["default"](_ref, "setcurrentshowingimageindex", setcurrentshowingimageindex), _defineProperty__default["default"](_ref, "templatepropcontext", templatepropcontext), _defineProperty__default["default"](_ref, "ikimagecredcontext", ikimagecredcontext), _defineProperty__default["default"](_ref, "variantindex", variantindex), _defineProperty__default["default"](_ref, "setvariantindex", setvariantindex), _defineProperty__default["default"](_ref, "variantsku", variantsku), _defineProperty__default["default"](_ref, "variantvalueidentifier", variantvalueidentifier), _ref)
7083
- }), fetchProductInfoQueryContext.data.data.productinfo.item_type == 'service' && /*#__PURE__*/React__default["default"].createElement(Service_itemtype, {
7271
+ }), fetchProductInfoQueryContext.data.data.productinfo.item_type == 'Article' && /*#__PURE__*/React__default["default"].createElement(Article_itemtype, {
7084
7272
  actions: (_ref2 = {
7273
+ setisoutofstock: setisoutofstock,
7274
+ isoutofstock: isoutofstock,
7275
+ returnpolicyobj: returnpolicyobj,
7276
+ langdetect: langdetect,
7277
+ lang: lang,
7278
+ srcfromprops: props.srcfromprops
7279
+ }, _defineProperty__default["default"](_ref2, "returnpolicyobj", returnpolicyobj), _defineProperty__default["default"](_ref2, "productinfo_cssstyles", productinfo_cssstyles), _defineProperty__default["default"](_ref2, "addtocartfunc", addtocartfunc), _defineProperty__default["default"](_ref2, "selectproductoptionvalue", selectproductoptionvalue), _defineProperty__default["default"](_ref2, "clearchoosenvaluesbutkeepcurrentvalue", clearchoosenvaluesbutkeepcurrentvalue), _defineProperty__default["default"](_ref2, "productimagesarray", productimagesarray), _defineProperty__default["default"](_ref2, "fetchProductInfoQueryContext", fetchProductInfoQueryContext), _defineProperty__default["default"](_ref2, "ProductInfoObj", ProductInfoObj), _defineProperty__default["default"](_ref2, "sectionproperties", sectionproperties), _defineProperty__default["default"](_ref2, "addtocardpayloadobj", addtocardpayloadobj), _defineProperty__default["default"](_ref2, "setaddtocardpayloadobj", setaddtocardpayloadobj), _defineProperty__default["default"](_ref2, "routingcountext", routingcountext), _defineProperty__default["default"](_ref2, "AddtoCartMutationContext", AddtoCartMutationContext), _defineProperty__default["default"](_ref2, "authdetailsContext", authdetailsContext), _defineProperty__default["default"](_ref2, "addtofavoritescontext", addtofavoritescontext), _defineProperty__default["default"](_ref2, "variantindexcompleted", variantindexcompleted), _defineProperty__default["default"](_ref2, "StaticPagesLinksContext", StaticPagesLinksContext), _defineProperty__default["default"](_ref2, "NotificationManager", NotificationManager), _defineProperty__default["default"](_ref2, "GeneralAPIMutationContext", GeneralAPIMutationContext), _defineProperty__default["default"](_ref2, "quantityconditionfoundobjprops", quantityconditionfoundobj), _defineProperty__default["default"](_ref2, "relatedproducts", relatedproducts), _defineProperty__default["default"](_ref2, "getprice_discountpriceprops", getprice_discountpriceprops), _defineProperty__default["default"](_ref2, "StoreInfoprops", StoreInfo), _defineProperty__default["default"](_ref2, "currentshowingimageindex", currentshowingimageindex), _defineProperty__default["default"](_ref2, "setcurrentshowingimageindex", setcurrentshowingimageindex), _defineProperty__default["default"](_ref2, "templatepropcontext", templatepropcontext), _defineProperty__default["default"](_ref2, "ikimagecredcontext", ikimagecredcontext), _defineProperty__default["default"](_ref2, "variantindex", variantindex), _defineProperty__default["default"](_ref2, "setvariantindex", setvariantindex), _defineProperty__default["default"](_ref2, "variantsku", variantsku), _defineProperty__default["default"](_ref2, "variantvalueidentifier", variantvalueidentifier), _ref2)
7280
+ }), fetchProductInfoQueryContext.data.data.productinfo.item_type == 'service' && /*#__PURE__*/React__default["default"].createElement(Service_itemtype, {
7281
+ actions: (_ref3 = {
7085
7282
  variantsku: variantsku,
7086
7283
  setisoutofstock: setisoutofstock,
7087
7284
  isoutofstock: isoutofstock,
@@ -7089,7 +7286,7 @@ var Productinfo = function Productinfo(props) {
7089
7286
  langdetect: langdetect,
7090
7287
  lang: lang,
7091
7288
  srcfromprops: props.srcfromprops
7092
- }, _defineProperty__default["default"](_ref2, "returnpolicyobj", returnpolicyobj), _defineProperty__default["default"](_ref2, "productinfo_cssstyles", productinfo_cssstyles), _defineProperty__default["default"](_ref2, "addtocartfunc", addtocartfunc), _defineProperty__default["default"](_ref2, "selectproductoptionvalue", selectproductoptionvalue), _defineProperty__default["default"](_ref2, "clearchoosenvaluesbutkeepcurrentvalue", clearchoosenvaluesbutkeepcurrentvalue), _defineProperty__default["default"](_ref2, "productimagesarray", productimagesarray), _defineProperty__default["default"](_ref2, "fetchProductInfoQueryContext", fetchProductInfoQueryContext), _defineProperty__default["default"](_ref2, "sectionproperties", sectionproperties), _defineProperty__default["default"](_ref2, "addtocardpayloadobj", addtocardpayloadobj), _defineProperty__default["default"](_ref2, "ProductInfoObj", ProductInfoObj), _defineProperty__default["default"](_ref2, "currentshowingimageindex", currentshowingimageindex), _defineProperty__default["default"](_ref2, "setcurrentshowingimageindex", setcurrentshowingimageindex), _defineProperty__default["default"](_ref2, "setaddtocardpayloadobj", setaddtocardpayloadobj), _defineProperty__default["default"](_ref2, "routingcountext", routingcountext), _defineProperty__default["default"](_ref2, "AddtoCartMutationContext", AddtoCartMutationContext), _defineProperty__default["default"](_ref2, "authdetailsContext", authdetailsContext), _defineProperty__default["default"](_ref2, "addtofavoritescontext", addtofavoritescontext), _defineProperty__default["default"](_ref2, "StaticPagesLinksContext", StaticPagesLinksContext), _defineProperty__default["default"](_ref2, "variantindexcompleted", variantindexcompleted), _defineProperty__default["default"](_ref2, "GeneralAPIMutationContext", GeneralAPIMutationContext), _defineProperty__default["default"](_ref2, "NotificationManager", NotificationManager), _defineProperty__default["default"](_ref2, "getprice_discountpriceprops", getprice_discountpriceprops), _defineProperty__default["default"](_ref2, "quantityconditionfoundobjprops", quantityconditionfoundobj), _defineProperty__default["default"](_ref2, "relatedproducts", relatedproducts), _defineProperty__default["default"](_ref2, "getQuantityCondition", getQuantityCondition), _defineProperty__default["default"](_ref2, "StoreInfoprops", StoreInfo), _defineProperty__default["default"](_ref2, "templatepropcontext", templatepropcontext), _defineProperty__default["default"](_ref2, "ikimagecredcontext", ikimagecredcontext), _ref2)
7289
+ }, _defineProperty__default["default"](_ref3, "returnpolicyobj", returnpolicyobj), _defineProperty__default["default"](_ref3, "productinfo_cssstyles", productinfo_cssstyles), _defineProperty__default["default"](_ref3, "addtocartfunc", addtocartfunc), _defineProperty__default["default"](_ref3, "selectproductoptionvalue", selectproductoptionvalue), _defineProperty__default["default"](_ref3, "clearchoosenvaluesbutkeepcurrentvalue", clearchoosenvaluesbutkeepcurrentvalue), _defineProperty__default["default"](_ref3, "productimagesarray", productimagesarray), _defineProperty__default["default"](_ref3, "fetchProductInfoQueryContext", fetchProductInfoQueryContext), _defineProperty__default["default"](_ref3, "sectionproperties", sectionproperties), _defineProperty__default["default"](_ref3, "addtocardpayloadobj", addtocardpayloadobj), _defineProperty__default["default"](_ref3, "ProductInfoObj", ProductInfoObj), _defineProperty__default["default"](_ref3, "currentshowingimageindex", currentshowingimageindex), _defineProperty__default["default"](_ref3, "setcurrentshowingimageindex", setcurrentshowingimageindex), _defineProperty__default["default"](_ref3, "setaddtocardpayloadobj", setaddtocardpayloadobj), _defineProperty__default["default"](_ref3, "routingcountext", routingcountext), _defineProperty__default["default"](_ref3, "AddtoCartMutationContext", AddtoCartMutationContext), _defineProperty__default["default"](_ref3, "authdetailsContext", authdetailsContext), _defineProperty__default["default"](_ref3, "addtofavoritescontext", addtofavoritescontext), _defineProperty__default["default"](_ref3, "StaticPagesLinksContext", StaticPagesLinksContext), _defineProperty__default["default"](_ref3, "variantindexcompleted", variantindexcompleted), _defineProperty__default["default"](_ref3, "GeneralAPIMutationContext", GeneralAPIMutationContext), _defineProperty__default["default"](_ref3, "NotificationManager", NotificationManager), _defineProperty__default["default"](_ref3, "getprice_discountpriceprops", getprice_discountpriceprops), _defineProperty__default["default"](_ref3, "quantityconditionfoundobjprops", quantityconditionfoundobj), _defineProperty__default["default"](_ref3, "relatedproducts", relatedproducts), _defineProperty__default["default"](_ref3, "getQuantityCondition", getQuantityCondition), _defineProperty__default["default"](_ref3, "StoreInfoprops", StoreInfo), _defineProperty__default["default"](_ref3, "templatepropcontext", templatepropcontext), _defineProperty__default["default"](_ref3, "ikimagecredcontext", ikimagecredcontext), _ref3)
7093
7290
  }), props.srcfromprops != 'templatedraftrouter' && /*#__PURE__*/React__default["default"].createElement("div", {
7094
7291
  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 ',
7095
7292
  style: {
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: {
package/dist/index.umd.js CHANGED
@@ -2119,7 +2119,7 @@
2119
2119
  };
2120
2120
 
2121
2121
  var DescriptionContent = function DescriptionContent(props) {
2122
- var _fetchProductInfoQuer, _fetchProductInfoQuer2, _fetchProductInfoQuer3, _fetchProductInfoQuer4, _fetchProductInfoQuer5, _fetchProductInfoQuer6, _fetchProductInfoQuer7, _fetchProductInfoQuer8, _fetchProductInfoQuer9, _fetchProductInfoQuer10, _fetchProductInfoQuer11, _fetchProductInfoQuer12;
2122
+ var _fetchProductInfoQuer, _fetchProductInfoQuer2, _fetchProductInfoQuer3, _fetchProductInfoQuer4, _fetchProductInfoQuer5, _fetchProductInfoQuer6, _fetchProductInfoQuer7, _fetchProductInfoQuer8, _fetchProductInfoQuer9, _fetchProductInfoQuer10, _fetchProductInfoQuer11, _fetchProductInfoQuer12, _fetchProductInfoQuer13, _fetchProductInfoQuer14;
2123
2123
  var lang = props.actions.lang;
2124
2124
  var langdetect = props.actions.langdetect;
2125
2125
  var fetchProductInfoQueryContext = props.actions.fetchProductInfoQueryContext;
@@ -2130,7 +2130,7 @@
2130
2130
  setShowMore = _useState2[1];
2131
2131
  var ikimagecredcontext = props.actions.ikimagecredcontext;
2132
2132
  return /*#__PURE__*/React__default["default"].createElement("div", {
2133
- "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'
2133
+ "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'
2134
2134
  }, /*#__PURE__*/React__default["default"].createElement("div", {
2135
2135
  "class": "row m-0 w-100"
2136
2136
  }, sectionproperties.gallerystyle == 'Style 2' && props.srcfromprops != 'collap' && /*#__PURE__*/React__default["default"].createElement("div", {
@@ -2148,7 +2148,7 @@
2148
2148
  className: "row m-0 w-100 d-flex"
2149
2149
  }, /*#__PURE__*/React__default["default"].createElement("div", {
2150
2150
  "class": "col-lg-12 p-0 d-flex justify-content-start"
2151
- }, /*#__PURE__*/React__default["default"].createElement("p", {
2151
+ }, props.srcfromprops != 'Articles' && /*#__PURE__*/React__default["default"].createElement("p", {
2152
2152
  className: 'm-0 p-0 wordbreak',
2153
2153
  style: {
2154
2154
  textAlign: langdetect == 'en' ? 'left' : 'right',
@@ -2157,35 +2157,52 @@
2157
2157
  dangerouslySetInnerHTML: {
2158
2158
  __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)
2159
2159
  }
2160
- })), /*#__PURE__*/React__default["default"].createElement("div", {
2160
+ }), props.srcfromprops == 'Articles' && /*#__PURE__*/React__default["default"].createElement("p", {
2161
+ className: 'm-0 p-0 wordbreak',
2162
+ style: {
2163
+ textAlign: langdetect == 'en' ? 'left' : 'right',
2164
+ color: '#000000'
2165
+ },
2166
+ dangerouslySetInnerHTML: {
2167
+ __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
2168
+ }
2169
+ })), props.srcfromprops != 'Articles' && /*#__PURE__*/React__default["default"].createElement("div", {
2161
2170
  "class": "col-lg-12 allcentered"
2162
- }, (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__default["default"].createElement("p", {
2171
+ }, (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__default["default"].createElement("p", {
2163
2172
  "class": "m-0 p-0 cursor-pointer text-grey font-weight-600",
2164
2173
  onClick: function onClick() {
2165
2174
  return setShowMore(!showMore);
2166
2175
  }
2167
- }, 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__default["default"].createElement("div", {
2176
+ }, 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__default["default"].createElement("div", {
2168
2177
  className: "col-lg-12 p-0 mb-4 d-flex justify-content-center"
2169
2178
  }, /*#__PURE__*/React__default["default"].createElement("div", {
2170
2179
  className: "row m-0 w-100 d-flex"
2171
2180
  }, /*#__PURE__*/React__default["default"].createElement("div", {
2172
2181
  "class": "col-lg-12 p-0 d-flex justify-content-start flex-column"
2173
- }, /*#__PURE__*/React__default["default"].createElement("p", {
2182
+ }, props.srcfromprops != 'Articles' && /*#__PURE__*/React__default["default"].createElement("p", {
2174
2183
  className: 'text-black m-0 p-0 wordbreak',
2175
2184
  style: {
2176
2185
  textAlign: langdetect == 'en' ? 'left' : 'right'
2177
2186
  },
2178
2187
  dangerouslySetInnerHTML: {
2179
- __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)
2188
+ __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)
2180
2189
  }
2181
- })), /*#__PURE__*/React__default["default"].createElement("div", {
2190
+ }), props.srcfromprops == 'Articles' && /*#__PURE__*/React__default["default"].createElement("p", {
2191
+ className: 'text-black m-0 p-0 wordbreak',
2192
+ style: {
2193
+ textAlign: langdetect == 'en' ? 'left' : 'right'
2194
+ },
2195
+ dangerouslySetInnerHTML: {
2196
+ __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
2197
+ }
2198
+ })), props.srcfromprops != 'Articles' && /*#__PURE__*/React__default["default"].createElement("div", {
2182
2199
  "class": "col-lg-12 allcentered"
2183
- }, (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__default["default"].createElement("p", {
2200
+ }, (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__default["default"].createElement("p", {
2184
2201
  "class": "m-0 p-0 cursor-pointer text-grey font-weight-600 text-right",
2185
2202
  onClick: function onClick() {
2186
2203
  return setShowMore(!showMore);
2187
2204
  }
2188
- }, 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__default["default"].createElement("div", {
2205
+ }, 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__default["default"].createElement("div", {
2189
2206
  "class": "col-lg-12 p-0"
2190
2207
  }, /*#__PURE__*/React__default["default"].createElement("div", {
2191
2208
  "class": "row m-0 w-100 allcentered pl-md-3 pr-md-3",
@@ -2193,7 +2210,7 @@
2193
2210
  paddingLeft: sectionproperties.galleryPaddingHorizontal + 'px',
2194
2211
  paddingRight: sectionproperties.galleryPaddingHorizontal + 'px'
2195
2212
  }
2196
- }, 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) {
2213
+ }, 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) {
2197
2214
  if (index <= 6) {
2198
2215
  return /*#__PURE__*/React__default["default"].createElement("div", {
2199
2216
  "class": ' col-md-4 col-sm-12 mb-3 col-lg-' + sectionproperties.galleryNoOfCols,
@@ -4967,6 +4984,177 @@
4967
4984
  }, StoreInfoprops()))));
4968
4985
  };
4969
4986
 
4987
+ var Article_itemtype = function Article_itemtype(props) {
4988
+ var _fetchProductInfoQuer, _fetchProductInfoQuer2, _fetchProductInfoQuer3, _fetchProductInfoQuer4, _fetchProductInfoQuer5, _fetchProductInfoQuer6;
4989
+ props.actions.lang;
4990
+ var langdetect = props.actions.langdetect;
4991
+ var srcfromprops = props.actions.srcfromprops;
4992
+ props.actions.returnpolicyobj;
4993
+ var productinfo_cssstyles = props.actions.productinfo_cssstyles;
4994
+ props.actions.addtocartfunc;
4995
+ props.actions.selectproductoptionvalue;
4996
+ props.actions.clearchoosenvaluesbutkeepcurrentvalue;
4997
+ props.actions.productimagesarray;
4998
+ var fetchProductInfoQueryContext = props.actions.fetchProductInfoQueryContext;
4999
+ var sectionproperties = props.actions.sectionproperties;
5000
+ props.actions.addtocardpayloadobj;
5001
+ props.actions.setaddtocardpayloadobj;
5002
+ var routingcountext = props.actions.routingcountext;
5003
+ props.actions.AddtoCartMutationContext;
5004
+ var authdetailsContext = props.actions.authdetailsContext;
5005
+ props.actions.variantsku;
5006
+ props.actions.addtofavoritescontext;
5007
+ props.actions.variantindexcompleted;
5008
+ props.actions.ProductInfoObj;
5009
+ props.actions.NotificationManager;
5010
+ var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
5011
+ props.actions.getprice_discountpriceprops;
5012
+ var ikimagecredcontext = props.actions.ikimagecredcontext;
5013
+ var currentshowingimageindex_pro = props.actions.currentshowingimageindex;
5014
+ props.actions.StoreInfoprops;
5015
+ var _useState = React.useState(currentshowingimageindex_pro),
5016
+ _useState2 = _slicedToArray__default["default"](_useState, 2);
5017
+ _useState2[0];
5018
+ _useState2[1];
5019
+ // const DescriptionContent = props.actions.DescriptionContent;
5020
+ var _useState3 = React.useState(''),
5021
+ _useState4 = _slicedToArray__default["default"](_useState3, 2);
5022
+ _useState4[0];
5023
+ var setshareUrl = _useState4[1];
5024
+ var _useState5 = React.useState(''),
5025
+ _useState6 = _slicedToArray__default["default"](_useState5, 2);
5026
+ _useState6[0];
5027
+ var settitle = _useState6[1];
5028
+ var _useState7 = React.useState(fetchProductInfoQueryContext.data.data.productinfo),
5029
+ _useState8 = _slicedToArray__default["default"](_useState7, 2);
5030
+ _useState8[0];
5031
+ var setitem = _useState8[1];
5032
+ React.useEffect(function () {
5033
+ var itemobj = fetchProductInfoQueryContext.data.data.productinfo;
5034
+ if (stringIsEnglish(fetchProductInfoQueryContext.data.data.productinfo.name_en)) {
5035
+ itemobj.titlelang = 'en';
5036
+ } else {
5037
+ itemobj.titlelang = 'ar';
5038
+ }
5039
+ if (stringIsEnglish(fetchProductInfoQueryContext.data.data.productinfo.description_en)) {
5040
+ itemobj.decriptionlang = 'en';
5041
+ } else {
5042
+ itemobj.decriptionlang = 'ar';
5043
+ }
5044
+ setitem(itemobj);
5045
+ settitle(fetchProductInfoQueryContext.data.data.productinfo.name_en);
5046
+ setshareUrl('https://' + authdetailsContext.instinfo.instcred.instexternaldomain + '/productinform/' + fetchProductInfoQueryContext.data.data.productinfo.productid);
5047
+ }, [props.itemprops]);
5048
+ function stringIsEnglish(str) {
5049
+ var titlelang = 'English';
5050
+ var arabic = /[\u0600-\u06FF]/;
5051
+ if (!arabic.test(str)) {
5052
+ titlelang = true;
5053
+ } else {
5054
+ titlelang = false;
5055
+ }
5056
+ return titlelang;
5057
+ }
5058
+ return /*#__PURE__*/React__default["default"].createElement("div", {
5059
+ 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 ',
5060
+ style: {
5061
+ paddingLeft: srcfromprops == 'Productinfomodel' ? langdetect == 'en' ? sectionproperties.card_marginLeft + 'px' : sectionproperties.card_marginRight + 'px' : 0,
5062
+ paddingRight: srcfromprops == 'Productinfomodel' ? langdetect == 'en' ? sectionproperties.card_marginRight + 'px' : sectionproperties.card_marginLeft + 'px' : 0
5063
+ }
5064
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
5065
+ "class": ' col-lg-12 p-0 '
5066
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
5067
+ "class": "".concat(productinfo_cssstyles.cardcontainer) + ' row ml-0 mr-0 w-100 pl-md-3 pr-md-3 px-1025-1 ',
5068
+ style: {
5069
+ minHeight: sectionproperties.height + 'vh'
5070
+ // paddingLeft: srcfromprops == 'templatedraftrouter' ? 0 : langdetect == 'en' ? sectionproperties.card_marginLeft + 'px' : sectionproperties.card_marginRight + 'px',
5071
+ // paddingRight: srcfromprops == 'templatedraftrouter' ? 0 : langdetect == 'en' ? sectionproperties.card_marginRight + 'px' : sectionproperties.card_marginLeft + 'px',
5072
+ }
5073
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
5074
+ "class": "w-100 scrollhorizontalwithscrollbar "
5075
+ }, (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) {
5076
+ return /*#__PURE__*/React__default["default"].createElement("div", {
5077
+ "class": ' scrollhorizontalcard mx-2 ',
5078
+ style: {
5079
+ height: sectionproperties.image_height + 'px',
5080
+ width: sectionproperties.image_width + 'px'
5081
+ }
5082
+ }, /*#__PURE__*/React__default["default"].createElement(Imagekitimagecomp, {
5083
+ urlEndpoint: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint,
5084
+ publicKey: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimagepublickey,
5085
+ path: '/tr:w-' + sectionproperties.imagetr_w + ',h-' + sectionproperties.imagetr_h + '/' + item.path,
5086
+ style: {
5087
+ width: '100%',
5088
+ height: '100%',
5089
+ objectFit: 'contain'
5090
+ },
5091
+ loading: "lazy"
5092
+ }));
5093
+ }))), /*#__PURE__*/React__default["default"].createElement("div", {
5094
+ "class": "col-lg-12 p-0"
5095
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
5096
+ "class": "row mx-0 w-100",
5097
+ style: {
5098
+ marginTop: '3rem'
5099
+ }
5100
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
5101
+ className: 'col-lg-12 px-3 px-md-2'
5102
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
5103
+ className: 'row m-0 w-100'
5104
+ }, sectionproperties.showmeasurementunit == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
5105
+ className: 'col-lg-12 p-0 mb-1 d-flex justify-content-start align-items-center mb-1 mt-3'
5106
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
5107
+ className: ' m-0 p-0 wordbreak d-flex justify-content-start ',
5108
+ style: {
5109
+ textAlign: langdetect == 'en' ? 'left' : 'right',
5110
+ fontWeight: 400,
5111
+ color: sectionproperties.measurementunitcolor,
5112
+ fontSize: sectionproperties.measurementunitcolor + 'px'
5113
+ }
5114
+ }, fetchProductInfoQueryContext.data.data.productinfo.measurmentunit)), /*#__PURE__*/React__default["default"].createElement("div", {
5115
+ className: 'col-lg-12 p-0 mb-1 d-flex justify-content-start align-items-center'
5116
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
5117
+ 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 ',
5118
+ onClick: function onClick() {
5119
+ if (props.srcfromprops != 'templatedraftrouter') {
5120
+ routingcountext(StaticPagesLinksContext.productinfo, true, fetchProductInfoQueryContext.data.data.productinfo.productid);
5121
+ }
5122
+ },
5123
+ style: {
5124
+ textAlign: langdetect == 'en' ? 'left' : 'right'
5125
+ }
5126
+ }, 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__default["default"].createElement("div", {
5127
+ "class": "col-lg-12 p-0"
5128
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
5129
+ "class": "col-lg-12 p-0 d-flex justify-content-start"
5130
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
5131
+ className: 'text-black m-0 p-0 wordbreak',
5132
+ style: {
5133
+ textAlign: langdetect == 'en' ? 'left' : 'right'
5134
+ },
5135
+ dangerouslySetInnerHTML: {
5136
+ __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
5137
+ }
5138
+ }))), 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__default["default"].createElement("div", {
5139
+ "class": "col-lg-12 p-0"
5140
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
5141
+ "class": "col-lg-12 p-0 d-flex justify-content-start"
5142
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
5143
+ className: 'text-black m-0 p-0 wordbreak',
5144
+ style: {
5145
+ textAlign: langdetect == 'en' ? 'left' : 'right'
5146
+ },
5147
+ dangerouslySetInnerHTML: {
5148
+ __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
5149
+ }
5150
+ }))), /*#__PURE__*/React__default["default"].createElement("div", {
5151
+ "class": "col-lg-12 p-0"
5152
+ }, /*#__PURE__*/React__default["default"].createElement(DescriptionContent, {
5153
+ actions: props.actions,
5154
+ srcfromprops: 'Articles'
5155
+ })))))))));
5156
+ };
5157
+
4970
5158
  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; }
4971
5159
  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__default["default"](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; }
4972
5160
  var AddReview = function AddReview(props) {
@@ -5479,7 +5667,7 @@
5479
5667
  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; }
5480
5668
  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__default["default"](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; }
5481
5669
  var Productinfo = function Productinfo(props) {
5482
- var _css, _ref, _ref2, _fetchProductInfoQuer35, _fetchProductInfoQuer36, _returnpolicyobj, _returnpolicyobj2, _returnpolicyobj3, _returnpolicyobj4, _fetchProductInfoQuer37, _fetchProductInfoQuer38, _returnpolicyobj5, _returnpolicyobj6, _returnpolicyobj7, _returnpolicyobj8, _fetchProductInfoQuer39, _fetchProductInfoQuer40, _returnpolicyobj9, _returnpolicyobj10, _returnpolicyobj11, _returnpolicyobj12;
5670
+ var _css, _ref, _ref2, _ref3, _fetchProductInfoQuer35, _fetchProductInfoQuer36, _returnpolicyobj, _returnpolicyobj2, _returnpolicyobj3, _returnpolicyobj4, _fetchProductInfoQuer37, _fetchProductInfoQuer38, _returnpolicyobj5, _returnpolicyobj6, _returnpolicyobj7, _returnpolicyobj8, _fetchProductInfoQuer39, _fetchProductInfoQuer40, _returnpolicyobj9, _returnpolicyobj10, _returnpolicyobj11, _returnpolicyobj12;
5483
5671
  var _useState = React.useState({}),
5484
5672
  _useState2 = _slicedToArray__default["default"](_useState, 2),
5485
5673
  ProductInfoObj = _useState2[0],
@@ -6895,7 +7083,7 @@
6895
7083
  paddingLeft: props.srcfromprops == 'Productinfomodel' ? langdetect == 'en' ? sectionproperties.card_marginLeft + 'px' : sectionproperties.card_marginRight + 'px' : 0,
6896
7084
  paddingRight: props.srcfromprops == 'Productinfomodel' ? langdetect == 'en' ? sectionproperties.card_marginRight + 'px' : sectionproperties.card_marginLeft + 'px' : 0
6897
7085
  }
6898
- }, fetchProductInfoQueryContext.data.data.productinfo.item_type != 'service' && /*#__PURE__*/React__default["default"].createElement(Product_itemtype, {
7086
+ }, fetchProductInfoQueryContext.data.data.productinfo.item_type == 'product' && /*#__PURE__*/React__default["default"].createElement(Product_itemtype, {
6899
7087
  actions: (_ref = {
6900
7088
  setisoutofstock: setisoutofstock,
6901
7089
  isoutofstock: isoutofstock,
@@ -6904,8 +7092,17 @@
6904
7092
  lang: lang,
6905
7093
  srcfromprops: props.srcfromprops
6906
7094
  }, _defineProperty__default["default"](_ref, "returnpolicyobj", returnpolicyobj), _defineProperty__default["default"](_ref, "productinfo_cssstyles", productinfo_cssstyles), _defineProperty__default["default"](_ref, "addtocartfunc", addtocartfunc), _defineProperty__default["default"](_ref, "selectproductoptionvalue", selectproductoptionvalue), _defineProperty__default["default"](_ref, "clearchoosenvaluesbutkeepcurrentvalue", clearchoosenvaluesbutkeepcurrentvalue), _defineProperty__default["default"](_ref, "productimagesarray", productimagesarray), _defineProperty__default["default"](_ref, "fetchProductInfoQueryContext", fetchProductInfoQueryContext), _defineProperty__default["default"](_ref, "ProductInfoObj", ProductInfoObj), _defineProperty__default["default"](_ref, "sectionproperties", sectionproperties), _defineProperty__default["default"](_ref, "addtocardpayloadobj", addtocardpayloadobj), _defineProperty__default["default"](_ref, "setaddtocardpayloadobj", setaddtocardpayloadobj), _defineProperty__default["default"](_ref, "routingcountext", routingcountext), _defineProperty__default["default"](_ref, "AddtoCartMutationContext", AddtoCartMutationContext), _defineProperty__default["default"](_ref, "authdetailsContext", authdetailsContext), _defineProperty__default["default"](_ref, "addtofavoritescontext", addtofavoritescontext), _defineProperty__default["default"](_ref, "variantindexcompleted", variantindexcompleted), _defineProperty__default["default"](_ref, "StaticPagesLinksContext", StaticPagesLinksContext), _defineProperty__default["default"](_ref, "NotificationManager", NotificationManager), _defineProperty__default["default"](_ref, "GeneralAPIMutationContext", GeneralAPIMutationContext), _defineProperty__default["default"](_ref, "quantityconditionfoundobjprops", quantityconditionfoundobj), _defineProperty__default["default"](_ref, "relatedproducts", relatedproducts), _defineProperty__default["default"](_ref, "getprice_discountpriceprops", getprice_discountpriceprops), _defineProperty__default["default"](_ref, "StoreInfoprops", StoreInfo), _defineProperty__default["default"](_ref, "currentshowingimageindex", currentshowingimageindex), _defineProperty__default["default"](_ref, "setcurrentshowingimageindex", setcurrentshowingimageindex), _defineProperty__default["default"](_ref, "templatepropcontext", templatepropcontext), _defineProperty__default["default"](_ref, "ikimagecredcontext", ikimagecredcontext), _defineProperty__default["default"](_ref, "variantindex", variantindex), _defineProperty__default["default"](_ref, "setvariantindex", setvariantindex), _defineProperty__default["default"](_ref, "variantsku", variantsku), _defineProperty__default["default"](_ref, "variantvalueidentifier", variantvalueidentifier), _ref)
6907
- }), fetchProductInfoQueryContext.data.data.productinfo.item_type == 'service' && /*#__PURE__*/React__default["default"].createElement(Service_itemtype, {
7095
+ }), fetchProductInfoQueryContext.data.data.productinfo.item_type == 'Article' && /*#__PURE__*/React__default["default"].createElement(Article_itemtype, {
6908
7096
  actions: (_ref2 = {
7097
+ setisoutofstock: setisoutofstock,
7098
+ isoutofstock: isoutofstock,
7099
+ returnpolicyobj: returnpolicyobj,
7100
+ langdetect: langdetect,
7101
+ lang: lang,
7102
+ srcfromprops: props.srcfromprops
7103
+ }, _defineProperty__default["default"](_ref2, "returnpolicyobj", returnpolicyobj), _defineProperty__default["default"](_ref2, "productinfo_cssstyles", productinfo_cssstyles), _defineProperty__default["default"](_ref2, "addtocartfunc", addtocartfunc), _defineProperty__default["default"](_ref2, "selectproductoptionvalue", selectproductoptionvalue), _defineProperty__default["default"](_ref2, "clearchoosenvaluesbutkeepcurrentvalue", clearchoosenvaluesbutkeepcurrentvalue), _defineProperty__default["default"](_ref2, "productimagesarray", productimagesarray), _defineProperty__default["default"](_ref2, "fetchProductInfoQueryContext", fetchProductInfoQueryContext), _defineProperty__default["default"](_ref2, "ProductInfoObj", ProductInfoObj), _defineProperty__default["default"](_ref2, "sectionproperties", sectionproperties), _defineProperty__default["default"](_ref2, "addtocardpayloadobj", addtocardpayloadobj), _defineProperty__default["default"](_ref2, "setaddtocardpayloadobj", setaddtocardpayloadobj), _defineProperty__default["default"](_ref2, "routingcountext", routingcountext), _defineProperty__default["default"](_ref2, "AddtoCartMutationContext", AddtoCartMutationContext), _defineProperty__default["default"](_ref2, "authdetailsContext", authdetailsContext), _defineProperty__default["default"](_ref2, "addtofavoritescontext", addtofavoritescontext), _defineProperty__default["default"](_ref2, "variantindexcompleted", variantindexcompleted), _defineProperty__default["default"](_ref2, "StaticPagesLinksContext", StaticPagesLinksContext), _defineProperty__default["default"](_ref2, "NotificationManager", NotificationManager), _defineProperty__default["default"](_ref2, "GeneralAPIMutationContext", GeneralAPIMutationContext), _defineProperty__default["default"](_ref2, "quantityconditionfoundobjprops", quantityconditionfoundobj), _defineProperty__default["default"](_ref2, "relatedproducts", relatedproducts), _defineProperty__default["default"](_ref2, "getprice_discountpriceprops", getprice_discountpriceprops), _defineProperty__default["default"](_ref2, "StoreInfoprops", StoreInfo), _defineProperty__default["default"](_ref2, "currentshowingimageindex", currentshowingimageindex), _defineProperty__default["default"](_ref2, "setcurrentshowingimageindex", setcurrentshowingimageindex), _defineProperty__default["default"](_ref2, "templatepropcontext", templatepropcontext), _defineProperty__default["default"](_ref2, "ikimagecredcontext", ikimagecredcontext), _defineProperty__default["default"](_ref2, "variantindex", variantindex), _defineProperty__default["default"](_ref2, "setvariantindex", setvariantindex), _defineProperty__default["default"](_ref2, "variantsku", variantsku), _defineProperty__default["default"](_ref2, "variantvalueidentifier", variantvalueidentifier), _ref2)
7104
+ }), fetchProductInfoQueryContext.data.data.productinfo.item_type == 'service' && /*#__PURE__*/React__default["default"].createElement(Service_itemtype, {
7105
+ actions: (_ref3 = {
6909
7106
  variantsku: variantsku,
6910
7107
  setisoutofstock: setisoutofstock,
6911
7108
  isoutofstock: isoutofstock,
@@ -6913,7 +7110,7 @@
6913
7110
  langdetect: langdetect,
6914
7111
  lang: lang,
6915
7112
  srcfromprops: props.srcfromprops
6916
- }, _defineProperty__default["default"](_ref2, "returnpolicyobj", returnpolicyobj), _defineProperty__default["default"](_ref2, "productinfo_cssstyles", productinfo_cssstyles), _defineProperty__default["default"](_ref2, "addtocartfunc", addtocartfunc), _defineProperty__default["default"](_ref2, "selectproductoptionvalue", selectproductoptionvalue), _defineProperty__default["default"](_ref2, "clearchoosenvaluesbutkeepcurrentvalue", clearchoosenvaluesbutkeepcurrentvalue), _defineProperty__default["default"](_ref2, "productimagesarray", productimagesarray), _defineProperty__default["default"](_ref2, "fetchProductInfoQueryContext", fetchProductInfoQueryContext), _defineProperty__default["default"](_ref2, "sectionproperties", sectionproperties), _defineProperty__default["default"](_ref2, "addtocardpayloadobj", addtocardpayloadobj), _defineProperty__default["default"](_ref2, "ProductInfoObj", ProductInfoObj), _defineProperty__default["default"](_ref2, "currentshowingimageindex", currentshowingimageindex), _defineProperty__default["default"](_ref2, "setcurrentshowingimageindex", setcurrentshowingimageindex), _defineProperty__default["default"](_ref2, "setaddtocardpayloadobj", setaddtocardpayloadobj), _defineProperty__default["default"](_ref2, "routingcountext", routingcountext), _defineProperty__default["default"](_ref2, "AddtoCartMutationContext", AddtoCartMutationContext), _defineProperty__default["default"](_ref2, "authdetailsContext", authdetailsContext), _defineProperty__default["default"](_ref2, "addtofavoritescontext", addtofavoritescontext), _defineProperty__default["default"](_ref2, "StaticPagesLinksContext", StaticPagesLinksContext), _defineProperty__default["default"](_ref2, "variantindexcompleted", variantindexcompleted), _defineProperty__default["default"](_ref2, "GeneralAPIMutationContext", GeneralAPIMutationContext), _defineProperty__default["default"](_ref2, "NotificationManager", NotificationManager), _defineProperty__default["default"](_ref2, "getprice_discountpriceprops", getprice_discountpriceprops), _defineProperty__default["default"](_ref2, "quantityconditionfoundobjprops", quantityconditionfoundobj), _defineProperty__default["default"](_ref2, "relatedproducts", relatedproducts), _defineProperty__default["default"](_ref2, "getQuantityCondition", getQuantityCondition), _defineProperty__default["default"](_ref2, "StoreInfoprops", StoreInfo), _defineProperty__default["default"](_ref2, "templatepropcontext", templatepropcontext), _defineProperty__default["default"](_ref2, "ikimagecredcontext", ikimagecredcontext), _ref2)
7113
+ }, _defineProperty__default["default"](_ref3, "returnpolicyobj", returnpolicyobj), _defineProperty__default["default"](_ref3, "productinfo_cssstyles", productinfo_cssstyles), _defineProperty__default["default"](_ref3, "addtocartfunc", addtocartfunc), _defineProperty__default["default"](_ref3, "selectproductoptionvalue", selectproductoptionvalue), _defineProperty__default["default"](_ref3, "clearchoosenvaluesbutkeepcurrentvalue", clearchoosenvaluesbutkeepcurrentvalue), _defineProperty__default["default"](_ref3, "productimagesarray", productimagesarray), _defineProperty__default["default"](_ref3, "fetchProductInfoQueryContext", fetchProductInfoQueryContext), _defineProperty__default["default"](_ref3, "sectionproperties", sectionproperties), _defineProperty__default["default"](_ref3, "addtocardpayloadobj", addtocardpayloadobj), _defineProperty__default["default"](_ref3, "ProductInfoObj", ProductInfoObj), _defineProperty__default["default"](_ref3, "currentshowingimageindex", currentshowingimageindex), _defineProperty__default["default"](_ref3, "setcurrentshowingimageindex", setcurrentshowingimageindex), _defineProperty__default["default"](_ref3, "setaddtocardpayloadobj", setaddtocardpayloadobj), _defineProperty__default["default"](_ref3, "routingcountext", routingcountext), _defineProperty__default["default"](_ref3, "AddtoCartMutationContext", AddtoCartMutationContext), _defineProperty__default["default"](_ref3, "authdetailsContext", authdetailsContext), _defineProperty__default["default"](_ref3, "addtofavoritescontext", addtofavoritescontext), _defineProperty__default["default"](_ref3, "StaticPagesLinksContext", StaticPagesLinksContext), _defineProperty__default["default"](_ref3, "variantindexcompleted", variantindexcompleted), _defineProperty__default["default"](_ref3, "GeneralAPIMutationContext", GeneralAPIMutationContext), _defineProperty__default["default"](_ref3, "NotificationManager", NotificationManager), _defineProperty__default["default"](_ref3, "getprice_discountpriceprops", getprice_discountpriceprops), _defineProperty__default["default"](_ref3, "quantityconditionfoundobjprops", quantityconditionfoundobj), _defineProperty__default["default"](_ref3, "relatedproducts", relatedproducts), _defineProperty__default["default"](_ref3, "getQuantityCondition", getQuantityCondition), _defineProperty__default["default"](_ref3, "StoreInfoprops", StoreInfo), _defineProperty__default["default"](_ref3, "templatepropcontext", templatepropcontext), _defineProperty__default["default"](_ref3, "ikimagecredcontext", ikimagecredcontext), _ref3)
6917
7114
  }), props.srcfromprops != 'templatedraftrouter' && /*#__PURE__*/React__default["default"].createElement("div", {
6918
7115
  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 ',
6919
7116
  style: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tabexseriescomponents",
3
- "version": "0.0.573",
3
+ "version": "0.0.574",
4
4
  "description": "your description",
5
5
  "main": "dist/index.cjs.js",
6
6
  "scripts": {