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AA,CAAW,CAAC,EAAE,CALd,aAQAR,EACA,SACAE,EACFrW,OAAO6T,IAAI,CAACtE,EACd,MAAKqH,EAAAA,EAAwB,CAACI,KAAK,CAYjCjB,6DATwBjN,CAAI,CAAC,EAAE,eACTA,CAAI,CAAC,EAAE,CAAlB,QACJ,WAAA3F,MAAA,CAAegT,EAAU,QACzB,eAAAhT,MAAA,CAAmBkT,EAAS,6IAOnCrW,OAAO6T,IAAI,CACT,mCAAqCoD,mBAAmBlB,GAE9D,CACF","sources":["webpack://_N_E/./adapters/helpers/Utils.js"],"sourcesContent":["import moment from 'moment';\nimport {labelConstant, MetaConstants, StartGuideBlockConstants} from '../helpers/Constants'\n\n// Returns if a value is a string\nexport function isString(value) {\n return typeof value === 'string' || value instanceof String;\n}\n\nexport function isObject (value) {\n return typeof value === 'object' || value instanceof Object;\n}\n\nexport function campaignOverlayStatus(isEnableCampaignOverlay) {\n if(typeof window !== 'undefined') {\n return isEnableCampaignOverlay ? window.sessionStorage.setItem('isEnableCampaignOverlay', true) : window.sessionStorage.removeItem('isEnableCampaignOverlay');\n }\n}\nexport function getCookieValue(name) {\n return document && document.cookie && document.cookie.match('(^|;)\\\\s*' + name + '\\\\s*=\\\\s*([^;]+)')?.pop() || '';\n}\nexport function handleFindElement() {\n setTimeout(()=>{\n let buttonElement = document.getElementById('ratings-summary');\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 \n let menuitem=document.getElementsByClassName('bv-focusable') || '';\n 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',labelConstant.reviewLabel)\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 },5000)\n}\n\nexport const addLabel = (ele) => {\n for(let i of ele) {\n let item = i.querySelector('a[href]');\n item && item.setAttribute('aria-label', (item.getAttribute('href')) ? item.getAttribute('href').slice(1) : '');\n item && item.setAttribute('tabindex','-1');\n }\n}\nexport const handleColorNameFormat = (colorName) => {\n let splitName = colorName.toLowerCase().split('-');\n let joinName = '';\n if(Array.isArray(splitName)) {\n let reduceName = '';\n reduceName = splitName.reduce((a,e)=> { a.push(e.charAt(0).toUpperCase()+e.substr(1)); return a; },[]);\n joinName = reduceName.join(' ').toString(); \n }\n return joinName; \n}\n\nexport function addAttributes() { \n let listItems = document.getElementsByClassName('bv-dropdown-target')\n listItems.length > 0 && listItems.forEach(( listItem )=> {\n if( listItem.attributes.role ) {\n listItem.setAttribute('role','listbox');\n listItem.setAttribute('aria-label','Sort By');\n listItem.forEach(( listchild)=> {\n if( listItem.children.className.indexOf('bv-focusable') > -1) {\n listchild.children.setAttribute('role','button')\n }\n })\n }\n })\n\n let reviewListItems = document.getElementsByClassName('bv-dropdown-active');\n reviewListItems.length > 0 && reviewListItems.forEach((reviewListItem)=>{\n if(reviewListItem.attributes.role) {\n reviewListItem.setAttribute('role','listbox')\n }\n reviewListItem.setAttribute('aria-expanded',false);\n reviewListItem.addEventListener('keyup',()=>{\n reviewListItem.setAttribute('aria-expanded',(!reviewListItem.getAttribute('onKeyUp')));\n });\n reviewListItem.addEventListener('keypress',()=>{\n reviewListItem.setAttribute('aria-expanded',(!reviewListItem.getAttribute('onKeyPress')));\n });\n reviewListItem.addEventListener('click',()=>{\n reviewListItem.setAttribute('aria-expanded',(!reviewListItem.getAttribute('onClick')));\n });\n reviewListItem.forEach((childElement)=>{\n if(childElement.className.indexOf('bv-focusable') > -1) {\n childElement.setAttribute('role','option');\n childElement.setAttribute('aria-labelledby',labelConstant.reviewLabel);\n childElement.setAttribute('aria-selected',false);\n childElement.addEventListener('focus',()=>{\n childElement.setAttribute('aria-selected',true);\n });\n childElement.addEventListener('blur',()=>{\n childElement.setAttribute('aria-selected',false);\n });\n }\n })\n })\n\n\n let selectItem = document.getElementsByClassName('bv-dropdown-select');\n selectItem.length > 0 && selectItem.forEach((selectItem)=> {\n if(selectItem.className == 'bv-select-cleanslate bv-dropdown-select') {\n selectItem.addEventListener('change',(value)=> {\n value.forEach((value)=> {\n if(value.target.children.attributes.selected) {\n value.target.children.setAttribute('aria-selected',true);\n }\n })\n })\n }\n })\n \n\n let dropDownControls = document.getElementsByClassName('bv-filter-controls');\n dropDownControls.length > 0 && dropDownControls.forEach((dropDownControls)=>{\n if(dropDownControls.className.indexOf('bv-focusable') > -1 && dropDownControls.attributes.tabindex){\n dropDownControls.setAttribute('tabindex',0)\n }\n }) \n\n Array.isArray(document.getElementsByClassName('zone-header')) && document.getElementsByClassName('zone-header')[0].length > 0 && document.getElementsByClassName('zone-header')[0].removeAttribute('aria-hidden');\n Array.isArray(document.getElementsByClassName('host-box')) && document.getElementsByClassName('host-box')[0].length > 0 && document.getElementsByClassName('host-box')[0].removeAttribute('role')\n \n let html=document.getElementsByTagName('html'),lang;\n\n if( html.length > 0 ) {\n lang = html.lang.value;\n html.setAttribute('lang',lang);\n }\n\n let scaling = document.getElementsByTagName('meta');\n scaling.length >0 && scaling.removeAttribute('user-scalable')\n\n let activeListItems = document.getElementById('bv-dropdown-select-reviews-sortby');\n if(activeListItems) {\n activeListItems.setAttribute('role','listbox');\n }\n \n let dropdownfield = document.getElementsByClassName('bv-dropdown-target');\n dropdownfield.length > 0 && dropdownfield.setAttribute('role','listbox')\n\n let menuitem = document.getElementsByClassName('bv-focusable');\n menuitem.length > 0 && menuitem.forEach((menuitem)=> {\n if(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',reviewInput.placeholder)\n\n }\nexport function calculateHeaderHeight() {\n // Not really clean, but we have to do this this way to change\n // the layout's padding due to the sticky navigation\n\n const header = document.querySelector('.zone-header');\n const height = header ? header.clientHeight : 0;\n const layout = document.querySelector('.layout:not(.ob-spotlight-layout):not(.scrolling-header)');\n if (!layout) {\n return;\n }\n layout.style.paddingTop = `${height}px`;\n}\n\nexport function getColorStyle(color) {\n if (color) {\n const colorCode = color?.fields?.colorCode;\n const colorCodeTop = color?.fields?.colorCodeTop || colorCode;\n const colorCodeBottom = color?.fields?.colorCodeBottom || colorCode;\n const gradientStyle = color?.fields?.gradientStyle;\n\n switch (gradientStyle) {\n case 'linear':\n return {\n backgroundColor: colorCode,\n backgroundImage: `linear-gradient(to bottom, ${colorCodeTop} 0%, ${colorCodeBottom} 100%)`,\n };\n case 'highlightTop':\n return {\n backgroundColor: colorCode,\n backgroundImage: `radial-gradient(circle at center top, ${colorCodeTop} 0%, ${colorCodeBottom} 100%)`,\n };\n case 'highlightBottom':\n return {\n backgroundColor: colorCode,\n backgroundImage: `radial-gradient(circle at center bottom, ${colorCodeBottom} 0%, ${colorCodeTop} 100%)`,\n };\n default:\n if (colorCode) {\n return {\n backgroundColor: colorCode\n };\n } else {\n return {};\n }\n }\n } else {\n return {};\n }\n}\n\nexport function getRGBFromHexColor(color) {\n let red = 0;\n let green = 0;\n let blue = 0;\n let result = /^#?([a-f\\d]{2})([a-f\\d]{2})([a-f\\d]{2})$/i.exec(color);\n if (result) {\n red = parseInt(result[1], 16);\n green = parseInt(result[2], 16);\n blue = parseInt(result[3], 16);\n }\n\n return {red, green, blue};\n}\n\n// Cross browser compatible version of window.scrollTo(options)\nexport function smoothVerticalScroll(element, where, extraElemHeight = 0, time = 300) {\n // The extraElementHeight is the height of any element that isn't accounted by element.getBoundingClientRect().top\n const header = document.querySelector('.zone-header:not(.visible-false)');\n const headerHeight = header?.offsetHeight ? header.offsetHeight : 0;\n const elementTop = element.getBoundingClientRect().top;\n const elementAmount = (elementTop - headerHeight - extraElemHeight) / 100;\n let currentTime = 0;\n while (currentTime <= time) {\n window.setTimeout(smoothVerticalScrollBehaviour, currentTime, elementAmount, where);\n currentTime += time / 100;\n }\n}\n\nfunction smoothVerticalScrollBehaviour(elementAmount, where) {\n if (where === 'center' || where === '') {\n window.scrollBy(0, elementAmount / 2);\n }\n if (where === 'top') {\n window.scrollBy(0, elementAmount);\n }\n}\n\nexport function focusOnElement(element) {\n if (!element) {\n return;\n }\n\n element.setAttribute('tabindex', -1);\n setTimeout(() => {\n element.focus();\n element.addEventListener('blur', event => {\n event.currentTarget.removeAttribute('tabindex');\n });\n }, 500)\n}\n\nexport function toggleScroll(condition, lastScroll) {\n if (condition) {\n document.body.classList.add('noScroll');\n document.body.style.top = `-${lastScroll}px`;\n document.body.style.height = `-${lastScroll}px`;\n } else {\n document.body.classList.remove('noScroll');\n document.body.style.top = null;\n document.body.style.height = null;\n window.scrollTo(0, lastScroll);\n }\n}\n\nexport function stripHtml(html) {\n let stripHtmlResult;\n\n if (html) {\n stripHtmlResult = html.replace(/<[^>]+>/g, '');\n stripHtmlResult = stripHtmlResult.replace(/ /g, ' ');\n } else {\n stripHtmlResult = '';\n }\n\n return stripHtmlResult;\n}\n\nexport function isIE() {\n if (typeof window !== 'undefined') {\n let ua = window.navigator.userAgent;\n /* MSIE used to detect old browsers and Trident used to newer ones*/\n let is_ie = ua.indexOf('MSIE ') > -1 || ua.indexOf('Trident/') > -1;\n\n return is_ie;\n }\n return false;\n}\n\nexport function isIEorEdge() {\n // Created a separate function in case we want to target Edge as well as old IE\n // isIE function will be used to target non-edge IE\n\n if (typeof window !== 'undefined') {\n let ua = window.navigator.userAgent;\n let is_ie = ua.indexOf('MSIE ') > -1 || ua.indexOf('Trident/') > -1 || ua.indexOf('Edge/') > -1;\n\n return is_ie;\n }\n return false;\n}\n\nexport function stringToCamelCase(string = '') {\n const splitStr = string.toLowerCase().split(' ');\n for (let i = 0; i < splitStr.length; i++) {\n if (splitStr.indexOf(splitStr[i]) !== 0) {\n splitStr[i] = splitStr[i].charAt(0).toUpperCase() + splitStr[i].substring(1);\n }\n }\n\n return splitStr.join('').replace(/[^a-zA-Z]+/g, '');\n}\n\nexport function stringToCapitalize(string = '') {\n const splitStr = string.toLowerCase().split(' ');\n for (let i = 0; i < splitStr.length; i++) {\n splitStr[i] = splitStr[i].charAt(0).toUpperCase() + splitStr[i].substring(1);\n }\n\n return splitStr.join(' ');\n}\n\nexport function stripSpecialChars(string = '') {\n return string.replace(/[^a-zA-Z ]+/g, '');\n}\n\nexport function isObjectEmpty(object) {\n for (let key in object) {\n if (Object.prototype.hasOwnProperty.call(object, key)) {\n return false;\n }\n }\n return true;\n}\n\nexport const setMonths = (label = '') => {\n let months = [];\n for (let i = 0; i <= 12; i++) {\n if (i === 0) {\n months.push({id: label, value: label});\n } else if (i < 10 && i > 0) {\n months.push({id: i, value: '0' + i.toString()});\n } else {\n months.push({id: i, value: i.toString()});\n }\n }\n return months;\n};\n\nexport const setYears = (label = '', startYear = 1900) => {\n let years = [{id: label, value: label}];\n const currentYear = new Date().getFullYear();\n for (let i = currentYear; i >= startYear; i--) {\n years.push({id: i.toString(), value: i.toString()})\n }\n return years;\n};\n\nexport function objectWithLabel(object) {\n // return new object with value fields.text\n // that usually come from Label contentful component\n // Also remove the object from the list if .fields.text is undefined/null\n // return {key : fields.text}\n let newObject = {};\n for (let property in object) {\n if (object[property]?.fields?.text) {\n newObject[property] = object[property]?.fields?.text;\n }\n }\n return newObject\n}\n\nexport function addDays(date, days) {\n const copy = new Date(Number(date))\n copy.setDate(date.getDate() + days)\n return copy\n}\n\nexport function substractDays(date, days) {\n const copy = new Date(Number(date))\n copy.setDate(date.getDate() - days)\n return copy\n}\n\nexport function formatDateToStringValue(strDate, srcFormat, dstFormat) {\n const dateMomentObject = moment(strDate, srcFormat);\n return dateMomentObject.format(dstFormat);\n}\n\nexport function formatDate(date, joinChar = '-', format = 'yyyy-mm-dd') { \n\n var dateFormat = date;\n let strDate = date.toString();\n let splitDate = strDate && strDate.split('/');\n if (isIE() || splitDate.shift().length === 2) {\n dateFormat = strDate.split('/').reverse().join('/');\n }\n\n var d = new Date(dateFormat),\n month = '' + (d.getMonth() + 1),\n day = '' + d.getDate(),\n year = d.getFullYear();\n\n if (month.length < 2) {\n month = '0' + month;\n }\n\n if (day.length < 2) {\n day = '0' + day;\n }\n if (format === 'yyyy-mm-dd') {\n return [year, month, day].join(joinChar);\n } else if (format === 'dd-mm-yyyy') {\n return [day, month, year].join(joinChar);\n }\n}\n\nexport function getDateInNinetyDays(date = new Date()) {\n return addDays(date, 90);\n}\n\nexport function splitIntoTwoArrays(array = []) {\n if (array.length < 2) {\n console.error('Please provide an array with at least 2 elements');\n return;\n }\n const halfOfArray = Math.floor(array.length / 2);\n\n const firstHalf = array.slice(0, halfOfArray);\n const secondHalf = array.slice(halfOfArray);\n\n return [firstHalf, secondHalf];\n}\n\nexport function getReviewAndRatingId(productOverview) {\n let reviewAndRatingId;\n if (productOverview) {\n let productVariants = productOverview?.fields?.productVariants;\n if (productVariants) {\n for (let i = 0; i < productVariants.length; i++) {\n let productVariant = productVariants[i];\n if (productVariant.fields.isBazaarVoiceIdentifier) {\n reviewAndRatingId = productVariant?.fields?.bazaarVoiceId;\n // if reviewAndRatingId is null use sku/ean\n if (reviewAndRatingId === undefined) {\n let sku = productVariant.fields.sku;\n if (sku) {\n reviewAndRatingId = sku;\n } else if (sku === undefined) {\n let ean = productVariant.fields.ean;\n reviewAndRatingId = ean;\n }\n if (reviewAndRatingId === undefined) {\n console.error('No reviewAndRatingId specified for product variant Bazaar Voice identifier:',\n productVariant?.fields?.name);\n }\n }\n }\n }\n }\n }\n return reviewAndRatingId;\n}\n\n\n\nexport function loadScript(source, callback) {\n let script = document.createElement('script');\n script.src = source;\n script.onload = () => callback(null, script);\n script.onerror = () => callback(new Error(`Script load error for ${source}`));\n const head = document.getElementsByTagName('head');\n if (head) {\n head[0].appendChild(script);\n }\n}\n\nexport async function asyncForEach(array, container, callback) {\n for (let index = 0; index < array.length; index++) {\n await callback(array[index], container);\n }\n}\n\nexport function createHtmlFriendlyId(text) {\n // This strips all the dashes and replaces spaces to dashes.\n // This makes it easier to read and provides nice and clean ids\n return text.toLowerCase()\n .replace(/ - /g, '-')\n .replace(/ /g, '-');\n}\n\n\nexport function checkPattern(input) {\n return input.value.search(new RegExp(input.getAttribute('pattern'))) < 0;\n}\n\nexport function enableDisableFocusOnElements(container, enable) {\n if (container) {\n const allLinks = container.querySelectorAll('* > a');\n if (allLinks && allLinks.length > 0) {\n for (let item of allLinks) {\n enableTabIndex(item, enable);\n }\n }\n const allButtons = container.querySelectorAll('* > button');\n if (allButtons && allButtons.length > 0) {\n for (let item of allButtons) {\n enableTabIndex(item, enable);\n }\n }\n const allInputs = container.querySelectorAll('* > input');\n if (allInputs && allInputs.length > 0) {\n for (let item of allInputs) {\n enableTabIndex(item, enable);\n }\n }\n }\n}\n\nexport function handleClickToScrollToRnR(){\n const rnrElement = document.getElementById( 'BVCustomerReviewContiner' );\n if ( rnrElement ) {\n rnrElement.scrollIntoView({ behavior: 'smooth' });\n }\n}\n\nexport function getCanonicalURL(path, scheme = MetaConstants.https) {\n const url = process.env.BASE_URL + path;\n return url.includes(scheme) ? url : scheme + url;\n}\n\nexport function addBVScript() {\n // Render bazaarVoice script after the last render of the layout in the dom\n const bazaarVoiceURL = process.env.BAZAAR_VOICE_URL;\n\n if(bazaarVoiceURL) {\n\n const s = document.createElement('script');\n s.async = true;\n s.type = 'text/javascript';\n s.src = process.env.BAZAAR_VOICE_URL.replace(new RegExp('\"', 'g'), '');\n\n var firstScript = document.getElementsByTagName('script')[0]\n if (firstScript) {\n firstScript.parentNode.insertBefore(s, firstScript);\n }\n\n } else {\n return console.log('Please set a bazaarVoiceURL');\n }\n}\n\nexport function addBVCollectionPageCallback() {\n window.setTimeout(function() {\n const inlineRating = document.querySelectorAll(\"[data-bv-show='inline_rating']\");\n if (inlineRating) {\n for (let i = 0; i < inlineRating.length; i++) {\n const inlineRatingElement = inlineRating[i]\n inlineRatingElement.classList.remove('no-reviews');\n if (inlineRatingElement.innerText.includes('(0)')) {\n inlineRatingElement.classList.add('no-reviews');\n }\n }\n }\n }, 2000);\n}\n\nfunction addBvReviewDetailContainerClass() {\n setTimeout(() => {\n const reviewDetail = document.getElementsByClassName('bv_modal_component_container');\n if (reviewDetail) {\n for (let i = 0; i < reviewDetail.length; i++) {\n const reviewDetailElement = reviewDetail[i]\n if(!reviewDetailElement?.classList?.contains('pre-purchase-review-detail')) {\n reviewDetailElement?.classList?.add('pre-purchase-review-detail')\n }\n }\n } \n }, 300);\n}\n\nexport function updateRatingTextCallback(outOfRatingValue) {\n window.setTimeout(function() {\n const inlineRating = document.getElementsByClassName('bv_text');\n if (inlineRating) {\n for (let i = 0; i < inlineRating.length; i++) {\n const inlineRatingElement = inlineRating[i]\n const ratingText = (inlineRatingElement.innerText || '').trim();\n if(ratingText.indexOf('(') > -1) {\n inlineRatingElement.innerText = '';\n } else if(ratingText && ratingText.indexOf(outOfRatingValue) < 0){\n inlineRatingElement.innerText = `${inlineRatingElement.innerText} ${outOfRatingValue}`;\n }\n }\n }\n const reviewButton = document.getElementsByClassName('bv_main_container_row_flex');\n if (reviewButton) {\n for (let i = 0; i < reviewButton.length; i++) {\n const reviewButtonElement = reviewButton[i];\n reviewButtonElement.addEventListener('mouseover', addBvReviewDetailContainerClass, false);\n reviewButtonElement.addEventListener('click', addBvReviewDetailContainerClass, false);\n }\n }\n }, 5000);\n}\n\nexport function addBVProductPageCallback(productName) {\n window.bvCallback = function (BV) {\n function addAnalyticClassToBazaarVoiceElement(elementClass, analyticHookClass, dataActionDetail, parentElementClass, attributeToReadForValue, removeFromValue) {\n if (typeof (document) != 'undefined') {\n let rootElement = document;\n if (parentElementClass) {\n let parent = document.getElementsByClassName(parentElementClass);\n if (parent && parent.length > 0 && typeof (parent[0]) != 'undefined') {\n rootElement = parent[0];\n }\n }\n const elements = rootElement.getElementsByClassName(elementClass);\n if (elements && elements.length > 0) {\n //Add some GA class to track bv event\n for (let i = 0; i < elements.length; i++) {\n let valueActionDetail = dataActionDetail;\n if (typeof (elements[i]) != 'undefined' && elements[i] != null) {\n elements[i].classList.add(analyticHookClass);\n\n if (attributeToReadForValue) {\n let value = '';\n if (elements[i].getAttribute(attributeToReadForValue)) {\n value = elements[i].getAttribute(attributeToReadForValue);\n if (removeFromValue) {\n value = value.replace(removeFromValue, '');\n }\n }\n valueActionDetail = valueActionDetail.replace('%value%', value);\n }\n\n elements[i].setAttribute('data-action-detail',\n valueActionDetail);\n }\n }\n }\n }\n }\n\n if (window?.bvDCC) {\n for (var i = 0, len = window.bvDCC.catalogData.catalogProducts.length; i < len; ++i) {\n BV.pixel.trackEvent('CatalogUpdate', {\n type: 'Product',\n locale: window.bvDCC.catalogData.locale,\n catalogProducts: [window.bvDCC.catalogData.catalogProducts[i]]\n });\n }\n }\n\n BV.reviews.ready().then(() => {\n window.setTimeout(function () {\n addAnalyticClassToBazaarVoiceElement('bv_button_buttonFull',\n 'event_product_review',\n productName,\n 'bv_main_container_CTA_row');\n\n addAnalyticClassToBazaarVoiceElement('bv-focusable',\n 'event_button_click',\n 'Open Dropdown Menu',\n 'bv-control-bar-sort');\n\n addAnalyticClassToBazaarVoiceElement('bv-dropdown-target',\n 'event_button_click',\n 'Open Dropdown Menu',\n 'bv-control-bar-sort');\n\n addAnalyticClassToBazaarVoiceElement('bv-expand-filter-button',\n 'event_button_click',\n 'Open Dropdown Menu');\n\n addAnalyticClassToBazaarVoiceElement('bv-content-btn-feedback-yes',\n 'event_button_click',\n 'Helpful Yes');\n\n addAnalyticClassToBazaarVoiceElement('bv-content-btn-feedback-no',\n 'event_button_click',\n 'Helpful No');\n\n addAnalyticClassToBazaarVoiceElement('bv_avgRating',\n 'event_internal_link',\n 'See All Reviews Panel');\n\n addAnalyticClassToBazaarVoiceElement('bv_numReviews_text',\n 'event_internal_link',\n 'See All Reviews Panel');\n\n addAnalyticClassToBazaarVoiceElement('bv-content-btn-pages-load-more',\n 'event_button_click',\n 'See More Reviews');\n\n addAnalyticClassToBazaarVoiceElement('bv-dropdown-item',\n 'event_button_click',\n 'Filter %value%',\n 'bv-dropdown-active',\n 'data-bv-dropdown-value');\n\n addAnalyticClassToBazaarVoiceElement('bv-rating-link',\n 'event_button_click',\n 'Star Rating %value%',\n 'bv-submission-star-rating-control',\n 'id',\n 'bv-radio-rating-');\n\n addAnalyticClassToBazaarVoiceElement('bv-text',\n 'event_button_click',\n 'Form Field %value%',\n 'bv-fieldset-usernickname',\n 'name');\n\n addAnalyticClassToBazaarVoiceElement('bv-select',\n 'event_button_click',\n 'Form Field %value%',\n 'bv-fieldset-contextdatavalue_AgeMonth',\n 'name');\n\n addAnalyticClassToBazaarVoiceElement('bv-select',\n 'event_button_click',\n 'Form Field %value%',\n 'bv-fieldset-contextdatavalue_AgeYear',\n 'name');\n\n addAnalyticClassToBazaarVoiceElement('bv-text',\n 'event_button_click',\n 'Form Field %value%',\n 'bv-email-field',\n 'name');\n\n addAnalyticClassToBazaarVoiceElement('bv-text',\n 'event_button_click',\n 'Form Field %value%',\n 'bv-fieldset-userlocation',\n 'name');\n\n addAnalyticClassToBazaarVoiceElement('bv-text',\n 'event_button_click',\n 'Form Field %value%',\n 'bv-fieldset-title',\n 'name');\n\n addAnalyticClassToBazaarVoiceElement('bv-text',\n 'event_button_click',\n 'Form Field %value%',\n 'bv-fieldset-reviewtext',\n 'name');\n\n addAnalyticClassToBazaarVoiceElement('bv-form-actions-submit',\n 'event_button_click',\n 'Submit');\n\n addAnalyticClassToBazaarVoiceElement('bv-content-btn-pages-last',\n 'event_view_more_review',\n productName)\n \n addAnalyticClassToBazaarVoiceElement('bv_button_buttonMinimalist',\n 'event_product_review',\n productName)\n\n const Reviewsummary = document.getElementById('ratings-summary')\n if(Reviewsummary){\n Reviewsummary.classList.add('event_product_review_view');\n Reviewsummary.setAttribute('data-action-detail',productName);\n }\n \n // Add a class on user block if 0 Reviews from BV.\n const reviewText = document.getElementsByClassName('bv_numReviews_component_container');\n \n if (reviewText.length > 0 && reviewText[0] !== null) {\n if (reviewText[0].innerText.includes('(0)')) {\n\n const userBlock = document.getElementsByClassName('ob-customer-review');\n if (userBlock[0] !== null && typeof userBlock[0] != 'undefined') {\n userBlock[0].classList.add('no-reviews');\n }\n }\n }\n\n\n const inlineRating = document.querySelector(\"[data-bv-show='inline_rating']\");\n if (inlineRating !== null && inlineRating.innerText.includes('(0)')) {\n // Find inline-rating (0)\n inlineRating.classList.add('no-reviews');\n }\n\n }, 2000);\n });\n }\n}\n\n\nfunction enableTabIndex(item, enable) {\n if (!enable) {\n if (item.getAttribute('tabindex') && item.getAttribute('tabindex') >= 0) {\n item.setAttribute('data-previous-tabIndex', item.getAttribute('tabindex'));\n }\n item.setAttribute('tabindex', -1);\n } else {\n let newTabIndex = null;\n if (item.getAttribute('data-previous-tabIndex')) {\n newTabIndex = item.getAttribute('data-previous-tabIndex');\n item.setAttribute('tabindex', newTabIndex);\n } else {\n item.removeAttribute('tabindex');\n }\n }\n}\nexport function removeHtmlTag(query) {\n console.log('inside removeHTMLTag log: ', query);\n query = query.replace(/[&\\/\\\\#+$~%.'\":*<>[\\]{}]/g, '');\n return query;\n}\n\nexport function isIOS() {\n return [\n 'iPad Simulator',\n 'iPhone Simulator',\n 'iPod Simulator',\n 'iPad',\n 'iPhone',\n 'iPod'\n ].includes(window?.navigator?.platform)\n // iPad on iOS 13 detection\n || (window?.navigator?.userAgent?.includes('Mac') && 'ontouchend' in document);\n}\n\nexport function validatePattern(pattern, inputText, ) {\n return inputText.search(new RegExp(pattern)) >= 0;\n}\n\nexport function redirectTo(url) {\n window.location.href = url;\n}\n\nexport function openTo(url, target) {\n window.open(url, target);\n}\n\nexport function focusElement(elementId, className) {\n document.getElementById(elementId)?.classList?.toggle(className);\n}\n\nexport function addDropDownListerner(dropBtnClass, dropdownContantClass, dropdownClass) {\n window.onclick = function (event) {\n if (!event.target.matches(dropBtnClass)) {\n const dropdowns = document.getElementsByClassName(dropBtnClass);\n let elementIndex;\n for (elementIndex = 0; elementIndex < dropdowns.length; elementIndex++) {\n let openDropdown = dropdowns[elementIndex];\n if (openDropdown.classList.contains(dropdownContantClass)) {\n openDropdown.classList.remove(dropdownClass);\n }\n }\n }\n }\n}\n\nexport function handleFindInlineRatingElement(timeOut = 10000, outOfRatingValue) {\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 const inlineRating = document.getElementsByClassName('bv_avgRating_component_container');\n if (inlineRating) {\n for (let i = 0; i < inlineRating.length; i++) {\n const inlineRatingElement = inlineRating[i]\n if (outOfRatingValue && (inlineRatingElement.innerText || '').indexOf(outOfRatingValue) < 0) {\n inlineRatingElement.innerText = `${inlineRatingElement.innerText} ${outOfRatingValue}`\n }\n }\n }\n\n }, timeOut);\n}\n\n export const customJsonstringify = str => JSON.stringify(str).replace(/([&\"'<>])/g, ( char) => {\n switch (char) {\n case '&':\n return '\\u0026'\n case '<':\n return '\\u003c'\n case '>': \n return '\\u003e'\n case '\"':\n return '\\u0022'\n case \"'\":\n return '\\u0027'\n default:\n return char\n }\n })\n \nexport function handleGAEvents (gaEventCategory, gaEventAction, gaEventLabel) {\n window && window.dataLayer && window.dataLayer.push({\n event: 'customEvent',\n GAeventCategory: `${gaEventCategory}`,\n GAeventAction: `${gaEventAction}`,\n GAeventLabel: `${gaEventLabel}`\n });\n};\n\nexport function onClickBuyNow(domainURL) {\n if (typeof window.dataLayer !== 'undefined') {\n window.dataLayer.push({\n event: 'customEvent',\n GAeventCategory: 'event_informational_action',\n GAeventAction: 'event_outbound_link',\n GAeventLabel: `${domainURL}`\n });\n }\n};\n\n\nexport const addRemainder = (calenderOption, selectedTypeOption) => {\n let dt = new Date();\n let no_of_months = calenderOption?.noOfMonths;\n let eventTitle = calenderOption?.title;\n let eventNote = calenderOption?.note;\n dt.setMonth(dt.getMonth() + no_of_months);\n let endDate = dt\n .toISOString()\n .replaceAll(\":\", \"\")\n .replaceAll(\"-\", \"\")\n .replaceAll(\".\", \"\");\n let date = dt\n .toISOString()\n .replaceAll(\":\", \"\")\n .replaceAll(\"-\", \"\")\n .split(\".\");\n let outlookDate = dt.toISOString().split(\".\");\n let url;\n let icsData;\n switch (selectedTypeOption.type) {\n case StartGuideBlockConstants.Google:\n url =\n selectedTypeOption?.url +\n eventTitle +\n \"&dates=\" +\n endDate +\n \"/\" +\n endDate +\n \"&details=\" +\n eventNote;\n window.open(url);\n case StartGuideBlockConstants.Yahoo:\n url =\n selectedTypeOption?.url +\n eventTitle +\n \"&st=\" +\n endDate +\n \"&et=\" +\n endDate +\n \"&desc=\" +\n eventNote;\n window.open(url);\n case StartGuideBlockConstants.Outlook:\n url =\n selectedTypeOption?.url +\n \"&startdt=\" +\n outlookDate[0] +\n \"Z\" +\n \"&enddt=\" +\n outlookDate[0] +\n \"Z\" +\n \"&subject=\" +\n eventTitle +\n \"&body=\" +\n eventNote;\n window.open(url);\n case StartGuideBlockConstants.Other:\n icsData = \"BEGIN:VCALENDAR\\nVERSION:2.0\\r\\n\";\n icsData += \"BEGIN:VEVENT\\r\\n\";\n icsData += \"DTSTART:\" + date[0] + \"Z\" + \"\\r\\n\";\n icsData += \"DTEND:\" + date[0] + \"Z\" + \"\\r\\n\";\n icsData += `SUMMARY:${eventTitle}\\r\\n`;\n icsData += `DESCRIPTION:${eventNote}\\r\\n`;\n icsData += \"LOCATION:\\r\\n\";\n icsData += \"BEGIN:VALARM\\r\\n\";\n icsData += \"TRIGGER:-PT15M\\r\\n\";\n icsData += \"ACTION:DISPLAY\\r\\n\";\n icsData += \"DESCRIPTION:REMINDER\\r\\n\";\n icsData += \"END:VALARM\\r\\nEND:VEVENT\\r\\nEND:VCALENDAR\";\n window.open(\n \"data:text/calendar;charset=utf8,\" + encodeURIComponent(icsData)\n );\n }\n };\n"],"names":["isString","value","String","isObject","Object","campaignOverlayStatus","isEnableCampaignOverlay","window","sessionStorage","setItem","removeItem","getCookieValue","name","_document$cookie$matc","document","cookie","match","pop","handleFindElement","setTimeout","buttonElement","getElementById","setAttribute","activeListItems","Array","isArray","length","menuitem","getElementsByClassName","forEach","reviewInput","labelConstant","reviewLabel","optionElement","handleColorNameFormat","colorName","splitName","toLowerCase","split","joinName","reduceName","reduce","a","e","push","charAt","toUpperCase","substr","join","toString","calculateHeaderHeight","header","querySelector","height","clientHeight","layout","style","paddingTop","concat","getColorStyle","color","_color$fields","_color$fields2","_color$fields3","_color$fields4","colorCode","fields","colorCodeTop","colorCodeBottom","gradientStyle","backgroundColor","backgroundImage","getRGBFromHexColor","red","green","blue","result","exec","parseInt","smoothVerticalScroll","element","where","extraElemHeight","arguments","undefined","time","headerHeight","offsetHeight","elementAmount","elementTop","getBoundingClientRect","top","currentTime","smoothVerticalScrollBehaviour","scrollBy","focusOnElement","focus","addEventListener","event","currentTarget","removeAttribute","toggleScroll","condition","lastScroll","body","classList","add","remove","scrollTo","stripHtml","html","stripHtmlResult","replace","isIE","ua","navigator","userAgent","indexOf","isIEorEdge","stringToCapitalize","string","splitStr","i","substring","isObjectEmpty","object","key","prototype","hasOwnProperty","call","setMonths","label","months","id","setYears","startYear","years","currentYear","Date","getFullYear","objectWithLabel","_object$property","_object$property$fiel","_object$property2","_object$property2$fie","newObject","property","text","substractDays","date","days","copy","Number","setDate","getDate","formatDateToStringValue","strDate","srcFormat","dstFormat","dateMomentObject","format","formatDate","joinChar","dateFormat","splitDate","shift","reverse","d","month","getMonth","day","year","getDateInNinetyDays","splitIntoTwoArrays","array","console","error","halfOfArray","Math","floor","slice","getReviewAndRatingId","productOverview","reviewAndRatingId","productVariants","_productOverview$fiel","productVariant","isBazaarVoiceIdentifier","_productVariant$field","bazaarVoiceId","_productVariant$field2","sku","ean","loadScript","source","callback","script","createElement","src","onload","onerror","head","getElementsByTagName","appendChild","asyncForEach","_x","_x2","_x3","_asyncForEach","apply","_asyncToGenerator","_regeneratorRuntime","_callee","container","index","_context","prev","next","stop","createHtmlFriendlyId","checkPattern","input","search","RegExp","getAttribute","enableDisableFocusOnElements","enable","allLinks","querySelectorAll","_step2","_iterator2","_createForOfIteratorHelper","s","n","done","item","enableTabIndex","err","f","allButtons","_step3","_iterator3","allInputs","_step4","_iterator4","handleClickToScrollToRnR","rnrElement","scrollIntoView","behavior","getCanonicalURL","path","scheme","MetaConstants","https","url","process","includes","addBVScript","async","type","firstScript","parentNode","insertBefore","addBVCollectionPageCallback","inlineRating","inlineRatingElement","innerText","addBvReviewDetailContainerClass","reviewDetail","_reviewDetailElement$","_reviewDetailElement$2","reviewDetailElement","contains","updateRatingTextCallback","outOfRatingValue","ratingText","trim","reviewButton","reviewButtonElement","addBVProductPageCallback","productName","bvCallback","BV","_window","addAnalyticClassToBazaarVoiceElement","elementClass","analyticHookClass","dataActionDetail","parentElementClass","attributeToReadForValue","removeFromValue","rootElement","parent","elements","valueActionDetail","bvDCC","len","catalogData","catalogProducts","pixel","trackEvent","locale","reviews","ready","then","Reviewsummary","reviewText","userBlock","newTabIndex","removeHtmlTag","query","log","isIOS","_window2","_window2$navigator","_window3","_window3$navigator","_window3$navigator$us","platform","validatePattern","pattern","inputText","openTo","target","open","focusElement","elementId","className","_document$getElementB","_document$getElementB2","toggle","addDropDownListerner","dropBtnClass","dropdownContantClass","dropdownClass","onclick","matches","elementIndex","dropdowns","openDropdown","handleFindInlineRatingElement","timeOut","customJsonstringify","str","JSON","stringify","char","handleGAEvents","gaEventCategory","gaEventAction","gaEventLabel","dataLayer","GAeventCategory","GAeventAction","GAeventLabel","addRemainder","calenderOption","selectedTypeOption","icsData","dt","no_of_months","noOfMonths","eventTitle","title","eventNote","note","setMonth","endDate","toISOString","replaceAll","outlookDate","StartGuideBlockConstants","Google","Yahoo","Outlook","Other","encodeURIComponent"],"sourceRoot":""}