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,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 \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\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\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} from 'react';\nimport PropTypes from 'prop-types';\nimport dynamic from 'next/dynamic';\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';\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 {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\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([[215],{94301:function(e,t,r){r(66477),e.exports=self.fetch.bind(self)},50215:function(e,t,r){\"use strict\";r.r(t),r.d(t,{default:function(){return x}});var n=r(49376),a=r.n(n),s=r(87794),o=r.n(s),i=r(67294),c=r(5152),u=r.n(c),l=r(8996),h=r(24036),f=r(33227),p=r.n(f),m=r(88361),d=r.n(m),y=(r(94301),r(34155));function v(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 g(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 g(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 g(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\",T);var t=e.searchResults.slice(0,h.pR.maximumAutocompleteResults).map((function(e){return A(e)}));g(t)}else g([])}),[]),A=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}},j=(0,i.useCallback)((function(){document.removeEventListener(\"click\",T),S(!1),g([])}),[]),T=function(){j()},E=(0,i.useCallback)((function(e){R.current&&(R.current.blur(),R.current.value=e),j(),t(e)}),[t]),L=(0,i.useCallback)((function(e){e.preventDefault()}),[]),K=function(){var e=document.getElementsByClassName(\"ob-search-bar-autocomplete__result-item-button\");e&&e.length>0&&e[0].focus()},N=function(e){var t=U();if(27===e.keyCode)return R.current.focus(),void j();40===e.keyCode?(e.preventDefault(),P(t+1)):38===e.keyCode&&(e.preventDefault(),P(t-1))},P=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())},U=function(){if(document.activeElement){var e=document.activeElement.getAttribute(\"data-index\");if(e)return parseInt(e)}return 0},B=(0,i.useCallback)((function(e){if(e.preventDefault(),R.current){var r=\"\";R.current.value&&(r=R.current.value.trim()),R.current.blur(),j(),t(r)}}),[t]);return(0,C.jsxs)(\"form\",{className:\"ob-search-bar-form\",onSubmit:B,children:[\"\"!==m&&(0,C.jsx)(\"h1\",{id:h.pR.searchTitle,className:\"ob-search-block__search-title\",children:m.toUpperCase()}),(0,C.jsxs)(\"div\",{className:\"ob-search-bar\",children:[(0,C.jsx)(\"input\",{type:h.pR.text,id:h.pR.searchText,name:h.pR.searchText,ref:R,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?j():p&&_(t)},onKeyDown:function(e){27===e.keyCode?j():40===e.keyCode&&x&&(e.preventDefault(),e.stopPropagation(),K())},placeholder:r,defaultValue:u||\"\"}),(0,C.jsxs)(\"button\",{\"aria-label\":c,type:h.pR.submit,title:n,className:\"ob-search-bar-icon\",children:[c?(0,C.jsx)(\"div\",{className:\"ob-search-bar-spinner\",children:(0,C.jsx)(\"div\",{})}):(0,C.jsx)(w,{name:h.pR.search,arialable:\"Search\"}),(0,C.jsx)(\"span\",{className:\"visuallyhidden\",children:d})]}),x&&v&&v.length>0&&(0,C.jsxs)(\"div\",{role:h.pR.list,onMouseDown:L,className:\"ob-search-bar-autocomplete\",children:[(0,C.jsx)(\"div\",{className:\"ob-search-bar-autocomplete-title\",children:s}),(0,C.jsx)(\"ul\",{className:\"ob-search-bar-autocomplete-results\",children:v.map((function(e,t){return(0,C.jsx)(\"li\",{className:\"ob-search-bar-autocomplete__result-item\",children:(0,C.jsx)(\"button\",{className:\"ob-search-bar-autocomplete__result-item-button event_search\",\"data-index\":t,onKeyDown:N,\"data-action-detail\":(0,l.Vt)(e.title),role:\"link\",onClick:function(){return E(e.query)},dangerouslySetInnerHTML:{__html:e.title}})},t)}))})]})]})]},u)}x.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","d","default","x","n","a","s","o","i","c","u","l","h","f","p","m","y","v","Symbol","iterator","Array","isArray","g","Object","prototype","toString","call","slice","constructor","name","from","test","length","done","value","next","return","k","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","b","C","w","swiftypeAutocompleteUrl","indexOf","document_types","setFaqCategoriesAndResultsByCategory","categories","forEach","info","total_result_count","getCapitalizedValue","substr","toUpperCase","encodeURIComponent","join","_score","loadableGenerated","webpack","onSearch","placeholder","searchActionTitle","commonSearchesLabel","isSpinning","defaultValue","isSearchFaqOnly","isAutocompleteEnabled","searchTitle","searchCtaLabel","useState","S","R","useRef","useEffect","document","removeEventListener","T","_","suggestResults","catch","j","useCallback","addEventListener","pR","maximumAutocompleteResults","map","A","highlight","text","url","query","title","E","current","blur","L","preventDefault","K","getElementsByClassName","focus","N","U","keyCode","P","activeElement","getAttribute","parseInt","B","trim","jsxs","className","onSubmit","children","jsx","id","type","searchText","ref","autoComplete","onInput","currentTarget","onKeyDown","stopPropagation","submit","search","arialable","role","list","onMouseDown","Vt","onClick","dangerouslySetInnerHTML","__html","defaultProps","Request","Response"],"sourceRoot":""}