1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9309],{45124:(e,s,a)=>{"use strict";a.d(s,{J:()=>o});var t=a(6029),r=a(55729),i=a(16522),n=r.forwardRef((e,s)=>(0,t.jsx)(i.sG.label,{...e,ref:s,onMouseDown:s=>{s.target.closest("button, input, select, textarea")||(e.onMouseDown?.(s),!s.defaultPrevented&&s.detail>1&&s.preventDefault())}}));n.displayName="Label";var l=a(72262),c=a(39287);let d=(0,l.F)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),o=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)(n,{ref:s,className:(0,c.cn)(d(),a),...r})});o.displayName=n.displayName},52229:(e,s,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/account",function(){return a(93120)}])},70465:(e,s,a)=>{"use strict";a.d(s,{tU:()=>D,j7:()=>S,Xi:()=>T});var t=a(6029),r=a(55729),i=a(64304),n=a(44784),l=a(39123),c=a(7170),d=a(16522),o=a(61314),m=a(74230),u=a(66330),x="Tabs",[f,h]=(0,n.A)(x,[l.RG]),p=(0,l.RG)(),[j,v]=f(x),g=r.forwardRef((e,s)=>{let{__scopeTabs:a,value:r,onValueChange:i,defaultValue:n,orientation:l="horizontal",dir:c,activationMode:f="automatic",...h}=e,p=(0,o.jH)(c),[v,g]=(0,m.i)({prop:r,onChange:i,defaultProp:n??"",caller:x});return(0,t.jsx)(j,{scope:a,baseId:(0,u.B)(),value:v,onValueChange:g,orientation:l,dir:p,activationMode:f,children:(0,t.jsx)(d.sG.div,{dir:p,"data-orientation":l,...h,ref:s})})});g.displayName=x;var N="TabsList",y=r.forwardRef((e,s)=>{let{__scopeTabs:a,loop:r=!0,...i}=e,n=v(N,a),c=p(a);return(0,t.jsx)(l.bL,{asChild:!0,...c,orientation:n.orientation,dir:n.dir,loop:r,children:(0,t.jsx)(d.sG.div,{role:"tablist","aria-orientation":n.orientation,...i,ref:s})})});y.displayName=N;var b="TabsTrigger",w=r.forwardRef((e,s)=>{let{__scopeTabs:a,value:r,disabled:n=!1,...c}=e,o=v(b,a),m=p(a),u=C(o.baseId,r),x=R(o.baseId,r),f=r===o.value;return(0,t.jsx)(l.q7,{asChild:!0,...m,focusable:!n,active:f,children:(0,t.jsx)(d.sG.button,{type:"button",role:"tab","aria-selected":f,"aria-controls":x,"data-state":f?"active":"inactive","data-disabled":n?"":void 0,disabled:n,id:u,...c,ref:s,onMouseDown:(0,i.mK)(e.onMouseDown,e=>{n||0!==e.button||!1!==e.ctrlKey?e.preventDefault():o.onValueChange(r)}),onKeyDown:(0,i.mK)(e.onKeyDown,e=>{[" ","Enter"].includes(e.key)&&o.onValueChange(r)}),onFocus:(0,i.mK)(e.onFocus,()=>{let e="manual"!==o.activationMode;f||n||!e||o.onValueChange(r)})})})});w.displayName=b;var A="TabsContent",k=r.forwardRef((e,s)=>{let{__scopeTabs:a,value:i,forceMount:n,children:l,...o}=e,m=v(A,a),u=C(m.baseId,i),x=R(m.baseId,i),f=i===m.value,h=r.useRef(f);return r.useEffect(()=>{let e=requestAnimationFrame(()=>h.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,t.jsx)(c.C,{present:n||f,children:({present:a})=>(0,t.jsx)(d.sG.div,{"data-state":f?"active":"inactive","data-orientation":m.orientation,role:"tabpanel","aria-labelledby":u,hidden:!a,id:x,tabIndex:0,...o,ref:s,style:{...e.style,animationDuration:h.current?"0s":void 0},children:a&&l})})});function C(e,s){return`${e}-trigger-${s}`}function R(e,s){return`${e}-content-${s}`}k.displayName=A;var M=a(39287);let D=g,S=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)(y,{ref:s,className:(0,M.cn)("inline-flex h-9 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",a),...r})});S.displayName=y.displayName;let T=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)(w,{ref:s,className:(0,M.cn)("inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow",a),...r})});T.displayName=w.displayName,r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)(k,{ref:s,className:(0,M.cn)("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",a),...r})}).displayName=k.displayName},70494:(e,s,a)=>{"use strict";a.d(s,{A:()=>t});
1let t=(0,a(58309).A)("lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]])},93120:(e,s,a)=>{"use strict";a.r(s),a.d(s,{default:()=>R});var t=a(6029),r=a(55729),i=a(81278),n=a(56465),l=a(85645),c=a(35987),d=a(39672),o=a(51383);a(92797);var m=a(45124),u=a(53745),x=a(86370),f=a(36980);a(70465);var h=a(47622),p=a(29561),j=a(55298),v=a(94072),g=a(79612),N=a(78356);let y=(0,a(58309).A)("log-out",[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]]);var b=a(55214),w=a(62603),A=a(70494),k=a(55259),C=a(64444);function R(){var e,s,a;let R=(0,i.useRouter)(),{user:M,isAuthenticated:D,loading:S,logout:T}=(0,d.As)(),_=(null==(e=c.A.siteInfo)?void 0:e.name)||"Site Name",[B,E]=(0,r.useState)("profile");(0,r.useEffect)(()=>{S||D||R.push("/login?redirect=/account")},[D,S,R]);let P=()=>{T(),C.toast.success("Logged out successfully"),R.push("/")};if(S)return(0,t.jsx)("div",{className:"min-h-screen flex items-center justify-center",children:(0,t.jsx)(p.A,{className:"h-8 w-8 animate-spin text-primary"})});if(!D)return null;let F=()=>{var e;return(null==M||null==(e=M.roles)?void 0:e.nodes)?M.roles.nodes.map(e=>e.name.charAt(0).toUpperCase()+e.name.slice(1)):["Member"]};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(l.Ay,{seo:{title:"My Account | ".concat(_),description:"Manage your ".concat(_," account settings and profile.")},pageType:"profile",personData:{name:(null==M?void 0:M.name)||(null==M?void 0:M.username),image:null==M||null==(s=M.avatar)?void 0:s.url,worksFor:!0},noindex:!0}),(0,t.jsx)("div",{className:"min-h-screen bg-muted/30 py-8 px-4 sm:px-6 lg:px-8",children:(0,t.jsxs)("div",{className:"container mx-auto max-w-5xl",children:[(0,t.jsxs)("div",{className:"mb-8",children:[(0,t.jsx)("h1",{className:"text-3xl font-bold tracking-tight",children:"My Account"}),(0,t.jsx)("p",{className:"text-muted-foreground mt-2",children:"Manage your profile and account settings"})]}),(0,t.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-4 gap-8",children:[(0,t.jsx)("div",{className:"lg:col-span-1",children:(0,t.jsx)(u.Zp,{children:(0,t.jsxs)(u.Wu,{className:"pt-6",children:[(0,t.jsxs)("div",{className:"flex flex-col items-center text-center mb-6",children:[(0,t.jsxs)(x.eu,{className:"h-20 w-20 mb-4",children:[(0,t.jsx)(x.BK,{src:null==M||null==(a=M.avatar)?void 0:a.url,alt:(null==M?void 0:M.name)||(null==M?void 0:M.username)}),(0,t.jsx)(x.q5,{className:"text-xl",children:(null==M?void 0:M.name)?M.name.split(" ").map(e=>e[0]).join("").toUpperCase().slice(0,2):(null==M?void 0:M.username)?M.username.slice(0,2).toUpperCase():"U"})]}),(0,t.jsx)("h2",{className:"font-semibold text-lg",children:(null==M?void 0:M.name)||(null==M?void 0:M.username)}),(0,t.jsxs)("p",{className:"text-sm text-muted-foreground",children:["@",null==M?void 0:M.username]}),(0,t.jsx)("div",{className:"flex gap-2 mt-2",children:F().map((e,s)=>(0,t.jsx)(f.E,{variant:"secondary",className:"text-xs",children:e},s))})]}),(0,t.jsx)(h.w,{className:"my-4"}),(0,t.jsxs)("nav",{className:"space-y-1",children:[(0,t.jsxs)("button",{onClick:()=>E("profile"),className:"w-full flex items-center gap-3 px-3 py-2 text-sm rounded-md transition-colors ".concat("profile"===B?"bg-primary text-primary-foreground":"hover:bg-muted"),children:[(0,t.jsx)(j.A,{className:"h-4 w-4"}),"Profile"]}),(0,t.jsxs)("button",{onClick:()=>E("activity"),className:"w-full flex items-center gap-3 px-3 py-2 text-sm rounded-md transition-colors ".concat("activity"===B?"bg-primary text-primary-foreground":"hover:bg-muted"),children:[(0,t.jsx)(v.A,{className:"h-4 w-4"}),"Activity"]}),(0,t.jsxs)("button",{onClick:()=>E("security"),className:"w-full flex items-center gap-3 px-3 py-2 text-sm rounded-md transition-colors ".concat("security"===B?"bg-primary text-primary-foreground":"hover:bg-muted"),children:[(0,t.jsx)(g.A,{className:"h-4 w-4"}),"Security"]}),(0,t.jsxs)("button",{onClick:()=>E("notifications"),className:"w-full flex items-center gap-3 px-3 py-2 text-sm rounded-md transition-colors ".concat("notifications"===B?"bg-primary text-primary-foreground":"hover:bg-muted"),children:[(0,t.jsx)(N.A,{className:"h-4 w-4"}),"Notifications"]})]}),(0,t.jsx)(h.w,{className:"my-4"}),(0,t.jsxs)(o.$,{variant:"outline",className:"w-full justify-start gap-2 text-destructive hover:text-destructive hover:bg-destructive/10",onClick:P,children:[(0,t.jsx)(y,{className:"h-4 w-4"}),"Sign Out"]})]})})}),(0,t.jsxs)("div",{className:"lg:col-span-3 space-y-6",children:["profile"===B&&(0,t.jsxs)(u.Zp,{children:[(0,t.jsxs)(u.aR,{children:[(0,t.jsx)(u.ZB,{children:"Profile Information"}),(0,t.jsx)(u.BT,{children:"Your public profile information"})]}),(0,t.jsxs)(u.Wu,{className:"space-y-6",children:[(0,t.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(m.J,{className:"text-muted-foreground",children:"Display Name"}),(0,t.jsx)("p",{className:"font-medium",children:(null==M?void 0:M.name)||"Not set"})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(m.J,{className:"text-muted-foreground",children:"Username"}),(0,t.jsxs)("p",{className:"font-medium",children:["@",null==M?void 0:M.username]})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(m.J,{className:"text-muted-foreground",children:"Email"}),(0,t.jsxs)("p",{className:"font-medium flex items-center gap-2",children:[(0,t.jsx)(b.A,{className:"h-4 w-4 text-muted-foreground"}),null==M?void 0:M.email]})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(m.J,{className:"text-muted-foreground",children:"Member Since"}),(0,t.jsxs)("p",{className:"font-medium flex items-center gap-2",children:[(0,t.jsx)(w.A,{className:"h-4 w-4 text-muted-foreground"}),(e=>{if(!e)return"Unknown";try{return new Date(e).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"})}catch(e){return"Unknown"}})(null==M?void 0:M.registeredDate)]})]}),(null==M?void 0:M.firstName)&&(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(m.J,{className:"text-muted-foreground",children:"First Name"}),(0,t.jsx)("p",{className:"font-medium",children:M.firstName})]}),(null==M?void 0:M.lastName)&&(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(m.J,{className:"text-muted-foreground",children:"Last Name"}),(0,t.jsx)("p",{className:"font-medium",children:M.lastName})]}),(null==M?void 0:M.nickname)&&(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(m.J,{className:"text-muted-foreground",children:"Nickname"}),(0,t.jsx)("p",{className:"font-medium",children:M.nickname})]})]}),(0,t.jsx)(h.w,{}),(0,t.jsx)("div",{className:"flex justify-end",children:(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:"To update your profile, please visit your WordPress dashboard."})})]})]}),"activity"===B&&(0,t.jsxs)(u.Zp,{children:[(0,t.jsxs)(u.aR,{children:[(0,t.jsx)(u.ZB,{children:"Recent Activity"}),(0,t.jsx)(u.BT,{children:"Your recent comments and forum posts"})]}),(0,t.jsx)(u.Wu,{children:(0,t.jsxs)("div",{className:"flex flex-col items-center justify-center py-12 text-center",children:[(0,t.jsx)(v.A,{className:"h-12 w-12 text-muted-foreground mb-4"}),(0,t.jsx)("h3",{className:"font-semibold mb-2",children:"No recent activity"}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground mb-4",children:"Start participating in discussions to see your activity here"}),(0,t.jsxs)("div",{className:"flex gap-3",children:[(0,t.jsx)(o.$,{asChild:!0,variant:"outline",children:(0,t.jsx)(n.A,{href:"/articles",children:"Browse Articles"})}),(0,t.jsx)(o.$,{asChild:!0,children:(0,t.jsx)(n.A,{href:"/forum",children:"Visit Forum"})})]})]})})]}),"security"===B&&(0,t.jsxs)(u.Zp,{children:[(0,t.jsxs)(u.aR,{children:[(0,t.jsx)(u.ZB,{children:"Security Settings"}),(0,t.jsx)(u.BT,{children:"Manage your account security"})]}),(0,t.jsxs)(u.Wu,{className:"space-y-6",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between p-4 border rounded-lg",children:[(0,t.jsxs)("div",{className:"flex items-center gap-4",children:[(0,t.jsx)("div",{className:"p-2 bg-muted rounded-full",children:(0,t.jsx)(A.A,{className:"h-5 w-5"})}),(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"font-medium",children:"Password"}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:"Change your password"})]})]}),(0,t.jsx)(o.$,{variant:"outline",size:"sm",asChild:!0,children:(0,t.jsxs)(n.A,{href:"/forgot-password",children:["Change",(0,t.jsx)(k.A,{className:"h-4 w-4 ml-1"})]})})]}),(0,t.jsxs)("div",{className:"flex items-center justify-between p-4 border rounded-lg",children:[(0,t.jsxs)("div",{className:"flex items-center gap-4",children:[(0,t.jsx)("div",{className:"p-2 bg-muted rounded-full",children:(0,t.jsx)(g.A,{className:"h-5 w-5"})}),(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"font-medium",children:"Account Roles"}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:F().join(", ")})]})]}),(0,t.jsx)(f.E,{variant:"secondary",children:"Active"})]}),(0,t.jsxs)("div",{className:"flex items-center justify-between p-4 border rounded-lg bg-destructive/5",children:[(0,t.jsxs)("div",{className:"flex items-center gap-4",children:[(0,t.jsx)("div",{className:"p-2 bg-destructive/10 rounded-full",children:(0,t.jsx)(y,{className:"h-5 w-5 text-destructive"})}),(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"font-medium",children:"Sign Out"}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:"Sign out of your account"})]})]}),(0,t.jsx)(o.$,{variant:"destructive",size:"sm",onClick:P,children:"Sign Out"})]})]})]}),"notifications"===B&&(0,t.jsxs)(u.Zp,{children:[(0,t.jsxs)(u.aR,{children:[(0,t.jsx)(u.ZB,{children:"Notification Preferences"}),(0,t.jsx)(u.BT,{children:"Manage how you receive notifications"})]}),(0,t.jsx)(u.Wu,{children:(0,t.jsxs)("div",{className:"flex flex-col items-center justify-center py-12 text-center",children:[(0,t.jsx)(N.A,{className:"h-12 w-12 text-muted-foreground mb-4"}),(0,t.jsx)("h3",{className:"font-semibold mb-2",children:"Notifications"}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:"Notification preferences can be managed in your WordPress dashboard."})]})})]})]})]})]})})]})}}},e=>{e.O(0,[636,6593,8792],()=>e(e.s=52229)),_N_E=e.O()}]);
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.