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AA,OAAAA,EAAAqP,GAAA,cAAAnJ,CAAA,eAAAA,CAAA,iBAAAN,EAAA,SAAAC,EAAA0B,OAAA+H,IAAA,CAAAxJ,EAAA,YAAAG,EAAAkJ,EAAA,CAAAM,KAAA,CAAA1J,6DAAA7F,CAAA,kBAAAA,CAAA,uBAAA+H,MAAA,CAAArC,EAAA,uBAAAqC,MAAA,CAAApC,EAAA,6IAAA0B,OAAA+H,IAAA,oCAAAI,mBAAA3J,GAAA,GAAAnC,GAAA,SAAA7D,CAAA,aAAAG,EAAAyP,EAAA,CAAAf,SAAA,CAAA7O,GAAA6K,OAAA,uBAAA7K,CAAA,SAAAA,GAAA,yGAAAA,CAAA,UAAAA,GAAA,qCAAAA,GAAA,GAAAa,GAAA,SAAAb,CAAA,aAAAA,GAAAA,EAAA6P,KAAA,YAAA1P,EAAAyP,EAAA,CAAAE,KAAA,CAAA9P,GAAA4O,KAAAkB,KAAA,CAAA9P,EAAA,OAAAA,GAAA,qCAAAA,GAAA","sources":["webpack://_N_E/./adapters/helpers/Utils.js","webpack://_N_E/"],"sourcesContent":["import moment from 'moment';\nimport {labelConstant, MetaConstants, StartGuideBlockConstants} from '../helpers/Constants'\nimport SuperJSON from 'superjson';\n\n// Returns if a value is a string\nexport function isString(value) {\n return typeof value === 'string' || value instanceof String;\n}\nexport function redirectTo(url) {\n window.location.href = url\n}\n\nexport function handleMouseEvent(eventType, event, image) {\n if (eventType === 'mouseover' || eventType === 'mouseout') {\n return (event.currentTarget.src = image)\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 function isObject (value) {\n return typeof value === 'object' || value instanceof Object;\n}\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 let arialabel = i.querySelector('a[aria-label]')\n arialabel ? '' : 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 document.getElementsByClassName('zone-header')[0].length > 0 && document.getElementsByClassName('zone-header')[0].removeAttribute('aria-hidden');\n 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\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 const linkTab = document.getElementsByClassName('bv_numReviews_text')\n if (linkTab !== undefined) {\n linkTab[0].setAttribute('tabindex',0)\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 const validateEmail = (inputs) => {\n if(!new RegExp(/^(([^<>()[\\]\\\\.,;:\\s@\"]+(\\.[^<>()[\\]\\\\.,;:\\s@\"]+)*)|(\".+\"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$/).test(inputs)){\n return true;\n }\n else {\n return false;\n }\n} \n\nexport function addProductListforSearchContent (productList){\n let stringProductList = '';\n if(Array.isArray(productList) && productList.length > 0){\n stringProductList = customJsonstringify(productList)\n }\n return stringProductList\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 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 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 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\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 break\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 break\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 break\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\n export const customSuperJsonStringify = str => {\n try {\n return SuperJSON.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 } catch (error) {\n throw new Error('Something went wrong!', error)\n }\n}\n\nexport const customSuperJsonParse = str => {\n try {\n return str && str.match('\"json\":') ? SuperJSON.parse(str): JSON.parse(str)\n } catch (error) {\n throw new Error('Something went wrong!', error)\n }\n}","\"use strict\";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8996],{8996:function(t,e,n){n.d(e,{Aq:function(){return X},BF:function(){return M},CB:function(){return h},CP:function(){return g},Cp:function(){return at},DG:function(){return A},DN:function(){return J},DY:function(){return I},FS:function(){return W},HD:function(){return f},Jy:function(){return K},Kn:function(){return m},L3:function(){return S},ML:function(){return z},MX:function(){return Y},Ms:function(){return R},Nt:function(){return _},R4:function(){return ot},Sm:function(){return T},VP:function(){return G},Vt:function(){return k},WI:function(){return V},XP:function(){return et},Zl:function(){return rt},a9:function(){return E},dj:function(){return C},ep:function(){return P},gB:function(){return b},hD:function(){return it},jc:function(){return w},l$:function(){return F},lU:function(){return $},ll:function(){return y},nD:function(){return O},nK:function(){return N},oH:function(){return tt},p6:function(){return j},s9:function(){return U},sz:function(){return nt},vG:function(){return H},ve:function(){return q},vk:function(){return L},w1:function(){return D},zb:function(){return p}});var r=n(49376),o=n.n(r),i=n(87794),a=n.n(i),u=n(30381),l=n.n(u),c=n(24036),d=n(84419);function s(t,e){var n=\"undefined\"!=typeof Symbol&&t[Symbol.iterator]||t[\"@@iterator\"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if(\"string\"==typeof t)return v(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);\"Object\"===n&&t.constructor&&(n=t.constructor.name);if(\"Map\"===n||\"Set\"===n)return Array.from(t);if(\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return v(t,e)}(t))||e&&t&&\"number\"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}var i,a=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){u=!0,i=t},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw i}}}}function v(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:300,o=document.querySelector(\".zone-header:not(.visible-false)\"),i=(null==o?void 0:o.offsetHeight)?o.offsetHeight:0,a=t.getBoundingClientRect().top,u=(a-i-n)/100,l=0;l<=r;)window.setTimeout(x,l,u,e),l+=r/100}function x(t,e){\"center\"!==e&&\"\"!==e||window.scrollBy(0,t/2),\"top\"===e&&window.scrollBy(0,t)}function C(t){t&&(t.setAttribute(\"tabindex\",-1),setTimeout((function(){t.focus(),t.addEventListener(\"blur\",(function(t){t.currentTarget.removeAttribute(\"tabindex\")}))}),500))}function E(t,e){t?(document.body.classList.add(\"noScroll\"),document.body.style.top=\"-\".concat(e,\"px\"),document.body.style.height=\"-\".concat(e,\"px\")):(document.body.classList.remove(\"noScroll\"),document.body.style.top=null,document.body.style.height=null,window.scrollTo(0,e))}function k(t){return t?t.replace(/<[^>]+>/g,\"\").replace(/ /g,\" \"):\"\"}function D(){var t=window.navigator.userAgent;return t.indexOf(\"MSIE \")>-1||t.indexOf(\"Trident/\")>-1}function I(){var t=window.navigator.userAgent;return t.indexOf(\"MSIE \")>-1||t.indexOf(\"Trident/\")>-1||t.indexOf(\"Edge/\")>-1}function T(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:\"\",e=t.toLowerCase().split(\" \"),n=0;n0&&void 0!==arguments[0]?arguments[0]:\"\",e=[],n=0;n<=12;n++)0===n?e.push({id:t,value:t}):n<10&&n>0?e.push({id:n,value:\"0\"+n.toString()}):e.push({id:n,value:n.toString()});return e},L=function(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:\"\",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1900,n=[{id:t,value:t}],r=(new Date).getFullYear(),o=r;o>=e;o--)n.push({id:o.toString(),value:o.toString()});return n};function O(t){var e={};for(var n in t){var r,o,i,a;if(null==(r=t[n])||null==(o=r.fields)?void 0:o.text)e[n]=null==(i=t[n])||null==(a=i.fields)?void 0:a.text}return e}function B(t,e){var n=new Date(Number(t));return n.setDate(t.getDate()+e),n}function M(t,e){var n=new Date(Number(t));return n.setDate(t.getDate()-e),n}function F(t,e,n){return l()(t,e).format(n)}function j(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:\"-\",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:\"yyyy-mm-dd\",r=t,o=t.toString(),i=o&&o.split(\"/\");(D()||2===i.shift().length)&&(r=o.split(\"/\").reverse().join(\"/\"));var a=new Date(r),u=\"\"+(a.getMonth()+1),l=\"\"+a.getDate(),c=a.getFullYear();return u.length<2&&(u=\"0\"+u),l.length<2&&(l=\"0\"+l),\"yyyy-mm-dd\"===n?[c,u,l].join(e):\"dd-mm-yyyy\"===n?[l,u,c].join(e):void 0}function P(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date;return B(t,90)}function V(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(!(t.length<2)){var e=Math.floor(t.length/2),n=t.slice(0,e),r=t.slice(e);return[n,r]}console.error(\"Please provide an array with at least 2 elements\")}function G(t){var e;if(t){var n,r=null==t||null==(n=t.fields)?void 0:n.productVariants;if(r)for(var o=0;o a\");if(n&&n.length>0){var r,o=s(n);try{for(o.s();!(r=o.n()).done;){Q(r.value,e)}}catch(t){o.e(t)}finally{o.f()}}var i=t.querySelectorAll(\"* > button\");if(i&&i.length>0){var a,u=s(i);try{for(u.s();!(a=u.n()).done;){Q(a.value,e)}}catch(t){u.e(t)}finally{u.f()}}var l=t.querySelectorAll(\"* > input\");if(l&&l.length>0){var c,d=s(l);try{for(d.s();!(c=d.n()).done;){Q(c.value,e)}}catch(t){d.e(t)}finally{d.f()}}}}function $(){var t=document.getElementById(\"BVCustomerReviewContiner\");t&&t.scrollIntoView({behavior:\"smooth\"})}function J(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.FU.https,n=\"https://www.oralbarabia.com\"+t;return n.includes(e)?n:e+n}function K(){var t=document.createElement(\"script\");t.async=!0,t.type=\"text/javascript\",t.src=\"https://apps.bazaarvoice.com/deployments/oralb-ar_sa/main_site/production/ar_SA/bv.js\".replace(new RegExp('\"',\"g\"),\"\");var e=document.getElementsByTagName(\"script\")[0];e&&e.parentNode.insertBefore(t,e)}function X(){window.setTimeout((function(){var t=document.querySelectorAll(\"[data-bv-show='inline_rating']\");if(t)for(var e=0;e0&&void 0!==u[0]&&(a=u[0])}var l=a.getElementsByClassName(t);if(l&&l.length>0)for(var c=0;c0&&null!==n[0]&&n[0].innerText.includes(\"(0)\")){var i=document.getElementsByClassName(\"ob-customer-review\");null!==i[0]&&void 0!==i[0]&&i[0].classList.add(\"no-reviews\")}var a=document.querySelector(\"[data-bv-show='inline_rating']\");null!==a&&a.innerText.includes(\"(0)\")&&a.classList.add(\"no-reviews\")}),2e3)}))}}function Q(t,e){if(e){var n=null;t.getAttribute(\"data-previous-tabIndex\")?(n=t.getAttribute(\"data-previous-tabIndex\"),t.setAttribute(\"tabindex\",n)):t.removeAttribute(\"tabindex\")}else t.getAttribute(\"tabindex\")&&t.getAttribute(\"tabindex\")>=0&&t.setAttribute(\"data-previous-tabIndex\",t.getAttribute(\"tabindex\")),t.setAttribute(\"tabindex\",-1)}var tt=function(t){return!new RegExp(/^(([^<>()[\\]\\\\.,;:\\s@\"]+(\\.[^<>()[\\]\\\\.,;:\\s@\"]+)*)|(\".+\"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$/).test(t)};function et(t){return console.log(\"inside removeHTMLTag log: \",t),t=t.replace(/[&\\/\\\\#$~%.'\":*<>[\\]{}]/g,\"\")}function nt(t,e,n){window&&window.dataLayer&&window.dataLayer.push({event:\"customEvent\",GAeventCategory:\"\".concat(t),GAeventAction:\"\".concat(e),GAeventLabel:\"\".concat(n)})}var rt=function(t){return JSON.stringify(t).replace(/([&\"'<>])/g,(function(t){switch(t){case\"&\":return\"&\";case\"<\":return\"<\";case\">\":return\">\";case'\"':return'\"';case\"'\":return\"'\";default:return t}}))},ot=function(t,e){var n=new Date,r=null==t?void 0:t.noOfMonths,o=null==t?void 0:t.title,i=null==t?void 0:t.note;n.setMonth(n.getMonth()+r);var a,u,l=n.toISOString().replaceAll(\":\",\"\").replaceAll(\"-\",\"\").replaceAll(\".\",\"\"),d=n.toISOString().replaceAll(\":\",\"\").replaceAll(\"-\",\"\").split(\".\"),s=n.toISOString().split(\".\");switch(e.type){case c.T3.Google:a=(null==e?void 0:e.url)+o+\"&dates=\"+l+\"/\"+l+\"&details=\"+i,window.open(a);break;case c.T3.Yahoo:a=(null==e?void 0:e.url)+o+\"&st=\"+l+\"&et=\"+l+\"&desc=\"+i,window.open(a);break;case c.T3.Outlook:a=(null==e?void 0:e.url)+\"&startdt=\"+s[0]+\"Z&enddt=\"+s[0]+\"Z&subject=\"+o+\"&body=\"+i,window.open(a);break;case c.T3.Other:u=\"BEGIN:VCALENDAR\\nVERSION:2.0\\r\\n\",u+=\"BEGIN:VEVENT\\r\\n\",u+=\"DTSTART:\"+d[0]+\"Z\\r\\n\",u+=\"DTEND:\"+d[0]+\"Z\\r\\n\",u+=\"SUMMARY:\".concat(o,\"\\r\\n\"),u+=\"DESCRIPTION:\".concat(i,\"\\r\\n\"),u+=\"LOCATION:\\r\\n\",u+=\"BEGIN:VALARM\\r\\n\",u+=\"TRIGGER:-PT15M\\r\\n\",u+=\"ACTION:DISPLAY\\r\\n\",u+=\"DESCRIPTION:REMINDER\\r\\n\",u+=\"END:VALARM\\r\\nEND:VEVENT\\r\\nEND:VCALENDAR\",window.open(\"data:text/calendar;charset=utf8,\"+encodeURIComponent(u))}},it=function(t){try{return d.ZP.stringify(t).replace(/([&\"'<>])/g,(function(t){switch(t){case\"&\":return\"&\";case\"<\":return\"<\";case\">\":return\">\";case'\"':return'\"';case\"'\":return\"'\";default:return t}}))}catch(t){throw new Error(\"Something went wrong!\",t)}},at=function(t){try{return t&&t.match('\"json\":')?d.ZP.parse(t):JSON.parse(t)}catch(t){throw new Error(\"Something went wrong!\",t)}}}}]);"],"names":["self","webpackChunk_N_E","push","t","e","n","d","Aq","X","BF","M","CB","h","CP","g","Cp","at","DG","A","DN","J","DY","I","FS","W","HD","f","Jy","K","Kn","m","L3","S","ML","z","MX","Y","Ms","R","Nt","_","R4","ot","Sm","T","VP","G","Vt","k","WI","V","XP","et","Zl","rt","a9","E","dj","C","ep","P","gB","b","hD","it","jc","w","l$","F","lU","$","ll","y","nD","O","nK","N","oH","tt","p6","j","s9","U","sz","nt","vG","H","ve","q","vk","L","w1","D","zb","p","r","o","i","a","u","l","c","s","Symbol","iterator","Array","isArray","v","Object","prototype","toString","call","slice","constructor","name","from","test","length","done","value","next","return","String","window","location","href","currentTarget","src","dataLayer","event","GAeventCategory","GAeventAction","GAeventLabel","concat","querySelector","setAttribute","getAttribute","toLowerCase","split","reduce","charAt","toUpperCase","substr","join","document","clientHeight","style","paddingTop","fields","colorCode","colorCodeTop","colorCodeBottom","gradientStyle","backgroundColor","backgroundImage","exec","parseInt","red","green","blue","arguments","offsetHeight","getBoundingClientRect","top","setTimeout","x","scrollBy","focus","addEventListener","removeAttribute","body","classList","add","height","remove","scrollTo","replace","navigator","userAgent","indexOf","substring","hasOwnProperty","id","Date","getFullYear","text","Number","setDate","getDate","format","shift","reverse","getMonth","Math","floor","console","error","productVariants","isBazaarVoiceIdentifier","bazaarVoiceId","sku","ean","createElement","onload","onerror","getElementsByTagName","appendChild","Z","apply","mark","wrap","prev","stop","search","querySelectorAll","Q","getElementById","scrollIntoView","behavior","FU","https","includes","async","type","parentNode","insertBefore","innerText","bvCallback","getElementsByClassName","bvDCC","catalogData","catalogProducts","pixel","trackEvent","locale","reviews","ready","then","log","JSON","stringify","noOfMonths","title","note","setMonth","toISOString","replaceAll","T3","Google","url","open","Yahoo","Outlook","Other","encodeURIComponent","ZP","match","parse"],"sourceRoot":""}