PageSourceSearch

https://www.billa.sk/_nuxt/CRwfG_74.js

js billa.sk collected 2026-09-24 22:48:06 UTC 3,876 bytes, 1 lines download raw bytes

1import{_ as I}from"./BK53tKGP.js";import{as as M,cQ as A,cF as V,ak as g,ah as p,cn as m,ct as l,ap as S,dg as w,j as y,bz as b,g as D,c4 as R,aj as T,ao as x,ae as v,b2 as z,bR as d,ai as F,c3 as G}from"./C9Z41gEb.js";import{p as O}from"./KQcfL-V9.js";import{P as f}from"./Ch76DfIG.js";import{u as U}from"./jVz7gLct.js";const H={class:"ws-pagination text-center","aria-labelledby":"pagination"},K={id:"pagination",class:"show-sr-and-print"},Q={key:0,class:"ws-list","data-test":"pagination"},J={key:1,class:"ellipsis","aria-hidden":"true"},W={class:"d-sr-only","aria-live":"polite","aria-atomic":"true"},te=M({__name:"pagination",props:{currentPageAnnouncement:{default:void 0},page:{default:0},pages:{default:0},paginationType:{default:f.PAGES}},emits:["update:page"],setup(e,{emit:C}){const t=e,h=z(O,G(void 0)),{$t:u,$f:E}=A(),L=a=>a!==t.page?u("accessibility.pagination.page",[a]):t.currentPageAnnouncement?E(t.currentPageAnnouncement,[a]):void 0,q=v(()=>h.value?u("screenreader.newloaded",[h.value]):""),k=C,$=V(),{isMounted:N}=U(),c=v(()=>A().isHydrating&&!N.value?5:$.smAndUp.value?7:5),P=v(()=>{const a=(o,B)=>Array.from({length:B},(X,j)=>({page:j+o,type:"link"}));if(!(t.pages>c.value))return a(1,t.pages);const r=t.page>3,n=t.pages-t.page>3,i=[{page:1,type:"link"}];if(r&&i.push({type:"ellipsis"}),r&&n){const o=(c.value-5)/2;i.push(...a(t.page-o,o*2+1))}else{const o=$.smAndUp.value?c.value-3:c.value-2;r&&!n?i.push(...a(t.pages-o,o)):!r&&n&&i.push(...a(2,o))}return n&&i.push({type:"ellipsis"}),i.push({page:t.pages,type:"link"}),i});return(a,s)=>{const r=I;return d(),g("nav",H,[p("h2",K,m(l(u)("pagination.headline")),1),!e.paginationType||e.paginationType===l(f).PAGES?(d(),g("ul",Q,[p("li",{class:b(["ws-list-item ws-pagination__prev",{"ws-list-item--disabled":e.page===1}]),"data-test":"pagination-previous"},[S(r,{class:"ws-btn ws-btn--small ws-btn--secondary","aria-label":l(u)("pagination.prevpage"),"aria-current":void 0,"aria-disabled":e.page===1?"true":void 0,to:e.page===1?void 0:{query:{...(a._.provides[y]||a.$route).query,page:t.page-1}},onClick:s[0]||(s[0]=n=>k("update:page",t.page-1))},{default:w(()=>[...s[3]||(s[3]=[p("span",{class:"ws-icon notranslate","aria-hidden":"true"}," chevron_left ",-1)])]),_:1},8,["aria-label","aria-disabled","to"])],2),(d(!0),g(D,null,R(l(P),(n,i)=>(d(),g("li",{key:`item-${i}`,class:"ws-list-item","data-test":"pagination-item"},[n.type==="link"?(d(),F(r,{key:0,class:b(["ws-btn ws-btn--small",n.page===e.page?"ws-btn--primary":"ws-btn--secondary"]),"aria-label":L(n.page),"aria-current":n.page===e.page?"page":void 0,to:{query:{...(a._.provides[y]||a.$route).query,page:n.page}},onClick:o=>a.$emit("update:page",n.page)},{default:w(()=>[x(m(n.page),1)]),_:2},1032,["class","aria-label","aria-current","to","onClick"])):(d(),g("span",J,"…"))]))),128)),p("li",{class:b(["ws-list-item ws-pagination__next",{"ws-list-item--disabled":e.page===e.pages}]),"data-test":"pagination-next"},[S(r,{class:"ws-btn ws-btn--small ws-btn--secondary","aria-label":l(u)("pagination.nextpage"),"aria-current":void 0,"aria-disabled":e.page===e.pages?"true":void 0,to:e.page===e.pages?void 0:{query:{...(a._.provides[y]||a.$route).query,page:t.page+1}},onClick:s[1]||(s[1]=n=>k("update:page",t.page+1))},{default:w(()=>[...s[4]||(s[4]=[p("span",{class:"ws-icon notranslate","aria-hidden":"true"}," chevron_right ",-1)])]),_:1},8,["aria-label","aria-disabled","to"])],2)])):T("",!0),e.paginationType===l(f).LOAD_MORE&&e.page<e.pages?(d(),g("button",{key:1,class:"ws-btn ws-btn--tertiary ws-btn--super-round text-primary2 mx-auto","data-test":"pagination-load-more",onClick:s[2]||(s[2]=n=>a.$emit("update:page",e.page+1))},[x(m(l(u)("button.showmore"))+" ",1),s[5]||(s[5]=p("span",{class:"ws-icon ws-icon--right notranslate","aria-hidden":"true"}," expand_more ",-1))])):T("",!0),p("output",W,m(l(q)),1)])}}});export{te as default};

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.