1import{aS as C,a$ as P,r as S,c as f,a7 as w,ao as n,ap as c,am as i,at as d,as as v,F as o,aO as k,aw as N,ax as x,ar as y,au as B,aY as I}from"./vue-core.BcGShZEc.js";import{b as L}from"./analytics.BV5f9B0N.js";const O=["disabled","aria-label"],V={key:0,class:"n dots"},j=["disabled","aria-label","onClick"],D=["disabled","aria-label"],E=C({__name:"PaginationLinks",props:{data:{type:Object,default(){return{page:null,limit:null,total:null}}},disabled:{type:Boolean,default:!1}},emits:["pageSelected","limitSelected"],setup(t){const{t:g}=P(),b=L(),m=b.public.baseUrl,h=b.public.siteGroup||"sectigo",l=t,$=S(l.data),u=f(()=>!l.data.total||!l.data.limit?0:Math.ceil(l.data.total/l.data.limit));let r=!1;const p=f(()=>{const s=[];for(let e=1;e<=u.value;e++){const a=l?.data?.page??1;e===a||e===1||e===u.value||e>=a&&e<a+2||e<=a&&e>a-2?(s.push(e),r=!1):r||(s.push("empty"),r=!0)}return s});return w(()=>l.data,s=>{Object.assign($,s)},{deep:!0}),(s,e)=>p.value.length>1?(i(),n("div",{key:0,class:y(["text-center",`site-${o(h)}`])},[d("nav",null,[d("ul",null,[d("li",null,[t.data&&t.data.page&&t.data.page>1?(i(),n("button",{key:0,disabled:t.disabled,class:"n prev","aria-label":s.$t("buttons.previousPage"),onClick:e[0]||(e[0]=a=>s.$emit("pageSelected",t.data.page-1))},[v(o(k),{src:`${o(m)}/images/icons/angle-left.svg`,width:"6",height:"11",alt:"",class:"absolute-center"},null,8,["src"])],8,O)):c("",!0)]),(i(!0),n(N,null,x(p.value,a=>(i(),n("li",{key:`page-${a}`,class:y(["num",!isNaN(a)&&a===t.data.page?"current":"",a==="empty"?"empty":""])},[a==="empty"?(i(),n("span",V,[...e[2]||(e[2]=[d("span",{class:"absolute absolute-center-x bottom-2"},"...",-1)])])):(i(),n("button",{key:1,disabled:t.disabled,class:"n","aria-label":o(g)("buttons.currentPage"),onClick:F=>s.$emit("pageSelected",a)},B(a),9,j))],2))),128)),d("li",null,[t.data&&t.data.page&&t.data.page<u.value?(i(),n("button",{key:0,disabled:t.disabled,class:"n next","aria-label":o(g)("buttons.nextPage"),onClick:e[1]||(e[1]=a=>s.$emit("pageSelected",t.data.page+1))},[v(o(k),{src:`${o(m)}/images/icons/angle-right.svg`,width:"6",height:"11",alt:"",class:"absolute-center"},null,8,["src"])],8,D)):c("",!0)])])])],2)):c("",!0)}}),z=I(E,[["__scopeId","data-v-85027ce8"]]);export{z as P};
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.