PageSourceSearch

https://www.beiersdorf.gr/dist/bdfcw/modules/JobFilter.4167a9df.js

js beiersdorf.gr collected 2026-10-06 12:48:50 UTC 7,296 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[7015,8490],{56617(e,t,i){var n=i(63278),r=i(42379),o=i(20017),s=i(21438),l=i(25026),c=i(5440),a='[data-module="JobFilter"]',h=function(){function e(e,t){void 0===t&&(t={}),this.element=e,this.options=t,this.suppressEvents=!1,this.options=(0,o.$E)(this.element,Object.assign(this.getDefaultOptions(),this.options)),this.resetBtn=this.element.querySelector(this.options.resetBtnSelector),this.filterNode=this.element.querySelector(this.options.filterSelector),this.jobList=this.element.querySelector(this.options.jobListNodeSelector),this.searchField=this.element.querySelector(this.options.searchFieldSelector),this.searchIcon=this.element.querySelector(this.options.searchIconSelector),this.init()}return e.setup=function(t){void 0===t&&(t=a),Array.from(document.querySelectorAll(t)).filter(function(e){return!e.dataset.moduleInitialized}).forEach(function(t){new e(t),t.dataset.moduleInitialized="true"})},e.prototype.init=function(){return this.showLoadingSpinner().initFilterItems(this.filterNode).initSelects(this.filterNode).initFilterAction(this.element).initAutoComplete().initSearchField().addHandlerOnFilterChange().addHandlerOnResetBtn().addHandlerOnFilterClick().addHandlerOnPaginationClick().synchronize().hideLoadingSpinner(),this},e.prototype.initAutoComplete=function(){var e=this;return new l.A({_Select:function(t){return e.autoCompleteSelect(t)}}),this},e.prototype.closeAutoSelect=function(){Array.from(this.element.querySelectorAll(".autocomplete")).forEac
1h(function(e){e.classList.contains("open")&&e.classList.remove("open")})},e.prototype.autoCompleteSelect=function(e){this.searchField.value=e.dataset.autocompleteValue,this.updateFilterAction()},e.prototype.showSpinner=function(){this.spinner=document.createElement("div"),this.spinner.innerHTML='<div class="cw-spinner cw-spinner__loading cw-spinner--overlay cw-spinner--align-middle"><div class="cw-spinner__container "><div class="cw-spinner__wheel"></div></div></div>',this.jobList.appendChild(this.spinner)},e.prototype.hideSpinner=function(){this.spinner.hidden=!0},e.prototype.showLoadingSpinner=function(){return this.loadingSpinner=document.createElement("div"),this.loadingSpinner.innerHTML='<div class="cw-spinner cw-spinner__loading cw-spinner--overlay cw-spinner--align-middle"><div class="cw-spinner__container "><div class="cw-spinner__wheel"></div></div></div>',this.element.appendChild(this.loadingSpinner),this},e.prototype.hideLoadingSpinner=function(){var e=this;return setTimeout(function(){e.loadingSpinner.hidden=!0,(0,c.vy)(e.filterNode,"loading")},1e3),this},e.prototype.initSelects=function(e){return Array.from(e.querySelectorAll(this.options.selectItemSelector)).map(function(e){return new s.default(e)}),this},e.prototype.initSearchField=function(){var e=this;return this.searchField.addEventListener("keyup",function(t){13===t.keyCode&&(e.closeAutoSelect(),e.updateFilterAction())}),this.searchIcon.addEventListener("click",function(){e.closeAutoSelect(),e.updateFilterAction()}),this},e.prototype.initFilterAction=function(e){var t=this,i={loadMoreLoaded:function(){return t.loadMoreLoaded()},loadMoreTriggered:function(){return t.loadMoreTriggered()}};return this.filterAction=this.filterAction||new r.default(e,{callbacks:i}),this},e.prototype.initFilterItems=function(e){return this.filterItems=Array.from(e.querySelectorAll(this.options.filterItemSelector)).map(function(e){return new n.default(e)}),this},e.prototype.addHandlerOnResetBtn=function(){var e=this;return this.resetBtn.addEventListener("click",function(){return e.reset()}),this},e.prototype.addHandlerOnPaginationClick=function(){var e=this.onPaginationClick.bind(this);return Array.from(this.element.querySelectorAll(this.options.paginationItemSelector)).forEach(function(t){t.addEventListener("click",e)}),this.paginationClick=e,this},e.prototype.removeHandlerOnPaginationClick=function(){var e=this;return Array.from(this.element.querySelectorAll(this.options.paginationItemSelector)).forEach(function(t){t.removeEventListener("click",e.paginationClick)}),this},e.prototype.onPaginationClick=function(e){var t=e.target,i=t.dataset.page;return(0,c.nB)(t,"disabled")||null!=i&&(this.removeHandlerOnPaginationClick(),this.filterAction.loadPage(i),this.filterAction.scrollToResultNode()),this},e.prototype.reset=function(){return this.suppressEvents=!0,this.resetSearchField(),this.filterAction.resetState(),this.filterItems.forEach(function(e){e.refreshFilters()}),this.suppressEvents=!1,this.filterAction.updateUrl(),this.updateSearchSuggestAjaxUrl(),this.filterAction.reload(),this},e.prototype.updateSearchSuggestAjaxUrl=function(){var e=this.filterAction.searchSuggestionUrl(),t=this.searchField.dataset.autocomplete;return""!==e&&e!==t&&(this.searchField.dataset.autocomplete=e),this},e.prototype.resetSearchField=function(){return this.searchField.value="",this},e.prototype.loadMoreLoaded=function(){this.addHandlerOnPaginationClick(),this.hideSpinner()},e.prototype.loadMoreTriggered=function(){this.removeHandlerOnPaginationClick(),this.updateSearchSuggestAjaxUrl(),this.showSpinner()},e.prototype.updateAllFilterItems=function(){return this.filterItems.forEach(function(e){return e.refreshFilters()}),this},e.prototype.updateFilterAction=function(){return this.filterAction.update(),this.filterAction.updateUrl(),this.filterAction.reload(),this},e.prototype.onFilterChange=function(e){var t=e.target;this.suppressEvents||(t.closest(this.options.checkboxSelector)||t.closest(this.options.easyDropDownSelector))&&this.updateFilterAction()},e.prototype.addHandlerOnFilterChange=function(){var e=this;return this.filterNode.addEventListener("change",function(t){return e.onFilterChange(t)}
1),this},e.prototype.onDocumentClick=function(e){var t=e.target,i=t.closest(this.options.filterItemSelector+"--active")||t;this.filterItems.forEach(function(e){return e.element!==i&&e.closeExpander()})},e.prototype.addHandlerOnFilterClick=function(){return document.addEventListener("click",this.onDocumentClick.bind(this)),this},e.prototype.synchronize=function(){return this.updateAllFilterItems(),this},e.prototype.getDefaultOptions=function(){return{filterSelector:".cw-tag-filter",checkboxSelector:".cw-cat-item__tag-value",easyDropDownSelector:".edd-select",searchFieldSelector:".cw-search",filterItemSelector:".cw-tag-filter__item",resetBtnSelector:".cw-sort-filters__reset-btn",selectItemSelector:".cw-select-single",paginationItemSelector:".cw-pagination-item, .cw-btn--next, .cw-btn--prev",jobListNodeSelector:".cw-job-list",searchIconSelector:".cw-search__wrapper .search-icon",jobStageButtonSelector:".cw-job-stage-trigger"}},e}();const d=h;new h.setup(a),i.d(t,["default",0,d])},21438(e,t,i){var n=i(25574);const r=function(){function e(e){this.element=e,this.dropdown=this.getDropDown()}return e.prototype.getDropDown=function(){return new n.A(this.element.querySelector("select"),{behavior:{useNativeUiOnMobile:!1,showPlaceholderWhenOpen:!0}})},e.prototype.getSelectedValue=function(){return this.dropdown.value},e.prototype.getParameter=function(){var e=this.getSelectedValue();return void 0===e||""===e?"":this.element.dataset.key+"="+e},e}();i.d(t,["default",0,r])}}]);
2//# sourceMappingURL=/dist/bdfcw/./modules/JobFilter.4167a9df.js.7b0b6bb4.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.