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KP,SAAI,CAAU,GAAArF,gDAAduF,GAAA,QAAAE,UAA0C,2BAD/CJ,SAAA9D,MAGKsE,KAAA,GAAU,GAAA7F,gDAAVuF,GAAA,SAA0BC,IAAA7D,eAAgD,eAAA7B,0DAAoBgG,EAAA,CAAAC,aAAA,CAHnG,qBAKK3D,iBAAA,GAAK,CAAc,EAAApC,gDAAAuF,GAAA,SAA4B,eAAAzF,0DAAoBgG,EAAA,CAAAE,OAAA,CALxE,qBAOK5D,iBAAA,GAAK,CAAc,EAAApC,gDAAAuF,GAAA,SAA8B,eAAAzF,0DAAoBgG,EAAA,CAAAG,SAAA,CAP1E,qBAAA7D,iBAAA,KALf,EAkBI,GACkB,CAAE,EAAApC,gDAAOuF,GAAA,EAAAtF,WAAT,CACdiG,eAFJ3E,IAAA,EAAAA,MAAA,aAAAE,CAAAA,gBAAAF,MAAAe,OAAA,eAAAZ,CAAAA,sBAAAD,gBAAAc,eAAA,SAAAb,sBAAAyE,MAAA,CAGIpE,OAAQA,OArBhBG,OAAAA,MADJ,KA0BH,CAUD","sources":["webpack://_N_E/./components/CustomerReviews/CustomerReview.js","webpack://_N_E/"],"sourcesContent":["import React, { useEffect, useRef,useState, Suspense } from 'react';\nimport dynamic from 'next/dynamic';\nimport PropTypes from 'prop-types';\nimport { getReviewAndRatingId} from '../../adapters/helpers/Utils';\nimport { UserQuoteConstants } from '../../adapters/helpers/Constants';\nconst ProductSEO = dynamic(() => import('./ProductSchema'));\nimport Loader from '../../adapters/helpers/Loader';\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 const customerReviewRef = useRef(null);\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 \n useEffect(() => {\n setTimeout(()=>{\n const rnrButtonId = document.getElementById('rnrButton');\n rnrButtonId.addEventListener('click', function(){\n if(customerReviewRef.current){\n customerReviewRef.current.scrollIntoView('behaviour:smooth')\n }\n })\n },1000)\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","\"use strict\";\n(self[\"webpackChunk_N_E\"] = self[\"webpackChunk_N_E\"] || []).push([[9859],{\n\n/***/ 29859:\n/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {\n\n__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _home_runner_work_mw_mt_oralb_com_cs_cz_mw_mt_oralb_com_cs_cz_node_modules_next_dist_compiled_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(49376);\n/* harmony import */ var _home_runner_work_mw_mt_oralb_com_cs_cz_mw_mt_oralb_com_cs_cz_node_modules_next_dist_compiled_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_home_runner_work_mw_mt_oralb_com_cs_cz_mw_mt_oralb_com_cs_cz_node_modules_next_dist_compiled_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _home_runner_work_mw_mt_oralb_com_cs_cz_mw_mt_oralb_com_cs_cz_node_modules_next_dist_compiled_babel_runtime_regenerator_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(87794);\n/* harmony import */ var _home_runner_work_mw_mt_oralb_com_cs_cz_mw_mt_oralb_com_cs_cz_node_modules_next_dist_compiled_babel_runtime_regenerator_index_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_home_runner_work_mw_mt_oralb_com_cs_cz_mw_mt_oralb_com_cs_cz_node_modules_next_dist_compiled_babel_runtime_regenerator_index_js__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(41539);\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var core_js_modules_es_promise_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(88674);\n/* harmony import */ var core_js_modules_es_promise_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_promise_js__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var core_js_modules_es_array_for_each_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(89554);\n/* harmony import */ var core_js_modules_es_array_for_each_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_for_each_js__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(54747);\n/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(74916);\n/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(15306);\n/* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(67294);\n/* harmony import */ var next_dynamic__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(5152);\n/* harmony import */ var next_dynamic__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(next_dynamic__WEBPACK_IMPORTED_MODULE_9__);\n/* harmony import */ var _adapters_helpers_Utils__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(8996);\n/* harmony import */ var _adapters_helpers_Constants__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(24036);\n/* harmony import */ var _adapters_helpers_Loader__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(47322);\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(85893);\n\n\n\n\n\n\n\n\n\n\n\n\nvar ProductSEO = next_dynamic__WEBPACK_IMPORTED_MODULE_9___default()(function () {\n return __webpack_require__.e(/* import() */ 6134).then(__webpack_require__.bind(__webpack_require__, 86134));\n}, {\n loadableGenerated: {\n webpack: function webpack() {\n return [/*require.resolve*/(86134)];\n }\n }\n});\n\n\n\n\n\nfunction handleFindElement() {\n setTimeout(function () {\n var buttonElement = document.getElementById('ratings-summary');\n\n if (buttonElement) {\n buttonElement.setAttribute('role', 'button');\n }\n\n var activeListItems = document.getElementById('bv-dropdown-select-reviews-sortby');\n Array.isArray(activeListItems) && activeListItems.length > 0 && activeListItems.setAttribute('role', 'listbox');\n var menuitem = document.getElementsByClassName('bv-focusable') || '';\n Array.isArray(menuitem) && menuitem.length > 0 && menuitem.forEach(function (menuitem) {\n menuitem.setAttribute('role', 'option');\n });\n var 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 (true) {\n var optionElement = window.document.getElementById('bv-dropdown-select-reviews');\n\n if (optionElement) {\n optionElement.setAttribute('role', 'option');\n }\n }\n }, 5000);\n}\n\nfunction CustomerReview(props) {\n var _props$product, _props$product2, _props$product2$produ;\n\n var ratingRefernce = (0,react__WEBPACK_IMPORTED_MODULE_8__.useRef)();\n\n var _useState = (0,react__WEBPACK_IMPORTED_MODULE_8__.useState)(),\n rating = _useState[0],\n setRating = _useState[1];\n\n var _useState2 = (0,react__WEBPACK_IMPORTED_MODULE_8__.useState)(),\n review = _useState2[0],\n setTotalReview = _useState2[1];\n\n var reviewAndRatingId = (0,_adapters_helpers_Utils__WEBPACK_IMPORTED_MODULE_10__/* .getReviewAndRatingId */ .VP)(props == null ? void 0 : (_props$product = props.product) == null ? void 0 : _props$product.productOverview);\n var customerReviewRef = (0,react__WEBPACK_IMPORTED_MODULE_8__.useRef)(null);\n (0,react__WEBPACK_IMPORTED_MODULE_8__.useEffect)(function () {\n handleRatingandReviews();\n }, []);\n\n var handleRatingandReviews = function handleRatingandReviews() {\n var _process$env$BAZAAR_V;\n\n var requestOptions = {\n method: 'GET'\n };\n var RnRURL = (_process$env$BAZAAR_V = \"https://api.bazaarvoice.com/data/display/0.2alpha/product/summary?PassKey=caGeUhwWZRNPSwLKK0qiYifXOoeiPPS804c1HU9UrV7ww&productid=4210201302919&contentType=reviews,questions&reviewDistribution=primaryRating,recommended&rev=0&contentlocale=cs_CZ\") == null ? void 0 : _process$env$BAZAAR_V.replace('{reviewAndRatingId}', reviewAndRatingId);\n fetch(RnRURL, requestOptions).then( /*#__PURE__*/function () {\n var _ref = _home_runner_work_mw_mt_oralb_com_cs_cz_mw_mt_oralb_com_cs_cz_node_modules_next_dist_compiled_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0___default()( /*#__PURE__*/_home_runner_work_mw_mt_oralb_com_cs_cz_mw_mt_oralb_com_cs_cz_node_modules_next_dist_compiled_babel_runtime_regenerator_index_js__WEBPACK_IMPORTED_MODULE_1___default().mark(function _callee(response) {\n var output;\n return _home_runner_work_mw_mt_oralb_com_cs_cz_mw_mt_oralb_com_cs_cz_node_modules_next_dist_compiled_babel_runtime_regenerator_index_js__WEBPACK_IMPORTED_MODULE_1___default().wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n if (!response.ok) {\n _context.next = 5;\n break;\n }\n\n _context.next = 3;\n return response.json();\n\n case 3:\n output = _context.sent;\n return _context.abrupt(\"return\", output);\n\n case 5:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee);\n }));\n\n return function (_x) {\n return _ref.apply(this, arguments);\n };\n }()).then( /*#__PURE__*/function () {\n var _ref2 = _home_runner_work_mw_mt_oralb_com_cs_cz_mw_mt_oralb_com_cs_cz_node_modules_next_dist_compiled_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0___default()( /*#__PURE__*/_home_runner_work_mw_mt_oralb_com_cs_cz_mw_mt_oralb_com_cs_cz_node_modules_next_dist_compiled_babel_runtime_regenerator_index_js__WEBPACK_IMPORTED_MODULE_1___default().mark(function _callee2(output) {\n var _output$reviewSummary, _output$reviewSummary2, _output$reviewSummary3;\n\n return _home_runner_work_mw_mt_oralb_com_cs_cz_mw_mt_oralb_com_cs_cz_node_modules_next_dist_compiled_babel_runtime_regenerator_index_js__WEBPACK_IMPORTED_MODULE_1___default().wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n setRating(output == null ? void 0 : (_output$reviewSummary = output.reviewSummary) == null ? void 0 : (_output$reviewSummary2 = _output$reviewSummary.primaryRating) == null ? void 0 : _output$reviewSummary2.average);\n setTotalReview(output == null ? void 0 : (_output$reviewSummary3 = output.reviewSummary) == null ? void 0 : _output$reviewSummary3.numReviews);\n\n case 2:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2);\n }));\n\n return function (_x2) {\n return _ref2.apply(this, arguments);\n };\n }())[\"catch\"](function (error) {\n console.error('Bazaar Voice RNR API: ', error);\n });\n };\n\n (0,react__WEBPACK_IMPORTED_MODULE_8__.useEffect)(function () {\n document.addEventListener('DOMContentLoaded', handleFindElement());\n return function () {\n return document.removeEventListener('DOMContentLoaded', handleFindElement());\n };\n }, []);\n (0,react__WEBPACK_IMPORTED_MODULE_8__.useEffect)(function () {\n setTimeout(function () {\n var rnrButtonId = document.getElementById('rnrButton');\n rnrButtonId.addEventListener('click', function () {\n if (customerReviewRef.current) {\n customerReviewRef.current.scrollIntoView('behaviour:smooth');\n }\n });\n }, 1000);\n }, []);\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.Fragment, {\n children: [props.isDisplay && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(\"div\", {\n ref: customerReviewRef,\n className: \"ob-customer-review\",\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(react__WEBPACK_IMPORTED_MODULE_8__.Suspense, {\n fallback: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(_adapters_helpers_Loader__WEBPACK_IMPORTED_MODULE_12__[\"default\"], {}),\n children: reviewAndRatingId && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsxs)(\"div\", {\n className: \"ob-customer-review-container\",\n id: \"BVCustomerReviewContiner\",\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(\"h2\", {\n className: \"ob-customer-review-title\",\n children: props.title\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(\"div\", {\n ref: ratingRefernce,\n \"data-bv-show\": _adapters_helpers_Constants__WEBPACK_IMPORTED_MODULE_11__/* .UserQuoteConstants.ratingSummary */ .qQ.ratingSummary,\n \"data-bv-product-id\": reviewAndRatingId\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(\"div\", {\n \"data-bv-show\": _adapters_helpers_Constants__WEBPACK_IMPORTED_MODULE_11__/* .UserQuoteConstants.reviews */ .qQ.reviews,\n \"data-bv-product-id\": reviewAndRatingId\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(\"div\", {\n \"data-bv-show\": _adapters_helpers_Constants__WEBPACK_IMPORTED_MODULE_11__/* .UserQuoteConstants.questions */ .qQ.questions,\n \"data-bv-product-id\": reviewAndRatingId\n })]\n })\n })\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(ProductSEO, {\n productDetails: props == null ? void 0 : (_props$product2 = props.product) == null ? void 0 : (_props$product2$produ = _props$product2.productOverview) == null ? void 0 : _props$product2$produ.fields,\n rating: rating,\n review: review\n })]\n });\n}\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (CustomerReview);\n\n/***/ })\n\n}]);"],"names":["self","push","__unused_webpack_module","__webpack_exports__","__webpack_require__","r","_home_runner_work_mw_mt_oralb_com_cs_cz_mw_mt_oralb_com_cs_cz_node_modules_next_dist_compiled_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__","_home_runner_work_mw_mt_oralb_com_cs_cz_mw_mt_oralb_com_cs_cz_node_modules_next_dist_compiled_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0___default","n","_home_runner_work_mw_mt_oralb_com_cs_cz_mw_mt_oralb_com_cs_cz_node_modules_next_dist_compiled_babel_runtime_regenerator_index_js__WEBPACK_IMPORTED_MODULE_1__","_home_runner_work_mw_mt_oralb_com_cs_cz_mw_mt_oralb_com_cs_cz_node_modules_next_dist_compiled_babel_runtime_regenerator_index_js__WEBPACK_IMPORTED_MODULE_1___default","react__WEBPACK_IMPORTED_MODULE_8__","next_dynamic__WEBPACK_IMPORTED_MODULE_9__","next_dynamic__WEBPACK_IMPORTED_MODULE_9___default","_adapters_helpers_Utils__WEBPACK_IMPORTED_MODULE_10__","_adapters_helpers_Constants__WEBPACK_IMPORTED_MODULE_11__","_adapters_helpers_Loader__WEBPACK_IMPORTED_MODULE_12__","react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__","ProductSEO","e","then","bind","loadableGenerated","webpack","handleFindElement","setTimeout","buttonElement","document","getElementById","setAttribute","activeListItems","Array","isArray","length","menuitem","getElementsByClassName","forEach","reviewInput","optionElement","window","props","_props$product","_props$product2","_props$product2$produ","ratingRefernce","useRef","_useState","useState","rating","setRating","_useState2","review","setTotalReview","reviewAndRatingId","VP","product","productOverview","customerReviewRef","useEffect","handleRatingandReviews","_ref","_ref2","RnRURL","_process$env$BAZAAR_V","replace","fetch","method","mark","_callee","response","output","wrap","_context","prev","next","ok","json","sent","abrupt","stop","_x","apply","arguments","_callee2","_output$reviewSummary","_output$reviewSummary2","_output$reviewSummary3","_context2","reviewSummary","primaryRating","average","numReviews","_x2","error","console","addEventListener","removeEventListener","rnrButtonId","current","scrollIntoView","jsxs","Fragment","children","isDisplay","jsx","ref","className","Suspense","fallback","id","title","qQ","ratingSummary","reviews","questions","productDetails","fields"],"sourceRoot":""}