tabexseriescomponents 0.2.1317 → 0.2.1319
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 +150 -12
- package/dist/index.esm.js +150 -12
- package/dist/index.umd.js +150 -12
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -4057,7 +4057,7 @@ borderRadius:sectionproperties.showthumbnail=='Hide'?sectionproperties.imagebord
|
|
|
4057
4057
|
// : 'col-xl-6 col-lg-8 col-md-12 col-sm-12 pl-0 pr-4 p-md-0'
|
|
4058
4058
|
// : 'col-xl-12 col-lg-12 col-md-12 col-sm-12 px-3 px-md-2'
|
|
4059
4059
|
// }
|
|
4060
|
-
},/*#__PURE__*/React__default["default"].createElement("div",{className:sectionproperties.evencols=='Yes'?'row m-0 w-100':'row m-0 w-100'},sectionproperties.showmeasurementunit=='Show'&§ionproperties.measurementunitposition=='Above Name'&&MeasurementUnitSection(),sectionproperties.quantityshow=='Show'&&/*#__PURE__*/React__default["default"].createElement("div",{"class":"col-lg-12 p-0 text-start"},/*#__PURE__*/React__default["default"].createElement("p",{"class":"m-0 p-0",style:{fontSize:sectionproperties.quantityfontsize,color:sectionproperties.quantitycolor,fontWeight:sectionproperties.quantityfontweight}},langdetect=='en'?sectionproperties.qtytextinen:sectionproperties.qtytextinar,":",' ',fetchProductInfoQueryContext.data.data.productinfo.currentquantity)),/*#__PURE__*/React__default["default"].createElement("div",{className:(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer37=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer37===void 0||(_fetchProductInfoQuer37=_fetchProductInfoQuer37.data)===null||_fetchProductInfoQuer37===void 0||(_fetchProductInfoQuer37=_fetchProductInfoQuer37.productinfo)===null||_fetchProductInfoQuer37===void 0?void 0:_fetchProductInfoQuer37.productcanrate)==1?'col-lg-8 col-md-8 col-sm-8 p-0 mb-1 d-flex align-items-center':sectionproperties.btnposition=='Top'?'col-lg-8 col-md-8 col-sm-8 p-0 mb-1 d-flex align-items-center':sectionproperties.availabilitybtnposition=='Top'&§ionproperties.show_availability=='Show'?'col-lg-8 col-md-8 col-sm-8 p-0 mb-1 d-flex align-items-center':'col-lg-12 p-0 mb-1 d-flex align-items-center',style:{justifyContent:sectionproperties.productnamecentered=='Centered'?'center':'start'}},ProductNameSection()),(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer38=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer38===void 0||(_fetchProductInfoQuer38=_fetchProductInfoQuer38.data)===null||_fetchProductInfoQuer38===void 0||(_fetchProductInfoQuer38=_fetchProductInfoQuer38.productinfo)===null||_fetchProductInfoQuer38===void 0?void 0:_fetchProductInfoQuer38.productcanrate)==1&§ionproperties.showrating=='Show'&&/*#__PURE__*/React__default["default"].createElement("div",{className:"col-lg-4 col-md-4 col-sm-4 p-0 mb-1 d-flex justify-content-end align-items-center"},/*#__PURE__*/React__default["default"].createElement(ReactStars__default["default"],{count:5,value:fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer39=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer39===void 0||(_fetchProductInfoQuer39=_fetchProductInfoQuer39.data)===null||_fetchProductInfoQuer39===void 0||(_fetchProductInfoQuer39=_fetchProductInfoQuer39.productinfo)===null||_fetchProductInfoQuer39===void 0?void 0:_fetchProductInfoQuer39.productoverallrate,edit:false,size:18,emptyIcon:/*#__PURE__*/React__default["default"].createElement("i",{className:"far fa-star",style:{color:'#FAB400'}}),halfIcon:/*#__PURE__*/React__default["default"].createElement("i",{className:"fa fa-star-half-alt style={{ color: '#FAB400' }}"}),filledIcon:/*#__PURE__*/React__default["default"].createElement("i",{className:"fa fa-star",style:{color:'#FAB400'}}),activeColor:"#ffd700"})),/*#__PURE__*/React__default["default"].createElement("div",{className:"col-lg-4 col-md-4 col-sm-4 p-0 mb-1 d-flex justify-content-end align-items-center"},sectionproperties.availabilitybtnposition=='Top'&§ionproperties.show_availability=='Show'&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer40=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer40===void 0||(_fetchProductInfoQuer40=_fetchProductInfoQuer40.data)===null||_fetchProductInfoQuer40===void 0||(_fetchProductInfoQuer40=_fetchProductInfoQuer40.productinfo)===null||_fetchProductInfoQuer40===void 0?void 0:_fetchProductInfoQuer40.isproducttobesold)==1&&/*#__PURE__*/React__default["default"].createElement("div",{style:{width:sectionproperties.availability_width+'px',height:sectionproperties.availability_height+'px',background:fetchProductInfoQueryContext.data.data.productinfo.quantavailtype=='nolimit'?sectionproperties.availability_availablebgcolor:sectionproperties.availability_limitedbgcolor,borderRadius:sectionproperties.availability_borderrradius+'px',border:fetchProductInfoQueryContext.data.data.productinfo.quantavailtype=='nolimit'?sectionproperties.availability_borderwidtth+'px solid '+sectionproperties.availability_availabletextcolor:sectionproperties.availability_borderwidtth+'px solid '+sectionproperties.availability_limitedtextcolor,justifyContent:sectionproperties.availabilitytextalignment=='Centered'?'center':'start'},className:"d-flex align-items-center pl-3 pr-3 mx-2"},/*#__PURE__*/React__default["default"].createElement("p",{className:"m-0 p-0 font-weight-500 wordbreak",style:{color:fetchProductInfoQueryContext.data.data.productinfo.quantavailtype=='nolimit'?sectionproperties.availability_availabletextcolor:sectionproperties.availability_limitedtextcolor,fontSize:sectionproperties.availability_fontsize+'px',textAlign:sectionproperties.availabilitytextalignment=='Centered'?'center':langdetect=='en'?'left':'right'}},/*#__PURE__*/React__default["default"].createElement("span",{className:"ml-1 mr-1"},fetchProductInfoQueryContext.data.data.productinfo.quantavailtype=='nolimit'?lang.available:lang.limitedquantity))),sectionproperties.btnposition=='Top'&§ionproperties.favBtnShow=='Show'&&/*#__PURE__*/React__default["default"].createElement("div",{className:productinfo_cssstyles.wishlist_btn+' d-flex justify-content-center align-items-center mb-sm-2 ',onClick:function onClick(){addtofavoritescontext(fetchProductInfoQueryContext.data.data.productinfo.productid);setIsFavorite(!IsFavorite);},style:{background:fetchProductInfoQueryContext.data.data.productinfo.IsFavExists==true?sectionproperties.activebgcolor:''}},/*#__PURE__*/React__default["default"].createElement("i",{className:"h-100 d-flex align-items-center justify-content-center"},IsFavorite&&/*#__PURE__*/React__default["default"].createElement("i",{className:"h-100 d-flex align-items-center justify-content-center"},sectionproperties.faviconshape=='Star Shape'&&/*#__PURE__*/React__default["default"].createElement(AiFillStar$1.AiFillStar,{size:sectionproperties.favBtnIconfontsize,style:{color:sectionproperties.activefaviconcolor}}),sectionproperties.faviconshape=='Heart Shape'&&/*#__PURE__*/React__default["default"].createElement(FaHeart$1.FaHeart,{size:sectionproperties.favBtnIconfontsize,style:{color:sectionproperties.activefaviconcolor}})),!IsFavorite&&/*#__PURE__*/React__default["default"].createElement("i",{className:"h-100 d-flex align-items-center justify-content-center"},sectionproperties.faviconshape=='Star Shape'&&/*#__PURE__*/React__default["default"].createElement(AiOutlineStar.AiOutlineStar,{size:sectionproperties.favBtnIconfontsize}),sectionproperties.faviconshape=='Heart Shape'&&/*#__PURE__*/React__default["default"].createElement(FaRegHeart.FaRegHeart,{size:sectionproperties.favBtnIconfontsize}))))),sectionproperties.showSKU=='Show'&§ionproperties.skuposition=='Top'&&/*#__PURE__*/React__default["default"].createElement("div",{"class":'col-lg-12 p-0 my-3 d-flex justify-content-start'},ProductsSKUContainer()),sectionproperties.defaultpricingposition=='Under Name'&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer41=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer41===void 0||(_fetchProductInfoQuer41=_fetchProductInfoQuer41.data)===null||_fetchProductInfoQuer41===void 0||(_fetchProductInfoQuer41=_fetchProductInfoQuer41.productinfo)===null||_fetchProductInfoQuer41===void 0?void 0:_fetchProductInfoQuer41.isproducttobesold)==1&&/*#__PURE__*/React__default["default"].createElement(ProductHeaderPricing,{actions:props.actions}),sectionproperties.showfeatures=='Show'&§ionproperties.featuresposition=='Under Name'&§ionproperties.featurestyle!='Table'&&/*#__PURE__*/React__default["default"].createElement("div",{"class":"col-lg-12 text-start p-0"},/*#__PURE__*/React__default["default"].createElement("div",{className:"row m-0 w-100"},fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer42=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer42===void 0||(_fetchProductInfoQuer42=_fetchProductInfoQuer42.data)===null||_fetchProductInfoQuer42===void 0||(_fetchProductInfoQuer42=_fetchProductInfoQuer42.productinfo)===null||_fetchProductInfoQuer42===void 0||(_fetchProductInfoQuer42=_fetchProductInfoQuer42.productfeatures)===null||_fetchProductInfoQuer42===void 0?void 0:_fetchProductInfoQuer42.map(function(fitem,findex){return/*#__PURE__*/React__default["default"].createElement("div",{"class":' col-md-12 p-0 mb-3 mt-2 col-lg-'+sectionproperties.featuresnumcols},/*#__PURE__*/React__default["default"].createElement("div",{"class":"row m-0 w-100 text-start"},/*#__PURE__*/React__default["default"].createElement("div",{"class":"col-lg-12 text-start mb-3 text-uppercase p-0"},/*#__PURE__*/React__default["default"].createElement("div",{style:{width:'20px'},"class":langdetect=='en'?'mr-2':'ml-2'},/*#__PURE__*/React__default["default"].createElement(Imagekitimagecomp,{urlEndpoint:ikimagecredcontext===null||ikimagecredcontext===void 0?void 0:ikimagecredcontext.ikimageendpoint,publicKey:ikimagecredcontext===null||ikimagecredcontext===void 0?void 0:ikimagecredcontext.ikimagepublickey,path:fitem===null||fitem===void 0?void 0:fitem.feature_image_url,loading:"lazy",style:{maxWidth:'100%',maxHeight:'100%'}})),/*#__PURE__*/React__default["default"].createElement("p",{"class":"m-0 p-0",style:{color:sectionproperties.featurecolor,fontWeight:sectionproperties.featurefontweight,fontSize:sectionproperties.featurefontsize}},langdetect=='en'?fitem===null||fitem===void 0?void 0:fitem.name_en:fitem===null||fitem===void 0?void 0:fitem.name_ar)),/*#__PURE__*/React__default["default"].createElement("div",{"class":"col-lg-12 text-start text-capitalize"},/*#__PURE__*/React__default["default"].createElement("p",{"class":"m-0 p-0",style:{color:sectionproperties.featurevaluecolor,fontWeight:sectionproperties.featurevaluefontweight,fontSize:sectionproperties.featurevaluefontsize}},langdetect=='en'?fitem===null||fitem===void 0?void 0:fitem.value_en:fitem===null||fitem===void 0?void 0:fitem.value_ar))));}))),sectionproperties.descriptionposition=='Under Name'&§ionproperties.descriptionstyle=='Style 1'&§ionproperties.showshortdescription=='Show'&&/*#__PURE__*/React__default["default"].createElement("div",{"class":"col-lg-12 p-0"},/*#__PURE__*/React__default["default"].createElement("div",{"class":"row m-0 w-100"},sectionproperties.showshortdescription=='Show'&&/*#__PURE__*/React__default["default"].createElement("div",{"class":"col-lg-12 p-0 mb-2"},/*#__PURE__*/React__default["default"].createElement("p",{style:{textAlign:langdetect=='en'?'left':'right',color:sectionproperties.generaltext_fontColor}},ShortDescriptionTitle())),/*#__PURE__*/React__default["default"].createElement("div",{"class":"col-lg-12 p-0"},/*#__PURE__*/React__default["default"].createElement("p",{className:'m-0 p-0 wordbreak',style:{textAlign:langdetect=='en'?'left':'right',color:sectionproperties.prodCatColor},dangerouslySetInnerHTML:{__html:langdetect=='en'?fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer43=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer43===void 0||(_fetchProductInfoQuer43=_fetchProductInfoQuer43.data)===null||_fetchProductInfoQuer43===void 0||(_fetchProductInfoQuer43=_fetchProductInfoQuer43.productinfo)===null||_fetchProductInfoQuer43===void 0?void 0:_fetchProductInfoQuer43.short_description_en:fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer44=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer44===void 0||(_fetchProductInfoQuer44=_fetchProductInfoQuer44.data)===null||_fetchProductInfoQuer44===void 0||(_fetchProductInfoQuer44=_fetchProductInfoQuer44.productinfo)===null||_fetchProductInfoQuer44===void 0?void 0:_fetchProductInfoQuer44.short_description_ar}})))),sectionproperties.showfeatures=='Show'&§ionproperties.featuresposition=='Under Name'&§ionproperties.featurestyle=='Table'&&/*#__PURE__*/React__default["default"].createElement("div",{"class":"col-lg-12 text-start p-0"},ProductFeaturesTable()),sectionproperties.showfeatures=='Show'&§ionproperties.featuresposition=='Under Pricing'&§ionproperties.featurestyle=='Table'&&/*#__PURE__*/React__default["default"].createElement("div",{"class":"col-lg-12 text-start p-0"},ProductFeaturesTable()),langdetect=='en'&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer45=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer45===void 0||(_fetchProductInfoQuer45=_fetchProductInfoQuer45.data)===null||_fetchProductInfoQuer45===void 0||(_fetchProductInfoQuer45=_fetchProductInfoQuer45.productinfo)===null||_fetchProductInfoQuer45===void 0?void 0:_fetchProductInfoQuer45.short_description_en)!=null&§ionproperties.descriptionstyle=='Style 1'&§ionproperties.showshortdescription=='Show'&&/*#__PURE__*/React__default["default"].createElement("div",{"class":"col-lg-12 p-0"},/*#__PURE__*/React__default["default"].createElement("div",{"class":"col-lg-12 p-0 d-flex justify-content-start"},/*#__PURE__*/React__default["default"].createElement("p",{className:'text-black m-0 p-0 wordbreak',style:{textAlign:langdetect=='en'?'left':'right'},dangerouslySetInnerHTML:{__html:fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer46=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer46===void 0||(_fetchProductInfoQuer46=_fetchProductInfoQuer46.data)===null||_fetchProductInfoQuer46===void 0||(_fetchProductInfoQuer46=_fetchProductInfoQuer46.productinfo)===null||_fetchProductInfoQuer46===void 0?void 0:_fetchProductInfoQuer46.short_description_en}}))),langdetect=='ar'&§ionproperties.showshortdescription=='Show'&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer47=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer47===void 0||(_fetchProductInfoQuer47=_fetchProductInfoQuer47.data)===null||_fetchProductInfoQuer47===void 0||(_fetchProductInfoQuer47=_fetchProductInfoQuer47.productinfo)===null||_fetchProductInfoQuer47===void 0?void 0:_fetchProductInfoQuer47.short_description_ar)!=null&§ionproperties.descriptionstyle=='Style 1'&&/*#__PURE__*/React__default["default"].createElement("div",{"class":"col-lg-12 p-0"},/*#__PURE__*/React__default["default"].createElement("div",{"class":"col-lg-12 p-0 d-flex justify-content-start"},/*#__PURE__*/React__default["default"].createElement("p",{className:'text-black m-0 p-0 wordbreak',style:{textAlign:langdetect=='en'?'left':'right'},dangerouslySetInnerHTML:{__html:fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer48=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer48===void 0||(_fetchProductInfoQuer48=_fetchProductInfoQuer48.data)===null||_fetchProductInfoQuer48===void 0||(_fetchProductInfoQuer48=_fetchProductInfoQuer48.productinfo)===null||_fetchProductInfoQuer48===void 0?void 0:_fetchProductInfoQuer48.short_description_ar}}))),(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer49=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer49===void 0||(_fetchProductInfoQuer49=_fetchProductInfoQuer49.data)===null||_fetchProductInfoQuer49===void 0||(_fetchProductInfoQuer49=_fetchProductInfoQuer49.productinfo)===null||_fetchProductInfoQuer49===void 0?void 0:_fetchProductInfoQuer49.vendorinfo)!=null&§ionproperties.showvendor=='Show'&&/*#__PURE__*/React__default["default"].createElement("div",{"class":"col-lg-12 p-0 d-flex justify-content-start align-items-center mt-2 mb-3"},(authdetailsContext===null||authdetailsContext===void 0||(_authdetailsContext$i12=authdetailsContext.instinfo)===null||_authdetailsContext$i12===void 0?void 0:_authdetailsContext$i12.contactinfo.instid)=='683c163d7f996'&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer50=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer50===void 0||(_fetchProductInfoQuer50=_fetchProductInfoQuer50.data)===null||_fetchProductInfoQuer50===void 0||(_fetchProductInfoQuer50=_fetchProductInfoQuer50.productinfo)===null||_fetchProductInfoQuer50===void 0?void 0:_fetchProductInfoQuer50.vendorinfo.vendorlogourl)!=null&&/*#__PURE__*/React__default["default"].createElement("div",{"class":productinfo_cssstyles.vendorlogo,style:{}},/*#__PURE__*/React__default["default"].createElement(Imagekitimagecomp,{urlEndpoint:ikimagecredcontext===null||ikimagecredcontext===void 0?void 0:ikimagecredcontext.ikimageendpoint,publicKey:ikimagecredcontext===null||ikimagecredcontext===void 0?void 0:ikimagecredcontext.ikimagepublickey,path:fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer51=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer51===void 0||(_fetchProductInfoQuer51=_fetchProductInfoQuer51.data)===null||_fetchProductInfoQuer51===void 0||(_fetchProductInfoQuer51=_fetchProductInfoQuer51.productinfo)===null||_fetchProductInfoQuer51===void 0?void 0:_fetchProductInfoQuer51.vendorinfo.vendorlogourl,loading:"lazy",style:{width:'100%',height:'100%',objectFit:'contain',border:'1px solid #ccc',borderRadius:100}})),/*#__PURE__*/React__default["default"].createElement("p",{"class":"".concat(productinfo_cssstyles.productname," ").concat(productinfo_cssstyles.productnamehover)+' m-0 p-0 ',style:{cursor:sectionproperties.vendornameclickable=='Yes'?'pointer':'',fontSize:14},onClick:function onClick(){if(sectionproperties.vendornameclickable=='Yes'){var _fetchProductInfoQuer52;routingcountext(StaticPagesLinksContext.GeneralProductsComponent,true,encodeURIComponent(JSON.stringify({vendorsarr:[fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer52=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer52===void 0||(_fetchProductInfoQuer52=_fetchProductInfoQuer52.data)===null||_fetchProductInfoQuer52===void 0||(_fetchProductInfoQuer52=_fetchProductInfoQuer52.productinfo)===null||_fetchProductInfoQuer52===void 0||(_fetchProductInfoQuer52=_fetchProductInfoQuer52.vendorinfo)===null||_fetchProductInfoQuer52===void 0?void 0:_fetchProductInfoQuer52.vendorid]})));}}},(authdetailsContext===null||authdetailsContext===void 0||(_authdetailsContext$i13=authdetailsContext.instinfo)===null||_authdetailsContext$i13===void 0?void 0:_authdetailsContext$i13.contactinfo.instid)!='683c163d7f996'&&(authdetailsContext===null||authdetailsContext===void 0||(_authdetailsContext$i14=authdetailsContext.instinfo)===null||_authdetailsContext$i14===void 0?void 0:_authdetailsContext$i14.contactinfo.instid)!='67f3c23abb18f'&&(authdetailsContext===null||authdetailsContext===void 0||(_authdetailsContext$i15=authdetailsContext.instinfo)===null||_authdetailsContext$i15===void 0?void 0:_authdetailsContext$i15.contactinfo.instid)!='6805437ab0f3b'&&/*#__PURE__*/React__default["default"].createElement("span",null," ",langdetect=='en'?sectionproperties.vendortitleen:sectionproperties.vendortitlear,": "),/*#__PURE__*/React__default["default"].createElement("span",{style:{fontWeight:600,textDecoration:(authdetailsContext===null||authdetailsContext===void 0||(_authdetailsContext$i16=authdetailsContext.instinfo)===null||_authdetailsContext$i16===void 0?void 0:_authdetailsContext$i16.contactinfo.instid)=='67f3c23abb18f'?'underline':'none'}},fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer53=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer53===void 0||(_fetchProductInfoQuer53=_fetchProductInfoQuer53.data)===null||_fetchProductInfoQuer53===void 0||(_fetchProductInfoQuer53=_fetchProductInfoQuer53.productinfo)===null||_fetchProductInfoQuer53===void 0||(_fetchProductInfoQuer53=_fetchProductInfoQuer53.vendorinfo)===null||_fetchProductInfoQuer53===void 0?void 0:_fetchProductInfoQuer53.vendorname))),sectionproperties.showSKU=='Show'&§ionproperties.skuposition=='Bottom'&&/*#__PURE__*/React__default["default"].createElement("div",{"class":sectionproperties.deliverytimeshow=='Show'&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer54=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer54===void 0||(_fetchProductInfoQuer54=_fetchProductInfoQuer54.data)===null||_fetchProductInfoQuer54===void 0||(_fetchProductInfoQuer54=_fetchProductInfoQuer54.productinfo)===null||_fetchProductInfoQuer54===void 0?void 0:_fetchProductInfoQuer54.deliverydatetext)!=null?'col-lg-12 p-0 mb-2 d-flex justify-content-start':'col-lg-12 p-0 mb-3 d-flex justify-content-start'},ProductsSKUContainer()),(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer55=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer55===void 0||(_fetchProductInfoQuer55=_fetchProductInfoQuer55.data)===null||_fetchProductInfoQuer55===void 0||(_fetchProductInfoQuer55=_fetchProductInfoQuer55.productinfo)===null||_fetchProductInfoQuer55===void 0?void 0:_fetchProductInfoQuer55.currentquantity)<1&§ionproperties.showoutofstock=='Show'&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer56=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer56===void 0||(_fetchProductInfoQuer56=_fetchProductInfoQuer56.data)===null||_fetchProductInfoQuer56===void 0||(_fetchProductInfoQuer56=_fetchProductInfoQuer56.productinfo)===null||_fetchProductInfoQuer56===void 0?void 0:_fetchProductInfoQuer56.quantavailtype)=='limit'&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer57=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer57===void 0||(_fetchProductInfoQuer57=_fetchProductInfoQuer57.data)===null||_fetchProductInfoQuer57===void 0||(_fetchProductInfoQuer57=_fetchProductInfoQuer57.productinfo)===null||_fetchProductInfoQuer57===void 0?void 0:_fetchProductInfoQuer57.hasvariants)==0&&/*#__PURE__*/React__default["default"].createElement("div",{"class":"col-lg-12 p-0 d-flex justify-content-start mb-2"},/*#__PURE__*/React__default["default"].createElement("div",{"class":"".concat(productinfo_cssstyles.outstockbadge)+' allcentered '},/*#__PURE__*/React__default["default"].createElement("p",{"class":"m-0 p-0"},langdetect=='en'?sectionproperties.outstock_contenten:sectionproperties.outstock_contentar))),sectionproperties.deliverytimeshow=='Show'&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer58=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer58===void 0||(_fetchProductInfoQuer58=_fetchProductInfoQuer58.data)===null||_fetchProductInfoQuer58===void 0||(_fetchProductInfoQuer58=_fetchProductInfoQuer58.productinfo)===null||_fetchProductInfoQuer58===void 0?void 0:_fetchProductInfoQuer58.deliverydatetext)!=null&&/*#__PURE__*/React__default["default"].createElement("div",{"class":"mb-4 col-lg-12 allcentered",style:{width:'100%',backgroundColor:sectionproperties.deliverytimecontainerBg,paddingLeft:sectionproperties.deliverytimecontainerpaddinghorizontal+'px',paddingRight:sectionproperties.deliverytimecontainerpaddinghorizontal+'px',paddingTop:sectionproperties.deliverytimecontainerpaddingvertical+'px',paddingBottom:sectionproperties.deliverytimecontainerpaddingvertical+'px',border:sectionproperties.deliverytimecontainerborderwidth+'px solid '+sectionproperties.deliverytimecontainerbordercolor,borderRadius:sectionproperties.deliverytimecontainerborderradius+'px',fontSize:sectionproperties.deliverytimecontainerfontsize+'px',fontWeight:sectionproperties.deliverytimecontainerfontWeight,marginTop:15}},/*#__PURE__*/React__default["default"].createElement("p",{"class":"m-0 p-0 ",style:{textAlign:langdetect=='en'?'left':'right',color:sectionproperties.deliverytimecontainercolor}},sectionproperties.showdeliverytitle=='Show'&&/*#__PURE__*/React__default["default"].createElement("span",null,langdetect=='en'?sectionproperties.deliverycontent_en:sectionproperties.deliverycontent_ar,": "),' ',fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer59=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer59===void 0||(_fetchProductInfoQuer59=_fetchProductInfoQuer59.data)===null||_fetchProductInfoQuer59===void 0||(_fetchProductInfoQuer59=_fetchProductInfoQuer59.productinfo)===null||_fetchProductInfoQuer59===void 0?void 0:_fetchProductInfoQuer59.deliverydatetext)),sectionproperties.descriptionposition!='Under Name'&§ionproperties.descriptionposition=='Top'&§ionproperties.descriptionstyle=='Style 1'&§ionproperties.prodCatShow=='Show'&&/*#__PURE__*/React__default["default"].createElement("div",{"class":"col-lg-12 p-0"},/*#__PURE__*/React__default["default"].createElement(DescriptionContent,{actions:props.actions,srcfromprops:'undername'})),sectionproperties.defaultpricingposition=='Under Description'&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer60=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer60===void 0||(_fetchProductInfoQuer60=_fetchProductInfoQuer60.data)===null||_fetchProductInfoQuer60===void 0||(_fetchProductInfoQuer60=_fetchProductInfoQuer60.productinfo)===null||_fetchProductInfoQuer60===void 0?void 0:_fetchProductInfoQuer60.isproducttobesold)==1&&/*#__PURE__*/React__default["default"].createElement(ProductHeaderPricing,{actions:props.actions}),/*#__PURE__*/React__default["default"].createElement(Variantoptions,{actions:props.actions}),/*#__PURE__*/React__default["default"].createElement(ProductExtras,{actions:props.actions,srcfromprops:'servicestyle2',addtocartfunc:addtocartfunc}),sectionproperties.showextrafield=='Show'&&/*#__PURE__*/React__default["default"].createElement(ProductExtraFields,{actions:props.actions}),sectionproperties.gallerystyle!='Style 1'&§ionproperties.prodCatShow=='Show'&§ionproperties.descriptionposition!='Top'&&/*#__PURE__*/React__default["default"].createElement(DescriptionContent,{actions:props.actions}),(authdetailsContext===null||authdetailsContext===void 0||(_authdetailsContext$i17=authdetailsContext.instinfo)===null||_authdetailsContext$i17===void 0?void 0:_authdetailsContext$i17.contactinfo.instid)=='68ada0669b7c7'&&/*#__PURE__*/React__default["default"].createElement("div",{"class":"col-lg-12 p-0"},/*#__PURE__*/React__default["default"].createElement(ProductFileUploader,{actions:props.actions})),sectionproperties.showfeatures=='Show'&§ionproperties.featuresposition!='Under Name'&§ionproperties.featuresposition=='Under Description'&§ionproperties.featurestyle!='Table'&&/*#__PURE__*/React__default["default"].createElement("div",{"class":"col-lg-12 text-start p-md-0 mb-3"},ProductFeaturesArray()),/*#__PURE__*/React__default["default"].createElement("div",{className:"col-lg-12 p-0 mb-3",style:{// display: sectionproperties.quantitybtn_show == 'Hide' && sectionproperties.cartBtnShow == 'Hide' ? 'none' : 'flex',
|
|
4060
|
+
},/*#__PURE__*/React__default["default"].createElement("div",{className:sectionproperties.evencols=='Yes'?'row m-0 w-100':'row m-0 w-100'},sectionproperties.showmeasurementunit=='Show'&§ionproperties.measurementunitposition=='Above Name'&&MeasurementUnitSection(),sectionproperties.quantityshow=='Show'&&/*#__PURE__*/React__default["default"].createElement("div",{"class":"col-lg-12 p-0 text-start"},/*#__PURE__*/React__default["default"].createElement("p",{"class":"m-0 p-0",style:{fontSize:sectionproperties.quantityfontsize,color:sectionproperties.quantitycolor,fontWeight:sectionproperties.quantityfontweight}},langdetect=='en'?sectionproperties.qtytextinen:sectionproperties.qtytextinar,":",' ',fetchProductInfoQueryContext.data.data.productinfo.currentquantity)),/*#__PURE__*/React__default["default"].createElement("div",{className:(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer37=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer37===void 0||(_fetchProductInfoQuer37=_fetchProductInfoQuer37.data)===null||_fetchProductInfoQuer37===void 0||(_fetchProductInfoQuer37=_fetchProductInfoQuer37.productinfo)===null||_fetchProductInfoQuer37===void 0?void 0:_fetchProductInfoQuer37.productcanrate)==1?'col-lg-8 col-md-8 col-sm-8 p-0 mb-1 d-flex align-items-center':sectionproperties.btnposition=='Top'?'col-lg-8 col-md-8 col-sm-8 p-0 mb-1 d-flex align-items-center':sectionproperties.availabilitybtnposition=='Top'&§ionproperties.show_availability=='Show'?'col-lg-8 col-md-8 col-sm-8 p-0 mb-1 d-flex align-items-center':'col-lg-12 p-0 mb-1 d-flex align-items-center',style:{justifyContent:sectionproperties.productnamecentered=='Centered'?'center':'start'}},ProductNameSection()),(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer38=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer38===void 0||(_fetchProductInfoQuer38=_fetchProductInfoQuer38.data)===null||_fetchProductInfoQuer38===void 0||(_fetchProductInfoQuer38=_fetchProductInfoQuer38.productinfo)===null||_fetchProductInfoQuer38===void 0?void 0:_fetchProductInfoQuer38.productcanrate)==1&§ionproperties.showrating=='Show'&&/*#__PURE__*/React__default["default"].createElement("div",{className:"col-lg-4 col-md-4 col-sm-4 p-0 mb-1 d-flex justify-content-end align-items-center"},/*#__PURE__*/React__default["default"].createElement(ReactStars__default["default"],{count:5,value:fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer39=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer39===void 0||(_fetchProductInfoQuer39=_fetchProductInfoQuer39.data)===null||_fetchProductInfoQuer39===void 0||(_fetchProductInfoQuer39=_fetchProductInfoQuer39.productinfo)===null||_fetchProductInfoQuer39===void 0?void 0:_fetchProductInfoQuer39.productoverallrate,edit:false,size:18,emptyIcon:/*#__PURE__*/React__default["default"].createElement("i",{className:"far fa-star",style:{color:'#FAB400'}}),halfIcon:/*#__PURE__*/React__default["default"].createElement("i",{className:"fa fa-star-half-alt style={{ color: '#FAB400' }}"}),filledIcon:/*#__PURE__*/React__default["default"].createElement("i",{className:"fa fa-star",style:{color:'#FAB400'}}),activeColor:"#ffd700"})),/*#__PURE__*/React__default["default"].createElement("div",{className:"col-lg-4 col-md-4 col-sm-4 p-0 mb-1 d-flex justify-content-end align-items-center"},sectionproperties.availabilitybtnposition=='Top'&§ionproperties.show_availability=='Show'&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer40=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer40===void 0||(_fetchProductInfoQuer40=_fetchProductInfoQuer40.data)===null||_fetchProductInfoQuer40===void 0||(_fetchProductInfoQuer40=_fetchProductInfoQuer40.productinfo)===null||_fetchProductInfoQuer40===void 0?void 0:_fetchProductInfoQuer40.isproducttobesold)==1&&/*#__PURE__*/React__default["default"].createElement("div",{style:{width:sectionproperties.availability_width+'px',height:sectionproperties.availability_height+'px',background:fetchProductInfoQueryContext.data.data.productinfo.quantavailtype=='nolimit'?sectionproperties.availability_availablebgcolor:sectionproperties.availability_limitedbgcolor,borderRadius:sectionproperties.availability_borderrradius+'px',border:fetchProductInfoQueryContext.data.data.productinfo.quantavailtype=='nolimit'?sectionproperties.availability_borderwidtth+'px solid '+sectionproperties.availability_availabletextcolor:sectionproperties.availability_borderwidtth+'px solid '+sectionproperties.availability_limitedtextcolor,justifyContent:sectionproperties.availabilitytextalignment=='Centered'?'center':'start'},className:"d-flex align-items-center pl-3 pr-3 mx-2"},/*#__PURE__*/React__default["default"].createElement("p",{className:"m-0 p-0 font-weight-500 wordbreak",style:{color:fetchProductInfoQueryContext.data.data.productinfo.quantavailtype=='nolimit'?sectionproperties.availability_availabletextcolor:sectionproperties.availability_limitedtextcolor,fontSize:sectionproperties.availability_fontsize+'px',textAlign:sectionproperties.availabilitytextalignment=='Centered'?'center':langdetect=='en'?'left':'right'}},/*#__PURE__*/React__default["default"].createElement("span",{className:"ml-1 mr-1"},fetchProductInfoQueryContext.data.data.productinfo.quantavailtype=='nolimit'?lang.available:lang.limitedquantity))),sectionproperties.btnposition=='Top'&§ionproperties.favBtnShow=='Show'&&/*#__PURE__*/React__default["default"].createElement("div",{className:productinfo_cssstyles.wishlist_btn+' d-flex justify-content-center align-items-center mb-sm-2 ',onClick:function onClick(){addtofavoritescontext(fetchProductInfoQueryContext.data.data.productinfo.productid);setIsFavorite(!IsFavorite);},style:{background:fetchProductInfoQueryContext.data.data.productinfo.IsFavExists==true?sectionproperties.activebgcolor:''}},/*#__PURE__*/React__default["default"].createElement("i",{className:"h-100 d-flex align-items-center justify-content-center"},IsFavorite&&/*#__PURE__*/React__default["default"].createElement("i",{className:"h-100 d-flex align-items-center justify-content-center"},sectionproperties.faviconshape=='Star Shape'&&/*#__PURE__*/React__default["default"].createElement(AiFillStar$1.AiFillStar,{size:sectionproperties.favBtnIconfontsize,style:{color:sectionproperties.activefaviconcolor}}),sectionproperties.faviconshape=='Heart Shape'&&/*#__PURE__*/React__default["default"].createElement(FaHeart$1.FaHeart,{size:sectionproperties.favBtnIconfontsize,style:{color:sectionproperties.activefaviconcolor}})),!IsFavorite&&/*#__PURE__*/React__default["default"].createElement("i",{className:"h-100 d-flex align-items-center justify-content-center"},sectionproperties.faviconshape=='Star Shape'&&/*#__PURE__*/React__default["default"].createElement(AiOutlineStar.AiOutlineStar,{size:sectionproperties.favBtnIconfontsize}),sectionproperties.faviconshape=='Heart Shape'&&/*#__PURE__*/React__default["default"].createElement(FaRegHeart.FaRegHeart,{size:sectionproperties.favBtnIconfontsize}))))),sectionproperties.showSKU=='Show'&§ionproperties.skuposition=='Top'&&/*#__PURE__*/React__default["default"].createElement("div",{"class":'col-lg-12 p-0 my-3 d-flex justify-content-start'},ProductsSKUContainer()),sectionproperties.defaultpricingposition=='Under Name'&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer41=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer41===void 0||(_fetchProductInfoQuer41=_fetchProductInfoQuer41.data)===null||_fetchProductInfoQuer41===void 0||(_fetchProductInfoQuer41=_fetchProductInfoQuer41.productinfo)===null||_fetchProductInfoQuer41===void 0?void 0:_fetchProductInfoQuer41.isproducttobesold)==1&&/*#__PURE__*/React__default["default"].createElement(ProductHeaderPricing,{actions:props.actions}),sectionproperties.showfeatures=='Show'&§ionproperties.featuresposition=='Under Name'&§ionproperties.featurestyle!='Table'&&/*#__PURE__*/React__default["default"].createElement("div",{"class":"col-lg-12 text-start p-0"},/*#__PURE__*/React__default["default"].createElement("div",{className:"row m-0 w-100"},fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer42=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer42===void 0||(_fetchProductInfoQuer42=_fetchProductInfoQuer42.data)===null||_fetchProductInfoQuer42===void 0||(_fetchProductInfoQuer42=_fetchProductInfoQuer42.productinfo)===null||_fetchProductInfoQuer42===void 0||(_fetchProductInfoQuer42=_fetchProductInfoQuer42.productfeatures)===null||_fetchProductInfoQuer42===void 0?void 0:_fetchProductInfoQuer42.map(function(fitem,findex){return/*#__PURE__*/React__default["default"].createElement("div",{"class":' col-md-12 p-0 mb-3 mt-2 col-lg-'+sectionproperties.featuresnumcols},/*#__PURE__*/React__default["default"].createElement("div",{"class":"row m-0 w-100 text-start"},/*#__PURE__*/React__default["default"].createElement("div",{"class":"col-lg-12 text-start mb-3 text-uppercase p-0"},/*#__PURE__*/React__default["default"].createElement("div",{style:{width:'20px'},"class":langdetect=='en'?'mr-2':'ml-2'},/*#__PURE__*/React__default["default"].createElement(Imagekitimagecomp,{urlEndpoint:ikimagecredcontext===null||ikimagecredcontext===void 0?void 0:ikimagecredcontext.ikimageendpoint,publicKey:ikimagecredcontext===null||ikimagecredcontext===void 0?void 0:ikimagecredcontext.ikimagepublickey,path:fitem===null||fitem===void 0?void 0:fitem.feature_image_url,loading:"lazy",style:{maxWidth:'100%',maxHeight:'100%'}})),/*#__PURE__*/React__default["default"].createElement("p",{"class":"m-0 p-0",style:{color:sectionproperties.featurecolor,fontWeight:sectionproperties.featurefontweight,fontSize:sectionproperties.featurefontsize}},langdetect=='en'?fitem===null||fitem===void 0?void 0:fitem.name_en:fitem===null||fitem===void 0?void 0:fitem.name_ar)),/*#__PURE__*/React__default["default"].createElement("div",{"class":"col-lg-12 text-start text-capitalize"},/*#__PURE__*/React__default["default"].createElement("p",{"class":"m-0 p-0",style:{color:sectionproperties.featurevaluecolor,fontWeight:sectionproperties.featurevaluefontweight,fontSize:sectionproperties.featurevaluefontsize}},langdetect=='en'?fitem===null||fitem===void 0?void 0:fitem.value_en:fitem===null||fitem===void 0?void 0:fitem.value_ar))));}))),sectionproperties.descriptionposition=='Under Name'&§ionproperties.descriptionstyle=='Style 1'&§ionproperties.showshortdescription=='Show'&&/*#__PURE__*/React__default["default"].createElement("div",{"class":"col-lg-12 p-0"},/*#__PURE__*/React__default["default"].createElement("div",{"class":"row m-0 w-100"},sectionproperties.showshortdescription=='Show'&&/*#__PURE__*/React__default["default"].createElement("div",{"class":"col-lg-12 p-0 mb-2"},/*#__PURE__*/React__default["default"].createElement("p",{style:{textAlign:langdetect=='en'?'left':'right',color:sectionproperties.generaltext_fontColor}},ShortDescriptionTitle())),/*#__PURE__*/React__default["default"].createElement("div",{"class":"col-lg-12 p-0"},/*#__PURE__*/React__default["default"].createElement("p",{className:'m-0 p-0 wordbreak',style:{textAlign:langdetect=='en'?'left':'right',color:sectionproperties.prodCatColor},dangerouslySetInnerHTML:{__html:langdetect=='en'?fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer43=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer43===void 0||(_fetchProductInfoQuer43=_fetchProductInfoQuer43.data)===null||_fetchProductInfoQuer43===void 0||(_fetchProductInfoQuer43=_fetchProductInfoQuer43.productinfo)===null||_fetchProductInfoQuer43===void 0?void 0:_fetchProductInfoQuer43.short_description_en:fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer44=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer44===void 0||(_fetchProductInfoQuer44=_fetchProductInfoQuer44.data)===null||_fetchProductInfoQuer44===void 0||(_fetchProductInfoQuer44=_fetchProductInfoQuer44.productinfo)===null||_fetchProductInfoQuer44===void 0?void 0:_fetchProductInfoQuer44.short_description_ar}})))),sectionproperties.showvendor=='Hide'&§ionproperties.showfeatures=='Show'&§ionproperties.featuresposition=='Under Name'&§ionproperties.featurestyle=='Table'&&/*#__PURE__*/React__default["default"].createElement("div",{"class":"col-lg-12 text-start p-0"},ProductFeaturesTable()),sectionproperties.showfeatures=='Show'&§ionproperties.featuresposition=='Under Pricing'&§ionproperties.featurestyle=='Table'&&/*#__PURE__*/React__default["default"].createElement("div",{"class":"col-lg-12 text-start p-0"},ProductFeaturesTable()),langdetect=='en'&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer45=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer45===void 0||(_fetchProductInfoQuer45=_fetchProductInfoQuer45.data)===null||_fetchProductInfoQuer45===void 0||(_fetchProductInfoQuer45=_fetchProductInfoQuer45.productinfo)===null||_fetchProductInfoQuer45===void 0?void 0:_fetchProductInfoQuer45.short_description_en)!=null&§ionproperties.descriptionstyle=='Style 1'&§ionproperties.showshortdescription=='Show'&&/*#__PURE__*/React__default["default"].createElement("div",{"class":"col-lg-12 p-0"},/*#__PURE__*/React__default["default"].createElement("div",{"class":"col-lg-12 p-0 d-flex justify-content-start"},/*#__PURE__*/React__default["default"].createElement("p",{className:'text-black m-0 p-0 wordbreak',style:{textAlign:langdetect=='en'?'left':'right'},dangerouslySetInnerHTML:{__html:fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer46=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer46===void 0||(_fetchProductInfoQuer46=_fetchProductInfoQuer46.data)===null||_fetchProductInfoQuer46===void 0||(_fetchProductInfoQuer46=_fetchProductInfoQuer46.productinfo)===null||_fetchProductInfoQuer46===void 0?void 0:_fetchProductInfoQuer46.short_description_en}}))),langdetect=='ar'&§ionproperties.showshortdescription=='Show'&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer47=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer47===void 0||(_fetchProductInfoQuer47=_fetchProductInfoQuer47.data)===null||_fetchProductInfoQuer47===void 0||(_fetchProductInfoQuer47=_fetchProductInfoQuer47.productinfo)===null||_fetchProductInfoQuer47===void 0?void 0:_fetchProductInfoQuer47.short_description_ar)!=null&§ionproperties.descriptionstyle=='Style 1'&&/*#__PURE__*/React__default["default"].createElement("div",{"class":"col-lg-12 p-0"},/*#__PURE__*/React__default["default"].createElement("div",{"class":"col-lg-12 p-0 d-flex justify-content-start"},/*#__PURE__*/React__default["default"].createElement("p",{className:'text-black m-0 p-0 wordbreak',style:{textAlign:langdetect=='en'?'left':'right'},dangerouslySetInnerHTML:{__html:fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer48=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer48===void 0||(_fetchProductInfoQuer48=_fetchProductInfoQuer48.data)===null||_fetchProductInfoQuer48===void 0||(_fetchProductInfoQuer48=_fetchProductInfoQuer48.productinfo)===null||_fetchProductInfoQuer48===void 0?void 0:_fetchProductInfoQuer48.short_description_ar}}))),(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer49=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer49===void 0||(_fetchProductInfoQuer49=_fetchProductInfoQuer49.data)===null||_fetchProductInfoQuer49===void 0||(_fetchProductInfoQuer49=_fetchProductInfoQuer49.productinfo)===null||_fetchProductInfoQuer49===void 0?void 0:_fetchProductInfoQuer49.vendorinfo)!=null&§ionproperties.showvendor=='Show'&&/*#__PURE__*/React__default["default"].createElement("div",{"class":"col-lg-12 p-0 d-flex justify-content-start align-items-center mt-2 mb-3"},(authdetailsContext===null||authdetailsContext===void 0||(_authdetailsContext$i12=authdetailsContext.instinfo)===null||_authdetailsContext$i12===void 0?void 0:_authdetailsContext$i12.contactinfo.instid)=='683c163d7f996'&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer50=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer50===void 0||(_fetchProductInfoQuer50=_fetchProductInfoQuer50.data)===null||_fetchProductInfoQuer50===void 0||(_fetchProductInfoQuer50=_fetchProductInfoQuer50.productinfo)===null||_fetchProductInfoQuer50===void 0?void 0:_fetchProductInfoQuer50.vendorinfo.vendorlogourl)!=null&&/*#__PURE__*/React__default["default"].createElement("div",{"class":productinfo_cssstyles.vendorlogo,style:{}},/*#__PURE__*/React__default["default"].createElement(Imagekitimagecomp,{urlEndpoint:ikimagecredcontext===null||ikimagecredcontext===void 0?void 0:ikimagecredcontext.ikimageendpoint,publicKey:ikimagecredcontext===null||ikimagecredcontext===void 0?void 0:ikimagecredcontext.ikimagepublickey,path:fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer51=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer51===void 0||(_fetchProductInfoQuer51=_fetchProductInfoQuer51.data)===null||_fetchProductInfoQuer51===void 0||(_fetchProductInfoQuer51=_fetchProductInfoQuer51.productinfo)===null||_fetchProductInfoQuer51===void 0?void 0:_fetchProductInfoQuer51.vendorinfo.vendorlogourl,loading:"lazy",style:{width:'100%',height:'100%',objectFit:'contain',border:'1px solid #ccc',borderRadius:100}})),/*#__PURE__*/React__default["default"].createElement("p",{"class":"".concat(productinfo_cssstyles.productname," ").concat(productinfo_cssstyles.productnamehover)+' m-0 p-0 ',style:{cursor:sectionproperties.vendornameclickable=='Yes'?'pointer':'',fontSize:14},onClick:function onClick(){if(sectionproperties.vendornameclickable=='Yes'){var _fetchProductInfoQuer52;routingcountext(StaticPagesLinksContext.GeneralProductsComponent,true,encodeURIComponent(JSON.stringify({vendorsarr:[fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer52=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer52===void 0||(_fetchProductInfoQuer52=_fetchProductInfoQuer52.data)===null||_fetchProductInfoQuer52===void 0||(_fetchProductInfoQuer52=_fetchProductInfoQuer52.productinfo)===null||_fetchProductInfoQuer52===void 0||(_fetchProductInfoQuer52=_fetchProductInfoQuer52.vendorinfo)===null||_fetchProductInfoQuer52===void 0?void 0:_fetchProductInfoQuer52.vendorid]})));}}},(authdetailsContext===null||authdetailsContext===void 0||(_authdetailsContext$i13=authdetailsContext.instinfo)===null||_authdetailsContext$i13===void 0?void 0:_authdetailsContext$i13.contactinfo.instid)!='683c163d7f996'&&(authdetailsContext===null||authdetailsContext===void 0||(_authdetailsContext$i14=authdetailsContext.instinfo)===null||_authdetailsContext$i14===void 0?void 0:_authdetailsContext$i14.contactinfo.instid)!='67f3c23abb18f'&&(authdetailsContext===null||authdetailsContext===void 0||(_authdetailsContext$i15=authdetailsContext.instinfo)===null||_authdetailsContext$i15===void 0?void 0:_authdetailsContext$i15.contactinfo.instid)!='6805437ab0f3b'&&/*#__PURE__*/React__default["default"].createElement("span",null," ",langdetect=='en'?sectionproperties.vendortitleen:sectionproperties.vendortitlear,": "),/*#__PURE__*/React__default["default"].createElement("span",{style:{fontWeight:600,textDecoration:(authdetailsContext===null||authdetailsContext===void 0||(_authdetailsContext$i16=authdetailsContext.instinfo)===null||_authdetailsContext$i16===void 0?void 0:_authdetailsContext$i16.contactinfo.instid)=='67f3c23abb18f'?'underline':'none'}},fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer53=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer53===void 0||(_fetchProductInfoQuer53=_fetchProductInfoQuer53.data)===null||_fetchProductInfoQuer53===void 0||(_fetchProductInfoQuer53=_fetchProductInfoQuer53.productinfo)===null||_fetchProductInfoQuer53===void 0||(_fetchProductInfoQuer53=_fetchProductInfoQuer53.vendorinfo)===null||_fetchProductInfoQuer53===void 0?void 0:_fetchProductInfoQuer53.vendorname))),sectionproperties.showSKU=='Show'&§ionproperties.skuposition=='Bottom'&&/*#__PURE__*/React__default["default"].createElement("div",{"class":sectionproperties.deliverytimeshow=='Show'&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer54=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer54===void 0||(_fetchProductInfoQuer54=_fetchProductInfoQuer54.data)===null||_fetchProductInfoQuer54===void 0||(_fetchProductInfoQuer54=_fetchProductInfoQuer54.productinfo)===null||_fetchProductInfoQuer54===void 0?void 0:_fetchProductInfoQuer54.deliverydatetext)!=null?'col-lg-12 p-0 mb-2 d-flex justify-content-start':'col-lg-12 p-0 mb-3 d-flex justify-content-start'},ProductsSKUContainer()),sectionproperties.showvendor=='Show'&§ionproperties.showfeatures=='Show'&§ionproperties.featuresposition=='Under Name'&§ionproperties.featurestyle=='Table'&&/*#__PURE__*/React__default["default"].createElement("div",{"class":"col-lg-12 text-start p-0"},ProductFeaturesTable()),(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer55=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer55===void 0||(_fetchProductInfoQuer55=_fetchProductInfoQuer55.data)===null||_fetchProductInfoQuer55===void 0||(_fetchProductInfoQuer55=_fetchProductInfoQuer55.productinfo)===null||_fetchProductInfoQuer55===void 0?void 0:_fetchProductInfoQuer55.currentquantity)<1&§ionproperties.showoutofstock=='Show'&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer56=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer56===void 0||(_fetchProductInfoQuer56=_fetchProductInfoQuer56.data)===null||_fetchProductInfoQuer56===void 0||(_fetchProductInfoQuer56=_fetchProductInfoQuer56.productinfo)===null||_fetchProductInfoQuer56===void 0?void 0:_fetchProductInfoQuer56.quantavailtype)=='limit'&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer57=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer57===void 0||(_fetchProductInfoQuer57=_fetchProductInfoQuer57.data)===null||_fetchProductInfoQuer57===void 0||(_fetchProductInfoQuer57=_fetchProductInfoQuer57.productinfo)===null||_fetchProductInfoQuer57===void 0?void 0:_fetchProductInfoQuer57.hasvariants)==0&&/*#__PURE__*/React__default["default"].createElement("div",{"class":"col-lg-12 p-0 d-flex justify-content-start mb-2"},/*#__PURE__*/React__default["default"].createElement("div",{"class":"".concat(productinfo_cssstyles.outstockbadge)+' allcentered '},/*#__PURE__*/React__default["default"].createElement("p",{"class":"m-0 p-0"},langdetect=='en'?sectionproperties.outstock_contenten:sectionproperties.outstock_contentar))),sectionproperties.deliverytimeshow=='Show'&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer58=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer58===void 0||(_fetchProductInfoQuer58=_fetchProductInfoQuer58.data)===null||_fetchProductInfoQuer58===void 0||(_fetchProductInfoQuer58=_fetchProductInfoQuer58.productinfo)===null||_fetchProductInfoQuer58===void 0?void 0:_fetchProductInfoQuer58.deliverydatetext)!=null&&/*#__PURE__*/React__default["default"].createElement("div",{"class":"mb-4 col-lg-12 allcentered",style:{width:'100%',backgroundColor:sectionproperties.deliverytimecontainerBg,paddingLeft:sectionproperties.deliverytimecontainerpaddinghorizontal+'px',paddingRight:sectionproperties.deliverytimecontainerpaddinghorizontal+'px',paddingTop:sectionproperties.deliverytimecontainerpaddingvertical+'px',paddingBottom:sectionproperties.deliverytimecontainerpaddingvertical+'px',border:sectionproperties.deliverytimecontainerborderwidth+'px solid '+sectionproperties.deliverytimecontainerbordercolor,borderRadius:sectionproperties.deliverytimecontainerborderradius+'px',fontSize:sectionproperties.deliverytimecontainerfontsize+'px',fontWeight:sectionproperties.deliverytimecontainerfontWeight,marginTop:15}},/*#__PURE__*/React__default["default"].createElement("p",{"class":"m-0 p-0 ",style:{textAlign:langdetect=='en'?'left':'right',color:sectionproperties.deliverytimecontainercolor}},sectionproperties.showdeliverytitle=='Show'&&/*#__PURE__*/React__default["default"].createElement("span",null,langdetect=='en'?sectionproperties.deliverycontent_en:sectionproperties.deliverycontent_ar,": "),' ',fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer59=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer59===void 0||(_fetchProductInfoQuer59=_fetchProductInfoQuer59.data)===null||_fetchProductInfoQuer59===void 0||(_fetchProductInfoQuer59=_fetchProductInfoQuer59.productinfo)===null||_fetchProductInfoQuer59===void 0?void 0:_fetchProductInfoQuer59.deliverydatetext)),sectionproperties.descriptionposition!='Under Name'&§ionproperties.descriptionposition=='Top'&§ionproperties.descriptionstyle=='Style 1'&§ionproperties.prodCatShow=='Show'&&/*#__PURE__*/React__default["default"].createElement("div",{"class":"col-lg-12 p-0"},/*#__PURE__*/React__default["default"].createElement(DescriptionContent,{actions:props.actions,srcfromprops:'undername'})),sectionproperties.defaultpricingposition=='Under Description'&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer60=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer60===void 0||(_fetchProductInfoQuer60=_fetchProductInfoQuer60.data)===null||_fetchProductInfoQuer60===void 0||(_fetchProductInfoQuer60=_fetchProductInfoQuer60.productinfo)===null||_fetchProductInfoQuer60===void 0?void 0:_fetchProductInfoQuer60.isproducttobesold)==1&&/*#__PURE__*/React__default["default"].createElement(ProductHeaderPricing,{actions:props.actions}),/*#__PURE__*/React__default["default"].createElement(Variantoptions,{actions:props.actions}),/*#__PURE__*/React__default["default"].createElement(ProductExtras,{actions:props.actions,srcfromprops:'servicestyle2',addtocartfunc:addtocartfunc}),sectionproperties.showextrafield=='Show'&&/*#__PURE__*/React__default["default"].createElement(ProductExtraFields,{actions:props.actions}),sectionproperties.gallerystyle!='Style 1'&§ionproperties.prodCatShow=='Show'&§ionproperties.descriptionposition!='Top'&&/*#__PURE__*/React__default["default"].createElement(DescriptionContent,{actions:props.actions}),(authdetailsContext===null||authdetailsContext===void 0||(_authdetailsContext$i17=authdetailsContext.instinfo)===null||_authdetailsContext$i17===void 0?void 0:_authdetailsContext$i17.contactinfo.instid)=='68ada0669b7c7'&&/*#__PURE__*/React__default["default"].createElement("div",{"class":"col-lg-12 p-0"},/*#__PURE__*/React__default["default"].createElement(ProductFileUploader,{actions:props.actions})),sectionproperties.showfeatures=='Show'&§ionproperties.featuresposition!='Under Name'&§ionproperties.featuresposition=='Under Description'&§ionproperties.featurestyle!='Table'&&/*#__PURE__*/React__default["default"].createElement("div",{"class":"col-lg-12 text-start p-md-0 mb-3"},ProductFeaturesArray()),/*#__PURE__*/React__default["default"].createElement("div",{className:"col-lg-12 p-0 mb-3",style:{// display: sectionproperties.quantitybtn_show == 'Hide' && sectionproperties.cartBtnShow == 'Hide' ? 'none' : 'flex',
|
|
4061
4061
|
}},/*#__PURE__*/React__default["default"].createElement("div",{className:"row mx-0 w-100 d-flex align-items-center",style:{marginTop:sectionproperties.ctabuttnnsmarginvertical+'px',marginBottom:sectionproperties.ctabuttnnsmarginvertical+'px'}},(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer61=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer61===void 0||(_fetchProductInfoQuer61=_fetchProductInfoQuer61.data)===null||_fetchProductInfoQuer61===void 0||(_fetchProductInfoQuer61=_fetchProductInfoQuer61.productinfo)===null||_fetchProductInfoQuer61===void 0?void 0:_fetchProductInfoQuer61.isproducttobesold)==1&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer62=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer62===void 0||(_fetchProductInfoQuer62=_fetchProductInfoQuer62.data)===null||_fetchProductInfoQuer62===void 0||(_fetchProductInfoQuer62=_fetchProductInfoQuer62.productinfo)===null||_fetchProductInfoQuer62===void 0?void 0:_fetchProductInfoQuer62.isproducthasquantitychange)==1&§ionproperties.quantitybtn_show=='Show'&&/*#__PURE__*/React__default["default"].createElement("div",{className:"col-lg-12 p-0 mb-2 d-flex justofy-content-start"},/*#__PURE__*/React__default["default"].createElement("p",{className:"m-0 p-0",style:{color:sectionproperties.generaltext_fontColor,fontSize:sectionproperties.generaltext_fontSize+'px',textTransform:sectionproperties.generaltext_textTransform,fontWeight:sectionproperties.generaltext_fontWeight}},langdetect=='en'?sectionproperties.quantitybtnen:sectionproperties.quantitybtnar,":")),/*#__PURE__*/React__default["default"].createElement("div",{"class":"col-lg-12 p-0"},/*#__PURE__*/React__default["default"].createElement("div",{"class":"row m-0 w-100 d-flex align-items-center",style:{justifyContent:sectionproperties.cartbtncentered=='Centered'?'center':'start'}},sectionproperties.quantitybtn_show=='Show'&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer63=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer63===void 0||(_fetchProductInfoQuer63=_fetchProductInfoQuer63.data)===null||_fetchProductInfoQuer63===void 0||(_fetchProductInfoQuer63=_fetchProductInfoQuer63.productinfo)===null||_fetchProductInfoQuer63===void 0?void 0:_fetchProductInfoQuer63.isproducttobesold)==1&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer64=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer64===void 0||(_fetchProductInfoQuer64=_fetchProductInfoQuer64.data)===null||_fetchProductInfoQuer64===void 0||(_fetchProductInfoQuer64=_fetchProductInfoQuer64.productinfo)===null||_fetchProductInfoQuer64===void 0?void 0:_fetchProductInfoQuer64.isproducthasquantitychange)==1&&QuantityButton(),sectionproperties.cartbtnalone=='Besides Other Buttons'&§ionproperties.cartBtnShow=='Show'&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer65=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer65===void 0||(_fetchProductInfoQuer65=_fetchProductInfoQuer65.data)===null||_fetchProductInfoQuer65===void 0||(_fetchProductInfoQuer65=_fetchProductInfoQuer65.productinfo)===null||_fetchProductInfoQuer65===void 0?void 0:_fetchProductInfoQuer65.isproducttobesold)==1&&/*#__PURE__*/React__default["default"].createElement("button",{className:"".concat(productinfo_cssstyles.cart_btn," ")+' ml-2 d-flex align-items-center justify-content-center mb-sm-2 ',style:{width:sectionproperties.cartBtnWidth==100?'auto':sectionproperties.cartBtnWidth+'%',flex:sectionproperties.cartBtnWidth==100?1:''},onClick:function onClick(){if(fetchProductInfoQueryContext.data.data.productinfo.product_calltoaction=='Call'){var _fetchProductInfoQuer66;window.open('tel:'+((_fetchProductInfoQuer66=fetchProductInfoQueryContext.data.data.productinfo)===null||_fetchProductInfoQuer66===void 0?void 0:_fetchProductInfoQuer66.product_phonenumber),'_blank');}else {if(fetchProductInfoQueryContext.data.data.productinfo.maximumproductquant>=addtocardpayloadobj.quantity&&fetchProductInfoQueryContext.data.data.productinfo.minimumproductquant<=addtocardpayloadobj.quantity){addtocartfunc();}else {NotificationManager.warning('',lang.maximum+': '+fetchProductInfoQueryContext.data.data.productinfo.maximumproductquant+', '+lang.minimum+': '+fetchProductInfoQueryContext.data.data.productinfo.minimumproductquant);}}},disabled:AddtoCartMutationContext.isLoading==true?true:false},!AddtoCartMutationContext.isLoading&&/*#__PURE__*/React__default["default"].createElement("span",{className:' d-flex align-items-center justify-content-center ',style:{fontWeight:sectionproperties.cartBtnTextfontweight}},/*#__PURE__*/React__default["default"].createElement("i",{className:langdetect=='en'?'h-100 d-flex align-items-center justify-content-center mr-2':'h-100 d-flex align-items-center justify-content-center ml-2'},sectionproperties.carticonstyle=='Shopping bag 1'&&/*#__PURE__*/React__default["default"].createElement(FiShoppingBag.FiShoppingBag,{className:"",size:sectionproperties.cartBtn_iconFontSize}),sectionproperties.carticonstyle=='Shopping bag 2'&&/*#__PURE__*/React__default["default"].createElement(CgShoppingBag.CgShoppingBag,{className:"",size:sectionproperties.cartBtn_iconFontSize}),sectionproperties.carticonstyle=='Shopping bag 3'&&/*#__PURE__*/React__default["default"].createElement(BsBag.BsBag,{className:"",size:sectionproperties.cartBtn_iconFontSize}),sectionproperties.carticonstyle=='Shopping bag 4'&&/*#__PURE__*/React__default["default"].createElement(IoBagHandleOutline.IoBagHandleOutline,{className:"",size:sectionproperties.cartBtn_iconFontSize}),sectionproperties.carticonstyle=='Shopping cart 1'&&/*#__PURE__*/React__default["default"].createElement(FiShoppingCart.FiShoppingCart,{className:"",size:sectionproperties.cartBtn_iconFontSize}),sectionproperties.carticonstyle=='Shopping cart 2'&&/*#__PURE__*/React__default["default"].createElement(MdAddShoppingCart.MdAddShoppingCart,{size:sectionproperties.cartBtn_iconFontSize})),langdetect=='en'?fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer67=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer67===void 0||(_fetchProductInfoQuer67=_fetchProductInfoQuer67.data)===null||_fetchProductInfoQuer67===void 0||(_fetchProductInfoQuer67=_fetchProductInfoQuer67.productinfo)===null||_fetchProductInfoQuer67===void 0?void 0:_fetchProductInfoQuer67.productactionbuttontext_en:fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer68=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer68===void 0||(_fetchProductInfoQuer68=_fetchProductInfoQuer68.data)===null||_fetchProductInfoQuer68===void 0||(_fetchProductInfoQuer68=_fetchProductInfoQuer68.productinfo)===null||_fetchProductInfoQuer68===void 0?void 0:_fetchProductInfoQuer68.productactionbuttontext_ar),AddtoCartMutationContext.isLoading&&/*#__PURE__*/React__default["default"].createElement("div",{className:' d-flex align-items-center justify-content-center '},/*#__PURE__*/React__default["default"].createElement(reactCssfxLoading.CircularProgress,{color:sectionproperties.cartBtnTextcolor,width:"20px",height:"20px",duration:"1s"}))),sectionproperties.btnposition=='Bottom'&§ionproperties.favBtnShow=='Show'&&/*#__PURE__*/React__default["default"].createElement("div",{className:productinfo_cssstyles.wishlist_btn+' d-flex justify-content-center align-items-center mb-sm-2 ',onClick:function onClick(){addtofavoritescontext(fetchProductInfoQueryContext.data.data.productinfo.productid);setIsFavorite(!IsFavorite);},style:{background:fetchProductInfoQueryContext.data.data.productinfo.IsFavExists==true?sectionproperties.activebgcolor:''}},/*#__PURE__*/React__default["default"].createElement("i",{className:"h-100 d-flex align-items-center justify-content-center"},IsFavorite&&/*#__PURE__*/React__default["default"].createElement("i",{className:"h-100 d-flex align-items-center justify-content-center"},sectionproperties.faviconshape=='Star Shape'&&/*#__PURE__*/React__default["default"].createElement(AiFillStar$1.AiFillStar,{size:sectionproperties.favBtnIconfontsize,style:{color:sectionproperties.activefaviconcolor}}),sectionproperties.faviconshape=='Heart Shape'&&/*#__PURE__*/React__default["default"].createElement(FaHeart$1.FaHeart,{size:sectionproperties.favBtnIconfontsize,style:{color:sectionproperties.activefaviconcolor}})),!IsFavorite&&/*#__PURE__*/React__default["default"].createElement("i",{className:"h-100 d-flex align-items-center justify-content-center"},sectionproperties.faviconshape=='Star Shape'&&/*#__PURE__*/React__default["default"].createElement(AiOutlineStar.AiOutlineStar,{size:sectionproperties.favBtnIconfontsize}),sectionproperties.faviconshape=='Heart Shape'&&/*#__PURE__*/React__default["default"].createElement(FaRegHeart.FaRegHeart,{size:sectionproperties.favBtnIconfontsize}))),!IsFavorite&§ionproperties.favBtnTextfontsize!=0&&/*#__PURE__*/React__default["default"].createElement("p",{"class":"m-0 p-0",style:{fontSize:sectionproperties.favBtnTextfontsize+'px'}},langdetect=='en'?sectionproperties.favbtncontent_en:sectionproperties.favbtncontent_ar),IsFavorite&§ionproperties.favBtnTextfontsize!=0&&/*#__PURE__*/React__default["default"].createElement("p",{"class":"m-0 p-0",style:{fontSize:sectionproperties.favBtnTextfontsize+'px'}},langdetect=='en'?sectionproperties.favbtnaddedcontent_en:sectionproperties.favbtnaddedcontent_ar)),(authdetailsContext===null||authdetailsContext===void 0||(_authdetailsContext$i18=authdetailsContext.instinfo)===null||_authdetailsContext$i18===void 0?void 0:_authdetailsContext$i18.contactinfo.instid)=='694befd291698'&&/*#__PURE__*/React__default["default"].createElement("div",{"class":"col-12 p-0 mt-3"},/*#__PURE__*/React__default["default"].createElement("button",{className:sectionproperties.cartbtntramsitionafterwhile=='Yes'?"".concat(productinfo_cssstyles.cart_btn," ")+' d-flex align-items-center justify-content-center mb-sm-2 cart_btnvibrate ':"".concat(productinfo_cssstyles.cart_btn," ")+' d-flex align-items-center justify-content-center mb-sm-2 ',style:{width:'100%'},onClick:function onClick(){var productId=fetchProductInfoQueryContext.data.data.productinfo.productid;// Replace this with a real ID (e.g., passed via props)
|
|
4062
4062
|
var key='comparedProducts';// Get current list from localStorage
|
|
4063
4063
|
var existing=JSON.parse(localStorage.getItem(key))||[];// Check if the product is already in the list
|
|
@@ -28136,20 +28136,20 @@ var headerstyles$g = {"header_container":"modernheader-module_header_container__
|
|
|
28136
28136
|
styleInject(css_248z$C);
|
|
28137
28137
|
|
|
28138
28138
|
var Searchlist$1 = function Searchlist(props) {
|
|
28139
|
-
props.actions.lang;
|
|
28139
|
+
var lang = props.actions.lang;
|
|
28140
28140
|
var langdetect = props.actions.langdetect;
|
|
28141
|
-
props.actions.routingcountext;
|
|
28142
|
-
props.actions.StaticPagesLinksContext;
|
|
28141
|
+
var routingcountext = props.actions.routingcountext;
|
|
28142
|
+
var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
|
|
28143
28143
|
var SearchHeaderInputContext = props.actions.SearchHeaderInputContext;
|
|
28144
|
-
props.actions.SearchHeaderMutationContext;
|
|
28145
|
-
props.actions.ikimagecredcontext;
|
|
28146
|
-
props.actions.authdetailsContext;
|
|
28144
|
+
var SearchHeaderMutationContext = props.actions.SearchHeaderMutationContext;
|
|
28145
|
+
var ikimagecredcontext = props.actions.ikimagecredcontext;
|
|
28146
|
+
var authdetailsContext = props.actions.authdetailsContext;
|
|
28147
28147
|
var _useState = React.useState(''),
|
|
28148
28148
|
_useState2 = _slicedToArray__default["default"](_useState, 2),
|
|
28149
28149
|
sectionproperties = _useState2[0],
|
|
28150
28150
|
setsectionproperties = _useState2[1];
|
|
28151
|
-
props.actions.setSearchHeaderInputContext;
|
|
28152
|
-
props.actions.setsearchbarCanvasContext;
|
|
28151
|
+
var setSearchHeaderInputContext = props.actions.setSearchHeaderInputContext;
|
|
28152
|
+
var setsearchbarCanvasContext = props.actions.setsearchbarCanvasContext;
|
|
28153
28153
|
var _useState3 = React.useState(props.srcfromprops == 'cardssection' ? props.searchinputprops : SearchHeaderInputContext),
|
|
28154
28154
|
_useState4 = _slicedToArray__default["default"](_useState3, 2),
|
|
28155
28155
|
searchinput = _useState4[0],
|
|
@@ -28167,7 +28167,7 @@ var Searchlist$1 = function Searchlist(props) {
|
|
|
28167
28167
|
setsearchinput(props.searchinputprops);
|
|
28168
28168
|
}
|
|
28169
28169
|
}, [props.searchinputprops]);
|
|
28170
|
-
|
|
28170
|
+
var searchlist_styles = {
|
|
28171
28171
|
searchcont: glamor.css({
|
|
28172
28172
|
color: sectionproperties.searchlist_prodNameColor,
|
|
28173
28173
|
':hover': {
|
|
@@ -28225,13 +28225,151 @@ var Searchlist$1 = function Searchlist(props) {
|
|
|
28225
28225
|
// height: props.srcfromprops == 'searchlistsliderheaderfullwidth' ? '100vh' : props.srcfromprops == 'cardssection' ? '25vh' : '30vh',
|
|
28226
28226
|
// overflowY: props.srcfromprops == 'searchlistsliderheaderfullwidth' ? 'scroll' : 'hidden',
|
|
28227
28227
|
})
|
|
28228
|
-
}
|
|
28228
|
+
};
|
|
28229
28229
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
28230
28230
|
className: "col-lg-12 p-0 m-0 w-100 allcentered",
|
|
28231
28231
|
style: {
|
|
28232
28232
|
zIndex: 1000
|
|
28233
28233
|
}
|
|
28234
|
-
},
|
|
28234
|
+
}, sectionproperties.length != 0 && searchinput != undefined && searchinput != null && searchinput.length != 0 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
28235
|
+
className: props.srcfromprops == 'header' ? "".concat(searchlist_styles.searchlist_outercontainer) + ' m-0 row d-flex d-md-none justify-content-center p-1 ' : "".concat(searchlist_styles.searchlist_outercontainer) + ' m-0 row d-flex justify-content-center p-1 ',
|
|
28236
|
+
style: {
|
|
28237
|
+
zIndex: 1000,
|
|
28238
|
+
width: props.srcfromprops == 'header' ? '300px' : props.srcfromprops == 'headerfullwidth' ? '100%' : props.srcfromprops == 'searchlistsliderheaderfullwidth' ? '100%' : props.srcfromprops == 'headerfullwidth-200' ? '270px' : props.srcfromprops == 'respheader' ? '100%' : props.srcfromprops == 'header-400' ? '400px' : props.srcfromprops == 'header-250' ? '250px' : props.srcfromprops == 'header-300' ? '300px' : props.srcfromprops == 'StylishHeader' || props.srcfromprops == 'modernheader' ? '90%' : props.srcfromprops == 'ElegantHeader' ? '90%' : '100%',
|
|
28239
|
+
top: props.headernameprops == 'categoryfeaturingheader' || props.headernameprops == 'Header_threesectionslogocentered' ? 20 : props.srcfromprops == 'respheader' ? 10 : props.srcfromprops == 'StylishHeader' || props.srcfromprops == 'modernheader' ? 50 : props.srcfromprops == 'ElegantHeader' ? 50 : 10,
|
|
28240
|
+
left: props.srcfromprops == 'respheader' ? 0 : props.srcfromprops == 'header-400' || props.srcfromprops == 'header-300' || props.srcfromprops == 'header-250' ? langdetect == 'en' ? '' : 0 : props.srcfromprops == 'StylishHeader' || props.srcfromprops == 'modernheader' ? langdetect == 'en' ? '5%' : '' : props.srcfromprops == 'ElegantHeader' ? langdetect == 'en' ? '5%' : '' : '',
|
|
28241
|
+
right: props.srcfromprops == 'respheader' ? 0 : props.srcfromprops == 'header-400' || props.srcfromprops == 'header-300' || props.srcfromprops == 'header-250' ? langdetect == 'en' ? 0 : '' : props.srcfromprops == 'ElegantHeader' ? langdetect == 'ar' ? '5%' : '' : props.srcfromprops == 'Elegant' ? langdetect == 'ar' ? '5%' : '' : '',
|
|
28242
|
+
margin: props.srcfromprops == 'respheader' ? 'auto' : ''
|
|
28243
|
+
}
|
|
28244
|
+
}, SearchHeaderMutationContext.isLoading && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
28245
|
+
"class": "row m-0 w-100 d-flex align-items-center justify-content-center h-100 mt-auto mb-auto"
|
|
28246
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
28247
|
+
"class": "col-lg-12 d-flex align-items-center justify-content-center flex-column h-100"
|
|
28248
|
+
}, /*#__PURE__*/React__default["default"].createElement(reactCssfxLoading.Messaging, {
|
|
28249
|
+
color: "#ccc",
|
|
28250
|
+
width: "10px",
|
|
28251
|
+
height: "10px",
|
|
28252
|
+
duration: "1s"
|
|
28253
|
+
}))), !SearchHeaderMutationContext.isLoading && SearchHeaderMutationContext.isSuccess && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
28254
|
+
"class": props.srcfromprops == 'searchlistsliderheaderfullwidth' ? ' row m-0 w-100 d-flex justify-content-center ' : "".concat(searchlist_styles.searchlist_innercontainer) + ' subscrollbar row m-0 w-100 d-flex justify-content-center ',
|
|
28255
|
+
style: {
|
|
28256
|
+
overflowX: 'hidden',
|
|
28257
|
+
paddingBottom: props.srcfromprops == 'searchlistsliderheaderfullwidth' ? '50px' : '0.25rem'
|
|
28258
|
+
}
|
|
28259
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
28260
|
+
"class": "col-lg-12 m-0 w-100 p-0"
|
|
28261
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
28262
|
+
"class": "row m-0 w-100"
|
|
28263
|
+
}, SearchHeaderMutationContext.data.data.products.map(function (item, index) {
|
|
28264
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
28265
|
+
"class": sectionproperties.searchliststyle == 'Vertical' ? 'col-lg-12 m-0 w-100 p-1 pt-0 pb-0' : 'col-lg-12 m-0 w-100 p-1 pt-0 pb-0 d-none d-md-flex',
|
|
28266
|
+
style: {
|
|
28267
|
+
zIndex: 1000
|
|
28268
|
+
},
|
|
28269
|
+
onClick: function onClick() {
|
|
28270
|
+
routingcountext(StaticPagesLinksContext.productinfo, true, item.productid);
|
|
28271
|
+
setSearchHeaderInputContext('');
|
|
28272
|
+
setsearchinput('');
|
|
28273
|
+
setsearchbarCanvasContext(false);
|
|
28274
|
+
}
|
|
28275
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
28276
|
+
"class": "".concat(searchlist_styles.searchcont) + ' col-lg-12 col-md-12 d-flex p-0 cursor-pointer '
|
|
28277
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
28278
|
+
"class": searchlist_styles.imagecont
|
|
28279
|
+
}, /*#__PURE__*/React__default["default"].createElement(Imagekitimagecomp, {
|
|
28280
|
+
urlEndpoint: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint,
|
|
28281
|
+
publicKey: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimagepublickey,
|
|
28282
|
+
path: '/tr:w-' + sectionproperties.searchlistimagetr_w + ',h-' + sectionproperties.searchlistimagetr_h + '/' + item.defaultimagepath,
|
|
28283
|
+
loading: "lazy",
|
|
28284
|
+
style: {
|
|
28285
|
+
height: '100%',
|
|
28286
|
+
width: '100%',
|
|
28287
|
+
objectFit: 'contain',
|
|
28288
|
+
borderRadius: sectionproperties.searchlist_prodimage_borderradius + 'px'
|
|
28289
|
+
}
|
|
28290
|
+
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
28291
|
+
"class": props.srcfromprops == 'StylishHeader' || props.srcfromprops == 'modernheader' ? searchlist_styles.productnamecont + ' col-lg-11 col-md-11 col-sm-9 d-flex ' : props.srcfromprops == 'searchlistsliderheaderfullwidth' ? searchlist_styles.productnamecont + ' col-lg-9 col-md-10 col-sm-9 d-flex ' : searchlist_styles.productnamecont + ' col-lg-10 col-md-11 col-sm-9 d-flex ',
|
|
28292
|
+
style: {
|
|
28293
|
+
alignItems: sectionproperties.searchlistshowprice == 'Show' ? 'start' : 'center'
|
|
28294
|
+
}
|
|
28295
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
28296
|
+
"class": props.srcfromprops == 'searchlistsliderheaderfullwidth' ? 'row m-0 w-100 d-flex' : 'row m-0 w-100 d-flex',
|
|
28297
|
+
style: {
|
|
28298
|
+
alignItems: sectionproperties.searchlistshowprice == 'Show' ? 'start' : 'center'
|
|
28299
|
+
}
|
|
28300
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
28301
|
+
"class": "col-lg-12 col-md-12 col-sm-12 p-0 d-flex align-items-start"
|
|
28302
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
28303
|
+
"class": "".concat(searchlist_styles.productNameStyles) + ' m-0 text-overflow p-0 '
|
|
28304
|
+
}, langdetect == 'en' ? item.name_en : item.name_ar)), sectionproperties.searchlistshowprice == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
28305
|
+
"class": "col-lg-12 col-md-12 col-sm-12 p-0 d-flex align-items-center",
|
|
28306
|
+
style: {
|
|
28307
|
+
marginTop: sectionproperties.pricingmargintop != undefined ? sectionproperties.pricingmargintop + 'px' : '-0.25rem',
|
|
28308
|
+
display: 'row'
|
|
28309
|
+
}
|
|
28310
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
28311
|
+
"class": "".concat(searchlist_styles.productPricestyles) + ' m-0 '
|
|
28312
|
+
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', " ", item.hassale == 1 ? item.defaultsaleprice : item.defaultprice, ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar), item.hassale == 1 && /*#__PURE__*/React__default["default"].createElement("p", {
|
|
28313
|
+
"class": props.srcfromprops == 'searchlistsliderheaderfullwidth' ? "".concat(searchlist_styles.productSalePricestyles) + ' linethrough mb-0 ml-2 mr-2' : "".concat(searchlist_styles.productSalePricestyles) + ' linethrough ml-2 mr-2 mb-0'
|
|
28314
|
+
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', " ", item.defaultprice, ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar))))), index != SearchHeaderMutationContext.data.data.products.length - 1 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
28315
|
+
className: "col-lg-12 col-md-12 p-0"
|
|
28316
|
+
}, /*#__PURE__*/React__default["default"].createElement("hr", {
|
|
28317
|
+
className: "mt-2 mb-1"
|
|
28318
|
+
})));
|
|
28319
|
+
}), sectionproperties.searchliststyle == 'Cards' && SearchHeaderMutationContext.data.data.products.map(function (item, index) {
|
|
28320
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
28321
|
+
"class": (props === null || props === void 0 ? void 0 : props.numofcardsprops) != undefined ? ' m-0 w-100 mb-3 d-flex d-md-none col-lg-' + (props === null || props === void 0 ? void 0 : props.numofcardsprops) : 'col-lg-4 m-0 w-100 mb-3 d-flex d-md-none',
|
|
28322
|
+
style: {
|
|
28323
|
+
zIndex: 1000
|
|
28324
|
+
},
|
|
28325
|
+
onClick: function onClick() {
|
|
28326
|
+
routingcountext(StaticPagesLinksContext.productinfo, true, item.productid);
|
|
28327
|
+
setSearchHeaderInputContext('');
|
|
28328
|
+
setsearchinput('');
|
|
28329
|
+
setsearchbarCanvasContext(false);
|
|
28330
|
+
}
|
|
28331
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
28332
|
+
"class": "".concat(searchlist_styles.searchcont) + ' row m-0 w-100 cursor-pointer '
|
|
28333
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
28334
|
+
"class": ' col-lg-12 col-md-12 d-flex p-0 '
|
|
28335
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
28336
|
+
"class": searchlist_styles.imagecont + ' w-100 ',
|
|
28337
|
+
style: {
|
|
28338
|
+
borderRadius: sectionproperties.searchlist_prodimage_borderradius + 'px'
|
|
28339
|
+
}
|
|
28340
|
+
}, /*#__PURE__*/React__default["default"].createElement(Imagekitimagecomp, {
|
|
28341
|
+
urlEndpoint: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint,
|
|
28342
|
+
publicKey: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimagepublickey,
|
|
28343
|
+
path: '/tr:w-' + sectionproperties.searchlistimagetr_w + ',h-' + sectionproperties.searchlistimagetr_h + '/' + item.defaultimagepath,
|
|
28344
|
+
loading: "lazy",
|
|
28345
|
+
style: {
|
|
28346
|
+
height: sectionproperties.searchlist_prodimage_width + '%',
|
|
28347
|
+
width: sectionproperties.searchlist_prodimage_width + '%',
|
|
28348
|
+
objectFit: 'contain'
|
|
28349
|
+
}
|
|
28350
|
+
}))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
28351
|
+
"class": "col-lg-12 col-md-12 col-sm-12 p-0 allcentered"
|
|
28352
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
28353
|
+
"class": props.srcfromprops == 'ElegantHeader' ? "".concat(searchlist_styles.productNameStyles) + ' m-0 wordbreak wordbreak2 p-0 ' : "".concat(searchlist_styles.productNameStyles) + ' m-0 text-overflow p-0 ',
|
|
28354
|
+
style: {
|
|
28355
|
+
textAlign: 'center'
|
|
28356
|
+
}
|
|
28357
|
+
}, langdetect == 'en' ? item.name_en : item.name_ar)), sectionproperties.searchlistshowprice == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
28358
|
+
"class": "col-lg-12 col-md-12 col-sm-12 p-0 allcentered mt-2"
|
|
28359
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
28360
|
+
"class": "".concat(searchlist_styles.productPricestyles) + ' m-0 '
|
|
28361
|
+
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', " ", item.hassale == 1 ? item.defaultsaleprice : item.defaultprice, ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar), item.hassale == 1 && /*#__PURE__*/React__default["default"].createElement("p", {
|
|
28362
|
+
"class": "".concat(searchlist_styles.productSalePricestyles) + ' linethrough ml-2 mr-2 mb-0'
|
|
28363
|
+
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', " ", item.defaultprice, ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar))));
|
|
28364
|
+
})), SearchHeaderMutationContext.data.data.products.length == 0 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
28365
|
+
className: "row m-0 w-100 d-flex align-items-center justify-content-center h-100"
|
|
28366
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
28367
|
+
className: "col-lg-12 d-flex align-items-center justify-content-center text-light flex-column h-100"
|
|
28368
|
+
}, /*#__PURE__*/React__default["default"].createElement(FiLayers.FiLayers, {
|
|
28369
|
+
size: 25
|
|
28370
|
+
}), /*#__PURE__*/React__default["default"].createElement("p", {
|
|
28371
|
+
className: "font-13 font-weight-500"
|
|
28372
|
+
}, lang.nosearchresults)))))));
|
|
28235
28373
|
};
|
|
28236
28374
|
|
|
28237
28375
|
function ownKeys$2d(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
package/dist/index.esm.js
CHANGED
|
@@ -4006,7 +4006,7 @@ borderRadius:sectionproperties.showthumbnail=='Hide'?sectionproperties.imagebord
|
|
|
4006
4006
|
// : 'col-xl-6 col-lg-8 col-md-12 col-sm-12 pl-0 pr-4 p-md-0'
|
|
4007
4007
|
// : 'col-xl-12 col-lg-12 col-md-12 col-sm-12 px-3 px-md-2'
|
|
4008
4008
|
// }
|
|
4009
|
-
},/*#__PURE__*/React.createElement("div",{className:sectionproperties.evencols=='Yes'?'row m-0 w-100':'row m-0 w-100'},sectionproperties.showmeasurementunit=='Show'&§ionproperties.measurementunitposition=='Above Name'&&MeasurementUnitSection(),sectionproperties.quantityshow=='Show'&&/*#__PURE__*/React.createElement("div",{"class":"col-lg-12 p-0 text-start"},/*#__PURE__*/React.createElement("p",{"class":"m-0 p-0",style:{fontSize:sectionproperties.quantityfontsize,color:sectionproperties.quantitycolor,fontWeight:sectionproperties.quantityfontweight}},langdetect=='en'?sectionproperties.qtytextinen:sectionproperties.qtytextinar,":",' ',fetchProductInfoQueryContext.data.data.productinfo.currentquantity)),/*#__PURE__*/React.createElement("div",{className:(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer37=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer37===void 0||(_fetchProductInfoQuer37=_fetchProductInfoQuer37.data)===null||_fetchProductInfoQuer37===void 0||(_fetchProductInfoQuer37=_fetchProductInfoQuer37.productinfo)===null||_fetchProductInfoQuer37===void 0?void 0:_fetchProductInfoQuer37.productcanrate)==1?'col-lg-8 col-md-8 col-sm-8 p-0 mb-1 d-flex align-items-center':sectionproperties.btnposition=='Top'?'col-lg-8 col-md-8 col-sm-8 p-0 mb-1 d-flex align-items-center':sectionproperties.availabilitybtnposition=='Top'&§ionproperties.show_availability=='Show'?'col-lg-8 col-md-8 col-sm-8 p-0 mb-1 d-flex align-items-center':'col-lg-12 p-0 mb-1 d-flex align-items-center',style:{justifyContent:sectionproperties.productnamecentered=='Centered'?'center':'start'}},ProductNameSection()),(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer38=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer38===void 0||(_fetchProductInfoQuer38=_fetchProductInfoQuer38.data)===null||_fetchProductInfoQuer38===void 0||(_fetchProductInfoQuer38=_fetchProductInfoQuer38.productinfo)===null||_fetchProductInfoQuer38===void 0?void 0:_fetchProductInfoQuer38.productcanrate)==1&§ionproperties.showrating=='Show'&&/*#__PURE__*/React.createElement("div",{className:"col-lg-4 col-md-4 col-sm-4 p-0 mb-1 d-flex justify-content-end align-items-center"},/*#__PURE__*/React.createElement(ReactStars,{count:5,value:fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer39=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer39===void 0||(_fetchProductInfoQuer39=_fetchProductInfoQuer39.data)===null||_fetchProductInfoQuer39===void 0||(_fetchProductInfoQuer39=_fetchProductInfoQuer39.productinfo)===null||_fetchProductInfoQuer39===void 0?void 0:_fetchProductInfoQuer39.productoverallrate,edit:false,size:18,emptyIcon:/*#__PURE__*/React.createElement("i",{className:"far fa-star",style:{color:'#FAB400'}}),halfIcon:/*#__PURE__*/React.createElement("i",{className:"fa fa-star-half-alt style={{ color: '#FAB400' }}"}),filledIcon:/*#__PURE__*/React.createElement("i",{className:"fa fa-star",style:{color:'#FAB400'}}),activeColor:"#ffd700"})),/*#__PURE__*/React.createElement("div",{className:"col-lg-4 col-md-4 col-sm-4 p-0 mb-1 d-flex justify-content-end align-items-center"},sectionproperties.availabilitybtnposition=='Top'&§ionproperties.show_availability=='Show'&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer40=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer40===void 0||(_fetchProductInfoQuer40=_fetchProductInfoQuer40.data)===null||_fetchProductInfoQuer40===void 0||(_fetchProductInfoQuer40=_fetchProductInfoQuer40.productinfo)===null||_fetchProductInfoQuer40===void 0?void 0:_fetchProductInfoQuer40.isproducttobesold)==1&&/*#__PURE__*/React.createElement("div",{style:{width:sectionproperties.availability_width+'px',height:sectionproperties.availability_height+'px',background:fetchProductInfoQueryContext.data.data.productinfo.quantavailtype=='nolimit'?sectionproperties.availability_availablebgcolor:sectionproperties.availability_limitedbgcolor,borderRadius:sectionproperties.availability_borderrradius+'px',border:fetchProductInfoQueryContext.data.data.productinfo.quantavailtype=='nolimit'?sectionproperties.availability_borderwidtth+'px solid '+sectionproperties.availability_availabletextcolor:sectionproperties.availability_borderwidtth+'px solid '+sectionproperties.availability_limitedtextcolor,justifyContent:sectionproperties.availabilitytextalignment=='Centered'?'center':'start'},className:"d-flex align-items-center pl-3 pr-3 mx-2"},/*#__PURE__*/React.createElement("p",{className:"m-0 p-0 font-weight-500 wordbreak",style:{color:fetchProductInfoQueryContext.data.data.productinfo.quantavailtype=='nolimit'?sectionproperties.availability_availabletextcolor:sectionproperties.availability_limitedtextcolor,fontSize:sectionproperties.availability_fontsize+'px',textAlign:sectionproperties.availabilitytextalignment=='Centered'?'center':langdetect=='en'?'left':'right'}},/*#__PURE__*/React.createElement("span",{className:"ml-1 mr-1"},fetchProductInfoQueryContext.data.data.productinfo.quantavailtype=='nolimit'?lang.available:lang.limitedquantity))),sectionproperties.btnposition=='Top'&§ionproperties.favBtnShow=='Show'&&/*#__PURE__*/React.createElement("div",{className:productinfo_cssstyles.wishlist_btn+' d-flex justify-content-center align-items-center mb-sm-2 ',onClick:function onClick(){addtofavoritescontext(fetchProductInfoQueryContext.data.data.productinfo.productid);setIsFavorite(!IsFavorite);},style:{background:fetchProductInfoQueryContext.data.data.productinfo.IsFavExists==true?sectionproperties.activebgcolor:''}},/*#__PURE__*/React.createElement("i",{className:"h-100 d-flex align-items-center justify-content-center"},IsFavorite&&/*#__PURE__*/React.createElement("i",{className:"h-100 d-flex align-items-center justify-content-center"},sectionproperties.faviconshape=='Star Shape'&&/*#__PURE__*/React.createElement(AiFillStar$1,{size:sectionproperties.favBtnIconfontsize,style:{color:sectionproperties.activefaviconcolor}}),sectionproperties.faviconshape=='Heart Shape'&&/*#__PURE__*/React.createElement(FaHeart$1,{size:sectionproperties.favBtnIconfontsize,style:{color:sectionproperties.activefaviconcolor}})),!IsFavorite&&/*#__PURE__*/React.createElement("i",{className:"h-100 d-flex align-items-center justify-content-center"},sectionproperties.faviconshape=='Star Shape'&&/*#__PURE__*/React.createElement(AiOutlineStar,{size:sectionproperties.favBtnIconfontsize}),sectionproperties.faviconshape=='Heart Shape'&&/*#__PURE__*/React.createElement(FaRegHeart,{size:sectionproperties.favBtnIconfontsize}))))),sectionproperties.showSKU=='Show'&§ionproperties.skuposition=='Top'&&/*#__PURE__*/React.createElement("div",{"class":'col-lg-12 p-0 my-3 d-flex justify-content-start'},ProductsSKUContainer()),sectionproperties.defaultpricingposition=='Under Name'&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer41=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer41===void 0||(_fetchProductInfoQuer41=_fetchProductInfoQuer41.data)===null||_fetchProductInfoQuer41===void 0||(_fetchProductInfoQuer41=_fetchProductInfoQuer41.productinfo)===null||_fetchProductInfoQuer41===void 0?void 0:_fetchProductInfoQuer41.isproducttobesold)==1&&/*#__PURE__*/React.createElement(ProductHeaderPricing,{actions:props.actions}),sectionproperties.showfeatures=='Show'&§ionproperties.featuresposition=='Under Name'&§ionproperties.featurestyle!='Table'&&/*#__PURE__*/React.createElement("div",{"class":"col-lg-12 text-start p-0"},/*#__PURE__*/React.createElement("div",{className:"row m-0 w-100"},fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer42=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer42===void 0||(_fetchProductInfoQuer42=_fetchProductInfoQuer42.data)===null||_fetchProductInfoQuer42===void 0||(_fetchProductInfoQuer42=_fetchProductInfoQuer42.productinfo)===null||_fetchProductInfoQuer42===void 0||(_fetchProductInfoQuer42=_fetchProductInfoQuer42.productfeatures)===null||_fetchProductInfoQuer42===void 0?void 0:_fetchProductInfoQuer42.map(function(fitem,findex){return/*#__PURE__*/React.createElement("div",{"class":' col-md-12 p-0 mb-3 mt-2 col-lg-'+sectionproperties.featuresnumcols},/*#__PURE__*/React.createElement("div",{"class":"row m-0 w-100 text-start"},/*#__PURE__*/React.createElement("div",{"class":"col-lg-12 text-start mb-3 text-uppercase p-0"},/*#__PURE__*/React.createElement("div",{style:{width:'20px'},"class":langdetect=='en'?'mr-2':'ml-2'},/*#__PURE__*/React.createElement(Imagekitimagecomp,{urlEndpoint:ikimagecredcontext===null||ikimagecredcontext===void 0?void 0:ikimagecredcontext.ikimageendpoint,publicKey:ikimagecredcontext===null||ikimagecredcontext===void 0?void 0:ikimagecredcontext.ikimagepublickey,path:fitem===null||fitem===void 0?void 0:fitem.feature_image_url,loading:"lazy",style:{maxWidth:'100%',maxHeight:'100%'}})),/*#__PURE__*/React.createElement("p",{"class":"m-0 p-0",style:{color:sectionproperties.featurecolor,fontWeight:sectionproperties.featurefontweight,fontSize:sectionproperties.featurefontsize}},langdetect=='en'?fitem===null||fitem===void 0?void 0:fitem.name_en:fitem===null||fitem===void 0?void 0:fitem.name_ar)),/*#__PURE__*/React.createElement("div",{"class":"col-lg-12 text-start text-capitalize"},/*#__PURE__*/React.createElement("p",{"class":"m-0 p-0",style:{color:sectionproperties.featurevaluecolor,fontWeight:sectionproperties.featurevaluefontweight,fontSize:sectionproperties.featurevaluefontsize}},langdetect=='en'?fitem===null||fitem===void 0?void 0:fitem.value_en:fitem===null||fitem===void 0?void 0:fitem.value_ar))));}))),sectionproperties.descriptionposition=='Under Name'&§ionproperties.descriptionstyle=='Style 1'&§ionproperties.showshortdescription=='Show'&&/*#__PURE__*/React.createElement("div",{"class":"col-lg-12 p-0"},/*#__PURE__*/React.createElement("div",{"class":"row m-0 w-100"},sectionproperties.showshortdescription=='Show'&&/*#__PURE__*/React.createElement("div",{"class":"col-lg-12 p-0 mb-2"},/*#__PURE__*/React.createElement("p",{style:{textAlign:langdetect=='en'?'left':'right',color:sectionproperties.generaltext_fontColor}},ShortDescriptionTitle())),/*#__PURE__*/React.createElement("div",{"class":"col-lg-12 p-0"},/*#__PURE__*/React.createElement("p",{className:'m-0 p-0 wordbreak',style:{textAlign:langdetect=='en'?'left':'right',color:sectionproperties.prodCatColor},dangerouslySetInnerHTML:{__html:langdetect=='en'?fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer43=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer43===void 0||(_fetchProductInfoQuer43=_fetchProductInfoQuer43.data)===null||_fetchProductInfoQuer43===void 0||(_fetchProductInfoQuer43=_fetchProductInfoQuer43.productinfo)===null||_fetchProductInfoQuer43===void 0?void 0:_fetchProductInfoQuer43.short_description_en:fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer44=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer44===void 0||(_fetchProductInfoQuer44=_fetchProductInfoQuer44.data)===null||_fetchProductInfoQuer44===void 0||(_fetchProductInfoQuer44=_fetchProductInfoQuer44.productinfo)===null||_fetchProductInfoQuer44===void 0?void 0:_fetchProductInfoQuer44.short_description_ar}})))),sectionproperties.showfeatures=='Show'&§ionproperties.featuresposition=='Under Name'&§ionproperties.featurestyle=='Table'&&/*#__PURE__*/React.createElement("div",{"class":"col-lg-12 text-start p-0"},ProductFeaturesTable()),sectionproperties.showfeatures=='Show'&§ionproperties.featuresposition=='Under Pricing'&§ionproperties.featurestyle=='Table'&&/*#__PURE__*/React.createElement("div",{"class":"col-lg-12 text-start p-0"},ProductFeaturesTable()),langdetect=='en'&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer45=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer45===void 0||(_fetchProductInfoQuer45=_fetchProductInfoQuer45.data)===null||_fetchProductInfoQuer45===void 0||(_fetchProductInfoQuer45=_fetchProductInfoQuer45.productinfo)===null||_fetchProductInfoQuer45===void 0?void 0:_fetchProductInfoQuer45.short_description_en)!=null&§ionproperties.descriptionstyle=='Style 1'&§ionproperties.showshortdescription=='Show'&&/*#__PURE__*/React.createElement("div",{"class":"col-lg-12 p-0"},/*#__PURE__*/React.createElement("div",{"class":"col-lg-12 p-0 d-flex justify-content-start"},/*#__PURE__*/React.createElement("p",{className:'text-black m-0 p-0 wordbreak',style:{textAlign:langdetect=='en'?'left':'right'},dangerouslySetInnerHTML:{__html:fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer46=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer46===void 0||(_fetchProductInfoQuer46=_fetchProductInfoQuer46.data)===null||_fetchProductInfoQuer46===void 0||(_fetchProductInfoQuer46=_fetchProductInfoQuer46.productinfo)===null||_fetchProductInfoQuer46===void 0?void 0:_fetchProductInfoQuer46.short_description_en}}))),langdetect=='ar'&§ionproperties.showshortdescription=='Show'&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer47=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer47===void 0||(_fetchProductInfoQuer47=_fetchProductInfoQuer47.data)===null||_fetchProductInfoQuer47===void 0||(_fetchProductInfoQuer47=_fetchProductInfoQuer47.productinfo)===null||_fetchProductInfoQuer47===void 0?void 0:_fetchProductInfoQuer47.short_description_ar)!=null&§ionproperties.descriptionstyle=='Style 1'&&/*#__PURE__*/React.createElement("div",{"class":"col-lg-12 p-0"},/*#__PURE__*/React.createElement("div",{"class":"col-lg-12 p-0 d-flex justify-content-start"},/*#__PURE__*/React.createElement("p",{className:'text-black m-0 p-0 wordbreak',style:{textAlign:langdetect=='en'?'left':'right'},dangerouslySetInnerHTML:{__html:fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer48=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer48===void 0||(_fetchProductInfoQuer48=_fetchProductInfoQuer48.data)===null||_fetchProductInfoQuer48===void 0||(_fetchProductInfoQuer48=_fetchProductInfoQuer48.productinfo)===null||_fetchProductInfoQuer48===void 0?void 0:_fetchProductInfoQuer48.short_description_ar}}))),(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer49=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer49===void 0||(_fetchProductInfoQuer49=_fetchProductInfoQuer49.data)===null||_fetchProductInfoQuer49===void 0||(_fetchProductInfoQuer49=_fetchProductInfoQuer49.productinfo)===null||_fetchProductInfoQuer49===void 0?void 0:_fetchProductInfoQuer49.vendorinfo)!=null&§ionproperties.showvendor=='Show'&&/*#__PURE__*/React.createElement("div",{"class":"col-lg-12 p-0 d-flex justify-content-start align-items-center mt-2 mb-3"},(authdetailsContext===null||authdetailsContext===void 0||(_authdetailsContext$i12=authdetailsContext.instinfo)===null||_authdetailsContext$i12===void 0?void 0:_authdetailsContext$i12.contactinfo.instid)=='683c163d7f996'&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer50=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer50===void 0||(_fetchProductInfoQuer50=_fetchProductInfoQuer50.data)===null||_fetchProductInfoQuer50===void 0||(_fetchProductInfoQuer50=_fetchProductInfoQuer50.productinfo)===null||_fetchProductInfoQuer50===void 0?void 0:_fetchProductInfoQuer50.vendorinfo.vendorlogourl)!=null&&/*#__PURE__*/React.createElement("div",{"class":productinfo_cssstyles.vendorlogo,style:{}},/*#__PURE__*/React.createElement(Imagekitimagecomp,{urlEndpoint:ikimagecredcontext===null||ikimagecredcontext===void 0?void 0:ikimagecredcontext.ikimageendpoint,publicKey:ikimagecredcontext===null||ikimagecredcontext===void 0?void 0:ikimagecredcontext.ikimagepublickey,path:fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer51=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer51===void 0||(_fetchProductInfoQuer51=_fetchProductInfoQuer51.data)===null||_fetchProductInfoQuer51===void 0||(_fetchProductInfoQuer51=_fetchProductInfoQuer51.productinfo)===null||_fetchProductInfoQuer51===void 0?void 0:_fetchProductInfoQuer51.vendorinfo.vendorlogourl,loading:"lazy",style:{width:'100%',height:'100%',objectFit:'contain',border:'1px solid #ccc',borderRadius:100}})),/*#__PURE__*/React.createElement("p",{"class":"".concat(productinfo_cssstyles.productname," ").concat(productinfo_cssstyles.productnamehover)+' m-0 p-0 ',style:{cursor:sectionproperties.vendornameclickable=='Yes'?'pointer':'',fontSize:14},onClick:function onClick(){if(sectionproperties.vendornameclickable=='Yes'){var _fetchProductInfoQuer52;routingcountext(StaticPagesLinksContext.GeneralProductsComponent,true,encodeURIComponent(JSON.stringify({vendorsarr:[fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer52=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer52===void 0||(_fetchProductInfoQuer52=_fetchProductInfoQuer52.data)===null||_fetchProductInfoQuer52===void 0||(_fetchProductInfoQuer52=_fetchProductInfoQuer52.productinfo)===null||_fetchProductInfoQuer52===void 0||(_fetchProductInfoQuer52=_fetchProductInfoQuer52.vendorinfo)===null||_fetchProductInfoQuer52===void 0?void 0:_fetchProductInfoQuer52.vendorid]})));}}},(authdetailsContext===null||authdetailsContext===void 0||(_authdetailsContext$i13=authdetailsContext.instinfo)===null||_authdetailsContext$i13===void 0?void 0:_authdetailsContext$i13.contactinfo.instid)!='683c163d7f996'&&(authdetailsContext===null||authdetailsContext===void 0||(_authdetailsContext$i14=authdetailsContext.instinfo)===null||_authdetailsContext$i14===void 0?void 0:_authdetailsContext$i14.contactinfo.instid)!='67f3c23abb18f'&&(authdetailsContext===null||authdetailsContext===void 0||(_authdetailsContext$i15=authdetailsContext.instinfo)===null||_authdetailsContext$i15===void 0?void 0:_authdetailsContext$i15.contactinfo.instid)!='6805437ab0f3b'&&/*#__PURE__*/React.createElement("span",null," ",langdetect=='en'?sectionproperties.vendortitleen:sectionproperties.vendortitlear,": "),/*#__PURE__*/React.createElement("span",{style:{fontWeight:600,textDecoration:(authdetailsContext===null||authdetailsContext===void 0||(_authdetailsContext$i16=authdetailsContext.instinfo)===null||_authdetailsContext$i16===void 0?void 0:_authdetailsContext$i16.contactinfo.instid)=='67f3c23abb18f'?'underline':'none'}},fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer53=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer53===void 0||(_fetchProductInfoQuer53=_fetchProductInfoQuer53.data)===null||_fetchProductInfoQuer53===void 0||(_fetchProductInfoQuer53=_fetchProductInfoQuer53.productinfo)===null||_fetchProductInfoQuer53===void 0||(_fetchProductInfoQuer53=_fetchProductInfoQuer53.vendorinfo)===null||_fetchProductInfoQuer53===void 0?void 0:_fetchProductInfoQuer53.vendorname))),sectionproperties.showSKU=='Show'&§ionproperties.skuposition=='Bottom'&&/*#__PURE__*/React.createElement("div",{"class":sectionproperties.deliverytimeshow=='Show'&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer54=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer54===void 0||(_fetchProductInfoQuer54=_fetchProductInfoQuer54.data)===null||_fetchProductInfoQuer54===void 0||(_fetchProductInfoQuer54=_fetchProductInfoQuer54.productinfo)===null||_fetchProductInfoQuer54===void 0?void 0:_fetchProductInfoQuer54.deliverydatetext)!=null?'col-lg-12 p-0 mb-2 d-flex justify-content-start':'col-lg-12 p-0 mb-3 d-flex justify-content-start'},ProductsSKUContainer()),(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer55=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer55===void 0||(_fetchProductInfoQuer55=_fetchProductInfoQuer55.data)===null||_fetchProductInfoQuer55===void 0||(_fetchProductInfoQuer55=_fetchProductInfoQuer55.productinfo)===null||_fetchProductInfoQuer55===void 0?void 0:_fetchProductInfoQuer55.currentquantity)<1&§ionproperties.showoutofstock=='Show'&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer56=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer56===void 0||(_fetchProductInfoQuer56=_fetchProductInfoQuer56.data)===null||_fetchProductInfoQuer56===void 0||(_fetchProductInfoQuer56=_fetchProductInfoQuer56.productinfo)===null||_fetchProductInfoQuer56===void 0?void 0:_fetchProductInfoQuer56.quantavailtype)=='limit'&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer57=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer57===void 0||(_fetchProductInfoQuer57=_fetchProductInfoQuer57.data)===null||_fetchProductInfoQuer57===void 0||(_fetchProductInfoQuer57=_fetchProductInfoQuer57.productinfo)===null||_fetchProductInfoQuer57===void 0?void 0:_fetchProductInfoQuer57.hasvariants)==0&&/*#__PURE__*/React.createElement("div",{"class":"col-lg-12 p-0 d-flex justify-content-start mb-2"},/*#__PURE__*/React.createElement("div",{"class":"".concat(productinfo_cssstyles.outstockbadge)+' allcentered '},/*#__PURE__*/React.createElement("p",{"class":"m-0 p-0"},langdetect=='en'?sectionproperties.outstock_contenten:sectionproperties.outstock_contentar))),sectionproperties.deliverytimeshow=='Show'&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer58=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer58===void 0||(_fetchProductInfoQuer58=_fetchProductInfoQuer58.data)===null||_fetchProductInfoQuer58===void 0||(_fetchProductInfoQuer58=_fetchProductInfoQuer58.productinfo)===null||_fetchProductInfoQuer58===void 0?void 0:_fetchProductInfoQuer58.deliverydatetext)!=null&&/*#__PURE__*/React.createElement("div",{"class":"mb-4 col-lg-12 allcentered",style:{width:'100%',backgroundColor:sectionproperties.deliverytimecontainerBg,paddingLeft:sectionproperties.deliverytimecontainerpaddinghorizontal+'px',paddingRight:sectionproperties.deliverytimecontainerpaddinghorizontal+'px',paddingTop:sectionproperties.deliverytimecontainerpaddingvertical+'px',paddingBottom:sectionproperties.deliverytimecontainerpaddingvertical+'px',border:sectionproperties.deliverytimecontainerborderwidth+'px solid '+sectionproperties.deliverytimecontainerbordercolor,borderRadius:sectionproperties.deliverytimecontainerborderradius+'px',fontSize:sectionproperties.deliverytimecontainerfontsize+'px',fontWeight:sectionproperties.deliverytimecontainerfontWeight,marginTop:15}},/*#__PURE__*/React.createElement("p",{"class":"m-0 p-0 ",style:{textAlign:langdetect=='en'?'left':'right',color:sectionproperties.deliverytimecontainercolor}},sectionproperties.showdeliverytitle=='Show'&&/*#__PURE__*/React.createElement("span",null,langdetect=='en'?sectionproperties.deliverycontent_en:sectionproperties.deliverycontent_ar,": "),' ',fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer59=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer59===void 0||(_fetchProductInfoQuer59=_fetchProductInfoQuer59.data)===null||_fetchProductInfoQuer59===void 0||(_fetchProductInfoQuer59=_fetchProductInfoQuer59.productinfo)===null||_fetchProductInfoQuer59===void 0?void 0:_fetchProductInfoQuer59.deliverydatetext)),sectionproperties.descriptionposition!='Under Name'&§ionproperties.descriptionposition=='Top'&§ionproperties.descriptionstyle=='Style 1'&§ionproperties.prodCatShow=='Show'&&/*#__PURE__*/React.createElement("div",{"class":"col-lg-12 p-0"},/*#__PURE__*/React.createElement(DescriptionContent,{actions:props.actions,srcfromprops:'undername'})),sectionproperties.defaultpricingposition=='Under Description'&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer60=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer60===void 0||(_fetchProductInfoQuer60=_fetchProductInfoQuer60.data)===null||_fetchProductInfoQuer60===void 0||(_fetchProductInfoQuer60=_fetchProductInfoQuer60.productinfo)===null||_fetchProductInfoQuer60===void 0?void 0:_fetchProductInfoQuer60.isproducttobesold)==1&&/*#__PURE__*/React.createElement(ProductHeaderPricing,{actions:props.actions}),/*#__PURE__*/React.createElement(Variantoptions,{actions:props.actions}),/*#__PURE__*/React.createElement(ProductExtras,{actions:props.actions,srcfromprops:'servicestyle2',addtocartfunc:addtocartfunc}),sectionproperties.showextrafield=='Show'&&/*#__PURE__*/React.createElement(ProductExtraFields,{actions:props.actions}),sectionproperties.gallerystyle!='Style 1'&§ionproperties.prodCatShow=='Show'&§ionproperties.descriptionposition!='Top'&&/*#__PURE__*/React.createElement(DescriptionContent,{actions:props.actions}),(authdetailsContext===null||authdetailsContext===void 0||(_authdetailsContext$i17=authdetailsContext.instinfo)===null||_authdetailsContext$i17===void 0?void 0:_authdetailsContext$i17.contactinfo.instid)=='68ada0669b7c7'&&/*#__PURE__*/React.createElement("div",{"class":"col-lg-12 p-0"},/*#__PURE__*/React.createElement(ProductFileUploader,{actions:props.actions})),sectionproperties.showfeatures=='Show'&§ionproperties.featuresposition!='Under Name'&§ionproperties.featuresposition=='Under Description'&§ionproperties.featurestyle!='Table'&&/*#__PURE__*/React.createElement("div",{"class":"col-lg-12 text-start p-md-0 mb-3"},ProductFeaturesArray()),/*#__PURE__*/React.createElement("div",{className:"col-lg-12 p-0 mb-3",style:{// display: sectionproperties.quantitybtn_show == 'Hide' && sectionproperties.cartBtnShow == 'Hide' ? 'none' : 'flex',
|
|
4009
|
+
},/*#__PURE__*/React.createElement("div",{className:sectionproperties.evencols=='Yes'?'row m-0 w-100':'row m-0 w-100'},sectionproperties.showmeasurementunit=='Show'&§ionproperties.measurementunitposition=='Above Name'&&MeasurementUnitSection(),sectionproperties.quantityshow=='Show'&&/*#__PURE__*/React.createElement("div",{"class":"col-lg-12 p-0 text-start"},/*#__PURE__*/React.createElement("p",{"class":"m-0 p-0",style:{fontSize:sectionproperties.quantityfontsize,color:sectionproperties.quantitycolor,fontWeight:sectionproperties.quantityfontweight}},langdetect=='en'?sectionproperties.qtytextinen:sectionproperties.qtytextinar,":",' ',fetchProductInfoQueryContext.data.data.productinfo.currentquantity)),/*#__PURE__*/React.createElement("div",{className:(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer37=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer37===void 0||(_fetchProductInfoQuer37=_fetchProductInfoQuer37.data)===null||_fetchProductInfoQuer37===void 0||(_fetchProductInfoQuer37=_fetchProductInfoQuer37.productinfo)===null||_fetchProductInfoQuer37===void 0?void 0:_fetchProductInfoQuer37.productcanrate)==1?'col-lg-8 col-md-8 col-sm-8 p-0 mb-1 d-flex align-items-center':sectionproperties.btnposition=='Top'?'col-lg-8 col-md-8 col-sm-8 p-0 mb-1 d-flex align-items-center':sectionproperties.availabilitybtnposition=='Top'&§ionproperties.show_availability=='Show'?'col-lg-8 col-md-8 col-sm-8 p-0 mb-1 d-flex align-items-center':'col-lg-12 p-0 mb-1 d-flex align-items-center',style:{justifyContent:sectionproperties.productnamecentered=='Centered'?'center':'start'}},ProductNameSection()),(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer38=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer38===void 0||(_fetchProductInfoQuer38=_fetchProductInfoQuer38.data)===null||_fetchProductInfoQuer38===void 0||(_fetchProductInfoQuer38=_fetchProductInfoQuer38.productinfo)===null||_fetchProductInfoQuer38===void 0?void 0:_fetchProductInfoQuer38.productcanrate)==1&§ionproperties.showrating=='Show'&&/*#__PURE__*/React.createElement("div",{className:"col-lg-4 col-md-4 col-sm-4 p-0 mb-1 d-flex justify-content-end align-items-center"},/*#__PURE__*/React.createElement(ReactStars,{count:5,value:fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer39=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer39===void 0||(_fetchProductInfoQuer39=_fetchProductInfoQuer39.data)===null||_fetchProductInfoQuer39===void 0||(_fetchProductInfoQuer39=_fetchProductInfoQuer39.productinfo)===null||_fetchProductInfoQuer39===void 0?void 0:_fetchProductInfoQuer39.productoverallrate,edit:false,size:18,emptyIcon:/*#__PURE__*/React.createElement("i",{className:"far fa-star",style:{color:'#FAB400'}}),halfIcon:/*#__PURE__*/React.createElement("i",{className:"fa fa-star-half-alt style={{ color: '#FAB400' }}"}),filledIcon:/*#__PURE__*/React.createElement("i",{className:"fa fa-star",style:{color:'#FAB400'}}),activeColor:"#ffd700"})),/*#__PURE__*/React.createElement("div",{className:"col-lg-4 col-md-4 col-sm-4 p-0 mb-1 d-flex justify-content-end align-items-center"},sectionproperties.availabilitybtnposition=='Top'&§ionproperties.show_availability=='Show'&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer40=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer40===void 0||(_fetchProductInfoQuer40=_fetchProductInfoQuer40.data)===null||_fetchProductInfoQuer40===void 0||(_fetchProductInfoQuer40=_fetchProductInfoQuer40.productinfo)===null||_fetchProductInfoQuer40===void 0?void 0:_fetchProductInfoQuer40.isproducttobesold)==1&&/*#__PURE__*/React.createElement("div",{style:{width:sectionproperties.availability_width+'px',height:sectionproperties.availability_height+'px',background:fetchProductInfoQueryContext.data.data.productinfo.quantavailtype=='nolimit'?sectionproperties.availability_availablebgcolor:sectionproperties.availability_limitedbgcolor,borderRadius:sectionproperties.availability_borderrradius+'px',border:fetchProductInfoQueryContext.data.data.productinfo.quantavailtype=='nolimit'?sectionproperties.availability_borderwidtth+'px solid '+sectionproperties.availability_availabletextcolor:sectionproperties.availability_borderwidtth+'px solid '+sectionproperties.availability_limitedtextcolor,justifyContent:sectionproperties.availabilitytextalignment=='Centered'?'center':'start'},className:"d-flex align-items-center pl-3 pr-3 mx-2"},/*#__PURE__*/React.createElement("p",{className:"m-0 p-0 font-weight-500 wordbreak",style:{color:fetchProductInfoQueryContext.data.data.productinfo.quantavailtype=='nolimit'?sectionproperties.availability_availabletextcolor:sectionproperties.availability_limitedtextcolor,fontSize:sectionproperties.availability_fontsize+'px',textAlign:sectionproperties.availabilitytextalignment=='Centered'?'center':langdetect=='en'?'left':'right'}},/*#__PURE__*/React.createElement("span",{className:"ml-1 mr-1"},fetchProductInfoQueryContext.data.data.productinfo.quantavailtype=='nolimit'?lang.available:lang.limitedquantity))),sectionproperties.btnposition=='Top'&§ionproperties.favBtnShow=='Show'&&/*#__PURE__*/React.createElement("div",{className:productinfo_cssstyles.wishlist_btn+' d-flex justify-content-center align-items-center mb-sm-2 ',onClick:function onClick(){addtofavoritescontext(fetchProductInfoQueryContext.data.data.productinfo.productid);setIsFavorite(!IsFavorite);},style:{background:fetchProductInfoQueryContext.data.data.productinfo.IsFavExists==true?sectionproperties.activebgcolor:''}},/*#__PURE__*/React.createElement("i",{className:"h-100 d-flex align-items-center justify-content-center"},IsFavorite&&/*#__PURE__*/React.createElement("i",{className:"h-100 d-flex align-items-center justify-content-center"},sectionproperties.faviconshape=='Star Shape'&&/*#__PURE__*/React.createElement(AiFillStar$1,{size:sectionproperties.favBtnIconfontsize,style:{color:sectionproperties.activefaviconcolor}}),sectionproperties.faviconshape=='Heart Shape'&&/*#__PURE__*/React.createElement(FaHeart$1,{size:sectionproperties.favBtnIconfontsize,style:{color:sectionproperties.activefaviconcolor}})),!IsFavorite&&/*#__PURE__*/React.createElement("i",{className:"h-100 d-flex align-items-center justify-content-center"},sectionproperties.faviconshape=='Star Shape'&&/*#__PURE__*/React.createElement(AiOutlineStar,{size:sectionproperties.favBtnIconfontsize}),sectionproperties.faviconshape=='Heart Shape'&&/*#__PURE__*/React.createElement(FaRegHeart,{size:sectionproperties.favBtnIconfontsize}))))),sectionproperties.showSKU=='Show'&§ionproperties.skuposition=='Top'&&/*#__PURE__*/React.createElement("div",{"class":'col-lg-12 p-0 my-3 d-flex justify-content-start'},ProductsSKUContainer()),sectionproperties.defaultpricingposition=='Under Name'&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer41=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer41===void 0||(_fetchProductInfoQuer41=_fetchProductInfoQuer41.data)===null||_fetchProductInfoQuer41===void 0||(_fetchProductInfoQuer41=_fetchProductInfoQuer41.productinfo)===null||_fetchProductInfoQuer41===void 0?void 0:_fetchProductInfoQuer41.isproducttobesold)==1&&/*#__PURE__*/React.createElement(ProductHeaderPricing,{actions:props.actions}),sectionproperties.showfeatures=='Show'&§ionproperties.featuresposition=='Under Name'&§ionproperties.featurestyle!='Table'&&/*#__PURE__*/React.createElement("div",{"class":"col-lg-12 text-start p-0"},/*#__PURE__*/React.createElement("div",{className:"row m-0 w-100"},fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer42=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer42===void 0||(_fetchProductInfoQuer42=_fetchProductInfoQuer42.data)===null||_fetchProductInfoQuer42===void 0||(_fetchProductInfoQuer42=_fetchProductInfoQuer42.productinfo)===null||_fetchProductInfoQuer42===void 0||(_fetchProductInfoQuer42=_fetchProductInfoQuer42.productfeatures)===null||_fetchProductInfoQuer42===void 0?void 0:_fetchProductInfoQuer42.map(function(fitem,findex){return/*#__PURE__*/React.createElement("div",{"class":' col-md-12 p-0 mb-3 mt-2 col-lg-'+sectionproperties.featuresnumcols},/*#__PURE__*/React.createElement("div",{"class":"row m-0 w-100 text-start"},/*#__PURE__*/React.createElement("div",{"class":"col-lg-12 text-start mb-3 text-uppercase p-0"},/*#__PURE__*/React.createElement("div",{style:{width:'20px'},"class":langdetect=='en'?'mr-2':'ml-2'},/*#__PURE__*/React.createElement(Imagekitimagecomp,{urlEndpoint:ikimagecredcontext===null||ikimagecredcontext===void 0?void 0:ikimagecredcontext.ikimageendpoint,publicKey:ikimagecredcontext===null||ikimagecredcontext===void 0?void 0:ikimagecredcontext.ikimagepublickey,path:fitem===null||fitem===void 0?void 0:fitem.feature_image_url,loading:"lazy",style:{maxWidth:'100%',maxHeight:'100%'}})),/*#__PURE__*/React.createElement("p",{"class":"m-0 p-0",style:{color:sectionproperties.featurecolor,fontWeight:sectionproperties.featurefontweight,fontSize:sectionproperties.featurefontsize}},langdetect=='en'?fitem===null||fitem===void 0?void 0:fitem.name_en:fitem===null||fitem===void 0?void 0:fitem.name_ar)),/*#__PURE__*/React.createElement("div",{"class":"col-lg-12 text-start text-capitalize"},/*#__PURE__*/React.createElement("p",{"class":"m-0 p-0",style:{color:sectionproperties.featurevaluecolor,fontWeight:sectionproperties.featurevaluefontweight,fontSize:sectionproperties.featurevaluefontsize}},langdetect=='en'?fitem===null||fitem===void 0?void 0:fitem.value_en:fitem===null||fitem===void 0?void 0:fitem.value_ar))));}))),sectionproperties.descriptionposition=='Under Name'&§ionproperties.descriptionstyle=='Style 1'&§ionproperties.showshortdescription=='Show'&&/*#__PURE__*/React.createElement("div",{"class":"col-lg-12 p-0"},/*#__PURE__*/React.createElement("div",{"class":"row m-0 w-100"},sectionproperties.showshortdescription=='Show'&&/*#__PURE__*/React.createElement("div",{"class":"col-lg-12 p-0 mb-2"},/*#__PURE__*/React.createElement("p",{style:{textAlign:langdetect=='en'?'left':'right',color:sectionproperties.generaltext_fontColor}},ShortDescriptionTitle())),/*#__PURE__*/React.createElement("div",{"class":"col-lg-12 p-0"},/*#__PURE__*/React.createElement("p",{className:'m-0 p-0 wordbreak',style:{textAlign:langdetect=='en'?'left':'right',color:sectionproperties.prodCatColor},dangerouslySetInnerHTML:{__html:langdetect=='en'?fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer43=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer43===void 0||(_fetchProductInfoQuer43=_fetchProductInfoQuer43.data)===null||_fetchProductInfoQuer43===void 0||(_fetchProductInfoQuer43=_fetchProductInfoQuer43.productinfo)===null||_fetchProductInfoQuer43===void 0?void 0:_fetchProductInfoQuer43.short_description_en:fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer44=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer44===void 0||(_fetchProductInfoQuer44=_fetchProductInfoQuer44.data)===null||_fetchProductInfoQuer44===void 0||(_fetchProductInfoQuer44=_fetchProductInfoQuer44.productinfo)===null||_fetchProductInfoQuer44===void 0?void 0:_fetchProductInfoQuer44.short_description_ar}})))),sectionproperties.showvendor=='Hide'&§ionproperties.showfeatures=='Show'&§ionproperties.featuresposition=='Under Name'&§ionproperties.featurestyle=='Table'&&/*#__PURE__*/React.createElement("div",{"class":"col-lg-12 text-start p-0"},ProductFeaturesTable()),sectionproperties.showfeatures=='Show'&§ionproperties.featuresposition=='Under Pricing'&§ionproperties.featurestyle=='Table'&&/*#__PURE__*/React.createElement("div",{"class":"col-lg-12 text-start p-0"},ProductFeaturesTable()),langdetect=='en'&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer45=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer45===void 0||(_fetchProductInfoQuer45=_fetchProductInfoQuer45.data)===null||_fetchProductInfoQuer45===void 0||(_fetchProductInfoQuer45=_fetchProductInfoQuer45.productinfo)===null||_fetchProductInfoQuer45===void 0?void 0:_fetchProductInfoQuer45.short_description_en)!=null&§ionproperties.descriptionstyle=='Style 1'&§ionproperties.showshortdescription=='Show'&&/*#__PURE__*/React.createElement("div",{"class":"col-lg-12 p-0"},/*#__PURE__*/React.createElement("div",{"class":"col-lg-12 p-0 d-flex justify-content-start"},/*#__PURE__*/React.createElement("p",{className:'text-black m-0 p-0 wordbreak',style:{textAlign:langdetect=='en'?'left':'right'},dangerouslySetInnerHTML:{__html:fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer46=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer46===void 0||(_fetchProductInfoQuer46=_fetchProductInfoQuer46.data)===null||_fetchProductInfoQuer46===void 0||(_fetchProductInfoQuer46=_fetchProductInfoQuer46.productinfo)===null||_fetchProductInfoQuer46===void 0?void 0:_fetchProductInfoQuer46.short_description_en}}))),langdetect=='ar'&§ionproperties.showshortdescription=='Show'&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer47=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer47===void 0||(_fetchProductInfoQuer47=_fetchProductInfoQuer47.data)===null||_fetchProductInfoQuer47===void 0||(_fetchProductInfoQuer47=_fetchProductInfoQuer47.productinfo)===null||_fetchProductInfoQuer47===void 0?void 0:_fetchProductInfoQuer47.short_description_ar)!=null&§ionproperties.descriptionstyle=='Style 1'&&/*#__PURE__*/React.createElement("div",{"class":"col-lg-12 p-0"},/*#__PURE__*/React.createElement("div",{"class":"col-lg-12 p-0 d-flex justify-content-start"},/*#__PURE__*/React.createElement("p",{className:'text-black m-0 p-0 wordbreak',style:{textAlign:langdetect=='en'?'left':'right'},dangerouslySetInnerHTML:{__html:fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer48=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer48===void 0||(_fetchProductInfoQuer48=_fetchProductInfoQuer48.data)===null||_fetchProductInfoQuer48===void 0||(_fetchProductInfoQuer48=_fetchProductInfoQuer48.productinfo)===null||_fetchProductInfoQuer48===void 0?void 0:_fetchProductInfoQuer48.short_description_ar}}))),(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer49=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer49===void 0||(_fetchProductInfoQuer49=_fetchProductInfoQuer49.data)===null||_fetchProductInfoQuer49===void 0||(_fetchProductInfoQuer49=_fetchProductInfoQuer49.productinfo)===null||_fetchProductInfoQuer49===void 0?void 0:_fetchProductInfoQuer49.vendorinfo)!=null&§ionproperties.showvendor=='Show'&&/*#__PURE__*/React.createElement("div",{"class":"col-lg-12 p-0 d-flex justify-content-start align-items-center mt-2 mb-3"},(authdetailsContext===null||authdetailsContext===void 0||(_authdetailsContext$i12=authdetailsContext.instinfo)===null||_authdetailsContext$i12===void 0?void 0:_authdetailsContext$i12.contactinfo.instid)=='683c163d7f996'&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer50=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer50===void 0||(_fetchProductInfoQuer50=_fetchProductInfoQuer50.data)===null||_fetchProductInfoQuer50===void 0||(_fetchProductInfoQuer50=_fetchProductInfoQuer50.productinfo)===null||_fetchProductInfoQuer50===void 0?void 0:_fetchProductInfoQuer50.vendorinfo.vendorlogourl)!=null&&/*#__PURE__*/React.createElement("div",{"class":productinfo_cssstyles.vendorlogo,style:{}},/*#__PURE__*/React.createElement(Imagekitimagecomp,{urlEndpoint:ikimagecredcontext===null||ikimagecredcontext===void 0?void 0:ikimagecredcontext.ikimageendpoint,publicKey:ikimagecredcontext===null||ikimagecredcontext===void 0?void 0:ikimagecredcontext.ikimagepublickey,path:fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer51=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer51===void 0||(_fetchProductInfoQuer51=_fetchProductInfoQuer51.data)===null||_fetchProductInfoQuer51===void 0||(_fetchProductInfoQuer51=_fetchProductInfoQuer51.productinfo)===null||_fetchProductInfoQuer51===void 0?void 0:_fetchProductInfoQuer51.vendorinfo.vendorlogourl,loading:"lazy",style:{width:'100%',height:'100%',objectFit:'contain',border:'1px solid #ccc',borderRadius:100}})),/*#__PURE__*/React.createElement("p",{"class":"".concat(productinfo_cssstyles.productname," ").concat(productinfo_cssstyles.productnamehover)+' m-0 p-0 ',style:{cursor:sectionproperties.vendornameclickable=='Yes'?'pointer':'',fontSize:14},onClick:function onClick(){if(sectionproperties.vendornameclickable=='Yes'){var _fetchProductInfoQuer52;routingcountext(StaticPagesLinksContext.GeneralProductsComponent,true,encodeURIComponent(JSON.stringify({vendorsarr:[fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer52=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer52===void 0||(_fetchProductInfoQuer52=_fetchProductInfoQuer52.data)===null||_fetchProductInfoQuer52===void 0||(_fetchProductInfoQuer52=_fetchProductInfoQuer52.productinfo)===null||_fetchProductInfoQuer52===void 0||(_fetchProductInfoQuer52=_fetchProductInfoQuer52.vendorinfo)===null||_fetchProductInfoQuer52===void 0?void 0:_fetchProductInfoQuer52.vendorid]})));}}},(authdetailsContext===null||authdetailsContext===void 0||(_authdetailsContext$i13=authdetailsContext.instinfo)===null||_authdetailsContext$i13===void 0?void 0:_authdetailsContext$i13.contactinfo.instid)!='683c163d7f996'&&(authdetailsContext===null||authdetailsContext===void 0||(_authdetailsContext$i14=authdetailsContext.instinfo)===null||_authdetailsContext$i14===void 0?void 0:_authdetailsContext$i14.contactinfo.instid)!='67f3c23abb18f'&&(authdetailsContext===null||authdetailsContext===void 0||(_authdetailsContext$i15=authdetailsContext.instinfo)===null||_authdetailsContext$i15===void 0?void 0:_authdetailsContext$i15.contactinfo.instid)!='6805437ab0f3b'&&/*#__PURE__*/React.createElement("span",null," ",langdetect=='en'?sectionproperties.vendortitleen:sectionproperties.vendortitlear,": "),/*#__PURE__*/React.createElement("span",{style:{fontWeight:600,textDecoration:(authdetailsContext===null||authdetailsContext===void 0||(_authdetailsContext$i16=authdetailsContext.instinfo)===null||_authdetailsContext$i16===void 0?void 0:_authdetailsContext$i16.contactinfo.instid)=='67f3c23abb18f'?'underline':'none'}},fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer53=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer53===void 0||(_fetchProductInfoQuer53=_fetchProductInfoQuer53.data)===null||_fetchProductInfoQuer53===void 0||(_fetchProductInfoQuer53=_fetchProductInfoQuer53.productinfo)===null||_fetchProductInfoQuer53===void 0||(_fetchProductInfoQuer53=_fetchProductInfoQuer53.vendorinfo)===null||_fetchProductInfoQuer53===void 0?void 0:_fetchProductInfoQuer53.vendorname))),sectionproperties.showSKU=='Show'&§ionproperties.skuposition=='Bottom'&&/*#__PURE__*/React.createElement("div",{"class":sectionproperties.deliverytimeshow=='Show'&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer54=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer54===void 0||(_fetchProductInfoQuer54=_fetchProductInfoQuer54.data)===null||_fetchProductInfoQuer54===void 0||(_fetchProductInfoQuer54=_fetchProductInfoQuer54.productinfo)===null||_fetchProductInfoQuer54===void 0?void 0:_fetchProductInfoQuer54.deliverydatetext)!=null?'col-lg-12 p-0 mb-2 d-flex justify-content-start':'col-lg-12 p-0 mb-3 d-flex justify-content-start'},ProductsSKUContainer()),sectionproperties.showvendor=='Show'&§ionproperties.showfeatures=='Show'&§ionproperties.featuresposition=='Under Name'&§ionproperties.featurestyle=='Table'&&/*#__PURE__*/React.createElement("div",{"class":"col-lg-12 text-start p-0"},ProductFeaturesTable()),(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer55=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer55===void 0||(_fetchProductInfoQuer55=_fetchProductInfoQuer55.data)===null||_fetchProductInfoQuer55===void 0||(_fetchProductInfoQuer55=_fetchProductInfoQuer55.productinfo)===null||_fetchProductInfoQuer55===void 0?void 0:_fetchProductInfoQuer55.currentquantity)<1&§ionproperties.showoutofstock=='Show'&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer56=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer56===void 0||(_fetchProductInfoQuer56=_fetchProductInfoQuer56.data)===null||_fetchProductInfoQuer56===void 0||(_fetchProductInfoQuer56=_fetchProductInfoQuer56.productinfo)===null||_fetchProductInfoQuer56===void 0?void 0:_fetchProductInfoQuer56.quantavailtype)=='limit'&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer57=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer57===void 0||(_fetchProductInfoQuer57=_fetchProductInfoQuer57.data)===null||_fetchProductInfoQuer57===void 0||(_fetchProductInfoQuer57=_fetchProductInfoQuer57.productinfo)===null||_fetchProductInfoQuer57===void 0?void 0:_fetchProductInfoQuer57.hasvariants)==0&&/*#__PURE__*/React.createElement("div",{"class":"col-lg-12 p-0 d-flex justify-content-start mb-2"},/*#__PURE__*/React.createElement("div",{"class":"".concat(productinfo_cssstyles.outstockbadge)+' allcentered '},/*#__PURE__*/React.createElement("p",{"class":"m-0 p-0"},langdetect=='en'?sectionproperties.outstock_contenten:sectionproperties.outstock_contentar))),sectionproperties.deliverytimeshow=='Show'&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer58=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer58===void 0||(_fetchProductInfoQuer58=_fetchProductInfoQuer58.data)===null||_fetchProductInfoQuer58===void 0||(_fetchProductInfoQuer58=_fetchProductInfoQuer58.productinfo)===null||_fetchProductInfoQuer58===void 0?void 0:_fetchProductInfoQuer58.deliverydatetext)!=null&&/*#__PURE__*/React.createElement("div",{"class":"mb-4 col-lg-12 allcentered",style:{width:'100%',backgroundColor:sectionproperties.deliverytimecontainerBg,paddingLeft:sectionproperties.deliverytimecontainerpaddinghorizontal+'px',paddingRight:sectionproperties.deliverytimecontainerpaddinghorizontal+'px',paddingTop:sectionproperties.deliverytimecontainerpaddingvertical+'px',paddingBottom:sectionproperties.deliverytimecontainerpaddingvertical+'px',border:sectionproperties.deliverytimecontainerborderwidth+'px solid '+sectionproperties.deliverytimecontainerbordercolor,borderRadius:sectionproperties.deliverytimecontainerborderradius+'px',fontSize:sectionproperties.deliverytimecontainerfontsize+'px',fontWeight:sectionproperties.deliverytimecontainerfontWeight,marginTop:15}},/*#__PURE__*/React.createElement("p",{"class":"m-0 p-0 ",style:{textAlign:langdetect=='en'?'left':'right',color:sectionproperties.deliverytimecontainercolor}},sectionproperties.showdeliverytitle=='Show'&&/*#__PURE__*/React.createElement("span",null,langdetect=='en'?sectionproperties.deliverycontent_en:sectionproperties.deliverycontent_ar,": "),' ',fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer59=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer59===void 0||(_fetchProductInfoQuer59=_fetchProductInfoQuer59.data)===null||_fetchProductInfoQuer59===void 0||(_fetchProductInfoQuer59=_fetchProductInfoQuer59.productinfo)===null||_fetchProductInfoQuer59===void 0?void 0:_fetchProductInfoQuer59.deliverydatetext)),sectionproperties.descriptionposition!='Under Name'&§ionproperties.descriptionposition=='Top'&§ionproperties.descriptionstyle=='Style 1'&§ionproperties.prodCatShow=='Show'&&/*#__PURE__*/React.createElement("div",{"class":"col-lg-12 p-0"},/*#__PURE__*/React.createElement(DescriptionContent,{actions:props.actions,srcfromprops:'undername'})),sectionproperties.defaultpricingposition=='Under Description'&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer60=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer60===void 0||(_fetchProductInfoQuer60=_fetchProductInfoQuer60.data)===null||_fetchProductInfoQuer60===void 0||(_fetchProductInfoQuer60=_fetchProductInfoQuer60.productinfo)===null||_fetchProductInfoQuer60===void 0?void 0:_fetchProductInfoQuer60.isproducttobesold)==1&&/*#__PURE__*/React.createElement(ProductHeaderPricing,{actions:props.actions}),/*#__PURE__*/React.createElement(Variantoptions,{actions:props.actions}),/*#__PURE__*/React.createElement(ProductExtras,{actions:props.actions,srcfromprops:'servicestyle2',addtocartfunc:addtocartfunc}),sectionproperties.showextrafield=='Show'&&/*#__PURE__*/React.createElement(ProductExtraFields,{actions:props.actions}),sectionproperties.gallerystyle!='Style 1'&§ionproperties.prodCatShow=='Show'&§ionproperties.descriptionposition!='Top'&&/*#__PURE__*/React.createElement(DescriptionContent,{actions:props.actions}),(authdetailsContext===null||authdetailsContext===void 0||(_authdetailsContext$i17=authdetailsContext.instinfo)===null||_authdetailsContext$i17===void 0?void 0:_authdetailsContext$i17.contactinfo.instid)=='68ada0669b7c7'&&/*#__PURE__*/React.createElement("div",{"class":"col-lg-12 p-0"},/*#__PURE__*/React.createElement(ProductFileUploader,{actions:props.actions})),sectionproperties.showfeatures=='Show'&§ionproperties.featuresposition!='Under Name'&§ionproperties.featuresposition=='Under Description'&§ionproperties.featurestyle!='Table'&&/*#__PURE__*/React.createElement("div",{"class":"col-lg-12 text-start p-md-0 mb-3"},ProductFeaturesArray()),/*#__PURE__*/React.createElement("div",{className:"col-lg-12 p-0 mb-3",style:{// display: sectionproperties.quantitybtn_show == 'Hide' && sectionproperties.cartBtnShow == 'Hide' ? 'none' : 'flex',
|
|
4010
4010
|
}},/*#__PURE__*/React.createElement("div",{className:"row mx-0 w-100 d-flex align-items-center",style:{marginTop:sectionproperties.ctabuttnnsmarginvertical+'px',marginBottom:sectionproperties.ctabuttnnsmarginvertical+'px'}},(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer61=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer61===void 0||(_fetchProductInfoQuer61=_fetchProductInfoQuer61.data)===null||_fetchProductInfoQuer61===void 0||(_fetchProductInfoQuer61=_fetchProductInfoQuer61.productinfo)===null||_fetchProductInfoQuer61===void 0?void 0:_fetchProductInfoQuer61.isproducttobesold)==1&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer62=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer62===void 0||(_fetchProductInfoQuer62=_fetchProductInfoQuer62.data)===null||_fetchProductInfoQuer62===void 0||(_fetchProductInfoQuer62=_fetchProductInfoQuer62.productinfo)===null||_fetchProductInfoQuer62===void 0?void 0:_fetchProductInfoQuer62.isproducthasquantitychange)==1&§ionproperties.quantitybtn_show=='Show'&&/*#__PURE__*/React.createElement("div",{className:"col-lg-12 p-0 mb-2 d-flex justofy-content-start"},/*#__PURE__*/React.createElement("p",{className:"m-0 p-0",style:{color:sectionproperties.generaltext_fontColor,fontSize:sectionproperties.generaltext_fontSize+'px',textTransform:sectionproperties.generaltext_textTransform,fontWeight:sectionproperties.generaltext_fontWeight}},langdetect=='en'?sectionproperties.quantitybtnen:sectionproperties.quantitybtnar,":")),/*#__PURE__*/React.createElement("div",{"class":"col-lg-12 p-0"},/*#__PURE__*/React.createElement("div",{"class":"row m-0 w-100 d-flex align-items-center",style:{justifyContent:sectionproperties.cartbtncentered=='Centered'?'center':'start'}},sectionproperties.quantitybtn_show=='Show'&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer63=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer63===void 0||(_fetchProductInfoQuer63=_fetchProductInfoQuer63.data)===null||_fetchProductInfoQuer63===void 0||(_fetchProductInfoQuer63=_fetchProductInfoQuer63.productinfo)===null||_fetchProductInfoQuer63===void 0?void 0:_fetchProductInfoQuer63.isproducttobesold)==1&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer64=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer64===void 0||(_fetchProductInfoQuer64=_fetchProductInfoQuer64.data)===null||_fetchProductInfoQuer64===void 0||(_fetchProductInfoQuer64=_fetchProductInfoQuer64.productinfo)===null||_fetchProductInfoQuer64===void 0?void 0:_fetchProductInfoQuer64.isproducthasquantitychange)==1&&QuantityButton(),sectionproperties.cartbtnalone=='Besides Other Buttons'&§ionproperties.cartBtnShow=='Show'&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer65=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer65===void 0||(_fetchProductInfoQuer65=_fetchProductInfoQuer65.data)===null||_fetchProductInfoQuer65===void 0||(_fetchProductInfoQuer65=_fetchProductInfoQuer65.productinfo)===null||_fetchProductInfoQuer65===void 0?void 0:_fetchProductInfoQuer65.isproducttobesold)==1&&/*#__PURE__*/React.createElement("button",{className:"".concat(productinfo_cssstyles.cart_btn," ")+' ml-2 d-flex align-items-center justify-content-center mb-sm-2 ',style:{width:sectionproperties.cartBtnWidth==100?'auto':sectionproperties.cartBtnWidth+'%',flex:sectionproperties.cartBtnWidth==100?1:''},onClick:function onClick(){if(fetchProductInfoQueryContext.data.data.productinfo.product_calltoaction=='Call'){var _fetchProductInfoQuer66;window.open('tel:'+((_fetchProductInfoQuer66=fetchProductInfoQueryContext.data.data.productinfo)===null||_fetchProductInfoQuer66===void 0?void 0:_fetchProductInfoQuer66.product_phonenumber),'_blank');}else {if(fetchProductInfoQueryContext.data.data.productinfo.maximumproductquant>=addtocardpayloadobj.quantity&&fetchProductInfoQueryContext.data.data.productinfo.minimumproductquant<=addtocardpayloadobj.quantity){addtocartfunc();}else {NotificationManager.warning('',lang.maximum+': '+fetchProductInfoQueryContext.data.data.productinfo.maximumproductquant+', '+lang.minimum+': '+fetchProductInfoQueryContext.data.data.productinfo.minimumproductquant);}}},disabled:AddtoCartMutationContext.isLoading==true?true:false},!AddtoCartMutationContext.isLoading&&/*#__PURE__*/React.createElement("span",{className:' d-flex align-items-center justify-content-center ',style:{fontWeight:sectionproperties.cartBtnTextfontweight}},/*#__PURE__*/React.createElement("i",{className:langdetect=='en'?'h-100 d-flex align-items-center justify-content-center mr-2':'h-100 d-flex align-items-center justify-content-center ml-2'},sectionproperties.carticonstyle=='Shopping bag 1'&&/*#__PURE__*/React.createElement(FiShoppingBag,{className:"",size:sectionproperties.cartBtn_iconFontSize}),sectionproperties.carticonstyle=='Shopping bag 2'&&/*#__PURE__*/React.createElement(CgShoppingBag,{className:"",size:sectionproperties.cartBtn_iconFontSize}),sectionproperties.carticonstyle=='Shopping bag 3'&&/*#__PURE__*/React.createElement(BsBag,{className:"",size:sectionproperties.cartBtn_iconFontSize}),sectionproperties.carticonstyle=='Shopping bag 4'&&/*#__PURE__*/React.createElement(IoBagHandleOutline,{className:"",size:sectionproperties.cartBtn_iconFontSize}),sectionproperties.carticonstyle=='Shopping cart 1'&&/*#__PURE__*/React.createElement(FiShoppingCart,{className:"",size:sectionproperties.cartBtn_iconFontSize}),sectionproperties.carticonstyle=='Shopping cart 2'&&/*#__PURE__*/React.createElement(MdAddShoppingCart,{size:sectionproperties.cartBtn_iconFontSize})),langdetect=='en'?fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer67=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer67===void 0||(_fetchProductInfoQuer67=_fetchProductInfoQuer67.data)===null||_fetchProductInfoQuer67===void 0||(_fetchProductInfoQuer67=_fetchProductInfoQuer67.productinfo)===null||_fetchProductInfoQuer67===void 0?void 0:_fetchProductInfoQuer67.productactionbuttontext_en:fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer68=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer68===void 0||(_fetchProductInfoQuer68=_fetchProductInfoQuer68.data)===null||_fetchProductInfoQuer68===void 0||(_fetchProductInfoQuer68=_fetchProductInfoQuer68.productinfo)===null||_fetchProductInfoQuer68===void 0?void 0:_fetchProductInfoQuer68.productactionbuttontext_ar),AddtoCartMutationContext.isLoading&&/*#__PURE__*/React.createElement("div",{className:' d-flex align-items-center justify-content-center '},/*#__PURE__*/React.createElement(CircularProgress,{color:sectionproperties.cartBtnTextcolor,width:"20px",height:"20px",duration:"1s"}))),sectionproperties.btnposition=='Bottom'&§ionproperties.favBtnShow=='Show'&&/*#__PURE__*/React.createElement("div",{className:productinfo_cssstyles.wishlist_btn+' d-flex justify-content-center align-items-center mb-sm-2 ',onClick:function onClick(){addtofavoritescontext(fetchProductInfoQueryContext.data.data.productinfo.productid);setIsFavorite(!IsFavorite);},style:{background:fetchProductInfoQueryContext.data.data.productinfo.IsFavExists==true?sectionproperties.activebgcolor:''}},/*#__PURE__*/React.createElement("i",{className:"h-100 d-flex align-items-center justify-content-center"},IsFavorite&&/*#__PURE__*/React.createElement("i",{className:"h-100 d-flex align-items-center justify-content-center"},sectionproperties.faviconshape=='Star Shape'&&/*#__PURE__*/React.createElement(AiFillStar$1,{size:sectionproperties.favBtnIconfontsize,style:{color:sectionproperties.activefaviconcolor}}),sectionproperties.faviconshape=='Heart Shape'&&/*#__PURE__*/React.createElement(FaHeart$1,{size:sectionproperties.favBtnIconfontsize,style:{color:sectionproperties.activefaviconcolor}})),!IsFavorite&&/*#__PURE__*/React.createElement("i",{className:"h-100 d-flex align-items-center justify-content-center"},sectionproperties.faviconshape=='Star Shape'&&/*#__PURE__*/React.createElement(AiOutlineStar,{size:sectionproperties.favBtnIconfontsize}),sectionproperties.faviconshape=='Heart Shape'&&/*#__PURE__*/React.createElement(FaRegHeart,{size:sectionproperties.favBtnIconfontsize}))),!IsFavorite&§ionproperties.favBtnTextfontsize!=0&&/*#__PURE__*/React.createElement("p",{"class":"m-0 p-0",style:{fontSize:sectionproperties.favBtnTextfontsize+'px'}},langdetect=='en'?sectionproperties.favbtncontent_en:sectionproperties.favbtncontent_ar),IsFavorite&§ionproperties.favBtnTextfontsize!=0&&/*#__PURE__*/React.createElement("p",{"class":"m-0 p-0",style:{fontSize:sectionproperties.favBtnTextfontsize+'px'}},langdetect=='en'?sectionproperties.favbtnaddedcontent_en:sectionproperties.favbtnaddedcontent_ar)),(authdetailsContext===null||authdetailsContext===void 0||(_authdetailsContext$i18=authdetailsContext.instinfo)===null||_authdetailsContext$i18===void 0?void 0:_authdetailsContext$i18.contactinfo.instid)=='694befd291698'&&/*#__PURE__*/React.createElement("div",{"class":"col-12 p-0 mt-3"},/*#__PURE__*/React.createElement("button",{className:sectionproperties.cartbtntramsitionafterwhile=='Yes'?"".concat(productinfo_cssstyles.cart_btn," ")+' d-flex align-items-center justify-content-center mb-sm-2 cart_btnvibrate ':"".concat(productinfo_cssstyles.cart_btn," ")+' d-flex align-items-center justify-content-center mb-sm-2 ',style:{width:'100%'},onClick:function onClick(){var productId=fetchProductInfoQueryContext.data.data.productinfo.productid;// Replace this with a real ID (e.g., passed via props)
|
|
4011
4011
|
var key='comparedProducts';// Get current list from localStorage
|
|
4012
4012
|
var existing=JSON.parse(localStorage.getItem(key))||[];// Check if the product is already in the list
|
|
@@ -28085,20 +28085,20 @@ var headerstyles$g = {"header_container":"modernheader-module_header_container__
|
|
|
28085
28085
|
styleInject(css_248z$C);
|
|
28086
28086
|
|
|
28087
28087
|
var Searchlist$1 = function Searchlist(props) {
|
|
28088
|
-
props.actions.lang;
|
|
28088
|
+
var lang = props.actions.lang;
|
|
28089
28089
|
var langdetect = props.actions.langdetect;
|
|
28090
|
-
props.actions.routingcountext;
|
|
28091
|
-
props.actions.StaticPagesLinksContext;
|
|
28090
|
+
var routingcountext = props.actions.routingcountext;
|
|
28091
|
+
var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
|
|
28092
28092
|
var SearchHeaderInputContext = props.actions.SearchHeaderInputContext;
|
|
28093
|
-
props.actions.SearchHeaderMutationContext;
|
|
28094
|
-
props.actions.ikimagecredcontext;
|
|
28095
|
-
props.actions.authdetailsContext;
|
|
28093
|
+
var SearchHeaderMutationContext = props.actions.SearchHeaderMutationContext;
|
|
28094
|
+
var ikimagecredcontext = props.actions.ikimagecredcontext;
|
|
28095
|
+
var authdetailsContext = props.actions.authdetailsContext;
|
|
28096
28096
|
var _useState = useState(''),
|
|
28097
28097
|
_useState2 = _slicedToArray(_useState, 2),
|
|
28098
28098
|
sectionproperties = _useState2[0],
|
|
28099
28099
|
setsectionproperties = _useState2[1];
|
|
28100
|
-
props.actions.setSearchHeaderInputContext;
|
|
28101
|
-
props.actions.setsearchbarCanvasContext;
|
|
28100
|
+
var setSearchHeaderInputContext = props.actions.setSearchHeaderInputContext;
|
|
28101
|
+
var setsearchbarCanvasContext = props.actions.setsearchbarCanvasContext;
|
|
28102
28102
|
var _useState3 = useState(props.srcfromprops == 'cardssection' ? props.searchinputprops : SearchHeaderInputContext),
|
|
28103
28103
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
28104
28104
|
searchinput = _useState4[0],
|
|
@@ -28116,7 +28116,7 @@ var Searchlist$1 = function Searchlist(props) {
|
|
|
28116
28116
|
setsearchinput(props.searchinputprops);
|
|
28117
28117
|
}
|
|
28118
28118
|
}, [props.searchinputprops]);
|
|
28119
|
-
|
|
28119
|
+
var searchlist_styles = {
|
|
28120
28120
|
searchcont: css({
|
|
28121
28121
|
color: sectionproperties.searchlist_prodNameColor,
|
|
28122
28122
|
':hover': {
|
|
@@ -28174,13 +28174,151 @@ var Searchlist$1 = function Searchlist(props) {
|
|
|
28174
28174
|
// height: props.srcfromprops == 'searchlistsliderheaderfullwidth' ? '100vh' : props.srcfromprops == 'cardssection' ? '25vh' : '30vh',
|
|
28175
28175
|
// overflowY: props.srcfromprops == 'searchlistsliderheaderfullwidth' ? 'scroll' : 'hidden',
|
|
28176
28176
|
})
|
|
28177
|
-
}
|
|
28177
|
+
};
|
|
28178
28178
|
return /*#__PURE__*/React.createElement("div", {
|
|
28179
28179
|
className: "col-lg-12 p-0 m-0 w-100 allcentered",
|
|
28180
28180
|
style: {
|
|
28181
28181
|
zIndex: 1000
|
|
28182
28182
|
}
|
|
28183
|
-
},
|
|
28183
|
+
}, sectionproperties.length != 0 && searchinput != undefined && searchinput != null && searchinput.length != 0 && /*#__PURE__*/React.createElement("div", {
|
|
28184
|
+
className: props.srcfromprops == 'header' ? "".concat(searchlist_styles.searchlist_outercontainer) + ' m-0 row d-flex d-md-none justify-content-center p-1 ' : "".concat(searchlist_styles.searchlist_outercontainer) + ' m-0 row d-flex justify-content-center p-1 ',
|
|
28185
|
+
style: {
|
|
28186
|
+
zIndex: 1000,
|
|
28187
|
+
width: props.srcfromprops == 'header' ? '300px' : props.srcfromprops == 'headerfullwidth' ? '100%' : props.srcfromprops == 'searchlistsliderheaderfullwidth' ? '100%' : props.srcfromprops == 'headerfullwidth-200' ? '270px' : props.srcfromprops == 'respheader' ? '100%' : props.srcfromprops == 'header-400' ? '400px' : props.srcfromprops == 'header-250' ? '250px' : props.srcfromprops == 'header-300' ? '300px' : props.srcfromprops == 'StylishHeader' || props.srcfromprops == 'modernheader' ? '90%' : props.srcfromprops == 'ElegantHeader' ? '90%' : '100%',
|
|
28188
|
+
top: props.headernameprops == 'categoryfeaturingheader' || props.headernameprops == 'Header_threesectionslogocentered' ? 20 : props.srcfromprops == 'respheader' ? 10 : props.srcfromprops == 'StylishHeader' || props.srcfromprops == 'modernheader' ? 50 : props.srcfromprops == 'ElegantHeader' ? 50 : 10,
|
|
28189
|
+
left: props.srcfromprops == 'respheader' ? 0 : props.srcfromprops == 'header-400' || props.srcfromprops == 'header-300' || props.srcfromprops == 'header-250' ? langdetect == 'en' ? '' : 0 : props.srcfromprops == 'StylishHeader' || props.srcfromprops == 'modernheader' ? langdetect == 'en' ? '5%' : '' : props.srcfromprops == 'ElegantHeader' ? langdetect == 'en' ? '5%' : '' : '',
|
|
28190
|
+
right: props.srcfromprops == 'respheader' ? 0 : props.srcfromprops == 'header-400' || props.srcfromprops == 'header-300' || props.srcfromprops == 'header-250' ? langdetect == 'en' ? 0 : '' : props.srcfromprops == 'ElegantHeader' ? langdetect == 'ar' ? '5%' : '' : props.srcfromprops == 'Elegant' ? langdetect == 'ar' ? '5%' : '' : '',
|
|
28191
|
+
margin: props.srcfromprops == 'respheader' ? 'auto' : ''
|
|
28192
|
+
}
|
|
28193
|
+
}, SearchHeaderMutationContext.isLoading && /*#__PURE__*/React.createElement("div", {
|
|
28194
|
+
"class": "row m-0 w-100 d-flex align-items-center justify-content-center h-100 mt-auto mb-auto"
|
|
28195
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
28196
|
+
"class": "col-lg-12 d-flex align-items-center justify-content-center flex-column h-100"
|
|
28197
|
+
}, /*#__PURE__*/React.createElement(Messaging, {
|
|
28198
|
+
color: "#ccc",
|
|
28199
|
+
width: "10px",
|
|
28200
|
+
height: "10px",
|
|
28201
|
+
duration: "1s"
|
|
28202
|
+
}))), !SearchHeaderMutationContext.isLoading && SearchHeaderMutationContext.isSuccess && /*#__PURE__*/React.createElement("div", {
|
|
28203
|
+
"class": props.srcfromprops == 'searchlistsliderheaderfullwidth' ? ' row m-0 w-100 d-flex justify-content-center ' : "".concat(searchlist_styles.searchlist_innercontainer) + ' subscrollbar row m-0 w-100 d-flex justify-content-center ',
|
|
28204
|
+
style: {
|
|
28205
|
+
overflowX: 'hidden',
|
|
28206
|
+
paddingBottom: props.srcfromprops == 'searchlistsliderheaderfullwidth' ? '50px' : '0.25rem'
|
|
28207
|
+
}
|
|
28208
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
28209
|
+
"class": "col-lg-12 m-0 w-100 p-0"
|
|
28210
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
28211
|
+
"class": "row m-0 w-100"
|
|
28212
|
+
}, SearchHeaderMutationContext.data.data.products.map(function (item, index) {
|
|
28213
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
28214
|
+
"class": sectionproperties.searchliststyle == 'Vertical' ? 'col-lg-12 m-0 w-100 p-1 pt-0 pb-0' : 'col-lg-12 m-0 w-100 p-1 pt-0 pb-0 d-none d-md-flex',
|
|
28215
|
+
style: {
|
|
28216
|
+
zIndex: 1000
|
|
28217
|
+
},
|
|
28218
|
+
onClick: function onClick() {
|
|
28219
|
+
routingcountext(StaticPagesLinksContext.productinfo, true, item.productid);
|
|
28220
|
+
setSearchHeaderInputContext('');
|
|
28221
|
+
setsearchinput('');
|
|
28222
|
+
setsearchbarCanvasContext(false);
|
|
28223
|
+
}
|
|
28224
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
28225
|
+
"class": "".concat(searchlist_styles.searchcont) + ' col-lg-12 col-md-12 d-flex p-0 cursor-pointer '
|
|
28226
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
28227
|
+
"class": searchlist_styles.imagecont
|
|
28228
|
+
}, /*#__PURE__*/React.createElement(Imagekitimagecomp, {
|
|
28229
|
+
urlEndpoint: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint,
|
|
28230
|
+
publicKey: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimagepublickey,
|
|
28231
|
+
path: '/tr:w-' + sectionproperties.searchlistimagetr_w + ',h-' + sectionproperties.searchlistimagetr_h + '/' + item.defaultimagepath,
|
|
28232
|
+
loading: "lazy",
|
|
28233
|
+
style: {
|
|
28234
|
+
height: '100%',
|
|
28235
|
+
width: '100%',
|
|
28236
|
+
objectFit: 'contain',
|
|
28237
|
+
borderRadius: sectionproperties.searchlist_prodimage_borderradius + 'px'
|
|
28238
|
+
}
|
|
28239
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
28240
|
+
"class": props.srcfromprops == 'StylishHeader' || props.srcfromprops == 'modernheader' ? searchlist_styles.productnamecont + ' col-lg-11 col-md-11 col-sm-9 d-flex ' : props.srcfromprops == 'searchlistsliderheaderfullwidth' ? searchlist_styles.productnamecont + ' col-lg-9 col-md-10 col-sm-9 d-flex ' : searchlist_styles.productnamecont + ' col-lg-10 col-md-11 col-sm-9 d-flex ',
|
|
28241
|
+
style: {
|
|
28242
|
+
alignItems: sectionproperties.searchlistshowprice == 'Show' ? 'start' : 'center'
|
|
28243
|
+
}
|
|
28244
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
28245
|
+
"class": props.srcfromprops == 'searchlistsliderheaderfullwidth' ? 'row m-0 w-100 d-flex' : 'row m-0 w-100 d-flex',
|
|
28246
|
+
style: {
|
|
28247
|
+
alignItems: sectionproperties.searchlistshowprice == 'Show' ? 'start' : 'center'
|
|
28248
|
+
}
|
|
28249
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
28250
|
+
"class": "col-lg-12 col-md-12 col-sm-12 p-0 d-flex align-items-start"
|
|
28251
|
+
}, /*#__PURE__*/React.createElement("p", {
|
|
28252
|
+
"class": "".concat(searchlist_styles.productNameStyles) + ' m-0 text-overflow p-0 '
|
|
28253
|
+
}, langdetect == 'en' ? item.name_en : item.name_ar)), sectionproperties.searchlistshowprice == 'Show' && /*#__PURE__*/React.createElement("div", {
|
|
28254
|
+
"class": "col-lg-12 col-md-12 col-sm-12 p-0 d-flex align-items-center",
|
|
28255
|
+
style: {
|
|
28256
|
+
marginTop: sectionproperties.pricingmargintop != undefined ? sectionproperties.pricingmargintop + 'px' : '-0.25rem',
|
|
28257
|
+
display: 'row'
|
|
28258
|
+
}
|
|
28259
|
+
}, /*#__PURE__*/React.createElement("p", {
|
|
28260
|
+
"class": "".concat(searchlist_styles.productPricestyles) + ' m-0 '
|
|
28261
|
+
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', " ", item.hassale == 1 ? item.defaultsaleprice : item.defaultprice, ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar), item.hassale == 1 && /*#__PURE__*/React.createElement("p", {
|
|
28262
|
+
"class": props.srcfromprops == 'searchlistsliderheaderfullwidth' ? "".concat(searchlist_styles.productSalePricestyles) + ' linethrough mb-0 ml-2 mr-2' : "".concat(searchlist_styles.productSalePricestyles) + ' linethrough ml-2 mr-2 mb-0'
|
|
28263
|
+
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', " ", item.defaultprice, ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar))))), index != SearchHeaderMutationContext.data.data.products.length - 1 && /*#__PURE__*/React.createElement("div", {
|
|
28264
|
+
className: "col-lg-12 col-md-12 p-0"
|
|
28265
|
+
}, /*#__PURE__*/React.createElement("hr", {
|
|
28266
|
+
className: "mt-2 mb-1"
|
|
28267
|
+
})));
|
|
28268
|
+
}), sectionproperties.searchliststyle == 'Cards' && SearchHeaderMutationContext.data.data.products.map(function (item, index) {
|
|
28269
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
28270
|
+
"class": (props === null || props === void 0 ? void 0 : props.numofcardsprops) != undefined ? ' m-0 w-100 mb-3 d-flex d-md-none col-lg-' + (props === null || props === void 0 ? void 0 : props.numofcardsprops) : 'col-lg-4 m-0 w-100 mb-3 d-flex d-md-none',
|
|
28271
|
+
style: {
|
|
28272
|
+
zIndex: 1000
|
|
28273
|
+
},
|
|
28274
|
+
onClick: function onClick() {
|
|
28275
|
+
routingcountext(StaticPagesLinksContext.productinfo, true, item.productid);
|
|
28276
|
+
setSearchHeaderInputContext('');
|
|
28277
|
+
setsearchinput('');
|
|
28278
|
+
setsearchbarCanvasContext(false);
|
|
28279
|
+
}
|
|
28280
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
28281
|
+
"class": "".concat(searchlist_styles.searchcont) + ' row m-0 w-100 cursor-pointer '
|
|
28282
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
28283
|
+
"class": ' col-lg-12 col-md-12 d-flex p-0 '
|
|
28284
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
28285
|
+
"class": searchlist_styles.imagecont + ' w-100 ',
|
|
28286
|
+
style: {
|
|
28287
|
+
borderRadius: sectionproperties.searchlist_prodimage_borderradius + 'px'
|
|
28288
|
+
}
|
|
28289
|
+
}, /*#__PURE__*/React.createElement(Imagekitimagecomp, {
|
|
28290
|
+
urlEndpoint: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint,
|
|
28291
|
+
publicKey: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimagepublickey,
|
|
28292
|
+
path: '/tr:w-' + sectionproperties.searchlistimagetr_w + ',h-' + sectionproperties.searchlistimagetr_h + '/' + item.defaultimagepath,
|
|
28293
|
+
loading: "lazy",
|
|
28294
|
+
style: {
|
|
28295
|
+
height: sectionproperties.searchlist_prodimage_width + '%',
|
|
28296
|
+
width: sectionproperties.searchlist_prodimage_width + '%',
|
|
28297
|
+
objectFit: 'contain'
|
|
28298
|
+
}
|
|
28299
|
+
}))), /*#__PURE__*/React.createElement("div", {
|
|
28300
|
+
"class": "col-lg-12 col-md-12 col-sm-12 p-0 allcentered"
|
|
28301
|
+
}, /*#__PURE__*/React.createElement("p", {
|
|
28302
|
+
"class": props.srcfromprops == 'ElegantHeader' ? "".concat(searchlist_styles.productNameStyles) + ' m-0 wordbreak wordbreak2 p-0 ' : "".concat(searchlist_styles.productNameStyles) + ' m-0 text-overflow p-0 ',
|
|
28303
|
+
style: {
|
|
28304
|
+
textAlign: 'center'
|
|
28305
|
+
}
|
|
28306
|
+
}, langdetect == 'en' ? item.name_en : item.name_ar)), sectionproperties.searchlistshowprice == 'Show' && /*#__PURE__*/React.createElement("div", {
|
|
28307
|
+
"class": "col-lg-12 col-md-12 col-sm-12 p-0 allcentered mt-2"
|
|
28308
|
+
}, /*#__PURE__*/React.createElement("p", {
|
|
28309
|
+
"class": "".concat(searchlist_styles.productPricestyles) + ' m-0 '
|
|
28310
|
+
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', " ", item.hassale == 1 ? item.defaultsaleprice : item.defaultprice, ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar), item.hassale == 1 && /*#__PURE__*/React.createElement("p", {
|
|
28311
|
+
"class": "".concat(searchlist_styles.productSalePricestyles) + ' linethrough ml-2 mr-2 mb-0'
|
|
28312
|
+
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', " ", item.defaultprice, ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar))));
|
|
28313
|
+
})), SearchHeaderMutationContext.data.data.products.length == 0 && /*#__PURE__*/React.createElement("div", {
|
|
28314
|
+
className: "row m-0 w-100 d-flex align-items-center justify-content-center h-100"
|
|
28315
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
28316
|
+
className: "col-lg-12 d-flex align-items-center justify-content-center text-light flex-column h-100"
|
|
28317
|
+
}, /*#__PURE__*/React.createElement(FiLayers, {
|
|
28318
|
+
size: 25
|
|
28319
|
+
}), /*#__PURE__*/React.createElement("p", {
|
|
28320
|
+
className: "font-13 font-weight-500"
|
|
28321
|
+
}, lang.nosearchresults)))))));
|
|
28184
28322
|
};
|
|
28185
28323
|
|
|
28186
28324
|
function ownKeys$2d(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
package/dist/index.umd.js
CHANGED
|
@@ -3863,7 +3863,7 @@
|
|
|
3863
3863
|
// : 'col-xl-6 col-lg-8 col-md-12 col-sm-12 pl-0 pr-4 p-md-0'
|
|
3864
3864
|
// : 'col-xl-12 col-lg-12 col-md-12 col-sm-12 px-3 px-md-2'
|
|
3865
3865
|
// }
|
|
3866
|
-
},/*#__PURE__*/React__default["default"].createElement("div",{className:sectionproperties.evencols=='Yes'?'row m-0 w-100':'row m-0 w-100'},sectionproperties.showmeasurementunit=='Show'&§ionproperties.measurementunitposition=='Above Name'&&MeasurementUnitSection(),sectionproperties.quantityshow=='Show'&&/*#__PURE__*/React__default["default"].createElement("div",{"class":"col-lg-12 p-0 text-start"},/*#__PURE__*/React__default["default"].createElement("p",{"class":"m-0 p-0",style:{fontSize:sectionproperties.quantityfontsize,color:sectionproperties.quantitycolor,fontWeight:sectionproperties.quantityfontweight}},langdetect=='en'?sectionproperties.qtytextinen:sectionproperties.qtytextinar,":",' ',fetchProductInfoQueryContext.data.data.productinfo.currentquantity)),/*#__PURE__*/React__default["default"].createElement("div",{className:(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer37=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer37===void 0||(_fetchProductInfoQuer37=_fetchProductInfoQuer37.data)===null||_fetchProductInfoQuer37===void 0||(_fetchProductInfoQuer37=_fetchProductInfoQuer37.productinfo)===null||_fetchProductInfoQuer37===void 0?void 0:_fetchProductInfoQuer37.productcanrate)==1?'col-lg-8 col-md-8 col-sm-8 p-0 mb-1 d-flex align-items-center':sectionproperties.btnposition=='Top'?'col-lg-8 col-md-8 col-sm-8 p-0 mb-1 d-flex align-items-center':sectionproperties.availabilitybtnposition=='Top'&§ionproperties.show_availability=='Show'?'col-lg-8 col-md-8 col-sm-8 p-0 mb-1 d-flex align-items-center':'col-lg-12 p-0 mb-1 d-flex align-items-center',style:{justifyContent:sectionproperties.productnamecentered=='Centered'?'center':'start'}},ProductNameSection()),(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer38=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer38===void 0||(_fetchProductInfoQuer38=_fetchProductInfoQuer38.data)===null||_fetchProductInfoQuer38===void 0||(_fetchProductInfoQuer38=_fetchProductInfoQuer38.productinfo)===null||_fetchProductInfoQuer38===void 0?void 0:_fetchProductInfoQuer38.productcanrate)==1&§ionproperties.showrating=='Show'&&/*#__PURE__*/React__default["default"].createElement("div",{className:"col-lg-4 col-md-4 col-sm-4 p-0 mb-1 d-flex justify-content-end align-items-center"},/*#__PURE__*/React__default["default"].createElement(ReactStars__default["default"],{count:5,value:fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer39=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer39===void 0||(_fetchProductInfoQuer39=_fetchProductInfoQuer39.data)===null||_fetchProductInfoQuer39===void 0||(_fetchProductInfoQuer39=_fetchProductInfoQuer39.productinfo)===null||_fetchProductInfoQuer39===void 0?void 0:_fetchProductInfoQuer39.productoverallrate,edit:false,size:18,emptyIcon:/*#__PURE__*/React__default["default"].createElement("i",{className:"far fa-star",style:{color:'#FAB400'}}),halfIcon:/*#__PURE__*/React__default["default"].createElement("i",{className:"fa fa-star-half-alt style={{ color: '#FAB400' }}"}),filledIcon:/*#__PURE__*/React__default["default"].createElement("i",{className:"fa fa-star",style:{color:'#FAB400'}}),activeColor:"#ffd700"})),/*#__PURE__*/React__default["default"].createElement("div",{className:"col-lg-4 col-md-4 col-sm-4 p-0 mb-1 d-flex justify-content-end align-items-center"},sectionproperties.availabilitybtnposition=='Top'&§ionproperties.show_availability=='Show'&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer40=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer40===void 0||(_fetchProductInfoQuer40=_fetchProductInfoQuer40.data)===null||_fetchProductInfoQuer40===void 0||(_fetchProductInfoQuer40=_fetchProductInfoQuer40.productinfo)===null||_fetchProductInfoQuer40===void 0?void 0:_fetchProductInfoQuer40.isproducttobesold)==1&&/*#__PURE__*/React__default["default"].createElement("div",{style:{width:sectionproperties.availability_width+'px',height:sectionproperties.availability_height+'px',background:fetchProductInfoQueryContext.data.data.productinfo.quantavailtype=='nolimit'?sectionproperties.availability_availablebgcolor:sectionproperties.availability_limitedbgcolor,borderRadius:sectionproperties.availability_borderrradius+'px',border:fetchProductInfoQueryContext.data.data.productinfo.quantavailtype=='nolimit'?sectionproperties.availability_borderwidtth+'px solid '+sectionproperties.availability_availabletextcolor:sectionproperties.availability_borderwidtth+'px solid '+sectionproperties.availability_limitedtextcolor,justifyContent:sectionproperties.availabilitytextalignment=='Centered'?'center':'start'},className:"d-flex align-items-center pl-3 pr-3 mx-2"},/*#__PURE__*/React__default["default"].createElement("p",{className:"m-0 p-0 font-weight-500 wordbreak",style:{color:fetchProductInfoQueryContext.data.data.productinfo.quantavailtype=='nolimit'?sectionproperties.availability_availabletextcolor:sectionproperties.availability_limitedtextcolor,fontSize:sectionproperties.availability_fontsize+'px',textAlign:sectionproperties.availabilitytextalignment=='Centered'?'center':langdetect=='en'?'left':'right'}},/*#__PURE__*/React__default["default"].createElement("span",{className:"ml-1 mr-1"},fetchProductInfoQueryContext.data.data.productinfo.quantavailtype=='nolimit'?lang.available:lang.limitedquantity))),sectionproperties.btnposition=='Top'&§ionproperties.favBtnShow=='Show'&&/*#__PURE__*/React__default["default"].createElement("div",{className:productinfo_cssstyles.wishlist_btn+' d-flex justify-content-center align-items-center mb-sm-2 ',onClick:function onClick(){addtofavoritescontext(fetchProductInfoQueryContext.data.data.productinfo.productid);setIsFavorite(!IsFavorite);},style:{background:fetchProductInfoQueryContext.data.data.productinfo.IsFavExists==true?sectionproperties.activebgcolor:''}},/*#__PURE__*/React__default["default"].createElement("i",{className:"h-100 d-flex align-items-center justify-content-center"},IsFavorite&&/*#__PURE__*/React__default["default"].createElement("i",{className:"h-100 d-flex align-items-center justify-content-center"},sectionproperties.faviconshape=='Star Shape'&&/*#__PURE__*/React__default["default"].createElement(AiFillStar$1.AiFillStar,{size:sectionproperties.favBtnIconfontsize,style:{color:sectionproperties.activefaviconcolor}}),sectionproperties.faviconshape=='Heart Shape'&&/*#__PURE__*/React__default["default"].createElement(FaHeart$1.FaHeart,{size:sectionproperties.favBtnIconfontsize,style:{color:sectionproperties.activefaviconcolor}})),!IsFavorite&&/*#__PURE__*/React__default["default"].createElement("i",{className:"h-100 d-flex align-items-center justify-content-center"},sectionproperties.faviconshape=='Star Shape'&&/*#__PURE__*/React__default["default"].createElement(AiOutlineStar.AiOutlineStar,{size:sectionproperties.favBtnIconfontsize}),sectionproperties.faviconshape=='Heart Shape'&&/*#__PURE__*/React__default["default"].createElement(FaRegHeart.FaRegHeart,{size:sectionproperties.favBtnIconfontsize}))))),sectionproperties.showSKU=='Show'&§ionproperties.skuposition=='Top'&&/*#__PURE__*/React__default["default"].createElement("div",{"class":'col-lg-12 p-0 my-3 d-flex justify-content-start'},ProductsSKUContainer()),sectionproperties.defaultpricingposition=='Under Name'&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer41=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer41===void 0||(_fetchProductInfoQuer41=_fetchProductInfoQuer41.data)===null||_fetchProductInfoQuer41===void 0||(_fetchProductInfoQuer41=_fetchProductInfoQuer41.productinfo)===null||_fetchProductInfoQuer41===void 0?void 0:_fetchProductInfoQuer41.isproducttobesold)==1&&/*#__PURE__*/React__default["default"].createElement(ProductHeaderPricing,{actions:props.actions}),sectionproperties.showfeatures=='Show'&§ionproperties.featuresposition=='Under Name'&§ionproperties.featurestyle!='Table'&&/*#__PURE__*/React__default["default"].createElement("div",{"class":"col-lg-12 text-start p-0"},/*#__PURE__*/React__default["default"].createElement("div",{className:"row m-0 w-100"},fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer42=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer42===void 0||(_fetchProductInfoQuer42=_fetchProductInfoQuer42.data)===null||_fetchProductInfoQuer42===void 0||(_fetchProductInfoQuer42=_fetchProductInfoQuer42.productinfo)===null||_fetchProductInfoQuer42===void 0||(_fetchProductInfoQuer42=_fetchProductInfoQuer42.productfeatures)===null||_fetchProductInfoQuer42===void 0?void 0:_fetchProductInfoQuer42.map(function(fitem,findex){return/*#__PURE__*/React__default["default"].createElement("div",{"class":' col-md-12 p-0 mb-3 mt-2 col-lg-'+sectionproperties.featuresnumcols},/*#__PURE__*/React__default["default"].createElement("div",{"class":"row m-0 w-100 text-start"},/*#__PURE__*/React__default["default"].createElement("div",{"class":"col-lg-12 text-start mb-3 text-uppercase p-0"},/*#__PURE__*/React__default["default"].createElement("div",{style:{width:'20px'},"class":langdetect=='en'?'mr-2':'ml-2'},/*#__PURE__*/React__default["default"].createElement(Imagekitimagecomp,{urlEndpoint:ikimagecredcontext===null||ikimagecredcontext===void 0?void 0:ikimagecredcontext.ikimageendpoint,publicKey:ikimagecredcontext===null||ikimagecredcontext===void 0?void 0:ikimagecredcontext.ikimagepublickey,path:fitem===null||fitem===void 0?void 0:fitem.feature_image_url,loading:"lazy",style:{maxWidth:'100%',maxHeight:'100%'}})),/*#__PURE__*/React__default["default"].createElement("p",{"class":"m-0 p-0",style:{color:sectionproperties.featurecolor,fontWeight:sectionproperties.featurefontweight,fontSize:sectionproperties.featurefontsize}},langdetect=='en'?fitem===null||fitem===void 0?void 0:fitem.name_en:fitem===null||fitem===void 0?void 0:fitem.name_ar)),/*#__PURE__*/React__default["default"].createElement("div",{"class":"col-lg-12 text-start text-capitalize"},/*#__PURE__*/React__default["default"].createElement("p",{"class":"m-0 p-0",style:{color:sectionproperties.featurevaluecolor,fontWeight:sectionproperties.featurevaluefontweight,fontSize:sectionproperties.featurevaluefontsize}},langdetect=='en'?fitem===null||fitem===void 0?void 0:fitem.value_en:fitem===null||fitem===void 0?void 0:fitem.value_ar))));}))),sectionproperties.descriptionposition=='Under Name'&§ionproperties.descriptionstyle=='Style 1'&§ionproperties.showshortdescription=='Show'&&/*#__PURE__*/React__default["default"].createElement("div",{"class":"col-lg-12 p-0"},/*#__PURE__*/React__default["default"].createElement("div",{"class":"row m-0 w-100"},sectionproperties.showshortdescription=='Show'&&/*#__PURE__*/React__default["default"].createElement("div",{"class":"col-lg-12 p-0 mb-2"},/*#__PURE__*/React__default["default"].createElement("p",{style:{textAlign:langdetect=='en'?'left':'right',color:sectionproperties.generaltext_fontColor}},ShortDescriptionTitle())),/*#__PURE__*/React__default["default"].createElement("div",{"class":"col-lg-12 p-0"},/*#__PURE__*/React__default["default"].createElement("p",{className:'m-0 p-0 wordbreak',style:{textAlign:langdetect=='en'?'left':'right',color:sectionproperties.prodCatColor},dangerouslySetInnerHTML:{__html:langdetect=='en'?fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer43=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer43===void 0||(_fetchProductInfoQuer43=_fetchProductInfoQuer43.data)===null||_fetchProductInfoQuer43===void 0||(_fetchProductInfoQuer43=_fetchProductInfoQuer43.productinfo)===null||_fetchProductInfoQuer43===void 0?void 0:_fetchProductInfoQuer43.short_description_en:fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer44=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer44===void 0||(_fetchProductInfoQuer44=_fetchProductInfoQuer44.data)===null||_fetchProductInfoQuer44===void 0||(_fetchProductInfoQuer44=_fetchProductInfoQuer44.productinfo)===null||_fetchProductInfoQuer44===void 0?void 0:_fetchProductInfoQuer44.short_description_ar}})))),sectionproperties.showfeatures=='Show'&§ionproperties.featuresposition=='Under Name'&§ionproperties.featurestyle=='Table'&&/*#__PURE__*/React__default["default"].createElement("div",{"class":"col-lg-12 text-start p-0"},ProductFeaturesTable()),sectionproperties.showfeatures=='Show'&§ionproperties.featuresposition=='Under Pricing'&§ionproperties.featurestyle=='Table'&&/*#__PURE__*/React__default["default"].createElement("div",{"class":"col-lg-12 text-start p-0"},ProductFeaturesTable()),langdetect=='en'&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer45=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer45===void 0||(_fetchProductInfoQuer45=_fetchProductInfoQuer45.data)===null||_fetchProductInfoQuer45===void 0||(_fetchProductInfoQuer45=_fetchProductInfoQuer45.productinfo)===null||_fetchProductInfoQuer45===void 0?void 0:_fetchProductInfoQuer45.short_description_en)!=null&§ionproperties.descriptionstyle=='Style 1'&§ionproperties.showshortdescription=='Show'&&/*#__PURE__*/React__default["default"].createElement("div",{"class":"col-lg-12 p-0"},/*#__PURE__*/React__default["default"].createElement("div",{"class":"col-lg-12 p-0 d-flex justify-content-start"},/*#__PURE__*/React__default["default"].createElement("p",{className:'text-black m-0 p-0 wordbreak',style:{textAlign:langdetect=='en'?'left':'right'},dangerouslySetInnerHTML:{__html:fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer46=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer46===void 0||(_fetchProductInfoQuer46=_fetchProductInfoQuer46.data)===null||_fetchProductInfoQuer46===void 0||(_fetchProductInfoQuer46=_fetchProductInfoQuer46.productinfo)===null||_fetchProductInfoQuer46===void 0?void 0:_fetchProductInfoQuer46.short_description_en}}))),langdetect=='ar'&§ionproperties.showshortdescription=='Show'&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer47=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer47===void 0||(_fetchProductInfoQuer47=_fetchProductInfoQuer47.data)===null||_fetchProductInfoQuer47===void 0||(_fetchProductInfoQuer47=_fetchProductInfoQuer47.productinfo)===null||_fetchProductInfoQuer47===void 0?void 0:_fetchProductInfoQuer47.short_description_ar)!=null&§ionproperties.descriptionstyle=='Style 1'&&/*#__PURE__*/React__default["default"].createElement("div",{"class":"col-lg-12 p-0"},/*#__PURE__*/React__default["default"].createElement("div",{"class":"col-lg-12 p-0 d-flex justify-content-start"},/*#__PURE__*/React__default["default"].createElement("p",{className:'text-black m-0 p-0 wordbreak',style:{textAlign:langdetect=='en'?'left':'right'},dangerouslySetInnerHTML:{__html:fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer48=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer48===void 0||(_fetchProductInfoQuer48=_fetchProductInfoQuer48.data)===null||_fetchProductInfoQuer48===void 0||(_fetchProductInfoQuer48=_fetchProductInfoQuer48.productinfo)===null||_fetchProductInfoQuer48===void 0?void 0:_fetchProductInfoQuer48.short_description_ar}}))),(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer49=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer49===void 0||(_fetchProductInfoQuer49=_fetchProductInfoQuer49.data)===null||_fetchProductInfoQuer49===void 0||(_fetchProductInfoQuer49=_fetchProductInfoQuer49.productinfo)===null||_fetchProductInfoQuer49===void 0?void 0:_fetchProductInfoQuer49.vendorinfo)!=null&§ionproperties.showvendor=='Show'&&/*#__PURE__*/React__default["default"].createElement("div",{"class":"col-lg-12 p-0 d-flex justify-content-start align-items-center mt-2 mb-3"},(authdetailsContext===null||authdetailsContext===void 0||(_authdetailsContext$i12=authdetailsContext.instinfo)===null||_authdetailsContext$i12===void 0?void 0:_authdetailsContext$i12.contactinfo.instid)=='683c163d7f996'&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer50=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer50===void 0||(_fetchProductInfoQuer50=_fetchProductInfoQuer50.data)===null||_fetchProductInfoQuer50===void 0||(_fetchProductInfoQuer50=_fetchProductInfoQuer50.productinfo)===null||_fetchProductInfoQuer50===void 0?void 0:_fetchProductInfoQuer50.vendorinfo.vendorlogourl)!=null&&/*#__PURE__*/React__default["default"].createElement("div",{"class":productinfo_cssstyles.vendorlogo,style:{}},/*#__PURE__*/React__default["default"].createElement(Imagekitimagecomp,{urlEndpoint:ikimagecredcontext===null||ikimagecredcontext===void 0?void 0:ikimagecredcontext.ikimageendpoint,publicKey:ikimagecredcontext===null||ikimagecredcontext===void 0?void 0:ikimagecredcontext.ikimagepublickey,path:fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer51=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer51===void 0||(_fetchProductInfoQuer51=_fetchProductInfoQuer51.data)===null||_fetchProductInfoQuer51===void 0||(_fetchProductInfoQuer51=_fetchProductInfoQuer51.productinfo)===null||_fetchProductInfoQuer51===void 0?void 0:_fetchProductInfoQuer51.vendorinfo.vendorlogourl,loading:"lazy",style:{width:'100%',height:'100%',objectFit:'contain',border:'1px solid #ccc',borderRadius:100}})),/*#__PURE__*/React__default["default"].createElement("p",{"class":"".concat(productinfo_cssstyles.productname," ").concat(productinfo_cssstyles.productnamehover)+' m-0 p-0 ',style:{cursor:sectionproperties.vendornameclickable=='Yes'?'pointer':'',fontSize:14},onClick:function onClick(){if(sectionproperties.vendornameclickable=='Yes'){var _fetchProductInfoQuer52;routingcountext(StaticPagesLinksContext.GeneralProductsComponent,true,encodeURIComponent(JSON.stringify({vendorsarr:[fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer52=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer52===void 0||(_fetchProductInfoQuer52=_fetchProductInfoQuer52.data)===null||_fetchProductInfoQuer52===void 0||(_fetchProductInfoQuer52=_fetchProductInfoQuer52.productinfo)===null||_fetchProductInfoQuer52===void 0||(_fetchProductInfoQuer52=_fetchProductInfoQuer52.vendorinfo)===null||_fetchProductInfoQuer52===void 0?void 0:_fetchProductInfoQuer52.vendorid]})));}}},(authdetailsContext===null||authdetailsContext===void 0||(_authdetailsContext$i13=authdetailsContext.instinfo)===null||_authdetailsContext$i13===void 0?void 0:_authdetailsContext$i13.contactinfo.instid)!='683c163d7f996'&&(authdetailsContext===null||authdetailsContext===void 0||(_authdetailsContext$i14=authdetailsContext.instinfo)===null||_authdetailsContext$i14===void 0?void 0:_authdetailsContext$i14.contactinfo.instid)!='67f3c23abb18f'&&(authdetailsContext===null||authdetailsContext===void 0||(_authdetailsContext$i15=authdetailsContext.instinfo)===null||_authdetailsContext$i15===void 0?void 0:_authdetailsContext$i15.contactinfo.instid)!='6805437ab0f3b'&&/*#__PURE__*/React__default["default"].createElement("span",null," ",langdetect=='en'?sectionproperties.vendortitleen:sectionproperties.vendortitlear,": "),/*#__PURE__*/React__default["default"].createElement("span",{style:{fontWeight:600,textDecoration:(authdetailsContext===null||authdetailsContext===void 0||(_authdetailsContext$i16=authdetailsContext.instinfo)===null||_authdetailsContext$i16===void 0?void 0:_authdetailsContext$i16.contactinfo.instid)=='67f3c23abb18f'?'underline':'none'}},fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer53=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer53===void 0||(_fetchProductInfoQuer53=_fetchProductInfoQuer53.data)===null||_fetchProductInfoQuer53===void 0||(_fetchProductInfoQuer53=_fetchProductInfoQuer53.productinfo)===null||_fetchProductInfoQuer53===void 0||(_fetchProductInfoQuer53=_fetchProductInfoQuer53.vendorinfo)===null||_fetchProductInfoQuer53===void 0?void 0:_fetchProductInfoQuer53.vendorname))),sectionproperties.showSKU=='Show'&§ionproperties.skuposition=='Bottom'&&/*#__PURE__*/React__default["default"].createElement("div",{"class":sectionproperties.deliverytimeshow=='Show'&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer54=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer54===void 0||(_fetchProductInfoQuer54=_fetchProductInfoQuer54.data)===null||_fetchProductInfoQuer54===void 0||(_fetchProductInfoQuer54=_fetchProductInfoQuer54.productinfo)===null||_fetchProductInfoQuer54===void 0?void 0:_fetchProductInfoQuer54.deliverydatetext)!=null?'col-lg-12 p-0 mb-2 d-flex justify-content-start':'col-lg-12 p-0 mb-3 d-flex justify-content-start'},ProductsSKUContainer()),(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer55=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer55===void 0||(_fetchProductInfoQuer55=_fetchProductInfoQuer55.data)===null||_fetchProductInfoQuer55===void 0||(_fetchProductInfoQuer55=_fetchProductInfoQuer55.productinfo)===null||_fetchProductInfoQuer55===void 0?void 0:_fetchProductInfoQuer55.currentquantity)<1&§ionproperties.showoutofstock=='Show'&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer56=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer56===void 0||(_fetchProductInfoQuer56=_fetchProductInfoQuer56.data)===null||_fetchProductInfoQuer56===void 0||(_fetchProductInfoQuer56=_fetchProductInfoQuer56.productinfo)===null||_fetchProductInfoQuer56===void 0?void 0:_fetchProductInfoQuer56.quantavailtype)=='limit'&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer57=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer57===void 0||(_fetchProductInfoQuer57=_fetchProductInfoQuer57.data)===null||_fetchProductInfoQuer57===void 0||(_fetchProductInfoQuer57=_fetchProductInfoQuer57.productinfo)===null||_fetchProductInfoQuer57===void 0?void 0:_fetchProductInfoQuer57.hasvariants)==0&&/*#__PURE__*/React__default["default"].createElement("div",{"class":"col-lg-12 p-0 d-flex justify-content-start mb-2"},/*#__PURE__*/React__default["default"].createElement("div",{"class":"".concat(productinfo_cssstyles.outstockbadge)+' allcentered '},/*#__PURE__*/React__default["default"].createElement("p",{"class":"m-0 p-0"},langdetect=='en'?sectionproperties.outstock_contenten:sectionproperties.outstock_contentar))),sectionproperties.deliverytimeshow=='Show'&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer58=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer58===void 0||(_fetchProductInfoQuer58=_fetchProductInfoQuer58.data)===null||_fetchProductInfoQuer58===void 0||(_fetchProductInfoQuer58=_fetchProductInfoQuer58.productinfo)===null||_fetchProductInfoQuer58===void 0?void 0:_fetchProductInfoQuer58.deliverydatetext)!=null&&/*#__PURE__*/React__default["default"].createElement("div",{"class":"mb-4 col-lg-12 allcentered",style:{width:'100%',backgroundColor:sectionproperties.deliverytimecontainerBg,paddingLeft:sectionproperties.deliverytimecontainerpaddinghorizontal+'px',paddingRight:sectionproperties.deliverytimecontainerpaddinghorizontal+'px',paddingTop:sectionproperties.deliverytimecontainerpaddingvertical+'px',paddingBottom:sectionproperties.deliverytimecontainerpaddingvertical+'px',border:sectionproperties.deliverytimecontainerborderwidth+'px solid '+sectionproperties.deliverytimecontainerbordercolor,borderRadius:sectionproperties.deliverytimecontainerborderradius+'px',fontSize:sectionproperties.deliverytimecontainerfontsize+'px',fontWeight:sectionproperties.deliverytimecontainerfontWeight,marginTop:15}},/*#__PURE__*/React__default["default"].createElement("p",{"class":"m-0 p-0 ",style:{textAlign:langdetect=='en'?'left':'right',color:sectionproperties.deliverytimecontainercolor}},sectionproperties.showdeliverytitle=='Show'&&/*#__PURE__*/React__default["default"].createElement("span",null,langdetect=='en'?sectionproperties.deliverycontent_en:sectionproperties.deliverycontent_ar,": "),' ',fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer59=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer59===void 0||(_fetchProductInfoQuer59=_fetchProductInfoQuer59.data)===null||_fetchProductInfoQuer59===void 0||(_fetchProductInfoQuer59=_fetchProductInfoQuer59.productinfo)===null||_fetchProductInfoQuer59===void 0?void 0:_fetchProductInfoQuer59.deliverydatetext)),sectionproperties.descriptionposition!='Under Name'&§ionproperties.descriptionposition=='Top'&§ionproperties.descriptionstyle=='Style 1'&§ionproperties.prodCatShow=='Show'&&/*#__PURE__*/React__default["default"].createElement("div",{"class":"col-lg-12 p-0"},/*#__PURE__*/React__default["default"].createElement(DescriptionContent,{actions:props.actions,srcfromprops:'undername'})),sectionproperties.defaultpricingposition=='Under Description'&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer60=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer60===void 0||(_fetchProductInfoQuer60=_fetchProductInfoQuer60.data)===null||_fetchProductInfoQuer60===void 0||(_fetchProductInfoQuer60=_fetchProductInfoQuer60.productinfo)===null||_fetchProductInfoQuer60===void 0?void 0:_fetchProductInfoQuer60.isproducttobesold)==1&&/*#__PURE__*/React__default["default"].createElement(ProductHeaderPricing,{actions:props.actions}),/*#__PURE__*/React__default["default"].createElement(Variantoptions,{actions:props.actions}),/*#__PURE__*/React__default["default"].createElement(ProductExtras,{actions:props.actions,srcfromprops:'servicestyle2',addtocartfunc:addtocartfunc}),sectionproperties.showextrafield=='Show'&&/*#__PURE__*/React__default["default"].createElement(ProductExtraFields,{actions:props.actions}),sectionproperties.gallerystyle!='Style 1'&§ionproperties.prodCatShow=='Show'&§ionproperties.descriptionposition!='Top'&&/*#__PURE__*/React__default["default"].createElement(DescriptionContent,{actions:props.actions}),(authdetailsContext===null||authdetailsContext===void 0||(_authdetailsContext$i17=authdetailsContext.instinfo)===null||_authdetailsContext$i17===void 0?void 0:_authdetailsContext$i17.contactinfo.instid)=='68ada0669b7c7'&&/*#__PURE__*/React__default["default"].createElement("div",{"class":"col-lg-12 p-0"},/*#__PURE__*/React__default["default"].createElement(ProductFileUploader,{actions:props.actions})),sectionproperties.showfeatures=='Show'&§ionproperties.featuresposition!='Under Name'&§ionproperties.featuresposition=='Under Description'&§ionproperties.featurestyle!='Table'&&/*#__PURE__*/React__default["default"].createElement("div",{"class":"col-lg-12 text-start p-md-0 mb-3"},ProductFeaturesArray()),/*#__PURE__*/React__default["default"].createElement("div",{className:"col-lg-12 p-0 mb-3",style:{// display: sectionproperties.quantitybtn_show == 'Hide' && sectionproperties.cartBtnShow == 'Hide' ? 'none' : 'flex',
|
|
3866
|
+
},/*#__PURE__*/React__default["default"].createElement("div",{className:sectionproperties.evencols=='Yes'?'row m-0 w-100':'row m-0 w-100'},sectionproperties.showmeasurementunit=='Show'&§ionproperties.measurementunitposition=='Above Name'&&MeasurementUnitSection(),sectionproperties.quantityshow=='Show'&&/*#__PURE__*/React__default["default"].createElement("div",{"class":"col-lg-12 p-0 text-start"},/*#__PURE__*/React__default["default"].createElement("p",{"class":"m-0 p-0",style:{fontSize:sectionproperties.quantityfontsize,color:sectionproperties.quantitycolor,fontWeight:sectionproperties.quantityfontweight}},langdetect=='en'?sectionproperties.qtytextinen:sectionproperties.qtytextinar,":",' ',fetchProductInfoQueryContext.data.data.productinfo.currentquantity)),/*#__PURE__*/React__default["default"].createElement("div",{className:(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer37=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer37===void 0||(_fetchProductInfoQuer37=_fetchProductInfoQuer37.data)===null||_fetchProductInfoQuer37===void 0||(_fetchProductInfoQuer37=_fetchProductInfoQuer37.productinfo)===null||_fetchProductInfoQuer37===void 0?void 0:_fetchProductInfoQuer37.productcanrate)==1?'col-lg-8 col-md-8 col-sm-8 p-0 mb-1 d-flex align-items-center':sectionproperties.btnposition=='Top'?'col-lg-8 col-md-8 col-sm-8 p-0 mb-1 d-flex align-items-center':sectionproperties.availabilitybtnposition=='Top'&§ionproperties.show_availability=='Show'?'col-lg-8 col-md-8 col-sm-8 p-0 mb-1 d-flex align-items-center':'col-lg-12 p-0 mb-1 d-flex align-items-center',style:{justifyContent:sectionproperties.productnamecentered=='Centered'?'center':'start'}},ProductNameSection()),(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer38=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer38===void 0||(_fetchProductInfoQuer38=_fetchProductInfoQuer38.data)===null||_fetchProductInfoQuer38===void 0||(_fetchProductInfoQuer38=_fetchProductInfoQuer38.productinfo)===null||_fetchProductInfoQuer38===void 0?void 0:_fetchProductInfoQuer38.productcanrate)==1&§ionproperties.showrating=='Show'&&/*#__PURE__*/React__default["default"].createElement("div",{className:"col-lg-4 col-md-4 col-sm-4 p-0 mb-1 d-flex justify-content-end align-items-center"},/*#__PURE__*/React__default["default"].createElement(ReactStars__default["default"],{count:5,value:fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer39=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer39===void 0||(_fetchProductInfoQuer39=_fetchProductInfoQuer39.data)===null||_fetchProductInfoQuer39===void 0||(_fetchProductInfoQuer39=_fetchProductInfoQuer39.productinfo)===null||_fetchProductInfoQuer39===void 0?void 0:_fetchProductInfoQuer39.productoverallrate,edit:false,size:18,emptyIcon:/*#__PURE__*/React__default["default"].createElement("i",{className:"far fa-star",style:{color:'#FAB400'}}),halfIcon:/*#__PURE__*/React__default["default"].createElement("i",{className:"fa fa-star-half-alt style={{ color: '#FAB400' }}"}),filledIcon:/*#__PURE__*/React__default["default"].createElement("i",{className:"fa fa-star",style:{color:'#FAB400'}}),activeColor:"#ffd700"})),/*#__PURE__*/React__default["default"].createElement("div",{className:"col-lg-4 col-md-4 col-sm-4 p-0 mb-1 d-flex justify-content-end align-items-center"},sectionproperties.availabilitybtnposition=='Top'&§ionproperties.show_availability=='Show'&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer40=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer40===void 0||(_fetchProductInfoQuer40=_fetchProductInfoQuer40.data)===null||_fetchProductInfoQuer40===void 0||(_fetchProductInfoQuer40=_fetchProductInfoQuer40.productinfo)===null||_fetchProductInfoQuer40===void 0?void 0:_fetchProductInfoQuer40.isproducttobesold)==1&&/*#__PURE__*/React__default["default"].createElement("div",{style:{width:sectionproperties.availability_width+'px',height:sectionproperties.availability_height+'px',background:fetchProductInfoQueryContext.data.data.productinfo.quantavailtype=='nolimit'?sectionproperties.availability_availablebgcolor:sectionproperties.availability_limitedbgcolor,borderRadius:sectionproperties.availability_borderrradius+'px',border:fetchProductInfoQueryContext.data.data.productinfo.quantavailtype=='nolimit'?sectionproperties.availability_borderwidtth+'px solid '+sectionproperties.availability_availabletextcolor:sectionproperties.availability_borderwidtth+'px solid '+sectionproperties.availability_limitedtextcolor,justifyContent:sectionproperties.availabilitytextalignment=='Centered'?'center':'start'},className:"d-flex align-items-center pl-3 pr-3 mx-2"},/*#__PURE__*/React__default["default"].createElement("p",{className:"m-0 p-0 font-weight-500 wordbreak",style:{color:fetchProductInfoQueryContext.data.data.productinfo.quantavailtype=='nolimit'?sectionproperties.availability_availabletextcolor:sectionproperties.availability_limitedtextcolor,fontSize:sectionproperties.availability_fontsize+'px',textAlign:sectionproperties.availabilitytextalignment=='Centered'?'center':langdetect=='en'?'left':'right'}},/*#__PURE__*/React__default["default"].createElement("span",{className:"ml-1 mr-1"},fetchProductInfoQueryContext.data.data.productinfo.quantavailtype=='nolimit'?lang.available:lang.limitedquantity))),sectionproperties.btnposition=='Top'&§ionproperties.favBtnShow=='Show'&&/*#__PURE__*/React__default["default"].createElement("div",{className:productinfo_cssstyles.wishlist_btn+' d-flex justify-content-center align-items-center mb-sm-2 ',onClick:function onClick(){addtofavoritescontext(fetchProductInfoQueryContext.data.data.productinfo.productid);setIsFavorite(!IsFavorite);},style:{background:fetchProductInfoQueryContext.data.data.productinfo.IsFavExists==true?sectionproperties.activebgcolor:''}},/*#__PURE__*/React__default["default"].createElement("i",{className:"h-100 d-flex align-items-center justify-content-center"},IsFavorite&&/*#__PURE__*/React__default["default"].createElement("i",{className:"h-100 d-flex align-items-center justify-content-center"},sectionproperties.faviconshape=='Star Shape'&&/*#__PURE__*/React__default["default"].createElement(AiFillStar$1.AiFillStar,{size:sectionproperties.favBtnIconfontsize,style:{color:sectionproperties.activefaviconcolor}}),sectionproperties.faviconshape=='Heart Shape'&&/*#__PURE__*/React__default["default"].createElement(FaHeart$1.FaHeart,{size:sectionproperties.favBtnIconfontsize,style:{color:sectionproperties.activefaviconcolor}})),!IsFavorite&&/*#__PURE__*/React__default["default"].createElement("i",{className:"h-100 d-flex align-items-center justify-content-center"},sectionproperties.faviconshape=='Star Shape'&&/*#__PURE__*/React__default["default"].createElement(AiOutlineStar.AiOutlineStar,{size:sectionproperties.favBtnIconfontsize}),sectionproperties.faviconshape=='Heart Shape'&&/*#__PURE__*/React__default["default"].createElement(FaRegHeart.FaRegHeart,{size:sectionproperties.favBtnIconfontsize}))))),sectionproperties.showSKU=='Show'&§ionproperties.skuposition=='Top'&&/*#__PURE__*/React__default["default"].createElement("div",{"class":'col-lg-12 p-0 my-3 d-flex justify-content-start'},ProductsSKUContainer()),sectionproperties.defaultpricingposition=='Under Name'&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer41=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer41===void 0||(_fetchProductInfoQuer41=_fetchProductInfoQuer41.data)===null||_fetchProductInfoQuer41===void 0||(_fetchProductInfoQuer41=_fetchProductInfoQuer41.productinfo)===null||_fetchProductInfoQuer41===void 0?void 0:_fetchProductInfoQuer41.isproducttobesold)==1&&/*#__PURE__*/React__default["default"].createElement(ProductHeaderPricing,{actions:props.actions}),sectionproperties.showfeatures=='Show'&§ionproperties.featuresposition=='Under Name'&§ionproperties.featurestyle!='Table'&&/*#__PURE__*/React__default["default"].createElement("div",{"class":"col-lg-12 text-start p-0"},/*#__PURE__*/React__default["default"].createElement("div",{className:"row m-0 w-100"},fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer42=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer42===void 0||(_fetchProductInfoQuer42=_fetchProductInfoQuer42.data)===null||_fetchProductInfoQuer42===void 0||(_fetchProductInfoQuer42=_fetchProductInfoQuer42.productinfo)===null||_fetchProductInfoQuer42===void 0||(_fetchProductInfoQuer42=_fetchProductInfoQuer42.productfeatures)===null||_fetchProductInfoQuer42===void 0?void 0:_fetchProductInfoQuer42.map(function(fitem,findex){return/*#__PURE__*/React__default["default"].createElement("div",{"class":' col-md-12 p-0 mb-3 mt-2 col-lg-'+sectionproperties.featuresnumcols},/*#__PURE__*/React__default["default"].createElement("div",{"class":"row m-0 w-100 text-start"},/*#__PURE__*/React__default["default"].createElement("div",{"class":"col-lg-12 text-start mb-3 text-uppercase p-0"},/*#__PURE__*/React__default["default"].createElement("div",{style:{width:'20px'},"class":langdetect=='en'?'mr-2':'ml-2'},/*#__PURE__*/React__default["default"].createElement(Imagekitimagecomp,{urlEndpoint:ikimagecredcontext===null||ikimagecredcontext===void 0?void 0:ikimagecredcontext.ikimageendpoint,publicKey:ikimagecredcontext===null||ikimagecredcontext===void 0?void 0:ikimagecredcontext.ikimagepublickey,path:fitem===null||fitem===void 0?void 0:fitem.feature_image_url,loading:"lazy",style:{maxWidth:'100%',maxHeight:'100%'}})),/*#__PURE__*/React__default["default"].createElement("p",{"class":"m-0 p-0",style:{color:sectionproperties.featurecolor,fontWeight:sectionproperties.featurefontweight,fontSize:sectionproperties.featurefontsize}},langdetect=='en'?fitem===null||fitem===void 0?void 0:fitem.name_en:fitem===null||fitem===void 0?void 0:fitem.name_ar)),/*#__PURE__*/React__default["default"].createElement("div",{"class":"col-lg-12 text-start text-capitalize"},/*#__PURE__*/React__default["default"].createElement("p",{"class":"m-0 p-0",style:{color:sectionproperties.featurevaluecolor,fontWeight:sectionproperties.featurevaluefontweight,fontSize:sectionproperties.featurevaluefontsize}},langdetect=='en'?fitem===null||fitem===void 0?void 0:fitem.value_en:fitem===null||fitem===void 0?void 0:fitem.value_ar))));}))),sectionproperties.descriptionposition=='Under Name'&§ionproperties.descriptionstyle=='Style 1'&§ionproperties.showshortdescription=='Show'&&/*#__PURE__*/React__default["default"].createElement("div",{"class":"col-lg-12 p-0"},/*#__PURE__*/React__default["default"].createElement("div",{"class":"row m-0 w-100"},sectionproperties.showshortdescription=='Show'&&/*#__PURE__*/React__default["default"].createElement("div",{"class":"col-lg-12 p-0 mb-2"},/*#__PURE__*/React__default["default"].createElement("p",{style:{textAlign:langdetect=='en'?'left':'right',color:sectionproperties.generaltext_fontColor}},ShortDescriptionTitle())),/*#__PURE__*/React__default["default"].createElement("div",{"class":"col-lg-12 p-0"},/*#__PURE__*/React__default["default"].createElement("p",{className:'m-0 p-0 wordbreak',style:{textAlign:langdetect=='en'?'left':'right',color:sectionproperties.prodCatColor},dangerouslySetInnerHTML:{__html:langdetect=='en'?fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer43=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer43===void 0||(_fetchProductInfoQuer43=_fetchProductInfoQuer43.data)===null||_fetchProductInfoQuer43===void 0||(_fetchProductInfoQuer43=_fetchProductInfoQuer43.productinfo)===null||_fetchProductInfoQuer43===void 0?void 0:_fetchProductInfoQuer43.short_description_en:fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer44=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer44===void 0||(_fetchProductInfoQuer44=_fetchProductInfoQuer44.data)===null||_fetchProductInfoQuer44===void 0||(_fetchProductInfoQuer44=_fetchProductInfoQuer44.productinfo)===null||_fetchProductInfoQuer44===void 0?void 0:_fetchProductInfoQuer44.short_description_ar}})))),sectionproperties.showvendor=='Hide'&§ionproperties.showfeatures=='Show'&§ionproperties.featuresposition=='Under Name'&§ionproperties.featurestyle=='Table'&&/*#__PURE__*/React__default["default"].createElement("div",{"class":"col-lg-12 text-start p-0"},ProductFeaturesTable()),sectionproperties.showfeatures=='Show'&§ionproperties.featuresposition=='Under Pricing'&§ionproperties.featurestyle=='Table'&&/*#__PURE__*/React__default["default"].createElement("div",{"class":"col-lg-12 text-start p-0"},ProductFeaturesTable()),langdetect=='en'&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer45=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer45===void 0||(_fetchProductInfoQuer45=_fetchProductInfoQuer45.data)===null||_fetchProductInfoQuer45===void 0||(_fetchProductInfoQuer45=_fetchProductInfoQuer45.productinfo)===null||_fetchProductInfoQuer45===void 0?void 0:_fetchProductInfoQuer45.short_description_en)!=null&§ionproperties.descriptionstyle=='Style 1'&§ionproperties.showshortdescription=='Show'&&/*#__PURE__*/React__default["default"].createElement("div",{"class":"col-lg-12 p-0"},/*#__PURE__*/React__default["default"].createElement("div",{"class":"col-lg-12 p-0 d-flex justify-content-start"},/*#__PURE__*/React__default["default"].createElement("p",{className:'text-black m-0 p-0 wordbreak',style:{textAlign:langdetect=='en'?'left':'right'},dangerouslySetInnerHTML:{__html:fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer46=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer46===void 0||(_fetchProductInfoQuer46=_fetchProductInfoQuer46.data)===null||_fetchProductInfoQuer46===void 0||(_fetchProductInfoQuer46=_fetchProductInfoQuer46.productinfo)===null||_fetchProductInfoQuer46===void 0?void 0:_fetchProductInfoQuer46.short_description_en}}))),langdetect=='ar'&§ionproperties.showshortdescription=='Show'&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer47=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer47===void 0||(_fetchProductInfoQuer47=_fetchProductInfoQuer47.data)===null||_fetchProductInfoQuer47===void 0||(_fetchProductInfoQuer47=_fetchProductInfoQuer47.productinfo)===null||_fetchProductInfoQuer47===void 0?void 0:_fetchProductInfoQuer47.short_description_ar)!=null&§ionproperties.descriptionstyle=='Style 1'&&/*#__PURE__*/React__default["default"].createElement("div",{"class":"col-lg-12 p-0"},/*#__PURE__*/React__default["default"].createElement("div",{"class":"col-lg-12 p-0 d-flex justify-content-start"},/*#__PURE__*/React__default["default"].createElement("p",{className:'text-black m-0 p-0 wordbreak',style:{textAlign:langdetect=='en'?'left':'right'},dangerouslySetInnerHTML:{__html:fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer48=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer48===void 0||(_fetchProductInfoQuer48=_fetchProductInfoQuer48.data)===null||_fetchProductInfoQuer48===void 0||(_fetchProductInfoQuer48=_fetchProductInfoQuer48.productinfo)===null||_fetchProductInfoQuer48===void 0?void 0:_fetchProductInfoQuer48.short_description_ar}}))),(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer49=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer49===void 0||(_fetchProductInfoQuer49=_fetchProductInfoQuer49.data)===null||_fetchProductInfoQuer49===void 0||(_fetchProductInfoQuer49=_fetchProductInfoQuer49.productinfo)===null||_fetchProductInfoQuer49===void 0?void 0:_fetchProductInfoQuer49.vendorinfo)!=null&§ionproperties.showvendor=='Show'&&/*#__PURE__*/React__default["default"].createElement("div",{"class":"col-lg-12 p-0 d-flex justify-content-start align-items-center mt-2 mb-3"},(authdetailsContext===null||authdetailsContext===void 0||(_authdetailsContext$i12=authdetailsContext.instinfo)===null||_authdetailsContext$i12===void 0?void 0:_authdetailsContext$i12.contactinfo.instid)=='683c163d7f996'&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer50=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer50===void 0||(_fetchProductInfoQuer50=_fetchProductInfoQuer50.data)===null||_fetchProductInfoQuer50===void 0||(_fetchProductInfoQuer50=_fetchProductInfoQuer50.productinfo)===null||_fetchProductInfoQuer50===void 0?void 0:_fetchProductInfoQuer50.vendorinfo.vendorlogourl)!=null&&/*#__PURE__*/React__default["default"].createElement("div",{"class":productinfo_cssstyles.vendorlogo,style:{}},/*#__PURE__*/React__default["default"].createElement(Imagekitimagecomp,{urlEndpoint:ikimagecredcontext===null||ikimagecredcontext===void 0?void 0:ikimagecredcontext.ikimageendpoint,publicKey:ikimagecredcontext===null||ikimagecredcontext===void 0?void 0:ikimagecredcontext.ikimagepublickey,path:fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer51=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer51===void 0||(_fetchProductInfoQuer51=_fetchProductInfoQuer51.data)===null||_fetchProductInfoQuer51===void 0||(_fetchProductInfoQuer51=_fetchProductInfoQuer51.productinfo)===null||_fetchProductInfoQuer51===void 0?void 0:_fetchProductInfoQuer51.vendorinfo.vendorlogourl,loading:"lazy",style:{width:'100%',height:'100%',objectFit:'contain',border:'1px solid #ccc',borderRadius:100}})),/*#__PURE__*/React__default["default"].createElement("p",{"class":"".concat(productinfo_cssstyles.productname," ").concat(productinfo_cssstyles.productnamehover)+' m-0 p-0 ',style:{cursor:sectionproperties.vendornameclickable=='Yes'?'pointer':'',fontSize:14},onClick:function onClick(){if(sectionproperties.vendornameclickable=='Yes'){var _fetchProductInfoQuer52;routingcountext(StaticPagesLinksContext.GeneralProductsComponent,true,encodeURIComponent(JSON.stringify({vendorsarr:[fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer52=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer52===void 0||(_fetchProductInfoQuer52=_fetchProductInfoQuer52.data)===null||_fetchProductInfoQuer52===void 0||(_fetchProductInfoQuer52=_fetchProductInfoQuer52.productinfo)===null||_fetchProductInfoQuer52===void 0||(_fetchProductInfoQuer52=_fetchProductInfoQuer52.vendorinfo)===null||_fetchProductInfoQuer52===void 0?void 0:_fetchProductInfoQuer52.vendorid]})));}}},(authdetailsContext===null||authdetailsContext===void 0||(_authdetailsContext$i13=authdetailsContext.instinfo)===null||_authdetailsContext$i13===void 0?void 0:_authdetailsContext$i13.contactinfo.instid)!='683c163d7f996'&&(authdetailsContext===null||authdetailsContext===void 0||(_authdetailsContext$i14=authdetailsContext.instinfo)===null||_authdetailsContext$i14===void 0?void 0:_authdetailsContext$i14.contactinfo.instid)!='67f3c23abb18f'&&(authdetailsContext===null||authdetailsContext===void 0||(_authdetailsContext$i15=authdetailsContext.instinfo)===null||_authdetailsContext$i15===void 0?void 0:_authdetailsContext$i15.contactinfo.instid)!='6805437ab0f3b'&&/*#__PURE__*/React__default["default"].createElement("span",null," ",langdetect=='en'?sectionproperties.vendortitleen:sectionproperties.vendortitlear,": "),/*#__PURE__*/React__default["default"].createElement("span",{style:{fontWeight:600,textDecoration:(authdetailsContext===null||authdetailsContext===void 0||(_authdetailsContext$i16=authdetailsContext.instinfo)===null||_authdetailsContext$i16===void 0?void 0:_authdetailsContext$i16.contactinfo.instid)=='67f3c23abb18f'?'underline':'none'}},fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer53=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer53===void 0||(_fetchProductInfoQuer53=_fetchProductInfoQuer53.data)===null||_fetchProductInfoQuer53===void 0||(_fetchProductInfoQuer53=_fetchProductInfoQuer53.productinfo)===null||_fetchProductInfoQuer53===void 0||(_fetchProductInfoQuer53=_fetchProductInfoQuer53.vendorinfo)===null||_fetchProductInfoQuer53===void 0?void 0:_fetchProductInfoQuer53.vendorname))),sectionproperties.showSKU=='Show'&§ionproperties.skuposition=='Bottom'&&/*#__PURE__*/React__default["default"].createElement("div",{"class":sectionproperties.deliverytimeshow=='Show'&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer54=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer54===void 0||(_fetchProductInfoQuer54=_fetchProductInfoQuer54.data)===null||_fetchProductInfoQuer54===void 0||(_fetchProductInfoQuer54=_fetchProductInfoQuer54.productinfo)===null||_fetchProductInfoQuer54===void 0?void 0:_fetchProductInfoQuer54.deliverydatetext)!=null?'col-lg-12 p-0 mb-2 d-flex justify-content-start':'col-lg-12 p-0 mb-3 d-flex justify-content-start'},ProductsSKUContainer()),sectionproperties.showvendor=='Show'&§ionproperties.showfeatures=='Show'&§ionproperties.featuresposition=='Under Name'&§ionproperties.featurestyle=='Table'&&/*#__PURE__*/React__default["default"].createElement("div",{"class":"col-lg-12 text-start p-0"},ProductFeaturesTable()),(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer55=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer55===void 0||(_fetchProductInfoQuer55=_fetchProductInfoQuer55.data)===null||_fetchProductInfoQuer55===void 0||(_fetchProductInfoQuer55=_fetchProductInfoQuer55.productinfo)===null||_fetchProductInfoQuer55===void 0?void 0:_fetchProductInfoQuer55.currentquantity)<1&§ionproperties.showoutofstock=='Show'&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer56=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer56===void 0||(_fetchProductInfoQuer56=_fetchProductInfoQuer56.data)===null||_fetchProductInfoQuer56===void 0||(_fetchProductInfoQuer56=_fetchProductInfoQuer56.productinfo)===null||_fetchProductInfoQuer56===void 0?void 0:_fetchProductInfoQuer56.quantavailtype)=='limit'&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer57=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer57===void 0||(_fetchProductInfoQuer57=_fetchProductInfoQuer57.data)===null||_fetchProductInfoQuer57===void 0||(_fetchProductInfoQuer57=_fetchProductInfoQuer57.productinfo)===null||_fetchProductInfoQuer57===void 0?void 0:_fetchProductInfoQuer57.hasvariants)==0&&/*#__PURE__*/React__default["default"].createElement("div",{"class":"col-lg-12 p-0 d-flex justify-content-start mb-2"},/*#__PURE__*/React__default["default"].createElement("div",{"class":"".concat(productinfo_cssstyles.outstockbadge)+' allcentered '},/*#__PURE__*/React__default["default"].createElement("p",{"class":"m-0 p-0"},langdetect=='en'?sectionproperties.outstock_contenten:sectionproperties.outstock_contentar))),sectionproperties.deliverytimeshow=='Show'&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer58=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer58===void 0||(_fetchProductInfoQuer58=_fetchProductInfoQuer58.data)===null||_fetchProductInfoQuer58===void 0||(_fetchProductInfoQuer58=_fetchProductInfoQuer58.productinfo)===null||_fetchProductInfoQuer58===void 0?void 0:_fetchProductInfoQuer58.deliverydatetext)!=null&&/*#__PURE__*/React__default["default"].createElement("div",{"class":"mb-4 col-lg-12 allcentered",style:{width:'100%',backgroundColor:sectionproperties.deliverytimecontainerBg,paddingLeft:sectionproperties.deliverytimecontainerpaddinghorizontal+'px',paddingRight:sectionproperties.deliverytimecontainerpaddinghorizontal+'px',paddingTop:sectionproperties.deliverytimecontainerpaddingvertical+'px',paddingBottom:sectionproperties.deliverytimecontainerpaddingvertical+'px',border:sectionproperties.deliverytimecontainerborderwidth+'px solid '+sectionproperties.deliverytimecontainerbordercolor,borderRadius:sectionproperties.deliverytimecontainerborderradius+'px',fontSize:sectionproperties.deliverytimecontainerfontsize+'px',fontWeight:sectionproperties.deliverytimecontainerfontWeight,marginTop:15}},/*#__PURE__*/React__default["default"].createElement("p",{"class":"m-0 p-0 ",style:{textAlign:langdetect=='en'?'left':'right',color:sectionproperties.deliverytimecontainercolor}},sectionproperties.showdeliverytitle=='Show'&&/*#__PURE__*/React__default["default"].createElement("span",null,langdetect=='en'?sectionproperties.deliverycontent_en:sectionproperties.deliverycontent_ar,": "),' ',fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer59=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer59===void 0||(_fetchProductInfoQuer59=_fetchProductInfoQuer59.data)===null||_fetchProductInfoQuer59===void 0||(_fetchProductInfoQuer59=_fetchProductInfoQuer59.productinfo)===null||_fetchProductInfoQuer59===void 0?void 0:_fetchProductInfoQuer59.deliverydatetext)),sectionproperties.descriptionposition!='Under Name'&§ionproperties.descriptionposition=='Top'&§ionproperties.descriptionstyle=='Style 1'&§ionproperties.prodCatShow=='Show'&&/*#__PURE__*/React__default["default"].createElement("div",{"class":"col-lg-12 p-0"},/*#__PURE__*/React__default["default"].createElement(DescriptionContent,{actions:props.actions,srcfromprops:'undername'})),sectionproperties.defaultpricingposition=='Under Description'&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer60=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer60===void 0||(_fetchProductInfoQuer60=_fetchProductInfoQuer60.data)===null||_fetchProductInfoQuer60===void 0||(_fetchProductInfoQuer60=_fetchProductInfoQuer60.productinfo)===null||_fetchProductInfoQuer60===void 0?void 0:_fetchProductInfoQuer60.isproducttobesold)==1&&/*#__PURE__*/React__default["default"].createElement(ProductHeaderPricing,{actions:props.actions}),/*#__PURE__*/React__default["default"].createElement(Variantoptions,{actions:props.actions}),/*#__PURE__*/React__default["default"].createElement(ProductExtras,{actions:props.actions,srcfromprops:'servicestyle2',addtocartfunc:addtocartfunc}),sectionproperties.showextrafield=='Show'&&/*#__PURE__*/React__default["default"].createElement(ProductExtraFields,{actions:props.actions}),sectionproperties.gallerystyle!='Style 1'&§ionproperties.prodCatShow=='Show'&§ionproperties.descriptionposition!='Top'&&/*#__PURE__*/React__default["default"].createElement(DescriptionContent,{actions:props.actions}),(authdetailsContext===null||authdetailsContext===void 0||(_authdetailsContext$i17=authdetailsContext.instinfo)===null||_authdetailsContext$i17===void 0?void 0:_authdetailsContext$i17.contactinfo.instid)=='68ada0669b7c7'&&/*#__PURE__*/React__default["default"].createElement("div",{"class":"col-lg-12 p-0"},/*#__PURE__*/React__default["default"].createElement(ProductFileUploader,{actions:props.actions})),sectionproperties.showfeatures=='Show'&§ionproperties.featuresposition!='Under Name'&§ionproperties.featuresposition=='Under Description'&§ionproperties.featurestyle!='Table'&&/*#__PURE__*/React__default["default"].createElement("div",{"class":"col-lg-12 text-start p-md-0 mb-3"},ProductFeaturesArray()),/*#__PURE__*/React__default["default"].createElement("div",{className:"col-lg-12 p-0 mb-3",style:{// display: sectionproperties.quantitybtn_show == 'Hide' && sectionproperties.cartBtnShow == 'Hide' ? 'none' : 'flex',
|
|
3867
3867
|
}},/*#__PURE__*/React__default["default"].createElement("div",{className:"row mx-0 w-100 d-flex align-items-center",style:{marginTop:sectionproperties.ctabuttnnsmarginvertical+'px',marginBottom:sectionproperties.ctabuttnnsmarginvertical+'px'}},(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer61=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer61===void 0||(_fetchProductInfoQuer61=_fetchProductInfoQuer61.data)===null||_fetchProductInfoQuer61===void 0||(_fetchProductInfoQuer61=_fetchProductInfoQuer61.productinfo)===null||_fetchProductInfoQuer61===void 0?void 0:_fetchProductInfoQuer61.isproducttobesold)==1&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer62=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer62===void 0||(_fetchProductInfoQuer62=_fetchProductInfoQuer62.data)===null||_fetchProductInfoQuer62===void 0||(_fetchProductInfoQuer62=_fetchProductInfoQuer62.productinfo)===null||_fetchProductInfoQuer62===void 0?void 0:_fetchProductInfoQuer62.isproducthasquantitychange)==1&§ionproperties.quantitybtn_show=='Show'&&/*#__PURE__*/React__default["default"].createElement("div",{className:"col-lg-12 p-0 mb-2 d-flex justofy-content-start"},/*#__PURE__*/React__default["default"].createElement("p",{className:"m-0 p-0",style:{color:sectionproperties.generaltext_fontColor,fontSize:sectionproperties.generaltext_fontSize+'px',textTransform:sectionproperties.generaltext_textTransform,fontWeight:sectionproperties.generaltext_fontWeight}},langdetect=='en'?sectionproperties.quantitybtnen:sectionproperties.quantitybtnar,":")),/*#__PURE__*/React__default["default"].createElement("div",{"class":"col-lg-12 p-0"},/*#__PURE__*/React__default["default"].createElement("div",{"class":"row m-0 w-100 d-flex align-items-center",style:{justifyContent:sectionproperties.cartbtncentered=='Centered'?'center':'start'}},sectionproperties.quantitybtn_show=='Show'&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer63=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer63===void 0||(_fetchProductInfoQuer63=_fetchProductInfoQuer63.data)===null||_fetchProductInfoQuer63===void 0||(_fetchProductInfoQuer63=_fetchProductInfoQuer63.productinfo)===null||_fetchProductInfoQuer63===void 0?void 0:_fetchProductInfoQuer63.isproducttobesold)==1&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer64=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer64===void 0||(_fetchProductInfoQuer64=_fetchProductInfoQuer64.data)===null||_fetchProductInfoQuer64===void 0||(_fetchProductInfoQuer64=_fetchProductInfoQuer64.productinfo)===null||_fetchProductInfoQuer64===void 0?void 0:_fetchProductInfoQuer64.isproducthasquantitychange)==1&&QuantityButton(),sectionproperties.cartbtnalone=='Besides Other Buttons'&§ionproperties.cartBtnShow=='Show'&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer65=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer65===void 0||(_fetchProductInfoQuer65=_fetchProductInfoQuer65.data)===null||_fetchProductInfoQuer65===void 0||(_fetchProductInfoQuer65=_fetchProductInfoQuer65.productinfo)===null||_fetchProductInfoQuer65===void 0?void 0:_fetchProductInfoQuer65.isproducttobesold)==1&&/*#__PURE__*/React__default["default"].createElement("button",{className:"".concat(productinfo_cssstyles.cart_btn," ")+' ml-2 d-flex align-items-center justify-content-center mb-sm-2 ',style:{width:sectionproperties.cartBtnWidth==100?'auto':sectionproperties.cartBtnWidth+'%',flex:sectionproperties.cartBtnWidth==100?1:''},onClick:function onClick(){if(fetchProductInfoQueryContext.data.data.productinfo.product_calltoaction=='Call'){var _fetchProductInfoQuer66;window.open('tel:'+((_fetchProductInfoQuer66=fetchProductInfoQueryContext.data.data.productinfo)===null||_fetchProductInfoQuer66===void 0?void 0:_fetchProductInfoQuer66.product_phonenumber),'_blank');}else {if(fetchProductInfoQueryContext.data.data.productinfo.maximumproductquant>=addtocardpayloadobj.quantity&&fetchProductInfoQueryContext.data.data.productinfo.minimumproductquant<=addtocardpayloadobj.quantity){addtocartfunc();}else {NotificationManager.warning('',lang.maximum+': '+fetchProductInfoQueryContext.data.data.productinfo.maximumproductquant+', '+lang.minimum+': '+fetchProductInfoQueryContext.data.data.productinfo.minimumproductquant);}}},disabled:AddtoCartMutationContext.isLoading==true?true:false},!AddtoCartMutationContext.isLoading&&/*#__PURE__*/React__default["default"].createElement("span",{className:' d-flex align-items-center justify-content-center ',style:{fontWeight:sectionproperties.cartBtnTextfontweight}},/*#__PURE__*/React__default["default"].createElement("i",{className:langdetect=='en'?'h-100 d-flex align-items-center justify-content-center mr-2':'h-100 d-flex align-items-center justify-content-center ml-2'},sectionproperties.carticonstyle=='Shopping bag 1'&&/*#__PURE__*/React__default["default"].createElement(FiShoppingBag.FiShoppingBag,{className:"",size:sectionproperties.cartBtn_iconFontSize}),sectionproperties.carticonstyle=='Shopping bag 2'&&/*#__PURE__*/React__default["default"].createElement(CgShoppingBag.CgShoppingBag,{className:"",size:sectionproperties.cartBtn_iconFontSize}),sectionproperties.carticonstyle=='Shopping bag 3'&&/*#__PURE__*/React__default["default"].createElement(BsBag.BsBag,{className:"",size:sectionproperties.cartBtn_iconFontSize}),sectionproperties.carticonstyle=='Shopping bag 4'&&/*#__PURE__*/React__default["default"].createElement(IoBagHandleOutline.IoBagHandleOutline,{className:"",size:sectionproperties.cartBtn_iconFontSize}),sectionproperties.carticonstyle=='Shopping cart 1'&&/*#__PURE__*/React__default["default"].createElement(FiShoppingCart.FiShoppingCart,{className:"",size:sectionproperties.cartBtn_iconFontSize}),sectionproperties.carticonstyle=='Shopping cart 2'&&/*#__PURE__*/React__default["default"].createElement(MdAddShoppingCart.MdAddShoppingCart,{size:sectionproperties.cartBtn_iconFontSize})),langdetect=='en'?fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer67=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer67===void 0||(_fetchProductInfoQuer67=_fetchProductInfoQuer67.data)===null||_fetchProductInfoQuer67===void 0||(_fetchProductInfoQuer67=_fetchProductInfoQuer67.productinfo)===null||_fetchProductInfoQuer67===void 0?void 0:_fetchProductInfoQuer67.productactionbuttontext_en:fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer68=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer68===void 0||(_fetchProductInfoQuer68=_fetchProductInfoQuer68.data)===null||_fetchProductInfoQuer68===void 0||(_fetchProductInfoQuer68=_fetchProductInfoQuer68.productinfo)===null||_fetchProductInfoQuer68===void 0?void 0:_fetchProductInfoQuer68.productactionbuttontext_ar),AddtoCartMutationContext.isLoading&&/*#__PURE__*/React__default["default"].createElement("div",{className:' d-flex align-items-center justify-content-center '},/*#__PURE__*/React__default["default"].createElement(reactCssfxLoading.CircularProgress,{color:sectionproperties.cartBtnTextcolor,width:"20px",height:"20px",duration:"1s"}))),sectionproperties.btnposition=='Bottom'&§ionproperties.favBtnShow=='Show'&&/*#__PURE__*/React__default["default"].createElement("div",{className:productinfo_cssstyles.wishlist_btn+' d-flex justify-content-center align-items-center mb-sm-2 ',onClick:function onClick(){addtofavoritescontext(fetchProductInfoQueryContext.data.data.productinfo.productid);setIsFavorite(!IsFavorite);},style:{background:fetchProductInfoQueryContext.data.data.productinfo.IsFavExists==true?sectionproperties.activebgcolor:''}},/*#__PURE__*/React__default["default"].createElement("i",{className:"h-100 d-flex align-items-center justify-content-center"},IsFavorite&&/*#__PURE__*/React__default["default"].createElement("i",{className:"h-100 d-flex align-items-center justify-content-center"},sectionproperties.faviconshape=='Star Shape'&&/*#__PURE__*/React__default["default"].createElement(AiFillStar$1.AiFillStar,{size:sectionproperties.favBtnIconfontsize,style:{color:sectionproperties.activefaviconcolor}}),sectionproperties.faviconshape=='Heart Shape'&&/*#__PURE__*/React__default["default"].createElement(FaHeart$1.FaHeart,{size:sectionproperties.favBtnIconfontsize,style:{color:sectionproperties.activefaviconcolor}})),!IsFavorite&&/*#__PURE__*/React__default["default"].createElement("i",{className:"h-100 d-flex align-items-center justify-content-center"},sectionproperties.faviconshape=='Star Shape'&&/*#__PURE__*/React__default["default"].createElement(AiOutlineStar.AiOutlineStar,{size:sectionproperties.favBtnIconfontsize}),sectionproperties.faviconshape=='Heart Shape'&&/*#__PURE__*/React__default["default"].createElement(FaRegHeart.FaRegHeart,{size:sectionproperties.favBtnIconfontsize}))),!IsFavorite&§ionproperties.favBtnTextfontsize!=0&&/*#__PURE__*/React__default["default"].createElement("p",{"class":"m-0 p-0",style:{fontSize:sectionproperties.favBtnTextfontsize+'px'}},langdetect=='en'?sectionproperties.favbtncontent_en:sectionproperties.favbtncontent_ar),IsFavorite&§ionproperties.favBtnTextfontsize!=0&&/*#__PURE__*/React__default["default"].createElement("p",{"class":"m-0 p-0",style:{fontSize:sectionproperties.favBtnTextfontsize+'px'}},langdetect=='en'?sectionproperties.favbtnaddedcontent_en:sectionproperties.favbtnaddedcontent_ar)),(authdetailsContext===null||authdetailsContext===void 0||(_authdetailsContext$i18=authdetailsContext.instinfo)===null||_authdetailsContext$i18===void 0?void 0:_authdetailsContext$i18.contactinfo.instid)=='694befd291698'&&/*#__PURE__*/React__default["default"].createElement("div",{"class":"col-12 p-0 mt-3"},/*#__PURE__*/React__default["default"].createElement("button",{className:sectionproperties.cartbtntramsitionafterwhile=='Yes'?"".concat(productinfo_cssstyles.cart_btn," ")+' d-flex align-items-center justify-content-center mb-sm-2 cart_btnvibrate ':"".concat(productinfo_cssstyles.cart_btn," ")+' d-flex align-items-center justify-content-center mb-sm-2 ',style:{width:'100%'},onClick:function onClick(){var productId=fetchProductInfoQueryContext.data.data.productinfo.productid;// Replace this with a real ID (e.g., passed via props)
|
|
3868
3868
|
var key='comparedProducts';// Get current list from localStorage
|
|
3869
3869
|
var existing=JSON.parse(localStorage.getItem(key))||[];// Check if the product is already in the list
|
|
@@ -27942,20 +27942,20 @@
|
|
|
27942
27942
|
styleInject(css_248z$C);
|
|
27943
27943
|
|
|
27944
27944
|
var Searchlist$1 = function Searchlist(props) {
|
|
27945
|
-
props.actions.lang;
|
|
27945
|
+
var lang = props.actions.lang;
|
|
27946
27946
|
var langdetect = props.actions.langdetect;
|
|
27947
|
-
props.actions.routingcountext;
|
|
27948
|
-
props.actions.StaticPagesLinksContext;
|
|
27947
|
+
var routingcountext = props.actions.routingcountext;
|
|
27948
|
+
var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
|
|
27949
27949
|
var SearchHeaderInputContext = props.actions.SearchHeaderInputContext;
|
|
27950
|
-
props.actions.SearchHeaderMutationContext;
|
|
27951
|
-
props.actions.ikimagecredcontext;
|
|
27952
|
-
props.actions.authdetailsContext;
|
|
27950
|
+
var SearchHeaderMutationContext = props.actions.SearchHeaderMutationContext;
|
|
27951
|
+
var ikimagecredcontext = props.actions.ikimagecredcontext;
|
|
27952
|
+
var authdetailsContext = props.actions.authdetailsContext;
|
|
27953
27953
|
var _useState = React.useState(''),
|
|
27954
27954
|
_useState2 = _slicedToArray__default["default"](_useState, 2),
|
|
27955
27955
|
sectionproperties = _useState2[0],
|
|
27956
27956
|
setsectionproperties = _useState2[1];
|
|
27957
|
-
props.actions.setSearchHeaderInputContext;
|
|
27958
|
-
props.actions.setsearchbarCanvasContext;
|
|
27957
|
+
var setSearchHeaderInputContext = props.actions.setSearchHeaderInputContext;
|
|
27958
|
+
var setsearchbarCanvasContext = props.actions.setsearchbarCanvasContext;
|
|
27959
27959
|
var _useState3 = React.useState(props.srcfromprops == 'cardssection' ? props.searchinputprops : SearchHeaderInputContext),
|
|
27960
27960
|
_useState4 = _slicedToArray__default["default"](_useState3, 2),
|
|
27961
27961
|
searchinput = _useState4[0],
|
|
@@ -27973,7 +27973,7 @@
|
|
|
27973
27973
|
setsearchinput(props.searchinputprops);
|
|
27974
27974
|
}
|
|
27975
27975
|
}, [props.searchinputprops]);
|
|
27976
|
-
|
|
27976
|
+
var searchlist_styles = {
|
|
27977
27977
|
searchcont: glamor.css({
|
|
27978
27978
|
color: sectionproperties.searchlist_prodNameColor,
|
|
27979
27979
|
':hover': {
|
|
@@ -28031,13 +28031,151 @@
|
|
|
28031
28031
|
// height: props.srcfromprops == 'searchlistsliderheaderfullwidth' ? '100vh' : props.srcfromprops == 'cardssection' ? '25vh' : '30vh',
|
|
28032
28032
|
// overflowY: props.srcfromprops == 'searchlistsliderheaderfullwidth' ? 'scroll' : 'hidden',
|
|
28033
28033
|
})
|
|
28034
|
-
}
|
|
28034
|
+
};
|
|
28035
28035
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
28036
28036
|
className: "col-lg-12 p-0 m-0 w-100 allcentered",
|
|
28037
28037
|
style: {
|
|
28038
28038
|
zIndex: 1000
|
|
28039
28039
|
}
|
|
28040
|
-
},
|
|
28040
|
+
}, sectionproperties.length != 0 && searchinput != undefined && searchinput != null && searchinput.length != 0 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
28041
|
+
className: props.srcfromprops == 'header' ? "".concat(searchlist_styles.searchlist_outercontainer) + ' m-0 row d-flex d-md-none justify-content-center p-1 ' : "".concat(searchlist_styles.searchlist_outercontainer) + ' m-0 row d-flex justify-content-center p-1 ',
|
|
28042
|
+
style: {
|
|
28043
|
+
zIndex: 1000,
|
|
28044
|
+
width: props.srcfromprops == 'header' ? '300px' : props.srcfromprops == 'headerfullwidth' ? '100%' : props.srcfromprops == 'searchlistsliderheaderfullwidth' ? '100%' : props.srcfromprops == 'headerfullwidth-200' ? '270px' : props.srcfromprops == 'respheader' ? '100%' : props.srcfromprops == 'header-400' ? '400px' : props.srcfromprops == 'header-250' ? '250px' : props.srcfromprops == 'header-300' ? '300px' : props.srcfromprops == 'StylishHeader' || props.srcfromprops == 'modernheader' ? '90%' : props.srcfromprops == 'ElegantHeader' ? '90%' : '100%',
|
|
28045
|
+
top: props.headernameprops == 'categoryfeaturingheader' || props.headernameprops == 'Header_threesectionslogocentered' ? 20 : props.srcfromprops == 'respheader' ? 10 : props.srcfromprops == 'StylishHeader' || props.srcfromprops == 'modernheader' ? 50 : props.srcfromprops == 'ElegantHeader' ? 50 : 10,
|
|
28046
|
+
left: props.srcfromprops == 'respheader' ? 0 : props.srcfromprops == 'header-400' || props.srcfromprops == 'header-300' || props.srcfromprops == 'header-250' ? langdetect == 'en' ? '' : 0 : props.srcfromprops == 'StylishHeader' || props.srcfromprops == 'modernheader' ? langdetect == 'en' ? '5%' : '' : props.srcfromprops == 'ElegantHeader' ? langdetect == 'en' ? '5%' : '' : '',
|
|
28047
|
+
right: props.srcfromprops == 'respheader' ? 0 : props.srcfromprops == 'header-400' || props.srcfromprops == 'header-300' || props.srcfromprops == 'header-250' ? langdetect == 'en' ? 0 : '' : props.srcfromprops == 'ElegantHeader' ? langdetect == 'ar' ? '5%' : '' : props.srcfromprops == 'Elegant' ? langdetect == 'ar' ? '5%' : '' : '',
|
|
28048
|
+
margin: props.srcfromprops == 'respheader' ? 'auto' : ''
|
|
28049
|
+
}
|
|
28050
|
+
}, SearchHeaderMutationContext.isLoading && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
28051
|
+
"class": "row m-0 w-100 d-flex align-items-center justify-content-center h-100 mt-auto mb-auto"
|
|
28052
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
28053
|
+
"class": "col-lg-12 d-flex align-items-center justify-content-center flex-column h-100"
|
|
28054
|
+
}, /*#__PURE__*/React__default["default"].createElement(reactCssfxLoading.Messaging, {
|
|
28055
|
+
color: "#ccc",
|
|
28056
|
+
width: "10px",
|
|
28057
|
+
height: "10px",
|
|
28058
|
+
duration: "1s"
|
|
28059
|
+
}))), !SearchHeaderMutationContext.isLoading && SearchHeaderMutationContext.isSuccess && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
28060
|
+
"class": props.srcfromprops == 'searchlistsliderheaderfullwidth' ? ' row m-0 w-100 d-flex justify-content-center ' : "".concat(searchlist_styles.searchlist_innercontainer) + ' subscrollbar row m-0 w-100 d-flex justify-content-center ',
|
|
28061
|
+
style: {
|
|
28062
|
+
overflowX: 'hidden',
|
|
28063
|
+
paddingBottom: props.srcfromprops == 'searchlistsliderheaderfullwidth' ? '50px' : '0.25rem'
|
|
28064
|
+
}
|
|
28065
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
28066
|
+
"class": "col-lg-12 m-0 w-100 p-0"
|
|
28067
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
28068
|
+
"class": "row m-0 w-100"
|
|
28069
|
+
}, SearchHeaderMutationContext.data.data.products.map(function (item, index) {
|
|
28070
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
28071
|
+
"class": sectionproperties.searchliststyle == 'Vertical' ? 'col-lg-12 m-0 w-100 p-1 pt-0 pb-0' : 'col-lg-12 m-0 w-100 p-1 pt-0 pb-0 d-none d-md-flex',
|
|
28072
|
+
style: {
|
|
28073
|
+
zIndex: 1000
|
|
28074
|
+
},
|
|
28075
|
+
onClick: function onClick() {
|
|
28076
|
+
routingcountext(StaticPagesLinksContext.productinfo, true, item.productid);
|
|
28077
|
+
setSearchHeaderInputContext('');
|
|
28078
|
+
setsearchinput('');
|
|
28079
|
+
setsearchbarCanvasContext(false);
|
|
28080
|
+
}
|
|
28081
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
28082
|
+
"class": "".concat(searchlist_styles.searchcont) + ' col-lg-12 col-md-12 d-flex p-0 cursor-pointer '
|
|
28083
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
28084
|
+
"class": searchlist_styles.imagecont
|
|
28085
|
+
}, /*#__PURE__*/React__default["default"].createElement(Imagekitimagecomp, {
|
|
28086
|
+
urlEndpoint: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint,
|
|
28087
|
+
publicKey: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimagepublickey,
|
|
28088
|
+
path: '/tr:w-' + sectionproperties.searchlistimagetr_w + ',h-' + sectionproperties.searchlistimagetr_h + '/' + item.defaultimagepath,
|
|
28089
|
+
loading: "lazy",
|
|
28090
|
+
style: {
|
|
28091
|
+
height: '100%',
|
|
28092
|
+
width: '100%',
|
|
28093
|
+
objectFit: 'contain',
|
|
28094
|
+
borderRadius: sectionproperties.searchlist_prodimage_borderradius + 'px'
|
|
28095
|
+
}
|
|
28096
|
+
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
28097
|
+
"class": props.srcfromprops == 'StylishHeader' || props.srcfromprops == 'modernheader' ? searchlist_styles.productnamecont + ' col-lg-11 col-md-11 col-sm-9 d-flex ' : props.srcfromprops == 'searchlistsliderheaderfullwidth' ? searchlist_styles.productnamecont + ' col-lg-9 col-md-10 col-sm-9 d-flex ' : searchlist_styles.productnamecont + ' col-lg-10 col-md-11 col-sm-9 d-flex ',
|
|
28098
|
+
style: {
|
|
28099
|
+
alignItems: sectionproperties.searchlistshowprice == 'Show' ? 'start' : 'center'
|
|
28100
|
+
}
|
|
28101
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
28102
|
+
"class": props.srcfromprops == 'searchlistsliderheaderfullwidth' ? 'row m-0 w-100 d-flex' : 'row m-0 w-100 d-flex',
|
|
28103
|
+
style: {
|
|
28104
|
+
alignItems: sectionproperties.searchlistshowprice == 'Show' ? 'start' : 'center'
|
|
28105
|
+
}
|
|
28106
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
28107
|
+
"class": "col-lg-12 col-md-12 col-sm-12 p-0 d-flex align-items-start"
|
|
28108
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
28109
|
+
"class": "".concat(searchlist_styles.productNameStyles) + ' m-0 text-overflow p-0 '
|
|
28110
|
+
}, langdetect == 'en' ? item.name_en : item.name_ar)), sectionproperties.searchlistshowprice == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
28111
|
+
"class": "col-lg-12 col-md-12 col-sm-12 p-0 d-flex align-items-center",
|
|
28112
|
+
style: {
|
|
28113
|
+
marginTop: sectionproperties.pricingmargintop != undefined ? sectionproperties.pricingmargintop + 'px' : '-0.25rem',
|
|
28114
|
+
display: 'row'
|
|
28115
|
+
}
|
|
28116
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
28117
|
+
"class": "".concat(searchlist_styles.productPricestyles) + ' m-0 '
|
|
28118
|
+
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', " ", item.hassale == 1 ? item.defaultsaleprice : item.defaultprice, ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar), item.hassale == 1 && /*#__PURE__*/React__default["default"].createElement("p", {
|
|
28119
|
+
"class": props.srcfromprops == 'searchlistsliderheaderfullwidth' ? "".concat(searchlist_styles.productSalePricestyles) + ' linethrough mb-0 ml-2 mr-2' : "".concat(searchlist_styles.productSalePricestyles) + ' linethrough ml-2 mr-2 mb-0'
|
|
28120
|
+
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', " ", item.defaultprice, ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar))))), index != SearchHeaderMutationContext.data.data.products.length - 1 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
28121
|
+
className: "col-lg-12 col-md-12 p-0"
|
|
28122
|
+
}, /*#__PURE__*/React__default["default"].createElement("hr", {
|
|
28123
|
+
className: "mt-2 mb-1"
|
|
28124
|
+
})));
|
|
28125
|
+
}), sectionproperties.searchliststyle == 'Cards' && SearchHeaderMutationContext.data.data.products.map(function (item, index) {
|
|
28126
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
28127
|
+
"class": (props === null || props === void 0 ? void 0 : props.numofcardsprops) != undefined ? ' m-0 w-100 mb-3 d-flex d-md-none col-lg-' + (props === null || props === void 0 ? void 0 : props.numofcardsprops) : 'col-lg-4 m-0 w-100 mb-3 d-flex d-md-none',
|
|
28128
|
+
style: {
|
|
28129
|
+
zIndex: 1000
|
|
28130
|
+
},
|
|
28131
|
+
onClick: function onClick() {
|
|
28132
|
+
routingcountext(StaticPagesLinksContext.productinfo, true, item.productid);
|
|
28133
|
+
setSearchHeaderInputContext('');
|
|
28134
|
+
setsearchinput('');
|
|
28135
|
+
setsearchbarCanvasContext(false);
|
|
28136
|
+
}
|
|
28137
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
28138
|
+
"class": "".concat(searchlist_styles.searchcont) + ' row m-0 w-100 cursor-pointer '
|
|
28139
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
28140
|
+
"class": ' col-lg-12 col-md-12 d-flex p-0 '
|
|
28141
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
28142
|
+
"class": searchlist_styles.imagecont + ' w-100 ',
|
|
28143
|
+
style: {
|
|
28144
|
+
borderRadius: sectionproperties.searchlist_prodimage_borderradius + 'px'
|
|
28145
|
+
}
|
|
28146
|
+
}, /*#__PURE__*/React__default["default"].createElement(Imagekitimagecomp, {
|
|
28147
|
+
urlEndpoint: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint,
|
|
28148
|
+
publicKey: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimagepublickey,
|
|
28149
|
+
path: '/tr:w-' + sectionproperties.searchlistimagetr_w + ',h-' + sectionproperties.searchlistimagetr_h + '/' + item.defaultimagepath,
|
|
28150
|
+
loading: "lazy",
|
|
28151
|
+
style: {
|
|
28152
|
+
height: sectionproperties.searchlist_prodimage_width + '%',
|
|
28153
|
+
width: sectionproperties.searchlist_prodimage_width + '%',
|
|
28154
|
+
objectFit: 'contain'
|
|
28155
|
+
}
|
|
28156
|
+
}))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
28157
|
+
"class": "col-lg-12 col-md-12 col-sm-12 p-0 allcentered"
|
|
28158
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
28159
|
+
"class": props.srcfromprops == 'ElegantHeader' ? "".concat(searchlist_styles.productNameStyles) + ' m-0 wordbreak wordbreak2 p-0 ' : "".concat(searchlist_styles.productNameStyles) + ' m-0 text-overflow p-0 ',
|
|
28160
|
+
style: {
|
|
28161
|
+
textAlign: 'center'
|
|
28162
|
+
}
|
|
28163
|
+
}, langdetect == 'en' ? item.name_en : item.name_ar)), sectionproperties.searchlistshowprice == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
28164
|
+
"class": "col-lg-12 col-md-12 col-sm-12 p-0 allcentered mt-2"
|
|
28165
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
28166
|
+
"class": "".concat(searchlist_styles.productPricestyles) + ' m-0 '
|
|
28167
|
+
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', " ", item.hassale == 1 ? item.defaultsaleprice : item.defaultprice, ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar), item.hassale == 1 && /*#__PURE__*/React__default["default"].createElement("p", {
|
|
28168
|
+
"class": "".concat(searchlist_styles.productSalePricestyles) + ' linethrough ml-2 mr-2 mb-0'
|
|
28169
|
+
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', " ", item.defaultprice, ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar))));
|
|
28170
|
+
})), SearchHeaderMutationContext.data.data.products.length == 0 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
28171
|
+
className: "row m-0 w-100 d-flex align-items-center justify-content-center h-100"
|
|
28172
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
28173
|
+
className: "col-lg-12 d-flex align-items-center justify-content-center text-light flex-column h-100"
|
|
28174
|
+
}, /*#__PURE__*/React__default["default"].createElement(FiLayers.FiLayers, {
|
|
28175
|
+
size: 25
|
|
28176
|
+
}), /*#__PURE__*/React__default["default"].createElement("p", {
|
|
28177
|
+
className: "font-13 font-weight-500"
|
|
28178
|
+
}, lang.nosearchresults)))))));
|
|
28041
28179
|
};
|
|
28042
28180
|
|
|
28043
28181
|
function ownKeys$2d(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|