PageSourceSearch

https://dashboard.ieeeatucsd.org/assets/settings-C-RF68b1.js

js ieeeatucsd.org collected 2026-10-10 02:23:44 UTC 23,133 bytes, 1 lines download raw bytes

1import{c as de,E as ce,r as n,j as e,d as B,e as oe,f as _,S as l,v as m}from"./index-C4wyilnD.js";import{B as t}from"./button-D65knwuP.js";import"./MobileShellContext-DIYDWyHS.js";import{I as x}from"./input-T40qtfsY.js";import{R as W}from"./ResponsiveOverlay-vj7ADbbu.js";import{c as I}from"./createLucideIcon-BQnceBjt.js";import{S as X,A as me,h as ue,a as xe,b as he,c as fe,d as pe,e as je,f as ge,g as be}from"./switch-Cc_C841Y.js";import{L as g}from"./label-BNJ2NFTT.js";import{u as ve}from"./use-mobile-DdR8w3xJ.js";import{a as z}from"./useAuthedConvex-YS694lce.js";import{a as Ne}from"./formatters-lQg4jS3k.js";import{d as ye,u as we,v as ke}from"./resumeUpload-CbFOIZW1.js";import{S as ee}from"./sparkles-BMqsVMpO.js";import{S as $}from"./save-DEM1jghJ.js";import{C as Ce}from"./circle-alert-C5kVW-m8.js";import{C as Se}from"./circle-check-big-CgGqPxdD.js";import{F as se}from"./file-text-DXeL_jMb.js";import{U as S}from"./upload-Rwp5eRAY.js";import{S as ae}from"./shield-Ev0Wa5rT.js";import"./x-9fFNB6hv.js";import"./index-DkNYeEWO.js";const Ie=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}],["path",{d:"M7 20.662V19a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v1.662",key:"154egf"}]],Ae=I("circle-user",Ie);const Re=[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]],Fe=I("monitor",Re);const De=[["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"}]],Pe=I("moon",De);const Ee=[["path",{d:"M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z",key:"e79jfc"}],["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}]],re=I("palette",Ee);const Ue=[["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"}]],Me=I("sun",Ue),_e=[{value:"system",label:"System",description:"Match your device",icon:Fe},{value:"light",label:"Light",description:"Always light",icon:Me},{value:"dark",label:"Dark",description:"Always dark",icon:Pe}];function le(){const s=de.c(7),{theme:O,setTheme:i}=ce(),[b,A]=n.useState(!1);let v,N;s[0]===Symbol.for("react.memo_cache_sentinel")?(v=()=>{A(!0)},N=[],s[0]=v,s[1]=N):(v=s[0],N=s[1]),n.useEffect(v,N);const C=b?O:"system";let u;s[2]!==C||s[3]!==i?(u=_e.map(y=>{const{value:w,label:R,description:d,icon:F}=y,c=C===w;return e.jsxs("button",{type:"button",role:"radio","aria-checked":c,onClick:()=>i(w),className:B("motion-press group relative flex flex-col items-start gap-3 rounded-md border p-3 text-left transition-[background-color,border-color,box-shadow] duration-150 ease-[var(--ease-geist)]","hover:bg-ds-gray-100","focus-visible:outline-none focus-visible:shadow-[0_0_0_2px_var(--focus-ring-gap),0_0_0_4px_var(--ring)]",c?"border-ds-gray-1000 bg-ds-gray-100 shadow-raised":"border-border bg-background"),children:[e.jsx("div",{className:B("flex h-9 w-9 items-center justify-center rounded-[6px] border transition-colors",c?"border-ds-gray-1000 bg-primary text-primary-foreground":"border-border bg-muted text-muted-foreground group-hover:text-foreground"),children:e.jsx(F,{className:"h-4 w-4","aria-hidden":!0})}),e.jsxs("div",{className:"min-w-0 space-y-0.5",children:[e.jsx("p",{className:"text-sm font-medium leading-none",children:R}),e.jsx("p",{className:"text-xs text-muted-foreground",children:d})]}),e.jsx("span",{className:B("absolute right-3 top-3 h-2 w-2 rounded-full transition-opacity",c?"bg-ds-blue-700 opacity-100":"opacity-0"),"aria-hidden":!0})]},w)}),s[2]=C,s[3]=i,s[4]=u):u=s[4];let p;return s[5]!==u?(p=e.jsx("div",{className:"grid grid-cols-1 gap-2 sm:grid-cols-3",role:"radiogroup","aria-label":"Appearance",children:u}),s[5]=u,s[6]=p):p=s[6],p}function ls(){const{user:s,isLoading:O,logtoId:i}=oe(),b=ve(),A=z(_.users.updateProfile),v=z(_.users.generateResumeUploadUrl),N=z(_.users.setResume),C=z(_.users.deleteResume),[u,p]=n.useState(!1),[y,w]=n.useState(!1),[R,d]=n.useState(null),[F,c]=n.useState(null),[r,j]=n.useState({name:"",pid:"",major:"",graduationYear:"",memberId:"",zelleInformation:""}),[Y,T]=n.useState(!0),[o,D]=n.useState(null),[h,q]=n.useState(!1),[V,G]=n.useState(!1),[f,H]=n.useState(!1),[J,k]=n.useState(!1),[te,P]=n.useState(!1),E=s?.resumeUrl;n.useEffect(()=>{s&&(j({name:s.name||"",pid:s.pid||"",major:s.major||"",graduationYear:s.graduationYear?.toString()||"",memberId:s.memberId||"",zelleInformation:s.zelleInformation||""}),T(s.aiFeaturesEnabled!==!1))},[s]);const Z=()=>s?.signInMethod==="logto"||s?.signInMethod!=="email",ne=async()=>
1{if(i){p(!0),d(null),c(null);try{await A({logtoId:i,...r.name&&{name:r.name},...r.pid&&{pid:r.pid},...r.major&&{major:r.major},...r.graduationYear&&{graduationYear:parseInt(r.graduationYear)},...r.memberId&&{memberId:r.memberId},...r.zelleInformation&&{zelleInformation:r.zelleInformation},syncPublicProfile:!0}),c("Profile updated successfully!"),m.success("Profile updated successfully")}catch(a){d(a.message||"Failed to update profile"),m.error("Failed to update profile")}finally{p(!1)}}},L=a=>{if(!a){D(null);return}const M=ke(a);if(M){d(M),m.error(M),D(null);return}D(a),d(null)},U=async()=>{if(!(!o||!i)){q(!0),d(null),c(null);try{const a=await we(o,()=>v({logtoId:i}));await N({logtoId:i,storageId:a,fileName:o.name}),D(null),c("Resume uploaded successfully!"),m.success("Resume uploaded successfully")}catch(a){d("Failed to upload resume: "+(a.message||"Unknown error")),m.error("Failed to upload resume")}finally{q(!1)}}},ie=async()=>{if(!(!E||!s?.resume)){G(!0);try{await ye(E,s.resume.fileName)}catch{d("Failed to download resume"),m.error("Failed to download resume")}finally{G(!1)}}},K=async()=>{if(!i||!s?.resume)return!1;H(!0),d(null),c(null);try{return await C({logtoId:i}),c("Resume removed successfully!"),m.success("Resume removed successfully"),!0}catch(a){return d("Failed to remove resume: "+(a.message||"Unknown error")),m.error("Failed to remove resume"),!1}finally{H(!1)}},Q=async()=>{if(i){w(!0),d(null),c(null);try{await A({logtoId:i,aiFeaturesEnabled:Y,syncPublicProfile:!1}),c("AI preferences updated successfully!"),m.success("AI preferences updated")}catch(a){d(a.message||"Failed to update AI preferences"),m.error("Failed to update AI preferences")}finally{w(!1)}}};return O?e.jsx("div",{className:"flex-1 overflow-auto p-6",children:e.jsxs("div",{className:"max-w-4xl mx-auto space-y-6",children:[e.jsxs("div",{className:"mb-8",children:[e.jsx(l,{className:"h-8 w-48 mb-2"}),e.jsx(l,{className:"h-4 w-96"})]}),e.jsxs("div",{className:"rounded-md border bg-card p-4 md:p-6",children:[e.jsxs("div",{className:"flex items-center space-x-3 mb-4 md:mb-6",children:[e.jsx("div",{className:"w-8 h-8 bg-ds-gray-100 rounded-lg flex items-center justify-center flex-shrink-0",children:e.jsx(re,{className:"w-5 h-5 text-foreground"})}),e.jsxs("div",{children:[e.jsx("h2",{className:"text-base md:text-lg font-semibold",children:"Appearance"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Choose how the dashboard looks on this device"})]})]}),e.jsx(le,{})]}),e.jsxs("div",{className:"rounded-md border bg-card p-4 md:p-6",children:[e.jsxs("div",{className:"flex items-center space-x-3 mb-4 md:mb-6",children:[e.jsx("div",{className:"w-8 h-8 bg-ds-amber-100 rounded-lg flex items-center justify-center flex-shrink-0",children:e.jsx(ee,{className:"w-5 h-5 text-tone-warning"})}),e.jsx("h2",{className:"text-base md:text-lg font-semibold",children:"AI Features"})]}),e.jsx("div",{className:"rounded-lg border p-4 space-y-3",children:e.jsxs("div",{className:"flex items-center justify-between gap-4",children:[e.jsxs("div",{children:[e.jsx("p",{className:"font-medium",children:"Enable AI assistant and auto parsing"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Controls Officer AI chat, receipt parsing, invoice parsing, and payment detail extraction."})]}),e.jsx(X,{checked:Y,onCheckedChange:T,"aria-label":"Enable AI features"})]})}),e.jsx("div",{className:"flex justify-end mt-6",children:e.jsxs(t,{onClick:Q,disabled:y,children:[e.jsx($,{className:"h-4 w-4 mr-2"}),y?"Saving...":"Save AI Preferences"]})})]}),e.jsxs("div",{className:"rounded-md border bg-card p-6",children:[e.jsx(l,{className:"h-6 w-32 mb-6"}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{children:[e.jsx(l,{className:"h-4 w-16 mb-2"}),e.jsx(l,{className:"h-10 w-full"})]}),e.jsxs("div",{children:[e.jsx(l,{className:"h-4 w-16 mb-2"}),e.jsx(l,{className:"h-10 w-full"})]}),e.jsxs("div",{children:[e.jsx(l,{className:"h-4 w-20 mb-2"}),e.jsx(l,{className:"h-10 w-full"})]})]}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{children:[e.jsx(l,{className:"h-4 w-24 mb-2"}),e.jsx(l,{className:"h-10 w-full"})]}),e.jsxs("div",{children:[e.jsx(l,{className:"h-4 w-20 mb-2"}),e.jsx(l,{className:"h-10 w-full"})]}),e.jsxs("div",{children:[e.jsx(l,{className:"h-4 w-16 mb-2"}),e.jsx(l,{className:"h-24 w-full"})]})]})]}),e.jsx("div",{className:"mt-6 flex justify-end",children:e.jsx(l,{className:"h-10 w-32"})})]}),e.jsxs("div",{className:"rounded-md border bg-card p-6",children:[e.jsx(l,{className:"h-6 w-24 mb-6"}),e.jsx("div",{className:"border-2 border-dashed rounded-lg p-8",children:e.jsxs("div",{className:"text-center space-y-4",children:[e.jsx(l,{className:"h-12 w-12 mx-auto rounded"}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(l,{className:"h-4 w-48 mx-auto"}),e.jsx(l,{className:"h-3 w-32 mx-auto"})]}),e.jsx(l,{className:"h-10 w-24 mx-auto"})]})})]})]})}):e.jsxs("div",{className:"flex-1 overflow-auto",children:[e.jsx("header",{className:"bg-background shadow-sm border-b px-6 py-4",children:e.jsx("div",{className:"flex items-center justify-between",children:e.jsxs("div",{children:[e.jsx("h1",{className:"text-2xl font-bold tracking-tight",children:"Settings"}),e.jsx("p",{className:"text-muted-foreground",children:"Manage your account settings and preferences"})]})})}),e.jsx("main",{className:"px-4 py-5 sm:px-6 md:p-6",children:e.jsxs("div",{className:"mx-auto max-w-4xl min-w-0 space-y-4 md:space-y-6",children:[R&&e.jsxs("div",{className:"flex items-center space-x-2 p-4 bg-ds-red-100 border border-ds-red-100 rounded-lg text-tone-danger",children:[e.jsx(Ce,{className:"w-5 h-5 flex-shrink-0"}),e.jsx("span",{className:"text-sm md:text-base",children:R})]}),F&&e.jsxs("div",{className:"flex items-center space-x-2 p-4 bg-ds-green-100 border border-ds-green-100 rounded-lg text-tone-success",children:[e.jsx(Se,{className:"w-5 h-5 flex-shrink-0"}),e.jsx("span",{className:"text-sm md:text-base",children:F})]}),e.jsxs("div",{className:"rounded-md border bg-card p-4 md:p-6",children:[e.jsxs("div",{className:"flex items-center space-x-3 mb-4 md:mb-6",children:[e.jsx("div",{className:"w-8 h-8 bg-ds-gray-100 rounded-lg flex items-center justify-center flex-shrink-0",children:e.jsx(re,{className:"w-5 h-5 text-foreground"})}),e.jsxs("div",{children:[e.jsx("h2",{className:"text-base md:text-lg font-semibold",children:"Appearance"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Choose how the dashboard looks on this device"})]})]}),e.jsx(le,{})]}),e.jsxs("div",{className:"rounded-md border bg-card p-4 md:p-6",children:[e.jsxs("div",{className:"flex items-center space-x-3 mb-4 md:mb-6",children:[e.jsx("div",{className:"w-8 h-8 bg-ds-amber-100 rounded-lg flex items-center justify-center flex-shrink-0",children:e.jsx(ee,{className:"w-5 h-5 text-tone-warning"})}),e.jsx("h2",{className:"text-base md:text-lg font-semibold",children:"AI Features"})]}),e.jsx("div",{className:"rounded-lg border p-4 space-y-3",children:e.jsxs("div",{className:"flex items-center justify-between gap-4",children:[e.jsxs("div",{children:[e.jsx("p",{className:"font-medium",children:"Enable AI assistant and auto parsing"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Controls Officer AI chat, receipt parsing, invoice parsing, and payment detail extraction."})]}),e.jsx(X,{checked:Y,onCheckedChange:T,"aria-label":"Enable AI features"})]})}),e.jsx("div",{className:"flex justify-end mt-6",children:e.jsxs(t,{onClick:Q,disabled:y,children:[e.jsx($,{className:"h-4 w-4 mr-2"}),y?"Saving...":"Save AI Preferences"]})})]}),e.jsxs("div",{className:"rounded-md border bg-card p-4 md:p-6",children:[e.jsxs("div",{className:"flex items-center space-x-3 mb-4 md:mb-6",children:[e.jsx("div",{className:"w-8 h-8 bg-ds-blue-100 rounded-lg flex items-center justify-center flex-shrink-0",children:e.jsx(Ae,{className:"w-5 h-5 text-tone-info"})}),e.jsx("h2",{className:"text-base md:text-lg font-semibold",children:"Profile Settings"})]}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4 md:gap-6",children:[e.jsxs("div",{children:[e.jsx(g,{htmlFor:"name",children:"Full Name"}),e.jsx(x,{id:"name",value:r.name,onChange:a=>j({...r,name:a.target.value}),placeholder:"John Doe"})]}),e.jsxs("div",{children:[e.jsx(g,{htmlFor:"email",children:"Email"}),e.jsx(x,{id:"email",value:s?.email||"",disabled:!0,className:"bg-muted cursor-not-allowed"}),e.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:Z()?"Email cannot be changed for OAuth users":"Email cannot be changed"})]}),e.jsxs("div",{children:[e.jsx(g,{htmlFor:"pid",children:"Student ID (TSN)"}),e.jsx(x,{id:"pid",value:r.pid,onChange:a=>j({...r,pid:a.target.value}),placeholder:"123456789"})]}),e.jsxs("div",{children:[e.jsx(g,{htmlFor:"major",children:"Major"}),e.jsx(x,{id:"major",value:r.major,onChange:a=>j({...r,major:a.target.value}),placeholder:"Computer Science"})]}),e.jsxs("div",{children:[e.jsx(g,{htmlFor:"graduationYear",children:"Expected Graduation Year"}),e.jsx(x,{id:"graduationYear",type:"number",value:r.graduationYear,onChange:a=>j({...r,graduationYear:a.target.value}),placeholder:"2025",min:"2024",max:"2030"})]}),e.jsxs("div",{children:[e.jsx(g,{htmlFor:"memberId",children:"IEEE Member ID (Optional)"}),e.jsx(x,{id:"memberId",value:r.memberId,onChange:a=>j({...r,memberId:a.target.value}),placeholder:"12345678"})]}),e.jsxs("div",{className:"md:col-span-2",children:[e.jsx(g,{htmlFor:"zelle",children:"Zelle Information (Optional)"}),e.jsx(x,{id:"zelle",value:r.zelleInformation,onChange:a=>j({...r,zelleInformation:a.target.value}),placeholder:"Phone number or email for reimbursements"})]})]}),e.jsx("div",{className:"flex justify-end mt-6",children:e.jsxs(t,{onClick:ne,disabled:u,children:[e.jsx($,{className:"h-4 w-4 mr-2"}),u?"Saving...":"Save Profile"]})})]}),e.jsxs("div",{className:"rounded-md border bg-card p-6",children:[e.jsxs("div",{className:"flex items-center space-x-3 mb-6",children:[e.jsx("div",{className:"w-8 h-8 bg-ds-green-100 rounded-lg flex items-center justify-center",children:e.jsx(se,{className:"w-5 h-5 text-tone-success"})}),e.jsx("h2",{className:"text-lg font-semibold",children:"Resume"})]}),e.jsx("p",{className:"text-sm text-muted-foreground mb-4",children:"Your resume will be visible to IEEE sponsors and officers."}),s?.resume?e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"flex flex-col gap-4 p-4 bg-muted rounded-lg sm:flex-row sm:items-center sm:justify-between",children:[e.jsxs("div",{className:"flex items-center space-x-3",children:[e.jsx(se,{className:"w-8 h-8 text-muted-foreground shrink-0"}),e.jsxs("div",{children:[e.jsx("p",{className:"font-medium",children:s.resume.fileName}),e.jsxs("p",{className:"text-sm text-muted-foreground",children:["Uploaded ",Ne(s.resume.uploadedAt)]})]})]}),e.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[E?e.jsxs(e.Fragment,{children:[e.jsx(t,{variant:"outline",size:"sm",asChild:!0,children:e.jsx("a",{href:E,target:"_blank",rel:"noopener noreferrer",children:"View"})}),e.jsx(t,{variant:"outline",size:"sm",onClick:ie,disabled:V,children:V?"Downloading...":"Download"})]}):e.jsx("p",{className:"text-sm text-muted-foreground",children:"Resume link unavailable. Try refreshing the page."}),b?e.jsx(t,{variant:"outline",size:"sm",className:"h-11 text-tone-danger hover:text-tone-danger",disabled:f,onClick:()=>k(!0),children:"Remove"}):e.jsxs(me,{open:J,onOpenChange:k,children:[e.jsx(ue,{asChild:!0,children:e.jsx(t,{variant:"outline",size:"sm",className:"text-tone-danger hover:text-tone-danger",disabled:f,children:"Remove"})}),e.jsxs(xe,{children:[e.jsxs(he,{children:[e.jsx(fe,{children:"Remove resume?"}),e.jsx(pe,{children:"This will permanently delete your resume file. You can upload a new one at any time."})]}),e.jsxs(je,{children:[e.jsx(ge,{disabled:f,children:"Cancel"}),e.jsx(be,{disabled:f,className:"bg-destructive text-on-accent hover:bg-ds-red-800",onClick:async a=>{a.preventDefault(),await K()&&k(!1)},children:f?"Removing...":"Remove"})]})]})]})]})]}),e.jsxs("div",{className:"border-t pt-4",children:[e.jsx("h3",{className:"font-medium mb-2",children:"Replace Resume"}),b?e.jsxs("div",{className:"space-y-3",children:[o&&e.jsxs("p",{className:"text-sm text-muted-foreground truncate",children:["Selected: ",o.name]}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx(t,{type:"button",variant:"outline",className:"h-11 flex-1",onClick:()=>P(!0),children:"Choose PDF"}),e.jsxs(t,{className:"h-11 flex-1",onClick:U,disabled:!o||h,children:[e.jsx(S,{className:"h-4 w-4 mr-2"}),h?"Uploading...":"Replace"]})]})]}):e.jsxs("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center",children:[e.jsx(x,{type:"file",accept:".pdf,application/pdf",onChange:a=>
1L(a.target.files?.[0]||null),className:"flex-1 text-sm text-muted-foreground file:mr-4 file:py-2 file:px-4 file:rounded-lg file:border-0 file:text-sm file:font-medium file:bg-ds-blue-100 file:text-tone-info hover:file:bg-ds-blue-200"}),e.jsxs(t,{onClick:U,disabled:!o||h,children:[e.jsx(S,{className:"h-4 w-4 mr-2"}),h?"Uploading...":"Replace"]})]})]})]}):e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"border-2 border-dashed rounded-lg p-8 text-center",children:[e.jsx(S,{className:"w-10 h-10 text-muted-foreground mx-auto mb-3"}),e.jsx("p",{className:"text-muted-foreground mb-4",children:"No resume uploaded. Upload your resume for networking opportunities."}),b?e.jsxs("div",{className:"space-y-3",children:[o&&e.jsxs("p",{className:"text-sm text-muted-foreground truncate",children:["Selected: ",o.name]}),e.jsxs("div",{className:"flex flex-col gap-2",children:[e.jsx(t,{type:"button",variant:"outline",className:"h-11 w-full",onClick:()=>P(!0),children:"Choose PDF"}),e.jsxs(t,{className:"h-11 w-full",onClick:U,disabled:!o||h,children:[e.jsx(S,{className:"h-4 w-4 mr-2"}),h?"Uploading...":"Upload"]})]})]}):e.jsxs("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-center",children:[e.jsx(x,{type:"file",accept:".pdf,application/pdf",onChange:a=>L(a.target.files?.[0]||null),className:"text-sm text-muted-foreground file:mr-4 file:py-2 file:px-4 file:rounded-lg file:border-0 file:text-sm file:font-medium file:bg-ds-blue-100 file:text-tone-info hover:file:bg-ds-blue-200"}),e.jsxs(t,{onClick:U,disabled:!o||h,children:[e.jsx(S,{className:"h-4 w-4 mr-2"}),h?"Uploading...":"Upload"]})]})]}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"PDF only, maximum 5MB"})]})]}),e.jsx(W,{open:te,onOpenChange:P,title:"Upload resume",description:"PDF only, maximum 5MB. Files are not camera/photo captures.",variant:"sheet",children:e.jsxs("div",{className:"space-y-3 pb-2",children:[e.jsxs("label",{className:"motion-press flex h-12 w-full cursor-pointer items-center justify-center rounded-md border bg-card text-sm font-medium",children:["Choose PDF from Files",e.jsx("input",{type:"file",accept:".pdf,application/pdf",className:"sr-only",onChange:a=>{L(a.target.files?.[0]||null),P(!1)}})]}),e.jsx("p",{className:"text-xs text-muted-foreground text-center",children:"Camera and photo library are not used — resumes must be PDF."})]})}),e.jsx(W,{open:b&&J,onOpenChange:k,title:"Remove resume?",description:"This will permanently delete your resume file. You can upload a new one later.",variant:"sheet",footer:e.jsxs("div",{className:"flex w-full gap-2",children:[e.jsx(t,{variant:"outline",className:"h-11 flex-1",disabled:f,onClick:()=>k(!1),children:"Cancel"}),e.jsx(t,{variant:"destructive",className:"h-11 flex-1",disabled:f,onClick:async()=>{await K()&&k(!1)},children:f?"Removing...":"Remove"})]}),children:e.jsx("p",{className:"pb-2 text-sm text-muted-foreground",children:"Sponsors and officers will no longer see your resume."})}),e.jsxs("div",{className:"rounded-md border bg-card p-4 md:p-6",children:[e.jsxs("div",{className:"flex items-center space-x-3 mb-4 md:mb-6",children:[e.jsx("div",{className:"w-8 h-8 bg-ds-blue-100 rounded-lg flex items-center justify-center flex-shrink-0",children:e.jsx(ae,{className:"w-5 h-5 text-tone-purple"})}),e.jsx("h2",{className:"text-base md:text-lg font-semibold",children:"Account Information"})]}),e.jsxs("div",{className:"space-y-2 text-sm",children:[e.jsxs("div",{className:"flex justify-between py-2 border-b",children:[e.jsx("span",{className:"text-muted-foreground",children:"Email"}),e.jsx("span",{className:"font-medium",children:s?.email})]}),e.jsxs("div",{className:"flex justify-between py-2 border-b",children:[e.jsx("span",{className:"text-muted-foreground",children:"Role"}),e.jsx("span",{className:"font-medium",children:s?.role})]}),e.jsxs("div",{className:"flex justify-between py-2 border-b",children:[e.jsx("span",{className:"text-muted-foreground",children:"Status"}),e.jsx("span",{className:"font-medium capitalize",children:s?.status})]}),e.jsxs("div",{className:"flex justify-between py-2 border-b",children:[e.jsx("span",{className:"text-muted-foreground",children:"Sign-in Method"}),e.jsx("span",{className:"font-medium capitalize",children:s?.signInMethod||"Logto"})]}),e.jsxs("div",{className:"flex justify-between py-2",children:[e.jsx("span",{className:"text-muted-foreground",children:"Member Since"}),e.jsx("span",{className:"font-medium",children:s?.joinDate?new Date(s.joinDate).toLocaleDateString():"N/A"})]})]})]}),Z()&&e.jsxs("div",{className:"bg-ds-blue-100 border border-ds-blue-100 rounded-lg p-6",children:[e.jsxs("div",{className:"flex items-center space-x-2 text-tone-info",children:[e.jsx(ae,{className:"w-5 h-5"}),e.jsx("span",{className:"font-medium",children:"OAuth Account"})]}),e.jsx("p",{className:"text-tone-info mt-2 text-sm",children:"You signed in with OAuth. To change your password, please visit your account settings in your OAuth provider."})]})]})})]})}export{ls as component};

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.