Anvil/assets/Pagination-DmsdqO-l.js

2 lines
3.7 KiB
JavaScript
Raw Normal View History

2024-07-22 13:59:31 +02:00
import{S as ft,i as ct,s as ut,c as tt,a as et,m as at,t as nt,b as st,d as rt,e as ht}from"./index-7XOhh2kt.js";import{e as l,a as o,t as lt,c as i,b as J,d as f,f as ot,h as N,i as p,j as n,k as pt,l as a,n as it}from"./lifecycle-Dpe71s4v.js";import{C as xt,a as mt}from"./ZoomOut24-Cmc7Jjj8.js";import{$ as vt}from"./runtime-BQCs4yl7.js";function dt(x){let t,r,c,b,u=x[1](x[0].previous)+"",P,L,m,K="1",R,v,M="2",T,d,O="3",V,_,Q="4",z,C,U="5",B,g,W="6",D,k,X="…",F,y,Y="17",G,$,Z="18",H,h,j=x[1](x[0].next)+"",q,I,A,w;return c=new xt({props:{fill:"currentColor"}}),A=new mt({props:{fill:"currentColor"}}),{c(){t=l("nav"),r=l("a"),tt(c.$$.fragment),b=o(),P=lt(u),L=o(),m=l("a"),m.textContent=K,R=o(),v=l("a"),v.textContent=M,T=o(),d=l("a"),d.textContent=O,V=o(),_=l("a"),_.textContent=Q,z=o(),C=l("a"),C.textContent=U,B=o(),g=l("a"),g.textContent=W,D=o(),k=l("span"),k.textContent=X,F=o(),y=l("a"),y.textContent=Y,G=o(),$=l("a"),$.textContent=Z,H=o(),h=l("a"),q=lt(j),I=o(),tt(A.$$.fragment),this.h()},l(s){t=i(s,"NAV",{class:!0});var e=J(t);r=i(e,"A",{href:!0,class:!0});var E=J(r);et(c.$$.fragment,E),b=f(E),P=ot(E,u),E.forEach(N),L=f(e),m=i(e,"A",{href:!0,class:!0,"data-svelte-h":!0}),p(m)!=="svelte-ak6ox3"&&(m.textContent=K),R=f(e),v=i(e,"A",{href:!0,class:!0,"data-svelte-h":!0}),p(v)!=="svelte-10r4717"&&(v.textContent=M),T=f(e),d=i(e,"A",{href:!0,class:!0,"data-svelte-h":!0}),p(d)!=="svelte-13dre0n"&&(d.textContent=O),V=f(e),_=i(e,"A",{href:!0,class:!0,"data-svelte-h":!0}),p(_)!=="svelte-v6bi1q"&&(_.textContent=Q),z=f(e),C=i(e,"A",{href:!0,class:!0,"data-svelte-h":!0}),p(C)!=="svelte-1c7ylf3"&&(C.textContent=U),B=f(e),g=i(e,"A",{href:!0,class:!0,"data-svelte-h":!0}),p(g)!=="svelte-fk307f"&&(g.textContent=W),D=f(e),k=i(e,"SPAN",{"data-svelte-h":!0}),p(k)!=="svelte-fw8tqc"&&(k.textContent=X),F=f(e),y=i(e,"A",{href:!0,class:!0,"data-svelte-h":!0}),p(y)!=="svelte-ypj5a3"&&(y.textContent=Y),G=f(e),$=i(e,"A",{href:!0,class:!0,"data-svelte-h":!0}),p($)!=="svelte-ludw9t"&&($.textContent=Z),H=f(e),h=i(e,"A",{href:!0,class:!0});var S=J(h);q=ot(S,j),I=f(S),et(A.$$.fragment,S),S.forEach(N),e.forEach(N),this.h()},h(){n(r,"href","?page=-1"),n(r,"class","flex gap-2 text-primary-500"),n(m,"href","?page=1"),n(m,"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(_,"href","?page=4"),n(_,"class","bg-primary-500 text-white rounded h-8 w-8 flex justify-center items-center"),n(C,"href","?page=5"),n(C,"class","text-surface-500"),n(g,"href","?page=6"),n(g,"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(h,"href","?page=+1"),n(h,"class","flex gap-2 text-primary-500"),n(t,"class","flex gap-4 items-center justify-center")},m(s,e){pt(s,t,e),a(t,r),at(c,r,null),a(r,b),a(r,P),a(t,L),a(t,m),a(t,R),a(t,v),a(t,T),a(t,d),a(t,V),a(t,_),a(t,z),a(t,C),a(t,B),a(t,g),a(t,D),a(t,k),a(t,F),a(t,y),a(t,G),a(t,$),a(t,H),a(t,h),a(h,q),a(h,I),at(A,h,null),w=!0},p(s,[e]){(!w||e&3)&&u!==(u=s[1](s[0].previous)+"")&&it(P,u),(!w||e&3)&&j!==(j=s[1](s[0].next)+"")&&it(q,j)},i(s){w||(nt(c.$$.fragment,s),nt(A.$$.fragment,s),w=!0)},o(s){st(c.$$.fragment,s),st(A.$$.fragment,s),w=!1},d(s){s&&N(t),rt(c),rt(A)}}}function _t(x,t,r){let c;ht(x,vt,u=>r(1,c=u));let{i18n:b={next:"",previous:""}}=t;return x.$$set=u=>{"i18n"in u&&r(0,b=u.i18n)},[b,c]}class Ct extends ft{constructor(t){super(),ct(this,t,_t,dt,ut,{i18n:0})}}Ct.__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:[]};export{Ct as P};