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,EACrGuc,GAAqB,GAIrB,IAHA,IAAIE,EAAc,GACdC,EAAed,aAAuC,EAASA,EAAOlN,YACtEiO,EAAQ,EAC0B,IAA/BD,EAAaT,OAAOzc,QAAc,CACrCmd,IACA,IAAIC,EAAclB,EAAYgB,EAAcH,EAAmBX,GAK/D,GAJIgB,EAAYpd,OAAS,IACrBid,GAAe,SAASpK,OAAOsK,IAAUnB,EAAWoB,EAAc,MAAQA,EAAa,aAE3FF,EAAeA,EAAaG,QAAQD,EAAa,IAC7CD,IAAUnB,EACV,KACP,CACDI,EAAOtN,UAAYmO,CACtB,CACJ,GAAE,KACI,EAAA9Y,EAAAA,KAAK,OAAQ,CAAEgF,IAAKA,GAC9B,E","sources":["webpack://frontend/./Features/FloorFinder/facet/CustomMultiCheckboxFacet.tsx","webpack://frontend/./Features/FloorFinder/productListPage/AccessoryResultPage.tsx","webpack://frontend/./Features/FloorFinder/productListPage/IframeFloorResultPage.tsx","webpack://frontend/./Features/FloorFinder/productListPage/productListPage.tsx","webpack://frontend/./Features/FloorFinder/productListPage/resultPage.tsx","webpack://frontend/./Features/GeneralSearch/index.tsx","webpack://frontend/./Features/GeneralSearch/tabs/ArticlesTab/index.tsx","webpack://frontend/./Features/GeneralSearch/tabs/GeneralTab/index.tsx","webpack://frontend/./Features/GeneralSearch/tabs/ProductsTab/index.tsx","webpack://frontend/./Features/GeneralSearch/tabs/StoriesTab/index.tsx","webpack://frontend/./Hooks/debounce/index.ts","webpack://frontend/./Hooks/index.ts","webpack://frontend/./Hooks/pagination/index.ts","webpack://frontend/./Hooks/query/index.ts","webpack://frontend/./api/client.ts","webpack://frontend/./api/index.ts","webpack://frontend/./api/resources/articlesService.ts","webpack://frontend/./api/resources/dealersService.ts","webpack://frontend/./api/resources/searchService.ts","webpack://frontend/./components/list/listGeneral/index.tsx","webpack://frontend/./components/loader/index.tsx","webpack://frontend/./components/newsList/article/index.tsx","webpack://frontend/./components/pagination/index.tsx","webpack://frontend/./components/titleSpan/index.tsx"],"sourcesContent":["import { appendClassName, getFilterValueDisplay } from \"@elastic/react-search-ui-views/lib/cjs/view-helpers\";\nimport React from \"react\";\nimport Brown from \"../assets/FacetImages/Brown.png\";\nimport Dark from '../assets/FacetImages/Dark.png';\nimport Golden from '../assets/FacetImages/Golden.png';\nimport Grey from '../assets/FacetImages/Grey.png';\nimport Light from '../assets/FacetImages/Light.png';\nimport { useGetMode } from '../../../Hooks';\nfunction CustomMultiCheckBoxFacet(_a) {\n var className = _a.className, label = _a.label, onMoreClick = _a.onMoreClick, onRemove = _a.onRemove, onSelect = _a.onSelect, options = _a.options, showMore = _a.showMore, showSearch = _a.showSearch, onSearch = _a.onSearch, searchPlaceholder = _a.searchPlaceholder, children = _a.children;\n // Display all checkbox elements by default\n // if (showMore) {\n // setTimeout(onMoreClick, 0);\n // }\n var mode = useGetMode();\n var styleFW500 = { fontWeight: 500 };\n return (React.createElement(\"div\", { className: appendClassName(\"filter__facet\", className) }, React.createElement(\"a\", { className: \"filter__facet__title\",\n 'data-bs-toggle': 'collapse',\n role: 'button',\n 'aria-expanded': 'false',\n href: '#collapse_' + label.replaceAll(\" \", \"_\"),\n 'aria-controls': 'collapse_' + label.replaceAll(\" \", \"_\") }, React.createElement(\"span\", { style: styleFW500 }, window.GetTranslation(label))), showSearch && (React.createElement(\"div\", { className: \"sui-facet-search\" }, React.createElement(\"input\", { className: \"sui-facet-search__text-input\", type: \"search\", placeholder: searchPlaceholder || \"Search\", onChange: function (e) {\n onSearch(e.target.value);\n } }))), React.createElement(\"div\", { className: \"collapse filter__facet__options \" + label.replaceAll(\" \", \"_\").toLowerCase(), id: \"collapse_\" + label.replaceAll(\" \", \"_\"), 'data-bs-parent': '#facets' }, options.length < 1 && React.createElement(\"div\", null, \"No matching options\"), options.map(function (option, index) {\n var checked = option.selected;\n var value = option.value;\n ;\n var getFloorImage = function () {\n switch (value) {\n case \"brown\":\n return Brown;\n case \"dark\":\n return Dark;\n case \"golden\":\n return Golden;\n case \"grey\":\n return Grey;\n case \"light\":\n return Light;\n default:\n return Light;\n }\n };\n return (React.createElement(\"div\", { className: \"form-check\", key: getFilterValueDisplay(option.value) }, React.createElement(\"input\", { className: \"form-check-input\", type: \"checkbox\", checked: checked,\n onChange: function () {\n var _a;\n var _b, _c;\n (checked ? onRemove(value) : onSelect(value));\n if (!checked) {\n var eventName = \"filter_B2C\";\n if (mode === 'professional') {\n eventName = \"filter_B2B\";\n }\n (_b = window === null || window === void 0 ? void 0 : window.dataLayer) === null || _b === void 0 ? void 0 : _b.push({\n event: eventName,\n productfilters: JSON.stringify((_a = {},\n _a[label] = value,\n _a.productlanguage = (_c = window.language) !== null && _c !== void 0 ? _c : \"en\",\n _a))\n });\n }\n },\n id: \"facet_\" + option.value.toString().replaceAll(\" \", \"_\") }), React.createElement(\"label\", { className: \"form-check-label \", htmlFor: \"facet_\" + option.value.toString().replaceAll(\" \", \"_\") }, React.createElement(\"span\", {}, (label) === \"Appearance\" ? window.GetTranslation(value) : value), (label) === \"Appearance\" && React.createElement(\"img\", { src: getFloorImage() }))));\n }), showMore && (React.createElement(\"button\", { type: \"button\", className: \"sui-facet-view-more float-end\", onClick: onMoreClick, \"aria-label\": \"Show more options\" }, \"\" + window.GetTranslation(\"more\"))))));\n}\nexport default CustomMultiCheckBoxFacet;\n;\n","var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport React from \"react\";\nimport TitleSpan from '../../../components/titleSpan';\nimport { useGetMode } from '../../../Hooks';\nvar AccessoryResultPage = function (_a) {\n var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;\n var result = _a.result;\n var mode = useGetMode();\n var image1 = (_b = result === null || result === void 0 ? void 0 : result.image1) === null || _b === void 0 ? void 0 : _b.snippet;\n if (image1 === \"\" || image1 === null || image1 === undefined) {\n image1 = window.noimage;\n }\n var lang = window.productLanguage;\n if (lang.toLowerCase() == \"zh-hans-cn\") {\n lang = \"zh-cn\";\n }\n var image2 = (_c = result === null || result === void 0 ? void 0 : result.image2) === null || _c === void 0 ? void 0 : _c.snippet;\n var host = window.location.hostname.toLowerCase();\n var path = window.location.pathname.toLowerCase();\n var homeSegment = \"\";\n if (path.includes(\"/home/\")) {\n homeSegment = \"/home\";\n }\n var itemurl = \"/\" + lang + homeSegment + \"/\" + ((_d = result === null || result === void 0 ? void 0 : result.productSku) === null || _d === void 0 ? void 0 : _d.snippet) + (mode === \"professional\" ? \"?mode=professional\" : \"\");\n ;\n if (lang == \"en\") {\n itemurl = \"/\" + ((_e = result === null || result === void 0 ? void 0 : result.productSku) === null || _e === void 0 ? void 0 : _e.snippet) + (mode === \"professional\" ? \"?mode=professional\" : \"\");\n ;\n }\n // const itemurl = \"/\" + lang + \"/\" +result?.productSku?.snippet;\n var productSku = (_f = result === null || result === void 0 ? void 0 : result.productSku) === null || _f === void 0 ? void 0 : _f.snippet;\n return (image1 != \"\" &&\n _jsx(\"li\", __assign({ className: \"col-12 col-sm-6 col-md-6 col-xl-4 col-xxl-3 list__element\" }, { children: _jsx(\"article\", { children: _jsxs(\"a\", __assign({ href: itemurl }, { children: [_jsx(\"div\", __assign({ className: \"list__element__image\" }, { children: _jsxs(\"figure\", { children: [_jsx(\"img\", { src: image1 + \"?fw=500&fh=500\", className: \"img-fluid\", alt: productSku }), image2 != \"\" && _jsx(\"img\", { src: ((_g = result === null || result === void 0 ? void 0 : result.image2) === null || _g === void 0 ? void 0 : _g.snippet) + \"?fw=500&fh=500\", className: \"img-fluid\", alt: productSku })] }) })), _jsx(\"div\", __assign({ className: \"list__element__title\" }, { children: _jsxs(\"h2\", { children: [_jsx(\"span\", { children: (_h = result === null || result === void 0 ? void 0 : result.title) === null || _h === void 0 ? void 0 : _h.snippet }), _jsx(TitleSpan, { title: (_j = result === null || result === void 0 ? void 0 : result.title) === null || _j === void 0 ? void 0 : _j.snippet })] }) })), lang.toLowerCase() !== 'en-us' &&\n _jsx(\"div\", __assign({ className: \"list__element__meta\" }, { children: _jsxs(\"ul\", { children: [((_k = result === null || result === void 0 ? void 0 : result.articleCode) === null || _k === void 0 ? void 0 : _k.snippet) &&\n _jsx(\"li\", { children: (_l = result === null || result === void 0 ? void 0 : result.articleCode) === null || _l === void 0 ? void 0 : _l.snippet }), ((_m = result === null || result === void 0 ? void 0 : result.productGroup) === null || _m === void 0 ? void 0 : _m.snippet) &&\n _jsx(\"li\", { children: (_o = result === null || result === void 0 ? void 0 : result.productGroup) === null || _o === void 0 ? void 0 : _o.snippet })] }) }))] })) }) })));\n};\nexport default AccessoryResultPage;\n","var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport TitleSpan from '../../../components/titleSpan';\nimport { useGetMode } from '../../../Hooks';\nvar IframeFloorResultPage = function (_a) {\n var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;\n var result = _a.result;\n var mode = useGetMode();\n var image1 = (_b = result === null || result === void 0 ? void 0 : result.image1) === null || _b === void 0 ? void 0 : _b.snippet;\n if (image1 === '' || image1 === null || image1 === undefined) {\n image1 =\n window.noimage;\n }\n var image2 = (_c = result === null || result === void 0 ? void 0 : result.image2) === null || _c === void 0 ? void 0 : _c.snippet;\n var lang = window.productLanguage;\n if (lang.toLowerCase() == \"zh-hans-cn\") {\n lang = \"zh-cn\";\n }\n var itemurl = \"/\" + lang + \"/\" + ((_d = result === null || result === void 0 ? void 0 : result.productSku) === null || _d === void 0 ? void 0 : _d.snippet);\n var productSku = (_e = result === null || result === void 0 ? void 0 : result.productSku) === null || _e === void 0 ? void 0 : _e.snippet;\n var treatment = \"\" + ((_f = result === null || result === void 0 ? void 0 : result.treatment) === null || _f === void 0 ? void 0 : _f.snippet);\n var line3 = \"\";\n var line4 = ((_g = result === null || result === void 0 ? void 0 : result.surfaceStructureMarketing) === null || _g === void 0 ? void 0 : _g.snippet) + \", \" + ((_h = result === null || result === void 0 ? void 0 : result.bevelMarketing) === null || _h === void 0 ? void 0 : _h.snippet);\n var line5 = (_j = result === null || result === void 0 ? void 0 : result.dimensions) === null || _j === void 0 ? void 0 : _j.snippet;\n return (image1 != '' && (_jsx(\"li\", __assign({ className: 'col-12 col-sm-6 col-md-6 col-xl-4 col-xxl-3 list__element' }, { children: _jsx(\"article\", { children: _jsxs(\"a\", { children: [_jsx(\"div\", __assign({ className: 'list__element__image' }, { children: _jsxs(\"figure\", { children: [_jsx(\"img\", { src: image1 + '?fw=500&fh=500', className: 'img-fluid', alt: (_k = result === null || result === void 0 ? void 0 : result.productSku) === null || _k === void 0 ? void 0 : _k.snippet }), image2 != '' && (_jsx(\"img\", { src: ((_l = result === null || result === void 0 ? void 0 : result.image2) === null || _l === void 0 ? void 0 : _l.snippet) + '?fw=500&fh=500', className: 'img-fluid', alt: (_m = result === null || result === void 0 ? void 0 : result.productSku) === null || _m === void 0 ? void 0 : _m.snippet }))] }) })), _jsx(\"div\", __assign({ className: 'list__element__title' }, { children: _jsxs(\"h2\", __assign({ style: { width: 'fit-content' } }, { children: [_jsx(\"span\", { children: (_o = result === null || result === void 0 ? void 0 : result.title) === null || _o === void 0 ? void 0 : _o.snippet }), _jsx(TitleSpan, { title: (_p = result === null || result === void 0 ? void 0 : result.title) === null || _p === void 0 ? void 0 : _p.snippet })] })) })), lang.toLowerCase() !== \"en-us\" &&\n _jsx(\"div\", __assign({ className: 'list__element__meta' }, { children: _jsxs(\"ul\", { children: [((_q = result === null || result === void 0 ? void 0 : result.treatment) === null || _q === void 0 ? void 0 : _q.snippet) && (_jsx(\"li\", { children: (_r = result === null || result === void 0 ? void 0 : result.treatment) === null || _r === void 0 ? void 0 : _r.snippet })), line4 && _jsx(\"li\", { children: line4 }), line5 && _jsx(\"li\", { children: line5 })] }) }))] }) }) }))));\n};\nexport default IframeFloorResultPage;\n","var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nimport { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from \"react/jsx-runtime\";\nimport React from 'react';\nimport { useState, useRef } from 'react';\nimport { Helmet, HelmetProvider } from 'react-helmet-async';\nimport AppSearchAPIConnector from '@elastic/search-ui-app-search-connector';\nimport reset from '@elastic/search-ui/lib/cjs/actions/reset';\nimport SlideToggle from \"react-slide-toggle\";\nimport { ErrorBoundary, Facet, SearchProvider, Results, Paging, Sorting, SearchBox, WithSearch, } from '@elastic/react-search-ui';\nimport CustomMultiCheckBoxFacet from '../facet/CustomMultiCheckboxFacet';\nimport { Layout } from '@elastic/react-search-ui-views';\nimport resultPage from './resultPage';\nimport AccessortyResultPage from './AccessoryResultPage';\nimport IframeFloorResultPage from './IframeFloorResultPage';\nvar connector = new AppSearchAPIConnector({\n searchKey: '',\n engineName: 'search-ui',\n endpointBase: window.PimEndpointBase,\n});\nvar pagesize = window.windowframe === 'iframe' ? 12 : 20;\nvar productListPage = function (_a) {\n var _b;\n var searchTerm = _a.searchTerm, language = _a.language, _c = _a.context, context = _c === void 0 ? '' : _c;\n var _d = useState(''), FloorsearchTerm = _d[0], setSearchTerm = _d[1];\n var slideToggleRef = useRef(null);\n var handelToggle = function (event) {\n var _a, _b;\n var node = event.currentTarget;\n (_a = node.closest(\".filter-toggle\")) === null || _a === void 0 ? void 0 : _a.classList.toggle('filter--open');\n (_b = slideToggleRef === null || slideToggleRef === void 0 ? void 0 : slideToggleRef.current) === null || _b === void 0 ? void 0 : _b.toggle();\n };\n // const [isFilter, setToggleFilter] = useState(false);\n // const navigate = useNavigate();\n var lang = window.language;\n //const searchParams = new URLSearchParams(document.location.search);\n // const [searchParams, setSearchParams] = useSearchParams();\n var contentType = window.contentType ? window.contentType : context;\n var searchText = !window.query ? searchTerm : window.query;\n if (FloorsearchTerm.length >= 3) {\n searchText = FloorsearchTerm;\n }\n var isHome = window.contextFilter == \"home\";\n var searchQuery = {\n contentType: contentType,\n contextFilter: window.contextFilter,\n language: window.language ? window.language : language,\n productLanguage: window.productLanguage ? window.productLanguage : language,\n // page: {size: 20, current: 1},\n query: searchText,\n showPrices: JSON.parse(window.showPrices),\n };\n // const ToggleFilter = (event: React.MouseEvent) => {\n // setToggleFilter(!isFilter);\n // event.preventDefault();\n // };\n var html2 = document.getElementById('spnCompareCount');\n if (html2 !== null && typeof html2 !== undefined && window.compareFloors != null && typeof window.compareFloors !== undefined) {\n html2.innerText = ((_b = window.compareFloors) === null || _b === void 0 ? void 0 : _b.length) || 0;\n }\n var SORT_OPTIONS = [\n {\n name: 'Order by',\n value: '',\n direction: '',\n },\n {\n name: 'Title',\n value: 'title',\n direction: 'asc',\n },\n {\n name: 'Price (low-high)',\n value: 'defaultprice',\n direction: 'asc',\n },\n {\n name: 'Price (high-low)',\n value: 'defaultprice',\n direction: 'desc',\n },\n ];\n var width = window.innerWidth;\n var isMobile = false;\n if (width < 768) {\n isMobile = true;\n }\n var config = {\n alwaysSearchOnInitialLoad: true,\n searchQuery: searchQuery,\n autocompleteQuery: {\n language: lang,\n },\n apiConnector: connector,\n trackUrlState: true,\n initialState: {\n \"resultsPerPage\": pagesize\n }\n };\n var queryText = JSON.stringify(searchText);\n var maxresults = 15;\n return (_jsx(React.Fragment, { children: _jsxs(HelmetProvider, { children: [_jsx(Helmet, { children: _jsx(\"title\", { children: window.GetTranslation('browserTitle') }) }), _jsx(SearchProvider, __assign({ config: config }, { children: _jsx(WithSearch, __assign({ mapContextToProps: function (props) { return props; } }, { children: function (props) {\n var _a = useState(0), currentPage = _a[0], setCurrentPage = _a[1];\n var resetFilter = function () {\n reset();\n };\n var noSearchText = queryText == null || queryText == \"\" || typeof queryText == undefined;\n return (_jsx(ResponseWrapper, __assign({ filters: props.filters, onFiltersChange: function () {\n // console.log(searchParams.get('mode'));\n // console.log(\n // qs.stringify(props.filters, { encodeValuesOnly: true })\n // );\n // const params = qs.stringify(props.filters, {\n // encodeValuesOnly: true,\n // });\n // const newurl =\n // window.location.protocol +\n // '//' +\n // window.location.host +\n // window.location.pathname +\n // '?' +\n // searchParams.get('mode') !=\n // null\n // ? '?mode=professional'\n // : '';\n // params;\n //window.history.pushState({ path: newurl }, '', newurl);\n // navigate({\n // search: encodeURIComponent(JSON.stringify(props.filters)),\n // });\n // if (searchParams.get('mode')) {\n // navigate({ search: 'treatment=aaaaa' });\n // }\n } }, { children: _jsx(\"div\", __assign({ className: 'App' }, { children: _jsx(ErrorBoundary, { children: _jsx(Layout, { className: '', sideContent: _jsx(SlideToggle, { duration: 1000, collapsed: isMobile, whenReversedUseBackwardEase: false, ref: slideToggleRef, render: function (_a) {\n var toggle = _a.toggle, setCollapsibleElement = _a.setCollapsibleElement;\n return (_jsxs(\"div\", { children: [_jsxs(\"div\", __assign({ className: 'filter-toggle' }, { children: [_jsx(\"button\", __assign({ type: 'button', onClick: handelToggle }, { children: \"Filter\" })), (props.filters.length != 0 || FloorsearchTerm != '') &&\n _jsx(\"div\", __assign({ className: 'filter-reset-mobile' }, { children: _jsx(\"a\", __assign({ href: '?q=', onClick: resetFilter }, { children: window.GetTranslation('Reset') })) }))] })), _jsxs(\"div\", __assign({ ref: setCollapsibleElement }, { children: [_jsxs(\"div\", __assign({ className: 'filter', id: 'facets' }, { children: [false && props.wasSearched && (_jsx(Sorting, { sortOptions: SORT_OPTIONS })), contentType === 'floors' && window.sourcePage === 'floorfinder' &&\n _jsxs(\"div\", __assign({ className: 'filter__search' }, { children: [_jsx(\"label\", __assign({ htmlFor: 'xyz', className: 'visually-hidden' }, { children: \"Search\" })), _jsx(SearchBox, { view: function (_a) {\n var value = _a.value, onChange = _a.onChange, onSubmit = _a.onSubmit;\n return (_jsx(\"input\", { type: 'text', id: 'xyz', placeholder: window.GetTranslation('Search'), autoFocus: true, value: value, onChange: function (e) { setSearchTerm(e.target.value); onChange(e.target.value); } }));\n } }), _jsx(\"button\", { type: 'button' })] })), _jsx(Facet, { field: 'category', label: 'Type', filterType: 'any', view: CustomMultiCheckBoxFacet }), !isHome &&\n _jsx(Facet, { field: 'appearancekey', label: 'Appearance', filterType: 'any', view: CustomMultiCheckBoxFacet }), _jsx(Facet, { field: 'wood', label: 'Wood', filterType: 'any', view: CustomMultiCheckBoxFacet }), window.productLanguage == 'en-us' && (_jsx(Facet, { field: 'productgroup', label: 'Format', filterType: 'any', view: CustomMultiCheckBoxFacet })), window.productLanguage != 'en-us' && (_jsx(Facet, { field: 'format', label: 'Format', filterType: 'any', view: CustomMultiCheckBoxFacet })), _jsx(Facet, { field: 'treatment', label: 'Treatment', filterType: 'any', show: maxresults, view: CustomMultiCheckBoxFacet }), _jsx(Facet, { field: 'color', label: 'Color', view: CustomMultiCheckBoxFacet }), _jsx(Facet, { field: 'structure', label: 'Structure', view: CustomMultiCheckBoxFacet }), _jsx(Facet, { field: 'grading', label: 'Grading', filterType: 'any', view: CustomMultiCheckBoxFacet }), _jsx(Facet, { field: 'bevel', label: 'Bevel', view: CustomMultiCheckBoxFacet }), _jsx(Facet, { field: 'width_string' //\"dimension2\"\n , label: 'Width', view: CustomMultiCheckBoxFacet }), !isHome &&\n _jsx(Facet, { field: 'thickness_string' //\"dimension3\"\n , label: 'Thickness', view: CustomMultiCheckBoxFacet }), !isHome &&\n _jsx(Facet, { field: 'connection', label: 'Connection', view: CustomMultiCheckBoxFacet }), !isHome &&\n _jsx(Facet, { field: 'style', label: 'Style', view: CustomMultiCheckBoxFacet })] })), _jsx(\"input\", { type: 'hidden', id: props.filters.length == 0 && FloorsearchTerm == '' && props.rawResponse.rawInfo && props.rawResponse.rawInfo.meta.page\n .total_results == 0\n ? 'divZeroProductCount' : '' }), _jsxs(\"div\", __assign({ className: 'result-count' }, { children: [props.rawResponse.rawInfo\n ? props.rawResponse.rawInfo.meta.page\n .total_results\n : '', \"\\u00A0 \", window.GetTranslation('Products')] })), (props.filters.length != 0 || FloorsearchTerm != '') &&\n _jsx(\"div\", __assign({ className: 'filter-reset' }, { children: _jsx(\"a\", __assign({ href: '?q=', onClick: resetFilter }, { children: window.GetTranslation('Reset') })) }))] }))] }));\n } }), bodyHeader: _jsx(\"div\", { className: 'general-data-top-row-right float-end' }), bodyContent: _jsx(Results, { titleField: 'title', urlField: 'itemurl', thumbnailField: 'image1', resultView: contentType === 'floors'\n ? (window.windowframe === 'iframe' ? IframeFloorResultPage : resultPage)\n : AccessortyResultPage, className: 'row list', shouldTrackClickThrough: true }), bodyFooter: _jsx(Paging, {}) }) }) })) })));\n } })) }))] }) }));\n};\nexport default productListPage;\nfunction ResponseWrapper(_a) {\n var filters = _a.filters, children = _a.children, onFiltersChange = _a.onFiltersChange;\n onFiltersChange();\n return _jsx(_Fragment, { children: children });\n}\n","var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nvar __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while (_) try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n};\nvar _a;\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport TitleSpan from '../../../components/titleSpan';\nimport { useGetMode } from '../../../Hooks';\nvar SkusAddedToWishlistCount = ((_a = window.wishlistFloors) === null || _a === void 0 ? void 0 : _a.length) || 0;\nvar headers = {\n 'Content-Type': 'application/json;charset=UTF-8',\n};\nvar antiForgeryToken = document.getElementById('hidAntiForgeryToken');\nif (antiForgeryToken !== null) {\n headers['RequestVerificationToken'] = antiForgeryToken.value;\n}\nvar ResultPage = function (_a) {\n var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x;\n var result = _a.result;\n var mode = useGetMode();\n var StoreCompare = function (event) { return __awaiter(void 0, void 0, void 0, function () {\n var SkusAddedToCompareCount, removeFromCompare, maxFloorWarningMessage, selectedSku, url, html2, temp, html1;\n var _a;\n return __generator(this, function (_b) {\n SkusAddedToCompareCount = ((_a = window.compareFloors) === null || _a === void 0 ? void 0 : _a.length) || 0;\n document.getElementsByClassName('page-alert-content')[0].textContent = '';\n removeFromCompare = event.currentTarget.classList.contains('active');\n event.preventDefault();\n if (SkusAddedToCompareCount >= 3 && !removeFromCompare) {\n maxFloorWarningMessage = window.GetTranslation('maxComparedFloorsWarning');\n showMessage(maxFloorWarningMessage, null);\n return [2 /*return*/];\n }\n selectedSku = event.currentTarget.attributes['data-sku'].value;\n url = '/umbraco/surface/session/setsession';\n html2 = document.getElementsByClassName('nav-tools--compare')[0];\n html2.classList.remove('inactive');\n if (removeFromCompare) {\n url =\n '/umbraco/surface/session/removesession';\n SkusAddedToCompareCount--;\n }\n else {\n SkusAddedToCompareCount++;\n }\n temp = 0;\n // fetch(url).then(response => response.json())\n // .then(data => console.log(data))\n // .catch(error => console.error('Comparesku Error:', error));\n // Check if the token is null before including it in the headers\n fetch(url, {\n method: 'POST',\n headers: headers,\n body: JSON.stringify({\n Sku: selectedSku,\n SessionName: 'CompareSkus'\n }),\n }).then(function (response) { return response.json(); })\n .then(function (data) { return window.compareFloors = data.skuList; }).catch(function (error) { return console.error(' Comparesku Error:', error); });\n toggleClassWithChild(event);\n html1 = document.getElementById('spnCompareCount');\n if (html1 !== null && html1 !== undefined) {\n html1.innerText = SkusAddedToCompareCount.toString();\n // hide the compare icon from header\n if (SkusAddedToCompareCount <= 0) {\n html2.classList.toggle('inactive');\n }\n }\n return [2 /*return*/];\n });\n }); };\n var StoreWishlist = function (event) { return __awaiter(void 0, void 0, void 0, function () {\n var removeFromWishlist, selectedSku, floorTitle, url, html2, temp, html1;\n return __generator(this, function (_a) {\n removeFromWishlist = event.currentTarget.classList.contains('active');\n event.preventDefault();\n selectedSku = event.target.attributes['data-wishlistsku']\n .value;\n floorTitle = event.target.attributes['data-floorname']\n .value;\n url = '/umbraco/surface/session/setsession';\n html2 = document.getElementById('slidein-wishlist');\n if (html2 !== null && html2 !== undefined) {\n html2.classList.remove('d-none');\n }\n SkusAddedToWishlistCount = SkusAddedToWishlistCount || 0;\n if (removeFromWishlist) {\n url =\n '/umbraco/surface/session/removesession';\n SkusAddedToWishlistCount--;\n }\n else {\n window.dataLayer.push({\n event: 'addToWishlist',\n product: JSON.stringify({\n 'name': floorTitle,\n 'id': selectedSku,\n 'category': 'Floor'\n })\n });\n SkusAddedToWishlistCount++;\n }\n temp = 0;\n // fetch(url).then(response => response.json())\n // .then(data => console.log(data))\n // .catch(error => console.error(' wishlist Error:', error));\n fetch(url, {\n method: 'POST',\n headers: headers,\n body: JSON.stringify({\n Sku: selectedSku,\n SessionName: 'WishlistSkus'\n })\n }).then(function (response) {\n }).catch(function (error) { return console.error(' wishlist Error:', error); });\n toggleClassWithChild(event);\n html1 = document.getElementsByClassName('spnWishlistCount');\n if (html1[0] !== null && html1[0] !== undefined) {\n html1[0].innerHTML = SkusAddedToWishlistCount.toString();\n }\n if (html1[1] !== null && html1[1] !== undefined) {\n html1[1].innerHTML = SkusAddedToWishlistCount.toString();\n }\n //hide the qty when wishlist count is zero\n if (html1[0] !== null && html1[0] !== undefined) {\n if (SkusAddedToWishlistCount <= 0) {\n html1[0].classList.add('d-none');\n }\n else {\n html1[0].classList.remove('d-none');\n }\n }\n return [2 /*return*/];\n });\n }); };\n function showMessage(maxFloorWarningMessage, severity) {\n var icon = severity != null && severity !== ''\n ? 'page-alert-' + severity\n : 'page-alert-info';\n document.getElementsByClassName('page-alert-icon')[0].classList.add('icon');\n document.getElementsByClassName('page-alert-content')[0].textContent =\n maxFloorWarningMessage;\n document\n .getElementsByClassName('nav-tools--alerts')[0]\n .classList.toggle('active');\n setTimeout(function () {\n document\n .getElementsByClassName('nav-tools--alerts')[0]\n .classList.toggle('active');\n }, 5000);\n window.scrollTo(0, 0);\n }\n var toggleClassWithChild = function (event) {\n event.target.classList.toggle('active');\n event.target.children[0].classList.toggle('d-none');\n event.target.children[1].classList.toggle('d-none');\n };\n var image1 = (_b = result === null || result === void 0 ? void 0 : result.image1) === null || _b === void 0 ? void 0 : _b.snippet;\n if (image1 === '' || image1 === null || image1 === undefined) {\n image1 =\n window.noimage;\n }\n var image2 = (_c = result === null || result === void 0 ? void 0 : result.image2) === null || _c === void 0 ? void 0 : _c.snippet;\n var lang = window.productLanguage;\n var host = window.location.hostname.toLowerCase();\n var path = window.location.pathname.toLowerCase();\n var homeSegment = \"\";\n if (path.includes(\"/home/\")) {\n homeSegment = \"/home\";\n }\n if (lang.toLowerCase() == \"zh-hans-cn\") {\n lang = \"zh-cn\";\n }\n var itemurl = \"/\" + lang + homeSegment + \"/\" + ((_d = result === null || result === void 0 ? void 0 : result.productSku) === null || _d === void 0 ? void 0 : _d.snippet) + (mode === \"professional\" ? \"?mode=professional\" : \"\");\n if (lang == \"en\") {\n itemurl = \"/\" + ((_e = result === null || result === void 0 ? void 0 : result.productSku) === null || _e === void 0 ? void 0 : _e.snippet) + (mode === \"professional\" ? \"?mode=professional\" : \"\");\n }\n // const itemurl = \"/\" + lang + \"/\" + result?.productSku?.snippet + (mode === \"professional\" ? \"?mode=professional\" : \"\" );\n var productSku = (_f = result === null || result === void 0 ? void 0 : result.productSku) === null || _f === void 0 ? void 0 : _f.snippet;\n var treatment = \"\" + ((_g = result === null || result === void 0 ? void 0 : result.treatment) === null || _g === void 0 ? void 0 : _g.snippet);\n // let spec5 = \"\";\n // if ((result?.spec5AsColor?.snippet === \"\" || result?.spec5AsColor?.snippet === null) && treatment.toLowerCase().includes(\"live pure\"))\n // {\n // spec5 = \"Live pure\";\n // }\n // const line1 = result?.woodTopLayerWeb?.snippet+ \" \" + spec5+ \" \" + result?.addWoodTreatmentSelect?.snippet+ \" \" + result?.gradingMarketing?.snippet\n // const line2 = result?.productGroup?.snippet+ \" \" + result?.layingPatternLabelText?.snippet\n // const title = line1 + \" \" +line2 ;\n var line3 = \"\";\n var line4 = ((_h = result === null || result === void 0 ? void 0 : result.surfaceStructureMarketing) === null || _h === void 0 ? void 0 : _h.snippet) + \", \" + ((_j = result === null || result === void 0 ? void 0 : result.bevelMarketing) === null || _j === void 0 ? void 0 : _j.snippet);\n var line5 = (_k = result === null || result === void 0 ? void 0 : result.dimensions) === null || _k === void 0 ? void 0 : _k.snippet;\n return (image1 != '' && (_jsx(\"li\", __assign({ className: 'col-12 col-sm-6 col-md-6 col-xl-4 col-xxl-3 list__element' }, { children: _jsxs(\"article\", { children: [_jsxs(\"div\", __assign({ className: 'list__element__tools' }, { children: [_jsxs(\"a\", __assign({ className: \"list__element__tools--fav \" + (((_l = window.wishlistFloors) === null || _l === void 0 ? void 0 : _l.includes(productSku)) ? 'active' : ''), \"data-wishlistsku\": (_m = result === null || result === void 0 ? void 0 : result.productSku) === null || _m === void 0 ? void 0 : _m.snippet, \"data-floorname\": (_o = result === null || result === void 0 ? void 0 : result.title) === null || _o === void 0 ? void 0 : _o.snippet, role: 'button', onClick: StoreWishlist }, { children: [_jsx(\"span\", __assign({ className: ' visually-hidden-focusable wishlistfloor' }, { children: \"Add to favorites\" })), _jsx(\"span\", __assign({ className: ' visually-hidden-focusable wishlistfloor d-none' }, { children: \"Remove from favorites\" }))] })), _jsxs(\"a\", __assign({ className: \"list__element__tools--compare \" + (((_p = window.compareFloors) === null || _p === void 0 ? void 0 : _p.includes(productSku)) ? 'active' : ''), \"data-sku\": (_q = result === null || result === void 0 ? void 0 : result.productSku) === null || _q === void 0 ? void 0 : _q.snippet, role: 'button', href: '', onClick: StoreCompare }, { children: [_jsx(\"span\", __assign({ className: 'visually-hidden-focusable comparefloor' }, { children: \"Compare this product\" })), _jsx(\"span\", __assign({ className: ' visually-hidden-focusable comparefloor d-none' }, { children: \"Remove from comparison\" }))] }))] })), _jsxs(\"a\", __assign({ className: 'gtm_floorelement', href: itemurl }, { children: [_jsx(\"div\", __assign({ className: 'list__element__image' }, { children: _jsxs(\"figure\", { children: [_jsx(\"img\", { src: image1 + '?fw=500&fh=500', className: 'img-fluid', alt: (_r = result === null || result === void 0 ? void 0 : result.productSku) === null || _r === void 0 ? void 0 : _r.snippet }), image2 != '' && (_jsx(\"img\", { src: ((_s = result === null || result === void 0 ? void 0 : result.image2) === null || _s === void 0 ? void 0 : _s.snippet) + '?fw=500&fh=500', className: 'img-fluid', alt: (_t = result === null || result === void 0 ? void 0 : result.productSku) === null || _t === void 0 ? void 0 : _t.snippet }))] }) })), _jsx(\"div\", __assign({ className: 'list__element__title' }, { children: _jsxs(\"h2\", __assign({ style: { width: 'fit-content' } }, { children: [_jsx(\"span\", { children: (_u = result === null || result === void 0 ? void 0 : result.title) === null || _u === void 0 ? void 0 : _u.snippet }), _jsx(TitleSpan, { title: (_v = result === null || result === void 0 ? void 0 : result.title) === null || _v === void 0 ? void 0 : _v.snippet })] })) })), lang.toLowerCase() !== \"en-us\" &&\n _jsx(\"div\", __assign({ className: 'list__element__meta' }, { children: _jsxs(\"ul\", { children: [((_w = result === null || result === void 0 ? void 0 : result.treatment) === null || _w === void 0 ? void 0 : _w.snippet) && (_jsx(\"li\", { children: (_x = result === null || result === void 0 ? void 0 : result.treatment) === null || _x === void 0 ? void 0 : _x.snippet })), line4 && _jsx(\"li\", { children: line4 }), line5 && _jsx(\"li\", { children: line5 })] }) }))] }))] }) }))));\n};\nexport default ResultPage;\n","var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport { useEffect, useState } from 'react';\nimport { createRoot } from 'react-dom/client';\nimport { queryClient } from '../../api/client';\nimport { QueryClientProvider } from '@tanstack/react-query';\nimport useDebounce from '../../Hooks/debounce';\nimport { useSearchTabs } from '../../Hooks/query';\nimport ArticlesTab from './tabs/ArticlesTab';\nimport { Loader, LoaderSize } from '../../components/loader';\nimport classNames from 'classnames';\nimport StoriesTab from './tabs/StoriesTab';\nimport ProductsTab from './tabs/ProductsTab';\nimport GeneralTab from './tabs/GeneralTab';\nvar Tabs;\n(function (Tabs) {\n Tabs[\"Empty\"] = \"\";\n Tabs[\"Products\"] = \"Products\";\n Tabs[\"Accessories\"] = \"Accessories\";\n Tabs[\"NewsArticles\"] = \"News\";\n Tabs[\"ReferenceArticles\"] = \"Reference\";\n Tabs[\"Articles\"] = \"Articles\";\n Tabs[\"Stories\"] = \"Stories\";\n Tabs[\"General\"] = \"General\";\n})(Tabs || (Tabs = {}));\nexport var ArticleTypes;\n(function (ArticleTypes) {\n ArticleTypes[\"News\"] = \"newsArticle\";\n ArticleTypes[\"Reference\"] = \"referenceArticle\";\n ArticleTypes[\"Article\"] = \"articlepage\";\n})(ArticleTypes || (ArticleTypes = {}));\nexport function init(element, props) {\n var _a;\n var searchQuery = (_a = new URL(window.location.href).searchParams.get('q')) !== null && _a !== void 0 ? _a : '';\n var root = createRoot(element);\n root.render(_jsx(QueryClientProvider, __assign({ client: queryClient }, { children: _jsx(GeneralSearch, __assign({}, props, { currentSearch: searchQuery })) })));\n}\nvar getTab = function (type) {\n switch (type) {\n case Tabs.Products:\n return Tabs.Products;\n case Tabs.Accessories:\n return Tabs.Accessories;\n case Tabs.NewsArticles:\n return Tabs.NewsArticles;\n case Tabs.ReferenceArticles:\n return Tabs.ReferenceArticles;\n case Tabs.Articles:\n return Tabs.Articles;\n case Tabs.Stories:\n return Tabs.Stories;\n case Tabs.General:\n return Tabs.General;\n default:\n return Tabs.Empty;\n }\n};\nvar GeneralSearch = function (_a) {\n var translations = _a.translations, currentSearch = _a.currentSearch, language = _a.language;\n var _b = useState(currentSearch), search = _b[0], setSearch = _b[1];\n var searchTerm = useDebounce(search || '', 500);\n var _c = useState(Tabs.Empty), currentTab = _c[0], setCurrentTab = _c[1];\n var _d = useSearchTabs(searchTerm, language), _e = _d.data, data = _e === void 0 ? [] : _e, isFetching = _d.isFetching, isLoading = _d.isLoading;\n useEffect(function () {\n var newUrl = new URL(window.location.href);\n if (searchTerm) {\n newUrl.searchParams.set('q', search);\n history.replaceState({}, '', newUrl.toString());\n }\n else {\n newUrl.searchParams.delete('q');\n history.replaceState({}, '', newUrl.toString());\n }\n }, [searchTerm]);\n useEffect(function () {\n setCurrentTab(Tabs.Empty);\n }, [searchTerm]);\n useEffect(function () {\n // if (currentTab === Tabs.Empty && data?.length > 0) {\n if ((data === null || data === void 0 ? void 0 : data.length) > 0) {\n setCurrentTab(getTab(data[0].key));\n }\n }, [data]);\n var getTabTranslation = function (tab) {\n switch (tab) {\n case Tabs.Products:\n return translations.Products_Tab;\n case Tabs.Accessories:\n return translations.Accessories_Tab;\n case Tabs.NewsArticles:\n return translations.News_Articles_Tab;\n case Tabs.Articles:\n return translations.Articles_Tab;\n case Tabs.ReferenceArticles:\n return translations.Reference_Articles_Tab;\n case Tabs.Stories:\n return translations.Stories_Tab;\n case Tabs.General:\n return translations.General_Tab;\n default:\n return '';\n }\n };\n var renderTabContent = function (tab) {\n switch (tab) {\n case Tabs.Products:\n return (_jsx(ProductsTab, { searchTerm: searchTerm, language: language, context: 'floors' }));\n case Tabs.Accessories:\n return (_jsx(ProductsTab, { searchTerm: searchTerm, language: language, context: 'accessories' }));\n case Tabs.General:\n return (_jsx(GeneralTab, { searchTerm: searchTerm, pageSize: 9, translations: translations }));\n case Tabs.NewsArticles:\n return (_jsx(ArticlesTab, { searchTerm: searchTerm, pageSize: 9, articleType: ArticleTypes.News, translations: translations }));\n case Tabs.ReferenceArticles:\n return (_jsx(ArticlesTab, { searchTerm: searchTerm, pageSize: 9, articleType: ArticleTypes.Reference, translations: translations }));\n case Tabs.Articles:\n return (_jsx(ArticlesTab, { searchTerm: searchTerm, pageSize: 9, articleType: ArticleTypes.Article, translations: translations }));\n case Tabs.Stories:\n return (_jsx(StoriesTab, { searchTerm: searchTerm, pageSize: 9, translations: translations }));\n default:\n return _jsx(\"span\", { children: translations.No_Search_Results });\n }\n };\n var handleChange = function (event) {\n setSearch(event.target.value);\n if (event.target.value.length >= 3) {\n window.dataLayer.push({\n event: \"general_search\",\n });\n }\n };\n var handleKeyDown = function (e) {\n if ((e.target.value.length >= 3) && e.altKey && e.key === 'Enter') {\n e.preventDefault();\n setSearch(search); // Ensure you use the current value for setting the search\n if (search.length >= 3) {\n window.dataLayer.push({\n event: \"general_search\",\n });\n }\n }\n };\n return (_jsxs(\"div\", __assign({ className: 'block block__list block__list__search' }, { children: [_jsxs(\"div\", __assign({ className: 'block__header' }, { children: [_jsxs(\"div\", __assign({ className: 'search' }, { children: [_jsx(\"div\", __assign({ className: 'search__input' }, { children: _jsx(\"input\", { value: search, type: 'search', placeholder: translations.Search_Site_Content, className: 'form-control gtm_searchall', id: 'gtm_generalsearchtext', onChange: handleChange, onKeyDown: handleKeyDown, style: { border: 'none' } }) })), _jsx(\"div\", __assign({ className: 'search__submit' }, { children: _jsx(\"button\", __assign({ type: 'submit', value: 'Submit', className: 'form-control' }, { children: _jsx(\"span\", __assign({ className: 'visually-hidden-focusable' }, { children: \"Search\" })) })) }))] })), data && data.length > 0 && (_jsx(\"div\", __assign({ className: 'row' }, { children: _jsx(\"div\", __assign({ className: 'col-md-12' }, { children: !isFetching && !isLoading && data && (_jsx(\"nav\", __assign({ className: 'list__categories' }, { children: _jsx(\"ul\", { children: data &&\n data.map(function (tab, index) {\n var _a;\n return (_jsx(\"li\", __assign({ onClick: function () { return setCurrentTab(getTab(tab.key)); } }, { children: _jsx(\"a\", __assign({ className: classNames({\n active: currentTab === tab.key,\n }) }, { children: (_a = getTabTranslation(tab.key)) !== null && _a !== void 0 ? _a : tab.value })) }), \"\".concat(tab.key, \"_\").concat(index)));\n }) }) }))) })) })))] })), _jsxs(\"div\", __assign({ className: 'block__content' }, { children: [isFetching && isLoading && _jsx(Loader, { size: LoaderSize.M }), !isFetching && !isLoading && renderTabContent(currentTab)] }))] })));\n};\nexport default GeneralSearch;\n","var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nimport { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport { useState } from 'react';\nimport { Loader, LoaderSize } from '../../../../components/loader';\nimport ArticleListItem from '../../../../components/newsList/article';\nimport Pagination from '../../../../components/pagination';\nimport { useSearchArticles } from '../../../../Hooks/query';\nvar ArticlesTab = function (_a) {\n var _b;\n var searchTerm = _a.searchTerm, pageSize = _a.pageSize, articleType = _a.articleType, translations = _a.translations;\n var _c = useState(0), currentPage = _c[0], setCurrentPage = _c[1];\n var _d = useSearchArticles(searchTerm, pageSize, currentPage, articleType), data = _d.data, isFetching = _d.isFetching, isLoading = _d.isLoading;\n return (_jsxs(_Fragment, { children: [isFetching && isLoading && _jsx(Loader, { size: LoaderSize.M }), _jsx(\"div\", __assign({ className: 'row list' }, { children: data &&\n ((_b = data.articles) === null || _b === void 0 ? void 0 : _b.map(function (article) { return (_jsx(\"div\", __assign({ className: 'col-sm-12 col-md-12 col-lg-6 col-xl-4 col-xxl-4 list__element' }, { children: _jsx(ArticleListItem, { url: article.url, title: article.title, description: article.shortDescription, imageUrl: article.articlesListImage, tag: articleType.toLowerCase().includes(\"news\")\n ? translations.News\n : articleType.toLowerCase().includes(\"reference\") ? translations.Reference : translations.Article }) }), article.url)); })) })), data && data.total > 0 && (_jsx(Pagination, { totalPages: Math.ceil(data.total / pageSize), currentPage: currentPage, previous: function () { return setCurrentPage(function (old) { return (old === 0 ? 0 : old - 1); }); }, next: function () {\n return setCurrentPage(function (old) {\n return old === Math.ceil(data.total / pageSize) - 1 ? old : old + 1;\n });\n }, setCurrent: setCurrentPage }))] }));\n};\nexport default ArticlesTab;\n","var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nimport { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport { useState } from 'react';\nimport { Loader, LoaderSize } from '../../../../components/loader';\nimport ListGeneral from '../../../../components/list/listGeneral';\nimport Pagination from '../../../../components/pagination';\nimport { useSearchGeneral } from '../../../../Hooks/query';\nvar GeneralTab = function (_a) {\n var _b;\n var searchTerm = _a.searchTerm, pageSize = _a.pageSize, translations = _a.translations;\n var _c = useState(0), currentPage = _c[0], setCurrentPage = _c[1];\n var _d = useSearchGeneral(searchTerm, pageSize, currentPage), data = _d.data, isFetching = _d.isFetching, isLoading = _d.isLoading;\n return (_jsxs(_Fragment, { children: [isFetching && isLoading && _jsx(Loader, { size: LoaderSize.M }), _jsx(\"div\", __assign({ className: 'row list' }, { children: data &&\n ((_b = data.generalitems) === null || _b === void 0 ? void 0 : _b.map(function (article) { return (_jsx(\"div\", __assign({ className: ' ' }, { children: _jsx(ListGeneral, { url: article.itemUrl, title: article.title, itemid: article.itemId }) }), article.itemId)); })) })), data && data.total > 0 && (_jsx(Pagination, { totalPages: Math.ceil(data.total / pageSize), currentPage: currentPage, previous: function () { return setCurrentPage(function (old) { return (old === 0 ? 0 : old - 1); }); }, next: function () {\n return setCurrentPage(function (old) {\n return old === Math.ceil(data.total / pageSize) - 1 ? old : old + 1;\n });\n }, setCurrent: setCurrentPage }))] }));\n};\nexport default GeneralTab;\n","var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport ProductListPage from '../../../FloorFinder/productListPage/productListPage';\nvar ProductsTab = function (_a) {\n var searchTerm = _a.searchTerm, language = _a.language, context = _a.context;\n return (_jsx(\"div\", __assign({ className: 'block block__list block__list__products' }, { children: _jsx(\"div\", __assign({ className: 'block__content' }, { children: _jsx(ProductListPage, { searchTerm: searchTerm, language: language, context: context }) })) })));\n};\nexport default ProductsTab;\n","var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nimport { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport React, { useState } from 'react';\nimport { useSearchStories } from '../../../../Hooks/query';\nimport { Loader, LoaderSize } from '../../../../components/loader';\nimport Pagination from '../../../../components/pagination';\nimport ArticleListItem from '../../../../components/newsList/article';\nvar StoriesTab = function (_a) {\n var searchTerm = _a.searchTerm, pageSize = _a.pageSize, translations = _a.translations;\n var _b = useState(0), currentPage = _b[0], setCurrentPage = _b[1];\n var _c = useSearchStories(searchTerm, pageSize, currentPage), data = _c.data, isFetching = _c.isFetching, isLoading = _c.isLoading;\n return (_jsxs(_Fragment, { children: [isFetching && isLoading && _jsx(Loader, { size: LoaderSize.M }), _jsx(\"div\", __assign({ className: 'row list' }, { children: data &&\n data.total > 0 &&\n data.stories.map(function (x) { return (_jsx(\"div\", __assign({ className: 'col-sm-12 col-md-12 col-lg-6 col-xl-4 col-xxl-4 list__element' }, { children: _jsx(ArticleListItem, { url: x.itemUrl, title: x.title, imageUrl: x.imageUrl, description: '', tag: translations.Story }) }), x.itemId)); }) })), data && data.total > 0 && (_jsx(Pagination, { totalPages: Math.ceil(data.total / pageSize), currentPage: currentPage, previous: function () { return setCurrentPage(function (old) { return (old === 0 ? 0 : old - 1); }); }, next: function () {\n return setCurrentPage(function (old) {\n return old === Math.ceil(data.total / pageSize) - 1 ? old : old + 1;\n });\n }, setCurrent: setCurrentPage }))] }));\n};\nexport default StoriesTab;\n","import { useEffect, useState } from 'react';\nfunction useDebounce(value, delay) {\n var _a = useState(value), debouncedValue = _a[0], setDebouncedValue = _a[1];\n useEffect(function () {\n var timer = setTimeout(function () { return setDebouncedValue(value); }, delay || 500);\n return function () {\n clearTimeout(timer);\n };\n }, [value, delay]);\n return debouncedValue;\n}\nexport default useDebounce;\n","import { useEffect, useState } from 'react';\nexport var useGeoLocation = function (_a) {\n var enabled = _a.enabled;\n var _b = useState(), geoLocation = _b[0], setGeoLocation = _b[1];\n useEffect(function () {\n navigator.permissions\n .query({ name: 'geolocation' })\n .then(function (permissionStatus) {\n if (permissionStatus.state === 'granted' || enabled) {\n navigator.geolocation.getCurrentPosition(function (currentPosition) {\n setGeoLocation({\n latitude: currentPosition.coords.latitude,\n longitude: currentPosition.coords.longitude,\n });\n }, function () {\n setGeoLocation(null);\n }, {\n enableHighAccuracy: true,\n });\n }\n else {\n setGeoLocation({ latitude: 0, longitude: 0 });\n }\n });\n }, [enabled]);\n return geoLocation;\n};\nexport var useOnClickOutside = function (ref, handler) {\n useEffect(function () {\n var listener = function (event) {\n var el = ref === null || ref === void 0 ? void 0 : ref.current;\n if (!el || el.contains((event === null || event === void 0 ? void 0 : event.target) || null)) {\n return;\n }\n handler(event);\n };\n document.addEventListener('mousedown', listener);\n document.addEventListener('touchstart', listener);\n return function () {\n document.removeEventListener('mousedown', listener);\n document.removeEventListener('touchstart', listener);\n };\n }, [ref, handler]);\n};\nexport var useGetMode = function () {\n var mode = document.getElementsByClassName('mode--professional').length > 0 ? 'professional' : 'consumer';\n return mode;\n // const [cookies, setCookie, removeCookie] = useCookies();\n // const mode = cookies.pagemode;\n // if (mode !== undefined && mode !== null && mode !== '')\n // {\n // return mode;\n // }\n // else \n // {\n // return 'consumer';\n // }\n // const queryParams = new URLSearchParams(location.search);\n // const mode = queryParams.get('mode');\n // return mode ? mode : 'Consumer';\n};\n","import { useState, useEffect } from 'react';\nimport PropTypes from 'prop-types';\nexport var paginate = function (_a) {\n var total = _a.total, current = _a.current, size = _a.size;\n // calculate total pages\n var pages = Math.ceil(total / size);\n // ensure current page isn't out of range\n if (current <= 0) {\n current = 0;\n }\n else if (current > pages) {\n current = pages;\n }\n // calculate start and end item indexes\n var start = current * size;\n var end = Math.min(start + size - 1, total - 1);\n // return object with all pager properties required by the view\n return {\n start: start,\n end: end,\n };\n};\nexport var usePagination = function (_a) {\n var items = _a.items, _b = _a.size, size = _b === void 0 ? 10 : _b;\n var _c = useState(0), currentPage = _c[0], setCurrentPage = _c[1];\n var _d = useState([]), displayItems = _d[0], setDisplayItems = _d[1];\n var _e = useState(Math.ceil(items.length / size)), totalPages = _e[0], setTotalPages = _e[1];\n useEffect(function () {\n setTotalPages(Math.ceil(items.length / size));\n var _a = paginate({\n total: items.length,\n current: currentPage,\n size: size,\n }), start = _a.start, end = _a.end;\n var display = items.slice(start, end + 1);\n setDisplayItems(display);\n }, [currentPage, items, size]);\n return {\n current: currentPage,\n display: displayItems,\n pages: totalPages,\n next: function () {\n if (currentPage + 1 < totalPages) {\n setCurrentPage(currentPage + 1);\n }\n },\n previous: function () {\n if (currentPage - 1 >= 0) {\n setCurrentPage(currentPage - 1);\n }\n },\n first: function () { return setCurrentPage(1); },\n last: function () { return setCurrentPage(Math.ceil(items.length / size)); },\n set: function (num) { return setCurrentPage(num); },\n };\n};\nexport var calculatePages = function (currentPage, totalPages) {\n var first = [];\n var middle = [];\n var last = [];\n var pageIndexes = Array.from({ length: totalPages }, function (_, i) { return i; });\n var split = 4;\n if (currentPage < split) {\n first = Array.from({ length: split }, function (_, i) { return i; });\n middle = pageIndexes.slice(Math.ceil(totalPages / 2) - split, Math.floor(totalPages / 2) + split);\n last = Array.from({ length: totalPages }, function (_, i) { return i; }).slice(-1);\n }\n else if (currentPage >= split) {\n first = pageIndexes.slice(0, 1);\n middle = pageIndexes\n .slice(currentPage - (split - 2), currentPage + split + 4)\n .filter(function (x) { return x !== pageIndexes.slice(-1)[0]; });\n last = pageIndexes.slice(-1);\n }\n return { first: first, middle: middle, last: last };\n};\nusePagination.PropTypes = {\n size: PropTypes.number,\n items: PropTypes.array,\n};\nusePagination.defaultProps = {\n size: 10,\n items: [],\n};\n","import { useQuery } from '@tanstack/react-query';\nimport { getPagedArticles } from '../../api/resources/articlesService';\nimport { getClosestDealers } from '../../api/resources/dealersService';\nimport { fetchTabs, searchPagedArticles, searchPagedStories, searchProducts, searchPagedGeneral } from '../../api/resources/searchService';\nvar getGeoLocationCacheKey = function (config) {\n return config === 'disabled'\n ? ['dealers', undefined, undefined]\n : ['dealers', config.latitude, config.longitude];\n};\nexport var useGetClosestDealers = function (config, showSportsDealer) {\n var data = useQuery(getGeoLocationCacheKey(config), function () {\n if (config !== 'disabled')\n return getClosestDealers(config.latitude, config.longitude, showSportsDealer);\n else\n throw new Error('');\n }).data;\n return { dealers: data };\n};\nexport var useGetArticlesPaged = function (_a) {\n var culture = _a.culture, pageSize = _a.pageSize, startIndex = _a.startIndex, mode = _a.mode, type = _a.type, tag = _a.tag, parentId = _a.parentId;\n var data = useQuery(['articlesPaged', pageSize, startIndex, mode, type, tag, parentId], function () { return getPagedArticles(culture, pageSize, parentId !== null && parentId !== void 0 ? parentId : '', startIndex, mode, type !== null && type !== void 0 ? type : '', tag !== null && tag !== void 0 ? tag : ''); }).data;\n return { articles: data === null || data === void 0 ? void 0 : data.articles, total: data === null || data === void 0 ? void 0 : data.total };\n};\nexport var useSearch = function (searchTerm, pageSize, startIndex, language) {\n return useQuery(['search', searchTerm, pageSize, startIndex], function () { return searchProducts(searchTerm, pageSize, startIndex, language); }, {\n enabled: !!searchTerm && searchTerm.length >= 2,\n });\n};\nexport var useSearchTabs = function (searchTerm, language) {\n return useQuery(['search', searchTerm], function () { return fetchTabs(searchTerm, language); }, {\n enabled: !!searchTerm && searchTerm.length >= 2,\n });\n};\nexport var useSearchArticles = function (searchTerm, pageSize, startIndex, type) {\n return useQuery(['search', searchTerm, pageSize, startIndex, type], function () { return searchPagedArticles(searchTerm, pageSize, startIndex, type); }, {\n enabled: !!searchTerm,\n });\n};\nexport var useSearchStories = function (searchTerm, pageSize, startIndex) {\n return useQuery(['search', searchTerm, pageSize, startIndex], function () { return searchPagedStories(searchTerm, pageSize, startIndex); }, {\n enabled: !!searchTerm,\n });\n};\nexport var useSearchGeneral = function (searchTerm, pageSize, startIndex) {\n return useQuery(['search', searchTerm, pageSize, startIndex], function () { return searchPagedGeneral(searchTerm, pageSize, startIndex); }, {\n enabled: !!searchTerm,\n });\n};\n","import { QueryClient } from '@tanstack/react-query';\nexport var queryClient = new QueryClient({\n defaultOptions: {\n queries: {\n refetchOnWindowFocus: false,\n },\n },\n});\n","import axios from 'axios';\nvar apiConfig = {\n baseURL: '/umbraco/api',\n timeout: 30000,\n validateStatus: function (statusCode) { return statusCode >= 200 && statusCode < 300; },\n};\nexport var api = axios.create(apiConfig);\n","import { api } from '..';\nexport var getPagedArticles = function (culture, pageSize, rootNodeId, startIndex, mode, type, tag, searchterm, refcountry, reftype, refyear, reffloor, refsize) {\n return api\n .get(\"articlesapi/LoadArticles\", {\n params: { culture: culture, pageSize: pageSize, rootNodeId: rootNodeId, startIndex: startIndex, mode: mode, type: type, tag: tag, searchterm: searchterm, refcountry: refcountry, reftype: reftype, refyear: refyear, reffloor: reffloor, refsize: refsize },\n })\n .then(function (response) { return response.data; });\n};\n","import { api } from '..';\nexport var getClosestDealers = function (latitude, longitude, showSportsDealer, showHomeDealer, take, country, radius, showSalesOffices) {\n if (showSportsDealer === void 0) { showSportsDealer = false; }\n if (showHomeDealer === void 0) { showHomeDealer = false; }\n if (showSalesOffices === void 0) { showSalesOffices = false; }\n return api\n .get(\"dealersapi/GetClosestDealers\", {\n params: { latitude: latitude, longitude: longitude, take: take, country: country, radius: radius, showSalesOffices: showSalesOffices, showSportsDealer: showSportsDealer, showHomeDealer: showHomeDealer },\n })\n .then(function (response) { return response.data; });\n};\n","import { api } from '..';\nvar host = window.location.hostname.toLowerCase();\nvar path = window.location.pathname.toLowerCase();\nvar isHome = false;\nif (host.includes('home') || path.includes('/home/')) {\n isHome = true;\n}\nexport var searchProducts = function (search, pageSize, startIndex, language) {\n return api\n .get(\"/searchapi/GetSearchResults\", {\n params: {\n searchTerm: search,\n contentLanguage: language,\n pageSize: pageSize,\n startIndex: startIndex,\n isHome: isHome\n },\n })\n .then(function (response) { return response.data; });\n};\nexport var fetchTabs = function (searchTerm, language) {\n return api\n .get(\"/searchapi/GetSearchPageTabs\", {\n params: {\n searchTerm: searchTerm,\n language: language,\n isHome: isHome\n },\n })\n .then(function (response) { return response.data; });\n};\nexport var searchPagedArticles = function (searchTerm, pageSize, startIndex, type) {\n return api\n .get(\"searchapi/GetArticles\", {\n params: { searchTerm: searchTerm, pageSize: pageSize, startIndex: startIndex, type: type },\n })\n .then(function (response) { return response.data; });\n};\nexport var searchPagedStories = function (searchTerm, pageSize, startIndex) {\n return api\n .get(\"searchapi/GetStories\", {\n params: { searchTerm: searchTerm, pageSize: pageSize, startIndex: startIndex },\n })\n .then(function (response) { return response.data; });\n};\nexport var searchPagedGeneral = function (searchTerm, pageSize, startIndex) {\n return api\n .get(\"searchapi/SearchInPages\", {\n params: { searchTerm: searchTerm, pageSize: pageSize, startIndex: startIndex },\n })\n .then(function (response) { return response.data; });\n};\n","var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport React from 'react';\nvar ListGeneral = function (_a) {\n var title = _a.title, url = _a.url, itemid = _a.itemid, tag = _a.tag;\n return (_jsxs(\"div\", __assign({ className: 'item__meta' }, { children: [_jsx(\"b\", __assign({ className: 'h4 text-decoration-none ' }, { children: title })), _jsx(\"a\", __assign({ href: url }, { children: _jsx(\"p\", __assign({ style: {\n textOverflow: 'ellipsis',\n display: '-webkit-box',\n WebkitLineClamp: 2,\n WebkitBoxOrient: 'vertical',\n overflow: 'hidden',\n } }, { children: url })) }))] })));\n};\nexport default ListGeneral;\n","var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport var LoaderSize;\n(function (LoaderSize) {\n LoaderSize[\"S\"] = \"fa-1x\";\n LoaderSize[\"M\"] = \"fa-2x\";\n LoaderSize[\"L\"] = \"fa-3x\";\n LoaderSize[\"XL\"] = \"fa-4x\";\n})(LoaderSize || (LoaderSize = {}));\nvar Loader = function (_a) {\n var _b = _a.size, size = _b === void 0 ? LoaderSize.S : _b;\n return (_jsx(\"div\", __assign({ className: 'loader center d-flex justify-content-center py-3' }, { children: _jsx(\"i\", { className: \"fa fa-circle-notch fa-spin \".concat(size) }) })));\n};\nexport { Loader };\n","var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport { useGetMode } from '../../../Hooks';\nvar ArticleListItem = function (_a) {\n var title = _a.title, description = _a.description, imageUrl = _a.imageUrl, url = _a.url, tag = _a.tag;\n var mode = useGetMode();\n var modeqs = \"?mode=professional\";\n if (mode != \"professional\") {\n modeqs = \"\";\n }\n return (_jsx(\"article\", { children: _jsxs(\"a\", __assign({ href: url + modeqs }, { children: [_jsxs(\"div\", __assign({ className: 'list__element__image' }, { children: [_jsx(\"figure\", { children: _jsx(\"img\", { src: imageUrl, className: 'img-fluid', alt: '', style: { aspectRatio: \"16/11\" } }) }), _jsx(\"div\", __assign({ className: 'list__element__category' }, { children: tag }))] })), _jsxs(\"div\", __assign({ className: 'list__element__text' }, { children: [_jsx(\"div\", __assign({ className: 'list__element__title' }, { children: _jsx(\"h3\", { children: title }) })), _jsx(\"div\", __assign({ className: 'list__element__teaser' }, { children: _jsx(\"p\", { children: description }) }))] }))] })) }));\n};\nexport default ArticleListItem;\n","var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nimport { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport { calculatePages } from '../../Hooks/pagination';\n// Maximum displayable pages count before view starts to break on mobile\nvar MAX_DISPLAYABLE_ITEMS = 15;\nvar Pagination = function (_a) {\n var totalPages = _a.totalPages, currentPage = _a.currentPage, previous = _a.previous, next = _a.next, setCurrent = _a.setCurrent;\n var _b = calculatePages(currentPage, totalPages), first = _b.first, middle = _b.middle, last = _b.last;\n if (totalPages > 1) {\n return (_jsx(\"div\", __assign({ className: 'row sui-layout-main-footer' }, { children: _jsx(\"div\", __assign({ className: 'col' }, { children: _jsx(\"nav\", __assign({ \"aria-label\": 'Page navigation' }, { children: _jsxs(\"ul\", __assign({ className: 'pagination' }, { children: [_jsx(\"li\", __assign({ className: 'rc-pagination-item rc-pagination-prev', onClick: function (event) {\n event.preventDefault();\n previous();\n } }, { children: _jsx(\"a\", { children: _jsx(\"span\", {}) }) })), totalPages < MAX_DISPLAYABLE_ITEMS &&\n Array.from({ length: totalPages }, function (_, i) { return i; }).map(function (x) {\n return PagingItem(currentPage, x, setCurrent);\n }), totalPages >= MAX_DISPLAYABLE_ITEMS && (_jsxs(_Fragment, { children: [first.map(function (x) {\n return PagingItem(currentPage, x, setCurrent);\n }), _jsx(\"span\", { children: \"...\" }), middle.map(function (x) {\n return PagingItem(currentPage, x, setCurrent);\n }), _jsx(\"span\", { children: \"...\" }), last.map(function (x) {\n return PagingItem(currentPage, x, setCurrent);\n })] })), _jsx(\"li\", __assign({ className: 'rc-pagination-item rc-pagination-next', onClick: function (event) {\n event.preventDefault();\n next();\n } }, { children: _jsx(\"a\", { children: _jsx(\"span\", {}) }) }))] })) })) })) })));\n }\n else {\n return null;\n }\n};\nvar PagingItem = function (current, index, setCurrent) {\n return (_jsx(\"li\", __assign({ className: \"rc-pagination\".concat(current === index ? '-active rc-pagination-item' : ' rc-pagination-item '), onClick: function () { return setCurrent(index); } }, { children: _jsx(\"a\", __assign({ href: '', onClick: function (event) {\n event.preventDefault();\n } }, { children: _jsx(\"span\", { children: index + 1 }) })) }), index));\n};\nexport default Pagination;\n","import { jsx as _jsx } from \"react/jsx-runtime\";\nimport { useEffect, useRef } from 'react';\n// Component changes .padded-text element text, it does not render the title\nvar TitleSpan = function (_a) {\n var title = _a.title, _b = _a.maxLines, maxLines = _b === void 0 ? 3 : _b;\n var ref = useRef(null);\n var maxRounds = 50;\n var trimByPixel = function (str, width, parent) {\n maxRounds--;\n if (maxRounds < 1)\n return '';\n var text = str;\n var isLastWord = true;\n var element = document.createElement('span');\n element.textContent = str;\n element.classList.add('text-nowrap');\n parent.appendChild(element);\n while (element.clientWidth > width) {\n text = text.slice(0, -1);\n element.textContent = text;\n isLastWord = false;\n }\n if (text.trim() && isLastWord === false) {\n var lastIndex = text.lastIndexOf(' ');\n var temp = text.substring(0, lastIndex);\n if (temp.length > 1 && text.length > 5) {\n text = temp;\n }\n }\n return text;\n };\n useEffect(function () {\n var _a, _b;\n if (ref) {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n var parent = (_a = ref === null || ref === void 0 ? void 0 : ref.current) === null || _a === void 0 ? void 0 : _a.parentNode;\n if (!parent)\n return;\n var titleElementWidth = (_b = parent.getBoundingClientRect().width) !== null && _b !== void 0 ? _b : 0;\n titleElementWidth -= 40;\n var titleResult = '';\n var currentTitle = parent === null || parent === void 0 ? void 0 : parent.textContent;\n var count = 0;\n while (currentTitle.trim().length !== 0) {\n count++;\n var spanContent = trimByPixel(currentTitle, titleElementWidth, parent);\n if (spanContent.length > 0) {\n titleResult += \"\".concat(count === maxLines ? spanContent + '...' : spanContent, \" \");\n }\n currentTitle = currentTitle.replace(spanContent, '');\n if (count === maxLines)\n break;\n }\n parent.innerHTML = titleResult;\n }\n }, []);\n return _jsx(\"span\", { ref: ref });\n};\nexport default TitleSpan;\n"],"names":["_a","className","label","onMoreClick","onRemove","onSelect","options","showMore","showSearch","onSearch","searchPlaceholder","mode","children","useGetMode","React","createElement","appendClassName","role","href","replaceAll","style","fontWeight","window","GetTranslation","type","placeholder","onChange","e","target","value","toLowerCase","id","length","map","option","index","checked","selected","key","getFilterValueDisplay","_b","_c","eventName","dataLayer","push","event","productfilters","JSON","stringify","productlanguage","language","toString","htmlFor","src","Brown","Dark","Golden","Grey","Light","getFloorImage","onClick","__assign","Object","assign","t","s","i","n","arguments","p","prototype","hasOwnProperty","call","apply","this","_d","_e","_f","_g","_h","_j","_k","_l","_m","_o","result","image1","snippet","noimage","lang","productLanguage","image2","homeSegment","location","hostname","pathname","includes","itemurl","productSku","_jsx","_jsxs","alt","title","TitleSpan","articleCode","productGroup","_p","_q","_r","treatment","line4","surfaceStructureMarketing","bevelMarketing","line5","dimensions","width","connector","AppSearchAPIConnector","searchKey","engineName","endpointBase","PimEndpointBase","pagesize","windowframe","searchTerm","context","useState","FloorsearchTerm","setSearchTerm","slideToggleRef","useRef","handelToggle","currentTarget","closest","classList","toggle","current","contentType","searchText","query","isHome","contextFilter","searchQuery","showPrices","parse","html2","document","getElementById","undefined","compareFloors","innerText","innerWidth","isMobile","config","alwaysSearchOnInitialLoad","autocompleteQuery","apiConnector","trackUrlState","initialState","queryText","Fragment","HelmetProvider","Helmet","SearchProvider","WithSearch","mapContextToProps","props","resetFilter","reset","ResponseWrapper","filters","onFiltersChange","ErrorBoundary","Layout","sideContent","SlideToggle","duration","collapsed","whenReversedUseBackwardEase","ref","render","setCollapsibleElement","sourcePage","SearchBox","view","onSubmit","autoFocus","Facet","field","filterType","CustomMultiCheckBoxFacet","show","rawResponse","rawInfo","meta","page","total_results","bodyHeader","bodyContent","Results","titleField","urlField","thumbnailField","resultView","IframeFloorResultPage","resultPage","AccessortyResultPage","shouldTrackClickThrough","bodyFooter","Paging","_Fragment","__awaiter","thisArg","_arguments","P","generator","Promise","resolve","reject","fulfilled","step","next","rejected","done","then","__generator","body","f","y","g","_","sent","trys","ops","verb","Symbol","iterator","v","op","TypeError","pop","SkusAddedToWishlistCount","wishlistFloors","headers","antiForgeryToken","_s","_t","_u","_v","_w","_x","toggleClassWithChild","removeFromWishlist","selectedSku","floorTitle","url","html1","contains","preventDefault","attributes","remove","product","fetch","method","Sku","SessionName","response","error","console","getElementsByClassName","innerHTML","add","SkusAddedToCompareCount","removeFromCompare","textContent","maxFloorWarningMessage","severity","setTimeout","scrollTo","showMessage","json","data","skuList","element","URL","searchParams","get","createRoot","QueryClientProvider","client","queryClient","GeneralSearch","currentSearch","Tabs","ArticleTypes","getTab","Products","Accessories","NewsArticles","ReferenceArticles","Articles","Stories","General","Empty","translations","search","setSearch","useDebounce","currentTab","setCurrentTab","useSearchTabs","isFetching","isLoading","useEffect","newUrl","set","history","replaceState","getTabTranslation","tab","Products_Tab","Accessories_Tab","News_Articles_Tab","Articles_Tab","Reference_Articles_Tab","Stories_Tab","General_Tab","Search_Site_Content","onKeyDown","altKey","border","classNames","active","concat","Loader","size","LoaderSize","M","ProductsTab","GeneralTab","pageSize","ArticlesTab","articleType","News","Reference","Article","StoriesTab","No_Search_Results","renderTabContent","currentPage","setCurrentPage","useSearchArticles","articles","article","ArticleListItem","description","shortDescription","imageUrl","articlesListImage","tag","total","Pagination","totalPages","Math","ceil","previous","old","setCurrent","useSearchGeneral","generalitems","ListGeneral","itemUrl","itemid","itemId","ProductListPage","useSearchStories","stories","x","Story","delay","debouncedValue","setDebouncedValue","timer","clearTimeout","enabled","geoLocation","setGeoLocation","navigator","permissions","name","permissionStatus","state","geolocation","getCurrentPosition","currentPosition","latitude","coords","longitude","enableHighAccuracy","handler","listener","el","addEventListener","removeEventListener","paginate","pages","start","end","min","usePagination","items","displayItems","setDisplayItems","setTotalPages","display","slice","first","last","num","middle","pageIndexes","Array","from","floor","filter","PropTypes","number","array","defaultProps","showSportsDealer","dealers","useQuery","getGeoLocationCacheKey","getClosestDealers","Error","culture","startIndex","parentId","getPagedArticles","searchProducts","fetchTabs","searchPagedArticles","searchPagedStories","searchPagedGeneral","QueryClient","defaultOptions","queries","refetchOnWindowFocus","api","axios","create","baseURL","timeout","validateStatus","statusCode","rootNodeId","searchterm","refcountry","reftype","refyear","reffloor","refsize","params","showHomeDealer","take","country","radius","showSalesOffices","host","path","contentLanguage","textOverflow","WebkitLineClamp","WebkitBoxOrient","overflow","S","modeqs","aspectRatio","PagingItem","calculatePages","maxLines","maxRounds","trimByPixel","str","parent","text","isLastWord","appendChild","clientWidth","trim","lastIndex","lastIndexOf","temp","substring","parentNode","titleElementWidth","getBoundingClientRect","titleResult","currentTitle","count","spanContent","replace"],"sourceRoot":""}