PageSourceSearch

https://builds.contra.com/assets/assets/chunks/shared~entries/src/…/src/pages/comm~m8jryury-BHYJjRMa.js

js contra.com collected 2026-09-24 08:28:29 UTC 94,824 bytes, 7 lines download raw bytes

1
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]="de2c600c-b7b4-526b-b0ac-907e3666eb48")}catch(e){}}();
3import{i as e,r as t,s as n}from"../../../../../../../../../../rolldown-runtime-DvfoX5Ak.js";import{Ad as r,Au as i,Bi as a,C as o,Dd as s,E as c,Fd as l,Gn as u,Hi as d,Iu as f,Ji as p,Ki as m,Lr as h,Md as g,Nf as _,Od as v,Oi as y,Op as b,Ot as x,Pf as S,Qu as C,Rd as w,Tp as T,Tt as E,Un as D,Ur as O,Wt as k,Wu as A,X as j,Yi as M,Yu as N,al as P,au as F,cd as I,cl as L,el as ee,gr as R,ku as z,ld as B,ml as V,mp as H,nd as U,nh as te,pl as W,pr as G,qu as ne,ra as re,rh as K,sd as q,t as J,uh as ie,vu as ae,w as oe,wp as Y,xd as se,yp as ce,yr as le,zn as ue}from"../../../../../../../../../../shared_core-C6HDEX7I.js";import{nt as de,st as fe,yt as pe}from"../../../../../../../../../../framework-BAK0rp3s.js";import{n as X,t as me}from"../../../../../../../../../../styled_system-mBJTjpbq.js";import{t as he}from"../../../../../../../../../../CalendarIcon-Drnmtqiw.js";import{t as ge}from"../../../../../../../../../../ContraStarIcon-BJ_YSGTM.js";import{t as _e}from"../../../../../../../../../../DiscoveryIcon-rBjfyov3.js";import{t as ve}from"../../../../../../../../../../ListCheckIcon-Di5FooUI.js";import{t as ye}from"../../../../../../../../../../TrophyIcon-D4mgz-PG.js";import{t as be}from"../../../../../../../@internal/ads/edit/@adCampaignId~entries/src/pages/@internal/ads/n~gottxphd-C_Vmc7P9.js";import{a as xe,i as Se,r as Ce,t as we}from"../../../../../../../@internal/ads/edit/@adCampaignId~entries/src/pages/@internal/ads/n~iom0klt2-qT1XkuN4.js";import{t as Te}from"../../../../../../../../../../UserOutlineIcon-DX2I0XEA.js";import{t as Ee}from"../../../../../../../../../../SocialPostTag-DtR40E75.js";import{n as De,r as Oe}from"../../../../../../../@internal/ads/edit/@adCampaignId~entries/src/pages/@internal/ads/n~f9kkv4pg-CaJknasQ.js";import{n as ke}from"../../../../../../../../../../SocialPostTagsContext-CrR-o4E0.js";import{r as Ae}from"../../../../../../../../../../utilities-BPYQ9fIs.js";import{n as je,t as Me}from"../../../../../../../../../../useSocialPostContext-afZCZGza.js";import{t as Ne}from"../../../../../../../../../../useEngagementOrganization-BIW1y_v0.js";import{a as Pe,n as Fe}from"../../../../../../../@internal/ads/edit/@adCampaignId~entries/src/pages/@internal/ads/n~jb8tfvdy-UpfHohF4.js";import{t as Ie}from"../../../../../../../../../../useSocialPostShare-CVZAlrt4.js";import{t as Le}from"../../../../../../../../../../externalChallengeRedirect-BqcFnYVj.js";import{n as Re}from"../../../../../../../../../../getChallengeTimeInfo-I4l7gqeT.js";import{t as ze}from"../../../../../../../../../../getAndStoreAdClickIds-xZAqIPOG.js";import{t as Be}from"../../../../../../../../../../trackGoogleConversion-Dnqpju9i.js";import{t as Ve}from"../../../../../../../../../../useWorkspaces-BYImUaE5.js";import{t as He}from"../../../../../../../../../../TopicUser-Y_M9Yu5e.js";var Z=de(),Q=n(pe(),1),DataIcon=e=>(0,Q.createElement)(q,{...e,viewBox:`0 0 24 24`},(0,Z.jsx)(`g`,{clipPath:`url(#ic53__clip0_891_54160)`,children:(0,Z.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M24 12H12V0C11.4967 0 10.9957 0.0316529 10.5 0.09411C8.65817 0.32616 6.88805 0.983423 5.33316 2.02236C3.35977 3.34094 1.8217 5.21509 0.913451 7.4078C0.00519944 9.60051 -0.232441 12.0133 0.230582 14.3411C0.693605 16.6689 1.83649 18.8071 3.51472 20.4853C5.19295 22.1635 7.33115 23.3064 9.65892 23.7694C11.9867 24.2324 14.3995 23.9948 16.5922 23.0866C18.7849 22.1783 20.6591 20.6402 21.9776 18.6668C23.0166 17.112 23.6738 15.3418 23.9059 13.5C23.9684 13.0043 24 12.5033 24 12ZM20.7304 17.8335C21.6042 16.5258 22.1694 15.0441 22.3923 13.5H11.5607L5.12467 19.936C6.49821 21.126 8.16077 21.942 9.95156 22.2982C11.9884 22.7034 14.0996 22.4955 16.0182 21.7007C17.9368 20.906 19.5767 19.5602 20.7304 17.8335ZM4.06401 18.8753C2.87404 17.5018 2.05797 15.8392 1.70176 14.0484C1.29662 12.0116 1.50455 9.90045 2.29927 7.98182C3.09399 6.0632 4.4398 4.42332 6.16652 3.26957C7.4742 2.3958 8.95586 1.83057 10.5 1.60769V12.4393L4.06401 18.8753ZM23.8923 9C23.7678 8.13703 23.5359 7.29098 23.2007 6.48183C22.6731 5.20791 21.8996 4.0504 20.9246 3.07538C19.9496 2.10036 18.7921 1.32694 17.5182 0.799265C16.709 0.464103 15.863 0.232255 15 0.10
37695C14.5043 0.0361493 14.0031 0 13.5 0V10.5L24 10.5C24 9.99694 23.9639 9.49568 23.8923 9ZM16.9442 2.18508C16.3177 1.9256 15.6654 1.73836 15 1.62588V9L22.3741 9C22.2616 8.33456 22.0744 7.6823 21.8149 7.05585C21.3626 5.96392 20.6997 4.97177 19.864 4.13604C19.0282 3.30031 18.0361 2.63738 16.9442 2.18508Z`,fill:`currentColor`})}),(0,Z.jsx)(`defs`,{children:(0,Z.jsx)(`clipPath`,{id:`ic53__clip0_891_54160`,children:(0,Z.jsx)(`rect`,{width:24,height:24,fill:`white`})})})),$=fe(),Ue=(function(){var e={alias:null,args:null,concreteType:`SuperLikeQuota`,kind:`LinkedField`,name:`superLikeQuota`,plural:!1,selections:[{alias:null,args:null,kind:`ScalarField`,name:`remaining`,storageKey:null},{alias:null,args:null,kind:`ScalarField`,name:`total`,storageKey:null}],storageKey:null},t={alias:null,args:null,kind:`ScalarField`,name:`id`,storageKey:null};return{fragment:{argumentDefinitions:[],kind:`Fragment`,metadata:null,name:`CommunitySidebarQuickActions_QuotaQuery`,selections:[{alias:null,args:null,concreteType:`Visitor`,kind:`LinkedField`,name:`visitor`,plural:!1,selections:[{alias:null,args:null,concreteType:`UserAccount`,kind:`LinkedField`,name:`userAccount`,plural:!1,selections:[e],storageKey:null}],storageKey:null}],type:`Query`,abstractKey:null},kind:`Request`,operation:{argumentDefinitions:[],kind:`Operation`,name:`CommunitySidebarQuickActions_QuotaQuery`,selections:[{alias:null,args:null,concreteType:`Visitor`,kind:`LinkedField`,name:`visitor`,plural:!1,selections:[{alias:null,args:null,concreteType:`UserAccount`,kind:`LinkedField`,name:`userAccount`,plural:!1,selections:[e,t],storageKey:null},t],storageKey:null}]},params:{id:`9726917660000627b42ef4aa6debb841`,metadata:{},name:`CommunitySidebarQuickActions_QuotaQuery`,operationKind:`query`,text:null}}})();Ue.hash=`852a01cb83233743552ca375ef22fb7d`;var We=`eUEgWb bYPztT jZzPrs hYCnIA dpjryq hDGJaH dTBYkx fanexX fPSBzf jrWRtM fNCCdc bYPznK dkAowc hxqEfr jsxFNZ jsxFtf iSkoyF cbkwRf`,Ge=`fdiXMQ jmzEDN`,UpgoatsButtonPrimitive=({analyticsSection:e,remainingQuota:t,totalQuota:n})=>{let r=Pe({src:Se}),{track:i}=g(),[a,o]=(0,Q.useState)(0),s=P(),c=(0,Q.useCallback)(()=>{r&&(r.currentTime=0,r.play().catch(e=>{console.error(`Error playing goat audio`,e)})),i(`button`,{action:`tapped`,button_name:`social_post_super_like_quota_preview_card`,last_location_pathname:s?.pathname,section:e}),o(e=>e+1)},[e,r,s,i]),l=(0,Q.useCallback)(e=>{e.preventDefault(),e.stopPropagation(),c()},[c]),u=(0,Z.jsx)(be,{className:`jmzEDN`,size:16}),d=t===0?(0,Z.jsx)(Ce,{icon:u,message:`You're out of upgoats! You'll get more tomorrow.`,remaining:t,subMessage:`(No takesies-backsies)`,total:n}):(0,Z.jsx)(Ce,{footer:`Click to practice.`,icon:u,message:`You have limited upgoats. Save it for your most absolute favorite content!`,remaining:t,total:n}),f=(0,Z.jsxs)(`button`,{"aria-label":`Upgoat quota`,className:X(We,`ewVPUB ggNKXS gotgqa bZRhvx kKYCuT hVpAQY jTWvec`),onClick:l,tabIndex:-1,type:`button`,children:[(0,Z.jsxs)(`span`,{className:`bYPztT fEVEmD fNCcFX bYPznK jTWvec fNCcFw`,children:[(0,Z.jsx)(be,{className:X(`default-goat`,`jmzEDN fzpbIC jXSfKH fFUggu`),size:16}),(0,Z.jsx)(xe,{className:X(`selected-goat`,`jmzEDN fzpojb jXSfKH fFUggu`),size:16}),a>0?(0,Z.jsx)(we,{onAnimationEnd:()=>{},size:16},a):null]}),(0,Z.jsxs)(`span`,{children:[t>3?`3`:t,`/`,n>3?`3`:n,` upgoats`]})]});return(0,Z.jsx)(Fe,{sideOffset:8,tooltipContent:d,children:f})},UpgoatsButtonWithLazyData=e=>{let t=(0,$.c)(6),{analyticsSection:n}=e,r,i;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r={},i={fetchPolicy:`store-or-network`},t[0]=r,t[1]=i):(r=t[0],i=t[1]);let a=K(Ue,r,i),o=a.visitor?.userAccount?.superLikeQuota?.remaining??0,s=a.visitor?.userAccount?.superLikeQuota?.total??2,c;return t[2]!==n||t[3]!==o||t[4]!==s?(c=(0,Z.jsx)(UpgoatsButtonPrimitive,{analyticsSection:n,remainingQuota:o,totalQuota:s}),t[2]=n,t[3]=o,t[4]=s,t[5]=c):c=t[5],c},UpgoatsButton=e=>{let t=(0,$.c)(2),{analyticsSection:n}=e,r;return t[0]===n?r=t[1]:(r=(0,Z.jsx)(Q.Suspense,{fallback:(0,Z.jsx)(UpgoatsButtonPrimitive,{analyticsSection:n,remainingQuota:2,totalQuota:2}),children:(0,Z.jsx)(UpgoatsButtonWithLazyData,{analyticsSection:n})}),t[0]=n,t[1]=r),r},YourPostsButton=e=>
3{let t=(0,$.c)(7),{displayUsername:n}=e,r;t[0]===n?r=t[1]:(r=Y(`/community/profile/@username`,{args:{username:n}}),t[0]=n,t[1]=r);let i=r,a;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=X(We,`kKYCuT hVpAQY`),t[2]=a):a=t[2];let o,s;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,Z.jsx)(Te,{className:Ge,size:16}),s=(0,Z.jsx)(`span`,{children:`Your posts`}),t[3]=o,t[4]=s):(o=t[3],s=t[4]);let c;return t[5]===i?c=t[6]:(c=(0,Z.jsxs)(`a`,{className:a,href:i,onClick:_temp4$1,children:[o,s]}),t[5]=i,t[6]=c),c},BookmarksButton=()=>{let e=(0,$.c)(3),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=Y(`/community/bookmarks`),e[0]=t):t=e[0];let n=t,r;e[1]===Symbol.for(`react.memo_cache_sentinel`)?(r=X(We,`eDAKX fNCCdc fNCCcz`),e[1]=r):r=e[1];let i;return e[2]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,Z.jsx)(`a`,{className:r,href:n,onClick:_temp5$1,children:(0,Z.jsx)(C,{className:Ge,size:16})}),e[2]=i):i=e[2],i},CommunitySidebarQuickActions=e=>{let t=(0,$.c)(8),{analyticsSection:n}=e,r=ce();if(!r)return null;let i;t[0]===n?i=t[1]:(i=(0,Z.jsx)(UpgoatsButton,{analyticsSection:n}),t[0]=n,t[1]=i);let a=r.profile.displayUsername??``,o;t[2]===a?o=t[3]:(o=(0,Z.jsx)(YourPostsButton,{displayUsername:a}),t[2]=a,t[3]=o);let s;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,Z.jsx)(BookmarksButton,{}),t[4]=s):s=t[4];let c;return t[5]!==i||t[6]!==o?(c=(0,Z.jsxs)(`div`,{className:`fPSBzf jrIcfy hYZFkb`,children:[i,o,s]}),t[5]=i,t[6]=o,t[7]=c):c=t[7],c};function _temp4$1(e){e.stopPropagation()}e(_temp4$1,`_temp4`);function _temp5$1(e){e.stopPropagation()}e(_temp5$1,`_temp5`);var EngagingAsDropdown=()=>{let e=(0,$.c)(92),[t,n]=(0,Q.useState)(!1),r=ce(),{postAsOrganization:i,setPostAsOrganization:a}=Me(),{track:o}=g(),s=Ne(),c=H(`workspace3`),{selectedWorkspace:l,setSelectedWorkspaceId:u,workspaces:f}=W(),h=r?.selectedUserType===`CONTRACTOR`?`studio`:`company`,_,v,y,b,x,S,C,w,T,E,D,O,k;if(e[0]!==r||e[1]!==t||e[2]!==s||e[3]!==h||e[4]!==i||e[5]!==l?.id||e[6]!==a||e[7]!==u||e[8]!==o||e[9]!==c||e[10]!==f){x=Symbol.for(`react.early_return_sentinel`);bb0:{let g=c?f.flatMap(e=>e.organization?[{id:e.id,noun:e.organization.isStudio?`studio`:`company`,organization:e.organization,selected:l?.id===e.id}]:[]):s?[{id:s.id,noun:h,organization:s,selected:i}]:[],A=r?.profile.firstName,j=r?.profile.lastName,P;e[24]!==A||e[25]!==j?(P=R({firstName:A,lastName:j},`fullName`),e[24]=A,e[25]=j,e[26]=P):P=e[26];let F=P,t14;e[27]!==t||e[28]!==o?(t14=e=>{e?.stopPropagation(),e?.preventDefault(),t||o(`button`,{action:`tapped`,button_name:`engaging_as_dropdown`}),n(!t)},e[27]=t,e[28]=o,e[29]=t14):t14=e[29];let I=t14,t15;e[30]!==i||e[31]!==a||e[32]!==u||e[33]!==o||e[34]!==c?(t15=e=>{e.stopPropagation(),e.preventDefault(),i&&(o(`button`,{action:`tapped`,button_name:`engaging_as_dropdown_select_user`,section:`community_page`}),c?u(null):a(!1)),n(!1)},e[30]=i,e[31]=a,e[32]=u,e[33]=o,e[34]=c,e[35]=t15):t15=e[35];let L=t15,t16;e[36]!==i||e[37]!==a||e[38]!==u||e[39]!==o||e[40]!==c?(t16=e=>{e.stopPropagation(),e.preventDefault(),(c||!i)&&(o(`button`,{action:`tapped`,button_name:`engaging_as_dropdown_select_organization`,section:`community_page`}),c?u(e.currentTarget.dataset.workspaceId??null):a(!0)),n(!1)},e[36]=i,e[37]=a,e[38]=u,e[39]=o,e[40]=c,e[41]=t16):t16=e[41];let ee=t16;if(!r||!g.length){x=null;break bb0}let z=i?s?.logoImage:r.profile.avatarImage,B=i?s?.name:F;k=`LXqSg gMmEcR jsTtPs jFTMgC hSpqXM hUCnty hDgYps BCwQR jsgMzt jsxrHO jsxrus jsgMoz klLFnD hYZFkb`,v=d,C=`Select posting mode`,w=t,e[42]===Symbol.for(`react.memo_cache_sentinel`)?(T=[0,8],e[42]=T):T=e[42],E=`bottom-start`,D=I;let V;e[43]===z?V=e[44]:(V=(0,Z.jsx)(re,{avatarImage:z,className:`jmzEDN`,size:24}),e[43]=z,e[44]=V);let H;e[45]===B?H=e[46]:(H=(0,Z.jsxs)(`span`,{className:`cHzrOo gCDAPB gnlqYH hWhrno cbkwRf`,children:[`Engaging as `,B]}),e[45]=B,e[46]=H);let U;e[47]!==V||e[48]!==H?(U=(0,Z.jsxs)(`div`,{className:`bYPztT fPSBzf dKLBtz hVpAQY`,children:[V,H]}),e[47]=V,e[48]=H,e[49]=U):U=e[49];let te;e[50]===Symbol.for(`react.memo_cache_sentinel`)?(te=(0,Z.jsx)(ne,{className:`jmzEDN dMbZCd`,size:16}),e[50]=te):te=e[50],e[51]!==U||e[52]!==I?(O=(0,Z.jsx)(M,{children:(0,Z.jsxs)(`button`,{className:`bYPztT bZRhvx fPSBzf dVuiVB dDWCpe hVpAQY gnlqYH hYZFkb`,onClick:I,type:`button`,children:[U,te]})}),e[51]=U,e[52]=I,e[53]=O):O=e[53],_=p,y=`dfmegz`;let W;e[54]===r.profile.avatarImage?W=e[55]:(W=(0,Z.jsx)(re,{avatarImage:r.profile.avatarImage,size:32}),e[54]=r.profile.avatarImage,e[55]=W);let G;e[56]===F?G=e[57]:(G=(0,Z.jsx)(`span`,{className:`cHzrOo jsgMqa bncTJQ gnlqYH hWhrno cbkwRf`,children:F}),e[56]=F,e[57]=G);let K;e[58]===Symbol.for(`react.memo_cache_sentinel`)?(K=(0,Z.jsx)(`span`,{className:`fanexX jrPWok dkAowc`,children:`Post, reply, like as yourself`}),e[58]=K):K=e[58];let q;e[59]===G?q=e[60]:(q=(0,Z.jsxs)(`div`,{className:`fPSBzf kdFIjO iRgpoQ jsCBtQ hVpAQY`,children:[G,K]}),e[59]=G,e[60]=q);let J;e[61]===i?J=e[62]:(J=i?null:(0,Z.jsx)(N,{className:`jmzEDN`,size:20}),e[61]=i,e[62]=J);let ie;e[63]!==W||e[64]!==q||e[65]!==J?(ie=(0,Z.jsxs)(`div`,{className:`bYPztT fPSBzf dVuiVB hVpAQY hYZFkb`,children:[W,q,J]}),e[63]=W,e[64]=q,e[65]=J,e[66]=ie):ie=e[66],e[67]!==L||e[68]!==ie?(b=(0,Z.jsx)(m,{className:`foKFiL bZRhvx fZxbXn!`,onClick:L,children:ie}),e[67]=L,e[68]=ie,e[69]=b):b=e[69];let t27;e[70]===ee?t27=e[71]:(t27=e=>(0,Z.jsx)(m,{className:`foKFiL bZRhvx fZxbXn!`,"data-workspace-id":e.id,onClick:ee,children:(0,Z.jsxs)(`div`,{className:`bYPztT fPSBzf dVuiVB hVpAQY hYZFkb`,children:[(0,Z.jsx)(re,{avatarImage:e.organization.logoImage,size:32}),(0,Z.jsxs)(`div`,{className:`fPSBzf kdFIjO iRgpoQ jsCBtQ hVpAQY`,children:[(0,Z.jsx)(`span`,{className:`cHzrOo jsgMqa bncTJQ gnlqYH hWhrno cbkwRf`,children:e.organization.name}),(0,Z.jsxs)(`span`,{className:`fanexX jrPWok dkAowc`,children:[`Post, reply, like as `,e.noun]})]}),e.selected?(0,Z.jsx)(N,{className:`jmzEDN`,size:20}):null]})},e.id),e[70]=ee,e[71]=t27),S=g.map(t27)}e[0]=r,e[1]=t,e[2]=s,e[3]=h,e[4]=i,e[5]=l?.id,e[6]=a,e[7]=u,e[8]=o,e[9]=c,e[10
3]=f,e[11]=_,e[12]=v,e[13]=y,e[14]=b,e[15]=x,e[16]=S,e[17]=C,e[18]=w,e[19]=T,e[20]=E,e[21]=D,e[22]=O,e[23]=k}else _=e[11],v=e[12],y=e[13],b=e[14],x=e[15],S=e[16],C=e[17],w=e[18],T=e[19],E=e[20],D=e[21],O=e[22],k=e[23];if(x!==Symbol.for(`react.early_return_sentinel`))return x;let A;e[72]!==y||e[73]!==b||e[74]!==S?(A=(0,Z.jsxs)(`div`,{className:y,children:[b,S]}),e[72]=y,e[73]=b,e[74]=S,e[75]=A):A=e[75];let j;e[76]!==_||e[77]!==A?(j=(0,Z.jsx)(_,{children:A}),e[76]=_,e[77]=A,e[78]=j):j=e[78];let P;e[79]!==v||e[80]!==j||e[81]!==C||e[82]!==w||e[83]!==T||e[84]!==E||e[85]!==D||e[86]!==O?(P=(0,Z.jsxs)(v,{"aria-label":C,isOpen:w,offset:T,placement:E,toggleMenu:D,children:[O,j]}),e[79]=v,e[80]=j,e[81]=C,e[82]=w,e[83]=T,e[84]=E,e[85]=D,e[86]=O,e[87]=P):P=e[87];let F;e[88]===Symbol.for(`react.memo_cache_sentinel`)?(F=(0,Z.jsx)(`div`,{className:`fPDHMd giSVLJ hecgTI fPSBzf jsgMou jsgMoz hYZFkb`,children:(0,Z.jsx)(CommunitySidebarQuickActions,{analyticsSection:`community_page_right_sidebar`})}),e[88]=F):F=e[88];let I;return e[89]!==P||e[90]!==k?(I=(0,Z.jsxs)(`div`,{className:k,children:[P,F]}),e[89]=P,e[90]=k,e[91]=I):I=e[91],I},Ke=(function(){var e={alias:null,args:null,concreteType:`SuperLikeQuota`,kind:`LinkedField`,name:`superLikeQuota`,plural:!1,selections:[{alias:null,args:null,kind:`ScalarField`,name:`remaining`,storageKey:null},{alias:null,args:null,kind:`ScalarField`,name:`total`,storageKey:null}],storageKey:null},t={alias:null,args:null,kind:`ScalarField`,name:`id`,storageKey:null};return{fragment:{argumentDefinitions:[],kind:`Fragment`,metadata:null,name:`SuperLikeQuotaCard_QuotaQuery`,selections:[{alias:null,args:null,concreteType:`Visitor`,kind:`LinkedField`,name:`visitor`,plural:!1,selections:[{alias:null,args:null,concreteType:`UserAccount`,kind:`LinkedField`,name:`userAccount`,plural:!1,selections:[e],storageKey:null}],storageKey:null}],type:`Query`,abstractKey:null},kind:`Request`,operation:{argumentDefinitions:[],kind:`Operation`,name:`SuperLikeQuotaCard_QuotaQuery`,selections:[{alias:null,args:null,concreteType:`Visitor`,kind:`LinkedField`,name:`visitor`,plural:!1,selections:[{alias:null,args:null,concreteType:`UserAccount`,kind:`LinkedField`,name:`userAccount`,plural:!1,selections:[e,t],storageKey:null},t],storageKey:null}]},params:{id:`1f73b2d71707d9d8e09fcc17b5558d00`,metadata:{},name:`SuperLikeQuotaCard_QuotaQuery`,operationKind:`query`,text:null}}})();Ke.hash=`68164d31d337c4e00400f3c91ac72adb`;var SuperLikeQuotaCardPrimitive=({analyticsSection:e,remainingQuota:t,totalQuota:n})=>{let r=Pe({src:Se}),{track:i}=g(),[a,o]=(0,Q.useState)(0),s=P(),c=(0,Q.useCallback)(()=>{r&&(r.currentTime=0,r.play().catch(e=>{console.error(`Error playing goat audio`,e)})),i(`button`,{action:`tapped`,button_name:`social_post_super_like_quota_preview_card`,last_location_pathname:s?.pathname,section:e}),o(e=>e+1)},[e,r,s,i]),l=(0,Q.useCallback)(e=>{e.preventDefault(),e.stopPropagation(),c()},[c]),u=(0,Z.jsx)(be,{className:`jmzEDN`,size:16}),d=t===0,f=t===0?(0,Z.jsx)(Ce,{icon:u,message:`You're out of upgoats! You'll get more tomorrow.`,remaining:t,subMessage:`(No takesies-backsies)`,total:n}):(0,Z.jsx)(Ce,{footer:`Click to practice.`,icon:u,message:`You have limited upgoats. Save it for your most absolute favorite content!`,remaining:t,total:n}),p=(0,Z.jsxs)(`button`,{"aria-label":`Upgoat quota`,className:`ewVPUB ggNKXS gotgqa bYPztT jZzPrs hYCnIA dVuijX hDGJaH dTBYkx bZRhvx fPSBzf dVuiVB gEYBVn jsgMzt jsxrHO jsxrus jsgMoz jTWvec bytEBV hYZFkb`,onClick:l,tabIndex:-1,type:`button`,children:[(0,Z.jsxs)(`span`,{className:`bYPztT fEVEmD fNBBKC bYPznK jTWvec fNBBKd`,children:[(0,Z.jsx)(be,{className:X(`default-goat`,`jmzEDN fzpbIC jXSfKH fFUggu`),size:24}),(0,Z.jsx)(xe,{className:X(`selected-goat`,`jmzEDN fzpojb jXSfKH fFUggu`),size:24}),a>0?(0,Z.jsx)(we,{onAnimationEnd:()=>{},size:20},a):null]}),(0,Z.jsx)(`p`,{className:`cHzrOo gCDAPB`,children:d?`Come back tomorrow for more!`:`Upgoats available today`}),(0,Z.jsxs)(`p`,{className:`bucdke coigcm hxnFtC`,children:[t,`/`,n]})]});return(0,Z.jsx)(Fe,{sideOffset:8,tooltipContent:f,children:p})},SuperLikeQuotaCardWithLazyData=e=>{let t=(0,$.c)(6),{analyticsSection:n}=e,r,i;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r={},i={fetchPolicy:`store-or-network`},t[0]=r,t[1]=i):(r=t[0],i=t[1]);
3let a=K(Ke,r,i),o=a.visitor?.userAccount?.superLikeQuota?.remaining??0,s=a.visitor?.userAccount?.superLikeQuota?.total??2,c;return t[2]!==n||t[3]!==o||t[4]!==s?(c=(0,Z.jsx)(SuperLikeQuotaCardPrimitive,{analyticsSection:n,remainingQuota:o,totalQuota:s}),t[2]=n,t[3]=o,t[4]=s,t[5]=c):c=t[5],c},SuperLikeQuotaCard=e=>{let t=(0,$.c)(2),{analyticsSection:n}=e,r;return t[0]===n?r=t[1]:(r=(0,Z.jsx)(Q.Suspense,{fallback:(0,Z.jsx)(SuperLikeQuotaCardPrimitive,{analyticsSection:n,remainingQuota:2,totalQuota:2}),children:(0,Z.jsx)(SuperLikeQuotaCardWithLazyData,{analyticsSection:n})}),t[0]=n,t[1]=r),r},qe=(function(){var e={alias:null,args:null,kind:`ScalarField`,name:`participantCount`,storageKey:null},t={alias:null,args:null,kind:`ScalarField`,name:`slug`,storageKey:null},n={alias:null,args:null,kind:`ScalarField`,name:`name`,storageKey:null},r={alias:null,args:null,concreteType:`SocialPostTagHeaderDetails`,kind:`LinkedField`,name:`headerDetails`,plural:!1,selections:[{alias:null,args:null,kind:`ScalarField`,name:`title`,storageKey:null},{alias:null,args:null,kind:`ScalarField`,name:`foregroundColorVariant`,storageKey:null},{alias:null,args:null,concreteType:`SocialPostTagVector`,kind:`LinkedField`,name:`badgeMedia`,plural:!1,selections:[{alias:null,args:null,kind:`ScalarField`,name:`assetUrl`,storageKey:null}],storageKey:null}],storageKey:null},i={alias:null,args:null,kind:`ScalarField`,name:`submissionsDeadline`,storageKey:null},a={alias:null,args:null,kind:`ScalarField`,name:`submissionsOpenDate`,storageKey:null},o={alias:null,args:null,concreteType:`Money`,kind:`LinkedField`,name:`prizeAmount`,plural:!1,selections:[{alias:null,args:null,kind:`ScalarField`,name:`currency`,storageKey:null},{alias:null,args:null,kind:`ScalarField`,name:`value`,storageKey:null}],storageKey:null},s=[{kind:`Literal`,name:`first`,value:3}],c={alias:null,args:null,kind:`ScalarField`,name:`uid`,storageKey:null},l=[c],u=[{alias:null,args:null,concreteType:`ContraImage`,kind:`LinkedField`,name:`avatarImage`,plural:!1,selections:l,storageKey:null}],d={alias:null,args:null,kind:`ScalarField`,name:`__typename`,storageKey:null},f={kind:`InlineFragment`,selections:[n],type:`CommunityUserDefinedTag`,abstractKey:null},p={alias:null,args:null,kind:`ScalarField`,name:`id`,storageKey:null},m=[c,p],h=[{alias:null,args:null,concreteType:`ContraImage`,kind:`LinkedField`,name:`avatarImage`,plural:!1,selections:m,storageKey:null},p];return{fragment:{argumentDefinitions:[],kind:`Fragment`,metadata:null,name:`CommunityPageChallengesQuery`,selections:[{alias:null,args:null,concreteType:`SocialPostTag`,kind:`LinkedField`,name:`socialPostTagsWithChallenges`,plural:!0,selections:[e,t,n,r,{alias:null,args:null,concreteType:`ChallengeDetails`,kind:`LinkedField`,name:`challengeDetails`,plural:!1,selections:[i,a,o],storageKey:null},{alias:null,args:s,concreteType:`SocialPostTagUniqueAuthorsConnection`,kind:`LinkedField`,name:`uniqueAuthors`,plural:!1,selections:[{alias:null,args:null,concreteType:`SocialPostTagUniqueAuthorsEdge`,kind:`LinkedField`,name:`edges`,plural:!0,selections:[{alias:null,args:null,concreteType:`UserProfile`,kind:`LinkedField`,name:`node`,plural:!1,selections:u,storageKey:null}],storageKey:null}],storageKey:`uniqueAuthors(first:3)`},{alias:null,args:null,concreteType:`SocialPostTagJudge`,kind:`LinkedField`,name:`judges`,plural:!0,selections:[{alias:null,args:null,concreteType:`UserProfile`,kind:`LinkedField`,name:`userProfile`,plural:!1,selections:u,storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:null,kind:`LinkedField`,name:`tag`,plural:!1,selections:[d,{kind:`InlineFragment`,selections:[n,{alias:null,args:null,concreteType:`ContraImage`,kind:`LinkedField`,name:`logoImage`,plural:!1,selections:l,storageKey:null}],type:`Tool`,abstractKey:null},f],storageKey:null}],storageKey:null}],type:`Query`,abstractKey:null},kind:`Request`,operation:{argumentDefinitions:[],kind:`Operation`,name:`CommunityPageChallengesQuery`,selections:[{alias:null,args:null,concreteType:`SocialPostTag`,kind:`LinkedField`,name:`socialPostTagsWithChallenges`,plural:!0,selections:[e,t,n,r,{alias:null,args:null,concreteType:`ChallengeDetails`,kind:`LinkedField`,name:`challengeDetails`,plural:!1,selections:[i,a,o,p],storageKey:null},{alias:null,args:s,concreteType:`SocialPostTagUniqueAuthorsConnection`,kind:`LinkedField`,name:`uniqueAuthors`,plural:!1,selections:[{alias:null,args:null,concreteType:`SocialPostTagUniqueAuthorsEdge`,kind:`LinkedField`,name:`edges`,plural:!0,selections:[{alias:null,args:null,concreteType:`
3UserProfile`,kind:`LinkedField`,name:`node`,plural:!1,selections:h,storageKey:null}],storageKey:null}],storageKey:`uniqueAuthors(first:3)`},{alias:null,args:null,concreteType:`SocialPostTagJudge`,kind:`LinkedField`,name:`judges`,plural:!0,selections:[{alias:null,args:null,concreteType:`UserProfile`,kind:`LinkedField`,name:`userProfile`,plural:!1,selections:h,storageKey:null},p],storageKey:null},{alias:null,args:null,concreteType:null,kind:`LinkedField`,name:`tag`,plural:!1,selections:[d,{kind:`InlineFragment`,selections:[n,{alias:null,args:null,concreteType:`ContraImage`,kind:`LinkedField`,name:`logoImage`,plural:!1,selections:m,storageKey:null}],type:`Tool`,abstractKey:null},f,{kind:`InlineFragment`,selections:[p],type:`Node`,abstractKey:`__isNode`}],storageKey:null},p],storageKey:null}]},params:{id:`40e6864c845f7b60e07ff3f54662f0ac`,metadata:{},name:`CommunityPageChallengesQuery`,operationKind:`query`,text:null}}})();qe.hash=`588a56c71d250c6180ff2d8f3ce4ded9`;var Je=1728e5,padTimeUnit=e=>e.toString().padStart(2,`0`),roundToTwoDecimals=e=>Math.round(e*100)/100,formatCountdownTime=e=>{let t=Math.max(0,Math.floor(e/1e3)),n=Math.floor(t/3600),r=Math.floor(t%3600/60),i=t%60;return`${padTimeUnit(n)}:${padTimeUnit(r)}:${padTimeUnit(i)}`},getChallengeFinalCountdownInfo=({deadline:e,now:t=new Date,submissionsOpenDate:n})=>{let r=e.getTime(),i=t.getTime(),a=n?.getTime()??-1/0,o=r-i;return Number.isNaN(r)||Number.isNaN(i)||Number.isNaN(a)||a>i||o<=0||o>Je?null:{formattedTimeRemaining:formatCountdownTime(o),progressPercentage:roundToTwoDecimals((Je-o)/Je*100)}},Ye=1e3,Xe=60*Ye,formatChallengeCountdownDuration=e=>`${Math.floor(e.asHours()).toString().padStart(2,`0`)}:${e.format(`mm:ss`)}`,formatChallengeTime=e=>{let t=e.timeDisplay.replace(/\s*days?/,`d`).replaceAll(`hr`,`h`).replace(/\s*\d+s$/,``).trim();return e.status===`UPCOMING`?`Starting in ${t}`:e.status===`ACTIVE`?`${t} left`:e.timeDisplay},CommunityPageChallengeCard=e=>{let t=(0,$.c)(72),{challenge:n}=e,{track:r}=g(),a=n.challengeDetails?.submissionsDeadline??null,o=n.challengeDetails?.submissionsOpenDate??null,s;t[0]===a?s=t[1]:(s=a?new Date(a):new Date(0),t[0]=a,t[1]=s);let c=s,l;t[2]===o?l=t[3]:(l=o?new Date(o):null,t[2]=o,t[3]=l);let u=l,d=n.challengeDetails?getChallengeFinalCountdownInfo({deadline:c,submissionsOpenDate:u}):null,[f]=ue(c,d?Ye:Xe,formatChallengeCountdownDuration),p;t[4]!==n.challengeDetails||t[5]!==c||t[6]!==u?(p=n.challengeDetails?getChallengeFinalCountdownInfo({deadline:c,submissionsOpenDate:u}):null,t[4]=n.challengeDetails,t[5]=c,t[6]=u,t[7]=p):p=t[7];let m=p,h=m&&typeof f==`string`?f:m?.formattedTimeRemaining,_=n.challengeDetails?.prizeAmount,v,y,b,x,S,C,w,T;if(t[8]!==n||t[9]!==c||t[10]!==m||t[11]!==h||t[12]!==_||t[13]!==u||t[14]!==r){let e=_?le.fromUsdDollars(_.value):null,a=n.challengeDetails?Re(c,u):null,o;t[23]===n.uniqueAuthors?.edges?o=t[24]:(o=n.uniqueAuthors?.edges??[],t[23]=n.uniqueAuthors?.edges,t[24]=o);let s;t[25]===o?s=t[26]:(s=o.filter(_temp$5).map(_temp2$1).slice(0,3),t[25]=o,t[26]=s);let l=s,d;t[27]===n.judges?d=t[28]:(d=n.judges??[],t[27]=n.judges,t[28]=d);let f;t[29]===d?f=t[30]:(f=d.filter(_temp3$1).map(_temp4).slice(0,3),t[29]=d,t[30]=f);let p=f,g=l.length>0?l:p,E=Ae(n.tag)&&n.tag.logoImage?n.tag.logoImage.uid:null,D=n.headerDetails?.foregroundColorVariant,O;t[31]===D?O=t[32]:(O=De(D),t[31]=D,t[32]=O);let A=O,j=n.headerDetails?.badgeMedia??null,M;t[33]===Symbol.for(`react.memo_cache_sentinel`)?(M=(0,Z.jsx)(i,{className:`iHkMOF jmzEDN`,size:20}),t[33]=M):M=t[33];let N;t[34]!==n.slug||t[35]!==A||t[36]!==j||t[37]!==E?(N=(0,Z.jsx)(Oe,{addDarkBackgroundIfLightIcon:!0,badgeMedia:j,fallback:M,foregroundColorVariant:A,size:20,toolLogoImageUid:E,topicSlug:n.slug}),t[34]=n.slug,t[35]=A,t[36]=j,t[37]=E,t[38]=N):N=t[38];let P=N,F=n.headerDetails?.title??n.name,I;t[39]===n.slug?I=t[40]:(I=Y(`/community/topic/@slug`,{args:{slug:n.slug}}),t[39]=n.slug,t[40]=I);let L=I,t22;t[41]!==n.name||t[42]!==n.slug||t[43]!==L||t[44]!==r?(t22=()=>{r(`link`,{action:`tapped`,destination_url:L,link_name:`community_challenges_challenge_card`,section:n.name,social_post_tag_slug:n.slug})},t[41]=n.name,t[42]=n.slug,t[43]=L,t[44]=r,t[45]=t22):t22=t[45];let ee=t22;w=m?`eGmkXy dcFSAO dKLzcp fPSBzf iRgpoQ jrIcfy fNCDjF bAAcjv hYZFkb`:`eGmkXy jZzPrs dVuijX fPSBzf iRgpoQ jsnMfm fNCDjF bAAcjv hYZFkb`,T=L,v=ee;let R;t[46]===P?R=t[47]:(R=(0,Z.jsx)(`div`,{className:`bYPztT fPSBzf jmzEDN`,children:P}),t[46]=P,t[47]=R);let z;t[48]===F?z=t[49]:(z=(0,Z.jsx)(`div`,{className:`cHzrOo gCDAPB gnlqYH hWhrno cbkwRf`,children:F}),t[48]=F,t[49]=z);let B;t[50]!==R||t[51]!==z?(B=(0,Z.jsxs)(`div`,{className:`bYPztT fPSBzf kdFIjO jrWRtM hVpAQY gnlqYH`,children:[R,z]}),t[50]=R,t[51]=z,t[52]=B):B=t[52];let V;t[53]===g?V=t[54]:(V=g.length>0?(0,Z.jsx)(`div`,{className:`bYPztT fPSBzf jmzEDN fNBpxp`,children:(0,Z.jsx)(k,{data:g,maxCount:3,size:24})}):null,t[53]=g,t[54]=V),t[55]!==B||t[56]!==V?(y=(0,Z.jsxs)(`div`,{className:`bYPztT fPSBzf dDWCpe hYZFkb`,children:[B,V]}),t[55]=B,t[56]=V,t[57]=y):y=t[57],b=`bYPztT bucdke fPSBzf jsnMfm dkAowc gnlqYH cbkwRf`,x=e&&(0,Z.jsx)(`span`,{children:e.formatCompact()}),S=e&&a?(0,Z.jsx)(`span`,{className:`bBaKEE dDifmo jmzEDN ATHrf ATHrs`}):null,C=a&&m&&h?(0,Z.jsxs)(`span`,{children:[`Ends in`,` `,(0,Z.jsx)(`span`,{className:`cHzrOo fQaDCD`,children:h})]}):a?(0,Z.jsx)(`span`,{children:formatChallengeTime(a)}):null,t[8]=n,t[9]=c,t[10]=m,t[11]=h,t[12]=_,t[13]=u,t[14]=r,t[15]=v,t[16]=y,t[17]=b,t[18]=x,t[19]=S,t[20]=C,t[21]=w,t[22]=T}else v=t[15],y=t[16],b=t[17],x=t[18],S=t[19],C=t[20],w=t[21],T=t[22];let E;t[58]!==b||t[59]!==x||t[60]!==S||t[61]!==C?(E=(0,Z.jsxs)(`div`,{className:b,children:[x,S,C]}),t[58]=b,t[59]=x,t[60]=S,t[61]=C,t[62]=E):E=t[62];let D;
3t[63]===m?D=t[64]:(D=m?(0,Z.jsx)(`div`,{"aria-hidden":!0,className:`jZzPrs dOYuAz ATGZY gnlqYH hYZFkb`,children:(0,Z.jsx)(`div`,{className:`coAKiw dpPbDq hYZFjI`,style:{width:`${m.progressPercentage}%`}})}):null,t[63]=m,t[64]=D);let O;return t[65]!==v||t[66]!==y||t[67]!==E||t[68]!==D||t[69]!==w||t[70]!==T?(O=(0,Z.jsxs)(`a`,{className:w,href:T,onClick:v,children:[y,E,D]}),t[65]=v,t[66]=y,t[67]=E,t[68]=D,t[69]=w,t[70]=T,t[71]=O):O=t[71],O},CommunityPageChallenges=()=>{let e=(0,$.c)(11),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t={},e[0]=t):t=e[0];let n=K(qe,t),{track:r}=g(),i=n.socialPostTagsWithChallenges;if(i.length===0)return null;let a;e[1]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,Z.jsx)(`div`,{className:`bucdke emMmYy`,children:`Challenges`}),e[1]=a):a=e[1];let o;e[2]===r?o=e[3]:(o=(0,Z.jsxs)(`div`,{className:`bYPztT fPSBzf dDWCpe fNCnti jsxFNZ jsxFtf jsxFzt hYZFkb`,children:[a,(0,Z.jsx)(`a`,{className:`kvIBcd gCDAPB`,href:`https://contra.com/events`,onClick:()=>{r(`link`,{action:`tapped`,destination_url:`https://contra.com/events`,link_name:`community_challenges_view_all`})},target:`_blank`,children:`View all`})]}),e[2]=r,e[3]=o);let s;e[4]===i?s=e[5]:(s=i.map(_temp5),e[4]=i,e[5]=s);let c;e[6]===s?c=e[7]:(c=(0,Z.jsx)(`div`,{className:`cYdhWw gDKDFf hYZFkb`,children:s}),e[6]=s,e[7]=c);let l;return e[8]!==o||e[9]!==c?(l=(0,Z.jsx)(`div`,{className:`jZzPrs hYCnIA dKCFRy hDGJaH dTBYkx fPSBzf iRgpoQ dpjphg fNCDjF hYZFkb`,children:(0,Z.jsxs)(`div`,{className:`fPSBzf iRgpoQ hYZFkb`,children:[o,c]})}),e[8]=o,e[9]=c,e[10]=l):l=e[10],l};function _temp$5(e){return e.node.avatarImage?.uid}e(_temp$5,`_temp`);function _temp2$1(e,t){return{avatarImage:e.node.avatarImage??null,component:re,key:e.node.avatarImage?.uid??`author-${t}`}}e(_temp2$1,`_temp2`);function _temp3$1(e){return e.userProfile?.avatarImage?.uid}e(_temp3$1,`_temp3`);function _temp4(e,t){return{avatarImage:e.userProfile?.avatarImage??null,component:re,key:e.userProfile?.avatarImage?.uid??`judge-${t}`}}function _temp5(e){return(0,Z.jsx)(CommunityPageChallengeCard,{challenge:e},e.slug)}var Ze=(function(){var e=[{defaultValue:null,kind:`LocalArgument`,name:`first`}],t=[{kind:`Variable`,name:`first`,variableName:`first`}],n={alias:null,args:null,kind:`ScalarField`,name:`id`,storageKey:null},r={alias:null,args:null,kind:`ScalarField`,name:`position`,storageKey:null},i={alias:null,args:null,kind:`ScalarField`,name:`description`,storageKey:null},a={alias:null,args:null,kind:`ScalarField`,name:`name`,storageKey:null},o={alias:null,args:null,kind:`ScalarField`,name:`slug`,storageKey:null},s={alias:null,args:null,kind:`ScalarField`,name:`__typename`,storageKey:null},c={alias:`name`,args:null,kind:`ScalarField`,name:`skillName`,storageKey:null},l={alias:null,args:null,kind:`ScalarField`,name:`uid`,storageKey:null};return{fragment:{argumentDefinitions:e,kind:`Fragment`,metadata:null,name:`CommunityTrendingTopicsQuery`,selections:[{alias:null,args:t,concreteType:`SocialPostTrendingTag`,kind:`LinkedField`,name:`socialPostTrendingTags`,plural:!0,selections:[n,r,i,{alias:null,args:null,concreteType:`SocialPostTagWithCount`,kind:`LinkedField`,name:`socialPostTag`,plural:!1,selections:[{alias:null,args:null,concreteType:`SocialPostTag`,kind:`LinkedField`,name:`tag`,plural:!1,selections:[a,o,{alias:null,args:null,concreteType:null,kind:`LinkedField`,name:`tag`,plural:!1,selections:[{kind:`InlineFragment`,selections:[s,n,c],type:`Role`,abstractKey:null},{kind:`InlineFragment`,selections:[s,n,a,{alias:null,args:null,concreteType:`ContraImage`,kind:`LinkedField`,name:`logoImage`,plural:!1,selections:[l],storageKey:null}],type:`Tool`,abstractKey:null},{kind:`InlineFragment`,selections:[s,n,a],type:`CommunityUserDefinedTag`,abstractKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],type:`Query`,abstractKey:null},kind:`Request`,operation:{argumentDefinitions:e,kind:`Operation`,name:`CommunityTrendingTopicsQuery`,selections:[{alias:null,args:t,concreteType:`SocialPostTrendingTag`,kind:`LinkedField`,name:`socialPostTrendingTags`,plural:!0,selections:[n,r,i,{alias:null,args:null,concreteType:`SocialPostTagWithCount`,kind:`LinkedField`,name:`socialPostTag`,plural:!1,selections:[{alias:null,args:null,concreteType:`SocialPostTag`,kind:`LinkedField`,name:`tag`,plural:!1,selections:[a,o,{alias:null,args:null,concreteType:null,kind:`LinkedField`,name:`tag`,plural:!1,selections:[s,{kind:`InlineFragment`,selections:[n,c],type:`Role`,abstractKey:null},{kind:`InlineFragment`,selections:[n,a,{alias:null,args:null,concreteType:`ContraImage`,kind:`LinkedField`,name:`logoImage`,plural:!1,selections:[l,n],storageKey:null}],type:`Tool`,abstractKey:null},{kind:`InlineFragment`,selections:[n,a],type:`CommunityUserDefinedTag`,abstractKey:null},{kind:`InlineFragment`,selections:[n],type:`Node`,abstractKey:`__isNode`}],storageKey:null},n],storageKey:null}],storageKey:null}],storageKey:null}]},params:{id:`0c08b0691293cadb8d3909e847c0585f`,metadata:{},name:`CommunityTrendingTopicsQuery`,operationKind:`query`,text:null}}})();Ze.hash=`e95d53426609af01d8adee68df234642`;var CommunityTrendingTopics=e=>{let t=(0,$.c)(14),{limit:n}=e,r;t[0]===n?r=t[1]:(r={first:n},t[0]=n,t[1]=r);let i=K(Ze,r),a;t[2]===i.socialPostTrendingTags?a=t[3]:(a=i.socialPostTrendingTags.map(_temp$4),t[2]=i.socialPostTrendingTags,t[3]=a);let o=a,{track:s}=g(),t3;t[4]===s?t3=t[5]:(t3=e=>
3{s(`link`,{action:`tapped`,link_name:`social_post_tag`,section:`community_right_sidebar`,social_post_tag_id:e})},t[4]=s,t[5]=t3);let c=t3;if(o.length===0)return null;let l;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,Z.jsxs)(`div`,{className:`jNYcui bYPztT dKLzcp bucdke fPSBzf jrIcfy dTmpIf`,children:[(0,Z.jsx)(`p`,{className:`emMmYy`,children:`Trending`}),(0,Z.jsx)(_e,{size:16})]}),t[6]=l):l=t[6];let u;if(t[7]!==c||t[8]!==o){let t6;t[10]===c?t6=t[11]:(t6=e=>(0,Z.jsxs)(`a`,{className:`eUEgWb dVuijX fPSBzf iRgpoQ jrWRtM fNDdIP bAAcjv`,href:Y(`/community/topic/@slug`,{args:{slug:e.slug}}),onClick:()=>c(e.analyticsId),children:[(0,Z.jsx)(`div`,{className:`bYPztT fPSBzf jrWRtM dDWCpe`,children:(0,Z.jsx)(Ee,{canFollow:!1,tag:e.tag,variant:`NoBorderHeavyText`})}),(0,Z.jsx)(`p`,{className:`bucdke fPSBzf iRgpoQ fzoAWg dkAowc gnlqYH hWhrno fluar`,children:e.description})]},e.title),t[10]=c,t[11]=t6),u=o.map(t6),t[7]=c,t[8]=o,t[9]=u}else u=t[9];let d;return t[12]===u?d=t[13]:(d=(0,Z.jsxs)(`div`,{className:`fPSBzf iRgpoQ jrIcfy hYZFkb`,children:[l,(0,Z.jsx)(`div`,{className:`fPSBzf iRgpoQ`,children:u})]}),t[12]=u,t[13]=d),d};function _temp$4(e){return{analyticsId:`id`in e.socialPostTag.tag.tag?e.socialPostTag.tag.tag.id:void 0,description:e.description,slug:e.socialPostTag.tag.slug,tag:e.socialPostTag.tag.tag,title:e.socialPostTag.tag.name}}e(_temp$4,`_temp`);var CommunityTopicsSection=e=>{let t=(0,$.c)(3),{limit:n}=e,r=n===void 0?3:n,i;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,Z.jsx)(Q.Suspense,{children:(0,Z.jsx)(CommunityPageChallenges,{})}),t[0]=i):i=t[0];let a;return t[1]===r?a=t[2]:(a=(0,Z.jsxs)(Z.Fragment,{children:[i,(0,Z.jsx)(Q.Suspense,{children:(0,Z.jsx)(CommunityTrendingTopics,{limit:r})})]}),t[1]=r,t[2]=a),a},Qe=[{href:Y(`/community/for-you`),id:`home`,label:`Home`},{href:null,id:`featured`,label:`Featured`}],MobileForYouTabs=e=>{let t=(0,$.c)(35),{activeTab:n,onTabChange:r}=e,i=ce()?.profile.displayUsername??``,a=L(`HIDE_COMMUNITY_MOBILE_DISCOVER_TAB_FTUE_DOT`),[s,l]=(0,Q.useState)(!1),t1;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(t1=()=>l(_temp$3),t[0]=t1):t1=t[0];let u=t1,[f]=O(),h=w(),t2;t[1]===f?t2=t[2]:(t2=()=>{f({variables:{input:{userInterfaceFlag:`HIDE_COMMUNITY_MOBILE_DISCOVER_TAB_FTUE_DOT`}}})},t[1]=f,t[2]=t2);let g=t2,t3;t[3]!==a||t[4]!==h||t[5]!==r||t[6]!==g?(t3=e=>{let t=e,n=Qe.find(e=>{let{id:n}=e;return n===t});t===`featured`&&!a&&g(),r(t),n?.href&&h.push(n.href)},t[3]=a,t[4]=h,t[5]=r,t[6]=g,t[7]=t3):t3=t[7];let _=t3,v;t[8]===i?v=t[9]:(v=Y(`/community/profile/@username`,{args:{username:i}}),t[8]=i,t[9]=v);let y;t[10]===v?y=t[11]:(y={href:v,icon:Te,id:`your-posts`,label:`Your posts`},t[10]=v,t[11]=y);let b;t[12]===Symbol.for(`react.memo_cache_sentinel`)?(b=Y(`/community/bookmarks`),t[12]=b):b=t[12];let x;t[13]===Symbol.for(`react.memo_cache_sentinel`)?(x={href:b,icon:C,id:`bookmarks`,label:`Bookmarks`},t[13]=x):x=t[13];let S;t[14]===y?S=t[15]:(S=[y,x],t[14]=y,t[15]=S);let T=S,E=n===`home`||n===`featured`?n:``,D;t[16]===a?D=t[17]:(D=Qe.map(e=>{let{id:t,label:n}=e;return(0,Z.jsxs)(`div`,{className:nt,children:[t===`featured`&&!a?(0,Z.jsx)(`div`,{"aria-hidden":`true`,className:rt}):null,(0,Z.jsx)(o,{className:it,value:t,children:n})]},t)}),t[16]=a,t[17]=D);let k;t[18]===D?k=t[19]:(k=(0,Z.jsx)(oe,{className:tt,indicator:`none`,children:D}),t[18]=D,t[19]=k);let A;t[20]===Symbol.for(`react.memo_cache_sentinel`)?(A=(0,Z.jsx)(M,{children:(0,Z.jsx)(`button`,{"aria-label":`More navigation options`,className:at,onClick:u,type:`button`,children:(0,Z.jsx)(ae,{size:16})})}),t[20]=A):A=t[20];let j;t[21]===Symbol.for(`react.memo_cache_sentinel`)?(j=(0,Z.jsx)(m,{noPaddingXOnMobile:!0,style:{paddingBottom:`8px`,paddingTop:`6px`},children:(0,Z.jsx)(SuperLikeQuotaCard,{analyticsSection:`mobile_tabs_menu`})}),t[21]=j):j=t[21];let N;t[22]!==T||t[23]!==r?(N=(0,Z.jsxs)(p,{children:[j,T.map(e=>{let{href:t,icon:n,id:i,label:a}=e;return(0,Z.jsx)(m,{as:se,icon:n,iconSize:24,onClick:()=>r(i),style:{padding:`12px 0`},to:t,children:a},t)})]}),t[22]=T,t[23]=r,t[24]=N):N=t[24];let P;t[25]!==s||t[26]!==N?(P=(0,Z.jsxs)(d,{isOpen:s,placement:`bottom-start`,toggleMenu:u,children:[A,N]}),t[25]=s,t[26]=N,t[27]=P):P=t[27];let F;t[28]!==k||t[29]!==P?(F=(0,Z.jsxs)(`div`,{className:et,children:[k,P]}),t[28]=k,t[29]=P,t[30]=F):F=t[30];let I;return t[31]!==_||t[32]!==F||t[33]!==E?(I=(0,Z.jsx)(`div`,{className:$e,children:(0,Z.jsx)(c,{onValueChange:_,value:E,children:F})}),t[31]=_,t[32]=F,t[33]=E,t[34]=I):I=t[34],I},$e=`jZzPrs fPJlcf EcxBh hefOfS jsgMzM xJwMu hYZFkb`,et=`bYPztT fPSBzf dpjphg dAbtzg`,tt=`dpjphg`,nt=`bYPztT fPSBzf jrIcfy jTWvec`,rt=`ghRoIS dDifmo ATFyY jTWvec dQccif ATFzz`,it=`iPOnQB iHkMOF fQaDCD AxjtU`,at=`hLtpET joUKvq bFXeJS hLPNjH bRMDyG bYPztT foDtdn kFYpjY iHkMOF bZRhvx fPSBzf bYPznK AxjtU`,MobileForYouContent=e=>{let t=(0,$.c)(8),{activeTab:n,children:r}=e,i;t[0]===n?i=t[1]:(i=me([n===`featured`||n===`topics`],[[-1,-1,[`true`,-2]]],[``,`dAbtzg`],0),t[0]=n,t[1]=i);let a;t[2]===n?a=t[3]:(a=n===`featured`?(0,Z.jsxs)(`div`,{className:`fPSBzf iRgpoQ dpjphg`,children:[` `,(0,Z.jsx)(CommunityTopicsSection,{limit:5}),` `]}):null,t[2]=n,t[3]=a);let o=n===`home`||n===`your-posts`||n===`bookmarks`?r:null,s;return t[4]!==i||t[5]!==a||t[6]!==o?(s=(0,Z.jsxs)(`div`,{className:i,children:[a,o]}),t[4]=i,t[5]=a,t[6]=o,t[7]=s):s=t[7],s};function _temp$3(e){return!e}e(_temp$3,`_temp`);var ot=[`Join 1.25M professional creatives like you`,`Connect with clients, get discovered, and run your business 100% commission-free`,`Creatives on Contra have earned over $150M and we are just getting started`],UnauthenticatedFeedBenefitsBanner=e=>{let t=(0,$.c)(11),{variant:n}=e,i=(n===void 0?`default`:n)===`topic`?`POST_TO_COMMUNITY`:`INTERACT_WITH_COMMUNITY`,a;t[0]===i?a=t[1]:(a={identifier:`SignupModal`,modalProps:{onboardingSource:`community-unauthed-feed`,postAction:{type:i}}},t[0]=i,t[1]=a);let{openModal:o}=r(a),{track:s,trackOnboardingEntrypoint:c}=g(),t4;t[2]!==o||t[3]!==s||t[4]!==c?(t4=()=>
3{c(`community_feed_benefits_banner`),s(`button`,{action:`tapped`,button_name:`sign_up`,section:`community_feed_benefits_banner_unauthenticated`}),o()},t[2]=o,t[3]=s,t[4]=c,t[5]=t4):t4=t[5];let l=t4,u,d,f;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,Z.jsx)(`div`,{className:`cHzrOo mEbdf dkJBkf bYPzoC`,children:`The network for creativity`}),d={display:`flex`,flexDirection:`column`,gap:`12px`},f=ot.map(_temp$2),t[6]=u,t[7]=d,t[8]=f):(u=t[6],d=t[7],f=t[8]);let p;return t[9]===l?p=t[10]:(p=(0,Z.jsxs)(`div`,{className:`jZzPrs hYCnIA dAaTQP hDGJaH dTBYkx fPSBzf iRgpoQ dpjphg ePzjYx jsxrDU jsxrHO jsxrus jrPIiW hYZFkb`,children:[u,(0,Z.jsxs)(`div`,{style:d,children:[f,(0,Z.jsx)(I,{className:`jsOvyy`,onClick:l,size:`small`,variant:`tertiary`,children:`Sign up to join`})]})]}),t[9]=l,t[10]=p),p};function _temp$2(e){return(0,Z.jsxs)(`div`,{style:{display:`flex`,gap:`16px`},children:[(0,Z.jsx)(`div`,{className:`gQzteu fanexX fNCnDU fNCcFw`,children:(0,Z.jsx)(N,{size:16})}),(0,Z.jsx)(`div`,{className:`fanexX hZEnMu jsxrFy dkAowc hYZFkb`,children:e})]},e)}e(_temp$2,`_temp`);var CommunityPageLayout=e=>{let t=(0,$.c)(26),{children:n,rightSidebarSlot:r}=e,i=ce(),a=H(`workspace3`),{workspaces:o}=W(),{isClient:s}=ee(),c=S(),l;t[0]!==i?.profile.displayUsername||t[1]!==c.pathname?(l=c.pathname.includes(Y(`/community/profile/@username`,{args:{username:i?.profile.displayUsername??``}})),t[0]=i?.profile.displayUsername,t[1]=c.pathname,t[2]=l):l=t[2];let u=l,d;t[3]===c.pathname?d=t[4]:(d=c.pathname.includes(Y(`/community/for-you`)),t[3]=c.pathname,t[4]=d);let f=d,p=c.pathname,m;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(m=Y(`/community/bookmarks`),t[5]=m):m=t[5];let h=p===m,g;t[6]===c.pathname?g=t[7]:(g=c.pathname.includes(`/community/topic/`),t[6]=c.pathname,t[7]=g);let _=g,[v,y]=(0,Q.useState)(u?`your-posts`:h?`bookmarks`:`home`),b=a?o.length>0:s?!!i?.profile.organizationV2?.id:!!i?.studioOrganization,x=i&&(f||u||h),C;t[8]!==i||t[9]!==_?(C=!i&&!_?(0,Z.jsx)(`div`,{className:`diIEev dSzryQ dnFyWD`,children:(0,Z.jsx)(UnauthenticatedFeedBenefitsBanner,{})}):null,t[8]=i,t[9]=_,t[10]=C):C=t[10];let w;t[11]===b?w=t[12]:(w=b?(0,Z.jsx)(`div`,{className:`diIEev hYZFkb`,children:(0,Z.jsx)(EngagingAsDropdown,{})}):null,t[11]=b,t[12]=w);let T;t[13]!==v||t[14]!==x||t[15]!==n?(T=x?(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(`div`,{className:`diIEev`,children:(0,Z.jsx)(MobileForYouTabs,{activeTab:v,onTabChange:e=>y(e)})}),(0,Z.jsx)(MobileForYouContent,{activeTab:v,children:n})]}):n,t[13]=v,t[14]=x,t[15]=n,t[16]=T):T=t[16];let E;t[17]===T?E=t[18]:(E=(0,Z.jsx)(`div`,{className:`fPSBzf iRgpoQ dSQJeh hkIdtl kyyOli hrlYQW jXMQHH jTWvec hYZFkb`,children:T}),t[17]=T,t[18]=E);let D;t[19]===r?D=t[20]:(D=(0,Z.jsx)(`div`,{className:`ddgODW gPeiOM`,children:r}),t[19]=r,t[20]=D);let O;return t[21]!==D||t[22]!==C||t[23]!==w||t[24]!==E?(O=(0,Z.jsxs)(`div`,{className:`fPSBzf iRgpoQ jsTwfq btPalB hVrmYS lghlLe dTQGPi dWnsYl dpfSfF fzpnVj coigcm coifOA fzpolx cbenEm diVeFv hYZFkb itUOna`,children:[C,w,E,D]}),t[21]=D,t[22]=C,t[23]=w,t[24]=E,t[25]=O):O=t[25],O},st=(function(){var e=[{defaultValue:null,kind:`LocalArgument`,name:`slug`}],t=[{kind:`Variable`,name:`slug`,variableName:`slug`}],n={alias:null,args:null,kind:`ScalarField`,name:`id`,storageKey:null},r={alias:null,args:null,kind:`ScalarField`,name:`__typename`,storageKey:null},i={alias:null,args:null,kind:`ScalarField`,name:`name`,storageKey:null},a={alias:null,args:null,kind:`ScalarField`,name:`uid`,storageKey:null},o={alias:`name`,args:null,kind:`ScalarField`,name:`skillName`,storageKey:null},s={alias:null,args:null,kind:`ScalarField`,name:`mainLabel`,storageKey:null},c={alias:null,args:null,kind:`ScalarField`,name:`subtitle`,storageKey:null},l=[n],u={alias:null,args:null,kind:`ScalarField`,name:`challengeReportUrl`,storageKey:null},d={alias:null,args:null,kind:`ScalarField`,name:`lumaLink`,storageKey:null},f={alias:null,args:null,kind:`ScalarField`,name:`status`,storageKey:null},p={alias:null,args:null,kind:`ScalarField`,name:`submissionsEnabled`,storageKey:null},m={alias:null,args:null,kind:`ScalarField`,name:`viewerCanShortlistSubmissions`,storageKey:null},h={alias:null,args:null,kind:`ScalarField`,name:`topCommunityPromotersLeaderboardEnabled`,storageKey:null},g={alias:null,args:null,kind:`ScalarField`,name:`topCommunityPromotersPrizeAmount`,storageKey:null},_={alias:null,args:null,kind:`ScalarField`,name:`communityFavoritesLeaderboardEnabled`,storageKey:null},v={alias:null,args:null,kind:`ScalarField`,name:`communityFavoritesPrizeAmount`,storageKey:null},y={kind:`InlineFragment`,selections:l,type:`Node`,abstractKey:`__isNode`},b={alias:null,args:null,kind:`ScalarField`,name:`externalLink`,storageKey:null},x=[{alias:null,args:null,kind:`ScalarField`,name:`assetUrl`,storageKey:null}
3],S={alias:null,args:null,kind:`ScalarField`,name:`displayUsername`,storageKey:null},C={alias:null,args:null,kind:`ScalarField`,name:`firstName`,storageKey:null},w={alias:null,args:null,kind:`ScalarField`,name:`lastName`,storageKey:null},T={alias:null,args:null,concreteType:`ContraImage`,kind:`LinkedField`,name:`avatarImage`,plural:!1,selections:[n,a,{alias:null,args:null,kind:`ScalarField`,name:`url`,storageKey:null}],storageKey:null},E={alias:null,args:null,kind:`ScalarField`,name:`visitorIsFollowing`,storageKey:null},D={alias:null,args:null,kind:`ScalarField`,name:`slug`,storageKey:null},O={alias:null,args:null,concreteType:`UserProfile`,kind:`LinkedField`,name:`userProfile`,plural:!1,selections:[n,S,C,w,T,E],storageKey:null};return{fragment:{argumentDefinitions:e,kind:`Fragment`,metadata:null,name:`TopicSidebarDetailsQuery`,selections:[{alias:null,args:t,concreteType:`SocialPostTag`,kind:`LinkedField`,name:`socialPostTagBySlug`,plural:!1,selections:[n,{alias:null,args:null,concreteType:null,kind:`LinkedField`,name:`tag`,plural:!1,selections:[{kind:`InlineFragment`,selections:[r,i],type:`CommunityUserDefinedTag`,abstractKey:null},{kind:`InlineFragment`,selections:[r,i,{alias:null,args:null,concreteType:`ContraImage`,kind:`LinkedField`,name:`logoImage`,plural:!1,selections:[a],storageKey:null}],type:`Tool`,abstractKey:null},{kind:`InlineFragment`,selections:[r,o],type:`Role`,abstractKey:null}],storageKey:null},{alias:null,args:null,concreteType:`SocialPostTagExternalLink`,kind:`LinkedField`,name:`externalLinks`,plural:!0,selections:[n,{args:null,kind:`FragmentSpread`,name:`TopicExternalLink_socialPostTagExternalLink`}],storageKey:null},{alias:null,args:null,concreteType:`SocialPostTagHeaderDetails`,kind:`LinkedField`,name:`headerDetails`,plural:!1,selections:[s],storageKey:null},{alias:null,args:null,concreteType:`SocialPostTagJudge`,kind:`LinkedField`,name:`judges`,plural:!0,selections:[n,c,{alias:null,args:null,concreteType:`UserProfile`,kind:`LinkedField`,name:`userProfile`,plural:!1,selections:[n,{args:null,kind:`FragmentSpread`,name:`TopicUser_userProfile`}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:`SocialPostTagSponsor`,kind:`LinkedField`,name:`sponsors`,plural:!0,selections:l,storageKey:null},{alias:null,args:null,concreteType:`ChallengeDetails`,kind:`LinkedField`,name:`challengeDetails`,plural:!1,selections:[u,d,f,p,m],storageKey:null},h,g,_,v,{args:null,kind:`FragmentSpread`,name:`ChallengeLeaderboardCard_socialPostTag`},{args:null,kind:`FragmentSpread`,name:`TopicSponsors_socialPostTag`}],storageKey:null}],type:`Query`,abstractKey:null},kind:`Request`,operation:{argumentDefinitions:e,kind:`Operation`,name:`TopicSidebarDetailsQuery`,selections:[{alias:null,args:t,concreteType:`SocialPostTag`,kind:`LinkedField`,name:`socialPostTagBySlug`,plural:!1,selections:[n,{alias:null,args:null,concreteType:null,kind:`LinkedField`,name:`tag`,plural:!1,selections:[r,{kind:`InlineFragment`,selections:[i],type:`CommunityUserDefinedTag`,abstractKey:null},{kind:`InlineFragment`,selections:[i,{alias:null,args:null,concreteType:`ContraImage`,kind:`LinkedField`,name:`logoImage`,plural:!1,selections:[a,n],storageKey:null}],type:`Tool`,abstractKey:null},{kind:`InlineFragment`,selections:[o],type:`Role`,abstractKey:null},y],storageKey:null},{alias:null,args:null,concreteType:`SocialPostTagExternalLink`,kind:`LinkedField`,name:`externalLinks`,plural:!0,selections:[n,{alias:null,args:null,kind:`ScalarField`,name:`headerText`,storageKey:null},{alias:null,args:null,kind:`ScalarField`,name:`bodyText`,storageKey:null},b,{alias:null,args:null,concreteType:null,kind:`LinkedField`,name:`headerIcon`,plural:!1,selections:[r,{kind:`InlineFragment`,selections:[n,a],type:`ContraImage`,abstractKey:null},{kind:`InlineFragment`,selections:x,type:`SocialPostTagVector`,abstractKey:null},y],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:`SocialPostTagHeaderDetails`,kind:`LinkedField`,name:`headerDetails`,plural:!1,selections:[s,{alias:null,args:null,kind:`ScalarField`,name:`title`,storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:`SocialPostTagJudge`,kind:`LinkedField`,name:`judges`,plural:!0,selections:[n,c,{alias:null,args:null,concreteType:`
3UserProfile`,kind:`LinkedField`,name:`userProfile`,plural:!1,selections:[n,{alias:null,args:null,kind:`ScalarField`,name:`analyticsId`,storageKey:null},S,C,w,{alias:null,args:null,kind:`ScalarField`,name:`professionalTitle`,storageKey:null},T,E],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:`SocialPostTagSponsor`,kind:`LinkedField`,name:`sponsors`,plural:!0,selections:[n,{alias:null,args:null,kind:`ScalarField`,name:`sponsorName`,storageKey:null},b,{alias:null,args:null,concreteType:`SocialPostTagVector`,kind:`LinkedField`,name:`sponsorLogo`,plural:!1,selections:x,storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:`ChallengeDetails`,kind:`LinkedField`,name:`challengeDetails`,plural:!1,selections:[u,d,f,p,m,n,{alias:null,args:null,kind:`ScalarField`,name:`identityVerificationRequired`,storageKey:null},{alias:null,args:null,kind:`ScalarField`,name:`showGuidelinesBeforeOpen`,storageKey:null},{alias:null,args:null,kind:`ScalarField`,name:`submissionsOpenDate`,storageKey:null}],storageKey:null},h,g,_,v,i,D,{alias:null,args:null,kind:`ScalarField`,name:`visitorHasJoinedTopic`,storageKey:null},{alias:null,args:null,kind:`ScalarField`,name:`visitorHasSubmittedChallengePartnerData`,storageKey:null},{alias:null,args:null,concreteType:`SocialPost`,kind:`LinkedField`,name:`visitorLastSocialPost`,plural:!1,selections:[n,{alias:null,args:null,kind:`ScalarField`,name:`isVisible`,storageKey:null},D],storageKey:null},{alias:null,args:null,kind:`ScalarField`,name:`topicGuidelinesBlocknoteContent`,storageKey:null},{alias:null,args:null,kind:`ScalarField`,name:`prizeDetailsBlocknoteContent`,storageKey:null},{alias:null,args:null,kind:`ScalarField`,name:`socialSharingGuidelinesBlocknoteContent`,storageKey:null},{alias:null,args:null,kind:`ScalarField`,name:`termsAndConditionsUrl`,storageKey:null},{alias:null,args:null,concreteType:`ChallengeLeaderboard`,kind:`LinkedField`,name:`challengeLeaderboard`,plural:!1,selections:[{alias:null,args:null,concreteType:`ChallengePromoterLeaderboardEntry`,kind:`LinkedField`,name:`topCommunityPromoters`,plural:!0,selections:[O,{alias:null,args:null,kind:`ScalarField`,name:`joinedCount`,storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:`ChallengeFavoriteLeaderboardEntry`,kind:`LinkedField`,name:`communityFavorites`,plural:!0,selections:[O,{alias:null,args:null,concreteType:`SocialPost`,kind:`LinkedField`,name:`mostEngagedSocialPost`,plural:!1,selections:[D,n],storageKey:null},{alias:null,args:null,kind:`ScalarField`,name:`likeCount`,storageKey:null},{alias:null,args:null,kind:`ScalarField`,name:`replyCount`,storageKey:null},{alias:null,args:null,kind:`ScalarField`,name:`superLikeCount`,storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}]},params:{id:`1512823f82b4578229c7c61ba4c7a53d`,metadata:{},name:`TopicSidebarDetailsQuery`,operationKind:`query`,text:null}}})();st.hash=`7cf547f5449de7f8acb9f1cb331aca03`;var TopicLumaLinkCard=e=>{let t=(0,$.c)(9),{lumaLink:n,socialPostTagId:r}=e,{track:i}=g(),t1;t[0]!==n||t[1]!==r||t[2]!==i?(t1=()=>{i(`link`,{action:`tapped`,destination_url:n,link_name:`challenge_luma_link`,section:`community_right_sidebar`,social_post_tag_id:r})},t[0]=n,t[1]=r,t[2]=i,t[3]=t1):t1=t[3];let a=t1,o,s;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,Z.jsxs)(`div`,{className:`bYPztT fPSBzf kdFIjO dAaUHp`,children:[(0,Z.jsx)(he,{className:`cHzrOo`,size:16}),(0,Z.jsx)(`span`,{className:`cHzrOo gCDAPB`,children:`RSVP to the winners livestream`})]}),s=(0,Z.jsx)(f,{className:`cHzrOo jmzEDN leBhRH`,size:16}),t[4]=o,t[5]=s):(o=t[4],s=t[5]);let c;return t[6]!==a||t[7]!==n?(c=(0,Z.jsxs)(`a`,{className:`jFAlYd jIvHmZ bYPztT bWRdXL dVuijX bZRhvx fPSBzf dVuiVB gnlqYH jrPWxz jsgMDf jsgMpR jrPWph kFYpjC ikENDL hYZFkb`,href:n,onClick:a,rel:`noopener noreferrer`,target:`_blank`,children:[o,s]}),t[6]=a,t[7]=n,t[8]=c):c=t[8],c},ct=`https://builds.contra.com/assets/assets/static/glass-logo-triangle.pzdZQPWI.webp`,lt=`https://contra.com/events`,ViewAllChallengesCard=()=>{let e=(0,$.c)(6),{track:t}=g(),t0;e[0]===t?t0=e[1]:(t0=()=>
3{t(`link`,{action:`tapped`,destination_url:lt,link_name:`community_challenges_view_all`})},e[0]=t,e[1]=t0);let n=t0,r,i;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,Z.jsxs)(`div`,{className:`bYPztT fPSBzf kdFIjO dAaUHp`,children:[(0,Z.jsx)(`img`,{alt:`Contra Logo`,className:`keqBBO jmzEDN fNCCuj ldKigU fNCCtQ`,src:ct}),(0,Z.jsx)(`span`,{className:`cHzrOo gCDAPB`,children:`View all challenges`})]}),i=(0,Z.jsx)(f,{className:`cHzrOo jmzEDN leBhRH`,size:16}),e[2]=r,e[3]=i):(r=e[2],i=e[3]);let a;return e[4]===n?a=e[5]:(a=(0,Z.jsxs)(`a`,{className:`jFAlYd gsZHKK bYPztT bWRdXL dVuijX bZRhvx fPSBzf dVuiVB gnlqYH jrPWxz jsgMDf jsgMpR jrPWph ikENDL hYZFkb`,href:lt,onClick:n,target:`_blank`,children:[r,i]}),e[4]=n,e[5]=a),a},ChallengeSidebarLinkCard=e=>{let t=(0,$.c)(15),{href:n,icon:r,label:i,openInNewTab:a}=e,o=a!==void 0&&a,s=o?f:U,c=o?`noreferrer`:void 0,l=o?`_blank`:void 0,u;t[0]===r?u=t[1]:(u=(0,Z.jsx)(r,{className:`cHzrOo`,size:16}),t[0]=r,t[1]=u);let d;t[2]===i?d=t[3]:(d=(0,Z.jsx)(`span`,{className:`cHzrOo gCDAPB`,children:i}),t[2]=i,t[3]=d);let p;t[4]!==u||t[5]!==d?(p=(0,Z.jsxs)(`div`,{className:`bYPztT fPSBzf kdFIjO dAaUHp`,children:[u,d]}),t[4]=u,t[5]=d,t[6]=p):p=t[6];let m;t[7]===s?m=t[8]:(m=(0,Z.jsx)(s,{className:`cHzrOo jmzEDN leBhRH`,size:16}),t[7]=s,t[8]=m);let h;return t[9]!==n||t[10]!==c||t[11]!==l||t[12]!==p||t[13]!==m?(h=(0,Z.jsxs)(`a`,{className:`jFAlYd gsZHKK bYPztT bWRdXL dVuijX bZRhvx fPSBzf dVuiVB gnlqYH jrPWxz jsgMDf jsgMpR jrPWph ikENDL hYZFkb`,href:n,rel:c,target:l,children:[p,m]}),t[9]=n,t[10]=c,t[11]=l,t[12]=p,t[13]=m,t[14]=h):h=t[14],h},ViewChallengeJudgingCard=e=>{let t=(0,$.c)(4),{challengeSlug:n}=e,r;t[0]===n?r=t[1]:(r=Y(`/@internal/challenges/@slug/judging`,{args:{slug:n}}),t[0]=n,t[1]=r);let i;return t[2]===r?i=t[3]:(i=(0,Z.jsx)(ChallengeSidebarLinkCard,{href:r,icon:ve,label:`View judging portal`,openInNewTab:!0}),t[2]=r,t[3]=i),i},ut=(function(){var e={alias:null,args:null,kind:`ScalarField`,name:`id`,storageKey:null},t={alias:null,args:null,kind:`ScalarField`,name:`slug`,storageKey:null},n={alias:null,args:null,concreteType:`UserProfile`,kind:`LinkedField`,name:`userProfile`,plural:!1,selections:[e,{alias:null,args:null,kind:`ScalarField`,name:`displayUsername`,storageKey:null},{alias:null,args:null,kind:`ScalarField`,name:`firstName`,storageKey:null},{alias:null,args:null,kind:`ScalarField`,name:`lastName`,storageKey:null},{alias:null,args:null,concreteType:`ContraImage`,kind:`LinkedField`,name:`avatarImage`,plural:!1,selections:[e,{alias:null,args:null,kind:`ScalarField`,name:`uid`,storageKey:null},{alias:null,args:null,kind:`ScalarField`,name:`url`,storageKey:null}],storageKey:null},{args:null,kind:`FragmentSpread`,name:`SocialPostFollowButton_userProfile`}],storageKey:null};return{argumentDefinitions:[],kind:`Fragment`,metadata:null,name:`ChallengeLeaderboardCard_socialPostTag`,selections:[e,{alias:null,args:null,kind:`ScalarField`,name:`name`,storageKey:null},t,{alias:null,args:null,kind:`ScalarField`,name:`topCommunityPromotersLeaderboardEnabled`,storageKey:null},{alias:null,args:null,kind:`ScalarField`,name:`topCommunityPromotersPrizeAmount`,storageKey:null},{alias:null,args:null,kind:`ScalarField`,name:`communityFavoritesLeaderboardEnabled`,storageKey:null},{alias:null,args:null,kind:`ScalarField`,name:`communityFavoritesPrizeAmount`,storageKey:null},{alias:null,args:null,kind:`ScalarField`,name:`visitorHasJoinedTopic`,storageKey:null},{alias:null,args:null,kind:`ScalarField`,name:`visitorHasSubmittedChallengePartnerData`,storageKey:null},{alias:null,args:null,concreteType:`SocialPost`,kind:`LinkedField`,name:`visitorLastSocialPost`,plural:!1,selections:[e,{alias:null,args:null,kind:`ScalarField`,name:`isVisible`,storageKey:null},t],storageKey:null},{alias:null,args:null,concreteType:`SocialPostTagHeaderDetails`,kind:`LinkedField`,name:`headerDetails`,plural:!1,selections:[{alias:null,args:null,kind:`ScalarField`,name:`title`,storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:`ChallengeDetails`,kind:`LinkedField`,name:`challengeDetails`,plural:!1,selections:[e,{alias:null,args:null,kind:`ScalarField`,name:`identityVerificationRequired`,storageKey:null},{alias:null,args:null,kind:`ScalarField`,name:`showGuidelinesBeforeOpen`,storageKey:null},{alias:null,args:null,kind:`ScalarField`,name:`status`,storageKey:null},{alias:null,args:null,kind:`ScalarField`,name:`submissionsOpenDate`,storageKey:null}],storageKey:null},{alias:null,args:null,kind:`ScalarField`,name:`topicGuidelinesBlocknoteContent`,storageKey:null},{alias:null,args:null,kind:`ScalarField`,name:`prizeDetailsBlocknoteContent`,storageKey:null},{alias:null,args:null,kind:`ScalarField`,name:`socialSharingGuidelinesBlocknoteContent`,storageKey:null},{alias:null,args:null,kind:`ScalarField`,name:`termsAndConditionsUrl`,storageKey:null},{alias:null,args:null,concreteType:`SocialPostTagJudge`,kind:`LinkedField`,name:`judges`,plural:!0,selections:[e,{alias:null,args:null,kind:`ScalarField`,name:`subtitle`,storageKey:null}
3,{alias:null,args:null,concreteType:`UserProfile`,kind:`LinkedField`,name:`userProfile`,plural:!1,selections:[e,{args:null,kind:`FragmentSpread`,name:`TopicUser_userProfile`}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:`ChallengeLeaderboard`,kind:`LinkedField`,name:`challengeLeaderboard`,plural:!1,selections:[{alias:null,args:null,concreteType:`ChallengePromoterLeaderboardEntry`,kind:`LinkedField`,name:`topCommunityPromoters`,plural:!0,selections:[n,{alias:null,args:null,kind:`ScalarField`,name:`joinedCount`,storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:`ChallengeFavoriteLeaderboardEntry`,kind:`LinkedField`,name:`communityFavorites`,plural:!0,selections:[n,{alias:null,args:null,concreteType:`SocialPost`,kind:`LinkedField`,name:`mostEngagedSocialPost`,plural:!1,selections:[t],storageKey:null},{alias:null,args:null,kind:`ScalarField`,name:`likeCount`,storageKey:null},{alias:null,args:null,kind:`ScalarField`,name:`replyCount`,storageKey:null},{alias:null,args:null,kind:`ScalarField`,name:`superLikeCount`,storageKey:null}],storageKey:null}],storageKey:null}],type:`SocialPostTag`,abstractKey:null}})();ut.hash=`35d9a0c028600cbca98dd63250eb0bc4`;var dt=(function(){var e=[{defaultValue:null,kind:`LocalArgument`,name:`input`}],t=[{alias:null,args:[{kind:`Variable`,name:`input`,variableName:`input`}],concreteType:`JoinSocialPostTagPayload`,kind:`LinkedField`,name:`joinSocialPostTag`,plural:!1,selections:[{alias:null,args:null,concreteType:`SocialPostTag`,kind:`LinkedField`,name:`socialPostTag`,plural:!1,selections:[{alias:null,args:null,kind:`ScalarField`,name:`id`,storageKey:null},{alias:null,args:null,kind:`ScalarField`,name:`visitorHasJoinedTopic`,storageKey:null},{alias:null,args:null,kind:`ScalarField`,name:`participantCount`,storageKey:null}],storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:e,kind:`Fragment`,metadata:null,name:`useJoinChallengeJoinMutation`,selections:t,type:`Mutation`,abstractKey:null},kind:`Request`,operation:{argumentDefinitions:e,kind:`Operation`,name:`useJoinChallengeJoinMutation`,selections:t},params:{id:`afeb093e5bb0753fd23ed225cdde666b`,metadata:{},name:`useJoinChallengeJoinMutation`,operationKind:`mutation`,text:null}}})();dt.hash=`8c52436db0e535e66a03cdd164f34486`;var ft=`Users must complete identity verification in their profile to participate.`,getChallengeIdentityVerificationError=({identityVerificationRequired:e,identityVerified:t})=>!e||t?null:ft,getChallengeIdentityVerificationWalletRoute=()=>Y(`/@userType/wallet`,{args:{userType:`independent`}}),pt={notioncustomagentbuildathon:`NotionChallengePartnerModal`},mt={notioncustomagentbuildathon:`Submit your Notion details`},ht={notioncustomagentbuildathon:`Update your Notion details`},gt=`runway100kbigpitchchallenge`,_t=`https://c87.to/apr26-runway-challenge-contra`,vt=`eUXhEi bYPztT kFYoXn kiJoEE bZRhvx fEVEmD kWIjhW jsCBtQ eWkBil AxjtU bXBpoe`,getIdentityVerificationToastMessage=({message:e,onGoToWalletClick:t})=>(0,Q.createElement)(Q.Fragment,null,e,` `,(0,Q.createElement)(`button`,{className:vt,onClick:t,type:`button`},`Go to wallet`)),useJoinChallenge=e=>{let t=(0,$.c)(69),{analyticsSection:n,areGuidelinesLockedForJoin:i,communityChallengeId:a,identityVerificationRequired:o,judges:c,prizeDetailsBlocknoteContent:u,socialPostTagId:d,socialSharingGuidelinesBlocknoteContent:f,termsAndConditionsUrl:p,topicGuidelinesBlocknoteContent:m,topicSlug:h,visitorHasSubmittedChallengePartnerData:_}=e,b=v(),C=w(),T=S(),{hasOnboardedAtAll:D}=E(),O=ce(),{track:k,trackOnboardingEntrypoint:A}=g(),{referralIntent:j}=y(),[M]=l(`/community/topic/@slug`),{toggleSelectedUserType:N}=x(),{hasContractorWorkspace:P}=Ve(),[F,I]=s(dt),L;t[0]!==T.path||t[1]!==h?(L=Y(`/get-started`,{search:{hackathon:h,onboardingSource:`community-hackathon`,redirectTo:ie(T.path,{autoJoin:!0,"onboarding-completed":!0}),userType:`independent`}}),t[0]=T.path,t[1]=h,t[2]=L):L=t[2];let ee=L,R;t[3]===T.path?R=t[4]:(R=ie(T.path,{autoJoin:!0}),t[3]=T.path,t[4]=R);let z;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(z={type:`POST_TO_COMMUNITY`},t[5]=z):z=t[5];let B;t[6]===R?B=t[7]:(B={customRedirectToOnOnboardingComplete:R,onboardingType:`CONTRACTOR`,onSignUpCompleted:void 0,postAction:z,skipRoleSelection:!0}
3,t[6]=R,t[7]=B);let V=`community_hackathon_${h}`,H;t[8]===V?H=t[9]:(H={signup_source:`community_hackathon`,signup_source_detailed:V},t[8]=V,t[9]=H);let U;t[10]!==B||t[11]!==H?(U={identifier:`SignupModal`,modalProps:B,staticAdditionalTrackingProperties:H},t[10]=B,t[11]=H,t[12]=U):U=t[12];let{openModal:te}=r(U),W=pt[h],ne=!!a&&!!W&&!_,re=W??`NotionChallengePartnerModal`,K=a??``,q;t[13]!==d||t[14]!==K?(q={communityChallengeId:K,socialPostTagId:d},t[13]=d,t[14]=K,t[15]=q):q=t[15];let J;t[16]!==q||t[17]!==re?(J={identifier:re,modalProps:q},t[16]=q,t[17]=re,t[18]=J):J=t[18];let{openModal:ae}=r(J),oe;t[19]===m?oe=t[20]:(oe=m&&!G(m),t[19]=m,t[20]=oe);let se=oe,le;t[21]===u?le=t[22]:(le=u&&!G(u),t[21]=u,t[22]=le);let ue=le,de;t[23]===f?de=t[24]:(de=f&&!G(f),t[23]=f,t[24]=de);let fe=(se||ue||de)&&!i,pe=h===gt,t15;t[25]!==n||t[26]!==pe||t[27]!==F||t[28]!==ae||t[29]!==j?.id||t[30]!==ne||t[31]!==d||t[32]!==b||t[33]!==h||t[34]!==k||t[35]!==M?(t15=e=>{let{onJoined:t,showSuccessToast:r}=e===void 0?{}:e,i=r===void 0||r,a=ze({facebookClickId:M.fbclid,googleClickId:M.gclid,linkedInFATId:M.li_fat_id,tikTokClickId:M.ttclid,twitterClickId:M.twclid});F({onSuccess:()=>{if(k(`button`,{action:`tapped`,button_name:`join_hackathon`,section:n}),Be(`frontend-any-challenge-join`),pe){window.location.assign(_t);return}i&&b.success(`You have joined #${h}. We're excited to see what you create!`),ne&&ae(),t?.()},variables:{input:{adClickIds:{facebookClickId:a.facebookClickId??null,googleClickId:a.googleClickId??null,linkedInFATId:a.linkedInFATId??null,tikTokClickId:a.tikTokClickId??null,twitterClickId:a.twitterClickId??null},referralIntentId:j?.id??null,socialPostTagId:d}}})},t[25]=n,t[26]=pe,t[27]=F,t[28]=ae,t[29]=j?.id,t[30]=ne,t[31]=d,t[32]=b,t[33]=h,t[34]=k,t[35]=M,t[36]=t15):t15=t[36],j?.id;let X=t15,me=u,he=f,ge=m,_e;t[37]!==X||t[38]!==c||t[39]!==d||t[40]!==me||t[41]!==he||t[42]!==ge||t[43]!==p?(_e={identifier:`AgreeToGuidelinesModal`,modalProps:{judges:c,onAccept:X,prizeDetailsBlocknoteContent:me,socialPostTagId:d,socialSharingGuidelinesBlocknoteContent:he,termsAndConditionsUrl:p,topicGuidelinesBlocknoteContent:ge}},t[37]=X,t[38]=c,t[39]=d,t[40]=me,t[41]=he,t[42]=ge,t[43]=p,t[44]=_e):_e=t[44];let{openModal:ve}=r(_e),t20;t[45]!==O?.selectedUserType||t[46]!==P||t[47]!==C||t[48]!==N?(t20=e=>{if(e.preventDefault(),O?.selectedUserType===`CLIENT`&&!P){N({});return}C.push(getChallengeIdentityVerificationWalletRoute())},t[45]=O?.selectedUserType,t[46]=P,t[47]=C,t[48]=N,t[49]=t20):t20=t[49],O?.selectedUserType;let ye=t20,t21;t[50]!==n||t[51]!==O||t[52]!==X||t[53]!==ye||t[54]!==D||t[55]!==o||t[56]!==pe||t[57]!==C||t[58]!==ee||t[59]!==ve||t[60]!==te||t[61]!==fe||t[62]!==b||t[63]!==k||t[64]!==A?(t21=()=>{if(!O){A(`community_topic_feed_join_cta`),te();return}if(!D){A(`community_topic_feed_join_cta`),C.push(ee);return}let e=getChallengeIdentityVerificationError({identityVerificationRequired:o,identityVerified:O.identityVerified});if(e){b.error(getIdentityVerificationToastMessage({message:e,onGoToWalletClick:ye}));return}fe&&!pe?(k(`button`,{action:`tapped`,button_name:`open_guidelines`,section:n}),ve()):X()},t[50]=n,t[51]=O,t[52]=X,t[53]=ye,t[54]=D,t[55]=o,t[56]=pe,t[57]=C,t[58]=ee,t[59]=ve,t[60]=te,t[61]=fe,t[62]=b,t[63]=k,t[64]=A,t[65]=t21):t21=t[65];let be=t21,xe;return t[66]!==be||t[67]!==I?(xe={handleJoinClick:be,isJoining:I},t[66]=be,t[67]=I,t[68]=xe):xe=t[68],xe},yt=(function(){var e=[{defaultValue:null,kind:`LocalArgument`,name:`input`}],t=[{alias:null,args:[{kind:`Variable`,name:`input`,variableName:`input`}],concreteType:`CreateShortUrlPayload`,kind:`LinkedField`,name:`createShortUrl`,plural:!1,selections:[{alias:null,args:null,concreteType:`ShortUrl`,kind:`LinkedField`,name:`shortUrl`,plural:!1,selections:[{alias:null,args:null,kind:`ScalarField`,name:`id`,storageKey:null},{alias:null,args:null,kind:`ScalarField`,name:`destinationUrl`,storageKey:null},{alias:null,args:null,kind:`ScalarField`,name:`shortUrl`,storageKey:null}],storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:e,kind:`Fragment`,metadata:null,name:`useSocialPostTagShareCreateShortUrlMutation`,selections:t,type:`Mutation`,abstractKey:null},kind:`Request`,operation:{argumentDefinitions:e,kind:`Operation`,name:`useSocialPostTagShareCreateShortUrlMutation`,selections:t},params:{id:`21ce29a9d51d2e109839b4246b4959bc`,metadata:{},name:`useSocialPostTagShareCreateShortUrlMutation`,operationKind:`mutation`,text:null}}})();yt.hash=`36153ade22b09201f621b2f013971def`;var useSocialPostTagShare=e=>{let t=(0,$.c)(23),{analyticsSection:n,socialPostTagId:r,successToast:i,topicSlug:o}=e,c=ce(),{track:l}=g(),d=a(),[f]=s(yt),p=J()?`DEFAULT_REFERRAL_PROGRAM`:`SOCIAL_REFERRAL_PROGRAM`;
3c?.profile?.displayUsername;let m;t[0]!==c?.profile?.displayUsername||t[1]!==p||t[2]!==o?(m=T(`/community/topic/@slug`,{args:{slug:o},search:{r:c?.profile?.displayUsername,referralExperimentNid:p}}),t[0]=c?.profile?.displayUsername,t[1]=p,t[2]=o,t[3]=m):m=t[3];let h=m,[_,v]=(0,Q.useState)(h),t2;t[4]!==f||t[5]!==h||t[6]!==_?(t2=async()=>{if(_!==h)return _;let e=await new Promise((e,t)=>{f({onFailure:()=>{t(Error(`Failed to create short URL`))},onSuccess:t=>{e(t?.createShortUrl?.shortUrl?.shortUrl??void 0)},variables:{input:{destinationUrl:h,hostname:`on.contra.com`}}})});return e?(v(e),e):h},t[4]=f,t[5]=h,t[6]=_,t[7]=t2):t2=t[7];let y=t2,t3;t[8]!==n||t[9]!==d||t[10]!==y||t[11]!==r||t[12]!==i||t[13]!==l?(t3=async()=>{l(`button`,{action:`tapped`,button_name:`social_post_tag_share`,section:n,social_post_tag_id:r});let e=await y();await d(e,{successToast:i??`The link was copied to your clipboard!`})},t[8]=n,t[9]=d,t[10]=y,t[11]=r,t[12]=i,t[13]=l,t[14]=t3):t3=t[14];let b=t3,t4;t[15]!==n||t[16]!==r||t[17]!==l?(t4=()=>{V(()=>{l(`button`,{action:`viewed`,button_name:`social_post_tag_share`,section:n,social_post_tag_id:r})})},t[15]=n,t[16]=r,t[17]=l,t[18]=t4):t4=t[18];let x=u(t4),S;return t[19]!==b||t[20]!==h||t[21]!==x?(S={handleShare:b,shareUrl:h,viewRef:x},t[19]=b,t[20]=h,t[21]=x,t[22]=S):S=t[22],S},bt=3,xt=[{nameWidth:`112px`},{nameWidth:`207px`},{nameWidth:`163px`}],SkeletonEntry=e=>{let t=(0,$.c)(11),{index:n}=e,r=xt[n]??xt[0],i=n+1,a;t[0]===i?a=t[1]:(a=(0,Z.jsx)(`div`,{className:`bYPztT fPSBzf fNBBKC gEYBVn fNCcFw`,children:(0,Z.jsx)(`span`,{className:`iHkMOF dkAowc`,children:i})}),t[0]=i,t[1]=a);let o;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,Z.jsx)(`div`,{className:`kwEuJl dDifmo jmzEDN fNBBKC fNBBKd`}),t[2]=o):o=t[2];let s;t[3]===r.nameWidth?s=t[4]:(s=(0,Z.jsx)(`div`,{className:`kwEuJl jrHZPA fNBBKC`,style:{width:r.nameWidth}}),t[3]=r.nameWidth,t[4]=s);let c;t[5]===n?c=t[6]:(c=n===0&&(0,Z.jsx)(ye,{className:`iHkMOF jmzEDN`,size:14}),t[5]=n,t[6]=c);let l;return t[7]!==a||t[8]!==s||t[9]!==c?(l=(0,Z.jsx)(`div`,{className:`fPSBzf iRgpoQ dKLBtz hYZFkb`,children:(0,Z.jsxs)(`div`,{className:`bYPztT fPSBzf jrWRtM hYZFkb`,children:[a,o,s,c]})}),t[7]=a,t[8]=s,t[9]=c,t[10]=l):l=t[10],l},getVariantConfig=e=>({favorites:{icon:z,subtitle:e?`Get the most engagement – win money.`:`Get the most engagement and earn community recognition.`,title:`Community Favorites`,tooltipContent:e?`1st place wins ${e}.\n\nIf your submission gets the most likes + replies + upgoats, you win!`:`If your submission gets the most likes + replies + upgoats, you top the leaderboard.`},promoters:{icon:ge,subtitle:e?`Refer the most participants – win money.`:`Refer the most participants and earn community recognition.`,title:`Top Community Promoters`,tooltipContent:e?`1st place wins ${e}.\n\nRefer the most participants to win!`:`Refer the most participants to top the leaderboard.`}}),ChallengeLeaderboardCard=e=>{let t=(0,$.c)(98),{socialPostTagRef:n,variant:r}=e,{track:i}=g(),a=te(ut,n),o=r===`promoters`?a.topCommunityPromotersLeaderboardEnabled:a.communityFavoritesLeaderboardEnabled,s;bb0:{let e=r===`promoters`?a.topCommunityPromotersPrizeAmount:a.communityFavoritesPrizeAmount;if(!e){s=null;break bb0}let n;t[0]===e?n=t[1]:(n=le.deserialize(e).formatCompact(),t[0]=e,t[1]=n),s=n}let c=s,u;bb1:{let e=a.challengeLeaderboard;if(r===`promoters`){if(!e?.topCommunityPromoters){let e;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(e=[],t[2]=e):e=t[2],u=e;break bb1}let n;t[3]===e.topCommunityPromoters?n=t[4]:(n=e.topCommunityPromoters.map(_temp$1),t[3]=e.topCommunityPromoters,t[4]=n),u=n;break bb1}if(!e?.communityFavorites){let e;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(e=[],t[5]=e):e=t[5],u=e;break bb1}let n;t[6]===e.communityFavorites?n=t[7]:(n=e.communityFavorites.map(_temp2),t[6]=e.communityFavorites,t[7]=n),u=n}let d=u,f=a?.visitorLastSocialPost?.isVisible&&a?.visitorLastSocialPost?.slug?a?.visitorLastSocialPost:null,p=`challenge_leaderboard_${r}`,m;t[8]!==a.id||t[9]!==a.slug||t[10]!==p?(m={analyticsSection:p,socialPostTagId:a.id,successToast:`Your challenge share link was copied to your clipboard.`,topicSlug:a.slug},t[8]=a.id,t[9]=a.slug,t[10]=p,t[11]=m):m=t[11];let{handleShare:h}=useSocialPostTagShare(m),_=f?.id??``,v=f?.slug??``,y;
3t[12]!==p||t[13]!==_||t[14]!==v?(y={analyticsSection:p,isReply:!1,socialPostId:_,topLevelSocialPostSlug:v},t[12]=p,t[13]=_,t[14]=v,t[15]=y):y=t[15];let{handleCopyLink:b}=Ie(y),x=r===`favorites`&&f?.slug?b:h,C=Le[a.slug],T=a.headerDetails?.title??`#${a.name}`,E=r===`favorites`?c?`Share your submission on socials to get more engagement (likes, upgoats, replies).\n\nThe person with the most community engagement will win ${c}.`:`Share your submission on socials to get more engagement (likes, upgoats, replies).
4
5The person with the most community engagement will top the leaderboard.`:c?`Share this link with your community to get more participants in the ${T} challenge.\n\nThe person that refers the most participants will win ${c}.`:`Share this link with your community to get more participants in the ${T} challenge.\n\nThe person that refers the most participants will top the leaderboard.`,O=a.challengeDetails?.status===`UPCOMING`&&a.challengeDetails?.showGuidelinesBeforeOpen===!1,k=`challenge_leaderboard_${r}`,M=a.challengeDetails?.id,N=a.challengeDetails?.identityVerificationRequired??!1,P;t[16]===a.judges?P=t[17]:(P=a.judges??[],t[16]=a.judges,t[17]=P);let L=a.termsAndConditionsUrl??null,ee;t[18]!==k||t[19]!==O||t[20]!==a.id||t[21]!==a.prizeDetailsBlocknoteContent||t[22]!==a.slug||t[23]!==a.socialSharingGuidelinesBlocknoteContent||t[24]!==a.topicGuidelinesBlocknoteContent||t[25]!==a.visitorHasSubmittedChallengePartnerData||t[26]!==L||t[27]!==M||t[28]!==N||t[29]!==P?(ee={analyticsSection:k,areGuidelinesLockedForJoin:O,communityChallengeId:M,identityVerificationRequired:N,judges:P,prizeDetailsBlocknoteContent:a.prizeDetailsBlocknoteContent,socialPostTagId:a.id,socialSharingGuidelinesBlocknoteContent:a.socialSharingGuidelinesBlocknoteContent,termsAndConditionsUrl:L,topicGuidelinesBlocknoteContent:a.topicGuidelinesBlocknoteContent,topicSlug:a.slug,visitorHasSubmittedChallengePartnerData:a.visitorHasSubmittedChallengePartnerData},t[18]=k,t[19]=O,t[20]=a.id,t[21]=a.prizeDetailsBlocknoteContent,t[22]=a.slug,t[23]=a.socialSharingGuidelinesBlocknoteContent,t[24]=a.topicGuidelinesBlocknoteContent,t[25]=a.visitorHasSubmittedChallengePartnerData,t[26]=L,t[27]=M,t[28]=N,t[29]=P,t[30]=ee):ee=t[30];let{handleJoinClick:R,isJoining:z}=useJoinChallenge(ee),[V,H]=(0,Q.useState)(!1),U=d.length>bt,W;t[31]!==d||t[32]!==V?(W=V?d:d.slice(0,bt),t[31]=d,t[32]=V,t[33]=W):W=t[33];let G=W,t13;t[34]!==V||t[35]!==i||t[36]!==r?(t13=()=>{let e=!V;H(e),i(`button`,{action:`tapped`,button_name:e?`challenge_leaderboard_expand`:`challenge_leaderboard_collapse`,section:`challenge_leaderboard_${r}`})},t[34]=V,t[35]=i,t[36]=r,t[37]=t13):t13=t[37];let K=t13,q=w(),J=S(),[,ie]=l(`/community/topic/@slug`),t14;t[38]!==a.slug||t[39]!==J.pathname||t[40]!==q||t[41]!==ie||t[42]!==i||t[43]!==r?(t14=()=>{i(`button`,{action:`tapped`,button_name:`challenge_leaderboard_create_post`,section:`challenge_leaderboard_${r}`});let e=Y(`/community/topic/@slug`,{args:{slug:a.slug}}),t=Y(`/community/topic/@slug/recent`,{args:{slug:a.slug}});J.pathname===e||J.pathname===t?ie({focusInput:!0}):q.push(Y(`/community/topic/@slug`,{args:{slug:a.slug},search:{focusInput:!0}}))},t[38]=a.slug,t[39]=J.pathname,t[40]=q,t[41]=ie,t[42]=i,t[43]=r,t[44]=t14):t14=t[44];let ae=t14,oe=a.visitorHasJoinedTopic,se=!!f?.slug,ce;t[45]===c?ce=t[46]:(ce=getVariantConfig(c),t[45]=c,t[46]=ce);let ue=ce[r],de=ue.icon;if(!o)return null;let fe;t[47]===de?fe=t[48]:(fe=(0,Z.jsx)(de,{className:`cHzrOo jmzEDN`,size:16}),t[47]=de,t[48]=fe);let pe;t[49]===ue.title?pe=t[50]:(pe=(0,Z.jsx)(`span`,{className:`cHzrOo gCDAPB`,children:ue.title}),t[49]=ue.title,t[50]=pe);let X;t[51]!==fe||t[52]!==pe?(X=(0,Z.jsxs)(`div`,{className:`bYPztT fPSBzf dKLBtz`,children:[fe,pe]}),t[51]=fe,t[52]=pe,t[53]=X):X=t[53];let me;t[54]!==ue.tooltipContent||t[55]!==c?(me=c?(0,Z.jsx)(D,{content:ue.tooltipContent,contentOptions:{sideOffset:8},trigger:(0,Z.jsxs)(`div`,{className:`bYPztT fkSPJt jsnJKs fyplMZ fPSBzf jsnMfm fNCKQQ fNBpxA fNBpFS fNCKZi`,children:[(0,Z.jsx)(`span`,{className:`elLSMS emMmYy hLQIGS`,children:c}),(0,Z.jsx)(ye,{className:`eLwGGR jmzEDN`,size:10})]})}):null,t[54]=ue.tooltipContent,t[55]=c,t[56]=me):me=t[56];let he;t[57]!==X||t[58]!==me?(he=(0,Z.jsxs)(`div`,{className:`bYPztT fPSBzf dDWCpe hYZFkb`,children:[X,me]}),t[57]=X,t[58]=me,t[59]=he):he=t[59];let ge;t[60]===ue.subtitle?ge=t[61]:(ge=(0,Z.jsx)(`span`,{className:`kvIBcd hxnFtC`,children:ue.subtitle}),t[60]=ue.subtitle,t[61]=ge);let _e;t[62]!==he||t[63]!==ge?(_e=(0,Z.jsxs)(`div`,{className:`fPSBzf iRgpoQ jsCBtQ`,children:[he,ge]}),t[62]=he,t[63]=ge,t[64]=_e):_e=t[64];let ve;if(t[65]!==i||t[66]!==r||t[67]!==G){let t24;t[69]!==i||t[70]!==r?(t24=(e,t)=>{let n=e.postSlug?Y(`/community/@slug`,{args:{slug:e.postSlug}}):e.username?Y(`/@username`,{args:{username:e.username}}):void 0;return(0,Z.jsxs)(`a`,{className:`hZsxJV bYPztT dVuijX fNBMQy cYdhWw dHqTdK hHHOaS fNAIGQ hVpAQY ATFzw fNCKSL bAAcjv gWJvJf`,href:n,onClick:()=>
5{i(`link`,{action:`tapped`,copy:e.name,destination_url:n,link_name:e.postSlug?`challenge_leaderboard_post`:`challenge_leaderboard_profile`,position_index:t+1,section:`challenge_leaderboard_${r}`})},children:[(0,Z.jsx)(`span`,{className:`iHkMOF lcqGM jrPIAi dkAowc`,children:t+1}),(0,Z.jsx)(`div`,{className:`csrXoH`,children:(0,Z.jsx)(re,{avatarImage:e.avatarImage,fallbackInitialsLength:2,fallbackName:e.name,onClick:_temp3,size:24})}),(0,Z.jsxs)(`div`,{className:`bYPztT fPSBzf jrWRtM ssASp hVpAQY`,children:[(0,Z.jsx)(`span`,{className:`cHzrOo hVpAQY gCDAPB gnlqYH hWhrno cbkwRf`,children:e.name}),t===0&&(0,Z.jsx)(ye,{className:`iHkMOF jmzEDN`,size:14})]}),e.userProfileRef&&(0,Z.jsx)(`div`,{className:`iwvluj jrPIAi`,children:(0,Z.jsx)(j,{analyticsSection:`challenge_leaderboard`,asDiv:!0,textColor:`gray.50`,userProfileRef:e.userProfileRef,variant:`subtle`})})]},e.id)},t[69]=i,t[70]=r,t[71]=t24):t24=t[71],ve=G.map(t24),t[65]=i,t[66]=r,t[67]=G,t[68]=ve}else ve=t[68];let be;t[72]!==V||t[73]!==G.length?(be=!V&&G.length<bt?Array.from({length:bt-G.length},(e,t)=>(0,Z.jsx)(SkeletonEntry,{index:G.length+t},`skeleton-${G.length+t}`)):null,t[72]=V,t[73]=G.length,t[74]=be):be=t[74];let xe;t[75]!==d.length||t[76]!==K||t[77]!==U||t[78]!==V?(xe=U?(0,Z.jsxs)(`button`,{className:`hZsxJV bYPztT kFYpif kFYpjY jrHZPA bZRhvx fPSBzf jsnMfm bYPznK ATHag bAAcjv hYZFkb`,onClick:K,type:`button`,children:[(0,Z.jsx)(`span`,{className:`kvIBcd fQaDCD`,children:V?`Show less`:`Show all ${d.length}`}),V?(0,Z.jsx)(A,{className:`kvIBcd`,size:14}):(0,Z.jsx)(ne,{className:`kvIBcd`,size:14})]}):null,t[75]=d.length,t[76]=K,t[77]=U,t[78]=V,t[79]=xe):xe=t[79];let Se;t[80]!==C||t[81]!==R||t[82]!==ae||t[83]!==x||t[84]!==oe||t[85]!==se||t[86]!==z||t[87]!==E||t[88]!==r?(Se=r===`promoters`?(0,Z.jsx)(D,{content:E,contentOptions:{sideOffset:8},trigger:(0,Z.jsx)(I,{onClick:x,size:`small`,variant:`tertiary`,children:(0,Z.jsxs)(`div`,{className:`bYPztT fPSBzf jrWRtM`,children:[(0,Z.jsx)(`span`,{className:`fQaDCD`,children:`Share challenge`}),(0,Z.jsx)(F,{className:`fdiXMQ jmzEDN`,size:16})]})})}):C?(0,Z.jsx)(B,{href:C,rel:`noopener noreferrer`,size:`small`,target:`_blank`,variant:`tertiary`,children:(0,Z.jsx)(`span`,{className:`fQaDCD`,children:`Join this challenge`})}):oe&&se?(0,Z.jsx)(D,{content:E,contentOptions:{sideOffset:8},trigger:(0,Z.jsx)(I,{onClick:x,size:`small`,variant:`tertiary`,children:(0,Z.jsxs)(`div`,{className:`bYPztT fPSBzf jrWRtM`,children:[(0,Z.jsx)(`span`,{className:`fQaDCD`,children:`Share your submission`}),(0,Z.jsx)(F,{className:`fdiXMQ jmzEDN`,size:16})]})})}):oe?(0,Z.jsx)(I,{onClick:ae,size:`small`,variant:`tertiary`,children:(0,Z.jsx)(`span`,{className:`fQaDCD`,children:`Post your submission`})}):(0,Z.jsx)(I,{disabled:z,loading:z,onClick:R,size:`small`,variant:`tertiary`,children:(0,Z.jsx)(`span`,{className:`fQaDCD`,children:`Join this challenge`})}),t[80]=C,t[81]=R,t[82]=ae,t[83]=x,t[84]=oe,t[85]=se,t[86]=z,t[87]=E,t[88]=r,t[89]=Se):Se=t[89];let Ce;t[90]!==ve||t[91]!==be||t[92]!==xe||t[93]!==Se?(Ce=(0,Z.jsxs)(`div`,{className:`fPSBzf iRgpoQ dpjphg`,children:[ve,be,xe,Se]}),t[90]=ve,t[91]=be,t[92]=xe,t[93]=Se,t[94]=Ce):Ce=t[94];let we;return t[95]!==_e||t[96]!==Ce?(we=(0,Z.jsxs)(`div`,{className:`bCShOO hYCnIA dKCFRy hDGJaH dTBYkx fPSBzf iRgpoQ dKCDvs gnlqYH fNCCNu hYZFkb`,children:[_e,Ce]}),t[95]=_e,t[96]=Ce,t[97]=we):we=t[97],we};function _temp$1(e){return{avatarImage:e.userProfile.avatarImage??null,id:e.userProfile.id,name:R({firstName:e.userProfile.firstName,lastName:e.userProfile.lastName},`fullName`),postSlug:null,username:e.userProfile.displayUsername,userProfileRef:e.userProfile}}e(_temp$1,`_temp`);function _temp2(e){return{avatarImage:e.userProfile.avatarImage??null,id:e.userProfile.id,name:R({firstName:e.userProfile.firstName,lastName:e.userProfile.lastName},`fullName`),postSlug:e.mostEngagedSocialPost?.slug??null,username:e.userProfile.displayUsername,userProfileRef:e.userProfile}}function _temp3(){}var St=(function(){var e={alias:null,args:null,kind:`ScalarField`,name:`id`,storageKey:null};return{argumentDefinitions:[],kind:`Fragment`,metadata:null,name:`TopicSponsors_socialPostTag`,selections:[e,{alias:null,args:null,kind:`ScalarField`,name:`slug`,storageKey:null},{alias:null,args:null,concreteType:`SocialPostTagSponsor`,kind:`LinkedField`,name:`sponsors`,plural:!0,selections:[e,{alias:null,args:null,kind:`ScalarField`,name:`sponsorName`,storageKey:null},{alias:null,args:null,kind:`ScalarField`,name:`externalLink`,storageKey:null},{alias:null,args:null,concreteType:`SocialPostTagVector`,kind:`LinkedField`,name:`sponsorLogo`,plural:!1,selections:[{alias:null,args:null,kind:`ScalarField`,name:`assetUrl`,storageKey:null}],storageKey:null}],storageKey:null}],type:`SocialPostTag`,abstractKey:null}})();St.hash=`f8651ac207a0a855018051bef9e7186e`;var TopicSponsors=e=>{let t=(0,$.c)(17),{className:n,socialPostTagRef:r}=e,i=te(St,r),{track:a}=g(),t1;t[0]!==i.id||t[1]!==i.slug||t[2]!==a?(t1=e=>
5{a(`link`,{action:`tapped`,destination_url:e,link_name:`hackathon_sponsor`,section:`community_right_sidebar`,social_post_tag_id:i.id,social_post_tag_slug:i.slug})},t[0]=i.id,t[1]=i.slug,t[2]=a,t[3]=t1):t1=t[3];let o=t1;if(i.sponsors.length===0)return null;let s;t[4]===n?s=t[5]:(s=X(`fPSBzf iRgpoQ dAaUHp jsOvNr`,n),t[4]=n,t[5]=s);let c;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,Z.jsx)(`p`,{className:`bucdke hlUslA jsxFtA jRXTuE jsgMFL emMmYy`,children:`SPONSORED BY`}),t[6]=c):c=t[6];let l;if(t[7]!==o||t[8]!==i.sponsors){let t5;t[10]===o?t5=t[11]:(t5=e=>(0,Z.jsx)(`a`,{className:`ilHJte bYPztT bZRhvx fPSBzf fNBQAt bYPznK icdHOF gnlqYH eAZrpM`,href:e.externalLink,onClick:()=>o(e.externalLink),rel:`noopener noreferrer`,target:`_blank`,children:(0,Z.jsx)(`img`,{alt:`${e.sponsorName} logo`,className:`cGFOJB eAZrqn diVlLl dmmjlu ldKigU eAZrpM`,src:e.sponsorLogo.assetUrl})},e.id),t[10]=o,t[11]=t5),l=i.sponsors.map(t5),t[7]=o,t[8]=i.sponsors,t[9]=l}else l=t[9];let u;t[12]===l?u=t[13]:(u=(0,Z.jsx)(`div`,{className:`bvMRZm bvMRXU fPSBzf gasSYy jrIcfy gEYBVn`,children:l}),t[12]=l,t[13]=u);let d;return t[14]!==s||t[15]!==u?(d=(0,Z.jsxs)(`div`,{className:s,children:[c,u]}),t[14]=s,t[15]=u,t[16]=d):d=t[16],d},ViewChallengeReportCard=e=>{let t=(0,$.c)(2),{challengeReportUrl:n}=e,r;return t[0]===n?r=t[1]:(r=(0,Z.jsx)(ChallengeSidebarLinkCard,{href:n,icon:DataIcon,label:`View challenge report`,openInNewTab:!0}),t[0]=n,t[1]=r),r},Ct=(function(){var e={alias:null,args:null,kind:`ScalarField`,name:`id`,storageKey:null};return{argumentDefinitions:[],kind:`Fragment`,metadata:null,name:`TopicExternalLink_socialPostTagExternalLink`,selections:[e,{alias:null,args:null,kind:`ScalarField`,name:`headerText`,storageKey:null},{alias:null,args:null,kind:`ScalarField`,name:`bodyText`,storageKey:null},{alias:null,args:null,kind:`ScalarField`,name:`externalLink`,storageKey:null},{alias:null,args:null,concreteType:null,kind:`LinkedField`,name:`headerIcon`,plural:!1,selections:[{alias:null,args:null,kind:`ScalarField`,name:`__typename`,storageKey:null},{kind:`InlineFragment`,selections:[e,{alias:null,args:null,kind:`ScalarField`,name:`uid`,storageKey:null}],type:`ContraImage`,abstractKey:null},{kind:`InlineFragment`,selections:[{alias:null,args:null,kind:`ScalarField`,name:`assetUrl`,storageKey:null}],type:`SocialPostTagVector`,abstractKey:null}],storageKey:null}],type:`SocialPostTagExternalLink`,abstractKey:null}})();Ct.hash=`18cfd25a9bcdae8974e4748d98a0655d`;var TopicExternalLink=e=>{let t=(0,$.c)(22),{socialPostTagExternalLinkRef:n}=e,r=te(Ct,n),{track:a}=g(),t1;t[0]!==r.externalLink||t[1]!==r.headerText||t[2]!==r.id||t[3]!==a?(t1=()=>{a(`link`,{action:`tapped`,cta:r.headerText,destination_url:r.externalLink,link_name:`topic_external_link`,section:`community_right_sidebar`,social_post_tag_id:r.id})},t[0]=r.externalLink,t[1]=r.headerText,t[2]=r.id,t[3]=a,t[4]=t1):t1=t[4];let o=t1,s;t[5]===r.headerIcon?s=t[6]:(s=r.headerIcon?.__typename===`ContraImage`?b(r.headerIcon.uid,{extension:`webp`,transforms:{height:484,width:1360}}):r.headerIcon?.__typename===`SocialPostTagVector`?r.headerIcon.assetUrl:null,t[5]=r.headerIcon,t[6]=s);let c=s,l;t[7]!==r.headerText||t[8]!==c?(l=c?(0,Z.jsx)(`img`,{alt:r.headerText,className:`jmzEDN`,height:16,src:c,width:16}):(0,Z.jsx)(i,{className:`bucdke jmzEDN`,size:16}),t[7]=r.headerText,t[8]=c,t[9]=l):l=t[9];let u;t[10]===r.headerText?u=t[11]:(u=(0,Z.jsx)(`div`,{className:`cHzrOo gCDAPB`,children:r.headerText}),t[10]=r.headerText,t[11]=u);let d;t[12]!==l||t[13]!==u?(d=(0,Z.jsxs)(`div`,{className:`bYPztT fPSBzf kdFIjO cMGtQw jrWRtM hVpAQY`,children:[l,u]}),t[12]=l,t[13]=u,t[14]=d):d=t[14];let f;t[15]===r.bodyText?f=t[16]:(f=(0,Z.jsx)(`div`,{className:`bucdke dkAowc`,children:r.bodyText}),t[15]=r.bodyText,t[16]=f);let p;return t[17]!==r.externalLink||t[18]!==o||t[19]!==d||t[20]!==f?(p=(0,Z.jsxs)(`a`,{className:`hZsxJV dVuijX fPSBzf iRgpoQ jrWRtM fNDdIP kFYpjC bAAcjv`,href:r.externalLink,onClick:o,rel:`noopener noreferrer`,target:`_blank`,children:[d,f]}),t[17]=r.externalLink,t[18]=o,t[19]=d,t[20]=f,t[21]=p):p=t[21],p}
5,TopicUserListContainer=e=>{let t=(0,$.c)(5),{children:n,title:r}=e,i;t[0]===r?i=t[1]:(i=(0,Z.jsx)(`span`,{className:`bucdke emMmYy gnlqYH fNCnti jsOvNr hWhrno cbkwRf`,children:r}),t[0]=r,t[1]=i);let a;return t[2]!==n||t[3]!==i?(a=(0,Z.jsxs)(`div`,{className:`fPSBzf iRgpoQ gnlqYH`,children:[i,n]}),t[2]=n,t[3]=i,t[4]=a):a=t[4],a},TopicSidebarDetails=e=>{let t=(0,$.c)(40),{defaultSidebarFallback:n,engagingAsDropdown:r,isAuthenticated:i,socialPostTagSlug:a,unauthenticatedFeedBenefitsBanner:o}=e,s=ce(),c;t[0]===a?c=t[1]:(c={slug:a},t[0]=a,t[1]=c);let l=K(st,c),u;t[2]===l.socialPostTagBySlug?.judges?u=t[3]:(u=l.socialPostTagBySlug?.judges??[],t[2]=l.socialPostTagBySlug?.judges,t[3]=u);let d=u,f;t[4]!==s?.profile||t[5]!==s?.userGroups||t[6]!==l.socialPostTagBySlug?.challengeDetails?.viewerCanShortlistSubmissions||t[7]!==d?(f=s?.userGroups.includes(`ADMIN`)||d.some(e=>e.userProfile.id===s?.profile.id)||l.socialPostTagBySlug?.challengeDetails?.viewerCanShortlistSubmissions,t[4]=s?.profile,t[5]=s?.userGroups,t[6]=l.socialPostTagBySlug?.challengeDetails?.viewerCanShortlistSubmissions,t[7]=d,t[8]=f):f=t[8];let p=f,m=l.socialPostTagBySlug?.challengeDetails,h=l.socialPostTagBySlug?.topCommunityPromotersLeaderboardEnabled??!1,g=l.socialPostTagBySlug?.communityFavoritesLeaderboardEnabled??!1,_;t[9]===l.socialPostTagBySlug?.sponsors?_=t[10]:(_=l.socialPostTagBySlug?.sponsors??[],t[9]=l.socialPostTagBySlug?.sponsors,t[10]=_);let v=_,y=l.socialPostTagBySlug?.tag.__typename===`%other`?null:l.socialPostTagBySlug?.tag.name,b;t[11]===l.socialPostTagBySlug?.externalLinks?b=t[12]:(b=l.socialPostTagBySlug?.externalLinks??[],t[11]=l.socialPostTagBySlug?.externalLinks,t[12]=b);let x=b,S;t[13]!==x||t[14]!==y?(S=x.length===0?(0,Z.jsx)(Q.Suspense,{children:(0,Z.jsx)(CommunityTrendingTopics,{limit:5})}):(0,Z.jsxs)(`div`,{className:`fPSBzf iRgpoQ jsgMou`,children:[(0,Z.jsxs)(`span`,{className:`bucdke fNBpvX jsOvNu emMmYy`,children:[`Related to `,y]}),x.map(_temp)]}),t[13]=x,t[14]=y,t[15]=S):S=t[15];let C=S,t7;t[16]!==p||t[17]!==m||t[18]!==g||t[19]!==l.socialPostTagBySlug||t[20]!==n||t[21]!==x.length||t[22]!==C||t[23]!==i||t[24]!==d||t[25]!==a||t[26]!==h?(t7=()=>{if(!l.socialPostTagBySlug||l.socialPostTagBySlug.tag.__typename===`%other`)return n;if(m)return(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsxs)(`div`,{className:`fPSBzf iRgpoQ jrIcfy`,children:[m.challengeReportUrl?(0,Z.jsx)(ViewChallengeReportCard,{challengeReportUrl:m.challengeReportUrl}):(0,Z.jsx)(ViewAllChallengesCard,{}),p?(0,Z.jsx)(ViewChallengeJudgingCard,{challengeSlug:a}):null]}),m.submissionsEnabled?null:x.length>0?C:null,m.lumaLink?(0,Z.jsx)(TopicLumaLinkCard,{lumaLink:m.lumaLink,socialPostTagId:l.socialPostTagBySlug.id}):null,d.length>0?(0,Z.jsx)(TopicUserListContainer,{title:`Judges`,children:d.map(e=>(0,Z.jsx)(He,{analyticsLinkName:`hackathon_judge`,socialPostTagAnalyticsId:l?.socialPostTagBySlug?.id??``,subtitle:e.subtitle,userProfileRef:e.userProfile},e.id))}):null,i&&h?(0,Z.jsx)(ChallengeLeaderboardCard,{socialPostTagRef:l.socialPostTagBySlug,variant:`promoters`}):null,i&&g?(0,Z.jsx)(ChallengeLeaderboardCard,{socialPostTagRef:l.socialPostTagBySlug,variant:`favorites`}):null]});let e=d.length>0?(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(TopicUserListContainer,{title:`Curators`,children:d.map(e=>(0,Z.jsx)(He,{analyticsLinkName:`topic_curator`,socialPostTagAnalyticsId:l?.socialPostTagBySlug?.id??``,subtitle:e.subtitle,userProfileRef:e.userProfile},e.id))}),(0,Z.jsx)(`div`,{"aria-orientation":`horizontal`,className:`fPJlcf EcxBh hefOfS jsgMou hYZFkb`,role:`separator`})]}):null;return(0,Z.jsxs)(Z.Fragment,{children:[e,C]})},t[16]=p,t[17]=m,t[18]=g,t[19]=l.socialPostTagBySlug,t[20]=n,t[21]=x.length,t[22]=C,t[23]=i,t[24]=d,t[25]=a,t[26]=h,t[27]=t7):t7=t[27];let w=t7,T=m?null:r,E;t[28]===w?E=t[29]:(E=w(),t[28]=w,t[29]=E);let D;t[30]!==m||t[31]!==l.socialPostTagBySlug||t[32]!==d||t[33]!==v?(D=l.socialPostTagBySlug&&v.length>0?(0,Z.jsxs)(Z.Fragment,{children:[d.length>0||!m?(0,Z.jsx)(`div`,{"aria-orientation":`horizontal`,className:`fPJlcf EcxBh hefOfS hYZFkb`,role:`separator`}):null,(0,Z.jsx)(TopicSponsors,{className:m?void 0:`ATFzw`,socialPostTagRef:l.socialPostTagBySlug})]}):null,t[30]=m,t[31]=l.socialPostTagBySlug,t[32]=d,t[33]=v,t[34]=D):D=t[34];let O;return t[35]!==D||t[36]!==T||t[37]!==E||t[38]!==o?(O=(0,Z.jsxs)(Z.Fragment,{children:[o,T,E,D]}),t[35]=D,t[36]=T,t[37]=E,t[38]=o,t[39]=O):O=t[39],O};function _temp(e){return(0,Z.jsx)(TopicExternalLink,{socialPostTagExter
5nalLinkRef:e},e.id)}var wt=`https://builds.contra.com/assets/assets/static/post-job-background.DVG_GZE6.webp`,Tt=`bCShOO dcFSwB dAaTQP hDGJaH dTBYkx fPSBzf iRgpoQ dAaUHp gnlqYH fNCCNu jTWvec`,Et=`fPSBzf iRgpoQ dAaUHp jTWvec Axjab`,Dt=`fPSBzf iRgpoQ jsnMfm`,Ot=`cHzrOo gCDAPB`,kt=`fanexX dkAowc`,PostJobBanner=()=>{let e=(0,$.c)(5),{track:t}=g(),n;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(n={backgroundImage:`url(${wt})`},e[0]=n):n=e[0];let r;e[1]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,Z.jsxs)(`div`,{className:Dt,children:[(0,Z.jsx)(`h3`,{className:Ot,children:`Browse all talent on Discover`}),(0,Z.jsx)(`p`,{className:kt,children:`Discover the best creatives and projects.`})]}),e[1]=r):r=e[1];let i;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(i=Y(`/discover`),e[2]=i):i=e[2];let a;return e[3]===t?a=e[4]:(a=(0,Z.jsx)(`div`,{className:Tt,style:n,children:(0,Z.jsxs)(`div`,{className:Et,children:[r,(0,Z.jsx)(B,{href:i,onClick:()=>{t(`link`,{action:`tapped`,link_name:`discover_independents`,section:`community_page_right_sidebar`})},size:`small`,variant:`tertiary-outline`,children:`Discover talent`})]})}),e[3]=t,e[4]=a),a},At=25,jt=`ddgODW gPeiOM eCvggF daTFqd`,Mt=`jSdTSv yOEYy BENyO jseQFJ lnopcr csACHH`,Nt=`cYdhWw dAaUHp`,CommunityPageRightSidebar=()=>{let e=(0,$.c)(24),t=_(`slug`),n=S(),r=ce(),i=H(`workspace3`),{workspaces:a}=W(),{isClient:o,isContractor:s}=ee(),c=8+At,l;e[0]===n.pathname?l=e[1]:(l=n.pathname.includes(`/community/topic/`),e[0]=n.pathname,e[1]=l);let u=l,d=i?a.length>0:o?!!r?.profile.organizationV2?.id:s&&!!r?.studioOrganization,f;e[2]===d?f=e[3]:(f=d?(0,Z.jsx)(EngagingAsDropdown,{}):null,e[2]=d,e[3]=f);let p=f,m;e[4]!==r||e[5]!==u?(m=r?null:(0,Z.jsx)(UnauthenticatedFeedBenefitsBanner,{variant:u?`topic`:`default`}),e[4]=r,e[5]=u,e[6]=m):m=e[6];let h=m,t3;e[7]!==d||e[8]!==r||e[9]!==o||e[10]!==s||e[11]!==h?(t3=e=>{let{hideEngagingAsDropdown:t,hideUnauthenticatedFeedBenefitsBanner:n}=e;return(0,Z.jsxs)(Z.Fragment,{children:[!r&&!n?h:s?(0,Z.jsxs)(`div`,{className:`fPSBzf iRgpoQ dVuiVB hYZFkb`,children:[d&&!t?(0,Z.jsx)(EngagingAsDropdown,{}):null,d?null:(0,Z.jsx)(Q.Suspense,{children:(0,Z.jsx)(CommunitySidebarQuickActions,{analyticsSection:`community_page_right_sidebar`})})]}):null,o?(0,Z.jsxs)(`div`,{className:`fPSBzf iRgpoQ dVuiVB hYZFkb`,children:[d&&!t?(0,Z.jsx)(EngagingAsDropdown,{}):null,d?null:(0,Z.jsx)(Q.Suspense,{children:(0,Z.jsx)(CommunitySidebarQuickActions,{analyticsSection:`community_page_right_sidebar`})}),(0,Z.jsx)(PostJobBanner,{})]}):null,(0,Z.jsx)(CommunityTopicsSection,{limit:5})]})},e[7]=d,e[8]=r,e[9]=o,e[10]=s,e[11]=h,e[12]=t3):t3=e[12];let g=t3,v;e[13]===Symbol.for(`react.memo_cache_sentinel`)?(v={maxHeight:`calc(100vh - ${c}px)`,top:`${c}px`},e[13]=v):v=e[13];let y=v;if(u&&t){let n;e[14]===g?n=e[15]:(n=(0,Z.jsx)(g,{hideEngagingAsDropdown:!0,hideUnauthenticatedFeedBenefitsBanner:!0}),e[14]=g,e[15]=n);let i=!!r,a;return e[16]!==p||e[17]!==t||e[18]!==n||e[19]!==i||e[20]!==h?(a=(0,Z.jsx)(`div`,{className:jt,children:(0,Z.jsx)(`div`,{className:Mt,style:y,children:(0,Z.jsx)(`div`,{className:Nt,children:(0,Z.jsx)(Q.Suspense,{children:(0,Z.jsx)(TopicSidebarDetails,{defaultSidebarFallback:n,engagingAsDropdown:p,isAuthenticated:i,socialPostTagSlug:t,unauthenticatedFeedBenefitsBanner:h})})})})}),e[16]=p,e[17]=t,e[18]=n,e[19]=i,e[20]=h,e[21]=a):a=e[21],a}let b;return e[22]===g?b=e[23]:(b=(0,Z.jsx)(`div`,{className:jt,children:(0,Z.jsx)(`div`,{className:Mt,style:y,children:(0,Z.jsx)(`div`,{className:Nt,children:(0,Z.jsx)(g,{hideEngagingAsDropdown:!1,hideUnauthenticatedFeedBenefitsBanner:!1})})})}),e[22]=g,e[23]=b),b},Pt=t({Layout:()=>Layout}),Layout=e=>{let t=(0,$.c)(3),{children:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,Z.jsx)(CommunityPageRightSidebar,{}),t[0]=r):r=t[0];let i;return t[1]===n?i=t[2]:(i=(0,Z.jsx)(h,{noMarginOnTheBottom:!0,noMarginOnTheTop:!0,noMinHeight:!0,children:(0,Z.jsx)(je,{children:(0,Z.jsx)(ke,{children:(0,Z.jsx)(CommunityPageLayout,{rightSidebarSlot:r,children:n})})})}),t[1]=n,t[2]=i),i};export{gt as a,mt as c,useJoinChallenge as i,ChallengeLeaderboardCard as n,pt as o,useSocialPostTagShare as r,ht as s,Pt as t};
6//# sourceMappingURL=comm~m8jryury-BHYJjRMa.js.map
7//# debugId=de2c600c-b7b4-526b-b0ac-907e3666eb48

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.