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AA,2BAAAS,EAAAU,GAAA,wBAAAhB,EAAAqF,EAAA,CAAAE,OAAA,sBAAA1F,EAAA,2BAAAS,EAAAU,GAAA,wBAAAhB,EAAAqF,EAAA,CAAAG,SAAA,sBAAA3F,EAAA,kCAAAS,EAAAU,GAAA,EAAAT,EAAA,CAAAG,eAAA,MAAAjC,GAAA,MAAAE,CAAAA,EAAAF,EAAAgD,OAAA,SAAA7C,CAAAA,EAAAD,EAAAwE,eAAA,SAAAvE,EAAAiD,MAAA,CAAAlB,OAAAtB,EAAAwB,OAAAT,CAAA,sBAAA3B,CAAA,CAAAC,CAAA,CAAAC,CAAA,EAAAF,EAAAgH,OAAA,CAAA9G,EAAA","sources":["webpack://_N_E/./adapters/cloudinary/ImageFactory.js","webpack://_N_E/./adapters/helpers/PageSpeedHelper.js","webpack://_N_E/./components/CustomerReviews/ProductSchema.js","webpack://_N_E/./components/CustomerReviews/CustomerReview.js","webpack://_N_E/./node_modules/next/head.js","webpack://_N_E/"],"sourcesContent":["export function buildContentfullImageUrl(assetUrl, transformations) {\n if (transformations) {\n return 'https:'+ assetUrl + \"?\" + transformations + \"&fm=webp\" + \"&q=75\"; \n } else {\n return 'https:'+ assetUrl + \"?fm=webp\" + \"&q=75\"; \n }\n}\n\nexport function buildContentfullImageUrlByHeight(assetUrl, height = 'auto', transformations = 'c_limit', format = 'auto') {\n return 'https:'+ assetUrl + \"?h=\"+ height + \"&fm=webp\" + \"&q=75\";\n}\n\nexport function buildContentfullImageUrlByWidth(assetUrl, width = 'auto', transformations = 'c_limit', format = 'auto') {\n return 'https:'+ assetUrl + \"?w=\"+ width + \"&fm=webp\" + \"&q=75\"; \n}\n\nexport function imageContentfullSrc(assetUrl, transformations) {\n return buildContentfullImageUrl(assetUrl, transformations);\n}\n\nexport function imageContentfullDpr(assetUrl, transformations = '') {\n if (!transformations) {\n return buildContentfullImageUrl(assetUrl);\n }\n\n return buildContentfullImageUrl(assetUrl, transformations)\n}\n\nexport default {\n buildContentfullImageUrl,\n buildContentfullImageUrlByHeight,\n buildContentfullImageUrlByWidth,\n imageContentfullDpr,\n imageContentfullSrc,\n};\n","export const optimizeImage = (imageUrl, imageFormatValue, imageQualityValue) => {\n let imageFormat = imageFormatValue ? imageFormatValue : 'webp';\n let imageQuality = imageQualityValue ? imageQualityValue : 85;\n if((imageUrl !== undefined) && (imageUrl !== null) && (imageUrl.includes('images.ctfassets.net')) && (imageUrl.includes('fm=webp') == false) && (imageUrl.includes('.svg') == false)) {\n if(imageUrl?.includes('https')) {\n if(imageUrl?.includes('?') ) {\n imageUrl = imageUrl + `&fm=${imageFormat}` + `&q=${imageQuality}`;\n }\n else {\n imageUrl = imageUrl + `?fm=${imageFormat}` + `&q=${imageQuality}`;\n }\n }\n else {\n imageUrl = 'https:' + imageUrl\n if(imageUrl?.includes('?')) {\n imageUrl = imageUrl + `&fm=${imageFormat}` + `&q=${imageQuality}`;\n }\n else {\n imageUrl = imageUrl + `?fm=${imageFormat}` + `&q=${imageQuality}`;\n }\n }\n }\n return imageUrl;\n}","import React from \"react\";\nimport PropTypes from \"prop-types\";\nimport Helmet from \"next/head\";\nimport { Constants } from \"../../adapters/helpers/Constants\";\nimport ImageFactory from \"../../adapters/cloudinary/ImageFactory\";\nimport { MetaConstants } from \"../../adapters/helpers/Constants\";\nimport { getCanonicalURL } from \"../../adapters/helpers/Utils\";\nimport { optimizeImage } from \"../../adapters/helpers/PageSpeedHelper\";\nimport DOMPurify from 'isomorphic-dompurify';\n\nconst ProductPageSEO = ({ productDetails, rating, review }) => {\n let aggre = \"\";\n if (rating !== null || review !== null) {\n aggre = `\n \"aggregateRating\": {\n \"@type\": \"AggregateRating\",\n \"itemReviewed\":{\n \"@type\":\"IndividualProduct\",\n \"name\":\"${productDetails?.name}\"\n },\n \"bestRating\": \"5\",\n \"worstRating\": \"1\",\n \"ratingValue\": \"${rating}\",\n \"reviewCount\": \"${review}\"\n }`;\n }\n\n return (\n \n \n \n );\n};\n\nProductPageSEO.propTypes = {\n productDetails: PropTypes.object.isRequired,\n};\n\nexport default ProductPageSEO;\n","import React, { useEffect, useRef, useState, Suspense } from 'react';\nimport PropTypes from 'prop-types';\nimport { getReviewAndRatingId} from '../../adapters/helpers/Utils';\nimport { UserQuoteConstants } from '../../adapters/helpers/Constants';\nimport ProductSEO from './ProductSchema';\nimport Loader from '../../adapters/helpers/Loader';\n\n\nfunction handleFindElement(){\n setTimeout(()=>{\n let buttonElement = document.getElementById('ratings-summary');\n if(buttonElement){\n buttonElement.setAttribute('role','button')\n }\n var activeListItems=document.getElementById('bv-dropdown-select-reviews-sortby')\n Array.isArray(activeListItems )&& activeListItems.length>0 && activeListItems.setAttribute('role','listbox');\n \n let menuitem=document.getElementsByClassName('bv-focusable')||'';\n Array.isArray(menuitem) && menuitem.length > 0 && menuitem.forEach((menuitem)=>{\n menuitem.setAttribute('role','option')\n })\n \n let reviewInput=document.getElementById('bv-text-field-search-contentSearch1');\n Array.isArray(reviewInput) && reviewInput.length>0 &&reviewInput.setAttribute('aria-label','Search topics and reviews')\n\n if(typeof window!='undefined') {\n let optionElement=window.document.getElementById('bv-dropdown-select-reviews');\n if(optionElement) {\n optionElement.setAttribute('role','option')\n } \n }\n \n },5000)\n}\n\nfunction CustomerReview(props) {\n\n const ratingRefernce = useRef() \n let [rating, setRating] = useState();\n let [review, setTotalReview] = useState();\n\n const reviewAndRatingId = getReviewAndRatingId(props?.product?.productOverview);\n\n useEffect(() => {\n handleRatingandReviews();\n }, []);\n const handleRatingandReviews=()=>{\n const requestOptions = {\n method: 'GET',\n };\n \n let RnRURL = process.env.BAZAAR_VOICE_RNR?.replace('{reviewAndRatingId}', reviewAndRatingId);\n \n fetch(RnRURL, requestOptions).then(async (response) => {\n if(response.ok) {\n const output= await response.json();\n return output;\n }\n }).then(async (output) => {\n setRating(output?.reviewSummary?.primaryRating?.average)\n setTotalReview(output?.reviewSummary?.numReviews)\n\n })\n .catch((error) => {\n console.error('Bazaar Voice RNR API: ', error);\n });\n }\n\n useEffect(() => {\n document.addEventListener('DOMContentLoaded', handleFindElement());\n return () => document.removeEventListener('DOMContentLoaded', handleFindElement());\n },[]);\n\n return (\n <>\n { props.isDisplay &&\n
\n }>\n {reviewAndRatingId &&\n
\n

{props.title}

\n\n
\n\n
\n\n
\n
\n }\n
\n
\n }\n \n \n )\n}\n\nCustomerReview.propTypes = {\n product: PropTypes.object,\n productName: PropTypes.string,\n title: PropTypes.string,\n isDisplay: PropTypes.bool,\n}\n\n\nexport default CustomerReview\n","module.exports = require('./dist/shared/lib/head')\n","(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7132],{42456:function(t,n,e){\"use strict\";function r(t,n){return n?\"https:\"+t+\"?\"+n+\"&fm=webp&q=75\":\"https:\"+t+\"?fm=webp&q=75\"}n.ZP={buildContentfullImageUrl:r,buildContentfullImageUrlByHeight:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:\"auto\";return\"https:\"+t+\"?h=\"+n+\"&fm=webp&q=75\"},buildContentfullImageUrlByWidth:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:\"auto\";return\"https:\"+t+\"?w=\"+n+\"&fm=webp&q=75\"},imageContentfullDpr:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:\"\";return n?r(t,n):r(t)},imageContentfullSrc:function(t,n){return r(t,n)}}},88726:function(t,n,e){\"use strict\";e.d(n,{H:function(){return r}});var r=function(t,n,e){var r,a,i,u=n||\"webp\",o=e||85;null!=t&&t.includes(\"images.ctfassets.net\")&&0==t.includes(\"fm=webp\")&&0==t.includes(\".svg\")&&(t=(null==(r=t)?void 0:r.includes(\"https\"))?(null==(a=t)?void 0:a.includes(\"?\"))?t+\"&fm=\".concat(u)+\"&q=\".concat(o):t+\"?fm=\".concat(u)+\"&q=\".concat(o):(null==(i=t=\"https:\"+t)?void 0:i.includes(\"?\"))?t+\"&fm=\".concat(u)+\"&q=\".concat(o):t+\"?fm=\".concat(u)+\"&q=\".concat(o));return t}},27132:function(t,n,e){\"use strict\";e.r(n),e.d(n,{default:function(){return y}});var r=e(49376),a=e.n(r),i=e(87794),u=e.n(i),o=e(67294),c=e(8996),l=e(24036),s=e(9008),d=e.n(s),v=e(42456),p=e(88726),f=e(29238),m=e.n(f),g=e(85893),h=function(t){var n,e,r,a,i,u,o,s,f,h,b,w=t.productDetails,y=t.rating,x=t.review,A=\"\";return null===y&&null===x||(A='\\n \"aggregateRating\": {\\n \"@type\": \"AggregateRating\",\\n \"itemReviewed\":{\\n \"@type\":\"IndividualProduct\",\\n \"name\":\"'.concat(null==w?void 0:w.name,'\"\\n },\\n \"bestRating\": \"5\",\\n \"worstRating\": \"1\",\\n \"ratingValue\": \"').concat(y,'\",\\n \"reviewCount\": \"').concat(x,'\"\\n }')),(0,g.jsx)(d(),{children:(0,g.jsx)(\"script\",{type:l.gT.typeLD,dangerouslySetInnerHTML:{__html:m().sanitize('{\\n \"@context\": \"'.concat(l.gT.context,'\",\\n \"@type\": \"').concat(l.gT.product,'\",\\n \"brand\": {\\n \"@type\": \"Brand\",\\n \"name\": \"').concat(l.gT.brand,'\"\\n },\\n \"name\": \"').concat(null==w?void 0:w.name,'\",\\n \"description\": \"').concat((null==w?void 0:w.shortDescription)||\"\",'\",\\n \"image\": \"').concat((0,p.H)(v.ZP.buildContentfullImageUrl(null==w||null==(n=w.mainAsset)||null==(e=n.fields)||null==(r=e.asset)||null==(a=r.fields)||null==(i=a.file)?void 0:i.url))||\"\",'\",\\n \"sku\": \"').concat((null==w?void 0:w.productVariants)&&(null==w||null==(u=w.productVariants[0])||null==(o=u.fields)?void 0:o.sku),'\",\\n \"gtin8\": \"').concat((null==w?void 0:w.productVariants)&&(null==w||null==(s=w.productVariants[0])||null==(f=s.fields)?void 0:f.sku),'\",\\n \"id\":\"').concat((0,c.DN)(null==w||null==(h=w.slug)||null==(b=h.fields)?void 0:b.slug,l.FU.https),'\",\\n ').concat(A,\" \\n }\"))}})})},b=e(47322);function w(){setTimeout((function(){var t=document.getElementById(\"ratings-summary\");t&&t.setAttribute(\"role\",\"button\");var n=document.getElementById(\"bv-dropdown-select-reviews-sortby\");Array.isArray(n)&&n.length>0&&n.setAttribute(\"role\",\"listbox\");var e=document.getElementsByClassName(\"bv-focusable\")||\"\";Array.isArray(e)&&e.length>0&&e.forEach((function(t){t.setAttribute(\"role\",\"option\")}));var r=document.getElementById(\"bv-text-field-search-contentSearch1\");Array.isArray(r)&&r.length>0&&r.setAttribute(\"aria-label\",\"Search topics and reviews\");var a=window.document.getElementById(\"bv-dropdown-select-reviews\");a&&a.setAttribute(\"role\",\"option\")}),5e3)}var y=function(t){var n,e,r,i=(0,o.useRef)(),s=(0,o.useState)(),d=s[0],v=s[1],p=(0,o.useState)(),f=p[0],m=p[1],y=(0,c.VP)(null==t||null==(n=t.product)?void 0:n.productOverview);(0,o.useEffect)((function(){x()}),[]);var x=function(){var t=null==\"https://api.bazaarvoice.com/data/display/0.2alpha/product/summary?PassKey=caV1JYsm3S5tc8r5hkD1xtkwtYDuCNHisqtSRCTK9rfhQ&productid={reviewAndRatingId}&contentType=reviews,questions&reviewDistribution=primaryRating,recommended&rev=0&contentlocale=ar_SA\"?void 0:\"https://api.bazaarvoice.com/data/display/0.2alpha/product/summary?PassKey=caV1JYsm3S5tc8r5hkD1xtkwtYDuCNHisqtSRCTK9rfhQ&productid={reviewAndRatingId}&contentType=reviews,questions&reviewDistribution=primaryRating,recommended&rev=0&contentlocale=ar_SA\".replace(\"{reviewAndRatingId}\",y);fetch(t,{method:\"GET\"}).then(function(){var t=a()(u().mark((function t(n){var e;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!n.ok){t.next=5;break}return t.next=3,n.json();case 3:return e=t.sent,t.abrupt(\"return\",e);case 5:case\"end\":return t.stop()}}),t)})));return function(n){return t.apply(this,arguments)}}()).then(function(){var t=a()(u().mark((function t(n){var e,r,a;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:v(null==n||null==(e=n.reviewSummary)||null==(r=e.primaryRating)?void 0:r.average),m(null==n||null==(a=n.reviewSummary)?void 0:a.numReviews);case 2:case\"end\":return t.stop()}}),t)})));return function(n){return t.apply(this,arguments)}}()).catch((function(t){console.error(\"Bazaar Voice RNR API: \",t)}))};return(0,o.useEffect)((function(){return document.addEventListener(\"DOMContentLoaded\",w()),function(){return document.removeEventListener(\"DOMContentLoaded\",w())}}),[]),(0,g.jsxs)(g.Fragment,{children:[t.isDisplay&&(0,g.jsx)(\"div\",{className:\"ob-customer-review\",children:(0,g.jsx)(o.Suspense,{fallback:(0,g.jsx)(b.default,{}),children:y&&(0,g.jsxs)(\"div\",{className:\"ob-customer-review-container\",id:\"BVCustomerReviewContiner\",children:[(0,g.jsx)(\"h2\",{className:\"ob-customer-review-title\",children:t.title}),(0,g.jsx)(\"div\",{ref:i,\"data-bv-show\":l.qQ.ratingSummary,\"data-bv-product-id\":y,\"data-bv-seo\":\"false\"}),(0,g.jsx)(\"div\",{\"data-bv-show\":l.qQ.reviews,\"data-bv-product-id\":y,\"data-bv-seo\":\"false\"}),(0,g.jsx)(\"div\",{\"data-bv-show\":l.qQ.questions,\"data-bv-product-id\":y,\"data-bv-seo\":\"false\"})]})})}),(0,g.jsx)(h,{productDetails:null==t||null==(e=t.product)||null==(r=e.productOverview)?void 0:r.fields,rating:d,review:f})]})}},9008:function(t,n,e){t.exports=e(16505)}}]);"],"names":["self","webpackChunk_N_E","push","t","n","e","r","ZP","buildContentfullImageUrl","buildContentfullImageUrlByHeight","arguments","length","buildContentfullImageUrlByWidth","imageContentfullDpr","imageContentfullSrc","d","H","a","u","o","includes","concat","default","y","i","c","l","s","v","p","f","m","g","h","b","w","productDetails","rating","x","review","A","name","jsx","children","type","gT","typeLD","dangerouslySetInnerHTML","__html","sanitize","context","product","brand","shortDescription","mainAsset","fields","asset","file","url","productVariants","sku","DN","slug","FU","https","setTimeout","document","getElementById","setAttribute","Array","isArray","getElementsByClassName","forEach","window","useRef","useState","VP","productOverview","useEffect","replace","fetch","method","then","mark","wrap","prev","next","ok","json","sent","abrupt","stop","apply","reviewSummary","primaryRating","average","numReviews","catch","console","error","addEventListener","removeEventListener","jsxs","Fragment","isDisplay","className","Suspense","fallback","id","title","ref","qQ","ratingSummary","reviews","questions","exports"],"sourceRoot":""}