import{r,j as n}from"./vendor-react-C630P38J.js";import{c as P}from"./feature-order-C2we0F5o.js";var b="_6xwopu0",h="_6xwopu1",N="_6xwopu2",j="_6xwopu3";const v=t=>r.createElement("svg",{width:22,height:10,viewBox:"0 0 22 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},r.createElement("path",{d:"M5 1L1 5M1 5L5 9M1 5H21",stroke:"black",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),M=t=>r.createElement("svg",{width:22,height:10,viewBox:"0 0 22 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},r.createElement("path",{d:"M17 1L21 5M21 5L17 9M21 5H1",stroke:"black",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),d=5,f=1e3,m=(t,s)=>Array.from({length:s-t+1},(o,a)=>t+a),S=(t,s)=>{const o=s{const i=typeof t=="number"?t:parseInt(t),_=Math.ceil(Number(s)/a),c=Math.min(_,f),g=r.useMemo(()=>S(i,c),[i,c]),p=e=>e===i,w=i===1,L=i===c,E=c>d,u=e=>{const A=e==="first"?1:e==="last"?c:e;o==null||o(A)};return n.jsxs("div",{...l,className:P(b,l.className),children:[E&&n.jsx("button",{className:h,disabled:w,type:"button",onClick:()=>u("first"),"aria-label":"첫 페이지로 이동",children:n.jsx(v,{})}),n.jsx("ul",{className:N,children:g.map(e=>n.jsx("li",{children:n.jsx("button",{className:j,"aria-current":p(e),type:"button",onClick:()=>u(e),children:e})},e))}),E&&n.jsx("button",{className:h,disabled:L,type:"button",onClick:()=>u("last"),"aria-label":"마지막 페이지로 이동",children:n.jsx(M,{})})]})});x.displayName="PagingRenderer";const T=r.memo(t=>n.jsx(x,{...t}));T.displayName="Paging";const y={DEFAULT_PAGE_NUMBER:"1",DEFAULT_PAGE_SIZE:"12"},I={DEFAULT_PAGE_SIZE:12,PC_PER_ROW:5,MOBILE_PER_ROW:2};export{y as E,T as P,I as a};