import{_,r as b,o as t,d as u,e as h,f as m,c as i,a as n,t as l,F as f,i as v,n as d,b as c,h as g}from"./app-PFKfXWEI.js";const w={props:{href:{type:String,default:""}}},L=["href"];function N(s,a,e,p,x,k){const r=b("Link");return e.href?(t(),u(r,{key:0,href:e.href,class:"inline-flex items-center focus:outline-none focus:ring focus:ring-gray-300 transition ease-in-out duration-150"},{default:h(()=>[m(s.$slots,"default")]),_:3},8,["href"])):(t(),i("div",{key:1,href:e.href,class:"inline-flex items-center focus:outline-none focus:ring focus:ring-gray-300 transition ease-in-out duration-150"},[m(s.$slots,"default")],8,L))}const T=_(w,[["render",N]]),B={props:["meta","links"],components:{TecButton:T},computed:{pages(){if(this.meta.last_page>9){const s=this.meta.links.shift(),a=this.meta.links.pop();let e=this.meta.links.slice(this.meta.current_page>4?this.meta.current_page-4:0,this.meta.last_page>this.meta.current_page+3?this.meta.current_page+3:this.meta.last_page);return e.unshift(s),e.push(a),this.meta.current_page>4&&e.unshift({...this.meta.links[0],label:"&Lang;"}),this.meta.last_page>this.meta.current_page+3&&e.push({...this.meta.links[this.meta.links.length-1],label:"&Rang;"}),e}return this.meta.links}}},P={key:0},q={class:"hidden xl:flex items-center justify-between"},C={class:"mr-4"},H={key:0,class:"flex flex-wrap -mb-1"},M=["innerHTML"],S={class:"flex items-center justify-between xl:hidden"},V={class:"hidden sm:inline-block"},j={class:"mx-3"},F={class:"hidden sm:inline-block"};function z(s,a,e,p,x,k){const r=b("tec-button");return e.meta.total>0?(t(),i("div",P,[n("div",q,[n("div",C,l(s.$t("pagination_info_text",{from:e.meta.from,to:e.meta.to,total:e.meta.total})),1),e.meta.last_page>1?(t(),i("div",H,[(t(!0),i(f,null,v(e.meta.links,(o,y)=>(t(),i(f,{key:"link_"+y},[o.url===null?(t(),i("div",{key:0,class:"mr-1 mb-1 px-4 py-3 text-sm leading-4 text-gray-400 shadow opacity-50 bg-white rounded-md cursor-default",innerHTML:o.label.replace("Next","").replace("Previous","").replace("&laquo;","⟨").replace("&raquo;","⟩")},null,8,M)):(t(),u(r,{key:1,href:o.url,innerHTML:o.label.replace("Next","").replace("Previous","").replace("&laquo;","⟨").replace("&raquo;","⟩"),class:d([o.active?"bg-blue-600 border-blue-700 text-white":"text-gray-700 bg-white","inline-block whitespace-nowrap mr-1 mb-1 px-4 py-3 text-sm leading-4 shadow rounded-md hover:bg-blue-700 hover:text-white hover:border-blue-700 focus:border-blue-600 focus:text-white"])},null,8,["href","innerHTML","class"]))],64))),128))])):c("",!0)]),n("div",S,[e.meta.last_page>1?(t(),u(r,{key:0,href:e.links.prev,class:d(["inline-block whitespace-nowrap mr-1 mb-1 px-4 py-3 text-sm leading-4 shadow rounded-md print:hidden",e.links.prev?"text-gray-700 bg-white hover:bg-blue-700 hover:text-white hover:border-blue-700 focus:border-blue-600 focus:text-white":"text-gray-600 bg-gray-100 cursor-default"])},{default:h(()=>[a[0]||(a[0]=g(" ⟪ ")),n("span",V,l(s.$t("Previous")),1)]),_:1},8,["href","class"])):c("",!0),n("div",j,l(s.$t("pagination_info_text",{from:e.meta.from,to:e.meta.to,total:e.meta.total})),1),e.meta.last_page>1?(t(),u(r,{key:1,href:e.links.next,class:d(["inline-block whitespace-nowrap mr-1 mb-1 px-4 py-3 text-sm leading-4 shadow rounded-md print:hidden",e.links.next?"text-gray-700 bg-white hover:bg-blue-700 hover:text-white hover:border-blue-700 focus:border-blue-600 focus:text-white":"text-gray-600 bg-gray-100 cursor-default"])},{default:h(()=>[n("span",F,l(s.$t("Next")),1),a[1]||(a[1]=g(" ⟫ "))]),_:1},8,["href","class"])):c("",!0)])])):c("",!0)}const E=_(B,[["render",z]]);export{E as P};
