PageSourceSearch

https://www.schwarzkopf.ca/etc.clientlibs/heliux/clientlibs/publis…-256cb0367f077f01c2a29e286d43cac2-lc.min.js

js schwarzkopf.ca collected 2026-10-08 12:32:45 UTC 3,516 bytes, 1 lines download raw bytes

1"use strict";(self.heliuxModules=self.heliuxModules||[]).push([[5098],{10031(t,e,s){var i=s(23029),r=s(49530),n=s(50388),l=s(53954),o=s(90991),a=s(85501),u=s(31526),c=s(12595);const d={elements:{view:".sortfiltercontainer__viewStyle",teaser:".teaserlist__item"},classes:{hidden:"isHidden"},subscribes:{reloadSortFilterResults:t=>`sortfilter:${t}:results:reload`,urlParamsChanged:t=>`sortfilter:${t}:results:urlParamsChanged`,resultsNumberUpdate:t=>`sortfilter:${t}:results:number`},publishes:{newResultsLoaded:t=>`sortfilter:${t}:results:loaded`,filterResultsLoaded:t=>`sortfilter:${t}:filter:resultsReloaded`}};function h(t,e,s){return e=(0,l.A)(e),(0,n.A)(t,f()?Reflect.construct(e,s||[],(0,l.A)(t).constructor):e.apply(t,s))}function f(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(f=function(){return!!t})()}function g(t,e,s,i){var r=(0,o.A)((0,l.A)(1&i?t.prototype:t),e,s);return 2&i&&"function"==typeof r?function(t){return r.apply(s,t)}:r}const{core:p}=(0,u.getComponents)();let m=function(t){function e(){return(0,i.A)(this,e),h(this,e,arguments)}return(0,a.A)(e,t),(0,r.A)(e,[{key:"parentView",get:function(){return this.el.closest(this.config.elements.view)}},{key:"init",value:function(){this.config=(0,c.$N)({},d,this.config),g(e,"init",this,3)([])}},{key:"addListeners",value:function(){const{subscribes:t,containerId:s}=this.config;g(e,"addListeners",this,3)([]),s&&((0,u.B1)(t.reloadSortFilterResults(s),this.filterResults.bind(this)),(0,u.B1)(t.urlParamsChanged(s),this.filterUrlParamsChanged.bind(this)))}},{key:"getBaseLoadMoreUrl",value:function(t){let s=g(e,"getBaseLoadMoreUrl",this,3)([t]);const i=window.location.pathname,r=i.substring(i.indexOf(".html"));return s=s.replace(".html",r),s}},{key:"filterUrlParamsChanged",value:function(t){this.urlParams=t}},{key:"loadMoreResults",value:function(t){const{classes:e}=this.config;if(!this.parentView?.classList.contains(e.hidden)&&!this.paginationController.isAtStart&&this.paginationController.hasPagination){const{publishes:e}=this.config,s=this.buildRequestURL(t);this.createRequestV2(s,t=>{this.listForLoadMore&&this.listForLoadMore.insertAdjacentHTML("beforeend",t),this.listForLazyScrolling&&(this.listForLazyScrolling.insertAdjacentHTML("beforeend",t),(0,u.publish)(e.hideSpinner(this.lazyScrollingSpinner?.id)),this.lazyScrollingInProgress=!1),(0,u.publish)(e.teasersLoaded(this.el.id)),this.loadmore&&this.paginationController.currentPage>=this.paginationController.totalPages&&this.loadmore.classList.add(this.config.classes.hidden)})}}},{key:"filterResults",value:function({filterUrlParams:t,paginationController:e}){const{publishes:s,containerId:i,classes:r}=this.config;if(!this.parentView?.classList.contains(r.hidden)){this.urlParams=t;const n=this.buildRequestURL(e);this.createRequestV2(n,t=>{this.list.innerHTML=t;const e=document.createElement("div");e.innerHTML=t;const n=JSON.parse(e.querySelector("meta").dataset.sortfilter);(0,u.publish)(s.newResultsLoaded(i),n),(0,u.publish)(s.filterResultsLoaded(this.el.id));const l=parseInt(n.count,10),o=this.list.querySelectorAll(this.config.elements.teaser);this.loadmore&&(o.length>=l?this.loadmore.classList.add(r.hidden):this.loadmore.classList.remove(r.hidden),this.paginationController.reset({totalResults:l,offset:0,reset:!0})),this.lazyScrolling&&this.paginationController.reset({totalResults:l,reset:!0})})}}}])}(p.TeaserListV2);(0,u.kz)({TeaserListV2SortAndFilterApi:m},0)}},t=>{t.O(0,[750],()=>t(10031)),t.O()}]);

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.