2 lines
8.8 KiB
JavaScript
2 lines
8.8 KiB
JavaScript
|
"use strict";(self.webpackChunklite=self.webpackChunklite||[]).push([[2278],{78354:(e,n,t)=>{t.d(n,{a:()=>K,s:()=>G});var l=t(96540),i=t(54239),o=t(56173),r=t(71267),a=t(65938),c=t(10974),s=t(57066),u=t(18599),d=t(39931),m=t(29977),p=t(26073),v=t(22841),k=t(52290),g=t(86527),f=t(80296),E=t(24960),h=t(24809),w=t(60603),y=function(e){return{"& path":{fill:e.colorTokens.foreground.neutral.secondary.base},":hover path":{fill:e.colorTokens.foreground.neutral.primary.hover},":focus path":{fill:e.colorTokens.foreground.neutral.primary.hover},":hover":{background:e.colorTokens.background.neutral.secondary.base},padding:"4px",borderRadius:"6px"}},S=function(e){var n=e.popoverRenderFn,t=e.ariaId,i=e.role,o=e.targetDistance,r=(0,w.e)(!1),a=(0,f.A)(r,4),c=a[0],s=a[2],u=a[3];return l.createElement(E.A,{ariaId:t,isVisible:c,placement:"top",targetDistance:o,role:i,popoverRenderFn:n,hide:s,hideOnOutsideClick:!0,noPortal:!0,noArrow:!0},l.createElement(g.N,{onClick:u,rules:y,"aria-controls":t,"aria-expanded":c},l.createElement(h.A,null)))},b=t(36557),C=t(49287),F=function(e){return{"& p":{wordBreak:"break-all"},":hover p":{textDecoration:"underline",color:e.baseColor.text.light}}},N=function(e){var n=e.entity,t=(0,d.p)(n),i=(0,l.useCallback)((function(){return l.createElement(C.Ne,{source:{dimension:"blogroll"},extendSource:!0},"User"===n.__typename?l.createElement(v.J,{user:n,trackingV2:!0}):l.createElement(u.a,{collection:n,trackingV2:!0}))}),[n]);return l.createElement(k.a,{tag:"li",display:"flex",justifyContent:"space-between",alignItems:"center"},l.createElement(g.N,{href:t,rules:F},l.createElement(k.a,{display:"flex",paddingRight:"10px"},l.createElement(k.a,{paddingRight:"12px"},l.createElement(p.K,{publisher:n,scale:"XXXS"})),l.createElement(b.kZ,{clamp:1,scale:"S",color:"LIGHTER"},n.name))),l.createElement(S,{popoverRenderFn:i,ariaId:"creatorInfoPopover-".concat(n.id),role:"dialog",targetDistance:"User"===n.__typename?m.f:u.r}))},x=t(27721),T=t(56942),_=t(72130),I=t(79429),B=t(51260),U=t(42976),D=t(27715),R=function(e){var n,t,i=e.user,o=(0,B.au)(),r=i.id,a=i.customStyleSheet,c=(0,x.R)().value,u=r===(null==c?void 0:c.id),d=(0,_.$L)(),m=(0,I.s)({onPresentedFn:function(){return d.event("sidebar.blogrollViewed",{viewerIsAuthor:u})}}),p=(0,s.y)(i),v=p.isFollowingCountVisible,f=p.followingCount;if((null==a||null===(n=a.blogroll)||void 0===n?void 0:n.visibility)===U.c6.BLOGROLL_VISIBILITY_HIDDEN)return null;var E=null===(t=i.followingEntityConnection)||void 0===t?void 0:t.entities;if(!E||!E.length||f<5)return null;var h=v?"See all (".concat((0,D.fw)(f),")"):"See all";return l.createElement(C.Ne,{extendSource:!0,source:{dimension:"blogroll"}},l.createElement(k.a,{ref:m,position:"relative"},l.createElement(T.DZ,{scale:"XS",tag:"span"},"Following"),l.createElement(k.a,{marginTop:"16px",marginBottom:"16px",tag:"ul"},E.map((function(e){return l.createElement(N,{key:null==e?void 0:e.id,entity:e})}))),i.username&&l.createElement(b.kZ,{scale:"S"},l.createElement(g.N,{href:o("ShowUserFollowing",{username:i.username}),linkStyle:"SUBTLE"},h))))},L=t(22805),V=t(97078),A=t(70600),P=t(36469),Z=t(88474),M=t(7580),X=t(33735),z=t(56774),O=t(42600),W=t(79959),G=88,H=function(e){var n=e.user,t=(0,x.R)().value,i=t&&t.id===n.id,o=(0,B.au)(),r=(0,W.ST)(o("ShowSettingsTab",{setting:L.W.Account}),{},V.cZ);return i?l.createElement(k.a,{marginTop:"24px",marginBottom:"46px"},l.createElement(b.kZ,{scale:"S",color:"ACCENT"},l.createElement(g.N,{href:r},"Edit profile"))):l.createElement(k.a,{display:"flex",marginBottom:"40px",marginTop:"24px"},l.createElement(X.m,{creator:n,followButtonSize:"REGULAR",susiEntry:"follow_profile",showMembershipUpsellModal:!0,width:"auto",trackingV2:!0}))},K=function(e){var n,t=e.includeBlogRoll,s=e.user,u=(0,Z.E)(s),d=(0,i.zy)(),m=(0,B.W5)(d.pathname),p="ShowUserFollowers"===(null==m?void 0:m.route.name),v=(null===(n=s.membership)||void 0===n?void 0:n.tier)===U.T3.FRIEND,g=(0,z.X)({entity:s});return l.createElement(l.Fragment,null,l.createElement(M.r,{alt:s.name||"",miroId:s.imageId||O._3,diameter:G}),l.createElement(k.a,{marginTop:"1
|
||
|
//# sourceMappingURL=https://stats.medium.build/lite/sourcemaps/2278.ea9a70e6.chunk.js.map
|