PageSourceSearch

https://www.startuphub.ai/_next/static/chunks/2157.70ca394dda642cb7.js

js startuphub.ai collected 2026-10-03 20:33:10 UTC 3,183 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2157],{2157:(e,a,t)=>{t.r(a),t.d(a,{LaunchCreditBanner:()=>c});var s=t(95155),n=t(12115),l=t(71275),r=t(76717),i=t(89239),d=t(42763),o=t(68099);function c(){let{user:e}=(0,r.As)(),[a,t]=(0,n.useState)(null),[c,u]=(0,n.useState)(!1),[h,f]=(0,n.useState)(null),[m,p]=(0,n.useState)(!1),[x,w]=(0,n.useState)(()=>Date.now()),b=(0,n.useCallback)(()=>{fetch("/api/launch-credits").then(e=>e.ok?e.json():null).then(e=>{e&&t(e)}).catch(()=>{})},[]);(0,n.useEffect)(()=>{if(!e)return void t(null);b();let a=()=>b();return window.addEventListener("launch-credits:refresh",a),()=>window.removeEventListener("launch-credits:refresh",a)},[b,e]),(0,n.useEffect)(()=>{if(!a?.offer)return;let e=window.setInterval(()=>w(Date.now()),1e3);return()=>window.clearInterval(e)},[a?.offer]);let j=a?.offer&&!a.wallet?a.offer:null;if(!j&&!c)return null;let g=async()=>{if(j){p(!0);try{let e=await fetch("/api/launch-credits",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({profileId:j.profileId})}),a=await e.json();if(!e.ok||!a.wallet)return;f(a.wallet),u(!0),t(e=>e?{...e,offer:null,wallet:a.wallet}:e),window.dispatchEvent(new CustomEvent("launch-credits:refresh",{detail:{animate:!0}}))}finally{p(!1)}}},v=j?`${j.path}${j.path.includes("?")?"&":"?"}boost=1`:"/";return(0,s.jsxs)(s.Fragment,{children:[j?(0,s.jsx)("div",{className:"border-b border-border bg-card",children:(0,s.jsxs)("div",{className:"mx-auto flex max-w-6xl flex-wrap items-center justify-center gap-x-3 gap-y-2 px-4 py-2.5 text-sm",children:[(0,s.jsx)(l.A,{size:16,className:"shrink-0 text-primary","aria-hidden":!0}),(0,s.jsxs)("p",{className:"text-foreground",children:["Your profile is live. ",(0,s.jsxs)("span",{className:"font-semibold",children:[(0,o.aA)(o.i$)," launch credits"]})," reserved for ",j.name,"."]}),(0,s.jsx)(i.$,{type:"button",size:"sm",className:"h-8 bg-brand-gradient",disabled:m,onClick:()=>void g(),children:m?"Claiming":`Claim ${(0,o.aA)(o.i$)}`}),(0,s.jsxs)("span",{className:"tabular-nums text-xs text-muted-foreground",children:["Expires in ",(0,o.zt)(j.claimEndsAt,x)]})]})}):null,(0,s.jsx)(d.Dialog,{open:c,onOpenChange:u,children:(0,s.jsxs)(d.DialogContent,{className:"max-w-md overflow-hidden",children:[(0,s.jsx)("div",{className:"pointer-events-none absolute inset-x-0 top-0 flex justify-center gap-3 pt-4","aria-hidden":!0,children:Array.from({length:8}).map((e,a)=>(0,s.jsx)("span",{className:"h-2 w-2 animate-bounce rounded-full bg-primary",style:{animationDelay:`${70*a}ms`}},a))}),(0,s.jsxs)(d.DialogTitle,{className:"pt-4 text-xl",children:[(0,o.aA)(o.i$)," added to your wallet"]}),(0,s.jsxs)(d.DialogDescription,{children:["Your balance: ",(0,s.jsx)("span",{className:"font-semibold text-foreground",children:h?(0,o.aA)(h.balanceCents):(0,o.aA)(o.i$)})]}),(0,s.jsx)("p",{className:"text-sm text-muted-foreground",children:"Use it on boosts and superboosts. Credits expire in 24h, no cash value."}),(0,s.jsx)(i.$,{asChild:!0,className:"bg-brand-gradient",children:(0,s.jsxs)("a",{href:h?`${h.path}${h.path.includes("?")?"&":"?"}boost=1`:v,children:["Use my ",(0,o.aA)(o.i$)]})})]})})]})}}}]);

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.