var A=Object.create;var y=Object.defineProperty,D=Object.defineProperties,H=Object.getOwnPropertyDescriptor,M=Object.getOwnPropertyDescriptors,E=Object.getOwnPropertyNames,b=Object.getOwnPropertySymbols,L=Object.getPrototypeOf,R=Object.prototype.hasOwnProperty,Q=Object.prototype.propertyIsEnumerable;var B=(t,e,r)=>e in t?y(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,h=(t,e)=>{for(var r in e||(e={}))R.call(e,r)&&B(t,r,e[r]);if(b)for(var r of b(e))Q.call(e,r)&&B(t,r,e[r]);return t},m=(t,e)=>D(t,M(e));var X=(t,e)=>{for(var r in e)y(t,r,{get:e[r],enumerable:!0})},j=(t,e,r,C)=>{if(e&&typeof e=="object"||typeof e=="function")for(let p of E(e))!R.call(t,p)&&p!==r&&y(t,p,{get:()=>e[p],enumerable:!(C=H(e,p))||C.enumerable});return t};var _=(t,e,r)=>(r=t!=null?A(L(t)):{},j(e||!t||!t.__esModule?y(r,"default",{value:t,enumerable:!0}):r,t)),$=t=>j(y({},"__esModule",{value:!0}),t);var J={};X(J,{default:()=>G});module.exports=$(J);var a=require("@chakra-ui/react"),f=_(require("@emotion/styled"),1),F=(0,f.default)(a.Box)``,S=(0,f.default)(a.Box)`
  display: flex;
  align-items: center;
  flex: 1 0 auto;
  padding: 0.5rem 0;
`,I=(0,f.default)(a.Box)``,g=(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 */
  }
`,k=(0,f.default)(a.Flex)`
  padding-right: 1rem;
`,u=(0,f.default)(a.Flex)`
  padding-right: 1rem;

  &:last-child {
    padding-right: 0;
  }
`,z=(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");var o=require("react/jsx-runtime"),q=({data:t,columns:e,isLoading:r=!1,itemsPerPage:C,emptyState:p={title:"No Mints Found!",subtitle:"We'll replenish soon. Check back later."}})=>{let[c]=(0,n.useMediaQuery)("(max-width: 768px)",{ssr:!1}),{title:N,subtitle:W}=p;return(0,o.jsxs)(F,{children:[!c&&(0,o.jsx)(S,{children:e.map(({title:l,textAlign:w,sx:d},i)=>(0,o.jsx)(k,m(h({},d),{fontSize:"xs",fontWeight:"medium",justify:w==="right"&&"flex-end",color:"mutedForeground",children:l}),l+i))}),(0,o.jsx)(o.Fragment,{children:(()=>{if(r){let l=c?[e[0],e[e.length-1]]:e;return Array.from(Array(C).keys()).map((w,d)=>(0,o.jsx)(g,{borderBottom:"1px",borderColor:"muted",children:l.map(({render:i,sx:T,textAlign:s},x)=>(0,o.jsx)(u,m(h({},T),{width:c?"50%":"100%",justify:s==="right"&&"flex-end",children:(0,o.jsx)(n.Skeleton,{speed:.6,height:8,width:c?"80%":"60%",startColor:"muted",endColor:"primary",opacity:.1,sx:{borderRadius:"md"}})}),x+x))},d))}else return(0,o.jsxs)(I,{children:[t.map((l,w)=>{if(c){let d=e.slice(1,e.length-1);return(0,o.jsxs)(n.Box,{children:[(0,o.jsx)(g,{children:[e[0],e[e.length-1]].map(({render:i,sx:T,textAlign:s},x)=>(0,o.jsx)(u,m(h({},T),{width:"50%",justify:s==="right"&&"flex-end",children:i&&i(l)}),l.collectionId+x))}),(0,o.jsx)(g,{overflowX:"auto",children:d.map(({title:i,textAlign:T,sx:s,render:x},v)=>(0,o.jsxs)(n.Box,{width:`calc(100% / ${d.length})`,children:[(0,o.jsx)(k,m(h({fontSize:"2xs"},s),{minWidth:"50px",justify:"flex-start",color:"mutedForeground",children:i})),(0,o.jsx)(u,m(h({},s),{minWidth:"50px",justify:"flex-start",children:x&&x(l)}))]},i+v))})]},l.collectionId)}return(0,o.jsx)(g,{borderBottom:"1px",borderColor:"muted",children:e.map(({render:d,sx:i,textAlign:T},s)=>(0,o.jsx)(u,m(h({},i),{justify:T==="right"&&"flex-end",children:d&&d(l)}),l.collectionId+s))},l.collectionId)}),!t.length&&(0,o.jsxs)(z,{children:[(0,o.jsx)(n.Text,{fontSize:"md",children:N}),(0,o.jsx)(n.Text,{fontSize:"sm",color:"mutedForeground",children:W})]})]})})()})]})},G=q;
