(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,246711,e=>{"use strict";var s=e.i(843476),t=e.i(111188),i=e.i(387952),r=e.i(167881),a=e.i(522016),n=e.i(948148);let l=function(){let e=(0,n.useTranslations)();return(0,s.jsxs)("div",{className:"py-8 md:py-16 flex flex-col gap-10 justify-center items-center bg-gray3",children:[(0,s.jsx)("h2",{className:"text-4xl font-bold text-center",children:e("home.cta.title")}),(0,s.jsx)(r.Button,{size:"lg",className:"px-9 py-5 h-auto",asChild:!0,children:(0,s.jsx)(a.default,{href:"/auth/signup",children:e("home.banner.sign_up_now")})})]})};var o=e.i(693263),c=e.i(271645);let d=function({children:e,className:t="",...i}){return(0,s.jsxs)("div",{...i,className:"relative overflow-hidden rounded-2xl h-full",children:[(0,s.jsx)("div",{className:"absolute inset-0 bg-linear-to-r/srgb from-gray2 to-gray3 -z-20 "}),(0,s.jsx)("div",{className:"absolute dark:bg-[url('/images/VectorGridSq-dark.svg')] inset-0 bg-repeat-y bg-bottom-right"}),(0,s.jsx)("div",{className:`z-10 lg:p-10 p-5 min-h-full relative ${t}`,children:e})]})};var m=e.i(657688),x=e.i(737698),g=e.i(863087);let h=function({iconPath:e,lottiePath:t,title:i,content:r}){let a=t?g.default:null;return(0,s.jsxs)(d,{children:[(0,s.jsx)("div",{className:"mb-6 w-12 h-12 flex items-center justify-center",children:t&&a?(0,s.jsx)(x.default,{options:{loop:!0,autoplay:!0,animationData:a,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}},height:48,width:48}):(0,s.jsx)(m.default,{src:e,alt:i,width:48,height:48,className:"mb-0"})}),(0,s.jsx)("h3",{className:"mb-2 font-bold text-2xl",children:i}),(0,s.jsx)("p",{children:r})]})};var u=e.i(363178),p=e.i(919737),f=e.i(647163);let b={active:!0,breakpoints:{},delay:4e3,jump:!1,playOnInit:!0,stopOnFocusIn:!0,stopOnInteraction:!0,stopOnMouseEnter:!1,stopOnLastSnap:!1,rootNode:null};function j(e={}){let s,t,i,r,a=null,n=0,l=!1,o=!1,c=!1,d=!1;function m(){if(!i){if(h()){c=!0;return}l||t.emit("autoplay:play"),function(){let{ownerWindow:e}=t.internalEngine();e.clearTimeout(n),n=e.setTimeout(_,r[t.selectedScrollSnap()]),a=new Date().getTime(),t.emit("autoplay:timerset")}(),l=!0}}function x(){i||(l&&t.emit("autoplay:stop"),function(){let{ownerWindow:e}=t.internalEngine();e.clearTimeout(n),n=0,a=null,t.emit("autoplay:timerstopped")}(),l=!1)}function g(){if(h())return c=l,x();c&&m()}function h(){let{ownerDocument:e}=t.internalEngine();return"hidden"===e.visibilityState}function u(){o||x()}function p(){o||m()}function f(){o=!0,x()}function v(){o=!1,m()}function _(){let{index:e}=t.internalEngine(),i=e.clone().add(1).get(),r=t.scrollSnapList().length-1,a=s.stopOnLastSnap&&i===r;if(t.canScrollNext()?t.scrollNext(d):t.scrollTo(0,d),t.emit("autoplay:select"),a)return x();m()}return{name:"autoplay",options:e,init:function(a,n){var l,o,c,h;let _,y;t=a;let{mergeOptions:N,optionsAtMedia:w}=n,k=N(b,j.globalOptions);if(s=w(N(k,e)),t.scrollSnapList().length<=1)return;d=s.jump,i=!1,l=t,o=s.delay,_=l.scrollSnapList(),r="number"==typeof o?_.map(()=>o):o(_,l);let{eventStore:$,ownerDocument:T}=t.internalEngine(),S=!!t.internalEngine().options.watchDrag,L=(c=t,h=s.rootNode,y=c.rootNode(),h&&h(y)||y);$.add(T,"visibilitychange",g),S&&t.on("pointerDown",u),S&&!s.stopOnInteraction&&t.on("pointerUp",p),s.stopOnMouseEnter&&$.add(L,"mouseenter",f),s.stopOnMouseEnter&&!s.stopOnInteraction&&$.add(L,"mouseleave",v),s.stopOnFocusIn&&t.on("slideFocusStart",x),s.stopOnFocusIn&&!s.stopOnInteraction&&$.add(t.containerNode(),"focusout",m),s.playOnInit&&m()},destroy:function(){t.off("pointerDown",u).off("pointerUp",p).off("slideFocusStart",x),x(),i=!0,l=!1},play:function(e){void 0!==e&&(d=e),m()},stop:function(){l&&x()},reset:function(){l&&m()},isPlaying:function(){return l},timeUntilNext:function(){return a?r[t.selectedScrollSnap()]-(new Date().getTime()-a):null}}}j.globalOptions=void 0;let v=function(){let{theme:e}=(0,u.useTheme)(),t=(0,n.useTranslations)(),[i,r]=(0,c.useState)(),[a,l]=(0,c.useState)(0),d=[{iconPath:"dark"===e?"/images/reserves.svg":"/images/reserves-dark.svg",title:t("home.security.por_title"),content:t("home.security.por_content")},{iconPath:"/images/protection.svg",lottiePath:"/lotties/Verifed.json",title:t("home.security.cold_wallet_title"),content:t("home.security.cold_wallet_content")},{iconPath:"dark"===e?"/images/security.svg":"/images/security-dark.svg",title:t("home.security.institutional_security_title"),content:t("home.security.institutional_security_content")},{iconPath:"dark"===e?"/images/security.svg":"/images/security-dark.svg",title:t("home.security.mfa_title"),content:t("home.security.mfa_content")},{iconPath:"dark"===e?"/images/reserves.svg":"/images/reserves-dark.svg",title:t("home.security.regulatory_title"),content:t("home.security.regulatory_content")}],m=c.default.useRef(j({delay:3e3,stopOnInteraction:!0}));return(0,c.useEffect)(()=>{i&&(l(i.selectedScrollSnap()),i.on("select",()=>{l(i.selectedScrollSnap())}))},[i]),(0,s.jsx)("div",{className:"py-8 sm:py-12",children:(0,s.jsxs)(o.default,{children:[(0,s.jsx)("h2",{className:"text-4xl font-bold mb-10",children:t("home.security.title")}),(0,s.jsxs)(p.Carousel,{setApi:r,plugins:[m.current],opts:{align:"start",loop:!0},onMouseEnter:m.current.stop,onMouseLeave:m.current.reset,className:"w-full",children:[(0,s.jsx)(p.CarouselContent,{className:"-ml-2 md:-ml-4",children:d.map((e,t)=>(0,s.jsx)(p.CarouselItem,{className:"pl-2 md:pl-4 md:basis-1/2 lg:basis-1/3",children:(0,s.jsx)(h,{iconPath:e.iconPath,lottiePath:e.lottiePath,title:e.title,content:e.content})},t))}),(0,s.jsx)("div",{className:"flex justify-center gap-2 mt-6",children:d.map((e,t)=>(0,s.jsx)("button",{onClick:()=>i?.scrollTo(t),className:(0,f.cn)("h-2 w-2 rounded-full transition-all cursor-pointer",a===t?"bg-primary w-8":"bg-muted-foreground/30 hover:bg-muted-foreground/50"),"aria-label":`Go to slide ${t+1}`},t))})]})]})})};var _=e.i(922998);function y(){return(0,s.jsxs)(_.default,{gradient:!1,speed:40,children:[(0,s.jsx)(m.default,{src:"/images/brandsLogo/Hacken_logo.png",alt:"Hacken logo",className:"mx-8",width:77,height:60}),(0,s.jsx)(m.default,{src:"/images/brandsLogo/bitgetlogo.png",alt:"bitgetlogo",className:"mx-8",width:227,height:62}),(0,s.jsx)(m.default,{src:"/images/brandsLogo/spLogo.png",alt:"spLogo",className:"mx-8",width:190,height:60}),(0,s.jsx)(m.default,{src:"/images/brandsLogo/satchellogo.png",alt:"satchellogo",className:"mx-8",width:76,height:60}),(0,s.jsx)(m.default,{src:"/images/brandsLogo/mastercard.png",alt:"Mastercard",className:"mx-8",width:218,height:60}),(0,s.jsx)(m.default,{src:"/images/brandsLogo/coinbaselgo.png",alt:"coinbaselgo",className:"mx-8",width:216,height:62}),(0,s.jsx)(m.default,{src:"/images/brandsLogo/visa.png",alt:"visa",className:"mx-8",width:97,height:60}),(0,s.jsx)(m.default,{src:"/images/brandsLogo/coinmarketcap.png",alt:"coinmarketcap",className:"mx-8",width:227,height:60}),(0,s.jsx)(m.default,{src:"/images/brandsLogo/alibabacloudelogo.png",alt:"alibabacloudelogo",className:"mx-8",width:290,height:62}),(0,s.jsx)(m.default,{src:"/images/brandsLogo/certik.png",alt:"certik",className:"mx-8",width:162,height:60}),(0,s.jsx)(m.default,{src:"/images/brandsLogo/google-cloud.png",alt:"google-cloud",className:"mx-8",width:190,height:60}),(0,s.jsx)(m.default,{src:"/images/brandsLogo/kucoinlogo.png",alt:"kucoinlogo",className:"mx-8",width:290,height:62}),(0,s.jsx)(m.default,{src:"/images/brandsLogo/chainalysis.png",alt:"chainalysis",className:"mx-8",width:171,height:60}),(0,s.jsx)(m.default,{src:"/images/brandsLogo/idfy.png",alt:"idfy",className:"mx-8",width:97,height:73}),(0,s.jsx)(m.default,{src:"/images/brandsLogo/coindex.png",alt:"coindex",className:"mx-8",width:166,height:73}),(0,s.jsx)(m.default,{src:"/images/brandsLogo/tetherlogo.png",alt:"tetherlogo",className:"mx-8",width:190,height:60}),(0,s.jsx)(m.default,{src:"/images/brandsLogo/tradingView.png",alt:"tradingView",className:"mx-8",width:186,height:60})]})}let N=function(){let e=(0,n.useTranslations)();return(0,s.jsx)("div",{className:"py-8 sm:py-12 bg-[url('/images/grid-bgApp-light.svg')] dark:bg-[url('/images/grid-bgApp.svg')] bg-no-repeat bottom-0 left-0 bg-contain",children:(0,s.jsxs)(o.default,{className:"grid md:grid-cols-2 gap-5 grid-cols-1 items-center",children:[(0,s.jsx)("div",{children:(0,s.jsx)(m.default,{src:"/images/phone-trading.svg",alt:"",height:484,width:360,className:"mx-auto"})}),(0,s.jsxs)("div",{children:[(0,s.jsx)("h2",{className:"text-4xl font-bold md:max-w-sm mb-4",children:e("home.trade_anywhere.title")}),(0,s.jsx)("p",{className:"text-sm mb-20",children:e("home.trade_anywhere.desc")}),(0,s.jsxs)("div",{className:"flex items-center gap-6",children:[(0,s.jsx)("div",{children:(0,s.jsx)(m.default,{src:"/images/qr-code.webp",alt:"",width:150,height:150})}),(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:"text-xs text-muted-foreground",children:e("home.trade_anywhere.scan_to_download")}),(0,s.jsx)("h4",{className:"font-bold text-xl",children:e("navigation.ios_android")})]})]})]})]})})};var w=e.i(994376);function k(){let{theme:e}=(0,u.useTheme)(),t=(0,n.useTranslations)(),i=[{id:1,icon:"dark"===e?"/images/create-account.svg":"/images/create-account-dark.svg",title:t("home.how_it_works.create_account"),desc:t("home.how_it_works.create_account_desc")},{id:2,icon:"dark"===e?"/images/verify.svg":"/images/verify-dark.svg",title:t("home.how_it_works.verify_identity"),desc:t("home.how_it_works.verify_identity_desc")},{id:3,icon:"dark"===e?"/images/fund.svg":"/images/fund-dark.svg",title:t("home.how_it_works.fund_account"),desc:t("home.how_it_works.fund_account_desc")},{id:4,icon:"dark"===e?"/images/chart.svg":"/images/chart-dark.svg",title:t("home.how_it_works.start_trading"),desc:t("home.how_it_works.start_trading_desc")}];return(0,s.jsx)("section",{className:"bg-gray2 py-8 sm:py-12",children:(0,s.jsxs)(o.default,{className:"container mx-auto px-4",children:[(0,s.jsx)("h2",{className:"text-2xl md:text-3xl lg:text-4xl font-bold mb-8 md:mb-12 text-center md:text-left",children:t("home.how_it_works.title")}),(0,s.jsxs)("div",{className:"hidden md:flex items-start gap-4 lg:gap-8 relative mb-10 ",children:[i.map((e,r)=>(0,s.jsx)("div",{className:"flex-1 flex flex-col items-start relative z-10",children:(0,s.jsxs)("div",{className:`px-3 py-1 rounded-full text-xs lg:text-sm font-medium mb-4 ${r===i.length-1?"bg-primary text-black":"bg-gray3 text-foreground"} `,children:[t("home.how_it_works.step")," 0",e.id]})},e.id)),(0,s.jsx)("div",{className:"absolute top-4 right-0 w-full h-0.5 flex items-center z-0",children:(0,s.jsx)("div",{className:"border-dashed border-t border-gray3 w-[80%]"})})]}),(0,s.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4 md:gap-6 mb-8 md:mb-12 relative z-10",children:i.map((e,r)=>(0,s.jsxs)("div",{className:"bg-background border border-input rounded-xl p-4 md:p-6 lg:p-8 flex flex-col items-start min-h-[200px] md:min-h-[220px] lg:min-h-[240px]",children:[(0,s.jsx)("div",{className:"md:hidden mb-3",children:(0,s.jsxs)("div",{className:`px-3 py-1 rounded-full text-xs font-medium ${r===i.length-1?"bg-foreground text-primary":"bg-gray3 text-foreground"} `,children:[t("home.how_it_works.step")," 0",e.id]})}),(0,s.jsx)(m.default,{src:e.icon,alt:e.title,width:48,height:48,className:"w-8 h-8 md:w-10 md:h-10 lg:w-12 lg:h-12 mb-4 md:mb-6"}),(0,s.jsx)("h3",{className:"text-lg md:text-xl font-bold text-foreground mb-2 leading-tight",children:e.title}),(0,s.jsx)("p",{className:"text-foreground/60 text-sm md:text-base leading-relaxed",children:e.desc})]},e.id))}),(0,s.jsx)("div",{className:"flex justify-center md:justify-end",children:(0,s.jsx)(r.Button,{size:"lg",asChild:!0,children:(0,s.jsxs)(a.default,{href:"/auth/signup",children:[t("home.banner.get_started"),(0,s.jsx)(w.MoveRight,{size:20,className:"md:w-[22px] md:h-[22px]"})]})})})]})})}var $=e.i(959879),T=e.i(84150);function S(){let{isInternational:e}=(0,$.useGlobal)(),t=(0,n.useTranslations)();return(0,s.jsx)("section",{className:"py-8 sm:py-12",children:(0,s.jsxs)(o.default,{children:[(0,s.jsx)("h2",{className:"text-foreground text-2xl md:text-4xl font-bold mb-8 md:mb-12",children:t("home.discover.title")}),(0,s.jsxs)("div",{className:"grid grid-cols-full lg:grid-cols-3 gap-4 lg:h-[520px]",children:[(0,s.jsxs)("div",{className:"bg-gray2 border border-input rounded-lg pt-6 px-6 flex flex-col justify-between relative overflow-hidden",children:[(0,s.jsx)("div",{className:"absolute inset-0 bg-no-repeat bg-contain bg-bottom-right bg-[url('/images/wave.svg')]"}),(0,s.jsxs)("div",{className:"relative z-10",children:[(0,s.jsx)("h3",{className:"text-foreground text-xl font-semibold mb-4",children:t("home.discover.trading_account")}),(0,s.jsx)("p",{className:"text-gray text-sm mb-8",children:t("home.discover.trading_account_desc")})]}),(0,s.jsxs)("div",{className:"flex items-end justify-between relative z-10",children:[(0,s.jsx)("div",{className:" pb-6 flex items-center justifiy-center "}),(0,s.jsx)(m.default,{src:"/images/trading.png",alt:"Trading Account",width:192,height:192,className:"w-48 h-auto"})]})]}),(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,s.jsxs)("div",{className:"bg-gray2 border border-input rounded-lg p-6 flex justify-between items-center h-[252px]",children:[(0,s.jsxs)("div",{className:"flex flex-col justify-between h-full",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("h3",{className:"text-foreground text-xl font-semibold mb-4",children:t("home.discover.copy_trading")}),(0,s.jsx)("p",{className:"text-gray text-sm",children:t("home.discover.copy_trading_desc")})]}),(0,s.jsx)("div",{className:" flex items-center justifiy-center "})]}),(0,s.jsx)(m.default,{src:"/images/copy-trading.svg",alt:"Copy Trading",width:96,height:96,className:"w-24 h-24"})]}),(0,s.jsxs)("div",{className:"bg-gray2 border border-input rounded-lg p-6 flex justify-between items-center h-[252px]",children:[(0,s.jsxs)("div",{className:"flex flex-col justify-between h-full",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("h3",{className:"text-foreground text-xl font-semibold mb-4",children:t("navigation.earn")}),(0,s.jsx)("p",{className:"text-gray1 text-sm",children:t("home.discover.earn_desc")})]}),(0,s.jsx)("div",{className:" flex items-center justifiy-center ",children:(0,s.jsx)(r.Button,{variant:"white",size:"icon",className:"rounded-full size-12",asChild:!0,children:(0,s.jsx)(a.default,{href:"/staking",children:(0,s.jsx)(w.MoveRight,{className:"size-5"})})})})]}),(0,s.jsx)(m.default,{src:"/images/pig.svg",alt:"Earn",width:96,height:96,className:"w-24 h-24"})]})]}),(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,s.jsxs)("div",{className:"bg-gray2 border border-input rounded-lg p-6 flex justify-between items-center h-[252px]",children:[(0,s.jsxs)("div",{className:"flex flex-col justify-between h-full",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("h3",{className:"text-foreground text-xl font-semibold mb-4",children:t(e?"home.discover.copay_card":"home.discover.sip_swp")}),(0,s.jsx)("p",{className:"text-gray1 text-sm",children:t(e?"home.discover.copay_card_desc":"home.discover.sip_swp_desc")}),!e&&(0,s.jsx)("p",{className:"text-xs text-gray1 pt-3",children:t("home.discover.subject_to_market_risks")})]}),(0,s.jsx)("div",{className:" flex items-center justifiy-center ",children:!e&&(0,s.jsx)(r.Button,{variant:"white",size:"icon",className:"rounded-full size-12",asChild:!0,children:(0,s.jsx)(a.default,{href:"/sip",children:(0,s.jsx)(w.MoveRight,{className:"size-5"})})})})]}),e?(0,s.jsx)(m.default,{src:"/images/cards.svg",alt:"CoPay Card",width:96,height:96,className:"w-24 h-24"}):(0,s.jsx)("div",{className:"w-24 h-24",children:(0,s.jsx)(x.default,{options:{loop:!0,autoplay:!0,animationData:T.default,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}},height:96,width:96})})]}),(0,s.jsxs)("div",{className:"bg-gray2 border border-input rounded-lg p-6 flex justify-between items-center h-[252px]",children:[(0,s.jsxs)("div",{className:"flex flex-col justify-between h-full",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("h3",{className:"text-foreground text-xl font-semibold mb-4",children:t("footer.launchpad")}),(0,s.jsx)("p",{className:"text-gray1 text-sm",children:t("home.discover.launchpad_desc")})]}),(0,s.jsx)("div",{className:" flex items-center justifiy-center "})]}),(0,s.jsx)(m.default,{src:"/images/launchpad.svg",alt:"Launchpad",width:96,height:96,className:"w-24 h-24"})]})]})]})]})})}var L=e.i(623464),D=e.i(742404),C=e.i(750382),z=e.i(824068),A=e.i(671428),B=e.i(618566),q=e.i(858874);function F(){let e=(0,B.useRouter)(),t=(0,n.useTranslations)(),[i,l]=(0,c.useState)("gainers"),[d,m]=(0,c.useState)("volume"),[x,g]=(0,c.useState)({}),{updatePrice:h}=(0,z.usePriceDirectionTracker)(),{lastMessage:u}=(0,L.useSocketContext)(),{data:p}=(0,C.getLeaderboard)({tab:"gainers",limit:10,quote:"USDT"}),{data:f}=(0,C.getLeaderboard)({tab:"new",limit:10,quote:"USDT"}),{data:b}=(0,C.getLeaderboard)({tab:"trending",limit:10,quote:"USDT"}),{data:j}=(0,C.getLeaderboard)({tab:"losers",limit:10,quote:"USDT"}),{data:v}=(0,C.getLeaderboard)({tab:"volume",limit:10,quote:"USDT"}),_=(0,c.useMemo)(()=>{let e=new Set,s=s=>{let t;if(s){if(Array.isArray(s))t=s;else{if(!(s.items&&Array.isArray(s.items)))return;t=s.items}t.forEach(s=>{s.base_currency&&s.quote_currency&&e.add({symbol:s.base_currency,base:s.quote_currency})})}};return s(v),s(b),s(f),s(p),s(j),Array.from(e)},[v,b,f,p,j]),{elementRef:y}=(0,D.useVisibilitySubscription)({symbols:_,enabled:!0});(0,c.useEffect)(()=>{if(u){let e="",s="",t="",i="";if(Array.isArray(u)&&u.length>0){let r=u[0];e=r.symbol||"",s=r.price||"",t=r.changePercent||"",i=r.quoteVolume||""}else"object"==typeof u&&u&&"symbol"in u&&(e=u.symbol||"",s=u.price||"",t=u.changePercent||"",i=u.quoteVolume||"");if(e&&s){let r=parseFloat(s),a=h(e,r);g(r=>({...r,[e]:{symbol:e,price:s,changePercent:t,quoteVolume:i,timestamp:"object"==typeof u&&u&&"timestamp"in u?u.timestamp:Date.now().toString(),previousPrice:a.previousPrice,priceDirection:a.priceDirection}}))}}},[u,h]);let N=e=>!!e&&(Array.isArray(e)?e.length>0:!!e.items&&e.items.length>0),k=e=>Array.isArray(e)?e:e.items||[],$=e=>{let s=x[`${e.base_currency}${e.quote_currency}`];if(s){let t=s.quoteVolume?parseFloat(s.quoteVolume):null,i=t&&!isNaN(t)&&t>0?t/1e6:(e.quote_volume||e.base_volume)/1e6;return{...e,last_price:parseFloat(s.price)||e.last_price,price_change_percent_24h:100*parseFloat(s.changePercent)||e.price_change_percent_24h,base_volume:i,isLive:!0,priceDirection:s.priceDirection||"neutral"}}return{...e,base_volume:(e.quote_volume||e.base_volume)/1e6,isLive:!1,priceDirection:"neutral"}},T=({right:e=!1,...t})=>(0,s.jsxs)("div",{...t,className:`min-w-[500px] grid ${!e?"grid-cols-6":"grid-cols-4"} gap-2 sm:gap-4 p-2 sm:p-4 text-[12px] sm:text-sm items-center border-b border-foreground/10 hover:bg-primary/10 transition-colors`,children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 col-span-2",children:[(0,s.jsx)(A.Skeleton,{className:"h-12 w-12 rounded-full flex-none"}),(0,s.jsx)("span",{children:(0,s.jsx)(A.Skeleton,{className:"h-4 w-[80px]"})})]}),(0,s.jsx)("div",{className:"text-white",children:(0,s.jsx)(A.Skeleton,{className:"h-4 w-[50px]"})}),!e&&(0,s.jsx)("div",{children:(0,s.jsx)(A.Skeleton,{className:"h-4 w-[50px]"})}),(0,s.jsx)("div",{className:"text-gray-400",children:(0,s.jsx)(A.Skeleton,{className:"h-4 w-[50px]"})}),!e&&(0,s.jsx)("div",{children:(0,s.jsx)(A.Skeleton,{className:"h-4 w-[50px]"})})]});return(0,s.jsx)("section",{ref:y,className:"py-8 sm:py-12",children:(0,s.jsxs)(o.default,{children:[(0,s.jsxs)("div",{className:"flex flex-col sm:flex-row justify-between items-start sm:items-center mb-6 sm:mb-8 gap-4",children:[(0,s.jsx)("div",{children:(0,s.jsx)("h2",{className:"text-2xl sm:text-3xl md:text-4xl font-bold text-foreground",children:t("home.opportunity.section_title")})}),(0,s.jsx)(r.Button,{variant:"secondary",asChild:!0,children:(0,s.jsx)(a.default,{href:"/market",children:t("home.opportunity.all_crypto_prices")})})]}),(0,s.jsxs)("div",{className:"grid grid-cols-1 xl:grid-cols-10 gap-4 sm:gap-8",children:[(0,s.jsxs)("div",{className:"col-span-1 xl:col-span-6 2xl:col-span-7 bg-gray2 rounded-t-lg p-2 sm:p-4",children:[(0,s.jsxs)("div",{className:"flex mb-2 sm:mb-4",children:[(0,s.jsx)("button",{onClick:()=>m("volume"),className:`pb-2 px-2 sm:px-4 text-sm sm:text-base transition-colors cursor-pointer ${"volume"===d?"text-foreground border-b-2 border-cyan-400":"text-gray-400 hover:text-foreground"}`,children:t("home.opportunity.top_volume")}),(0,s.jsx)("button",{onClick:()=>m("trending"),className:`pb-2 px-2 sm:px-4 text-sm sm:text-base transition-colors cursor-pointer ${"trending"===d?"text-foreground border-b-2 border-cyan-400":"text-gray-400 hover:text-foreground"}`,children:t("home.opportunity.now_trending")}),(0,s.jsx)("button",{onClick:()=>m("new"),className:`pb-2 px-2 sm:px-4 text-sm sm:text-base transition-colors cursor-pointer ${"new"===d?"text-foreground border-b-2 border-cyan-400":"text-gray-400 hover:text-foreground"}`,children:t("home.opportunity.new_listings")})]}),(0,s.jsxs)("div",{className:" rounded-lg overflow-x-auto",children:[(0,s.jsxs)("div",{className:"min-w-[500px] grid grid-cols-6 gap-2 sm:gap-4 p-2 sm:p-4 text-gray-400 text-xs sm:text-sm border-b border-foreground/10",children:[(0,s.jsx)("div",{className:"col-span-2",children:t("common.coin")}),(0,s.jsx)("div",{children:t("common.price")}),(0,s.jsx)("div",{children:t("common.24h_volume")}),(0,s.jsx)("div",{children:t("common.24h_change")}),(0,s.jsx)("div",{})]}),"volume"===d&&(0,s.jsx)(s.Fragment,{children:N(v)?k(v).map((i,n)=>{let l=$(i),o=`${l.base_currency}-${l.quote_currency}`;return(0,s.jsxs)(a.default,{href:`/market/spot/${o}`,className:`min-w-[500px] grid grid-cols-6 gap-2 sm:gap-4 p-2 sm:p-4 text-xs sm:text-sm items-center border-b border-foreground/10 hover:bg-primary/10 transition-colors cursor-pointer ${"up"===l.priceDirection?"bg-green/10":"down"===l.priceDirection?"bg-red/10":"bg-transparent"}`,children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 col-span-2",children:[(0,s.jsx)(q.CryptoImage,{currency:l.base_currency||"BTC",fill:!0,className:"w-7 h-7 sm:w-8 sm:h-8 rounded-full"}),(0,s.jsxs)("span",{className:"text-foreground",children:[l.base_currency||"N/A",(0,s.jsxs)("span",{className:"text-gray1",children:["/",l.quote_currency||"USDT"]})]})]}),(0,s.jsxs)("div",{className:`${"up"===l.priceDirection?"text-green":"down"===l.priceDirection?"text-red":"text-foreground"} ${l.isLive?"animate-pulse0":""}`,children:["$",l.last_price||"0.00"]}),(0,s.jsxs)("div",{className:`text-foreground ${l.isLive?"animate-pulse0":""}`,children:[l.base_volume?.toFixed(2)||"0.00","M"]}),(0,s.jsx)("div",{className:`${(l.price_change_percent_24h||0)>=0?"text-green":"text-red"} ${l.isLive?"animate-pulse0":""}`,children:l.price_change_percent_24h?`${Number(l.price_change_percent_24h).toFixed(2)}%`:"0.00%"}),(0,s.jsx)("div",{children:(0,s.jsx)(r.Button,{variant:"secondary",size:"sm",onClick:s=>{s.stopPropagation(),e.push(`/market/spot/${o}`)},children:t("navigation.trade")})})]},n)}):Array(10).fill(null).map((e,t)=>(0,s.jsx)(T,{},t))}),"trending"===d&&(0,s.jsx)(s.Fragment,{children:N(b)?k(b).map((i,n)=>{let l=$(i),o=`${l.base_currency}-${l.quote_currency}`;return(0,s.jsxs)(a.default,{href:`/market/spot/${o}`,className:`min-w-[500px] grid grid-cols-6 gap-2 sm:gap-4 p-2 sm:p-4 text-xs sm:text-sm items-center border-b border-foreground/10 hover:bg-primary/10 transition-colors cursor-pointer ${"up"===l.priceDirection?"bg-green/10":"down"===l.priceDirection?"bg-red/10":"bg-transparent"}`,children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 col-span-2",children:[(0,s.jsx)(q.CryptoImage,{currency:l.base_currency||"BTC",fill:!0,className:"w-7 h-7 sm:w-8 sm:h-8 rounded-full"}),(0,s.jsxs)("span",{className:"text-foreground",children:[l.base_currency||"N/A",(0,s.jsxs)("span",{className:"text-[#868692]",children:["/",l.quote_currency||"USDT"]})]})]}),(0,s.jsxs)("div",{className:`${"up"===l.priceDirection?"text-green":"down"===l.priceDirection?"text-red":"text-foreground"} ${l.isLive?"animate-pulse0":""}`,children:["$",l.last_price||"0.00"]}),(0,s.jsxs)("div",{className:`text-foreground ${l.isLive?"animate-pulse0":""}`,children:[l.base_volume?.toFixed(2)||"0.00","M"]}),(0,s.jsx)("div",{className:`${(l.price_change_percent_24h||0)>=0?"text-green":"text-red"} ${l.isLive?"animate-pulse0":""}`,children:l.price_change_percent_24h?`${Number(l.price_change_percent_24h).toFixed(2)}%`:"0.00%"}),(0,s.jsx)("div",{children:(0,s.jsx)(r.Button,{variant:"secondary",size:"sm",onClick:s=>{s.stopPropagation(),e.push(`/market/spot/${o}`)},children:t("navigation.trade")})})]},n)}):Array(10).fill(null).map((e,t)=>(0,s.jsx)(T,{},t))}),"new"===d&&(0,s.jsx)(s.Fragment,{children:N(f)?k(f).map((i,n)=>{let l=$(i),o=`${l.base_currency}-${l.quote_currency}`;return(0,s.jsxs)(a.default,{href:`/market/spot/${o}`,className:`min-w-[500px] grid grid-cols-6 gap-2 sm:gap-4 p-2 sm:p-4 text-xs sm:text-sm items-center border-b border-foreground/10 hover:bg-primary/10 transition-colors cursor-pointer ${"up"===l.priceDirection?"bg-green/10":"down"===l.priceDirection?"bg-red/10":"bg-transparent"}`,children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 col-span-2",children:[(0,s.jsx)(q.CryptoImage,{currency:l.base_currency||"BTC",fill:!0,className:"w-7 h-7 sm:w-8 sm:h-8 rounded-full"}),(0,s.jsxs)("span",{className:"text-foreground",children:[l.base_currency||"N/A",(0,s.jsxs)("span",{className:"text-[#868692]",children:["/",l.quote_currency||"USDT"]}),l.isLive&&(0,s.jsx)("span",{className:"ml-1 text-green text-xs",children:"●"})]})]}),(0,s.jsxs)("div",{className:`${"up"===l.priceDirection?"text-green":"down"===l.priceDirection?"text-red":"text-foreground"} ${l.isLive?"animate-pulse0":""}`,children:["$",l.last_price||"0.00"]}),(0,s.jsxs)("div",{className:`text-foreground ${l.isLive?"animate-pulse0":""}`,children:[l.base_volume?.toFixed(2)||"0.00","M"]}),(0,s.jsx)("div",{className:`${(l.price_change_percent_24h||0)>=0?"text-green":"text-red"} ${l.isLive?"animate-pulse0":""}`,children:l.price_change_percent_24h?`${Number(l.price_change_percent_24h).toFixed(2)}%`:"0.00%"}),(0,s.jsx)("div",{children:(0,s.jsx)(r.Button,{variant:"secondary",size:"sm",onClick:s=>{s.stopPropagation(),e.push(`/market/spot/${o}`)},children:t("navigation.trade")})})]},n)}):Array(10).fill(null).map((e,t)=>(0,s.jsx)(T,{},t))})]})]}),(0,s.jsxs)("div",{className:"col-span-1 xl:col-span-4 2xl:col-span-3 text-[12px] sm:text-[14px] bg-gray2 p-2 sm:p-4 rounded-t-lg mt-4 lg:mt-0",children:[(0,s.jsxs)("div",{className:"flex mb-2 sm:mb-4 justify-around",children:[(0,s.jsx)("button",{onClick:()=>l("gainers"),className:`pb-2 px-2 sm:px-4 text-sm sm:text-base transition-colors cursor-pointer ${"gainers"===i?"text-foreground border-b-2 border-cyan-400":"text-gray-400 hover:text-foreground"}`,children:t("home.opportunity.top_gainers")}),(0,s.jsx)("button",{onClick:()=>l("losers"),className:`pb-2 px-2 sm:px-4 ml-2 sm:ml-4 text-sm sm:text-base transition-colors cursor-pointer ${"losers"===i?"text-foreground border-b-2 border-cyan-400":"text-gray-400 hover:text-foreground"}`,children:t("home.opportunity.top_losers")})]}),(0,s.jsxs)("div",{className:" rounded-lg overflow-x-auto",children:[(0,s.jsxs)("div",{className:"min-w-[300px] grid grid-cols-4 gap-2 sm:gap-4 p-2 sm:p-4 text-gray-400 text-xs sm:text-sm border-b border-foreground/10",children:[(0,s.jsx)("div",{className:"col-span-2",children:t("common.coin")}),(0,s.jsx)("div",{children:t("common.price")}),(0,s.jsx)("div",{children:t("common.24h_change")})]}),"gainers"===i&&(0,s.jsx)(s.Fragment,{children:N(p)?k(p).map((e,t)=>{let i=$(e),r=`${i.base_currency}-${i.quote_currency}`;return(0,s.jsxs)(a.default,{href:`/market/spot/${r}`,className:`min-w-[300px] grid grid-cols-4 gap-2 sm:gap-4 p-2 sm:p-4 text-xs sm:text-sm items-center border-b border-foreground/10 hover:bg-primary/10 transition-colors cursor-pointer ${"up"===i.priceDirection?"bg-green/10":"down"===i.priceDirection?"bg-red/10":"bg-transparent"}`,children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 col-span-2",children:[(0,s.jsx)(q.CryptoImage,{currency:i.base_currency||"BTC",fill:!0,className:"w-7 h-7 sm:w-8 sm:h-8 rounded-full"}),(0,s.jsxs)("span",{className:"text-foreground",children:[i.base_currency||"N/A",(0,s.jsxs)("span",{className:"text-[#868692]",children:["/",i.quote_currency||"USDT"]})]})]}),(0,s.jsxs)("div",{className:`${"up"===i.priceDirection?"text-green":"down"===i.priceDirection?"text-red":"text-foreground"} ${i.isLive?"animate-pulse0":""}`,children:["$",i.last_price||"0.00"]}),(0,s.jsx)("div",{className:`${(i.price_change_percent_24h||0)>=0?"text-green":"text-red"} ${i.isLive?"animate-pulse0":""}`,children:i.price_change_percent_24h?`${Number(i.price_change_percent_24h).toFixed(2)}%`:"0.00%"})]},t)}):Array(10).fill(null).map((e,t)=>(0,s.jsx)(T,{right:!0},t))}),"losers"===i&&(0,s.jsx)(s.Fragment,{children:N(j)?k(j).map((e,t)=>{let i=$(e),r=`${i.base_currency}-${i.quote_currency}`;return(0,s.jsxs)(a.default,{href:`/market/spot/${r}`,className:`min-w-[300px] grid grid-cols-4 gap-2 sm:gap-4 p-2 sm:p-4 text-[12px] sm:text-[14px] items-center border-b border-foreground/10 hover:bg-primary/10 transition-colors ease-in-out cursor-pointer ${"up"===i.priceDirection?"bg-green/10":"down"===i.priceDirection?"bg-red/10":"bg-transparent"}`,children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 col-span-2",children:[(0,s.jsx)(q.CryptoImage,{currency:i.base_currency||"BTC",fill:!0,className:"w-7 h-7 sm:w-8 sm:h-8 rounded-full"}),(0,s.jsxs)("span",{className:"text-foreground",children:[i.base_currency||"N/A",(0,s.jsxs)("span",{className:"text-[#868692]",children:["/",i.quote_currency||"USDT"]})]})]}),(0,s.jsxs)("div",{className:`${"up"===i.priceDirection?"text-green":"down"===i.priceDirection?"text-red":"text-foreground"} ${i.isLive?"animate-pulse0":""}`,children:["$",i.last_price||"0.00"]}),(0,s.jsx)("div",{className:`${(i.price_change_percent_24h||0)>=0?"text-green":"text-red"} ${i.isLive?"animate-pulse0":""}`,children:i.price_change_percent_24h?`${Number(i.price_change_percent_24h).toFixed(2)}%`:"0.00%"})]},t)}):Array(10).fill(null).map((e,t)=>(0,s.jsx)(T,{right:!0},t))})]})]})]}),(0,s.jsx)("div",{className:"flex flex-col sm:flex-row items-center justify-start mt-8 sm:mt-12 gap-3 sm:gap-4",children:(0,s.jsx)(r.Button,{asChild:!0,size:"lg",className:"h-auto p-3",children:(0,s.jsxs)(a.default,{href:"/market/spot/BTC-USDT",children:[t("home.banner.get_started"),(0,s.jsx)(w.MoveRight,{size:18,className:"sm:size-5"})]})})})]})})}var P=e.i(994179),M=e.i(245423),O=e.i(21623);let U=function({normalText:e,primaryText:t,secondaryText:i,img:r,imgW:a,imgH:n}){return(0,s.jsxs)("div",{className:"bg-gray2 border border-input rounded-lg p-6 grid-cols-3 grid items-center",children:[(0,s.jsxs)("div",{className:"col-span-2",children:[(0,s.jsx)("div",{className:"text-base",children:e}),(0,s.jsxs)("div",{className:"font-bold text-2xl",children:[(0,s.jsx)("span",{className:"text-primary",children:t})," ",(0,s.jsx)("br",{}),i]})]}),(0,s.jsx)("div",{className:"flex items-center justify-center",children:(0,s.jsx)(m.default,{src:r,alt:"",width:a,height:n})})]})};var E=e.i(984828),I=e.i(42792);let R=function(){let{theme:e}=(0,u.useTheme)(),t=(0,n.useTranslations)(),[i,l]=(0,c.useState)("/images/grid-bg.svg"),d={loop:!0,autoplay:!0,animationData:O.default,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}};return(0,c.useEffect)(()=>{l("dark"===e?"/images/grid-bg.svg":"/images/grid-bg-light.svg")},[e]),(0,s.jsxs)(o.default,{children:[e&&(0,s.jsx)(m.default,{src:i,alt:"bg",height:772,width:992,className:"absolute top-0 right-0 -z-10"}),(0,s.jsxs)("div",{className:"min-h-fit mb-10",children:[(0,s.jsxs)("div",{className:"grid lg:grid-cols-2 grid-cols-1 items-center pt-24 pb-6 gap-20",children:[(0,s.jsxs)("div",{children:[(0,s.jsxs)("h1",{className:"text-7xl font-bold mb-8",children:[t("home.banner.hero_title_india")," ",(0,s.jsx)(m.default,{src:"/images/indaFlag.png",alt:t("home.banner.india_flag_alt"),width:36,height:48,className:"inline"})]}),(0,s.jsxs)("div",{className:"flex gap-2 items-center text-lg font-bold mb-5",children:[(0,s.jsx)(m.default,{src:"dark"===e?"/images/gift.svg":"/images/gift-light.svg",alt:"",width:24,height:24,className:"inline"})," ",(0,s.jsx)("div",{children:t("home.banner.sign_up_bonus")})]}),(0,s.jsx)("div",{className:"flex gap-2 items-stretch mb-8 max-w-[486px]",children:(0,s.jsx)(r.Button,{className:"px-6 py-5 h-auto",asChild:!0,children:(0,s.jsx)(a.default,{href:"/auth/signup",children:t("home.banner.sign_up_now")})})}),(0,s.jsxs)("div",{className:"flex gap-10",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:"text-gray1 text-sm mb-3",children:t("home.banner.or_continue_with")}),(0,s.jsx)(r.Button,{variant:"outline",size:"icon",className:"size-12 mr-3",onClick:()=>I.default.login({idpHint:"google",redirectUri:window.location.origin+"/auth/login"}),children:(0,s.jsx)(m.default,{src:"/images/google.svg",alt:"",width:32,height:32,className:"inline"})})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:"text-gray1 text-sm mb-3",children:t("navigation.download_app")}),(0,s.jsx)(r.Button,{variant:"outline",size:"icon",className:"size-12 mr-3",asChild:!0,children:(0,s.jsx)(a.default,{target:"_blank",href:"https://play.google.com/store/apps/details?id=io.cofinex.cofinex_mobile_app&pcampaignid=web_share",children:(0,s.jsx)(E.FaQrcode,{className:"size-7 text-foreground"})})})]})]})]}),(0,s.jsx)("div",{className:"lg:flex justify-center items-center hidden",children:(0,s.jsx)(x.default,{options:d,height:486,width:486})})]}),(0,s.jsx)("div",{className:"flex justify-between items-center text-xs mb-4",children:(0,s.jsxs)("div",{children:[(0,s.jsxs)(P.Badge,{variant:"secondary",className:"inline-flex items-center",children:[(0,s.jsx)(M.Bell,{})," ",t("footer.announcement")]})," ",t("home.banner.something_new_is_cooking")]})}),(0,s.jsxs)("div",{className:"grid lg:grid-cols-3 grid-cols-1 gap-6",children:[(0,s.jsx)(U,{normalText:t("home.banner.instant_inr_zero_fees"),primaryText:t("home.banner.zero_fees"),secondaryText:t("home.banner.zero_fees_on_inr_deposits"),img:"/images/zero.svg",imgW:100,imgH:86}),(0,s.jsx)(U,{normalText:t("home.banner.global_coins_local_rewards"),primaryText:t("home.banner.earn_cnx_rewards"),secondaryText:t("home.banner.and_redeem_in_inr"),img:"/images/earnEnx.svg",imgW:100,imgH:86}),(0,s.jsx)(U,{normalText:t("home.banner.start_with_inr_100_free"),primaryText:t("home.banner.welcome_bonus"),secondaryText:t("home.banner.get_inr_100_worth_of_btc"),img:"/images/welcomeBonus.svg",imgW:95,imgH:120})]})]})]})},V=function(){let{theme:e}=(0,u.useTheme)(),[t,i]=(0,c.useState)("/images/grid-bg.svg"),l=(0,n.useTranslations)(),d=[{value:"$670",unit:"M",label:l("home.stats.trading_volume")},{value:"700",unit:"+",label:l("home.stats.cryptocurrencies")},{value:"124",unit:"k",label:l("home.stats.registered_users")},{value:"16",unit:"k",label:l("home.stats.elite_traders")}];return(0,c.useEffect)(()=>{i("dark"===e?"/images/grid-bg.svg":"/images/grid-bg-light.svg")},[e]),(0,s.jsxs)(o.default,{children:[e&&(0,s.jsx)(m.default,{src:t,alt:"bg",height:772,width:992,className:"absolute top-0 right-0 -z-10"}),(0,s.jsxs)("div",{className:"min-h-fit mb-10 flex flex-col justify-around",children:[(0,s.jsxs)("div",{className:"grid lg:grid-cols-2 grid-cols-1 items-center mt-20 py-6 gap-28",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("h1",{className:"text-6xl font-bold mb-8",children:l("home.banner.hero_title_international")}),(0,s.jsxs)("div",{className:"flex gap-2 items-center text-lg font-bold mb-5",children:[(0,s.jsx)(m.default,{src:"dark"===e?"/images/gift.svg":"/images/gift-light.svg",alt:"",width:24,height:24,className:"inline"})," ",(0,s.jsx)("div",{children:l("home.banner.sign_up_bonus")})]}),(0,s.jsxs)("div",{className:"flex gap-4 items-stretch mb-8 max-w-[486px]",children:[(0,s.jsx)(r.Button,{className:"px-6 h-auto",asChild:!0,children:(0,s.jsx)(a.default,{href:"/auth/signup",children:l("home.banner.sign_up_now")})}),(0,s.jsx)(r.Button,{variant:"outline",size:"icon",className:"size-12",onClick:()=>I.default.login({idpHint:"google",redirectUri:window.location.origin+"/auth/login"}),children:(0,s.jsx)(m.default,{src:"/images/google.svg",alt:"",width:32,height:32,className:"inline"})}),(0,s.jsx)(r.Button,{variant:"outline",size:"icon",className:"size-12",asChild:!0,children:(0,s.jsx)(a.default,{target:"_blank",href:"https://play.google.com/store/apps/details?id=io.cofinex.cofinex_mobile_app&pcampaignid=web_share",children:(0,s.jsx)(E.FaQrcode,{className:"size-7 text-foreground"})})})]}),(0,s.jsx)("div",{className:"flex gap-6 flex-wrap",children:d.map((e,t)=>(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:"text-[40px] font-bold",children:[e.value," ",(0,s.jsx)("span",{className:"text-lg",children:e.unit})]}),(0,s.jsx)("div",{className:"text-sm text-muted-foreground",children:e.label})]},t))})]}),(0,s.jsx)("div",{className:"lg:flex justify-center items-center hidden",children:(0,s.jsx)(m.default,{src:"/images/hero-international.svg",alt:"hero-international",width:486,height:486})})]}),(0,s.jsx)("div",{className:"flex justify-between items-center text-xs mb-4",children:(0,s.jsxs)("div",{children:[(0,s.jsxs)(P.Badge,{variant:"secondary",className:"inline-flex items-center",children:[(0,s.jsx)(M.Bell,{})," ",l("footer.announcement")]})," ",l("home.banner.something_new_is_cooking")]})})]})]})};e.s(["default",0,function(){let{selectedRegion:e}=(0,$.useGlobal)();return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(t.default,{loginHeader:!1}),"india"===e?(0,s.jsx)(R,{}):(0,s.jsx)(V,{}),(0,s.jsx)(F,{}),(0,s.jsx)(S,{}),(0,s.jsx)(k,{}),(0,s.jsx)(v,{}),(0,s.jsx)(N,{}),(0,s.jsx)("div",{className:"py-5",children:(0,s.jsx)(y,{})}),(0,s.jsx)(l,{}),(0,s.jsx)(i.default,{})]})}],246711)}]);