1"use strict"; 2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="376db92c-a44b-5736-b0ab-23c315d33dcd")}catch(e){}}(); 3(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[39885],{16377:function(e,n,r){r.d(n,{L:function(){return o}});r(16020),r(30782);var t=r(40458),i=r(91880),s=r(73665);function o(e,n){var r,o,a=(0,t.c)(4);a[0]!==n||a[1]!==e?(r=function(){var r=function(r){e.every((function(e){return!(!e.current||"function"==typeof e.current.contains&&e.current.contains(r.target))}))&&n(r)},t=!!(0,s.j)()&&{passive:!0};return document.addEventListener("mousedown",r,t),document.addEventListener("touchstart",r,t),function(){document.removeEventListener("mousedown",r),document.removeEventListener("touchstart",r)}},o=[e,n],a[0]=n,a[1]=e,a[2]=r,a[3]=o):(r=a[2],o=a[3]),(0,i.useEffect)(r,o)}},32080:function(e,n,r){r.d(n,{y:function(){return c},l:function(){return l}});var t=r(40458),i=r(91880),s=r(53539),o=r(80980),a=(0,i.createContext)(null),c=function(e){var n,r=(0,t.c)(8),i=e.children,c=e.onFollowMutationSuccess,l=(0,s.jE)();r[0]!==c||r[1]!==l?(n=function(e){null==c||c({queryClient:l},e)},r[0]=c,r[1]=l,r[2]=n):n=r[2];var u,d=n;r[3]!==d?(u={notifyFollowMutationSuccess:d},r[3]=d,r[4]=u):u=r[4];var f,m=u;return r[5]!==i||r[6]!==m?(f=(0,o.jsx)(a.Provider,{value:m,children:i}),r[5]=i,r[6]=m,r[7]=f):f=r[7],f},l=function(){var e,n=(0,t.c)(2),r=(0,i.useContext)(a),s=null==r?void 0:r.notifyFollowMutationSuccess;return n[0]!==s?(e={notifyFollowMutationSuccess:s},n[0]=s,n[1]=e):e=n[1],e}},37730:function(e,n,r){r.d(n,{D:function(){return o}});var t=r(40458),i=r(97660),s=r(80980),o=function(e){var n,r=(0,t.c)(6),o=e.owner,a=e.size,c=e.className,l=e.priority,u=void 0===a?"sm":a,d=void 0!==l&&l;return r[0]!==c||r[1]!==o.displayName||r[2]!==o.imageUrl||r[3]!==d||r[4]!==u?(n=(0,s.jsx)(i.e,{displayName:o.displayName,imageUrl:o.imageUrl,size:u,className:c,priority:d}),r[0]=c,r[1]=o.displayName,r[2]=o.imageUrl,r[3]=d,r[4]=u,r[5]=n):n=r[5],n}},39885:function(e,n,r){r.d(n,{Q:function(){return R}});var t=r(56945),i=r.n(t),s=(r(91662),r(2350),r(30782),r(315),r(28593),r(12726),r(55303),r(55020),r(30155),r(73117),r(43948),r(67084),r(40458)),o=r(91880),a=(r(75933),r(40154)),c=r(95753),l=r(32387),u=r(67718),d=(0,c.J)("\n query CommunityProfilePopover($publicId: ID!) {\n communityProfile(ref: $publicId) {\n slug\n displayName\n imageUrl\n followerCount\n commentCount\n bio\n registerDate\n totalNarrativeViews\n totalWatchlistViews\n subscriberCount\n isSubscribed\n links {\n label\n link\n }\n badges {\n ...IssuedBadgeFields\n }\n }\n }\n",[u.r]),f=(0,l.Jb)(d,{staleTime:1/0,tags:["community-profile"]}),m=r(37730),p=r(93160),b=r(93532),v=r(88718),x=r(4627),h=r(84961),y=r(43637),g=r(70977),j=r(80980),w=function(e){var n,r,t,i=(0,s.c)(7),o=e.label,a=e.children;return i[0]!==o?(n=(0,j.jsx)("div",{className:"whitespace-nowrap text-tiny text-soft",children:o}),i[0]=o,i[1]=n):n=i[1],i[2]!==a?(r=(0,j.jsx)("div",{className:"font-serif text-base font-medium leading-none text-solid sm:text-xl",children:a}),i[2]=a,i[3]=r):r=i[3],i[4]!==n||i[5]!==r?(t=(0,j.jsxs)("div",{className:"grid border-l border-strong pl-3 first:border-l-0 first:pl-0",children:[n,r]}),i[4]=n,i[5]=r,i[6]=t):t=i[6],t},N=function(e){var n,r=(0,s.c)(77),t=e.publicId;r[0]!==t?(n={publicId:t},r[0]=t,r[1]=n):n=r[1];var i,o=f(n),c=o.data,l=o.refetch,u=o.isRefetching,d=(0,x.z1)().trackEvent;r[2]!==l?(i=function(){l()},r[2]=l,r[3]=i):i=r[3];var N=i,k=null==c?void 0:c.communityProfile;if(!k)return null;var S,_=k.displayName,O=k.imageUrl,E=k.followerCount,C=k.commentCount,P=k.bio,D=k.registerDate,I=k.isSubscribed,L=k.subscriberCount,T=k.totalNarrativeViews,A=k.totalWatchlistViews,M=k.badges,F=k.links;r[4]!==M?(S=(0,b.Uw)(M),r[4]=M,r[5]=S):S=r[5];var z,U,R=S,V=T+A;r[6]!==_||r[7]!==O?(z=(0,j.jsx)(m.D,{size:"md",owner:{displayName:_,imageUrl:O}}),r[6]=_,r[7]=O,r[8]=z):z=r[8],r[9]!==M||r[10]!==z?(U=(0,j.jsx)(b.bU,{badges:M,avatarSize:"md",children:z}),r[9]=M,r[10]=z,r[11]=U):U=r[11];var $,B="/community/users/".concat(t);r[12]!==d?($=function(){d({modifier:"profile",action:"click"})},r[12]=d,r[13]=$):$=r[13];var J,K,H,Q,q,W,X,G,Y,Z,ee,ne,re,te,ie,se,oe,ae,ce,le,ue,de,fe,me,pe=_||p.A;return r[14]!==B||r[15]!==$||r[16]!==pe?(J=(0,j.jsx)(v.N_,{href:B,className:"min-w-[100px] truncate text-base font-medium text-solid no-underline [word-break:break-word] hocus:underline",onClick:$,children:pe}
3),r[14]=B,r[15]=$,r[16]=pe,r[17]=J):J=r[17],r[18]!==u||r[19]!==I||r[20]!==N||r[21]!==t?(K=(0,j.jsx)("div",{className:"max-[400px]:hidden",children:(0,j.jsx)(y.c,{publicId:t,isSubscribed:I,isLoading:u,onSuccess:N})}),r[18]=u,r[19]=I,r[20]=N,r[21]=t,r[22]=K):K=r[22],r[23]!==K||r[24]!==J?(H=(0,j.jsxs)("div",{className:"grid w-full grid-cols-[1fr_auto] items-center justify-between gap-2",children:[J,K]}),r[23]=K,r[24]=J,r[25]=H):H=r[25],r[26]!==D?(Q=D&&(0,j.jsxs)("div",{className:"text-xs text-soft",children:["Member since ",new Date(D).getUTCFullYear()]}),r[26]=D,r[27]=Q):Q=r[27],r[28]!==H||r[29]!==Q?(q=(0,j.jsxs)("div",{className:"grid w-full",children:[H,Q]}),r[28]=H,r[29]=Q,r[30]=q):q=r[30],r[31]!==q||r[32]!==U?(W=(0,j.jsxs)("div",{className:"grid grid-cols-[auto_1fr] items-center gap-x-3",children:[U,q]}),r[31]=q,r[32]=U,r[33]=W):W=r[33],r[34]!==u||r[35]!==I||r[36]!==N||r[37]!==t?(X=(0,j.jsx)("div",{className:"hidden max-[400px]:grid",children:(0,j.jsx)(y.c,{publicId:t,isSubscribed:I,isLoading:u,onSuccess:N})}),r[34]=u,r[35]=I,r[36]=N,r[37]=t,r[38]=X):X=r[38],r[39]!==F?(G=F&&F.length>0&&(0,j.jsx)("div",{className:"flex flex-wrap items-center gap-x1",children:(0,j.jsx)(g.z,{links:F})}),r[39]=F,r[40]=G):G=r[40],r[41]!==V?(Y=(0,h.ZV)(V,1),r[41]=V,r[42]=Y):Y=r[42],r[43]===Symbol.for("react.memo_cache_sentinel")?(Z=(0,j.jsx)("span",{className:"sr-only",children:"Total number of views"}),r[43]=Z):Z=r[43],r[44]!==Y?(ee=(0,j.jsxs)(w,{label:"Views",children:[Y," ",Z]}),r[44]=Y,r[45]=ee):ee=r[45],r[46]!==E?(ne=(0,a.toTruncated)(E,0),r[46]=E,r[47]=ne):ne=r[47],r[48]===Symbol.for("react.memo_cache_sentinel")?(re=(0,j.jsx)("span",{className:"sr-only",children:"Total number of fair values set"}),r[48]=re):re=r[48],r[49]!==ne?(te=(0,j.jsxs)(w,{label:"Fair Values Set",children:[ne," ",re]}),r[49]=ne,r[50]=te):te=r[50],r[51]!==C?(ie=(0,a.toTruncated)(C,0),r[51]=C,r[52]=ie):ie=r[52],r[53]===Symbol.for("react.memo_cache_sentinel")?(se=(0,j.jsx)("span",{className:"sr-only",children:"Total number of comments"}),r[53]=se):se=r[53],r[54]!==ie?(oe=(0,j.jsxs)(w,{label:"Comments",children:[ie," ",se]}),r[54]=ie,r[55]=oe):oe=r[55],r[56]!==L?(ae=(0,a.toTruncated)(L,0),r[56]=L,r[57]=ae):ae=r[57],r[58]===Symbol.for("react.memo_cache_sentinel")?(ce=(0,j.jsx)("span",{className:"sr-only",children:"Total number of followers"}),r[58]=ce):ce=r[58],r[59]!==ae?(le=(0,j.jsxs)(w,{label:"Followers",children:[ae," ",ce]}),r[59]=ae,r[60]=le):le=r[60],r[61]!==ee||r[62]!==te||r[63]!==oe||r[64]!==le?(ue=(0,j.jsxs)("div",{className:"flex flex-wrap gap-x-3 gap-y-x1",children:[ee,te,oe,le]}),r[61]=ee,r[62]=te,r[63]=oe,r[64]=le,r[65]=ue):ue=r[65],r[66]!==P?(de=P&&(0,j.jsx)("div",{className:"-mt-2 text-tiny text-solid [word-break:break-word]",children:P}),r[66]=P,r[67]=de):de=r[67],r[68]!==R?(fe=R&&(0,j.jsx)("div",{className:"flex flex-wrap gap-2",children:(0,j.jsx)(b.Lg,{badge:R})}),r[68]=R,r[69]=fe):fe=r[69],r[70]!==W||r[71]!==X||r[72]!==G||r[73]!==ue||r[74]!==de||r[75]!==fe?(me=(0,j.jsxs)("div",{className:"grid w-[calc(100dvw-64px)] max-w-[calc(100dvw-64px)] gap-x2 min-[400px]:w-[380px]",children:[W,X,G,ue,de,fe]}),r[70]=W,r[71]=X,r[72]=G,r[73]=ue,r[74]=de,r[75]=fe,r[76]=me):me=r[76],me},k=function(e){var n,r,t,i=(0,s.c)(7),o=e.label,a=e.children;return i[0]!==o?(n=(0,j.jsx)("div",{className:"whitespace-nowrap text-tiny text-soft",children:o}),i[0]=o,i[1]=n):n=i[1],i[2]!==a?(r=(0,j.jsx)("div",{className:"font-serif text-base font-medium leading-none text-solid sm:text-xl",children:a}),i[2]=a,i[3]=r):r=i[3],i[4]!==n||i[5]!==r?(t=(0,j.jsxs)("div",{className:"grid border-l border-strong pl-3 first:border-l-0 first:pl-0",children:[n,r]}),i[4]=n,i[5]=r,i[6]=t):t=i[6],t},S=function(){var e,n,r,t,i,o,a,c=(0,s.c)(7);return c[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,j.jsx)("div",{className:"bones size-12 rounded-full"}),c[0]=e):e=c[0],c[1]===Symbol.for("react.memo_cache_sentinel")?(n=(0,j.jsxs)("div",{className:"grid grid-cols-[auto_1fr] items-center gap-x-3",children:[e,(0,j.jsxs)("div",{className:"grid gap-0.5",children:[(0,j.jsx)("div",{className:"bones h-6 w-32"}),(0,j.jsx)("div",{className:"bones h-5 w-24"})]})]}),c[1]=n):n=c[1],c[2]===Symbol.for("react.memo_cache_sentinel")?(r=(0,j.jsx)(k,{label:"Views",children:(0,j.jsx)("div",{className:"bones h-7 w-16"})}),c[2]=r):r=c[2],c[3]===Symbol.for("react.memo_cache_sentinel")?(t=(0,j.jsx)(k,{label:"Fair V
3alues Set",children:(0,j.jsx)("div",{className:"bones h-7 w-16"})}),c[3]=t):t=c[3],c[4]===Symbol.for("react.memo_cache_sentinel")?(i=(0,j.jsx)(k,{label:"Comments",children:(0,j.jsx)("div",{className:"bones h-7 w-16"})}),c[4]=i):i=c[4],c[5]===Symbol.for("react.memo_cache_sentinel")?(o=(0,j.jsxs)("div",{className:"flex flex-wrap gap-x-2 gap-y-x1",children:[r,t,i,(0,j.jsx)(k,{label:"Followers",children:(0,j.jsx)("div",{className:"bones h-7 w-16"})})]}),c[5]=o):o=c[5],c[6]===Symbol.for("react.memo_cache_sentinel")?(a=(0,j.jsxs)("div",{className:"grid gap-x2",role:"presentation","aria-label":"Loading...",children:[n,o,(0,j.jsxs)("div",{className:"grid gap-1",children:[(0,j.jsx)("div",{className:"bones h-4 w-full"}),(0,j.jsx)("div",{className:"bones h-4 w-3/4"}),(0,j.jsx)("div",{className:"bones h-4 w-1/2"})]}),(0,j.jsx)("div",{className:"bones h-5 w-24 rounded-full"})]}),c[6]=a):a=c[6],a},_=r(59458),O=r(26199),E=r.n(O),C=(r(8691),r(90683),r(44290),r(25196),r(884),r(25231)),P=r(28863),D=r(16377),I=r(2015);function L(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,t)}return r}function T(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?L(Object(r),!0).forEach((function(n){i()(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):L(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}var A=["hover","click","keypress","contextmenu"],M=(0,v.cn)("border !z-popover max-w-full rounded-lg border-subtle bg-surface-2 p-x2 shadow-crisp sm:max-w-[480px]","opacity-100 transition-opacity duration-300","[&[data-entering]]:opacity-0","[&[data-exiting]]:opacity-0"),F=function(e){var n=e.trigger,r=e.children,t=e.onOpen,i=e.interactionModes,s=void 0===i?[].concat(A):i,a=e.hoverOpenDelay,c=void 0===a?300:a,l=e.hoverDismissDelay,u=void 0===l?300:l,d=e.triggerProps,f=e.popoverClassName,m=(0,o.useState)(!1),p=E()(m,2),b=p[0],x=p[1],h=(0,P.Qf)("(pointer: coarse)",!1),y=(0,o.useRef)(null),g=(0,o.useRef)(null),w=(0,o.useRef)(null),N=(0,o.useRef)(null),k=s.join(","),S=(0,o.useMemo)((function(){return k.split(",")}),[k]);(0,D.L)([y,g],(function(){x(!1)})),(0,o.useEffect)((function(){if(b&&window){var e=function(){x(!1)};return window.addEventListener("scroll",e,{passive:!0}),function(){return window.removeEventListener("scroll",e)}}}),[b]),(0,o.useEffect)((function(){if(b){var e=function(e){"Escape"===e.key&&x(!1)};return document.addEventListener("keydown",e),function(){return document.removeEventListener("keydown",e)}}}),[b]),(0,o.useEffect)((function(){b&&(null==t||t())}),[b]);var _=(0,o.useCallback)((function(){N.current&&clearTimeout(N.current),w.current&&clearTimeout(w.current)}),[]);(0,o.useEffect)((function(){return function(){_()}}),[_]);var O=(0,o.useCallback)((function(){S.includes("hover")&&(h||(_(),N.current=setTimeout((function(){return x(!0)}),c)))}),[h,_,c,S]),L=(0,o.useCallback)((function(){S.includes("hover")&&(h||(_(),w.current=setTimeout((function(){return x(!1)}),u)))}),[h,_,u,S]);return(0,j.jsxs)(C.zMO,{isOpen:b,children:[(0,j.jsx)(C.oz6,{isDisabled:!0,ref:y,children:(0,j.jsx)("div",T(T({},(0,I.v6)({onClick:function(){S.includes("click")&&(_(),x((function(e){return!e})))},onMouseEnter:O,onMouseLeave:L,onKeyDown:function(e){S.includes("keypress")&&("Enter"!==e.key&&" "!==e.key||(_(),x((function(e){return!e}))))},onContextMenu:function(e){S.includes("contextmenu")&&(e.preventDefault(),x(!0))},tabIndex:0,role:"button"},d)),{},{className:(0,v.cn)("focus-outline cursor-pointer select-none rounded-full",null==d?void 0:d.className),children:n}))}),(0,j.jsx)(C.AMh,{ref:g,placement:"top",isNonModal:!0,shouldFlip:!0,isKeyboardDismissDisabled:!0,className:(0,v.cn)(M,f),onMouseEnter:O,onMouseLeave:L,children:(0,j.jsx)(C.lGe,{className:"overflow-auto outline-none",children:r})})]})};function z(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,t)}return r}function U(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};
3n%2?z(Object(r),!0).forEach((function(n){i()(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):z(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}var R=function(e){var n,r,t=(0,s.c)(20),i=e.children,a=e.publicId,c=e.interactionModes,l=e.triggerProps,u=e.popoverClassName;t[0]!==a?(r={type:"track",subject:"community_profile_popover",publicId:a},t[0]=a,t[1]=r):r=t[1];var d,f=(0,x.z1)(r),m=f.trackEvent,p=f.Track,b=(0,o.useRef)(!1);if(!a)return i;t[2]!==m?(d=function(){b.current||(b.current=!0,m({action:"open"}))},t[2]=m,t[3]=d):d=t[3];var v,h,y,g,w,k=null!==(n=null==l?void 0:l["aria-label"])&&void 0!==n?n:"Open community profile details";return t[4]!==k||t[5]!==l?(v=U(U({},l),{},{"aria-label":k}),t[4]=k,t[5]=l,t[6]=v):v=t[6],t[7]===Symbol.for("react.memo_cache_sentinel")?(h=(0,j.jsx)(S,{}),t[7]=h):h=t[7],t[8]!==a?(y=(0,j.jsx)(o.Suspense,{fallback:h,children:(0,j.jsx)(_.X,{children:(0,j.jsx)(N,{publicId:a})})}),t[8]=a,t[9]=y):y=t[9],t[10]!==i||t[11]!==c||t[12]!==u||t[13]!==d||t[14]!==v||t[15]!==y?(g=(0,j.jsx)(F,{trigger:i,onOpen:d,triggerProps:v,interactionModes:c,popoverClassName:u,children:y}),t[10]=i,t[11]=c,t[12]=u,t[13]=d,t[14]=v,t[15]=y,t[16]=g):g=t[16],t[17]!==p||t[18]!==g?(w=(0,j.jsx)(p,{children:g}),t[17]=p,t[18]=g,t[19]=w):w=t[19],w}},43637:function(e,n,r){r.d(n,{c:function(){return t.c}});var t=r(80541)},59458:function(e,n,r){r.d(n,{X:function(){return p}});var t=r(48937),i=r.n(t),s=r(26199),o=r.n(s),a=r(93656),c=r.n(a),l=r(52371),u=r(61860),d=r(53539),f=r(91880),m=r(80980),p=function(e){var n=e.message,r=void 0===n?"Failed to load. Please try again.":n,t=e.children,s=(0,f.useState)(!1),a=o()(s,2),p=a[0],b=a[1],v=(0,f.useState)(!1),x=o()(v,2),h=x[0],y=x[1],g=(0,d.jE)(),j=function(){var e=i()(c().mark((function e(n){return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!p){e.next=3;break}return window.location.reload(),e.abrupt("return");case 3:return e.prev=3,y(!0),e.next=7,g.invalidateQueries();case 7:n(),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(3),console.error("Failed to soft reload",e.t0);case 13:return e.prev=13,b(!0),y(!1),e.finish(13);case 17:case"end":return e.stop()}}),e,null,[[3,10,13,17]])})));return function(n){return e.apply(this,arguments)}}();return(0,m.jsx)(l.ErrorBoundary,{fallback:function(e){var n=e.resetError;return(0,m.jsx)(u.Fc,{styleType:"negative",actions:(0,m.jsx)(u.T2,{onClick:function(){return j(n)},disabled:h,children:h?"Loading...":p?"Reload":"Retry"}),children:r})},children:t})}},70977:function(e,n,r){r.d(n,{z:function(){return u}});r(55303),r(53313),r(91662),r(2350),r(30782),r(33853),r(90977),r(96165),r(75933),r(31744),r(98517),r(25403),r(28379),r(63200),r(46681),r(46264),r(15209),r(2730),r(1439),r(59579);var t=r(40458),i=r(4627),s=r(88718),o=r(52063),a=r(80980);function c(e,n){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,n){if(!e)return;if("string"==typeof e)return l(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return l(e,n)}(e))||n&&e&&"number"==typeof e.length){r&&(e=r);var t=0,i=function(){};return{s:i,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,o=!0,a=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){a=!0,s=e},f:function(){try{o||null==r.return||r.return()}finally{if(a)throw s}}}}function l(e,n){(null==n||n>e.length)&&(n=e.length);for(var r=0,t=new Array(n);r<n;r++)t[r]=e[r];return t}var u=function(e){var n,r=(0,t.c)(7),l=e.links,u=e.iconsOnly,d=void 0!==u&&u,f=function(e){var n,r=(0,o.Tp)(e),t=r.bySocial,i=r.otherLink,s=[],a=c(o.PP);try{for(a.s();!(n=a.n()).done;){var l=n.value,u=t[l];u&&s.push({type:l,link:u.link})}}catch(e){a.e(e)}finally{a.f()}return i&&s.push({type:"OTHER",link:i.link}),s}(l);r[0]===Symbol.for("react.memo_cache_sentinel")?(n={subject:"social-links",type:"track"},r[0]=n):n=r[0];var m=(0,i.z1)(n),p=m.Track,b=m.trackEvent;if(0===f.length)return null;var v,x=!d&&f.length<=2;r[1]!==x||r[2]!==b?(v=function(e){var n=e.type,r=e.link,t=(0,o.wA)(n),i=t.Icon;return(0,a.jsx)(s.m_,{placement:"top",className:"break-all",content:(0,a.jsxs)("span",{className:"grid gap-y-x0_25",children:[(0,a.jsx)("span",{className:"font-strong",children:t.label}),(0,a.jsx)("span",{children:r})]}),children:(0,a.jsxs)(s.N_,{href:r,target:"_blank",rel:"noopener noreferrer nofollow","aria-label":"".concat(t.label," profile"),onClick:function(){return b({action:"click",modifier:"navigate",linkType:n,url:r})},className:"inline-flex items-center gap-x0_5 text-soft no-underline hover:text-solid",children:[(0,a.jsx)(i,{className:"size-4 fill-current"}),x&&(0,a.jsx)("span",{className:"text-xs text-solid",children:t.label})]})},n)},r[1]=x,r[2]=b,r[3]=v):v=r[3];var h,y=f.map(v);return r[4]!==p||r[5]!==y?(h=(0,a.jsx)(p,{children:y}),r[4]=p,r[5]=y,r[6]=h):h=r[6],h}},80541:function(e,n,r){r.d(n,{c:function(){return w}});var t=r(48937),i=r.n(t),s=r(93656),o=r.n(s),a=r(88718),c=r(95753),l=r(32387),u=(0,c.J)("\n mutation CommunityProfileSubscribe($publicId: ID!) {\n followCommunityProfile(target: $publicId)\n }\n"),d=(0,l.O1)(u),f=(0,c.J)("\n mutation CommunityProfileUnsubscribe($publicId: ID!) {\n unfollowCommunityProfile(target: $publicId)\n }\n"),m=(0,l.O1)(f),p=r(91880),b=r(95095),v=r(76254),x=r(96924),h=r(36523),y=r(32080),g=r(4627),j=r(80980),w=function(e){var n=e.publicId,r=e.isSubscribed,t=e.isLoading,s=e.onSuccess,c=e.size,l=void 0===c?"medium":c,u=e.children,f=d(),w=f.mutateAsync,N=f.isPending,k=m(),S=k.mutateAsync,_=k.isPending,O=(0,v.s)(),E=O.publicId,C=O.isLoggedIn,P=(0,h.FU)(),D=(0,y.l)().notifyFollowMutationSuccess,I=(0,x.useSnackbar)().addSnackbar,L=(0,g.z1)({type:"track",subject:"community_profile_subscription",publicId:n}).trackEvent,T=E===n,A=(0,p.useCallback)(i()(o().mark((function e(){var t;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=!r,e.prev=1,!t){e.next=8;break}return e.next=5,w({publicId:n});case 5:L({action:"subscribe"}),e.next=11;break;case 8:return e.next=10,S({publicId:n});case 10:L({action:"unsubscribe"});case 11:P(["community-profile"]),null==D||D({publicId:n,isSubscribed:t}),null==s||s({isSubscribed:t}),e.next=20;break;case 16:e.prev=16,e.t0=e.catch(1),console.error("Error toggling subscription",e.t0),I({message:t?"Error following author":"Error unfollowing author",type:"negative",lifeTime:5e3});case 20:case"end":return e.stop()}}),e,null,[[1,16]])}))),[r,P,S,w,n,L,s,D,I]),M=N||_||t;return T||!C?null:u?u({isSubscribed:r,isLoading:M,toggleSubscription:A}):(0,j.jsxs)(a.$n,{variant:r?"secondary":"primary",size:l,isLoading:M,onClick:A,className:(0,a.cn)(r&&!M&&"gap-0.5 !pl-x0_5"),children:[r&&!M&&(0,j.jsx)(b.A,{}),r?"Following":"Follow"]})}},93160:function(e,n,r){r.d(n,{A:function(){return t}});var t="Anonymous User"}}]); 4//# sourceMappingURL=39885.modern.c201e3d8.js.map 5//# debugId=376db92c-a44b-5736-b0ab-23c315d33dcd
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.