1"use strict";(self.rspackChunkcircle=self.rspackChunkcircle||[]).push([[49252],{422354(e,l,r){var a=r(391426),i=r(381301),s=r(779504),n=r(268699),o=r(132416),t=r(867494),d=r(294395),c={page_name:o.TP.PROFILE_VIEW},m=function(){var e=(0,t.t)(),l=e.memberProfilePublicId,r=e.closeMemberProfileRailbar,o=(0,d.dS)({publicId:l,params:c}).getProfileInfoQuery,m=o.data,u=o.isInitialLoading,f=o.refetch;return l?(0,a.jsx)(s.En,{isLoading:u,loaderVariant:"rail-profile",children:(0,a.jsx)(i.h.Content,{noPadding:!0,children:(0,a.jsx)(n.CompactProfileV4,{member:m,isLoading:!1,refetchProfileInfo:f,onClose:r})})}):null};r.d(l,{MemberProfileRailBar:()=>m})},465211(e,l,r){var a=r(391426),i=r(955015),s=r(417980),n=function(){return(0,a.jsx)(i.E,{label:(0,s.t)("profile_drawer.blocked_dms"),variant:"destructive",icon:"message-cross"})};r.d(l,{I:()=>n})},268699(e,l,r){r.d(l,{CompactProfileV4:()=>j});var a=r(391426),i=r(433146),s=r(74529),n=r(769732),o=r(443200),t=r(289058),d=r(34819),c=r(892907),m=r(417980),u=r(911754),f=r(975018),v=r(465211),x=r(946647),p=r(21965),h=r(461511),b=function(e){var l,r,i,n=e.shouldHideMessageButton,b=e.onClose,j=(0,s.K)(),g=j.isLoading,_=j.member,y=(0,t.T)({enabled:!g&&(null==_?void 0:_.id)!=null,member_ids:(null==_?void 0:_.id)!=null?[_.id]:[]}).data,I=null==y?void 0:y[0],P=(0,u.M)({imageUrl:null==_?void 0:_.avatar_url,fallbackColor:(0,x.Lk)(null!=(l=null==_?void 0:_.name)?l:""),enabled:!!(null==_?void 0:_.avatar_url)}).rgba;return g||!_?null:(0,a.jsxs)("div",{className:"relative flex flex-col items-start gap-6 border-b border-primary px-6 pb-6 pt-8","data-testid":"profile-railbar-header",children:[(0,a.jsx)("div",{className:"pointer-events-none absolute inset-0 z-0",style:(0,x.P)(P),"aria-hidden":"true"}),(0,a.jsxs)("div",{className:"flex items-center gap-2 absolute top-2 right-4",children:[(0,a.jsx)(f.N,{shouldHideMessageButton:void 0!==n&&n,shouldShowAsPrimaryIconButton:!0}),b?(0,a.jsx)(d.K,{variant:"outline",icon:"cross",size:"sm",onClick:b,"aria-label":(0,m.t)("close"),"data-testid":"profile-railbar-close"}):null]}),(0,a.jsx)("div",{className:"relative z-10 flex w-full items-start justify-between gap-4",children:(0,a.jsx)(o.v,{name:null!=(r=_.name)?r:"",avatarUrl:_.avatar_url,size:"medium",level:null==I?void 0:I.current_level,progress:null==I?void 0:I.level_progress})}),(0,a.jsxs)("div",{className:"relative z-10 flex w-full min-w-0 flex-col gap-3",children:[(0,a.jsxs)("div",{className:"flex min-w-0 flex-col gap-1",children:[(0,a.jsx)(c.o5,{variant:"heading-md",component:"h2",color:"primary","data-testid":"member-name",children:null!=(i=_.name)?i:""}),_.headline?(0,a.jsx)(c.o5,{variant:"body-sm",color:"secondary",children:_.headline}):null,_.is_blocked_by_current_community_member&&(0,a.jsx)(v.I,{})]}),(0,a.jsx)(p.Y,{member:_})]}),(0,a.jsx)(h.e,{memberTags:_.member_tags,className:"relative z-10"})]})},j=function(e){var l=e.member,r=e.isLoading,o=e.refetchProfileInfo,t=e.shouldHideMessageButton,d=e.onClose;return(null==l?void 0:l.is_deleted)?(0,a.jsx)(n.N,{}):(0,a.jsx)(s.Y,{member:null!=l?l:void 0,isLoading:r,refetchProfileInfo:o,children:(0,a.jsxs)("div",{className:"flex w-full flex-col gap-4",children:[(0,a.jsx)(b,{shouldHideMessageButton:void 0!==t&&t,onClose:d}),(0,a.jsx)(i.n,{isCompactProfileView:!0})]})})}},769732(e,l,r){var a=r(391426),i=r(817751),s=r(892907),n=r(417980),o=function(){return(0,a.jsxs)("div",{className:"flex min-h-full w-full flex-1 flex-col items-center justify-center gap-2 p-4 text-center",children:[(0,a.jsx)(i.t,{name:"people-remove",size:"lg",color:"tertiary"}),(0,a.jsx)(s.o5,{variant:"heading-md",component:"h2",color:"primary",children:(0,n.t)("profile_deleted_message")}),(0,a.jsx)(s.o5,{variant:"body-sm",color:"secondary",children:(0,n.t)("profile_deleted_description")})]})};r.d(l,{N:()=>o})},21965(e,l,r){r.d(l,{Y:()=>m});var a=r(391426),i=r(199563),s=r(766160),n=r(570310),o=r(417980),t=r(817751),d=r(892907),c=function(e){var l=e.icon,r=e.testId,i=e.children;return(0,a.jsxs)("div",{className:"flex items-center gap-1","data-testid":r,children:[(0,a.jsx)(t.t,{name:l,color:"tertiary"}),(0,a.jsx)(d.o5,{variant:"label-xs",color:"secondary",children:i})]})},m=function(e){var l=e.member,r=e.className,t=(0,s.l8)(l.member_since,l.profile_confirmed_at);return(0,a.jsxs)("div",{className:(0,n.x)("flex flex-col items-start gap-2",r),children:[l.last_seen_at?(0,a.jsx)(c,{icon:"clock",testId:"profile-member-last-seen",children:(0,o.t)("profile_drawer.last_seen",{last_seen:(0,i.z9)(l.last_seen_at)})}):null,t?(0,a.jsx)(c,{icon:"calendar",testId:"profile-member-since",children:(0,o.t)("profile_drawer.member_since",{member_since:(0,s.Fw)(t)})}):null,l.location?(0,a.jsx)(c,{icon:"map",testId:"profile-member-location",children:l.location}):null]})}}}]); 2//# sourceMappingURL=/packs/js/RailbarMemberProfile-d93f8900ff63bb00.chunk.js.map
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.