var z=Object.create;var d=Object.defineProperty;var U=Object.getOwnPropertyDescriptor;var B=Object.getOwnPropertyNames;var L=Object.getPrototypeOf,P=Object.prototype.hasOwnProperty;var O=(e,t)=>{for(var o in t)d(e,o,{get:t[o],enumerable:!0})},b=(e,t,o,l)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of B(t))!P.call(e,i)&&i!==o&&d(e,i,{get:()=>t[i],enumerable:!(l=U(t,i))||l.enumerable});return e};var g=(e,t,o)=>(o=e!=null?z(L(e)):{},b(t||!e||!e.__esModule?d(o,"default",{value:e,enumerable:!0}):o,e)),W=e=>b(d({},"__esModule",{value:!0}),e);var Q={};O(Q,{default:()=>J});module.exports=W(Q);var r=require("@chakra-ui/react");var f=(e,{height:t,quality:o})=>{if(e)return e.includes("imagedelivery.net")?e.includes("quality")?`${e},height=${t}`:`${e}/height=${t},quality=${o}`:e};var F=g(require("dayjs"),1);var Ee=require("react"),a=require("@chakra-ui/react");var u="https://imagedelivery.net/6iczWBYEbx_1dYNU7ek_bA/ed299f96-6a0f-4f97-cfcb-f8b0ae2ad500/medium",x="https://imagedelivery.net/6iczWBYEbx_1dYNU7ek_bA/9c899659-3749-4407-9669-7af913f10500/medium",y="https://imagedelivery.net/6iczWBYEbx_1dYNU7ek_bA/c34d29f2-060f-41ae-5eab-30bc2fa66800/medium",v="https://imagedelivery.net/6iczWBYEbx_1dYNU7ek_bA/b2d2f956-6eb6-4926-9fc4-e03465a03c00/medium",A="https://imagedelivery.net/6iczWBYEbx_1dYNU7ek_bA/571fbcf2-e0d5-4c72-847a-1bb87b327600/medium",C="https://imagedelivery.net/6iczWBYEbx_1dYNU7ek_bA/be0850de-021c-4d55-fbcd-8b859fea6300/medium",w="https://imagedelivery.net/6iczWBYEbx_1dYNU7ek_bA/308a8ad9-3ec3-42ff-2810-e2de9f0c2600/medium",E="https://imagedelivery.net/6iczWBYEbx_1dYNU7ek_bA/067c6d18-66ae-43df-bf2c-6e758c6a9300/medium",N="https://imagedelivery.net/6iczWBYEbx_1dYNU7ek_bA/4c38c9bd-a5c2-4b3c-2c14-f0d33b822000/medium",I="https://imagedelivery.net/6iczWBYEbx_1dYNU7ek_bA/5a5f445e-fb7c-45a8-787d-d15a9b7ff400/medium";var k=require("react");var s=require("react");var H=g(require("axios"),1);var h=require("react"),$=require("react/jsx-runtime"),re=(0,h.createContext)(void 0);var _=require("react/jsx-runtime");var q=require("react/jsx-runtime"),S=(0,s.createContext)(void 0);var R=()=>(0,k.useContext)(S);var c=require("react/jsx-runtime"),G={SEA_DROP:w,FAIR:x,MAGIC_EDEN:v,MANIFOLD:y,ZORA:E,FOUNDATION:u,FOUNDATION_DROP:u,HEY_MINT:N,RARIBLE:A,LAUNCH_MY_NFT:C,GASLESS:I},V={SEA_DROP:"Open Sea",FAIR:"Fair",MAGIC_EDEN:"Magic Eden",MANIFOLD:"Manifold",ZORA:"Zora",FOUNDATION:"Foundation",FOUNDATION_DROP:"Foundation",HEY_MINT:"Hey Mint",RARIBLE:"Rarible",LAUNCH_MY_NFT:"Launch My Nft",FEATURED:"Featured",GASLESS:"Gasless"},j=({launchpad:e})=>{let{profile:t}=R(),{profileImage:o}=t||{};return(0,c.jsxs)(a.Flex,{align:"center",ml:2,border:"1px solid",borderColor:"input",borderRadius:4,p:"2px",children:[(0,c.jsx)(a.Image,{w:3,h:3,mr:1,borderRadius:5,src:e==="FEATURED"?`${f(o,{height:40})}`:G[e],objectFit:"contain"}),(0,c.jsx)(a.Text,{noOfLines:1,fontSize:"2xs",color:"mutedForeground",children:V[e]})]})},m=j;var Y=require("react-redux"),n=require("react/jsx-runtime"),Z=({collectionId:e,profileImage:t,name:o,isFeatured:l,launchedOn:i,startDate:M,onClickCollection:D,launchpad:p,isGasLessMint:T})=>{let X=(0,Y.useDispatch)();return(0,n.jsxs)(r.Flex,{alignItems:"center",onClick:()=>{D(e)},cursor:"pointer",minW:"full",children:[(0,n.jsx)(r.Image,{src:t&&f(t,{height:100,quality:80}),fallback:(0,n.jsx)(r.Box,{w:8,h:8,bg:"muted",borderRadius:"sm"}),w:"8",h:"8",borderRadius:"sm",alt:o,objectFit:"cover",loading:"lazy",decoding:"async"}),(0,n.jsxs)(r.Box,{ml:2,children:[(0,n.jsxs)(r.Flex,{align:"center",justify:"space-between",children:[(0,n.jsx)(r.Text,{noOfLines:1,fontWeight:"medium",fontSize:["xs","sm"],mr:1,lineHeight:1.4,flex:1,children:o}),l?(0,n.jsx)(m,{launchpad:"FEATURED"}):p!=="STANDARD"&&p!=="OTHERS"?(0,n.jsx)(m,{launchpad:p}):null,T&&(0,n.jsx)(m,{launchpad:"GASLESS"})]}),(0,n.jsx)(r.Flex,{align:"center",children:(0,n.jsx)(r.Text,{noOfLines:1,fontSize:["2xs"],color:"mutedForeground",lineHeight:1.2,children:i==="just now"?F.default.unix(M).format("MMM DD YYYY, h:mm a"):i})})]})]})},J=Z;
