PageSourceSearch

https://fie.org/_fie/DAzM4y2i.js

js fie.org collected 2026-09-24 09:18:00 UTC 2,268 bytes, 1 lines download raw bytes

1import{Hr as e,Rr as t,Sr as n,Xr as r,_r as i,cr as a,d as o,ei as s,gi as c,hi as l,hr as u,mr as d,or as f,ri as p,si as m,ti as h,vr as g,wr as _,xr as v,yi as y}from"#entry";var b=[`max`],x=_({__name:`Pagination`,props:{modelValue:{},total:{},loading:{type:Boolean},mode:{}},emits:[`update:modelValue`],setup(_,{emit:x}){let S=_,C=x,w=m(String(S.modelValue)),T=d(()=>S.mode?`theme-${S.mode}`:`theme-light`);r(()=>S.modelValue,e=>{w.value=String(e)});function E(){let e=parseInt(w.value),t=isNaN(e)?S.modelValue:Math.max(Math.min(e,S.total),1);w.value=String(t),t!==S.modelValue&&C(`update:modelValue`,t)}return(r,d)=>{let m=o,x=e(`i18n-t`);return _.total>1?(t(),g(`div`,{key:0,class:c([`flex items-center justify-center gap-4`,l(T)])},[n(m,{color:`neutral`,variant:`rounded`,icon:`i-lucide-chevron-left`,class:`size-10 bg-inverted/10 dark:bg-inverted/20 text-highlighted flex items-center justify-center hover:bg-inverted/30 dark:hover:bg-inverted/80 transition-colors disabled:cursor-not-allowed disabled:pointer-events-none disabled:opacity-50`,disabled:_.modelValue<=1||_.loading,onClick:d[0]||=e=>C(`update:modelValue`,_.modelValue-1)},null,8,[`disabled`]),n(x,{keypath:`components.app.pagination.pageOf`,tag:`span`,class:`flex items-center gap-2 text-sm text-highlighted`},{input:s(()=>[h(u(`input`,{"onUpdate:modelValue":d[1]||=e=>p(w)?w.value=e:null,type:`number`,min:1,max:_.total,class:`h-11 w-14 rounded-lg border-0 bg-inverted/10 dark:bg-inverted/20 px-2 py-1 text-center text-highlighted focus:outline-none [appearance:textfield] [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none backdrop-blur-[40px]`,onKeydown:a(E,[`enter`]),onBlur:E},null,40,b),[[f,l(w)]])]),total:s(()=>[v(y(_.total),1)]),_:1}),n(m,{color:`neutral`,variant:`rounded`,icon:`i-lucide-chevron-right`,class:`size-10 bg-inverted/10 dark:bg-inverted/20 text-highlighted flex items-center justify-center hover:bg-inverted/30 dark:hover:bg-inverted/80 transition-colors disabled:cursor-not-allowed disabled:pointer-events-none disabled:opacity-50`,disabled:_.modelValue>=_.total||_.loading,onClick:d[2]||=e=>C(`update:modelValue`,_.modelValue+1)},null,8,[`disabled`])],2)):i(``,!0)}}}),S=Object.assign(x,{__name:`UiPagination`});export{S as t};

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.