1import{C as c,a as b,k as f}from"./app-7rvwEe1q.js";try{let e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="b13e1a40-b58b-4d32-996d-f4fc71980178",e._sentryDebugIdIdentifier="sentry-dbid-b13e1a40-b58b-4d32-996d-f4fc71980178")}catch{}const s=class s extends c{constructor(){super(...arguments),this.url=this.getAttribute("url")}init(){this.setNextButton(),this.listHover=document.querySelector("b-list-hover")}setNextButton(){this.nextButton=this.$("next-button"),this.nextContainer=this.$("next-container"),this.nextButton&&this.nextButton.addEventListener("click",()=>{this.nextButton.setAttribute("disabled",""),b(this.nextButton).add("loading"),this.nextButton.hasAttribute("data-next-page")&&this.loadPage(this.nextButton.getAttribute("data-next-page"))})}async loadPage(t="2"){var i;const d=((i=this.nextButton)==null?void 0:i.getAttribute("data-query"))||window.location.search,u=`${this.url}/${t!=="1"?"p"+t:""}`.replace(/\/$/,"");return f(`${u}${d}`,"b-pagination").then(n=>{var o,r;if(n){t==="1"?this.innerHTML="":(o=this.nextContainer)==null||o.remove();const l=Array.from(n.querySelectorAll('[data-el="hover-el"]'));(r=this.listHover)==null||r.setHovers(l,t==="1"),Array.from(n.childNodes).forEach(h=>{this.append(h)}),window.htmx.process(this),this.setNextButton()}return n??null})}};s.component="b-pagination";let a=s;export{a as default}; 2//# sourceMappingURL=Pagination-D198fKtE.js.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.