PageSourceSearch

https://www.gdadri.com/_nuxt/BxepdTuQ.js

js gdadri.com collected 2026-10-04 04:09:59 UTC 9,012 bytes, 1 lines download raw bytes

1import{H as h,am as q,q as d,o as r,w as u,I as f,d as L,J as m,m as s,P as C,aj as j,al as A,ak as G,x as v,K as H,L as J,t as K,M as Q,aG as T,N as O,ax as U,Q as W,R as F,b as _,p as N,l as w,c as M,aF as z,F as V,n as X}from"./As61CBod.js";var Y=h({__name:"PaginationEllipsis",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(a){const l=a;return q(),(e,i)=>(r(),d(s(C),m(l,{"data-type":"ellipsis"}),{default:u(()=>[f(e.$slots,"default",{},()=>[i[0]||(i[0]=L("…"))])]),_:3},16))}}),Z=Y;const[$,ee]=j("PaginationRoot");var ae=h({__name:"PaginationRoot",props:{page:{type:Number,required:!1},defaultPage:{type:Number,required:!1,default:1},itemsPerPage:{type:Number,required:!0},total:{type:Number,required:!1,default:0},siblingCount:{type:Number,required:!1,default:2},disabled:{type:Boolean,required:!1},showEdges:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"nav"}},emits:["update:page"],setup(a,{emit:l}){const e=a,i=l,{siblingCount:n,disabled:t,showEdges:o}=A(e);q();const p=G(e,"page",i,{defaultValue:e.defaultPage,passive:e.page===void 0}),b=v(()=>Math.max(1,Math.ceil(e.total/(e.itemsPerPage||1))));return ee({page:p,onPageChange(c){p.value=c},pageCount:b,siblingCount:n,disabled:t,showEdges:o}),(c,R)=>(r(),d(s(C),{as:c.as,"as-child":c.asChild},{default:u(()=>[f(c.$slots,"default",{page:s(p),pageCount:b.value})]),_:3},8,["as","as-child"]))}}),te=ae,le=h({__name:"PaginationFirst",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(a){const l=a,e=$();q();const i=v(()=>e.page.value===1||e.disabled.value);return(n,t)=>(r(),d(s(C),m(l,{"aria-label":"First Page",type:n.as==="button"?"button":void 0,disabled:i.value,onClick:t[0]||(t[0]=o=>!i.value&&s(e).onPageChange(1))}),{default:u(()=>[f(n.$slots,"default",{},()=>[t[1]||(t[1]=L("First page"))])]),_:3},16,["type","disabled"]))}}),se=le,ie=h({__name:"PaginationLast",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(a){const l=a,e=$();q();const i=v(()=>e.page.value===e.pageCount.value||e.disabled.value);return(n,t)=>(r(),d(s(C),m(l,{"aria-label":"Last Page",type:n.as==="button"?"button":void 0,disabled:i.value,onClick:t[0]||(t[0]=o=>!i.value&&s(e).onPageChange(s(e).pageCount.value))}),{default:u(()=>[f(n.$slots,"default",{},()=>[t[1]||(t[1]=L("Last page"))])]),_:3},16,["type","disabled"]))}}),ne=ie;function P(a,l){const e=l-a+1;return Array.from({length:e},(i,n)=>n+a)}function oe(a){return a.map(l=>typeof l=="number"?{type:"page",value:l}:{type:"ellipsis"})}const B="ellipsis";function re(a,l,e,i){const t=l,o=Math.max(a-e,1),p=Math.min(a+e,t);if(i){const c=Math.min(2*e+5,l)-2,R=o>3&&Math.abs(t-c-1+1)>2&&Math.abs(o-1)>2,k=p<t-2&&Math.abs(t-c)>2&&Math.abs(t-p)>2;if(!R&&k)return[...P(1,c),B,t];if(R&&!k){const g=P(t-c+1,t);return[1,B,...g]}if(R&&k){const g=P(o,p);return[1,B,...g,B,t]}return P(1,t)}else{const b=e*2+1;return l<b?P(1,t):a<=e+1?P(1,b):l-a<=e?P(l-b+1,t):P(o,p)}}var ue=h({__name:"PaginationList",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(a){const l=a;q();const e=$(),i=v(()=>oe(re(e.page.value,e.pageCount.value,e.siblingCount.value,e.showEdges.value)));return(n,t)=>(r(),d(s(C),H(J(l)),{default:u(()=>[f(n.$slots,"default",{items:i.value})]),_:3},16))}}),de=ue,fe=h({__name:"PaginationListItem",props:{value:{type:Number,required:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(a){const l=a;q();const e=$(),i=v(()=>e.page.value===l.value),n=v(()=>e.disabled.value);return(t,o)=>(r(),d(s(C),m(l,{"data-type":"page","aria-label":`Page ${t.value}`,"aria-current":i.value?"page":void 0,"data-selected":i.value?"true":void 0,disabled:n.value,type:t.as==="button"?"button":void 0,onClick:o[0]||(o[0]=p=>!n.value&&s(e).onPageChange(t.value))}),{default:u(()=>[f(t.$slots,"default",{},()=>[L(K(t.value),1)])]),_:3},16,["aria-label","aria-current","data-selected","disabled","type"]))}}),ve=fe,ce=h({__name:"PaginationNext",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(a){const l=a;q();const e=$(),i=v(()=>e.page.value===e.pageCount.value||e.disabled.value);return(n,t)=>(r(),d(s(C),m(l,{"aria-label":"Next Page",type:n.as==="button"?"button":void 0,disabled:i.value,onClick:t[0]||(t[0]=o=>!i.value&&s(e).onPageChange(s(e).page.value+1))}),{default:u(()=>[f(n.$slots,"default",{},()=>[t[1]||(t[1]=L("Next page"))])]),_:3},16,["type","disabled"]))}}),pe=ce,ge=h({__name:"PaginationPrev",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(a){const l=a;q();const e=$(),i=v(()=>e.page.value===1||e.disabled.value);return(n,t)=>(r(),d(s(C),m(l,{"aria-label":"Previous Page",type:n.as==="button"?"button":void 0,disabled:i.value,onClick:t[0]||(t[0]=o=>!i.value&&s(e).onPageChange(s(e).page.value-1))}),{default:u(()=>[f(n.$slots,"default",{},()=>[t[1]||(t[1]=L("Prev page"))])]),_:3},16,["type","disabled"]))}}),ye=ge;const be={slots:{root:"",list:"flex items-center gap-1",ellipsis:"pointer-events-none",label:"min-w-5 text-center",first:"",prev:"",item:"",next:"",last:""}},he={__name:"Pagination",props:{as:{type:null,required:!1},firstIcon:{type:String,required:!1},prevIcon:{type:String,required:!1},nextIcon:{type:String,required:!1},lastIcon:{type:String,required:!1},ellipsisIcon:{type:String,required:!1},color:{type:null,required:!1,default:"neutral"},variant:{type:null,required:!1,default:"outline"},activeColor:{type:null,required:!1,default:"primary"},activeVariant:{type:null,required:!1,default:"solid"},showControls:{type:Boolean,required:!1,default:!0},size:{type:null,required:!1},to:{type:Function,required:!1},class:{type:null,required:!1},ui:{type:null,required:!1},defaultPage:{type:Number,required:!1},disabled:{type:Boolean,required:!1},itemsPerPage:{type:Number,required:!1,default:10},page:{type:Number,required:!1},showEdges:{type:Boolean,required:!1,default:!1},siblingCount:{type:Number,required:!1,default:2},total:{type:Number,required:!1,default:0}},emits:["update:page"],setup(a,{emit:l}){const e=a,i=l,n=Q(),{dir:t}=T(),o=O(),p=U(W(e,"as","defaultPage","disabled","itemsPerPage","page","showEdges","siblingCount","total"),i),b=v(()=>e.firstIcon||(t.value==="rtl"?o.ui.icons.chevronDoubleRight:o.ui.icons.chevronDoubleLeft)),c=v(()=>e.prevIcon||(t.value==="rtl"?o.ui.icons.chevronRight:o.ui.icons.chevronLeft)),R=v(()=>e.nextIcon||(t.value==="rtl"?o.ui.icons.chevronLeft:o.ui.icons.chevronRight)),k=v(()=>e.lastIcon||(t.value==="rtl"?o.ui.icons.chevronDoubleLeft:o.ui.icons.chevronDoubleRight)),y=v(()=>F({extend:F(be),...o.ui?.pagination||{}})());return(g,Pe)=>(r(),d(s(te),m(s(p),{class:y.value.root({class:[e.ui?.root,e.class]})}),{default:u(({page:I,pageCount:E})=>[_(s(de),{class:N(y.value.list({class:e.ui?.list}))},{default:u(({items:D})=>[a.showControls||n.first?(r(),d(s(se),{key:0,"as-child":"",class:N(y.value.first({class:e.ui?.first}))},{default:u(()=>[f(g.$slots,"first",{},()=>[_(z,{color:a.color,variant:a.variant,size:a.size,icon:b.value,to:a.to?.(1)},null,8,["color","variant","size","icon","to"])])]),_:3},8,["class"])):w("",!0),a.showControls||n.prev?(r(),d(s(ye),{key:1,"as-child":"",class:N(y.value.prev({class:e.ui?.prev}))},{default:u(()=>[f(g.$slots,"prev",{},()=>[_(z,{color:a.color,variant:a.variant,size:a.size,icon:c.value,to:I>1?a.to?.(I-1):void 0},null,8,["color","variant","size","icon","to"])])]),_:2},1032,["class"])):w("",!0),(r(!0),M(V,null,X(D,(x,S)=>(r(),M(V,{key:S},[x.type==="page"?(r(),d(s(ve),{key:0,"as-child":"",value:x.value,class:N(y.value.item({class:e.ui?.item}))},{default:u(()=>[f(g.$slots,"item",m({ref_for:!0},{item:x,index:S,page:I,pageCount:E}),()=>[_(z,{color:I===x.value?a.activeColor:a.color,variant:I===x.value?a.activeVariant:a.variant,size:a.size,label:String(x.value),ui:{label:y.value.label()},to:a.to?.(x.value),square:""},null,8,["color","variant","size","label","ui","to"])])]),_:2},1032,["value","class"])):(r(),d(s(Z),{key:1,"as-child":"",class:N(y.value.ellipsis({class:e.ui?.ellipsis}))},{default:u(()=>[f(g.$slots,"ellipsis",{},()=>[_(z,{as:"div",color:a.color,variant:a.variant,size:a.size,icon:a.ellipsisIcon||s(o).ui.icons.ellipsis},null,8,["color","variant","size","icon"])])]),_:3},8,["class"]))],64))),128)),a.showControls||n.next?(r(),d(s(pe),{key:2,"as-child":"",class:N(y.value.next({class:e.ui?.next}))},{default:u(()=>[f(g.$slots,"next",{},()=>[_(z,{color:a.color,variant:a.variant,size:a.size,icon:R.value,to:I<E?a.to?.(I+1):void 0},null,8,["color","variant","size","icon","to"])])]),_:2},1032,["class"])):w("",!0),a.showControls||n.last?(r(),d(s(ne),{key:3,"as-child":"",class:N(y.value.last({class:e.ui?.last}))},{default:u(()=>[f(g.$slots,"last",{},()=>[_(z,{color:a.color,variant:a.variant,size:a.size,icon:k.value,to:a.to?.(E)},null,8,["color","variant","size","icon","to"])])]),_:2},1032,["class"])):w("",!0)]),_:2},1032,["class"])]),_:3},16,["class"]))}};export{he 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.