PageSourceSearch

https://riwia.pl/application/assets/storefront/chunk-pagination_page_number_initializer.Dfrpl3G.js

js riwia.pl collected 2026-10-02 20:28:34 UTC 1,413 bytes, 1 lines download raw bytes

1import{D as c,E as p,S as l,C as h}from"./storefrontApp.CsApItsi.min.js";import{S as m}from"./chunk-storefront_base_lit_element.lX23Jvc.js";import{e as g}from"./chunk-vendor-lit.NvY0u02.js";import"./chunk-vendor-di.Bh23gdA.js";import"./chunk-storefront_settings_constants.DIF02Gz.js";import"./chunk-vendor-rxjs.Dp7kflo.js";import"./chunk-vendor-lodash.CWHFt7Z.js";import"./chunk-vendor-phoenix.cdKS79L.js";var N=Object.defineProperty,u=(r,e,t,i)=>{for(var a=void 0,n=r.length-1,o;n>=0;n--)(o=r[n])&&(a=o(e,t,a)||a);return a&&N(e,t,a),a};class s extends m{constructor(){super(),this.paginationUrl="",this.currentPage="1",this._handlePageChange=e=>{const t=e.target,i=this._calculatePageNumber(t.value);if(t.value===""){t.value=this.currentPage||i;return}this._pageManagerApi?.visit(`${this.paginationUrl}/${i}`)},this.getApi(c.api).then(e=>{this._pageManagerApi=e})}static{this.moduleName=p.component}connectedCallback(){super.connectedCallback(),this._addEventListeners()}_addEventListeners(){this.addEventListener("change",this._handlePageChange)}_calculatePageNumber(e){const t=parseInt(e);return String(isNaN(t)?1:t)}}u([g({type:String,attribute:"pagination-url"})],s.prototype,"paginationUrl");u([g({type:String,attribute:"current-page"})],s.prototype,"currentPage");class S extends l{static{this.featureName=p.feature}init(){return{cores:[{type:h,instance:s}]}}}export{S as PaginationPageNumberInitializer};

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.