PageSourceSearch

https://www.siniat.pl/etex/js/assets/js/2334.e758a7da2753e3cc3491.mjs

js siniat.pl collected 2026-10-07 23:23:23 UTC 4,448 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkwebpack=self.webpackChunkwebpack||[]).push([[2334],{52334:function(t,e,n){n.r(e),n.d(e,{default:function(){return g}});var i=n(47277),s=n.n(i),r=n(42799),o=n(79234),a=n(83491),c=n(38048),l=n(78097),h=".js-list-items-container",u=".js-list-skeletons-container",d=".js-product-link";const p="_productClickHandler";class g extends r.o{constructor(t){super(t),this.initialRendering=!0,this.currentPage=1,this.pageCount=1,this.pageSize=1,this.init()}init(){this.currentPage=this.parm.currentPage,this.pageCount=this.parm.pageCount,this.pageSize=this.parm.pageSize,this.itemContainer=this.element.querySelector(h),this.skeletonContainer=this.element.querySelector(u),this.bindPaginationClick(),this.bindProductClickEvents(),window.onpopstate=t=>{if(!1===this.initialRendering){var e=t.state;null==e&&(e=location.search),this.facetMapAndListUpdate(decodeURIComponent(e))}},this.switchToItems(),this.pushProductImpressions()}bindPaginationClick(){this.element.querySelector("wc-pagination").addEventListener("PagingChanged",(t=>{var e=s()(t.currentTarget).data("goto-page");if(0!==e){this.currentPage=e;var n=this.parm.pagingUrl+"&ts="+(new Date).getTime(),i={currentQuery:s()("#currentQuery").val(),pageNumber:t.detail.current,pageSize:this.pageSize};this.switchToSkeletons();var r=new o.o(n,i,!1);this.ajaxWrapper.doFetch(r).then((t=>{t.clone().text().then((t=>{this.successPagingAjaxCallback(t)}))}))}}))}successPagingAjaxCallback(t){let e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];var n=new a.E(t);this.itemContainer.innerHTML=n.getComponentUpdate("listItems").content,this.switchToItems(),c.Z.scrollToElement(this.itemContainer),e&&this.updateHistory(!0,!1,"#paginationQuery"),this.bindProductClickEvents(),this.pushProductImpressions(),this.initialRendering=!1}updateHistory(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"#currentUrlQuery";if(history.pushState&&t){var i=s()(n).val(),r=window.location.toString(),o=r.indexOf("?");o>-1&&(r=r.substr(0,o)),i&&(r=r+"?"+i),e?history.replaceState(i,null,r):history.pushState(i,null,r)}}facetMapAndListUpdate(t){null==t&&(t=s()("#currentQuery").val().toString());var e={currentQuery:t},n=this.parm.pagingUrl+"&ts="+(new Date).getTime(),i=new o.o(n,e,!0);this.ajaxWrapper.doFetch(i).then((t=>{t.clone().text().then((t=>{this.successPagingAjaxCallback(t,!1)}))}))}switchToSkeletons(){this.skeletonContainer.classList.remove("u-hide"),this.itemContainer.classList.add("u-hide")}switchToItems(){this.skeletonContainer.classList.add("u-hide"),this.itemContainer.classList.remove("u-hide")}pushProductImpressions(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Product overview";const e=[],n=new Set;this.element.querySelectorAll(d).forEach((i=>{const s=i.dataset.productId||"";if(n.has(s))return;n.add(s);const r=new l.Q9;r.id=s,r.name=i.dataset.productName||"",r.brand="",r.category="",r.variant="",r.price=0,r.position=e.length+1,r.list=t,e.push(r)})),e.length>0&&l.yY.pushProductImpressions(e,t)}bindProductClickEvents(){this.element.querySelectorAll(d).forEach((t=>{t.removeEventListener("click",t[p]),t[p]=()=>{const e={id:t.dataset.productId||"",name:t.dataset.productName||"",brand:"",category:"",category2:"",variant:"",price:0,quantity:1,coupon:"",position:0};l.yY.pushProductClicks(e,"Product overview")},t.addEventListener("click",t[p])}))}}},38048:function(t,e){class n{static scrollToElement(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"smooth";var n=document.querySelector(this.SELECTOR_HEADER),i=0;n&&(i=n.offsetHeight),window.scrollTo({behavior:e,top:this.getOffset(t).top-i})}static getOffset(t){var e=t.getBoundingClientRect(),n=window.pageXOffset||document.documentElement.scrollLeft,i=window.pageYOffset||document.documentElement.scrollTop;return{top:e.top+i,left:e.left+n}}}n.SELECTOR_HEADER=".js-header",e.Z=n},83491:function(t,e,n){n.d(e,{E:function(){return r}});var i=n(47277),s=n.n(i);class r{constructor(t){this.rawResponse=t,this.response=s()(t)}getComponentUpdate(t){var e=this.response.filter("[data-component="+t+"]");return e.length?{content:e.html().trim(),json:s().parseJSON(e.find("script[type='json']")[0].innerHTML)}:null}getChildComponentUpdate(t){var e=this.response.find("[data-component="+t+"]");return e.length?{content:e[0].innerHTML,json:s().parseJSON(this.response.find("script")[0].innerHTML)}:null}}}}]);

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.