PageSourceSearch

https://www.bisecthosting.com/_nuxt/DqsBocIp.js

js bisecthosting.com collected 2026-10-03 22:11:02 UTC 3,440 bytes, 1 lines download raw bytes

1import{_ as M}from"./DGxWb5_o.js";import{d as o,o as a,c as s,F as g,r as V,y as T,w as k,b as h,n as f,z as H,q as I,B as N,G as u}from"./CQQ8tBYK.js";const z={key:0,class:"flex justify-center gap-2.5 sm-1:gap-1"},B=["innerHTML"],$=["onClick"],j=["innerHTML"],S=["onClick"],w=["innerHTML"],E=["onClick"],F=["innerHTML"],A={__name:"WidgetsPagination",props:{links:{type:Array,default:()=>[]},search:{type:String,default:""},modelValue:{type:[String,Number],default:1},navigation:{type:String,default:"router"}},emits:["navigate"],setup(i,{expose:_,emit:y}){const d=i,C=y,n=I(-1),b=N(()=>{if(d.links.length===0)return[];let e=[],l=0;return d.links.forEach(r=>{if(l in e||e.push([]),r.label==="...")l++;else{if(!L(r.label))return;e[l].push(r)}}),l===0||(e.length>2&&(e[0][1]=u({label:"...",url:null,active:!1}),e[1]=e[1].slice(2,-2),e[2][0]=u({label:"...",url:null,active:!1})),e[0].length>5&&(Number.parseInt(d.modelValue)>4?e=x(e,0):(e[1][0]=u({label:"...",url:null,active:!1}),e[0]=e[0].slice(0,5))),e[1].length>5&&(Number.parseInt(d.modelValue)<=Number.parseInt(e[1][e[1].length-1].label)-4?e=x(e,1):(e[0][1]=u({label:"...",url:null,active:!1}),e[1]=e[1].slice(-5)))),e.flat()});function x(e,l){const r=e[l].findIndex(c=>c.active===!0),t=e[l].slice(r-1,r+2);return e.splice(1,0,[...t]),e[0]=e[0].slice(0,1),e[0].push(u({label:"...",url:null,active:!1})),e[2]=e[2].slice(-1),e[2].unshift(u({label:"...",url:null,active:!1})),e}function p(e,l){if(e.url===null){const r=Number.parseInt(b.value[l-1].label),t=Number.parseInt(b.value[l+1].label);n.value=Math.round((r+t)/2)}else n.value=e.label;C("navigate",n.value)}function L(e){return/^\d+$/.test(e)}function v(e){n.value=e}return _({activePageValue:v,activePage:n}),(e,l)=>{const r=M;return o(b).length>1?(a(),s("div",z,[(a(!0),s(g,null,V(o(b),(t,c)=>(a(),s(g,{key:c},[i.navigation==="router"?(a(),s(g,{key:0},[t.url!==null?(a(),T(r,{key:0,to:t.url,class:f([{"!bg-blue-750 font-semibold hover:!bg-blue-760":o(n)===-1?i.modelValue==t.label:o(n)==t.label},"group flex size-11 cursor-pointer items-center justify-center rounded-1.5xl border-0 bg-dark-400 hover:bg-light-490 hover:font-semibold"]),onClick:m=>v(t.label)},{default:k(()=>[h("span",{class:f(["text-lg text-light transition-none",[o(n)===t.label||i.modelValue===t.label?"group-hover:text-light":"group-hover:text-dark-500"]]),innerHTML:t.label},null,10,B)]),_:2},1032,["to","class","onClick"])):(a(),s("button",{key:1,class:"size-11 cursor-pointer rounded-1.5xl border-0 bg-dark-400 text-lg text-light hover:bg-light-490 hover:font-semibold hover:text-dark-500",onClick:m=>p(t,c)},[h("span",{innerHTML:t.label},null,8,j)],8,$))],64)):(a(),s(g,{key:1},[t.url!==null?(a(),s("button",{key:0,class:f([{"!bg-blue-750 font-semibold hover:!bg-blue-760":o(n)===-1?i.modelValue==t.label:o(n)==t.label},"group flex size-11 cursor-pointer items-center justify-center rounded-1.5xl border-0 bg-dark-400 hover:bg-light-490 hover:font-semibold"]),onClick:m=>v(t.label)},[h("span",{class:f(["text-lg text-light transition-none",[o(n)===t.label||i.modelValue===t.label?"group-hover:text-light":"group-hover:text-dark-500"]]),innerHTML:t.label},null,10,w)],10,S)):(a(),s("button",{key:1,class:"size-11 cursor-pointer rounded-1.5xl border-0 bg-dark-400 text-lg text-light hover:bg-light-490 hover:font-semibold hover:text-dark-500",onClick:m=>p(t,c)},[h("span",{innerHTML:t.label},null,8,F)],8,E))],64))],64))),128))])):H("",!0)}}};export{A 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.