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,kBAAAzC,EAAAhJ,EAAA8I,KAAA,GAAA4C,wBAAA,CAAAC,OAAArK,IAAAsK,QAAA,CAAA5L,EAAA+I,KAAA,MAAA9I,EAAA,aAAAW,EAAA,GAAAwE,EAAAyG,YAAA,EAAA/E,kBAAA,GAAAM,YAAA,GAAAH,aAAA,GAAAF,oBAAA,GAAAI,sBAAA,oBAAAnH,CAAA,CAAAC,CAAA,cAAAA,CAAAA,EAAAyC,OAAA,CAAA7C,KAAA6C,OAAA,CAAAzC,EAAA6L,OAAA,CAAAjM,KAAAiM,OAAA,CAAA7L,EAAA8L,QAAA,CAAAlM,KAAAkM,QAAA,CAAA9L,EAAAG,KAAA,CAAAP,KAAAO,KAAA","sources":["webpack://_N_E/./node_modules/isomorphic-fetch/fetch-npm-browserify.js","webpack://_N_E/./adapters/model/service/swiftype/search/SearchService.js","webpack://_N_E/./components/SearchBar/SearchBar.js","webpack://_N_E/./node_modules/next/dist/build/polyfills/fetch/whatwg-fetch.js","webpack://_N_E/"],"sourcesContent":["// the whatwg-fetch polyfill installs the fetch() function\n// on the global object (window or self)\n//\n// Return that as the export for use in Webpack, Browserify etc.\nrequire('whatwg-fetch');\nmodule.exports = self.fetch.bind(self);\n","import 'isomorphic-fetch';\nimport {SearchServiceConstants} from '../../../../helpers/Constants';\nimport { customJsonstringify } from '../../../../helpers/Utils';\n\nclass SearchService {\n\n async searchDocument(query) {\n let registrationHeader = new Headers();\n registrationHeader.append(SearchServiceConstants.contentType, SearchServiceConstants.json);\n\n this.market = process.env.MARKET.toLowerCase();\n this.swiftypeApiKey = process.env.SWIFTYPE_READ_API_KEY;\n this.swiftypeBaseUrl = SearchServiceConstants.swiftypeBaseUrl;\n this.swiftypePath = SearchServiceConstants.swiftypePath;\n\n let url = this.swiftypeBaseUrl + this.swiftypePath;\n\n const params = {\n 'engine_key': this.swiftypeApiKey,\n 'q': query,\n 'filters': {\n 'product': {'market': this.market},\n 'page': {'market': this.market},\n 'article': {'market': this.market},\n 'collection': {'market': this.market},\n 'faq': {'market': this.market}\n }\n };\n\n const response = await fetch(url, {\n method: 'POST',\n headers: registrationHeader,\n body: customJsonstringify(params)\n }).then();\n\n let queryResult = {};\n let searchResults = [];\n let searchCategories;\n\n const data = await response.json();\n\n // group so we can iterate on all results\n const categories = ['product', 'page', 'article', 'collection'];\n for (let category of categories) {\n searchResults = searchResults.concat(this.getEntriesForCategory(data, category));\n }\n\n // sort based on score\n searchResults.sort(this.compare);\n\n searchCategories = this.getResultCategories(data, ['faq']);\n\n queryResult.totalCount = data.record_count;\n queryResult.searchResults = searchResults;\n queryResult.searchResultsByCategory = data.records;\n queryResult.searchCategories = searchCategories;\n\n return queryResult;\n }\n\n async suggestResults(query, excludedCategories) {\n let registrationHeader = new Headers();\n registrationHeader.append(SearchServiceConstants.contentType, SearchServiceConstants.json);\n\n this.market = process.env.MARKET;\n this.swiftypeApiKey = process.env.SWIFTYPE_READ_API_KEY;\n this.swiftypeAutocompleteUrl = SearchServiceConstants.swiftypeAutocompleteUrl;\n\n let url = this.swiftypeAutocompleteUrl;\n let documentTypes = [];\n const categories = ['product', 'page', 'article', 'collection', 'faq'];\n\n for (let category of categories) {\n if (excludedCategories === undefined || excludedCategories.indexOf(category.toLowerCase()) < 0) {\n documentTypes.push(category);\n }\n }\n\n const params = {\n 'engine_key': this.swiftypeApiKey,\n 'q': query,\n 'document_types': documentTypes,\n 'filters': {\n 'product': {'market': [this.market]},\n 'page': {'market': [this.market]},\n 'article': {'market': [this.market]},\n 'collection': {'market': [this.market]},\n 'faq': {'market': [this.market]}\n }\n };\n\n const response = await fetch(url, {\n method: 'POST',\n headers: registrationHeader,\n body: customJsonstringify(params)\n }).then();\n\n let queryResult = {};\n let searchResults = [];\n let searchCategories;\n\n const data = await response.json();\n\n // group so we can iterate on all results\n for (let category of categories) {\n if (excludedCategories === undefined || excludedCategories.indexOf(category.toLowerCase()) < 0) {\n searchResults = searchResults.concat(this.getEntriesForCategory(data, category));\n }\n }\n\n // sort based on score\n searchResults.sort(this.compare);\n\n searchCategories = this.getResultCategories(data, excludedCategories);\n\n queryResult.totalCount = data.record_count;\n queryResult.searchResults = searchResults;\n queryResult.searchResultsByCategory = data.records;\n queryResult.searchCategories = searchCategories;\n\n return queryResult;\n }\n\n async searchFaq(query) {\n let registrationHeader = new Headers();\n registrationHeader.append(SearchServiceConstants.contentType, SearchServiceConstants.json);\n\n this.market = process.env.MARKET.toLowerCase();\n this.swiftypeApiKey = process.env.SWIFTYPE_READ_API_KEY;\n this.swiftypeBaseUrl = SearchServiceConstants.swiftypeBaseUrl;\n this.swiftypePath = SearchServiceConstants.swiftypePath;\n\n let url = this.swiftypeBaseUrl + this.swiftypePath;\n\n const params = {\n 'engine_key': this.swiftypeApiKey,\n 'q': query,\n 'document_types': ['faq'],\n 'filters': {\n 'faq': {'market': [this.market]}\n }\n };\n\n const response = await fetch(url, {\n method: 'POST',\n headers: registrationHeader,\n body: customJsonstringify(params)\n }).then();\n\n let queryResult = {};\n let searchResults = [];\n const data = await response.json();\n\n // group so we can iterate on all results\n searchResults = searchResults.concat(this.getEntriesForCategory(data, 'faq'));\n\n // sort based on score\n searchResults.sort(this.compare);\n\n queryResult.totalCount = data.record_count;\n queryResult.searchResults = searchResults;\n\n queryResult = this.setFaqCategoriesAndResultsByCategory(queryResult, data.records);\n\n return queryResult;\n }\n\n setFaqCategoriesAndResultsByCategory(queryResult, records) {\n let searchCategories = [];\n let searchResultsByCategory = {};\n\n for (let record in records) {\n for (let faq of records[record]) {\n if (faq?.categories) {\n for (let category of faq.categories) {\n if (searchResultsByCategory[category.toLowerCase()] === undefined) {\n searchResultsByCategory[category.toLowerCase()] = [];\n }\n searchResultsByCategory[category.toLowerCase()].push(faq);\n\n if (searchCategories.indexOf(category) < 0) {\n searchCategories.push(category);\n }\n }\n }\n }\n }\n\n queryResult.searchResultsByCategory = searchResultsByCategory;\n queryResult.searchCategories = searchCategories;\n\n return queryResult;\n }\n\n getEntriesForCategory(data, category) {\n let results = [];\n if (data.records[category]) {\n data.records[category].forEach(function (entry) {\n results.push(entry);\n });\n }\n return results;\n }\n\n getResultCategories(data, excludedCategories) {\n let categories = [];\n if (!excludedCategories) {\n excludedCategories = [];\n }\n\n if (data && data.info) {\n for (const property in data.info) {\n if (data.info[property].total_result_count > 0 && excludedCategories.indexOf(property) < 0) {\n categories.push(this.getCapitalizedValue(property));\n }\n }\n }\n return categories;\n }\n\n getCapitalizedValue(value) {\n let capitalized = '';\n if (value) {\n capitalized = value.substr(0, 1).toUpperCase() + value.substr(1).toLowerCase();\n }\n return capitalized;\n }\n\n encodeQueryData(data) {\n const ret = [];\n for (let d in data)\n ret.push(encodeURIComponent(d) + '=' + encodeURIComponent(data[d]));\n return ret.join('&');\n }\n\n compare(a, b) {\n if (a._score > b._score)\n return -1;\n if (a._score < b._score)\n return 1;\n return 0;\n }\n\n}\n\nexport default new SearchService();\n// This export is for unit testing (do not remove) :\nexport const SearchServiceTest = SearchService;\n","import React, {useState, useRef, useCallback, useEffect, Suspense} from 'react';\nimport dynamic from 'next/dynamic';\nimport PropTypes from 'prop-types';\nconst Icon = dynamic(() => import('../Icon/Icon'));\nimport { stripHtml } from '../../adapters/helpers/Utils';\nimport { SearchBarConstants } from '../../adapters/helpers/Constants';\nimport SearchService from '../../adapters/model/service/swiftype/search/SearchService';\nimport Loader from '../../adapters/helpers/Loader';\nimport DOMPurify from 'isomorphic-dompurify';\n\nexport default function SearchBar(props) {\n\n const {onSearch, placeholder, searchActionTitle, commonSearchesLabel, isSpinning, defaultValue, isSearchFaqOnly, isAutocompleteEnabled, searchTitle, searchCtaLabel} = props;\n const [autoCompleteResults, setAutocompleteResults] = useState([]);\n const [isAutocompleteActivated, setIsAutocompleteActivated] = useState(false);\n\n const inputRef = useRef(null);\n const KEY_ESC = 27;\n const KEY_DOWN = 40;\n const KEY_UP = 38;\n\n useEffect(() => {\n return function cleanup() {\n document.removeEventListener('click', handleBlur);\n };\n }, []);\n\n const doAutocompleteSearch = async (query) => {\n setIsAutocompleteActivated(true);\n let excludedCategories = [];\n if (!isSearchFaqOnly) {\n excludedCategories.push('faq');\n } else {\n excludedCategories.push('product');\n excludedCategories.push('article');\n excludedCategories.push('collection');\n excludedCategories.push('page');\n }\n\n await SearchService.suggestResults(query, excludedCategories)\n .then((searchResult) => {\n manageAutoCompleteResult(searchResult);\n })\n .catch(() => {\n closeAutocomplete();\n });\n };\n\n const manageAutoCompleteResult = useCallback(\n (results) => {\n if (results && results.totalCount > 0 && results.searchResults) {\n document.addEventListener('click', handleBlur);\n let subResults = results.searchResults.slice(0, SearchBarConstants.maximumAutocompleteResults);\n let resultsArray = subResults.map(item => {\n return getAutocompleteItem(item);\n });\n setAutocompleteResults(resultsArray);\n } else {\n setAutocompleteResults([]);\n }\n },\n []\n );\n\n const getAutocompleteItem = (item) => {\n if (item.highlight) {\n let title = item.name;\n\n if (item.highlight.text) {\n title = item.highlight.text;\n } else if (item.highlight.url && !item.highlight.name) {\n title = item.name;\n } else if (item.highlight.name) {\n title = item.highlight.name;\n }\n\n return {query: item.name, title: title};\n }\n\n return {query: item.name, title: item.title};\n };\n\n const closeAutocomplete = useCallback(\n () => {\n document.removeEventListener('click', handleBlur);\n setIsAutocompleteActivated(false);\n setAutocompleteResults([]);\n },\n []\n );\n\n const handleInput = (event) => {\n let value = '';\n if (event.currentTarget && event.currentTarget.value) {\n value = event.currentTarget.value.trim();\n }\n\n if (value === '' || value.length <= 2) {\n closeAutocomplete();\n } else if (isAutocompleteEnabled) {\n doAutocompleteSearch(value);\n }\n };\n\n const handleBlur = () => {\n closeAutocomplete();\n };\n\n const handleAutocompleteResultClick = useCallback(\n (term) => {\n if (inputRef.current) {\n inputRef.current.blur();\n inputRef.current.value = term;\n }\n\n closeAutocomplete();\n onSearch(term);\n },\n [onSearch]\n );\n\n const handleMouseDown = useCallback(\n (event) => {\n event.preventDefault(); // keeps focus on input element\n },\n []\n );\n\n const handleKeyDown = (event) => {\n if (event.keyCode === KEY_ESC) {\n closeAutocomplete();\n } else if (event.keyCode === KEY_DOWN && isAutocompleteActivated) {\n event.preventDefault();\n event.stopPropagation();\n focusFirstAutocompleteSuggestion();\n }\n };\n\n const focusFirstAutocompleteSuggestion = () => {\n let suggestions = document.getElementsByClassName('ob-search-bar-autocomplete__result-item-button');\n if (suggestions && suggestions.length > 0) {\n suggestions[0].focus();\n }\n };\n\n const handleSuggestionItemKeyDown = (event) => {\n let selectedSuggestionItemIndex = getSelectedSuggestionItemIndex();\n if (event.keyCode === KEY_ESC) {\n inputRef.current.focus();\n closeAutocomplete();\n return;\n }\n\n if (event.keyCode === KEY_DOWN) {\n event.preventDefault();\n focusSuggestionItemByIndex(selectedSuggestionItemIndex + 1);\n } else if (event.keyCode === KEY_UP) {\n event.preventDefault();\n focusSuggestionItemByIndex(selectedSuggestionItemIndex - 1);\n }\n };\n\n const focusSuggestionItemByIndex = (index) => {\n let suggestions = document.getElementsByClassName('ob-search-bar-autocomplete__result-item-button');\n if (suggestions && suggestions.length > 0) {\n if (index < 0) {\n index = suggestions.length - 1;\n }\n if (index >= suggestions.length) {\n index = 0;\n }\n\n suggestions[index].focus();\n }\n };\n\n const getSelectedSuggestionItemIndex = () => {\n if (document.activeElement) {\n let index = document.activeElement.getAttribute('data-index');\n if (index) {\n return parseInt(index);\n }\n }\n return 0;\n };\n\n const handleSubmit = useCallback(\n (event) => {\n event.preventDefault();\n\n if (inputRef.current) {\n let term = '';\n if (inputRef.current.value) {\n term = inputRef.current.value.trim();\n }\n\n inputRef.current.blur();\n closeAutocomplete();\n onSearch(term);\n }\n },\n [onSearch]\n );\n\n return (\n }>\n
\n {searchTitle !== '' &&\n

\n {searchTitle.toUpperCase()}\n

\n }\n
\n \n\n \n\n {(isAutocompleteActivated && autoCompleteResults && autoCompleteResults.length > 0) && (\n
\n
\n {commonSearchesLabel}\n
\n\n
    \n {autoCompleteResults.map((autocompleteResult, i) => (\n
  • \n
  • \n ))}\n
\n
\n )}\n
\n
\n
\n );\n}\n\nSearchBar.propTypes = {\n onSearch: PropTypes.func,\n placeholder: PropTypes.any,\n searchActionTitle: PropTypes.string,\n defaultValue: PropTypes.string,\n commonSearchesLabel: PropTypes.string,\n isSpinning: PropTypes.bool,\n isSearchFaqOnly: PropTypes.bool,\n isAutocompleteEnabled: PropTypes.bool,\n searchTitle: PropTypes.string,\n searchCtaLabel: PropTypes.string\n};\n\nSearchBar.defaultProps = {\n searchActionTitle: '',\n searchTitle: '',\n defaultValue: '',\n commonSearchesLabel: '',\n isAutocompleteEnabled: true,\n};\n","\"use strict\";\n/* globals self */ exports.Headers = self.Headers;\nexports.Request = self.Request;\nexports.Response = self.Response;\nexports.fetch = self.fetch;\n\n//# sourceMappingURL=whatwg-fetch.js.map","(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[144],{94301:function(e,t,r){r(66477),e.exports=self.fetch.bind(self)},54246:function(e,t,r){\"use strict\";var n=r(49376),a=r.n(n),s=r(33227),o=r.n(s),i=r(88361),c=r.n(i),u=r(87794),l=r.n(u),h=(r(94301),r(24036)),f=r(8996),p=r(34155);function d(e,t){var r=\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if(\"string\"==typeof e)return m(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);\"Object\"===r&&e.constructor&&(r=e.constructor.name);if(\"Map\"===r||\"Set\"===r)return Array.from(e);if(\"Arguments\"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return m(e,t)}(e))||t&&e&&\"number\"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}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 s,o=!0,i=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){i=!0,s=e},f:function(){try{o||null==r.return||r.return()}finally{if(i)throw s}}}}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&t.indexOf(n)<0&&r.push(this.getCapitalizedValue(n));return r}},{key:\"getCapitalizedValue\",value:function(e){var t=\"\";return e&&(t=e.substr(0,1).toUpperCase()+e.substr(1).toLowerCase()),t}},{key:\"encodeQueryData\",value:function(e){var t=[];for(var r in e)t.push(encodeURIComponent(r)+\"=\"+encodeURIComponent(e[r]));return t.join(\"&\")}},{key:\"compare\",value:function(e,t){return e._score>t._score?-1:e._score0&&e.searchResults){document.addEventListener(\"click\",L);var t=e.searchResults.slice(0,h.pR.maximumAutocompleteResults).map((function(e){return E(e)}));x(t)}else x([])}),[]),E=function(e){if(e.highlight){var t=e.name;return e.highlight.text?t=e.highlight.text:e.highlight.url&&!e.highlight.name?t=e.name:e.highlight.name&&(t=e.highlight.name),{query:e.name,title:t}}return{query:e.name,title:e.title}},q=(0,i.useCallback)((function(){document.removeEventListener(\"click\",L),_(!1),x([])}),[]),L=function(){q()},N=(0,i.useCallback)((function(e){j.current&&(j.current.blur(),j.current.value=e),q(),t(e)}),[t]),U=(0,i.useCallback)((function(e){e.preventDefault()}),[]),B=function(){var e=document.getElementsByClassName(\"ob-search-bar-autocomplete__result-item-button\");e&&e.length>0&&e[0].focus()},P=function(e){var t=D();if(27===e.keyCode)return j.current.focus(),void q();40===e.keyCode?(e.preventDefault(),K(t+1)):38===e.keyCode&&(e.preventDefault(),K(t-1))},K=function(e){var t=document.getElementsByClassName(\"ob-search-bar-autocomplete__result-item-button\");t&&t.length>0&&(e<0&&(e=t.length-1),e>=t.length&&(e=0),t[e].focus())},D=function(){if(document.activeElement){var e=document.activeElement.getAttribute(\"data-index\");if(e)return parseInt(e)}return 0},O=(0,i.useCallback)((function(e){if(e.preventDefault(),j.current){var r=\"\";j.current.value&&(r=j.current.value.trim()),j.current.blur(),q(),t(r)}}),[t]);return(0,y.jsx)(i.Suspense,{fallback:(0,y.jsx)(p.default,{}),children:(0,y.jsxs)(\"form\",{className:\"ob-search-bar-form\",onSubmit:O,children:[\"\"!==b&&(0,y.jsx)(\"h1\",{id:h.pR.searchTitle,className:\"ob-search-block__search-title\",children:b.toUpperCase()}),(0,y.jsxs)(\"div\",{className:\"ob-search-bar\",children:[(0,y.jsx)(\"input\",{type:h.pR.text,id:h.pR.searchText,name:h.pR.searchText,ref:j,autoComplete:\"off\",\"aria-labelledby\":h.pR.searchTitle,onInput:function(e){var t=\"\";e.currentTarget&&e.currentTarget.value&&(t=e.currentTarget.value.trim()),\"\"===t||t.length<=2?q():g&&A(t)},onKeyDown:function(e){27===e.keyCode?q():40===e.keyCode&&R&&(e.preventDefault(),e.stopPropagation(),B())},placeholder:r,defaultValue:u||\"\"}),(0,y.jsxs)(\"button\",{\"aria-label\":k,type:h.pR.submit,title:n,className:\"ob-search-bar-icon\",children:[c?(0,y.jsx)(\"div\",{className:\"ob-search-bar-spinner\",children:(0,y.jsx)(\"div\",{})}):(0,y.jsx)(v,{name:h.pR.search,arialable:\"Search\"}),(0,y.jsx)(\"span\",{className:\"visuallyhidden\",children:k})]}),R&&w&&w.length>0&&(0,y.jsxs)(\"div\",{role:h.pR.list,onMouseDown:U,className:\"ob-search-bar-autocomplete\",children:[(0,y.jsx)(\"div\",{className:\"ob-search-bar-autocomplete-title\",children:s}),(0,y.jsx)(\"ul\",{className:\"ob-search-bar-autocomplete-results\",children:w.map((function(e,t){return(0,y.jsx)(\"li\",{className:\"ob-search-bar-autocomplete__result-item\",children:(0,y.jsx)(\"button\",{className:\"ob-search-bar-autocomplete__result-item-button event_search\",\"data-index\":t,onKeyDown:P,\"data-action-detail\":(0,l.Vt)(e.title),role:\"link\",onClick:function(){return N(e.query)},dangerouslySetInnerHTML:{__html:m().sanitize(e.title)}})},t)}))})]})]})]},u)})}g.defaultProps={searchActionTitle:\"\",searchTitle:\"\",defaultValue:\"\",commonSearchesLabel:\"\",isAutocompleteEnabled:!0}},66477:function(e,t){\"use strict\";t.Headers=self.Headers,t.Request=self.Request,t.Response=self.Response,t.fetch=self.fetch}}]);"],"names":["self","webpackChunk_N_E","push","e","t","r","exports","fetch","bind","n","a","s","o","i","c","u","l","h","f","p","d","Symbol","iterator","Array","isArray","m","Object","prototype","toString","call","slice","constructor","name","from","test","length","done","value","next","return","y","key","mark","wrap","prev","Headers","append","SS","contentType","json","market","env","MARKET","toLowerCase","swiftypeApiKey","swiftypeBaseUrl","swiftypePath","engine_key","q","filters","product","page","article","collection","faq","method","headers","body","Zl","then","sent","concat","getEntriesForCategory","sort","compare","getResultCategories","totalCount","record_count","searchResults","searchResultsByCategory","records","searchCategories","abrupt","stop","apply","arguments","v","g","b","k","C","w","swiftypeAutocompleteUrl","indexOf","document_types","setFaqCategoriesAndResultsByCategory","categories","forEach","info","total_result_count","getCapitalizedValue","substr","toUpperCase","encodeURIComponent","join","_score","Z","Promise","resolve","loadableGenerated","webpack","onSearch","placeholder","searchActionTitle","commonSearchesLabel","isSpinning","defaultValue","isSearchFaqOnly","isAutocompleteEnabled","searchTitle","searchCtaLabel","useState","x","S","R","_","j","useRef","useEffect","document","removeEventListener","L","A","suggestResults","T","catch","useCallback","addEventListener","pR","maximumAutocompleteResults","map","E","highlight","text","url","query","title","N","current","blur","U","preventDefault","B","getElementsByClassName","focus","P","D","keyCode","K","activeElement","getAttribute","parseInt","O","trim","jsx","Suspense","fallback","default","children","jsxs","className","onSubmit","id","type","searchText","ref","autoComplete","onInput","currentTarget","onKeyDown","stopPropagation","submit","search","arialable","role","list","onMouseDown","Vt","onClick","dangerouslySetInnerHTML","__html","sanitize","defaultProps","Request","Response"],"sourceRoot":""}