1import{_ as c,G as l,x as p,a as o,w as m,P as a,m as h,y as f,p as g,o as t,s as x,c as L,b as n,n as b,z as U,A as w}from"./Bv6rD22K.js";import{_ as y}from"./DiMc48he.js";import{_ as R}from"./D9n9N6J4.js";const v={mixins:[p],setup(){},data(){return{pageLoading:1,user:{}}},created(){g({title:w(()=>`Profile - ${this.user.username}`),meta:[{name:"robots",content:"noindex"}]})},computed:{...h(f,{currentUser:"user"}),profileHeadingClasses(){return{"profile-header--show-mobile":(this._.provides[a]||this.$route).name==="userProfileOverview"}},routeHasLeaderboard(){return(this._.provides[a]||this.$route).meta.hasLeaderboard}},watch:{user(e){e&&this.onLoad()}},mounted(){this.redirect&&this.userQualifiesForRedirect&&this.handleLoginRedirect()},methods:{onLoad(){const e=JSON.stringify({post_categories:"profile",has_user_generated_content:!0});this.$emit("loaded",e)},refetchUser(){this.$apollo.queries.user.refetch()}},apollo:{user:{query:l,variables(){return{slug:this.currentUser.slug.toLowerCase()}},result({data:e}){this.user=e.user,this.pageLoading=0}}}},P={key:1,class:"profile"};function k(e,C,E,H,s,r){const i=x,u=y,d=U,_=R;return t(),o(_,{name:"full-bleed","show-leaderboard-ad":r.routeHasLeaderboard&&s.pageLoading===0},{default:m(()=>[s.pageLoading!==0?(t(),o(i,{key:0})):(t(),L("div",P,[n(u,{user:s.user,class:b(r.profileHeadingClasses)},null,8,["user","class"]),n(d,{user:s.user,onUserUpdated:r.refetchUser},null,8,["user","onUserUpdated"])]))]),_:1},8,["show-leaderboard-ad"])}const O=c(v,[["render",k]]);export{O 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.