tabexseriescomponents 0.2.1034 → 0.2.1036
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 +14 -9
- package/dist/index.esm.js +14 -9
- package/dist/index.umd.js +14 -9
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -3531,7 +3531,19 @@ var Slideshowsettings={indicators:true,arrows:true,pauseOnHover:false,scale:2};v
|
|
|
3531
3531
|
var url='https://3d-tryon.vercel.app/?i=68319d088f13f&p=6832fc16af9d7';window.open(url,'_blank');};var ShareButtonsContainer=function ShareButtonsContainer(){return/*#__PURE__*/React__default["default"].createElement("div",{"class":"row m-0 w-100"},/*#__PURE__*/React__default["default"].createElement("div",{"class":"col-lg-12 d-flex justify-content-center flex-column align-items-center p-0"},/*#__PURE__*/React__default["default"].createElement("p",{"class":"m-0 p-0",style:{fontWeight:sectionproperties.sharebtn_FontWeight,color:sectionproperties.sharebtn_color,fontSize:sectionproperties.sharebtn_fontSize+'px'}},langdetect=='en'?sectionproperties.sharebtn_contentEn:sectionproperties.sharebtn_contentAr),/*#__PURE__*/React__default["default"].createElement("div",{className:"Demo__container w-100 m-0 allcentered mt-3"},/*#__PURE__*/React__default["default"].createElement("div",{className:"Demo__some-network ml-2 mr-2"},/*#__PURE__*/React__default["default"].createElement(reactShare.FacebookShareButton,{url:shareUrl,quote:title,className:"Demo__some-network__share-button"},/*#__PURE__*/React__default["default"].createElement(reactShare.FacebookIcon,{size:40,round:true}))),/*#__PURE__*/React__default["default"].createElement("div",{className:"Demo__some-network ml-2 mr-2"},/*#__PURE__*/React__default["default"].createElement(reactShare.EmailShareButton,{url:shareUrl,quote:title,className:"Demo__some-network__share-button"},/*#__PURE__*/React__default["default"].createElement(reactShare.EmailIcon,{size:40,round:true}))),sectionproperties.shareviax=='Show'&&/*#__PURE__*/React__default["default"].createElement("div",{className:"Demo__some-network ml-2 mr-2",style:{width:'40px',height:'40px'}},/*#__PURE__*/React__default["default"].createElement(reactShare.TwitterShareButton,{url:shareUrl,title:title,className:"Demo__some-network__share-button"},/*#__PURE__*/React__default["default"].createElement("img",{src:'https://tabex-co.com/storage/StaticImages/twitterxicon.png',style:{width:'100%',height:'100%',objectFit:'contain'}}))),/*#__PURE__*/React__default["default"].createElement("div",{className:"Demo__some-network ml-2 mr-2"},/*#__PURE__*/React__default["default"].createElement(reactShare.WhatsappShareButton,{url:shareUrl,title:title,separator:":: ",className:"Demo__some-network__share-button"},/*#__PURE__*/React__default["default"].createElement(reactShare.WhatsappIcon,{size:40,round:true}))),sectionproperties.showsharelinkedin=='Show'&&/*#__PURE__*/React__default["default"].createElement("div",{className:"Demo__some-network ml-2 mr-2"},/*#__PURE__*/React__default["default"].createElement(reactShare.LinkedinShareButton,{url:shareUrl,title:title,separator:":: ",className:"Demo__some-network__share-button"},/*#__PURE__*/React__default["default"].createElement(reactShare.LinkedinIcon,{size:40,round:true}))))));};// {fetchProductInfoQueryContext.data.data.productinfo.hassale == 0
|
|
3532
3532
|
// ? parseFloat(getprice_discountpriceprops('defaultprice', 1, variantindexcompleted)).toFixed(2)
|
|
3533
3533
|
// : parseFloat(getprice_discountpriceprops('defaultsaleprice', 1, variantindexcompleted)).toFixed(2)}
|
|
3534
|
-
React.useEffect(function(){var _fetchProductInfoQuer;var totalprice='';if(variantindexcompleted.length==0&&fetchProductInfoQueryContext.data.data.productinfo.hassale==0){totalprice=parseFloat(getprice_discountpriceprops('defaultprice',1,variantindexcompleted)).toFixed(2);}else if(variantindexcompleted.length==0&&fetchProductInfoQueryContext.data.data.productinfo.hassale==1){totalprice=parseFloat(getprice_discountpriceprops('defaultsaleprice',1,variantindexcompleted)).toFixed(2);}else if(variantindexcompleted.length!=0&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer===void 0||(_fetchProductInfoQuer=_fetchProductInfoQuer.data)===null||_fetchProductInfoQuer===void 0||(_fetchProductInfoQuer=_fetchProductInfoQuer.productinfo)===null||_fetchProductInfoQuer===void 0||(_fetchProductInfoQuer=_fetchProductInfoQuer.variants[variantindexcompleted])===null||_fetchProductInfoQuer===void 0?void 0:_fetchProductInfoQuer.hassale)==1){totalprice=parseFloat(getprice_discountpriceprops('defaultsaleprice',1,variantindexcompleted)).toFixed(2);}else {totalprice=parseFloat(getprice_discountpriceprops('defaultprice',1,variantindexcompleted)).toFixed(2);}settotalprice(totalprice);setcurrentshowingimageindex(props.actions.currentshowingimageindex);},[variantindexcompleted]);React.useEffect(function(){if(currentshowingimageindex_pro!=undefined&¤tshowingimageindex_pro!=null&¤tshowingimageindex_pro!=''&&typeof currentshowingimageindex_pro==='number'&&isFinite(currentshowingimageindex_pro)&¤tshowingimageindex_pro>=0){setcurrentshowingimageindex(currentshowingimageindex_pro);}},[currentshowingimageindex_pro]);var ProductsSKUContainer=function ProductsSKUContainer(){return/*#__PURE__*/React__default["default"].createElement("p",{"class":"m-0 p-0 d-flex justify-content-start"},/*#__PURE__*/React__default["default"].createElement("span",{style:{color:sectionproperties.skuColor,fontWeight:sectionproperties.skuFontWeight,fontSize:sectionproperties.skuFontSize+'px',textAlign:langdetect=='en'?'left':'right'}},langdetect=='en'?sectionproperties.skutitleEn:sectionproperties.skutitleAr,":",' '),/*#__PURE__*/React__default["default"].createElement("span",{"class":"ml-1 mr-1",style:{color:'#7e859b',fontWeight:sectionproperties.skuSecondaryFontWeight,fontSize:sectionproperties.skuFontSize+'px',textAlign:langdetect=='en'?'left':'right'}},sectionproperties.showvariantsku=='Show'&&variantsku!=''?variantsku:fetchProductInfoQueryContext.data.data.productinfo.sku));};var MeasurementUnitSection=function MeasurementUnitSection(){return/*#__PURE__*/React__default["default"].createElement("div",{className:'col-lg-12 p-0 mb-1 d-flex justify-content-start align-items-center mb-1 mt-3'},/*#__PURE__*/React__default["default"].createElement("p",{className:' m-0 p-0 wordbreak d-flex justify-content-start ',style:{textAlign:langdetect=='en'?'left':'right',fontWeight:sectionproperties.measurementunitfontweight,color:sectionproperties.measurementunitcolor,fontSize:sectionproperties.measurementunitcolor+'px'}},fetchProductInfoQueryContext.data.data.productinfo.measurmentunit));};var ProductNameSection=function ProductNameSection(){return/*#__PURE__*/React__default["default"].createElement("p",{className:props.actions.srcfromprops=='templatedraftrouter'?"".concat(productinfo_cssstyles.productname," ").concat(productinfo_cssstyles.productnamehover)+' m-0 p-0 wordbreak d-flex cursor-pointer font-sm-15 ':"".concat(productinfo_cssstyles.productname)+' m-0 p-0 wordbreak d-flex font-sm-15 ',onClick:function onClick(){if(props.actions.srcfromprops=='templatedraftrouter'){routingcountext(StaticPagesLinksContext.productinfo,true,fetchProductInfoQueryContext.data.data.productinfo.productid);}},style:{textAlign:sectionproperties.productnamecentered=='Centered'?'center':langdetect=='en'?'left':'right'}},langdetect=='en'?fetchProductInfoQueryContext.data.data.productinfo.name_en:fetchProductInfoQueryContext.data.data.productinfo.name_ar);};var ShortDescriptionTitle=function ShortDescriptionTitle(){return/*#__PURE__*/React__default["default"].createElement("p",{"class":"m-0 p-0",style:{textAlign:sectionproperties.productnamecentered=='Centered'?'center':langdetect=='en'?'left':'right',fontWeight:sectionproperties.prodCatFontWeight,color:sectionproperties.prodCatColor,fontSize:sectionproperties.prodCatFontSize+'px'}},langdetect=='en'?sectionproperties.shortdescriptiontitle_en:sectionproperties.shortdescriptiontitle_ar);};var ProductFeaturesTable=function ProductFeaturesTable(){var _fetchProductInfoQuer2;return/*#__PURE__*/React__default["default"].createElement("div",{"class":"row m-0 w-100"},/*#__PURE__*/React__default["default"].createElement("div",{"class":"col-lg-12 p-0 my-3"},/*#__PURE__*/React__default["default"].createElement("p",{className:"m-0 p-0",style:{color:sectionproperties.featurestitlecolor,fontSize:sectionproperties.featurestitlefontsize+'px',fontWeight:600}},langdetect=='en'?sectionproperties.featurestitleen:sectionproperties.featurestitlear)),/*#__PURE__*/React__default["default"].createElement("div",{className:"col-lg-12 m-0 w-100 p-0"},/*#__PURE__*/React__default["default"].createElement("table",{className:'table tablevertical'},fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer2=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer2===void 0||(_fetchProductInfoQuer2=_fetchProductInfoQuer2.data)===null||_fetchProductInfoQuer2===void 0||(_fetchProductInfoQuer2=_fetchProductInfoQuer2.productinfo)===null||_fetchProductInfoQuer2===void 0||(_fetchProductInfoQuer2=_fetchProductInfoQuer2.productfeatures)===null||_fetchProductInfoQuer2===void 0?void 0:_fetchProductInfoQuer2.map(function(fitem,findex){return/*#__PURE__*/React__default["default"].createElement("tr",null,/*#__PURE__*/React__default["default"].createElement("th",{style:{textTransform:'capitalize',color:sectionproperties.featurecolor,fontWeight:sectionproperties.featurefontweight,fontSize:sectionproperties.featurefontsize}},/*#__PURE__*/React__default["default"].createElement("div",{"class":"d-flex flex-row",style:{color:sectionproperties.featurecolor}},(fitem===null||fitem===void 0?void 0:fitem.feature_image_url)!=null&&/*#__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%'}})),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("td",{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));}))));};var DescriptionAccordion=function DescriptionAccordion(){return/*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItem,{uuid:0},/*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItemHeading,null,/*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItemButton,null,/*#__PURE__*/React__default["default"].createElement("div",{"class":"row m-0 w-100"},/*#__PURE__*/React__default["default"].createElement("div",{className:"col-lg-10 col-md-10 col-sm-10 p-0 d-flex align-items-center justify-content-start"},/*#__PURE__*/React__default["default"].createElement("p",{"class":"m-0 p-0",style:{textAlign:langdetect=='en'?'left':'right',fontWeight:sectionproperties.prodCatFontWeight,color:sectionproperties.prodCatColor,fontSize:sectionproperties.prodCatFontSize+'px'}},langdetect=='en'?sectionproperties.descriptionContentEn:sectionproperties.descriptionContentAr)),/*#__PURE__*/React__default["default"].createElement("div",{className:"col-lg-2 col-md-2 col-sm-2 p-0"},/*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItemState,null,function(state){if(state.expanded==true){return/*#__PURE__*/React__default["default"].createElement("i",{className:' h-100 d-flex align-items-center justify-content-end '},/*#__PURE__*/React__default["default"].createElement(FaMinus.FaMinus,{color:sectionproperties.prodCatColor}));}else {return/*#__PURE__*/React__default["default"].createElement("i",{className:' h-100 d-flex align-items-center justify-content-end '},/*#__PURE__*/React__default["default"].createElement(FaPlus.FaPlus,{color:sectionproperties.prodCatColor}));}}))))),/*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItemPanel,{className:"p-0"},/*#__PURE__*/React__default["default"].createElement("div",{"class":"col-lg-12 p-0 mt-3"},/*#__PURE__*/React__default["default"].createElement(DescriptionContent,{actions:props.actions,srcfromprops:'collap'}))));};var TotalSection=function TotalSection(){var _fetchProductInfoQuer3,_fetchProductInfoQuer4,_fetchProductInfoQuer5;return/*#__PURE__*/React__default["default"].createElement("div",{className:"row m-0 w-100 d-flex flex-row"},/*#__PURE__*/React__default["default"].createElement("p",{className:"m-0 p-0",style:{color:sectionproperties.total_color,fontSize:sectionproperties.total_fontsize+'px',fontWeight:sectionproperties.total_fontweight,textTransform:sectionproperties.total_texttransform}},lang.total,":"),/*#__PURE__*/React__default["default"].createElement("div",{className:"col-lg-9 col-md-9 col-sm-9 d-flex align-items-center pl-1 pr-1"},/*#__PURE__*/React__default["default"].createElement("p",{className:'m-0 p-0 wordbreak d-flex align-items-center justify-content-end',style:{fontSize:sectionproperties.prodpriceFontSize+'px',fontWeight:sectionproperties.prodPriceFontWeight,color:sectionproperties.prodPriceColor}},/*#__PURE__*/React__default["default"].createElement("span",{className:langdetect=='en'?' d-flex align-items-center justify-content-end wordbreak text-right ':' d-flex align-items-center justify-content-end wordbreak text-left '},langdetect=='en'?authdetailsContext===null||authdetailsContext===void 0?void 0:authdetailsContext.currencyname_en:'',' ',variantindexcompleted!=undefined&&variantindexcompleted.length==0&&fetchProductInfoQueryContext.data.data.productinfo.hassale==0&&parseFloat(getprice_discountpriceprops('defaultprice',1,variantindexcompleted)).toFixed(2),variantindexcompleted!=undefined&&variantindexcompleted.length==0&&fetchProductInfoQueryContext.data.data.productinfo.hassale==1&&parseFloat(getprice_discountpriceprops('defaultsaleprice',1,variantindexcompleted)).toFixed(2),variantindexcompleted!=undefined&&variantindexcompleted.length!=0&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer3=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer3===void 0||(_fetchProductInfoQuer3=_fetchProductInfoQuer3.data)===null||_fetchProductInfoQuer3===void 0||(_fetchProductInfoQuer3=_fetchProductInfoQuer3.productinfo)===null||_fetchProductInfoQuer3===void 0||(_fetchProductInfoQuer3=_fetchProductInfoQuer3.variants[variantindexcompleted])===null||_fetchProductInfoQuer3===void 0?void 0:_fetchProductInfoQuer3.hassale)==1&&parseFloat(getprice_discountpriceprops('defaultsaleprice',1,variantindexcompleted)).toFixed(2),variantindexcompleted!=undefined&&variantindexcompleted.length!=0&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer4=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer4===void 0||(_fetchProductInfoQuer4=_fetchProductInfoQuer4.data)===null||_fetchProductInfoQuer4===void 0||(_fetchProductInfoQuer4=_fetchProductInfoQuer4.productinfo)===null||_fetchProductInfoQuer4===void 0||(_fetchProductInfoQuer4=_fetchProductInfoQuer4.variants[variantindexcompleted])===null||_fetchProductInfoQuer4===void 0?void 0:_fetchProductInfoQuer4.hassale)==0&&parseFloat(getprice_discountpriceprops('defaultprice',1,variantindexcompleted)).toFixed(2),langdetect=='en'?'':authdetailsContext===null||authdetailsContext===void 0?void 0:authdetailsContext.currencyname_ar)),/*#__PURE__*/React__default["default"].createElement("p",{className:'m-0 p-0 linethrough wordbreak',style:{color:sectionproperties.prodsalePriceColor,fontSize:sectionproperties.prodsalepriceFontSize+'px',fontWeight:sectionproperties.prodsalePriceFontWeight}},fetchProductInfoQueryContext.data.data.productinfo.hassale==1&&variantindexcompleted!=undefined&&variantindexcompleted.length==0&&/*#__PURE__*/React__default["default"].createElement("span",{className:langdetect=='en'?' d-flex align-items-center justify-content-end wordbreak text-right wordbreak ':' d-flex align-items-center justify-content-end wordbreak text-left wordbreak '},/*#__PURE__*/React__default["default"].createElement("span",{className:"ml-2 mr-2",style:{textDecoration:'none'}},"-"),langdetect=='en'?authdetailsContext===null||authdetailsContext===void 0?void 0:authdetailsContext.currencyname_en:''," ",parseFloat(getprice_discountpriceprops('defaultprice',1,variantindexcompleted)),' ',langdetect=='en'?'':authdetailsContext===null||authdetailsContext===void 0?void 0:authdetailsContext.currencyname_ar),variantindexcompleted!=undefined&&variantindexcompleted.length!=0&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer5=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer5===void 0||(_fetchProductInfoQuer5=_fetchProductInfoQuer5.data)===null||_fetchProductInfoQuer5===void 0||(_fetchProductInfoQuer5=_fetchProductInfoQuer5.productinfo)===null||_fetchProductInfoQuer5===void 0||(_fetchProductInfoQuer5=_fetchProductInfoQuer5.variants[variantindexcompleted])===null||_fetchProductInfoQuer5===void 0?void 0:_fetchProductInfoQuer5.hassale)==1&&/*#__PURE__*/React__default["default"].createElement("span",{className:langdetect=='en'?' d-flex align-items-center justify-content-end wordbreak text-right wordbreak ':' d-flex align-items-center justify-content-end wordbreak text-left wordbreak '},/*#__PURE__*/React__default["default"].createElement("span",{className:"ml-2 mr-2",style:{textDecoration:'none'}},"-"),langdetect=='en'?authdetailsContext===null||authdetailsContext===void 0?void 0:authdetailsContext.currencyname_en:''," ",parseFloat(getprice_discountpriceprops('defaultprice',1,variantindexcompleted)),' ',langdetect=='en'?'':authdetailsContext===null||authdetailsContext===void 0?void 0:authdetailsContext.currencyname_ar))));};var QuantityButton=function QuantityButton(position){var _authdetailsContext$i3;return/*#__PURE__*/React__default["default"].createElement("button",{className:position=='fixedcontainer'?" ".concat(productinfo_cssstyles.quantitybtn)+' p-0 d-flex align-items-center justify-content-center inputrangedark ':" ".concat(productinfo_cssstyles.quantitybtn)+' p-0 d-flex align-items-center justify-content-center mb-sm-2 inputrangedark ',style:{height:sectionproperties.quantitybtneditable=='Slider'?'auto':sectionproperties.quantitybtn_height+'px',width:position=='fixedcontainer'?'100%':sectionproperties.quantitybtneditable=='Slider'?'100%':sectionproperties.quantitybtn_width+'px',flexDirection:'row',direction:'ltr',// background: 'transparent',
|
|
3534
|
+
React.useEffect(function(){var _fetchProductInfoQuer;var totalprice='';if(variantindexcompleted.length==0&&fetchProductInfoQueryContext.data.data.productinfo.hassale==0){totalprice=parseFloat(getprice_discountpriceprops('defaultprice',1,variantindexcompleted)).toFixed(2);}else if(variantindexcompleted.length==0&&fetchProductInfoQueryContext.data.data.productinfo.hassale==1){totalprice=parseFloat(getprice_discountpriceprops('defaultsaleprice',1,variantindexcompleted)).toFixed(2);}else if(variantindexcompleted.length!=0&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer===void 0||(_fetchProductInfoQuer=_fetchProductInfoQuer.data)===null||_fetchProductInfoQuer===void 0||(_fetchProductInfoQuer=_fetchProductInfoQuer.productinfo)===null||_fetchProductInfoQuer===void 0||(_fetchProductInfoQuer=_fetchProductInfoQuer.variants[variantindexcompleted])===null||_fetchProductInfoQuer===void 0?void 0:_fetchProductInfoQuer.hassale)==1){totalprice=parseFloat(getprice_discountpriceprops('defaultsaleprice',1,variantindexcompleted)).toFixed(2);}else {totalprice=parseFloat(getprice_discountpriceprops('defaultprice',1,variantindexcompleted)).toFixed(2);}settotalprice(totalprice);setcurrentshowingimageindex(props.actions.currentshowingimageindex);},[variantindexcompleted]);// useEffect(() => {
|
|
3535
|
+
// if (
|
|
3536
|
+
// currentshowingimageindex_pro != undefined &&
|
|
3537
|
+
// currentshowingimageindex_pro != null &&
|
|
3538
|
+
// currentshowingimageindex_pro != '' &&
|
|
3539
|
+
// typeof currentshowingimageindex_pro === 'number' &&
|
|
3540
|
+
// isFinite(currentshowingimageindex_pro) &&
|
|
3541
|
+
// currentshowingimageindex_pro >= 0
|
|
3542
|
+
// ) {
|
|
3543
|
+
// setcurrentshowingimageindex(currentshowingimageindex_pro);
|
|
3544
|
+
// }
|
|
3545
|
+
// }, [currentshowingimageindex_pro]);
|
|
3546
|
+
React.useEffect(function(){if(currentshowingimageindex_pro==0){setcurrentshowingimageindex(currentshowingimageindex_pro);}else {if(currentshowingimageindex_pro!=undefined&¤tshowingimageindex_pro!=null&¤tshowingimageindex_pro!=''&&typeof currentshowingimageindex_pro==='number'&&isFinite(currentshowingimageindex_pro)&¤tshowingimageindex_pro>=0){setcurrentshowingimageindex(currentshowingimageindex_pro);}}},[currentshowingimageindex_pro]);var ProductsSKUContainer=function ProductsSKUContainer(){return/*#__PURE__*/React__default["default"].createElement("p",{"class":"m-0 p-0 d-flex justify-content-start"},/*#__PURE__*/React__default["default"].createElement("span",{style:{color:sectionproperties.skuColor,fontWeight:sectionproperties.skuFontWeight,fontSize:sectionproperties.skuFontSize+'px',textAlign:langdetect=='en'?'left':'right'}},langdetect=='en'?sectionproperties.skutitleEn:sectionproperties.skutitleAr,":",' '),/*#__PURE__*/React__default["default"].createElement("span",{"class":"ml-1 mr-1",style:{color:'#7e859b',fontWeight:sectionproperties.skuSecondaryFontWeight,fontSize:sectionproperties.skuFontSize+'px',textAlign:langdetect=='en'?'left':'right'}},sectionproperties.showvariantsku=='Show'&&variantsku!=''?variantsku:fetchProductInfoQueryContext.data.data.productinfo.sku));};var MeasurementUnitSection=function MeasurementUnitSection(){return/*#__PURE__*/React__default["default"].createElement("div",{className:'col-lg-12 p-0 mb-1 d-flex justify-content-start align-items-center mb-1 mt-3'},/*#__PURE__*/React__default["default"].createElement("p",{className:' m-0 p-0 wordbreak d-flex justify-content-start ',style:{textAlign:langdetect=='en'?'left':'right',fontWeight:sectionproperties.measurementunitfontweight,color:sectionproperties.measurementunitcolor,fontSize:sectionproperties.measurementunitcolor+'px'}},fetchProductInfoQueryContext.data.data.productinfo.measurmentunit));};var ProductNameSection=function ProductNameSection(){return/*#__PURE__*/React__default["default"].createElement("p",{className:props.actions.srcfromprops=='templatedraftrouter'?"".concat(productinfo_cssstyles.productname," ").concat(productinfo_cssstyles.productnamehover)+' m-0 p-0 wordbreak d-flex cursor-pointer font-sm-15 ':"".concat(productinfo_cssstyles.productname)+' m-0 p-0 wordbreak d-flex font-sm-15 ',onClick:function onClick(){if(props.actions.srcfromprops=='templatedraftrouter'){routingcountext(StaticPagesLinksContext.productinfo,true,fetchProductInfoQueryContext.data.data.productinfo.productid);}},style:{textAlign:sectionproperties.productnamecentered=='Centered'?'center':langdetect=='en'?'left':'right'}},langdetect=='en'?fetchProductInfoQueryContext.data.data.productinfo.name_en:fetchProductInfoQueryContext.data.data.productinfo.name_ar);};var ShortDescriptionTitle=function ShortDescriptionTitle(){return/*#__PURE__*/React__default["default"].createElement("p",{"class":"m-0 p-0",style:{textAlign:sectionproperties.productnamecentered=='Centered'?'center':langdetect=='en'?'left':'right',fontWeight:sectionproperties.prodCatFontWeight,color:sectionproperties.prodCatColor,fontSize:sectionproperties.prodCatFontSize+'px'}},langdetect=='en'?sectionproperties.shortdescriptiontitle_en:sectionproperties.shortdescriptiontitle_ar);};var ProductFeaturesTable=function ProductFeaturesTable(){var _fetchProductInfoQuer2;return/*#__PURE__*/React__default["default"].createElement("div",{"class":"row m-0 w-100"},/*#__PURE__*/React__default["default"].createElement("div",{"class":"col-lg-12 p-0 my-3"},/*#__PURE__*/React__default["default"].createElement("p",{className:"m-0 p-0",style:{color:sectionproperties.featurestitlecolor,fontSize:sectionproperties.featurestitlefontsize+'px',fontWeight:600}},langdetect=='en'?sectionproperties.featurestitleen:sectionproperties.featurestitlear)),/*#__PURE__*/React__default["default"].createElement("div",{className:"col-lg-12 m-0 w-100 p-0"},/*#__PURE__*/React__default["default"].createElement("table",{className:'table tablevertical'},fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer2=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer2===void 0||(_fetchProductInfoQuer2=_fetchProductInfoQuer2.data)===null||_fetchProductInfoQuer2===void 0||(_fetchProductInfoQuer2=_fetchProductInfoQuer2.productinfo)===null||_fetchProductInfoQuer2===void 0||(_fetchProductInfoQuer2=_fetchProductInfoQuer2.productfeatures)===null||_fetchProductInfoQuer2===void 0?void 0:_fetchProductInfoQuer2.map(function(fitem,findex){return/*#__PURE__*/React__default["default"].createElement("tr",null,/*#__PURE__*/React__default["default"].createElement("th",{style:{textTransform:'capitalize',color:sectionproperties.featurecolor,fontWeight:sectionproperties.featurefontweight,fontSize:sectionproperties.featurefontsize}},/*#__PURE__*/React__default["default"].createElement("div",{"class":"d-flex flex-row",style:{color:sectionproperties.featurecolor}},(fitem===null||fitem===void 0?void 0:fitem.feature_image_url)!=null&&/*#__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%'}})),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("td",{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));}))));};var DescriptionAccordion=function DescriptionAccordion(){return/*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItem,{uuid:0},/*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItemHeading,null,/*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItemButton,null,/*#__PURE__*/React__default["default"].createElement("div",{"class":"row m-0 w-100"},/*#__PURE__*/React__default["default"].createElement("div",{className:"col-lg-10 col-md-10 col-sm-10 p-0 d-flex align-items-center justify-content-start"},/*#__PURE__*/React__default["default"].createElement("p",{"class":"m-0 p-0",style:{textAlign:langdetect=='en'?'left':'right',fontWeight:sectionproperties.prodCatFontWeight,color:sectionproperties.prodCatColor,fontSize:sectionproperties.prodCatFontSize+'px'}},langdetect=='en'?sectionproperties.descriptionContentEn:sectionproperties.descriptionContentAr)),/*#__PURE__*/React__default["default"].createElement("div",{className:"col-lg-2 col-md-2 col-sm-2 p-0"},/*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItemState,null,function(state){if(state.expanded==true){return/*#__PURE__*/React__default["default"].createElement("i",{className:' h-100 d-flex align-items-center justify-content-end '},/*#__PURE__*/React__default["default"].createElement(FaMinus.FaMinus,{color:sectionproperties.prodCatColor}));}else {return/*#__PURE__*/React__default["default"].createElement("i",{className:' h-100 d-flex align-items-center justify-content-end '},/*#__PURE__*/React__default["default"].createElement(FaPlus.FaPlus,{color:sectionproperties.prodCatColor}));}}))))),/*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItemPanel,{className:"p-0"},/*#__PURE__*/React__default["default"].createElement("div",{"class":"col-lg-12 p-0 mt-3"},/*#__PURE__*/React__default["default"].createElement(DescriptionContent,{actions:props.actions,srcfromprops:'collap'}))));};var TotalSection=function TotalSection(){var _fetchProductInfoQuer3,_fetchProductInfoQuer4,_fetchProductInfoQuer5;return/*#__PURE__*/React__default["default"].createElement("div",{className:"row m-0 w-100 d-flex flex-row"},/*#__PURE__*/React__default["default"].createElement("p",{className:"m-0 p-0",style:{color:sectionproperties.total_color,fontSize:sectionproperties.total_fontsize+'px',fontWeight:sectionproperties.total_fontweight,textTransform:sectionproperties.total_texttransform}},lang.total,":"),/*#__PURE__*/React__default["default"].createElement("div",{className:"col-lg-9 col-md-9 col-sm-9 d-flex align-items-center pl-1 pr-1"},/*#__PURE__*/React__default["default"].createElement("p",{className:'m-0 p-0 wordbreak d-flex align-items-center justify-content-end',style:{fontSize:sectionproperties.prodpriceFontSize+'px',fontWeight:sectionproperties.prodPriceFontWeight,color:sectionproperties.prodPriceColor}},/*#__PURE__*/React__default["default"].createElement("span",{className:langdetect=='en'?' d-flex align-items-center justify-content-end wordbreak text-right ':' d-flex align-items-center justify-content-end wordbreak text-left '},langdetect=='en'?authdetailsContext===null||authdetailsContext===void 0?void 0:authdetailsContext.currencyname_en:'',' ',variantindexcompleted!=undefined&&variantindexcompleted.length==0&&fetchProductInfoQueryContext.data.data.productinfo.hassale==0&&parseFloat(getprice_discountpriceprops('defaultprice',1,variantindexcompleted)).toFixed(2),variantindexcompleted!=undefined&&variantindexcompleted.length==0&&fetchProductInfoQueryContext.data.data.productinfo.hassale==1&&parseFloat(getprice_discountpriceprops('defaultsaleprice',1,variantindexcompleted)).toFixed(2),variantindexcompleted!=undefined&&variantindexcompleted.length!=0&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer3=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer3===void 0||(_fetchProductInfoQuer3=_fetchProductInfoQuer3.data)===null||_fetchProductInfoQuer3===void 0||(_fetchProductInfoQuer3=_fetchProductInfoQuer3.productinfo)===null||_fetchProductInfoQuer3===void 0||(_fetchProductInfoQuer3=_fetchProductInfoQuer3.variants[variantindexcompleted])===null||_fetchProductInfoQuer3===void 0?void 0:_fetchProductInfoQuer3.hassale)==1&&parseFloat(getprice_discountpriceprops('defaultsaleprice',1,variantindexcompleted)).toFixed(2),variantindexcompleted!=undefined&&variantindexcompleted.length!=0&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer4=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer4===void 0||(_fetchProductInfoQuer4=_fetchProductInfoQuer4.data)===null||_fetchProductInfoQuer4===void 0||(_fetchProductInfoQuer4=_fetchProductInfoQuer4.productinfo)===null||_fetchProductInfoQuer4===void 0||(_fetchProductInfoQuer4=_fetchProductInfoQuer4.variants[variantindexcompleted])===null||_fetchProductInfoQuer4===void 0?void 0:_fetchProductInfoQuer4.hassale)==0&&parseFloat(getprice_discountpriceprops('defaultprice',1,variantindexcompleted)).toFixed(2),langdetect=='en'?'':authdetailsContext===null||authdetailsContext===void 0?void 0:authdetailsContext.currencyname_ar)),/*#__PURE__*/React__default["default"].createElement("p",{className:'m-0 p-0 linethrough wordbreak',style:{color:sectionproperties.prodsalePriceColor,fontSize:sectionproperties.prodsalepriceFontSize+'px',fontWeight:sectionproperties.prodsalePriceFontWeight}},fetchProductInfoQueryContext.data.data.productinfo.hassale==1&&variantindexcompleted!=undefined&&variantindexcompleted.length==0&&/*#__PURE__*/React__default["default"].createElement("span",{className:langdetect=='en'?' d-flex align-items-center justify-content-end wordbreak text-right wordbreak ':' d-flex align-items-center justify-content-end wordbreak text-left wordbreak '},/*#__PURE__*/React__default["default"].createElement("span",{className:"ml-2 mr-2",style:{textDecoration:'none'}},"-"),langdetect=='en'?authdetailsContext===null||authdetailsContext===void 0?void 0:authdetailsContext.currencyname_en:''," ",parseFloat(getprice_discountpriceprops('defaultprice',1,variantindexcompleted)),' ',langdetect=='en'?'':authdetailsContext===null||authdetailsContext===void 0?void 0:authdetailsContext.currencyname_ar),variantindexcompleted!=undefined&&variantindexcompleted.length!=0&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer5=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer5===void 0||(_fetchProductInfoQuer5=_fetchProductInfoQuer5.data)===null||_fetchProductInfoQuer5===void 0||(_fetchProductInfoQuer5=_fetchProductInfoQuer5.productinfo)===null||_fetchProductInfoQuer5===void 0||(_fetchProductInfoQuer5=_fetchProductInfoQuer5.variants[variantindexcompleted])===null||_fetchProductInfoQuer5===void 0?void 0:_fetchProductInfoQuer5.hassale)==1&&/*#__PURE__*/React__default["default"].createElement("span",{className:langdetect=='en'?' d-flex align-items-center justify-content-end wordbreak text-right wordbreak ':' d-flex align-items-center justify-content-end wordbreak text-left wordbreak '},/*#__PURE__*/React__default["default"].createElement("span",{className:"ml-2 mr-2",style:{textDecoration:'none'}},"-"),langdetect=='en'?authdetailsContext===null||authdetailsContext===void 0?void 0:authdetailsContext.currencyname_en:''," ",parseFloat(getprice_discountpriceprops('defaultprice',1,variantindexcompleted)),' ',langdetect=='en'?'':authdetailsContext===null||authdetailsContext===void 0?void 0:authdetailsContext.currencyname_ar))));};var QuantityButton=function QuantityButton(position){var _authdetailsContext$i3;return/*#__PURE__*/React__default["default"].createElement("button",{className:position=='fixedcontainer'?" ".concat(productinfo_cssstyles.quantitybtn)+' p-0 d-flex align-items-center justify-content-center inputrangedark ':" ".concat(productinfo_cssstyles.quantitybtn)+' p-0 d-flex align-items-center justify-content-center mb-sm-2 inputrangedark ',style:{height:sectionproperties.quantitybtneditable=='Slider'?'auto':sectionproperties.quantitybtn_height+'px',width:position=='fixedcontainer'?'100%':sectionproperties.quantitybtneditable=='Slider'?'100%':sectionproperties.quantitybtn_width+'px',flexDirection:'row',direction:'ltr',// background: 'transparent',
|
|
3535
3547
|
borderRadius:sectionproperties.quantitybtneditable=='Slider'?0:''}},sectionproperties.quantitybtneditable=='Slider'&&/*#__PURE__*/React__default["default"].createElement("div",{"class":"row m-0 w-100"},/*#__PURE__*/React__default["default"].createElement("div",{"class":"col-12 px-3 px-sm-3 pt-3 pinfo-slider"},/*#__PURE__*/React__default["default"].createElement(InputRange__default["default"],{draggableTrack:true,formatLabel:function formatLabel(value){return "".concat(value);},maxValue:fetchProductInfoQueryContext.data.data.productinfo.maximumproductquant,minValue:fetchProductInfoQueryContext.data.data.productinfo.minimumproductquant,value:parseInt(addtocardpayloadobj.quantity),step:1,onChange:function onChange(value){var tempaddtocardpayloadobj=_objectSpread$2C({},addtocardpayloadobj);tempaddtocardpayloadobj.quantity=value;setaddtocardpayloadobj(_objectSpread$2C({},tempaddtocardpayloadobj));}})),/*#__PURE__*/React__default["default"].createElement("div",{"class":"col-4 col-md-12 mt-4 mt-md-5 pt-md-4 col-md-12 mx-auto allcentered"},/*#__PURE__*/React__default["default"].createElement("span",{className:"".concat(productinfo_cssstyles.minus_quantitybtn_icon_container)+' m-1 ',onClick:function onClick(){var _fetchProductInfoQuer6,_fetchProductInfoQuer7,_fetchProductInfoQuer8,_fetchProductInfoQuer9;var quantitystepincrearse=1;var tempaddtocardpayloadobj=_objectSpread$2C({},addtocardpayloadobj);if((fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer6=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer6===void 0||(_fetchProductInfoQuer6=_fetchProductInfoQuer6.data)===null||_fetchProductInfoQuer6===void 0||(_fetchProductInfoQuer6=_fetchProductInfoQuer6.productinfo)===null||_fetchProductInfoQuer6===void 0?void 0:_fetchProductInfoQuer6.quantitystepincrearse)!=undefined&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer7=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer7===void 0||(_fetchProductInfoQuer7=_fetchProductInfoQuer7.data)===null||_fetchProductInfoQuer7===void 0||(_fetchProductInfoQuer7=_fetchProductInfoQuer7.productinfo)===null||_fetchProductInfoQuer7===void 0?void 0:_fetchProductInfoQuer7.quantitystepincrearse)!=null&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer8=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer8===void 0||(_fetchProductInfoQuer8=_fetchProductInfoQuer8.data)===null||_fetchProductInfoQuer8===void 0||(_fetchProductInfoQuer8=_fetchProductInfoQuer8.productinfo)===null||_fetchProductInfoQuer8===void 0?void 0:_fetchProductInfoQuer8.quantitystepincrearse)!=1&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer9=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer9===void 0||(_fetchProductInfoQuer9=_fetchProductInfoQuer9.data)===null||_fetchProductInfoQuer9===void 0||(_fetchProductInfoQuer9=_fetchProductInfoQuer9.productinfo)===null||_fetchProductInfoQuer9===void 0?void 0:_fetchProductInfoQuer9.quantitystepincrearse)!=''){var _fetchProductInfoQuer0;quantitystepincrearse=parseFloat(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer0=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer0===void 0||(_fetchProductInfoQuer0=_fetchProductInfoQuer0.data)===null||_fetchProductInfoQuer0===void 0||(_fetchProductInfoQuer0=_fetchProductInfoQuer0.productinfo)===null||_fetchProductInfoQuer0===void 0?void 0:_fetchProductInfoQuer0.quantitystepincrearse);}var finalquantity=tempaddtocardpayloadobj.quantity-quantitystepincrearse;if(finalquantity>=0){tempaddtocardpayloadobj.quantity=finalquantity;}setaddtocardpayloadobj(_objectSpread$2C({},tempaddtocardpayloadobj));}},/*#__PURE__*/React__default["default"].createElement("i",{className:sectionproperties.quantityiconstyle=='Arrows'?'fa fa-chevron-down':'h-100 allcentered',style:{fontSize:sectionproperties.remove_quantitybtn_textfontsize+'px'}},sectionproperties.quantityiconstyle=='Plus/Minus'&&/*#__PURE__*/React__default["default"].createElement(FiMinus.FiMinus,{size:sectionproperties.remove_quantitybtn_textfontsize}))),/*#__PURE__*/React__default["default"].createElement("span",{className:"".concat(productinfo_cssstyles.quantitybtn_text)},parseInt(addtocardpayloadobj.quantity)),/*#__PURE__*/React__default["default"].createElement("span",{className:"".concat(productinfo_cssstyles.add_quantitybtn_icon_container)+' m-1 ',onClick:function onClick(){var _fetchProductInfoQuer1,_fetchProductInfoQuer10,_fetchProductInfoQuer11,_fetchProductInfoQuer12;var quantitystepincrearse=1;var tempaddtocardpayloadobj=_objectSpread$2C({},addtocardpayloadobj);if((fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer1=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer1===void 0||(_fetchProductInfoQuer1=_fetchProductInfoQuer1.data)===null||_fetchProductInfoQuer1===void 0||(_fetchProductInfoQuer1=_fetchProductInfoQuer1.productinfo)===null||_fetchProductInfoQuer1===void 0?void 0:_fetchProductInfoQuer1.quantitystepincrearse)!=undefined&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer10=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer10===void 0||(_fetchProductInfoQuer10=_fetchProductInfoQuer10.data)===null||_fetchProductInfoQuer10===void 0||(_fetchProductInfoQuer10=_fetchProductInfoQuer10.productinfo)===null||_fetchProductInfoQuer10===void 0?void 0:_fetchProductInfoQuer10.quantitystepincrearse)!=null&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer11=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer11===void 0||(_fetchProductInfoQuer11=_fetchProductInfoQuer11.data)===null||_fetchProductInfoQuer11===void 0||(_fetchProductInfoQuer11=_fetchProductInfoQuer11.productinfo)===null||_fetchProductInfoQuer11===void 0?void 0:_fetchProductInfoQuer11.quantitystepincrearse)!=1&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer12=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer12===void 0||(_fetchProductInfoQuer12=_fetchProductInfoQuer12.data)===null||_fetchProductInfoQuer12===void 0||(_fetchProductInfoQuer12=_fetchProductInfoQuer12.productinfo)===null||_fetchProductInfoQuer12===void 0?void 0:_fetchProductInfoQuer12.quantitystepincrearse)!=''){var _fetchProductInfoQuer13;quantitystepincrearse=parseFloat(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer13=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer13===void 0||(_fetchProductInfoQuer13=_fetchProductInfoQuer13.data)===null||_fetchProductInfoQuer13===void 0||(_fetchProductInfoQuer13=_fetchProductInfoQuer13.productinfo)===null||_fetchProductInfoQuer13===void 0?void 0:_fetchProductInfoQuer13.quantitystepincrearse);}tempaddtocardpayloadobj.quantity=tempaddtocardpayloadobj.quantity+quantitystepincrearse;setaddtocardpayloadobj(_objectSpread$2C({},tempaddtocardpayloadobj));}},/*#__PURE__*/React__default["default"].createElement("i",{className:sectionproperties.quantityiconstyle=='Arrows'?'fa fa-chevron-up':'h-100 allcentered',style:{fontSize:sectionproperties.add_quantitybtn_textfontsize+'px'}},sectionproperties.quantityiconstyle=='Plus/Minus'&&/*#__PURE__*/React__default["default"].createElement(FiPlus.FiPlus,{size:sectionproperties.add_quantitybtn_textfontsize})))),/*#__PURE__*/React__default["default"].createElement("div",{"class":"col-12 p-0 mt-5 pt-1 my-3"},TotalSection())),sectionproperties.quantitybtneditable=='No'&&/*#__PURE__*/React__default["default"].createElement("span",{className:"".concat(productinfo_cssstyles.minus_quantitybtn_icon_container)+' m-1 ',onClick:function onClick(){var _fetchProductInfoQuer14,_fetchProductInfoQuer15,_fetchProductInfoQuer16,_fetchProductInfoQuer17;var quantitystepincrearse=1;var tempaddtocardpayloadobj=_objectSpread$2C({},addtocardpayloadobj);if((fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer14=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer14===void 0||(_fetchProductInfoQuer14=_fetchProductInfoQuer14.data)===null||_fetchProductInfoQuer14===void 0||(_fetchProductInfoQuer14=_fetchProductInfoQuer14.productinfo)===null||_fetchProductInfoQuer14===void 0?void 0:_fetchProductInfoQuer14.quantitystepincrearse)!=undefined&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer15=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer15===void 0||(_fetchProductInfoQuer15=_fetchProductInfoQuer15.data)===null||_fetchProductInfoQuer15===void 0||(_fetchProductInfoQuer15=_fetchProductInfoQuer15.productinfo)===null||_fetchProductInfoQuer15===void 0?void 0:_fetchProductInfoQuer15.quantitystepincrearse)!=null&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer16=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer16===void 0||(_fetchProductInfoQuer16=_fetchProductInfoQuer16.data)===null||_fetchProductInfoQuer16===void 0||(_fetchProductInfoQuer16=_fetchProductInfoQuer16.productinfo)===null||_fetchProductInfoQuer16===void 0?void 0:_fetchProductInfoQuer16.quantitystepincrearse)!=1&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer17=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer17===void 0||(_fetchProductInfoQuer17=_fetchProductInfoQuer17.data)===null||_fetchProductInfoQuer17===void 0||(_fetchProductInfoQuer17=_fetchProductInfoQuer17.productinfo)===null||_fetchProductInfoQuer17===void 0?void 0:_fetchProductInfoQuer17.quantitystepincrearse)!=''){var _fetchProductInfoQuer18;quantitystepincrearse=parseFloat(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer18=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer18===void 0||(_fetchProductInfoQuer18=_fetchProductInfoQuer18.data)===null||_fetchProductInfoQuer18===void 0||(_fetchProductInfoQuer18=_fetchProductInfoQuer18.productinfo)===null||_fetchProductInfoQuer18===void 0?void 0:_fetchProductInfoQuer18.quantitystepincrearse);}var finalquantity=tempaddtocardpayloadobj.quantity-quantitystepincrearse;if(finalquantity>=0){tempaddtocardpayloadobj.quantity=finalquantity;}setaddtocardpayloadobj(_objectSpread$2C({},tempaddtocardpayloadobj));}},/*#__PURE__*/React__default["default"].createElement("i",{className:sectionproperties.quantityiconstyle=='Arrows'?'fa fa-chevron-down':'h-100 allcentered',style:{fontSize:sectionproperties.remove_quantitybtn_textfontsize+'px'}},sectionproperties.quantityiconstyle=='Plus/Minus'&&/*#__PURE__*/React__default["default"].createElement(FiMinus.FiMinus,{size:sectionproperties.remove_quantitybtn_textfontsize}))),sectionproperties.quantitybtneditable=='No'&&/*#__PURE__*/React__default["default"].createElement("span",{className:"".concat(productinfo_cssstyles.quantitybtn_text)},(authdetailsContext===null||authdetailsContext===void 0||(_authdetailsContext$i3=authdetailsContext.instinfo)===null||_authdetailsContext$i3===void 0?void 0:_authdetailsContext$i3.contactinfo.instid)=='66d6de1a1e04a'?parseFloat(addtocardpayloadobj.quantity).toFixed(3):parseInt(addtocardpayloadobj.quantity)),sectionproperties.quantitybtneditable=='No'&&/*#__PURE__*/React__default["default"].createElement("span",{className:"".concat(productinfo_cssstyles.add_quantitybtn_icon_container)+' m-1 ',onClick:function onClick(){var _fetchProductInfoQuer19,_fetchProductInfoQuer20,_fetchProductInfoQuer21,_fetchProductInfoQuer22;var quantitystepincrearse=1;var tempaddtocardpayloadobj=_objectSpread$2C({},addtocardpayloadobj);if((fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer19=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer19===void 0||(_fetchProductInfoQuer19=_fetchProductInfoQuer19.data)===null||_fetchProductInfoQuer19===void 0||(_fetchProductInfoQuer19=_fetchProductInfoQuer19.productinfo)===null||_fetchProductInfoQuer19===void 0?void 0:_fetchProductInfoQuer19.quantitystepincrearse)!=undefined&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer20=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer20===void 0||(_fetchProductInfoQuer20=_fetchProductInfoQuer20.data)===null||_fetchProductInfoQuer20===void 0||(_fetchProductInfoQuer20=_fetchProductInfoQuer20.productinfo)===null||_fetchProductInfoQuer20===void 0?void 0:_fetchProductInfoQuer20.quantitystepincrearse)!=null&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer21=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer21===void 0||(_fetchProductInfoQuer21=_fetchProductInfoQuer21.data)===null||_fetchProductInfoQuer21===void 0||(_fetchProductInfoQuer21=_fetchProductInfoQuer21.productinfo)===null||_fetchProductInfoQuer21===void 0?void 0:_fetchProductInfoQuer21.quantitystepincrearse)!=1&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer22=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer22===void 0||(_fetchProductInfoQuer22=_fetchProductInfoQuer22.data)===null||_fetchProductInfoQuer22===void 0||(_fetchProductInfoQuer22=_fetchProductInfoQuer22.productinfo)===null||_fetchProductInfoQuer22===void 0?void 0:_fetchProductInfoQuer22.quantitystepincrearse)!=''){var _fetchProductInfoQuer23;quantitystepincrearse=parseFloat(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer23=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer23===void 0||(_fetchProductInfoQuer23=_fetchProductInfoQuer23.data)===null||_fetchProductInfoQuer23===void 0||(_fetchProductInfoQuer23=_fetchProductInfoQuer23.productinfo)===null||_fetchProductInfoQuer23===void 0?void 0:_fetchProductInfoQuer23.quantitystepincrearse);}tempaddtocardpayloadobj.quantity=tempaddtocardpayloadobj.quantity+quantitystepincrearse;setaddtocardpayloadobj(_objectSpread$2C({},tempaddtocardpayloadobj));}},/*#__PURE__*/React__default["default"].createElement("i",{className:sectionproperties.quantityiconstyle=='Arrows'?'fa fa-chevron-up':'h-100 allcentered',style:{fontSize:sectionproperties.add_quantitybtn_textfontsize+'px'}},sectionproperties.quantityiconstyle=='Plus/Minus'&&/*#__PURE__*/React__default["default"].createElement(FiPlus.FiPlus,{size:sectionproperties.add_quantitybtn_textfontsize}))),sectionproperties.quantitybtneditable=='Yes'&&/*#__PURE__*/React__default["default"].createElement("input",{type:"number",style:{width:100,height:40,background:'transparent',fontWeight:sectionproperties.quantitybtn_textfontweight,color:sectionproperties.quantitybtn_textcolor,fontSize:sectionproperties.quantitybtn_textfontsize+'px',textAlign:'center'},value:addtocardpayloadobj.quantity,onChange:function onChange(event){if(event.target.value==NaN||event.target.value==undefined||event.target.value==null||event.target.value==''){var tempaddtocardpayloadobj=_objectSpread$2C({},addtocardpayloadobj);tempaddtocardpayloadobj.quantity=1;setaddtocardpayloadobj(_objectSpread$2C({},tempaddtocardpayloadobj));}else {var tempaddtocardpayloadobj=_objectSpread$2C({},addtocardpayloadobj);tempaddtocardpayloadobj.quantity=parseInt(event.target.value);setaddtocardpayloadobj(_objectSpread$2C({},tempaddtocardpayloadobj));}}}));};var ProductFeaturesArray=function ProductFeaturesArray(){var _fetchProductInfoQuer24;return/*#__PURE__*/React__default["default"].createElement("div",{className:"row m-0 w-100"},fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer24=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer24===void 0||(_fetchProductInfoQuer24=_fetchProductInfoQuer24.data)===null||_fetchProductInfoQuer24===void 0||(_fetchProductInfoQuer24=_fetchProductInfoQuer24.productinfo)===null||_fetchProductInfoQuer24===void 0||(_fetchProductInfoQuer24=_fetchProductInfoQuer24.productfeatures)===null||_fetchProductInfoQuer24===void 0?void 0:_fetchProductInfoQuer24.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:sectionproperties.featureimagewidthheight+'px'},"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+'px'}},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+'px'}},langdetect=='en'?fitem===null||fitem===void 0?void 0:fitem.value_en:fitem===null||fitem===void 0?void 0:fitem.value_ar))));}));};return/*#__PURE__*/React__default["default"].createElement("div",{className:sectionproperties.productInformationType=='Portfolio'?' row m-0 w-100 p-0 ':sectionproperties.card_marginLeft!=0?' row m-0 w-100 pl-lg-3 pr-lg-3 pl-md-4 pr-md-4 p-sm-0 ':' row m-0 w-100 p-sm-0 ',style:{paddingLeft:sectionproperties.productInformationType=='Portfolio'?0:srcfromprops=='Productinfomodel'?langdetect=='en'?sectionproperties.card_marginLeft+'px':sectionproperties.card_marginRight+'px':0,paddingRight:sectionproperties.productInformationType=='Portfolio'?0:srcfromprops=='Productinfomodel'?langdetect=='en'?sectionproperties.card_marginRight+'px':sectionproperties.card_marginLeft+'px':0}},/*#__PURE__*/React__default["default"].createElement("div",{"class":' col-lg-12 p-0 '},Object.keys(sectionproperties).length!=0&§ionproperties.productInformationType=='Product/Service Information'&&(authdetailsContext===null||authdetailsContext===void 0||(_authdetailsContext$i4=authdetailsContext.instinfo)===null||_authdetailsContext$i4===void 0?void 0:_authdetailsContext$i4.contactinfo.instid)!='678d1831ef638'&&(authdetailsContext===null||authdetailsContext===void 0||(_authdetailsContext$i5=authdetailsContext.instinfo)===null||_authdetailsContext$i5===void 0?void 0:_authdetailsContext$i5.contactinfo.instid)!='680a0b8a31930'&&(authdetailsContext===null||authdetailsContext===void 0||(_authdetailsContext$i6=authdetailsContext.instinfo)===null||_authdetailsContext$i6===void 0?void 0:_authdetailsContext$i6.contactinfo.instid)!='684fdf3f9e856'&&(authdetailsContext===null||authdetailsContext===void 0||(_authdetailsContext$i7=authdetailsContext.instinfo)===null||_authdetailsContext$i7===void 0?void 0:_authdetailsContext$i7.contactinfo.instid)!='68a6e2f865af8'&&/*#__PURE__*/React__default["default"].createElement("div",{"class":"".concat(productinfo_cssstyles.cardcontainer)+' row ml-0 mr-0 w-100 pl-md-2 pr-md-2 px-1025-1 ',style:{minHeight:props.actions.srcfromprops=='templatedraftrouter'?'auto':sectionproperties.height+'vh',paddingTop:props.actions.srcfromprops=='templatedraftrouter'?30:0}},sectionproperties.gallerystyle=='Style 2'&&/*#__PURE__*/// scrollhorizontalwithscrollbarremove
|
|
3536
3548
|
React__default["default"].createElement("div",{"class":"w-100 scrollhorizontalwithscrollbar "},(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer25=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer25===void 0||(_fetchProductInfoQuer25=_fetchProductInfoQuer25.data)===null||_fetchProductInfoQuer25===void 0||(_fetchProductInfoQuer25=_fetchProductInfoQuer25.productinfo)===null||_fetchProductInfoQuer25===void 0||(_fetchProductInfoQuer25=_fetchProductInfoQuer25.productimages)===null||_fetchProductInfoQuer25===void 0?void 0:_fetchProductInfoQuer25.length)!=0&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer26=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer26===void 0||(_fetchProductInfoQuer26=_fetchProductInfoQuer26.data)===null||_fetchProductInfoQuer26===void 0||(_fetchProductInfoQuer26=_fetchProductInfoQuer26.productinfo)===null||_fetchProductInfoQuer26===void 0?void 0:_fetchProductInfoQuer26.productimages.map(function(item,index){if(item.is_size_guide!=1){return/*#__PURE__*/React__default["default"].createElement("div",{"class":' scrollhorizontalcard mx-2 ',style:{height:sectionproperties.image_height+'px',width:sectionproperties.image_width+'px'}},/*#__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:'/tr:w-'+sectionproperties.imagetr_w+',h-'+sectionproperties.imagetr_h+'/'+item.path,style:{width:'100%',height:'100%',objectFit:'contain'},loading:"lazy"}));}}))),sectionproperties.gallerystyle=='One Centered Image'&&/*#__PURE__*/React__default["default"].createElement("div",{"class":"col-lg-12 allcentered"},(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer27=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer27===void 0||(_fetchProductInfoQuer27=_fetchProductInfoQuer27.data)===null||_fetchProductInfoQuer27===void 0||(_fetchProductInfoQuer27=_fetchProductInfoQuer27.productinfo)===null||_fetchProductInfoQuer27===void 0||(_fetchProductInfoQuer27=_fetchProductInfoQuer27.productimages)===null||_fetchProductInfoQuer27===void 0?void 0:_fetchProductInfoQuer27.length)!=0&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer28=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer28===void 0||(_fetchProductInfoQuer28=_fetchProductInfoQuer28.data)===null||_fetchProductInfoQuer28===void 0||(_fetchProductInfoQuer28=_fetchProductInfoQuer28.productinfo)===null||_fetchProductInfoQuer28===void 0?void 0:_fetchProductInfoQuer28.productimages.map(function(item,index){return/*#__PURE__*/React__default["default"].createElement("div",{"class":' mx-2 ',style:{height:sectionproperties.image_height+'px',width:sectionproperties.image_width+'px'}},/*#__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:'/tr:w-'+sectionproperties.imagetr_w+',h-'+sectionproperties.imagetr_h+'/'+item.path,style:{width:'100%',height:'100%',objectFit:'contain'},loading:"lazy"}));}))),/*#__PURE__*/React__default["default"].createElement("div",{"class":"col-lg-12 p-0"},/*#__PURE__*/React__default["default"].createElement("div",{"class":sectionproperties.infomarionsectionpaddinghorizontal==0?'row mx-0 w-100':'row mx-0 w-100'// class={sectionproperties.infomarionsectionpaddinghorizontal == 0 ? 'row mx-0 w-100' : 'row mx-0 w-100 px-md-3'}
|
|
3537
3549
|
,style:{marginTop:sectionproperties.gallerystyle=='Style 2'?'3rem':0,paddingLeft:sectionproperties.infomarionsectionpaddinghorizontal+'px',paddingRight:sectionproperties.infomarionsectionpaddinghorizontal+'px'}},/*#__PURE__*/React__default["default"].createElement("div",{className:sectionproperties.showfooterphonenumber=='Hide'&§ionproperties.showfooteremail=='Hide'&§ionproperties.showstoreinfo2=='Hide'&§ionproperties.showstoreinfo1=='Hide'?'col-lg-12':sectionproperties.storeinfoposition=='Below Information'?'col-lg-12':langdetect=='en'?'col-lg-9 pl-0 mb-md-3 p-md-0':'col-lg-9 pr-0 mb-md-3 p-md-0',style:{marginBottom:sectionproperties.evencols=='Yes'?'60px':0}},/*#__PURE__*/React__default["default"].createElement("div",{className:'row m-0 w-100'},sectionproperties.gallerystyle=='Style 1'&&/*#__PURE__*/React__default["default"].createElement("div",{className:sectionproperties.evencols=='Yes'?productinfo_cssstyles.evencols+' col-xl-6 col-lg-6 col-md-12 col-sm-12 mb-md-2 pl-1 pr-1 evencols ':'col-xl-5 col-lg-5 col-md-12 col-sm-12 mb-md-5 pb-md-4 pl-1 pr-1'},/*#__PURE__*/React__default["default"].createElement("div",{className:sectionproperties.maximizegalleryfullscreen=='Yes'?' col-lg-12 p-0 maximize ':'col-lg-12 p-0',style:{width:'100%'// height: 'auto',
|
|
@@ -72923,14 +72935,7 @@ var Slideshowzoom = function Slideshowzoom(props) {
|
|
|
72923
72935
|
width: '100%',
|
|
72924
72936
|
height: '100%'
|
|
72925
72937
|
}
|
|
72926
|
-
}, /*#__PURE__*/React__default["default"].createElement(
|
|
72927
|
-
id: "radioPlayer",
|
|
72928
|
-
controls: true,
|
|
72929
|
-
autoplay: true
|
|
72930
|
-
}, /*#__PURE__*/React__default["default"].createElement("source", {
|
|
72931
|
-
src: "http://radio.hvips.com:8056/stream",
|
|
72932
|
-
type: "audio/mpeg"
|
|
72933
|
-
})))), /*#__PURE__*/React__default["default"].createElement(reactBootstrap.Modal.Footer, null)));
|
|
72938
|
+
})), /*#__PURE__*/React__default["default"].createElement(reactBootstrap.Modal.Footer, null)));
|
|
72934
72939
|
};
|
|
72935
72940
|
var easingFunctions = {
|
|
72936
72941
|
noEasing: undefined,
|
package/dist/index.esm.js
CHANGED
|
@@ -3480,7 +3480,19 @@ var Slideshowsettings={indicators:true,arrows:true,pauseOnHover:false,scale:2};v
|
|
|
3480
3480
|
var url='https://3d-tryon.vercel.app/?i=68319d088f13f&p=6832fc16af9d7';window.open(url,'_blank');};var ShareButtonsContainer=function ShareButtonsContainer(){return/*#__PURE__*/React.createElement("div",{"class":"row m-0 w-100"},/*#__PURE__*/React.createElement("div",{"class":"col-lg-12 d-flex justify-content-center flex-column align-items-center p-0"},/*#__PURE__*/React.createElement("p",{"class":"m-0 p-0",style:{fontWeight:sectionproperties.sharebtn_FontWeight,color:sectionproperties.sharebtn_color,fontSize:sectionproperties.sharebtn_fontSize+'px'}},langdetect=='en'?sectionproperties.sharebtn_contentEn:sectionproperties.sharebtn_contentAr),/*#__PURE__*/React.createElement("div",{className:"Demo__container w-100 m-0 allcentered mt-3"},/*#__PURE__*/React.createElement("div",{className:"Demo__some-network ml-2 mr-2"},/*#__PURE__*/React.createElement(FacebookShareButton,{url:shareUrl,quote:title,className:"Demo__some-network__share-button"},/*#__PURE__*/React.createElement(FacebookIcon,{size:40,round:true}))),/*#__PURE__*/React.createElement("div",{className:"Demo__some-network ml-2 mr-2"},/*#__PURE__*/React.createElement(EmailShareButton,{url:shareUrl,quote:title,className:"Demo__some-network__share-button"},/*#__PURE__*/React.createElement(EmailIcon,{size:40,round:true}))),sectionproperties.shareviax=='Show'&&/*#__PURE__*/React.createElement("div",{className:"Demo__some-network ml-2 mr-2",style:{width:'40px',height:'40px'}},/*#__PURE__*/React.createElement(TwitterShareButton,{url:shareUrl,title:title,className:"Demo__some-network__share-button"},/*#__PURE__*/React.createElement("img",{src:'https://tabex-co.com/storage/StaticImages/twitterxicon.png',style:{width:'100%',height:'100%',objectFit:'contain'}}))),/*#__PURE__*/React.createElement("div",{className:"Demo__some-network ml-2 mr-2"},/*#__PURE__*/React.createElement(WhatsappShareButton,{url:shareUrl,title:title,separator:":: ",className:"Demo__some-network__share-button"},/*#__PURE__*/React.createElement(WhatsappIcon,{size:40,round:true}))),sectionproperties.showsharelinkedin=='Show'&&/*#__PURE__*/React.createElement("div",{className:"Demo__some-network ml-2 mr-2"},/*#__PURE__*/React.createElement(LinkedinShareButton,{url:shareUrl,title:title,separator:":: ",className:"Demo__some-network__share-button"},/*#__PURE__*/React.createElement(LinkedinIcon,{size:40,round:true}))))));};// {fetchProductInfoQueryContext.data.data.productinfo.hassale == 0
|
|
3481
3481
|
// ? parseFloat(getprice_discountpriceprops('defaultprice', 1, variantindexcompleted)).toFixed(2)
|
|
3482
3482
|
// : parseFloat(getprice_discountpriceprops('defaultsaleprice', 1, variantindexcompleted)).toFixed(2)}
|
|
3483
|
-
useEffect(function(){var _fetchProductInfoQuer;var totalprice='';if(variantindexcompleted.length==0&&fetchProductInfoQueryContext.data.data.productinfo.hassale==0){totalprice=parseFloat(getprice_discountpriceprops('defaultprice',1,variantindexcompleted)).toFixed(2);}else if(variantindexcompleted.length==0&&fetchProductInfoQueryContext.data.data.productinfo.hassale==1){totalprice=parseFloat(getprice_discountpriceprops('defaultsaleprice',1,variantindexcompleted)).toFixed(2);}else if(variantindexcompleted.length!=0&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer===void 0||(_fetchProductInfoQuer=_fetchProductInfoQuer.data)===null||_fetchProductInfoQuer===void 0||(_fetchProductInfoQuer=_fetchProductInfoQuer.productinfo)===null||_fetchProductInfoQuer===void 0||(_fetchProductInfoQuer=_fetchProductInfoQuer.variants[variantindexcompleted])===null||_fetchProductInfoQuer===void 0?void 0:_fetchProductInfoQuer.hassale)==1){totalprice=parseFloat(getprice_discountpriceprops('defaultsaleprice',1,variantindexcompleted)).toFixed(2);}else {totalprice=parseFloat(getprice_discountpriceprops('defaultprice',1,variantindexcompleted)).toFixed(2);}settotalprice(totalprice);setcurrentshowingimageindex(props.actions.currentshowingimageindex);},[variantindexcompleted]);useEffect(function(){if(currentshowingimageindex_pro!=undefined&¤tshowingimageindex_pro!=null&¤tshowingimageindex_pro!=''&&typeof currentshowingimageindex_pro==='number'&&isFinite(currentshowingimageindex_pro)&¤tshowingimageindex_pro>=0){setcurrentshowingimageindex(currentshowingimageindex_pro);}},[currentshowingimageindex_pro]);var ProductsSKUContainer=function ProductsSKUContainer(){return/*#__PURE__*/React.createElement("p",{"class":"m-0 p-0 d-flex justify-content-start"},/*#__PURE__*/React.createElement("span",{style:{color:sectionproperties.skuColor,fontWeight:sectionproperties.skuFontWeight,fontSize:sectionproperties.skuFontSize+'px',textAlign:langdetect=='en'?'left':'right'}},langdetect=='en'?sectionproperties.skutitleEn:sectionproperties.skutitleAr,":",' '),/*#__PURE__*/React.createElement("span",{"class":"ml-1 mr-1",style:{color:'#7e859b',fontWeight:sectionproperties.skuSecondaryFontWeight,fontSize:sectionproperties.skuFontSize+'px',textAlign:langdetect=='en'?'left':'right'}},sectionproperties.showvariantsku=='Show'&&variantsku!=''?variantsku:fetchProductInfoQueryContext.data.data.productinfo.sku));};var MeasurementUnitSection=function MeasurementUnitSection(){return/*#__PURE__*/React.createElement("div",{className:'col-lg-12 p-0 mb-1 d-flex justify-content-start align-items-center mb-1 mt-3'},/*#__PURE__*/React.createElement("p",{className:' m-0 p-0 wordbreak d-flex justify-content-start ',style:{textAlign:langdetect=='en'?'left':'right',fontWeight:sectionproperties.measurementunitfontweight,color:sectionproperties.measurementunitcolor,fontSize:sectionproperties.measurementunitcolor+'px'}},fetchProductInfoQueryContext.data.data.productinfo.measurmentunit));};var ProductNameSection=function ProductNameSection(){return/*#__PURE__*/React.createElement("p",{className:props.actions.srcfromprops=='templatedraftrouter'?"".concat(productinfo_cssstyles.productname," ").concat(productinfo_cssstyles.productnamehover)+' m-0 p-0 wordbreak d-flex cursor-pointer font-sm-15 ':"".concat(productinfo_cssstyles.productname)+' m-0 p-0 wordbreak d-flex font-sm-15 ',onClick:function onClick(){if(props.actions.srcfromprops=='templatedraftrouter'){routingcountext(StaticPagesLinksContext.productinfo,true,fetchProductInfoQueryContext.data.data.productinfo.productid);}},style:{textAlign:sectionproperties.productnamecentered=='Centered'?'center':langdetect=='en'?'left':'right'}},langdetect=='en'?fetchProductInfoQueryContext.data.data.productinfo.name_en:fetchProductInfoQueryContext.data.data.productinfo.name_ar);};var ShortDescriptionTitle=function ShortDescriptionTitle(){return/*#__PURE__*/React.createElement("p",{"class":"m-0 p-0",style:{textAlign:sectionproperties.productnamecentered=='Centered'?'center':langdetect=='en'?'left':'right',fontWeight:sectionproperties.prodCatFontWeight,color:sectionproperties.prodCatColor,fontSize:sectionproperties.prodCatFontSize+'px'}},langdetect=='en'?sectionproperties.shortdescriptiontitle_en:sectionproperties.shortdescriptiontitle_ar);};var ProductFeaturesTable=function ProductFeaturesTable(){var _fetchProductInfoQuer2;return/*#__PURE__*/React.createElement("div",{"class":"row m-0 w-100"},/*#__PURE__*/React.createElement("div",{"class":"col-lg-12 p-0 my-3"},/*#__PURE__*/React.createElement("p",{className:"m-0 p-0",style:{color:sectionproperties.featurestitlecolor,fontSize:sectionproperties.featurestitlefontsize+'px',fontWeight:600}},langdetect=='en'?sectionproperties.featurestitleen:sectionproperties.featurestitlear)),/*#__PURE__*/React.createElement("div",{className:"col-lg-12 m-0 w-100 p-0"},/*#__PURE__*/React.createElement("table",{className:'table tablevertical'},fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer2=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer2===void 0||(_fetchProductInfoQuer2=_fetchProductInfoQuer2.data)===null||_fetchProductInfoQuer2===void 0||(_fetchProductInfoQuer2=_fetchProductInfoQuer2.productinfo)===null||_fetchProductInfoQuer2===void 0||(_fetchProductInfoQuer2=_fetchProductInfoQuer2.productfeatures)===null||_fetchProductInfoQuer2===void 0?void 0:_fetchProductInfoQuer2.map(function(fitem,findex){return/*#__PURE__*/React.createElement("tr",null,/*#__PURE__*/React.createElement("th",{style:{textTransform:'capitalize',color:sectionproperties.featurecolor,fontWeight:sectionproperties.featurefontweight,fontSize:sectionproperties.featurefontsize}},/*#__PURE__*/React.createElement("div",{"class":"d-flex flex-row",style:{color:sectionproperties.featurecolor}},(fitem===null||fitem===void 0?void 0:fitem.feature_image_url)!=null&&/*#__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%'}})),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("td",{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));}))));};var DescriptionAccordion=function DescriptionAccordion(){return/*#__PURE__*/React.createElement(AccordionItem,{uuid:0},/*#__PURE__*/React.createElement(AccordionItemHeading,null,/*#__PURE__*/React.createElement(AccordionItemButton,null,/*#__PURE__*/React.createElement("div",{"class":"row m-0 w-100"},/*#__PURE__*/React.createElement("div",{className:"col-lg-10 col-md-10 col-sm-10 p-0 d-flex align-items-center justify-content-start"},/*#__PURE__*/React.createElement("p",{"class":"m-0 p-0",style:{textAlign:langdetect=='en'?'left':'right',fontWeight:sectionproperties.prodCatFontWeight,color:sectionproperties.prodCatColor,fontSize:sectionproperties.prodCatFontSize+'px'}},langdetect=='en'?sectionproperties.descriptionContentEn:sectionproperties.descriptionContentAr)),/*#__PURE__*/React.createElement("div",{className:"col-lg-2 col-md-2 col-sm-2 p-0"},/*#__PURE__*/React.createElement(AccordionItemState,null,function(state){if(state.expanded==true){return/*#__PURE__*/React.createElement("i",{className:' h-100 d-flex align-items-center justify-content-end '},/*#__PURE__*/React.createElement(FaMinus,{color:sectionproperties.prodCatColor}));}else {return/*#__PURE__*/React.createElement("i",{className:' h-100 d-flex align-items-center justify-content-end '},/*#__PURE__*/React.createElement(FaPlus,{color:sectionproperties.prodCatColor}));}}))))),/*#__PURE__*/React.createElement(AccordionItemPanel,{className:"p-0"},/*#__PURE__*/React.createElement("div",{"class":"col-lg-12 p-0 mt-3"},/*#__PURE__*/React.createElement(DescriptionContent,{actions:props.actions,srcfromprops:'collap'}))));};var TotalSection=function TotalSection(){var _fetchProductInfoQuer3,_fetchProductInfoQuer4,_fetchProductInfoQuer5;return/*#__PURE__*/React.createElement("div",{className:"row m-0 w-100 d-flex flex-row"},/*#__PURE__*/React.createElement("p",{className:"m-0 p-0",style:{color:sectionproperties.total_color,fontSize:sectionproperties.total_fontsize+'px',fontWeight:sectionproperties.total_fontweight,textTransform:sectionproperties.total_texttransform}},lang.total,":"),/*#__PURE__*/React.createElement("div",{className:"col-lg-9 col-md-9 col-sm-9 d-flex align-items-center pl-1 pr-1"},/*#__PURE__*/React.createElement("p",{className:'m-0 p-0 wordbreak d-flex align-items-center justify-content-end',style:{fontSize:sectionproperties.prodpriceFontSize+'px',fontWeight:sectionproperties.prodPriceFontWeight,color:sectionproperties.prodPriceColor}},/*#__PURE__*/React.createElement("span",{className:langdetect=='en'?' d-flex align-items-center justify-content-end wordbreak text-right ':' d-flex align-items-center justify-content-end wordbreak text-left '},langdetect=='en'?authdetailsContext===null||authdetailsContext===void 0?void 0:authdetailsContext.currencyname_en:'',' ',variantindexcompleted!=undefined&&variantindexcompleted.length==0&&fetchProductInfoQueryContext.data.data.productinfo.hassale==0&&parseFloat(getprice_discountpriceprops('defaultprice',1,variantindexcompleted)).toFixed(2),variantindexcompleted!=undefined&&variantindexcompleted.length==0&&fetchProductInfoQueryContext.data.data.productinfo.hassale==1&&parseFloat(getprice_discountpriceprops('defaultsaleprice',1,variantindexcompleted)).toFixed(2),variantindexcompleted!=undefined&&variantindexcompleted.length!=0&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer3=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer3===void 0||(_fetchProductInfoQuer3=_fetchProductInfoQuer3.data)===null||_fetchProductInfoQuer3===void 0||(_fetchProductInfoQuer3=_fetchProductInfoQuer3.productinfo)===null||_fetchProductInfoQuer3===void 0||(_fetchProductInfoQuer3=_fetchProductInfoQuer3.variants[variantindexcompleted])===null||_fetchProductInfoQuer3===void 0?void 0:_fetchProductInfoQuer3.hassale)==1&&parseFloat(getprice_discountpriceprops('defaultsaleprice',1,variantindexcompleted)).toFixed(2),variantindexcompleted!=undefined&&variantindexcompleted.length!=0&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer4=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer4===void 0||(_fetchProductInfoQuer4=_fetchProductInfoQuer4.data)===null||_fetchProductInfoQuer4===void 0||(_fetchProductInfoQuer4=_fetchProductInfoQuer4.productinfo)===null||_fetchProductInfoQuer4===void 0||(_fetchProductInfoQuer4=_fetchProductInfoQuer4.variants[variantindexcompleted])===null||_fetchProductInfoQuer4===void 0?void 0:_fetchProductInfoQuer4.hassale)==0&&parseFloat(getprice_discountpriceprops('defaultprice',1,variantindexcompleted)).toFixed(2),langdetect=='en'?'':authdetailsContext===null||authdetailsContext===void 0?void 0:authdetailsContext.currencyname_ar)),/*#__PURE__*/React.createElement("p",{className:'m-0 p-0 linethrough wordbreak',style:{color:sectionproperties.prodsalePriceColor,fontSize:sectionproperties.prodsalepriceFontSize+'px',fontWeight:sectionproperties.prodsalePriceFontWeight}},fetchProductInfoQueryContext.data.data.productinfo.hassale==1&&variantindexcompleted!=undefined&&variantindexcompleted.length==0&&/*#__PURE__*/React.createElement("span",{className:langdetect=='en'?' d-flex align-items-center justify-content-end wordbreak text-right wordbreak ':' d-flex align-items-center justify-content-end wordbreak text-left wordbreak '},/*#__PURE__*/React.createElement("span",{className:"ml-2 mr-2",style:{textDecoration:'none'}},"-"),langdetect=='en'?authdetailsContext===null||authdetailsContext===void 0?void 0:authdetailsContext.currencyname_en:''," ",parseFloat(getprice_discountpriceprops('defaultprice',1,variantindexcompleted)),' ',langdetect=='en'?'':authdetailsContext===null||authdetailsContext===void 0?void 0:authdetailsContext.currencyname_ar),variantindexcompleted!=undefined&&variantindexcompleted.length!=0&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer5=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer5===void 0||(_fetchProductInfoQuer5=_fetchProductInfoQuer5.data)===null||_fetchProductInfoQuer5===void 0||(_fetchProductInfoQuer5=_fetchProductInfoQuer5.productinfo)===null||_fetchProductInfoQuer5===void 0||(_fetchProductInfoQuer5=_fetchProductInfoQuer5.variants[variantindexcompleted])===null||_fetchProductInfoQuer5===void 0?void 0:_fetchProductInfoQuer5.hassale)==1&&/*#__PURE__*/React.createElement("span",{className:langdetect=='en'?' d-flex align-items-center justify-content-end wordbreak text-right wordbreak ':' d-flex align-items-center justify-content-end wordbreak text-left wordbreak '},/*#__PURE__*/React.createElement("span",{className:"ml-2 mr-2",style:{textDecoration:'none'}},"-"),langdetect=='en'?authdetailsContext===null||authdetailsContext===void 0?void 0:authdetailsContext.currencyname_en:''," ",parseFloat(getprice_discountpriceprops('defaultprice',1,variantindexcompleted)),' ',langdetect=='en'?'':authdetailsContext===null||authdetailsContext===void 0?void 0:authdetailsContext.currencyname_ar))));};var QuantityButton=function QuantityButton(position){var _authdetailsContext$i3;return/*#__PURE__*/React.createElement("button",{className:position=='fixedcontainer'?" ".concat(productinfo_cssstyles.quantitybtn)+' p-0 d-flex align-items-center justify-content-center inputrangedark ':" ".concat(productinfo_cssstyles.quantitybtn)+' p-0 d-flex align-items-center justify-content-center mb-sm-2 inputrangedark ',style:{height:sectionproperties.quantitybtneditable=='Slider'?'auto':sectionproperties.quantitybtn_height+'px',width:position=='fixedcontainer'?'100%':sectionproperties.quantitybtneditable=='Slider'?'100%':sectionproperties.quantitybtn_width+'px',flexDirection:'row',direction:'ltr',// background: 'transparent',
|
|
3483
|
+
useEffect(function(){var _fetchProductInfoQuer;var totalprice='';if(variantindexcompleted.length==0&&fetchProductInfoQueryContext.data.data.productinfo.hassale==0){totalprice=parseFloat(getprice_discountpriceprops('defaultprice',1,variantindexcompleted)).toFixed(2);}else if(variantindexcompleted.length==0&&fetchProductInfoQueryContext.data.data.productinfo.hassale==1){totalprice=parseFloat(getprice_discountpriceprops('defaultsaleprice',1,variantindexcompleted)).toFixed(2);}else if(variantindexcompleted.length!=0&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer===void 0||(_fetchProductInfoQuer=_fetchProductInfoQuer.data)===null||_fetchProductInfoQuer===void 0||(_fetchProductInfoQuer=_fetchProductInfoQuer.productinfo)===null||_fetchProductInfoQuer===void 0||(_fetchProductInfoQuer=_fetchProductInfoQuer.variants[variantindexcompleted])===null||_fetchProductInfoQuer===void 0?void 0:_fetchProductInfoQuer.hassale)==1){totalprice=parseFloat(getprice_discountpriceprops('defaultsaleprice',1,variantindexcompleted)).toFixed(2);}else {totalprice=parseFloat(getprice_discountpriceprops('defaultprice',1,variantindexcompleted)).toFixed(2);}settotalprice(totalprice);setcurrentshowingimageindex(props.actions.currentshowingimageindex);},[variantindexcompleted]);// useEffect(() => {
|
|
3484
|
+
// if (
|
|
3485
|
+
// currentshowingimageindex_pro != undefined &&
|
|
3486
|
+
// currentshowingimageindex_pro != null &&
|
|
3487
|
+
// currentshowingimageindex_pro != '' &&
|
|
3488
|
+
// typeof currentshowingimageindex_pro === 'number' &&
|
|
3489
|
+
// isFinite(currentshowingimageindex_pro) &&
|
|
3490
|
+
// currentshowingimageindex_pro >= 0
|
|
3491
|
+
// ) {
|
|
3492
|
+
// setcurrentshowingimageindex(currentshowingimageindex_pro);
|
|
3493
|
+
// }
|
|
3494
|
+
// }, [currentshowingimageindex_pro]);
|
|
3495
|
+
useEffect(function(){if(currentshowingimageindex_pro==0){setcurrentshowingimageindex(currentshowingimageindex_pro);}else {if(currentshowingimageindex_pro!=undefined&¤tshowingimageindex_pro!=null&¤tshowingimageindex_pro!=''&&typeof currentshowingimageindex_pro==='number'&&isFinite(currentshowingimageindex_pro)&¤tshowingimageindex_pro>=0){setcurrentshowingimageindex(currentshowingimageindex_pro);}}},[currentshowingimageindex_pro]);var ProductsSKUContainer=function ProductsSKUContainer(){return/*#__PURE__*/React.createElement("p",{"class":"m-0 p-0 d-flex justify-content-start"},/*#__PURE__*/React.createElement("span",{style:{color:sectionproperties.skuColor,fontWeight:sectionproperties.skuFontWeight,fontSize:sectionproperties.skuFontSize+'px',textAlign:langdetect=='en'?'left':'right'}},langdetect=='en'?sectionproperties.skutitleEn:sectionproperties.skutitleAr,":",' '),/*#__PURE__*/React.createElement("span",{"class":"ml-1 mr-1",style:{color:'#7e859b',fontWeight:sectionproperties.skuSecondaryFontWeight,fontSize:sectionproperties.skuFontSize+'px',textAlign:langdetect=='en'?'left':'right'}},sectionproperties.showvariantsku=='Show'&&variantsku!=''?variantsku:fetchProductInfoQueryContext.data.data.productinfo.sku));};var MeasurementUnitSection=function MeasurementUnitSection(){return/*#__PURE__*/React.createElement("div",{className:'col-lg-12 p-0 mb-1 d-flex justify-content-start align-items-center mb-1 mt-3'},/*#__PURE__*/React.createElement("p",{className:' m-0 p-0 wordbreak d-flex justify-content-start ',style:{textAlign:langdetect=='en'?'left':'right',fontWeight:sectionproperties.measurementunitfontweight,color:sectionproperties.measurementunitcolor,fontSize:sectionproperties.measurementunitcolor+'px'}},fetchProductInfoQueryContext.data.data.productinfo.measurmentunit));};var ProductNameSection=function ProductNameSection(){return/*#__PURE__*/React.createElement("p",{className:props.actions.srcfromprops=='templatedraftrouter'?"".concat(productinfo_cssstyles.productname," ").concat(productinfo_cssstyles.productnamehover)+' m-0 p-0 wordbreak d-flex cursor-pointer font-sm-15 ':"".concat(productinfo_cssstyles.productname)+' m-0 p-0 wordbreak d-flex font-sm-15 ',onClick:function onClick(){if(props.actions.srcfromprops=='templatedraftrouter'){routingcountext(StaticPagesLinksContext.productinfo,true,fetchProductInfoQueryContext.data.data.productinfo.productid);}},style:{textAlign:sectionproperties.productnamecentered=='Centered'?'center':langdetect=='en'?'left':'right'}},langdetect=='en'?fetchProductInfoQueryContext.data.data.productinfo.name_en:fetchProductInfoQueryContext.data.data.productinfo.name_ar);};var ShortDescriptionTitle=function ShortDescriptionTitle(){return/*#__PURE__*/React.createElement("p",{"class":"m-0 p-0",style:{textAlign:sectionproperties.productnamecentered=='Centered'?'center':langdetect=='en'?'left':'right',fontWeight:sectionproperties.prodCatFontWeight,color:sectionproperties.prodCatColor,fontSize:sectionproperties.prodCatFontSize+'px'}},langdetect=='en'?sectionproperties.shortdescriptiontitle_en:sectionproperties.shortdescriptiontitle_ar);};var ProductFeaturesTable=function ProductFeaturesTable(){var _fetchProductInfoQuer2;return/*#__PURE__*/React.createElement("div",{"class":"row m-0 w-100"},/*#__PURE__*/React.createElement("div",{"class":"col-lg-12 p-0 my-3"},/*#__PURE__*/React.createElement("p",{className:"m-0 p-0",style:{color:sectionproperties.featurestitlecolor,fontSize:sectionproperties.featurestitlefontsize+'px',fontWeight:600}},langdetect=='en'?sectionproperties.featurestitleen:sectionproperties.featurestitlear)),/*#__PURE__*/React.createElement("div",{className:"col-lg-12 m-0 w-100 p-0"},/*#__PURE__*/React.createElement("table",{className:'table tablevertical'},fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer2=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer2===void 0||(_fetchProductInfoQuer2=_fetchProductInfoQuer2.data)===null||_fetchProductInfoQuer2===void 0||(_fetchProductInfoQuer2=_fetchProductInfoQuer2.productinfo)===null||_fetchProductInfoQuer2===void 0||(_fetchProductInfoQuer2=_fetchProductInfoQuer2.productfeatures)===null||_fetchProductInfoQuer2===void 0?void 0:_fetchProductInfoQuer2.map(function(fitem,findex){return/*#__PURE__*/React.createElement("tr",null,/*#__PURE__*/React.createElement("th",{style:{textTransform:'capitalize',color:sectionproperties.featurecolor,fontWeight:sectionproperties.featurefontweight,fontSize:sectionproperties.featurefontsize}},/*#__PURE__*/React.createElement("div",{"class":"d-flex flex-row",style:{color:sectionproperties.featurecolor}},(fitem===null||fitem===void 0?void 0:fitem.feature_image_url)!=null&&/*#__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%'}})),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("td",{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));}))));};var DescriptionAccordion=function DescriptionAccordion(){return/*#__PURE__*/React.createElement(AccordionItem,{uuid:0},/*#__PURE__*/React.createElement(AccordionItemHeading,null,/*#__PURE__*/React.createElement(AccordionItemButton,null,/*#__PURE__*/React.createElement("div",{"class":"row m-0 w-100"},/*#__PURE__*/React.createElement("div",{className:"col-lg-10 col-md-10 col-sm-10 p-0 d-flex align-items-center justify-content-start"},/*#__PURE__*/React.createElement("p",{"class":"m-0 p-0",style:{textAlign:langdetect=='en'?'left':'right',fontWeight:sectionproperties.prodCatFontWeight,color:sectionproperties.prodCatColor,fontSize:sectionproperties.prodCatFontSize+'px'}},langdetect=='en'?sectionproperties.descriptionContentEn:sectionproperties.descriptionContentAr)),/*#__PURE__*/React.createElement("div",{className:"col-lg-2 col-md-2 col-sm-2 p-0"},/*#__PURE__*/React.createElement(AccordionItemState,null,function(state){if(state.expanded==true){return/*#__PURE__*/React.createElement("i",{className:' h-100 d-flex align-items-center justify-content-end '},/*#__PURE__*/React.createElement(FaMinus,{color:sectionproperties.prodCatColor}));}else {return/*#__PURE__*/React.createElement("i",{className:' h-100 d-flex align-items-center justify-content-end '},/*#__PURE__*/React.createElement(FaPlus,{color:sectionproperties.prodCatColor}));}}))))),/*#__PURE__*/React.createElement(AccordionItemPanel,{className:"p-0"},/*#__PURE__*/React.createElement("div",{"class":"col-lg-12 p-0 mt-3"},/*#__PURE__*/React.createElement(DescriptionContent,{actions:props.actions,srcfromprops:'collap'}))));};var TotalSection=function TotalSection(){var _fetchProductInfoQuer3,_fetchProductInfoQuer4,_fetchProductInfoQuer5;return/*#__PURE__*/React.createElement("div",{className:"row m-0 w-100 d-flex flex-row"},/*#__PURE__*/React.createElement("p",{className:"m-0 p-0",style:{color:sectionproperties.total_color,fontSize:sectionproperties.total_fontsize+'px',fontWeight:sectionproperties.total_fontweight,textTransform:sectionproperties.total_texttransform}},lang.total,":"),/*#__PURE__*/React.createElement("div",{className:"col-lg-9 col-md-9 col-sm-9 d-flex align-items-center pl-1 pr-1"},/*#__PURE__*/React.createElement("p",{className:'m-0 p-0 wordbreak d-flex align-items-center justify-content-end',style:{fontSize:sectionproperties.prodpriceFontSize+'px',fontWeight:sectionproperties.prodPriceFontWeight,color:sectionproperties.prodPriceColor}},/*#__PURE__*/React.createElement("span",{className:langdetect=='en'?' d-flex align-items-center justify-content-end wordbreak text-right ':' d-flex align-items-center justify-content-end wordbreak text-left '},langdetect=='en'?authdetailsContext===null||authdetailsContext===void 0?void 0:authdetailsContext.currencyname_en:'',' ',variantindexcompleted!=undefined&&variantindexcompleted.length==0&&fetchProductInfoQueryContext.data.data.productinfo.hassale==0&&parseFloat(getprice_discountpriceprops('defaultprice',1,variantindexcompleted)).toFixed(2),variantindexcompleted!=undefined&&variantindexcompleted.length==0&&fetchProductInfoQueryContext.data.data.productinfo.hassale==1&&parseFloat(getprice_discountpriceprops('defaultsaleprice',1,variantindexcompleted)).toFixed(2),variantindexcompleted!=undefined&&variantindexcompleted.length!=0&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer3=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer3===void 0||(_fetchProductInfoQuer3=_fetchProductInfoQuer3.data)===null||_fetchProductInfoQuer3===void 0||(_fetchProductInfoQuer3=_fetchProductInfoQuer3.productinfo)===null||_fetchProductInfoQuer3===void 0||(_fetchProductInfoQuer3=_fetchProductInfoQuer3.variants[variantindexcompleted])===null||_fetchProductInfoQuer3===void 0?void 0:_fetchProductInfoQuer3.hassale)==1&&parseFloat(getprice_discountpriceprops('defaultsaleprice',1,variantindexcompleted)).toFixed(2),variantindexcompleted!=undefined&&variantindexcompleted.length!=0&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer4=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer4===void 0||(_fetchProductInfoQuer4=_fetchProductInfoQuer4.data)===null||_fetchProductInfoQuer4===void 0||(_fetchProductInfoQuer4=_fetchProductInfoQuer4.productinfo)===null||_fetchProductInfoQuer4===void 0||(_fetchProductInfoQuer4=_fetchProductInfoQuer4.variants[variantindexcompleted])===null||_fetchProductInfoQuer4===void 0?void 0:_fetchProductInfoQuer4.hassale)==0&&parseFloat(getprice_discountpriceprops('defaultprice',1,variantindexcompleted)).toFixed(2),langdetect=='en'?'':authdetailsContext===null||authdetailsContext===void 0?void 0:authdetailsContext.currencyname_ar)),/*#__PURE__*/React.createElement("p",{className:'m-0 p-0 linethrough wordbreak',style:{color:sectionproperties.prodsalePriceColor,fontSize:sectionproperties.prodsalepriceFontSize+'px',fontWeight:sectionproperties.prodsalePriceFontWeight}},fetchProductInfoQueryContext.data.data.productinfo.hassale==1&&variantindexcompleted!=undefined&&variantindexcompleted.length==0&&/*#__PURE__*/React.createElement("span",{className:langdetect=='en'?' d-flex align-items-center justify-content-end wordbreak text-right wordbreak ':' d-flex align-items-center justify-content-end wordbreak text-left wordbreak '},/*#__PURE__*/React.createElement("span",{className:"ml-2 mr-2",style:{textDecoration:'none'}},"-"),langdetect=='en'?authdetailsContext===null||authdetailsContext===void 0?void 0:authdetailsContext.currencyname_en:''," ",parseFloat(getprice_discountpriceprops('defaultprice',1,variantindexcompleted)),' ',langdetect=='en'?'':authdetailsContext===null||authdetailsContext===void 0?void 0:authdetailsContext.currencyname_ar),variantindexcompleted!=undefined&&variantindexcompleted.length!=0&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer5=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer5===void 0||(_fetchProductInfoQuer5=_fetchProductInfoQuer5.data)===null||_fetchProductInfoQuer5===void 0||(_fetchProductInfoQuer5=_fetchProductInfoQuer5.productinfo)===null||_fetchProductInfoQuer5===void 0||(_fetchProductInfoQuer5=_fetchProductInfoQuer5.variants[variantindexcompleted])===null||_fetchProductInfoQuer5===void 0?void 0:_fetchProductInfoQuer5.hassale)==1&&/*#__PURE__*/React.createElement("span",{className:langdetect=='en'?' d-flex align-items-center justify-content-end wordbreak text-right wordbreak ':' d-flex align-items-center justify-content-end wordbreak text-left wordbreak '},/*#__PURE__*/React.createElement("span",{className:"ml-2 mr-2",style:{textDecoration:'none'}},"-"),langdetect=='en'?authdetailsContext===null||authdetailsContext===void 0?void 0:authdetailsContext.currencyname_en:''," ",parseFloat(getprice_discountpriceprops('defaultprice',1,variantindexcompleted)),' ',langdetect=='en'?'':authdetailsContext===null||authdetailsContext===void 0?void 0:authdetailsContext.currencyname_ar))));};var QuantityButton=function QuantityButton(position){var _authdetailsContext$i3;return/*#__PURE__*/React.createElement("button",{className:position=='fixedcontainer'?" ".concat(productinfo_cssstyles.quantitybtn)+' p-0 d-flex align-items-center justify-content-center inputrangedark ':" ".concat(productinfo_cssstyles.quantitybtn)+' p-0 d-flex align-items-center justify-content-center mb-sm-2 inputrangedark ',style:{height:sectionproperties.quantitybtneditable=='Slider'?'auto':sectionproperties.quantitybtn_height+'px',width:position=='fixedcontainer'?'100%':sectionproperties.quantitybtneditable=='Slider'?'100%':sectionproperties.quantitybtn_width+'px',flexDirection:'row',direction:'ltr',// background: 'transparent',
|
|
3484
3496
|
borderRadius:sectionproperties.quantitybtneditable=='Slider'?0:''}},sectionproperties.quantitybtneditable=='Slider'&&/*#__PURE__*/React.createElement("div",{"class":"row m-0 w-100"},/*#__PURE__*/React.createElement("div",{"class":"col-12 px-3 px-sm-3 pt-3 pinfo-slider"},/*#__PURE__*/React.createElement(InputRange,{draggableTrack:true,formatLabel:function formatLabel(value){return "".concat(value);},maxValue:fetchProductInfoQueryContext.data.data.productinfo.maximumproductquant,minValue:fetchProductInfoQueryContext.data.data.productinfo.minimumproductquant,value:parseInt(addtocardpayloadobj.quantity),step:1,onChange:function onChange(value){var tempaddtocardpayloadobj=_objectSpread$2C({},addtocardpayloadobj);tempaddtocardpayloadobj.quantity=value;setaddtocardpayloadobj(_objectSpread$2C({},tempaddtocardpayloadobj));}})),/*#__PURE__*/React.createElement("div",{"class":"col-4 col-md-12 mt-4 mt-md-5 pt-md-4 col-md-12 mx-auto allcentered"},/*#__PURE__*/React.createElement("span",{className:"".concat(productinfo_cssstyles.minus_quantitybtn_icon_container)+' m-1 ',onClick:function onClick(){var _fetchProductInfoQuer6,_fetchProductInfoQuer7,_fetchProductInfoQuer8,_fetchProductInfoQuer9;var quantitystepincrearse=1;var tempaddtocardpayloadobj=_objectSpread$2C({},addtocardpayloadobj);if((fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer6=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer6===void 0||(_fetchProductInfoQuer6=_fetchProductInfoQuer6.data)===null||_fetchProductInfoQuer6===void 0||(_fetchProductInfoQuer6=_fetchProductInfoQuer6.productinfo)===null||_fetchProductInfoQuer6===void 0?void 0:_fetchProductInfoQuer6.quantitystepincrearse)!=undefined&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer7=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer7===void 0||(_fetchProductInfoQuer7=_fetchProductInfoQuer7.data)===null||_fetchProductInfoQuer7===void 0||(_fetchProductInfoQuer7=_fetchProductInfoQuer7.productinfo)===null||_fetchProductInfoQuer7===void 0?void 0:_fetchProductInfoQuer7.quantitystepincrearse)!=null&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer8=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer8===void 0||(_fetchProductInfoQuer8=_fetchProductInfoQuer8.data)===null||_fetchProductInfoQuer8===void 0||(_fetchProductInfoQuer8=_fetchProductInfoQuer8.productinfo)===null||_fetchProductInfoQuer8===void 0?void 0:_fetchProductInfoQuer8.quantitystepincrearse)!=1&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer9=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer9===void 0||(_fetchProductInfoQuer9=_fetchProductInfoQuer9.data)===null||_fetchProductInfoQuer9===void 0||(_fetchProductInfoQuer9=_fetchProductInfoQuer9.productinfo)===null||_fetchProductInfoQuer9===void 0?void 0:_fetchProductInfoQuer9.quantitystepincrearse)!=''){var _fetchProductInfoQuer0;quantitystepincrearse=parseFloat(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer0=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer0===void 0||(_fetchProductInfoQuer0=_fetchProductInfoQuer0.data)===null||_fetchProductInfoQuer0===void 0||(_fetchProductInfoQuer0=_fetchProductInfoQuer0.productinfo)===null||_fetchProductInfoQuer0===void 0?void 0:_fetchProductInfoQuer0.quantitystepincrearse);}var finalquantity=tempaddtocardpayloadobj.quantity-quantitystepincrearse;if(finalquantity>=0){tempaddtocardpayloadobj.quantity=finalquantity;}setaddtocardpayloadobj(_objectSpread$2C({},tempaddtocardpayloadobj));}},/*#__PURE__*/React.createElement("i",{className:sectionproperties.quantityiconstyle=='Arrows'?'fa fa-chevron-down':'h-100 allcentered',style:{fontSize:sectionproperties.remove_quantitybtn_textfontsize+'px'}},sectionproperties.quantityiconstyle=='Plus/Minus'&&/*#__PURE__*/React.createElement(FiMinus,{size:sectionproperties.remove_quantitybtn_textfontsize}))),/*#__PURE__*/React.createElement("span",{className:"".concat(productinfo_cssstyles.quantitybtn_text)},parseInt(addtocardpayloadobj.quantity)),/*#__PURE__*/React.createElement("span",{className:"".concat(productinfo_cssstyles.add_quantitybtn_icon_container)+' m-1 ',onClick:function onClick(){var _fetchProductInfoQuer1,_fetchProductInfoQuer10,_fetchProductInfoQuer11,_fetchProductInfoQuer12;var quantitystepincrearse=1;var tempaddtocardpayloadobj=_objectSpread$2C({},addtocardpayloadobj);if((fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer1=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer1===void 0||(_fetchProductInfoQuer1=_fetchProductInfoQuer1.data)===null||_fetchProductInfoQuer1===void 0||(_fetchProductInfoQuer1=_fetchProductInfoQuer1.productinfo)===null||_fetchProductInfoQuer1===void 0?void 0:_fetchProductInfoQuer1.quantitystepincrearse)!=undefined&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer10=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer10===void 0||(_fetchProductInfoQuer10=_fetchProductInfoQuer10.data)===null||_fetchProductInfoQuer10===void 0||(_fetchProductInfoQuer10=_fetchProductInfoQuer10.productinfo)===null||_fetchProductInfoQuer10===void 0?void 0:_fetchProductInfoQuer10.quantitystepincrearse)!=null&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer11=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer11===void 0||(_fetchProductInfoQuer11=_fetchProductInfoQuer11.data)===null||_fetchProductInfoQuer11===void 0||(_fetchProductInfoQuer11=_fetchProductInfoQuer11.productinfo)===null||_fetchProductInfoQuer11===void 0?void 0:_fetchProductInfoQuer11.quantitystepincrearse)!=1&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer12=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer12===void 0||(_fetchProductInfoQuer12=_fetchProductInfoQuer12.data)===null||_fetchProductInfoQuer12===void 0||(_fetchProductInfoQuer12=_fetchProductInfoQuer12.productinfo)===null||_fetchProductInfoQuer12===void 0?void 0:_fetchProductInfoQuer12.quantitystepincrearse)!=''){var _fetchProductInfoQuer13;quantitystepincrearse=parseFloat(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer13=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer13===void 0||(_fetchProductInfoQuer13=_fetchProductInfoQuer13.data)===null||_fetchProductInfoQuer13===void 0||(_fetchProductInfoQuer13=_fetchProductInfoQuer13.productinfo)===null||_fetchProductInfoQuer13===void 0?void 0:_fetchProductInfoQuer13.quantitystepincrearse);}tempaddtocardpayloadobj.quantity=tempaddtocardpayloadobj.quantity+quantitystepincrearse;setaddtocardpayloadobj(_objectSpread$2C({},tempaddtocardpayloadobj));}},/*#__PURE__*/React.createElement("i",{className:sectionproperties.quantityiconstyle=='Arrows'?'fa fa-chevron-up':'h-100 allcentered',style:{fontSize:sectionproperties.add_quantitybtn_textfontsize+'px'}},sectionproperties.quantityiconstyle=='Plus/Minus'&&/*#__PURE__*/React.createElement(FiPlus,{size:sectionproperties.add_quantitybtn_textfontsize})))),/*#__PURE__*/React.createElement("div",{"class":"col-12 p-0 mt-5 pt-1 my-3"},TotalSection())),sectionproperties.quantitybtneditable=='No'&&/*#__PURE__*/React.createElement("span",{className:"".concat(productinfo_cssstyles.minus_quantitybtn_icon_container)+' m-1 ',onClick:function onClick(){var _fetchProductInfoQuer14,_fetchProductInfoQuer15,_fetchProductInfoQuer16,_fetchProductInfoQuer17;var quantitystepincrearse=1;var tempaddtocardpayloadobj=_objectSpread$2C({},addtocardpayloadobj);if((fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer14=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer14===void 0||(_fetchProductInfoQuer14=_fetchProductInfoQuer14.data)===null||_fetchProductInfoQuer14===void 0||(_fetchProductInfoQuer14=_fetchProductInfoQuer14.productinfo)===null||_fetchProductInfoQuer14===void 0?void 0:_fetchProductInfoQuer14.quantitystepincrearse)!=undefined&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer15=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer15===void 0||(_fetchProductInfoQuer15=_fetchProductInfoQuer15.data)===null||_fetchProductInfoQuer15===void 0||(_fetchProductInfoQuer15=_fetchProductInfoQuer15.productinfo)===null||_fetchProductInfoQuer15===void 0?void 0:_fetchProductInfoQuer15.quantitystepincrearse)!=null&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer16=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer16===void 0||(_fetchProductInfoQuer16=_fetchProductInfoQuer16.data)===null||_fetchProductInfoQuer16===void 0||(_fetchProductInfoQuer16=_fetchProductInfoQuer16.productinfo)===null||_fetchProductInfoQuer16===void 0?void 0:_fetchProductInfoQuer16.quantitystepincrearse)!=1&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer17=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer17===void 0||(_fetchProductInfoQuer17=_fetchProductInfoQuer17.data)===null||_fetchProductInfoQuer17===void 0||(_fetchProductInfoQuer17=_fetchProductInfoQuer17.productinfo)===null||_fetchProductInfoQuer17===void 0?void 0:_fetchProductInfoQuer17.quantitystepincrearse)!=''){var _fetchProductInfoQuer18;quantitystepincrearse=parseFloat(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer18=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer18===void 0||(_fetchProductInfoQuer18=_fetchProductInfoQuer18.data)===null||_fetchProductInfoQuer18===void 0||(_fetchProductInfoQuer18=_fetchProductInfoQuer18.productinfo)===null||_fetchProductInfoQuer18===void 0?void 0:_fetchProductInfoQuer18.quantitystepincrearse);}var finalquantity=tempaddtocardpayloadobj.quantity-quantitystepincrearse;if(finalquantity>=0){tempaddtocardpayloadobj.quantity=finalquantity;}setaddtocardpayloadobj(_objectSpread$2C({},tempaddtocardpayloadobj));}},/*#__PURE__*/React.createElement("i",{className:sectionproperties.quantityiconstyle=='Arrows'?'fa fa-chevron-down':'h-100 allcentered',style:{fontSize:sectionproperties.remove_quantitybtn_textfontsize+'px'}},sectionproperties.quantityiconstyle=='Plus/Minus'&&/*#__PURE__*/React.createElement(FiMinus,{size:sectionproperties.remove_quantitybtn_textfontsize}))),sectionproperties.quantitybtneditable=='No'&&/*#__PURE__*/React.createElement("span",{className:"".concat(productinfo_cssstyles.quantitybtn_text)},(authdetailsContext===null||authdetailsContext===void 0||(_authdetailsContext$i3=authdetailsContext.instinfo)===null||_authdetailsContext$i3===void 0?void 0:_authdetailsContext$i3.contactinfo.instid)=='66d6de1a1e04a'?parseFloat(addtocardpayloadobj.quantity).toFixed(3):parseInt(addtocardpayloadobj.quantity)),sectionproperties.quantitybtneditable=='No'&&/*#__PURE__*/React.createElement("span",{className:"".concat(productinfo_cssstyles.add_quantitybtn_icon_container)+' m-1 ',onClick:function onClick(){var _fetchProductInfoQuer19,_fetchProductInfoQuer20,_fetchProductInfoQuer21,_fetchProductInfoQuer22;var quantitystepincrearse=1;var tempaddtocardpayloadobj=_objectSpread$2C({},addtocardpayloadobj);if((fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer19=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer19===void 0||(_fetchProductInfoQuer19=_fetchProductInfoQuer19.data)===null||_fetchProductInfoQuer19===void 0||(_fetchProductInfoQuer19=_fetchProductInfoQuer19.productinfo)===null||_fetchProductInfoQuer19===void 0?void 0:_fetchProductInfoQuer19.quantitystepincrearse)!=undefined&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer20=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer20===void 0||(_fetchProductInfoQuer20=_fetchProductInfoQuer20.data)===null||_fetchProductInfoQuer20===void 0||(_fetchProductInfoQuer20=_fetchProductInfoQuer20.productinfo)===null||_fetchProductInfoQuer20===void 0?void 0:_fetchProductInfoQuer20.quantitystepincrearse)!=null&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer21=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer21===void 0||(_fetchProductInfoQuer21=_fetchProductInfoQuer21.data)===null||_fetchProductInfoQuer21===void 0||(_fetchProductInfoQuer21=_fetchProductInfoQuer21.productinfo)===null||_fetchProductInfoQuer21===void 0?void 0:_fetchProductInfoQuer21.quantitystepincrearse)!=1&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer22=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer22===void 0||(_fetchProductInfoQuer22=_fetchProductInfoQuer22.data)===null||_fetchProductInfoQuer22===void 0||(_fetchProductInfoQuer22=_fetchProductInfoQuer22.productinfo)===null||_fetchProductInfoQuer22===void 0?void 0:_fetchProductInfoQuer22.quantitystepincrearse)!=''){var _fetchProductInfoQuer23;quantitystepincrearse=parseFloat(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer23=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer23===void 0||(_fetchProductInfoQuer23=_fetchProductInfoQuer23.data)===null||_fetchProductInfoQuer23===void 0||(_fetchProductInfoQuer23=_fetchProductInfoQuer23.productinfo)===null||_fetchProductInfoQuer23===void 0?void 0:_fetchProductInfoQuer23.quantitystepincrearse);}tempaddtocardpayloadobj.quantity=tempaddtocardpayloadobj.quantity+quantitystepincrearse;setaddtocardpayloadobj(_objectSpread$2C({},tempaddtocardpayloadobj));}},/*#__PURE__*/React.createElement("i",{className:sectionproperties.quantityiconstyle=='Arrows'?'fa fa-chevron-up':'h-100 allcentered',style:{fontSize:sectionproperties.add_quantitybtn_textfontsize+'px'}},sectionproperties.quantityiconstyle=='Plus/Minus'&&/*#__PURE__*/React.createElement(FiPlus,{size:sectionproperties.add_quantitybtn_textfontsize}))),sectionproperties.quantitybtneditable=='Yes'&&/*#__PURE__*/React.createElement("input",{type:"number",style:{width:100,height:40,background:'transparent',fontWeight:sectionproperties.quantitybtn_textfontweight,color:sectionproperties.quantitybtn_textcolor,fontSize:sectionproperties.quantitybtn_textfontsize+'px',textAlign:'center'},value:addtocardpayloadobj.quantity,onChange:function onChange(event){if(event.target.value==NaN||event.target.value==undefined||event.target.value==null||event.target.value==''){var tempaddtocardpayloadobj=_objectSpread$2C({},addtocardpayloadobj);tempaddtocardpayloadobj.quantity=1;setaddtocardpayloadobj(_objectSpread$2C({},tempaddtocardpayloadobj));}else {var tempaddtocardpayloadobj=_objectSpread$2C({},addtocardpayloadobj);tempaddtocardpayloadobj.quantity=parseInt(event.target.value);setaddtocardpayloadobj(_objectSpread$2C({},tempaddtocardpayloadobj));}}}));};var ProductFeaturesArray=function ProductFeaturesArray(){var _fetchProductInfoQuer24;return/*#__PURE__*/React.createElement("div",{className:"row m-0 w-100"},fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer24=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer24===void 0||(_fetchProductInfoQuer24=_fetchProductInfoQuer24.data)===null||_fetchProductInfoQuer24===void 0||(_fetchProductInfoQuer24=_fetchProductInfoQuer24.productinfo)===null||_fetchProductInfoQuer24===void 0||(_fetchProductInfoQuer24=_fetchProductInfoQuer24.productfeatures)===null||_fetchProductInfoQuer24===void 0?void 0:_fetchProductInfoQuer24.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:sectionproperties.featureimagewidthheight+'px'},"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+'px'}},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+'px'}},langdetect=='en'?fitem===null||fitem===void 0?void 0:fitem.value_en:fitem===null||fitem===void 0?void 0:fitem.value_ar))));}));};return/*#__PURE__*/React.createElement("div",{className:sectionproperties.productInformationType=='Portfolio'?' row m-0 w-100 p-0 ':sectionproperties.card_marginLeft!=0?' row m-0 w-100 pl-lg-3 pr-lg-3 pl-md-4 pr-md-4 p-sm-0 ':' row m-0 w-100 p-sm-0 ',style:{paddingLeft:sectionproperties.productInformationType=='Portfolio'?0:srcfromprops=='Productinfomodel'?langdetect=='en'?sectionproperties.card_marginLeft+'px':sectionproperties.card_marginRight+'px':0,paddingRight:sectionproperties.productInformationType=='Portfolio'?0:srcfromprops=='Productinfomodel'?langdetect=='en'?sectionproperties.card_marginRight+'px':sectionproperties.card_marginLeft+'px':0}},/*#__PURE__*/React.createElement("div",{"class":' col-lg-12 p-0 '},Object.keys(sectionproperties).length!=0&§ionproperties.productInformationType=='Product/Service Information'&&(authdetailsContext===null||authdetailsContext===void 0||(_authdetailsContext$i4=authdetailsContext.instinfo)===null||_authdetailsContext$i4===void 0?void 0:_authdetailsContext$i4.contactinfo.instid)!='678d1831ef638'&&(authdetailsContext===null||authdetailsContext===void 0||(_authdetailsContext$i5=authdetailsContext.instinfo)===null||_authdetailsContext$i5===void 0?void 0:_authdetailsContext$i5.contactinfo.instid)!='680a0b8a31930'&&(authdetailsContext===null||authdetailsContext===void 0||(_authdetailsContext$i6=authdetailsContext.instinfo)===null||_authdetailsContext$i6===void 0?void 0:_authdetailsContext$i6.contactinfo.instid)!='684fdf3f9e856'&&(authdetailsContext===null||authdetailsContext===void 0||(_authdetailsContext$i7=authdetailsContext.instinfo)===null||_authdetailsContext$i7===void 0?void 0:_authdetailsContext$i7.contactinfo.instid)!='68a6e2f865af8'&&/*#__PURE__*/React.createElement("div",{"class":"".concat(productinfo_cssstyles.cardcontainer)+' row ml-0 mr-0 w-100 pl-md-2 pr-md-2 px-1025-1 ',style:{minHeight:props.actions.srcfromprops=='templatedraftrouter'?'auto':sectionproperties.height+'vh',paddingTop:props.actions.srcfromprops=='templatedraftrouter'?30:0}},sectionproperties.gallerystyle=='Style 2'&&/*#__PURE__*/// scrollhorizontalwithscrollbarremove
|
|
3485
3497
|
React.createElement("div",{"class":"w-100 scrollhorizontalwithscrollbar "},(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer25=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer25===void 0||(_fetchProductInfoQuer25=_fetchProductInfoQuer25.data)===null||_fetchProductInfoQuer25===void 0||(_fetchProductInfoQuer25=_fetchProductInfoQuer25.productinfo)===null||_fetchProductInfoQuer25===void 0||(_fetchProductInfoQuer25=_fetchProductInfoQuer25.productimages)===null||_fetchProductInfoQuer25===void 0?void 0:_fetchProductInfoQuer25.length)!=0&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer26=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer26===void 0||(_fetchProductInfoQuer26=_fetchProductInfoQuer26.data)===null||_fetchProductInfoQuer26===void 0||(_fetchProductInfoQuer26=_fetchProductInfoQuer26.productinfo)===null||_fetchProductInfoQuer26===void 0?void 0:_fetchProductInfoQuer26.productimages.map(function(item,index){if(item.is_size_guide!=1){return/*#__PURE__*/React.createElement("div",{"class":' scrollhorizontalcard mx-2 ',style:{height:sectionproperties.image_height+'px',width:sectionproperties.image_width+'px'}},/*#__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:'/tr:w-'+sectionproperties.imagetr_w+',h-'+sectionproperties.imagetr_h+'/'+item.path,style:{width:'100%',height:'100%',objectFit:'contain'},loading:"lazy"}));}}))),sectionproperties.gallerystyle=='One Centered Image'&&/*#__PURE__*/React.createElement("div",{"class":"col-lg-12 allcentered"},(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer27=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer27===void 0||(_fetchProductInfoQuer27=_fetchProductInfoQuer27.data)===null||_fetchProductInfoQuer27===void 0||(_fetchProductInfoQuer27=_fetchProductInfoQuer27.productinfo)===null||_fetchProductInfoQuer27===void 0||(_fetchProductInfoQuer27=_fetchProductInfoQuer27.productimages)===null||_fetchProductInfoQuer27===void 0?void 0:_fetchProductInfoQuer27.length)!=0&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer28=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer28===void 0||(_fetchProductInfoQuer28=_fetchProductInfoQuer28.data)===null||_fetchProductInfoQuer28===void 0||(_fetchProductInfoQuer28=_fetchProductInfoQuer28.productinfo)===null||_fetchProductInfoQuer28===void 0?void 0:_fetchProductInfoQuer28.productimages.map(function(item,index){return/*#__PURE__*/React.createElement("div",{"class":' mx-2 ',style:{height:sectionproperties.image_height+'px',width:sectionproperties.image_width+'px'}},/*#__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:'/tr:w-'+sectionproperties.imagetr_w+',h-'+sectionproperties.imagetr_h+'/'+item.path,style:{width:'100%',height:'100%',objectFit:'contain'},loading:"lazy"}));}))),/*#__PURE__*/React.createElement("div",{"class":"col-lg-12 p-0"},/*#__PURE__*/React.createElement("div",{"class":sectionproperties.infomarionsectionpaddinghorizontal==0?'row mx-0 w-100':'row mx-0 w-100'// class={sectionproperties.infomarionsectionpaddinghorizontal == 0 ? 'row mx-0 w-100' : 'row mx-0 w-100 px-md-3'}
|
|
3486
3498
|
,style:{marginTop:sectionproperties.gallerystyle=='Style 2'?'3rem':0,paddingLeft:sectionproperties.infomarionsectionpaddinghorizontal+'px',paddingRight:sectionproperties.infomarionsectionpaddinghorizontal+'px'}},/*#__PURE__*/React.createElement("div",{className:sectionproperties.showfooterphonenumber=='Hide'&§ionproperties.showfooteremail=='Hide'&§ionproperties.showstoreinfo2=='Hide'&§ionproperties.showstoreinfo1=='Hide'?'col-lg-12':sectionproperties.storeinfoposition=='Below Information'?'col-lg-12':langdetect=='en'?'col-lg-9 pl-0 mb-md-3 p-md-0':'col-lg-9 pr-0 mb-md-3 p-md-0',style:{marginBottom:sectionproperties.evencols=='Yes'?'60px':0}},/*#__PURE__*/React.createElement("div",{className:'row m-0 w-100'},sectionproperties.gallerystyle=='Style 1'&&/*#__PURE__*/React.createElement("div",{className:sectionproperties.evencols=='Yes'?productinfo_cssstyles.evencols+' col-xl-6 col-lg-6 col-md-12 col-sm-12 mb-md-2 pl-1 pr-1 evencols ':'col-xl-5 col-lg-5 col-md-12 col-sm-12 mb-md-5 pb-md-4 pl-1 pr-1'},/*#__PURE__*/React.createElement("div",{className:sectionproperties.maximizegalleryfullscreen=='Yes'?' col-lg-12 p-0 maximize ':'col-lg-12 p-0',style:{width:'100%'// height: 'auto',
|
|
@@ -72872,14 +72884,7 @@ var Slideshowzoom = function Slideshowzoom(props) {
|
|
|
72872
72884
|
width: '100%',
|
|
72873
72885
|
height: '100%'
|
|
72874
72886
|
}
|
|
72875
|
-
}, /*#__PURE__*/React.createElement(
|
|
72876
|
-
id: "radioPlayer",
|
|
72877
|
-
controls: true,
|
|
72878
|
-
autoplay: true
|
|
72879
|
-
}, /*#__PURE__*/React.createElement("source", {
|
|
72880
|
-
src: "http://radio.hvips.com:8056/stream",
|
|
72881
|
-
type: "audio/mpeg"
|
|
72882
|
-
})))), /*#__PURE__*/React.createElement(Modal.Footer, null)));
|
|
72887
|
+
})), /*#__PURE__*/React.createElement(Modal.Footer, null)));
|
|
72883
72888
|
};
|
|
72884
72889
|
var easingFunctions = {
|
|
72885
72890
|
noEasing: undefined,
|
package/dist/index.umd.js
CHANGED
|
@@ -3339,7 +3339,19 @@
|
|
|
3339
3339
|
var url='https://3d-tryon.vercel.app/?i=68319d088f13f&p=6832fc16af9d7';window.open(url,'_blank');};var ShareButtonsContainer=function ShareButtonsContainer(){return/*#__PURE__*/React__default["default"].createElement("div",{"class":"row m-0 w-100"},/*#__PURE__*/React__default["default"].createElement("div",{"class":"col-lg-12 d-flex justify-content-center flex-column align-items-center p-0"},/*#__PURE__*/React__default["default"].createElement("p",{"class":"m-0 p-0",style:{fontWeight:sectionproperties.sharebtn_FontWeight,color:sectionproperties.sharebtn_color,fontSize:sectionproperties.sharebtn_fontSize+'px'}},langdetect=='en'?sectionproperties.sharebtn_contentEn:sectionproperties.sharebtn_contentAr),/*#__PURE__*/React__default["default"].createElement("div",{className:"Demo__container w-100 m-0 allcentered mt-3"},/*#__PURE__*/React__default["default"].createElement("div",{className:"Demo__some-network ml-2 mr-2"},/*#__PURE__*/React__default["default"].createElement(reactShare.FacebookShareButton,{url:shareUrl,quote:title,className:"Demo__some-network__share-button"},/*#__PURE__*/React__default["default"].createElement(reactShare.FacebookIcon,{size:40,round:true}))),/*#__PURE__*/React__default["default"].createElement("div",{className:"Demo__some-network ml-2 mr-2"},/*#__PURE__*/React__default["default"].createElement(reactShare.EmailShareButton,{url:shareUrl,quote:title,className:"Demo__some-network__share-button"},/*#__PURE__*/React__default["default"].createElement(reactShare.EmailIcon,{size:40,round:true}))),sectionproperties.shareviax=='Show'&&/*#__PURE__*/React__default["default"].createElement("div",{className:"Demo__some-network ml-2 mr-2",style:{width:'40px',height:'40px'}},/*#__PURE__*/React__default["default"].createElement(reactShare.TwitterShareButton,{url:shareUrl,title:title,className:"Demo__some-network__share-button"},/*#__PURE__*/React__default["default"].createElement("img",{src:'https://tabex-co.com/storage/StaticImages/twitterxicon.png',style:{width:'100%',height:'100%',objectFit:'contain'}}))),/*#__PURE__*/React__default["default"].createElement("div",{className:"Demo__some-network ml-2 mr-2"},/*#__PURE__*/React__default["default"].createElement(reactShare.WhatsappShareButton,{url:shareUrl,title:title,separator:":: ",className:"Demo__some-network__share-button"},/*#__PURE__*/React__default["default"].createElement(reactShare.WhatsappIcon,{size:40,round:true}))),sectionproperties.showsharelinkedin=='Show'&&/*#__PURE__*/React__default["default"].createElement("div",{className:"Demo__some-network ml-2 mr-2"},/*#__PURE__*/React__default["default"].createElement(reactShare.LinkedinShareButton,{url:shareUrl,title:title,separator:":: ",className:"Demo__some-network__share-button"},/*#__PURE__*/React__default["default"].createElement(reactShare.LinkedinIcon,{size:40,round:true}))))));};// {fetchProductInfoQueryContext.data.data.productinfo.hassale == 0
|
|
3340
3340
|
// ? parseFloat(getprice_discountpriceprops('defaultprice', 1, variantindexcompleted)).toFixed(2)
|
|
3341
3341
|
// : parseFloat(getprice_discountpriceprops('defaultsaleprice', 1, variantindexcompleted)).toFixed(2)}
|
|
3342
|
-
React.useEffect(function(){var _fetchProductInfoQuer;var totalprice='';if(variantindexcompleted.length==0&&fetchProductInfoQueryContext.data.data.productinfo.hassale==0){totalprice=parseFloat(getprice_discountpriceprops('defaultprice',1,variantindexcompleted)).toFixed(2);}else if(variantindexcompleted.length==0&&fetchProductInfoQueryContext.data.data.productinfo.hassale==1){totalprice=parseFloat(getprice_discountpriceprops('defaultsaleprice',1,variantindexcompleted)).toFixed(2);}else if(variantindexcompleted.length!=0&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer===void 0||(_fetchProductInfoQuer=_fetchProductInfoQuer.data)===null||_fetchProductInfoQuer===void 0||(_fetchProductInfoQuer=_fetchProductInfoQuer.productinfo)===null||_fetchProductInfoQuer===void 0||(_fetchProductInfoQuer=_fetchProductInfoQuer.variants[variantindexcompleted])===null||_fetchProductInfoQuer===void 0?void 0:_fetchProductInfoQuer.hassale)==1){totalprice=parseFloat(getprice_discountpriceprops('defaultsaleprice',1,variantindexcompleted)).toFixed(2);}else {totalprice=parseFloat(getprice_discountpriceprops('defaultprice',1,variantindexcompleted)).toFixed(2);}settotalprice(totalprice);setcurrentshowingimageindex(props.actions.currentshowingimageindex);},[variantindexcompleted]);React.useEffect(function(){if(currentshowingimageindex_pro!=undefined&¤tshowingimageindex_pro!=null&¤tshowingimageindex_pro!=''&&typeof currentshowingimageindex_pro==='number'&&isFinite(currentshowingimageindex_pro)&¤tshowingimageindex_pro>=0){setcurrentshowingimageindex(currentshowingimageindex_pro);}},[currentshowingimageindex_pro]);var ProductsSKUContainer=function ProductsSKUContainer(){return/*#__PURE__*/React__default["default"].createElement("p",{"class":"m-0 p-0 d-flex justify-content-start"},/*#__PURE__*/React__default["default"].createElement("span",{style:{color:sectionproperties.skuColor,fontWeight:sectionproperties.skuFontWeight,fontSize:sectionproperties.skuFontSize+'px',textAlign:langdetect=='en'?'left':'right'}},langdetect=='en'?sectionproperties.skutitleEn:sectionproperties.skutitleAr,":",' '),/*#__PURE__*/React__default["default"].createElement("span",{"class":"ml-1 mr-1",style:{color:'#7e859b',fontWeight:sectionproperties.skuSecondaryFontWeight,fontSize:sectionproperties.skuFontSize+'px',textAlign:langdetect=='en'?'left':'right'}},sectionproperties.showvariantsku=='Show'&&variantsku!=''?variantsku:fetchProductInfoQueryContext.data.data.productinfo.sku));};var MeasurementUnitSection=function MeasurementUnitSection(){return/*#__PURE__*/React__default["default"].createElement("div",{className:'col-lg-12 p-0 mb-1 d-flex justify-content-start align-items-center mb-1 mt-3'},/*#__PURE__*/React__default["default"].createElement("p",{className:' m-0 p-0 wordbreak d-flex justify-content-start ',style:{textAlign:langdetect=='en'?'left':'right',fontWeight:sectionproperties.measurementunitfontweight,color:sectionproperties.measurementunitcolor,fontSize:sectionproperties.measurementunitcolor+'px'}},fetchProductInfoQueryContext.data.data.productinfo.measurmentunit));};var ProductNameSection=function ProductNameSection(){return/*#__PURE__*/React__default["default"].createElement("p",{className:props.actions.srcfromprops=='templatedraftrouter'?"".concat(productinfo_cssstyles.productname," ").concat(productinfo_cssstyles.productnamehover)+' m-0 p-0 wordbreak d-flex cursor-pointer font-sm-15 ':"".concat(productinfo_cssstyles.productname)+' m-0 p-0 wordbreak d-flex font-sm-15 ',onClick:function onClick(){if(props.actions.srcfromprops=='templatedraftrouter'){routingcountext(StaticPagesLinksContext.productinfo,true,fetchProductInfoQueryContext.data.data.productinfo.productid);}},style:{textAlign:sectionproperties.productnamecentered=='Centered'?'center':langdetect=='en'?'left':'right'}},langdetect=='en'?fetchProductInfoQueryContext.data.data.productinfo.name_en:fetchProductInfoQueryContext.data.data.productinfo.name_ar);};var ShortDescriptionTitle=function ShortDescriptionTitle(){return/*#__PURE__*/React__default["default"].createElement("p",{"class":"m-0 p-0",style:{textAlign:sectionproperties.productnamecentered=='Centered'?'center':langdetect=='en'?'left':'right',fontWeight:sectionproperties.prodCatFontWeight,color:sectionproperties.prodCatColor,fontSize:sectionproperties.prodCatFontSize+'px'}},langdetect=='en'?sectionproperties.shortdescriptiontitle_en:sectionproperties.shortdescriptiontitle_ar);};var ProductFeaturesTable=function ProductFeaturesTable(){var _fetchProductInfoQuer2;return/*#__PURE__*/React__default["default"].createElement("div",{"class":"row m-0 w-100"},/*#__PURE__*/React__default["default"].createElement("div",{"class":"col-lg-12 p-0 my-3"},/*#__PURE__*/React__default["default"].createElement("p",{className:"m-0 p-0",style:{color:sectionproperties.featurestitlecolor,fontSize:sectionproperties.featurestitlefontsize+'px',fontWeight:600}},langdetect=='en'?sectionproperties.featurestitleen:sectionproperties.featurestitlear)),/*#__PURE__*/React__default["default"].createElement("div",{className:"col-lg-12 m-0 w-100 p-0"},/*#__PURE__*/React__default["default"].createElement("table",{className:'table tablevertical'},fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer2=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer2===void 0||(_fetchProductInfoQuer2=_fetchProductInfoQuer2.data)===null||_fetchProductInfoQuer2===void 0||(_fetchProductInfoQuer2=_fetchProductInfoQuer2.productinfo)===null||_fetchProductInfoQuer2===void 0||(_fetchProductInfoQuer2=_fetchProductInfoQuer2.productfeatures)===null||_fetchProductInfoQuer2===void 0?void 0:_fetchProductInfoQuer2.map(function(fitem,findex){return/*#__PURE__*/React__default["default"].createElement("tr",null,/*#__PURE__*/React__default["default"].createElement("th",{style:{textTransform:'capitalize',color:sectionproperties.featurecolor,fontWeight:sectionproperties.featurefontweight,fontSize:sectionproperties.featurefontsize}},/*#__PURE__*/React__default["default"].createElement("div",{"class":"d-flex flex-row",style:{color:sectionproperties.featurecolor}},(fitem===null||fitem===void 0?void 0:fitem.feature_image_url)!=null&&/*#__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%'}})),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("td",{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));}))));};var DescriptionAccordion=function DescriptionAccordion(){return/*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItem,{uuid:0},/*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItemHeading,null,/*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItemButton,null,/*#__PURE__*/React__default["default"].createElement("div",{"class":"row m-0 w-100"},/*#__PURE__*/React__default["default"].createElement("div",{className:"col-lg-10 col-md-10 col-sm-10 p-0 d-flex align-items-center justify-content-start"},/*#__PURE__*/React__default["default"].createElement("p",{"class":"m-0 p-0",style:{textAlign:langdetect=='en'?'left':'right',fontWeight:sectionproperties.prodCatFontWeight,color:sectionproperties.prodCatColor,fontSize:sectionproperties.prodCatFontSize+'px'}},langdetect=='en'?sectionproperties.descriptionContentEn:sectionproperties.descriptionContentAr)),/*#__PURE__*/React__default["default"].createElement("div",{className:"col-lg-2 col-md-2 col-sm-2 p-0"},/*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItemState,null,function(state){if(state.expanded==true){return/*#__PURE__*/React__default["default"].createElement("i",{className:' h-100 d-flex align-items-center justify-content-end '},/*#__PURE__*/React__default["default"].createElement(FaMinus.FaMinus,{color:sectionproperties.prodCatColor}));}else {return/*#__PURE__*/React__default["default"].createElement("i",{className:' h-100 d-flex align-items-center justify-content-end '},/*#__PURE__*/React__default["default"].createElement(FaPlus.FaPlus,{color:sectionproperties.prodCatColor}));}}))))),/*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItemPanel,{className:"p-0"},/*#__PURE__*/React__default["default"].createElement("div",{"class":"col-lg-12 p-0 mt-3"},/*#__PURE__*/React__default["default"].createElement(DescriptionContent,{actions:props.actions,srcfromprops:'collap'}))));};var TotalSection=function TotalSection(){var _fetchProductInfoQuer3,_fetchProductInfoQuer4,_fetchProductInfoQuer5;return/*#__PURE__*/React__default["default"].createElement("div",{className:"row m-0 w-100 d-flex flex-row"},/*#__PURE__*/React__default["default"].createElement("p",{className:"m-0 p-0",style:{color:sectionproperties.total_color,fontSize:sectionproperties.total_fontsize+'px',fontWeight:sectionproperties.total_fontweight,textTransform:sectionproperties.total_texttransform}},lang.total,":"),/*#__PURE__*/React__default["default"].createElement("div",{className:"col-lg-9 col-md-9 col-sm-9 d-flex align-items-center pl-1 pr-1"},/*#__PURE__*/React__default["default"].createElement("p",{className:'m-0 p-0 wordbreak d-flex align-items-center justify-content-end',style:{fontSize:sectionproperties.prodpriceFontSize+'px',fontWeight:sectionproperties.prodPriceFontWeight,color:sectionproperties.prodPriceColor}},/*#__PURE__*/React__default["default"].createElement("span",{className:langdetect=='en'?' d-flex align-items-center justify-content-end wordbreak text-right ':' d-flex align-items-center justify-content-end wordbreak text-left '},langdetect=='en'?authdetailsContext===null||authdetailsContext===void 0?void 0:authdetailsContext.currencyname_en:'',' ',variantindexcompleted!=undefined&&variantindexcompleted.length==0&&fetchProductInfoQueryContext.data.data.productinfo.hassale==0&&parseFloat(getprice_discountpriceprops('defaultprice',1,variantindexcompleted)).toFixed(2),variantindexcompleted!=undefined&&variantindexcompleted.length==0&&fetchProductInfoQueryContext.data.data.productinfo.hassale==1&&parseFloat(getprice_discountpriceprops('defaultsaleprice',1,variantindexcompleted)).toFixed(2),variantindexcompleted!=undefined&&variantindexcompleted.length!=0&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer3=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer3===void 0||(_fetchProductInfoQuer3=_fetchProductInfoQuer3.data)===null||_fetchProductInfoQuer3===void 0||(_fetchProductInfoQuer3=_fetchProductInfoQuer3.productinfo)===null||_fetchProductInfoQuer3===void 0||(_fetchProductInfoQuer3=_fetchProductInfoQuer3.variants[variantindexcompleted])===null||_fetchProductInfoQuer3===void 0?void 0:_fetchProductInfoQuer3.hassale)==1&&parseFloat(getprice_discountpriceprops('defaultsaleprice',1,variantindexcompleted)).toFixed(2),variantindexcompleted!=undefined&&variantindexcompleted.length!=0&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer4=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer4===void 0||(_fetchProductInfoQuer4=_fetchProductInfoQuer4.data)===null||_fetchProductInfoQuer4===void 0||(_fetchProductInfoQuer4=_fetchProductInfoQuer4.productinfo)===null||_fetchProductInfoQuer4===void 0||(_fetchProductInfoQuer4=_fetchProductInfoQuer4.variants[variantindexcompleted])===null||_fetchProductInfoQuer4===void 0?void 0:_fetchProductInfoQuer4.hassale)==0&&parseFloat(getprice_discountpriceprops('defaultprice',1,variantindexcompleted)).toFixed(2),langdetect=='en'?'':authdetailsContext===null||authdetailsContext===void 0?void 0:authdetailsContext.currencyname_ar)),/*#__PURE__*/React__default["default"].createElement("p",{className:'m-0 p-0 linethrough wordbreak',style:{color:sectionproperties.prodsalePriceColor,fontSize:sectionproperties.prodsalepriceFontSize+'px',fontWeight:sectionproperties.prodsalePriceFontWeight}},fetchProductInfoQueryContext.data.data.productinfo.hassale==1&&variantindexcompleted!=undefined&&variantindexcompleted.length==0&&/*#__PURE__*/React__default["default"].createElement("span",{className:langdetect=='en'?' d-flex align-items-center justify-content-end wordbreak text-right wordbreak ':' d-flex align-items-center justify-content-end wordbreak text-left wordbreak '},/*#__PURE__*/React__default["default"].createElement("span",{className:"ml-2 mr-2",style:{textDecoration:'none'}},"-"),langdetect=='en'?authdetailsContext===null||authdetailsContext===void 0?void 0:authdetailsContext.currencyname_en:''," ",parseFloat(getprice_discountpriceprops('defaultprice',1,variantindexcompleted)),' ',langdetect=='en'?'':authdetailsContext===null||authdetailsContext===void 0?void 0:authdetailsContext.currencyname_ar),variantindexcompleted!=undefined&&variantindexcompleted.length!=0&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer5=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer5===void 0||(_fetchProductInfoQuer5=_fetchProductInfoQuer5.data)===null||_fetchProductInfoQuer5===void 0||(_fetchProductInfoQuer5=_fetchProductInfoQuer5.productinfo)===null||_fetchProductInfoQuer5===void 0||(_fetchProductInfoQuer5=_fetchProductInfoQuer5.variants[variantindexcompleted])===null||_fetchProductInfoQuer5===void 0?void 0:_fetchProductInfoQuer5.hassale)==1&&/*#__PURE__*/React__default["default"].createElement("span",{className:langdetect=='en'?' d-flex align-items-center justify-content-end wordbreak text-right wordbreak ':' d-flex align-items-center justify-content-end wordbreak text-left wordbreak '},/*#__PURE__*/React__default["default"].createElement("span",{className:"ml-2 mr-2",style:{textDecoration:'none'}},"-"),langdetect=='en'?authdetailsContext===null||authdetailsContext===void 0?void 0:authdetailsContext.currencyname_en:''," ",parseFloat(getprice_discountpriceprops('defaultprice',1,variantindexcompleted)),' ',langdetect=='en'?'':authdetailsContext===null||authdetailsContext===void 0?void 0:authdetailsContext.currencyname_ar))));};var QuantityButton=function QuantityButton(position){var _authdetailsContext$i3;return/*#__PURE__*/React__default["default"].createElement("button",{className:position=='fixedcontainer'?" ".concat(productinfo_cssstyles.quantitybtn)+' p-0 d-flex align-items-center justify-content-center inputrangedark ':" ".concat(productinfo_cssstyles.quantitybtn)+' p-0 d-flex align-items-center justify-content-center mb-sm-2 inputrangedark ',style:{height:sectionproperties.quantitybtneditable=='Slider'?'auto':sectionproperties.quantitybtn_height+'px',width:position=='fixedcontainer'?'100%':sectionproperties.quantitybtneditable=='Slider'?'100%':sectionproperties.quantitybtn_width+'px',flexDirection:'row',direction:'ltr',// background: 'transparent',
|
|
3342
|
+
React.useEffect(function(){var _fetchProductInfoQuer;var totalprice='';if(variantindexcompleted.length==0&&fetchProductInfoQueryContext.data.data.productinfo.hassale==0){totalprice=parseFloat(getprice_discountpriceprops('defaultprice',1,variantindexcompleted)).toFixed(2);}else if(variantindexcompleted.length==0&&fetchProductInfoQueryContext.data.data.productinfo.hassale==1){totalprice=parseFloat(getprice_discountpriceprops('defaultsaleprice',1,variantindexcompleted)).toFixed(2);}else if(variantindexcompleted.length!=0&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer===void 0||(_fetchProductInfoQuer=_fetchProductInfoQuer.data)===null||_fetchProductInfoQuer===void 0||(_fetchProductInfoQuer=_fetchProductInfoQuer.productinfo)===null||_fetchProductInfoQuer===void 0||(_fetchProductInfoQuer=_fetchProductInfoQuer.variants[variantindexcompleted])===null||_fetchProductInfoQuer===void 0?void 0:_fetchProductInfoQuer.hassale)==1){totalprice=parseFloat(getprice_discountpriceprops('defaultsaleprice',1,variantindexcompleted)).toFixed(2);}else {totalprice=parseFloat(getprice_discountpriceprops('defaultprice',1,variantindexcompleted)).toFixed(2);}settotalprice(totalprice);setcurrentshowingimageindex(props.actions.currentshowingimageindex);},[variantindexcompleted]);// useEffect(() => {
|
|
3343
|
+
// if (
|
|
3344
|
+
// currentshowingimageindex_pro != undefined &&
|
|
3345
|
+
// currentshowingimageindex_pro != null &&
|
|
3346
|
+
// currentshowingimageindex_pro != '' &&
|
|
3347
|
+
// typeof currentshowingimageindex_pro === 'number' &&
|
|
3348
|
+
// isFinite(currentshowingimageindex_pro) &&
|
|
3349
|
+
// currentshowingimageindex_pro >= 0
|
|
3350
|
+
// ) {
|
|
3351
|
+
// setcurrentshowingimageindex(currentshowingimageindex_pro);
|
|
3352
|
+
// }
|
|
3353
|
+
// }, [currentshowingimageindex_pro]);
|
|
3354
|
+
React.useEffect(function(){if(currentshowingimageindex_pro==0){setcurrentshowingimageindex(currentshowingimageindex_pro);}else {if(currentshowingimageindex_pro!=undefined&¤tshowingimageindex_pro!=null&¤tshowingimageindex_pro!=''&&typeof currentshowingimageindex_pro==='number'&&isFinite(currentshowingimageindex_pro)&¤tshowingimageindex_pro>=0){setcurrentshowingimageindex(currentshowingimageindex_pro);}}},[currentshowingimageindex_pro]);var ProductsSKUContainer=function ProductsSKUContainer(){return/*#__PURE__*/React__default["default"].createElement("p",{"class":"m-0 p-0 d-flex justify-content-start"},/*#__PURE__*/React__default["default"].createElement("span",{style:{color:sectionproperties.skuColor,fontWeight:sectionproperties.skuFontWeight,fontSize:sectionproperties.skuFontSize+'px',textAlign:langdetect=='en'?'left':'right'}},langdetect=='en'?sectionproperties.skutitleEn:sectionproperties.skutitleAr,":",' '),/*#__PURE__*/React__default["default"].createElement("span",{"class":"ml-1 mr-1",style:{color:'#7e859b',fontWeight:sectionproperties.skuSecondaryFontWeight,fontSize:sectionproperties.skuFontSize+'px',textAlign:langdetect=='en'?'left':'right'}},sectionproperties.showvariantsku=='Show'&&variantsku!=''?variantsku:fetchProductInfoQueryContext.data.data.productinfo.sku));};var MeasurementUnitSection=function MeasurementUnitSection(){return/*#__PURE__*/React__default["default"].createElement("div",{className:'col-lg-12 p-0 mb-1 d-flex justify-content-start align-items-center mb-1 mt-3'},/*#__PURE__*/React__default["default"].createElement("p",{className:' m-0 p-0 wordbreak d-flex justify-content-start ',style:{textAlign:langdetect=='en'?'left':'right',fontWeight:sectionproperties.measurementunitfontweight,color:sectionproperties.measurementunitcolor,fontSize:sectionproperties.measurementunitcolor+'px'}},fetchProductInfoQueryContext.data.data.productinfo.measurmentunit));};var ProductNameSection=function ProductNameSection(){return/*#__PURE__*/React__default["default"].createElement("p",{className:props.actions.srcfromprops=='templatedraftrouter'?"".concat(productinfo_cssstyles.productname," ").concat(productinfo_cssstyles.productnamehover)+' m-0 p-0 wordbreak d-flex cursor-pointer font-sm-15 ':"".concat(productinfo_cssstyles.productname)+' m-0 p-0 wordbreak d-flex font-sm-15 ',onClick:function onClick(){if(props.actions.srcfromprops=='templatedraftrouter'){routingcountext(StaticPagesLinksContext.productinfo,true,fetchProductInfoQueryContext.data.data.productinfo.productid);}},style:{textAlign:sectionproperties.productnamecentered=='Centered'?'center':langdetect=='en'?'left':'right'}},langdetect=='en'?fetchProductInfoQueryContext.data.data.productinfo.name_en:fetchProductInfoQueryContext.data.data.productinfo.name_ar);};var ShortDescriptionTitle=function ShortDescriptionTitle(){return/*#__PURE__*/React__default["default"].createElement("p",{"class":"m-0 p-0",style:{textAlign:sectionproperties.productnamecentered=='Centered'?'center':langdetect=='en'?'left':'right',fontWeight:sectionproperties.prodCatFontWeight,color:sectionproperties.prodCatColor,fontSize:sectionproperties.prodCatFontSize+'px'}},langdetect=='en'?sectionproperties.shortdescriptiontitle_en:sectionproperties.shortdescriptiontitle_ar);};var ProductFeaturesTable=function ProductFeaturesTable(){var _fetchProductInfoQuer2;return/*#__PURE__*/React__default["default"].createElement("div",{"class":"row m-0 w-100"},/*#__PURE__*/React__default["default"].createElement("div",{"class":"col-lg-12 p-0 my-3"},/*#__PURE__*/React__default["default"].createElement("p",{className:"m-0 p-0",style:{color:sectionproperties.featurestitlecolor,fontSize:sectionproperties.featurestitlefontsize+'px',fontWeight:600}},langdetect=='en'?sectionproperties.featurestitleen:sectionproperties.featurestitlear)),/*#__PURE__*/React__default["default"].createElement("div",{className:"col-lg-12 m-0 w-100 p-0"},/*#__PURE__*/React__default["default"].createElement("table",{className:'table tablevertical'},fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer2=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer2===void 0||(_fetchProductInfoQuer2=_fetchProductInfoQuer2.data)===null||_fetchProductInfoQuer2===void 0||(_fetchProductInfoQuer2=_fetchProductInfoQuer2.productinfo)===null||_fetchProductInfoQuer2===void 0||(_fetchProductInfoQuer2=_fetchProductInfoQuer2.productfeatures)===null||_fetchProductInfoQuer2===void 0?void 0:_fetchProductInfoQuer2.map(function(fitem,findex){return/*#__PURE__*/React__default["default"].createElement("tr",null,/*#__PURE__*/React__default["default"].createElement("th",{style:{textTransform:'capitalize',color:sectionproperties.featurecolor,fontWeight:sectionproperties.featurefontweight,fontSize:sectionproperties.featurefontsize}},/*#__PURE__*/React__default["default"].createElement("div",{"class":"d-flex flex-row",style:{color:sectionproperties.featurecolor}},(fitem===null||fitem===void 0?void 0:fitem.feature_image_url)!=null&&/*#__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%'}})),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("td",{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));}))));};var DescriptionAccordion=function DescriptionAccordion(){return/*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItem,{uuid:0},/*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItemHeading,null,/*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItemButton,null,/*#__PURE__*/React__default["default"].createElement("div",{"class":"row m-0 w-100"},/*#__PURE__*/React__default["default"].createElement("div",{className:"col-lg-10 col-md-10 col-sm-10 p-0 d-flex align-items-center justify-content-start"},/*#__PURE__*/React__default["default"].createElement("p",{"class":"m-0 p-0",style:{textAlign:langdetect=='en'?'left':'right',fontWeight:sectionproperties.prodCatFontWeight,color:sectionproperties.prodCatColor,fontSize:sectionproperties.prodCatFontSize+'px'}},langdetect=='en'?sectionproperties.descriptionContentEn:sectionproperties.descriptionContentAr)),/*#__PURE__*/React__default["default"].createElement("div",{className:"col-lg-2 col-md-2 col-sm-2 p-0"},/*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItemState,null,function(state){if(state.expanded==true){return/*#__PURE__*/React__default["default"].createElement("i",{className:' h-100 d-flex align-items-center justify-content-end '},/*#__PURE__*/React__default["default"].createElement(FaMinus.FaMinus,{color:sectionproperties.prodCatColor}));}else {return/*#__PURE__*/React__default["default"].createElement("i",{className:' h-100 d-flex align-items-center justify-content-end '},/*#__PURE__*/React__default["default"].createElement(FaPlus.FaPlus,{color:sectionproperties.prodCatColor}));}}))))),/*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItemPanel,{className:"p-0"},/*#__PURE__*/React__default["default"].createElement("div",{"class":"col-lg-12 p-0 mt-3"},/*#__PURE__*/React__default["default"].createElement(DescriptionContent,{actions:props.actions,srcfromprops:'collap'}))));};var TotalSection=function TotalSection(){var _fetchProductInfoQuer3,_fetchProductInfoQuer4,_fetchProductInfoQuer5;return/*#__PURE__*/React__default["default"].createElement("div",{className:"row m-0 w-100 d-flex flex-row"},/*#__PURE__*/React__default["default"].createElement("p",{className:"m-0 p-0",style:{color:sectionproperties.total_color,fontSize:sectionproperties.total_fontsize+'px',fontWeight:sectionproperties.total_fontweight,textTransform:sectionproperties.total_texttransform}},lang.total,":"),/*#__PURE__*/React__default["default"].createElement("div",{className:"col-lg-9 col-md-9 col-sm-9 d-flex align-items-center pl-1 pr-1"},/*#__PURE__*/React__default["default"].createElement("p",{className:'m-0 p-0 wordbreak d-flex align-items-center justify-content-end',style:{fontSize:sectionproperties.prodpriceFontSize+'px',fontWeight:sectionproperties.prodPriceFontWeight,color:sectionproperties.prodPriceColor}},/*#__PURE__*/React__default["default"].createElement("span",{className:langdetect=='en'?' d-flex align-items-center justify-content-end wordbreak text-right ':' d-flex align-items-center justify-content-end wordbreak text-left '},langdetect=='en'?authdetailsContext===null||authdetailsContext===void 0?void 0:authdetailsContext.currencyname_en:'',' ',variantindexcompleted!=undefined&&variantindexcompleted.length==0&&fetchProductInfoQueryContext.data.data.productinfo.hassale==0&&parseFloat(getprice_discountpriceprops('defaultprice',1,variantindexcompleted)).toFixed(2),variantindexcompleted!=undefined&&variantindexcompleted.length==0&&fetchProductInfoQueryContext.data.data.productinfo.hassale==1&&parseFloat(getprice_discountpriceprops('defaultsaleprice',1,variantindexcompleted)).toFixed(2),variantindexcompleted!=undefined&&variantindexcompleted.length!=0&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer3=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer3===void 0||(_fetchProductInfoQuer3=_fetchProductInfoQuer3.data)===null||_fetchProductInfoQuer3===void 0||(_fetchProductInfoQuer3=_fetchProductInfoQuer3.productinfo)===null||_fetchProductInfoQuer3===void 0||(_fetchProductInfoQuer3=_fetchProductInfoQuer3.variants[variantindexcompleted])===null||_fetchProductInfoQuer3===void 0?void 0:_fetchProductInfoQuer3.hassale)==1&&parseFloat(getprice_discountpriceprops('defaultsaleprice',1,variantindexcompleted)).toFixed(2),variantindexcompleted!=undefined&&variantindexcompleted.length!=0&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer4=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer4===void 0||(_fetchProductInfoQuer4=_fetchProductInfoQuer4.data)===null||_fetchProductInfoQuer4===void 0||(_fetchProductInfoQuer4=_fetchProductInfoQuer4.productinfo)===null||_fetchProductInfoQuer4===void 0||(_fetchProductInfoQuer4=_fetchProductInfoQuer4.variants[variantindexcompleted])===null||_fetchProductInfoQuer4===void 0?void 0:_fetchProductInfoQuer4.hassale)==0&&parseFloat(getprice_discountpriceprops('defaultprice',1,variantindexcompleted)).toFixed(2),langdetect=='en'?'':authdetailsContext===null||authdetailsContext===void 0?void 0:authdetailsContext.currencyname_ar)),/*#__PURE__*/React__default["default"].createElement("p",{className:'m-0 p-0 linethrough wordbreak',style:{color:sectionproperties.prodsalePriceColor,fontSize:sectionproperties.prodsalepriceFontSize+'px',fontWeight:sectionproperties.prodsalePriceFontWeight}},fetchProductInfoQueryContext.data.data.productinfo.hassale==1&&variantindexcompleted!=undefined&&variantindexcompleted.length==0&&/*#__PURE__*/React__default["default"].createElement("span",{className:langdetect=='en'?' d-flex align-items-center justify-content-end wordbreak text-right wordbreak ':' d-flex align-items-center justify-content-end wordbreak text-left wordbreak '},/*#__PURE__*/React__default["default"].createElement("span",{className:"ml-2 mr-2",style:{textDecoration:'none'}},"-"),langdetect=='en'?authdetailsContext===null||authdetailsContext===void 0?void 0:authdetailsContext.currencyname_en:''," ",parseFloat(getprice_discountpriceprops('defaultprice',1,variantindexcompleted)),' ',langdetect=='en'?'':authdetailsContext===null||authdetailsContext===void 0?void 0:authdetailsContext.currencyname_ar),variantindexcompleted!=undefined&&variantindexcompleted.length!=0&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer5=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer5===void 0||(_fetchProductInfoQuer5=_fetchProductInfoQuer5.data)===null||_fetchProductInfoQuer5===void 0||(_fetchProductInfoQuer5=_fetchProductInfoQuer5.productinfo)===null||_fetchProductInfoQuer5===void 0||(_fetchProductInfoQuer5=_fetchProductInfoQuer5.variants[variantindexcompleted])===null||_fetchProductInfoQuer5===void 0?void 0:_fetchProductInfoQuer5.hassale)==1&&/*#__PURE__*/React__default["default"].createElement("span",{className:langdetect=='en'?' d-flex align-items-center justify-content-end wordbreak text-right wordbreak ':' d-flex align-items-center justify-content-end wordbreak text-left wordbreak '},/*#__PURE__*/React__default["default"].createElement("span",{className:"ml-2 mr-2",style:{textDecoration:'none'}},"-"),langdetect=='en'?authdetailsContext===null||authdetailsContext===void 0?void 0:authdetailsContext.currencyname_en:''," ",parseFloat(getprice_discountpriceprops('defaultprice',1,variantindexcompleted)),' ',langdetect=='en'?'':authdetailsContext===null||authdetailsContext===void 0?void 0:authdetailsContext.currencyname_ar))));};var QuantityButton=function QuantityButton(position){var _authdetailsContext$i3;return/*#__PURE__*/React__default["default"].createElement("button",{className:position=='fixedcontainer'?" ".concat(productinfo_cssstyles.quantitybtn)+' p-0 d-flex align-items-center justify-content-center inputrangedark ':" ".concat(productinfo_cssstyles.quantitybtn)+' p-0 d-flex align-items-center justify-content-center mb-sm-2 inputrangedark ',style:{height:sectionproperties.quantitybtneditable=='Slider'?'auto':sectionproperties.quantitybtn_height+'px',width:position=='fixedcontainer'?'100%':sectionproperties.quantitybtneditable=='Slider'?'100%':sectionproperties.quantitybtn_width+'px',flexDirection:'row',direction:'ltr',// background: 'transparent',
|
|
3343
3355
|
borderRadius:sectionproperties.quantitybtneditable=='Slider'?0:''}},sectionproperties.quantitybtneditable=='Slider'&&/*#__PURE__*/React__default["default"].createElement("div",{"class":"row m-0 w-100"},/*#__PURE__*/React__default["default"].createElement("div",{"class":"col-12 px-3 px-sm-3 pt-3 pinfo-slider"},/*#__PURE__*/React__default["default"].createElement(InputRange__default["default"],{draggableTrack:true,formatLabel:function formatLabel(value){return "".concat(value);},maxValue:fetchProductInfoQueryContext.data.data.productinfo.maximumproductquant,minValue:fetchProductInfoQueryContext.data.data.productinfo.minimumproductquant,value:parseInt(addtocardpayloadobj.quantity),step:1,onChange:function onChange(value){var tempaddtocardpayloadobj=_objectSpread$2C({},addtocardpayloadobj);tempaddtocardpayloadobj.quantity=value;setaddtocardpayloadobj(_objectSpread$2C({},tempaddtocardpayloadobj));}})),/*#__PURE__*/React__default["default"].createElement("div",{"class":"col-4 col-md-12 mt-4 mt-md-5 pt-md-4 col-md-12 mx-auto allcentered"},/*#__PURE__*/React__default["default"].createElement("span",{className:"".concat(productinfo_cssstyles.minus_quantitybtn_icon_container)+' m-1 ',onClick:function onClick(){var _fetchProductInfoQuer6,_fetchProductInfoQuer7,_fetchProductInfoQuer8,_fetchProductInfoQuer9;var quantitystepincrearse=1;var tempaddtocardpayloadobj=_objectSpread$2C({},addtocardpayloadobj);if((fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer6=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer6===void 0||(_fetchProductInfoQuer6=_fetchProductInfoQuer6.data)===null||_fetchProductInfoQuer6===void 0||(_fetchProductInfoQuer6=_fetchProductInfoQuer6.productinfo)===null||_fetchProductInfoQuer6===void 0?void 0:_fetchProductInfoQuer6.quantitystepincrearse)!=undefined&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer7=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer7===void 0||(_fetchProductInfoQuer7=_fetchProductInfoQuer7.data)===null||_fetchProductInfoQuer7===void 0||(_fetchProductInfoQuer7=_fetchProductInfoQuer7.productinfo)===null||_fetchProductInfoQuer7===void 0?void 0:_fetchProductInfoQuer7.quantitystepincrearse)!=null&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer8=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer8===void 0||(_fetchProductInfoQuer8=_fetchProductInfoQuer8.data)===null||_fetchProductInfoQuer8===void 0||(_fetchProductInfoQuer8=_fetchProductInfoQuer8.productinfo)===null||_fetchProductInfoQuer8===void 0?void 0:_fetchProductInfoQuer8.quantitystepincrearse)!=1&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer9=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer9===void 0||(_fetchProductInfoQuer9=_fetchProductInfoQuer9.data)===null||_fetchProductInfoQuer9===void 0||(_fetchProductInfoQuer9=_fetchProductInfoQuer9.productinfo)===null||_fetchProductInfoQuer9===void 0?void 0:_fetchProductInfoQuer9.quantitystepincrearse)!=''){var _fetchProductInfoQuer0;quantitystepincrearse=parseFloat(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer0=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer0===void 0||(_fetchProductInfoQuer0=_fetchProductInfoQuer0.data)===null||_fetchProductInfoQuer0===void 0||(_fetchProductInfoQuer0=_fetchProductInfoQuer0.productinfo)===null||_fetchProductInfoQuer0===void 0?void 0:_fetchProductInfoQuer0.quantitystepincrearse);}var finalquantity=tempaddtocardpayloadobj.quantity-quantitystepincrearse;if(finalquantity>=0){tempaddtocardpayloadobj.quantity=finalquantity;}setaddtocardpayloadobj(_objectSpread$2C({},tempaddtocardpayloadobj));}},/*#__PURE__*/React__default["default"].createElement("i",{className:sectionproperties.quantityiconstyle=='Arrows'?'fa fa-chevron-down':'h-100 allcentered',style:{fontSize:sectionproperties.remove_quantitybtn_textfontsize+'px'}},sectionproperties.quantityiconstyle=='Plus/Minus'&&/*#__PURE__*/React__default["default"].createElement(FiMinus.FiMinus,{size:sectionproperties.remove_quantitybtn_textfontsize}))),/*#__PURE__*/React__default["default"].createElement("span",{className:"".concat(productinfo_cssstyles.quantitybtn_text)},parseInt(addtocardpayloadobj.quantity)),/*#__PURE__*/React__default["default"].createElement("span",{className:"".concat(productinfo_cssstyles.add_quantitybtn_icon_container)+' m-1 ',onClick:function onClick(){var _fetchProductInfoQuer1,_fetchProductInfoQuer10,_fetchProductInfoQuer11,_fetchProductInfoQuer12;var quantitystepincrearse=1;var tempaddtocardpayloadobj=_objectSpread$2C({},addtocardpayloadobj);if((fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer1=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer1===void 0||(_fetchProductInfoQuer1=_fetchProductInfoQuer1.data)===null||_fetchProductInfoQuer1===void 0||(_fetchProductInfoQuer1=_fetchProductInfoQuer1.productinfo)===null||_fetchProductInfoQuer1===void 0?void 0:_fetchProductInfoQuer1.quantitystepincrearse)!=undefined&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer10=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer10===void 0||(_fetchProductInfoQuer10=_fetchProductInfoQuer10.data)===null||_fetchProductInfoQuer10===void 0||(_fetchProductInfoQuer10=_fetchProductInfoQuer10.productinfo)===null||_fetchProductInfoQuer10===void 0?void 0:_fetchProductInfoQuer10.quantitystepincrearse)!=null&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer11=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer11===void 0||(_fetchProductInfoQuer11=_fetchProductInfoQuer11.data)===null||_fetchProductInfoQuer11===void 0||(_fetchProductInfoQuer11=_fetchProductInfoQuer11.productinfo)===null||_fetchProductInfoQuer11===void 0?void 0:_fetchProductInfoQuer11.quantitystepincrearse)!=1&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer12=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer12===void 0||(_fetchProductInfoQuer12=_fetchProductInfoQuer12.data)===null||_fetchProductInfoQuer12===void 0||(_fetchProductInfoQuer12=_fetchProductInfoQuer12.productinfo)===null||_fetchProductInfoQuer12===void 0?void 0:_fetchProductInfoQuer12.quantitystepincrearse)!=''){var _fetchProductInfoQuer13;quantitystepincrearse=parseFloat(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer13=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer13===void 0||(_fetchProductInfoQuer13=_fetchProductInfoQuer13.data)===null||_fetchProductInfoQuer13===void 0||(_fetchProductInfoQuer13=_fetchProductInfoQuer13.productinfo)===null||_fetchProductInfoQuer13===void 0?void 0:_fetchProductInfoQuer13.quantitystepincrearse);}tempaddtocardpayloadobj.quantity=tempaddtocardpayloadobj.quantity+quantitystepincrearse;setaddtocardpayloadobj(_objectSpread$2C({},tempaddtocardpayloadobj));}},/*#__PURE__*/React__default["default"].createElement("i",{className:sectionproperties.quantityiconstyle=='Arrows'?'fa fa-chevron-up':'h-100 allcentered',style:{fontSize:sectionproperties.add_quantitybtn_textfontsize+'px'}},sectionproperties.quantityiconstyle=='Plus/Minus'&&/*#__PURE__*/React__default["default"].createElement(FiPlus.FiPlus,{size:sectionproperties.add_quantitybtn_textfontsize})))),/*#__PURE__*/React__default["default"].createElement("div",{"class":"col-12 p-0 mt-5 pt-1 my-3"},TotalSection())),sectionproperties.quantitybtneditable=='No'&&/*#__PURE__*/React__default["default"].createElement("span",{className:"".concat(productinfo_cssstyles.minus_quantitybtn_icon_container)+' m-1 ',onClick:function onClick(){var _fetchProductInfoQuer14,_fetchProductInfoQuer15,_fetchProductInfoQuer16,_fetchProductInfoQuer17;var quantitystepincrearse=1;var tempaddtocardpayloadobj=_objectSpread$2C({},addtocardpayloadobj);if((fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer14=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer14===void 0||(_fetchProductInfoQuer14=_fetchProductInfoQuer14.data)===null||_fetchProductInfoQuer14===void 0||(_fetchProductInfoQuer14=_fetchProductInfoQuer14.productinfo)===null||_fetchProductInfoQuer14===void 0?void 0:_fetchProductInfoQuer14.quantitystepincrearse)!=undefined&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer15=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer15===void 0||(_fetchProductInfoQuer15=_fetchProductInfoQuer15.data)===null||_fetchProductInfoQuer15===void 0||(_fetchProductInfoQuer15=_fetchProductInfoQuer15.productinfo)===null||_fetchProductInfoQuer15===void 0?void 0:_fetchProductInfoQuer15.quantitystepincrearse)!=null&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer16=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer16===void 0||(_fetchProductInfoQuer16=_fetchProductInfoQuer16.data)===null||_fetchProductInfoQuer16===void 0||(_fetchProductInfoQuer16=_fetchProductInfoQuer16.productinfo)===null||_fetchProductInfoQuer16===void 0?void 0:_fetchProductInfoQuer16.quantitystepincrearse)!=1&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer17=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer17===void 0||(_fetchProductInfoQuer17=_fetchProductInfoQuer17.data)===null||_fetchProductInfoQuer17===void 0||(_fetchProductInfoQuer17=_fetchProductInfoQuer17.productinfo)===null||_fetchProductInfoQuer17===void 0?void 0:_fetchProductInfoQuer17.quantitystepincrearse)!=''){var _fetchProductInfoQuer18;quantitystepincrearse=parseFloat(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer18=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer18===void 0||(_fetchProductInfoQuer18=_fetchProductInfoQuer18.data)===null||_fetchProductInfoQuer18===void 0||(_fetchProductInfoQuer18=_fetchProductInfoQuer18.productinfo)===null||_fetchProductInfoQuer18===void 0?void 0:_fetchProductInfoQuer18.quantitystepincrearse);}var finalquantity=tempaddtocardpayloadobj.quantity-quantitystepincrearse;if(finalquantity>=0){tempaddtocardpayloadobj.quantity=finalquantity;}setaddtocardpayloadobj(_objectSpread$2C({},tempaddtocardpayloadobj));}},/*#__PURE__*/React__default["default"].createElement("i",{className:sectionproperties.quantityiconstyle=='Arrows'?'fa fa-chevron-down':'h-100 allcentered',style:{fontSize:sectionproperties.remove_quantitybtn_textfontsize+'px'}},sectionproperties.quantityiconstyle=='Plus/Minus'&&/*#__PURE__*/React__default["default"].createElement(FiMinus.FiMinus,{size:sectionproperties.remove_quantitybtn_textfontsize}))),sectionproperties.quantitybtneditable=='No'&&/*#__PURE__*/React__default["default"].createElement("span",{className:"".concat(productinfo_cssstyles.quantitybtn_text)},(authdetailsContext===null||authdetailsContext===void 0||(_authdetailsContext$i3=authdetailsContext.instinfo)===null||_authdetailsContext$i3===void 0?void 0:_authdetailsContext$i3.contactinfo.instid)=='66d6de1a1e04a'?parseFloat(addtocardpayloadobj.quantity).toFixed(3):parseInt(addtocardpayloadobj.quantity)),sectionproperties.quantitybtneditable=='No'&&/*#__PURE__*/React__default["default"].createElement("span",{className:"".concat(productinfo_cssstyles.add_quantitybtn_icon_container)+' m-1 ',onClick:function onClick(){var _fetchProductInfoQuer19,_fetchProductInfoQuer20,_fetchProductInfoQuer21,_fetchProductInfoQuer22;var quantitystepincrearse=1;var tempaddtocardpayloadobj=_objectSpread$2C({},addtocardpayloadobj);if((fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer19=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer19===void 0||(_fetchProductInfoQuer19=_fetchProductInfoQuer19.data)===null||_fetchProductInfoQuer19===void 0||(_fetchProductInfoQuer19=_fetchProductInfoQuer19.productinfo)===null||_fetchProductInfoQuer19===void 0?void 0:_fetchProductInfoQuer19.quantitystepincrearse)!=undefined&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer20=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer20===void 0||(_fetchProductInfoQuer20=_fetchProductInfoQuer20.data)===null||_fetchProductInfoQuer20===void 0||(_fetchProductInfoQuer20=_fetchProductInfoQuer20.productinfo)===null||_fetchProductInfoQuer20===void 0?void 0:_fetchProductInfoQuer20.quantitystepincrearse)!=null&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer21=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer21===void 0||(_fetchProductInfoQuer21=_fetchProductInfoQuer21.data)===null||_fetchProductInfoQuer21===void 0||(_fetchProductInfoQuer21=_fetchProductInfoQuer21.productinfo)===null||_fetchProductInfoQuer21===void 0?void 0:_fetchProductInfoQuer21.quantitystepincrearse)!=1&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer22=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer22===void 0||(_fetchProductInfoQuer22=_fetchProductInfoQuer22.data)===null||_fetchProductInfoQuer22===void 0||(_fetchProductInfoQuer22=_fetchProductInfoQuer22.productinfo)===null||_fetchProductInfoQuer22===void 0?void 0:_fetchProductInfoQuer22.quantitystepincrearse)!=''){var _fetchProductInfoQuer23;quantitystepincrearse=parseFloat(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer23=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer23===void 0||(_fetchProductInfoQuer23=_fetchProductInfoQuer23.data)===null||_fetchProductInfoQuer23===void 0||(_fetchProductInfoQuer23=_fetchProductInfoQuer23.productinfo)===null||_fetchProductInfoQuer23===void 0?void 0:_fetchProductInfoQuer23.quantitystepincrearse);}tempaddtocardpayloadobj.quantity=tempaddtocardpayloadobj.quantity+quantitystepincrearse;setaddtocardpayloadobj(_objectSpread$2C({},tempaddtocardpayloadobj));}},/*#__PURE__*/React__default["default"].createElement("i",{className:sectionproperties.quantityiconstyle=='Arrows'?'fa fa-chevron-up':'h-100 allcentered',style:{fontSize:sectionproperties.add_quantitybtn_textfontsize+'px'}},sectionproperties.quantityiconstyle=='Plus/Minus'&&/*#__PURE__*/React__default["default"].createElement(FiPlus.FiPlus,{size:sectionproperties.add_quantitybtn_textfontsize}))),sectionproperties.quantitybtneditable=='Yes'&&/*#__PURE__*/React__default["default"].createElement("input",{type:"number",style:{width:100,height:40,background:'transparent',fontWeight:sectionproperties.quantitybtn_textfontweight,color:sectionproperties.quantitybtn_textcolor,fontSize:sectionproperties.quantitybtn_textfontsize+'px',textAlign:'center'},value:addtocardpayloadobj.quantity,onChange:function onChange(event){if(event.target.value==NaN||event.target.value==undefined||event.target.value==null||event.target.value==''){var tempaddtocardpayloadobj=_objectSpread$2C({},addtocardpayloadobj);tempaddtocardpayloadobj.quantity=1;setaddtocardpayloadobj(_objectSpread$2C({},tempaddtocardpayloadobj));}else {var tempaddtocardpayloadobj=_objectSpread$2C({},addtocardpayloadobj);tempaddtocardpayloadobj.quantity=parseInt(event.target.value);setaddtocardpayloadobj(_objectSpread$2C({},tempaddtocardpayloadobj));}}}));};var ProductFeaturesArray=function ProductFeaturesArray(){var _fetchProductInfoQuer24;return/*#__PURE__*/React__default["default"].createElement("div",{className:"row m-0 w-100"},fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer24=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer24===void 0||(_fetchProductInfoQuer24=_fetchProductInfoQuer24.data)===null||_fetchProductInfoQuer24===void 0||(_fetchProductInfoQuer24=_fetchProductInfoQuer24.productinfo)===null||_fetchProductInfoQuer24===void 0||(_fetchProductInfoQuer24=_fetchProductInfoQuer24.productfeatures)===null||_fetchProductInfoQuer24===void 0?void 0:_fetchProductInfoQuer24.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:sectionproperties.featureimagewidthheight+'px'},"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+'px'}},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+'px'}},langdetect=='en'?fitem===null||fitem===void 0?void 0:fitem.value_en:fitem===null||fitem===void 0?void 0:fitem.value_ar))));}));};return/*#__PURE__*/React__default["default"].createElement("div",{className:sectionproperties.productInformationType=='Portfolio'?' row m-0 w-100 p-0 ':sectionproperties.card_marginLeft!=0?' row m-0 w-100 pl-lg-3 pr-lg-3 pl-md-4 pr-md-4 p-sm-0 ':' row m-0 w-100 p-sm-0 ',style:{paddingLeft:sectionproperties.productInformationType=='Portfolio'?0:srcfromprops=='Productinfomodel'?langdetect=='en'?sectionproperties.card_marginLeft+'px':sectionproperties.card_marginRight+'px':0,paddingRight:sectionproperties.productInformationType=='Portfolio'?0:srcfromprops=='Productinfomodel'?langdetect=='en'?sectionproperties.card_marginRight+'px':sectionproperties.card_marginLeft+'px':0}},/*#__PURE__*/React__default["default"].createElement("div",{"class":' col-lg-12 p-0 '},Object.keys(sectionproperties).length!=0&§ionproperties.productInformationType=='Product/Service Information'&&(authdetailsContext===null||authdetailsContext===void 0||(_authdetailsContext$i4=authdetailsContext.instinfo)===null||_authdetailsContext$i4===void 0?void 0:_authdetailsContext$i4.contactinfo.instid)!='678d1831ef638'&&(authdetailsContext===null||authdetailsContext===void 0||(_authdetailsContext$i5=authdetailsContext.instinfo)===null||_authdetailsContext$i5===void 0?void 0:_authdetailsContext$i5.contactinfo.instid)!='680a0b8a31930'&&(authdetailsContext===null||authdetailsContext===void 0||(_authdetailsContext$i6=authdetailsContext.instinfo)===null||_authdetailsContext$i6===void 0?void 0:_authdetailsContext$i6.contactinfo.instid)!='684fdf3f9e856'&&(authdetailsContext===null||authdetailsContext===void 0||(_authdetailsContext$i7=authdetailsContext.instinfo)===null||_authdetailsContext$i7===void 0?void 0:_authdetailsContext$i7.contactinfo.instid)!='68a6e2f865af8'&&/*#__PURE__*/React__default["default"].createElement("div",{"class":"".concat(productinfo_cssstyles.cardcontainer)+' row ml-0 mr-0 w-100 pl-md-2 pr-md-2 px-1025-1 ',style:{minHeight:props.actions.srcfromprops=='templatedraftrouter'?'auto':sectionproperties.height+'vh',paddingTop:props.actions.srcfromprops=='templatedraftrouter'?30:0}},sectionproperties.gallerystyle=='Style 2'&&/*#__PURE__*/// scrollhorizontalwithscrollbarremove
|
|
3344
3356
|
React__default["default"].createElement("div",{"class":"w-100 scrollhorizontalwithscrollbar "},(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer25=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer25===void 0||(_fetchProductInfoQuer25=_fetchProductInfoQuer25.data)===null||_fetchProductInfoQuer25===void 0||(_fetchProductInfoQuer25=_fetchProductInfoQuer25.productinfo)===null||_fetchProductInfoQuer25===void 0||(_fetchProductInfoQuer25=_fetchProductInfoQuer25.productimages)===null||_fetchProductInfoQuer25===void 0?void 0:_fetchProductInfoQuer25.length)!=0&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer26=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer26===void 0||(_fetchProductInfoQuer26=_fetchProductInfoQuer26.data)===null||_fetchProductInfoQuer26===void 0||(_fetchProductInfoQuer26=_fetchProductInfoQuer26.productinfo)===null||_fetchProductInfoQuer26===void 0?void 0:_fetchProductInfoQuer26.productimages.map(function(item,index){if(item.is_size_guide!=1){return/*#__PURE__*/React__default["default"].createElement("div",{"class":' scrollhorizontalcard mx-2 ',style:{height:sectionproperties.image_height+'px',width:sectionproperties.image_width+'px'}},/*#__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:'/tr:w-'+sectionproperties.imagetr_w+',h-'+sectionproperties.imagetr_h+'/'+item.path,style:{width:'100%',height:'100%',objectFit:'contain'},loading:"lazy"}));}}))),sectionproperties.gallerystyle=='One Centered Image'&&/*#__PURE__*/React__default["default"].createElement("div",{"class":"col-lg-12 allcentered"},(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer27=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer27===void 0||(_fetchProductInfoQuer27=_fetchProductInfoQuer27.data)===null||_fetchProductInfoQuer27===void 0||(_fetchProductInfoQuer27=_fetchProductInfoQuer27.productinfo)===null||_fetchProductInfoQuer27===void 0||(_fetchProductInfoQuer27=_fetchProductInfoQuer27.productimages)===null||_fetchProductInfoQuer27===void 0?void 0:_fetchProductInfoQuer27.length)!=0&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer28=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer28===void 0||(_fetchProductInfoQuer28=_fetchProductInfoQuer28.data)===null||_fetchProductInfoQuer28===void 0||(_fetchProductInfoQuer28=_fetchProductInfoQuer28.productinfo)===null||_fetchProductInfoQuer28===void 0?void 0:_fetchProductInfoQuer28.productimages.map(function(item,index){return/*#__PURE__*/React__default["default"].createElement("div",{"class":' mx-2 ',style:{height:sectionproperties.image_height+'px',width:sectionproperties.image_width+'px'}},/*#__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:'/tr:w-'+sectionproperties.imagetr_w+',h-'+sectionproperties.imagetr_h+'/'+item.path,style:{width:'100%',height:'100%',objectFit:'contain'},loading:"lazy"}));}))),/*#__PURE__*/React__default["default"].createElement("div",{"class":"col-lg-12 p-0"},/*#__PURE__*/React__default["default"].createElement("div",{"class":sectionproperties.infomarionsectionpaddinghorizontal==0?'row mx-0 w-100':'row mx-0 w-100'// class={sectionproperties.infomarionsectionpaddinghorizontal == 0 ? 'row mx-0 w-100' : 'row mx-0 w-100 px-md-3'}
|
|
3345
3357
|
,style:{marginTop:sectionproperties.gallerystyle=='Style 2'?'3rem':0,paddingLeft:sectionproperties.infomarionsectionpaddinghorizontal+'px',paddingRight:sectionproperties.infomarionsectionpaddinghorizontal+'px'}},/*#__PURE__*/React__default["default"].createElement("div",{className:sectionproperties.showfooterphonenumber=='Hide'&§ionproperties.showfooteremail=='Hide'&§ionproperties.showstoreinfo2=='Hide'&§ionproperties.showstoreinfo1=='Hide'?'col-lg-12':sectionproperties.storeinfoposition=='Below Information'?'col-lg-12':langdetect=='en'?'col-lg-9 pl-0 mb-md-3 p-md-0':'col-lg-9 pr-0 mb-md-3 p-md-0',style:{marginBottom:sectionproperties.evencols=='Yes'?'60px':0}},/*#__PURE__*/React__default["default"].createElement("div",{className:'row m-0 w-100'},sectionproperties.gallerystyle=='Style 1'&&/*#__PURE__*/React__default["default"].createElement("div",{className:sectionproperties.evencols=='Yes'?productinfo_cssstyles.evencols+' col-xl-6 col-lg-6 col-md-12 col-sm-12 mb-md-2 pl-1 pr-1 evencols ':'col-xl-5 col-lg-5 col-md-12 col-sm-12 mb-md-5 pb-md-4 pl-1 pr-1'},/*#__PURE__*/React__default["default"].createElement("div",{className:sectionproperties.maximizegalleryfullscreen=='Yes'?' col-lg-12 p-0 maximize ':'col-lg-12 p-0',style:{width:'100%'// height: 'auto',
|
|
@@ -72731,14 +72743,7 @@
|
|
|
72731
72743
|
width: '100%',
|
|
72732
72744
|
height: '100%'
|
|
72733
72745
|
}
|
|
72734
|
-
}, /*#__PURE__*/React__default["default"].createElement(
|
|
72735
|
-
id: "radioPlayer",
|
|
72736
|
-
controls: true,
|
|
72737
|
-
autoplay: true
|
|
72738
|
-
}, /*#__PURE__*/React__default["default"].createElement("source", {
|
|
72739
|
-
src: "http://radio.hvips.com:8056/stream",
|
|
72740
|
-
type: "audio/mpeg"
|
|
72741
|
-
})))), /*#__PURE__*/React__default["default"].createElement(reactBootstrap.Modal.Footer, null)));
|
|
72746
|
+
})), /*#__PURE__*/React__default["default"].createElement(reactBootstrap.Modal.Footer, null)));
|
|
72742
72747
|
};
|
|
72743
72748
|
var easingFunctions = {
|
|
72744
72749
|
noEasing: undefined,
|