1import{b as m,j as n,k as t,x as s,s as d,o as l,t as i,q as o}from"./B30BqIw0.js";const u={class:"relative z-0 inline-flex rounded-md shadow-sm space-x-px","aria-label":"Pagination"},b={key:2,class:"relative inline-flex items-center px-4 py-2 border border-secondary-300 bg-white text-sm font-medium text-secondary-700"},y={key:5,class:"relative inline-flex items-center px-4 py-2 border border-secondary-300 bg-white text-sm font-medium text-secondary-700"},v=m({__name:"SharedPagination",props:{total:{},current:{}},emits:["changePage"],setup(p){return(e,r)=>(o(),n("nav",u,[e.current-1>=2?(o(),n("button",{key:0,class:"relative inline-flex items-center px-2 py-2 rounded-l-md border border-secondary-300 bg-white text-sm font-medium text-secondary-500 hover:bg-secondary-50",onClick:r[0]||(r[0]=a=>e.$emit("changePage",e.current-1))},r[6]||(r[6]=[t("span",{class:"sr-only"},"Previous",-1),t("div",{class:"w-5 h-5 i-carbon-chevron-left"},null,-1)]))):s("",!0),e.current>2?(o(),n("button",{key:1,class:"bg-white border-secondary-300 text-secondary-500 hover:bg-secondary-50 relative inline-flex items-center px-4 py-2 border text-sm font-medium",onClick:r[1]||(r[1]=a=>e.$emit("changePage",1))},r[7]||(r[7]=[t("span",{class:"sr-only"},"Page ",-1),d("1 ")]))):s("",!0),e.current-1>2?(o(),n("span",b," ... ")):s("",!0),e.current>1?(o(),n("button",{key:3,class:l(["bg-white border-secondary-300 text-secondary-500 hover:bg-secondary-50 relative inline-flex items-center px-4 py-2 border text-sm font-medium",[e.current==2?"rounded-l-md border border-secondary-300":""]]),onClick:r[2]||(r[2]=a=>e.$emit("changePage",e.current-1))},[r[8]||(r[8]=t("span",{class:"sr-only"},"Page ",-1)),d(i(e.current-1),1)],2)):s("",!0),t("button",{"aria-current":"page",class:l(["border-white text-white bg-uppababy relative inline-flex items-center px-4 py-2 border text-sm font-medium",[e.current-1>=1?"":"rounded-l-md border border-secondary-300",e.total==e.current?"rounded-r-md border border-secondary-300":""]])},[r[9]||(r[9]=t("span",{class:"sr-only"},"Page ",-1)),d(i(e.current),1)],2),e.current<e.total?(o(),n("button",{key:4,class:l(["bg-white border-secondary-300 text-secondary-500 hover:bg-secondary-50 relative inline-flex items-center px-4 py-2 border text-sm font-medium",[e.total==e.current+1?"rounded-r-md border border-secondary-300":""]]),onClick:r[3]||(r[3]=a=>e.$emit("changePage",e.current+1))},[r[10]||(r[10]=t("span",{class:"sr-only"},"Page ",-1)),d(i(e.current+1),1)],2)):s("",!0),e.total-e.current>2?(o(),n("span",y," ... ")):s("",!0),e.total-e.current>1?(o(),n("button",{key:6,class:"bg-white border-secondary-300 text-secondary-500 hover:bg-secondary-50 relative inline-flex items-center px-4 py-2 border text-sm font-medium",onClick:r[4]||(r[4]=a=>e.$emit("changePage",e.total))},i(e.total),1)):s("",!0),e.total>e.current+1?(o(),n("button",{key:7,class:"relative inline-flex items-center px-2 py-2 rounded-r-md border border-secondary-300 bg-white text-sm font-medium text-secondary-500 hover:bg-secondary-50",onClick:r[5]||(r[5]=a=>e.$emit("changePage",e.current+1))},r[11]||(r[11]=[t("span",{class:"sr-only"},"Next",-1),t("div",{class:"w-5 h-5 i-carbon-chevron-right"},null,-1)]))):s("",!0)]))}});export{v as _};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.