1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="dc4ded5a-edd9-4f98-8f9e-58805b99a3e3",e._sentryDebugIdIdentifier="sentry-dbid-dc4ded5a-edd9-4f98-8f9e-58805b99a3e3")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[27296],{8282:(e,t,o)=>{"use strict";o.d(t,{$_:()=>D,$m:()=>Y,D8:()=>x,JU:()=>h,MB:()=>M,bK:()=>B,hL:()=>y,hj:()=>N,ro:()=>I});var r=o(464821),n=o(953308),a=o(753085),i=o(285749),l=o(571551),s=o(346693),c=o(271910),d=o(946456),u=o(376684);o(397109);var m=o(434124),g=o.n(m),p=o(563063);let h=({color:e,children:t,uppercase:o,borderRadius:n="8px",fontSize:a="9px",fontWeight:i,lineHeight:l,padding:s,backgroundColor:c,whiteSpace:d,textAlign:u,...m})=>(0,r.Y)(f,{color:e,uppercase:o,borderRadius:n,fontSize:a,backgroundColor:c,fontWeight:i,lineHeight:l,padding:s,whiteSpace:d,textAlign:u,suppressHydrationWarning:!0,...m,children:t}),f=(0,l.default)("span",{target:"eosh6cc0",label:"StyledLabelContainer"})("display:inline-block;padding:",e=>e.padding||`${e.theme.token.gap1x} ${e.theme.token.gap2x}`,";border-radius:",e=>e.borderRadius||e.theme.token.borderRadiusLG,";font-family:",e=>e.theme.fontFamily,";font-size:",e=>e.fontSize||e.theme.token.fontSizeSM2,";font-weight:",e=>e.fontWeight||e.theme.token.fontWeightBold,";line-height:",e=>e.lineHeight,";color:",e=>e.color||e.theme.colors.font.primary,";text-transform:",e=>e.uppercase?"uppercase":"inherit",";white-space:",e=>e.whiteSpace||"nowrap",";text-align:",e=>e.textAlign||"center",";letter-spacing:2%;background:",e=>e.backgroundColor?e.backgroundColor:(g()(e.color)||e.theme.colors.font.primary).setAlpha(.1).toRgbString(),";"),x=({backgroundColor:e,children:t})=>(0,r.Y)(b,{justifyContent:"center",alignItems:"center",backgroundColor:e,children:(0,r.Y)(u.A.StyledText,{name:"small/SM-4-B",color:"colorInfoWhite",children:t})}),b=(0,l.default)(u.A.FlexRowBox,{target:"eosh6cc1",label:"LiveLabelContainer"})(({theme:e})=>(0,a.css)("padding:",e.token.gap1x," ",e.token.gap2x,";","LiveLabelContainer")," \n background:var(--colorHighlight,linear-gradient(95deg,#F3A32B 3.36%,#F35B2B 97.98%));border-radius:",({theme:e})=>e.token.borderRadiusLG,";justify-content:center;align-items:center;"),y=({children:e})=>(0,r.FD)(k,{children:[(0,r.Y)(u.A.Icon,{src:(0,r.Y)(u.A.Icons.Live.EventMark,{}),size:10,color:"colorInfoWhite"}),(0,r.Y)(u.A.StyledText,{name:"small/SM-4-B",color:"colorInfoWhite",children:e})]}),k=(0,l.default)(u.A.FlexRowBox,{target:"eosh6cc2",label:"LiveAgendaLabelContainer"})(({theme:e})=>(0,a.css)("padding:",e.token.gap1x,";border-radius:",e.token.borderRadiusRound,";border:1px solid ",e.token.colorInfoWhite,";background:var(--colorHighlight,linear-gradient(95deg,#F3A32B 3.36%,#F35B2B 97.98%));","LiveAgendaLabelContainer")," gap:2px;"),M=({uppercase:e=!1,backgroundColor:t,padding:o})=>{let n=(0,i.u)(),{t:a}=(0,c.A)();return(0,r.Y)(f,{color:n.colors.font.orange,backgroundColor:t||n.colors.background.paleOrange,uppercase:e,borderRadius:n.token.borderRadiusLG,fontSize:n.token.fontSizeSM2,padding:o,children:a("common:labels.speaker")})},A=({type:e,backgroundColor:t,padding:o})=>{let n=(0,i.u)();return(0,r.Y)(f,{color:n.colors.font.primary,backgroundColor:t||n.colors.background.deepGray,borderRadius:n.token.borderRadiusLG,fontSize:n.token.fontSizeSM2,padding:o,children:(0,s.Qd)(e)})},S=({uppercase:e=!1,backgroundColor:t,padding:o})=>{let n=(0,i.u)(),{t:a}=(0,c.A)();return(0,r.Y)(f,{color:n.colors.font.blue,backgroundColor:t||n.colors.background.deepGray,uppercase:e,borderRadius:n.token.borderRadiusLG,padding:o,children:a("common:labels.attendee")})},w=({uppercase:e=!1,backgroundColor:t,padding:o})=>{let n=(0,i.u)(),{t:a}=(0,c.A)();return(0,r.Y)(f,{color:n.colors.font.purple,backgroundColor:t||n.colors.background.transparentPurple,uppercase:e,padding:o,children:a("common:labels.staff")})},I=({uppercase:e=!1,backgroundColor:t,padding:o})=>{let n=(0,i.u)(),{t:a}=(0,c.A)();return(0,r.Y)(f,{color:n.colors.font.purple,backgroundColor:t||n.colors.background.transparentPurple,uppercase:e,padding:o,children:a("common:sponsor.labels.host")})},C=({uppercase:e=!1,backgroundColor:t,padding:o})=>{let n=(0,i.u)(),{t:a}=(0,c.A)();return(0,r.Y)(f,{color:n.token.colorRed01,backgroundColor:t||`rgba(${n.token.colorRed01Rgb}, 0.1)`,uppercase:e,padding:o,children:a("common:labels.press")})},v=(0,l.default)("span",{target:"eosh6cc3",label:"MeLabelContainer"})("display:inline-block;",({theme:{token:e}})=>(0,a.css)` 2 padding: ${e.gap1x} ${e.gap2x}; 3 `," text-align:center;border-radius:",e=>e.borderRadius||e.theme.token.borderRadiusLG,";font-size:",e=>e.fontSize||e.theme.token.fontSizeSM4,";letter-spacing:0.5px;font-weight:",e=>e.theme.token.fontWeightBold,";line-height:",e=>e.theme.token.lineHeight,";color:",e=>e.color||e.theme.colors.font.primary,";text-transform:",e=>e.uppercase?"uppercase":"inherit",";white-space:nowrap;background:",e=>e.backgroundColor?e.backgroundColor:g()(e.color||e.theme.colors.font.primary).setAlpha(.1).toRgbString(),";"),Y=({uppercase:e=!1,backgroundColor:t,id:o})=>{let n=(0,i.u)(),{t:a}=(0,c.A)();return(0,r.Y)(v,{id:o,color:n.colors.font.primaryGreen,fontSize:n.token.fontSizeSM2,backgroundColor:t||g()(n.colors.background.lightGreen).setAlpha(.1).toRgbString(),uppercase:e,...(0,p.st)({"aria-label":a("common:labels.me_aria_label")}),children:a("common:labels.me")})},D=({attendeeType:e,uppercase:t,backgroundColor:o})=>{let n=(0,i.u)(),{t:a}=(0,c.A)();switch(e){case d.m9u.Press:return(0,r.Y)(C,{uppercase:t,backgroundColor:o});
3case d.m9u.Speaker:return(0,r.Y)(M,{uppercase:t,backgroundColor:o});case d.m9u.User:return(0,r.Y)(S,{uppercase:t,backgroundColor:o});case d.m9u.Staff:return(0,r.Y)(w,{uppercase:t,backgroundColor:o});case d.m9u.Host:return(0,r.Y)(I,{uppercase:t,backgroundColor:o});case d.m9u.PartnerSponsor:return(0,r.Y)(f,{color:n.colors.font.partnerSponsorLabelColor,backgroundColor:o||n.colors.background.partnerSponsorLabel,uppercase:t,children:a("common:labels.partner")});case d.m9u.DiamondSponsor:return(0,r.Y)(f,{color:n.colors.font.diamondSponsorLabelColor,backgroundColor:o||n.colors.background.diamondSponsorLabel,uppercase:t,children:a("common:labels.diamond_sponsor")});case d.m9u.GoldSponsor:return(0,r.Y)(f,{color:n.colors.font.goldSponsorLabelColor,backgroundColor:o||n.colors.background.goldSponsorLabel,uppercase:t,children:a("common:labels.gold_sponsor")});case d.m9u.SilverSponsor:return(0,r.Y)(f,{color:n.colors.font.silverSponsorLabelColor,backgroundColor:o||n.colors.background.silverSponsorLabel,uppercase:t,children:a("common:labels.silver_sponsor")});case d.m9u.Sponsor:return(0,r.Y)(f,{color:n.colors.font.diamondSponsorLabelColor,backgroundColor:o||n.colors.background.diamondSponsorLabel,uppercase:t,children:a("common:labels.sponsor")});case d.f14.Host:return(0,r.Y)(I,{uppercase:t,backgroundColor:o});case d.f14.Moderator:return(0,r.Y)(f,{color:n.colors.font.primaryGreen,backgroundColor:o||n.colors.background.deepGray,uppercase:t,children:a("common:labels.moderator")});default:return e?(0,r.Y)(A,{type:e,backgroundColor:o}):null}},z=(0,l.default)("span",{target:"eosh6cc4",label:"MessageCountLabelContainer"})("display:inline-block;padding:1.5px 6px;text-align:center;",({theme:{token:e}})=>(0,a.css)` 4 border-radius: ${e.borderRadiusLG}; 5 font-size: ${e.fontSizeSM4}; 6 `," letter-spacing:0.5px;font-weight:bold;color:",e=>e.color||e.theme.colors.font.primary,";text-transform:",e=>e.uppercase?"uppercase":"inherit",";background:",e=>e.backgroundColor?e.backgroundColor:(g()(e.color)||e.theme.colors.font.primary).setAlpha(.1).toRgbString(),";"),B=({count:e})=>{let t=(0,i.u)();return(0,r.Y)(z,{color:t.colors.font.white,backgroundColor:t.token.colorErrorSecondary,children:e})},N=({event:e,containerStyle:t})=>{let o=(0,i.u)(),{t:a}=(0,c.A)(),{displayEventType:l,isOnline:s,supportInPerson:d}=e??{};if(!l)return null;let{bgColor:m,bgOpacity:g,...h}=t||{bgColor:o.token.colorPrimary,bgOpacity:.2},f=(0,n.x9)(l,a);return(0,r.Y)(u.A.FlexBoxWithBackground,{className:"event-display-label",width:"fit-content",height:"25px",alignItems:"center",paddingLeft:"gap2x",paddingRight:"gap2x",borderRadius:o.token.borderRadiusSM,bgColor:m,bgOpacity:g,style:{fontSize:o.token.fontSizeSM1,fontWeight:o.token.fontWeightBold,color:o.token.colorPrimary,...h},children:(0,r.FD)(u.A.FlexRowBox,{gap:"gap2x",children:[(0,r.FD)(u.A.FlexRowBox,{alignItems:"center",style:{gap:"2px"},children:[d&&(0,r.Y)(u.A.Icons.Misc.Location,{width:14,height:14,...(0,p.st)({"aria-label":"Support in person logo"})}),(0,n.Ru)({displayEventType:l})&&(0,r.Y)("span",{children:"/"}),s&&(0,r.Y)(u.A.Icons.Misc.LivestreamOnline,{width:14,height:14,...(0,p.st)({"aria-label":"Livestream logo"})})]}),(0,r.Y)("span",{children:f.toUpperCase()})]})})}},30636:(e,t,o)=>{"use strict";o.d(t,{Az:()=>y,BS:()=>S,Sz:()=>A,_1:()=>x,_B:()=>I,dT:()=>k,iY:()=>f,os:()=>M,rR:()=>w,t$:()=>b});var r=o(516442),n=o(158421),a=o(588004),i=o(271910),l=o(902434),s=o(257036),c=o(945187),d=o(436535),u=o(946456),m=o(397109),g=o(649824),p=o(585591),h=o(49173);let f=()=>{let{isForumModerator:e}=(0,n.u)();return!!e},x=()=>{let{forumBoard:e}=(0,m.useContext)(p.f);return!!e?.isBoardModerator},b=()=>{let e=f(),t=x();return e||t},y=e=>{let{loginTenantUser:t}=(0,d.nS)();return e?.isAuthor||(0,a.Z)(e?.author?.id)&&(0,a.Z)(t?.id)&&e.author.id===t.id},k=()=>{let{forumSetting:e}=(0,g.N)();return e?.allowPostAuthorMarkAnswer!==!1},M=()=>{let{forumSetting:e}=(0,g.N)();return(0,h.g)(e=>e.enabledOverride)??e?.officialApprovalBadgeEnabled!==!1},A=()=>{let{t:e}=(0,i.A)(s.GY.FORUMS),{tenant:t}=(0,m.useContext)(c.I),{forumSetting:o}=(0,g.N)(),r=o?.officialApprovalBadgeName?.trim();return r||e("forums:official_approval.default_badge_name",{communityName:t?.name?.trim()||"Community"})},S=e=>{let{loginTenantUser:t}=(0,d.nS)();return e?.isAuthor||(0,a.Z)(e?.author?.id)&&(0,a.Z)(t?.id)&&e.author.id===t.id},w=e=>
6{let t=f(),o=x(),n=S(e),a=(0,l.t)(),i=e?.status===u._eg.Published,s=e?.status===u._eg.Deleted,c=e?.status===u._eg.InitialCheck,d=(0,r.sZ)(e),m=(0,r.uB)(e?.deleteReason),g=(0,r.G7)(e),p=t||o;if(c){let e=p&&d,t=p&&g,o=n&&!a;return{canEdit:n&&!a,canApprove:e,canDeleteByModerator:!o&&(e||t),canDeleteByAuthor:o,canDeleteAndSpam:e||t,canIgnoreReports:t,canReportIssue:!1,canRePublish:!1,canMarkAsSpam:!1}}if(!i)return{canEdit:!1,canApprove:!1,canDeleteByModerator:!1,canDeleteByAuthor:!1,canDeleteAndSpam:!1,canIgnoreReports:!1,canReportIssue:!1,canRePublish:p&&s,canMarkAsSpam:p&&s&&!m};let h=p&&!n;return{canEdit:n&&!a,canApprove:!1,canDeleteByModerator:h,canDeleteByAuthor:n&&!a&&!h,canDeleteAndSpam:p,canIgnoreReports:p&&g,canReportIssue:!p&&!n&&!a,canRePublish:!1,canMarkAsSpam:!1}},I=()=>{let{canAccessForum:e}=(0,g.N)(),t=(0,l.t)(),o=(0,l.A)();return{isLimitedApproval:t,isOnboardingNeeded:o,isForumActionable:e&&!t&&!o}}},49173:(e,t,o)=>{"use strict";o.d(t,{g:()=>r});let r=(0,o(217221).vt)(e=>({enabledOverride:null,setEnabledOverride:t=>e({enabledOverride:t})}))},59735:(e,t,o)=>{"use strict";o.d(t,{f:()=>a});var r=o(464821),n=o(20769);o(397109);let a=e=>{if(!e.src)return null;let t=e?.alt||e.displayName+" Badge";return(0,r.Y)(n.eu,{circle:!1,...e,alt:t})}},79346:(e,t,o)=>{"use strict";o.d(t,{y:()=>u});var r=o(464821),n=o(285749),a=o(571551),i=o(376684),l=o(397109),s=o(271910);let c=(0,a.default)(i.A.FlexRowBox,{target:"env4khr0",label:"ReadMoreButtonContainer"})("width:100%;cursor:pointer;:hover{> div{color:",e=>e.theme.token.colorPrimary,";}}"),d=({open:e,onClick:t})=>{let{t:o}=(0,s.l)();return(0,r.Y)(c,{justifyContent:"flex-start",onClick:t,children:(0,r.Y)(i.A.StyledText,{type:"success",whiteSpace:"nowrap",children:o(e?"actions.show_less_expanded":"actions.show_more_expanded")})})},u=({initialHeight:e,overhangSize:t=160,maxHeight:o=300,blurStyle:a={},switchButton:s=d,children:c})=>{let{token:u}=(0,n.u)(),p=(0,l.useRef)(null),[h,f]=(0,l.useState)({maxHeight:o,open:!1,hideReadMore:!1}),x=h.open?"100%":e+t;return(0,l.useEffect)(()=>{let o=p?.current;!h.hideReadMore&&o&&o.offsetHeight<e+t&&f(e=>({...e,open:!0,hideReadMore:!0}))},[c,e,t,h.hideReadMore]),(0,r.FD)(m,{ref:p,children:[(0,r.FD)(i.A.Box,{style:{width:"100%",maxHeight:x,position:"relative",overflow:"hidden"},children:[(0,r.Y)(i.A.Box,{children:c}),!h.hideReadMore&&(0,r.Y)(g,{style:{visibility:h.open?"hidden":"visible",height:`${t}px`,width:"100%",position:"absolute",bottom:"0",left:"0",background:`linear-gradient(rgba(0, 0, 0, 0.00) 0%, ${u.colorBgContainer} 100%)`,...a}})]}),!h.hideReadMore&&(0,r.Y)(s,{open:h.open,onClick:()=>{f(e=>({...e,open:!e.open}))}})]})},m=(0,a.default)("div",{target:"env4khr1",label:"Container"})("width:100%;box-sizing:border-box;display:flex;flex-direction:column;"),g=(0,a.default)(i.A.Box,{target:"env4khr2",label:"Mask"})("&:after{position:absolute;top:0;right:0;bottom:0;left:0;background:",e=>e.theme.token.colorBgContainer,";}")},84030:(e,t,o)=>{"use strict";o.d(t,{O:()=>a});var r=o(120312),n=o(754836);let a=(e,t)=>(0,r.A)(n.E4,[e,t]).join(" @ ")},90705:(e,t,o)=>{"use strict";o.d(t,{q:()=>w});var r=o(464821),n=o(170407),a=o(293102),i=o(488490),l=o(285749),s=o(571551),c=o(553076),d=o(271910),u=o(355980),m=o(376684),g=o(397109),p=o(299880),h=o(955241),f=o(528844),x=o(540455);let b=({containerProps:e,availableToRedeemClickable:t})=>{let{t:o}=(0,d.A)(),n=(0,l.u)(),a=(0,c.rd)(),{isLoggedIn:s}=(0,u.n)(),{withRedemption:b}=(0,h.d)(),{remainingPoints:k,refetchRedemptionPointsInfo:M}=(0,f.R)();return((0,g.useEffect)(()=>{M?.()},[M]),b&&s)?(0,r.FD)(m.A.FlexRowBox,{alignItems:"center",gap:{default:"gap2x",xs:"gap1x"},flexWrap:"wrap",...e,children:[(0,r.FD)(m.A.FlexRowBox,{alignItems:"center",style:{gap:"3px",color:t?n.token.colorPrimary:n.token.colorInfo,cursor:t?"pointer":"auto"},onClick:()=>{t&&a.push((0,i.mu)())},children:[(0,r.Y)(m.A.Icon,{style:{position:"relative",top:"-1px"},src:(0,r.Y)(x.V,{}),size:14}),(0,r.Y)(m.A.StyledText,{name:"base/BASE-L",children:`${new p.Q(k).format()} ${o("redemption.redeemable")}`})]}),(0,r.Y)(m.A.StyledText,{name:"base/BASE-L",color:"colorInfoSecondary",textDecoration:"underline",children:(0,r.Y)(y,{href:(0,i.NN)(),children:o("redemption.redemption_history")})})]}):null},y=(0,s.default)(a.w,{target:"ethp49c0",label:"StyledActiveLink"})("color:inherit;&:hover{color:inherit;}");var k=o(346693),M=o(427924),A=o(563063),S=o(801025);let w=({tenantUser:e,badgeSize:t=40})=>{let{t:o}=(0,d.A)(),{isMe:a}=(0,n.A)(e),{withContributor:l,isBadgeMode:s}=(0,M.b)(),c=(0,g.useMemo)(()=>(0,r.Y)(S.u,{tenantUser:e,max:7,triggerItemStyles:{size:t},containerStyles:{justifyContent:{default:"flex-start",xs:"center"}}}),[t,e]);return l?s?c:(0,r.FD)(m.A.FlexColumnBox,{gap:"gap4x",padding:"gap4x",borderRadius:"borderRadiusXL",background:"colorBgSurface",alignItems:{default:"flex-start",xs:"center"},justifyContent:"center",width:"100%",children:[(0,r.FD)(m.A.FlexRowBox,{gap:"gap1x",alignItems:"baseline",children:[(0,r.FD)(m.A.FlexRowBox,{alignItems:"baseline",style:{gap:4},children:[(0,r.Y)(m.A.Icon,{src:(0,r.Y)(x.V,{}),size:20}),(0,r.Y)(m.A.StyledText,{name:"large/LG-4-B",color:"colorInfo",children:(0,k.Jc)(e?.totalContributionPoints??0)})]}),(0,r.Y)(m.A.Tooltip,{content:o("contributors.user_info.points_tooltip"),children:(0,r.Y)(m.A.Box,{cursor:"pointer",alignItems:"flex-end",children:(0,r.Y)(I,{href:(0,i.ne)(),...(0,A.st)({focusStyle:["dis
6play-block-on-focus"],borderRadius:"borderRadiusRound","aria-label":o("contributors.user_info.points_tooltip")}),children:(0,r.Y)(m.A.Icon,{src:(0,r.Y)(m.A.Icons.Navbar.Help,{}),size:16})})})})]}),a&&(0,r.Y)(b,{availableToRedeemClickable:!0,containerProps:{justifyContent:{default:"flex-start",xs:"center"}}}),c]}):null},I=(0,s.default)(a.w,{target:"e1lllio0",label:"StyledLink"})("&:hover{color:",({theme:e})=>e.token.colorPrimary,";}")},94128:(e,t,o)=>{"use strict";o.d(t,{I:()=>s});var r=o(481431),n=o(945187),a=o(397109),i=o(401568),l=o(67719);let s=({email:e})=>{let{tenant:t}=(0,a.useContext)(n.I),[o,s]=(0,a.useState)(void 0);(0,a.useEffect)(()=>{t?.id&&(e?(0,i.O$)(t,e).then(e=>{s(e)}).catch(e=>{r.cb.notify(e)}):(0,i.Vj)(t).then(e=>{s(e)}).catch(e=>{r.cb.notify(e)}))},[t,e]);let{passwordlessAuthMethods:c,socialAuthMethods:d,ssoAuthMethods:u,withPasswordlessAuthMethod:m,withSocialAuthMethod:g,withSSOAuthMethod:p}=(0,a.useMemo)(()=>(0,l.TP)(o),[o]);return{authMethods:o,passwordlessAuthMethods:c,socialAuthMethods:d,ssoAuthMethods:u,withPasswordlessAuthMethod:m,withSocialAuthMethod:g,withSSOAuthMethod:p}}},107569:(e,t,o)=>{"use strict";o.d(t,{H:()=>u});var r=o(516442),n=o(765819),a=o(481431),i=o(271910),l=o(257036),s=o(945187),c=o(946456),d=o(397109);let u=({comment:e,onSuccess:t})=>{let{t:o}=(0,i.A)(l.GY.FORUMS),{tenant:u}=(0,d.useContext)(s.I),{getForumCommentsAcceptedAsAnswerByPost:m}=(0,d.useContext)(n.Z),[g,p]=(0,d.useState)(!1);return{reorderForumCommentAsFirstAnswer:(0,d.useCallback)(async()=>{if(!g){p(!0);try{let n=await a.Vs.mutate({mutation:c.hR,variables:{tenantId:u?.id,forumCommentId:e?.id}});if(!n?.data?.reorderForumCommentAsFirstAnswer)return void(0,r.fi)({type:"error",message:n?.errors?.[0]?.message||o("forums:accepted_answer.reorder_failed")});t?.(),m(),(0,r.fi)({type:"success",message:o("forums:accepted_answer.reorder_success")})}catch(t){a.cb.report(t,{metaData:{forumCommentId:e?.id}}),(0,r.fi)({type:"error",message:t?.message||o("forums:accepted_answer.reorder_failed")})}finally{p(!1)}}},[u?.id,e?.id,g,m,o]),loading:g}}},107958:(e,t,o)=>{"use strict";o.d(t,{H:()=>h});var r=o(464821),n=o(79346),a=o(571551),i=o(436535),l=o(946456),s=o(376684),c=o(397109),d=o(832101);let u=({className:e,style:t,skippable:o,onClose:n})=>(0,r.FD)(m,{className:e,style:t,children:[(0,r.Y)(g,{showLogo:!1}),o&&(0,r.Y)(p,{onClick:n})]}),m=(0,a.default)(s.A.FlexRowBox,{target:"e17ypr5e0",label:"LoginWidgetContainer"})("width:100%;position:relative;align-items:center;justify-content:center;background-color:",e=>e.theme.token.colorBgElevated,";border-radius:",e=>e.theme.token.borderRadiusLG,";& > div{max-width:calc(100% - 30px);}"),g=(0,a.default)(d.S,{target:"e17ypr5e1",label:"StyledLoginWidget"})("width:440px;padding:",e=>e.theme.token.gap5x," 0;text-align:center;max-width:100%;background-color:",e=>e.theme.token.colorBgElevated,";& > div{background-color:",e=>e.theme.token.colorBgElevated,";}"),p=(0,a.default)(s.A.Icons.Symbol.Close,{target:"e17ypr5e2",label:"CloseIcon"})("width:24px;height:24px;color:",e=>e.theme.token.colorInfo,";position:absolute;top:0;right:15px;cursor:pointer;"),h=({children:e,gatePolicy:t,customizedInitialHeight:o,customizedOverhangSize:a,onClose:s})=>{let[d,m]=(0,c.useState)(!t),[g,p]=(0,c.useState)(0),[h,x]=(0,c.useState)(!1),b=(0,c.useRef)(null),{loginUser:y}=(0,i.nS)(),k=t===l.Ved.Skippable,M=t===l.Ved.Enforced;(0,c.useEffect)(()=>{m(!t)},[t]),(0,c.useEffect)(()=>{if(b.current){let e=b.current.getBoundingClientRect().height;if(e<=320)return void x(!0);x(!1),p(Math.min(Math.max(Math.floor(.12*e),120),300))}},[e]);let A=(0,c.useCallback)(()=>(0,r.Y)(f,{children:(0,r.Y)(u,{skippable:k,onClose:()=>{m(!0),s?.()}})}),[k]);return d||y||h?(0,r.Y)("div",{ref:b,style:{userSelect:"auto",width:"100%"},children:e},`content-${t}`):(0,r.Y)(n.y,{initialHeight:o??g,overhangSize:a??300,switchButton:A,children:(0,r.Y)("div",{ref:b,style:{userSelect:M?"none":"auto",width:"100%"},children:e})},`content-${t}`)},f=(0,a.default)(s.A.Box,{target:"e1i11vah0",label:"WidgetContainer"})("width:100%;padding:",e=>e.theme.token.gap4x," 0;background:",e=>e.theme.token.colorBgElevated,";box-shadow:",e=>e.theme.token.shadowElevated,"!important;border-radius:",e=>e.theme.token.borderRadiusXL,";@media(max-width:768px){padding:",e=>e.theme.token.gap2x," 0;}position:relative;z-index:10;")},109441:(e,t,o)=>{"use strict";o.d(t,{x:()=>s});var r=o(158421),n=o(488490),a=o(346693),i=o(97130),l=o(397109);let s=()=>{let{isPublicPage:e}=(0,i.m)(),{club:t}=(0,r.u)(),o=(0,l.useCallback)(()=>t?(0,n.b6)({clubSlug:t?.slug,isPublic:e}):(0,n.M4)({isPublic:e}),[t,e]),s=(0,l.useCallback)(o=>
6{let r=(0,a.lm)(o?.name,o?.id);return(0,n.O9)({clubSlug:t?.slug,topicSlug:r,isPublic:e})},[t?.slug,e]),c=(0,l.useCallback)(({forumPost:t,forumBoard:o})=>{let r=o?.club?.slug||t?.forumBoard?.club?.slug,a=o?.slug||t?.forumBoard?.slug;return r?(0,n.b6)({clubSlug:r,isPublic:e}):(0,n.Ti)({boardSlug:a,isPublic:e})},[e]),d=(0,l.useCallback)(t=>{let o=t?.forumBoard?.club?.slug,r=t?.forumBoard?.slug,i=t?.slug||(0,a.lm)(t?.title,t?.nanoId);return(0,n.Pl)({clubSlug:o,boardSlug:r,postSlug:i,isPublic:e})},[e]),u=(0,l.useCallback)(e=>`${d(e)}/edit`,[d]),m=(0,l.useCallback)(()=>(0,n.KO)({clubSlug:t?.slug,isPublic:!1}),[t?.slug]),g=(0,l.useCallback)(e=>{let t=d(e);return(0,n.gS)(t,{focusCommentInput:!0})},[d]);return{getMainForumPath:o,getForumTagPath:s,getForumBoardPath:c,getForumPostPath:d,getForumPostEditPath:u,getForumPostCreatePath:m,getForumCommentSigninReturnTo:g}}},141887:(e,t,o)=>{"use strict";o.d(t,{L:()=>g});var r=o(946456),n=o(861364),a=o(323299),i=o(755219),l=o(897587),s=o(120038),c=o(669440),d=o(659991),u=o(397109),m=o(945187);let g=()=>{let{tenant:{forumSetting:e}}=(0,u.useContext)(m.I),t=(0,u.useMemo)(()=>n.A(e=>!!e.visible,e?.reactionSettings??[]),[e?.reactionSettings]),o=(0,u.useMemo)(()=>a.A("reactionType",t),[t]),g=(0,u.useMemo)(()=>a.A("reactionType",e?.reactionSettings??[]),[e?.reactionSettings]),p=(0,u.useMemo)(()=>e?.moreReactionEnabled&&!i.A(o,[r.L5S.Like]),[o,e?.moreReactionEnabled]),h=(0,u.useCallback)(e=>s.A([c.A(e=>d.A(e.reactionType,g))],e??[]),[g]);return{visibleReactions:t,moreReactionEnabled:e?.moreReactionEnabled,reactionSettings:e?.reactionSettings,visibleReactionTypes:o,hasAdditionalReactions:p,getSortedSummaryDetails:h,getReactionTypeSetting:t=>l.A(e=>e.reactionType===t,e?.reactionSettings??[]),displayReactors:e?.displayReactors}}},144548:(e,t,o)=>{"use strict";o.d(t,{D:()=>i});var r=o(946456),n=o(397109),a=o(938541);let i=e=>{let{enabled:t=!0,initialLimit:o=15,pageSize:i=10,sortBy:l=r.VYU.IssuedAt,sortOrder:s="DESC",statuses:c=[r.CFW.Issued,r.CFW.Expired]}=e??{}
6,[d,u]=(0,n.useState)([]),{data:m,totalCount:g,loading:p,getMyCertificatesQuery:h,called:f}=(0,a.I)({lazy:!1,enabled:t,initialParams:{offset:0,limit:o,sortBy:l,sortOrder:s,statuses:c}}),x=d.length>0?d:m,b=x.length<g,y=(0,n.useCallback)(async()=>{if(!b||p)return;let e=await h({offset:x.length,limit:i,sortBy:l,sortOrder:s,statuses:c});e&&u([...x,...e.items])},[b,p,h,x,i,l,s,c]);return{dataSource:x,totalCount:g,loading:p,loadMore:y,hasMore:b,refetch:(0,n.useCallback)(async()=>{u([]),await h({offset:0,limit:o,sortBy:l,sortOrder:s,statuses:c})},[h,o,l,s,c]),called:f}}},150015:(e,t,o)=>{"use strict";o.d(t,{g:()=>n,t:()=>a});var r=o(397109);let n=(0,r.createContext)(null),a=()=>(0,r.useContext)(n)},158421:(e,t,o)=>{"use strict";o.d(t,{qp:()=>n,u:()=>i,xO:()=>a});var r=o(397109);let n="912px",a=r.createContext({maxContentWidth:n}),i=()=>(0,r.useContext)(a)},170407:(e,t,o)=>{"use strict";o.d(t,{A:()=>i});var r=o(397109),n=o(488490),a=o(436535);let i=e=>{let{loginUser:t}=(0,a.nS)(),{userId:o,nanoId:i,displayName:l}=e??{},s=(0,r.useMemo)(()=>o&&o===t?.id,[o,t?.id]),c=(0,r.useMemo)(()=>o?s?(0,n.nK)():(0,n.R5)({userId:o,nanoId:i,displayName:l}):"",[s,o,i,l]);return{isMe:s,userProfilePageLink:c}}},173169:(e,t,o)=>{"use strict";o.d(t,{r:()=>l});var r=o(397109),n=o(988518);let a=` 7[tabindex]:not([tabindex^='-']), 8button:not([tabindex^='-']), 9[role='button']:not([tabindex^='-']), 10a:not([tabindex^='-']), 11[role='link']:not([tabindex^='-']), 12input:not([tabindex^='-']), 13select:not([tabindex^='-']), 14textarea:not([tabindex^='-'])`,i=(e,t=!1)=>Array.from(e.querySelectorAll(a)).filter(o=>!(!(o instanceof HTMLElement)&&!(o instanceof SVGElement)||(o instanceof HTMLButtonElement||o instanceof HTMLInputElement||o instanceof HTMLSelectElement||o instanceof HTMLTextAreaElement)&&o.disabled)&&((e,t,o=!1)=>{let r=e.getBoundingClientRect();if(0===r.width&&0===r.height)return!1;let n=window.getComputedStyle(e);if("none"===n.display||"hidden"===n.visibility||!o&&"0"===n.opacity)return!1;let a=e.parentElement;for(;a&&a!==t;){let e=window.getComputedStyle(a);if("none"===e.display||"hidden"===e.visibility||"0"===e.opacity&&!o)return!1;a=a.parentElement}return!0})(o,e,t)),l=(e={})=>{let{onBlur:t,disabled:o,restoreFocusOnBlur:a,delay:l=0,includeTransparentElements:s=!1}=e,c=(0,r.useRef)(null),d=(0,r.useRef)(null),u=(0,r.useRef)(null),m=(0,n.A)(t),g=(0,r.useCallback)(()=>{m.current?.(),u.current&&a&&setTimeout(()=>{u.current?.focus()},100)},[m,a]),p=(0,r.useCallback)((e,t=!1)=>{let o=i(e,s);if(0===o.length)return;let r=o.indexOf(document.activeElement);if(0===r&&1===o.length)return void g();let n=t?r-1:r+1;n<0?n=o.length-1:n>=o.length&&(n=0);let a=o[n];a&&a.focus()},[g,s]),h=(0,r.useCallback)(e=>{if(!e||o){d.current&&(d.current(),d.current=null),c.current=e;return}if(c.current===e)return;u.current=document.activeElement,c.current=e;let t=t=>{if(!o){if("Escape"===t.key){g(),t.preventDefault(),t.stopPropagation();return}"Tab"===t.key&&(p(e,t.shiftKey),t.preventDefault(),t.stopPropagation())}},r=()=>{let t=i(e,s);t.length>0&&t[0].focus()};e.addEventListener("keydown",t);let n=null;l?n=setTimeout(()=>{r()},l):r(),d.current=()=>{e.removeEventListener("keydown",t),n&&clearTimeout(n)}},[p,g,o,l]);return(0,r.useEffect)(()=>{if(o){d.current&&(d.current(),d.current=null);return}h(c.current)},[o,h]),h}},179308:(e,t,o)=>{"use strict";o.d(t,{X:()=>d});var r=o(464821),n=o(285749),a=o(571551),i=o(376684),l=o(20769),s=o(397109),c=o(853139);let d=({tenantUser:e,hoverable:t=!1,customAvatar:o,size:a=40,hideProfileBadge:d=!1,...g})=>{let p=(0,n.u)(),{profileBadge:h}=e??{},f=(0,s.useMemo)(()=>"number"==typeof a?a:parseInt(a,10),[a]),x=(0,s.useMemo)(()=>10*Math.sqrt(f/10),[f]),b=(0,s.useMemo)(()=>{let e=f-f/Math.sqrt(2)-x,t=e<-2?-2:Math.round(e);return{left:t,bottom:t}},[f,x]);return(0,r.FD)(u,{size:f,children:[o||(0,r.Y)(l.eu,{size:f,src:e?.pictureUrl,alt:e?.displayName,displayName:e?.displayName,...g}),!d&&h&&(0,r.Y)(m,{style:{left:b.left,bottom:b.bottom},children:t?(0,r.Y)(c.A,{on:["hover","focus"],arrow:!1,offsetY:8,position:["bottom center","center center"],repositionOnResize:!0,keepTooltipInside:!0,lockScroll:!0,nested:!0,contentStyle:{minWidth:220,padding:0,borderRadius:p.token.borderRadiusXL,border:0,boxShadow:p.token.shadowElevated,background:"transparent"},trigger:(0,r.Y)(i.A.Box,{onClick:e=>{e.stopPropagation()},children:(0,r.Y)(l.eu,{src:h.pictureUrl,alt:h.name,displayName:h.name,size:Math.round(x),circle:!1})}),children:(0,r.FD)(i.A.FlexColumnBox,{gap:"gap3x",background:"colorBgNudge",borderRadius:"borderRadiusXL",padding:"gap4x",alignItems:"center",maxWidth:"70vw",children:[(0,r.Y)(i.A.FlexBox,{width:120,height:120,children:(0,r.Y)(l.eu,{src:h.pictureUrl,size:120,circle:!1})}),(0,r.FD)(i.A.FlexColumnBox,{gap:"gap1x",alignItems:"center",width:"100%",children:[(0,r.Y)(i.A.StyledText,{name:"base/BASE-B",textAlign:"center",maxLines:2,wordBreak:"break-word",children:h?.name}),(0,r.Y)(i.A.StyledText,{name:"small/SM-2-L",color:"colorInfoSecondary",textAlign:"center",wordBreak:"break-word",children:h?.description})]})]})}):(0,r.Y)(l.eu,{src:h.pictureUrl,size:Math.round(x),circle:!1})})]})},u=(0,a.default)(i.A.FlexBox,{target:"eni5npg0",label:"AvatarWrapper"})("position:relative;width:",e=>`${e.size}px`,";height:",e=>`${e.size}px`,";overflow:visible;"),m=(0,a.default)(i.A.FlexBox,{target:"eni5npg1",label:"BadgeWrapper"})("position:absolute;overflow:hidden;")},189045:(e,t,o)=>{"use strict";o.d(t,{N:()=>x});var r=o(464821),n=o(481431),a=o(945187),i=o(946456),l=o(397109),s=o(849551),c=o(516442),d=o(837634),u=o(571551),m=o(271910),g=o(902434),p=o(436535),h=o(376684),f=o(150015);let x=({userId:e,displayName:t,firstName:o,isFollowing:u,onToggled:x,size:y="md",fullWidth:k=!1,mobileFullWidth:M=!1})=>{let{t:A}=(0,m.A)(),{isLoggedIn:S,loginUser:w}=(0,p.nS)(),I=(0,g.t)(),C=(0,g.A)(),{startOnboarding:v}=(0,p.Ty)(),[Y,D]=(0,l.useState)(!!u),{toggleFollow:z,loading:B}=(e=>{let{tenant:t}=(0,l.useContext)(a.I),[o,r]=(0,l.useState)(!1);return{toggleFollow:(0,l.useCallback)(async()=>
14{if(t?.id&&e){r(!0);try{let o=await n.Vs.mutate({mutation:i.AUD,variables:{tenantId:t.id,userId:e},fetchPolicy:"no-cache"});return o.data?.isFollowing??void 0}finally{r(!1)}}},[t?.id,e]),loading:o}})(e),N=(0,f.t)(),{lowerCase:T}=(0,d.sO)(),F=(0,l.useCallback)(async()=>{if(!e)return;if(C)return void v();let r=!Y;D(r);try{let r=await z();if("boolean"==typeof r){D(r),x?.(r),N?.onFollowToggled(e,r);let n=t??"",a=o?.trim()||n;(0,c.fi)({type:"success",message:r?A("follow_user.toast.followed",{displayName:n,firstName:a,forumName:T}):A("follow_user.toast.unfollowed",{displayName:n}),wrapLongContent:!0})}}catch(e){D(!r),(0,c.fi)({type:"error",message:e?.message||A("follow_user.toast.error")})}},[e,t,o,T,Y,C,v,z,x,N,A]);return!e||w?.id===e||S&&I?null:S?(0,r.Y)(b,{appearance:"default",ignoreCustomization:!0,size:y,onClick:F,disabled:B,loading:B,icon:Y?(0,r.Y)(h.A.Icon,{src:(0,r.Y)(h.A.Icons.Symbol.Check,{}),size:14}):void 0,$isFollowing:Y,$fullWidth:k,$mobileFullWidth:M,children:Y?A("follow_user.following"):A("follow_user.follow")}):(0,r.Y)(s.M,{returnTo:window.location.href,children:(0,r.Y)(b,{appearance:"default",ignoreCustomization:!0,size:y,$isFollowing:!1,$fullWidth:k,$mobileFullWidth:M,children:A("follow_user.follow")})})},b=(0,u.default)(h.A.Button,{target:"e1umhing0",label:"StyledFollowButton"})(({$fullWidth:e})=>e?"width: 100%;":"min-width: 96px;"," ",({$mobileFullWidth:e,theme:t})=>e&&` 15 @media (max-width: 576px) { 16 width: -webkit-fill-available; 17 margin: 0 ${t.token.gap8x}; 18 } 19 `," ",({theme:{token:e},$isFollowing:t})=>t&&` 20 && { 21 background: color-mix(in srgb, ${e.colorInfo} 10%, transparent); 22 border-color: transparent; 23 } 24 &&:hover:not(:disabled) { 25 background: color-mix(in srgb, ${e.colorInfo} 20%, transparent); 26 border-color: transparent; 27 } 28 `)},326378:(e,t,o)=>{"use strict";o.d(t,{F:()=>W});var r=o(464821),n=o(427924),a=o(376684),i=o(397109),l=o(798031),s=o(945187),c=o(946456),d=o(285749),u=o(486319),m=o(271910),g=o(20769),p=o(485617),h=o(941397),f=o(55027),x=o(914184),b=o(488490),y=o(481431),k=o(346693),M=o(46584),A=o(571551),S=o(837539);let w=i.memo(({roles:e})=>{let t=(0,d.u)();return(0,k.lH)(e)?null:e?.map(e=>(0,r.FD)(I,{children:[(0,r.Y)(a.A.Icons.Misc.Identity,{width:10,height:10,color:t.token.colorPrimary}),(0,r.Y)(a.A.StyledText,{name:"small/SM-4",color:"colorInfo",children:(0,S.upperCase)(e)})]},e))}),I=(0,A.default)(a.A.FlexRowBox,{target:"e116etv20",label:"StyledTag"})("align-items:center;justify-content:center;gap:",e=>e.theme.token.gap1x,";border:0;background:",e=>e.theme.token.colorBgBox,";border-radius:",e=>e.theme.token.borderRadiusRound,";padding:",e=>e.theme.token.gap1x," ",e=>e.theme.token.gap2x,";");var C=o(943751),v=o(170407),Y=o(563063);let D=({title:e,hasMore:t,loading:o,onLoadMore:n,children:i,inModal:l=!1,tenantUser:s})=>{let{t:c}=(0,m.A)(),{userProfilePageLink:d}=(0,v.A)(s);return(0,r.FD)(a.A.FlexColumnBox,{gap:"gap4x",paddingTop:"gap2x",children:[(0,r.Y)(a.A.StyledText,{name:{default:"large/LG-2-B"},color:"colorInfo",children:e}),i,t&&(0,r.Y)(a.A.FlexRowBox,{justifyContent:"center",children:l?(0,r.Y)(C.Ay,{href:d,target:"_blank",...(0,Y.st)({focusable:!1}),children:(0,r.Y)(a.A.Button,{appearance:"default",size:"md",icon:(0,r.Y)(a.A.Icons.Action.ExternalLink,{}),children:c("common:profiles.contributions.action.see_all_in_full_page")})}):(0,r.Y)(a.A.Button,{appearance:"default",size:"md",onClick:n,loading:o,children:c("common:profiles.contributions.action.load_more")})})]})},z=({initialData:e,tenantId:t,tenantUser:o,inModal:n=!1,hasLimitedData:l=!1})=>{let{t:s}=(0,m.A)(),[d,u]=i.useState([]),[g,x]=i.useState(!1),[b,{loading:M}]=(0,c.XSv)(),A=async()=>{let{data:e}=await b({variables:{tenantId:t,userId:o?.userId,skip:d.length,limit:10}}),r=p.A(h.A(f.A("groupId")),d||[],e?.contributions?.records||[]);u(r),x(r.length<(e?.contributions?.totalCount??0))};return(i.useEffect(()=>{e?.totalCount&&(u(e?.records??[]),x((e?.records??[])?.length<e?.totalCount))},[e]),(0,k.lH)(d)&&!l)?null:(0,r.FD)(D,{title:s("common:profiles.contributions.section.content"),hasMore:g,onLoadMore:()=>{A().catch(e=>y.cb.notify(e))},loading:M,inModal:n,tenantUser:o,children:[(0,r.Y)(a.A.GridCardsList,{grids:{default:{colsCount:1,colGap:"gap0x",rowGap:"gap4x"},"768px":{colsCount:2,colGap:"gap2x",rowGap:"gap2x"},"576px":{colsCount:1,colGap:"gap0x",rowGap:"gap2x"}},children:d?.map(e=>(0,r.Y)(B,{item:e},e.groupId))}),l&&(0,r.Y)(a.A.StyledText,{name:"small/SM-1",color:"colorInfoQuaternary",children:s("common:profiles.contributions.message.more_exclusive_content")})]})},B=({item:e})=>{let{t}=(0,m.A)(),{formatDate:o}=(0,M.NR)(),n=(0,d.u)(),{groupType:l,group:s,roleNames:p}=e,{blog:h,resource:f}=(0,u.B)(),y=(0,i.useMemo)(()=>l===c.Qyg.LvTenantVideo?t("common:profiles.contributions.category.video"):s?.category===c.o1S.Resource?f.aliasName:h.aliasName,[l,s,h.aliasName,f.aliasName,t]),A=(0,i.useMemo)(()=>
28{if(l===c.Qyg.LvTenantVideo)return(0,b.fV)({videoSlug:s?.slug,clubSlug:s.club?.slug});let{category:e,slug:t}=s;return e===c.o1S.Resource?(0,b.UI)({resourceSlug:t,clubSlug:s.club?.slug}):(0,b.oS)({blogSlug:s?.slug,clubSlug:s.club?.slug})},[l,s]);return(0,r.FD)(a.A.FlexBox,{flexDirection:{default:"row",sm:"column-reverse"},alignItems:"flex-start",justifyContent:{default:"space-between",sm:"flex-end"},padding:{default:n.token.gap4x,sm:n.token.gap3x},gap:"gap3x",borderRadius:"borderRadiusXL",backgroundColor:"colorBgSurface",cursor:"pointer",onClick:()=>{window.open(A,"_blank")},children:[(0,r.Y)(a.A.FlexBox,{flexDirection:{default:"row",sm:"row-reverse"},alignItems:"baseline",style:{gap:n.token.gap3x,flex:1},children:(0,r.FD)(a.A.FlexColumnBox,{gap:"gap2x",style:{flex:1},children:[(0,r.FD)(a.A.FlexRowBox,{alignItems:"center",gap:"gap2x",flexWrap:"wrap",children:[(0,r.Y)(a.A.StyledText,{name:"small/SM-2",color:"colorPrimary",children:y}),(0,r.Y)(w,{roles:p})]}),(0,r.Y)(a.A.StyledText,{name:"base/BASE-L",color:"colorInfo",style:{wordBreak:"break-word"},children:s?.title}),(0,r.Y)(a.A.StyledText,{name:"small/SM-1-L",color:"colorInfoSecondary",maxLines:2,children:s?.subTitle||s?.summary}),(0,r.Y)(a.A.StyledText,{name:"small/SM-1",color:"colorInfoTertiary",children:o(s?.publishedAt,M.ow.DateTime.MONTH_DAY_ORDINAL_YEAR)}),(0,k.Z4)(s?.tags)&&(0,r.Y)(a.A.FlexRowBox,{children:(0,r.Y)(x.A,{tags:s?.tags})})]})}),(0,r.Y)(a.A.FlexBox,{width:{default:"200px",sm:"100%"},children:(0,r.Y)(g.wF,{lazyload:!1,src:s?.coverUrl||s?.posterUrl,width:{default:200,sm:300,xs:500},style:{borderRadius:n.token.borderRadiusXL,width:"100%"}})})]})};var N=o(59735);let T=({initialData:e,tenantId:t,tenantUser:o,inModal:n=!1})=>{let{t:l}=(0,m.A)(),[s,d]=i.useState([]),[u,g]=i.useState(!1),[x,{loading:b}]=(0,c.dNF)(),M=async()=>{let{data:e}=await x({variables:{tenantId:t,userId:o?.userId,skip:s.length,limit:10}}),r=p.A(h.A(f.A("id")),s||[],e?.customContributions?.records||[]);d(r),g(r.length<(e?.customContributions?.totalCount??0))};return(i.useEffect(()=>{e?.totalCount&&(d(e?.records??[]),g((e?.records??[])?.length<e?.totalCount))},[e]),(0,k.lH)(s))?null:(0,r.Y)(D,{title:l("common:profiles.contributions.section.other"),hasMore:u,onLoadMore:()=>{M().catch(e=>y.cb.notify(e))},loading:b,inModal:n,tenantUser:o,children:(0,r.Y)(a.A.FlexColumnBox,{gap:"gap4x",children:s?.map(e=>(0,r.Y)(F,{item:e},e.id))})})},F=({item:e})=>{let{formatDate:t}=(0,M.NR)();return(0,r.FD)(a.A.FlexRowBox,{alignItems:"center",padding:"gap4x",gap:"gap3x",borderRadius:"borderRadiusXL",backgroundColor:"colorBgSurface",cursor:"pointer",children:[(0,r.Y)(N.f,{size:60,src:e.contributionRole?.contributorBadgeSetting?.pictureUrl,displayName:e.contributionRole?.contributorBadgeSetting?.name}),(0,r.FD)(a.A.FlexColumnBox,{gap:"gap1x",children:[(0,r.FD)(a.A.FlexRowBox,{alignItems:"center",gap:"gap2x",flexWrap:"wrap",children:[(0,r.Y)(a.A.StyledText,{name:"base/BASE",color:"colorInfo",style:{lineHeight:1.44},children:e?.contributionRole?.name}),(0,r.FD)(a.A.StyledText,{name:"base/BASE",color:"colorWarning",style:{lineHeight:1.44},...(0,Y.st)({"aria-label":`${e?.count}`}),children:["x",e?.count]})]}),(0,r.Y)(a.A.StyledText,{name:"small/SM-1",color:"colorInfoTertiary",style:{wordBreak:"break-word",lineHeight:1.57},children:t(e?.occurredAt,M.ow.DateTime.MONTH_DAY_ORDINAL_YEAR)})]})]})};var j=o(570835),L=o(953308);let E=i.memo(({date:e,color:t,monthTextColor:o,dayTextColor:n})=>{let{formatDate:i}=(0,M.NR)();return(0,r.FD)(a.A.FlexColumnBox,{flexShrink:0,width:"42px",style:{borderRadius:"5px",border:`1px solid ${t}`,boxSizing:"content-box",overflow:"hidden"},children:[(0,r.Y)(a.A.FlexBox,{alignItems:"center",justifyContent:"center",style:{height:15,background:t},children:(0,r.Y)(a.A.StyledText,{name:"small/SM-4-B",color:o||"colorBgContainer",style:{textAlign:"center"},children:i(e,M.ow.Date.MONTH_SHORT)})}),(0,r.Y)(a.A.FlexBox,{alignItems:"center",justifyContent:"center",style:{height:21},children:(0,r.Y)(a.A.StyledText,{name:"small/SM-3-B",color:n||"colorPrimary",style:{textAlign:"center"},children:i(e,M.ow.Date.DAY)})})]})}),R=({initialData:e,tenantId:t,tenantUser:o,inModal:n=!1,hasLimitedData:l=!1})=>{let{t:s}=(0,m.A)(),[d,u]=i.useState([]),[g,x]=i.useState(!1),[b,{loading:M}]=(0,c.IGC)(),A=async()=>{let{data:e}=await b({variables:{tenantId:t,userId:o?.userId,skip:d.length,limit:10,filters:{status:[c.Lhu.Live,c.Lhu.Upcoming]}}}
28),r=p.A(h.A(f.A("groupId")),d||[],e?.contributions?.records||[]);u(r),x(r.length<(e?.contributions?.totalCount??0))};return(i.useEffect(()=>{e?.totalCount&&(u(e?.records??[]),x((e?.records??[])?.length<e?.totalCount))},[e]),(0,k.lH)(d)&&!l)?null:(0,r.FD)(D,{title:s("common:profiles.contributions.section.live_events"),hasMore:g,onLoadMore:()=>{A().catch(e=>y.cb.notify(e))},inModal:n,tenantUser:o,loading:M,children:[(0,r.Y)(a.A.GridCardsList,{grids:{default:{colsCount:1,colGap:"gap0x",rowGap:"gap4x"},"768px":{colsCount:2,colGap:"gap2x",rowGap:"gap2x"},"576px":{colsCount:1,colGap:"gap0x",rowGap:"gap2x"}},children:d?.map(e=>(0,r.Y)(_,{item:e},e.groupId))}),l&&(0,r.Y)(a.A.StyledText,{name:"small/SM-1",color:"colorInfoQuaternary",children:s("common:profiles.contributions.message.more_exclusive_events")})]})},_=({item:e})=>{let{t,currentLocale:o}=(0,m.A)(),n=(0,d.u)(),{group:i,roleNames:l}=e;return(0,r.FD)(a.A.FlexBox,{flexDirection:{default:"row",sm:"column-reverse"},alignItems:"flex-start",justifyContent:{default:"space-between",sm:"flex-end"},padding:{default:n.token.gap4x,sm:n.token.gap3x},gap:"gap3x",borderRadius:"borderRadiusXL",backgroundColor:"colorBgSurface",cursor:"pointer",onClick:()=>void window.open((0,b.Ge)({eventSlug:i.slug,clubSlug:i.club?.slug}),"_blank"),children:[(0,r.FD)(a.A.FlexRowBox,{alignItems:"baseline",style:{gap:n.token.gap3x,width:"100%"},children:[(0,r.Y)(j.z,{minWidth:769,children:(0,r.Y)(E,{date:i?.startedAt,color:n.token.colorPrimary})}),(0,r.FD)(a.A.FlexColumnBox,{gap:"gap2x",flex:1,children:[(0,r.FD)(a.A.FlexRowBox,{alignItems:"center",gap:"gap2x",style:{flexWrap:"wrap"},children:[(0,r.Y)(a.A.StyledText,{name:"small/SM-2",color:"colorPrimary",children:(0,L.x9)(i?.displayEventType,t)}),(0,r.Y)(w,{roles:l})]}),(0,r.FD)(a.A.FlexRowBox,{alignItems:"center",justifyContent:"space-between",children:[(0,r.Y)(a.A.StyledText,{name:"base/BASE-L",color:"colorInfo",maxLines:2,style:{wordBreak:"break-word"},children:i?.name}),(0,r.Y)(j.z,{maxWidth:768,children:(0,r.Y)(E,{date:i?.startedAt,color:n.token.colorPrimary})})]}),(0,r.FD)(O,{children:[(0,r.Y)(a.A.Icons.Misc.TimeCircle,{width:18,height:18,style:{color:n.token.colorInfoQuaternary}}),(0,r.Y)(a.A.StyledText,{name:"small/SM-1",color:"colorInfoQuaternary",children:(0,L.AB)(i,o)})]}),i?.isOnline&&(0,r.FD)(O,{children:[(0,r.Y)(a.A.Icons.Misc.Online,{width:18,height:18,style:{color:n.token.colorInfoQuaternary}}),(0,r.Y)(a.A.StyledText,{name:"small/SM-1",color:"colorInfoQuaternary",children:t("common:profiles.contributions.label.online")})]})]})]}),(0,r.Y)(a.A.FlexBox,{width:{default:"280px",sm:"100%"},children:(0,r.Y)(g.wF,{lazyload:!1,width:{default:280,sm:300,xs:500},src:(0,L.c9)(i),style:{borderRadius:n.token.borderRadiusXL,width:"100%"}})})]})},O=(0,A.default)(a.A.FlexRowBox,{target:"e1mezkoq0",label:"EventInfo"})("gap:",e=>e.theme.token.gap1x,";align-items:center;@media (max-width:768px){font-size:12px;}");var U=o(293102);let P=({initialData:e,tenantId:t,tenantUser:o,inModal:n=!1,hasLimitedData:l=!1})=>{let{t:s}=(0,m.A)(),[d,u]=i.useState([]),[g,x]=i.useState(!1),[b,{loading:M}]=(0,c.IGC)(),A=async()=>{let{data:e}=await b({variables:{tenantId:t,userId:o?.userId,skip:d.length,limit:10,filters:{status:[c.Lhu.Past]}}}),r=p.A(h.A(f.A("groupId")),d||[],e?.contributions?.records||[]);u(r),x(r.length<(e?.contributions?.totalCount??0))};return(i.useEffect(()=>{e?.totalCount&&(u(e?.records??[]),x((e?.records??[])?.length<e?.totalCount))},[e]),(0,k.lH)(d)&&!l)?null:(0,r.FD)(D,{title:s("common:profiles.contributions.section.past_events"),hasMore:g,inModal:n,tenantUser:o,onLoadMore:()=>{A().catch(e=>y.cb.notify(e))},loading:M,children:[d?.map(e=>(0,r.Y)(Q,{item:e},e.groupId)),l&&(0,r.Y)(a.A.StyledText,{name:"small/SM-1",color:"colorInfoQuaternary",children:s("common:profiles.contributions.message.more_exclusive_events")})]})},Q=({item:e})=>{let t=(0,d.u)(),{groupId:o,group:n,roleNames:i}=e,{t:l}=(0,m.A)();return(0,r.Y)(U.w,{href:(0,b.Ge)({eventSlug:n?.slug,clubSlug:n?.club?.slug}),startNewSession:!0,children:(0,r.FD)(a.A.FlexRowBox,{alignItems:"flex-start",padding:"gap4x",gap:"gap3x",borderRadius:"borderRadiusXL",backgroundColor:"colorBgSurface",children:[(0,r.Y)(E,{date:n?.endedAt,color:t.token.colorBgBoxDisabled,monthTextColor:t.token.colorInfo,dayTextColor:t.token.colorInfo}),(0,r.FD)(a.A.FlexColumnBox,{gap:"gap2x",style:{flex:1},children:[(0,r.Y)(a.A.StyledText,{name:"base/BASE-L",color:"colorInfo",children:n?.name}),(0,r.FD)(a.A.FlexRowBox,{alignItems:"center",gap:"gap2x",style:{flexWrap:"wrap"},children:[(0,r.Y)(a.A.StyledText,{name:"small/SM-2",color:"colorInfoTertiary",children:(0,L.x9)(n?.displayEventType,l)}),(0,r.Y)(w,{roles:i})]})]})]})},o)},W=({tenantUser:e,inModal:t=!1})=>{let{tenant:{id:o}}=(0,i.useContext)(s.I),{showContributionActivity:d}=(0,n.b)(),u=(0,i.useMemo)(()=>t?4:10,[t]),{data:m,loading:g}=(0,c.w6v)({variables:{tenantId:o,userId:e?.userId,limit:u,skip:0}
28,skip:!e?.userId||!d,nextFetchPolicy:"cache-first"});return d?g?(0,r.Y)(a.A.FlexBox,{height:"100px",children:(0,r.Y)(l.X,{})}):(0,r.FD)(a.A.FlexColumnBox,{gap:"gap6x",children:[(0,r.Y)(R,{tenantUser:e,inModal:t,tenantId:o,initialData:m?.liveEventContributions,hasLimitedData:m?.existsLimitedLiveEventContributions}),(0,r.Y)(z,{tenantUser:e,inModal:t,tenantId:o,initialData:m?.contentContributions,hasLimitedData:m?.existsLimitedContentContributions}),(0,r.Y)(T,{tenantUser:e,inModal:t,tenantId:o,initialData:m?.customContributions}),(0,r.Y)(P,{tenantUser:e,inModal:t,tenantId:o,initialData:m?.pastEventContributions,hasLimitedData:m?.existsLimitedPastEventContributions})]}):null}},335972:(e,t,o)=>{"use strict";o.d(t,{J:()=>c});var r=o(464821),n=o(571551),a=o(257036),i=o(376684),l=o(20769),s=o(271910);let c=({title:e,subTitle:t,cancelButtonText:o,confirmButtonText:n,confirmButtonStyle:c,modalType:m="warning",isShow:g,loading:p,onCancel:h,onConfirm:f,...x})=>{let{t:b}=(0,s.l)(a.GY.FORUMS),y=o||b("modals.confirm.cancel_button"),k=n||b("modals.confirm.confirm_button");return(0,r.Y)(l.aF,{isShow:g,closable:!1,...x,children:(0,r.FD)(d,{children:[(0,r.FD)(i.A.FlexColumnBox,{gap:"gap1x",children:[(0,r.Y)(i.A.StyledText,{name:"large/LG-1-B",color:"colorInfo",textAlign:"center",wordBreak:"break-word",children:e}),(0,r.Y)(i.A.StyledText,{name:"small/SM-1-L",color:"colorInfoSecondary",textAlign:"center",wordBreak:"break-word",children:t})]}),(0,r.FD)(u,{children:[(0,r.Y)(i.A.Button,{appearance:"default",size:"lg",block:!0,onClick:h,children:y}),(0,r.Y)(i.A.Button,{appearance:"primary",size:"lg",danger:"info"!==m,style:c,loading:p,block:!0,onClick:f,ignoreCustomization:"info"!==m,children:k})]})]})})},d=(0,n.default)(i.A.FlexColumnBox,{target:"e2ryrw60",label:"Container"})("width:480px;padding:",e=>e.theme.token.gap6x," ",e=>e.theme.token.gap4x,";border-radius:",e=>e.theme.token.borderRadiusXL,";background:",e=>e.theme.token.colorBgElevated,";@media(max-width:768px){width:calc(100vw - 20px);}"),u=(0,n.default)(i.A.FlexRowBox,{target:"e2ryrw61",label:"ButtonsContainer"})("align-items:center;justify-content:center;gap:",e=>e.theme.token.gap4x,";margin-top:",e=>e.theme.token.gap4x,";")},355099:(e,t,o)=>{"use strict";o.d(t,{O:()=>r.O});var r=o(84030)},387597:(e,t,o)=>{"use strict";o.d(t,{V:()=>l});var r=o(464821),n=o(571551),a=o(376684),i=o(799527);let l=({value:e,forumBoards:t,onChange:o})=>(0,r.Y)(a.A.GridCardsList,{grids:{default:{colsCount:6,colGap:"gap2x",rowGap:"gap2x"}},children:t.map(t=>{let n=t.id===e;return(0,r.FD)(s,{isSelected:n,onClick:()=>o(t.id),children:[(0,r.Y)(i.Z,{forumBoard:t}),n&&(0,r.Y)(c,{children:(0,r.Y)(a.A.Icons.Symbol.Check,{width:14,height:14})})]},t.id)})}),s=(0,n.default)(a.A.Box,{target:"e1rcfc6r0",label:"ItemContainer"})("cursor:pointer;position:relative;&::after{content:'';display:",e=>e.isSelected?"block":"none",";width:calc(100% + 4px);height:calc(100% + 4px);box-sizing:border-box;border:2px solid ",e=>e.theme.token.colorInfo,";border-radius:",e=>e.theme.token.borderRadiusXL,";position:absolute;top:-2px;left:-2px;}&:hover::after{display:block;}"),c=(0,n.default)(a.A.FlexRowBox,{target:"e1rcfc6r1",label:"SelectedMarkContainer"})("align-items:center;justify-content:center;width:22px;height:22px;border:1px solid ",e=>e.theme.token.colorInfo,";border-radius:",e=>e.theme.token.borderRadiusRound,";background-color:",e=>e.theme.token.colorBgContainer,";color:",e=>e.theme.token.colorInfo,";position:absolute;top:",e=>e.theme.token.gap2x,";right:",e=>e.theme.token.gap2x,";")},391489:(e,t,o)=>{"use strict";o.d(t,{Fn:()=>a,_2:()=>i,jT:()=>n});var r=o(397109);let n=e=>({clubId:e.id,clubName:e.name,clubType:e.clubType,clubJoiningMode:e.joiningMode,clubAccess:e.access,isClubMember:e.isMember??!1}),a=(0,r.createContext)({isClubRestricted:!1,isInvitationOnly:!1,requireApplicationRequest:!1,createClubSourceErrorHandler:e=>e}),i=()=>(0,r.useContext)(a)},393586:(e,t,o)=>{"use strict";o.d(t,{QI:()=>Y,UF:()=>v,_0:()=>z,vQ:()=>D});var r=o(464821),n=o(819162),a=o(90705),i=o(798031),l=o(460755),s=o(956498),c=o(355099),d=o(488490),u=o(179308),m=o(32165),g=o(285749),p=o(571551),h=o(544146),f=o(352094),x=o(330145),b=o(436535),y=o(376684);o(397109);var k=o(444189),M=o(570835),A=o(780582),S=o(449065),w=o(982657),I=o(421994),C=o(326378);let v=15,Y=10,D=({tenantUser:e,blocked:t=!1,buttonGroups:o,isMe:c=!1,actionButton:d})=>{let p=(0,f.U)({minWidth:1440}),k=(0,g.u)(),{loginTenantUser:A}=(0,b.nS)(),{hasTenantFeature:I}
28=(0,m._K)(),{getUserDisplayName:D}=(0,x._)(),{hidePicture:B,hideLocation:R,hideBio:_}=(0,h.T)(),O=D(c?A:e),{dataSource:U,totalCount:P,loadMore:Q}=(0,n.w2)({userId:e?.userId,enabled:(e&&I(m.Uh.Course))??!1,initialLimit:v,pageSize:Y});if(!e)return(0,r.Y)(i.X,{});let W={avatarSrc:B?void 0:e.pictureUrl,avatarAlt:O,isOnline:e.isOnline,isBlocked:t,profileBadge:e.profileBadge,hoverable:!0};return(0,r.Y)(N,{justifyContent:"center",children:(0,r.FD)(F,{children:[(0,r.FD)(T,{children:[(0,r.Y)(M.z,{minWidth:1441,children:(0,r.FD)(y.A.FlexColumnBox,{alignItems:"center",width:"300px",gap:"gap6x",children:[(0,r.Y)(u.X,{tenantUser:e,size:160,hoverable:!0,customAvatar:(0,r.Y)(l.m,{...W,avatarSize:160,statusSignSize:24})}),(0,r.Y)(y.A.FlexBox,{width:"250px",children:d}),!_&&(0,r.Y)(S.x,{bio:e.positionSummary}),I(m.Uh.Course)&&(0,r.Y)(w.K,{dataSource:U,totalCount:P,loadMore:Q})]})}),(0,r.Y)(M.z,{maxWidth:1440,minWidth:769,children:(0,r.Y)(u.X,{tenantUser:e,size:144,hoverable:!0,customAvatar:(0,r.Y)(l.m,{...W,avatarSize:144,statusSignSize:24})})}),(0,r.Y)(M.z,{maxWidth:768,children:(0,r.Y)(u.X,{tenantUser:e,size:80,hoverable:!0,customAvatar:(0,r.Y)(l.m,{...W,avatarSize:80,statusSignSize:20})})})]}),(0,r.Y)(j,{justifyContent:"space-between",flex:1,gap:"gap2x",children:(0,r.FD)(y.A.FlexColumnBox,{flex:1,gap:"gap6x",children:[(0,r.FD)(L,{width:"100%",gap:"gap3x",children:[(0,r.FD)(E,{width:"100%",children:[(0,r.Y)(z,{tenantUser:e}),(0,r.Y)(M.z,{minWidth:577,children:o})]}),(0,r.Y)(a.q,{tenantUser:e,badgeSize:p?60:40}),(0,r.Y)(M.z,{maxWidth:1440,children:d}),(0,r.Y)(M.z,{maxWidth:576,children:o})]}),(0,r.Y)(y.A.Box,{paddingTop:"gap6x",style:{borderTop:`1px solid ${k.token.colorBorder}`},children:(0,r.Y)(s.u,{profileQuestionAnswers:e.profileQuestionAnswers||[],user:e,withLocation:!R,locationFirst:!0})}),(0,r.FD)(M.z,{maxWidth:1440,children:[!_&&(0,r.Y)(S.x,{bio:e.positionSummary}),I(m.Uh.Course)&&(0,r.Y)(w.K,{dataSource:U,totalCount:P,loadMore:Q})]}),(0,r.Y)(C.F,{tenantUser:e})]})})]})})},z=({tenantUser:e})=>{let{getUserDisplayName:t}=(0,x._)(),{hideLinkedIn:o}=(0,h.T)();return(0,r.FD)(R,{gap:"gap2x",children:[(0,r.FD)(y.A.FlexRowBox,{alignItems:"center",gap:"gap3x",children:[(0,r.Y)(y.A.StyledText,{name:"large/LG-2-B",color:"colorInfo",wordBreak:"break-word",textAlign:{default:"left",xs:"center"},children:t(e)}),!o&&e.linkedInUrl&&(0,r.Y)(B,{linkedInUrl:(0,d.Vk)(e.linkedInUrl),iconOnly:!0})]}),(0,r.Y)(I.p,{externalProfile:e.externalProfile,centerAligned:k.Fr}),(0,r.Y)(y.A.StyledText,{name:"small/SM-1-L",color:"colorInfoSecondary",wordBreak:"break-word",textAlign:{default:"left",xs:"center"},children:e?.headline??(0,c.O)(e.position,e.company?.name)})]})},B=(0,p.default)(A.b,{target:"evknk5m0",label:"StyledUILinkedInLink"})(".linkedin-icon-container{width:40px;height:40px;> svg{width:18px;height:18px;}}@media (max-width:1440px){.linkedin-icon-container{width:24px;height:24px;> svg{width:12px;height:12px;}}}"),N=(0,p.default)(y.A.FlexColumnBox,{target:"evknk5m1",label:"ContentContainer"})("align-items:flex-start;gap:",e=>e.theme.token.gap6x,";@media(max-width:1024px){flex-direction:column;gap:",e=>e.theme.token.gap10x,";}@media(max-width:768px){align-items:center;gap:",e=>e.theme.token.gap6x,";}"),T=(0,p.default)(y.A.FlexRowBox,{target:"evknk5m2",label:"UserAvatarContainer"})("justify-content:center;position:relative;width:300px;@media (max-width:1440px){width:200px;justify-content:flex-start;}@media (max-width:768px){width:100px;}@media (max-width:576px){justify-content:center;}"),F=(0,p.default)(y.A.FlexBox,{target:"evknk5m3",label:"UserProfileWrapper"})("flex-direction:row;gap:",e=>e.theme.token.gap10x,";width:100%;align-items:flex-start;@media (max-width:1440px){gap:",e=>e.theme.token.gap2x,";}@media (max-width:576px){flex-direction:column;align-items:center;}"),j=(0,p.default)(y.A.FlexBox,{target:"evknk5m4",label:"UserInfoContainer"})("width:100%;flex-direction:row;align-items:flex-start;@media (max-width:576px){flex-direction:column;align-items:center;}"),L=(0,p.default)(y.A.FlexColumnBox,{target:"evknk5m5",label:"UserInfoWrapper"})("align-items:flex-start;@media (max-width:576px){align-items:center;}"),E=(0,p.default)(y.A.FlexRowBox,{target:"evknk5m7",label:"UserBasicInfoContainer"})("justify-content:space-between;align-items:flex-start;@media (max-width:576px){justify-content:center;}"),R=(0,p.default)(y.A.FlexColumnBox,{target:"evknk5m8",label:"UserBasicInfoContent"})("align-items:flex-start;@media (max-width:576px){align-items:center;}")},399249:(e,t,o)=>{"use strict";o.d(t,{T:()=>a});var r=o(346693),n=o(120312);let a=e=>{if(!e)return"";let{displayLocation:t,city:o,state:a,country:i}=e;return t||(0,n.A)(r.lH,[o,a,i]).join(", ")}},421994:(e,t,o)=>{"use strict";o.d(t,{p:()=>m});var r=o(464821),n=o(285749),a=o(571551),i=o(346693),l=o(945187),s=o(946456),c=o(376684),d=o(397109),u=o(444189);let m=({externalProfile:e,centerAligned:t})=>{let{tenant:o}=(0,d.useContext)(l.I),a=(0,n.u)(),[m,h]=(0,d.useState)(!1),f=(0,d.useMemo)(()=>t?"center":void 0,[t]),x=(0,d.useCallback)(()=>{h(e=>!e)},[]);return(0,i.lH)(e)||o?.setting?.displayExternalProfile!==s.u7O.DisplayIdAndUrl?null:u.Fr?(0,r.FD)(c.A.FlexColumnBox,{alignItems:f,style:{textAlign:f,wordBreak:"break-word"},children:[(0,r.FD)(c.A.FlexRowBox,{onClick:x,alignItems:f,gap:"gap1x",children:[(0,r.Y)(g,{name:"small/SM-1-L",children:`@${e?.displayId}`}),(0,r.Y)(c.A.Icon,{src:(0,r.Y)(c.A.Icons.Symbol.ArrowNavDown,{}),size:12,color:"colorInfoSecondary",style:{transitionTimingFunction:" ease-in-out",transition:"transform 0.15s",transform:`rotate(${m?"180deg":"0
28deg"})`}})]}),m&&(0,i.Z4)(e?.profileUrl)&&(0,r.Y)(g,{name:"small/SM-1-L",children:e?.profileUrl})]}):(0,r.Y)(c.A.FlexRowBox,{children:(0,r.Y)(c.A.Tooltip,{position:["bottom left"],content:(0,i.Z4)(e?.profileUrl)&&(0,r.Y)(p,{name:"small/SM-2-L",whiteSpace:"normal",textAlign:"left",children:e?.profileUrl}),contentStyle:{zIndex:100,maxWidth:320,padding:a.token.gap2x,wordBreak:"break-word"},children:(0,r.Y)(c.A.Box,{marginTop:"gap1x",children:(0,r.Y)(g,{name:"small/SM-1-L",children:`@${e?.displayId}`})})})})},g=(0,a.default)(c.A.StyledText,{target:"ezqxhyy0",label:"DisplayIdText"})("color:",e=>e.theme.token.colorInfoSecondary,";"),p=(0,a.default)(c.A.StyledText,{target:"ezqxhyy1",label:"TooltipText"})("color:",e=>e.theme.token.colorInfoWhite,";")},433827:(e,t,o)=>{"use strict";o.d(t,{SE:()=>p,Wn:()=>h,yG:()=>f});var r=o(271910),n=o(946456),a=o(471816),i=o.n(a),l=o(631179),s=o.n(l),c=o(397109),d=o(413570),u=o(945187),m=o(436535),g=o(30636);let p=()=>{let{t:e}=(0,r.A)(),{tenant:t}=(0,c.useContext)(u.I),o=t?.forumSetting?.boardDisplayName||e("common:navigation.board");return{upperCase:s()(o),lowerCase:i()(o)}},h=({forumBoard:e})=>{let t=(0,g.iY)();return!e?.locked||t||!!e?.isBoardModerator},f=e=>{let{ignoreClubMode:t=!1,forModeration:o=!1}=e??{},{tenant:r}=(0,c.useContext)(u.I),{isForumInClubEnabled:a}=(0,d.u)(),{loginUser:i}=(0,m.nS)(),l=!r?.id||!t&&a,{data:s,loading:g}=(0,n.zlx)({variables:{tenantId:r?.id??""},skip:l});return{forumBoards:(0,c.useMemo)(()=>{let e=s?.forumBoards??[];return o?i?.isForumModerator?e:e.filter(e=>e.isBoardModerator):e},[o,s?.forumBoards,i?.isForumModerator]),loading:g}}},449065:(e,t,o)=>{"use strict";o.d(t,{x:()=>u});var r=o(464821),n=o(652379),a=o(917576),i=o(753085),l=o(571551),s=o(346693),c=o(330145),d=o(376684);o(397109);let u=({bio:e,size:t="default"})=>{let{bioSetting:o}=(0,c._)();return(0,s.lH)(e)||o.isHidden()?null:(0,r.FD)(m,{size:t,children:[(0,r.Y)(g,{name:"small/SM-1",size:t,children:o.getDisplayTitle()}),(0,r.Y)(p,{className:"markdown",children:e})]})},m=(0,l.default)(d.A.FlexColumnBox,{target:"eb0lqne0",label:"ProfileBioContainer"})(({theme:{token:e},size:t})=>(0,i.css)("padding:",e.gap4x,";border-radius:",e.borderRadiusXL,";background:",e.colorBgSurface,";width:100%;gap:","sm"===t?e.gap1x:e.gap2x,";@media (max-width:1200px){gap:",e.gap1x,";}.markdown{font-size:","sm"===t?e.fontSizeSM1:e.fontSize,";@media (max-width:1200px){font-size:",e.fontSizeSM1,";}}","ProfileBioContainer")),g=(0,l.default)(d.A.StyledText,{target:"eb0lqne1",label:"BioTitle"})("color:",e=>e.theme.token.colorInfo,";font-size:",e=>"sm"===e.size?e.theme.token.fontSizeSM1:e.theme.token.fontSizeLG2,";text-transform:capitalize;@media (max-width:1200px){font-size:",e=>e.theme.token.fontSizeSM1,";}"),p=(0,l.default)(n.w,{target:"eb0lqne2",label:"StyledMarkdown"})(a.d," color:",e=>e.theme.token.colorInfoSecondary,";line-height:",e=>e.theme.token.lineHeightLoose,";p{white-space:pre-wrap;margin:0;}")},451835:(e,t,o)=>{"use strict";o.d(t,{E:()=>h,c:()=>p});var r,n=o(464821),a=o(602748),i=o(897587),l=o(397109),s=o(444189),c=o(346693),d=o(945187),u=o(946456),m=o(387597),g=o(702860),p=((r={}).Dropdown="dropdown",r.Card="card",r);let h=({value:e,hasError:t,withAllBoards:o,communityForumBoardOnly:r,disabled:p,selectTheOnlyOneBoardByDefault:h=!0,view:f,selectStyle:x,onChange:b})=>{let{tenant:y}=(0,l.useContext)(d.I),{data:k}=(0,u.cP9)({variables:{tenantId:y.id,filter:{communityForumBoardOnly:r,includeUnlistedClubForumBoard:!1}}}),M=(0,l.useMemo)(()=>k?.forumBoards||[],[k]),A=!f&&M.length<=6&&!s.Fr||"card"===f;return((0,l.useEffect)(()=>{(0,c.Z4)(e)&&(0,c.Z4)(M)&&!a.A(t=>t?.id===e,M)&&b(void 0)},[e,M]),(0,l.useEffect)(()=>{h&&(0,c.lH)(e)&&1===M.length&&b(M[0].id,M[0])},[h,M,e]),A)?(0,n.Y)(m.V,{value:e,forumBoards:M,onChange:e=>b(e,i.A(t=>t.id===e,M))}):(0,n.Y)(g.K,{hasError:t,selectStyle:x,value:e,withAllBoards:o,disabled:p,forumBoards:M,onChange:e=>b(e,i.A(t=>t.id===e,M))})}},486319:(e,t,o)=>{"use strict";o.d(t,{B:()=>s});var r=o(271910),n=o(257036),a=o(945187),i=o(946456),l=o(397109);let s=()=>{let{t:e}=(0,r.l)(n.GY.COMMON),{tenant:t}=(0,l.useContext)(a.I),{tenantText:o}=t,s=(t,o)=>{let r=e(`content.types.${t.toLowerCase()}`),n=o??r;return{displayName:n,aliasName:o??e(`content.types.${t.toLowerCase()}_one`,{defaultValue:r}),pluralAliasName:o??e(`content.types.${t.toLowerCase()}_other`,{defaultValue:r})}};return{[i.o1S.Blog]:s(i.o1S.Blog,o?.blogAliasName),[i.o1S.Resource]:s(i.o1S.Resource,o?.resourceAliasName),[i.o1S.External]:s(i.o1S.External,o?.externalAliasName),[i.BnF.Video]:s(i.BnF.Video,o?.videoAliasName)}}},502317:e=>{e.exports="data:image/svg+xml;base64,PHN2ZwogIHdpZHRoPSc1MScKICBoZWlnaHQ9JzM5JwogIHZpZXdCb3g9JzAgMCA1MSAzOScKICBmaWxsPSdub25lJwogIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZycKPgogIDxwYXRoCiAgICBkPSdNMTIuMjUwMSAxNS44MDQzQzExLjY5MjYgMTUuODA0MyAxMS4xNTc2IDE1Ljg4OTMgMTAuNjI1MSAxNS45NjY4QzEwLjc5NzYgMTUuMzg2OCAxMC45NzUxIDE0Ljc5NjggMTEuMjYwMSAxNC4yNjY4QzExLjU0NTEgMTMuNDk2OCAxMS45OTAxIDEyLjgyOTMgMTIuNDMyNiAxMi4xNTY4QzEyLjgwMjYgMTEuNDI5MyAxMy40NTUxIDEwLjkzNjggMTMuOTM1MSAxMC4zMTQzQzE0LjQzNzYgOS43MDkyNyAxNS4xMjI2IDkuMzA2NzcgMTUuNjY1MSA4LjgwNDI3QzE2LjE5NzYgOC4yNzkyNyAxNi44OTUxIDguMDE2NzcgMTcuNDUwMSA3LjY0Njc3QzE4LjAzMDEgNy4zMTQyNyAxOC41MzUxIDYuOTQ2NzcgMTkuMDc1MSA2Ljc3MTc3TDIwLjQyMjYgNi4yMTY3N0wyMS42MDc2IDUuNzI0MjdMMjAuMzk1MSAwLjg3OTI3MkwxOC45MDI2IDEuMjM5MjdDMTguNDI1MSAxLjM1OTI3IDE3Ljg0MjYgMS40OTkyNyAxNy4xODAxIDEuNjY2NzdDMTYuNTAyNiAxLjc5MTc3IDE1Ljc4MDEgMi4xMzQyNyAxNC45NzUxIDIuNDQ2NzdDMTQuMTgwMSAyLjgwMTc3IDEzLjI2MDEgMy4wNDE3NyAxMi40MDUxIDMuNjExNzdDMTEuNTQ1MSA0LjE1Njc3IDEwLjU1MjYgNC42MTE3NyA5LjY3NzYyIDUuMzQxNzdDOC44MzAxMiA2LjA5NDI3IDcuODA3NjIgNi43NDY3NyA3LjA1MjYyIDcuNzA0MjdDNi4yMjc2MiA4LjU5OTI3IDUuNDEyNjIgOS41MzkyNyA0Ljc4MDEyIDEwLjYwOTNDNC4wNDc2MiAxMS42MjkzIDMuNTUwMTIgMTIuNzQ5MyAzLjAyNTEyIDEzLjg1NjhDMi41NTAxMiAxNC45NjQzIDIuMTY3NjIgMTYuMDk2OCAxLjg1NTEyIDE3LjE5NjhDMS4yNjI2MiAxOS40MDE4IDAuOTk3NjE5IDIxLjQ5NjggMC44OTUxMTkgMjMuMjg5M0MwLjgxMDExOSAyNS4wODQzIDAuODYwMTE5IDI2LjU3NjggMC45NjUxMTkgMjcuNjU2OEMxLjAwMjYyIDI4LjE2NjggMS4wNzI2MiAyOC42NjE4IDEuMTIyNjIgMjkuMDA0M0wxLjE4NTEyIDI5LjQyNDNMMS4yNTAxMiAyOS40MDkzQzEuNjk0NzcgMzEuNDg2MyAyLjcxODM4IDMzLjM5NTEgNC4yMDI1MyAzNC45MTQ3QzUuNjg2NjggMzYuNDM0MyA3LjU3MDcyIDM3LjUwMjcgOS42MzY3MiAzNy45OTYzQzExLjcwMjcgMzguNDg5OSAxMy44NjYyIDM4LjM4ODUgMTUuODc3IDM3LjcwMzlDMTcuODg3OCAzNy4wMTkyIDE5LjY2MzYgMzUuNzc5MyAyMC45OTkxIDM0LjEyNzVDMjIuMzM0NiAzMi40NzU3IDIzLjE3NTIgMzAuNDc5NiAyMy40MjM3IDI4LjM3QzIzLjY3MjEgMjYuMjYwNCAyMy4zMTgyIDI0LjEyMzcgMjIuNDAyOSAyMi4yMDY4QzIxLjQ4NzcgMjAuMjkgMjAuMDQ4NSAxOC42
28NzE0IDE4LjI1MTcgMTcuNTM4NEMxNi40NTUgMTYuNDA1NCAxNC4zNzQzIDE1LjgwNDEgMTIuMjUwMSAxNS44MDQzVjE1LjgwNDNaTTM5Ljc1MDEgMTUuODA0M0MzOS4xOTI2IDE1LjgwNDMgMzguNjU3NiAxNS44ODkzIDM4LjEyNTEgMTUuOTY2OEMzOC4yOTc2IDE1LjM4NjggMzguNDc1MSAxNC43OTY4IDM4Ljc2MDEgMTQuMjY2OEMzOS4wNDUxIDEzLjQ5NjggMzkuNDkwMSAxMi44MjkzIDM5LjkzMjYgMTIuMTU2OEM0MC4zMDI2IDExLjQyOTMgNDAuOTU1MSAxMC45MzY4IDQxLjQzNTEgMTAuMzE0M0M0MS45Mzc2IDkuNzA5MjcgNDIuNjIyNiA5LjMwNjc3IDQzLjE2NTEgOC44MDQyN0M0My42OTc2IDguMjc5MjcgNDQuMzk1MSA4LjAxNjc3IDQ0Ljk1MDEgNy42NDY3N0M0NS41MzAxIDcuMzE0MjcgNDYuMDM1MSA2Ljk0Njc3IDQ2LjU3NTEgNi43NzE3N0w0Ny45MjI2IDYuMjE2NzdMNDkuMTA3NiA1LjcyNDI3TDQ3Ljg5NTEgMC44NzkyNzJMNDYuNDAyNiAxLjIzOTI3QzQ1LjkyNTEgMS4zNTkyNyA0NS4zNDI2IDEuNDk5MjcgNDQuNjgwMSAxLjY2Njc3QzQ0LjAwMjYgMS43OTE3NyA0My4yODAxIDIuMTM0MjcgNDIuNDc1MSAyLjQ0Njc3QzQxLjY4MjYgMi44MDQyNyA0MC43NjAxIDMuMDQxNzcgMzkuOTA1MSAzLjYxNDI3QzM5LjA0NTEgNC4xNTkyNyAzOC4wNTI2IDQuNjE0MjcgMzcuMTc3NiA1LjM0NDI3QzM2LjMzMDEgNi4wOTY3NyAzNS4zMDc2IDYuNzQ5MjcgMzQuNTUyNiA3LjcwNDI3QzMzLjcyNzYgOC41OTkyNyAzMi45MTI2IDkuNTM5MjcgMzIuMjgwMSAxMC42MDkzQzMxLjU0NzYgMTEuNjI5MyAzMS4wNTAxIDEyLjc0OTMgMzAuNTI1MSAxMy44NTY4QzMwLjA1MDEgMTQuOTY0MyAyOS42Njc2IDE2LjA5NjggMjkuMzU1MSAxNy4xOTY4QzI4Ljc2MjYgMTkuNDAxOCAyOC40OTc2IDIxLjQ5NjggMjguMzk1MSAyMy4yODkzQzI4LjMxMDEgMjUuMDg0MyAyOC4zNjAxIDI2LjU3NjggMjguNDY1MSAyNy42NTY4QzI4LjUwMjYgMjguMTY2OCAyOC41NzI2IDI4LjY2MTggMjguNjIyNiAyOS4wMDQzTDI4LjY4NTEgMjkuNDI0M0wyOC43NTAxIDI5LjQwOTNDMjkuMTk0OCAzMS40ODYzIDMwLjIxODQgMzMuMzk1MSAzMS43MDI1IDM0LjkxNDdDMzMuMTg2NyAzNi40MzQzIDM1LjA3MDcgMzcuNTAyNyAzNy4xMzY3IDM3Ljk5NjNDMzkuMjAyNyAzOC40ODk5IDQxLjM2NjIgMzguMzg4NSA0My4zNzcgMzcuNzAzOUM0NS4zODc4IDM3LjAxOTIgNDcuMTYzNiAzNS43NzkzIDQ4LjQ5OTEgMzQuMTI3NUM0OS44MzQ2IDMyLjQ3NTcgNTAuNjc1MiAzMC40Nzk2IDUwLjkyMzcgMjguMzdDNTEuMTcyMSAyNi4yNjA0IDUwLjgxODIgMjQuMTIzNyA0OS45MDI5IDIyLjIwNjhDNDguOTg3NyAyMC4yOSA0Ny41NDg1IDE4LjY3MTQgNDUuNzUxNyAxNy41Mzg0QzQzLjk1NSAxNi40MDU0IDQxLjg3NDMgMTUuODA0MSAzOS43NTAxIDE1LjgwNDNWMTUuODA0M1onCiAgICBmaWxsPSdjdXJyZW50Q29sb3InCiAgLz4KPC9zdmc+"},531600:(e,t,o)=>{"use strict";o.d(t,{J:()=>l});var r=o(481431),n=o(945187),a=o(946456),i=o(397109);let l=()=>{let{tenant:e}=(0,i.useContext)(n.I),[t,o]=(0,i.useState)(!1);return{loading:t,getForumPost:(0,i.useCallback)(async({postSlug:t,boardSlug:n})=>{o(!0);let{data:i}=await r.Vs.query({query:a.vN5,variables:{tenantId:e?.id,slug:t,boardSlug:n}});return o(!1),i?.post},[e?.id])}}},544146:(e,t,o)=>{"use strict";o.d(t,{T:()=>n});var r=o(82274);let n=()=>{let{loading:e,error:t,pictureUrlSetting:o,locationSetting:n,linkedInUrlSetting:a,bioSetting:i}=(0,r.z)(r.n.Profile),l=!e&&!t;return{hidePicture:l&&o.isHidden(),hideLocation:l&&n.isHidden(),hideLinkedIn:l&&a.isHidden(),hideBio:l&&i.isHidden()}}},570835:(e,t,o)=>{"use strict";o.d(t,{z:()=>n});var r=o(352094);let n=({minWidth:e,maxWidth:t,children:o})=>(0,r.U)({minWidth:e,maxWidth:t})?o:null},584335:(e,t,o)=>{"use strict";o.d(t,{z:()=>h});var r=o(464821),n=o(802248),a=o(488490),i=o(571551),l=o(553076),s=o(346693),c=o(20769),d=o(714562),u=o.n(d),m=o(397109),g=o(832101);let p=new Set(["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End"]),h=({showModal:e,className:t,onClose:o,loginWidgetProps:n,closeIcon:i,returnTo:d,...g})=>{let h=(0,l.rd)(),b=h.query?.returnTo,[y,k]=(0,m.useState)(d??b);return(0,m.useEffect)(()=>k(e=>d||e||(0,s.bt)()),[d]),(0,r.Y)(c.aF,{className:u()(t,"login-btn-modal"),isShow:e,closable:!1,onClose:o,maskClosable:!0,forceRender:!0,...g,children:(0,r.Y)(f,{onKeyDown:e=>{p.has(e.key)&&e.stopPropagation()},children:(0,r.Y)(x,{returnTo:y?(0,a.gS)(y,h.query||{}):void 0,...n})})})},f=(0,i.default)("div",{target:"exjscl40",label:"KeyContainmentBoundary"})("display:contents;"),x=(0,i.default)(g.S,{target:"exjscl41",label:"StyledLoginWidget"})("background:",e=>e.theme.token.colorBgElevated,";border-radius:",e=>e.theme.token.borderRadiusLG,";width:min(500px,calc(100vw - 30px));max-height:min(800px,calc(var(--full-dvh) - 60px));min-height:400px;overflow-y:auto;& > div{background-color:",e=>e.theme.token.colorBgElevated,";}@media (max-width:800px){padding:",e=>e.theme.token.gap8x," ",e=>e.theme.token.gap3x,";}",n.u,"{max-height:calc(min(800px,var(--full-dvh) - 60px) - ",e=>e.theme.token.gap8x," * 2);}")},585591:(e,t,o)=>{"use strict";o.d(t,{f:()=>n,u:()=>a});var r=o(397109);let n=r.createContext({}),a=()=>(0,r.useContext)(n)},614790:(e,t,o)=>{"use strict";o.d(t,{A:()=>a});var r=o(397109),n=o(870855);let a=()=>{let e=(0,r.useContext)(n.Ay);return{getColor:(t="")=>{if(!t)return n.WJ[0];let o=e.get(t);return o||(o=n.WJ[e.size%n.WJ.length],e.set(t,o)),o}}}},640088:(e,t,o)=>{"use strict";o.d(t,{j:()=>c,k:()=>d});var r=o(464821),n=o(285749),a=o(571551),i=o(271910),l=o(376684);o(397109);var s=o(563063);let c=({color:e,size:t="18",...o})=>{let a=(0,n.u)();return(0,r.Y)(l.A.Icons.Misc.Invisible,{color:e||a.token.colorInfoTertiary,width:t,height:t,...o}
28)},d=({color:e,size:t,highlight:o=!0,...a})=>{let d=(0,n.u)(),{t:g}=(0,i.A)();return(0,r.FD)(l.A.FlexColumnBox,{gap:"gap2x",...a,children:[(0,r.Y)(u,{highlight:o}),(0,r.FD)(m,{marginBottom:a?.marginBottom||"gap4x",children:[(0,r.Y)(c,{color:o?d.token.colorWarning:e,size:t,...(0,s.st)({"aria-hidden":!0})}),(0,r.Y)(l.A.Box,{flex:1,style:{whiteSpace:"break-spaces"},children:(0,r.Y)(l.A.StyledText,{name:"small/SM-1",color:o?"colorWarning":"colorInfoTertiary",children:g("profiles.form.hint.private_questions")})})]})]})},u=(0,a.default)("div",{target:"e1wkkv2i0",label:"PrivateQuestionsDivider"})("height:1px;background-color:",e=>e.highlight?e.theme.token.colorWarning:e.theme.token.colorInfoTertiary,";margin-top:0px;"),m=(0,a.default)(l.A.FlexRowBox,{target:"e1wkkv2i1",label:"PrivateQuestionNoteBox"})("align-items:center;gap:",e=>e.theme.token.gap1x,";color:",e=>e.theme.colors.font.privateQuestionNoteColor,";")},650381:(e,t,o)=>{"use strict";o.d(t,{V:()=>c});var r=o(464821),n=o(481431),a=o(571551),i=o(553076),l=o(271910),s=o(376684);o(397109);let c=({buttonSize:e="md",onClick:t,width:o})=>{let a=(0,i.rd)(),{t:c}=(0,l.A)();return(0,r.Y)(d,{width:o,appearance:"primary",size:e,icon:(0,r.Y)(s.A.Icons.Action.Edit,{}),onClick:()=>{t?t():a.push({pathname:"/home/profile",query:{editing:!0}}).catch(e=>{n.cb.notify(e)})},children:c("common:profiles.button.edit_profile")})},d=(0,a.default)(s.A.Button,{target:"e19bbspl0",label:"ProfileButton"})("width:",e=>e.width??"250px",";max-width:100%;@media (max-width:1200px){width:200px;}@media (max-width:576px){height:40px;width:-webkit-fill-available;margin:0 ",e=>e.theme.token.gap8x,";}")},652379:(e,t,o)=>{"use strict";o.d(t,{w:()=>c});var r=o(464821),n=o(346693);o(397109);var a=o(340415),i=o(848466),l=o(270925);let s=()=>e=>{(0,l.YR)(e,"link",e=>{/^https?:\/\//.test(e.url)||(e.url="")})},c=({children:e,autoLink:t=!1,...o})=>"string"!=typeof e||(0,n.lH)(e)?null:(0,r.Y)(a.o,{remarkPlugins:t?[s,i.A]:void 0,components:{a:({children:e,...t})=>t.href?(0,r.Y)("a",{href:t.href,target:"_blank",rel:"noopener noreferrer",children:e}):(0,r.Y)(r.FK,{children:e}),img:({src:e,alt:t})=>e?(0,r.Y)("a",{href:e,target:"_blank",rel:"noopener noreferrer",children:t||e}):(0,r.Y)(r.FK,{children:t})},...o,children:e})},660966:(e,t,o)=>{"use strict";o.d(t,{E:()=>O});var r=o(464821),n=o(173169),a=o(285749),i=o(571551),l=o(397109);let s="focusin";var c=o(271910),d=o(376684),u=o(91070),m=o(504473),g=o(755854),p=o(20769),h=o(9568),f=o(481431),x=o(945187),b=o(946456),y=o(344379);let k=({tenantUser:e,blocked:t,onClose:o})=>{let{t:n}=(0,c.A)(),[a,i]=l.useState(!1),{tenant:s}=(0,l.useContext)(x.I),[u]=(0,l.useState)(t),[m]=(0,b.RGG)(),[g]=(0,b.s5c)(),{meetup:p}=(0,y.gE)(),h=async()=>{i(!0);try{u?await g({variables:{blockedId:e.userId,tenantId:s.id},refetchQueries:[b.C_A]}):await m({variables:{blockedId:e.userId,tenantId:s.id,meetupId:p?.id},refetchQueries:[b.C_A]})}catch(e){console.log("failed to block the user",e.name,e.message),f.cb.notify(e)}o(!0,!u),i(!1)};return(0,r.Y)(M,{children:(0,r.FD)(d.A.FlexColumnBox,{width:"100%",alignItems:"center",justifyContent:"center",gap:"gap4x",children:[(0,r.FD)(d.A.FlexColumnBox,{gap:"gap1x",style:{textAlign:"center"},children:[(0,r.Y)(d.A.StyledText,{name:"large/LG-2-B",color:"colorInfo",wordBreak:"break-word",children:n(u?"profiles.block_modal.title_unblock":"profiles.block_modal.title_block",{firstName:e.firstName})}),(0,r.Y)(d.A.StyledText,{name:"large/LG-1-L",color:"colorInfoSecondary",children:n(u?"profiles.block_modal.description_unblock":"profiles.block_modal.description_block")})]}),(0,r.Y)(d.A.Box,{width:"100%",children:(0,r.FD)(d.A.FlexRowBox,{justifyContent:"center",alignItems:"center",gap:"gap4x",children:[(0,r.Y)(d.A.Button,{appearance:"default",size:"lg",block:!0,onClick:()=>o(!1),children:n("buttons.cancel")}),(0,r.Y)(d.A.Button,{appearance:"primary",size:"lg",block:!0,onClick:async e=>{e.preventDefault(),e.stopPropagation(),a||await h()},children:n("buttons.yes")})]})})]})})},M=(0,i.default)(d.A.FlexColumnBox,{target:"e1cfodmk0",label:"Container"})("background:",e=>e.theme.token.colorBgElevated,";padding:",e=>e.theme.token.gap6x," ",e=>e.theme.token.gap4x,";border-radius:8px;max-height:calc(var(--full-vh) - 140px);",h.we);var A=o(882810);let S=({firstName:e,blocking:t})=>{let{t:o}=(0,c.A)();return(0,r.FD)(d.A.FlexRowBox,{alignItems:"flex-start",justifyContent:"center",maxWidth:"250px",gap:"gap2x",children:[(0,r.Y)(d.A.Box,{position:"relative",top:"1px",children:(0,r.Y)(d.A.Icon,{src:(0,r.Y)(d.A.Icons.Symbol.CheckRoundFill,{}),color:"colorSuccess",size:22})}),(0,r.Y)(d.A.StyledText,{name:"small/SM-1-L",wordBreak:"break-word",children:o(t?"profiles.notifications.blocked":"profiles.notifications.unblocked",{firstName:e})})]})},w=({onClose:e,onActionFinished:t,isShow:o,tenantUser:n,blocked:a})=>{let[i,s]=(0,l.useState)(!1);return(0,l.useEffect)(()=>s(o),[o]),(0,r.Y)(p.aF,{isShow:i,closable:!1,maskClosable:!1,destroyOnClose:!0,maskStyle:{zIndex:1e3},wrapStyle:{zIndex:1e3},children:(0,r.Y)(I,{children:(0,r.Y)(k,{onClose:(o,a)=>{o&&t&&(t(!!a),(({firstName:e,blocking:t})=>(0,A.Uy)((0,r.Y)(S,{firstName:e,blocking:t}),{closeButton:!0,containerId:"notification",position:"top-right"}))({firstName:n.firstName,blocking:!!a})),e()},tenantUser:n,blocked:a})})})},I=(0,i.default)(d.A.FlexColumnBox,{target:"e12wajea0",label:"InnerContainer"})("width:480px;max-width:100%;@media(max-width:576px){width:100%;}");var C=o(124709);let v=(0,l.forwardRef)(({onActionFinished:e,onLoad:t,tenantUser:o,render:n,clickable:a=!0},i)=>{let[s,c]=(0,C.A)(!1),{tenant:d}=(0,l.useContext)(x.I),{blocked:u,setBlocked:m,refetch:g}=(({userId:e,tenantId:t,onLoad:o})=>{let[r,n]=(0,l.useState)(!1),[a]=(0,b.g3A)(),i=(0,l.useCallback)(async()=>{await a({variables:{blockedId:e,tenantId:t},onCompleted:e=>{e?(o&&o(!!e.existsBlockedUserRecord),n(!!e.existsBlockedUserRecord)):f.cb.notify(Error("Blocking data not fetched"))},fetchPolicy:"cache-and-network"})},[a,e,t,o]);return(0,l.useEffect)(()=>{i()},[i]),{blocked:r,setBlocked:n,refetch:i}})({userId:o?.userId,tenantId:d.id,onLoad:t});return((0,l.useImperativeHandle)(i,()=>({refetch:g})),n)?a?(0,r.FD)(r.FK,{children:[(0,r.Y)(Y,{onClick:()=>c(!0),children:n(u)}),(0,r.Y)(w,{tenantUser:o,blocked:u,isShow:s,onActionFinished:t=>{m(e=>!e),e&&e(t)},onClose:()=>c(!1)})]}):n(u):null}),Y=(0,i.default)(d.A.FlexColumnBox,{target:"ed00zgc0",label:"ButtonWrapper"})("cursor:pointer;justify-content:center;"),D=()=>{let{t:e}=(0,c.A)();return(0,r.FD)(z,{maxWidth:"250px",gap:"gap2x",children:[(0,r.Y)(d.A.Box,{position:"relative",top:"1px",children:(0,r.Y)(d.A.Icon,{src:(0,r.Y)(d.A.Icons.Symbol.CheckRoundFill,{}),color:"colorSuccess",size:22})}),(0,r.Y)(d.A.StyledText,{name:"small/SM-1-L",wordBreak:"break-word",children:e("profiles.notifications.report_success")})]})},z=(0,i.default)(d.A.FlexRowBox,{target:"e14zl31w0",label:"StyledReportUserNotificationContainer"})("justify-content:center;align-items:flex-start;");var B=o(139705);let N=({meetupId:e,tenantUser:t,onClose:o})=>{let{t:n}=(0,c.A)(),i=(0,a.u)(),[s,u]=l.useState(""),[m,g]=l.useState(!1),[p,h]=l.useState(!0),[y,k]=l.useState(!1),{tenant:M}=(0,l.useContext)(x.I),[A]=(0,b.KxU)(),S=async()=>{try{await A({variables:{reportedId:t.userId,reportContent:s,tenantId:M.id,meetupId:e}})}catch(e){console.error("failed to report the user",e.name,e.message),f.cb.notify(e)}o(!0)};return(0,r.Y)(T,{children:(0,r.FD)(d.A.FlexColumnBox,{width:"100%",alignItems:"center",justifyContent:"center",paddingTop:"gap2x",children:[(0,r.Y)(d.A.StyledText,{name:"large/LG-2-B",color:"colorInfo",wordBreak:"break-word",style:{marginBottom:i.token.gap3x},children:n("profiles.report_modal.title",{firstName:t.firstName})}),(0,r.FD)(d.A.FlexColumnBox,{gap:"gap4x",children:[(0,r.FD)(d.A.StyledText,{name:"base/BASE-L",color:"colorInfoSecondary",children:[n("profiles.report_modal.description_intro"),(0,r.Y)(j,{target:"_blank",rel:"noopener noreferrer",href:M.codeOfConduct,children:M.codeOfConductDisplayName}),n("profiles.report_modal.description_connector"),(0,r.Y)(j,{target:"_blank",rel:"noopener noreferrer",href:B.yK,children:M.termsOfServiceDisplayName}),"."]}),(0,r.Y)(d.A.StyledText,{name:"base/BASE-L",color:"colorInfoSecondary",children:n("profiles.report_modal.instruction")})]}),(0,r.FD)(d.A.FlexColumnBox,{width:"100%",gap:"gap2x",marginTop:"gap3x",children:[(0,r.Y)(d.A.FlexColumnBox,{children:(0,r.Y)(F,{name:"bio",rows:6,value:s||void 0,placeholder:n("profiles.report_modal.placeholder"),onChange:({target:{value:e}})=>{k(!1),u(e),g(e.length>500),h(e.length<14||e.length>500)},notesWarning:m})}),(0,r.Y)(d.A.FlexColumnBox,{alignItems:"flex-end",width:"100%",children:(0,r.Y)(d.A.StyledText,{name:"small/SM-2",color:m?"colorError":"colorInfoQuaternary",children:n("profiles.report_modal.character_count",{count:s?.length?s.length:0})})})]}),(0,r.FD)(d.A.FlexRowBox,{marginTop:"gap4x",alignItems:"center",justifyContent:"center",gap:"gap4x",children:[(0,r.Y)(d.A.Button,{appearance:"default",size:"lg",onClick:()=>o(!1),children:n("buttons.cancel")}),(0,r.Y)(d.A.Button,{appearance:"primary",size:"lg",onClick:async()=>{k(!0),p||await S()},disabled:p||y,children:n("buttons.submit")})]})]})})},T=(0,i.default)(d.A.FlexColumnBox,{target:"e119uqew0",label:"Container"})("background:",e=>e.theme.token.colorBgElevated,";padding:",e=>e.theme.token.gap6x," ",e=>e.theme.token.gap4x,";border-radius:",e=>e.theme.token.borderRadiusXL,";max-height:calc(var(--full-vh) - 140px);",h.we),F=(0,i.default)("textarea",{target:"e119uqew1",label:"StyledInput"})("width:100%;font-size:",e=>e.theme.token.fontSize,";box-sizing:border-box;padding:",e=>e.theme.token.gap3x,";color:",e=>e.theme.token.colorInfo,";background:",e=>e.theme.token.colorBgBox,";border-radius:",e=>e.theme.token.borderRadiusMD,";outline:none;border:",e=>e.notesWarning?`1px solid ${e.theme.token.colorError}`:"none",";"),j=(0,i.default)("a",{target:"e119uqew2",label:"PolicyLink"})("color:",e=>e.theme.token.colorPrimary,";text-decoration:underline;"),L=({onClose:e,onReportFinished:t,isShow:o,tenantUser:n,meetupId:a})=>{let[i,s]=(0,l.useState)(!1);return(0,l.useEffect)(()=>s(o),[o]),(0,r.Y)(p.aF,{isShow:i,closable:!1,maskClosable:!1,destroyOnClose:!0,maskStyle:{zIndex:1e3},wrapStyle:{zIndex:1e3},children:(0,r.Y)(E,{children:(0,r.Y)(N,{onClose:o=>{o&&((0,A.Uy)((0,r.Y)(D,{}),{closeButton:!0,containerId:"notification",position:"top-right"}),t&&t()),e()},tenantUser:n,meetupId:a})})})},E=(0,i.default)(d.A.FlexColumnBox,{target:"e1b9wdxv0",label:"InnerContainer"})("width:640px;max-width:100%;@media(max-width:576px){width:100%;}"),R=({onClose:e,isShow:t,tenantUser:o,meetupId:n,onReportFinished:a})=>(0,r.Y)(L,{meetupId:n,tenantUser:o,isShow:t,onClose:e,onReportFinished:a});var _=o(563063);let O=(0,l.forwardRef)(({tenantUser:e,onLoad:t,onBlockUserFinished:o,onReportFinished:i},p)=>{var h;let{t:f}=(0,c.A)(),x=(0,a.u)(),[b,y]=(0,l.useState)(!1),[k,M]=(0,l.useState)(!1),[A,S]=(0,g.j)(e),w=(0,l.useRef)(null),I=(0,n.r)({disabled:!k,restoreFocusOnBlur:!0,onBlur:()=>{M(!1)}}),C=(0,l.useRef)(null);(0,m.A)(C,()=>{k&&M(!1)}),h=()=>{k&&M(!1)},(0,l.useEffect)(()=>{let e=e=>{!C?.current||C.current.contains(e.target)||h(e)};return document.addEventListener(s,e),()=>{document.removeEventListener(s,e)}},[C,h]);let Y=(0,u.debounce)((0,l.useCallback)(S,[S,A]),500,{leading:!0});return((0,l.useImperativeHandle)(p,()=>({refetch:async()=>w.current?.refetch()})),e?.archived)?null:(0,r.FD)(Q,{alignItems:"center",gap:"gap2x",children:[(0,r.FD)(U,{ref:C,id:"more-actions",children:[(0,r.Y)(W,{onClick:()=>M(!k),...(0,_.st)({role:"button","aria-label":f("aria_labels.more_actions"),"aria-haspopup":"menu","aria-expanded":k,focusStyle:["border-on-focus","no-outline-on-focus"]}),children:(0,r.Y)(d.A.Icons.Action.More,{width:18,height:18,color:"colorInfoSecondary"})}),(0,r.FD)(P,{ref:I,className:k?"active":"normal",...(0,_.st)({role:"dialog","aria-modal":!0}),children:[(0,r.Y)(d.A.FlexColumnBox,{justifyContent:"center",width:"100%",children:(0,r.Y)(v,{onLoad:t,tenantUser:e,onActionFinished:o,ref:w,render:e=>(0,r.Y)(G,{children:(0,r.FD)(d.A.FlexRowBox,{alignItems:"center",children:[(0,r.Y)(d.A.Box,{style:{padding:"12px"},children:e?(0,r.Y)(d.A.Icons.Action.Unblock,{width:16,height:16,color:x.token.colorInfoSecondary}):(0,r.Y)(d.A.Icons.Action.Block,{width:16,height:16,color:x.token.colorInfoSecondary})}),(0,r.Y)(H,{name:"small/SM-1",children:f(e?"profiles.actions.unblock":"profiles.actions.block")})]})})})}),(0,r.Y)(d.A.FlexColumnBox,{justifyContent:"center",children:(0,r.Y)(G,{onClick:()=>y(!0),children:(0,r.FD)(d.A.FlexRowBox,{alignItems:"center",children:[(0,r.Y)(d.A.Box,{style:{padding:"12px"},children:(0,r.Y)(d.A.Icons.Action.Report,{width:16,height:16,color:x.token.colorInfoSecondary})}),(0,r.Y)(H,{name:"small/SM-1",children:f("profiles.actions.report")})]})})})]})]}),(0,r.Y)(d.A.FlexColumnBox,{justifyContent:"center",children:(0,r.Y)(d.A.Tooltip,{content:f("profiles.actions.bookmark"),children:(0,r.Y)(W,{onClick:Y,...(0,_.st)({role:"button","aria-label":f("profiles.actions.bookmark"),"aria-pressed":A,focusStyle:["border-on-focus","no-outline-on-focus"]}),children:A?(0,r.Y)(d.A.Icons.Action.BookmarkFill,{width:18,height:18,color:"colorInfoSecondary"}):(0,r.Y)(d.A.Icons.Action.BookmarkOutline,{width:18,height:18,color:"colorInfoSecondary"})})})}),(0,r.Y)(R,{tenantUser:e,isShow:b,onClose:()=>y(!1),onReportFinished:i})]})}),U=(0,i.default)(d.A.FlexBox,{target:"e1wq9xal0",label:"Container"})("position:relative;"),P=(0,i.default)(d.A.FlexColumnBox,{target:"e1wq9xal1",label:"DropdownContainer"})("display:none;padding:",e=>e.theme.token.gap1x," 0;box-shadow:0px 0px 0px 1px rgba(0,0,0,0.00),0px 0px 0px 1px rgba(0,0,0,0.00),0px 241px 96px 0px rgba(0,0,0,0.02),0px 136px 81px 0px rgba(0,0,0,0.06),0px 60px 60px 0px rgba(0,0,0,0.10),0px 15px 33px 0px rgba(0,0,0,0.12);border-radius:5px;&.active{display:flex;background:",e=>e.theme.token.colorBgElevated,";backdrop-filter:blur(5px);
28display:flex;position:absolute;top:55px;right:-50px;bottom:0;width:200px;height:fit-content;z-index:30;@media (max-width:768px){right:-60px;width:160px;}}"),Q=(0,i.default)(d.A.FlexRowBox,{target:"e1wq9xal2",label:"ButtonsGroup"})("width:92px;justify-content:center;flex:none;@media (min-width:576px) and (max-width:1024px){justify-content:flex-start;}"),W=(0,i.default)(d.A.FlexRowBox,{target:"e1wq9xal3",label:"IconContainer"})("width:40px;height:40px;border-radius:",e=>e.theme.token.borderRadiusRound,";align-items:center;justify-content:center;background:",e=>e.theme.token.colorBgBox,";&:hover{background:",e=>e.theme.token.colorFillHover,";}"),G=(0,i.default)(d.A.FlexRowBox,{target:"e1wq9xal4",label:"DropdownButton"})("padding:0 ",e=>e.theme.token.gap1x,";&:hover{background-color:",e=>e.theme.token.colorFillHover,";}"),H=(0,i.default)(d.A.StyledText,{target:"e1wq9xal5",label:"StyledText"})("color:",e=>e.theme.token.colorInfo,";")},676062:e=>{e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAxOCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik00Ljc2ODggNi43MTM4N0gxMy4yMzEyQzE1LjU4ODYgNi43MTM4NyAxNy41IDguNTgzMDcgMTcuNSAxMC44ODg1VjE1LjgyNTRDMTcuNSAxOC4xMzA4IDE1LjU4ODYgMjAgMTMuMjMxMiAyMEg0Ljc2ODhDMi40MTEzNiAyMCAwLjUgMTguMTMwOCAwLjUgMTUuODI1NFYxMC44ODg1QzAuNSA4LjU4MzA3IDIuNDExMzYgNi43MTM4NyA0Ljc2ODggNi43MTM4N1pNOC45OTQ5MiAxNS4zMjk1QzkuNDkyODMgMTUuMzI5NSA5Ljg4OTEyIDE0Ljk0MTkgOS44ODkxMiAxNC40NTVWMTIuMjQ4OUM5Ljg4OTEyIDExLjc3MiA5LjQ5MjgzIDExLjM4NDQgOC45OTQ5MiAxMS4zODQ0QzguNTA3MTcgMTEuMzg0NCA4LjExMDg4IDExLjc3MiA4LjExMDg4IDEyLjI0ODlWMTQuNDU1QzguMTEwODggMTQuOTQxOSA4LjUwNzE3IDE1LjMyOTUgOC45OTQ5MiAxNS4zMjk1WiIgZmlsbD0id2hpdGUiLz4KPHBhdGggb3BhY2l0eT0iMC40IiBkPSJNMTQuNTIyNyA1LjM5NTk1VjYuODY2NjdDMTQuMTY3MSA2Ljc2NzMgMTMuNzkxMSA2LjcxNzYxIDEzLjQwNSA2LjcxNzYxSDEyLjc0NDVWNS4zOTU5NUMxMi43NDQ1IDMuMzc4NjggMTEuMDY3OSAxLjczOTAzIDkuMDA1MDkgMS43MzkwM0M2Ljk0MjMzIDEuNzM5MDMgNS4yNjU3IDMuMzY4NzQgNS4yNTU1NCA1LjM3NjA4VjYuNzE3NjFINC42MDUyMUM0LjIwODkxIDYuNzE3NjEgMy44MzI5NCA2Ljc2NzMgMy40NzcyOSA2Ljg3NjYxVjUuMzk1OTVDMy40ODc0NiAyLjQxNDc2IDUuOTU2NjcgMCA4Ljk4NDc3IDBDMTIuMDUzNSAwIDE0LjUyMjcgMi40MTQ3NiAxNC41MjI3IDUuMzk1OTVaIiBmaWxsPSJ3aGl0ZSIvPgo8L3N2Zz4K"},702860:(e,t,o)=>{"use strict";o.d(t,{K:()=>m});var r=o(464821),n=o(571551),a=o(271910),i=o(257036),l=o(20769),s=o(933248),c=o.n(s),d=o(8248),u=o(433827);let m=({value:e,forumBoards:t=[],withAllBoards:o,disabled:n,hasError:s,selectStyle:m,onChange:p})=>{let{t:h}=(0,a.A)(i.GY.FORUMS),f=(0,u.SE)(),x=d.A(e=>({label:e.title,value:e.id}),t);return o&&x.unshift({label:h("forums:board_select.all_boards",{boards:c()(f.lowerCase)}),value:""}),(0,r.Y)(g,{hasError:s,selectStyle:m,disabled:n,children:(0,r.Y)(l.D$.SingleSelect,{placeholder:h("board_select.placeholder"),value:e,disabled:n,options:x,onChange:p})})},g=(0,n.default)("div",{target:"e1k4klqd0",label:"Container"})(".rc-select-single:not(.rc-select-customize-input){border:1px solid ",e=>e.hasError?e.theme.token.colorErrorSecondary:e.theme.token.colorBorder," !important;background-color:transparent !important;.rc-select-selector .rc-select-selection-item{font-size:",e=>e.selectStyle?.fontSize||e.theme.token.fontSize," !important;font-weight:",e=>e.selectStyle?.fontWeight||e.theme.token.fontWeight," !important;line-height:",e=>e.theme.token.lineHeight," !important;color:",e=>e.selectStyle?.color||(e.disabled?e.theme.token.colorInfoQuaternary:e.theme.token.colorInfo)," !important;}}.rc-select-focused.rc-select{border:1px solid ",e=>e.hasError?e.theme.token.colorErrorSecondary:e.theme.token.colorInfoSecondary," !important;}.rc-select-disabled{> *{cursor:not-allowed !important;}.rc-select-selector{opacity:1;border:1px solid ",e=>e.theme.token.colorBgBox,";border-radius:",e=>e.theme.token.borderRadiusMD,";background-color:",e=>e.theme.token.colorBgBoxDisabled,";}.rc-select-arrow{svg{color:",e=>e.theme.token.colorInfoQuaternary," !important;}}}")},755854:(e,t,o)=>{"use strict";o.d(t,{j:()=>a});var r=o(946456),n=o(397109);let a=e=>
28{let[t,o]=(0,n.useState)(!!e?.bookmarked);(0,n.useEffect)(()=>{o(!!e?.bookmarked)},[e?.bookmarked]);let[a]=(0,r.VJs)(),[i]=(0,r.gRQ)(),l=(0,n.useCallback)(async()=>{if(!e)return;let r=t?i:a;o(!t);try{await r({variables:{bookmarkUserId:e.userId},update:o=>{try{o.modify({id:o.identify({__typename:"LVTenantUser",id:e.id}),fields:{bookmarked:()=>!t},broadcast:!1})}catch(e){console.error("failed to update user bookmark in cache",e.message)}}})}catch(e){console.error("failed to toggle user bookmark",e.message)}},[a,i,t,e]);return[t,l]}},765819:(e,t,o)=>{"use strict";o.d(t,{Z:()=>r});let r=o(397109).createContext({displayComments:[],forumCommentsAcceptedAsAnswerByPost:[],getForumCommentsAcceptedAsAnswerByPost:()=>{},refetchForumPost:()=>{},screenWidth:0})},768407:(e,t,o)=>{"use strict";o.d(t,{R:()=>B});var r=o(464821),n=o(542331),a=o(819162),i=o(90705),l=o(460755),s=o(780582),c=o(39120),d=o(179308),u=o(32165),m=o(393586),g=o(571551),p=o(553076),h=o(544146),f=o(793880),x=o(504886),b=o(271910),y=o(436535),k=o(376684),M=o(397109),A=o(444189),S=o(481431),w=o(189045),I=o(170407),C=o(570835),v=o(650381),Y=o(982657),D=o(660966),z=o(449065);let B=({profile:{pictureUrl:e,displayName:t,firstName:o,headline:c,linkedInUrl:g,userId:B,label:Q,isOnline:W=!1,positionSummary:G},tenantUser:H,meetup:q,inPopup:$=!1,onMessageButtonClicked:V,onReportFinished:Z,onBlockUserFinished:K,withMessageButton:X=!0,buttonGroups:J,children:ee})=>{let et=(0,p.rd)(),{t:eo}=(0,b.A)(),[er,en]=(0,M.useState)(!1),{loginUser:ea}=(0,y.nS)(),{isMe:ei}=(0,I.A)(H),{hidePicture:el,hideLinkedIn:es,hideBio:ec}=(0,h.T)(),{hasTenantFeature:ed}=(0,u._K)(),eu=X&&!!B&&B!==ea?.id&&H?.privateChatEnabled&&!H.archived,{state:em}=(0,n.su)(),eg=em.matches("meeting.connected"),{openMessageWithUserId:ep}=(0,x.$)(),{dataSource:eh,totalCount:ef,loadMore:ex}=(0,a.w2)({userId:B,enabled:ed(u.Uh.Course)??!1,initialLimit:m.UF,pageSize:m.QI}),eb=(0,M.useMemo)(()=>$||A.Fr?"80":"144",[$]),ey=(0,M.useMemo)(()=>$||A.Fr?20:24,[$]),ek=async()=>{await ep({userId:B,meetupSlug:q?.slug,meetupId:q?.id,scene:eg?f.i.Meeting:void 0}),V&&V()};return(0,r.FD)(k.A.FlexColumnBox,{gap:"gap6x",children:[(0,r.FD)(N,{children:[(0,r.Y)(L,{width:{default:$||A.Fr?"100px":"200px"},children:(0,r.FD)(k.A.FlexColumnBox,{alignItems:"center",gap:"gap2x",children:[(0,r.Y)(d.X,{tenantUser:H,size:eb,hoverable:!0,customAvatar:(0,r.Y)(l.m,{avatarSrc:el?void 0:e,avatarSize:eb,statusSignSize:ey,isOnline:W,isBlocked:er})}),Q&&(0,r.Y)(k.A.Box,{children:Q})]})}),(0,r.FD)(E,{justifyContent:"space-between",gap:"gap2x",flex:1,paddingBottom:Q?"gap8x":void 0,children:[(0,r.FD)(R,{gap:"gap3x",width:"100%",children:[(0,r.FD)(_,{width:"100%",children:[(0,r.FD)(O,{gap:"gap2x",flex:1,children:[(0,r.FD)(k.A.FlexRowBox,{alignItems:"center",gap:"gap2x",children:[(0,r.Y)(T,{name:"large/LG-2-B",children:t}),!es&&g&&(0,r.Y)(s.b,{linkedInUrl:g,iconOnly:!0,size:"24px"})]}),(0,r.Y)(F,{name:"small/SM-1-L",textAlign:{default:"left",xs:"center"},children:c})]}),(0,r.Y)(C.z,{minWidth:769,children:!ei&&H&&!H.archived&&(0,r.Y)(D.E,{tenantUser:H,onReportFinished:Z,onLoad:en,onBlockUserFinished:e=>{en(e),K&&K()}})})]}),H&&(0,r.Y)(i.q,{tenantUser:H,badgeSize:40}),(eu||!ei&&B&&!H?.archived)&&(0,r.FD)(P,{gap:"gap3x",children:[eu&&(0,r.Y)(U,{appearance:"primary",size:"md",onClick:ek,children:eo("common:buttons.message")}),(0,r.Y)(w.N,{userId:B,displayName:t,firstName:o,isFollowing:H?.isFollowing,mobileFullWidth:!0})]}),ei&&(0,r.Y)(v.V,{width:"200px",buttonSize:"md",onClick:()=>{if(q){let e={...et.query,editing:"true"};et.push({pathname:`/events/${q.slug}/profile`,query:e}).catch(e=>{S.cb.notify(e)});return}et.push({pathname:"/home/profile",query:{editing:!0}}).catch(e=>{S.cb.notify(e)})}})]}),(0,r.Y)(C.z,{maxWidth:768,children:!ei&&H&&!H.archived&&(0,r.Y)(D.E,{tenantUser:H,onReportFinished:Z,onLoad:en,onBlockUserFinished:e=>{en(e),K&&K()}})}),J]})]}),(0,r.Y)(j,{}),ee,!ec&&(0,r.Y)(z.x,{bio:G,size:"sm"}),ed(u.Uh.Course)&&(0,r.Y)(Y.K,{dataSource:eh,totalCount:ef,loadMore:ex,size:"sm"})]})},N=(0,g.default)(k.A.FlexBox,{target:"eczhm3k0",label:"BaseInfoContainer"})("flex-shrink:0;align-items:flex-start;justify-content:space-between;flex-direction:row;gap:",e=>e.theme.token.gap2x,";@media (max-width:768px){gap:",e=>e.theme.token.gap6x,";}@media (max-width:576px){flex-direction:column;width:100%;align-items:center;gap:",e=>e.theme.token.gap2x,";}"),T=(0,g.default)(k.A.StyledText,{target:"eczhm3k1",label:"StyledDisplayName"})("color:",e=>e.theme.token.colorInfo,";",c.M),F=(0,g.default)(k.A.StyledText,{target:"eczhm3k2",label:"StyledHeadline"})("color:",e=>e.theme.token.colorInfoSecondary,";",c.M),j=(0,g.default)(k.A.FlexBox,{target:"eczhm3k3",label:"Line"})("width:100%;height:1px;background:",e=>e.theme.token.colorBorder,";"),L=(0,g.default)(k.A.FlexRowBox,{target:"eczhm3k4",label:"UserAvatarContainer"})("justify-content:flex-start;@media (max-width:576px){justify-content:center;}"),E=(0,g.default)(k.A.FlexBox,{target:"eczhm3k5",label:"UserInfoContainer"})("width:100%;flex-direction:row;align-items:flex-start;margin:auto 0;@media (max-width:576px){flex-direction:column;align-items:center;}"),R=(0,g.default)(k.A.FlexColumnBox,{target:"eczhm3k6",label:"UserInfoWrapper"}
28)("align-items:flex-start;@media (max-width:576px){align-items:center;}"),_=(0,g.default)(k.A.FlexRowBox,{target:"eczhm3k7",label:"UserBasicInfoContainer"})("justify-content:space-between;align-items:flex-start;@media (max-width:576px){justify-content:center;}"),O=(0,g.default)(k.A.FlexColumnBox,{target:"eczhm3k8",label:"UserBasicInfo"})("align-items:flex-start;@media (max-width:576px){align-items:center;}.linkedin-icon-container{margin-right:",({theme:e})=>e.token.gap0x,"}"),U=(0,g.default)(k.A.Button,{target:"eczhm3k9",label:"StyledMessageButton"})("width:200px;@media (max-width:576px){width:-webkit-fill-available;margin:0 ",e=>e.theme.token.gap8x,";}"),P=(0,g.default)(k.A.FlexRowBox,{target:"eczhm3k10",label:"ActionButtonRow"})("align-items:center;flex-wrap:wrap;@media (max-width:576px){width:100%;justify-content:center;}")},770898:(e,t,o)=>{"use strict";o.d(t,{q:()=>l});var r=o(945187),n=o(283112),a=o(941044),i=o(397109);let l=()=>{let{tenant:{profileQuestionSettings:e=[]}}=(0,i.useContext)(r.I);return({records:t,questionIdField:o="questionId"})=>n.A(t=>{let r=String(a.A([o],t)),n=e.find(e=>String(e.questionId)===r);return n?.isPublicVisible??a.A(["isPublicVisible"],t)?"public":"private"},t)}},780582:(e,t,o)=>{"use strict";o.d(t,{b:()=>u});var r=o(464821),n=o(488490),a=o(571551),i=o(346693),l=o(376684),s=o(714562),c=o.n(s);o(397109);var d=o(563063);let u=({linkedInUrl:e,iconOnly:t=!1,text:o,className:a,size:s})=>(0,i.lH)(e)?null:(0,r.FD)(g,{className:c()(a,(0,d.st)({borderRadius:"borderRadiusRound"}).className),href:(0,n.Vk)(e),target:"_blank",...(0,d.st)({"aria-label":"See LinkedIn"}),children:[(0,r.Y)(m,{className:"linkedin-icon-container",size:s,children:(0,r.Y)(l.A.Icons.Social.LinkedIn,{width:12,height:12})}),!t&&(0,r.Y)(l.A.StyledText,{name:"small/SM-1-L",textDecoration:"underline",children:o||"LinkedIn profile"})]}),m=(0,a.default)(l.A.FlexRowBox,{target:"es6kbfa0",label:"LinkedInContainer"})("align-items:center;justify-content:center;width:",e=>e.size??"32px",";height:",e=>e.size??"32px",";margin-right:",e=>e.theme.token.gap1x,";margin-left:0;flex-shrink:0;border-radius:",e=>e.theme.token.borderRadiusRound,";border:1px solid ",e=>e.theme.token.colorInfo,";@media (max-width:1200px){width:24px;height:24px;}> svg{color:",e=>e.theme.token.colorInfo,";}"),g=(0,a.default)("a",{target:"es6kbfa1",label:"StyledLink"})("display:flex;flex-direction:row;align-items:center;width:fit-content;")},799527:(e,t,o)=>{"use strict";o.d(t,{Z:()=>g});var r=o(464821),n=o(285749),a=o(753085),i=o(571551),l=o(271910),s=o(257036),c=o(376684),d=o(601659),u=o(610026),m=o(293429);let g=({forumBoard:e,hideFollowingBadge:t})=>{let{t:o}=(0,l.A)(s.GY.FORUMS),a=(0,n.u)(),i=(0,m.t4)({src:e?.coverUrl||u.IF.DefaultForumBoardCover,width:400}),g=!t&&!!e.isFollowing;return(0,r.FD)(p,{children:[(0,r.Y)(h,{children:(0,r.Y)(d.Ay,{offset:1e3,once:!0,children:(0,r.Y)(y,{src:i,alt:"cover"})})}),g&&(0,r.Y)(c.A.Tooltip,{position:["bottom right"],offsetY:4,content:(0,r.Y)(c.A.StyledText,{name:"small/SM-2-L",color:"colorInfoWhite",children:o("forums:follow_board.badge_tooltip")}),contentStyle:{padding:`2px ${a.token.gap1x}`,background:a.token.colorBgSpotlight,borderRadius:a.token.borderRadiusSM},children:(0,r.Y)(k,{children:(0,r.Y)(c.A.Icon,{src:(0,r.Y)(c.A.Icons.Symbol.Check,{}),size:10,color:"colorInfoWhite"})})}),(0,r.FD)(f,{children:[(0,r.Y)(b,{name:"small/SM-2-B",color:"colorInfo",wordBreak:"break-word",maxLines:2,children:e.title}),(0,r.Y)(x,{coverUrl:i})]})]})},p=(0,i.default)("div",{target:"e1rlughv0",label:"BoardContainer"})("width:100%;aspect-ratio:1 / 1;border-radius:10px;background-color:",e=>e.theme.token.colorBgSurface,";position:relative;"),h=(0,i.default)(c.A.Box,{target:"e1rlughv1",label:"TopSection"})("width:100%;aspect-ratio:16 / 9;.lazyload-wrapper{width:100%;height:100%;}"),f=(0,i.default)(c.A.FlexRowBox,{target:"e1rlughv2",label:"TitleMask"})("align-items:center;width:100%;aspect-ratio:16 / 7;padding:",e=>e.theme.token.gap2x,";border-radius:0 0 10px 10px;position:relative;overflow:hidden;z-index:1;"),x=(0,i.default)(c.A.Box,{target:"e1rlughv3",label:"BlurBackgroun
28d"})("position:absolute;top:0;left:0;z-index:-1;width:100%;height:100%;background-image:",e=>e.coverUrl?`url(${e.coverUrl})`:void 0,";background-size:cover;filter:",e=>e.coverUrl?"blur(50px)":void 0,";border-bottom-left-radius:10px;border-bottom-right-radius:10px;"),b=(0,i.default)(c.A.StyledText,{target:"e1rlughv4",label:"Title"})("height:32px;"),y=(0,i.default)("img",{target:"e1rlughv5",label:"StyledImg"})("width:100%;height:100%;object-fit:cover;border-top-left-radius:10px;border-top-right-radius:10px;"),k=(0,i.default)("div",{target:"e1rlughv6",label:"FollowingBadge"})(({theme:{token:e}})=>(0,a.css)` 29 position: absolute; 30 top: 0; 31 right: 0; 32 width: ${e.gap5x}; 33 height: ${e.gap4x}; 34 display: flex; 35 align-items: center; 36 justify-content: center; 37 padding: ${e.gap1x} 0; 38 z-index: 2; 39 40 &::before { 41 content: ''; 42 position: absolute; 43 inset: 0; 44 background: ${e.colorBgBlurCollection}; 45 opacity: 0.5; 46 border-top-right-radius: 10px; 47 border-bottom-left-radius: 10px; 48 } 49 `)},801025:(e,t,o)=>{"use strict";o.d(t,{u:()=>B});var r=o(464821),n=o(285749),a=o(346693),i=o(271910),l=o(945187),s=o(427924),c=o(946456),d=o(376684),u=o(20769),m=o(91070),g=o(861364),p=o(357607),h=o(283112),f=o(120038),x=o(915232),b=o(397109),y=o(853139),k=o(563063),M=o(933248),A=o.n(M),S=o(59735);let w=({item:e,size:t=20,showCount:o=!1})=>{let n=o&&e?.count>1;return(0,r.FD)(d.A.FlexRowBox,{alignItems:"center",borderRadius:o?"borderRadiusRound":"0",style:{gap:3},...(0,k.st)(n?{"aria-label":`${e?.count} ${e?.countSource?.name} ${A()("Badge",e?.count)}`}:{}),children:[(0,r.Y)(S.f,{size:t,src:e?.countSource?.pictureUrl,displayName:e?.countSource?.name??"Badge"}),n&&(0,r.Y)(d.A.StyledText,{name:"small/SM-1-B",children:e?.count})]})},I=({item:e,size:t=60})=>(0,r.FD)(d.A.FlexRowBox,{alignItems:"center",style:{gap:10,cursor:"pointer"},...(0,k.st)({"aria-label":`${e?.countSource?.name} Badge`}),children:[(0,r.FD)(d.A.FlexRowBox,{alignItems:"center",children:[(0,r.Y)(S.f,{src:e?.countSource?.pictureUrl,size:t,displayName:e?.countSource?.name}),(0,r.Y)(d.A.FlexBox,{style:{marginInlineStart:-(t/2),paddingInlineStart:t/2,paddingTop:6,paddingBottom:6},background:"colorBgBox",borderRadius:"borderRadiusRound",children:(0,r.Y)(d.A.StyledText,{name:"small/SM-1",color:"colorInfo",maxLines:1,style:{padding:"0 15px 0 10px"},children:e?.countSource?.name})})]}),e?.count>1&&(0,r.Y)(d.A.StyledText,{name:"small/SM-1-B",color:"colorInfo",children:e?.count})]});var C=o(753085),v=o(571551);let Y=({badge:e,extra:t,containerStyles:o})=>(0,r.FD)(d.A.FlexColumnBox,{gap:"gap3x",background:"colorBgSurface",borderRadius:"borderRadiusXL",padding:"gap4x",alignItems:"center",maxWidth:"70vw",...o,children:[(0,r.Y)(d.A.FlexBox,{width:120,height:120,children:(0,r.Y)(S.f,{src:e.pictureUrl,size:120,displayName:e?.name??"Badge"})}),(0,r.FD)(d.A.FlexColumnBox,{gap:"gap1x",alignItems:"center",children:[(0,r.Y)(d.A.StyledText,{name:"base/BASE-B",maxLines:1,children:e?.name}),(0,r.Y)(d.A.StyledText,{name:"small/SM-2-L",color:"colorInfoSecondary",textAlign:"center",children:e?.description})]}),t]}),D=(0,v.default)(d.A.FlexBox,{target:"etyrq8a0",label:"StyledTab"})("position:relative;overflow:hidden;",({theme:e})=>(0,C.css)("padding:",e.token.gap1x," ",e.token.gap2x,";border-radius:",e.token.borderRadiusSM,";&::before{position:absolute;content:' ';width:100%;height:100%;left:0;top:0;background:",e.token.colorInfoSecondary,";opacity:0.1;}","StyledTab"));var z=o(540455);let B=({tenantUser:e,max:t,triggerItemType:o="default",triggerItemStyles:s,containerStyles:M,targetBadgeIds:A=[],addonBefore:S=null})=>{let{t:C}=(0,i.A)(),{tenant:v}=(0,b.useContext)(l.I),D=(0,n.u)(),[z,B]=(0,b.useState)(!1),{userId:T,contributionStatistics:F=[]}=e,j=(0,b.useMemo)(()=>(0,a.Z4)(A)?g.A(e=>p.A(e?.countSource?.id,A??[]),F):F,[F,A]),[L,E]=(0,b.useState)(t||(j?.length??0)),R=(0,b.useMemo)(()=>t?(j?.length??0)-L:0,[j?.length,L,t]),_="simple"===o,{data:O,loading:U}=(0,c.som)({variables:{tenantId:v?.id,userId:T,countType:c.RvB.Role},skip:!T||!z,fetchPolicy:"cache-first"}),P=(0,b.useMemo)(()=>h.A(e=>e?.countSource?.contributorBadgeSettingId,f.A([x.A(e=>e.countSource?.rank??""),x.A(e=>e.countSource?.point??"")],O?.tenantUser?.contributionStatistics??[])),[O?.tenantUser?.contributionStatistics]),Q=(0,b.useMemo)(()=>(0,m.debounce)(()=>B(!0),300),[]);if(!T||(0,a.lH)(j))return S;let W=j?.slice(0,L)||[];return(0,r.FD)(d.A.FlexRowBox,{rowGap:"gap2x",columnGap:_?"gap1x":"gap4x",alignItems:"center",flexWrap:"wrap",onMouseOver:Q,...(0,k.st)({"aria-describedby":["badgeLabel",...W.map(e=>e.id)].join(" ")}),...M,children:[(0,r.FD)("span",{id:"badgeLabel",className:"screen-reader-only",children:[C("profiles.badges.label")," "]}),S,W?.map(e=>(0,r.Y)(y.A,{on:["hover","focus"],arrow:!1,offsetY:8,position:["bottom center","top center"],repositionOnResize:!0,keepTooltipInside:!0,lockScroll:!0,nested:!0,contentStyle:{minWidth:250,width:"auto",padding:0,borderRadius:D.token.borderRadiusXL,border:0,boxShadow:D.token.shadowElevated,background:"transparent"},trigger:(0,r.Y)(d.A.Box,{id:e.id,onClick:e=>{e.stopPropagation()},...(0,k.st)({borderRadius:"borderRadiusRound",focusStyle:["outline-offset-2"],onKeyDown:!0,onKeyDownPreventDefault:!0}),children:_?(0,r.Y)(w,{item:e,...s},e.id):(0,r.Y)(I,{item:e,...s},e.id)}),children:(0,r.Y)(Y,{badge:e.countSource,containerStyles:{background:"colorBgElevated"},extra:(0,r.FD)(r.FK,{children:[(0,r.Y)(d.A.Box,{height:"1px",background:"colorBorder",width:"100%"}),(0,r.FD)(d.A.FlexColumnBox,{gap:"gap3x",width:"100%",children:[U&&(0,r.Y)(u.XD,{}),P?.[e?.countSource?.id]?.map(e=>(0,r.Y)(N,{contributionStatistic:e},e.id))]})]})})},e.id)),R>0&&(0,r.Y)(d.A.Box,{onClick:()=>E(F?.length??0),children:(0,r.Y)(d.A.Button,{children:C("profiles.actions.show_all_badges",{count:R})})})]})},N=({contributionStatistic:e})=>{let{t}=(0,i.A)(),{isPointsAndBadgeMode:o}=(0,s.b)(),n=e?.countSource?.point??0,l=e?.count>1?(0,a.Jc)(e?.count,t("profiles.badges.unit")):null;return(0,r.FD)(d.A.FlexRowBox,{gap:"gap1x",alignItems:"center",justifyContent:"space-between",children:[(0,r.Y)(D,{children:(0,r.FD)(d.A.StyledText,{name:"small/SM-3",color:"colorInfoSecondary",opacity:1,children:[e?.countSource?.name,o&&n>0&&(0,r.FD)(d.A.FlexRowBox,{alignItems:"center",style:{gap:1,display:"inline-flex"},children:[(0,r.Y)("span",{style:{opacity:.5},children:"("}),(0,r.Y)(d.A.Icon,{src:(0,r.Y)(z.V,{}),size:10,style:{display:"inline-flex"}}
49),(0,a.Jc)(n),(0,r.Y)("span",{style:{opacity:.5},children:")"})]})]})}),(0,r.Y)(d.A.StyledText,{color:"colorInfo",style:{fontSize:12,lineHeight:1.58},children:o&&n?`\xd7${e?.count}`:l})]})}},809838:e=>{e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTIiIGhlaWdodD0iODUiIHZpZXdCb3g9IjAgMCA1MiA4NSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iMiIgY3k9IjQyLjgwNDIiIHI9IjIiIGZpbGw9IiMzMzMzMzMiLz4KPGNpcmNsZSBjeD0iMjYiIGN5PSI0Mi44MDQyIiByPSIyIiBmaWxsPSIjMzMzMzMzIi8+CjxjaXJjbGUgY3g9IjUwIiBjeT0iNDIuODA0MiIgcj0iMiIgZmlsbD0iIzMzMzMzMyIvPgo8L3N2Zz4K"},819162:(e,t,o)=>{"use strict";o.d(t,{w2:()=>l}),o(205896),o(938541),o(144548);var r=o(481431),n=o(945187),a=o(946456),i=o(397109);let l=e=>{let{userId:t,enabled:o=!0,initialLimit:l=15,pageSize:s=10,sortBy:c=a.VYU.IssuedAt,sortOrder:d="DESC",statuses:u=[a.CFW.Issued,a.CFW.Expired]}=e??{},[m,g]=(0,i.useState)([]);(0,i.useEffect)(()=>{g([])},[t]);let{data:p,totalCount:h,loading:f,getUserCertificatesQuery:x,called:b}=(e=>{let{userId:t,lazy:o=!1,initialParams:l={},enabled:s=!0}=e??{},{tenant:c}=(0,i.useContext)(n.I),[d,u]=(0,i.useState)(!o),[m,g]=(0,i.useState)([]),[p,h]=(0,i.useState)(0),[f,x]=(0,i.useState)(null),[b,y]=(0,i.useState)(!1),k=(0,i.useRef)(l),M=(0,i.useCallback)(async({statuses:e=[a.CFW.Issued,a.CFW.Expired],offset:o=0,limit:n=20,sortBy:i=a.VYU.IssuedAt,sortOrder:l="DESC"})=>{if(k.current={statuses:e,offset:o,limit:n,sortBy:i,sortOrder:l},y(!0),!c?.id||!t)return null;try{u(!0),x(null);let{data:s}=await r.Vs.query({query:a.LfN,variables:{tenantId:c.id,userId:t,statuses:e,offset:o,limit:n,sortBy:i,sortOrder:l},fetchPolicy:"no-cache"}),d={items:s?.userCertificates?.items??[],totalCount:s?.userCertificates?.totalCount??0};return g(d.items),h(d.totalCount),d}catch(s){let a=s instanceof Error?s:Error(String(s));return x(a),console.error(a),r.cb.notify(a,{metaData:{tenantId:c?.id,userId:t,statuses:e,offset:o,limit:n,sortBy:i,sortOrder:l}}),null}finally{u(!1)}},[c?.id,t]),A=(0,i.useCallback)(async e=>{let t=e??k.current;return k.current=t,M(t)},[M]);return(0,i.useEffect)(()=>{!o&&c?.id&&t&&s&&M(k.current)},[o,c?.id,t,M,s]),{getUserCertificatesQuery:M,refetch:A,data:m,totalCount:p,loading:d,error:f,called:b}})({userId:t,lazy:!1,enabled:o&&!!t,initialParams:{offset:0,limit:l,sortBy:c,sortOrder:d,statuses:u}}),y=m.length>0?m:p,k=y.length<h,M=(0,i.useCallback)(async()=>{if(!k||f)return;let e=await x({offset:y.length,limit:s,sortBy:c,sortOrder:d,statuses:u});e&&g([...y,...e.items])},[k,f,x,y,s,c,d,u]);return{dataSource:y,totalCount:h,loading:f,loadMore:M,hasMore:k,refetch:(0,i.useCallback)(async()=>{g([]),await x({offset:0,limit:l,sortBy:c,sortOrder:d,statuses:u})},[x,l,c,d,u]),called:b}};o(663254)},832101:(e,t,o)=>{"use strict";o.d(t,{S:()=>L});var r,n=o(464821),a=o(1603),i=o(488490),l=o(923168),s=o(553076),c=o(94128),d=o(271910),u=o(239710),m=o(397109),g=o(595807),p=o(896711),h=o(857232),f=o(56125),x=o(768068),b=o(914861),y=o(571551),k=o(529366),M=o(346693),A=o(609162),S=o(945187),w=o(946456),I=o(376684),C=o(18864),v=o(275650),Y=o(84374),D=o(340073),z=o(233568);let B=({className:e,style:t,authMethods:o,showLogo:r=!0,returnTo:a,onCodeSent:i,onGotoVerifyCode:l,onSignUpRequired:c,onMemberNotFound:u,onExternalSignUp:g,onSignUpPending:p,onRequireApplication:y,onClickEditEmail:z})=>{let{t:B}=(0,d.A)(),{email:j}=(0,s.rd)().query,L=(0,b.U)(j),{tenant:E}=(0,m.useContext)(S.I),R=(0,m.useMemo)(()=>Y.Ik().shape({email:Y.Yj().label(B("common:forms.labels.email")).email().test("ascii-email",({label:e,path:t})=>B("common:forms.yup_errors.invalid_email",{path:e||t}),e=>!e||(0,k.B)(e)).required()}),[B]),_=(0,v.mN)({resolver:(0,A.t)(R),mode:"onSubmit"}),[O,U]=(0,m.useState)();(0,m.useEffect)(()=>{U(o)},[o]);let[P,Q]=(0,m.useState)(),[W,G]=(0,m.useState)(),H=E.setting?.signUpMode===w.bKX.InvitationOnly,q=E.setting?.signUpMode===w.bKX.ViaApplication,$=C.$R.isPrimaryTenant(E),V=(0,D.ef)(D.xr.Login),{signIn:Z,submitting:K}=(0,x.g)({returnTo:a,onSignUpRequired:c,onMemberNotFound:u,onExternalSignUp:g,onSignUpPending:p,onRequireApplication:y,onCodeSent:i,onGotoVerifyCode:l,authMethods:o,setAuthMethods:U,setError:_.setError,onError:e=>G(e),captcha:V}),X=async e=>{_.clearErrors("email"),Z(e.email)};return(0,n.FD)(N,{className:e,style:t,children:[$&&r&&(0,n.Y)(I.A.Box,{marginBottom:{default:"gap5x",xs:"gap4x"},children:(0,n.Y)(f.f,{height:50})}),(0,n.FD)(I.A.FlexColumnBox,{alignItems:"center",children:[H||q?(0,n.Y)(T,{children:B("auth.sign_in_to_community")}):(0,n.FD)(T,{children:[B("auth.sign_in"),(0,n.FD)("span",{children:[" ",B("auth.or")," "]}),B("auth.join_community")]}),(0,M.Z4)(E.memberRequirement)&&(0,n.Y)(F,{children:E.memberRequirement})]}),(0,n.Y)(I.A.FlexColumnBox,{width:"100%",marginTop:{default:"gap5x",xs:"gap4x"},gap:"gap2x",children:(0,n.Y)(h.F,{scene:h.$.SignIn,authMethods:O,form:_,userProfile:{email:L},returnTo:a,submitting:K,errorMessage:P,setErrorMessage:Q,onSubmit:X,captchaSlot:V.slot,emailValidationError:W,onUseDifferentEmail:()=>{G(void 0),U(o)}})})]})},N=(0,y.default)(I.A.FlexColumnBox,{target:"es5opjm0",label:"SignInContainer"})("justify-content:center;align-items:center;background:",e=>e.theme.token.colorBgSurface,";@media (max-width:800px){width:100%;margin-top:",e=>e.theme.token.gap4x,";}form#loginForm{.email-input{padding:",({theme:{token:e}})=>`${e.gap3x} ${e.gap4x}`,";}}"),T=z.N.componentVariant((0,y.default)(I.A.StyledText)` 50 span { 51 color: ${e=>e.theme.token.colorInfoTertiary}; 52 } 53`,{name:{default:"large/LG-2-B",xs:"base/BASE-B"},fontWeight:"fontWeightBold"}),F=z.N.componentVariant((0,y.default)(I.A.StyledText)` 54 margin-top: ${e=>e.theme.token.gap3x}; 55`,{name:"large/LG-1",textAlign:"center",color:"colorPrimary"});var j=((r=j||{}).SignIn="SignIn",r.SignUp="SignUp",r);let L=({returnTo:e,className:t,style:o,...r})=>{let{t:h}=(0,d.A)(),f=(0,g.al)(),x=(0,s.rd)(),[b,y]=(0,m.useState)("SignIn"),[k,M]=(0,m.useState)(""),{authMethods:A}=(0,c.I)({}),S=async e=>{M(e),await x.push((0,i.gS)("/login",{email:e,step:"SignUpSuccess"}))},w=async e=>{M(e),await x.push((0,i.gS)("/login",{email:e,step:"VerifyCode"}))},I=async e=>x.push((0,i.gS)("/login",{email:e,step:"MemberNotFound",...(0,l.ex)()})),C=async e=>x.push((0,i.gS)("/login",{email:e,step:"MemberNotFound",requireApplication:"true",...(0,l.ex)()})),v=async e=>x.push((0,i.gS)("/login",{email:e,step:"ExternalSignUp"})),Y=async e=>{x.push((0,i.gS)("/login/pending",{email:e,targetTenantId:x.query.targetTenantId}))},D=async()=>{(0,u.hQ)()?w(k):x.push((0,i.gS)("/login",{email:k,step:"SignUpSuccess"}))},z=(e=!1)=>{y("SignIn"),e&&M("")};return(0,n.FD)(n.FK,{children:[(0,n.Y)(p.G,{display:"SignIn"===b,children:(0,n.Y)(B,{className:t,style:{padding:`${f?.gap13x}px ${f?.gap6x}px ${f?.gap10x}px`,...o},authMethods:A,returnTo:e,onCodeSent:S,onGotoVerifyCode:w,onSignUpRequired:e=>{M(e),y("SignUp")},onMemberNotFound:I,onExternalSignUp:v,onSignUpPending:Y,onRequireApplication:C,onClickEditEmail:z,...r})}),(0,n.Y)(p.G,{display:"SignUp"===b,children:(0,n.Y)(a.Hx,{className:t,style:{...o},title:h("common:auth.signup.title"),authMethods:A,userProfile:{email:k},returnTo:e,onSignUpFinish:D,onSignUpPending:Y,onClickEditEmail:z,onBack:()=>{y("SignIn")}})})]})}},837634:(e,t,o)=>{"use strict";o.d(t,{dT:()=>em.dT,Wn:()=>I.Wn,Em:()=>M,yy:()=>k,OH:()=>A,yQ:()=>S,AK:()=>w,SE:()=>I.SE,tA:()=>T,j9:()=>F,yG:()=>I.yG,rR:()=>em.rR,cT:()=>W,sO:()=>R.sO,xl:()=>L,_B:()=>em._B,Ru:()=>Q,Lu:()=>R.Lu,xB:()=>E.x,IK:()=>$,Q5:()=>Z,tK:()=>eo,lH:()=>l,Xb:()=>en,u9:()=>ei,Xo:()=>el,QQ:()=>ec,Yb:()=>ed,_1:()=>em._1,BS:()=>em.BS,iY:()=>em.iY,Az:()=>em.Az,t$:()=>em.t$,QB:()=>p,W8:()=>h,oI:()=>eu,os:()=>em.os,Sz:()=>em.Sz,fM:()=>eh,_r:()=>R._r,be:()=>R.be,_$:()=>ex,p7:()=>x,l7:()=>b,pT:()=>eS,ue:()=>eA,We:()=>ew,AD:()=>R.AD}
55);var r=o(481431),n=o(945187),a=o(946456),i=o(397109);let l=({forumPost:e})=>{let{tenant:t}=(0,i.useContext)(n.I),o=e?.commentsAcceptedAsAnswer||[],[l,s]=(0,i.useState)(o),[c,d]=(0,i.useState)(!1),u=(0,i.useCallback)(async()=>{if(e?.type!==a.FVo.Question)return null;d(!0);let{data:o}=await r.Vs.query({query:a.JRZ,variables:{tenantId:t?.id,boardSlug:e?.forumBoard?.slug,slug:e?.slug}}),n=o?.post?.commentsAcceptedAsAnswer||[];return s(n),d(!1),n},[e?.forumBoard?.slug,e?.slug,e?.type,t?.id]);return{loading:c,forumCommentsAcceptedAsAnswerByPost:l,setForumCommentsAcceptedAsAnswerByPost:s,getForumCommentsAcceptedAsAnswerByPost:u}};var s=o(464821),c=o(335972),d=o(516442),u=o(765819),m=o(271910),g=o(257036);let p=({comment:e,onSuccess:t})=>{let{t:o}=(0,m.A)(g.GY.FORUMS),{tenant:l}=(0,i.useContext)(n.I),{getForumCommentsAcceptedAsAnswerByPost:p}=(0,i.useContext)(u.Z),[h,f]=(0,i.useState)(!1),[x,b]=(0,i.useState)(!1),y=(0,i.useCallback)(async()=>{if(!x){b(!0);try{let n=await r.Vs.mutate({mutation:a.TLg,variables:{tenantId:l?.id,forumCommentId:e?.id}});if(!n?.data?.markForumCommentAsAnswer)return void(0,d.fi)({type:"error",message:n?.errors?.[0]?.message||o("forums:accepted_answer.mark_failed")});t?.(),p(),(0,d.fi)({type:"success",message:o("forums:accepted_answer.mark_success")}),f(!1)}catch(t){r.cb.report(t,{metaData:{forumCommentId:e?.id}}),(0,d.fi)({type:"error",message:t?.message||o("forums:accepted_answer.mark_failed")})}finally{b(!1)}}},[e?.id,l?.id,x,o]);return{renderMarkCommentAsAnswerDoubleConfirmModal:({isModerator:e})=>(0,s.Y)(c.J,{isShow:h,loading:x,modalType:"info",title:o("forums:accepted_answer.mark_modal_title"),subTitle:e?void 0:o("forums:accepted_answer.mark_modal_subtitle"),onCancel:()=>f(!1),onConfirm:()=>{y()}}),markCommentAsAnswer:y,setShowModal:f,showModal:h,loading:x}},h=({comment:e,onSuccess:t})=>{let{t:o}=(0,m.A)(g.GY.FORUMS),{getForumCommentsAcceptedAsAnswerByPost:n}=(0,i.useContext)(u.Z),[l,p]=(0,i.useState)(!1),[h,f]=(0,i.useState)(!1),x=(0,i.useCallback)(async()=>{if(!h){f(!0);try{let i=await r.Vs.mutate({mutation:a.XnW,variables:{forumCommentId:e?.id}});if(!i?.data?.markForumCommentAsOfficialApproval)return void(0,d.fi)({type:"error",message:i?.errors?.[0]?.message||o("forums:official_approval.assign_failed")});t?.(),n(),(0,d.fi)({type:"success",message:o("forums:official_approval.assign_success")}),p(!1)}catch(t){r.cb.report(t,{metaData:{forumCommentId:e?.id}}),(0,d.fi)({type:"error",message:t?.message||o("forums:official_approval.assign_failed")})}finally{f(!1)}}},[e?.id,h,o]);return{renderMarkCommentAsOfficialApprovalDoubleConfirmModal:()=>(0,s.Y)(c.J,{isShow:l,loading:h,modalType:"info",title:o("forums:official_approval.assign_modal_title"),onCancel:()=>p(!1),onConfirm:()=>{x()}}),markCommentAsOfficialApproval:x,setShowModal:p,showModal:l,loading:h}};var f=o(49173);let x=({comment:e,onSuccess:t})=>{let{t:o}=(0,m.A)(),{tenant:l}=(0,i.useContext)(n.I),{getForumCommentsAcceptedAsAnswerByPost:g}=(0,i.useContext)(u.Z),[p,h]=(0,i.useState)(!1),[f,x]=(0,i.useState)(!1),b=(0,i.useCallback)(async()=>{if(!f){x(!0);try{let n=await r.Vs.mutate({mutation:a.Q52,variables:{tenantId:l?.id,forumCommentId:e?.id}});if(!n?.data?.removeForumCommentFromAnswer)return void(0,d.fi)({type:"error",message:n?.errors?.[0]?.message||o("forums:accepted_answer.unmark_failed")});t?.(),g(),(0,d.fi)({type:"success",message:o("forums:accepted_answer.unmark_success")}),h(!1)}catch(t){r.cb.report(t,{metaData:{forumCommentId:e?.id}}),(0,d.fi)({type:"error",message:t?.message||o("forums:accepted_answer.unmark_failed")})}finally{x(!1)}}},[e?.id,l?.id,f,o]);return{renderRemoveCommentFromAnswerDoubleConfirmModal:()=>(0,s.Y)(c.J,{isShow:p,loading:f,title:o("forums:accepted_answer.unmark_modal_title"),confirmButtonText:o("forums:accepted_answer.unmark_confirm_button"),onCancel:()=>h(!1),onConfirm:()=>{b()}}),removeCommentFromAnswer:b,setShowModal:h,showModal:p,loading:f}},b=({comment:e,onSuccess:t})=>{let{t:o}=(0,m.A)(g.GY.FORUMS),{getForumCommentsAcceptedAsAnswerByPost:l}=(0,i.useContext)(u.Z),p=(()=>{let{tenant:e}=(0,i.useContext)(n.I),t=(0,f.g)(e=>e.setEnabledOverride);return(0,i.useCallback)(async()=>
55{if(e?.id)try{let{data:o}=await r.Vs.query({query:a.MPS,variables:{tenantId:e.id},fetchPolicy:"no-cache"}),n=o?.forumSetting?.officialApprovalBadgeEnabled;"boolean"==typeof n&&t(n)}catch{}},[e?.id,t])})(),[h,x]=(0,i.useState)(!1),[b,y]=(0,i.useState)(!1),k=(0,i.useCallback)(async()=>{if(!b){y(!0);try{let n=await r.Vs.mutate({mutation:a.SoV,variables:{forumCommentId:e?.id}});if(!n?.data?.removeForumCommentFromOfficialApproval)return void(0,d.fi)({type:"error",message:n?.errors?.[0]?.message||o("forums:official_approval.unassign_failed")});t?.(),l(),p(),(0,d.fi)({type:"success",message:o("forums:official_approval.unassign_success")}),x(!1)}catch(t){r.cb.report(t,{metaData:{forumCommentId:e?.id}}),(0,d.fi)({type:"error",message:t?.message||o("forums:official_approval.unassign_failed")})}finally{y(!1)}}},[e?.id,b,o,p]);return{renderRemoveCommentFromOfficialApprovalDoubleConfirmModal:()=>(0,s.Y)(c.J,{isShow:h,loading:b,title:o("forums:official_approval.unassign_modal_title"),confirmButtonText:o("forums:official_approval.unassign_confirm_button"),onCancel:()=>x(!1),onConfirm:()=>{k()}}),removeCommentFromOfficialApproval:k,setShowModal:x,showModal:h,loading:b}};o(107569);var y=o(346693);let k=e=>{let{t}=(0,m.A)(),{tenant:o}=(0,i.useContext)(n.I),{onDeletedForumComment:l}=(0,i.useContext)(u.Z),[s,{loading:c}]=(0,a.UCn)(),g=(0,i.useCallback)(async(n,a)=>{if(!(c||(0,y.lH)(o?.id)||(0,y.lH)(e?.id)))try{let r=await s({variables:{tenantId:o?.id,id:e?.id,customMessage:a||void 0}});if(!r?.data?.forumComment)return void(0,d.fi)({type:"error",message:r?.errors?.[0]?.message||t("forums:comments.operations.delete_failed")});(0,d.fi)({type:"success",message:t("forums:comments.operations.delete_success")}),l?.(),n?.(r?.data?.forumComment)}catch(e){r.cb.report(e),(0,d.fi)({type:"error",message:e?.message})}},[o?.id,c,e,s,l,t]);return{isDeleting:c,deleteForumComment:g}},M=e=>{let{t}=(0,m.A)(),{tenant:o}=(0,i.useContext)(n.I),{onDeletedForumComment:l}=(0,i.useContext)(u.Z),[s,{loading:c}]=(0,a.Sin)(),g=(0,i.useCallback)(async n=>{if(!(c||(0,y.lH)(o?.id)||(0,y.lH)(e?.id)))try{let r=await s({variables:{tenantId:o?.id,id:e?.id}});if(!r?.data?.forumComment)return void(0,d.fi)({type:"error",message:r?.errors?.[0]?.message||t("forums:comments.operations.delete_spam_failed")});(0,d.fi)({type:"success",message:t("forums:comments.operations.delete_spam_success")}),l?.(),n?.(r?.data?.forumComment)}catch(e){r.cb.report(e),(0,d.fi)({type:"error",message:e?.message})}},[o?.id,c,e,s,l,t]);return{loading:c,deleteAndSpamForumComment:g}},A=e=>{let{t}=(0,m.A)(),{tenant:o}=(0,i.useContext)(n.I),[l,{loading:s}]=(0,a.GKC)(),c=(0,i.useCallback)(async(n,a)=>{if(!s&&n&&!((0,y.lH)(e?.id)||(0,y.lH)(o?.id)))try{let r=await l({variables:{tenantId:o?.id,record:{_id:e?.id,content:n}}});if(!r?.data?.comment)return void(0,d.fi)({type:"error",message:r?.errors?.[0]?.message||t("forums:comments.operations.edit_failed")});a?.(r.data.comment);let i=(0,d.sZ)(r.data.comment);(0,d.fi)({type:"success",message:i?t("forums:comments.operations.edit_success_pending_review"):t("forums:comments.operations.edit_success"),roomy:i})}catch(e){r.cb.report(e),(0,d.fi)({type:"error",message:e.message})}},[o?.id,e,s,l,t]);return{isEditing:s,editForumComment:c}},S=({limit:e,enabled:t=!0})=>{let{tenant:o}=(0,i.useContext)(n.I),[l,s]=(0,i.useState)([]),[c,d]=(0,i.useState)(t),u=(0,i.useRef)(0);return(0,i.useEffect)(()=>{if(!t||!o?.id){s([]),d(!1);return}let n=++u.current;return d(!0),(async()=>{try{let{data:t}=await r.Vs.query({query:a.JXK,variables:{tenantId:o.id,limit:e},fetchPolicy:"no-cache"});if(n!==u.current)return;s(t?.followedUsers??[])}catch(e){if(n!==u.current)return;s([]),r.cb.report(e)}finally{n===u.current&&d(!1)}})(),()=>{u.current+=1}},[o?.id,e,t]),{users:l,loading:c}},w=({limit:e,enabled:t=!0})=>{let{tenant:o}=(0,i.useContext)(n.I),[l,s]=(0,i.useState)([]),[c,d]=(0,i.useState)(t),u=(0,i.useRef)(0);return(0,i.useEffect)(()=>{if(!t||!o?.id){s([]),d(!1);return}let n=++u.current;return d(!0),(async()=>{try{let{data:t}=await r.Vs.query({query:a.qIe,variables:{tenantId:o.id,limit:e},fetchPolicy:"no-cache"});if(n!==u.current)return;s(t?.forumBoards??[])}catch(e){if(n!==u.current)return;s([]),r.cb.report(e)}finally{n===u.current&&d(!1)}})(),()=>{u.current+=1}},[o?.id,e,t]),{boards:l,loading:c}};var I=o(433827),C=o(285749),v=o(897587),Y=o(702860);
55let D=({value:e,onChange:t})=>{let o=(0,C.u)(),{tenant:l}=(0,i.useContext)(n.I),[c,d]=(0,i.useState)([]),u=(0,i.useCallback)(async()=>{let{data:e}=await r.Vs.query({query:a.a7F,variables:{tenantId:l.id}});d(e?.getForumBoardsForMyPostsFilter||[])},[l.id]);return(0,i.useEffect)(()=>{u()},[u]),(0,s.Y)(Y.K,{withAllBoards:!0,value:e,forumBoards:c,selectStyle:{fontSize:o.token.fontSizeSM1,fontWeight:o.token.fontWeightBold,color:o.token.colorInfo},onChange:e=>t(e,v.A(t=>t.id===e,c))})};var z=o(571551),B=o(900084),N=o(451835);let T=()=>{let e=(0,C.u)(),[t,o]=(0,i.useState)(""),r=(0,i.useMemo)(()=>(0,s.Y)(j,{children:(0,s.Y)(N.E,{withAllBoards:!0,selectTheOnlyOneBoardByDefault:!1,view:N.c.Dropdown,selectStyle:{fontSize:e.token.fontSizeSM1,fontWeight:e.token.fontWeightBold,color:e.token.colorInfo},value:t,onChange:e=>o(e)})}),[t,e.token.colorInfo,e.token.fontSizeSM1,e.token.fontWeightBold]),n=(0,i.useMemo)(()=>t?[t]:void 0,[t]);return{forumBoardId:t,forumBoardIdsFilter:n,forumBoardSelectNode:r}},F=()=>{let[e,t]=(0,i.useState)(""),o=(0,i.useMemo)(()=>(0,s.Y)(j,{children:(0,s.Y)(D,{value:e,onChange:e=>t(e)})}),[e]),r=(0,i.useMemo)(()=>e?[e]:void 0,[e]);return{forumBoardId:e,forumBoardIdsFilter:r,forumBoardSelectNode:o}},j=(0,z.default)(B.Box,{target:"e14dmbwv0",label:"Container"})("width:200px;@media (max-width:768px){width:170px;}.rc-select-item-option-content{font-size:",e=>e.theme.token.fontSizeSM1," !important;}.rc-select-item-option-state{width:14px !important;height:14px !important;}"),L=({enabled:e=!0}={})=>{let{tenant:t}=(0,i.useContext)(n.I),[o,l]=(0,i.useState)(null),[s,c]=(0,i.useState)(e),d=(0,i.useRef)(0);return(0,i.useEffect)(()=>{if(!e||!t?.id){l(null),c(!1);return}let o=++d.current;return c(!0),(async()=>{try{let{data:e}=await r.Vs.query({query:a.t$z,fetchPolicy:"no-cache"});if(o!==d.current)return;l(e?.aiSummary?.narrative??null)}catch(e){if(o!==d.current)return;l(null),r.cb.report(e)}finally{o===d.current&&c(!1)}})(),()=>{d.current+=1}},[t?.id,e]),{narrative:o,loading:s}};var E=o(109441),R=o(952131),_=o(610026);let O=(e,t)=>{let{t:o}=(0,m.l)(g.GY.FORUMS);if("selfDeleted"===e)return o("moderation.status.self_deleted");if("initialCheck"===e)return o("moderation.status.in_initial_check");if(t?.length){let e={[_.BM.Profane]:"moderation.violation_messages.profane",[_.BM.BlockedUrl]:"moderation.violation_messages.blocked_url",[_.BM.Discrimination]:"moderation.violation_messages.discrimination",[_.BM.Sexual]:"moderation.violation_messages.sexual",[_.BM.Violent]:"moderation.violation_messages.violent",[_.BM.Pii]:"moderation.violation_messages.pii",[_.BM.AntiSpam]:"moderation.violation_messages.anti_spam",[_.BM.Spam]:"moderation.violation_messages.spam"},r=t.find(t=>e[t]);if(r)return o(e[r])}return o("moderation.status.generic_violation")},U=(e,t)=>e&&t===a.rnF.AutoModeration,P=(e,t)=>U(e,t)?"pending_review_auto_moderation":e&&t===a.rnF.Board?"pending_review_board":"pending_review",Q=e=>{let t=(0,d.cr)(e),o=(0,d.qW)(e),r=(0,d.ce)(e),n=(0,d.vC)(e),a=O(e?.status,e?.deleteReason);return{statusMessage:n?"":a,isInInitialCheck:t,isDeleted:o,isSelfDeleted:r,isPublished:n,isFlaggedPending:U(t,e?.pendingReviewSource),pendingReviewCopyKey:P(t,e?.pendingReviewSource)}},W=e=>{let t=(0,d.Tz)(e),o=(0,d.r2)(e),r=(0,d.jX)(e),n=(0,d.cx)(e),a=(0,d.J4)(e),i=(0,d.sZ)(e),l=O(e?.status,e?.deleteReason);return{statusMessage:n?"":l,isInInitialCheck:t,isDeleted:o,isSelfDeleted:r,isPublished:n,isModeratorReview:a,isPendingModeratorReview:i,isFlaggedPending:U(t,e?.pendingReviewSource),pendingReviewCopyKey:P(t,e?.pendingReviewSource)}};var G=o(107958),H=o(585591),q=o(436535);let $=({commentsCount:e})=>{let{forumBoard:t}=(0,i.useContext)(H.f),{isLoggedIn:o}=(0,q.nS)(),[r,n]=(0,i.useState)(!1),l=(0,i.useMemo)(()=>{if(o)return!1;let e=t?.gatePolicy;return e===a.mZt.Enforced||e===a.mZt.Skippable&&!r},[o,r,t?.gatePolicy]),c=(0,i.useCallback)(()=>n(!0),[]);return{ForumGateAccessControl:(0,i.useMemo)(()=>({children:o,...r})=>(0,s.Y)(G.H,{gatePolicy:t?.gatePolicy,customizedInitialHeight:55*e,customizedOverhangSize:160,onClose:c,...r,children:o},t?.id),[t?.id,e,t?.gatePolicy,c]),withGate:l}},V=20,Z=({active:e,limit:t=V})=>{let{tenant:o}=(0,i.useContext)(n.I),[l,s]=(0,i.useState)(),c=(0,i.useMemo)(()=>l?[l]:void 0,[l]),[u,m]=(0,i.useState)([]),[g,p]=(0,i.useState)(!0),[h,f]=(0,i.useState)(!1),[x,b]=(0,i.useState)(!1),[y,k]=(0,i.useState)(!1),M=(0,i.useCallback)(async(e=0)=>{if(!o?.id)return[];let{data:n}=await r.Vs.query({query:a.itW,variables:{tenantId:o.id,boardIds:c,limit:t,skip:e},fetchPolicy:"no-cache"});return n?.deletedForumComments??[]},[o?.id,c,t]),A=(0,i.useRef)(!1);(0,i.useEffect)(()=>{A.current=!1},[M]),(0,i.useEffect)(()=>{o?.id&&e&&(async()=>{A.current||b(!0);let e=await M(0);m(e),e.length<=t&&p((0,d.ay)(e,t)),b(!1),A.current=!0})()},[o?.id,e,M]);let S=(0,i.useCallback)(async(e=!1)=>
55{if(!y&&(g||h))try{k(!0);let e=await M(u.length),o=(0,d.ay)(e,t);o||(p(!1),f(!1)),o&&(f(!0),p(!1)),m(t=>[...t,...e])}finally{k(!1)}},[M,y,g,h,t,u.length]);return{loading:x,loadedComments:u,hasMore:g,showLoadMore:h,fetchingMore:y,loadMore:S,removeComment:(0,i.useCallback)(e=>{m(t=>t.filter(t=>t.id!==e.id))},[]),boardFilter:l,setBoardFilter:s}};var K=o(485617),X=o(941397),J=o(861364),ee=o(8248),et=o(11600);let eo=({active:e})=>{let{tenant:t}=(0,i.useContext)(n.I),[o,l]=(0,i.useState)(),s=(0,i.useMemo)(()=>o?[o]:void 0,[o]),[c,u]=(0,i.useState)([]),[m,g]=(0,i.useState)(!0),[p,h]=(0,i.useState)(!1),[f,x]=(0,i.useState)(!1),[b,y]=(0,i.useState)(!1),k=(0,i.useCallback)(async(e=0)=>{if(!t?.id)return[];let{data:o}=await r.Vs.query({query:a.rZZ,variables:{tenantId:t.id,boardIds:s,limit:_.Mt,skip:e},fetchPolicy:"no-cache"});return o?.deletedForumPosts??[]},[t?.id,s]),M=(0,i.useRef)(!1);(0,i.useEffect)(()=>{M.current=!1},[k]),(0,i.useEffect)(()=>{t?.id&&e&&(async()=>{M.current||y(!0);let e=await k(0);u(e),e.length<=_.Mt&&g((0,d.ay)(e)),y(!1),M.current=!0})()},[t?.id,e,k]);let A=(0,i.useCallback)(async(e=!1)=>{if(!f&&(m||p))try{x(!0);let e=await k(c.length),t=(0,d.ay)(e,_.Mt);t||(g(!1),h(!1)),t&&(h(!0),g(!1));let o=K.A(X.A(e=>e?.id),c,e);u(o)}finally{x(!1)}},[k,f,m,p,c]);return{loading:b,loadedPosts:c,hasMore:m,showLoadMore:p,fetchingMore:f,loadMore:A,removePost:(0,i.useCallback)(e=>{u(t=>J.A(t=>t?.id!==e?.id,t))},[]),updatePost:(0,i.useCallback)((e,t)=>{u(o=>ee.A(o=>o?.id===e?et.A(o,t):o,o))},[]),boardFilter:o,setBoardFilter:l}};o(531600);let er=_.Mt,en=({limit:e=er,boardFilter:t}={})=>{let{tenant:o}=(0,i.useContext)(n.I),l=(0,i.useMemo)(()=>t?[t]:void 0,[t]),[s,c]=(0,i.useState)([]),[u,m]=(0,i.useState)(!0),[g,p]=(0,i.useState)(!0),[h,f]=(0,i.useState)(!1),x=(0,i.useCallback)(async(t=0)=>{if(!o?.id)return[];let{data:n}=await r.Vs.query({query:a.t4w,variables:{tenantId:o.id,sortBy:a.npl.Latest,filters:{forumBoardIds:l},limit:e,skip:t},fetchPolicy:"no-cache"});return n?.comments??[]},[o?.id,l,e]),b=(0,i.useRef)(!1);(0,i.useEffect)(()=>{b.current=!1},[x]),(0,i.useEffect)(()=>{o?.id&&(async()=>{b.current||p(!0);let t=await x(0);c(t),t.length<=e&&m((0,d.ay)(t,e)),p(!1),b.current=!0})()},[o?.id,x,e]);let y=(0,i.useCallback)(async()=>{if(!h&&u&&b.current)try{f(!0);let t=await x(s.length);(0,d.ay)(t,e)||m(!1),c(e=>[...e,...t])}finally{f(!1)}},[x,h,u,e,s.length]);return{loading:g,loadedComments:s,hasMore:u,loadMore:y,refresh:(0,i.useCallback)(async()=>{if(!b.current)return;let e=await x(0);0!==e.length&&c(t=>{let o=new Set(t.map(e=>e?.id).filter(Boolean)),r=e.filter(e=>e?.id&&!o.has(e.id));return r.length>0?[...r,...t]:t})},[x])}},ea=20,ei=({active:e,limit:t=ea})=>{let{tenant:o}=(0,i.useContext)(n.I),[l,s]=(0,i.useState)(a.QUU.Pending),[c,u]=(0,i.useState)(),m=(0,i.useMemo)(()=>c?[c]:void 0,[c]),[g,p]=(0,i.useState)([]),[h,f]=(0,i.useState)(!0),[x,b]=(0,i.useState)(!1),[y,k]=(0,i.useState)(!1),[M,A]=(0,i.useState)(!1),S=(0,i.useCallback)(async(e=0)=>{if(!o?.id)return[];let{data:n}=await r.Vs.query({query:a._MI,variables:{tenantId:o.id,reviewStatus:l,boardIds:m,limit:t,skip:e},fetchPolicy:"no-cache"});return n?.pendingForumComments??[]},[o?.id,l,m,t]),w=(0,i.useRef)(!1);(0,i.useEffect)(()=>{w.current=!1},[S]),(0,i.useEffect)(()=>{o?.id&&e&&(async()=>{w.current||k(!0);let e=await S(0);p(e),e.length<=t&&f((0,d.ay)(e,t)),k(!1),w.current=!0})()},[o?.id,e,S]);let I=(0,i.useCallback)(async(e=!1)=>{if(!M&&(h||x))try{A(!0);let e=await S(g.length),o=(0,d.ay)(e,t);o||(f(!1),b(!1)),o&&(b(!0),f(!1)),p(t=>[...t,...e])}finally{A(!1)}},[S,M,h,x,t,g.length]),C=(0,i.useCallback)(async()=>{if(!o?.id||!e)return;k(!0);let r=await S(0);p(r),f((0,d.ay)(r,t)),b(!1),k(!1)},[o?.id,e,S,t]),v=(0,i.useCallback)(async()=>{if(!o?.id||!e||!w.current)return;let t=await S(0);0!==t.length&&p(e=>{let o=new Set(e.map(e=>e?.id).filter(Boolean)),r=t.filter(e=>e?.id&&!o.has(e.id));return r.length>0?[...r,...e]:e})},[o?.id,e,S]);return{loading:y,loadedComments:g,hasMore:h,showLoadMore:x,fetchingMore:M,loadMore:I,refetch:C,refresh:v,removeComment:(0,i.useCallback)(e=>{p(t=>t.filter(t=>t.id!==e.id))},[]),resetComments:(0,i.useCallback)(()=>{p([])},[]),statusFilter:l,setStatusFilter:s,boardFilter:c,setBoardFilter:u}},el=({active:e})=>{let{tenant:t}=(0,i.useContext)(n.I),[o,l]=(0,i.useState)(a.QUU.Pending),[s,c]=(0,i.useState)(),u=(0,i.useMemo)(()=>s?[s]:void 0,[s]),[m,g]=(0,i.useState)([]),[p,h]=(0,i.useState)(!0),[f,x]=(0,i.useState)(!1),[b,y]=(0,i.useState)(!1),[k,M]=(0,i.useState)(!1),A=(0,i.useCallback)(async(e=0)=>{if(!t?.id)return[];let{data:n}=await r.Vs.query({query:a.bif,variables:{tenantId:t.id,boardIds:u,reviewStatus:o,limit:_.Mt,skip:e},fetchPolicy:"no-cache"});return n?.pendingForumPosts??[]},[t?.id,u,o]),S=(0,i.useRef)(!1);(0,i.useEffect)(()=>{S.current=!1},[A]),(0,i.useEffect)(()=>{t?.id&&e&&(async()=>{S.current||M(!0);try{let e=await A(0);g(e),e.length<=_.Mt&&h((0,d.ay)(e)),S.current=!0}finally{M(!1)}})()},[t?.id,e,A]);let w=(0,i.useCallback)(async()=>
55{if(t?.id&&e){M(!0);try{let e=await A(0);g(e),h((0,d.ay)(e)),x(!1)}finally{M(!1)}}},[t?.id,e,A]),I=(0,i.useCallback)(async(e=!1)=>{if(!b&&(p||f))try{y(!0);let e=await A(m.length),t=(0,d.ay)(e,_.Mt);t||(h(!1),x(!1)),t&&(x(!0),h(!1));let o=K.A(X.A(e=>e?.id),m,e);g(o)}finally{y(!1)}},[A,b,p,f,m]);return{loading:k,loadedPosts:m,hasMore:p,showLoadMore:f,fetchingMore:b,loadMore:I,removePost:(0,i.useCallback)(e=>{g(t=>J.A(t=>t?.id!==e?.id,t))},[]),updatePost:(0,i.useCallback)((e,t)=>{g(o=>ee.A(o=>o?.id===e?et.A(o,t):o,o))},[]),refetch:w,statusFilter:o,setStatusFilter:l,boardFilter:s,setBoardFilter:c}},es={pendingPosts:0,pendingComments:0,reportedPosts:0,reportedComments:0},ec=()=>{let{tenant:e}=(0,i.useContext)(n.I),[t,o]=(0,i.useState)(!0),[l,s]=(0,i.useState)(es),c=(0,i.useRef)(l),d=(0,i.useCallback)(async()=>{if(e?.id)try{let{data:t}=await r.Vs.query({query:a.wzv,variables:{tenantId:e.id},fetchPolicy:"no-cache"});if(t?.pendingModerationCount){let e={pendingPosts:t.pendingModerationCount.pendingPosts??0,pendingComments:t.pendingModerationCount.pendingComments??0,reportedPosts:t.pendingModerationCount.reportedPosts??0,reportedComments:t.pendingModerationCount.reportedComments??0},o=c.current;(o.pendingPosts!==e.pendingPosts||o.pendingComments!==e.pendingComments||o.reportedPosts!==e.reportedPosts||o.reportedComments!==e.reportedComments)&&(c.current=e,s(e))}}finally{o(!1)}},[e?.id]);return(0,i.useEffect)(()=>{d()},[d]),{loading:t,moderationCounts:l,refetchModerationCount:d}},ed=e=>{let{tenant:t}=(0,i.useContext)(n.I),{data:o,loading:r}=(0,a.Qsp)({variables:{tenantId:t.id,skip:0,limit:1},skip:!e}),{data:l,loading:s}=(0,a.DfA)({variables:{tenantId:t.id,skip:0,limit:1},skip:!e});return{hasFollowing:(o?.followedUsers?.length??0)>0||(l?.forumBoards?.length??0)>0,loading:e&&(r||s)}},eu=e=>{let{t}=(0,m.A)(),{tenant:o}=(0,i.useContext)(n.I),[l,{loading:s}]=(0,a.V84)(),c=(0,i.useCallback)(async n=>{if(!(s||(0,y.lH)(o?.id)||(0,y.lH)(e?.id)))try{let r=await l({variables:{tenantId:o?.id,id:e?.id,reason:_.D7}});if(!r?.data?.forumComment)return void(0,d.fi)({type:"error",message:r?.errors?.[0]?.message||t("forums:comments.operations.spam_failed")});(0,d.fi)({type:"success",message:t("forums:comments.operations.spam_success")}),n?.(r?.data?.forumComment)}catch(e){r.cb.report(e),(0,d.fi)({type:"error",message:e?.message})}},[s,o?.id,e?.id,l,t]);return{loading:s,markForumCommentAsSpam:c}};var em=o(30636),eg=o(376684),ep=o(485538);let eh=({forumPost:e,withDetailsText:t,smallSize:o})=>{let{t:r}=(0,m.A)(g.GY.FORUMS),n=(0,R.sO)(),a=(0,I.SE)(),i=e?.pinnedToForum,l=e?.pinnedToBoard,c={pinnedToForum:n.upperCase,pinnedToBoard:a.upperCase},d=[];i&&d.push(c.pinnedToForum),l&&d.push(c.pinnedToBoard);let u=ee.A(e=>e.name,e?.pinnedForumBoardTopics||[]);if(d=ep.A(d,u),(0,y.Z4)(d)){let e=t?r("post_status.pinned_to",{locations:d.join(", ")}):r("post_status.pinned");return(0,s.FD)(eg.A.FlexRowBox,{alignItems:"baseline",gap:"gap1x",children:[(0,s.Y)(eg.A.Icon,{src:(0,s.Y)(eg.A.Icons.Misc.Pinned,{className:"flip-base-[-1]"}),size:o?12:14,color:"colorPrimary"}),(0,s.Y)(ef,{name:o?"small/SM-2-B":"small/SM-1-B",children:e})]})}return null},ef=(0,z.default)(eg.A.StyledText,{target:"e1e76lzb0",label:"PinnedText"})("color:",e=>e.theme.token.colorPrimary,";word-break:break-word;"),ex=e=>{let{t}=(0,m.A)(),{tenant:o}=(0,i.useContext)(n.I),{onRecoveredForumComment:l}=(0,i.useContext)(u.Z),[s,{loading:c}]=(0,a.vzR)(),g=(0,i.useCallback)(async n=>{if(!(c||(0,y.lH)(o?.id)||(0,y.lH)(e?.id)))try{let r=await s({variables:{tenantId:o?.id,id:e?.id}});if(!r?.data?.forumComment)return void(0,d.fi)({type:"error",message:r?.errors?.[0]?.message||t("forums:comments.operations.recover_failed")});(0,d.fi)({type:"success",message:t("forums:comments.operations.recover_success")}),l?.(),n?.(r?.data?.forumComment)}catch(e){r.cb.report(e),(0,d.fi)({type:"error",message:e?.message})}},[c,o?.id,e?.id,s,l,t]);return{loading:c,recoverForumComment:g}};var eb=o(391489),ey=o(649824),ek=o(54822),eM=o(714625);let eA=e=>{let{t}=(0,m.A)(g.GY.FORUMS),{tenant:o}=(0,i.useContext)(n.I),{insertCommentAt:l,onRepliedToForumPost:c,updateForumPost:p}=(0,i.useContext)(u.Z),[h,{loading:f}]=(0,a.vbr)(),[x]=(0,a.jhA)(),{trackClubContext:b}=(0,eb._2)(),{forumSetting:k}=(0,ey.N)(),M=(0,i.useCallback)(async({content:n,callback:i,isAnonymous:u})=>
55{if(!(f||(0,y.lH)(o?.id)||(0,y.lH)(e?.id)||(0,y.lH)(n)))try{let m=await h({variables:{tenantId:o?.id,clientReferenceId:(0,eM.A)(),sourceType:a.d$I.ForumPost,sourceId:e?.id,content:n,isAnonymous:u}});if(m?.data?.comment){let u={...m.data.comment,content:n},g=(0,d.sZ)(m.data.comment);l?.(0,u),i?.(),g||c?.();let h=k?.watchPostPromptEnabled&&!e?.isWatchingPost&&!e?.isAuthor;if(g&&(0,d.fi)({type:"success",message:t("comments.toast.comment_pending_review")}),h&&e?.id){let r=e.id,n=`watch-prompt-${r}`,a=async()=>{ek.oR.dismiss(n);try{await x({variables:{tenantId:o.id,forumPostId:r}}),p?.({isWatchingPost:!0}),(0,d.fi)({type:"success",message:t("watch.toast.watching")})}catch{(0,d.fi)({type:"error",message:t("watch.toast.error")})}};(0,d.fi)({type:"success",autoClose:1e4,toastId:n,message:(0,s.FD)(eg.A.FlexColumnBox,{gap:"gap3x",children:[(0,s.FD)(eg.A.FlexColumnBox,{gap:"gap1x",children:[(0,s.Y)(eg.A.StyledText,{name:"small/SM-1-L",children:t("watch.prompt.title")}),(0,s.Y)(eg.A.StyledText,{name:"small/SM-2-T",color:"colorInfoSecondary",children:t("watch.prompt.message")})]}),(0,s.FD)(eg.A.FlexRowBox,{gap:"gap2x",justifyContent:"flex-end",children:[(0,s.Y)(eg.A.Button,{appearance:"default",size:"sm",onClick:()=>ek.oR.dismiss(n),children:t("watch.prompt.no_thanks")}),(0,s.Y)(eg.A.Button,{appearance:"primary",size:"sm",onClick:a,children:t("watch.prompt.watch_button")})]})]})})}else g||(0,d.fi)({type:"success",message:t("comments.toast.comment_created_success")});(0,r.Hg)(t=>t.forum.forumCommented({forumPostId:e?.id,forumPostTitle:e?.title,forumPostSlug:e?.slug,forumPostForumBoardId:e?.forumBoard?.id,commentId:m?.data?.comment?.id,sourceType:a.d$I.ForumPost,sourceId:e?.id,trackClubContext:b}));return}(0,d.fi)({type:"error",message:m?.errors?.[0]?.message||t("comments.toast.comment_failed")})}catch(e){r.cb.report(e),(0,d.fi)({type:"error",message:e.message})}},[o?.id,e,f,l,c,p,h,x,b,t,k?.watchPostPromptEnabled]);return{isReplying:f,replyToForumPost:M}},eS=e=>{let{t}=(0,m.A)(g.GY.FORUMS),{tenant:o}=(0,i.useContext)(n.I),{onRepliedToForumComment:l,forumPost:s}=(0,i.useContext)(u.Z),[c,{loading:p}]=(0,a.vbr)(),{trackClubContext:h}=(0,eb._2)(),f=(0,i.useCallback)(async({content:n,callback:i,isAnonymous:u})=>{if(!(p||(0,y.lH)(o?.id)||(0,y.lH)(e?.id)||(0,y.lH)(n))&&e)try{let m=await c({variables:{tenantId:o?.id,clientReferenceId:(0,eM.A)(),sourceType:a.d$I.ForumComment,sourceId:e?.id,content:n,isAnonymous:u}});if(!m?.data?.comment)return void(0,d.fi)({type:"error",message:m?.errors?.[0]?.message||t("comments.toast.reply_failed")});let g=(0,d.sZ)(m.data.comment);(0,d.fi)({type:"success",message:g?t("comments.toast.comment_pending_review"):t("comments.toast.reply_success")}),g||l?.(),i?.(m?.data?.comment),(0,r.Hg)(t=>t.forum.forumCommented({commentId:m?.data?.comment?.id,forumPostId:s?.id,forumPostTitle:s?.title,forumPostSlug:s?.slug,forumPostForumBoardId:s?.forumBoard?.id,sourceType:a.d$I.ForumComment,sourceId:e?.id,trackClubContext:h}))}catch(e){r.cb.report(e),(0,d.fi)({type:"error",message:e.message})}},[e,p,o?.id,l,c,s,h,t]);return{isReplying:p,replyToForumComment:f}},ew=e=>{let{t}=(0,m.A)(),{tenant:o}=(0,i.useContext)(n.I),[l,{loading:s}]=(0,a.FLC)(),c=(0,i.useCallback)(async(n,a)=>{if(!(s||(0,y.lH)(o?.id)||(0,y.lH)(e?.id)))try{let r=await l({variables:{tenantId:o?.id,id:e?.id,reason:n,reportFrom:window.location.href}});if(!r?.data?.forumReport)return void(0,d.fi)({type:"error",message:r?.errors?.[0]?.message||t("forums:comments.operations.report_failed")});(0,d.fi)({type:"success",message:t("forums:comments.operations.report_success")}),a?.()}catch(e){r.cb.report(e),(0,d.fi)({type:"error",message:e?.message})}},[s,o?.id,e?.id,l,t]);return{loading:s,reportForumComment:c}}},849551:(e,t,o)=>{"use strict";o.d(t,{M:()=>d});var r=o(464821),n=o(571551),a=o(436535),i=o(376684),l=o(397109),s=o(563063),c=o(584335);let d=({className:e,closeIcon:t=(0,r.Y)(u,{width:"15px",height:"15px"}),returnTo:o,children:n,loginWidgetProps:d,triggerContainerProps:m,...g})=>{let{loginUser:p}=(0,a.nS)(),[h,f]=(0,l.useState)(!1);return p?null:(0,r.FD)(r.FK,{children:[(0,r.Y)(i.A.FlexBox,{onClick:()=>f(!0),width:"fit-content",...(0,s.st)({"aria-expanded":h,"aria-haspopup":"dialog"}),...m,children:n}),h&&(0,r.Y)(c.z,{onClose:()=>f(!1),showModal:h,returnTo:o,loginWidgetProps:d,...g})]})},u=(0,n.default)(i.A.Icons.Symbol.Close,{target:"e3a49d0",label:"CloseIcon"})("opacity:0.5;transition:opacity ease-out 0.16s;&:hover{opacity:1;}")},870855:(e,t,o)=>{"use strict";o.d(t,{Ay:()=>c,WJ:()=>a,y2:()=>s});var r=o(464821),n=o(397109);let a=["colorPurple14","colorCyan09","colorYellow05","colorBlue11","colorOrange04","colorPurple13","colorRed02","colorGreen07","colorBlue12","colorOrange03","colorCyan10","colorRed01","colorGreen08","colorYellow06"],i=new Map,l=n.createContext(i),s=({children:e})=>{let t=(0,n.useRef)(new Map);return(0,r.Y)(l.Provider,{value:t.current,children:e})},c=l},896711:(e,t,o)=>{"use strict";o.d(t,{G:()=>n});var r=o(464821);
55let n=({display:e,children:t})=>(0,r.Y)("div",{style:{display:e?"block":"none"},children:t})},902434:(e,t,o)=>{"use strict";o.d(t,{A:()=>a,t:()=>n});var r=o(436535);let n=()=>{let{loginUser:e}=(0,r.nS)();return!!e?.isLimitedUser},a=()=>{let{loginUser:e}=(0,r.nS)();return!!e?.onboardingNeeded}},914184:(e,t,o)=>{"use strict";o.d(t,{A:()=>f});var r=o(464821),n=o(391489),a=o(488490),i=o(553076),l=o(346693),s=o(296995),c=o(376684),d=o(120312),u=o(995721),m=o(397109),g=o(563063),p=o(669113),h=o(614790);let f=({tags:e=[],clickable:t=!1,onClick:o,withPrefix:f=!0,tabIndex:x})=>{let{push:b}=(0,i.rd)(),{getColor:y}=(0,h.A)(),{layoutConfig:k}=(0,m.useContext)(s.G),{club:M}=(0,n._2)(),A=d.A(u.A,e??[]);return(0,l.lH)(A)?null:(0,r.Y)(c.A.FlexRowBox,{gap:"gap1x",flexWrap:"wrap",children:A.filter(Boolean).map(e=>(0,r.Y)(c.A.Tag,{color:y(e?.id),onClick:()=>t&&void(o?o?.(e):b((0,a.ak)({tagSlug:(0,l.lm)(e.name,e.id),clubSlug:M?.slug,isPublic:k?.isPublic}))),cursor:t?"pointer":"initial",suppressHydrationWarning:!0,autoBackground:!0,tabIndex:x??(t||o?0:void 0),...(0,g.st)({role:"button","aria-label":`Tag: ${e?.name}`}),children:f?`# ${(0,p.J4)(e?.name)}`:(0,p.J4)(e?.name)},e.id??e._id??e.name))})}},917576:(e,t,o)=>{"use strict";o.d(t,{d:()=>c});var r=o(9568),n=o(39120),a=o(753085);let i=(0,r.we)(void 0),l=(0,a.css)("ul li:before{content:'\\2022';display:inline-block;margin-left:-1.5em;margin-right:0.3em;text-align:right;white-space:nowrap;width:1.2em;}","QuillSnowV1Patch"),s=e=>({[`.ql-indent-${e}`]:{marginLeft:`${24*e}px`,paddingLeft:0},[`li ~ .ql-indent-${e}:not(.ql-indent-${e} + .ql-indent-${e})`]:{marginTop:"5px"}}),c=({theme:{token:e}})=>(0,a.css)(l,";position:relative;transform:translateZ(0);",n.M,";color:",e.colorInfoSecondary,";font-family:",e.fontFamily,";letter-spacing:0.08px;font-size:",e.fontSize,";line-height:1.875;font-weight:",e.fontWeight,";table,tr,td{border:1px solid ",e.colorBorder,";border-collapse:collapse;}td{padding:",e.gap2x,";}table{table-layout:auto;}.twitter-tweet{iframe{border-radius:",e.borderRadiusXL,";overflow:hidden;}}.ql-code-block-container,p,ol,ul,blockquote,h1,h2,h3,h5,h6,pre,img,iframe{margin-bottom:20px;&:last-child{margin-bottom:0;}}ul{margin-left:1.2em;}b,strong{font-weight:600;}a{color:",e.colorPrimary,"!important;text-decoration:underline;text-decoration-color:",e.colorPrimary,"!important;}h1,h2,h3,h4,h5,h6{color:",e.colorInfo,";font-weight:",e.fontWeightBold,";margin:",e.gap2x," 0 ",e.gap4x," 0;}h1{font-size:",e.fontSizeLG4,";margin:",e.gap4x," 0;}h2{font-size:",e.fontSizeLG3,";}h3{font-size:",e.fontSizeLG2,";}h4,h5,h6{font-size:",e.fontSizeLG1,";}h1 + h1{margin-top:-",e.gap2x,";}",s(1)," ",s(2)," ",s(3)," ",s(4)," ",s(5)," ",s(6)," ",s(7)," ",s(8)," ol,ul{padding-left:0;li{display:block;margin-bottom:0;::marker{display:none;}}}pre,pre.ql-syntax,.ql-code-block-container{border-radius:",e.borderRadiusLG,";padding:",e.gap4x,";font-family:monospace;font-weight:400;color:#04B17D;background:",e.colorBgSurface,";white-space:pre-wrap;",i,"}hr{background:url('",o(809838),"') center no-repeat;border:none;height:4px;padding:",e.gap8x," 0;@media(max-width:768px){padding:",e.gap4x,";}}img{display:block;margin:0 auto ",e.gap4x," auto;width:900px;max-width:100%;}.ql-video{aspect-ratio:16 / 9;width:900px;max-width:100%;margin:0 auto ",e.gap4x," auto;}blockquote{position:relative;padding:",e.gap4x,";padding-left:90px;color:",e.colorInfoTertiary,";font-style:italic;min-height:1.875;border:1px solid ",e.colorBorder,";border-left:none;border-right:none;margin-left:0;margin-right:0;p{margin-top:0;margin-bottom:",e.gap4x,";&:last-of-type{margin-block-end:0;}}cite{display:block;font-size:18px;font-style:italic;line-height:1.4;text-align:right;}&:before{content:'';font-family:sans-serif;background-color:",e.colorInfoQuaternary,";mask:url('",o(502317),"') no-repeat 50% 50%;-webkit-mask:url('",o(502317),"') no-repeat 50% 50%;position:absolute;left:0;top:20px;height:39px;width:51px;}}.katex{color:",e.colorInfo,";font-size:20px;}","RichTextStyle")},938541:(e,t,o)=>{"use strict";o.d(t,{I:()=>l});var r=o(481431),n=o(945187),a=o(946456),i=o(397109);let l=e=>{let{lazy:t=!1,initialParams:o={},enabled:l=!0}=e??{},{tenant:s}=(0,i.useContext)(n.I),[c,d]=(0,i.useState)(!t),[u,m]=(0,i.useState)([]),[g,p]=(0,i.useState)(0),[h,f]=(0,i.useState)(null),[x,b]=(0,i.useState)(!1),y=(0,i.useRef)(o),k=(0,i.useCallback)(async({statuses:e=[a.CFW.Issued,a.CFW.Expired],search:t,offset:o=0,limit:n=20,sortBy:i=a.VYU.IssuedAt,sortOrder:l="DESC"})=>{if(y.current={statuses:e,search:t,offset:o,limit:n,sortBy:i,sortOrder:l},b(!0),!s?.id)return null;try{d(!0),f(null);let{data:c}=await r.Vs.query({query:a.sL,variables:{tenantId:s.id,statuses:e,search:t,offset:o,limit:n,sortBy:i,sortOrder:l},fetchPolicy:"no-cache"}),u={items:c?.myCertificates?.items??[],totalCount:c?.myCertificates?.totalCount??0};return m(u.items),p(u.totalCount),u}catch(c){let a=c instanceof Error?c:Error(String(c));return f(a),console.error(a),r.cb.notify(a,{metaData:{tenantId:s?.id,statuses:e,search:t,offset:o,limit:n,sortBy:i,sortOrder:l}}),null}finally{d(!1)}},[s?.id]),M=(0,i.useCallback)(async e=>{let t=e??y.current;return y.current=t,k(t)},[k]);return(0,i.useEffect)(()=>{!t&&s?.id&&l&&k(y.current)},[t,s?.id,k,l]),{getMyCertificatesQuery:k,refetch:M,data:u,totalCount:g,loading:c,error:h,called:x}}},952131:(e,t,o)=>{"use strict";o.d(t,{sO:()=>r.s,Lu:()=>n.L,_r:()=>s,be:()=>c,AD:()=>u});var r=o(412070),n=o(141887),a=o(397109),i=o(945187),l=o(946456);let s=()=>{let{tenant:e}=(0,a.useContext)(i.I),t=e?.forumSetting?.postReactionMode;return{postReactionMode:t,isVoteMode:t===l.Okd.Vote,isLikeMode:t===l.Okd.Like}},c=()=>{let{tenant:e}=(0,a.useContext)(i.I),t=e?.forumSetting?.postStyle;return{postStyle:t,isFeedStyle:t===l.MWf.Feed,isListStyle:t!==l.MWf.Feed}};var d=o(436535);let u=()=>{let{tenant:e}=(0,a.useContext)(i.I),{isLoggedIn:t}=(0,d.nS)(),o=e?.forumSetting?.userInfoDisplayModeInPublic;return!t&&o===l.SiR.Simple}},956498:(e,t,o)=>{"use strict";o.d(t,{u:()=>j});var r=o(464821),n=o(946456);class a{constructor({value:e,question:t}){this.value=e||[],this.question=t}}class i extends a{normalize(){return this.value}render(){return null}}var l=o(755795),s=o(834917);class c extends i{normalize(){return l.A(this.value)?[]:[(0,s.bM)(this.value)]}}class d{constructor({value:e,question:t}){this.value=e||[],this.question=t;const{questionType:o}=t,r={value:this.value,question:this.question};o===n.EU5.Location?this.renderer=new c(r):this.renderer=new i(r)}normalize(){return this.renderer.normalize()}render(){return this.renderer.render()}}var u=o(640088),m=o(399249),g=o(285749),p=o(571551),h=o(943751),f=o(770898),x=o(271910),b=o(376684),y=o(120312),k=o(397109),M=o(754836),A=o(352094),S=o(753085),w=o(800244),I=o(39120),C=o(233568);let v=(0,p.default)(b.A.StyledText,{target:"e1tybcbl0",label:"ItemTitle"}
55)(I.M," width:200px;display:flex;flex-direction:row;align-items:flex-start;gap:",e=>e.theme.token.gap1x,";font-size:",e=>e.theme.token.fontSize,";line-height:",e=>e.theme.token.lineHeightLoose,";color:",e=>e.theme.token.colorInfoSecondary,";@media (max-width:1200px){font-size:14px;}"),Y=(0,p.default)(b.A.FlexBox,{target:"e1tybcbl1",label:"ItemContainer"})("position:relative;gap:",e=>e.theme.token.gap2x,";",(0,w.EX)("direction",{row:(0,S.css)("flex-direction:row;align-items:flex-start;","row"),column:(0,S.css)("flex-direction:column;","column")})),D=(0,p.default)(b.A.FlexRowBox,{target:"e1tybcbl2",label:"ItemContent"})("flex:1;flex-wrap:wrap;gap:",e=>e.theme.token.gap2x,";"),z=(0,p.default)(b.A.Box,{target:"e1tybcbl3",label:"PrivateIconContainer"})("position:relative;top:4px;margin:0px;padding:0px;"),B=({title:e,direction:t="row",containerStyle:o={},titleStyle:n={},isPrivate:a,children:i})=>i?(0,r.FD)(Y,{direction:t,style:o,children:[(0,r.FD)(v,{style:n,children:[a&&(0,r.Y)(z,{children:(0,r.Y)(u.j,{color:n.color||"colorInfoTertiary",size:"18"})}),e]}),(0,r.Y)(D,{children:i})]}):null,N=C.N.componentVariant((0,p.default)(b.A.Tag)` 56 ${I.M} 57 height: fit-content; 58 font-size: ${e=>e.theme.token.fontSizeSM1}; 59 font-weight: ${e=>e.theme.token.fontWeight}; 60 line-height: ${e=>e.theme.token.lineHeight}; 61 ${e=>(e=>{switch(e.size){case"default":return(0,S.css)("font-size:14px;font-weight:500;line-height:",e.theme.token.lineHeight,";border-radius:5px;","labelSizeStyle");case"sm":return(0,S.css)("font-size:12px;font-weight:500;line-height:",e.theme.token.lineHeight,";border-radius:5px;","labelSizeStyle");default:return null}})(e)}; 62`,{size:"default"}),T=({children:e,containerProps:t,color:o,size:n="default"})=>(0,r.Y)(N,{size:n,color:o,autoBackground:!0,...t,children:e}),F=["colorOrange03","colorCyan09","colorBlue11","colorPurple13","colorRed01","colorGreen07","colorYellow05","colorOrange04","colorCyan10","colorBlue12","colorPurple14","colorRed02","colorGreen08","colorYellow06"],j=({user:e,profileQuestionAnswers:t=[],withLocation:o=!1,locationFirst:a=!1,titleStyle:i={},labelSize:l="default",itemStyle:s,className:c})=>{let{t:d}=(0,x.A)(),g=(0,f.q)(),p=(0,k.useMemo)(()=>g({records:y.A(e=>(0,M.E4)(e.value),t),questionIdField:"formQuestionId"}),[g,t]),h=(0,k.useMemo)(()=>{let t=p.public??[];if(o){let o=(0,m.T)(e);if((0,M.E4)(o))return t;let r={id:"_locationAsAQuestionAnswer",value:[o],formQuestionId:"_location",formQuestion:{id:"_location",title:d("common:profiles.field_label.location"),questionType:n.Cjf.TextInput,isPublicVisible:!0}};return a?[r,...t]:[...t,r]}return t},[p.public,a,d,e,o]);return(0,M.E4)(p.private)&&(0,M.E4)(h)?null:(0,r.FD)(R,{className:c,children:[(0,r.Y)(L,{questionAnswers:h,isPrivate:!1,titleStyle:i,labelSize:l,itemStyle:s}),(0,M.Z4)(p.private)&&(0,r.FD)(r.FK,{children:[(0,r.Y)(u.k,{marginBottom:"gap1x"}),(0,r.Y)(L,{questionAnswers:p.private,isPrivate:!0,titleStyle:i,labelSize:l,itemStyle:s})]})]})},L=({questionAnswers:e=[],isPrivate:t,titleStyle:o={},labelSize:n="default",itemStyle:a})=>{let i=(0,g.u)(),l=(0,A.U)({maxWidth:768});return(0,M.E4)(e)?null:(0,r.Y)(r.FK,{children:e.map((s,c)=>{let u=e[c],m=u?.formQuestion;if(!u||!m||(0,M.E4)(u.value))return null;let g=F[c%F.length],p=new d({value:u.value,question:m}).normalize();return(0,r.Y)(B,{title:m.title,containerStyle:a,titleStyle:{width:l?"100%":"200px",fontWeight:i.token.fontWeightBold,...o},direction:l?"column":"row",isPrivate:t,children:p?.map(e=>(0,r.Y)(T,{color:g,size:n,children:(0,r.Y)(E,{question:m,answerItem:e})},e))},m.title)})})},E=({question:e,answerItem:t})=>e?.questionType===n.Cjf.Url?(0,r.Y)(_,{href:t,target:"_blank",children:t}):t,R=(0,p.default)(b.A.FlexColumnBox,{target:"ejad5760",label:"Container"})("gap:",e=>e.theme.token.gap4x,";"),_=(0,p.default)(h.Ay,{target:"ejad5761",label:"UrlAnswerItem"})("color:inherit;&:hover{color:inherit;text-decoration:underline;}")},982657:(e,t,o)=>{"use strict";o.d(t,{K:()=>x});var r=o(464821),n=o(293102),a=o(488490),i=o(753085),l=o(571551),s=o(97130),c=o(271910),d=o(376684),u=o(20769),m=o(397109),g=o(915218),p=o.n(g),h=o(853139),f=o(563063);let x=({size:e="default",dataSource:t,totalCount:o,loadMore:i})=>{let{t:l}=(0,c.l)(),{isPublicPage:g}=(0,s.m)(),[h,x]=(0,m.useState)(!1),C=(0,m.useRef)(null),v=t.length<o,Y=t.slice(0,5),D=e=>{x(e)};return 0===o?null:(0,r.FD)(b,{size:e,children:[(0,r.Y)(y,{name:"small/SM-1",size:e,children:l("common:profiles.page_title.certificates")}),(0,r.FD)(d.A.FlexColumnBox,{children:[Y.map(t=>(0,r.Y)(n.w,{href:`${(0,a.rl)(g,t?.nanoId||"")}`,startNewSession:!0,children:(0,r.FD)(k,{size:e,children:[(0,r.Y)(M,{size:e,src:(0,r.Y)(d.A.Icons.Misc.Badge,{})}),(0,r.Y)(A,{name:"sm"===e?"small/SM-1-L":"base/BASE-L",size:e,maxLines:2,children:t?.courseCertificateConfig?.certificateName})]},t.id)},t.id)),(o>5?o-5:0)>0&&(0,r.Y)(w,{open:h,onOpen:()=>D(!0),onClose:()=>D(!1),on:["click"],position:["top left","top right","bottom left","bottom right","left center","right center"],arrow:!1,keepTooltipInside:!0,repositionOnResize:!0,closeOnDocumentClick:!0,trigger:(0,r.Y)(S,{...(0,f.st)({onKeyDown:!0,focusStyle:["outline-offset-2"]}),children:(0,r.Y)(A,{name:"sm"===e?"small/SM-1-L":"base/BASE-L",size:e,cursor:"pointer",children:l("common:profiles.button.show_all_certificates")})}),children:(0,r.Y)(I,{ref:C,children:(0,r.Y)(p(),{pageStart:0,loadMore:i,hasMore:v,initialLoad:!1,useWindow:!1,get
62ScrollParent:()=>C.current,loader:(0,r.Y)(d.A.FlexBox,{padding:"gap2x",justifyContent:"center",children:(0,r.Y)(u.XD,{})},"loader"),children:t.map(t=>(0,r.Y)(n.w,{href:`${(0,a.rl)(g,t?.nanoId||"")}`,startNewSession:!0,children:(0,r.FD)(k,{size:e,children:[(0,r.Y)(M,{size:e,src:(0,r.Y)(d.A.Icons.Misc.Badge,{})}),(0,r.Y)(A,{name:"sm"===e?"small/SM-1-L":"base/BASE-L",size:e,maxLines:1,children:t?.courseCertificateConfig?.certificateName})]},t.id)},t.id))})})})]})]})},b=(0,l.default)(d.A.FlexColumnBox,{target:"e1kf9kp10",label:"ProfileCertificateContainer"})(({theme:{token:e},size:t})=>(0,i.css)("padding:",e.gap4x,";border-radius:",e.borderRadiusXL,";background:",e.colorBgSurface,";width:100%;gap:","sm"===t?e.gap1x:e.gap2x,";@media (max-width:1200px){gap:",e.gap1x,";}","ProfileCertificateContainer")),y=(0,l.default)(d.A.StyledText,{target:"e1kf9kp11",label:"CertificateTitle"})("color:",e=>e.theme.token.colorInfo,";font-size:",e=>"sm"===e.size?e.theme.token.fontSizeSM1:e.theme.token.fontSizeLG2,";text-transform:capitalize;@media (max-width:1200px){font-size:",e=>e.theme.token.fontSizeSM1,";}"),k=(0,l.default)(d.A.FlexRowBox,{target:"e1kf9kp12",label:"CertificateItem"})("gap:",e=>"sm"===e.size?e.theme.token.gap1x:e.theme.token.gap2x,";align-items:flex-start;cursor:default;color:",e=>e.theme.token.colorInfoSecondary,";margin-bottom:",({size:e,theme:t})=>"sm"===e?t.token.gap1x:t.token.gap3x,";@media (max-width:1200px){gap:",e=>e.theme.token.gap1x,";margin-bottom:",e=>e.theme.token.gap1x,";}&:hover{color:",e=>e.theme.token.colorPrimary,";cursor:pointer;}"),M=(0,l.default)(d.A.Icon,{target:"e1kf9kp13",label:"CertificateItemIcon"})(({size:e})=>(0,i.css)("font-size:","sm"===e?"14px":"18px",";margin-top:","sm"===e?"4px":"3px",";@media (max-width:1200px){font-size:14px;margin-top:4px;}","CertificateItemIcon")),A=(0,l.default)(d.A.StyledText,{target:"e1kf9kp14",label:"CertificateItemText"})(({theme:{token:e},size:t})=>(0,i.css)("font-size:","sm"===t?e.fontSizeSM1:e.fontSize,";line-height:","sm"===t?e.lineHeightLoose:e.lineHeight,";@media (max-width:1200px){font-size:",e.fontSizeSM1,";line-height:",e.lineHeightLoose,";}","CertificateItemText")),S=(0,l.default)(d.A.Box,{target:"e1kf9kp15",label:"ShowAllButton"})("cursor:pointer;padding:",e=>e.theme.token.gap1x," 0 0 0;color:",e=>e.theme.token.colorInfoSecondary,";&:hover{color:",e=>e.theme.token.colorPrimary,";}"),w=(0,l.default)(h.A,{target:"e1kf9kp16",label:"StyledPopup"})("&-overlay{z-index:1000;}&-content{padding:0;background-color:",e=>e.theme.token.colorBgElevated,";border:none;border-radius:",e=>e.theme.token.borderRadiusXL," !important;box-shadow:",e=>e.theme.token.shadowElevated,";max-width:calc(100vw - ",e=>e.theme.token.gap2x," * 2);max-height:calc(var(--full-vh) - ",e=>e.theme.token.gap2x," * 2);overflow:visible;@media (max-width:768px){max-width:calc(100vw - ",e=>e.theme.token.gap2x,");}@media (max-width:480px){max-width:calc(100vw - ",e=>e.theme.token.gap1x,");}}&-arrow{color:",e=>e.theme.token.colorBgElevated,";stroke:",e=>e.theme.token.colorBgElevated,";}&-content[role='tooltip']{width:auto;}"),I=(0,l.default)("div",{target:"e1kf9kp17",label:"PopupOverlay"})(({theme:{token:e}})=>(0,i.css)` 63 width: 500px; 64 max-width: calc(100vw - ${e.gap4x} * 2); /* Leave margin on both sides */ 65 height: 400px; 66 max-height: calc(var(--full-vh) - ${e.gap4x} * 2); /* Leave margin on top and bottom */ 67 overflow-y: auto; 68 padding: ${e.gap4x}; 69 border-radius: ${e.borderRadiusXL}; 70 71 /* Responsive width for smaller screens */ 72 @media (max-width: 768px) { 73 width: calc(100vw - ${e.gap4x} * 2); 74 max-width: 500px; 75 height: 350px; 76 padding: ${e.gap3x}; 77 } 78 79 @media (max-width: 480px) { 80 width: calc(100vw - ${e.gap2x} * 2); 81 height: 300px; 82 padding: ${e.gap2x}; 83 } 84 85 /* Custom scrollbar */ 86 &::-webkit-scrollbar {
87 width: 3px; 88 } 89 90 &::-webkit-scrollbar-track { 91 background: ${e.colorBgBoxDisabled}; 92 border-radius: 3px; 93 } 94 95 &::-webkit-scrollbar-thumb { 96 background: ${e.colorBorder}; 97 border-radius: 3px; 98 99 &:hover { 100 background: ${e.colorInfoQuaternary}; 101 } 102 } 103 `)}}]); 104//#
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.