1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1105],{31105:(e,s,t)=>{t.d(s,{CoinSubmissionForm:()=>p});var r=t(95155),l=t(12115),a=t(35695),i=t(15015),o=t(66766),n=t(87948),d=t(59434),c=t(57297),m=t(67601),x=t(80486),u=t(31335);let h=[{id:"basic",label:"Basic Info",icon:"\uD83D\uDCDD",section:"details"},{id:"media",label:"Images & Media",icon:"\uD83D\uDDBCï¸",section:"details"},{id:"links",label:"Links",icon:"\uD83D\uDD17",section:"details"},{id:"team",label:"Team",icon:"\uD83D\uDC65",section:"details"},{id:"details",label:"Project Details",icon:"âï¸",section:"details"},{id:"review",label:"Review & Submit",icon:"â
",section:"final"}],b={details:{title:"Coin Details",description:"Basic information and settings"},final:{title:"Finalize",description:"Review and submit"}},g=["ai","defi","gaming","nft","meme","utility","dao","metaverse","social","trading","yield","staking","governance","privacy","infrastructure","analytics","education","health","music","art","consumer-apps","real world assets","prediction-markets","x402"];function p(e){var s,t,p,f,v;let{tokenId:j,initialData:y,onSuccess:N}=e,w=(0,a.useRouter)(),{authenticated:C,login:k,getAccessToken:A,user:F}=(0,i.H)(),[S,z]=(0,l.useState)(!1),[R,D]=(0,l.useState)(!1),[M,P]=(0,l.useState)(null),[B,T]=(0,l.useState)(null),[U,L]=(0,l.useState)(null),[q,I]=(0,l.useState)("basic"),[E,Y]=(0,l.useState)({}),[V,W]=(0,l.useState)(!1),[O,X]=(0,l.useState)({width:0,height:0});F&&(0,c.qc)(F);let[H,J]=(0,l.useState)({name:"",symbol:"",description:"",contractAddress:"",logoUrl:"",bannerUrl:"",website:"",twitter:"",telegram:"",discord:"",teamMembers:[],tags:[],launchpad:"",additionalInfo:"",status:"draft",...y,launchDate:(null==y?void 0:y.launchDate)&&y.launchDate.trim()||new Date().toISOString().split("T")[0]}),[_,G]=(0,l.useState)(!1),[Z,K]=(0,l.useState)(null),[Q,$]=(0,l.useState)(!1);if((0,l.useEffect)(()=>{(async()=>{if(C)try{let e=await A();T(e)}catch(e){console.error("Error getting access token:",e)}})()},[C,A]),(0,l.useEffect)(()=>{let e=()=>{X({width:window.innerWidth,height:Math.max(window.innerHeight,document.documentElement.scrollHeight)})};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),(0,l.useEffect)(()=>{let e=setTimeout(()=>{!(H.contractAddress.length>=32)||Q||_||H.name||H.symbol||el(H.contractAddress)},1500);return()=>clearTimeout(e)},[H.contractAddress,Q,_,H.name,H.symbol]),!C)return(0,r.jsxs)("div",{className:"p-8 text-center",children:[(0,r.jsx)("h2",{className:"text-2xl font-bold text-gray-900 mb-4",children:"Authentication Required"}),(0,r.jsx)("p",{className:"text-gray-600 mb-6",children:"You need to be logged in to submit or edit a token."}),(0,r.jsx)("button",{onClick:k,className:"bg-[#7C7AF4] hover:bg-[#7C7AF4]/90 text-white font-medium rounded-lg px-6 py-3 transition-colors",children:"Connect Wallet"})]});let ee=(e,s)=>{J(t=>({...t,[e]:s}))},es=e=>{J(s=>({...s,teamMembers:e}))},et=e=>{J(s=>({...s,tags:s.tags.includes(e)?s.tags.filter(s=>s!==e):[...s.tags,e]}))},er=e=>e.startsWith("0x")&&42===e.length?"ethereum":(!e.startsWith("0x")&&e.length>=32&&e.length,"solana"),el=async function(e){let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(e.trim()&&!(e.length<32)){G(!0),K(null);try{let t=er(e.trim()),r=await fetch("/api/token-metadata?address=".concat(encodeURIComponent(e.trim()),"&chain=").concat(t)),l=await r.json();if(!r.ok){if(429===r.status&&s<3){let t=1e3*Math.pow(2,s);console.log("Rate limited, retrying in ".concat(t,"ms (attempt ").concat(s+1,"/3)")),setTimeout(()=>{el(e,s+1)},t);return}let t=Error(l.error||"Failed to fetch token metadata");throw t.responseData=l,t.status=r.status,t}if(l.success&&l.metadata){let e=l.metadata;J(s=>({...s,name:s.name||e.name||"",symbol:s.symbol||e.symbol||"",description:s.description||e.description||"",logoUrl:s.logoUrl||e.logoUrl||"",bannerUrl:s.bannerUrl||e.bannerUrl||"",website:s.website||e.website||"",twitter:s.twitter||e.twitter||"",telegram:s.telegram||e.telegram||"",discord:s.discord||e.discord||""})),$(!0),K(null)}}catch(s){var t,r;console.error("Error fetching token metadata:",s);let e=s.responseData||{};429===s.status||(null==(t=s.message)?void 0:t.includes("429"))||(null==(r=s.message)?void 0:r.includes("rate limit"))||(null==e?void 0:e.retry)===!0?K("DexScreener is temporarily busy. You can try the auto-fill again in a moment or fill out the form manually."):(null==e?void 0:e.error)?K(e.error):K("Could not auto-populate from DexScreener. You can fill out the form manually - this won't prevent submission.")}finally{G(!1)}}},ea=e=>{let s=e.trim().toLowerCase();return s.endsWith("blv")?"believe":s.endsWith("bonk")?"bonk":s.endsWith("pump")?"pump":null},ei=e=>{ee("contractAddress",e),K(null);let s=ea(e);s&&!H.launchpad&&ee("launchpad",s),Y(e=>{var s;return{...e,basic:(null==(s=e.basic)?void 0:s.filter(e=>!e.includes("Contract address")))||[]}}),Q&&e!==H.contractAddress&&$(!1)},eo=e=>{let s=[];if("basic"===e){H.name.trim()||s.push("Coin name is required"),H.symbol.trim()||s.push("Coin symbol is required"),H.description.trim()||s.push("Description is required"),H.contractAddress.trim()||s.push("Contract address is required");let e=(0,d.Ty)(H.contractAddress);e&&s.push(e)}return s},en=()=>{let e=eo(q);return Y(s=>({...s,[q]:e})),0===e.length},ed=async()=>
1{if(!en())return;let e=h.findIndex(e=>e.id===q);e<h.length-1&&I(h[e+1].id)},ec=e=>{h.findIndex(s=>s.id===e)>h.findIndex(e=>e.id===q)?en()&&I(e):I(e)},em=()=>{if(!H.name.trim())return"Token name is required";if(!H.symbol.trim())return"Token symbol is required";if(!H.description.trim())return"Description is required";if(!H.contractAddress.trim())return"Contract address is required";let e=(0,d.Ty)(H.contractAddress);return e||null},ex=async e=>{e.preventDefault();let s=em();if(s)return void P(s);if(!B)return void P("Authentication token not available. Please try logging in again.");z(!0),P(null);try{let e=j?"/api/coins/".concat(j):"/api/submit-coin",s=j?"PUT":"POST",t=j?H:{...H,status:void 0},r=await fetch(e,{method:s,headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(B)},body:JSON.stringify(t)}),l=await r.json();if(!r.ok){if(l.details&&Array.isArray(l.details)){let e="Validation failed:\n".concat(l.details.join("\n"));throw Error(e)}throw Error(l.error||"Failed to save token")}L(l),D(!0),W(!0),setTimeout(()=>W(!1),1e4),u.s.coinSubmitted(H.name,H.symbol),N&&N(l.token)}catch(e){P(e.message||"Failed to save token. Please try again."),console.error("Submission error:",e)}finally{z(!1)}};return R?(0,r.jsxs)(r.Fragment,{children:[V&&(0,r.jsx)(n.A,{width:O.width,height:O.height,recycle:!0,numberOfPieces:321,gravity:.241,wind:-.001,initialVelocityX:2,initialVelocityY:4.76}),(0,r.jsx)("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8",children:(0,r.jsx)("div",{className:"bg-gray-50 rounded-xl p-8 shadow-sm",children:(0,r.jsxs)("div",{className:"text-center",children:[(0,r.jsx)("div",{className:"text-6xl mb-4",children:"\uD83C\uDF89"}),(0,r.jsx)("h2",{className:"text-4xl font-bold text-gray-900 mb-2",children:j?"Coin Updated!":"Coin Submitted!"}),(0,r.jsx)("p",{className:"text-gray-600 text-lg mb-6",children:j?"Your coin has been successfully updated.":"Your coin has been successfully created and saved as draft."}),!j&&H.contractAddress&&(0,r.jsx)("div",{className:"mb-6 flex justify-center",children:(0,r.jsx)("div",{className:"p-4 bg-amber-50 border border-amber-200 rounded-lg inline-block",children:(0,r.jsxs)("div",{className:"text-sm text-amber-800 text-center",children:[(0,r.jsx)("div",{className:"font-medium",children:"Team review required for listing"}),(0,r.jsx)("div",{className:"mt-1",children:"Coin submitted successfully, our team will review the submission and list your coin as soon as possible."})]})})}),N?null:(0,r.jsx)("button",{onClick:()=>{var e,s,t,r,l,a,i,o;if((null==U||null==(e=U.coin)?void 0:e.contractAddress)||(null==U||null==(s=U.token)?void 0:s.contractAddress)){let e=(null==(l=U.coin)?void 0:l.contractAddress)||(null==(a=U.token)?void 0:a.contractAddress);w.push("/coin/".concat(e))}else if((null==U||null==(t=U.coin)?void 0:t.slug)||(null==U||null==(r=U.token)?void 0:r.slug)){let e=(null==(i=U.coin)?void 0:i.slug)||(null==(o=U.token)?void 0:o.slug);w.push("/coin/".concat(e))}else w.push("/")},className:"bg-[#7C7AF4] hover:bg-[#7C7AF4]/90 text-white font-semibold rounded-full px-8 py-3 transition-colors shadow-sm",children:"View Coin"})]})})})]}):(0,r.jsxs)("div",{className:"flex min-h-screen",children:[(0,r.jsx)("div",{className:"w-64 bg-white border-r border-gray-200",children:(0,r.jsx)("div",{className:"p-6",children:(0,r.jsx)("nav",{className:"space-y-1",children:Object.entries(b).map(e=>{let[s,t]=e,l=h.filter(e=>e.section===s);return(0,r.jsxs)("div",{className:"mb-6",children:[(0,r.jsxs)("div",{className:"mb-3",children:[(0,r.jsx)("h3",{className:"text-xs font-semibold text-gray-900 uppercase tracking-wider mb-1",children:t.title}),(0,r.jsx)("p",{className:"text-xs text-gray-500",children:t.description})]}),(0,r.jsx)("div",{className:"space-y-1",children:l.map(e=>{var s,t,l,a;let i=h.findIndex(e=>e.id===q),o=h.findIndex(s=>s.id===e.id)<i,n=e.id===q;return(0,r.jsxs)("button",{type:"button",onClick:()=>ec(e.id),className:"w-full flex items-center px-3 py-3 text-sm font-medium rounded-lg transition-colors text-left ".concat(n?"bg-[#7C7AF4]/10 text-[#7C7AF4] border border-[#7C7AF4]/20":o?"text-gray-900 hover:bg-gray-50":(null==(s=E[e.id])?void 0:s.length)>0?"text-red-600 hover:bg-red-50":"text-gray-500 hover:text-gray-700 hover:bg-gray-50"),children:[(0,r.jsx)("div",{className:"w-6 h-6 rounded-full flex items-center justify-center text-xs font-semibold mr-3 ".concat(n?"bg-[#7C7AF4] text-white":o?"bg-indigo-500 text-white":(null==(t=E[e.id])?void 0:t.length)>0?"bg-red-500 text-white":"bg-gray-200 text-gray-600"),children:o?"â":(null==(l=E[e.id])?void 0:l.length)>0?"!":h.findIndex(s=>s.id===e.id)+1}),(0,r.jsxs)("div",{className:"flex-1",children:[(0,r.jsx)("div",{className:"font-medium",children:e.label}
1),(null==(a=E[e.id])?void 0:a.length)>0&&(0,r.jsxs)("div",{className:"text-xs text-red-600 mt-1",children:[E[e.id].length," error",E[e.id].length>1?"s":""]})]})]},e.id)})})]},s)})})})}),(0,r.jsx)("div",{className:"flex-1",children:(0,r.jsx)("div",{className:"w-full px-8 py-8 min-h-screen",children:(0,r.jsxs)("form",{onSubmit:ex,children:["basic"===q&&(0,r.jsxs)("div",{className:"space-y-8",children:[(0,r.jsxs)("div",{className:"flex items-center mb-8",children:[(0,r.jsx)("div",{className:"w-12 h-12 bg-gradient-to-br from-blue-500 to-purple-600 rounded-xl mr-4"}),(0,r.jsxs)("div",{children:[(0,r.jsx)("h1",{className:"text-2xl font-bold text-gray-900",children:"Basic Information"}),(0,r.jsx)("p",{className:"text-gray-600",children:"Tell us about your coin's core details"})]})]}),(0,r.jsxs)("div",{className:"mb-8",children:[(0,r.jsxs)("label",{className:"block text-base font-semibold text-gray-900 mb-1",children:["Contract Address ",j&&(0,r.jsx)("span",{className:"text-sm text-gray-500 font-normal",children:"(cannot be changed)"})]}),(0,r.jsx)("p",{className:"text-sm text-gray-500 mb-3",children:'Paste your Solana contract address and click "Auto-fill" to populate fields automatically.'}),(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsx)("input",{type:"text",value:H.contractAddress,onChange:e=>ei(e.target.value),className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-[#7C7AF4] focus:border-[#7C7AF4] font-mono text-sm pr-24 transition-colors ".concat(j?"bg-gray-100 cursor-not-allowed":""),placeholder:"e.g., DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263",required:!0,disabled:!!j}),H.contractAddress.length>=32&&(0,r.jsx)("button",{type:"button",onClick:()=>el(H.contractAddress),disabled:_,className:"absolute right-3 top-1/2 transform -translate-y-1/2 px-3 py-1 bg-[#7C7AF4] hover:bg-[#7C7AF4]/90 disabled:bg-gray-300 text-white text-xs font-medium rounded transition-colors",children:_?"Loading...":Z?"Retry auto-fill":"Auto-fill"})]}),Q&&(0,r.jsxs)("div",{className:"mt-3 flex items-center text-sm text-indigo-500",children:[(0,r.jsx)("svg",{className:"w-4 h-4 mr-2",fill:"currentColor",viewBox:"0 0 20 20",children:(0,r.jsx)("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"})}),"Fields auto-populated from DexScreener"]}),Z&&(0,r.jsxs)("div",{className:"mt-3 flex items-start text-sm text-amber-600",children:[(0,r.jsx)("svg",{className:"w-4 h-4 mr-2 mt-0.5 flex-shrink-0",fill:"currentColor",viewBox:"0 0 20 20",children:(0,r.jsx)("path",{fillRule:"evenodd",d:"M8.257 3.099c.765-1.36 2.722-1.36 3.486 0l5.58 9.92c.75 1.334-.213 2.98-1.742 2.98H4.42c-1.53 0-2.493-1.646-1.743-2.98l5.58-9.92zM11 13a1 1 0 11-2 0 1 1 0 012 0zm-1-8a1 1 0 00-1 1v3a1 1 0 002 0V6a1 1 0 00-1-1z",clipRule:"evenodd"})}),(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{className:"font-medium",children:Z}),(0,r.jsxs)("div",{className:"mt-1 text-xs text-gray-600",children:["Try with a popular token like BONK: ",(0,r.jsx)("code",{className:"bg-gray-100 px-1 rounded text-xs",children:"DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263"})]})]})]}),H.contractAddress.length>=32&&(0,r.jsx)("div",{className:"mt-3 space-y-2",children:(0,r.jsxs)("div",{className:"flex items-center text-xs text-gray-600",children:[(0,r.jsx)("span",{className:"mr-2",children:"Detected blockchain:"}),(0,r.jsx)("span",{className:"px-2 py-1 rounded text-xs font-medium ".concat("ethereum"===er(H.contractAddress)?"bg-blue-100 text-blue-800":"bg-purple-100 text-purple-800"),children:"ethereum"===er(H.contractAddress)?"Ethereum":"Solana"})]})}),(0,r.jsxs)("div",{className:"mb-8 mt-8",children:[(0,r.jsxs)("label",{className:"block text-base font-semibold text-gray-900 mb-1",children:["Coin Name ",j&&(0,r.jsx)("span",{className:"text-sm text-gray-500 font-normal",children:"(cannot be changed)"})]}),(0,r.jsx)("p",{className:"text-sm text-gray-500 mb-3",children:"Your coin's display name."}),(0,r.jsx)("input",{type:"text",value:H.name,onChange:e=>ee("name",e.target.value),className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-[#7C7AF4] focus:border-[#7C7AF4] transition-colors ".concat(j?"bg-gray-100 cursor-not-allowed":""),placeholder:"e.g., TokenName",required:!0,disabled:!!j})]}),(0,r.jsxs)("div",{className:"mb-8",children:[(0,r.jsxs)("label",{className:"block text-base font-semibold text-gray-900 mb-1",children:["Symbol ",j&&(0,r.jsx)("span",{className:"text-sm text-gray-500 font-normal",children:"(cannot be changed)"})]}),(0,r.jsx)("p",{className:"text-sm text-gray-500 mb-3",children:"A unique ticker symbol for your coin."}),(0,r.jsx)("input",{type:"text",value:H.symbol,onChange:e=>ee("symbol",e.target.value.toUpperCase()),className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-[#7C7AF4] focus:border-[#7C7AF4] transition-colors ".concat(j?"bg-gray-100 cursor-not-allowed":""),placeholder:"e.g., SYMB",required:!0,disabled:!!j})]}),(0,r.jsxs)("div",{className:"mb-8",children:[(0,r.jsx)("label",{className:"block text-base font-semibold text-gray-900 mb-1",children:"Description"}),(0,r.jsx)("p",{className:"text-sm text-gray-500 mb-3",children:"Describe your coin, its purpose, and what makes it unique."}),(0,r.jsx)("textarea",{value:H.description,onChange:e=>ee("description",e.target.value),rows:4,className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-[#7C7AF4] focus:border-[#7C7AF4] transition-colors",placeholder:"Tell us about your coin...",required:!0})]}),(null==(s=E[q])?void 0:s.length)>0&&(0,r.jsx)("div",{className:"bg-red-50 border border-red-200 rounded-lg p-4",children:(0,r.jsxs)("div",{className:"flex items-start",children:[(0,r.jsx)("svg",{className:"w-5 h-5 text-red-500 mt-0.5 mr-3 flex-shrink-0",fill:"currentColor",viewBox:"0 0 20 20",children:(0,r.jsx)("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7 4a1 1 0 11-2 0 1 1 0 012 0zm-1-9a1 1 0 00-1 1v4a1 1 0 102 0V6a1 1 0 00-1-1z",clipRule:"evenodd"})}),(0,r.jsxs)("div",{children:[(0,r.jsx)("h4",{className:"text-sm font-medium text-red-800 mb
1-1",children:"Please fix the following errors:"}),(0,r.jsx)("ul",{className:"text-sm text-red-700 list-disc list-inside space-y-1",children:E[q].map((e,s)=>(0,r.jsx)("li",{children:e},s))})]})]})})]})]}),"media"===q&&(0,r.jsxs)("div",{className:"space-y-8",children:[(0,r.jsxs)("div",{className:"flex items-center mb-8",children:[(0,r.jsx)("div",{className:"w-12 h-12 bg-gradient-to-br from-indigo-400 to-blue-600 rounded-xl mr-4"}),(0,r.jsxs)("div",{children:[(0,r.jsx)("h1",{className:"text-2xl font-bold text-gray-900",children:"Images & Media"}),(0,r.jsx)("p",{className:"text-gray-600",children:"Add visual assets for your coin"})]})]}),(0,r.jsxs)("div",{className:"mb-6",children:[(0,r.jsx)("label",{className:"block text-base font-semibold text-gray-900 mb-1",children:"Logo URL"}),(0,r.jsx)("p",{className:"text-sm text-gray-500 mb-3",children:"A square image that represents your coin. Recommended: 512x512px, PNG or SVG."}),(0,r.jsx)("input",{type:"url",value:H.logoUrl,onChange:e=>ee("logoUrl",e.target.value),className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-[#7C7AF4] focus:border-[#7C7AF4] transition-colors",placeholder:"https://example.com/logo.png"}),H.logoUrl&&(0,r.jsxs)("div",{className:"mt-4 flex items-center space-x-4",children:[(0,r.jsx)("div",{className:"w-16 h-16 rounded-lg overflow-hidden border border-gray-200 relative",children:(0,r.jsx)(o.default,{src:H.logoUrl,alt:"Logo preview",width:64,height:64,className:"object-cover",unoptimized:!0})}),(0,r.jsx)("div",{className:"text-sm text-gray-600",children:"Preview"})]})]}),(0,r.jsxs)("div",{className:"mb-6",children:[(0,r.jsx)("label",{className:"block text-base font-semibold text-gray-900 mb-1",children:"Banner URL"}),(0,r.jsx)("p",{className:"text-sm text-gray-500 mb-3",children:"A wide banner image for your coin's header. Recommended: 1200x400px."}),(0,r.jsx)("input",{type:"url",value:H.bannerUrl,onChange:e=>ee("bannerUrl",e.target.value),className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-[#7C7AF4] focus:border-[#7C7AF4] transition-colors",placeholder:"https://example.com/banner.png"}),H.bannerUrl&&(0,r.jsxs)("div",{className:"mt-4",children:[(0,r.jsx)("div",{className:"w-full h-32 rounded-lg overflow-hidden border border-gray-200 relative",children:(0,r.jsx)(o.default,{src:H.bannerUrl,alt:"Banner preview",fill:!0,className:"object-cover",unoptimized:!0})}),(0,r.jsx)("div",{className:"text-sm text-gray-600 mt-2",children:"Preview"})]})]}),(null==(t=E[q])?void 0:t.length)>0&&(0,r.jsx)("div",{className:"bg-red-50 border border-red-200 rounded-lg p-4",children:(0,r.jsxs)("div",{className:"flex items-start",children:[(0,r.jsx)("svg",{className:"w-5 h-5 text-red-500 mt-0.5 mr-3 flex-shrink-0",fill:"currentColor",viewBox:"0 0 20 20",children:(0,r.jsx)("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7 4a1 1 0 11-2 0 1 1 0 012 0zm-1-9a1 1 0 00-1 1v4a1 1 0 102 0V6a1 1 0 00-1-1z",clipRule:"evenodd"})}),(0,r.jsxs)("div",{children:[(0,r.jsx)("h4",{className:"text-sm font-medium text-red-800 mb-1",children:"Please fix the following errors:"}),(0,r.jsx)("ul",{className:"text-sm text-red-700 list-disc list-inside space-y-1",children:E[q].map((e,s)=>(0,r.jsx)("li",{children:e},s))})]})]})})]}),"links"===q&&(0,r.jsxs)("div",{className:"space-y-8",children:[(0,r.jsxs)("div",{className:"flex items-center mb-8",children:[(0,r.jsx)("div",{className:"w-12 h-12 bg-gradient-to-br from-purple-500 to-pink-600 rounded-xl mr-4"}),(0,r.jsxs)("div",{children:[(0,r.jsx)("h1",{className:"text-2xl font-bold text-gray-900",children:"Links"}),(0,r.jsx)("p",{className:"text-gray-600",children:"Connect your social media and website"})]})]}),(0,r.jsxs)("div",{className:"mb-6",children:[(0,r.jsx)("label",{className:"block text-base font-semibold text-gray-900 mb-1",children:"Website"}),(0,r.jsx)("p",{className:"text-sm text-gray-500 mb-3",children:"Your official website or landing page."}),(0,r.jsx)("input",{type:"url",value:H.website,onChange:e=>ee("website",e.target.value),className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-[#7C7AF4] focus:border-[#7C7AF4] transition-colors",placeholder:"https://yourtoken.com"})]}),(0,r.jsxs)("div",{className:"mb-6",children:[(0,r.jsx)("label",{className:"block text-base font-semibold text-gray-900 mb-1",children:"Twitter"}),(0,r.jsx)("p",{className:"text-sm text-gray-500 mb-3",children:"Your Twitter/X username or full profile URL (supports both formats)."}),(0,r.jsx)("input",{type:"text",value:H.twitter,onChange:e=>ee("twitter",e.target.value),className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-[#7C7AF4] focus:border-[#7C7AF4] transition-colors",placeholder:"@username, username, or https://twitter.com/username"})]}),(0,r.jsxs)("div",{className:"mb-6",children:[(0,r.jsx)("label",{className:"block text-base font-semibold text-gray-900 mb-1",children:"Telegram"}),(0,r.jsx)("p",{className:"text-sm text-gray-500 mb-3",children:"Your Telegram channel or group."}),(0,r.jsx)("input",{type:"text",value:H.telegram,onChange:e=>ee("telegram",e.target.value),className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-[#7C7AF4] focus:border-[#7C7AF4] transition-colors",placeholder:"@yourtoken or t.me/yourtoken"})]}),(0,r.jsxs)("div",{className:"mb-6",children:[(0,r.jsx)("label",{className:"block text-base font-semibold text-gray-900 mb-1",children:"Discord"}),(0,r.jsx)("p",{className:"text-sm text-gray-500 mb-3",children:"Your Discord server invite link."}),(0,r.jsx)("input",{type:"text",value:H.discord,onChange:e=>ee("discord",e.target.value),className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-[#7C7AF4] focus:border-[#7C7AF4] transition-colors",placeholder:"https://discord.gg/yourtoken"})]}),(null==(p=E[q])?void 0:p.length)>0&&(0,r.jsx)("div",{className:"bg-red-50 border border-red-200 rounded-lg p-4",children:(0,r.jsxs)("div",{className:"flex items-start",children:[(0,r.jsx)("svg",{className:"w-5 h-5 text-red-500 mt-0.5 mr-3 flex-shrink-0",fill:"currentColor",viewBox:"0 0 20 20",children:(0,r.jsx)("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7 4a1 1 0 11-2 0 1 1 0 012 0zm-1-9a1 1 0 00-1 1v4a1 1 0 102 0V6a1 1 0 00-1-1z",clipRule:"evenodd"})}),(0,r.jsxs)("div",{children:[(0,r.jsx)("h4",{className:"text-sm font-medium text-red-800 mb
1-1",children:"Please fix the following errors:"}),(0,r.jsx)("ul",{className:"text-sm text-red-700 list-disc list-inside space-y-1",children:E[q].map((e,s)=>(0,r.jsx)("li",{children:e},s))})]})]})})]}),"team"===q&&(0,r.jsxs)("div",{className:"space-y-8",children:[(0,r.jsxs)("div",{className:"flex items-center mb-8",children:[(0,r.jsx)("div",{className:"w-12 h-12 bg-gradient-to-br from-green-500 to-emerald-600 rounded-xl mr-4"}),(0,r.jsxs)("div",{children:[(0,r.jsx)("h1",{className:"text-2xl font-bold text-gray-900",children:"Team"}),(0,r.jsx)("p",{className:"text-gray-600",children:"Add team members and their social profiles"})]})]}),(0,r.jsxs)("div",{className:"mb-6",children:[(0,r.jsx)("label",{className:"block text-base font-semibold text-gray-900 mb-1",children:"Team Members"}),(0,r.jsx)("p",{className:"text-sm text-gray-500 mb-4",children:"Add team members who work on this project. You can add their names and X (Twitter) profiles."}),(0,r.jsxs)("div",{className:"space-y-4",children:[H.teamMembers.map((e,s)=>(0,r.jsx)("div",{className:"bg-gray-50 rounded-lg p-4 border border-gray-200",children:(0,r.jsxs)("div",{className:"flex items-start gap-4",children:[(0,r.jsxs)("div",{className:"flex-1 grid grid-cols-1 md:grid-cols-2 gap-4",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Name or Handle"}),(0,r.jsx)("input",{type:"text",value:e.name,onChange:t=>{let r=[...H.teamMembers];r[s]={...e,name:t.target.value},es(r)},className:"w-full px-3 py-2 border border-gray-300 rounded-md focus:ring-2 focus:ring-[#7C7AF4] focus:border-[#7C7AF4] transition-colors",placeholder:"John Doe or @johndoe"})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"X (Twitter) Profile"}),(0,r.jsx)("input",{type:"url",value:e.xProfile||"",onChange:t=>{let r=[...H.teamMembers];r[s]={...e,xProfile:t.target.value},es(r)},className:"w-full px-3 py-2 border border-gray-300 rounded-md focus:ring-2 focus:ring-[#7C7AF4] focus:border-[#7C7AF4] transition-colors",placeholder:"https://x.com/username"})]})]}),(0,r.jsx)("button",{type:"button",onClick:()=>{es(H.teamMembers.filter((e,t)=>t!==s))},className:"mt-6 flex-shrink-0 w-8 h-8 bg-red-100 text-red-600 rounded-full flex items-center justify-center hover:bg-red-200 transition-colors",title:"Remove team member",children:"â"})]})},s)),(0,r.jsxs)("button",{type:"button",onClick:()=>{es([...H.teamMembers,{name:"",xProfile:""}])},className:"w-full py-3 border-2 border-dashed border-gray-300 rounded-lg text-gray-600 hover:border-[#7C7AF4] hover:text-[#7C7AF4] transition-colors flex items-center justify-center gap-2",children:[(0,r.jsx)("span",{className:"text-lg",children:"+"}),"Add Team Member"]}),0===H.teamMembers.length&&(0,r.jsxs)("div",{className:"text-center py-8 text-gray-500",children:[(0,r.jsx)("div",{className:"text-4xl mb-2",children:"\uD83D\uDC65"}),(0,r.jsx)("p",{children:"No team members added yet."}),(0,r.jsx)("p",{className:"text-sm",children:'Click "Add Team Member" to get started.'})]})]})]}),(null==(f=E[q])?void 0:f.length)>0&&(0,r.jsx)("div",{className:"bg-red-50 border border-red-200 rounded-lg p-4",children:(0,r.jsxs)("div",{className:"flex items-start",children:[(0,r.jsx)("svg",{className:"w-5 h-5 text-red-500 mt-0.5 mr-3 flex-shrink-0",fill:"currentColor",viewBox:"0 0 20 20",children:(0,r.jsx)("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7 4a1 1 0 11-2 0 1 1 0 012 0zm-1-9a1 1 0 00-1 1v4a1 1 0 102 0V6a1 1 0 00-1-1z",clipRule:"evenodd"})}),(0,r.jsxs)("div",{children:[(0,r.jsx)("h4",{className:"text-sm font-medium text-red-800 mb-1",children:"Please fix the following errors:"}),(0,r.jsx)("ul",{className:"text-sm text-red-700 list-disc list-inside space-y-1",children:E[q].map((e,s)=>(0,r.jsx)("li",{children:e},s))})]})]})})]}),"details"===q&&(0,r.jsxs)("div",{className:"space-y-8",children:[(0,r.jsxs)("div",{className:"flex items-center mb-8",children:[(0,r.jsx)("div",{className:"w-12 h-12 bg-gradient-to-br from-orange-500 to-red-600 rounded-xl mr-4"}),(0,r.jsxs)("div",{children:[(0,r.jsx)("h1",{className:"text-2xl font-bold text-gray-900",children:"Project Details"}),(0,r.jsx)("p",{className:"text-gray-600",children:"Add tags and additional information"})]})]}),(0,r.jsxs)("div",{className:"mb-6",children:[(0,r.jsx)("label",{className:"block text-base font-semibold text-gray-900 mb-1",children:"Launch Date"}),(0,r.jsx)("p",{className:"text-sm text-gray-500 mb-3",children:"When was your coin launched or when will it be launched?"}),(0,r.jsx)("input",{type:"date",value:H.launchDate,onChange:e=>ee("launchDate",e.target.value),className:"w-full md:w-auto px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-[#7C7AF4] focus:border-[#7C7AF4] transition-colors"})]}),(0,r.jsxs)("div",{className:"mb-6",children:[(0,r.jsx)("label",{className:"block text-base font-semibold text-gray-900 mb-1",children:"Launchpad Platform"}),(0,r.jsx)("p",{className:"text-sm text-gray-500 mb-3",children:"Select the platform where your coin was launched"}),(0,r.jsxs)("div",{className:"flex flex-wrap gap-3",children:[Object.entries(m.I).map(e=>{let[s,t]=e;return(0,r.jsxs)("button",{type:"button",onClick:()=>ee("launchpad",s),className:"px-4 py-2 rounded-full text-sm font-medium transition-colors border ".concat(H.launchpad===s?"".concat(t.bgColor," ").concat(t.color," ").concat(t.borderColor," shadow-sm"):"bg-gray-100 text-gray-700 hover:bg-gray-200 border-gray-200"),children:[t.icon?(0,r.jsx)(o.default,{src:"/launchpads/".concat(t.icon),alt:t.name,width:16,height:16,className:"inline-block"}):t.emoji," ",t.name]},s)}
1),H.launchpad&&(0,r.jsx)("button",{type:"button",onClick:()=>ee("launchpad",""),className:"px-4 py-2 rounded-full text-sm font-medium text-gray-500 hover:text-gray-700 border border-gray-200 hover:bg-gray-50",children:"â Clear"})]})]}),(0,r.jsxs)("div",{className:"mb-6",children:[(0,r.jsx)("label",{className:"block text-base font-semibold text-gray-900 mb-1",children:"Tags (max 5)"}),(0,r.jsx)("p",{className:"text-sm text-gray-500 mb-3",children:"Choose up to 5 tags that best describe your coin."}),(0,r.jsx)("div",{className:"flex flex-wrap gap-3",children:g.map(e=>(0,r.jsx)("button",{type:"button",onClick:()=>et(e),disabled:H.tags.length>=5&&!H.tags.includes(e),className:"px-4 py-2 rounded-full text-sm font-medium transition-colors ".concat(H.tags.includes(e)?"bg-[#7C7AF4] text-white shadow-sm":"bg-gray-100 text-gray-700 hover:bg-gray-200 disabled:opacity-50 disabled:cursor-not-allowed"),children:(0,x._)(e)},e))}),H.tags.length>0&&(0,r.jsx)("div",{className:"mt-4 p-3 bg-indigo-50 border border-indigo-200 rounded-lg",children:(0,r.jsxs)("p",{className:"text-sm text-indigo-800",children:[(0,r.jsx)("span",{className:"font-medium",children:"Selected tags:"})," ",H.tags.join(", ")," (",H.tags.length,"/5)"]})})]}),(0,r.jsxs)("div",{className:"mb-6",children:[(0,r.jsx)("label",{className:"block text-base font-semibold text-gray-900 mb-1",children:"Additional Details"}),(0,r.jsx)("p",{className:"text-sm text-gray-500 mb-3",children:"Any additional information about your token, roadmap, team, etc."}),(0,r.jsx)("textarea",{value:H.additionalInfo,onChange:e=>ee("additionalInfo",e.target.value),rows:4,className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-[#7C7AF4] focus:border-[#7C7AF4] transition-colors",placeholder:"Tell us more about your project..."})]}),(null==(v=E[q])?void 0:v.length)>0&&(0,r.jsx)("div",{className:"bg-red-50 border border-red-200 rounded-lg p-4",children:(0,r.jsxs)("div",{className:"flex items-start",children:[(0,r.jsx)("svg",{className:"w-5 h-5 text-red-500 mt-0.5 mr-3 flex-shrink-0",fill:"currentColor",viewBox:"0 0 20 20",children:(0,r.jsx)("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7 4a1 1 0 11-2 0 1 1 0 012 0zm-1-9a1 1 0 00-1 1v4a1 1 0 102 0V6a1 1 0 00-1-1z",clipRule:"evenodd"})}),(0,r.jsxs)("div",{children:[(0,r.jsx)("h4",{className:"text-sm font-medium text-red-800 mb-1",children:"Please fix the following errors:"}),(0,r.jsx)("ul",{className:"text-sm text-red-700 list-disc list-inside space-y-1",children:E[q].map((e,s)=>(0,r.jsx)("li",{children:e},s))})]})]})})]}),"review"===q&&(0,r.jsxs)("div",{className:"space-y-8",children:[(0,r.jsxs)("div",{className:"flex items-center mb-8",children:[(0,r.jsx)("div",{className:"w-12 h-12 bg-gradient-to-br from-indigo-400 to-emerald-600 rounded-xl mr-4"}),(0,r.jsxs)("div",{children:[(0,r.jsx)("h1",{className:"text-2xl font-bold text-gray-900",children:"Review & Submit"}),(0,r.jsx)("p",{className:"text-gray-600",children:"Review your coin details before publishing"})]})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("h4",{className:"text-lg font-semibold text-gray-900 mb-4",children:"Preview"}),(0,r.jsx)("div",{className:"bg-gradient-to-br from-gray-50 to-gray-100 rounded-xl p-6 border border-gray-200",children:(0,r.jsxs)("div",{className:"flex items-start space-x-4",children:[H.logoUrl?(0,r.jsx)("div",{className:"w-16 h-16 rounded-xl overflow-hidden flex-shrink-0 shadow-sm relative",children:(0,r.jsx)(o.default,{src:H.logoUrl,alt:"Logo",width:64,height:64,className:"object-cover",unoptimized:!0})}):(0,r.jsx)("div",{className:"w-16 h-16 rounded-xl bg-gradient-to-br from-blue-400 to-purple-500 flex-shrink-0"}),(0,r.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,r.jsx)("h5",{className:"text-xl font-bold text-gray-900 mb-1",children:H.name||"Coin Name"}),(0,r.jsx)("p",{className:"text-gray-600 font-mono text-sm mb-3",children:H.symbol||"SYMBOL"}),(0,r.jsx)("p",{className:"text-gray-700 mb-4 leading-relaxed",children:H.description||"No description provided"}),H.tags.length>0&&(0,r.jsx)("div",{className:"flex flex-wrap gap-2",children:H.tags.map(e=>(0,r.jsx)("span",{className:"px-3 py-1 bg-[#7C7AF4]/10 text-[#7C7AF4] text-sm rounded-full border border-[#7C7AF4]/20",children:e},e))})]})]})})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("h4",{className:"text-lg font-semibold text-gray-900 mb-4",children:"Publication Status"}),(0,r.jsxs)("div",{className:"space-y-4",children:[(0,r.jsxs)("label",{className:"flex items-start p-4 border border-gray-200 rounded-lg hover:border-[#7C7AF4] hover:bg-indigo-50 transition-colors cursor-pointer",children:[(0,r.jsx)("input",{type:"radio",name:"status",value:"published",checked:"published"===H.status,onChange:e=>ee("status",e.target.value),className:"mt-1 w-4 h-4 text-[#7C7AF4] focus:ring-[#7C7AF4]"}),(0,r.jsxs)("div",{className:"ml-4",children:[(0,r.jsx)("span",{className:"text-sm font-semibold text-gray-900",children:"Published"}),(0,r.jsx)("p",{className:"text-sm text-gray-600",children:"Make visible to everyone immediately"})]})]}),(0,r.jsxs)("label",{className:"flex items-start p-4 border border-gray-200 rounded-lg hover:border-[#7C7AF4] hover:bg-indigo-50 transition-colors cursor-pointer",children:[(0,r.jsx)("input",{type:"radio",name:"status",value:"draft",checked:"draft"===H.status,onChange:e=>ee("status",e.target.value),className:"mt-1 w-4 h-4 text-[#7C7AF4] focus:ring-[#7C7AF4]"}),(0,r.jsxs)("div",{className:"ml-4",children:[(0,r.jsx)("span",{className:"text-sm font-semibold text-gray-900",children:"Draft"}),(0,r.jsx)("p",{className:"text-sm text-gray-600",children:"Save but keep private for now"})]})]})]})]}),M&&(0,r.jsx)("div",{className:"bg-red-50 border border-red-200 rounded-xl p-6",children:(0,r.jsxs)("div",{className:"flex items-start",children:[(0,r.jsx)("svg",{className:"w-5 h-5 text-red-500 mt-0.5 mr-3 flex-shrink-0",fill:"currentColor",viewBox:"0 0 20 20",children:(0,r.jsx)("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7 4a1 1 0 11-2 0 1 1 0 012 0zm-1-9a1 1 0 00-1 1v4a1 1 0 102 0V6a1 1 0 00-1-1z",clipRule:"evenodd"})}),(0,r.jsx)("div",{className:"text-red-800 text-sm",children:M.includes("Validation failed:")?(0,r.jsxs)("div",{children:[(0,r.jsx)("p",{className:"font-semibold mb-2",children:"Please fix the following validation errors:"}),(0,r.jsx)("ul",{className:"list-disc list-inside space-y-1",children:M.split("\n").slice(1).map((e,s)=>(0,r.jsx)("li",{className:"text-sm",children:e},s))})]}):(0,r.jsx)("p",{children:M})})]})}),(0,r.jsxs)("div",{className:"flex justify-between items-center pt-6",children:[(0,r.jsx)("button",{type:"button",onClick:()=>w.back(),className:"px-6 py-3 text-gray-600 hover:text-gray-800 font-medium transition-colors rounded-lg hover:bg-gray-100",children:"Cancel"}),(0,r.jsx)("button",{type:"submit",disabled:S,className:"bg-[#7C7AF4] hover:bg-[#7C7AF4]/90 disabled:bg-gray-300 text-white font-semibold rounded-lg px-8 py-3 transition-colors shadow-sm",children:S?(0,r.jsxs)("div",{className:"flex items-center",children:[(0,r.jsxs)("svg",{className:"animate-spin -ml-1 mr-3 h-4 w-4 text-white",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[(0,r.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,r.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),"Saving..."]}):j?"Update Coin":"Publish"})]})]}),(0,r.jsxs)("div",{className:"mt-12 flex justify-between items-center pt-6 border-t border-gray-200",children:[(0,r.jsxs)("button",{type:"button",onClick:()=>{let e=h.findIndex(e=>e.id===q);e>0&&I(h[e-1].id)},disabled:"basic"===q,className:"flex items-center px-6 py-3 text-gray-600 hover:text-gray-900 disabled:text-gray-400 font-medium transition-colors disabled:cursor-not-allowed rounded-lg hover:bg-gray-50",children:[(0,r.jsx)("svg",{className:"w-4 h-4 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 19l-7-7 7-7"})}),"Previous"]}),"review"!==q&&(0,r.jsxs)("button",{type:"button",onClick:ed,className:"flex items-center px-6 py-3 bg-[#7C7AF4] hover:bg-[#7C7AF4]/90 text-white font-semibold rounded-lg transition-colors shadow-sm",children:["Next",(0,r.jsx)("svg",{className:"w-4 h-4 ml-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})})]})]})]})})})]})}},57297:(e,s,t)=>{t.d(s,{qc:()=>i});let r=["[email protected]"],l=[],a=["did:privy:cmd2yruh102f2l10mpll6cmjv"];function i(e){if(!e)return console.log("â No user provided to admin check"),!1;try{var s,t;if(e.id&&a.includes(e.id))return!0;
1if(null==(s=e.email)?void 0:s.address){let s=e.email.address.toLowerCase();if(r.includes(s))return!0}if(null==(t=e.wallet)?void 0:t.address){let s=e.wallet.address.toLowerCase();if(l.includes(s))return!0}if(Array.isArray(e.linkedAccounts)&&e.linkedAccounts.length>0)for(let s of e.linkedAccounts){if(!s||!s.type||!s.address)continue;let e=s.address.toLowerCase();if("email"===s.type&&r.includes(e)||"wallet"===s.type&&l.includes(e))return!0}return!1}catch(e){return console.error("â Error in admin check:",e),!1}}},67601:(e,s,t)=>{t.d(s,{I:()=>o,P:()=>d});var r=t(95155);t(12115);var l=t(66766),a=t(6874),i=t.n(a);let o={pump:{name:"Pump",emoji:"\uD83D\uDE80",icon:"pump.svg",color:"text-green-700",bgColor:"bg-green-50",borderColor:"border-green-200"},believe:{name:"Believe",emoji:"\uD83C\uDFAF",icon:"believe.svg",color:"text-green-700",bgColor:"bg-green-50",borderColor:"border-green-200"},moonshot:{name:"Moonshot",emoji:"\uD83C\uDF19",icon:"moonshot-new.svg",color:"text-purple-700",bgColor:"bg-purple-50",borderColor:"border-purple-200"},bonk:{name:"Bonk",emoji:"\uD83D\uDD25",icon:"bonk.svg",color:"text-orange-700",bgColor:"bg-orange-50",borderColor:"border-orange-200"},jupiter:{name:"Jupiter",emoji:"\uD83E\uDE90",icon:"jupstudio.svg",color:"text-red-700",bgColor:"bg-red-50",borderColor:"border-red-200"},"jupiter-studio":{name:"Jupiter Studio",emoji:"\uD83E\uDE90",icon:"jupstudio.svg",color:"text-red-700",bgColor:"bg-red-50",borderColor:"border-red-200"},moonit:{name:"Moonit",emoji:"\uD83D\uDCCA",icon:"moonit.svg",color:"text-lime-700",bgColor:"bg-lime-50",borderColor:"border-lime-200"},boop:{name:"Boop",emoji:"\uD83D\uDC7B",icon:"boop.svg",color:"text-blue-700",bgColor:"bg-blue-50",borderColor:"border-blue-200"},raydium:{name:"Raydium",emoji:"\uD83C\uDF0A",icon:"raydium.svg",color:"text-blue-700",bgColor:"bg-blue-50",borderColor:"border-blue-200"},meteora:{name:"Meteora",emoji:"âï¸",icon:"meteora.svg",color:"text-purple-700",bgColor:"bg-purple-50",borderColor:"border-purple-200"},metadao:{name:"MetaDAO",emoji:"\uD83C\uDFDBï¸",icon:"metadao.svg",color:"text-rose-700",bgColor:"bg-rose-50",borderColor:"border-rose-200"},soar:{name:"Soar",emoji:"âï¸",icon:"soar-launchpad.png",color:"text-sky-700",bgColor:"bg-sky-50",borderColor:"border-sky-200"}},n={sm:{text:"text-xs",padding:"px-2.5 py-0.5",emoji:"text-xs",iconSize:12},md:{text:"text-sm",padding:"px-3 py-1.5",emoji:"text-sm",iconSize:16},lg:{text:"text-base",padding:"px-4 py-2",emoji:"text-base",iconSize:20}};function d(e){let{launchpad:s,size:t="md",className:a="",clickable:d=!0,onClick:c}=e;if(!s)return null;let m=o[s.toLowerCase().replace(/[^a-z0-9]/g,"-")]||{name:s,emoji:"\uD83D\uDD2E",color:"text-gray-700",bgColor:"bg-gray-50",borderColor:"border-gray-200"},x=n[t],u=(0,r.jsxs)("div",{className:"\n inline-flex items-center gap-1.5 rounded-full border font-medium transition-all duration-200\n ".concat(m.bgColor," ").concat(m.color," ").concat(m.borderColor,"\n ").concat(x.padding," ").concat(x.text,"\n ").concat(d?"cursor-pointer hover:shadow-sm hover:scale-105":"","\n ").concat(a,"\n "),children:[m.icon?(0,r.jsx)(l.default,{src:"/launchpads/".concat(m.icon),alt:m.name,width:x.iconSize,height:x.iconSize,className:"flex-shrink-0",onError:e=>{let s=e.target;s.style.display="none";let t=s.nextElementSibling;t&&t.classList.remove("hidden")}}):null,(0,r.jsx)("span",{className:"".concat(m.icon?"hidden":""," ").concat(x.emoji),children:m.emoji}),(0,r.jsx)("span",{children:m.name})]});return d&&!c?(0,r.jsx)(i(),{href:"/launchpad/".concat(encodeURIComponent(s)),onClick:e=>e.stopPropagation(),children:u}):c?(0,r.jsx)("div",{onClick:c,children:u}):u}}}]);
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.