Anvil/assets/Pagination-77c8cc8c.js

2 lines
3.7 KiB
JavaScript
Raw Normal View History

2024-03-15 11:40:39 +01:00
import{a as ft,c as ct}from"./utils-6ebe0a8e.js";import{a as l,l as o,t as tt,b as i,f as J,m as f,h as et,d as N,p,j as n,i as ut,k as a,n as at}from"./lifecycle-cafe499b.js";import{S as ht,i as pt,c as nt,b as st,m as rt,a as lt,t as ot,d as it}from"./index-3a0d73e3.js";import{C as mt,a as xt}from"./ZoomOut24-2eaac4cc.js";import{$ as vt}from"./runtime-a5210d67.js";function dt(m){let t,r,c,b,u=m[1](m[0].previous)+"",P,L,x,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=m[1](m[0].next)+"",q,I,A,w;return c=new mt({props:{fill:"currentColor"}}),A=new xt({props:{fill:"currentColor"}}),{c(){t=l("nav"),r=l("a"),nt(c.$$.fragment),b=o(),P=tt(u),L=o(),x=l("a"),x.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=tt(j),I=o(),nt(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);st(c.$$.fragment,E),b=f(E),P=et(E,u),E.forEach(N),L=f(e),x=i(e,"A",{href:!0,class:!0,"data-svelte-h":!0}),p(x)!=="svelte-ak6ox3"&&(x.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=et(S,j),I=f(S),st(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(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(_,"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){ut(s,t,e),a(t,r),rt(c,r,null),a(r,b),a(r,P),a(t,L),a(t,x),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),rt(A,h,null),w=!0},p(s,[e]){(!w||e&3)&&u!==(u=s[1](s[0].previous)+"")&&at(P,u),(!w||e&3)&&j!==(j=s[1](s[0].next)+"")&&at(q,j)},i(s){w||(lt(c.$$.fragment,s),lt(A.$$.fragment,s),w=!0)},o(s){ot(c.$$.fragment,s),ot(A.$$.fragment,s),w=!1},d(s){s&&N(t),it(c),it(A)}}}function _t(m,t,r){let c;ct(m,vt,u=>r(1,c=u));let{i18n:b={next:"",previous:""}}=t;return m.$$set=u=>{"i18n"in u&&r(0,b=u.i18n)},[b,c]}class Ct extends ht{constructor(t){super(),pt(this,t,_t,dt,ft,{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};