PageSourceSearch

https://stasht.app/assets/Profile-ZXnpOMJC.js

js stasht.app collected 2026-10-01 14:23:07 UTC 32,402 bytes, 3 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/web-DyMJO39z.js","assets/index-4qCi1SPN.js","assets/query-Cg3kfXWF.js","assets/router-2d4Df_P9.js","assets/react-vendor-Dyffda3n.js","assets/ui-components-CZv-mgrC.js","assets/radix-ui-iYcaMoVP.js","assets/utilities-BCN5r5Be.js","assets/icons-and-animation-DhDkwEqv.js","assets/index-DUlXCawU.css"])))=>i.map(i=>d[i]);
2import{j as e,u as be,c as pe}from"./query-Cg3kfXWF.js";import{r as o,u as je,d as Ne}from"./router-2d4Df_P9.js";import{r as we,_ as ke,u as de,N as q,t as z,cs as W,B as D,k as ye,bb as ve,aL as te,ax as Se,ct as _e,cu as Ce,bP as Ie,P as Ee,cv as Te,cw as Ae,cx as Re,cy as Pe,aI as Oe,M as re,X as Fe,cz as Le,b9 as Be,bQ as De,cA as Ue,cB as Me,cC as Qe,cD as se,cE as Ke,aw as $e,y as He,z as Ve,cF as Xe,av as L}from"./index-4qCi1SPN.js";import{u as Ge}from"./useInvites-BCpi8gyJ.js";import{Browser as B}from"./index-pdgSm2UH.js";import{t as x}from"./ui-components-CZv-mgrC.js";import{m as P,c as U,al as qe,bk as Je,h as Ye,S as ze,X as We,ad as Ze,ae as ce,aj as J,bl as ae,bm as et,y as c,t as tt,ab as rt,w as st,bn as at,B as nt,af as ot,ap as C,bo as lt,N as it,a2 as dt,bp as ct,a8 as xt,bq as mt,bg as ut,l as ft,ac as ht}from"./icons-and-animation-DhDkwEqv.js";import"./react-vendor-Dyffda3n.js";import"./radix-ui-iYcaMoVP.js";import"./utilities-BCN5r5Be.js";import"./invites.service-CNzOPmdn.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};t.SENTRY_RELEASE={id:"75f2fd9f1a8569f4053a67ef07438687a5966aa6"}}catch{}})();try{(function(){var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new t.Error().stack;r&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[r]="affd9ebb-c4d2-4f23-97e2-140358d776c4",t._sentryDebugIdIdentifier="sentry-dbid-affd9ebb-c4d2-4f23-97e2-140358d776c4")})()}catch{}const gt=we("InAppReview",{web:()=>ke(()=>import("./web-DyMJO39z.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9])).then(t=>new t.InAppReviewWeb)}),Y="https://admin.stasht.app",bt=300,ee="stasht_admin_backup",Z="stasht_impersonate_permission",pt=300*1e3,ne=()=>{try{const t=localStorage.getItem(Z);if(!t)return null;const r=JSON.parse(t);return Date.now()-r.timestamp>pt?(localStorage.removeItem(Z),null):r.canImpersonate}catch{return null}},oe=t=>{const r={canImpersonate:t,timestamp:Date.now()};localStorage.setItem(Z,JSON.stringify(r))},jt=()=>{try{const t=localStorage.getItem(ee);if(!t)return null;const r=JSON.parse(t);return typeof r?.accessToken=="string"&&typeof r?.refreshToken=="string"&&typeof r?.userData=="string"&&typeof r?.adminEmail=="string"&&r.accessToken.length>0&&r.adminEmail.length>0?r:null}catch{return null}},Nt=t=>{const r=z.getTokens(),u=localStorage.getItem(W.USER_DATA);if(r&&u){const i={accessToken:r.accessToken,refreshToken:r.refreshToken,userData:u,adminEmail:t};localStorage.setItem(ee,JSON.stringify(i))}},le=()=>{localStorage.removeItem(ee)},wt=()=>{const{user:t}=de(),[r,u]=o.useState(!1),[i,b]=o.useState(""),[d,a]=o.useState([]),[I,y]=o.useState(!1),[N,E]=o.useState(!1),[v,O]=o.useState(!1),[M,S]=o.useState(()=>ne()),w=o.useRef(null),T=o.useRef(null),h=o.useRef(),k=jt(),p=!!k;o.useEffect(()=>{if(p){S(!0);return}const s=ne();if(s!==null){S(s);return}(async()=>{try{const j=await q.getAuthHeaders(),f=await fetch(`${Y}/api/users/impersonate/check`,{headers:j});if(f.ok){const l=await f.json();S(l.canImpersonate),oe(l.canImpersonate)}else S(!1),oe(!1)}catch{S(!1)}})()},[p]);const Q=M||p;o.useEffect(()=>{r&&!p&&(T.current&&setTimeout(()=>{T.current?.scrollIntoView({behavior:"smooth",block:"start"})},100),w.current&&setTimeout(()=>{w.current?.focus()},250))},[r,p]);const F=o.useCallback(async s=>{if(!s.trim()){a([]);return}y(!0);try{const m=await q.getAuthHeaders(),j=await fetch(`${Y}/api/users?search=${encodeURIComponent(s)}`,{headers:m});if(!j.ok)throw new Error("Search failed");const f=await j.json();a(f.users||[])}catch{x.error("Failed to search users")}finally{y(!1)}},[]);o.useEffect(()=>{if(h.current&&clearTimeout(h.current),!i.trim()){a([]);return}return h.current=setTimeout(()=>{F(i)},bt),()=>{h.current&&clearTimeout(h.current)}},[i,F]);const K=async s=>{E(!0);try{const m=t?.email;m&&Nt(m);const j=await q.getAuthHeaders(),f=await fetch(`${Y}/api/users/${s.user_id}/impersonate`,{method:"POST",headers:{...j,"Content-Type":"application/json"}});if(!f.ok){const V=await f.json().catch(()=>({}));throw new Error(V.message||"Impersonation failed")}const l=await f.json();await z.storeTokens(l.access_token,l.refresh_token);const H={user_id:l.user.user_id,email:l.user.email,sender_ids:l.user.sender_ids||[],is_admin:l.user.is_admin||!1,is_gated:l.user.is_gated??!1,activation_stage:l.user.activation_stage||"active",setup_complete:l.user.setup_complete,onboarding_progress:l.user.onboarding_progress,waitlist_progress:l.user.waitlist_progress};localStorage.setItem(W.USER_DATA,JSON.stringify(H)),x.success(`Now viewing as ${s.email||s.stasht_username||s.user_id}`),window.location.href="/home"}catch(m){le(),x.error(m instanceof Error?m.message:"Failed to impersonate user")}finally{E(!1)}},$=async()=>
2{if(k){O(!0);try{await z.storeTokens(k.accessToken,k.refreshToken),localStorage.setItem(W.USER_DATA,k.userData),le(),x.success("Exited session preview"),window.location.reload()}catch{x.error("Failed to switch back")}finally{O(!1)}}};return Q?p?e.jsx(P.div,{initial:{y:20,opacity:0},animate:{y:0,opacity:1},transition:{delay:.1},children:e.jsxs(P.button,{whileTap:{scale:.98},onClick:$,disabled:v,className:"w-full p-4 rounded-2xl bg-amber-50 dark:bg-amber-950/30 border border-amber-200 dark:border-amber-900/50 dark: flex items-center gap-3 disabled:opacity-50",children:[e.jsx("div",{className:"w-10 h-10 rounded-xl bg-gradient-to-br from-amber-500 to-amber-600 flex items-center justify-center",children:v?e.jsx(U,{className:"w-5 h-5 text-white animate-spin"}):e.jsx(qe,{className:"w-5 h-5 text-white"})}),e.jsxs("div",{className:"flex-1 text-left",children:[e.jsx("p",{className:"text-base font-medium text-amber-900 dark:text-amber-100",children:"Exit session preview"}),e.jsx("p",{className:"text-xs text-amber-600 dark:text-amber-400",children:"Back to admin session"})]})]})}):e.jsx(P.div,{ref:T,initial:{y:20,opacity:0},animate:{y:0,opacity:1},transition:{delay:.1},className:"scroll-mt-24",children:e.jsxs("div",{className:"rounded-2xl bg-red-50 dark:bg-red-950/30 border border-red-200 dark:border-red-900/50 overflow-hidden",children:[e.jsxs(P.button,{whileTap:{scale:.98},onClick:()=>u(!r),className:"w-full p-4 flex items-center gap-3",children:[e.jsx("div",{className:"w-10 h-10 rounded-xl bg-gradient-to-br from-red-500 to-red-600 flex items-center justify-center",children:e.jsx(Je,{className:"w-5 h-5 text-white"})}),e.jsxs("div",{className:"flex-1 text-left",children:[e.jsx("p",{className:"text-base font-medium text-red-900 dark:text-red-100",children:"Admin: Internal tools"}),e.jsx("p",{className:"text-xs text-red-600 dark:text-red-400",children:"Session debugging"})]})]}),e.jsx(Ye,{children:r&&e.jsx(P.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.2},className:"overflow-hidden",children:e.jsxs("div",{className:"border-t border-red-200/60 dark:border-red-900/40 p-4 space-y-3",children:[e.jsxs("div",{className:"relative",children:[e.jsx(ze,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground"}),e.jsx("input",{ref:w,type:"text",value:i,onChange:s=>b(s.target.value),placeholder:"Search by email, name, or handle...",className:"w-full pl-10 pr-10 py-2.5 rounded-xl bg-background border border-red-200 dark:border-red-800 text-sm text-foreground placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-red-500/50"}),i&&e.jsx("button",{type:"button",onClick:()=>{b(""),a([])},className:"absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground",children:e.jsx(We,{className:"w-4 h-4"})})]}),I&&e.jsx("div",{className:"flex items-center justify-center py-4",children:e.jsx(U,{className:"w-5 h-5 text-red-500 animate-spin"})}),!I&&d.length>0&&e.jsx("div",{className:"space-y-1 max-h-64 overflow-y-auto",children:d.slice(0,10).map(s=>e.jsxs("button",{type:"button",disabled:N,onClick:()=>K(s),className:"w-full p-3 rounded-lg bg-background border border-red-100 dark:border-red-900/30 dark: text-left disabled:opacity-50",children:[e.jsx("p",{className:"text-sm font-medium text-foreground truncate",children:s.email||s.stasht_username||s.user_name||s.user_id}),s.stasht_username&&s.email&&e.jsxs("p",{className:"text-xs text-muted-foreground truncate",children:["@",s.stasht_username]}),e.jsx("p",{className:"text-xs text-muted-foreground dark:text-muted-foreground truncate font-mono",children:s.user_id})]},s.user_id))}),!I&&i&&d.length===0&&e.jsx("p",{className:"text-center text-sm text-muted-foreground py-4",children:"No users found"}),N&&e.jsxs("div",{className:"flex items-center justify-center gap-2 py-4 text-red-600 dark:text-red-400",children:[e.jsx(U,{className:"w-4 h-4 animate-spin"}),e.jsx("span",{className:"text-sm",children:"Switching user..."})]})]})})})]})}):null},kt=({userEmail:t})=>{const[r,u]=o.useState(!1),i=async()=>{u(!0);try{await ye.resendVerification(t),x.success("Verification email sent! Please check your inbox.")}catch(b){const d=b instanceof Error?b.message:String(b);d.includes("rate limit")||d.includes("too many")?x.error("Please wait before requesting another verification email."):x.error(d||"Failed to send verification email")}finally{u(!1)}};return e.jsx("div",{className:"bg-yellow-50 dark:bg-yellow-900/20 border-l-4 border-yellow-400 py-2 px-3 rounded-lg",children:e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(Ze,{className:"h-4 w-4 text-yellow-600 dark:text-yellow-400 flex-shrink-0"}),e.jsx("div",{className:"flex-1 min-w-0",children:e.jsxs("p",{className:"text-sm text-yellow-800 dark:text-yellow-200",children:[e.jsx("span",{className:"font-medium",children:"Verify your email"}),e.jsx("br",{}),e.jsxs("span",{className:"text-yellow-700 dark:text-yellow-300",children:["Check your inbox for ",t]})]})}),e.jsx(D,{variant:"outline",size:"sm",className:"flex-shrink-0 text-xs h-7 px-2",onClick:i,disabled:r,children:r?e.jsx(U,{className:"h-3 w-3 animate-spin"}):e.jsxs(e.Fragment,{children:[e.jsx(ce,{className:"h-3 w-3 mr-1"}),e.jsx("span",{className:"hidden sm:inline",children:"Resend"})]})})]})})},ie=["joined","in","on board","showed up","came through","got the memo","in the club","signed up","locked in","pulled up","jumped in","
2said yes","here for it","on the list","in the fold","tagged in","stashin'","linked up","hopped on","in the mix","along for the ride","through the door","holdin' it down","made it","found us","at the table","in the crew","in the circle","in the room","tuned in","on the train","joined the party","on our side"];function yt(t){const r=Math.floor(Math.random()*ie.length);return`${t} ${ie[r]}!`}const Ft=()=>{const t=je(),r=Ne(),u=ve(),i=te(),{logout:b,user:d}=de(),{data:a,isLoading:I,error:y}=Se(),N=d?.is_admin??!1,{data:E}=Ge(),v=be(),{data:O,isLoading:M}=pe({queryKey:["notifications-inbox","summary"],queryFn:()=>_e.getInbox(50),enabled:!!d});o.useEffect(()=>{if(!u)return;const n=new URLSearchParams(r.search),g=n.get("x"),_=n.get("google");if(!g&&!_)return;if(_==="connected")x.success("Google account connected"),v.invalidateQueries({queryKey:["google-auth-status"]}),v.invalidateQueries({queryKey:["sign-in-methods"]});else if(_==="error"){const R=n.get("reason");x.error(R?`Google connect failed: ${R}`:"Google connect failed")}if(g==="connected")x.success("X account connected"),v.invalidateQueries({queryKey:["x-auth-status"]});else if(g==="error"){const R=n.get("reason");x.error(R?`X connect failed: ${R}`:"X connect failed")}n.delete("google"),n.delete("x"),n.delete("reason");const A=n.toString();t({pathname:r.pathname,search:A?`?${A}`:""},{replace:!0})},[u,r.pathname,r.search,t]);const w=(O?.items??[]).filter(n=>!n.read).length,T=M?"Loading...":w>0?`${w} unread`:"All caught up",h=()=>{t(Le())},k=()=>{t(Qe())},p=()=>{t(Me())},Q=()=>{t(Xe())},F=async()=>{if(!te()){window.open(se.IOS,"_blank");return}if(Ke()){const n="itms-apps://apps.apple.com/app/id6756032175?action=write-review",g="https://apps.apple.com/app/id6756032175?action=write-review";try{await B.open({url:n})}catch{try{await B.open({url:g})}catch{window.open(g,"_blank")}}}else try{await gt.requestReview()}catch{await B.open({url:se.ANDROID})}},K=o.useCallback(async()=>{const n=Ce.FEATUREBASE_PORTAL;if(i){await B.open({url:n});return}window.open(n,"_blank")},[i]),$=()=>{t($e())},s=()=>{window.open("mailto:[email protected]?subject=App%20Support","_blank")},m=()=>{t(He())},j=()=>{t(Ve())},f=()=>{window.open(L.INSTAGRAM,"_blank")},l=()=>{window.open(L.TIKTOK,"_blank")},H=()=>{window.open(L.TWITTER,"_blank")},V=()=>{window.open(L.FACEBOOK,"_blank")},X=()=>{b()},xe=()=>{t(Be())},me=()=>{t(De())},ue=()=>{t(Ue())},G=Math.max(E?.permalink?.landing_clicks??0,E?.permalink?.uses??0),fe=o.useMemo(()=>yt(G),[G]),he=n=>{if(!n)return"Nov '25";const g=new Date(n),_=g.toLocaleString("en-US",{month:"short"}),A=g.getFullYear().toString().slice(-2);return`${_} '${A}`},ge=a?.name||"User";return I?e.jsx(Ie,{path:Ee()}):y?e.jsx("div",{className:"min-h-screen pb-24 bg-background transition-colors duration-300 flex items-center justify-center",children:e.jsxs("div",{className:"text-center px-4",children:[e.jsx("p",{className:"text-lg font-semibold text-foreground mb-2",children:"Failed to load profile"}),e.jsx("p",{className:"text-sm text-muted-foreground mb-4",children:y instanceof Error?y.message:"An unexpected error occurred"}),e.jsxs("div",{className:"flex flex-col gap-3 sm:flex-row sm:justify-center",children:[e.jsx(D,{variant:"gradient",onClick:()=>window.location.reload(),children:"Retry"}),e.jsxs(D,{variant:"outline",onClick:X,children:[e.jsx(J,{className:"w-4 h-4"}),"Sign Out"]})]})]})}):e.jsxs("div",{className:"min-h-screen pb-24 lg:pb-8 bg-background transition-colors duration-300","data-page":"profile",children:[e.jsx("div",{className:"desktop:hidden",style:{height:"var(--sat)"}}),e.jsxs("div",{className:"px-4 sm:px-6 lg:px-8 pt-12 sm:pt-16 lg:pt-8 pb-8 mx-auto max-w-7xl",children:[!(d?.email_verified||a?.email_verified)&&(d?.email||a?.email)&&e.jsx("div",{className:"mb-6",children:e.jsx(kt,{userEmail:d?.email||a?.email||""})}),e.jsxs("div",{className:"lg:grid lg:grid-cols-2 lg:gap-8",children:[e.jsxs("div",{className:"lg:col-span-1 space-y-6",children:[e.jsxs("div",{className:"flex items-center gap-4","data-layout-slot":"profile-identity",children:[e.jsxs("div",{className:"flex flex-col items-center shrink-0",children:[e.jsxs("button",{onClick:h,className:"relative",children:[e.jsx("div",{className:"w-20 h-20 sm:w-24 sm:h-24 rounded-full bg-brand-gradient-radial p-1",children:e.jsx("div",{className:"w-full h-full rounded-full bg-card flex items-center justify-center overflow-hidden",children:a?.avatar_url?e.jsx("img",{src:a.avatar_url,alt:"Profile",className:"w-full h-full object-cover"}):e.jsx("div",{className:"w-full h-full bg-gradient-to-br from-orange-100 to-yellow-100 dark:from-orange-900/40 dark:to-yellow-900/40 flex items-center justify-center",children:e.jsx("span",{className:"text-3xl sm:text-4xl",children:"👤"})})})}),e.jsx("div",{className:"absolute bottom-0 right-0 w-7 h-7 sm:w-8 sm:h-8 rounded-full bg-brand-gradient border-2 border-background flex items-center justify-center",children:e.jsx(ae,{className:"w-3.5 h-3.5 sm:w-4 sm:h-4 text-white"})})]}),a?.stasht_username&&e.jsxs("p",{className:"text-xs text-muted-foreground mt-1.5",children:["@",a.stasht_username]})]}),e.jsxs("div",{className:"flex-1 min-w-0 space-y-1",children:[e.jsx("p",{className:"text-xl sm:text-2xl font-semibold text-foreground",children:ge}),a?.description?e.jsx("p",{className:"text-sm text-foreground line-clamp-2",children:a.description}):e.jsx("p",{className:"text-sm text-muted-foreground italic cursor-pointer",onClick:h,children:"Add bio"}),e.jsxs("div",{className:"inline-flex items-center gap-1.5 px-2.5 py-1 !mt-2 rounded-full bg-brand-gradient border border-brand-400/50",children:[e.jsx(et,{className:"w-3 h-3 text-white"}),e.jsxs("p",{className:"text-[10px] text-white font-medium whitespace-nowrap",children:["Stash'n since ",he(a?.created_at)]})]})]})]}),e.jsxs("div",{className:"grid grid-cols-4 gap-2","data-layout-slot":"profile-stats",children:[e.jsxs("button",{onClick:xe,className:"bg-card/80 border border-border rounded-2xl p-3 text-center transition-colors cursor-pointer",children:[e.jsx("p",{className:"text-xl text-foreground mb-1",children:a?.stats?.total_stashes??0}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"Stashes"})]}),e.jsxs("div",{className:"bg-card/80 border border-border rounded-2xl p-3 text-center",children:[e.jsx("p",{className:"text-xl text-foreground mb-1",children:a?.stats?.total_tags??0}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"Tags"})]}),e.jsxs("button",{onClick:me,className:"bg-card/80 border border-border rounded-2xl p-3 text-center transition-colors cursor-pointer",children:[e.jsx("p",{className:"text-xl text-foreground mb-1",children:a?.stats?.total_events??
20}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"Events"})]}),e.jsxs("button",{onClick:ue,className:"bg-card/80 border border-border rounded-2xl p-3 text-center transition-colors cursor-pointer",children:[e.jsx("p",{className:"text-xl text-foreground mb-1",children:a?.stats?.total_places??0}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"Places"})]})]}),e.jsx("div",{className:"hidden lg:block pt-4",children:e.jsxs("button",{onClick:X,className:"w-full p-4 rounded-2xl bg-card/80 border border-border transition-colors flex items-center gap-3",children:[e.jsx("div",{className:"w-10 h-10 rounded-xl bg-gradient-to-br from-gray-100 to-gray-50 dark:from-gray-700 dark:to-gray-800 border border-border dark:border-gray-600 flex items-center justify-center",children:e.jsx(J,{className:"w-5 h-5 text-foreground"})}),e.jsx("p",{className:"text-base text-foreground flex-1 text-left",children:"Sign Out"}),e.jsx(c,{className:"w-5 h-5 text-muted-foreground"})]})})]}),e.jsxs("div",{className:"lg:col-span-1 space-y-6","data-layout-slot":"profile-actions",children:[e.jsxs("div",{children:[e.jsx("p",{className:"px-1 mb-3 text-sm font-medium text-foreground",children:"Enjoying Stasht?"}),e.jsxs("div",{className:"rounded-2xl bg-card/80 border border-border p-4 flex items-center gap-3",children:[e.jsx("div",{className:"w-10 h-10 rounded-xl bg-blue-100/80 dark:bg-blue-900/40 flex items-center justify-center flex-shrink-0",children:e.jsx(tt,{className:"w-5 h-5 text-blue-600 dark:text-blue-400"})}),e.jsx("div",{className:"flex-1 text-left min-w-0",children:e.jsx("p",{className:"text-base text-foreground",children:G>0?fe:"Tell your people!"})}),e.jsx(D,{variant:"gradient",size:"sm",onClick:()=>t(Te()),children:"Invite Friends"})]})]}),e.jsxs("div",{children:[e.jsx("p",{className:"px-1 mb-3 text-sm font-medium text-foreground",children:"Quick Actions"}),e.jsx("div",{className:"mb-2",children:e.jsx(wt,{})}),e.jsxs("div",{className:"grid grid-cols-2 gap-2 mb-2",children:[e.jsxs("button",{onClick:()=>t(Ae()),className:"rounded-2xl bg-card/80 border border-border transition-colors flex items-center gap-3 p-3",children:[e.jsx("div",{className:"w-10 h-10 rounded-xl bg-orange-100/80 dark:bg-orange-900/40 flex items-center justify-center flex-shrink-0",children:e.jsx(rt,{className:"w-5 h-5 text-orange-600 dark:text-orange-400"})}),e.jsx("p",{className:"text-sm font-medium text-foreground text-left",children:"Your Roundups"})]}),e.jsxs("button",{onClick:p,className:"rounded-2xl bg-card/80 border border-border flex items-center gap-3 p-3 transition-colors",children:[e.jsxs("div",{className:"relative w-10 h-10 rounded-xl bg-blue-100/80 dark:bg-blue-900/40 flex items-center justify-center flex-shrink-0",children:[e.jsx(st,{className:"w-5 h-5 text-blue-600 dark:text-blue-400"}),w>0&&e.jsx("span",{className:"absolute top-1 right-1 h-2.5 w-2.5 rounded-full bg-red-500 ring-2 ring-card/80"})]}),e.jsxs("div",{className:"flex-1 text-left",children:[e.jsx("p",{className:"text-sm font-medium text-foreground",children:"Notifications"}),e.jsx("p",{className:"text-xs text-muted-foreground",children:T})]})]}),e.jsxs("button",{onClick:()=>t(Re()),className:"rounded-2xl bg-card/80 border border-border transition-colors flex items-center gap-3 p-3",children:[e.jsx("div",{className:"w-10 h-10 rounded-xl bg-gradient-to-br from-brand-600 to-brand-500 flex items-center justify-center flex-shrink-0",children:e.jsx(at,{className:"w-5 h-5 text-white"})}),e.jsx("p",{className:"text-sm font-medium text-foreground text-left",children:"Set up sharing"})]}),e.jsxs("button",{onClick:()=>t(Pe()),className:"rounded-2xl bg-card/80 border border-border transition-colors flex items-center gap-3 p-3",children:[e.jsx("div",{className:"w-10 h-10 rounded-xl bg-gradient-to-br from-blue-500 to-blue-600 flex items-center justify-center flex-shrink-0",children:e.jsx(nt,{className:"w-5 h-5 text-white"})}),e.jsx("p",{className:"text-sm font-medium text-foreground text-left",children:"Learn the basics"})]})]}),i&&e.jsxs("button",{onClick:()=>t(Oe()),className:"w-full rounded-2xl bg-card/80 border border-border flex items-center gap-3 p-3 transition-colors",children:[e.jsx("div",{className:"w-10 h-10 rounded-xl bg-gradient-to-br from-orange-100 to-amber-50 dark:from-orange-900/40 dark:to-amber-800/40 border border-orange-200 dark:border-orange-700 flex items-center justify-center flex-shrink-0",children:e.jsx(ot,{className:"w-5 h-5 text-orange-600 dar
2k:text-orange-400"})}),e.jsxs("div",{className:"flex-1 text-left",children:[e.jsx("p",{className:"text-sm font-medium text-foreground",children:"QR code login"}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"Scan the code on your computer"})]}),e.jsx("span",{className:"text-[10px] font-semibold px-2 py-0.5 rounded-full bg-brand-100 dark:bg-brand-900/40 text-brand-600 dark:text-brand-400",children:"NEW"}),e.jsx(c,{className:"w-5 h-5 text-muted-foreground"})]})]}),!i&&e.jsxs("div",{children:[e.jsxs("div",{className:"px-1 mb-1 flex items-center gap-2",children:[e.jsx("p",{className:"text-sm font-medium text-foreground",children:"Bulk import"}),e.jsx("span",{className:"text-[10px] font-semibold px-2 py-0.5 rounded-full bg-brand-100 dark:bg-brand-900/40 text-brand-600 dark:text-brand-400",children:"NEW"})]}),e.jsx("p",{className:"px-1 mb-3 text-xs text-muted-foreground",children:"Everything you've saved from Instagram, TikTok, YouTube, and more — all automatically organized!"}),e.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[e.jsxs("a",{href:re.CHROME_EXTENSION,target:"_blank",rel:"noopener noreferrer",className:"rounded-2xl bg-card/80 border border-border flex items-center gap-3 p-3 transition-colors",children:[e.jsx("div",{className:"w-10 h-10 rounded-xl flex items-center justify-center flex-shrink-0",children:e.jsx("img",{src:"https://www.google.com/chrome/static/images/chrome-logo-m100.svg",alt:"Chrome",className:"w-7 h-7"})}),e.jsx("p",{className:"text-sm font-medium text-foreground flex-1 text-left",children:"Chrome Extension"}),e.jsx(C,{className:"w-5 h-5 text-muted-foreground"})]}),e.jsxs("a",{href:re.SAFARI_EXTENSION,target:"_blank",rel:"noopener noreferrer",className:"rounded-2xl bg-card/80 border border-border flex items-center gap-3 p-3 transition-colors",children:[e.jsx("div",{className:"w-10 h-10 rounded-xl flex items-center justify-center flex-shrink-0",children:e.jsx("img",{src:"https://developer.apple.com/assets/elements/icons/safari/safari-96x96_2x.png",alt:"Safari",className:"w-7 h-7"})}),e.jsx("p",{className:"text-sm font-medium text-foreground flex-1 min-w-0 text-left truncate",children:"Stasht for Safari"}),e.jsx(C,{className:"w-5 h-5 text-muted-foreground"})]})]})]}),e.jsxs("div",{children:[e.jsx("p",{className:"px-1 mb-3 text-sm font-medium text-foreground",children:"Settings"}),e.jsxs("div",{className:" bg-card/80 border border-border rounded-2xl overflow-hidden",children:[e.jsxs("button",{onClick:h,className:"w-full p-4 flex items-center gap-3 border-b border-border transition-colors",children:[e.jsx("div",{className:"w-10 h-10 rounded-xl bg-gradient-to-br from-gray-100 to-gray-50 dark:from-gray-700 dark:to-gray-800 border border-border dark:border-gray-600 flex items-center justify-center",children:e.jsx(ae,{className:"w-5 h-5 text-foreground"})}),e.jsx("p",{className:"text-base text-foreground flex-1 text-left",children:"Edit Profile"}),e.jsx(c,{className:"w-5 h-5 text-muted-foreground"})]}),e.jsxs("button",{onClick:k,className:"w-full p-4 flex items-center gap-3 transition-colors",children:[e.jsx("div",{className:"w-10 h-10 rounded-xl bg-gradient-to-br from-gray-100 to-gray-50 dark:from-gray-700 dark:to-gray-800 border border-border dark:border-gray-600 flex items-center justify-center",children:e.jsx(lt,{className:"w-5 h-5 text-foreground"})}),e.jsx("p",{className:"text-base text-foreground flex-1 text-left",children:"Account Settings"}),e.jsx(c,{className:"w-5 h-5 text-muted-foreground"})]})]})]}),e.jsxs("div",{children:[e.jsx("p",{className:"px-1 mb-3 text-sm font-medium text-foreground",children:"Support & Resources"}),e.jsxs("div",{className:" bg-card/80 border border-border rounded-2xl overflow-hidden",children:[e.jsxs("button",{onClick:F,className:"w-full p-4 flex items-center gap-3 border-b border-border transition-colors",children:[e.jsx("div",{className:"w-10 h-10 rounded-xl bg-yellow-100/80 dark:bg-yellow-900/40 flex items-center justify-center flex-shrink-0",children:e.jsx(it,{className:"w-5 h-5 text-yellow-600 dark:text-yellow-400"})}),e.jsx("p",{className:"text-base text-foreground flex-1 text-left",children:"Rate Stasht"}),e.jsx(c,{className:"w-5 h-5 text-muted-foreground"})]}),e.jsxs("button",{type:"button",onClick:K,className:"w-full p-4 flex items-center gap-3 border-b border-border transition-colors",children:[e.jsx("div",{className:"w-10 h-10 rounded-xl bg-purple-100/80 dark:bg-purple-900/40 flex items-center justify-center flex-shrink-0",children:e.jsx(dt,{className:"w-5 h-5 text-purple-600 dar
2k:text-purple-400"})}),e.jsx("p",{className:"text-base text-foreground flex-1 text-left",children:"Send Feedback"}),e.jsx(c,{className:"w-5 h-5 text-muted-foreground"})]}),e.jsxs("button",{onClick:$,className:"w-full p-4 flex items-center gap-3 border-b border-border transition-colors",children:[e.jsx("div",{className:"w-10 h-10 rounded-xl bg-gradient-to-br from-blue-100 to-blue-50 dark:from-muted dark:to-muted border border-blue-200 dark:border-gray-700 flex items-center justify-center",children:e.jsx(ct,{className:"w-5 h-5 text-blue-600 dark:text-blue-400"})}),e.jsx("p",{className:"text-base text-foreground flex-1 text-left",children:"FAQ"}),e.jsx(c,{className:"w-5 h-5 text-muted-foreground"})]}),e.jsxs("button",{onClick:s,className:"w-full p-4 flex items-center gap-3 border-b border-border transition-colors",children:[e.jsx("div",{className:"w-10 h-10 rounded-xl bg-gradient-to-br from-green-100 to-green-50 dark:from-green-900/40 dark:to-green-800/40 border border-green-200 dark:border-green-700 flex items-center justify-center",children:e.jsx(ce,{className:"w-5 h-5 text-green-600 dark:text-green-400"})}),e.jsx("p",{className:"text-base text-foreground flex-1 text-left",children:"Get Support"}),e.jsx(c,{className:"w-5 h-5 text-muted-foreground"})]}),e.jsxs("button",{onClick:m,className:"w-full p-4 flex items-center gap-3 border-b border-border transition-colors",children:[e.jsx("div",{className:"w-10 h-10 rounded-xl bg-gradient-to-br from-gray-100 to-gray-50 dark:from-gray-700 dark:to-gray-800 border border-border dark:border-gray-600 flex items-center justify-center",children:e.jsx(xt,{className:"w-5 h-5 text-foreground"})}),e.jsx("p",{className:"text-base text-foreground flex-1 text-left",children:"Terms of Service"}),e.jsx(c,{className:"w-5 h-5 text-muted-foreground"})]}),e.jsxs("button",{onClick:j,className:"w-full p-4 flex items-center gap-3 border-b border-border transition-colors",children:[e.jsx("div",{className:"w-10 h-10 rounded-xl bg-gradient-to-br from-gray-100 to-gray-50 dark:from-gray-700 dark:to-gray-800 border border-border dark:border-gray-600 flex items-center justify-center",children:e.jsx(mt,{className:"w-5 h-5 text-foreground"})}),e.jsx("p",{className:"text-base text-foreground flex-1 text-left",children:"Privacy Policy"}),e.jsx(c,{className:"w-5 h-5 text-muted-foreground"})]}),e.jsxs("button",{onClick:Q,disabled:!N,className:`w-full p-4 flex items-center gap-3 transition-colors ${N?"":"cursor-not-allowed opacity-60"}`,children:[e.jsx("div",{className:"w-10 h-10 rounded-xl bg-orange-100/80 dark:bg-orange-900/40 border border-border dark:border-gray-600 flex items-center justify-center",children:e.jsx(ut,{className:"w-5 h-5 text-orange-600 dark:text-orange-400"})}),e.jsxs("div",{className:"flex-1 text-left",children:[e.jsx("p",{className:"text-base text-foreground",children:"Stasht AI"}),!N&&e.jsx("p",{className:"text-xs text-muted-foreground",children:"Coming soon"})]}),N&&e.jsx(c,{className:"w-5 h-5 text-muted-foreground"})]})]})]}),e.jsxs("div",{children:[e.jsx("p",{className:"px-1 mb-3 text-sm font-medium text-foreground",children:"Community"}),e.jsxs("div",{className:" bg-card/80 border border-border rounded-2xl overflow-hidden",children:[e.jsxs("button",{onClick:f,className:"w-full p-4 flex items-center gap-3 border-b border-border transition-colors",children:[e.jsx("div",{className:"w-10 h-10 rounded-xl bg-gradient-to-r from-pink-500 to-orange-500 flex items-center justify-center",children:e.jsx(ft,{className:"w-5 h-5 text-white"})}),e.jsx("p",{className:"text-base text-foreground flex-1 text-left",children:"Follow on Instagram"}),e.jsx(C,{className:"w-5 h-5 text-muted-foreground"})]}),e.jsxs("button",{onClick:l,className:"w-full p-4 flex items-center gap-3 border-b border-border transition-colors",children:[e.jsx("div",{className:"w-10 h-10 rounded-xl bg-gradient-to-r from-black to-gray-800 flex items-center justify-center",children:e.jsx("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"currentColor",className:"text-white",children:e.jsx("path",{d:"M19.59 6.69a4.83 4.83 0 0 1-3.77-4.25V2h-3.45v13.67a2.89 2.89 0 0 1-5.2 1.74 2.89 2.89 0 0 1 2.31-4.64 2.93 2.93 0 0 1 .88.13V9.4a6.84 6.84 0 0 0-1-.05A6.33 6.33 0 0 0 5 20.1a6.34 
26.34 0 0 0 10.86-4.43v-7a8.16 8.16 0 0 0 4.77 1.52v-3.4a4.85 4.85 0 0 1-1-.1z"})})}),e.jsx("p",{className:"text-base text-foreground flex-1 text-left",children:"Follow on TikTok"}),e.jsx(C,{className:"w-5 h-5 text-muted-foreground"})]}),e.jsxs("button",{onClick:H,className:"w-full p-4 flex items-center gap-3 border-b border-border transition-colors",children:[e.jsx("div",{className:"w-10 h-10 rounded-xl bg-gradient-to-r from-black to-gray-800 flex items-center justify-center text-white",children:e.jsx(Fe,{size:20})}),e.jsx("p",{className:"text-base text-foreground flex-1 text-left",children:"Follow on X"}),e.jsx(C,{className:"w-5 h-5 text-muted-foreground"})]}),e.jsxs("button",{onClick:V,className:"w-full p-4 flex items-center gap-3 transition-colors",children:[e.jsx("div",{className:"w-10 h-10 rounded-xl bg-gradient-to-r from-blue-600 to-blue-700 flex items-center justify-center",children:e.jsx(ht,{className:"w-5 h-5 text-white"})}),e.jsx("p",{className:"text-base text-foreground flex-1 text-left",children:"Join Facebook Group"}),e.jsx(C,{className:"w-5 h-5 text-muted-foreground"})]})]})]}),e.jsx("div",{className:"lg:hidden",children:e.jsxs("button",{onClick:X,className:"w-full p-4 rounded-2xl bg-card/80 border border-border transition-colors flex items-center gap-3",children:[e.jsx("div",{className:"w-10 h-10 rounded-xl bg-gradient-to-br from-gray-100 to-gray-50 dark:from-gray-700 dark:to-gray-800 border border-border dark:border-gray-600 flex items-center justify-center",children:e.jsx(J,{className:"w-5 h-5 text-foreground"})}),e.jsx("p",{className:"text-base text-foreground flex-1 text-left",children:"Sign Out"}),e.jsx(c,{className:"w-5 h-5 text-muted-foreground"})]})})]})]})]})]})};export{Ft as default};
3//# sourceMappingURL=Profile-ZXnpOMJC.js.map

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.