import{a as ht,c as xt}from"./utils-09ff0c0e.js";import{a as l,l as o,t as et,b as i,f as I,m as c,h as at,d as N,r as m,j as n,i as vt,k as a,n as nt}from"./lifecycle-16e1fb41.js";import{S as dt,i as gt,c as st,b as rt,m as lt,a as ot,t as it,d as ct}from"./index-b180c43f.js";import{C as _t,a as Ct}from"./ZoomOut24-a2398075.js";import{$ as yt}from"./runtime-ea3b2d3b.js";import"./spread-8a54911c.js";import"./index-9ff358fd.js";import"./_commonjsHelpers-725317a4.js";function $t(h){let t,r,f,b,u=h[1](h[0].previous)+"",P,M,x,J="1",O,v,K="2",R,d,Q="3",T,g,U="4",V,_,W="5",z,C,X="6",B,j,Y="…",D,y,Z="17",F,$,tt="18",G,p,w=h[1](h[0].next)+"",E,H,A,k;return f=new _t({props:{fill:"currentColor"}}),A=new Ct({props:{fill:"currentColor"}}),{c(){t=l("nav"),r=l("a"),st(f.$$.fragment),b=o(),P=et(u),M=o(),x=l("a"),x.textContent=J,O=o(),v=l("a"),v.textContent=K,R=o(),d=l("a"),d.textContent=Q,T=o(),g=l("a"),g.textContent=U,V=o(),_=l("a"),_.textContent=W,z=o(),C=l("a"),C.textContent=X,B=o(),j=l("span"),j.textContent=Y,D=o(),y=l("a"),y.textContent=Z,F=o(),$=l("a"),$.textContent=tt,G=o(),p=l("a"),E=et(w),H=o(),st(A.$$.fragment),this.h()},l(s){t=i(s,"NAV",{class:!0});var e=I(t);r=i(e,"A",{href:!0,class:!0});var S=I(r);rt(f.$$.fragment,S),b=c(S),P=at(S,u),S.forEach(N),M=c(e),x=i(e,"A",{href:!0,class:!0,"data-svelte-h":!0}),m(x)!=="svelte-ak6ox3"&&(x.textContent=J),O=c(e),v=i(e,"A",{href:!0,class:!0,"data-svelte-h":!0}),m(v)!=="svelte-10r4717"&&(v.textContent=K),R=c(e),d=i(e,"A",{href:!0,class:!0,"data-svelte-h":!0}),m(d)!=="svelte-13dre0n"&&(d.textContent=Q),T=c(e),g=i(e,"A",{href:!0,class:!0,"data-svelte-h":!0}),m(g)!=="svelte-v6bi1q"&&(g.textContent=U),V=c(e),_=i(e,"A",{href:!0,class:!0,"data-svelte-h":!0}),m(_)!=="svelte-1c7ylf3"&&(_.textContent=W),z=c(e),C=i(e,"A",{href:!0,class:!0,"data-svelte-h":!0}),m(C)!=="svelte-fk307f"&&(C.textContent=X),B=c(e),j=i(e,"SPAN",{"data-svelte-h":!0}),m(j)!=="svelte-fw8tqc"&&(j.textContent=Y),D=c(e),y=i(e,"A",{href:!0,class:!0,"data-svelte-h":!0}),m(y)!=="svelte-ypj5a3"&&(y.textContent=Z),F=c(e),$=i(e,"A",{href:!0,class:!0,"data-svelte-h":!0}),m($)!=="svelte-ludw9t"&&($.textContent=tt),G=c(e),p=i(e,"A",{href:!0,class:!0});var q=I(p);E=at(q,w),H=c(q),rt(A.$$.fragment,q),q.forEach(N),e.forEach(N),this.h()},h(){n(r,"href","?page=-1"),n(r,"class","flex gap-2 text-primary-500"),n(x,"href","?page=1"),n(x,"class","text-surface-500"),n(v,"href","?page=2"),n(v,"class","text-surface-500"),n(d,"href","?page=3"),n(d,"class","text-surface-500"),n(g,"href","?page=4"),n(g,"class","bg-primary-500 text-white rounded h-8 w-8 flex justify-center items-center"),n(_,"href","?page=5"),n(_,"class","text-surface-500"),n(C,"href","?page=6"),n(C,"class","text-surface-500"),n(y,"href","?page=17"),n(y,"class","text-surface-500"),n($,"href","?page=18"),n($,"class","text-surface-500"),n(p,"href","?page=+1"),n(p,"class","flex gap-2 text-primary-500"),n(t,"class","flex gap-4 items-center justify-center")},m(s,e){vt(s,t,e),a(t,r),lt(f,r,null),a(r,b),a(r,P),a(t,M),a(t,x),a(t,O),a(t,v),a(t,R),a(t,d),a(t,T),a(t,g),a(t,V),a(t,_),a(t,z),a(t,C),a(t,B),a(t,j),a(t,D),a(t,y),a(t,F),a(t,$),a(t,G),a(t,p),a(p,E),a(p,H),lt(A,p,null),k=!0},p(s,[e]){(!k||e&3)&&u!==(u=s[1](s[0].previous)+"")&&nt(P,u),(!k||e&3)&&w!==(w=s[1](s[0].next)+"")&&nt(E,w)},i(s){k||(ot(f.$$.fragment,s),ot(A.$$.fragment,s),k=!0)},o(s){it(f.$$.fragment,s),it(A.$$.fragment,s),k=!1},d(s){s&&N(t),ct(f),ct(A)}}}function At(h,t,r){let f;xt(h,yt,u=>r(1,f=u));let{i18n:b={next:"",previous:""}}=t;return h.$$set=u=>{"i18n"in u&&r(0,b=u.i18n)},[b,f]}class mt extends dt{constructor(t){super(),gt(this,t,At,$t,ht,{i18n:0})}}mt.__docgen={version:3,name:"Pagination.svelte",data:[{keywords:[],visibility:"public",description:"Translation keys",name:"i18n",kind:"let",static:!1,readonly:!1,type:{kind:"type",text:"object",type:"object"}}],computed:[],methods:[],components:[],description:null,keywords:[],events:[],slots:[],refs:[]};const Nt={title:"Molecules/Pagination",component:mt,tags:["autodocs"]},L={args:{i18n:{next:"page.projects.nav.next",previous:"page.projects.nav.previous"}}};var ft,ut,pt;L.parameters={...L.parameters,docs:{...(ft=L.parameters)==null?void 0:ft.docs,source:{originalSource:`{ args: { i18n: { next: 'page.projects.nav.next', previous: 'page.projects.nav.previous' } } }`,...(pt=(ut=L.parameters)==null?void 0:ut.docs)==null?void 0:pt.source}}};const Lt=["Plain"];export{L as Plain,Lt as __namedExportsOrder,Nt as default};