var I=Object.create;var g=Object.defineProperty;var z=Object.getOwnPropertyDescriptor;var N=Object.getOwnPropertyNames;var W=Object.getPrototypeOf,v=Object.prototype.hasOwnProperty;var A=(o,t)=>{for(var l in t)g(o,l,{get:t[l],enumerable:!0})},w=(o,t,l,y)=>{if(t&&typeof t=="object"||typeof t=="function")for(let p of N(t))!v.call(o,p)&&p!==l&&g(o,p,{get:()=>t[p],enumerable:!(y=z(t,p))||y.enumerable});return o};var D=(o,t,l)=>(l=o!=null?I(W(o)):{},w(t||!o||!o.__esModule?g(l,"default",{value:o,enumerable:!0}):l,o)),H=o=>w(g({},"__esModule",{value:!0}),o);var L={};A(L,{default:()=>E});module.exports=H(L);var a=require("@chakra-ui/react"),f=D(require("@emotion/styled"),1),k=(0,f.default)(a.Box)``,b=(0,f.default)(a.Box)`
  display: flex;
  align-items: center;
  flex: 1 0 auto;
  padding: 0.5rem 0;
`,B=(0,f.default)(a.Box)``,T=(0,f.default)(a.Flex)`
  display: flex;
  align-items: center;
  flex: 1 0 auto;
  padding: 0.5rem 0;

  -ms-overflow-style: none; /* Internet Explorer 10+ */
  scrollbar-width: none; /* Firefox */

  &::-webkit-scrollbar {
    display: none; /* Safari and Chrome */
  }
`,C=(0,f.default)(a.Flex)`
  padding-right: 1rem;
`,c=(0,f.default)(a.Flex)`
  padding-right: 1rem;

  &:last-child {
    padding-right: 0;
  }
`,R=(0,f.default)(a.Flex)`
  min-height: 20vh;
  width: 100%;
  align-items: center;
  justify-content: center;
  flex-direction: column;
`;var n=require("@chakra-ui/react"),e=require("react/jsx-runtime"),M=({data:o,columns:t,isLoading:l=!1,itemsPerPage:y,emptyState:p={title:"No Mints Found!",subtitle:"We'll replenish soon. Check back later."}})=>{let[m]=(0,n.useMediaQuery)("(max-width: 768px)",{ssr:!1}),{title:j,subtitle:F}=p;return(0,e.jsxs)(k,{children:[!m&&(0,e.jsx)(b,{children:t.map(({title:r,textAlign:u,sx:d},i)=>(0,e.jsx)(C,{...d,fontSize:"xs",fontWeight:"medium",justify:u==="right"&&"flex-end",color:"mutedForeground",children:r},r+i))}),(0,e.jsx)(e.Fragment,{children:(()=>{if(l){let r=m?[t[0],t[t.length-1]]:t;return Array.from(Array(y).keys()).map((u,d)=>(0,e.jsx)(T,{borderBottom:"1px",borderColor:"muted",children:r.map(({render:i,sx:h,textAlign:s},x)=>(0,e.jsx)(c,{...h,width:m?"50%":"100%",justify:s==="right"&&"flex-end",children:(0,e.jsx)(n.Skeleton,{speed:.6,height:8,width:m?"80%":"60%",startColor:"muted",endColor:"primary",opacity:.1,sx:{borderRadius:"md"}})},x+x))},d))}else return(0,e.jsxs)(B,{children:[o.map((r,u)=>{if(m){let d=t.slice(1,t.length-1);return(0,e.jsxs)(n.Box,{children:[(0,e.jsx)(T,{children:[t[0],t[t.length-1]].map(({render:i,sx:h,textAlign:s},x)=>(0,e.jsx)(c,{...h,width:"50%",justify:s==="right"&&"flex-end",children:i&&i(r)},r.collectionId+x))}),(0,e.jsx)(T,{overflowX:"auto",children:d.map(({title:i,textAlign:h,sx:s,render:x},S)=>(0,e.jsxs)(n.Box,{width:`calc(100% / ${d.length})`,children:[(0,e.jsx)(C,{fontSize:"2xs",...s,minWidth:"50px",justify:"flex-start",color:"mutedForeground",children:i}),(0,e.jsx)(c,{...s,minWidth:"50px",justify:"flex-start",children:x&&x(r)})]},i+S))})]},r.collectionId)}return(0,e.jsx)(T,{borderBottom:"1px",borderColor:"muted",children:t.map(({render:d,sx:i,textAlign:h},s)=>(0,e.jsx)(c,{...i,justify:h==="right"&&"flex-end",children:d&&d(r)},r.collectionId+s))},r.collectionId)}),!o.length&&(0,e.jsxs)(R,{children:[(0,e.jsx)(n.Text,{fontSize:"md",children:j}),(0,e.jsx)(n.Text,{fontSize:"sm",color:"mutedForeground",children:F})]})]})})()})]})},E=M;
