1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3040],{61451:function(e,l,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/space/users/[id]",function(){return t(1792)}])},16848:function(e,l,t){"use strict";t.d(l,{Y:function(){return g}});var i=t(35944),n=t(38792),r=t(67294),a=t(3727),d=t(4070),c=t(94184),o=t.n(c),u=t(34394),s=t(35140);let h=e=>{let{item:l,className:t,onClickItem:r}=e,a=(0,s.wL)();return(0,i.tZ)(n.UI.VStack,{className:o()("bg-gray-900",t),onClick:()=>{a("click_space_grid_item",{id:l.id}),null==r||r(l)},children:(0,i.tZ)(u.nA,{condition:null==l?void 0:l.imageUrl,children:(0,i.tZ)(n.UI.Image,{className:o()(["w-full","object-cover"]),width:360,height:360,src:null==l?void 0:l.imageUrl,alt:null==l?void 0:l.id,loading:"eager"},null==l?void 0:l.id)})})};var f=t(58533);t(36962);let g=e=>{var l;let{userId:t,judgeStatus:c,empty:s,onClickItem:g}=e,[v,m]=r.useState(void 0),[p,Z]=r.useState(void 0),[y,I]=r.useState(!1),w=r.useRef(!1),x=async()=>{if(!w.current)try{w.current=!0;let{pageable:e,content:l}=await (0,a.mB)({judgeStatus:c,userId:t});m(l),Z(e)}catch(e){d.fy.logger.error("fetchImages",{},e)}finally{w.current=!1}},k=async()=>{if((null==p?void 0:p.after)&&!w.current)try{w.current=!0;let e=null==p?void 0:p.after,l=null==p?void 0:p.limit,{pageable:i,content:n}=await (0,a.mB)({cursor:e,limit:l,judgeStatus:c,userId:t}),r=[...null!=v?v:[],...n];0===n.length&&Object.assign(i,{after:null}),m(r),Z(i)}catch(e){d.fy.logger.error("fetchMoreImages",{},e)}finally{w.current=!1}};return(0,r.useEffect)(()=>{x().then().catch()},[]),(0,i.BX)(u.rs,{children:[(0,i.tZ)(u.JZ,{condition:(null==v?void 0:v.length)===0,children:s}),(0,i.tZ)(u.gA,{children:(0,i.tZ)(f.Z,{dataLength:null!==(l=null==v?void 0:v.length)&&void 0!==l?l:0,hasMore:void 0===p||null!==p.after,loader:!1,next:()=>null==k?void 0:k(),className:o()(["pb-16"]),children:(0,i.tZ)(n.UI.Grid,{columns:3,gapX:1,gapY:1,children:null==v?void 0:v.map(e=>(0,i.tZ)(h,{className:o()("aspect-square"),item:e,onClickItem:e=>{g&&g(e)}},e.id))})})})]})}},36461:function(e,l,t){"use strict";t.d(l,{U:function(){return g}});var i=t(35944),n=t(38792),r=t(94184),a=t.n(r),d=t(79543),c=t(67294),o=t(34394),u=t(3727),s=t(55013),h=t(96386),f=t(11163);let g=e=>{var l,t,r,g,v,m,p;let{user:Z,showUsername:y,onUserChanged:I}=e,w=(0,d.aC)(),x=(0,f.useRouter)(),{t:k}=(0,h.qM)(),{t:U}=(0,h.qM)("SpaceProfilePage"),[N,_]=c.useState(!1),b=(null===(l=w.user)||void 0===l?void 0:l.id)===(null==Z?void 0:Z.id),[S,C]=c.useState(null===(t=w.user)||void 0===t?void 0:null===(r=t.spaceProfile)||void 0===r?void 0:r.introduce),X=e=>{Z&&x.push("/space/users/".concat(Z.id,"/relationship?tab=").concat(e))};return(0,i.BX)(n.UI.VStack,{className:a()(["px-5","py-3","pb-5"]),gapY:"1rem",children:[(0,i.tZ)(o.nA,{condition:y,children:(0,i.tZ)(n.UI.Heading4,{children:null==Z?void 0:Z.username})}),(0,i.BX)(n.UI.HStack,{className:a()("items-center","h-full","overflow-hidden"),gapX:16,children:[(0,i.tZ)("div",{className:a()("w-24","h-24","rounded-full","bg-gray-900","shrink-0"),children:Z&&Z.profileImageUrl&&(0,i.tZ)(n.UI.Image,{className:a()("w-full","h-full","rounded-full","object-cover"),alt:Z.id,src:Z.profileImageUrl,width:92,height:92})}),(0,i.BX)(n.UI.HStack,{gapX:16,className:a()("w-full"),justify:"center",children:[(0,i.BX)("div",{className:"flex-col justify-start items-center gap-px inline-flex min-w-[60px]",onClick:()=>X("follower"),children:[(0,i.tZ)(n.UI.Heading4,{children:null==Z?void 0:Z.spaceFollowedCount}),(0,i.tZ)(n.UI.Paragraph1,{children:k("follower")})]}),(0,i.BX)("div",{className:"flex-col justify-start items-center gap-px inline-flex min-w-[60px]",onClick:()=>X("following"),children:[(0,i.tZ)(n.UI.Heading4,{children:null==Z?void 0:Z.spaceFollowingCount}),(0,i.tZ)(n.UI.Paragraph1,{children:k("following")})]})]})]}),(0,i.BX)(o.rs,{children:[(0,i.tZ)(o.JZ,{condition:N,children:(0,i.tZ)(n.UI.Textarea,{className:a()("text-sm"),placeholder:null!==(p=null==Z?void 0:null===(g=Z.spaceProfile)||void 0===g?void 0:g.introduce)&&void 0!==p?p:"",value:S,onChange:e=>C(e.target.value)})}),(0,i.tZ)(o.JZ,{condition:!!(null==Z?void 0:null===(v=Z.spaceProfile)||void 0===v?void 0:v.introduce),children:(0,i.tZ)(n.UI.Paragraph1,{className:a()("break-all","flex-1"),children:null==Z?void 0:null===(m=Z.spaceProfile)||void 0===m?void 0:m.introduce})}),(0,i.tZ)(o.JZ,{condition:b,children:(0,i.tZ)(n.UI.Paragraph1,{className:a()(["break-all","flex-1","text-gray-700"]),children:U("Introduce yourself here...")})})]}),(0,i.BX)(o.If,{condition:b,children:[(0,i.tZ)(o.Zf,{children:(0,i.tZ)(n.UI.Button,{onClick:()=>{N?((0,u.JX)({introduce:S}).then(e=>(0,u.$K)(w.user.id)).then(e=>null==I?void 0:I(e)),_(!1)):_(!0)},className:a()("bg-gray-900","!rounded-md"),variant:N?"peekaboo":"ghost",size:"small",children:(0,i.tZ)(n.UI.Heading5,{children:U("Edit profile")})})}),(0,i.tZ)(o.Ot,{children:Z&&(0,i.tZ)(s.D,{classNameBuilder:e=>a()("!rounded-md",e?[]:["bg-peekabooBlue","!text-white"]),user:Z,onToggle:e=>{I&&I(e)}})})]})]})}},1792:function(e,l,t){"use strict";t.r(l),t.d(l,{__N_SSP:function(){return U},default:function(){return k}});var i=t(35944),n=t(45249),r=t(36347),a=t(67294),d=t(38792),c=t(36461),o=t(16848),u=t(11163),s=t(84297);let h=(0,s.Z)("Grid",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["line",{x1:"3",x2:"21",y1:"9",y2:"9",key:"1vqk6q"}],["line",{x1:"3",x2:"21",y1:"15",y2:"15",key:"o2sbyz"}],["line",{x1:"9",x2:"9",y1:"3",y2:"21",key:"13tij5"}],["line",{x1:"15",x2:"15",y1:"3",y2:"21",key:"1hpv9i"}
1]]),f=(0,s.Z)("Rows",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["line",{x1:"3",x2:"21",y1:"12",y2:"12",key:"10d38w"}]]);var g=t(35140),v=t(1832),m=t(94184),p=t.n(m),Z=t(66261),y=t(31976),I=t(2261);t(76268);let w=e=>{let{user:l,onUserChanged:t}=e,n=(0,u.useRouter)(),r=(0,g.wL)(),s=(0,a.useRef)(null),[m,w]=(0,a.useState)(0),x=n.query.id;return(0,a.useEffect)(()=>{var e;null==s||null===(e=s.current)||void 0===e||e.swiper.slideTo(m)},[m]),(0,i.BX)(d.UI.VStack,{children:[(0,i.tZ)(c.U,{user:l,showUsername:!1,onUserChanged:t}),(0,i.BX)(d.UI.Tab,{className:p()(["sticky","z-10","top-[56px]","bg-black"]),value:String(m),center:!0,onChange:e=>{w(Number(e)),r("space_profile_view_change",{value:["grid","feed"][e]})},children:[(0,i.tZ)(d.UI.TabItem,{value:"0",title:(0,i.tZ)(h,{size:16})}),(0,i.tZ)(d.UI.TabItem,{value:"1",title:(0,i.tZ)(f,{size:16})})]}),(0,i.BX)(I.tq,{ref:s,initialSlide:0,className:p()(["w-full"]),centeredSlides:!0,slidesPerView:1,autoHeight:!0,onSlideChange:e=>{e.activeIndex!==m&&w(e.activeIndex)},children:[(0,i.tZ)(I.o5,{children:(0,i.tZ)(o.Y,{userId:null==l?void 0:l.id,judgeStatus:"ACCEPTED",onClickItem:e=>{w(1);let l=setInterval(()=>{Z.OK.get(e.id)&&(clearInterval(l),Z.OK.scrollTo(e.id,{duration:300,smooth:!0,offset:-106}))},100)}},"shared/".concat(null==l?void 0:l.id))}),(0,i.tZ)(I.o5,{children:(0,i.tZ)(v.r,{userId:x})})]}),(0,i.tZ)(y.R,{})]})};var x=t(3727);let k=()=>{let e=(0,u.useRouter)(),l=(0,g.wL)(),{id:t}=e.query,[r,c]=a.useState();return a.useEffect(()=>{e.isReady&&(0,x.$K)(t).then(e=>c(e))},[e.isReady]),a.useEffect(()=>{l("space/view_profile_detail_page",{})},[]),(0,i.BX)(i.HY,{children:[(0,i.tZ)(n.E,{children:(0,i.tZ)(d.UI.Heading4,{children:null==r?void 0:r.username})}),(0,i.tZ)(w,{user:r,onUserChanged:c})]})};k.getLayout=e=>(0,i.tZ)(r.$,{children:e});var U=!0}},function(e){e.O(0,[1020,2299,1008,5928,9987,5353,1585,6690,9774,2888,179],function(){return e(e.s=61451)}),_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.