1import{_ as V}from"./CyhGuleE.js";import{d as $,y as I,e as M,c as D,f as d,j as g,m as G,k as n,l as a,n as w,w as v,b as p,q as m,z as h,F as T,s as K,ax as L}from"./Dl4lv6OR.js";const Q={key:0,class:"flex justify-between text-caption font-medium md:grid md:grid-cols-[150px_1fr_150px]","aria-label":"Pagination"},F=["href","aria-label","onClick"],W={class:"hidden md:block"},E={key:1,class:"inline-flex h-9 w-9 flex-nowrap items-center justify-center gap-2 whitespace-nowrap rounded-lg text-new-gray-300 md:w-auto md:px-3","aria-disabled":"true"},R={class:"hidden md:block"},Z={class:"pagin_numbers",role:"list"},H={key:0,class:"points_pag flex h-9 w-9 items-center justify-center rounded-full text-new-gray-500","aria-hidden":"true"},J={key:0,class:"current","aria-current":"page"},O={class:"flex h-9 w-9 items-center justify-center rounded-full bg-new-gray-500 text-white"},U=["href","aria-label","onClick"],X={class:"flex justify-end"},Y=["href","aria-label","onClick"],tt={class:"hidden md:block"},et={key:1,class:"inline-flex h-9 w-9 flex-nowrap items-center justify-center gap-2 whitespace-nowrap rounded-lg text-new-gray-300 md:w-auto md:px-3","aria-disabled":"true"},at={class:"hidden md:block"},st=$({__name:"Pagination",props:{meta:{},basePath:{},preserveQueryKeys:{}},setup(x){const r=x,{t:b}=I({useScope:"local"}),k=M(),C=D(),S=d(()=>r.basePath??k.path),_=d(()=>r.meta?.current_page??1),f=d(()=>r.meta?.last_page??1),N=d(()=>_.value>1),q=d(()=>_.value<f.value),z=d(()=>Math.max(1,_.value-1)),A=d(()=>Math.min(f.value,_.value+1));function y(l){const c={};if(r.preserveQueryKeys?.length)for(const s of r.preserveQueryKeys)k.query[s]!=null&&(c[s]=k.query[s]);return C({path:S.value,query:{...c,page:l}})}const B=d(()=>{const l=f.value,c=_.value,s=1;if(l<=7)return Array.from({length:l},(e,u)=>u+1);const o=new Set;o.add(1),o.add(2),o.add(l-1),o.add(l);for(let e=c-s;e<=c+s;e++)e>=1&&e<=l&&o.add(e);const t=Array.from(o).sort((e,u)=>e-u),i=[];for(let e=0;e<t.length;e++){const u=t[e],P=t[e-1];e&&P!=null&&u-P>1&&i.push("dots"),i.push(u)}return i});return(l,c)=>{const s=V,o=L;return x.meta&&f.value>1?(n(),g("div",Q,[a("div",null,[N.value?(n(),w(o,{key:0,to:y(z.value),custom:""},{default:v(({href:t,navigate:i})=>[a("a",{href:t,rel:"prev",class:"group inline-flex h-9 w-9 flex-nowrap items-center justify-center gap-2 whitespace-nowrap rounded-lg text-new-gray-500 transition active:bg-new-gray-100 md:w-auto md:px-3 hover:lg:bg-new-gray-100","aria-label":p(b)("back"),onClick:i},[m(s,{"stroke-color":"text-new-gray-500 transition group-hover:lg:-translate-x-0.5 rotate-180"}),a("span",W,h(p(b)("back")),1)],8,F)]),_:1},8,["to"])):(n(),g("span",E,[m(s,{"stroke-color":"text-new-gray-300 rotate-180"}),a("span",R,h(p(b)("back")),1)]))]),a("div",null,[a("ul",Z,[(n(!0),g(T,null,K(B.value,(t,i)=>(n(),g("li",{key:t==="dots"?`d-${i}`:`p-${t}`},[t==="dots"?(n(),g("span",H,[...c[0]||(c[0]=[a("span",null,"â¦",-1)])])):(n(),g(T,{key:1},[t===_.value?(n(),g("span",J,[a("span",O,h(t),1)])):(n(),w(o,{key:1,to:y(t),custom:""},{default:v(({href:e,navigate:u})=>[a("a",{href:e,class:"flex h-9 w-9 items-center justify-center rounded-full text-new-gray-500 transition hover:lg:bg-new-gray-100","aria-label":`${p(b)("goToPage")} ${t}`,onClick:u},h(t),9,U)]),_:2},1032,["to"]))],64))]))),128))])]),a("div",X,[q.value?(n(),w(o,{key:0,to:y(A.value),custom:""},{default:v(({href:t,navigate:i})=>[a("a",{href:t,rel:"next",class:"group inline-flex h-9 w-9 flex-nowrap items-center justify-center gap-2 whitespace-nowrap rounded-lg text-new-gray-500 transition active:bg-new-gray-100 md:w-auto md:px-3 hover:lg:bg-new-gray-100","aria-label":p(b)("next"),onClick:i},[a("span",tt,h(p(b)("next")),1),m(s,{"stroke-color":"text-new-gray-500 transition group-hover:lg:translate-x-0.5"})],8,Y)]),_:1},8,["to"])):(n(),g("span",et,[a("span",at,h(p(b)("next")),1),m(s,{"stroke-color":"text-new-gray-300"})]))])])):G("",!0)}}});function j(x){const r=x;r.__i18n=r.__i18n||[],r.__i18n.push({locale:"",resource:{en:{back:{t:0,b:{t:2,i:[{t:3}],s:"Back"}},next:{t:0,b:{t:2,i:[{t:3}],s:"Next"}},goToPage:{t:0,b:{t:2,i:[{t:3}],s:"Go to page"}}},ro:{back:{t:0,b:{t:2,i:[{t:3}],s:"Ãnapoi"}},next:{t:0,b:{t:2,i:[{t:3}],s:"Ãnainte"}},goToPage:{t:0,b:{t:2,i:[{t:3}],s:"Mergi la pagina"}}},ru:{back:{t:0,b:{t:2,i:[{t:3}],s:"Ðазад"}},next:{t:0,b:{t:2,i:[{t:3}],s:"ÐпеÑÑд"}},goToPage:{t:0,b:{t:2,i:[{t:3}],s:"ÐеÑейÑи на ÑÑÑаниÑÑ"}}},uk:{back:{t:0,b:{t:2,i:[{t:3}],s:"Ðазад"}},next:{t:0,b:{t:2,i:[{t:3}],s:"ÐпеÑед"}},goToPage:{t:0,b:{t:2,i:[{t:3}],s:"ÐеÑейÑи на ÑÑоÑÑнкÑ"}}},de:{back:{t:0,b:{t:2,i:[{t:3}],s:"Zurück"}},next:{t:0,b:{t:2,i:[{t:3}],s:"Weiter"}},goToPage:{t:0,b:{t:2,i:[{t:3}],s:"Gehe zu Seite"}}},pl:{back:{t:0,b:{t:2,i:[{t:3}],s:"Wstecz"}},next:{t:0,b:{t:2,i:[{t:3}],s:"Dalej"}},goToPage:{t:0,b:{t:2,i:[{t:3}],s:"Przejdź do strony"}}},fr:{back:{t:0,b:{t:2,i:[{t:3}],s:"Précédent"}},next:{t:0,b:{t:2,i:[{t:3}],s:"Suivant"}},goToPage:{t:0,b:{t:2,i:[{t:3}],s:"Aller à la page"}}},it:{back:{t:0,b:{t:2,i:[{t:3}],s:"Indietro"}},next:{t:0,b:{t:2,i:[{t:3}],s:"Avanti"}},goToPage:{t:0,b:{t:2,i:[{t:3}],s:"Vai alla pagina"}}},es:{back:{t:0,b:{t:2,i:[{t:3}],s:"Atrás"}},next:{t:0,b:{t:2,i:[{t:3}],s:"Siguiente"}},goToPage:{t:0,b:{t:2,i:[{t:3}],s:"Ir a la página"}}},da:{back:{t:0,b:{t:2,i:[{t:3}],s:"Tilbage"}},next:{t:0,b:{t:2,i:[{t:3}],s:"Næste"}},goToPage:{t:0,b:{t:2,i:[{t:3}],s:"GÃ¥ til side"}}},zh:{back:{t:0,b:{t:2,i:[{t:3}],s:"è¿å"}},next:{t:0,b:{t:2,i:[{t:3}],s:"ä¸ä¸é¡µ"}},goToPage:{t:0,b:{t:2,i:[{t:3}],s:"è·³è³é¡µç "}}}
1,ko:{back:{t:0,b:{t:2,i:[{t:3}],s:"ë¤ë¡"}},next:{t:0,b:{t:2,i:[{t:3}],s:"ë¤ì"}},goToPage:{t:0,b:{t:2,i:[{t:3}],s:"íì´ì§ë¡ ì´ë"}}},pt:{back:{t:0,b:{t:2,i:[{t:3}],s:"Voltar"}},next:{t:0,b:{t:2,i:[{t:3}],s:"Avançar"}},goToPage:{t:0,b:{t:2,i:[{t:3}],s:"Ir para a página"}}},sq:{back:{t:0,b:{t:2,i:[{t:3}],s:"Mbrapa"}},next:{t:0,b:{t:2,i:[{t:3}],s:"Tjetër"}},goToPage:{t:0,b:{t:2,i:[{t:3}],s:"Shko te faqja"}}}}})}typeof j=="function"&&j(st);export{st as _};
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.