(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7192],{28235:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/profile/[id]",function(){return s(89010)}])},2071:function(e,t,s){"use strict";s.d(t,{Z:function(){return k}});var a=s(85893),r=s(39664),n=s.n(r),i=s(59417),l=s(99603),o=s(94270);function c(e){let{items:t}=e;return(0,a.jsxs)(o.v,{children:[(0,a.jsxs)(o.v.Button,{className:"toggle-menu flex items-center gap-1 outline-none",children:[(0,a.jsx)("span",{className:"text-lg font-medium",children:"Menu"}),(0,a.jsx)(l.G,{icon:i.ptq,className:"arrow text-md"})]}),(0,a.jsx)(o.v.Items,{className:"nav-list outline-none",children:t.map((e,t)=>(0,a.jsx)(o.v.Item,{children:t=>{let{active:s}=t;return(0,a.jsx)("a",{className:"".concat(s?"":"nav-link hover:text-white"," ").concat(e.disabled?"opacity-75":""),href:e.href,onClick:t=>{e.disabled&&t.preventDefault()},children:e.title})}},t))})]})}var d=s(54306),m=s(10990),g=s(41664),u=s.n(g),x=s(39332),h=s(67294),p=s(42329),f=s(2797),b=s(11163),j=s(74931),v=s(54425);let y="GMai1NvHreNe135cvxya1gHaUJZiT1NAvbJkF4hPHQJ9";var w=function(){(0,b.useRouter)();let{isCopied:e,copyToClipboard:t}=function(e){let[t,s]=(0,h.useState)(!1);return{isCopied:t,copyToClipboard:e=>{var t;(null===(t=navigator.clipboard)||void 0===t?void 0:t.writeText)&&e&&navigator.clipboard.writeText(e).then(()=>{s(!0),setTimeout(()=>{s(!1)},3e3)})}}}(),s=(0,x.usePathname)();return null==s||s.startsWith("/anchor"),(0,a.jsxs)("div",{className:"relative flex w-full items-center justify-between gap-4 overflow-hidden bg-brand-green px-4 py-1.5 text-black lg:justify-center lg:px-0",children:[(0,a.jsx)("div",{className:"absolute left-0 top-0 hidden lg:block",children:(0,a.jsx)("img",{src:"/decor-annouce.svg",className:"w-80",alt:""})}),(0,a.jsx)("div",{className:"right absolute right-0 top-0 hidden lg:block",children:(0,a.jsx)("img",{src:"/decor-annouce.svg",alt:"",className:"w-80 rotate-180 scale-y-[-1]"})}),(0,a.jsx)("div",{className:"hidden text-xl lg:flex",children:"$GM Token is LIVE\uD83D\uDD25"}),(0,a.jsxs)("div",{className:"inline-flex items-center rounded border border-black px-2 py-0.5",children:[(0,a.jsx)("span",{className:"flex",children:"CA: "})," ",(0,a.jsx)("span",{className:"hidden font-semibold lg:flex",children:y}),(0,a.jsx)("span",{className:"flex font-semibold lg:hidden",children:(0,f.R)(y)}),e?(0,a.jsx)(v.xuy,{className:"ml-2",size:18}):(0,a.jsx)(v.qA2,{role:"button",onClick:()=>t(y),className:"ml-2",size:18})]}),(0,a.jsxs)("div",{role:"button",className:(0,p.cn)("relative z-10 flex cursor-pointer items-center gap-2 rounded bg-black px-4 py-1.5 font-semibold uppercase text-brand-green"),onClick:()=>{window.open("https://jup.ag/swap/SOL-GMai1NvHreNe135cvxya1gHaUJZiT1NAvbJkF4hPHQJ9","_blank")},children:["BUY Now",(0,a.jsx)(j.hlg,{size:24})]})]})},N=s(84295);m.ZP.registerPlugin(n());var k=e=>{let{isDark:t=!0}=e,s=(0,x.useRouter)(),r=(0,x.usePathname)();null==r||r.startsWith("/anchor");let[n,i]=(0,h.useState)(!1),[l,o]=(0,h.useState)(!1),[g,p]=(0,h.useState)(!1),[f,b]=(0,h.useState)(!1),[j,v]=(0,h.useState)(!1),[y,k]=(0,h.useState)(!1),{connected:I}=(0,d.O)();function A(e,t){e.stopPropagation(),e.preventDefault(),"/"===r?m.ZP.to(window,{scrollTo:t,duration:1,onComplete:()=>{"body"===t?s.replace("/",{scroll:!1}):s.replace("/".concat(t),{scroll:!1})}}):"body"===t?s.push("/"):s.push("/".concat(t))}return(0,h.useEffect)(()=>{let e=new IntersectionObserver(e=>{e.forEach(e=>{switch(e.target.id){case"framework":i(e.isIntersecting);break;case"framework-2":o(e.isIntersecting);break;case"framework-3":p(e.isIntersecting);break;case"use-case":b(e.isIntersecting);break;case"vision":v(e.isIntersecting);break;case"get-started":k(e.isIntersecting)}})},{root:null,rootMargin:"0px",threshold:.5}),t=document.querySelector(".gm-landing-wrap #framework"),s=document.querySelector(".gm-landing-wrap #framework-2"),a=document.querySelector(".gm-landing-wrap #framework-3");t&&s&&a&&(e.observe(t),e.observe(s),e.observe(a));let r=document.querySelector("#use-case");r&&e.observe(r);let n=document.querySelector("#vision");n&&e.observe(n);let l=document.querySelector("#get-started");return l&&e.observe(l),()=>{e.disconnect()}}),(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("header",{className:"fixed left-0 top-0 z-20 w-full border-b border-white/10 ".concat(t?"bg-dark":"bg-light"),children:[(0,a.jsx)(w,{}),(0,a.jsx)("div",{className:"container p-4 uppercase lg:px-0",children:(0,a.jsxs)("div",{className:"flex flex-row items-center justify-between",children:[(0,a.jsx)("div",{className:"gm-nav hidden basis-full lg:flex lg:basis-5/12",children:(0,a.jsxs)("ul",{className:"m-0 flex list-none items-center p-0 lg:gap-6 xl:gap-8",children:[(0,a.jsx)("li",{children:(0,a.jsx)(u(),{href:"/#framework",title:"gmAI Framework",className:n||l||g?"active":"",onClick:e=>A(e,"#framework"),children:"gmAI Framework"})}),(0,a.jsx)("li",{children:(0,a.jsx)(u(),{href:"/#use-case",title:"Use case",className:f?"active":"",onClick:e=>A(e,"#use-case"),children:"Use case"})}),(0,a.jsx)("li",{children:(0,a.jsx)(u(),{href:"/#vision",title:"Vision",className:j?"active":"",onClick:e=>A(e,"#vision"),children:"Vision"})})]})}),(0,a.jsx)("div",{className:"flex justify-center lg:flex-1",children:(0,a.jsx)(u(),{href:"/",title:"Gm.ai",onClick:e=>A(e,"body"),children:(0,a.jsx)("img",{src:"/images/gm-ai-logo-w.svg",alt:"gmAI",className:"h-8 lg:h-10"})})}),(0,a.jsx)("div",{className:"gm-nav hidden basis-full justify-end lg:flex lg:basis-5/12",children:(0,a.jsx)("ul",{className:"m-0 flex list-none items-center p-0 lg:gap-6 xl:gap-8",children:(0,a.jsxs)(u(),{href:"/anchor",title:"$GM ANCHOR",className:"bg-white p-2 rounded-lg !text-brand-gray-950 px-4",children:["$GM ANCHOR program ",(0,a.jsx)(N.Z1Y,{})]})})}),(0,a.jsx)("div",{className:"toggle-nav relative ml-4 flex lg:hidden",children:(0,a.jsx)(c,{items:[{title:"gmAI Framework",href:"/#framework"},{title:"Use case",href:"/#use-case"},{title:"Vision",href:"/#vision"},{title:"$GM ANCHOR program",href:"/anchor"}]})})]})})]})})}},42329:function(e,t,s){"use strict";s.d(t,{cn:function(){return n}});var a=s(90512),r=s(98388);function n(){for(var e=arguments.length,t=Array(e),s=0;s<e;s++)t[s]=arguments[s];return(0,r.m6)((0,a.W)(t))}},89010:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return I},metadata:function(){return k}});var a=s(85893),r=s(2071),n=s(28294),i=s(9008),l=s.n(i),o=s(28741),c=s(34863),d=s(40887),m=s(54306),g=s(93967),u=s.n(g),x=s(69260),h=s.n(x),p=s(41664),f=s.n(p),b=s(11163),j=s(67294),v=s(88767),y=s(52533),w=s(8246),N=()=>{var e,t;let{connected:s,publicKey:r}=(0,m.O)(),[n,i]=(0,j.useState)(!1),{id:l}=(0,b.useRouter)().query,g=null==r?void 0:r.toString(),x=async()=>{let e={handle:l};s&&(e.address=g);try{let t=await (0,o.Z)({path:"/user/detail-handle",method:"GET",params:e});return n&&i(!1),t.data}catch(e){404===e.response.status&&i(!0),console.log("error",e)}},{data:p,isLoading:N}=(0,v.useQuery)({queryFn:x,queryKey:["userDetails",g],enabled:!!l,refetchOnWindowFocus:!1}),k=(null==p?void 0:p.tx_hash)||"";return(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("div",{className:"mt-8",children:[N&&(0,a.jsx)(c.c,{style:{position:"fixed",top:"50%",left:"50%"}}),!N&&p&&(0,a.jsxs)("div",{children:[(0,a.jsxs)("h2",{className:"font-heading text-4xl font-semibold tracking-wider text-brand-gray-200 md:text-5xl lg:text-6xl",children:["\uD83D\uDC4B Welcome, ",null==p?void 0:p.handle]}),(0,a.jsx)("p",{className:"text-md mt-4 font-mono text-brand-gray-500 md:text-lg",children:"Your gmID is the key to access the entire gmAI ecosystem"}),(0,a.jsxs)("div",{className:"mt-16 flex flex-col items-center bg-[#2F2F2F]/30 lg:flex-row",children:[(0,a.jsx)("div",{className:"basis-full p-8 md:basis-6/12",children:(0,a.jsx)("div",{className:"max-w-[550px] overflow-hidden rounded-xl",children:(0,a.jsx)(h(),{animationData:(null==p?void 0:p.handle_type)==="investor"?w:y})})}),(0,a.jsxs)("div",{className:"flex basis-full flex-col gap-4 border-l border-l-brand-gray-300/5 p-8 md:basis-6/12",children:[(0,a.jsxs)("div",{className:"flex justify-between border-b border-b-brand-gray-300/5 pb-4",children:[(0,a.jsx)("p",{className:"text-brand-gray-500",children:"gmID"}),(0,a.jsxs)("p",{children:["gm.ai/profile/",null==p?void 0:p.handle]})]}),(0,a.jsxs)("div",{className:"flex justify-between border-b border-b-brand-gray-300/5 pb-4",children:[(0,a.jsx)("p",{className:"text-brand-gray-500",children:"NFT"}),(0,a.jsxs)("p",{children:[" ",null==p?void 0:null===(t=p.nft_metadata)||void 0===t?void 0:null===(e=t.name)||void 0===e?void 0:e.split(" ")[1]]})]}),(0,a.jsxs)("div",{className:"flex justify-between border-b border-b-brand-gray-300/5 pb-4",children:[(0,a.jsx)("p",{className:"text-brand-gray-500",children:"Wallet"}),(0,a.jsx)("p",{children:(e=>{if(e)return"".concat(e.slice(0,4),"...").concat(e.slice(-4))})(null==p?void 0:p.address)})]}),!!Number(null==p?void 0:p.amount)&&(0,a.jsxs)("div",{className:"flex justify-between border-b border-b-brand-gray-300/5 pb-4",children:[(0,a.jsx)("p",{className:"text-brand-gray-500",children:"Presale Allocation"}),(0,a.jsxs)("p",{children:[null==p?void 0:p.amount," $GM"]})]}),(0,a.jsxs)("div",{className:"flex justify-between border-b border-b-brand-gray-300/5 pb-4",children:[(0,a.jsx)("p",{className:"text-brand-gray-500",children:"View ID"}),(0,a.jsx)("a",{href:"https://explorer.solana.com/address/".concat(k),target:"_blank",className:"text-right hover:underline",children:(0,a.jsx)("span",{className:"ml-auto text-white",children:k.substring(0,4)+"..."+k.substring(k.length-4)})})]})]})]})]}),n&&(0,a.jsxs)("div",{children:[(0,a.jsx)("h4",{children:"This gmID not found. Please mint a gmID to access the ecosystem"}),(0,a.jsx)(f(),{href:"/mint",children:(0,a.jsx)(d.A,{className:u()("mt-8 inline-flex min-w-[200px] items-center justify-center gap-2 rounded-md bg-white px-6 py-7 text-medium font-medium tracking-tight text-brand-gray-950"),children:(0,a.jsx)("span",{children:"Mint gmID"})})})]})]})})};let k={metadataBase:new URL("https://gm.ai"),...n.W,title:"gm.ai Mint Your gmID",description:"The gateway to get access to gmAI ecosystem",keywords:"ID, gm.ai ecosystem, mint, gateway, Solana AI, AI layer for Solana, Solana artificial intelligence, operating layer, AI dApps",openGraph:{type:"website",url:"https://gm.ai",description:"Get early access to gmAI - The operating layer of Solana AI",siteName:"gm.ai",images:[{url:"https://gm.ai/gm-ai-thumb.jpg",width:680,height:450,type:"image/jpeg",alt:"gm.ai"}]},twitter:{card:"summary_large_image",site:"@gm_dot_ai",title:"gm.ai Mint Your gmID",description:"The gateway to get access to gmAI ecosystem",image:"https://gm.ai/gm-ai-thumb.jpg"}};var I=()=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(l(),{children:[(0,a.jsx)("title",{children:"gmAI: The Operating Layer of Solana AI"}),(0,a.jsx)("link",{rel:"shortcut icon",href:"https://gm.ai/favicon.ico"}),(0,a.jsx)("link",{rel:"icon",href:"https://gm.ai/favicon.ico"}),(0,a.jsx)("meta",{name:"description",content:"Enabling user-contributed data to fuel models for AI-driven crypto apps and solutions"}),(0,a.jsx)("meta",{name:"keywords",content:"Solana AI, AI layer for Solana, Solana artificial intelligence, operating layer, feature store, AI dApps"}),(0,a.jsx)("meta",{name:"twitter:image",content:"https://gm.ai/gm-ai-thumb.jpg"}),(0,a.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,a.jsx)("meta",{name:"twitter:site",content:"@gm_dot_ai"}),(0,a.jsx)("meta",{name:"twitter:title",content:"gmAI: The Operating Layer of Solana AI"}),(0,a.jsx)("meta",{name:"twitter:description",content:"Enabling user-contributed data to fuel models for AI-driven crypto apps and solutions"}),(0,a.jsx)("meta",{property:"og:url",content:"https://gm.ai"}),(0,a.jsx)("meta",{property:"og:type",content:"website"}),(0,a.jsx)("meta",{property:"og:image",content:"https://gm.ai/gm-ai-thumb.jpg"}),(0,a.jsx)("meta",{property:"og:title",content:"gmAI: The Operating Layer of Solana AI"}),(0,a.jsx)("meta",{property:"og:site_name",content:"gm.ai"}),(0,a.jsx)("meta",{property:"og:image:alt",content:"gm.ai"}),(0,a.jsx)("meta",{property:"og:description",content:"Enabling user-contributed data to fuel models for AI-driven crypto apps and solutions"})]}),(0,a.jsxs)("div",{className:"flex min-h-screen w-full flex-col p-4",children:[(0,a.jsx)(r.Z,{}),(0,a.jsx)("div",{className:"flex grow flex-col items-center justify-center pt-20 text-center lg:pt-10",children:(0,a.jsx)(N,{})})]})]})},2797:function(e,t,s){"use strict";s.d(t,{R:function(){return a}});let a=e=>null==e?void 0:e.replace(/^(\w{4})\w*(\w{4})$/,"$1...$2")}},function(e){e.O(0,[4976,5970,9317,4396,8802,296,956,7262,4961,887,9260,7703,4668,2888,9774,179],function(){return e(e.s=28235)}),_N_E=e.O()}]);