PageSourceSearch

https://www.cryptohopper.ai/_next/static/chunks/0v4xr4til447n.js

js cryptohopper.ai collected 2026-10-05 12:01:55 UTC 37,842 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,107233,e=>{"use strict";let t=(0,e.i(475254).default)("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);e.s(["Plus",0,t],107233)},986661,453585,e=>{"use strict";var t=e.i(271645),s=e.i(226292),a=e.i(354694),r=e.i(263165);e.s(["useCompositeItem",0,function(e={}){let{highlightItemOnHover:i,highlightedIndex:n,onHighlightedIndexChange:l}=(0,a.useCompositeRootContext)(),{ref:o,index:d}=(0,r.useCompositeListItem)(e),c=n===d,u=t.useRef(null),m=(0,s.useMergedRefs)(o,u);return{compositeProps:t.useMemo(()=>({tabIndex:c?0:-1,onFocus(){l(d)},onMouseMove(){let e=u.current;if(!i||!e)return;let t=e.hasAttribute("disabled")||"true"===e.ariaDisabled;c||t||e.focus()}}),[c,l,d,i]),compositeRef:m,index:d}}],986661);var i=e.i(343084),n=e.i(229315);e.s(["getCssDimensions",0,function(e){let t=(0,n.getComputedStyle)(e),s=parseFloat(t.width)||0,a=parseFloat(t.height)||0,r=(0,n.isHTMLElement)(e),l=r?e.offsetWidth:s,o=r?e.offsetHeight:a;return((0,i.round)(s)!==l||(0,i.round)(a)!==o)&&(s=l,a=o),{width:s,height:a}}],453585)},487486,e=>{"use strict";var t=e.i(119805),s=e.i(327601),a=e.i(225913),r=e.i(975157);let i=(0,a.cva)("group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!",{variants:{variant:{default:"bg-primary text-primary-foreground [a]:hover:bg-primary/80",secondary:"bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80",destructive:"bg-destructive/10 text-destructive focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:focus-visible:ring-destructive/40 [a]:hover:bg-destructive/20",outline:"border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground",ghost:"hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50",link:"text-primary underline-offset-4 hover:underline"}},defaultVariants:{variant:"default"}});e.s(["Badge",0,function({className:e,variant:a="default",render:n,...l}){var o;return o={defaultTagName:"span",props:(0,t.mergeProps)({className:(0,r.cn)(i({variant:a}),e)},l),render:n,state:{slot:"badge",variant:a}},(0,s.useRenderElement)(o.defaultTagName??"div",o,o)}],487486)},778917,e=>{"use strict";let t=(0,e.i(475254).default)("external-link",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);e.s(["ExternalLink",0,t],778917)},531245,e=>{"use strict";let t=(0,e.i(475254).default)("bot",[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]]);e.s(["Bot",0,t],531245)},799676,e=>{"use strict";var t=e.i(843476);e.s([],722697),e.i(722697),e.i(247167);var s=e.i(271645),a=e.i(327601),r=e.i(367805);let i=s.createContext(void 0);function n(){let e=s.useContext(i);if(void 0===e)throw Error((0,r.default)(13));return e}let l={imageLoadingStatus:()=>null},o=s.forwardRef(function(e,r){let{className:n,render:o,...d}=e,[c,u]=s.useState("idle"),m=s.useMemo(()=>({imageLoadingStatus:c,setImageLoadingStatus:u}),[c,u]),h=(0,a.useRenderElement)("span",e,{state:{imageLoadingStatus:c},ref:r,props:d,stateAttributesMapping:l});return(0,t.jsx)(i.Provider,{value:m,children:h})});var d=e.i(676477),c=e.i(500977),u=e.i(889269),m=e.i(284759),h=e.i(288841),p=e.i(417514);let x={...l,...m.transitionStatusMapping},f=s.forwardRef(function(e,t){let{className:r,render:i,onLoadingStatusChange:l,referrerPolicy:o,crossOrigin:m,...f}=e,g=n(),j=function(e,{referrerPolicy:t,crossOrigin:a}){let[r,i]=s.useState("idle");return(0,c.useIsoLayoutEffect)(()=>
1{if(!e)return i("error"),p.NOOP;let s=!0,r=new window.Image,n=e=>()=>{s&&i(e)};return i("loading"),r.onload=n("loaded"),r.onerror=n("error"),t&&(r.referrerPolicy=t),r.crossOrigin=a??null,r.src=e,()=>{s=!1}},[e,a,t]),r}(e.src,{referrerPolicy:o,crossOrigin:m}),v="loaded"===j,{mounted:y,transitionStatus:b,setMounted:k}=(0,h.useTransitionStatus)(v),N=s.useRef(null),w=(0,d.useStableCallback)(e=>{l?.(e),g.setImageLoadingStatus(e)});(0,c.useIsoLayoutEffect)(()=>{"idle"!==j&&w(j)},[j,w]),(0,u.useOpenChangeComplete)({open:v,ref:N,onComplete(){v||k(!1)}});let M=(0,a.useRenderElement)("img",e,{state:{imageLoadingStatus:j,transitionStatus:b},ref:[t,N],props:f,stateAttributesMapping:x,enabled:y});return y?M:null});var g=e.i(566745);let j=s.forwardRef(function(e,t){let{className:r,render:i,delay:o,...d}=e,{imageLoadingStatus:c}=n(),[u,m]=s.useState(void 0===o),h=(0,g.useTimeout)();return s.useEffect(()=>(void 0!==o&&h.start(o,()=>m(!0)),h.clear),[h,o]),(0,a.useRenderElement)("span",e,{state:{imageLoadingStatus:c},ref:t,props:d,stateAttributesMapping:l,enabled:"loaded"!==c&&u})});e.s(["Fallback",0,j,"Image",0,f,"Root",0,o],407887);var v=e.i(407887),v=v,y=e.i(975157);e.s(["Avatar",0,function({className:e,size:s="default",...a}){return(0,t.jsx)(v.Root,{"data-slot":"avatar","data-size":s,className:(0,y.cn)("group/avatar relative flex size-8 shrink-0 rounded-full select-none after:absolute after:inset-0 after:rounded-full after:border after:border-border after:mix-blend-darken data-[size=lg]:size-10 data-[size=sm]:size-6 dark:after:mix-blend-lighten",e),...a})},"AvatarFallback",0,function({className:e,...s}){return(0,t.jsx)(v.Fallback,{"data-slot":"avatar-fallback",className:(0,y.cn)("flex size-full items-center justify-center rounded-full bg-muted text-sm text-muted-foreground group-data-[size=sm]/avatar:text-xs",e),...s})},"AvatarImage",0,function({className:e,...s}){return(0,t.jsx)(v.Image,{"data-slot":"avatar-image",className:(0,y.cn)("aspect-square size-full rounded-full object-cover",e),...s})}],799676)},284614,e=>{"use strict";let t=(0,e.i(475254).default)("user",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);e.s(["User",0,t],284614)},730699,e=>{"use strict";let t=(0,e.i(475254).default)("gift",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M20 11v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-8",key:"1sqzm4"}],["path",{d:"M7.5 7a1 1 0 0 1 0-5A4.8 8 0 0 1 12 7a4.8 8 0 0 1 4.5-5 1 1 0 0 1 0 5",key:"kc0143"}],["rect",{x:"3",y:"7",width:"18",height:"4",rx:"1",key:"1hberx"}]]);e.s(["Gift",0,t],730699)},581418,e=>{"use strict";let t=(0,e.i(475254).default)("shield-check",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);e.s(["ShieldCheck",0,t],581418)},561659,e=>{"use strict";let t=(0,e.i(475254).default)("credit-card",[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]]);e.s(["CreditCard",0,t],561659)},13126,e=>{"use strict";var t=e.i(247167);function s(e,t){let s=null!=e?Number(e):NaN;return Number.isFinite(s)?s:t}let a=[{key:"explorer",subscriptionId:1,monthly:s(t.default.env.NEXT_PUBLIC_CH_PRICE_EXPLORER_MONTH,29),annual:s(t.default.env.NEXT_PUBLIC_CH_PRICE_EXPLORER_YEAR,290),credits:s(t.default.env.NEXT_PUBLIC_CH_CREDITS_EXPLORER,1200),projects:s(t.default.env.NEXT_PUBLIC_CH_PROJECTS_EXPLORER,1),customDomain:!1},{key:"adventurer",subscriptionId:2,monthly:s(t.default.env.NEXT_PUBLIC_CH_PRICE_ADVENTURER_MONTH,69),annual:s(t.default.env.NEXT_PUBLIC_CH_PRICE_ADVENTURER_YEAR,690),credits:s(t.default.env.NEXT_PUBLIC_CH_CREDITS_ADVENTURER,3e3),projects:s(t.default.env.NEXT_PUBLIC_CH_PROJECTS_ADVENTURER,3),customDomain:!0},{key:"hero",subscriptionId:3,monthly:s(t.default.env.NEXT_PUBLIC_CH_PRICE_HERO_MONTH,129),annual:s(t.default.env.NEXT_PUBLIC_CH_PRICE_HERO_YEAR,1290),credits:s(t.default.env.NEXT_PUBLIC_CH_CREDITS_HERO,6e3),projects:s(t.default.env.NEXT_PUBLIC_CH_PROJECTS_HERO,5),customDomain:!0}];e.s(["CH_BALANCE_LINK",0,"https://www.cryptohopper.com/subscriptions-balance","PRICING_TIERS",0,a],13126)},834161,e=>{"use strict";let t=(0,e.i(475254).default)("key",[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]]);e.s(["Key",0,t],834161)},761911,e=>{"use strict";let t=(0,e.i(475254).default)("users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]]);e.s(["Users",0,t],761911)},39312,e=>{"use strict";let t=(0,e.i(475254).default)("zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]);e.s(["Zap",0,t],39312)},248256,e=>{"use strict";let t=(0,e.i(475254).default)("globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);e.s(["Globe",0,t],248256)},664659,e=>{"use strict";var t=e.i(631171);e.s(["ChevronDown",()=>t.default])},868711,e=>{"use strict";e.s(["localeBCP47",0,{en:"en-US",nl:"nl-NL",es:"es-ES",de:"de-DE",fr:"fr-FR",it:"it-IT",pl:"pl-PL",pt:"pt-PT",ja:"ja-JP",tr:"tr-TR",zh:"zh-CN",ko:"ko-KR",id:"id-ID"},"localeNames",0,{en:"English",nl:"Nederlands",es:"Español",de:"Deutsch",fr:"Français",it:"Italiano",pl:"Polski",pt:"Português",ja:"日本語",tr:"Türkçe",zh:"中文",ko:"한국어",id:"Bahasa Indonesia"},"locales",0,["en","nl","es","de","fr","it","pl","pt","ja","tr","zh","ko","id"]])},246349,e=>{"use strict";let t=(0,e.i(475254).default)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);e.s(["default",0,t])},707866,e=>{"use strict";let t=(0,e.i(475254).default)("library",[["path",{d:"m16 6 4 14",key:"ji33uf"}],["path",{d:"M12 6v14",key:"1n7gus"}
1],["path",{d:"M8 8v12",key:"1gg7y9"}],["path",{d:"M4 4v16",key:"6qkkli"}]]);e.s(["Library",0,t],707866)},75505,e=>{"use strict";let t=(0,e.i(475254).default)("folder-open",[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]]);e.s(["FolderOpen",0,t],75505)},161765,e=>{"use strict";let t=(0,e.i(475254).default)("hammer",[["path",{d:"m15 12-9.373 9.373a1 1 0 0 1-3.001-3L12 9",key:"1hayfq"}],["path",{d:"m18 15 4-4",key:"16gjal"}],["path",{d:"m21.5 11.5-1.914-1.914A2 2 0 0 1 19 8.172v-.344a2 2 0 0 0-.586-1.414l-1.657-1.657A6 6 0 0 0 12.516 3H9l1.243 1.243A6 6 0 0 1 12 8.485V10l2 2h1.172a2 2 0 0 1 1.414.586L18.5 14.5",key:"15ts47"}]]);e.s(["Hammer",0,t],161765)},492161,e=>{"use strict";let t=(0,e.i(475254).default)("menu",[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]]);e.s(["Menu",0,t],492161)},557487,e=>{"use strict";let t=(0,e.i(475254).default)("laptop",[["path",{d:"M18 5a2 2 0 0 1 2 2v8.526a2 2 0 0 0 .212.897l1.068 2.127a1 1 0 0 1-.9 1.45H3.62a1 1 0 0 1-.9-1.45l1.068-2.127A2 2 0 0 0 4 15.526V7a2 2 0 0 1 2-2z",key:"1pdavp"}],["path",{d:"M20.054 15.987H3.946",key:"14rxg9"}]]);e.s(["Laptop",0,t],557487)},144877,897250,991799,439366,935384,e=>{"use strict";var t=e.i(843476),s=e.i(526732),a=e.i(618566),r=e.i(755146),i=e.i(799676),n=e.i(284614),l=e.i(75505),o=e.i(581418),d=e.i(475254);let c=(0,d.default)("log-out",[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]]);var u=e.i(561659),m=e.i(730699),h=e.i(761911),p=e.i(834161),x=e.i(557487),f=e.i(177527),g=e.i(613581),j=e.i(895896);let v=(0,d.default)("circle-dollar-sign",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M16 8h-6a2 2 0 1 0 0 4h4a2 2 0 1 1 0 4H8",key:"1h4pet"}],["path",{d:"M12 18V6",key:"zqpxq5"}]]);var y=e.i(161765),b=e.i(810980);let k=(0,d.default)("life-buoy",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m4.93 4.93 4.24 4.24",key:"1ymg45"}],["path",{d:"m14.83 9.17 4.24-4.24",key:"1cb5xl"}],["path",{d:"m14.83 14.83 4.24 4.24",key:"q42g0n"}],["path",{d:"m9.17 14.83-4.24 4.24",key:"bqpfvv"}],["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}]]);var N=e.i(707866),w=e.i(39312),M=e.i(248256);let C=(0,d.default)("sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);e.s(["Sun",0,C],897250);let z=(0,d.default)("moon",[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]]);e.s(["Moon",0,z],991799);var D=e.i(363178),E=e.i(868711),I=e.i(975157);function P({locale:e,className:s}){let a=(0,I.cn)("inline-block shrink-0 rounded-sm overflow-hidden",s);switch(e){case"en":return(0,t.jsxs)("svg",{viewBox:"0 0 60 30",className:a,children:[(0,t.jsx)("clipPath",{id:"s",children:(0,t.jsx)("path",{d:"M0,0 v30 h60 V0z"})}),(0,t.jsx)("clipPath",{id:"t",children:(0,t.jsx)("path",{d:"M30,15 h30 v15z v15 H0z H0 V0z V0 h30z"})}),(0,t.jsxs)("g",{clipPath:"url(#s)",children:[(0,t.jsx)("path",{d:"M0,0 v30 h60 V0z",fill:"#012169"}),(0,t.jsx)("path",{d:"M0,0 L60,30 M60,0 L0,30",stroke:"#fff",strokeWidth:"6"}),(0,t.jsx)("path",{d:"M0,0 L60,30 M60,0 L0,30",clipPath:"url(#t)",stroke:"#C8102E",strokeWidth:"4"}),(0,t.jsx)("path",{d:"M30,0 v30 M0,15 h60",stroke:"#fff",strokeWidth:"10"}),(0,t.jsx)("path",{d:"M30,0 v30 M0,15 h60",stroke:"#C8102E",strokeWidth:"6"})]})]});case"nl":return(0,t.jsxs)("svg",{viewBox:"0 0 9 6",className:a,children:[(0,t.jsx)("rect",{width:"9",height:"2",fill:"#AE1C28"}),(0,t.jsx)("rect",{y:"2",width:"9",height:"2",fill:"#FFF"}),(0,t.jsx)("rect",{y:"4",width:"9",height:"2",fill:"#21468B"})]});case"es":return(0,t.jsxs)("svg",{viewBox:"0 0 3 2",className:a,children:[(0,t.jsx)("rect",{width:"3",height:"2",fill:"#AA151B"}),(0,t.jsx)("rect",{y:"0.5",width:"3",height:"1",fill:"#F1BF00"})]});case"de":return(0,t.jsxs)("svg",{viewBox:"0 0 5 3",className:a,children:[(0,t.jsx)("rect",{width:"5",height:"1",fill:"#000"}),(0,t.jsx)("rect",{y:"1",width:"5",height:"1",fill:"#D00"}),(0,t.jsx)("rect",{y:"2",width:"5",height:"1",fill:"#FFCE00"})]});case"fr":return(0,t.jsxs)("svg",{viewBox:"0 0 3 2",className:a,children:[(0,t.jsx)("rect",{width:"1",height:"2",fill:"#002395"}),(0,t.jsx)("rect",{x:"1",width:"1",height:"2",fill:"#FFF"}),(0,t.jsx)("rect",{x:"2",width:"1",height:"2",fill:"#ED2939"})]});case"it":return(0,t.jsxs)("svg",{viewBox:"0 0 3 2",className:a,children:[(0,t.jsx)("rect",{width:"1",height:"2",fill:"#009246"}),(0,t.jsx)("rect",{x:"1",width:"1",height:"2",fill:"#FFF"}),(0,t.jsx)("rect",{x:"2",width:"1",height:"2",fill:"#CE2B37"})]});case"pl":return(0,t.jsxs)("svg",{viewBox:"0 0 8 5",className:a,children:[(0,t.jsx)("rect",{width:"8",he
1ight:"2.5",fill:"#FFF"}),(0,t.jsx)("rect",{y:"2.5",width:"8",height:"2.5",fill:"#DC143C"})]});case"pt":return(0,t.jsxs)("svg",{viewBox:"0 0 3 2",className:a,children:[(0,t.jsx)("rect",{width:"3",height:"2",fill:"#FF0000"}),(0,t.jsx)("rect",{width:"1.2",height:"2",fill:"#006600"})]});case"ja":return(0,t.jsxs)("svg",{viewBox:"0 0 3 2",className:a,children:[(0,t.jsx)("rect",{width:"3",height:"2",fill:"#FFF"}),(0,t.jsx)("circle",{cx:"1.5",cy:"1",r:"0.6",fill:"#BC002D"})]});case"tr":return(0,t.jsxs)("svg",{viewBox:"0 0 3 2",className:a,children:[(0,t.jsx)("rect",{width:"3",height:"2",fill:"#E30A17"}),(0,t.jsx)("circle",{cx:"1.1",cy:"1",r:"0.5",fill:"#FFF"}),(0,t.jsx)("circle",{cx:"1.25",cy:"1",r:"0.4",fill:"#E30A17"}),(0,t.jsx)("polygon",{points:"1.5,0.65 1.35,1.1 1.65,0.82 1.35,0.82 1.65,1.1",fill:"#FFF"})]});case"zh":return(0,t.jsxs)("svg",{viewBox:"0 0 3 2",className:a,children:[(0,t.jsx)("rect",{width:"3",height:"2",fill:"#DE2910"}),(0,t.jsx)("polygon",{points:"0.45,0.3 0.5,0.15 0.55,0.3 0.4,0.2 0.6,0.2",fill:"#FFDE00"}),(0,t.jsx)("polygon",{points:"0.8,0.15 0.75,0.25 0.85,0.2 0.73,0.2 0.83,0.15",fill:"#FFDE00"}),(0,t.jsx)("polygon",{points:"0.95,0.35 0.9,0.45 1.0,0.4 0.88,0.4 0.98,0.35",fill:"#FFDE00"}),(0,t.jsx)("polygon",{points:"0.95,0.65 0.9,0.55 1.0,0.6 0.88,0.6 0.98,0.65",fill:"#FFDE00"}),(0,t.jsx)("polygon",{points:"0.8,0.8 0.75,0.7 0.85,0.75 0.73,0.75 0.83,0.8",fill:"#FFDE00"})]});case"ko":return(0,t.jsxs)("svg",{viewBox:"0 0 3 2",className:a,children:[(0,t.jsx)("rect",{width:"3",height:"2",fill:"#FFF"}),(0,t.jsx)("circle",{cx:"1.5",cy:"1",r:"0.55",fill:"#C60C30"}),(0,t.jsx)("path",{d:"M1.5,1 a0.275,0.275 0 0,1 0,-0.55 a0.275,0.275 0 0,0 0,0.55z",fill:"#003478"})]});case"id":return(0,t.jsxs)("svg",{viewBox:"0 0 3 2",className:a,children:[(0,t.jsx)("rect",{width:"3",height:"1",fill:"#FF0000"}),(0,t.jsx)("rect",{y:"1",width:"3",height:"1",fill:"#FFF"})]})}}e.s(["FlagIcon",0,P,"default",0,function(){let{locale:e,t:s}=(0,f.useTranslation)(),i=(0,a.usePathname)(),n=(0,a.useRouter)();return(0,t.jsxs)(r.DropdownMenu,{children:[(0,t.jsxs)(r.DropdownMenuTrigger,{className:"inline-flex size-8 items-center justify-center rounded-lg text-muted-foreground hover:text-foreground transition-colors",children:[(0,t.jsx)(M.Globe,{className:"size-4"}),(0,t.jsx)("span",{className:"sr-only",children:s.nav.language})]}),(0,t.jsx)(r.DropdownMenuContent,{align:"end",className:"min-w-[140px]",children:E.locales.map(s=>(0,t.jsxs)(r.DropdownMenuItem,{onClick:()=>{let e;(e=i.split("/")).length>=2&&E.locales.includes(e[1])?e[1]=s:e.splice(1,0,s),n.push(e.join("/")||"/")},className:(0,I.cn)("cursor-pointer",s===e&&"font-semibold text-primary"),children:[(0,t.jsx)(P,{locale:s,className:"mr-2 w-5 h-3.5"}),E.localeNames[s]]},s))})]})}],439366);var R=e.i(423539);function B(){let{t:e}=(0,f.useTranslation)(),s=(0,f.useLocalePath)(),i=(0,a.useRouter)(),n="floopfloop"===(0,j.useBrand)().id;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(r.DropdownMenuItem,{onClick:()=>i.push(s("/pricing")),children:[(0,t.jsx)(v,{className:"mr-2 size-4"}),e.nav.pricing]}),n&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(r.DropdownMenuItem,{onClick:()=>i.push(s("/build")),children:[(0,t.jsx)(y.Hammer,{className:"mr-2 size-4"}),e.nav.build]}),(0,t.jsxs)(r.DropdownMenuItem,{onClick:()=>i.push(s("/docs")),children:[(0,t.jsx)(b.BookOpen,{className:"mr-2 size-4"}),e.nav.docs]}),(0,t.jsxs)(r.DropdownMenuItem,{onClick:()=>i.push(s("/support")),children:[(0,t.jsx)(k,{className:"mr-2 size-4"}),e.nav.support]})]}),(0,t.jsxs)(r.DropdownMenuItem,{onClick:()=>i.push(s("/library")),children:[(0,t.jsx)(N.Library,{className:"mr-2 size-4"}),e.nav.library]})]})}function F(){let{data:e,loading:s,isFree:i}=(0,R.useUserPlan)(),n=(0,f.useLocalePath)(),l=(0,a.useRouter)(),o=(0,j.useBrand)();return s||i||!e?null:(0,t.jsxs)(r.DropdownMenuItem,{onClick:()=>{o.externalBillingUrl?window.open(o.externalBillingUrl,"_blank","noopener"):l.push(n("/account/subscription"))},children:[(0,t.jsx)(w.Zap,{className:"mr-2 size-4"}),e.credits.total," credits"]})}function T(){let{locale:e,t:s}=(0,f.useTranslation)(),i=(0,a.usePathname)(),n=(0,a.useRouter)();return(0,t.jsxs)(r.DropdownMenuSub,{children:[(0,t.jsxs)(r.DropdownMenuSubTrigger,{children:[(0,t.jsx)(M.Globe,{className:"mr-2 size-4"}),s.nav.language]}),(0,t.jsx)(r.DropdownMenuSubContent,{className:"min-w-[140px]",children:E.locales.map(s=>(0,t.jsxs)(r.DropdownMenuItem,{onClick:()=>{let e;(e=i.split("/")).length>=2&&E.locales.includes(e[1])?e[1]=s:e.splice(1,0,s),n.push(e.join("/")||"/")},className:(0,I.cn)("cursor-pointer",s===e&&"font-semibold text-primary"),children:[(0,t.jsx)(P,{locale:s,className:"mr-2 w-5 h-3.5"}),E.localeNames[s]]},s))})]})}function _(){let{resolvedTheme:e,setTheme:s}=(0,D.useTheme)(),{t:a}=(0,f.useTranslation)(),i="dark"===e;return(0,t.jsxs)(r.DropdownMenuItem,{closeOnClick:!1,onClick:()=>s(i?"light":"dark"),children:[i?(0,t.jsx)(z,{className:"mr-2 size-4"}):(0,t.jsx)(C,{className:"mr-2 size-4"}),a.nav.toggleTheme]})}e.s(["CreditsMenuItem",0,F,"LanguageSubmenu",0,T,"NavLinkItems",0,B,"ThemeMenuItem",0,_],935384);var L=e.i(13126);e.s(["default",0,function(){var e;let{t:d}=(0,f.useTranslation)(),v=(0,f.useLocalePath)(),{data:y}
1=(0,s.useSession)(),b=(0,a.useRouter)(),{teams:k}=(0,g.useWorkspace)(),N=(0,j.useBrand)(),w=y?.user;if(!w)return null;let M="admin"===w.role,C=k.length>0;return(0,t.jsxs)(r.DropdownMenu,{children:[(0,t.jsx)(r.DropdownMenuTrigger,{className:"cursor-pointer rounded-full outline-none focus-visible:ring-2 focus-visible:ring-primary/50",children:(0,t.jsxs)(i.Avatar,{size:"default",children:[w.image&&(0,t.jsx)(i.AvatarImage,{src:w.image,alt:w.name??""}),(0,t.jsx)(i.AvatarFallback,{className:"bg-primary text-primary-foreground text-xs font-bold",children:(e=w.name)?e.split(" ").map(e=>e[0]).join("").toUpperCase().slice(0,2):"?"})]})}),(0,t.jsxs)(r.DropdownMenuContent,{align:"end",sideOffset:8,className:"w-56",children:[(0,t.jsx)(r.DropdownMenuGroup,{children:(0,t.jsx)(r.DropdownMenuLabel,{className:"font-normal",children:(0,t.jsxs)("div",{className:"flex flex-col gap-0.5",children:[(0,t.jsx)("p",{className:"text-sm font-medium",children:w.name}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground truncate",children:w.email})]})})}),(0,t.jsx)(r.DropdownMenuSeparator,{}),(0,t.jsxs)(r.DropdownMenuGroup,{className:"sm:hidden",children:[(0,t.jsx)(B,{}),(0,t.jsx)(F,{}),(0,t.jsx)(T,{}),"floopfloop"===N.id&&(0,t.jsx)(_,{})]}),(0,t.jsx)(r.DropdownMenuSeparator,{className:"sm:hidden"}),(0,t.jsxs)(r.DropdownMenuGroup,{children:[(0,t.jsxs)(r.DropdownMenuItem,{onClick:()=>b.push(v("/account")),children:[(0,t.jsx)(n.User,{className:"mr-2 size-4"}),d.nav.account]}),(0,t.jsxs)(r.DropdownMenuItem,{onClick:()=>b.push(v("/projects")),children:[(0,t.jsx)(l.FolderOpen,{className:"mr-2 size-4"}),d.nav.projects]}),(0,t.jsxs)(r.DropdownMenuItem,{onClick:()=>"cryptohopper"===N.id?window.open(L.CH_BALANCE_LINK,"_blank","noopener,noreferrer"):b.push(v("/account/subscription")),children:[(0,t.jsx)(u.CreditCard,{className:"mr-2 size-4"}),d.nav.subscription]}),"floopfloop"===N.id&&(0,t.jsxs)(r.DropdownMenuItem,{onClick:()=>b.push(v("/account/referrals")),children:[(0,t.jsx)(m.Gift,{className:"mr-2 size-4"}),d.nav.referrals]}),(0,t.jsxs)(r.DropdownMenuItem,{onClick:()=>b.push(v("/account/api-keys")),children:[(0,t.jsx)(p.Key,{className:"mr-2 size-4"}),d.nav.apiKeys]}),(0,t.jsxs)(r.DropdownMenuItem,{onClick:()=>b.push(v("/account/devices")),children:[(0,t.jsx)(x.Laptop,{className:"mr-2 size-4"}),d.nav.devices]}),C&&(0,t.jsxs)(r.DropdownMenuItem,{onClick:()=>b.push(v("/account/team")),children:[(0,t.jsx)(h.Users,{className:"mr-2 size-4"}),"Team"]})]}),M&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.DropdownMenuSeparator,{}),(0,t.jsx)(r.DropdownMenuGroup,{children:(0,t.jsxs)(r.DropdownMenuItem,{onClick:()=>b.push(v("/admin")),children:[(0,t.jsx)(o.ShieldCheck,{className:"mr-2 size-4"}),d.nav.admin]})})]}),(0,t.jsx)(r.DropdownMenuSeparator,{}),(0,t.jsx)(r.DropdownMenuGroup,{children:(0,t.jsxs)(r.DropdownMenuItem,{variant:"destructive",onClick:()=>(0,s.signOut)({callbackUrl:"/"}),children:[(0,t.jsx)(c,{className:"mr-2 size-4"}),d.nav.logOut]})})]})]})}],144877)},110647,e=>{"use strict";var t=e.i(843476),s=e.i(526732),a=e.i(522016),r=e.i(144877),i=e.i(618566),n=e.i(492161);let l=(0,e.i(475254).default)("log-in",[["path",{d:"m10 17 5-5-5-5",key:"1bsop3"}],["path",{d:"M15 12H3",key:"6jk70r"}],["path",{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4",key:"u53s6r"}]]);var o=e.i(755146),d=e.i(935384),c=e.i(177527),u=e.i(895896);function m(){let{t:e}=(0,c.useTranslation)(),a=(0,c.useLocalePath)(),r=(0,i.useRouter)(),m=(0,u.useBrand)();return(0,t.jsxs)(o.DropdownMenu,{children:[(0,t.jsxs)(o.DropdownMenuTrigger,{className:"inline-flex size-9 items-center justify-center rounded-lg text-muted-foreground hover:text-foreground transition-colors sm:hidden",children:[(0,t.jsx)(n.Menu,{className:"size-5"}),(0,t.jsx)("span",{className:"sr-only",children:e.nav.openMenu})]}),(0,t.jsxs)(o.DropdownMenuContent,{align:"end",sideOffset:8,className:"w-56",children:[(0,t.jsxs)(o.DropdownMenuGroup,{children:[(0,t.jsx)(d.NavLinkItems,{}),(0,t.jsx)(d.LanguageSubmenu,{}),"floopfloop"===m.id&&(0,t.jsx)(d.ThemeMenuItem,{})]}),(0,t.jsx)(o.DropdownMenuSeparator,{}),(0,t.jsx)(o.DropdownMenuGroup,{children:(0,t.jsxs)(o.DropdownMenuItem,{onClick:()=>"cryptohopper"===m.id?(0,s.signIn)("cryptohopper"):r.push(a("/login")),className:"font-medium text-primary focus:text-primary",children:[(0,t.jsx)(l,{className:"mr-2 size-4"}),e.nav.signIn]})})]})]})}var h=e.i(363178),p=e.i(991799),x=e.i(897250),f=e.i(519455);function g(){let{resolvedTheme:e,setTheme:s}=(0,h.useTheme)();return(0,t.jsxs)(f.Button,{variant:"ghost",size:"icon",onClick:()=>s("dark"===e?"light":"dark"),"aria-label":"Toggle theme",children:[(0,t.jsx)(x.Sun,{className:"size-4 rotate-0 scale-100 transition-transform dark:-rotate-90 dark:scale-0"}),(0,t.jsx)(p.Moon,{className:"absolute size-4 rotate-90 scale-0 transition-transform dark:rotate-0 dark:scale-100"})]})}var j=e.i(439366),v=e.i(271645),y=e.i(972920),b=e.i(975157),k=e.i(995926);function N({...e}){return(0,t.jsx)(y.Dialog.Root,{"data-slot":"sheet",...e})}function w({...e}){return(0,t.jsx)(y.Dialog.Trigger,{"data-slot":"sheet-trigger",...e})}function M({...e}){return(0,t.jsx)(y.Dialog.Portal,{"data-slot":"sheet-portal",...e})}function C({className:e,...s}){return(0,t.jsx)(y.Dialog.Backdrop,{"data-slot":"sheet-overlay",className:(0,b.cn)("fixed inset-0 z-50 bg-black/10 transition-opacity duration-150 data-ending-style:opacity-0 data-starting-style:opacity-0 supports-backdrop-filter:backdrop-blur-xs",e),...s})}function z({className:e,children:s,side:a="right",showCloseButton:r=!0,...i}){return(0,t.jsxs)(M,{children:[(0,t.jsx)(C,{}),(0,t.jsxs)(y.Dialog.Popup,{"data-slot":"sheet-content","data-side":a,className:(0,b.cn)("fixed z-50 flex flex-col gap-4 bg-popover bg-clip-padding text-sm text-popover-foreground shadow-lg transition duration-200 ease-in-out data-ending-style:opacity-0 data-starting-style:opacity-0 data-[side=bottom]:inset-x-0 data-[side=bottom]:bottom-0 data-[side=bottom]:h-auto data-[side=bottom]:border-t data-[side=bottom]:data-ending-style:translate-y-[2.5rem] data-[side=bottom]:data-starting-style:translate-y-[2.5rem] data-[side=left]:inset-y-0 data-[side=left]:left-0 data-[side=left]:h-full data-[side=left]:w-3/4 data-[side=left]:border-r data-[side=left]:data-ending-style:translate-x-[-2.5rem] data-[side=left]:data-starting-style:translate-x-[-2.5rem] data-[side=right]:inset-y-0 data-[side=right]:right-0 data-[side=right]:h-full data-[side=right]:w-3/4 data-[side=right]:border-l data-[side=right]:data-ending-style:translate-x-[2.5rem] data-[side=right]:data-starting-style:translate-x-[2.5rem] data-[side=top]:inset-x-0 data-[side=top]:top-0 data-[side=top]:h-auto data-[side=top]:border-b data-[side=top]:data-ending-style:translate-y-[-2.5rem] data-[side=top]:data-starting-style:translate-y-[-2.5rem] data-[side=left]:sm:max-w-sm data-[side=right]:sm:max-w-sm",e),...i,children:[s,r&&(0,t.jsxs)(y.Dialog.Close,{"data-slot":"sheet-close",render:(0,t.jsx)(f.Button,{variant:"ghost",className:"absolute top-3 right-3",size:"icon-sm"}),children:[(0,t.jsx)(k.XIcon,{}),(0,t.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})}function D({className:e,...s}){return(0,t.jsx)("div",{"data-slot":"sheet-header",className:(0,b.cn)("flex flex-col gap-0.5 p-4",e),...s})}function E({className:e,...s}){return(0,t.jsx)(y.Dialog.Title,{"data-slot":"sheet-title",className:(0,b.cn)("font-heading text-base font-medium text-foreground",e),...s})}var I=e.i(487486),P=e.i(107233),R=e.i(531245),B=e.i(761911),F=e.i(664659),T=e.i(778917),_=e.i(662255),L=e.i(613581);let H={draft:"bg-muted text-muted-foreground",queued:"bg-amber-500/10 text-amber-400",generating:"bg-amber-500/10 text-amber-400",generated:"bg-blue-500/10 text-blue-400",deploying:"bg-primary/10 text-primary",live:"bg-green-500/10 text-green-400",failed:"bg-red-500/10 text-red-400",archived:"bg-zinc-500/10 text-zinc-500"};function S(){let{t:e}=(0,c.useTranslation)(),r=(0,u.useBrand)(),i=(0,c.useLocalePath)(),{data:l}
1=(0,s.useSession)(),[o,d]=(0,v.useState)([]),{activeWorkspace:m,teams:h,switchWorkspace:p}=(0,L.useWorkspace)(),[x,g]=(0,v.useState)(!1);if((0,v.useEffect)(()=>{if(!l?.user)return;let e="team"===m.type?m.teamId:null,t=e?`/api/projects?teamId=${e}`:"/api/projects",s=!1;return(async()=>{try{let e=await fetch(t);if(!e.ok)throw Error(`HTTP ${e.status}`);let a=await e.json();if(s)return;d((Array.isArray(a?.projects)?a.projects:[]).filter(e=>"archived"!==e.status).map(e=>({id:e.id,name:e.name,subdomain:e.subdomain,status:e.status})))}catch(e){if(s)return;console.error("[project-sidebar] failed to load projects:",e),d([])}})(),()=>{s=!0}},[l?.user,m]),!l?.user)return null;let j={draft:e.status.draft,queued:e.status.queued,generating:e.status.generating,generated:e.status.generated,deploying:e.status.deploying,live:e.status.live,failed:e.status.failed,archived:e.status.archived};return(0,t.jsxs)(N,{children:[(0,t.jsxs)(w,{render:(0,t.jsx)(f.Button,{variant:"ghost",size:"icon",className:"rounded-xl"}),children:[(0,t.jsx)(n.Menu,{className:"size-5"}),(0,t.jsx)("span",{className:"sr-only",children:e.nav.openProjects})]}),(0,t.jsxs)(z,{side:"left",className:"w-80 p-0",children:[(0,t.jsx)(D,{className:"border-b px-4 py-3",children:(0,t.jsxs)(E,{className:"flex items-center gap-2",children:[(0,t.jsx)(_.default,{size:22}),"team"===m.type?m.teamName:e.nav.myProjects]})}),h.length>0&&(0,t.jsx)("div",{className:"border-b px-3 py-2",children:(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsxs)("button",{onClick:()=>g(!x),className:"flex w-full items-center gap-2 rounded-lg px-3 py-2 text-sm text-muted-foreground transition-colors hover:bg-muted/80 hover:text-foreground",children:["team"===m.type?(0,t.jsx)(B.Users,{className:"size-4"}):(0,t.jsx)(R.Bot,{className:"size-4"}),(0,t.jsx)("span",{className:"flex-1 truncate text-left",children:"team"===m.type?m.teamName:e.team.personal}),(0,t.jsx)(F.ChevronDown,{className:(0,b.cn)("size-3.5 transition-transform",x&&"rotate-180")})]}),x&&(0,t.jsxs)("div",{className:"absolute left-0 right-0 top-full z-10 mt-1 rounded-lg border bg-popover p-1 shadow-md",children:[(0,t.jsxs)("button",{onClick:()=>{p({type:"personal"}),g(!1)},className:(0,b.cn)("flex w-full items-center gap-2 rounded-md px-3 py-2 text-sm transition-colors hover:bg-muted","personal"===m.type&&"bg-muted font-medium"),children:[(0,t.jsx)(R.Bot,{className:"size-4"}),e.team.personal]}),h.map(e=>(0,t.jsxs)("button",{onClick:()=>{p({type:"team",teamId:e.id,teamName:e.name}),g(!1)},className:(0,b.cn)("flex w-full items-center gap-2 rounded-md px-3 py-2 text-sm transition-colors hover:bg-muted","team"===m.type&&m.teamId===e.id&&"bg-muted font-medium"),children:[(0,t.jsx)(B.Users,{className:"size-4"}),e.name]},e.id))]})]})}),(0,t.jsxs)("div",{className:"flex min-h-0 flex-1 flex-col gap-1 overflow-y-auto p-3",children:[(0,t.jsx)(a.default,{href:i("/"),children:(0,t.jsxs)(f.Button,{variant:"outline",className:"w-full justify-start gap-2 rounded-xl border-dashed text-primary border-primary/30 hover:bg-primary/10 hover:text-primary",children:[(0,t.jsx)(P.Plus,{className:"size-4"}),e.nav.newProject]})}),0===o.length?(0,t.jsxs)("div",{className:"flex flex-col items-center justify-center py-16 text-center",children:[(0,t.jsx)("div",{className:"mb-3 flex size-12 items-center justify-center rounded-2xl bg-primary/10",children:(0,t.jsx)(R.Bot,{className:"size-6 text-primary"})}),(0,t.jsx)("p",{className:"text-sm font-medium text-foreground",children:e.nav.noProjectsYet}),(0,t.jsx)("p",{className:"mt-1 text-xs text-muted-foreground",children:e.nav.noProjectsHint})]}):(0,t.jsx)("div",{className:"mt-2 flex flex-col gap-1",children:o.map(e=>(0,t.jsxs)("div",{className:"group flex items-center rounded-xl transition-colors hover:bg-muted/80",children:[(0,t.jsxs)(a.default,{href:i(`/projects/${e.id}`),className:"flex min-w-0 flex-1 items-center gap-3 rounded-l-xl py-2.5 pl-3",children:[(0,t.jsx)("div",{className:"flex size-8 shrink-0 items-center justify-center rounded-lg bg-primary/10",children:(0,t.jsx)(R.Bot,{className:"size-4 text-primary"})}),(0,t.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col",children:[(0,t.jsx)("span",{className:"truncate text-sm font-medium",children:e.name}),(0,t.jsxs)("span",{className:"truncate text-xs text-muted-foreground",children:[e.subdomain,".",r.projectsDomain]})]}),(0,t.jsx)(I.Badge,{className:(0,b.cn)("shrink-0 border-0 text-[10px] font-semibold",H[e.status]),children:j[e.status]})]}),(0,t.jsx)("a",{href:`https://${e.subdomain}.${r.projectsDomain}`,target:"_blank",rel:"noopener noreferrer","aria-label":`Open ${e.name} in a new tab`,title:`Open ${e.subdomain}.${r.projectsDomain} in a new tab`,className:"ml-1 mr-2 flex size-8 shrink-0 items-center justify-center rounded-lg text-muted-foreground transition-colors hover:bg-muted hover:text-foreground",children:(0,t.jsx)(T.ExternalLink,{className:"size-4"})})]},e.id))})]})]})]})}var A=e.i(879312);function U({className:e}){return"cryptohopper"!==(0,u.useBrand)().id?null:(0,t.jsx)("span",{className:(0,b.cn)("inline-flex select-none items-center rounded-full bg-red-500 px-1.5 py-0.5","text-[10px] font-bold uppercase leading-none tracking-wider text-white",e),title:"Cryptohopper.AI is in beta — we're still perfecting it.",children:"Beta"})}var O=e.i(39312),q=e.i(423539);function V(){let{data:e,loading:s,isFree:a}=(0,q.useUserPlan)(),{t:r}=(0,c.useTranslation)(),n=(0,c.useLocalePath)(),l=(0,i.useRouter)(),o=(0,u.useBrand)();if(s||a||!e)return null;let d=e.credits.total,m=d>0&&d<10,h=0===d,p=r.limits.creditsBreakdown.replace("{current}",String(e.credits.current)).replace("{rolledOver}",String(e.credits.rolledOver)),x=(0,b.cn)("flex items-center gap-1 rounded-lg px-2 py-1 text-xs font-medium transition-colors",h?"bg-red-500/10 text-red-400 hover:bg-red-500/20":m?"bg-amber-500/10 text-amber-400 hover:bg-amber-500/20":"bg-muted text-muted-foreground hover:bg-muted/80 hover:text-foreground");return o.externalBillingUrl?(0,t.jsxs)("a",{href:o.externalBillingUrl,target:"_blank",rel:"noopener noreferrer",title:p,className:x,children:[(0,t.jsx)(O.Zap,{className:"size-3"}),d]}):(0,t.jsxs)("button",{onClick:()=>l.push(n("/account/subscription")),title:p,className:x,children:[(0,t.jsx)(O.Zap,{className:"size-3"}),d]})}e.s(["default",0,function(){let{t:e}=(0,c.useTranslation)(),i=(0,c.useLocalePath)(),n=(0,u.useBrand)(),{status:l}
1=(0,s.useSession)(),o="authenticated"===l,d="floopfloop"===n.id;return(0,t.jsx)("nav",{className:"sticky top-0 z-50 border-b border-border bg-background/80 backdrop-blur-xl",children:(0,t.jsxs)("div",{className:"flex h-14 w-full items-center justify-between px-4 sm:px-6",children:[(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[o&&(0,t.jsx)(S,{}),(0,t.jsxs)("div",{className:"flex items-center gap-1.5 sm:gap-2",children:[(0,t.jsx)(a.default,{href:i("/"),"aria-label":n.productName,children:(0,t.jsx)(A.default,{size:28,textClassName:"text-xl",sizeClassName:"text-[18px] sm:text-[23px]"})}),(0,t.jsx)(U,{})]})]}),(0,t.jsxs)("div",{className:"flex items-center gap-4",children:[(0,t.jsx)(a.default,{href:i("/pricing"),className:"hidden sm:inline text-sm font-medium text-muted-foreground hover:text-foreground transition-colors",children:e.nav.pricing}),"cryptohopper"===n.id&&(0,t.jsx)(a.default,{href:i("/docs"),className:"hidden sm:inline text-sm font-medium text-muted-foreground hover:text-foreground transition-colors",children:e.nav.docs}),d&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(a.default,{href:i("/build"),className:"hidden sm:inline text-sm font-medium text-muted-foreground hover:text-foreground transition-colors",children:e.nav.build}),(0,t.jsx)(a.default,{href:i("/docs"),className:"hidden sm:inline text-sm font-medium text-muted-foreground hover:text-foreground transition-colors",children:e.nav.docs}),(0,t.jsx)(a.default,{href:i("/support"),className:"hidden sm:inline text-sm font-medium text-muted-foreground hover:text-foreground transition-colors",children:e.nav.support})]}),(0,t.jsxs)("div",{className:"hidden sm:flex items-center gap-4",children:[(0,t.jsx)(a.default,{href:i("/library"),className:"text-muted-foreground hover:text-foreground transition-colors text-sm font-medium",title:e.nav.library,children:e.nav.library}),(0,t.jsx)(V,{}),(0,t.jsx)(j.default,{}),"floopfloop"===n.id&&(0,t.jsx)(g,{})]}),"loading"===l?(0,t.jsx)("div",{className:"size-8 animate-pulse rounded-full bg-muted"}):o?(0,t.jsx)(r.default,{}):(0,t.jsxs)(t.Fragment,{children:["cryptohopper"===n.id?(0,t.jsx)("button",{onClick:()=>(0,s.signIn)("cryptohopper"),className:"ml-2 hidden sm:inline-flex items-center justify-center rounded-lg bg-primary px-4 py-2 text-sm font-medium text-primary-foreground hover:bg-primary/90",children:e.nav.signIn}):(0,t.jsx)(a.default,{href:i("/login"),className:"ml-2 hidden sm:inline-flex items-center justify-center rounded-lg bg-primary px-4 py-2 text-sm font-medium text-primary-foreground hover:bg-primary/90",children:e.nav.signIn}),(0,t.jsx)(m,{})]})]})]})})}],110647)}]);

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.