PageSourceSearch

https://starplace.net/assets/site-shell-5M4tomfE.js

js starplace.net collected 2026-10-02 02:02:18 UTC 14,664 bytes, 1 lines download raw bytes

1import{i as P,a6 as E,a7 as L,a8 as b,r as c,j as e,a9 as _,aa as y,a5 as w,ab as u,ac as C,ad as k,ae as F,af as S,a as p,b as z,B as o,L as t,ag as U,x as D,p as I,g as M,_ as g,ah as j,q}from"./index-t0Mu2_aA.js";import{C as B}from"./card-CPRZ8kHu.js";import{G}from"./gift-DaQTRPir.js";import{S as H}from"./share-2-CF9ZfJDp.js";import{S as W}from"./shopping-cart-D7N3TdGS.js";import{W as N}from"./wallet-K_gxjS8Q.js";const K=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],V=P("menu",K),Y=E,Q=L,n=b,X=_,O=c.forwardRef(({className:s,...a},r)=>e.jsx(k,{className:u("fixed inset-0 z-50 bg-black/80  data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",s),...a,ref:r}));O.displayName=k.displayName;const $=F("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),T=c.forwardRef(({side:s="right",className:a,children:r,...x},l)=>e.jsxs(X,{children:[e.jsx(O,{}),e.jsxs(y,{ref:l,className:u($({side:s}),a),...x,children:[e.jsxs(b,{className:"absolute right-4 top-4 roun
1ded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[e.jsx(w,{className:"h-4 w-4"}),e.jsx("span",{className:"sr-only",children:"Close"})]}),r]})]}));T.displayName=y.displayName;const A=c.forwardRef(({className:s,...a},r)=>e.jsx(C,{ref:r,className:u("text-lg font-semibold text-foreground",s),...a}));A.displayName=C.displayName;const J=c.forwardRef(({className:s,...a},r)=>e.jsx(S,{ref:r,className:u("text-sm text-muted-foreground",s),...a}));J.displayName=S.displayName;const v="sp_news_affiliate_open_v1";function Z(){const s=p(),{user:a,loading:r}=z(),[x,l]=c.useState(!1);c.useEffect(()=>{if(!(r||!a?.referral_code)){try{if(window.localStorage.getItem(v))return}catch{return}l(!0)}},[r,a?.referral_code]);function d(){l(!1);try{window.localStorage.setItem(v,new Date().toISOString())}catch{}}return x?e.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/70 backdrop-blur-sm px-4",onClick:d,children:e.jsxs(B,{className:"w-full max-w-md bg-hud-glass border-primary/30 p-6 clip-path-hud hud-border animate-in fade-in zoom-in-95",onClick:h=>h.stopPropagation(),children:[e.jsxs("div",{className:"flex items-start justify-between gap-4",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"bg-primary/10 p-2 clip-path-hud border border-primary/20",children:e.jsx(G,{className:"h-5 w-5 text-hud"})}),e.jsxs("div",{children:[e.jsx("div",{className:"font-mono text-[9px] text-hud uppercase tracking-[0.3em]",children:s.affiliateNews.eyebrow}),e.jsx("h2",{className:"font-display text-xl tracking-tighter text-foreground uppercase",children:s.affiliateNews.title})]})]}),e.jsx("button",{type:"button",onClick:d,"aria-label":s.affiliateNews.dismiss,className:"text-muted-foreground hover:text-foreground transition-colors",children:e.jsx(w,{className:"h-4 w-4"})})]}),e.jsx("p",{className:"mt-4 font-mono text-[11px] leading-relaxed text-muted-foreground",children:s.affiliateNews.body}),e.jsxs("p",{className:"mt-3 flex items-start gap-2 border border-primary/20 bg-primary/5 px-3 py-2 font-mono text-[10px] leading-relaxed text-foreground",children:[e.jsx(H,{className:"mt-0.5 h-3 w-3 shrink-0 text-hud"}),s.affiliateNews.shareNote]}),e.jsxs("div",{className:"mt-6 flex flex-col gap-2 sm:flex-row",children:[e.jsx(o,{asChild:!0,className:"flex-1 text-xs",children:e.jsx(t,{to:"/affiliate",onClick:d,children:s.affiliateNews.seeProgram})}),e.jsx(o,{variant:"outline",className:"flex-1 text-xs border-primary/30",onClick:d,children:s.affiliateNews.dismiss})]})]})}):null}function m({n:s}){const a=p();return!s||s<1?null:e.jsx("span",{"aria-label":a.nav.unread(s),className:"ml-1.5 inline-flex h-4 min-w-[16px] items-center justify-center rounded-full bg-hud px-1 font-mono text-[9px] font-bold leading-none text-background",children:s>9?"9+":s})}function ne(){const s=p(),{isAuthenticated:a,hasRole:r}=z(),{userUnread:x,adminUnread:l}=U(a),{count:d}=D(),{data:h}=I({queryKey:["wallet-balance"],enabled:a,queryFn:()=>q("wallet.balance"),staleTime:15e3,refetchOnWindowFocus:!0}),[R,f]=c.useState(!1),i="rounded px-3 py-3 hover:bg-primary/10 hover:text-hud transition-colors";return e.jsxs(e.Fragment,{children:[e.jsx("header",{className:"sticky top-0 z-40 border-b border-primary/20 bg-background/60 backdrop-blur-xl",children:e.jsxs("div",{className:"mx-auto flex h-16 max-w-7xl items-center justify-between px-4",children:[e.jsxs(t,{to:"/",className:"flex items-center gap-3 group",children:[e.jsx("div",{className:"bg-primary/10 p-1.5 clip-path-hud border border-primary/20 group-hover:border-primary/50 transition-colors",children:e.jsx(M,{className:"h-5 w-5 text-hud"})}),e.jsxs("span",{className:"font-display text-sm uppercase tracking-[0.3em] text-foreground",children:["STAR",e.jsx("span",{className:"text-hud",children:"PLACE"})]})]}),e.jsxs("nav",{className:"hidden items-center gap-8 font-mono text-[10px] tracking-[0.2em] text-muted-foreground uppercase md:flex",children:[e.jsx(t,{to:"/browse",className:"hover:text-hud transition-colors",children:s.nav.browse}),e.jsx(t,{to:"/ships",className:"hover:text-hud transition-colors",children:s.nav.ships}),e.jsx(t,{to:"/ccus",className:"hover:text-hud transition-colors",children:s.nav.ccuPlanner}),e.jsx(t,{to:"/myhangar",className:"hover:text-hud transition-colors",children:s.nav.myHangar})]}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(o,{asChild:!0,variant:"ghost",size:"sm",className:"relative px-2",children:e.jsxs(t,{to:"/cart","aria-label":s.nav.cart,children:[e.jsx(W,{className:"h-5 w-5"}),d>0&&e.jsx("span",{className:"absolute -right-0.5 -top-0.5 flex h-4 min-w-4 items-center justify-center rounded-full bg-hud px-1 text-[10px] font-bold text-background",children:d})]})}),a?e.jsxs(e.Fragment,{children:[e.jsx(o,{asChild:!0,variant:"ghost",size:"sm",className:"px-2 text-hud hover:bg-hud/10 hover:text-hud",children:e.jsxs(t,{to:"/affiliate","aria-label":s.wallet.title,children:[e.jsx(N,{className:"h-4 w-4"}),e.jsx("span",{className:"font-mono text-xs tabular-nums",children:g(h?.availableCents??0,"USD")})]})}),r("admin")&&e.jsx(o,{asChild:!0,variant:"ghost",size:"sm",className:"hidden lg:flex",children:e.jsxs(t,{to:"/admin",children:[s.nav.admin,e.jsx(m,{n:l})]})}),e.jsx(o,{asChild:!0,variant:"ghost",size:"sm",className:"hidden sm:flex",children:e.jsx(t,{to:"/buyer/orders",children:s.nav.myOrders})}),e.jsx(o,{asChild:!0,variant:"ghost",size:"sm",className:"hidden sm:flex",children:e.jsxs(t,{to:"/support",children:[s.nav.support,e.jsx(m,{n:x})]})}),e.jsx(o,{asChild:!0,variant:"ghost",size:"sm",className:"hidden sm:flex",children:e.jsx(t,{to:"/settings",children:s.nav.settings})}),e.jsx(o,{onClick:()=>j(),variant:"outline",size:"sm",className:"hidden border-primary/20 text-[10px] md:flex",children:s.nav.logOut})]}):e.jsxs(e.Fragment,{children:[e.jsx(o,{asChild:!0,variant:"ghost",size:"sm",className:"hidden md:flex",children:e.jsx(t,{to:"/login",children:s.nav.logIn})}),e.jsx(o,{asChild:!0,size:"sm",className:"hidden shadow-hud md:flex",children:e.jsx(t,{to:"/signup",children:s.nav.signUp})})]}),e.jsxs(Y,{open:R,onOpenChange:f,children:[e.jsx(Q,{asChild:!0,children:e.jsx(o,{variant:"outline",size:"sm","aria-label":s.nav.openMenu,className:"border-primary/20 md:hidden",children:e.jsx(V,{className:"h-4 w-4"})})}),e.jsxs(T,{side:"right",className:"w-72 border-primary/20",children:[e.jsxs(A,{className:"font-display text-sm uppercase tracking-[0.3em] text-foreground",children:["STAR",e.jsx("span",{className:"text-hud",children:"PLACE"})]}),e.jsxs("nav",{className:"mt-8 flex flex-col gap-1 font-mono text-xs uppercase tracking-[0.2em] text-muted-foreground",children:[e.jsx(n,{asChild:!0,children:e.jsx(t,{to:"/browse",className:i,children:s.nav.browse})}),e.jsx(n,{asChild:!0,children:e.jsx(t,{to:"/ships",className:i,children:s.nav.ships})}),e.jsx(n,{asChild:!0,children:e.jsx(t,{to:"/ccus",className:i,children:s.nav.ccuPlanner})}),e.jsx(n,{asChild:!0,children:e.jsx(t,{to:"/myhangar",className:i,children:s.nav.myHangar})}),e.jsx("div",{className:"my-2 border-t border-primary/10"}),a?e.jsxs(e.Fragment,{children:[e.jsx(n,{asChild:!0,children:e.jsxs(t,{to:"/affiliate",className:`${i} flex items-center gap-2 text-hud`,children:[e.jsx(N,{className:"h-4 w-4"}),e.jsx("span",{children:s.wallet.title}),e.jsx("span",{className:"ml-auto font-mono",children:g(h?.availableCents??0,"USD")})]})}),r("admin")&&e.jsx(n,{asChild:!0,children:e.jsxs(t,{to:"/admin",className:"rounded px-3 py-3 text-hud hover:bg-primary/10 transition-colors",children:[s.nav.adminPanel,e.jsx(m,{n:l})]})}),e.jsx(n,{asChild:!0,children:e.jsx(t,{to:"/buyer/orders",className:i,children:s.nav.myOrders})}),e.jsx(n,{asChild:!0,children:e.jsxs(t,{to:"/support",className:i,children:[s.nav.support,e.jsx(m,{n:x})]})}),e.jsx(n,{asChild:!0,children:e.jsx(t,{to:"/settings",className:i,children:s.nav.settings})}),e.jsx("div",{className:"my-2 border-t border-primary/10"}),e.jsx("button",{type:"button",onClick:()=>{f(!1),j()},className:"rounded px-3 py-3 text-left text-warning hover:bg-warning/10 transition-colors",children:s.nav.logOut})]}):e.jsxs(e.Fragment,{children:[e.jsx(n,{asChild:!0,children:e.jsx(t,{to:"/login",className:i,children:s.nav.logIn})}),e.jsx(n,{asChild:!0,children:e.jsx(t,{to:"/signup",className:"rounded px-3 py-3 text-hud hover:bg-primary/10 transition-colors",children:s.nav.signUp})})]})]})]})]})]})]})}),e.jsx(Z,{})]})}function ie(){const s=p();return e.jsxs("footer",{className:"border-t border-primary/20 bg-primary/5 py-12 relative overflow-hidden",children:[e.jsx("div",{className:"absolute inset-0 hud-grid opacity-10 pointer-events-none"}),e.jsxs("div",{className:"mx-auto grid max-w-7xl gap-12 px-4 relative z-10 md:grid-cols-4 lg:gap-20",children:[e.jsxs("div",{className:"space-y-6",children:[e.jsx("div",{className:"font-display text-sm tracking-[0.3em] text-foreground",children:"STARPLACE"}),e.jsx("p",{className:"font-mono text-[10px] leading-relaxed text-muted-foreground uppercase tracking-wider",children:s.footer.tagline}),e.jsxs("div",{className:"pt-2 font-mono text-[10px]",children:[e.jsxs("span",{className:"text-muted-foreground",children:[s.footer.contact,":"]}
1)," ",e.jsx("a",{href:"mailto:[email protected]",className:"text-hud hover:underline",children:"[email protected]"})]})]}),e.jsxs("div",{className:"space-y-4",children:[e.jsx("div",{className:"font-display text-[10px] tracking-[0.2em] text-hud uppercase border-b border-primary/10 pb-2",children:s.footer.colMarketplace}),e.jsxs("ul",{className:"space-y-2 font-mono text-[10px] text-muted-foreground uppercase tracking-widest",children:[e.jsx("li",{children:e.jsx(t,{to:"/browse",className:"hover:text-foreground",children:s.footer.browseListings})}),e.jsx("li",{children:e.jsx(t,{to:"/ships",className:"hover:text-foreground",children:s.nav.ships})}),e.jsx("li",{children:e.jsx(t,{to:"/seller/apply",className:"hover:text-foreground",children:s.footer.becomeSeller})})]})]}),e.jsxs("div",{className:"space-y-4",children:[e.jsx("div",{className:"font-display text-[10px] tracking-[0.2em] text-hud uppercase border-b border-primary/10 pb-2",children:s.footer.colHelp}),e.jsxs("ul",{className:"space-y-2 font-mono text-[10px] text-muted-foreground uppercase tracking-widest",children:[e.jsx("li",{children:e.jsx(t,{to:"/how-it-works",className:"hover:text-foreground",children:s.footer.howItWorks})}),e.jsx("li",{children:e.jsx(t,{to:"/safety",className:"hover:text-foreground",children:s.footer.safety})}),e.jsx("li",{children:e.jsx(t,{to:"/support",className:"hover:text-foreground",children:s.footer.support})}),e.jsx("li",{children:e.jsx(t,{to:"/faq",className:"hover:text-foreground",children:s.footer.faq})}),e.jsx("li",{children:e.jsx(t,{to:"/returns",className:"hover:text-foreground",children:s.footer.returns})}),e.jsx("li",{children:e.jsx(t,{to:"/shipping",className:"hover:text-foreground",children:s.footer.shipping})}),e.jsx("li",{children:e.jsx(t,{to:"/about",className:"hover:text-foreground",children:s.footer.aboutUs})}),e.jsx("li",{children:e.jsx(t,{to:"/contact",className:"hover:text-foreground",children:s.footer.contactUs})}),e.jsx("li",{children:e.jsx(t,{to:"/guides",className:"hover:text-foreground",children:s.footer.guides})}),e.jsx("li",{children:e.jsx(t,{to:"/disclaimer",className:"hover:text-foreground",children:s.footer.disclaimer})})]})]}),e.jsxs("div",{className:"space-y-4",children:[e.jsx("div",{className:"font-display text-[10px] tracking-[0.2em] text-hud uppercase border-b border-primary/10 pb-2",children:s.footer.colLegal}),e.jsxs("ul",{className:"space-y-2 font-mono text-[10px] text-muted-foreground uppercase tracking-widest",children:[e.jsx("li",{children:e.jsx(t,{to:"/terms",className:"hover:text-foreground",children:s.footer.terms})}),e.jsx("li",{children:e.jsx(t,{to:"/privacy",className:"hover:text-foreground",children:s.footer.privacy})}),e.jsx("li",{children:e.jsx(t,{to:"/cookies",className:"hover:text-foreground",children:s.footer.cookies})}),e.jsx("li",{children:e.jsx(t,{to:"/refunds",className:"hover:text-foreground",children:s.footer.refunds})}),e.jsx("li",{children:e.jsx(t,{to:"/aml",className:"hover:text-foreground",children:s.footer.aml})}),e.jsx("li",{children:e.jsx(t,{to:"/dpa",className:"hover:text-foreground",children:s.footer.dpa})}),e.jsx("li",{children:e.jsx(t,{to:"/legal",className:"hover:text-foreground",children:s.footer.operator})})]})]})]}),e.jsx("div",{className:"mt-12 border-t border-primary/10 px-4 py-6 text-center relative z-10",children:e.jsx("p",{className:"font-mono text-[8px] text-muted-foreground uppercase tracking-[0.3em] max-w-4xl mx-auto leading-relaxed",children:s.footer.rights(new Date().getFullYear())})})]})}export{m as N,ne as S,ie as a};

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.