{"version":3,"sources":["webpack:///0.52f5a0f9.bundle.js","webpack:///./src/js/components/Pagination.js","webpack:///./src/js/components/BlogListing.js","webpack:///./src/modules/templates/search-facet.html","webpack:///./node_modules/lodash/find.js","webpack:///./node_modules/lodash/_createFind.js","webpack:///./node_modules/lodash/findIndex.js","webpack:///./node_modules/lodash/_baseFindIndex.js","webpack:///./node_modules/lodash/toInteger.js","webpack:///./node_modules/lodash/toFinite.js"],"names":["webpackJsonp","207","module","exports","__webpack_require__","jQuery","$","_classCallCheck","instance","Constructor","TypeError","_possibleConstructorReturn","self","call","ReferenceError","_inherits","subClass","superClass","prototype","Object","create","constructor","value","enumerable","writable","configurable","setPrototypeOf","__proto__","defineProperty","_createClass","defineProperties","target","props","i","length","descriptor","key","protoProps","staticProps","_component2","obj","__esModule","default","_component","Pagination","el","config","_Component","this","dom","$pagination","$el","find","$prevBtn","$nextBtn","$paginationPages","on","onClickPrevBtn","onClickNextBtn","currentPage","pageCount","range","push","Math","max","min","unshift","totalNumberOfPages","onLoadData","headerElement","extraUrlParams","queryParams","scrollToElement","empty","hide","rangePagination","pageNumber","span","document","createElement","pageNumberText","createTextNode","appendChild","addDotsStyles","addEventListener","onClickPageNumber","classList","add","remove","setInvisibleBtn","setVisibleBtn","append","setAttribute","currentpage","setURLParameters","scrollTo","historyParams","keyword","upcoming","past","clecredit","firmevent","insightsbytype","solution","solutionname","topic","topicname","position","location","experience","letter","sort","people","person","personname","type","insightType","subtype","timerange","timerangefrom","timerangeto","format","area","series","seriesnames","topics","property","updateHistory","param","button","addClass","removeClass","changeCurrentPage","e","parseInt","innerHTML","element","window","top","getScrollPostion","stickyHeaderHeight","height","elementYPostion","getElementYPostion","yPosition","offsetTop","scrollTop","clientTop","offsetParent","Component","220","_interopRequireDefault","_asyncToGenerator","fn","gen","apply","arguments","Promise","resolve","reject","step","arg","info","error","done","then","err","_extends","assign","source","hasOwnProperty","_isArray3","_isArray2","_template3","_template2","_find3","_find2","_searchFacet2","_searchFacet","_Pagination2","_Pagination","BlogListing","isMobile","navigator","platform","toLowerCase","match","$filterTopic","selectric","disableOnMobile","nativeOnMobile","$filterDateRange","addLabelsToSelectric","setWaypoints","dateRange","val","trigger","topicNames","topicsNamesArray","split","topicsValuesArray","each","index","o","text","$body","$resultsContainer","$results","$loadTotal","$loadCount","$header","$stickyHeader","$footer","$filterFacets","$clearBtn","$filters","searchName","cssClasses","noResults","limitResults","getCurrentPage","recordsPerPage","pagesize","isBackButonAction","isTrigeredByScript","getUrlParameter","blogsubtypeid","data","itemlocationid","paginationComponent","onTopicFilterChange","onDateRangeFilterChange","onFacetClick","onClearClick","setScrollPosition","bind","href","waypoint","direction","css","outerHeight","offset","isTrigered","currentTarget","prop","refresh","close","join","tpn","createFacet","category","title","undefined","$currentTarget","html","getJSON","endpoint","renderResults","_ref","regeneratorRuntime","mark","_callee","ListResult","items","itemsLeft","loadCount","labelTopic","labelDataRange","urlParams","_this4","wrap","_context","prev","next","getResults","TotalNumberOfPages","CurrentPage","show","TotalResults","setPagination","querySelector","Results","forEach","template","PageSize","$element","elements","label","goToPreviewPosition","abrupt","stop","catch","console","facetInfo","item","facetTmpl","insertBefore","stopPropagation","$facet","facetVal","facetCategory","facetID","preventDefault","615","622","createFind","findIndex","623","findIndexFunc","collection","predicate","fromIndex","iterable","isArrayLike","iteratee","baseIteratee","keys","624","array","toInteger","nativeMax","baseFindIndex","625","fromRight","626","result","toFinite","remainder","627","toNumber","INFINITY","MAX_INTEGER"],"mappings":"AAAAA,cAAc,EAAE,KAEVC,IACA,SAAUC,EAAQC,EAASC,GAEjC,cAC4B,SAASC,EAAQC,GAgB7C,QAASC,GAAgBC,EAAUC,GAAe,KAAMD,YAAoBC,IAAgB,KAAM,IAAIC,WAAU,qCAEhH,QAASC,GAA2BC,EAAMC,GAAQ,IAAKD,EAAQ,KAAM,IAAIE,gBAAe,4DAAgE,QAAOD,GAAyB,gBAATA,IAAqC,kBAATA,GAA8BD,EAAPC,EAElO,QAASE,GAAUC,EAA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,EAAQxK,GACtC,GAAIoR,EAAUQ,EAAMpH,GAAQA,EAAOoH,GACjC,MAAOpH,EAGX,QAAQ,EAGVxM,EAAOC,QAAU8T,GPi+BXG,IACA,SAAUlU,EAAQC,EAASC,GQ79BjC,QAAS2T,GAAUzS,GACjB,GAAI+S,GAASC,EAAShT,GAClBiT,EAAYF,EAAS,CAEzB,OAAOA,KAAWA,EAAUE,EAAYF,EAASE,EAAYF,EAAU,EAhCzE,GAAIC,GAAW,EAAQ,IAmCvBpU,GAAOC,QAAU4T,GRggCXS,IACA,SAAUtU,EAAQC,EAASC,GSvgCjC,QAASkU,GAAShT,GAChB,IAAKA,EACH,MAAiB,KAAVA,EAAcA,EAAQ,CAG/B,KADAA,EAAQmT,EAASnT,MACHoT,GAAYpT,KAAWoT,EAAU,CAE7C,OADYpT,EAAQ,GAAK,EAAI,GACfqT,EAEhB,MAAOrT,KAAUA,EAAQA,EAAQ,EAtCnC,GAAImT,GAAW,EAAQ,KAGnBC,EAAW,IACXC,EAAc,sBAqClBzU,GAAOC,QAAUmU","file":"0.52f5a0f9.bundle.js","sourcesContent":["webpackJsonp([0,54],{\n\n/***/ 207:\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n/* WEBPACK VAR INJECTION */(function(jQuery, $) {\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nvar _component = __webpack_require__(33);\n\nvar _component2 = _interopRequireDefault(_component);\n\nvar _index = __webpack_require__(139);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nvar Pagination = function (_Component) {\n _inherits(Pagination, _Component);\n\n function Pagination(el, config) {\n _classCallCheck(this, Pagination);\n\n return _possibleConstructorReturn(this, (Pagination.__proto__ || Object.getPrototypeOf(Pagination)).call(this, el, config));\n }\n\n _createClass(Pagination, [{\n key: 'setupDefaults',\n value: function setupDefaults() {\n this.dom = {\n $pagination: this.$el.find('.wh-search-results__pagination'),\n $prevBtn: this.$el.find('.wh-search-results__prev-btn'),\n $nextBtn: this.$el.find('.wh-search-results__next-btn'),\n $paginationPages: this.$el.find('.wh-search-results__pages')\n };\n }\n }, {\n key: 'addListeners',\n value: function addListeners() {\n this.dom.$prevBtn.on('click', this.onClickPrevBtn.bind(this));\n this.dom.$nextBtn.on('click', this.onClickNextBtn.bind(this));\n }\n }, {\n key: 'rangePagination',\n value: function rangePagination(currentPage, pageCount) {\n var delta = 1;\n var range = [];\n\n if (pageCount <= 5) {\n for (var i = 1; i <= pageCount; i++) {\n range.push(i);\n }\n return range;\n }\n\n if (currentPage < 3) {\n for (var _i = 2; _i <= 4; _i++) {\n range.push(_i);\n }\n } else if (currentPage > pageCount - 1) {\n for (var _i2 = currentPage - 3; _i2 <= pageCount - 1; _i2++) {\n range.push(_i2);\n }\n } else if (currentPage > pageCount - 2) {\n for (var _i3 = currentPage - 2; _i3 <= pageCount - 1; _i3++) {\n range.push(_i3);\n }\n } else {\n for (var _i4 = Math.max(2, currentPage - delta); _i4 <= Math.min(pageCount - 1, currentPage + delta); _i4++) {\n range.push(_i4);\n }\n }\n\n if (currentPage - delta > 2) {\n range.unshift('...');\n }\n if (currentPage + delta < pageCount - 1) {\n range.push('...');\n }\n\n range.unshift(1);\n range.push(pageCount);\n\n return range;\n }\n }, {\n key: 'setPagination',\n value: function setPagination(totalNumberOfPages, currentPage, onLoadData, headerElement, extraUrlParams, queryParams) {\n\n if (queryParams) {\n this.config.queryParams = queryParams;\n }\n\n var _dom = this.dom,\n $pagination = _dom.$pagination,\n $paginationPages = _dom.$paginationPages,\n $prevBtn = _dom.$prevBtn,\n $nextBtn = _dom.$nextBtn;\n\n this.onLoadData = onLoadData;\n this.currentPage = currentPage;\n this.scrollToElement = headerElement;\n this.extraUrlParams = extraUrlParams;\n\n $paginationPages.empty();\n\n if (totalNumberOfPages === 1) {\n $pagination.hide();\n return;\n }\n\n var _iteratorNormalCompletion = true;\n var _didIteratorError = false;\n var _iteratorError = undefined;\n\n try {\n for (var _iterator = this.rangePagination(currentPage, totalNumberOfPages)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var pageNumber = _step.value;\n\n var span = document.createElement('button');\n var pageNumberText = document.createTextNode(pageNumber);\n span.appendChild(pageNumberText);\n pageNumber === '...' ? this.addDotsStyles(span) : span.addEventListener('click', this.onClickPageNumber.bind(this));\n currentPage === pageNumber ? span.classList.add('active') : span.classList.remove('active');\n currentPage === 1 ? this.setInvisibleBtn($prevBtn) : this.setVisibleBtn($prevBtn);\n currentPage === totalNumberOfPages ? this.setInvisibleBtn($nextBtn) : this.setVisibleBtn($nextBtn);\n $paginationPages.append(span);\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion && _iterator.return) {\n _iterator.return();\n }\n } finally {\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n }\n }, {\n key: 'addDotsStyles',\n value: function addDotsStyles(span) {\n span.setAttribute('tabindex', '-1');\n span.classList.add('ellipsis');\n }\n }, {\n key: 'changeCurrentPage',\n value: function changeCurrentPage() {\n this.config.queryParams.currentpage = this.currentPage;\n this.currentPage = this.currentPage;\n this.setURLParameters();\n this.scrollTo(this.scrollToElement);\n this.onLoadData();\n }\n }, {\n key: 'setURLParameters',\n value: function setURLParameters() {\n var historyParams = {};\n if (this.config.queryParams.keyword) {\n historyParams.keyword = this.config.queryParams.keyword;\n }\n\n if (this.config.queryParams.upcoming) {\n historyParams.upcoming = this.config.queryParams.upcoming;\n }\n\n if (this.config.queryParams.past) {\n historyParams.past = this.config.queryParams.past;\n }\n\n if (this.config.queryParams.clecredit) {\n historyParams.clecredit = this.config.queryParams.clecredit;\n }\n\n if (this.config.queryParams.firmevent) {\n historyParams.firmevent = this.config.queryParams.firmevent;\n }\n\n if (this.config.queryParams.insightsbytype) {\n historyParams.insightsbytype = this.config.queryParams.insightsbytype;\n }\n\n if (this.config.queryParams.solution) {\n historyParams.solution = this.config.queryParams.solution;\n }\n\n if (this.config.queryParams.solutionname) {\n historyParams.solution = this.config.queryParams.solutionname;\n }\n\n if (this.config.queryParams.topic) {\n historyParams.topic = this.config.queryParams.topic;\n }\n\n if (this.config.queryParams.topicname) {\n historyParams.topicname = this.config.queryParams.topicname;\n }\n\n if (this.config.queryParams.position) {\n historyParams.position = this.config.queryParams.position;\n }\n\n if (this.config.queryParams.location) {\n historyParams.location = this.config.queryParams.location;\n }\n\n if (this.config.queryParams.experience) {\n historyParams.experience = this.config.queryParams.experience;\n }\n\n if (this.config.queryParams.letter) {\n historyParams.letter = this.config.queryParams.letter;\n }\n\n if (this.config.queryParams.sort) {\n historyParams.sort = this.config.queryParams.sort;\n }\n\n if (this.config.queryParams.people) {\n historyParams.person = this.config.queryParams.people;\n }\n\n if (this.config.queryParams.personname) {\n historyParams.personname = this.config.queryParams.personname;\n }\n\n if (this.config.queryParams.person) {\n historyParams.person = this.config.queryParams.person;\n }\n\n if (this.config.queryParams.type) {\n historyParams['insight-type'] = this.config.queryParams.insightType;\n }\n\n if (this.config.queryParams.subtype) {\n historyParams.subtype = this.config.queryParams.subtype;\n }\n\n if (this.config.queryParams.timerange) {\n historyParams.timerange = this.config.queryParams.timerange;\n }\n\n if (this.config.queryParams.timerangefrom) {\n historyParams.timerangefrom = this.config.queryParams.timerangefrom;\n }\n\n if (this.config.queryParams.timerangeto) {\n historyParams.timerangeto = this.config.queryParams.timerangeto;\n }\n\n if (this.config.queryParams.format) {\n historyParams.format = this.config.queryParams.format;\n }\n\n if (this.config.queryParams.area) {\n historyParams.area = this.config.queryParams.area;\n }\n\n if (this.config.queryParams.series) {\n historyParams.series = this.config.queryParams.series;\n }\n\n if (this.config.queryParams.seriesnames) {\n historyParams.seriesnames = this.config.queryParams.seriesnames;\n }\n\n if (this.config.queryParams.topics) {\n historyParams.topics = this.config.queryParams.topics;\n }\n\n if (this.config.queryParams.currentpage > 1) {\n historyParams.currentpage = this.config.queryParams.currentpage;\n }\n\n for (var property in this.extraUrlParams) {\n if (this.extraUrlParams[property]) {\n historyParams['' + property] = this.extraUrlParams[property];\n }\n }\n\n (0, _index.updateHistory)(jQuery.param(historyParams));\n }\n }, {\n key: 'setVisibleBtn',\n value: function setVisibleBtn(button) {\n button.addClass('visible');\n button.removeClass('no-visible');\n }\n }, {\n key: 'setInvisibleBtn',\n value: function setInvisibleBtn(button) {\n button.addClass('no-visible');\n button.removeClass('visible');\n }\n }, {\n key: 'onClickPrevBtn',\n value: function onClickPrevBtn() {\n this.currentPage--;\n this.changeCurrentPage();\n }\n }, {\n key: 'onClickNextBtn',\n value: function onClickNextBtn() {\n this.currentPage++;\n this.changeCurrentPage();\n }\n }, {\n key: 'onClickPageNumber',\n value: function onClickPageNumber(e) {\n $(e.target).addClass('active');\n this.currentPage = parseInt(e.target.innerHTML);\n this.changeCurrentPage();\n }\n }, {\n key: 'scrollTo',\n value: function scrollTo(element) {\n window.scrollTo({\n top: this.getScrollPostion(element)\n });\n }\n }, {\n key: 'getScrollPostion',\n value: function getScrollPostion(element) {\n var stickyHeaderHeight = $('.wh-sticky-header').height();\n var elementYPostion = this.getElementYPostion(element);\n return stickyHeaderHeight ? elementYPostion - stickyHeaderHeight : elementYPostion;\n }\n }, {\n key: 'getElementYPostion',\n value: function getElementYPostion(element) {\n var yPosition = 0;\n\n while (element) {\n yPosition += element.offsetTop - element.scrollTop + element.clientTop;\n element = element.offsetParent;\n }\n\n return yPosition;\n }\n }]);\n\n return Pagination;\n}(_component2.default);\n\nexports.default = Pagination;\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(10), __webpack_require__(10)))\n\n/***/ }),\n\n/***/ 220:\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n/* WEBPACK VAR INJECTION */(function($, jQuery) {\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nvar _component = __webpack_require__(33);\n\nvar _component2 = _interopRequireDefault(_component);\n\n__webpack_require__(210);\n\nvar _isArray2 = __webpack_require__(25);\n\nvar _isArray3 = _interopRequireDefault(_isArray2);\n\nvar _template2 = __webpack_require__(91);\n\nvar _template3 = _interopRequireDefault(_template2);\n\nvar _find2 = __webpack_require__(622);\n\nvar _find3 = _interopRequireDefault(_find2);\n\nvar _index = __webpack_require__(139);\n\nvar _searchFacet = __webpack_require__(615);\n\nvar _searchFacet2 = _interopRequireDefault(_searchFacet);\n\nvar _Pagination = __webpack_require__(207);\n\nvar _Pagination2 = _interopRequireDefault(_Pagination);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, arguments); return new Promise(function (resolve, reject) { function step(key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { return Promise.resolve(value).then(function (value) { step(\"next\", value); }, function (err) { step(\"throw\", err); }); } } return step(\"next\"); }); }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\n//TODO: Waypoint.refreshAll() on window resize!!!\n\nvar BlogListing = function (_Component) {\n _inherits(BlogListing, _Component);\n\n function BlogListing(el, config) {\n _classCallCheck(this, BlogListing);\n\n var _this = _possibleConstructorReturn(this, (BlogListing.__proto__ || Object.getPrototypeOf(BlogListing)).call(this, el, config));\n\n var isMobile = navigator.platform.toLowerCase().match(/(iphone|ipod|ipad|android|arm)/) !== null ? true : false;\n\n _this.dom.$filterTopic.selectric({\n disableOnMobile: false,\n nativeOnMobile: isMobile\n });\n\n _this.dom.$filterDateRange.selectric({\n disableOnMobile: false,\n nativeOnMobile: isMobile\n });\n\n (0, _index.addLabelsToSelectric)();\n\n _this.setWaypoints();\n if (_this.queryParams.dateRange) {\n _this.dom.$filterDateRange.val(_this.queryParams.dateRange).selectric('refresh').trigger('change', 'true');\n }\n\n if (_this.topicNames) {\n var topicsNamesArray = _this.topicNames.split('|');\n var topicsValuesArray = [];\n\n // Find option values by its text\n _this.dom.$filterTopic.find('option').each(function (index, element) {\n var topicByName = (0, _find3.default)(topicsNamesArray, function (o) {\n return o === $(element).text();\n });\n if (topicByName) {\n topicsValuesArray.push($(element).val());\n }\n });\n\n _this.dom.$filterTopic.val(topicsValuesArray).selectric('refresh').trigger('change', 'true');\n }\n\n if (!_this.topicNames && !_this.queryParams.dateRange) {\n _this.onLoadData();\n }\n return _this;\n }\n\n _createClass(BlogListing, [{\n key: 'setupDefaults',\n value: function setupDefaults() {\n this.dom = {\n $body: $('body'),\n $filterTopic: this.$el.find('.wh-blog-listing__topic'),\n $filterDateRange: this.$el.find('.wh-blog-listing__date-range'),\n $resultsContainer: this.$el.find('.wh-blog-listing-results'),\n $results: this.$el.find('.wh-blog-listing-results__list'),\n $loadTotal: this.$el.find('.load-total'),\n $loadCount: this.$el.find('.load-count'),\n $header: this.$el.find('.wh-blog-listing-header'),\n $stickyHeader: $('.wh-sticky-header'),\n $footer: this.$el.find('.wh-search-results__footer'),\n $filterFacets: this.$el.find('.wh-blog-listing__facets'),\n $clearBtn: this.$el.find('.wh-blog-listing__clear'),\n $filters: this.$el.find('.wh-blog-listing-header__filters'),\n $pagination: this.$el.find('.wh-search-results__pagination')\n };\n\n this.searchName = 'BlogListing';\n\n this.cssClasses = {\n noResults: 'no-results',\n limitResults: 'limit-results'\n };\n\n this.currentPage = this.getCurrentPage();\n this.recordsPerPage = this.config.pagesize;\n\n this.queryParams = {\n currentpage: this.currentPage,\n pagesize: this.recordsPerPage\n };\n\n this.isBackButonAction = false;\n this.isTrigeredByScript = false;\n\n this.queryParams.dateRange = (0, _index.getUrlParameter)('dateRange');\n this.queryParams.dateRange = typeof this.queryParams.dateRange === 'boolean' ? '' : this.queryParams.dateRange;\n this.queryParams.topic = '';\n this.topicNames = (0, _index.getUrlParameter)('topic');\n this.topicNames = typeof this.topicNames === 'boolean' ? '' : this.topicNames;\n this.blogsubtypeid = this.$el.data('blog-subtype-id');\n this.itemlocationid = this.$el.data('item-location-id');\n\n if (this.dom.$pagination) {\n this.paginationComponent = new _Pagination2.default(this.dom.$pagination, { queryParams: this.queryParams });\n }\n }\n }, {\n key: 'addListeners',\n value: function addListeners() {\n this.dom.$filterTopic.on('change', this.onTopicFilterChange.bind(this));\n this.dom.$filterDateRange.on('change', this.onDateRangeFilterChange.bind(this));\n this.dom.$body.on('click touchend', '.wh-search-results-filters__facet', this.onFacetClick.bind(this));\n this.dom.$clearBtn.on('click touchend', this.onClearClick.bind(this));\n this.$el.on('click touch', '.wh-blog-listing-results-item a', _index.setScrollPosition.bind(null, this.searchName));\n\n $(window).on('popstate', function () {\n window.location.href = window.location.href;\n });\n }\n }, {\n key: 'setWaypoints',\n value: function setWaypoints() {\n var _this2 = this;\n\n this.dom.$header.waypoint(function (direction) {\n if (direction === 'down') {\n _this2.dom.$header.addClass('stuck');\n _this2.dom.$header.css('top', _this2.dom.$stickyHeader.outerHeight());\n } else {\n _this2.dom.$header.removeClass('stuck');\n _this2.dom.$header.css('top', '');\n }\n }, { offset: function offset() {\n return _this2.dom.$stickyHeader.outerHeight();\n } });\n }\n }, {\n key: 'getCurrentPage',\n value: function getCurrentPage() {\n return (0, _index.getUrlParameter)('currentpage') ? (0, _index.getUrlParameter)('currentpage') : 1;\n }\n }, {\n key: 'onTopicFilterChange',\n value: function onTopicFilterChange(e, isTrigered) {\n var _this3 = this;\n\n var $currentTarget = $(e.currentTarget);\n var selectric = $(e.currentTarget).data('selectric');\n\n if (this.dom.$filterTopic.val()[0] === '') {\n this.dom.$filterTopic.find('option').prop('selected', false);\n $(e.currentTarget).data('selectric').refresh();\n } else {\n $(e.currentTarget).data('selectric').close();\n }\n\n this.queryParams.topic = $(e.currentTarget).val().join('|');\n this.dom.$filterFacets.find('[data-category=\"topic\"]').remove();\n\n var tpn = [];\n $(e.currentTarget).find('option:selected:not([disabled])').each(function (index, element) {\n tpn.push($(element).text());\n\n _this3.createFacet({\n category: 'topic',\n value: $(element).val(),\n title: $(element).text()\n });\n });\n\n this.topicNames = tpn.join('|');\n\n if (isTrigered) {\n this.isTrigeredByScript = true;\n }\n\n if (isTrigered === undefined) {\n this.queryParams.currentpage = 1;\n this.currentpage = 1;\n this.isTrigeredByScript = false;\n }\n\n this.onLoadData();\n }\n }, {\n key: 'onDateRangeFilterChange',\n value: function onDateRangeFilterChange(e, isTrigered) {\n var $currentTarget = $(e.currentTarget);\n this.queryParams.dateRange = $currentTarget.val();\n this.dom.$filterFacets.find('[data-category=\"dateRange\"]').remove();\n this.createFacet({\n category: 'dateRange',\n value: $currentTarget.val(),\n title: $currentTarget.find('option:selected').html()\n });\n\n if (isTrigered) {\n this.isTrigeredByScript = true;\n }\n\n if (isTrigered === undefined) {\n this.queryParams.currentpage = 1;\n this.currentpage = 1;\n this.isTrigeredByScript = false;\n }\n\n this.onLoadData();\n }\n }, {\n key: 'getResults',\n value: function getResults() {\n return $.getJSON(this.config.endpoint, _extends({}, this.queryParams, {\n blogsubtypeid: this.blogsubtypeid,\n itemlocationid: this.itemlocationid\n }));\n }\n }, {\n key: 'renderResults',\n value: function () {\n var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {\n var _this4 = this;\n\n var data, ListResult, items, itemsLeft, loadCount, labelTopic, labelDataRange, urlParams;\n return regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n this.$el.addClass('loading');\n _context.next = 3;\n return this.getResults();\n\n case 3:\n data = _context.sent;\n ListResult = data.ListResult;\n\n\n this.TotalNumberOfPages = ListResult.TotalNumberOfPages;\n this.queryParams.currentpage = ListResult.CurrentPage === 0 ? 1 : ListResult.CurrentPage;\n\n items = '';\n\n\n ListResult.TotalNumberOfPages > 1 ? this.dom.$footer.show() : this.dom.$footer.hide();\n\n if (ListResult.TotalResults > 0) {\n\n this.dom.$pagination.show();\n this.paginationComponent.setPagination(this.TotalNumberOfPages, this.queryParams.currentpage, this.onLoadData.bind(this), document.querySelector('.wh-blog-listing-results'));\n\n ListResult.Results.forEach(function (data) {\n items += (0, _template3.default)(_this4.config.template)({\n data: data\n });\n });\n\n this.dom.$results.html(items);\n\n if (ListResult.CurrentPage < ListResult.TotalNumberOfPages) {\n this.$el.removeClass(this.cssClasses.limitResults);\n\n itemsLeft = ListResult.TotalResults - ListResult.CurrentPage * ListResult.PageSize;\n loadCount = itemsLeft < ListResult.PageSize ? itemsLeft : ListResult.PageSize;\n\n this.dom.$loadCount.text(loadCount);\n this.dom.$loadTotal.text(ListResult.TotalResults);\n } else {\n this.$el.addClass(this.cssClasses.limitResults);\n }\n this.dom.$resultsContainer.removeClass(this.cssClasses.noResults);\n } else {\n this.dom.$pagination.hide();\n this.$el.addClass(this.cssClasses.limitResults);\n this.dom.$results.html('');\n this.dom.$resultsContainer.addClass(this.cssClasses.noResults);\n }\n\n if (this.dom.$filterTopic.length > 0) {\n labelTopic = this.dom.$filterTopic.data('selectric').$element.find('option:first').text();\n\n this.dom.$filterTopic.data('selectric').elements.label.html(labelTopic);\n }\n\n labelDataRange = this.dom.$filterDateRange.data('selectric').$element.find('option:first').text();\n\n this.dom.$filterDateRange.data('selectric').elements.label.html(labelDataRange);\n\n this.$el.removeClass('loading');\n (0, _index.goToPreviewPosition)(this.searchName);\n\n urlParams = {};\n\n\n urlParams['dateRange'] = this.queryParams.dateRange;\n\n if (!urlParams.dateRange) {\n delete urlParams.dateRange;\n }\n\n urlParams.topic = this.topicNames;\n if (!urlParams.topic) {\n delete urlParams.topic;\n }\n\n if (this.queryParams.currentpage > 1) {\n urlParams['currentpage'] = this.queryParams.currentpage;\n }\n\n if (!this.isBackButonAction) {\n _context.next = 23;\n break;\n }\n\n return _context.abrupt('return');\n\n case 23:\n if (!this.isTrigeredByScript) {\n _context.next = 25;\n break;\n }\n\n return _context.abrupt('return');\n\n case 25:\n\n this.isBackButonAction = false;\n (0, _index.updateHistory)(jQuery.param(urlParams));\n\n case 27:\n case 'end':\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function renderResults() {\n return _ref.apply(this, arguments);\n }\n\n return renderResults;\n }()\n }, {\n key: 'onLoadData',\n value: function onLoadData() {\n this.renderResults().catch(function (err) {\n console.error('There was an issue getting your results', err);\n });\n }\n }, {\n key: 'createFacet',\n value: function createFacet(facetInfo) {\n this.dom.$filterFacets.show();\n var item = (0, _template3.default)(_searchFacet2.default)(_extends({}, facetInfo));\n\n $(item).insertBefore(this.dom.$clearBtn);\n }\n }, {\n key: 'onFacetClick',\n value: function onFacetClick(e) {\n e.stopPropagation();\n\n var $facet = $(e.currentTarget);\n var facetVal = $facet.data('value');\n var facetCategory = $facet.data('category');\n\n // This is for dropdowns filters\n var facetID = '#' + facetCategory;\n this.dom.$filters.find(facetID).find('option[value=\"' + facetVal + '\"]').prop('selected', false);\n this.dom.$filters.find(facetID).selectric('refresh');\n\n //This is because of some select can be of multiple selection\n if ((0, _isArray3.default)(this.dom.$filters.find(facetID).val())) {\n this.queryParams[facetCategory] = this.dom.$filters.find(facetID).val().join('|');\n } else {\n this.queryParams[facetCategory] = this.dom.$filters.find(facetID).val();\n }\n\n if (facetID === '#topic') {\n var tpn = [];\n this.dom.$filters.find(facetID).find('option:selected:not([disabled])').each(function (index, element) {\n tpn.push($(element).text());\n });\n this.topicNames = tpn.join('|');\n }\n\n $facet.remove();\n\n if ($('.wh-search-results-filters__facet').length === 0) {\n this.dom.$filterFacets.hide();\n }\n\n this.onLoadData();\n }\n }, {\n key: 'onClearClick',\n value: function onClearClick(e) {\n e.preventDefault();\n\n this.dom.$filterTopic.val([]);\n this.dom.$filterDateRange.val([]);\n this.topicNames = '';\n\n this.dom.$filterTopic.selectric('refresh');\n this.dom.$filterDateRange.selectric('refresh');\n this.dom.$filterFacets.find('.btn--facet').remove();\n\n delete this.queryParams['dateRange'];\n delete this.queryParams['topic'];\n\n this.dom.$filterFacets.hide();\n\n this.onLoadData();\n }\n }]);\n\n return BlogListing;\n}(_component2.default);\n\nexports.default = BlogListing;\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(10), __webpack_require__(10)))\n\n/***/ }),\n\n/***/ 615:\n/***/ (function(module, exports) {\n\nmodule.exports = \" \";\n\n/***/ }),\n\n/***/ 622:\n/***/ (function(module, exports, __webpack_require__) {\n\nvar createFind = __webpack_require__(623),\n findIndex = __webpack_require__(624);\n\n/**\n * Iterates over elements of `collection`, returning the first element\n * `predicate` returns truthy for. The predicate is invoked with three\n * arguments: (value, index|key, collection).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to inspect.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @param {number} [fromIndex=0] The index to search from.\n * @returns {*} Returns the matched element, else `undefined`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'age': 36, 'active': true },\n * { 'user': 'fred', 'age': 40, 'active': false },\n * { 'user': 'pebbles', 'age': 1, 'active': true }\n * ];\n *\n * _.find(users, function(o) { return o.age < 40; });\n * // => object for 'barney'\n *\n * // The `_.matches` iteratee shorthand.\n * _.find(users, { 'age': 1, 'active': true });\n * // => object for 'pebbles'\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.find(users, ['active', false]);\n * // => object for 'fred'\n *\n * // The `_.property` iteratee shorthand.\n * _.find(users, 'active');\n * // => object for 'barney'\n */\nvar find = createFind(findIndex);\n\nmodule.exports = find;\n\n\n/***/ }),\n\n/***/ 623:\n/***/ (function(module, exports, __webpack_require__) {\n\nvar baseIteratee = __webpack_require__(217),\n isArrayLike = __webpack_require__(56),\n keys = __webpack_require__(66);\n\n/**\n * Creates a `_.find` or `_.findLast` function.\n *\n * @private\n * @param {Function} findIndexFunc The function to find the collection index.\n * @returns {Function} Returns the new find function.\n */\nfunction createFind(findIndexFunc) {\n return function(collection, predicate, fromIndex) {\n var iterable = Object(collection);\n if (!isArrayLike(collection)) {\n var iteratee = baseIteratee(predicate, 3);\n collection = keys(collection);\n predicate = function(key) { return iteratee(iterable[key], key, iterable); };\n }\n var index = findIndexFunc(collection, predicate, fromIndex);\n return index > -1 ? iterable[iteratee ? collection[index] : index] : undefined;\n };\n}\n\nmodule.exports = createFind;\n\n\n/***/ }),\n\n/***/ 624:\n/***/ (function(module, exports, __webpack_require__) {\n\nvar baseFindIndex = __webpack_require__(625),\n baseIteratee = __webpack_require__(217),\n toInteger = __webpack_require__(626);\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max;\n\n/**\n * This method is like `_.find` except that it returns the index of the first\n * element `predicate` returns truthy for instead of the element itself.\n *\n * @static\n * @memberOf _\n * @since 1.1.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @param {number} [fromIndex=0] The index to search from.\n * @returns {number} Returns the index of the found element, else `-1`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'active': false },\n * { 'user': 'fred', 'active': false },\n * { 'user': 'pebbles', 'active': true }\n * ];\n *\n * _.findIndex(users, function(o) { return o.user == 'barney'; });\n * // => 0\n *\n * // The `_.matches` iteratee shorthand.\n * _.findIndex(users, { 'user': 'fred', 'active': false });\n * // => 1\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.findIndex(users, ['active', false]);\n * // => 0\n *\n * // The `_.property` iteratee shorthand.\n * _.findIndex(users, 'active');\n * // => 2\n */\nfunction findIndex(array, predicate, fromIndex) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return -1;\n }\n var index = fromIndex == null ? 0 : toInteger(fromIndex);\n if (index < 0) {\n index = nativeMax(length + index, 0);\n }\n return baseFindIndex(array, baseIteratee(predicate, 3), index);\n}\n\nmodule.exports = findIndex;\n\n\n/***/ }),\n\n/***/ 625:\n/***/ (function(module, exports) {\n\n/**\n * The base implementation of `_.findIndex` and `_.findLastIndex` without\n * support for iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {Function} predicate The function invoked per iteration.\n * @param {number} fromIndex The index to search from.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\nfunction baseFindIndex(array, predicate, fromIndex, fromRight) {\n var length = array.length,\n index = fromIndex + (fromRight ? 1 : -1);\n\n while ((fromRight ? index-- : ++index < length)) {\n if (predicate(array[index], index, array)) {\n return index;\n }\n }\n return -1;\n}\n\nmodule.exports = baseFindIndex;\n\n\n/***/ }),\n\n/***/ 626:\n/***/ (function(module, exports, __webpack_require__) {\n\nvar toFinite = __webpack_require__(627);\n\n/**\n * Converts `value` to an integer.\n *\n * **Note:** This method is loosely based on\n * [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {number} Returns the converted integer.\n * @example\n *\n * _.toInteger(3.2);\n * // => 3\n *\n * _.toInteger(Number.MIN_VALUE);\n * // => 0\n *\n * _.toInteger(Infinity);\n * // => 1.7976931348623157e+308\n *\n * _.toInteger('3.2');\n * // => 3\n */\nfunction toInteger(value) {\n var result = toFinite(value),\n remainder = result % 1;\n\n return result === result ? (remainder ? result - remainder : result) : 0;\n}\n\nmodule.exports = toInteger;\n\n\n/***/ }),\n\n/***/ 627:\n/***/ (function(module, exports, __webpack_require__) {\n\nvar toNumber = __webpack_require__(221);\n\n/** Used as references for various `Number` constants. */\nvar INFINITY = 1 / 0,\n MAX_INTEGER = 1.7976931348623157e+308;\n\n/**\n * Converts `value` to a finite number.\n *\n * @static\n * @memberOf _\n * @since 4.12.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {number} Returns the converted number.\n * @example\n *\n * _.toFinite(3.2);\n * // => 3.2\n *\n * _.toFinite(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toFinite(Infinity);\n * // => 1.7976931348623157e+308\n *\n * _.toFinite('3.2');\n * // => 3.2\n */\nfunction toFinite(value) {\n if (!value) {\n return value === 0 ? value : 0;\n }\n value = toNumber(value);\n if (value === INFINITY || value === -INFINITY) {\n var sign = (value < 0 ? -1 : 1);\n return sign * MAX_INTEGER;\n }\n return value === value ? value : 0;\n}\n\nmodule.exports = toFinite;\n\n\n/***/ })\n\n});\n\n\n// WEBPACK FOOTER //\n// 0.52f5a0f9.bundle.js","import Component from 'component';\nimport { updateHistory, getUrlParameter } from '../helpers/index'\n\nclass Pagination extends Component{\n constructor(el, config){\n super(el, config);\n }\n\n setupDefaults(){\n this.dom = {\n $pagination: this.$el.find('.wh-search-results__pagination'),\n $prevBtn: this.$el.find('.wh-search-results__prev-btn'),\n $nextBtn: this.$el.find('.wh-search-results__next-btn'),\n $paginationPages: this.$el.find('.wh-search-results__pages')\n };\n }\n\n addListeners(){\n this.dom.$prevBtn.on('click', ::this.onClickPrevBtn);\n this.dom.$nextBtn.on('click', ::this.onClickNextBtn);\n\n }\n\n rangePagination(currentPage, pageCount) {\n const delta = 1;\n const range = [];\n\n if (pageCount <= 5) {\n for(let i = 1; i <= pageCount; i++) {\n range.push(i);\n }\n return range;\n }\n\n if (currentPage < 3) {\n for(let i = 2; i <= 4; i++) {\n range.push(i);\n }\n } else if (currentPage > pageCount - 1) {\n for(let i = currentPage - 3; i <= pageCount - 1; i++) {\n range.push(i);\n }\n } else if (currentPage > pageCount - 2) {\n for(let i = currentPage - 2; i <= pageCount - 1; i++) {\n range.push(i);\n }\n } else {\n for(\n let i = Math.max(2, currentPage - delta);\n i <= Math.min(pageCount - 1, currentPage + delta);\n i++\n ) {\n range.push(i);\n }\n }\n\n if (currentPage - delta > 2) {\n range.unshift('...');\n }\n if (currentPage + delta < pageCount - 1) {\n range.push('...');\n }\n\n range.unshift(1);\n range.push(pageCount);\n\n return range;\n }\n\n setPagination(totalNumberOfPages, currentPage, onLoadData, headerElement, extraUrlParams, queryParams) {\n\n if (queryParams) {\n this.config.queryParams = queryParams;\n }\n\n const { $pagination, $paginationPages, $prevBtn, $nextBtn } = this.dom\n this.onLoadData = onLoadData;\n this.currentPage = currentPage;\n this.scrollToElement = headerElement;\n this.extraUrlParams = extraUrlParams;\n\n $paginationPages.empty();\n\n if (totalNumberOfPages === 1){\n $pagination.hide();\n return;\n }\n\n for(const pageNumber of this.rangePagination(currentPage, totalNumberOfPages)) {\n const span = document.createElement('button');\n const pageNumberText = document.createTextNode(pageNumber);\n span.appendChild(pageNumberText)\n pageNumber === '...' ? this.addDotsStyles(span) : span.addEventListener('click', ::this.onClickPageNumber)\n currentPage === pageNumber ? span.classList.add('active'): span.classList.remove('active');\n currentPage === 1 ? this.setInvisibleBtn($prevBtn) : this.setVisibleBtn($prevBtn)\n currentPage === totalNumberOfPages ? this.setInvisibleBtn($nextBtn): this.setVisibleBtn($nextBtn)\n $paginationPages.append(span)\n }\n }\n\n addDotsStyles(span) {\n span.setAttribute('tabindex', '-1');\n span.classList.add('ellipsis');\n }\n\n changeCurrentPage() {\n this.config.queryParams.currentpage = this.currentPage;\n this.currentPage = this.currentPage;\n this.setURLParameters();\n this.scrollTo(this.scrollToElement);\n this.onLoadData();\n }\n\n setURLParameters(){\n const historyParams = {};\n if (this.config.queryParams.keyword) {\n historyParams.keyword = this.config.queryParams.keyword\n }\n\n if (this.config.queryParams.upcoming) {\n historyParams.upcoming = this.config.queryParams.upcoming\n }\n\n if (this.config.queryParams.past) {\n historyParams.past = this.config.queryParams.past\n }\n\n if (this.config.queryParams.clecredit) {\n historyParams.clecredit = this.config.queryParams.clecredit\n }\n\n if (this.config.queryParams.firmevent) {\n historyParams.firmevent = this.config.queryParams.firmevent\n }\n\n if (this.config.queryParams.insightsbytype) {\n historyParams.insightsbytype = this.config.queryParams.insightsbytype;\n }\n\n if (this.config.queryParams.solution) {\n historyParams.solution = this.config.queryParams.solution;\n }\n\n if (this.config.queryParams.solutionname) {\n historyParams.solution = this.config.queryParams.solutionname;\n }\n\n if (this.config.queryParams.topic) {\n historyParams.topic = this.config.queryParams.topic;\n }\n\n if (this.config.queryParams.topicname) {\n historyParams.topicname = this.config.queryParams.topicname;\n }\n\n if (this.config.queryParams.position) {\n historyParams.position = this.config.queryParams.position;\n }\n\n if (this.config.queryParams.location) {\n historyParams.location = this.config.queryParams.location;\n }\n\n if (this.config.queryParams.experience) {\n historyParams.experience = this.config.queryParams.experience;\n }\n\n if (this.config.queryParams.letter) {\n historyParams.letter = this.config.queryParams.letter;\n }\n\n if (this.config.queryParams.sort) {\n historyParams.sort = this.config.queryParams.sort;\n }\n\n if (this.config.queryParams.people) {\n historyParams.person = this.config.queryParams.people;\n }\n\n if (this.config.queryParams.personname) {\n historyParams.personname = this.config.queryParams.personname;\n }\n\n if (this.config.queryParams.person) {\n historyParams.person = this.config.queryParams.person;\n }\n\n if (this.config.queryParams.type) {\n historyParams['insight-type'] = this.config.queryParams.insightType;\n }\n\n if (this.config.queryParams.subtype) {\n historyParams.subtype = this.config.queryParams.subtype;\n }\n\n if (this.config.queryParams.timerange) {\n historyParams.timerange = this.config.queryParams.timerange;\n }\n\n if (this.config.queryParams.timerangefrom) {\n historyParams.timerangefrom = this.config.queryParams.timerangefrom;\n }\n\n if (this.config.queryParams.timerangeto) {\n historyParams.timerangeto = this.config.queryParams.timerangeto;\n }\n\n if (this.config.queryParams.format) {\n historyParams.format = this.config.queryParams.format;\n }\n\n if (this.config.queryParams.area) {\n historyParams.area = this.config.queryParams.area;\n }\n\n if (this.config.queryParams.series) {\n historyParams.series = this.config.queryParams.series;\n }\n\n if (this.config.queryParams.seriesnames) {\n historyParams.seriesnames = this.config.queryParams.seriesnames;\n }\n\n if (this.config.queryParams.topics) {\n historyParams.topics = this.config.queryParams.topics;\n }\n\n if (this.config.queryParams.currentpage > 1) {\n historyParams.currentpage = this.config.queryParams.currentpage;\n }\n\n for(const property in this.extraUrlParams) {\n if (this.extraUrlParams[property]) {\n historyParams[`${property}`] = this.extraUrlParams[property];\n }\n }\n\n updateHistory(jQuery.param(historyParams));\n }\n\n setVisibleBtn(button) {\n button.addClass('visible');\n button.removeClass('no-visible')\n }\n\n setInvisibleBtn(button) {\n button.addClass('no-visible');\n button.removeClass('visible')\n }\n\n onClickPrevBtn() {\n this.currentPage--;\n this.changeCurrentPage();\n }\n\n onClickNextBtn() {\n this.currentPage++;\n this.changeCurrentPage();\n }\n\n onClickPageNumber(e) {\n $(e.target).addClass('active');\n this.currentPage = parseInt(e.target.innerHTML);\n this.changeCurrentPage();\n }\n\n scrollTo(element) {\n window.scrollTo({\n top: this.getScrollPostion(element)\n });\n }\n\n getScrollPostion(element){\n const stickyHeaderHeight = $('.wh-sticky-header').height();\n const elementYPostion = this.getElementYPostion(element);\n return stickyHeaderHeight ? elementYPostion - stickyHeaderHeight : elementYPostion;\n }\n\n getElementYPostion(element) {\n let yPosition = 0;\n\n while(element) {\n yPosition += (element.offsetTop - element.scrollTop + element.clientTop);\n element = element.offsetParent;\n }\n\n return yPosition;\n }\n\n}\n\nexport default Pagination;\n\n\n\n// WEBPACK FOOTER //\n// ./src/js/components/Pagination.js","import Component from 'component';\nimport 'selectric';\nimport _isArray from 'lodash/isArray';\nimport _template from 'lodash/template';\nimport _find from 'lodash/find';\nimport { addLabelsToSelectric, getUrlParameter, updateHistory, setScrollPosition, goToPreviewPosition } from '../helpers/index.js';\nimport facetTmpl from 'templates/search-facet';\nimport Pagination from '../components/Pagination';\n\n//TODO: Waypoint.refreshAll() on window resize!!!\n\nclass BlogListing extends Component{\n constructor(el, config){\n super(el, config);\n\n const isMobile = navigator.platform.toLowerCase().match(/(iphone|ipod|ipad|android|arm)/) !== null ? true : false;\n\n this.dom.$filterTopic.selectric({\n disableOnMobile: false,\n nativeOnMobile: isMobile\n });\n\n this.dom.$filterDateRange.selectric({\n disableOnMobile: false,\n nativeOnMobile: isMobile\n });\n\n addLabelsToSelectric();\n\n this.setWaypoints();\n if (this.queryParams.dateRange) {\n this.dom.$filterDateRange.val(this.queryParams.dateRange)\n .selectric('refresh')\n .trigger('change', 'true');\n }\n\n if (this.topicNames) {\n const topicsNamesArray = this.topicNames.split('|');\n const topicsValuesArray = [];\n\n // Find option values by its text\n this.dom.$filterTopic.find('option').each((index, element) => {\n const topicByName = _find(topicsNamesArray, o => {\n return o === $(element).text()\n });\n if (topicByName) {\n topicsValuesArray.push($(element).val())\n }\n });\n\n this.dom.$filterTopic.val(topicsValuesArray)\n .selectric('refresh')\n .trigger('change', 'true');\n }\n\n if (!this.topicNames && !this.queryParams.dateRange) {\n this.onLoadData();\n }\n }\n\n setupDefaults(){\n this.dom = {\n $body: $('body'),\n $filterTopic: this.$el.find('.wh-blog-listing__topic'),\n $filterDateRange: this.$el.find('.wh-blog-listing__date-range'),\n $resultsContainer: this.$el.find('.wh-blog-listing-results'),\n $results: this.$el.find('.wh-blog-listing-results__list'),\n $loadTotal: this.$el.find('.load-total'),\n $loadCount: this.$el.find('.load-count'),\n $header: this.$el.find('.wh-blog-listing-header'),\n $stickyHeader: $('.wh-sticky-header'),\n $footer: this.$el.find('.wh-search-results__footer'),\n $filterFacets: this.$el.find('.wh-blog-listing__facets'),\n $clearBtn: this.$el.find('.wh-blog-listing__clear'),\n $filters: this.$el.find('.wh-blog-listing-header__filters'),\n $pagination: this.$el.find('.wh-search-results__pagination')\n };\n\n this.searchName = 'BlogListing';\n\n this.cssClasses = {\n noResults: 'no-results',\n limitResults: 'limit-results'\n };\n\n this.currentPage = this.getCurrentPage();\n this.recordsPerPage = this.config.pagesize;\n\n this.queryParams = {\n currentpage: this.currentPage,\n pagesize: this.recordsPerPage\n };\n\n this.isBackButonAction = false;\n this.isTrigeredByScript = false;\n\n this.queryParams.dateRange = getUrlParameter('dateRange');\n this.queryParams.dateRange = typeof this.queryParams.dateRange === 'boolean' ? '' : this.queryParams.dateRange;\n this.queryParams.topic = '';\n this.topicNames = getUrlParameter('topic');\n this.topicNames = typeof this.topicNames === 'boolean' ? '' : this.topicNames;\n this.blogsubtypeid = this.$el.data('blog-subtype-id');\n this.itemlocationid = this.$el.data('item-location-id');\n\n\n if (this.dom.$pagination){\n this.paginationComponent = new Pagination(this.dom.$pagination, { queryParams: this.queryParams })\n }\n }\n\n addListeners(){\n this.dom.$filterTopic.on('change', ::this.onTopicFilterChange);\n this.dom.$filterDateRange.on('change', ::this.onDateRangeFilterChange);\n this.dom.$body.on('click touchend', '.wh-search-results-filters__facet', ::this.onFacetClick);\n this.dom.$clearBtn.on('click touchend', ::this.onClearClick);\n this.$el.on('click touch', '.wh-blog-listing-results-item a', setScrollPosition.bind(null, this.searchName));\n\n $(window).on('popstate', () => {\n window.location.href = window.location.href;\n });\n }\n\n setWaypoints() {\n this.dom.$header.waypoint(direction => {\n if (direction === 'down') {\n this.dom.$header.addClass('stuck');\n this.dom.$header.css('top', this.dom.$stickyHeader.outerHeight());\n } else {\n this.dom.$header.removeClass('stuck');\n this.dom.$header.css('top', '');\n }\n }, { offset: () => {\n return this.dom.$stickyHeader.outerHeight()\n } });\n }\n\n getCurrentPage() {\n return getUrlParameter('currentpage') ? getUrlParameter('currentpage') : 1\n }\n\n onTopicFilterChange(e, isTrigered){\n const $currentTarget = $(e.currentTarget);\n const selectric = $(e.currentTarget).data('selectric');\n\n if (this.dom.$filterTopic.val()[0] === '') {\n this.dom.$filterTopic.find('option').prop('selected', false);\n $(e.currentTarget).data('selectric').refresh();\n } else {\n $(e.currentTarget).data('selectric').close();\n }\n\n this.queryParams.topic = $(e.currentTarget).val().join('|');\n this.dom.$filterFacets.find('[data-category=\"topic\"]').remove();\n\n const tpn = [];\n $(e.currentTarget).find('option:selected:not([disabled])').each((index, element) => {\n tpn.push($(element).text());\n\n this.createFacet({\n category: 'topic',\n value: $(element).val(),\n title: $(element).text()\n });\n });\n\n this.topicNames = tpn.join('|');\n\n if (isTrigered) {\n this.isTrigeredByScript = true;\n }\n\n if (isTrigered === undefined) {\n this.queryParams.currentpage = 1;\n this.currentpage = 1;\n this.isTrigeredByScript = false;\n }\n\n this.onLoadData();\n }\n\n onDateRangeFilterChange(e, isTrigered){\n const $currentTarget = $(e.currentTarget);\n this.queryParams.dateRange = $currentTarget.val();\n this.dom.$filterFacets.find('[data-category=\"dateRange\"]').remove();\n this.createFacet({\n category: 'dateRange',\n value: $currentTarget.val(),\n title: $currentTarget.find('option:selected').html()\n })\n\n if (isTrigered) {\n this.isTrigeredByScript = true;\n }\n\n if (isTrigered === undefined) {\n this.queryParams.currentpage = 1;\n this.currentpage = 1;\n this.isTrigeredByScript = false;\n }\n\n this.onLoadData();\n }\n\n getResults(){\n return $.getJSON(\n this.config.endpoint,\n {\n ...this.queryParams,\n blogsubtypeid: this.blogsubtypeid,\n itemlocationid: this.itemlocationid\n }\n );\n }\n\n async renderResults(){\n this.$el.addClass('loading');\n const data = await this.getResults();\n const { ListResult } = data;\n\n this.TotalNumberOfPages = ListResult.TotalNumberOfPages;\n this.queryParams.currentpage = ListResult.CurrentPage === 0 ? 1 : ListResult.CurrentPage;\n\n let items = '';\n\n\n ListResult.TotalNumberOfPages > 1 ? this.dom.$footer.show(): this.dom.$footer.hide();\n\n if (ListResult.TotalResults > 0) {\n\n this.dom.$pagination.show();\n this.paginationComponent.setPagination(this.TotalNumberOfPages, this.queryParams.currentpage, ::this.onLoadData, document.querySelector('.wh-blog-listing-results'));\n\n ListResult.Results.forEach(data => {\n items += _template(this.config.template)({\n data\n });\n });\n\n\n this.dom.$results.html(items);\n\n if (ListResult.CurrentPage < ListResult.TotalNumberOfPages) {\n this.$el.removeClass(this.cssClasses.limitResults);\n\n const itemsLeft = ListResult.TotalResults - (ListResult.CurrentPage * ListResult.PageSize);\n const loadCount = itemsLeft < ListResult.PageSize ? itemsLeft : ListResult.PageSize;\n this.dom.$loadCount.text(loadCount);\n this.dom.$loadTotal.text(ListResult.TotalResults);\n\n } else {\n this.$el.addClass(this.cssClasses.limitResults);\n }\n this.dom.$resultsContainer.removeClass(this.cssClasses.noResults);\n } else {\n this.dom.$pagination.hide();\n this.$el.addClass(this.cssClasses.limitResults);\n this.dom.$results.html('');\n this.dom.$resultsContainer.addClass(this.cssClasses.noResults);\n }\n\n if (this.dom.$filterTopic.length > 0) {\n const labelTopic = this.dom.$filterTopic.data('selectric').$element.find('option:first').text();\n this.dom.$filterTopic.data('selectric').elements.label.html(labelTopic);\n }\n\n const labelDataRange = this.dom.$filterDateRange.data('selectric').$element.find('option:first').text();\n this.dom.$filterDateRange.data('selectric').elements.label.html(labelDataRange);\n\n this.$el.removeClass('loading');\n goToPreviewPosition(this.searchName);\n\n const urlParams = {};\n\n urlParams['dateRange'] = this.queryParams.dateRange;\n\n if (!urlParams.dateRange) {\n delete urlParams.dateRange\n }\n\n urlParams.topic = this.topicNames;\n if (!urlParams.topic) {\n delete urlParams.topic\n }\n\n\n if (this.queryParams.currentpage > 1) {\n urlParams['currentpage'] = this.queryParams.currentpage;\n }\n\n if (this.isBackButonAction){\n return;\n }\n\n if (this.isTrigeredByScript){\n return;\n }\n\n this.isBackButonAction = false;\n updateHistory(jQuery.param(urlParams));\n }\n\n onLoadData(){\n this.renderResults()\n .catch(err => {\n console.error('There was an issue getting your results', err);\n });\n }\n\n createFacet(facetInfo){\n this.dom.$filterFacets.show();\n const item = _template(facetTmpl)({\n ...facetInfo\n });\n\n $(item).insertBefore(this.dom.$clearBtn);\n }\n\n onFacetClick(e){\n e.stopPropagation();\n\n const $facet = $(e.currentTarget);\n const facetVal = $facet.data('value');\n const facetCategory = $facet.data('category');\n\n // This is for dropdowns filters\n const facetID = `#${facetCategory}`;\n this.dom.$filters.find(facetID).find('option[value=\"'+facetVal+'\"]').prop('selected', false);\n this.dom.$filters.find(facetID).selectric('refresh');\n\n //This is because of some select can be of multiple selection\n if (_isArray(this.dom.$filters.find(facetID).val())) {\n this.queryParams[facetCategory] = this.dom.$filters.find(facetID).val().join('|');\n } else {\n this.queryParams[facetCategory] = this.dom.$filters.find(facetID).val()\n }\n\n if (facetID === '#topic') {\n const tpn = [];\n this.dom.$filters.find(facetID).find('option:selected:not([disabled])').each((index, element) => {\n tpn.push($(element).text());\n });\n this.topicNames = tpn.join('|');\n }\n\n $facet.remove();\n\n if ($('.wh-search-results-filters__facet').length === 0) {\n this.dom.$filterFacets.hide();\n }\n\n this.onLoadData();\n }\n\n onClearClick(e){\n e.preventDefault();\n\n this.dom.$filterTopic.val([]);\n this.dom.$filterDateRange.val([]);\n this.topicNames = '';\n\n this.dom.$filterTopic.selectric('refresh');\n this.dom.$filterDateRange.selectric('refresh');\n this.dom.$filterFacets.find('.btn--facet').remove();\n\n delete this.queryParams['dateRange'];\n delete this.queryParams['topic'];\n\n this.dom.$filterFacets.hide();\n\n this.onLoadData();\n }\n}\n\nexport default BlogListing;\n\n\n\n// WEBPACK FOOTER //\n// ./src/js/components/BlogListing.js","module.exports = \" \";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/modules/templates/search-facet.html\n// module id = 615\n// module chunks = 0 6 7 8 9 10 11","var createFind = require('./_createFind'),\n findIndex = require('./findIndex');\n\n/**\n * Iterates over elements of `collection`, returning the first element\n * `predicate` returns truthy for. The predicate is invoked with three\n * arguments: (value, index|key, collection).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to inspect.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @param {number} [fromIndex=0] The index to search from.\n * @returns {*} Returns the matched element, else `undefined`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'age': 36, 'active': true },\n * { 'user': 'fred', 'age': 40, 'active': false },\n * { 'user': 'pebbles', 'age': 1, 'active': true }\n * ];\n *\n * _.find(users, function(o) { return o.age < 40; });\n * // => object for 'barney'\n *\n * // The `_.matches` iteratee shorthand.\n * _.find(users, { 'age': 1, 'active': true });\n * // => object for 'pebbles'\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.find(users, ['active', false]);\n * // => object for 'fred'\n *\n * // The `_.property` iteratee shorthand.\n * _.find(users, 'active');\n * // => object for 'barney'\n */\nvar find = createFind(findIndex);\n\nmodule.exports = find;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/find.js\n// module id = 622\n// module chunks = 0","var baseIteratee = require('./_baseIteratee'),\n isArrayLike = require('./isArrayLike'),\n keys = require('./keys');\n\n/**\n * Creates a `_.find` or `_.findLast` function.\n *\n * @private\n * @param {Function} findIndexFunc The function to find the collection index.\n * @returns {Function} Returns the new find function.\n */\nfunction createFind(findIndexFunc) {\n return function(collection, predicate, fromIndex) {\n var iterable = Object(collection);\n if (!isArrayLike(collection)) {\n var iteratee = baseIteratee(predicate, 3);\n collection = keys(collection);\n predicate = function(key) { return iteratee(iterable[key], key, iterable); };\n }\n var index = findIndexFunc(collection, predicate, fromIndex);\n return index > -1 ? iterable[iteratee ? collection[index] : index] : undefined;\n };\n}\n\nmodule.exports = createFind;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/_createFind.js\n// module id = 623\n// module chunks = 0","var baseFindIndex = require('./_baseFindIndex'),\n baseIteratee = require('./_baseIteratee'),\n toInteger = require('./toInteger');\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max;\n\n/**\n * This method is like `_.find` except that it returns the index of the first\n * element `predicate` returns truthy for instead of the element itself.\n *\n * @static\n * @memberOf _\n * @since 1.1.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @param {number} [fromIndex=0] The index to search from.\n * @returns {number} Returns the index of the found element, else `-1`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'active': false },\n * { 'user': 'fred', 'active': false },\n * { 'user': 'pebbles', 'active': true }\n * ];\n *\n * _.findIndex(users, function(o) { return o.user == 'barney'; });\n * // => 0\n *\n * // The `_.matches` iteratee shorthand.\n * _.findIndex(users, { 'user': 'fred', 'active': false });\n * // => 1\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.findIndex(users, ['active', false]);\n * // => 0\n *\n * // The `_.property` iteratee shorthand.\n * _.findIndex(users, 'active');\n * // => 2\n */\nfunction findIndex(array, predicate, fromIndex) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return -1;\n }\n var index = fromIndex == null ? 0 : toInteger(fromIndex);\n if (index < 0) {\n index = nativeMax(length + index, 0);\n }\n return baseFindIndex(array, baseIteratee(predicate, 3), index);\n}\n\nmodule.exports = findIndex;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/findIndex.js\n// module id = 624\n// module chunks = 0","/**\n * The base implementation of `_.findIndex` and `_.findLastIndex` without\n * support for iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {Function} predicate The function invoked per iteration.\n * @param {number} fromIndex The index to search from.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\nfunction baseFindIndex(array, predicate, fromIndex, fromRight) {\n var length = array.length,\n index = fromIndex + (fromRight ? 1 : -1);\n\n while ((fromRight ? index-- : ++index < length)) {\n if (predicate(array[index], index, array)) {\n return index;\n }\n }\n return -1;\n}\n\nmodule.exports = baseFindIndex;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/_baseFindIndex.js\n// module id = 625\n// module chunks = 0","var toFinite = require('./toFinite');\n\n/**\n * Converts `value` to an integer.\n *\n * **Note:** This method is loosely based on\n * [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {number} Returns the converted integer.\n * @example\n *\n * _.toInteger(3.2);\n * // => 3\n *\n * _.toInteger(Number.MIN_VALUE);\n * // => 0\n *\n * _.toInteger(Infinity);\n * // => 1.7976931348623157e+308\n *\n * _.toInteger('3.2');\n * // => 3\n */\nfunction toInteger(value) {\n var result = toFinite(value),\n remainder = result % 1;\n\n return result === result ? (remainder ? result - remainder : result) : 0;\n}\n\nmodule.exports = toInteger;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/toInteger.js\n// module id = 626\n// module chunks = 0","var toNumber = require('./toNumber');\n\n/** Used as references for various `Number` constants. */\nvar INFINITY = 1 / 0,\n MAX_INTEGER = 1.7976931348623157e+308;\n\n/**\n * Converts `value` to a finite number.\n *\n * @static\n * @memberOf _\n * @since 4.12.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {number} Returns the converted number.\n * @example\n *\n * _.toFinite(3.2);\n * // => 3.2\n *\n * _.toFinite(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toFinite(Infinity);\n * // => 1.7976931348623157e+308\n *\n * _.toFinite('3.2');\n * // => 3.2\n */\nfunction toFinite(value) {\n if (!value) {\n return value === 0 ? value : 0;\n }\n value = toNumber(value);\n if (value === INFINITY || value === -INFINITY) {\n var sign = (value < 0 ? -1 : 1);\n return sign * MAX_INTEGER;\n }\n return value === value ? value : 0;\n}\n\nmodule.exports = toFinite;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/toFinite.js\n// module id = 627\n// module chunks = 0"],"sourceRoot":""}