import{_ as g,r as b,o as t,d as c,e as d,f as m,c as n,a as s,t as o,F as f,i as v,n as h,b as l,h as _}from"./app-c16e0624.js";const w={props:{href:{type:String,default:""}}},L=["href"];function N(a,u,e,p,x,k){const i=b("Link");return e.href?(t(),c(i,{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:d(()=>[m(a.$slots,"default")]),_:3},8,["href"])):(t(),n("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(a.$slots,"default")],8,L))}const T=g(w,[["render",N]]),B={props:["meta","links"],components:{TecButton:T},computed:{pages(){if(this.meta.last_page>9){const a=this.meta.links.shift(),u=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(a),e.push(u),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(a,u,e,p,x,k){const i=b("tec-button");return e.meta.total>0?(t(),n("div",P,[s("div",q,[s("div",C,o(a.$t("pagination_info_text",{from:e.meta.from,to:e.meta.to,total:e.meta.total})),1),e.meta.last_page>1?(t(),n("div",H,[(t(!0),n(f,null,v(e.meta.links,(r,y)=>(t(),n(f,{key:"link_"+y},[r.url===null?(t(),n("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:r.label.replace("Next","").replace("Previous","").replace("&laquo;","⟨").replace("&raquo;","⟩")},null,8,M)):(t(),c(i,{key:1,href:r.url,innerHTML:r.label.replace("Next","").replace("Previous","").replace("&laquo;","⟨").replace("&raquo;","⟩"),class:h([r.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))])):l("",!0)]),s("div",S,[e.meta.last_page>1?(t(),c(i,{key:0,href:e.links.prev,class:h(["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:d(()=>[_(" ⟪ "),s("span",V,o(a.$t("Previous")),1)]),_:1},8,["href","class"])):l("",!0),s("div",j,o(a.$t("pagination_info_text",{from:e.meta.from,to:e.meta.to,total:e.meta.total})),1),e.meta.last_page>1?(t(),c(i,{key:1,href:e.links.next,class:h(["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:d(()=>[s("span",F,o(a.$t("Next")),1),_(" ⟫ ")]),_:1},8,["href","class"])):l("",!0)])])):l("",!0)}const E=g(B,[["render",z]]);export{E as P};
