1import{u as D,a as H,c as V,r as a,j as e,C as d,d as m,e as h,A as x,f as u,L as o,I as l,a4 as p,B as n,g as O,n as Q,M as X}from"./index-IxvR3ybE.js";import z from"./AppLayout-DKObEqik.js";import{P as G}from"./progress-Ck7q00eU.js";import{T as J}from"./textarea-DABzMORD.js";import{C as B}from"./chevron-right-f_PxsSL8.js";import{M as K}from"./message-square-D78-i2rO.js";import{B as Z}from"./bell-XbQ4oIpl.js";import{C as _}from"./circle-check-big-DrZso9hg.js";import"./avatar-BaQ7HthH.js";import"./theme-toggle-DVo5SyOB.js";import"./useAttendeeNotifications-D_uPrmP4.js";import"./sun-DqGVY2dX.js";import"./use-mobile-DuMQ0aYp.js";import"./index-zx_GWOLj.js";import"./FloatingDidYouKnow-CupRzAB-.js";import"./useLiveStream-C4-Z6ZH6.js";import"./PiPContext-9tZQJrvz.js";import"./tickets-CawznlQU.js";import"./index-Cm6HJhbV.js";import"./loader-circle-Dv3Jv63Q.js";import"./video-xqbAqm0Z.js";import"./menu-D12hOg-z.js";import"./user-plus-DKb_O1Pc.js";import"./chart-no-axes-column-increasing-CHT02Edo.js";import"./megaphone-DiANqzpJ.js";import"./settings-C-Q7RH7S.js";import"./lightbulb-SYqac5W0.js";import"./book-open-CTBfL7a9.js";import"./gamepad-2-C0cQUrII.js";const Le=()=>{var F,P,A;const j=D(),{currentUser:s,updateUser:T}=H(),{toast:r}=V(),[i,f]=a.useState(1),[v,N]=a.useState(!1),[w,E]=a.useState((s==null?void 0:s.bio)||""),[k,I]=a.useState((s==null?void 0:s.niche)||""),[g,M]=a.useState(((F=s==null?void 0:s.links)==null?void 0:F.twitter)||""),[y,R]=a.useState(((P=s==null?void 0:s.links)==null?void 0:P.linkedin)||""),[b,W]=a.useState(((A=s==null?void 0:s.links)==null?void 0:A.website)||""),c=3,C=i/c*100,S=()=>{i<c&&f(i+1)},L=()=>{i>1&&f(i-1)},Y=()=>{j("/attendee"),r({title:"Welcome to EventConnect!",description:"You can complete your profile later in the Profile section."})},q=async()=>{N(!0);try{await T({bio:w,niche:k,links:{...(s==null?void 0:s.links)||{},twitter:g,linkedin:y,website:b}}),r({title:"Profile updated",description:"Your profile has been successfully updated!"}),j("/attendee")}catch(t){console.error("Error updating profile:",t),r({title:"Error",description:"Failed to update profile. Please try again.",variant:"destructive"})}finally{N(!1)}};return e.jsx(z,{children:e.jsxs("div",{className:"max-w-4xl mx-auto py-8 px-4",children:[e.jsxs("div",{className:"mb-8 text-center",children:[e.jsx("h1",{className:"text-3xl font-bold mb-2",children:"Welcome to EventConnect!"}),e.jsx("p",{className:"text-muted-foreground",children:"Let's set up your profile to help you make the most of your networking experience."})]}),e.jsxs("div",{className:"mb-8",children:[e.jsxs("div",{className:"flex justify-between mb-2",children:[e.jsxs("span",{className:"text-sm font-medium",children:["Step ",i," of ",c]}),e.jsxs("span",{className:"text-sm font-medium",children:[Math.round(C),"%"]})]}),e.jsx(G,{value:C,className:"h-2"})]}),i===1&&e.jsxs(d,{children:[e.jsxs(m,{children:[e.jsx(h,{children:"Tell us about yourself"}),e.jsx(x,{children:"This information helps others know who you are and what you do."})]}),e.jsxs(u,{className:"space-y-4",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(o,{htmlFor:"bio",children:"Bio"}),e.jsx(J,{id:"bio",placeholder:"Tell us a bit about yourself, your background, and your interests...",value:w,onChange:t=>E(t.target.value),rows:4})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(o,{htmlFor:"niche",children:"Professional Focus / Interests"}),e.jsx(l,{id:"niche",placeholder:"e.g., Frontend Development, AI Research, Product Management",value:k,onChange:t=>I(t.target.value)})]})]}),e.jsxs(p,{className:"flex justify-between",children:[e.jsx(n,{variant:"outline",onClick:Y,children:"Skip for now"}),e.jsxs(n,{onClick:S,children:["Next ",e.jsx(B,{className:"ml-2 h-4 w-4"})]})]})]}),i===2&&e.jsxs(d,{children:[e.jsxs(m,{children:[e.jsx(h,{children:"Connect your social profiles"}),e.jsx(x,{children:"Add your social media links to make it easier for others to connect with you."})]}),e.jsxs(u,{className:"space-y-4",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(o,{htmlFor:"twitter",children:"Twitter / X"}),e.jsx(l,{id:"twitter",placeholder:"https://twitter.com/yourusername",value:g,onChange:t=>M(t.target.value)})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(o,{htmlFor:"linkedin",children:"LinkedIn"}),e.jsx(l,{id:"linkedin",placeholder:"https://linkedin.com/in/yourusername",value:y,onChange:t=>R(t.target.value)})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(o,{htmlFor:"website",children:"Personal Website"}),e.jsx(l,{id:"website",placeholder:"https://yourwebsite.com",value:b,onChange:t=>W(t.target.value)})]})]}),e.jsxs(p,{className:"flex justify-between",children:[e.jsx(n,{variant:"outline",onClick:L,children:"Back"}),e.jsxs(n,{onClick:S,children:["Next ",e.jsx(B,{className:"ml-2 h-4 w-4"})]})]})]}),i===3&&e.jsxs(d,{children:[e.jsxs(m,{children:[e.jsx(h,{children:"You're all set!"}),e.jsx(x,{children:"Here's what you can do with EventConnect as an attendee."})]}),e.jsx(u,{children:e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"flex items-start space-x-3",children:[e.jsx(O,{className:"h-5 w-5 text-connect-600 mt-0.5"}),e.jsxs("div",{children:[e.jsx("h3",{className:"font-medium",children:"View Event Schedule"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Access the full schedule of sessions, workshops, and activities."})]})]}),e.jsxs("div",{className:"flex items-start space-x-3",children:[e.jsx(Q,{className:"h-5 w-5 text-connect-600 mt-0.5"}),e.jsxs("div",{children:[e.jsx("h3",{className:"font-medium",children:"Network with Attendees"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Connect with other participants, exchange contact information, and build your network."})]})]}),e.jsxs("div",{className:"flex items-start space-x-3",children:[e.jsx(K,{className:"h-5 w-5 text-connect-600 mt-0.5"}),e.jsxs("div",{children:[e.jsx("h3",{className:"font-medium",children:"Ask Questions"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Submit questions to speakers and participate in live sessions."})]})]}),e.jsxs("div",{className:"flex items-start space-x-3",children:[e.jsx(X,{className:"h-5 w-5 text-connect-600 mt-0.5"}),e.jsxs("div",{children:[e.jsx("h3",{className:"font-medium",children:"Navigate the Venue"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Use the interactive map to find your way around the event venue."})]})]}),e.jsxs("div",{className:"flex items-start space-x-3",children:[e.jsx(Z,{className:"h-5 w-5 text-connect-600 mt-0.5"}),e.jsxs("div",{children:[e.jsx("h3",{className:"font-medium",children:"Stay Updated"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Receive notifications about schedule changes, announcements, and more."})]})]})]})}),e.jsxs(p,{className:"flex justify-between",children:[e.jsx(n,{variant:"outline",onClick:L,children:"Back"}),e.jsx(n,{onClick:q,disabled:v,className:"bg-connect-600 hover:bg-connect-700",children:v?"Saving...":e.jsxs(e.Fragment,{children:["Complete Setup ",e.jsx(_,{className:"ml-2 h-4 w-4"})]})})]})]})]})})};export{Le as default};
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.