Loading
function(e,t,n){n.d(t,{A:()=>ll});var i,s,l=n(477900),a=n(582128),r=n.t(a,2),o=n(143413),c=n(17928),d=n(192308),u=n(821609),m=n(117723),x=n(442433),g=n(148494),h=n(730852),f=n(401843),A=n(155718),_=n(626584),E=n(877133),p=n(878678),C=n(447215),I=n(888675),N=n(976860),j=n(280450),T=n(696451),v=n(287809),S=n(654265),O=n(660183);function R(e,t){let{joinRequest:n,joinRequestGuild:i}=(0,S.A)(t.id),s=(0,c.bG)([v.default],()=>v.default.getUser(n?.userId)),l=(0,C.P)({user:s,channelId:t.id,guildId:t.guild_id,messageId:e.id}),r=(0,c.bG)([T.Ay,j.default],()=>T.Ay.isMember(i?.id,j.default.getId())),o=a.useCallback(()=>{r&&null!=i&&(0,N.uh)(i.id)},[i,r]);return{guild:i,joinRequest:n,usernameHook:l,guildNameClick:o}}var M=n(702841),L=n(834730),y=n(775602),k=n(763754),U=n(953727);function D(e){let{width:t=440,height:n=200,avatar:i,...s}=e;return(0,l.jsxs)("svg",{...(0,U.A)(s),width:t,height:n,viewBox:`0 0 ${t} ${n}`,fill:"none",xmlns:"http://www.w3.org/2000/svg",...s,children:[(0,l.jsx)("rect",{y:"12",width:"440",height:"176",rx:"4",fill:"url(#paint0_linear_0_1)"}),(0,l.jsx)("path",{d:"M4 12C1.79086 12 0 13.7909 0 16V87.7111C0 89.0292 0.644578 90.2711 1.75757 90.9773C19.6029 102.3 40.6908 102.01 54.593 95.3775C74.7698 85.8079 78.9758 61.6391 58.8478 45.7384C50.2069 38.7483 44.7223 29.0027 45.9176 20.7172C46.434 17.1376 44.0823 12 40.4657 12H4Z",fill:"#3442D9"}),(0,l.jsx)("path",{d:"M440 44.2244C440 42.4907 438.885 40.9507 437.228 40.4399C387.67 25.1621 330.882 28.8097 301.274 66.4895C271.113 104.874 240.425 106.271 206.014 93.988C172.008 81.8488 55.3406 98.3422 74.0098 184.887C74.3973 186.683 76.0228 188 77.8605 188H436C438.209 188 440 186.209 440 184V44.2244Z",fill:"#3442D9"}),(0,l.jsx)("path",{d:"M397.403 63.2537C395.463 62.0597 394.269 60.2687 393.97 58.0299L393.373 54.2985C393.373 54.1493 393.224 54 392.925 54C392.776 54 392.627 54.1493 392.627 54.2985L392.03 58.0299C391.731 60.2687 390.537 62.0597 388.597 63.2537L388.149 63.5522C388 63.7015 388 63.8507 388 64C388 64.1493 388 64.1493 388.149 64.2985L388.597 64.597C390.537 65.791 391.731 67.5821 392.03 69.8209L392.627 73.5522C392.627 73.8507 392.776 74 392.925 74C393.224 74 393.373 73.8507 393.373 73.5522L393.97 69.8209C394.269 67.5821 395.463 65.791 397.403 64.597L397.851 64.2985C398 64.1493 398 64.1493 398 64C398 63.8507 398 63.7015 397.851 63.5522L397.403 63.2537Z",fill:"#57F287"}),(0,l.jsx)("path",{d:"M300.628 164.106C299.09 163.2 298.013 161.691 297.705 159.879L297.244 156.86C297.244 156.71 297.09 156.559 296.936 156.559C296.782 156.559 296.628 156.71 296.628 156.86L296.167 159.879C296.013 161.691 294.936 163.2 293.398 164.106L292.936 164.408C292.782 164.559 292.782 164.559 292.782 164.71V165.011H293.244C294.782 165.917 295.859 167.577 296.013 169.389L296.475 172.408C296.475 172.559 296.628 172.559 296.782 172.559C296.936 172.559 297.09 172.559 297.09 172.408L297.551 169.389C297.859 167.577 298.936 166.068 300.475 165.011H300.782V164.71C300.782 164.559 300.782 164.408 300.628 164.408V164.106Z",fill:"#808AFF"}),(0,l.jsx)("path",{d:"M232.642 35.4003C231.478 34.6839 230.761 33.5197 230.582 32.1765L230.224 30.0272C230.224 29.8481 230.134 29.7585 229.955 29.7585C229.866 29.7585 229.776 29.8481 229.776 30.0272L229.418 32.1765C229.239 33.5197 228.522 34.6839 227.358 35.4003L227.09 35.5794C227 35.669 227 35.669 227 35.7585C227 35.8481 227 35.9376 227.09 35.9376L227.358 36.2063C228.522 36.9227 229.239 37.9974 229.418 39.3406L229.776 41.5794C229.776 41.669 229.866 41.7585 229.955 41.7585C230.134 41.7585 230.224 41.669 230.224 41.5794L230.582 39.3406C230.761 37.9974 231.478 36.9227 232.642 36.2063L232.91 35.9376C233 35.8481 233 35.8481 233 35.7585C233 35.669 232.91 35.669 232.91 35.5794L232.642 35.4003Z",fill:"#FFE75C"}),(0,l.jsx)("defs",{children:(0,l.jsxs)("linearGradient",{id:"paint0_linear_0_1",x1:"220",y1:"12",x2:"220",y2:"188",gradientUnits:"userSpaceOnUse",children:[(0,l.jsx)("stop",{stopColor:"#686bff"}),(0,l.jsx)("stop",{offset:"1",stopColor:"#c356fd"})]})}),(0,l.jsx)("svg",{width:100,height:100,viewBox:"-2 -15 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsxs)("g",{clipPath:"url(#clip0_2645_182555)",children:[(0,l.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.6698 8.91016C14.5646 10.1567 16.3407 10.3342 17.4866 9.44283C17.4957 9.46624 17.5008 9.49191 17.5008 9.51916V15.8337C17.5008 17.2144 16.3815 18.3337 15.0008 18.3337H12.7092C12.5941 18.3337 12.5008 18.2404 12.5008 18.1253V13.3337C12.5008 12.4132 11.7547 11.667 10.8342 11.667H9.16748C8.24699 11.667 7.5008 12.4132 7.5008 13.3337V18.1253C7.5008 18.2404 7.40753 18.3337 7.29247 18.3337H5.0008C3.62009 18.3337 2.5008 17.2144 2.5008 15.8337V9.51916C2.5008 9.36341 2.66628 9.26158 2.81091 9.31949C3.23542 9.48933 3.70172 9.58366 4.19593 9.58366C5.27336 9.58366 6.24385 9.12583 6.92345 8.39408C7.0135 8.29708 7.17004 8.29679 7.26039 8.39349C7.94479 9.12583 8.91932 9.58366 10.0008 9.58366C11.0823 9.58366 12.0568 9.12583 12.7412 8.39349C12.8316 8.29679 12.9882 8.29708 13.0782 8.39408C13.2565 8.58599 13.4548 8.75916 13.6698 8.91016ZM11.7497 6.67891C9.42957 5.8204 9.4179 2.5511 11.7147 1.6683C11.699 1.66743 11.6833 1.66699 11.6675 1.66699H8.33415C7.87391 1.66699 7.50082 2.04009 7.50082 2.50033V5.83366C7.50082 5.87681 7.50191 5.9197 7.50407 5.96231C7.52181 6.31232 7.61153 6.64333 7.75873 6.94085C7.77282 6.96931 7.78743 6.99747 7.80255 7.02531C8.2259 7.80462 9.05157 8.33366 10.0008 8.33366C10.984 8.33366 11.8346 7.76614 12.2429 6.94084L12.2543 6.91751C12.2613 6.90286 12.2682 6.88812 12.2751 6.87331L11.7497 6.67891ZM15.8231 8.3336C15.4338 8.32949 15.0467 8.10931 14.8853 7.67305L14.4606 6.52524C14.2917 6.06904 13.9321 5.70936 13.4759 5.54055L13.3342 5.4881V2.84588L13.4759 2.79343C13.9321 2.62463 14.2917 2.26494 14.4606 1.80874L14.5131 1.66699H15.2462C16.3397 1.66699 17.3062 2.37762 17.6324 3.42131L18.1647 5.12491C18.2057 5.25598 18.2352 5.38724 18.254 5.51775L18.1924 5.54055C17.7361 5.70936 17.3765 6.06904 17.2077 6.52524L16.783 7.67305C16.627 8.09458 16.2603 8.31438 15.8847 8.33245C15.8642 8.33308 15.8437 8.33346 15.8231 8.3336ZM12.5008 3.15424V5.17974L12.3281 5.11583C11.4472 4.78989 11.4472 3.54409 12.3281 3.21816L12.5008 3.15424ZM4.75546 1.66699C3.662 1.66699 2.69541 2.37762 2.36926 3.4213L1.83688 5.12491C1.52876 6.11092 1.8679 7.1068 2.56708 7.72187C2.99643 8.09957 3.56156 8.33366 4.19593 8.33366C5.13437 8.33366 5.95065 7.81064 6.36917 7.04019C6.38619 7.00888 6.40255 6.97714 6.41823 6.94502C6.57788 6.618 6.66748 6.25052 6.66748 5.86211V2.50033C6.66748 2.04009 6.29438 1.66699 5.83415 1.66699H4.75546Z",fill:"white"}),(0,l.jsx)("path",{d:"M14.8838 0.660607C15.2097 -0.220202 16.4556 -0.220202 16.7815 0.660607L17.2062 1.80842C17.375 2.26462 17.7347 2.6243 18.1909 2.79311L19.3387 3.21783C20.2195 3.54377 20.2195 4.78957 19.3387 5.1155L18.1909 5.54023C17.7347 5.70903 17.375 6.06872 17.2062 6.52492L16.7815 7.67272C16.4556 8.5535 15.2097 8.5535 14.8838 7.67272L14.4591 6.52492C14.2903 6.06872 13.9306 5.70903 13.4744 5.54023L12.3266 5.1155C11.4458 4.78957 11.4458 3.54377 12.3266 3.21783L13.4744 2.79311C13.9306 2.6243 14.2903 2.26462 14.4591 1.80842L14.8838 0.660607Z",fill:"white"})]})}),(0,l.jsx)("foreignObject",{x:"30",y:"100",width:"56",height:"56",children:i})]})}var b=n(652215),P=n(21088);function G(e){let{guildId:t,user:n,username:i}=e,s=(0,M.bG)([y.Ay],()=>!y.Ay.useReducedMotion),a=n.getAvatarURL(t,56,s),r=(0,l.jsx)("img",{src:a,className:P.dj,alt:""});return(0,l.jsxs)("div",{className:P.uE,role:"img","aria-label":O.intl.formatToPlainString(O.t["utf8+W"],{username:i}),children:[(0,l.jsx)(D,{avatar:r}),(0,l.jsx)(L.E,{className:P.Bi,tag:"p",color:"status-positive-text",variant:"heading-xl/medium",children:O.intl.format(O.t["52BAtC"],{username:i,usernameHook:(e,t)=>(0,l.jsx)(L.E,{tag:"span",color:"status-positive-text",variant:"heading-xxl/extrabold",lineClamp:3,children:e},t)})})]})}function H(e){let{channel:t,message:i,compact:s}=e,a=(0,k.Ay)(i),r=(0,C.P)({user:i.author,channelId:t.id,guildId:t.guild_id,messageId:i.id})(a),o=O.intl.format(O.t.TQs67g,{username:a.nick,usernameHook:r,productName:i.purchaseNotification?.guild_product_purchase?.product_name??"",handleProductListingClick:()=>{(0,N.pX)(b.BVt.GUILD_PRODUCT(t.guild_id,i.purchaseNotification?.guild_product_purchase?.listing_id??""))}});return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(I.A,{icon:n(617184),timestamp:i.timestamp,compact:s,children:o}),(0,l.jsx)(G,{username:a.nick,guildId:t.guild_id,user:i.author})]})}var w=n(793574),F=n(688810),V=n(942075),B=n(665260),J=n(355622),z=n(148355),Z=n(406704),K=n(576705),X=n(174459),W=n(935208),Y=n(806150),Q=n(646405);function q(e){let{assets:t,currentUser:n,message:i}=e,s=(W.default.extractTimestamp(n.id)+W.default.extractTimestamp(i.id))%t.length;return t[s]}function $(e){let{currentUser:t,channel:n,message:i,buttonLabels:s,stickers:r,event:o,eventProperties:c}=e,d=a.useMemo(()=>q({assets:r,currentUser:t,message:i}),[r,t,i]),m=a.useMemo(()=>q({assets:s,currentUser:t,message:i}),[s,t,i]),x=a.useCallback(async()=>{let{valid:e}=await (0,Y.i)({type:J.oU.FORM,content:"",channel:n});e&&(!function(e){let{channel:t,message:n,sticker:i}=e;g.A.sendGreetMessage(t.id,i.id,g.A.getSendMessageOptionsForReply({channel:t,message:n,shouldMention:!0,showMentionToggle:!0}))}({channel:n,message:i,sticker:d}),function(e){let{sticker:t,event:n,eventProperties:i}=e;null!=n&&X.default.track(n,{...i,sticker_id:t.id})}({sticker:d,event:o,eventProperties:c}))},[n,i,d,o,c]);return(0,l.jsx)(u.$,{icon:{type:"sticker",asset:d,component:z.A},text:m,onClick:x,variant:"secondary"})}function ee(e){let{channel:t,message:n,buttonLabels:i,stickers:s,event:a,eventProperties:r}=e,o=v.default.getCurrentUser(),d=function(e){let{channel:t,message:n,currentUser:i}=e;return(0,c.bG)([K.A,T.Ay],()=>{let e=t.guild_id;if(null==i||null==e)return!1;let s=(0,Z.UJ)(t),l=K.A.can(b.xBc.SEND_MESSAGES,t),a=T.Ay.getMember(e,i.id)?.isPending,r=n.author.bot;return l&&!s&&!a&&!r})}({channel:t,message:n,currentUser:o});return null!=o&&d?(0,l.jsx)("div",{className:Q.S,children:(0,l.jsx)($,{currentUser:o,channel:t,message:n,buttonLabels:i,stickers:s,event:a,eventProperties:r})}):null}var et=n(71393),en=n(226139);function ei(e){let{channel:t,message:n}=e,i=n.roleSubscriptionData?.is_renewal?(0,en.J9)():(0,en.oL)(),s=t.guild_id,r=(0,c.bG)([et.A],()=>et.A.getGuild(s)?.systemChannelFlags,[s]),o=null!=r&&(0,B.Lt)(r,b.ogj.SUPPRESS_ROLE_SUBSCRIPTION_PURCHASE_NOTIFICATION_REPLIES),d=a.useMemo(()=>(0,V.y4)(t,n),[t,n]);return o?null:(0,l.jsx)(ee,{channel:t,message:n,buttonLabels:i,stickers:en.D3,event:b.HAw.ROLE_SUBSCRIPTION_PURCHASE_SYSTEM_MESSAGE_CTA_CLICKED,eventProperties:d})}var es=n(772303);function el(e){let{guildId:t,user:n,className:i}=e,s=(0,c.bG)([y.Ay],()=>!y.Ay.useReducedMotion),a=n.getAvatarURL(t,56,s),r=(0,l.jsx)("foreignObject",{x:"30",y:"68",width:"56",height:"56",transform:"skewX(12)",children:(0,l.jsx)("img",{src:a,className:es.dj,alt:""})});return(0,l.jsx)("div",{className:i,children:(0,l.jsxs)("svg",{width:"128",height:"200",viewBox:"0 0 128 200",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:es.JW,children:[(0,l.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M41.6475 3.07525C42.2166 3.01705 42.7941 2.98723 43.3787 2.98723H44.0149C51.1639 2.98723 57.3812 8.03091 58.5312 14.9582L58.5326 14.9664L71.1297 85.803L74.1529 85.2934L61.5601 14.4815C61.5597 14.4786 61.5592 14.4758 61.5587 14.4729C60.1604 6.07701 52.6392 0 44.0149 0H42.997C42.4189 0 41.8467 0.037182 41.283 0.10879C31.6239 1.11743 24.0326 9.0199 24.0326 18.799C24.0326 21.3525 24.5847 23.8942 25.5481 26.1672L25.5512 26.1745L25.5543 26.1817C30.6753 37.9136 33.7197 47.8651 33.2106 58.7186C32.7013 69.5731 28.6272 81.5075 19.156 97.1507C9.58001 112.967 1.96875 129.323 0.328288 144.93C-1.32267 160.636 3.084 175.549 17.4069 188.258C44.018 211.936 78.8775 196.708 84.4502 170.024C87.2081 156.818 84.3006 145.78 79.001 135.687C75.0979 128.255 69.8387 121.246 64.61 114.277C62.8057 111.873 61.0052 109.473 59.2652 107.063C52.5319 97.7348 49.6357 89.4917 48.5724 81.9158C47.538 74.5461 48.2262 67.7588 48.9086 61.0273C48.9314 60.803 48.9541 60.5787 48.9768 60.3545C50.4158 46.1192 45.9689 34.8772 40.4143 27.5533L40.4092 27.5466L34.5424 19.988L34.533 19.9764C30.8561 15.4298 31.6398 8.83644 36.3021 5.27079C37.8665 4.11054 39.7105 3.32756 41.6475 3.07525ZM29.4797 10.5429C27.9714 12.9383 27.1008 15.7614 27.1008 18.799C27.1008 20.9399 27.5653 23.0928 28.3813 25.0206C33.564 36.8951 36.8159 47.3374 36.2756 58.8549C35.7352 70.3737 31.4122 82.7904 21.7991 98.6677C12.2907 114.372 4.95262 130.278 3.38056 145.234C1.81906 160.089 5.93633 174.039 19.4752 186.051L19.4768 186.053C44.2662 208.11 76.329 193.919 81.4435 169.429C84.0293 157.047 81.3387 146.702 76.2691 137.047C72.4865 129.844 67.4387 123.116 62.2536 116.205C60.4212 113.762 58.5717 111.297 56.7549 108.78C49.7474 99.0725 46.6638 90.3811 45.5325 82.3203C44.4482 74.5953 45.1687 67.4973 45.8457 60.8276C45.8717 60.5718 45.8976 60.3165 45.9233 60.0619C47.2829 46.613 43.0814 36.1022 37.951 29.3343L32.1127 21.8124C29.4463 18.5078 28.6103 14.3561 29.4797 10.5429Z",fill:"#57F287"}),(0,l.jsx)("path",{d:"M59.282 31.4071C56.8646 29.0585 57.1191 27.3279 58.0097 24.7321C58.1369 24.2377 58.6458 23.9905 59.1548 23.9905H62.9716V31.4071H59.282Z",fill:"#57F287"}),(0,l.jsx)("path",{d:"M125.569 155.388L122.388 158.601C120.734 160.332 118.317 161.321 115.899 161.321H101.268V135.486H125.569L127.859 147.971C128.368 150.69 127.477 153.41 125.569 155.388Z",fill:"#8CD9FF"}),(0,l.jsx)("path",{d:"M29.2561 45.6221L25.8209 49.0832C23.9125 51.0609 23.0219 53.9039 23.5308 56.6233L26.7115 74.6704H45.4142V45.6221H29.2561Z",fill:"#8CD9FF"}),(0,l.jsx)("path",{d:"M124.551 151.061C125.568 155.635 122.515 160.208 117.68 161.197C117.044 161.321 116.281 161.445 115.645 161.321H52.7936C46.6867 161.074 41.4703 156.871 40.198 151.061L23.531 56.7471C22.5132 52.1735 25.5667 47.6 30.4014 46.6111C31.0375 46.4875 31.8009 46.3639 32.437 46.4875H95.288C101.395 46.7347 106.611 50.9374 107.884 56.7471L124.551 151.061Z",fill:"#8CD9FF"}),(0,l.jsx)("path",{d:"M127.732 147.724C128.749 152.297 125.823 156.747 121.243 157.736C120.479 157.86 119.716 157.984 118.826 157.984H55.9745C49.8676 157.86 44.6512 153.534 43.3789 147.724L26.7119 53.5333C25.6941 48.9598 28.7476 44.3862 33.5823 43.3973C34.2184 43.2737 34.9818 43.1501 35.6179 43.2737H98.5962C104.703 43.3973 109.92 47.7237 111.065 53.5333L127.732 147.724Z",fill:"white"}),(0,l.jsx)("path",{d:"M78.7482 52.1736C79.2571 54.893 77.4759 57.6124 74.6769 58.1068C74.2952 58.2304 73.7863 58.2304 73.4046 58.2304H66.0253C62.4629 58.1068 59.4094 55.6346 58.6461 52.1736L55.3381 33.7557C54.8292 31.0363 56.6104 28.3169 59.4094 27.8225C59.7911 27.6989 60.3 27.6989 60.6817 27.6989H68.061C71.6234 27.8225 74.6769 30.2947 75.4402 33.7557L78.7482 52.1736Z",fill:"black"}),(0,l.jsx)("path",{d:"M115.39 139.071C115.899 142.285 113.736 145.375 110.428 145.87C109.919 145.993 109.537 145.993 109.028 145.993H62.7172C58.5186 145.87 54.829 143.027 53.9384 139.071C53.3022 135.857 55.4651 132.767 58.7731 132.149C59.282 132.025 59.7909 132.025 60.2998 132.025H106.611C110.81 132.149 114.499 134.992 115.39 139.071Z",fill:"#FFC619"}),(0,l.jsx)("path",{d:"M71.4152 52.8176C72.7444 51.4082 72.394 48.9945 70.6325 47.4264C68.8711 45.8582 66.3656 45.7295 65.0364 47.1389C63.7072 48.5482 64.0576 50.9619 65.819 52.5301C67.5805 54.0982 70.086 54.2269 71.4152 52.8176Z",fill:"#5865F2"}),(0,l.jsx)("path",{d:"M68.5697 30.9126C68.4425 31.1598 68.188 31.4071 67.9336 31.4071H60.8088C60.4271 31.4071 60.2998 31.1598 60.2998 31.0362C60.2998 30.9126 60.2998 30.9126 60.1726 30.9126V30.6654C60.1726 30.5418 60.1726 30.2946 60.2998 30.171C61.5721 27.0807 60.6815 25.5974 59.1548 24.4849V23.9905H64.3712C64.7529 23.9905 65.1345 23.9905 65.389 24.2377C67.9336 25.5974 70.0965 26.7099 68.5697 30.9126Z",fill:"#57F287"}),(0,l.jsx)("path",{d:"M63.4808 19.4171H59.155C58.7734 19.4171 58.5189 19.788 58.6461 20.0352L59.2823 23.9907H64.2442L63.4808 19.4171Z",fill:"black"}),(0,l.jsx)("path",{d:"M61.1485 21.3944C62.4818 21.3286 63.5224 20.5015 63.4728 19.547C63.4231 18.5925 62.302 17.872 60.9686 17.9378C59.6353 18.0035 58.5947 18.8306 58.6444 19.7851C58.694 20.7396 59.8152 21.4601 61.1485 21.3944Z",fill:"black"}),r]})})}var ea=n(746080),er=n(738390);function eo(e){let{username:t}=e;return(0,l.jsx)("div",{className:er._X,children:(0,l.jsx)(L.E,{tag:"p",className:er._X,color:"status-positive-text",variant:"heading-xl/medium",children:O.intl.format(O.t.MLKSln,{username:t,usernameHook:(e,t)=>(0,l.jsx)(L.E,{tag:"span",color:"status-positive-text",variant:"heading-xxl/extrabold",lineClamp:3,children:e},t)})})})}function ec(e){let{guildId:t,user:n,username:i}=e;return(0,l.jsxs)("div",{className:er.pG,role:"img","aria-label":O.intl.formatToPlainString(O.t["utf8+W"],{username:i}),children:[(0,l.jsx)(el,{guildId:t,user:n,className:er.sz}),(0,l.jsx)(eo,{username:i})]})}var ed=n(698441),eu=n(484724),em=n(468689),ex=n(369606),eg=n(661531),eh=n(378570),ef=n(49303),eA=n(523154),e_=n(518782),eE=n(61567);function ep(e){let{message:t,channel:n,compact:i}=e,s=n.guild_id,r=(0,e_.Nu)(t.guildSpaceData?.leaderboard),o=(0,c.bG)([v.default],()=>(0,eA.U_)(r,v.default.getUser(r?.userId),v.default.getUser(r?.secondaryUserId))),d=o?.subject??null,u=o?.previousLeader??null,m=(0,k.d8)(d,n),x=(0,k.d8)(u,n),g=(0,C.P)({user:d??void 0,channelId:n.id,guildId:s,messageId:t.id})(m),h=(0,C.P)({user:u??void 0,channelId:n.id,guildId:s,messageId:t.id})(x),f=a.useCallback(()=>{null!=s&&((0,ef.jb)(s,ef.Rk.LEADERBOARD_SYSTEM_MESSAGE),(0,eh.vn)(s,ea.VV.GUILD_SPACE,{source:"Leaderboard System Message"}))},[s]);if(null==o||null==s)return null;let A=(0,eA.Sx)(o.data,{username:m.nick,previousUsername:x.nick});if(null==A)return null;let _=O.intl.format(A.message,{...A.values,usernameHook:g,previousUsernameHook:h});return(0,l.jsxs)(I.A,{iconNode:(0,l.jsx)(ex.TrophyIcon,{size:"sm",color:eg.A.colors.ICON_MUTED}),timestamp:t.timestamp,compact:i,children:[_,(0,l.jsx)(I.A.Action,{onClick:f,children:O.intl.string(eE.default.O1h3uU)})]})}var eC=n(193885),eI=n(403362);let eN=function(e){let{message:t,channel:n,compact:i,data:s}=e,r=(0,c.yK)([v.default],()=>s.sampled_user_ids.map(e=>v.default.getUser(e)).filter(eI.Vq).slice(0,2),[s.sampled_user_ids]),[o,d]=r,u=(0,k.d8)(o,n),m=(0,k.d8)(d,n),x=(0,C.P)({user:o,channelId:n.id,guildId:n.guild_id,messageId:t.id}),g=(0,C.P)({user:d,channelId:n.id,guildId:n.guild_id,messageId:t.id}),h=n.guild_id,f=a.useCallback(()=>{null!=h&&(0,N.pX)(b.BVt.CHANNEL(h,ea.VV.GUILD_SPACE))},[h]),A=s.connected_user_count-r.length,_=0===r.length||A<=0;return(0,l.jsxs)(I.A,{iconNode:(0,l.jsx)(eC.V,{size:"xs"}),compact:i,timestamp:t.timestamp,children:[_?O.intl.string(eE.default.Sxxqdx):O.intl.format(eE.default.fcmI49,{displayCount:r.length,username:u.nick,usernameHook:x(u),username2:m.nick,username2Hook:g(m),additionalCount:A}),null!=h?(0,l.jsx)(I.A.Action,{onClick:f,children:O.intl.string(O.t.RzWDqY)}):null]})};var ej=n(503698),eT=n.n(ej),ev=n(23339),eS=n(642846),eO=n(565645),eR=n(306417),eM=n(412136),eL=n(11057);function ey(){return(0,l.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:eg.A.colors.INTERACTIVE_TEXT_DEFAULT.css,"aria-hidden":!0,children:(0,l.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23ZM5.70711 9.29289C5.31658 8.90237 4.68342 8.90237 4.29289 9.29289C3.90237 9.68342 3.90237 10.3166 4.29289 10.7071L5.08579 11.5L4.29289 12.2929C3.90237 12.6834 3.90237 13.3166 4.29289 13.7071C4.68342 14.0976 5.31658 14.0976 5.70711 13.7071L6.5 12.9142L7.29289 13.7071C7.68342 14.0976 8.31658 14.0976 8.70711 13.7071C9.09763 13.3166 9.09763 12.6834 8.70711 12.2929L7.91421 11.5L8.70711 10.7071C9.09763 10.3166 9.09763 9.68342 8.70711 9.29289C8.31658 8.90237 7.68342 8.90237 7.29289 9.29289L6.5 10.0858L5.70711 9.29289ZM15.2929 9.29289C15.6834 8.90237 16.3166 8.90237 16.7071 9.29289L17.5 10.0858L18.2929 9.29289C18.6834 8.90237 19.3166 8.90237 19.7071 9.29289C20.0976 9.68342 20.0976 10.3166 19.7071 10.7071L18.9142 11.5L19.7071 12.2929C20.0976 12.6834 20.0976 13.3166 19.7071 13.7071C19.3166 14.0976 18.6834 14.0976 18.2929 13.7071L17.5 12.9142L16.7071 13.7071C16.3166 14.0976 15.6834 14.0976 15.2929 13.7071C14.9024 13.3166 14.9024 12.6834 15.2929 12.2929L16.0858 11.5L15.2929 10.7071C14.9024 10.3166 14.9024 9.68342 15.2929 9.29289ZM9.08869 17.5563C8.78148 18.0152 8.16038 18.1382 7.70142 17.831C7.24247 17.5238 7.11947 16.9027 7.42669 16.4437C8.41166 14.9723 10.092 14 11.9999 14C13.9078 14 15.5881 14.9723 16.5731 16.4437C16.8803 16.9027 16.7573 17.5238 16.2984 17.831C15.8394 18.1382 15.2183 18.0152 14.9111 17.5563C14.2815 16.6158 13.2124 16 11.9999 16C10.7874 16 9.71825 16.6158 9.08869 17.5563Z",fill:"currentColor"})})}function ek(e){let t,{hasNoVotes:n,victorEmoji:i}=e;if(n)t=(0,l.jsx)(ey,{});else if(null!=i){let e=""!==i.name?i.name:i.displayName;t=(0,l.jsx)(eO.A,{emojiId:i.id,emojiName:e,animated:i.animated})}return null!=t?(0,l.jsx)("div",{className:eL.ZS,children:t}):null}function eU(e){let t,{type:n,...i}=e,s="text-muted";switch(n){case"NO_VOTES":t=(0,l.jsx)(L.E,{variant:"text-sm/semibold",color:"text-default",scaleFontToUserSetting:!0,children:O.intl.string(O.t["a+lSZ/"])});break;case"VICTOR":let{victorAnswerText:a,victorVotePercentage:r}=i;t=(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:eL.sj,children:[(0,l.jsx)(L.E,{variant:"text-sm/semibold",color:"text-default",className:eL.Dq,scaleFontToUserSetting:!0,children:a}),(0,l.jsx)(eR.Vx,{size:16,className:eL.To,isVictor:!0,isExpired:!0})]}),(0,l.jsxs)(L.E,{variant:"text-xs/medium",color:s,scaleFontToUserSetting:!0,children:[O.intl.string(O.t.ufIDIx)," \u2022 ",r,"%"]})]});break;case"TIE":let{tiedVotePercentage:o}=i;t=(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(L.E,{variant:"text-sm/semibold",color:"text-default",scaleFontToUserSetting:!0,children:O.intl.string(O.t.kPN9si)}),(0,l.jsxs)(L.E,{variant:"text-xs/medium",color:s,scaleFontToUserSetting:!0,children:[o,"%"]})]})}return(0,l.jsx)("div",{className:eL.h_,children:t})}function eD(e){let{className:t,data:n,onClickPollLink:i}=e,s=a.useMemo(()=>(function(e){if(0===e.totalVotes)return{type:"NO_VOTES"};let t=null!=e.victorAnswerId,n=e.totalVotes>0?Math.round(e.victorAnswerVotes/e.totalVotes*100):0;return t?{type:"VICTOR",victorAnswerText:e.victorAnswerText,victorVotePercentage:n}:{type:"TIE",tiedVotePercentage:n}})(n),[n]),r=null!=n.victorEmoji||"NO_VOTES"===s.type;return(0,l.jsxs)("div",{className:eT()(eL.kL,{[eL.FS]:r},t),children:[(0,l.jsx)(ek,{hasNoVotes:"NO_VOTES"===s.type,victorEmoji:n.victorEmoji}),(0,l.jsx)(eU,{...s}),null!=i&&(0,l.jsx)(u.$,{size:"sm",onClick:i,variant:"secondary",text:O.intl.string(O.t.Jw7Vbf)})]})}var eb=n(435558),eP=n(403581),eG=n(331322),eH=n(508770),ew=n(863574),eF=n(811656),eV=n(166403),eB=n(625494),eJ=n(38405),ez=n(427262),eZ=n(573359),eK=n(59784),eX=n(989790),eW=n(88001),eY=n(148155),eQ=n(387993),eq=n(421438);function e$(e){let{disabled:t,invite:i,isExistingSub:s}=e;return(0,l.jsx)(u.$,{variant:"expressive",size:"md",text:O.intl.string(eY.default.rjuKse),icon:eP.t,onClick:function(){if(null==i)return;let e=i.subscription,t=i.id,a=v.default.getUser(i.primary_user);if(null==a)return;let r=(0,ez.$3)(a);X.default.track(b.HAw.PREMIUM_GROUP_INVITE_EMBED_ACCEPT_CLICKED,{invite_id:t,subscription_id:e});let o=(0,eb.uniqueId)("premium-group-accept-invite-modal"),c=!1;(0,d.openModalLazy)(async()=>{let{default:i}=await Promise.all([n.e("56498"),n.e("399910")]).then(n.bind(n,826181));return n=>(0,l.jsx)(i,{...n,premiumGroupSubscriptionId:e,premiumGroupInviteId:t,premiumGroupPrimaryName:r,isExistingSub:s,onClose:async()=>{c||(c=!0,eB._.dispatch(b.jej.WOW_MOMENT_CONFIRMATION_MODAL_CLOSED),eZ.A.isDisplayingWowMomentConfirmation&&eZ.A.isAnimated?setTimeout(()=>{n.onClose()},eF.K):await n.onClose())}})},{onCloseRequest:()=>{c||(c=!0,eB._.dispatch(b.jej.WOW_MOMENT_CONFIRMATION_MODAL_CLOSED),eZ.A.isDisplayingWowMomentConfirmation&&eZ.A.isAnimated?setTimeout(()=>{(0,d.closeModal)(o)},eF.K):(0,d.closeModal)(o))},modalKey:o})},disabled:t})}function e0(e){let{disabled:t,invite:i,channel:s}=e;return(0,l.jsx)(u.$,{variant:"secondary",size:"md",text:O.intl.string(eY.default["eYHh+z"]),onClick:function(){if(null==i||!s.isDM())return void eJ.A.captureMessage("CancelInviteButton onClick: unexpected state",{extra:{inviteIsNull:null==i,channelIsDM:s.isDM(),channelId:s.id,subscriptionGroupMemberId:i?.id,subscriptionId:i?.subscription,primaryUserId:i?.primary_user}});let e=s.getRecipientId(),t=v.default.getUser(e);null!=t&&(X.default.track(b.HAw.PREMIUM_GROUP_INVITE_EMBED_CANCEL_CLICKED,{invite_id:i.id,subscription_id:i.subscription,invited_user_id:e}),(0,d.openModalLazy)(async()=>{let{default:e}=await n.e("815554").then(n.bind(n,115225));return n=>(0,l.jsx)(e,{...n,subscriptionId:i.subscription,invitedUser:t,subscriptionGroupMemberId:i.id})}))},disabled:t})}function e1(e){let{message:t,header:n,body:i,compact:s,actionButton:a}=e;return(0,l.jsxs)(I.A,{className:eQ.og,compact:s,iconNode:(0,l.jsx)(eP.t,{size:"md",color:eg.A.colors.ICON_STRONG}),children:[(0,l.jsx)(L.E,{variant:"text-md/medium",color:"text-strong",children:t}),(0,l.jsxs)(eG.B,{direction:"horizontal",className:eQ.x,children:[(0,l.jsx)("img",{src:eq,alt:"",className:eQ.Sl}),(0,l.jsxs)("div",{className:eQ.Qs,children:[(0,l.jsx)(eH.E,{type:"beta",variant:"expressive"}),(0,l.jsx)("h2",{className:eQ.DD,children:n}),(0,l.jsx)(L.E,{variant:"text-md/medium",color:"text-subtle",children:i}),null!=a&&(0,l.jsx)("div",{className:eQ.UD,children:a})]})]})]})}let e2=function(e){let{message:t,channel:n,compact:i}=e,s=t.premiumGroupInviteId,{inviteState:a,isFetching:r,invite:o,currentUser:d,premiumSubscription:u}=(0,c.cf)([eK.A,v.default,eV.A],()=>({inviteState:null!=s?eK.A.getInviteState(s):eW.xI.NOT_FOUND,isFetching:null!=s&&eK.A.isFetching(s),invite:null!=s?eK.A.getInvite(s)?.invite:null,currentUser:v.default.getCurrentUser(),premiumSubscription:eV.A.getPremiumSubscription()}),[s]);if(null==d)return null;let m=t.author,x=d.id===m.id;if(r||a===eW.xI.FETCHING||a===eW.xI.UNKNOWN)return(0,l.jsx)(ew.Wb,{isHorizontal:!0});let g=(0,eX.o1)({sender:m,channel:n,isSender:x,inviteState:a});if(null==g)return null;let h=a===eW.xI.PENDING,f=null;return f=x?h?(0,l.jsx)(e0,{disabled:!1,invite:o,channel:n}):a===eW.xI.REMOVED?(0,l.jsx)(e0,{disabled:!0,invite:o,channel:n}):null:(0,l.jsx)(e$,{disabled:!h,invite:o,isExistingSub:null!=u}),(0,l.jsx)(e1,{message:g.message,header:g.header,body:g.body,compact:i,actionButton:f})};var e3=n(536637),e7=n.n(e3),e6=n(607399),e5=n(144165),e8=n(297264),e9=n(75678),e4=n(58703),te=n(975571),tt=n(158045),tn=n(851746),ti=n(727949),ts=n(664654),tl=n(303682),ta=n(465794),tr=n(378135),to=n(202541),tc=n(953081),td=n(954457);class tu extends a.Component{trialOffer;referralsSent;currentUser;recipientHasNitro;trialEndsAt;analyticsLocations;offerExpired;isSender;compact;constructor(e){super(e),this.trialOffer=e.trialOffer,this.referralsSent=e.referralsSent,this.currentUser=e.currentUser,this.recipientHasNitro=e.recipientHasNitro,this.trialEndsAt=e.trialEndsAt,this.analyticsLocations=e.analyticsLocations,this.compact=!0===e.compact,this.offerExpired=(0,tr.P)(this.trialOffer),this.isSender=this.currentUser.id===this.trialOffer.referrerId}getSystemMessageHeader(){let e=v.default.getUser(this.trialOffer.userId);if(this.isSender)return O.intl.format(O.t["4/EMxl"],{receiver:e?.username});let t=v.default.getUser(this.trialOffer.referrerId),n=t?.username!==void 0?t.username:"";return O.intl.format(O.t.yisueA,{sender:n,helpdeskArticle:te.A.getArticleURL(b.MVz.REFERRAL_PROGRAM)})}getTitleText(){let e=v.default.getUser(this.trialOffer.userId),t=null!=e?e.username:"???",n=v.default.getUser(this.trialOffer.referrerId),i=null!=n?n.username:"???";return this.recipientHasNitro&&!this.trialOffer.isRedeemed?O.intl.formatToPlainString(O.t["Mptau/"],{username:t}):this.offerExpired?this.isSender?O.intl.string(O.t["9SNdf4"]):O.intl.formatToPlainString(O.t["H0+MxK"],{userName:i}):O.intl.formatToPlainString(O.t.IiWKwg,{senderUserName:i,recipientUserName:t})}getBodyText(){return!this.recipientHasNitro||this.isSender||this.trialOffer.isRedeemed?this.offerExpired?null:O.intl.string(O.t.lQLlOb):O.intl.format(O.t.LwCwT9,{helpdeskArticle:te.A.getArticleURL(b.MVz.REFERRAL_PROGRAM)})}renderActions(){let e=this.currentUser.id!==this.trialOffer.userId||(0,tt.TW)(this.currentUser)||!this.currentUser.verified||(0,tr.P)(this.trialOffer),t=this.renderExpirationDate();return(0,l.jsxs)("div",{className:tc.UD,children:[(0,l.jsx)("div",{children:(0,l.jsx)(u.$,{variant:"primary",disabled:e,size:"sm",text:O.intl.string(O.t.O0etsF),onClick:()=>{(0,e9.A)({initialPlanId:null,subscriptionTier:to.pe.TIER_2,analyticsLocations:this.analyticsLocations,trialId:this.trialOffer.trialId,referralTrialOfferId:this.trialOffer.id})}})}),(0,l.jsx)(L.E,{variant:"text-xs/semibold",color:"none",className:tc.yu,children:t})]})}renderExpirationDate(){let{trialOffer:e,trialEndsAt:t}=this.props;if(e.isRedeemed&&!this.isSender&&null!==t)return O.intl.formatToPlainString(O.t.nP0ivR,{date:(0,e4.i$)(e7()(t),"LL")});if(this.recipientHasNitro||null==e.expiresAt)return null;let n=e7()(e.expiresAt);return this.offerExpired?O.intl.formatToPlainString(O.t.PuSHfU,{date:(0,e4.i$)(e7()(n),"LL")}):(0,ti.GQ)(n.valueOf())}renderMedia(){return(0,l.jsx)("div",{className:tc.Qj})}render(){let e=()=>{let e=v.default.getUser(this.trialOffer.userId),t=null!=e?e.username:"???",n=v.default.getUser(this.trialOffer.referrerId),i=null!=n?n.username:"???";if(this.isSender)if(this.recipientHasNitro&&!this.trialOffer.isRedeemed)return{headerText:O.intl.formatToPlainString(O.t.qABVhL,{recipient:t}),bodyText:O.intl.formatToPlainString(O.t.u7hyDx,{helpdeskArticle:te.A.getArticleURL(b.MVz.REFERRAL_PROGRAM)})};else return{headerText:O.intl.string(O.t.LAGZfq),bodyText:O.intl.formatToPlainString(O.t["0gnFLC"],{recipient:t})};return this.offerExpired?{headerText:O.intl.string(O.t.nYvpUl),bodyText:O.intl.formatToPlainString(O.t.wJdBEZ,{sender:i})}:{headerText:O.intl.string(O.t.HtTvXA),bodyText:O.intl.formatToPlainString(O.t.wOQByA,{sender:i})}},t=(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(ta.A,{disabled:this.offerExpired,subscriptionTier:to.pe.TIER_2,buttonTextOverride:O.intl.string(O.t.O0etsF),size:"md",variantOverride:"expressive"}),(0,l.jsx)(L.E,{variant:"text-md/medium",color:"text-subtle",children:this.renderExpirationDate()})]}),i=(0,l.jsx)(u.$,{variant:"primary",disabled:!1,size:"md",onClick:()=>(function(e){let{analyticsLocations:t,startingScreen:i}=e;X.default.track(b.HAw.REFERRAL_PROGRAM_SHARE_MODAL_CTA_CLICKED,{location_stack:t}),(0,d.openModalLazy)(async()=>{let{default:e}=await Promise.resolve().then(n.bind(n,303682));return t=>(0,l.jsx)(e,{...t,startingScreen:i})})})({analyticsLocations:[],startingScreen:this.referralsSent.size===ts.Z?tl.SelectFriendsModalScreens.REMINDER:tl.SelectFriendsModalScreens.SELECT_FRIENDS}),text:O.intl.string(O.t.Lm2nFc)}),s=this.isSender?i:t,a=(0,l.jsx)(e5._,{src:td.A,height:84,width:144,className:tc.ms}),{headerText:r,bodyText:o}=e();return(0,l.jsxs)(I.A,{className:tc.SB,iconNode:(0,l.jsx)(eP.t,{size:"md",color:eg.A.colors.ICON_STRONG}),iconContainerClassName:tc.J5,compact:this.compact,children:[(0,l.jsx)(L.E,{variant:"text-md/medium",color:"text-strong",children:this.getSystemMessageHeader()}),(0,l.jsxs)("div",{className:tc.i2,children:[a,(0,l.jsxs)("div",{className:tc.KX,children:[(0,l.jsxs)("div",{className:tc.xJ,children:[(0,l.jsx)(e8.D,{variant:"heading-md/semibold",color:"text-strong",children:r}),(0,l.jsx)(L.E,{variant:"text-md/medium",color:"text-subtle",children:o})]}),(0,l.jsx)("div",{className:tc.ox,children:s})]})]})]})}}function tm(e){let{userTrialOfferId:t,canRenderReferralEmbed:n,compact:i}=e,{trialOffer:s,isResolving:a,referralsSent:r}=(0,c.cf)([tn.A],()=>({trialOffer:n?tn.A.getRelevantUserTrialOffer(t):null,isResolving:!!n&&tn.A.isResolving(t),referralsSent:tn.A.getRecipientStatus()}),[n,t]),o=v.default.getCurrentUser(),d=(0,c.bG)([v.default],()=>null!=s&&(0,tt.TW)(void 0!==o&&s.userId===o.id?o:v.default.getUser(s.userId))),u=(0,c.bG)([eV.A],()=>d?eV.A.getPremiumTypeSubscription()?.trialEndsAt:null),{analyticsLocations:m}=(0,F.Ay)(w.A.SHARE_NITRO_EMBED);return a?(0,l.jsx)(ew.Wb,{isHorizontal:!e6.Fr}):n&&null!=s&&void 0!==o?(0,l.jsx)(tu,{trialOffer:s,referralsSent:r,currentUser:o,recipientHasNitro:d,trialEndsAt:u,analyticsLocations:m,compact:i}):(0,l.jsx)("div",{className:tc.TU,children:(0,l.jsx)("div",{className:tc.Gq})})}var tx=n(638916),tg=n(834516),th=n(28863),tf=n(342296),tA=n(486020),t_=n(552691);function tE(e,t){let n=a.useRef(null);return a.useCallback(i=>(s,a)=>{let r=tA.Ay.getApplicationIconURL({id:i.id,icon:i.icon,bot:i.bot,botIconFirst:!0}),{bot:o}=i;return null==o?s:(0,l.jsx)(tf.A,{targetElementRef:n,userId:o.id,avatarUrl:r,guildId:e.guild_id,channelId:e.id,messageId:t.id,clickTrap:!0,children:e=>(0,l.jsx)(th.Anchor,{...e,ref:n,children:s})},a)},[e,t.id])}var tp=n(448761),tC=n(215026),tI=n(905499),tN=n(60270),tj=n(241326),tT=n(478016),tv=n(39470);let tS={[tp.l.REPORT_TO_MOD_BAN_USER]:()=>tv.default.komFTv,[tp.l.REPORT_TO_MOD_KICK_USER]:()=>tv.default.FAJmJV,[tp.l.REPORT_TO_MOD_TIMEOUT_USER]:()=>tv.default["90r/sR"]},tO={[tp.l.REPORT_TO_MOD_DELETED_MESSAGE]:()=>tv.default["4023i8"],[tp.l.REPORT_TO_MOD_CLOSED_REPORT]:()=>tv.default.UE81zV};function tR(e){let{type:t}=e,n=null;switch(t){case tp.l.REPORT_TO_MOD_BAN_USER:n=tC.w;break;case tp.l.REPORT_TO_MOD_KICK_USER:n=tI.N;break;case tp.l.REPORT_TO_MOD_TIMEOUT_USER:n=tN.g;break;case tp.l.REPORT_TO_MOD_DELETED_MESSAGE:n=tj.TrashIcon;break;case tp.l.REPORT_TO_MOD_CLOSED_REPORT:n=tT.U}return null!=n?(0,l.jsx)(n,{size:"refresh_sm",color:"currentColor"}):null}function tM(e){let{message:t,channel:n,compact:i}=e,{author:s,mentions:a,type:r}=t,o=(0,k.Ay)(t),d=t.getChannelId(),u=(0,c.bG)([v.default],()=>v.default.getUser(a[0]),[a]),m=(0,k.m2)(s,n),x=(0,C.P)({user:s,channelId:d,guildId:n.guild_id,messageId:t.id})(m),g=(0,k.d8)(u,n),h=(0,C.P)({user:u,channelId:d,guildId:n.guild_id,messageId:t.id})(g),f=tS[r]??null;if(null==f)return null;let A=O.intl.format(f(),{actorName:o.nick,actorHook:x,targetName:g?.nick,targetHook:h});return(0,l.jsx)(I.A,{iconNode:(0,l.jsx)(tR,{type:r}),timestamp:t.timestamp,compact:i,children:A})}function tL(e){let{message:t,channel:n,compact:i}=e,{author:s,type:a}=t,r=(0,k.Ay)(t),o=t.getChannelId(),c=(0,k.m2)(s,n),d=(0,C.P)({user:s,channelId:o,guildId:n.guild_id,messageId:t.id})(c),u=tO[a]??null;if(null==u)return null;let m=O.intl.format(u(),{actorName:r.nick,actorHook:d});return(0,l.jsx)(I.A,{iconNode:(0,l.jsx)(tR,{type:a}),timestamp:t.timestamp,compact:i,children:m})}function ty(e){let{message:t,channel:n,compact:i}=e,{type:s}=t;return s===tp.l.REPORT_TO_MOD_BAN_USER||s===tp.l.REPORT_TO_MOD_KICK_USER||s===tp.l.REPORT_TO_MOD_TIMEOUT_USER?(0,l.jsx)(tM,{message:t,channel:n,compact:i}):(0,l.jsx)(tL,{message:t,channel:n,compact:i})}var tk=n(849736),tU=n(63995),tD=n(105530),tb=n(353202),tP=n(747926);let tG=[{id:"749054660769218631",format_type:3,description:"Wumpus waves hello",name:"Wave"},{id:"751606379340365864",format_type:3,description:"Nelly peeks around a wall and waves hello",name:"Wave"},{id:"754108890559283200",format_type:3,description:"Clyde cheerfully waving",name:"Wave"},{id:"781291131828699156",format_type:2,description:"Choco waves in greeting",name:"Wave"},{id:"816087792291282944",format_type:3,description:"Doggo spins and greets you",name:"Sup"},{id:"819128604311027752",format_type:3,description:"Peach raising her arms in distress",name:"Scream"}];var tH=n(179847);function tw(e){var t;let n,i,{channel:s,message:r}=e,o=(t=r.id,i=((null!=(n=v.default.getCurrentUser()?.id)?W.default.extractTimestamp(n):0)+W.default.extractTimestamp(t))%tG.length,tG[i]),c=a.useCallback(()=>{(0,Y.i)({type:J.oU.FORM,content:"",channel:s}).then(e=>{let{valid:t}=e;if(t){var n;n=o.id,g.A.sendGreetMessage(s.id,n,g.A.getSendMessageOptionsForReply({channel:s,message:r,shouldMention:!0,showMentionToggle:!0})),X.default.track(b.HAw.WELCOME_CTA_CLICKED,{is_reply:!0,sticker_id:n,target_user:r.author.id,sender:v.default.getCurrentUser()?.id})}})},[s,r,o]);return(0,l.jsx)("div",{className:tH.T,children:(0,l.jsx)(u.$,{icon:{type:"sticker",asset:o,component:z.A},text:O.intl.string(O.t["7Tj6HT"]),onClick:c,variant:"secondary"})})}function tF(e){let{message:t,channel:n}=e,i=n.getGuildId(),s=(0,c.bG)([v.default,K.A,et.A,T.Ay],()=>{let e=v.default.getCurrentUser(),s=(0,Z.UJ)(n),l=K.A.can(b.xBc.SEND_MESSAGES,n),a=null!=i&&null!=e&&T.Ay.getMember(i,e.id)?.isPending,r=t.author.bot,o=et.A.getGuild(i),c=null!=o&&(o.systemChannelFlags&b.ogj.SUPPRESS_JOIN_NOTIFICATION_REPLIES)==0;return l&&!s&&!a&&!r&&c});return null!=i&&s?(0,l.jsx)(tw,{message:t,channel:n}):null}var tV=n(470710),tB=n(734057),tJ=n(290863),tz=n(309010),tZ=n(977997),tK=n(562153),tX=n(521981),tW=n(782603),tY=n(562708),tQ=n(778712),tq=n(214947),t$=n(597770),t0=n(966327),t1=n(139286),t2=n(427358),t3=n(242874),t7=n(507104),t6=n(51501),t5=n(5755),t8=n(690802);let t9=(0,tQ.FT)(tQ._3.SIZE_56),t4=(0,tQ.FT)(tQ._3.SIZE_24);function ne(e){let{user:t,ariaLabel:n,showCutout:i}=e,s=a.useId(),r="u">typeof document&&document.documentElement?.dir==="rtl"?-2:t9-t4- -2,o=t9-t4- -3;return(0,l.jsxs)("svg",{width:t9,height:t9,viewBox:`0 0 ${t9} ${t9}`,className:t8.XH,children:[i&&(0,l.jsxs)("mask",{id:s,maskUnits:"userSpaceOnUse",children:[(0,l.jsx)("rect",{x:0,y:0,width:t9,height:t9,fill:"white"}),(0,l.jsx)("circle",{cx:r+t4/2,cy:o+t4/2,r:t4/2+2,fill:"black"})]}),(0,l.jsx)("foreignObject",{x:0,y:0,width:t9,height:t9,mask:i?`url(#${s})`:void 0,children:(0,l.jsx)(t0.A,{className:t8.A6,user:t,"aria-label":n,size:tQ._3.SIZE_56})})]})}function nt(e){let{giftIntentType:t,recipientUser:i,analyticsPage:s,analyticsSection:r,innerRef:o}=e,m=(0,c.bG)([v.default],()=>v.default.getCurrentUser()),{analyticsLocations:x}=(0,F.Ay)(w.A.PREMIUM_GIFT_INTENT_CARD),g=(0,c.bG)([t7.Ay],()=>t7.Ay.getFriendAnniversaryYears(i.id)),h=(0,t6.$u)(t),{openGiftModal:f}=(0,t5.$)({giftRecipient:i,analyticsLocations:x,analyticsLocation:h.chat,analyticsObject:{page:s,section:r,object:b.ZSU.BUTTON_CTA,objectType:b.AnalyticsObjectTypes.GIFT},location:"gift-intent-card"});function A(){switch(t){case to.np.FRIEND_ANNIVERSARY:return O.intl.string(O.t.ilhtIa);case to.np.UNSPECIFIED:return;default:return(0,t3.yE)(t)}}return a.useEffect(()=>{(0,t1.x)({name:tY.ImpressionNames.GIFT_INTENT_CARD,type:tY.ImpressionTypes.VIEW,properties:{gift_intent_type:t,num_friend_anniversaries:t7.Ay.getFriendAnniversaries().length}})},[t]),(0,l.jsx)("div",{ref:o,className:t8.Qs,children:(0,l.jsxs)("div",{className:t8.gx,children:[(0,l.jsxs)("div",{className:t8.ou,children:[(0,l.jsxs)("div",{className:t8.HD,children:[(0,l.jsx)(ne,{user:i,ariaLabel:i.username,showCutout:null!=m}),null!=m&&(0,l.jsx)(t0.A,{className:t8.GM,user:m,"aria-label":i.username,size:tQ._3.SIZE_24})]}),(0,l.jsxs)("div",{className:t8.FS,children:[(0,l.jsx)(L.E,{variant:"text-md/medium",color:"text-strong",lineClamp:3,children:function(){switch(t){case to.np.FRIEND_ANNIVERSARY:return O.intl.string(O.t.CeQIwZ);case to.np.UNSPECIFIED:return;default:return(0,t3.yE)(t)}}()}),(0,l.jsxs)("div",{className:t8.jA,children:[(0,l.jsx)(tq.$,{size:"xs"}),(0,l.jsx)(L.E,{className:t8.Tm,variant:"text-md/normal",color:"text-subtle",lineClamp:1,children:function(){switch(t){case to.np.FRIEND_ANNIVERSARY:return O.intl.formatToPlainString(O.t.PpG27s,{numberOfYears:g});case to.np.UNSPECIFIED:return;default:return(0,t3.yE)(t)}}()})]})]})]}),(0,l.jsxs)("div",{className:t8.UD,children:[(0,l.jsx)(u.$,{size:"sm",variant:"secondary",text:O.intl.string(O.t.nffuyb),"aria-label":O.intl.string(O.t.nffuyb),onClick:e=>{e.stopPropagation(),X.default.track(b.HAw.GIFT_INTENT_CARD_SECONDARY_CTA_CLICKED,{gift_intent_type:t,cta_type:"send_message",location_stack:x}),(0,d.openModalLazy)(async()=>{let{default:e}=await Promise.all([n.e("780509"),n.e("695501")]).then(n.bind(n,367516));return n=>(0,l.jsx)(e,{...n,giftIntentType:t,analyticsLocationHistory:x,recipient:i})})}}),(0,l.jsx)(u.$,{size:"sm",variant:"expressive",text:A(),icon:t$.GiftIcon,"aria-label":A(),onClick:function(e){e.stopPropagation();let n=t2.A.getUserAffinity(i.id);X.default.track(b.HAw.GIFT_INTENT_ACTION_BUTTON_CLICKED,{gift_intent_type:t,affinity:n?.dmProbability,location_stack:x}),f()}})]})]})})}var nn=n(147036),ni=n(36889);function ns(e){let{giftIntentType:t,recipientUser:n,channel:i}=e;return(0,l.jsx)(I.A,{contentClassName:ni.o9,iconContainerClassName:ni.zc,iconNode:(0,l.jsx)(tW.BellIcon,{colorClass:ni.Kk}),children:(0,l.jsx)(nt,{giftIntentType:t,recipientUser:n,analyticsPage:(0,nn.DJ)(i),analyticsSection:b.JJy.CHANNEL})})}var nl=n(438729),na=n(862482),nr=n(725807),no=n(900443);function nc(e){let{message:t,channel:n}=e,i=null!=n.guild_id?b.JJy.TEXT_IN_VOICE:b.JJy.CHANNEL_TEXT_AREA;return(0,l.jsx)(I.A,{contentClassName:no.o9,iconContainerClassName:no.zc,iconNode:(0,l.jsx)(tW.BellIcon,{colorClass:no.Kk}),children:(0,l.jsxs)("div",{className:no.kL,children:[(0,l.jsxs)("div",{children:[(0,l.jsx)(L.E,{variant:"text-sm/medium",children:t.content}),(0,l.jsxs)("div",{className:no.C5,children:[(0,l.jsx)(eP.t,{size:"xs",colorClass:no.bu}),(0,l.jsx)(L.E,{variant:"text-xs/medium",className:no.vp,children:O.intl.string(O.t["BMw+7I"])})]})]}),(0,l.jsx)("div",{className:no.UD,children:(0,l.jsx)(nr.A,{showGradient:!0,iconClassName:no.PC,subscriptionTier:to.pe.TIER_2,textOptions:{textOverride:O.intl.string(O.t.Y2WKTl)},size:na.$n.Sizes.SMALL,premiumModalAnalyticsLocation:{section:i,object:b.ZSU.MESSAGE}})})]})})}var nd=n(812299);function nu(e){let{message:t,compact:i,appNameHook:s,addingUser:r,addingUserHook:o}=e,c=(0,k.Ay)(t),d=s(c);function u(e,n){return(0,l.jsxs)(a.Fragment,{children:[d(e,`${n}-name`),(0,nd.y)({message:t,user:t.author,channel:void 0,compact:!1,isRepliedMessage:!1})]},n)}let m=null!=r?O.intl.format(O.t["/qIck6"],{username:r.nick,usernameHook:o(r),appName:c.nick,appNameHook:u}):O.intl.format(O.t.LlJum4,{appName:c.nick,appNameHook:u});return(0,l.jsx)(I.A,{icon:n(617184),timestamp:t.timestamp,compact:i,children:m})}var nm=n(837381),nx=n(933832),ng=n(138134),nh=n(866665),nf=n(231483),nA=n(123292),n_=n(709066),nE=n(845625),np=n(449585),nC=n(995786),nI=n(741231),nN=n(589022),nj=n(367513),nT=n(47167),nv=n(332173),nS=n(95701),nO=n(994500),nR=n(449054);function nM(e){let{channel:t,onClick:n,beforeTransition:i,className:s,openChatWithoutConnecting:a}=e,r=(0,c.bG)([v.default,nO.A],()=>null==t?"":(0,nT.m1)(t,v.default,nO.A),[t]);return(0,l.jsx)(nh.m,{"data-pending-richtooltip-migration":!0,__unsupportedReactNodeAsText:r,position:"top",children:(0,l.jsx)(nv.A,{role:"link",className:s,onClick:e=>{e.stopPropagation(),null!=n?n():(null!=i&&i(),(0,d.closeAllModals)(),function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e||null==t)return;let i=et.A.getGuild(e);if(i?.joinedAt==null)return nR.Z2(e,{},{channelId:t});let s=tB.A.getChannel(t);if(null!=s&&(0,nS.ay)(s.type)){if(n){nj.A.updateChatOpen(s.id,!0),(0,N.pX)(b.BVt.CHANNEL(e,t));return}h.default.selectVoiceChannel(s.id);return}(0,N.pX)(b.BVt.CHANNEL(e,t))}(t?.guild_id,t?.id,a))},iconType:(0,nn.QG)(t),children:r})})}var nL=n(491182),ny=n(622868),nk=n(868892);function nU(e){let{message:t,channel:n,content:i,className:s,compact:a,popoutProps:r,hideTimestamp:o=!1,withFooter:c=!1,...d}=e,u=(0,k.Ay)(t);return(0,l.jsx)("div",{className:eT()({[nk.Ym]:c},nk.gD,{[nk.oE]:a},s),children:(0,l.jsx)(nL.A,{...d,className:eT()(nk.zC,{[nk.oE]:a}),childrenMessageContent:(0,l.jsx)(nl.Ay,{className:eT()(nk.__invalid_messageContent,{[nk.oE]:a}),message:t,content:i,compact:a??!1}),childrenHeader:(0,l.jsx)(ny.Ay,{message:t,channel:n,author:u,guildId:n?.guild_id,compact:a,hideTimestamp:o,className:eT()(nk.wx,{[nk.oE]:a}),...r??{}}),compact:a,author:u})})}var nD=n(10364),nb=n(837528),nP=n(754459),nG=n(809115),nH=n(381941),nw=n(705751),nF=n(200700),nV=n(6829);function nB(e,t){let{popouts:n,selected:i,setPopout:s}=(0,nP.A)(e.id,nH.Fd),{usernameProfile:l,avatarProfile:r}=n,o=(0,nb.r4)(e.author.id,t.id),c=(0,nb.UY)(e.author.id,t.id,e.id),d=(0,nb.m)(e,t,l,s);return{selected:i,onContextMenu:o,onContextMenuModerateUser:c,onClickUsername:d,onClickAvatar:(0,nb.Jo)(r,s),onPopoutRequestClose:a.useCallback(()=>s({usernameProfile:!1,avatarProfile:!1,referencedUsernameProfile:!1}),[s]),renderPopout:nD.A,showAvatarPopout:r,showUsernamePopout:l}}function nJ(e,t,n){return a.useMemo(()=>{if(null!=t&&null!=n)return i=>(0,l.jsx)(nN.A,{...i,user:t,currentUser:n,guildId:e.guild_id,channelId:e.id})},[e,t,n])}function nz(e){let{children:t,className:n,compact:i}=e;return(0,l.jsx)("div",{className:eT()(nV.xQ,n,{[nV.oE]:i}),children:t})}function nZ(e){let{children:t,className:n}=e;return(0,l.jsx)("div",{className:eT()(nV.A3,n),children:t})}function nK(e){switch(e){case nE.G.DELETE_USER_MESSAGE:return(0,l.jsx)(tj.TrashIcon,{size:"xs",color:"currentColor",className:nV.yr});case nE.G.SET_COMPLETED:return(0,l.jsx)(nx.CheckmarkLargeIcon,{size:"xs",color:"currentColor",className:eT()(nV.yr,nV.r0)});case nE.G.SUBMIT_FEEDBACK:return(0,l.jsx)(ng.FlagIcon,{size:"xs",color:"currentColor",className:nV.yr});default:return null}}function nX(e){let{alertAction:t,guildId:n}=e,i=(0,c.bG)([v.default],()=>v.default.getUser(t.actor),[t.actor]);try{let e=parseInt(t.actionType);if(null==i)return nK(e);let s=function(e,t,n){let i=tK.Ay.getNickname(n,null,t)??ez.Ay.getUserTag(t),s=e7()(e.ts),l=`${i} ${s.fromNow()}`;try{switch(parseInt(e.actionType)){case nE.G.DELETE_USER_MESSAGE:return O.intl.formatToPlainString(O.t.BtKE9h,{userName:i,timestamp:s.fromNow()});case nE.G.SET_COMPLETED:return O.intl.formatToPlainString(O.t.dyo9US,{userName:i,timestamp:s.fromNow()});case nE.G.SUBMIT_FEEDBACK:return O.intl.formatToPlainString(O.t["C9/kIO"],{userName:i,timestamp:s.fromNow()});default:return l}}catch(e){return l}}(t,i,n);return(0,l.jsx)(nh.m,{text:s,children:nK(e)})}catch(e){return null}}function nW(e){let{alertActionsExecution:t,guildId:n}=e,i=Object.values(t.actions).sort((e,t)=>e.actionType<t.actionType?1:-1);return(0,l.jsx)("div",{className:nV.q_,children:i.map(e=>(0,l.jsx)(nX,{alertAction:e,guildId:n},e.actionType))})}let nY=a.memo(function(e){let t,{message:n,channel:i,embedChannel:s,compact:a,interactionUserId:r}=e,o=nB(n,i),c=nJ(i,n.author),d=(0,k.Ay)(n),u=(0,ny.tO)({message:n,channel:i,author:d,guildId:i?.guild_id,compact:a,...o},c),m=v.default.getUser(r),x=nB(n,i),g=nJ(i,m,v.default.getCurrentUser());if(null!=m){let e=(0,k.FT)(m,i),s=(0,ny.tO)({message:n,channel:i,author:e,guildId:i?.guild_id,compact:a,...x},g);t=()=>s}return(0,l.jsx)(L.E,{variant:"text-md/normal",color:"text-strong",tag:"span",className:nV.he,children:(0,E.fu)(n,s,function(){return(0,l.jsx)("div",{className:nV.aT,children:(0,l.jsx)(nM,{channel:s,className:nV.HA,openChatWithoutConnecting:!0})})},function(){return u},t)})});function nQ(e){let{id:t,compact:n,message:i,channel:s}=e,{avatarSrc:r,eventHandlers:{onMouseEnter:o,onMouseLeave:d}}=(0,nG.a)(!0),{onFocus:u,...m}=(0,nm.rm)(t??""),{isFocused:x,handleFocus:g,handleBlur:f}=(0,nb.G8)(u),A=(0,c.bG)([y.Ay],()=>y.Ay.keyboardModeEnabled),_=(0,c.bG)([K.A],()=>K.A.can(b.xBc.MANAGE_MESSAGES,s),[s]),{ruleName:p,embedChannel:C,decisionId:N,keywordMatchedContent:j,keyword:T,content:v,flaggedMessageId:S,timeoutDuration:R,decisionReason:M,alertActionsExecution:k,quarantineType:U,interactionUserId:D}=(0,E.Ay)(i),P=a.useMemo(()=>(0,tX.Tz)(v,j,s.id),[v,j,s]),{selected:G,...H}=nB(i,s),w=a.useCallback(()=>{(0,np.w2)(i.id,v,N,s)},[i.id,v,N,s]),F=a.useCallback(e=>{null!=S&&null!=C&&(e.stopPropagation(),e.preventDefault(),(0,nI.A)(b.BVt.CHANNEL(C?.guild_id,C?.id,S)))},[C,S]),V=a.useCallback(e=>{null!=C&&(h.default.selectChannel({guildId:C.guild_id,channelId:e,messageId:i.id}),(0,eh.iN)(e))},[i,C]),B=a.useCallback(()=>{(0,nC.E5)(i.id,s,nE.G.DELETE_USER_MESSAGE)},[s,i.id]),J=(0,nF.getFriendlyDurationString)(Number(R)),z=null!=M,Z=_&&null!=S&&(null==k||!k.actions.hasOwnProperty(nE.G.DELETE_USER_MESSAGE)),X=i.embeds.length>0?i.embeds[0].fields.find(e=>"channel_id"===e.rawName)?.rawValue:null,W=null!=X;return(0,l.jsx)("div",{onMouseEnter:o,onMouseLeave:d,children:(0,l.jsx)(I.A,{className:eT()(nV.rs,{[nV.oE]:n}),iconNode:n?null:(0,l.jsx)(nG.l,{src:r}),iconContainerClassName:nV.zc,compact:n,children:(0,l.jsxs)("div",{className:eT()(nV.Qs,{[nV.oE]:n}),children:[(0,l.jsx)(ny.ix,{message:i,messageClassname:nV.he,className:eT()(nV.QV,nV.he,{[nV.oE]:n}),username:(0,l.jsxs)("div",{className:nV.he,children:[(0,l.jsx)(L.E,{variant:"text-md/normal",color:"text-brand",tag:"span",className:nV.Xh,children:O.intl.string(O.t.hG1StD)}),(0,l.jsx)(n_.A,{type:nw.nu.SYSTEM_DM,className:nV.Al}),(0,l.jsx)(nY,{message:i,channel:s,embedChannel:C,compact:n,interactionUserId:D})]}),compact:n,showTimestamp:!0}),(0,l.jsx)("div",{className:eT()(nV.BK,{[nV.oE]:n}),children:(0,l.jsx)(nU,{...m,message:i,channel:C,content:P,compact:n,withFooter:!0,hideTimestamp:!0,className:eT()(nV.gD,{[nV.oE]:n,[nV.wH]:G||A&&x,[nV.JD]:null!=S&&null!=C}),childrenAccessories:(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:nV.Y4,children:[null!=T&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(L.E,{variant:"text-xs/medium",color:"text-muted",tag:"span",children:O.intl.format(O.t.SYIUTR,{keyword:T})}),(0,l.jsx)("div",{className:eT()(nV.Om,nV.Gx)})]}),null!=p&&(0,l.jsx)(L.E,{variant:"text-xs/medium",color:"text-muted",tag:"span",children:O.intl.format(O.t.ZoOyKB,{ruleName:p})}),null!=J&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:eT()(nV.Om,nV.Gx)}),(0,l.jsx)(L.E,{variant:"text-xs/medium",color:"text-muted",tag:"span",className:nV.__invalid_footerText,children:O.intl.format(O.t["3LYql6"],{duration:J})})]}),null!=U&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:eT()(nV.Om,nV.Gx)}),(0,l.jsx)(L.E,{variant:"text-xs/medium",color:"text-muted",tag:"span",className:nV.nx,children:O.intl.format(O.t["26bB2M"],{reason:(0,E.o2)(U)})})]})]}),z?(0,l.jsx)(nZ,{children:(0,l.jsx)(L.E,{variant:"text-xs/medium",color:"text-default",tag:"span",children:M})}):null]}),popoutProps:H,zalgo:!0,onFocus:g,onBlur:f,onClick:F})}),(0,l.jsx)(nz,{compact:n,children:(0,l.jsxs)("div",{className:eT()(nV.Y4,nV.UD,{[nV.oE]:n}),children:[(0,l.jsxs)("div",{className:nV.AX,children:[(0,l.jsx)(nf.ShieldIcon,{size:"xs",color:eg.A.unsafe_rawColors.BRAND_500.css,className:nV.Dq}),(0,l.jsx)(nA.Q,{variant:"primary",size:"sm",textVariant:"text-xs/normal",text:O.intl.string(O.t.DEoVWZ),onClick:function(e){H.onContextMenuModerateUser?.(e)}})]}),W?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:nV.Om}),(0,l.jsx)("div",{className:nV.AX,children:(0,l.jsx)(nA.Q,{onClick:()=>V(X),variant:"primary",size:"sm",textVariant:"text-xs/normal",text:O.intl.string(O.t.jtkj06)})})]}):null,(0,l.jsx)("div",{className:nV.Om}),(0,l.jsx)("div",{className:nV.AX,children:(0,l.jsx)(nA.Q,{onClick:w,variant:"primary",size:"sm",textVariant:"text-xs/normal",text:O.intl.string(O.t["94JbM3"])})}),Z?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:nV.Om}),(0,l.jsx)("div",{className:nV.AX,children:(0,l.jsx)(nA.Q,{onClick:B,variant:"primary",size:"sm",textVariant:"text-xs/normal",text:O.intl.string(O.t["3A52tY"])})})]}):null,null!=k?(0,l.jsx)(nW,{alertActionsExecution:k,guildId:s.guild_id}):null]})})]})})})}var nq=n(718564),n$=((i={}).JOIN_RAID="JOIN_RAID",i.DM_RAID="DM_RAID",i.MENTION_RAID="MENTION_RAID",i),n0=n(695366),n1=n(848847),n2=n(939249),n3=n(97808),n7=n(953822),n6=n(585510),n5=n(903093),n8=n(735699),n9=n(854627),n4=n(474352);function ie(){return(0,l.jsx)("div",{className:n4.Om})}function it(e){let{message:t,compact:n}=e,{notificationType:i}=(0,E.Bk)(t);switch(i){case E.ZA:case nq.W.RAID:return(0,l.jsx)(ia,{message:t,compact:n});case nq.W.MENTION_RAID:return(0,l.jsx)(ir,{message:t,compact:n});case nq.W.ACTIVITY_ALERTS_ENABLED:return(0,l.jsx)(il,{message:t,compact:n});case nq.W.INTERACTION_BLOCKED:return(0,l.jsx)(is,{compact:n});default:return(0,l.jsx)(ii,{compact:n})}}function ii(e){let{compact:t}=e;return(0,l.jsx)(io,{compact:t,header:(0,l.jsxs)(a.Fragment,{children:[(0,l.jsx)(n0.E,{size:"xs",color:eg.A.colors.TEXT_DEFAULT.css}),(0,l.jsx)(L.E,{variant:"text-md/semibold",color:"text-default",children:O.intl.string(O.t.VdZCcC)})]}),content:(0,l.jsx)(L.E,{variant:"text-md/normal",color:"text-muted",children:O.intl.string(O.t["NxHYX/"])})})}function is(e){let{compact:t}=e;return(0,l.jsx)(io,{compact:t,header:(0,l.jsxs)(a.Fragment,{children:[(0,l.jsx)(n0.E,{size:"xs",color:eg.A.colors.TEXT_DEFAULT.css}),(0,l.jsx)(L.E,{variant:"text-md/semibold",color:"text-default",children:O.intl.string(O.t["2qTBw/"])})]}),content:(0,l.jsx)(L.E,{variant:"text-md/normal",color:"text-muted",children:O.intl.string(O.t.Dc9wCp)})})}function il(e){let{message:t,compact:n}=e,i=v.default.getUser((0,E.ZD)(t)),s=tB.A.getBasicChannel(t.channel_id)?.guild_id,r=null!=s&&null!=i?T.Ay.getMember(s,i.id):null,{avatarSrc:o,avatarDecorationSrc:c,eventHandlers:d}=(0,n9.A)({userId:i?.id,guildId:s,size:12}),u=a.useRef(null);return(0,l.jsx)(io,{compact:n,header:(0,l.jsxs)(a.Fragment,{children:[(0,l.jsx)(n1.H,{size:"xs",color:eg.A.colors.TEXT_FEEDBACK_POSITIVE.css}),(0,l.jsx)(L.E,{variant:"text-md/semibold",color:"text-feedback-positive",children:O.intl.string(O.t.lVLiFp)})]}),subheader:(0,l.jsxs)("div",{className:n4.Ns,children:[(0,l.jsx)("div",{className:n4.gk,children:null!=r&&null!=i&&(0,l.jsxs)(a.Fragment,{children:[(0,l.jsx)(L.E,{variant:"text-xs/medium",color:"text-default",children:O.intl.string(O.t.qlFrXW)}),(0,l.jsx)(tf.A,{targetElementRef:u,user:i,guildId:s,channelId:t.channel_id,messageId:t.id,children:e=>(0,l.jsxs)(n2.D,{innerRef:u,className:n4.rI,...e,children:[(0,l.jsx)("div",{...d,children:(0,l.jsx)(n3.eu,{src:o,avatarDecoration:c,size:tQ._3.SIZE_16,"aria-label":"TODO"})}),(0,l.jsxs)(L.E,{variant:"text-xs/medium",style:{color:null!=r.colorString?r.colorString:eg.A.colors.TEXT_DEFAULT.css},children:[" ","@",i.username]})]})})]})}),(0,l.jsx)(ie,{}),(0,l.jsx)(L.E,{variant:"text-xs/medium",color:"text-default",children:e7()(t.timestamp).fromNow()})]}),content:(0,l.jsx)(L.E,{variant:"text-md/normal",color:"text-muted",children:O.intl.string(O.t["QV/8u5"])})})}function ia(e){let{message:t,compact:n}=e,{joinAttempts:i,raidDatetime:s,dmsSent:r,raidType:o,resolvedReason:d}=(0,E.Bk)(t),u=(0,c.bG)([tB.A],()=>tB.A.getChannel(t.channel_id),[t.channel_id]),m=u?.guild_id??null,{shouldShowIncidentActions:x}=(0,n6.Li)(m),g=(0,nb.Am)(t.author.id,t.channel_id),h=a.useCallback(()=>{let e=u?.guild_id;null!=e&&(0,np.is)(t.id,e)},[t.id,u]),f=o===n$.DM_RAID,A=f?n0.E:n7.E;return(0,l.jsx)(io,{compact:n,header:(0,l.jsxs)(a.Fragment,{children:[(0,l.jsx)(A,{size:"xs",color:eg.A.colors.TEXT_FEEDBACK_CRITICAL.css}),(0,l.jsx)(L.E,{variant:"text-md/semibold",color:"text-feedback-critical",children:f?O.intl.string(O.t["8+lHUb"]):O.intl.string(O.t.xMwcwV)})]}),subheader:(0,l.jsxs)("div",{className:n4.Ns,children:[null!=i&&(0,l.jsx)(L.E,{variant:"text-xs/medium",color:"text-default",children:O.intl.format(O.t["4ylIiu"],{joinCount:i})}),null!=r&&(0,l.jsx)(L.E,{variant:"text-xs/medium",color:"text-default",children:O.intl.format(O.t["5C8Mh3"],{dmsSent:r})}),null!=s&&(0,l.jsxs)(a.Fragment,{children:[(0,l.jsx)(ie,{}),(0,l.jsx)(L.E,{variant:"text-xs/medium",color:"text-default",children:e7()(s).fromNow()})]})]}),content:null!=s?(0,l.jsx)(L.E,{variant:"text-md/normal",color:"text-muted",children:O.intl.format(O.t["4QIIZl"],{dateTime:s.toLocaleString(O.intl.currentLocale,n5.yc)})}):null,footerButtons:x?(0,l.jsxs)("div",{className:n4.OZ,children:[(0,l.jsxs)("div",{className:n4.AX,children:[(0,l.jsx)(nf.ShieldIcon,{size:"xs",color:eg.A.unsafe_rawColors.BRAND_500.css,className:n4.Dq}),(0,l.jsx)(nA.Q,{variant:"primary",size:"sm",textVariant:"text-xs/medium",text:O.intl.string(O.t.DEoVWZ),onClick:function(e){g(e)}})]}),(0,l.jsx)(ie,{}),(0,l.jsx)("div",{className:n4.AX,children:(0,l.jsx)(nA.Q,{variant:"primary",textVariant:"text-xs/medium",size:"sm",text:(0,E.Oj)(d),onClick:h})})]}):null})}function ir(e){let{message:t,compact:n}=e,i=tB.A.getBasicChannel(t.channel_id)?.guild_id,{raidDatetime:s,decisionId:r,suspiciousMentionActivityUntil:o}=(0,E.Bk)(t);return(0,l.jsx)(io,{compact:n,header:(0,l.jsxs)(a.Fragment,{children:[(0,l.jsx)(n0.E,{size:"xs",color:eg.A.colors.TEXT_FEEDBACK_CRITICAL.css}),(0,l.jsx)(L.E,{variant:"text-md/semibold",color:"text-feedback-critical",children:O.intl.string(O.t.C2uIXE)})]}),subheader:(0,l.jsx)("div",{className:n4.Ns,children:null!=s&&(0,l.jsx)(L.E,{variant:"text-xs/medium",color:"text-default",children:e7()(s).fromNow()})}),content:(0,l.jsx)(L.E,{variant:"text-md/normal",color:"text-muted",children:O.intl.string(O.t.SWIWEV)}),footerButtons:(0,l.jsxs)("div",{className:n4.OZ,children:[(0,l.jsx)("div",{className:n4.AX,children:(0,l.jsx)(nA.Q,{variant:"primary",textVariant:"text-xs/medium",size:"sm",text:O.intl.string(O.t.oX14El),onClick:function(){null!=i&&null!=r&&(0,nC.W5)(i,r,()=>{(0,n8.w)(o),(0,nC.wu)(i)})}})}),(0,l.jsx)(ie,{}),(0,l.jsx)("div",{className:n4.AX,children:(0,l.jsx)(nA.Q,{variant:"primary",textVariant:"text-xs/medium",size:"sm",text:O.intl.string(O.t["1R7QIx"]),onClick:function(){null!=i&&em.A.open(i,b.BEX.GUILD_AUTOMOD,void 0,b.nd0.AUTOMOD_MENTION_SPAM)}})})]})})}function io(e){let{compact:t,header:n,subheader:i,content:s,footerButtons:a}=e;return(0,l.jsxs)("div",{className:eT()(n4.gD,{[n4.oE]:t}),children:[(0,l.jsxs)("div",{className:n4.Ux,children:[(0,l.jsxs)("div",{className:n4.LN,children:[(0,l.jsx)("div",{className:n4.MY,children:n}),null!=i&&(0,l.jsx)("div",{className:n4.m_,children:i})]}),s]}),null!=a&&(0,l.jsx)("div",{className:eT()(n4.Y4,n4.UX,{[n4.oE]:t}),children:a})]})}function ic(e){let{id:t,compact:n,message:i,channel:s}=e,{avatarSrc:a,eventHandlers:{onMouseEnter:r,onMouseLeave:o}}=(0,nG.a)(!0),{notificationType:c}=(0,E.Bk)(i),d=null==c||c===nq.W.RAID;return(0,l.jsx)("div",{onMouseEnter:r,onMouseLeave:o,children:(0,l.jsx)(I.A,{className:eT()(n4.rs,{[n4.oE]:n}),iconNode:n?null:(0,l.jsx)(nG.l,{src:a}),iconContainerClassName:n4.zc,compact:n,children:(0,l.jsxs)("div",{className:eT()(n4.Qs,{[n4.oE]:n}),children:[(0,l.jsx)(ny.ix,{message:i,messageClassname:n4.he,className:eT()(n4.QV,n4.he,{[n4.oE]:n}),username:(0,l.jsxs)("div",{className:n4.he,children:[(0,l.jsx)(L.E,{variant:"text-md/normal",color:"text-brand",tag:"span",className:n4.Xh,children:O.intl.string(O.t.hG1StD)}),(0,l.jsx)(n_.A,{type:nw.nu.SYSTEM_DM,className:n4.Al}),d&&(0,l.jsx)(L.E,{variant:"text-md/normal",color:"text-strong",tag:"span",className:n4.he,children:O.intl.string(O.t.ufawcw)})]}),compact:n,showTimestamp:!0}),(0,l.jsx)("div",{className:n4.BZ}),(0,l.jsx)(it,{message:i,compact:n})]})})})}function id(e){let{message:t,...n}=e;return(0,E.de)(t)?(0,l.jsx)(ic,{message:t,...n}):(0,l.jsx)(nQ,{message:t,...n})}var iu=n(480012);function im(e){let{message:t,compact:i,missed:s,joinable:a,usernameHook:r,onClickJoinCall:o}=e,c=(0,k.Ay)(t),d=c.nick,u=r(c),m=(0,iu.A)(t);return s?(0,l.jsx)(I.A,{icon:n(130158),timestamp:t.timestamp,compact:i,children:null!=m?O.intl.format(O.t.AcqBmO,{username:d,usernameHook:u,callDuration:m}):O.intl.format(O.t["43phHx"],{username:d,usernameHook:u})}):(0,l.jsxs)(I.A,{icon:n(175476),timestamp:t.timestamp,compact:i,children:[null!=m?O.intl.format(O.t["7TeC1P"],{username:d,usernameHook:u,callDuration:m}):O.intl.format(O.t.LuB5RD,{username:d,usernameHook:u}),a?(0,l.jsx)(I.A.Action,{onClick:o,children:O.intl.string(O.t.oa9mvZ)}):null]})}var ix=n(517905);function ig(e){let{children:t,messageReference:n,guildName:i}=e,s=a.useRef(null);if(null==n)return(0,l.jsx)(th.Anchor,{children:t});let{guild_id:r}=n;return null==r?(0,l.jsx)(th.Anchor,{children:t}):(0,l.jsx)(ix.A,{guildId:r,name:i,targetElementRef:s,children:e=>{let{"aria-controls":n,"aria-expanded":i,...a}=e;return(0,l.jsx)(th.Anchor,{...a,ref:s,children:t})}})}function ih(e){let{usernameHook:t,message:i,compact:s}=e,{content:a,timestamp:r,messageReference:o}=i,c=(0,k.Ay)(i),d=t(c),u=(a??"").split(" ").slice(0,-1).join(" "),m=O.intl.format(O.t["47CZc2"],{username:c.nick,usernameHook:d,webhookName:a,webhookNameHook:(e,t)=>(0,l.jsx)(ig,{messageReference:o,guildName:u,children:e},t)});return(0,l.jsx)(I.A,{icon:n(617184),timestamp:r,compact:s,children:m})}var iA=n(22231),i_=n(73028);function iE(e){let{message:t,usernameHook:n,compact:i}=e,s=(0,k.Ay)(t),a=n(s);return(0,l.jsx)(I.A,{iconNode:(0,l.jsx)(iA.PencilIcon,{size:"xs",color:"currentColor"}),timestamp:t.timestamp,compact:i,children:O.intl.format(O.t["4wLp25"],{username:s.nick,usernameHook:a,editGroupButton:(0,l.jsx)(L.E,{tag:"span",variant:"text-md/medium",color:"text-link",children:O.intl.string(O.t["5Q9+/L"])},`edit-group-button-${t.id}`),onEditGroup:()=>(0,i_.U)(t.channel_id,w.A.GROUP_DM_SYSTEM_MESSAGE_ICON)})})}var ip=n(663417),iC=n(429913),iI=n(564178);function iN(e){let{message:t,channel:n,compact:i}=e,s=(0,k.Ay)(t),a=(0,C.P)({user:t.author,channelId:n.id,guildId:n.guild_id,messageId:t.id})(s),r=(0,iC.h)(t.applicationId);if(null==r)return null;let o=O.intl.format(O.t.mAtJTC,{username:t.author.username,usernameHook:a,applicationName:r.name,applicationNameHook:()=>(0,l.jsx)(L.E,{className:iI.S,variant:"text-md/semibold",color:"text-strong",children:r.name},r.name),helpdeskArticle:"#"});return(0,l.jsx)(I.A,{iconNode:(0,l.jsx)(ip.RefreshIcon,{size:"sm",color:eg.A.colors.STATUS_POSITIVE}),timestamp:t.timestamp,compact:i,contentClassName:iI.H,children:o})}function ij(e){let{message:t,usernameHook:n,compact:i,isForumPost:s}=e,a=(0,k.Ay)(t),r=n(a),o=(0,c.bG)([tB.A],()=>tB.A.getChannel(t.channel_id)?.isGroupDM()??!1);return(0,l.jsx)(I.A,{compact:i,iconNode:(0,l.jsx)(iA.PencilIcon,{size:"xs",color:"currentColor"}),timestamp:t.timestamp,children:o?O.intl.format(""===t.content?O.t.AI1ZZr:O.t.geP3rU,{username:a.nick,usernameHook:r,channelName:(0,l.jsx)(L.E,{tag:"span",variant:"text-md/medium",color:"text-strong",children:t.content},`group-name-${t.id}`),editGroupButton:(0,l.jsx)(L.E,{tag:"span",variant:"text-md/medium",color:"text-link",children:O.intl.string(O.t["5Q9+/L"])},`edit-group-button-${t.id}`),onEditGroup:()=>(0,i_.U)(t.channel_id,w.A.GROUP_DM_SYSTEM_MESSAGE_NAME)}):O.intl.format(s?O.t.SOQ4hJ:O.t.oItgEw,{username:a.nick,usernameHook:r,channelName:t.content})})}var iT=n(366605);function iv(e){let{message:t,usernameHook:n,onClickPins:i,compact:s}=e,a=(0,k.Ay)(t),r=a.nick,o=n(a);function c(){if(null==t.messageReference)return;let{channel_id:e,message_id:n}=t.messageReference;g.A.jumpToMessage({channelId:e,messageId:n,flash:!0})}let d={iconNode:(0,l.jsx)(iT.t,{size:"sm",color:"currentColor"})};return(0,l.jsx)(I.A,{...d,timestamp:t.timestamp,compact:s,children:null!=t.messageReference?null==i?O.intl.format(O.t.lD5tup,{usernameHook:o,username:r,messageOnClick:c}):O.intl.format(O.t.yIDvPL,{usernameHook:o,username:r,pinsActionOnClick:i,messageOnClick:c}):null==i?O.intl.format(O.t.vfkjqx,{usernameHook:o,username:r}):O.intl.format(O.t.R7vZGZ,{usernameHook:o,username:r,pinsActionOnClick:i})})}var iS=n(497767);function iO(e){let t,{message:n,channel:i,compact:s}=e,a=n.getChannelId(),r=i.isDM()?i.getRecipientId():void 0,o=(0,c.bG)([v.default],()=>null!=r?v.default.getUser(r):void 0,[r]),d=(0,c.bG)([v.default],()=>v.default.getCurrentUser(),[]),u=null!=d&&n.author.id===d.id,m=(0,k.d8)(o,i),x=(0,C.P)({user:o,channelId:a,guildId:void 0,messageId:n.id})(m);if(!i.isDM()||null==o||null==d)return null;let g={username:m.nick,usernameHook:x},h=n.content;if(null!=h&&""!==h){let e=(0,l.jsx)(L.E,{tag:"span",variant:"text-md/medium",color:"text-strong",children:h},`note-${n.id}`);t=u?O.intl.format(O.t.IquUXd,{...g,note:e}):O.intl.format(O.t.ZOZy2q,{...g,note:e})}else t=u?O.intl.format(O.t.S6PRsh,g):O.intl.format(O.t["H/9Tlj"],g);return(0,l.jsx)(I.A,{iconNode:(0,l.jsx)(iS.V,{size:"sm",color:eg.A.colors.STATUS_POSITIVE}),timestamp:n.timestamp,compact:s,children:t})}function iR(e){let{message:t,compact:n,usernameHook:i}=e,s=(0,k.Ay)(t),a=i(s),{avatarSrc:r,eventHandlers:{onMouseEnter:o,onMouseLeave:c}}=(0,nG.a)(!0),d=""!==t.content?new Date(t.content).toLocaleString(O.intl.currentLocale,{hour:"numeric",minute:"2-digit",month:"2-digit",day:"2-digit",year:"numeric"}):"";return(0,l.jsx)("div",{onMouseEnter:o,onMouseLeave:c,children:(0,l.jsx)(I.A,{className:eT()(n4.rs,{[n4.oE]:n}),iconNode:n?null:(0,l.jsx)(nG.l,{src:r}),iconContainerClassName:n4.zc,compact:n,children:(0,l.jsxs)("div",{className:eT()(n4.Qs,{[n4.oE]:n}),children:[(0,l.jsx)(ny.ix,{message:t,messageClassname:n4.he,className:eT()(n4.QV,n4.he,{[n4.oE]:n}),username:(0,l.jsxs)("div",{className:n4.he,children:[(0,l.jsx)(L.E,{variant:"text-md/normal",color:"text-brand",tag:"span",className:n4.Xh,children:O.intl.string(O.t.hG1StD)}),(0,l.jsx)(n_.A,{type:nw.nu.SYSTEM_DM,className:n4.Al})]}),compact:n,showTimestamp:!0}),(0,l.jsx)("div",{className:eT()(n4.__invalid_messageContent,{[n4.oE]:n}),children:t.type===b.lAJ.GUILD_INCIDENT_ALERT_MODE_ENABLED?O.intl.format(O.t["+m8eD7"],{username:s.nick,usernameHook:a,time:d}):O.intl.format(O.t["BHeke+"],{username:s.nick,usernameHook:a})})]})})})}var iM=n(554146),iL=n(501419),iy=n(104510),ik=n(987144);function iU(e){let{guild:t,analyticsLocation:n,analyticsLocations:i,closeLayer:s,variant:r="expressive"}=e,[o,d]=a.useState(!1),{analyticsLocations:m}=(0,F.Ay)(i??[]),x=(0,c.bG)([v.default],()=>v.default.getCurrentUser()),g=x?.isPremiumGroupMember();async function h(){d(!0),await (0,ik.g)({analyticsLocations:m,analyticsLocation:{object:b.ZSU.BUTTON_CTA,objectType:b.AnalyticsObjectTypes.BUY,...n},guild:t,closeLayer:s,onClose:()=>{d(!1)}})}return(0,l.jsx)(u.$,{variant:r,size:"md",icon:iy._,text:O.intl.string(O.t.gKmQ1G),onClick:h,loading:o,disabled:g})}var iD=n(363487),ib=n(828162),iP=n(49999),iG=n(25525),iH=n(764828);let iw="https://cdn.discordapp.com/assets/content/d13cdfe882b0acba4f7752d488ba86dc628364d43eb3be876c8bb6f0bc80a240.png",iF="https://cdn.discordapp.com/assets/content/424bcefb880eff14d647b0467cf446e83c27321af508a2e0a5f707d80c42e58b.png";function iV(e){let{title:t,body:n,guild:i,analyticsLocations:s}=e,a=(0,c.bG)([y.Ay],()=>y.Ay.useReducedMotion);return(0,l.jsxs)("div",{className:iH.kL,children:[(0,l.jsx)("div",{className:iH.ZS,children:(0,l.jsx)("img",{className:iH.Sl,src:a?iF:iw,alt:"Boost gem"})}),(0,l.jsxs)("div",{className:iH.Qs,children:[(0,l.jsx)(e8.D,{variant:"heading-md/semibold",style:{marginTop:0,marginBottom:"var(--space-4)"},children:t}),(0,l.jsx)(L.E,{color:"text-muted",className:iH.rf,variant:"text-sm/medium",children:n})]}),(0,l.jsx)("div",{children:(0,l.jsx)(iU,{guild:i,analyticsLocations:s,analyticsLocation:{page:b.liQ.GUILD_CHANNEL,section:b.JJy.CHANNEL_TEXT_AREA}})})]})}function iB(e){let{guild:t}=e;a.useEffect(()=>{(0,iL.uh)(iM.M.FIRST_BOOSTER_UPSELL_OVERSEER,{dismissAction:iP.i.AUTO_DISMISS,guildId:t.id})},[t.id]);let n=(0,iD.A)(t.id);return(0,l.jsx)(iV,{title:O.intl.string(iG.default.qGDEON),body:O.intl.format(iG.default["s+HTdX"],{viewAllPerks:e=>(0,l.jsx)(n2.D,{tag:"a",role:"link",onClick:()=>{n?(0,ib.A)(t.id,w.A.GUILD_BOOSTING_FIRST_TIME_BOOSTER_UPSELL):(0,p.K4)({guildId:t.id,location:{section:b.JJy.CHANNEL_TEXT_AREA,object:b.ZSU.BOOST_ANNOUNCEMENT_UPSELL}})},children:e})}),guild:t,analyticsLocations:[w.A.GUILD_BOOSTING_FIRST_TIME_BOOSTER_UPSELL]})}function iJ(e){let{boostingPrompt:t,guild:n}=e;return t.guildBoostUpsellType===A.Mk.FIRST_BOOSTER?(0,l.jsx)(iB,{guild:n}):null}function iz(e){let{boostingPrompt:t,channel:n}=e,i=n.guild_id,s=(0,c.bG)([et.A],()=>et.A.getGuild(i),[i]);return null==s?null:(0,l.jsx)(I.A,{contentClassName:iH.FG,iconContainerClassName:iH.zc,iconNode:(0,l.jsx)(tW.BellIcon,{colorClass:iH.Kk}),children:(0,l.jsx)(iJ,{boostingPrompt:t,guild:s})})}var iZ=n(565255);let iK="this server";function iX(e){let{message:t,compact:i,guildName:s,onClick:a,onClickGuild:r}=e;return(0,l.jsx)(I.A,{icon:n(290388),timestamp:t.timestamp,compact:i,contentClassName:iZ.B,children:O.intl.format(O.t.bYdG3f,{guildName:s??iK,onClick:a,onClickGuild:r??(()=>{})})})}function iW(e){let{message:t,compact:n,guildName:i,onClickGuild:s}=e;return(0,l.jsx)(I.A,{iconNode:(0,l.jsx)(n0.E,{size:"custom",width:20,height:20,color:"currentColor",className:iZ.Q}),timestamp:t.timestamp,compact:n,contentClassName:iZ.B,children:O.intl.format(O.t.vzfXql,{guildName:i??iK,onClickGuild:s??(()=>{})})})}function iY(e){let{message:t,compact:n,guildName:i,onClickGuild:s}=e;return(0,l.jsx)(I.A,{iconNode:(0,l.jsx)(n0.E,{size:"custom",width:20,height:20,color:"currentColor",className:iZ.Q}),timestamp:t.timestamp,compact:n,contentClassName:iZ.B,children:O.intl.format(O.t["/TfvyR"],{guildName:i??iK,onClickGuild:s??(()=>{})})})}function iQ(e){let{message:t,compact:n,usernameHook:i}=e,s=(0,k.Ay)(t),a=i(s),{avatarSrc:r,eventHandlers:{onMouseEnter:o,onMouseLeave:c}}=(0,nG.a)(!0);return(0,l.jsx)("div",{onMouseEnter:o,onMouseLeave:c,children:(0,l.jsx)(I.A,{className:eT()(n4.rs,{[n4.oE]:n}),iconNode:n?null:(0,l.jsx)(nG.l,{src:r}),iconContainerClassName:n4.zc,compact:n,children:(0,l.jsxs)("div",{className:eT()(n4.Qs,{[n4.oE]:n}),children:[(0,l.jsx)(ny.ix,{message:t,messageClassname:n4.he,className:eT()(n4.QV,n4.he,{[n4.oE]:n}),username:(0,l.jsxs)("div",{className:n4.he,children:[(0,l.jsx)(L.E,{variant:"text-md/normal",color:"text-brand",tag:"span",className:n4.Xh,children:O.intl.string(O.t.hG1StD)}),(0,l.jsx)(n_.A,{type:nw.nu.SYSTEM_DM,className:n4.Al})]}),compact:n,showTimestamp:!0}),(0,l.jsx)("div",{className:eT()(n4.__invalid_messageContent,{[n4.oE]:n}),children:O.intl.format(O.t.qntXNQ,{username:s.nick,usernameHook:a})})]})})})}function iq(e){let{message:t,compact:n,usernameHook:i,channel:s}=e,a=(0,c.bG)([et.A],()=>et.A.getGuild(s.guild_id)),r=(0,k.Ay)(t),o=i(r),{avatarSrc:d,eventHandlers:{onMouseEnter:u,onMouseLeave:m}}=(0,nG.a)(!0);return(0,l.jsx)("div",{onMouseEnter:u,onMouseLeave:m,children:(0,l.jsx)(I.A,{className:eT()(n4.rs,{[n4.oE]:n}),iconNode:n?null:(0,l.jsx)(nG.l,{src:d}),iconContainerClassName:n4.zc,compact:n,children:(0,l.jsxs)("div",{className:eT()(n4.Qs,{[n4.oE]:n}),children:[(0,l.jsx)(ny.ix,{message:t,messageClassname:n4.he,className:eT()(n4.QV,n4.he,{[n4.oE]:n}),username:(0,l.jsxs)("div",{className:n4.he,children:[(0,l.jsx)(L.E,{variant:"text-md/normal",color:"text-brand",tag:"span",className:n4.Xh,children:O.intl.string(O.t.hG1StD)}),(0,l.jsx)(n_.A,{type:nw.nu.SYSTEM_DM,className:n4.Al})]}),compact:n,showTimestamp:!0}),(0,l.jsx)("div",{className:eT()(n4.__invalid_messageContent,{[n4.oE]:n}),children:O.intl.format(O.t.W0UBI3,{username:r.nick,usernameHook:o,guildName:a?.name??""})})]})})})}var i$=n(959988),i0=n(402216);function i1(e){let{message:t,channel:n,playingActivity:i,onJoinStream:s,usernameHook:a,compact:r}=e,o=(0,k.Ay)(t),c=(0,nT.Ay)(n),d=t.call?.duration,u=a(o),m=O.intl.format(O.t.FKXvaI,{username:o.nick,activityName:null!=i?i.name:"unknown",onJoinStream:s,usernameHook:u});return null!=d&&(m=O.intl.format(O.t.NEFxtd,{username:o.nick,duration:d.humanize(),channelName:c??"",usernameHook:u})),(0,l.jsx)(I.A,{iconNode:null!=d?(0,l.jsx)(i$.G,{size:"custom",color:"currentColor",width:20,height:20}):(0,l.jsx)(i0.Ay,{size:i0.Ay.Sizes.SMALL}),timestamp:t.timestamp,compact:r,children:m})}var i2=n(687966),i3=n(769015),i7=n(234003);function i6(e){let{message:t,channel:n,author:i,compact:s}=e,{nick:a}=(0,k.d8)(i,n),r=(0,C.P)({user:i,channelId:n.id,guildId:void 0,messageId:void 0})(),o=(0,iC.h)(t.applicationId);if(null==o)return null;let c=O.intl.format(O.t.m7Lwas,{username:a,usernameHook:r,gameName:o.name,gameIconHook:e=>(0,l.jsxs)("span",{className:i7.Y_,children:[(0,l.jsx)(i3.A,{game:o,size:i3.M.XXSMALL,className:i7.p4})," ",e]}),helpdeskArticle:te.A.getArticleURL(b.MVz.SOCIAL_LAYER_CONNECTIONS)});return(0,l.jsx)(I.A,{iconNode:(0,l.jsx)(i2.GameControllerIcon,{size:"sm"}),compact:s,contentClassName:i7.Qs,children:(0,l.jsx)("div",{children:c})})}function i5(e){let{message:t,otherUsername:i,usernameHook:s,otherUsernameHook:a,compact:r}=e,{nick:o}=(0,k.Ay)(t),c=s(),d=a(),u=O.intl.format(O.t.MMN2Jq,{username:o,usernameHook:c,otherUsername:i,otherUsernameHook:d});return(0,l.jsx)(I.A,{icon:n(617184),timestamp:t.timestamp,compact:r,children:u})}function i8(e){let t,{message:i,usernameHook:s,otherUser:a,otherUsernameHook:r,compact:o,channel:c}=e,d=(0,k.Ay)(i),u=d.nick,m=s(d),x=(0,k.d8)(a,c);if(null!=x&&null!=r){let e=r(x);t=O.intl.format(O.t.L2FyVq,{username:u,usernameHook:m,otherUsername:x.nick,otherUsernameHook:e})}else t=O.intl.format(O.t["5v2xa8"],{username:u,usernameHook:m});return(0,l.jsx)(I.A,{icon:n(884797),timestamp:i.timestamp,compact:o,children:t})}var i9=n(451394),i4=n(598490);function se(e){let{message:t,compact:n,usernameHook:i}=e,s=(0,k.Ay)(t),a=i(s),r=O.intl.format(O.t["zla/ux"],{username:s.nick,usernameHook:a,topic:t.content});return(0,l.jsx)(I.A,{className:i4.d,iconNode:(0,l.jsx)(i9.q,{size:"md",color:"currentColor"}),iconContainerClassName:i4.z,timestamp:t.timestamp,compact:n,children:r})}var st=n(297152);function sn(e){let{message:t,compact:n,usernameHook:i}=e,s=(0,k.Ay)(t),a=i(s),r=O.intl.format(O.t.tv2DNy,{username:s.nick,usernameHook:a});return(0,l.jsx)(I.A,{className:i4.d,iconNode:(0,l.jsx)(st.E,{size:"md",color:"currentColor"}),iconContainerClassName:i4.z,timestamp:t.timestamp,compact:n,children:r})}function si(e){let{message:t,compact:n,usernameHook:i}=e,s=(0,k.Ay)(t),a=i(s),r=O.intl.format(O.t["dKW5C+"],{username:s.nick,usernameHook:a});return(0,l.jsx)(I.A,{className:i4.d,iconNode:(0,l.jsx)(m.L,{size:"md",color:"currentColor"}),iconContainerClassName:i4.z,timestamp:t.timestamp,compact:n,children:r})}function ss(e){let{message:t,compact:n,usernameHook:i}=e,s=(0,k.Ay)(t),a=i(s),r=O.intl.format(O.t["Rv+TSM"],{username:s.nick,usernameHook:a,topic:t.content});return(0,l.jsx)(I.A,{className:i4.d,iconNode:(0,l.jsx)(i9.q,{size:"md",color:eg.A.unsafe_rawColors.GREEN_360.css}),iconContainerClassName:i4.z,timestamp:t.timestamp,compact:n,children:r})}function sl(e){let{message:t,compact:n,usernameHook:i}=e,s=(0,k.Ay)(t),a=i(s),r=O.intl.format(O.t.Yy6vLs,{username:s.nick,usernameHook:a,topic:t.content});return(0,l.jsx)(I.A,{className:i4.d,iconNode:(0,l.jsx)(i9.q,{size:"md",color:"currentColor"}),iconContainerClassName:i4.z,timestamp:t.timestamp,compact:n,children:r})}var sa=n(163328),sr=n(562534);function so(e){let{message:t,compact:n,usernameHook:i,onClickThread:s,onClickViewThreads:a,onContextMenuThread:r}=e,o=(0,k.Ay)(t),d=i(o),u=(0,c.bG)([tB.A],()=>tB.A.getChannel(t.messageReference?.channel_id)),m=(0,nT.Ay)(u),x=O.intl.format(O.t.cZ9Uf2,{actorName:o.nick,actorHook:d,threadName:m??t.content,threadOnClick:{onClick:s,onContextMenu:r},viewThreadsOnClick:a});return(0,l.jsx)(I.A,{iconNode:(0,l.jsx)(sa.y,{size:"md",color:"currentColor",className:sr.K}),timestamp:t.timestamp,compact:n,children:x})}function sc(e){let{message:t,channel:i,targetUser:s,actorUsernameHook:a,targetUsernameHook:r,compact:o}=e,c=(0,k.Ay)(t),d=(0,k.d8)(s,i),u=a(c),m=r(d??void 0),x=O.intl.format(O.t.tusv2h,{actorName:c.nick,actorHook:u,targetName:d?.nick,targetHook:m});return(0,l.jsx)(I.A,{icon:n(617184),timestamp:t.timestamp,compact:o,children:x})}function sd(e){let{message:t,channel:i,targetUser:s,actorUsernameHook:a,targetUsernameHook:r,compact:o}=e,c=(0,k.Ay)(t),d=(0,k.d8)(s,i),u=a(c),m=r(d??void 0),x=O.intl.format(O.t["32QI5/"],{actorName:c.nick,actorHook:u,targetName:d?.nick,targetHook:m});return(0,l.jsx)(I.A,{icon:n(884797),timestamp:t.timestamp,compact:o,children:x})}var su=n(961934),sm=n(861464);function sx(e){let{message:t,usernameHook:i,compact:s}=e,a=(0,k.Ay)(t),r=i(a),o=sm.A.getSystemMessageUserJoin(t.id),c=O.intl.format(o,{username:a.nick,usernameHook:r});return(0,l.jsx)(I.A,{icon:n(617184),timestamp:t.timestamp,compact:s,children:c})}var sg=n(776310),sh=n(132500),sf=n(319060),sA=n(544048),s_=n(844222),sE=n(21161);let sp=(0,n(945810).mj)({name:"2026-03-new-server-boost-system-messages",kind:"user",defaultConfig:{enabled:!1,showCta:!0},variations:{1:{enabled:!0,showCta:!0},2:{enabled:!0,showCta:!1}}});var sC=n(513609),sI=n(512599);function sN(e){let t=Number(e.content);return isNaN(t)||0===t?1:t}var sj=n(780964),sT=n(766075),sv=n(473145),sS=n(473193),sO=n(889158);function sR(e){let t=(0,iD.A)(e);return a.useCallback(()=>{null!=e&&(t?(0,ib.A)(e,w.A.GUILD_BOOSTING_SYSTEM_MESSAGE):(0,p.K4)({guildId:e,location:{section:b.JJy.CHANNEL_TEXT_AREA,object:b.ZSU.BOOST_ANNOUNCEMENT_UPSELL}}))},[e,t])}function sM(e){let{className:t,animate:n}=e;return(0,l.jsx)("div",{className:t,children:(0,l.jsx)("img",{className:sO.fj,src:n?iw:iF,alt:"","aria-hidden":!0})})}function sL(e){let{title:t,body:n}=e;return(0,l.jsxs)("div",{className:sO.Qs,children:[(0,l.jsx)(L.E,{variant:"text-md/semibold",scaleFontToUserSetting:!0,className:sO.DD,children:t}),(0,l.jsx)(L.E,{variant:"text-sm/medium",scaleFontToUserSetting:!0,className:sO.rf,children:n})]})}function sy(e){let{guild:t,firstBooster:n}=e;return(0,l.jsx)("div",{className:sO.o1,children:(0,l.jsx)(iU,{guild:t,variant:"secondary",analyticsLocation:{page:b.liQ.GUILD_CHANNEL,section:b.JJy.CHANNEL_TEXT_AREA,object:b.ZSU.BOOST_ANNOUNCEMENT_UPSELL},analyticsLocations:[n?w.A.GUILD_BOOSTING_ANNOUNCEMENT_MESSAGE_FIRST_TIME_BOOSTER:w.A.GUILD_BOOSTING_ANNOUNCEMENT_MESSAGE]})})}function sk(e){let{guild:t,children:n}=e,i=sR(t?.id);return(0,l.jsx)(n2.D,{tag:"a",role:"link",className:sO.oT,onClick:i,children:n})}function sU(e){let t,n,{message:i,guild:s,usernameHook:a,showCta:o}=e,d=(t=(0,c.bG)([y.Ay],()=>y.Ay.useReducedMotion),n=r.useContext(sS.C)?.animate??!1,!t&&n),u=(0,k.Ay)(i),m=a(u),x=i.hasFlag(b.pr7.IS_FIRST_BOOSTER),g=sR(s?.id),h=x?O.intl.format(O.t["/1IQGD"],{username:u.nick,usernameHook:m}):O.intl.format(O.t.SbSWvY,{username:u.nick,usernameHook:m,numSubscriptions:sN(i)}),f=o?O.intl.format(O.t.dWm8Iu,{learnMoreHook:e=>(0,l.jsx)(sk,{guild:s,children:e})}):O.intl.string(O.t["0Mdw0t"]),A=(0,l.jsxs)("div",{className:sO.kL,children:[(0,l.jsx)(sM,{className:sO.rc,animate:d}),(0,l.jsx)(sL,{title:h,body:f}),o&&null!=s&&(0,l.jsx)(sy,{guild:s,firstBooster:x})]}),_=(0,l.jsx)(iy._,{className:sO.Kk});return(0,l.jsx)(I.A,{contentClassName:sO.$O,iconNode:_,iconContainerClassName:sO.zc,children:o?A:(0,l.jsx)(n2.D,{className:sO.w8,onClick:g,children:A})})}var sD=n(50826);let sb={enter:{BEG:0,END:22},confetti:{BEG:23,END:119},leaf_peel:{BEG:120,END:160},leaf_fall:{BEG:161,END:163},exit:{BEG:164,END:200}};var sP=((s={}).TOP_LEFT="TOP_LEFT",s.TOP_RIGHT="TOP_RIGHT",s.BOTTOM_LEFT="BOTTOM_LEFT",s.BOTTOM_RIGHT="BOTTOM_RIGHT",s);let sG=["TOP_LEFT","TOP_RIGHT"],sH=(0,ev.xI)(sf.A.USER_PREMIUM_GUILD_SUBSCRIPTION_EASTER_EGG_SIZE),sw={leafPosition:{x:85,y:125},leafRotationDirection:1},sF=Object.freeze({TOP_LEFT:{getConfettiPosition:e=>({x:e-11,y:e-125}),confettiVelocityDirection:{x:1,y:1},leafPosition:{x:100,y:144},leafRotationDirection:1},TOP_RIGHT:{getConfettiPosition:e=>({x:11,y:e-125}),confettiVelocityDirection:{x:-1,y:1},leafPosition:{x:90,y:144},leafRotationDirection:-1},BOTTOM_LEFT:{...sw,getConfettiPosition:e=>({x:e-11,y:125}),confettiVelocityDirection:{x:1,y:-1}},BOTTOM_RIGHT:{...sw,getConfettiPosition:e=>({x:11,y:125}),confettiVelocityDirection:{x:-1,y:-1}}}),sV="falling-leaf",sB=["#61D5B2"],sJ=n(80705),sz=n(232460),sZ=[sJ,sz];function sK(){return n.e("698150").then(n.t.bind(n,633343,19)).then(e=>{let{default:t}=e;return t})}function sX(e){let{onAnimationComplete:t,onClick:n,position:i,size:s}=e,r=a.useRef(null),[o,c]=a.useState(null),[d]=a.useState(i??function(){switch(Math.floor(Math.random()*Object.keys(sP).length)){case 0:return"TOP_LEFT";case 2:return"TOP_RIGHT";case 3:return"BOTTOM_LEFT";default:return"BOTTOM_RIGHT"}}()),{createMultipleConfettiAt:u,confettiCanvas:m}=a.useContext(sE.x),[x,g]=a.useState(null),h=(0,sg.f9)(m,x),f=function(e,t){if(null==e)return"enter";switch(e){case"enter":return"confetti";case"confetti":if(sG.includes(t))return"leaf_peel";return"exit";case"leaf_peel":return"leaf_fall";case"leaf_fall":return"exit";case"exit":return"enter"}}(o,d),A=sG.includes(d),_=A&&"exit"===o,E=a.useCallback(e=>{c(e)},[]),p=a.useCallback(()=>{"exit"===o&&t?.()},[t,o]),C=a.useCallback(e=>{r.current=e},[]);return a.useEffect(()=>{if("confetti"===o){let{confettiVelocityDirection:e}=sF[d],t=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:sH,i=e?.getBoundingClientRect();if(null==i)return{x:0,y:0};let s=sF[t].getConfettiPosition(n);return{x:i.left+s.x,y:i.top+s.y}}(r.current,d,s);u(t.x,t.y,{velocity:{type:"static-random",minValue:{x:10*e.x,y:80*e.y},maxValue:{x:80*e.x,y:180*e.y}}})}},[u,d,o,s]),a.useEffect(()=>{if(A&&"leaf_fall"===o){let e=sF[d].leafRotationDirection;h.createConfetti({id:`${sV}-${(0,sh.A)()}`,position:{type:"static",value:function(e,t){let n=e?.getBoundingClientRect();if(null==n)return{x:0,y:0};let i=sF[t];return{x:n.left+i.leafPosition.x,y:n.top+i.leafPosition.y}}(r.current,d)},size:{type:"static",value:45},rotation:{type:"linear-random",minValue:{x:0,y:0,z:0},maxValue:{x:0,y:0,z:0},minAddValue:{x:0,y:0,z:8*e},maxAddValue:{x:0,y:0,z:12*e}}},{sprite:"TOP_LEFT"===d?sJ:sz})}},[A,h,d,o]),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(sg.K_,{ref:g,sprites:sZ,colors:sB,spriteWidth:45,spriteHeight:45}),(0,l.jsx)(n2.D,{onClick:n,className:eT()(sD.FT,{[sD.FZ]:"TOP_LEFT"===d,[sD.S]:"TOP_RIGHT"===d,[sD.Re]:"BOTTOM_LEFT"===d,[sD._t]:"BOTTOM_RIGHT"===d}),children:(0,l.jsx)(sA.t,{animationRef:C,className:eT()(sD.oQ,{[sD.EG]:_}),nextScene:f,sceneSegments:sb,onScenePlay:E,onSceneComplete:p,importData:sK,pauseWhileUnfocused:!1})})]})}function sW(e){let t,{message:n,compact:i,guild:s,usernameHook:r,onClickMessage:o}=e,c=function(e){switch(e.type){case b.lAJ.GUILD_BOOST_TIER_1:return b.TVA.TIER_1;case b.lAJ.GUILD_BOOST_TIER_2:return b.TVA.TIER_2;case b.lAJ.GUILD_BOOST_TIER_3:return b.TVA.TIER_3}return null}(n),d=sN(n),{createMultipleConfettiAt:u,addClickListener:m}=a.useContext(sE.x),[x,g]=a.useState(!1),h=a.useRef(null),{reducedMotion:f}=a.useContext(s_.C),A=(0,k.Ay)(n),_=A.nick,E=r(A);t=null==c||null==s?d>1?O.intl.format(O.t.yfC9ds,{username:_,usernameHook:E,numSubscriptions:d}):O.intl.format(O.t["57St/7"],{username:_,usernameHook:E}):d>1?O.intl.format(O.t.PO9uJD,{username:_,usernameHook:E,numSubscriptions:d,guildName:s.name,newTierName:(0,sv.gb)(c)}):O.intl.format(O.t.cUfTTE,{username:_,usernameHook:E,guildName:s.name,newTierName:(0,sv.gb)(c)});let p=a.useCallback(()=>{if(!f.enabled)if(x||0!==Math.floor(50*Math.random())){let e=h.current?.getBoundingClientRect();if(null==e)return;u(e.left+e.width/2,e.top+e.height/2)}else g(!0)},[u,f,x]),C=a.useCallback(()=>{g(!1)},[]),N=a.useCallback(()=>{(0,sI.O9)({settingsVisible:!0}),(0,sT.openUserSettings)(sj.X.POGGERMODE_PANEL),g(!1)},[]),j=a.useCallback((e,t)=>{t?.id.startsWith(sV)&&N()},[N]);a.useEffect(()=>m(j));let T=a.useCallback(e=>{e.target===e.currentTarget&&o(e)},[o]),v=(0,l.jsx)(n2.D,{className:sD.P0,innerRef:h,onClick:o,children:(0,l.jsx)(iy._,{color:eg.A.unsafe_rawColors.GUILD_BOOSTING_PINK,className:sD.Kk,onMouseEnter:p})});return(0,l.jsxs)(I.A,{iconNode:v,timestamp:n.timestamp,compact:i,children:[(0,l.jsx)("div",{onClick:T,className:sD.iU,children:t}),x?(0,l.jsx)(sC.Ay,{children:(0,l.jsx)("div",{className:sD.LK,children:(0,l.jsx)(sX,{onAnimationComplete:C,onClick:N})})}):null]})}function sY(e){let{message:t,compact:n,guild:i,usernameHook:s}=e,{enabled:a,showCta:r}=sp.useConfig({location:"UserPremiumGuildSubscription"});return t.type===b.lAJ.GUILD_BOOST&&a&&!n?(0,l.jsx)(sU,{message:t,guild:i,usernameHook:s,showCta:r}):(0,l.jsx)(sW,{...e})}var sQ=n(305866),sq=n(364522),s$=n(922016),s0=n(983851),s1=n(61230),s2=n(538451),s3=n(944052),s7=n(461154);function s6(e){let{users:t,guildId:n,channelId:i}=e;return(0,l.jsx)(sQ.l,{className:s7.XM,children:(0,l.jsx)(sq.Ip,{className:s7.XG,children:(0,l.jsx)("div",{children:t.map(e=>(0,l.jsx)(s2.A,{user:e,guildId:n??void 0,channelId:i,nick:tK.Ay.getNickname(n,i,e)},e.id))})})})}function s5(e){let{message:t,channel:n,compact:i}=e,s=(0,iu.A)(t),r=(0,s3.X7)(t),o=t.messageReference?.channel_id,d=(0,c.bG)([tB.A],()=>tB.A.getChannel(o)),u=function(e,t,n,i,s,r){let o=(0,C.P)({user:n,channelId:t.id,guildId:t.guild_id,messageId:e.id}),c=(0,C.P)({user:i[0],channelId:t.id,guildId:t.guild_id,messageId:e.id}),d=(0,C.P)({user:i[1],channelId:t.id,guildId:t.guild_id,messageId:e.id}),u=(0,k.Ay)(e),[m,x]=i,g=(0,k.d8)(m,t),h=(0,k.d8)(x,t),f=function(e,t){let n=a.useRef(null),[i,s]=a.useState(!1),r=a.useCallback(n=>(0,l.jsx)(s6,{users:n,guildId:e,channelId:t}),[e,t]);return a.useCallback(e=>(t,a)=>(0,l.jsx)(s$.Y,{targetElementRef:n,renderPopout:()=>r(e),shouldShow:i,position:"bottom",onRequestClose:()=>s(!1),children:e=>(0,l.jsx)(n2.D,{...e,tag:"a",style:{display:"inline"},innerRef:n,onClick:()=>{s(e=>!e)},children:t})},a),[i,r])}(t.guild_id,t.id),A=a.useCallback((e,t)=>null==r?e:(0,l.jsx)(s1.T,{channel:r,childWrapperClassName:s7.c6,children:(0,l.jsx)(n2.D,{tag:"a",children:e})},t),[r]);return null==s?O.intl.format(O.t["eX6e/3"],{username:u.nick,usernameHook:o(u),channelHook:A}):O.intl.format(O.t.YUbgR8,{userCount:i.length+1,username:u.nick,usernameHook:o(u),username2:g.nick,username2Hook:c(g),username3:h.nick,username3Hook:d(h),otherCount:i.length-1,othersHook:f([n,...i]),duration:s})}(t,n,t.author,r,s,d),m=a.useMemo(()=>{let e=(0,l.jsx)(s0.H,{size:"md",color:eg.A.colors.STATUS_POSITIVE});return null==d||null!=s?e:(0,l.jsx)(s1.T,{channel:d,children:(0,l.jsx)(s0.H,{size:"md",color:eg.A.colors.STATUS_POSITIVE})})},[d,s]);return(0,l.jsx)(I.A,{iconNode:m,timestamp:t.timestamp,compact:i,children:u})}var s8=n(325278);function s9(e){let{message:t,compact:n,channel:i}=e,{author:s}=t,a=t.getChannelId(),r=t.actor??void 0,o=(0,k.d8)(r,i),c=(0,C.P)({user:s,channelId:a,guildId:i.guild_id,messageId:t.id}),d=(0,C.P)({user:r,channelId:a,guildId:i.guild_id,messageId:t.id});return(0,l.jsx)(nu,{message:t,compact:n,appNameHook:c,addingUser:null!=r?o:null,addingUserHook:d})}function s4(e){let{message:t,compact:n,channel:i}=e,{author:s}=t,a=t.getChannelId(),r=(0,C.P)({user:s,channelId:a,guildId:i.guild_id,messageId:t.id});return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(sx,{message:t,compact:n,usernameHook:r}),(0,l.jsx)(tF,{channel:i,message:t})]})}function le(e){let{message:t,channel:n,compact:i}=e,{author:s}=t,{guild_id:r}=n,o=t.getChannelId(),d=(0,c.bG)([et.A],()=>et.A.getGuild(r),[r]),u=a.useCallback(()=>{null!=d&&(0,p.K4)({guildId:d.id,location:{section:b.JJy.CHANNEL_TEXT_AREA,object:b.ZSU.BOOST_ANNOUNCEMENT_UPSELL}})},[d]),m=(0,C.P)({user:s,channelId:o,guildId:n.guild_id,messageId:t.id,stopPropagation:!0});return(0,l.jsx)(sY,{message:t,compact:i,guild:d,usernameHook:m,onClickMessage:u})}function lt(e){let t=e.getChannelId(),n=(0,c.bG)([tB.A],()=>tB.A.getChannel(t),[t]),i=(null!=n?n.getGuildId():null)??e.messageReference?.guild_id??null,s=(0,c.bG)([et.A],()=>null!=i?et.A.getGuild(i):null,[i]),l=null==i?void 0:()=>{(0,N.uh)(i)};return{guildId:i,guildName:s?.name??null,onClickGuild:l}}function ln(e){let{message:t,compact:n,channel:i}=e,s=(0,C.P)({user:t.author,channelId:i.id,guildId:i.guild_id,messageId:t.id});return(0,l.jsx)(iR,{message:t,compact:n,usernameHook:s})}let li=Object.freeze({[b.lAJ.DEFAULT]:void 0,[b.lAJ.REPLY]:void 0,[b.lAJ.CHAT_INPUT_COMMAND]:void 0,[b.lAJ.CONTEXT_MENU_COMMAND]:void 0,[b.lAJ.RECIPIENT_ADD]:function(e){let{message:t,channel:n,compact:i}=e,{author:s}=t,a=t.getChannelId(),r=(0,c.bG)([v.default],()=>v.default.getUser(t.mentions[0]),[t]),o=tK.Ay.getName(null,a,r),d=(0,C.P)({user:s,channelId:a,guildId:n.guild_id,messageId:t.id}),u=(0,C.P)({user:r,channelId:a,guildId:n.guild_id,messageId:t.id});return n.isThread()?(0,l.jsx)(sc,{message:t,channel:n,compact:i,targetUser:r,actorUsernameHook:d,targetUsernameHook:u}):(0,l.jsx)(i5,{message:t,compact:i,otherUsername:o,usernameHook:d,otherUsernameHook:u})},[b.lAJ.RECIPIENT_REMOVE]:function(e){let{message:t,channel:n,compact:i}=e,{author:s}=t,a=t.getChannelId(),r=(0,c.bG)([v.default],()=>v.default.getUser(t.mentions[0]),[t]),o=(0,C.P)({user:s,channelId:a,guildId:n.guild_id,messageId:t.id}),d=(0,C.P)({user:r,channelId:a,guildId:n.guild_id,messageId:t.id});return n.isThread()?(0,l.jsx)(sd,{message:t,channel:n,compact:i,targetUser:r,actorUsernameHook:o,targetUsernameHook:d}):null!=r&&r.id!==s.id?(0,l.jsx)(i8,{message:t,channel:n,compact:i,usernameHook:o,otherUser:r,otherUsernameHook:d}):(0,l.jsx)(i8,{message:t,channel:n,compact:i,usernameHook:o})},[b.lAJ.CALL]:function(e){let{message:t,compact:n,channel:i}=e,{id:s,author:r}=t,o=j.default.getId(),d=t.getChannelId(),u=(0,c.bG)([tV.A],()=>tV.A.isCallActive(d,s),[d,s]),m=(0,c.bG)([tZ.A],()=>tZ.A.getVoiceState(b.ME,o)),x=!u&&null!=t.call&&!t.call.participants.includes(o),g=u&&(null==m||m.channelId!==d),f=a.useCallback(()=>h.default.selectVoiceChannel(d),[d]),A=(0,C.P)({user:r,channelId:d,guildId:i.guild_id,messageId:t.id,enableDisplayNameStyles:!0});return(0,l.jsx)(im,{compact:n,message:t,missed:x,joinable:g,usernameHook:A,onClickJoinCall:f})},[b.lAJ.CHANNEL_NAME_CHANGE]:function(e){let{message:t,compact:n,channel:i}=e,{author:s}=t,a=t.getChannelId(),r=(0,C.P)({user:s,channelId:a,guildId:i.guild_id,messageId:t.id});return(0,l.jsx)(ij,{compact:n,message:t,usernameHook:r,isForumPost:i.isForumPost()})},[b.lAJ.CHANNEL_ICON_CHANGE]:function(e){let{message:t,compact:n,channel:i}=e,{author:s}=t,a=t.getChannelId(),r=(0,C.P)({user:s,channelId:a,guildId:i.guild_id,messageId:t.id});return(0,l.jsx)(iE,{compact:n,message:t,usernameHook:r})},[b.lAJ.CHANNEL_PINNED_MESSAGE]:function(e){let{message:t,compact:n,channel:i}=e,{author:s}=t,r=t.getChannelId(),o=a.useCallback(()=>{if(tz.Ay.getChannelId()!==r){let e=tB.A.getChannel(r);null!=e&&(0,N.uh)(e.guild_id,e.id)}setTimeout(()=>eB._.dispatch(b.jej.TOGGLE_CHANNEL_PINS),0)},[r]),c=(0,C.P)({user:s,channelId:r,guildId:i.guild_id,messageId:t.id});return(0,l.jsx)(iv,{message:t,compact:n,usernameHook:c,onClickPins:__OVERLAY__?null:o})},[b.lAJ.USER_JOIN]:function(e){return e.message.author.bot?(0,l.jsx)(s9,{...e}):(0,l.jsx)(s4,{...e})},[b.lAJ.GUILD_BOOST]:le,[b.lAJ.GUILD_BOOST_TIER_1]:le,[b.lAJ.GUILD_BOOST_TIER_2]:le,[b.lAJ.GUILD_BOOST_TIER_3]:le,[b.lAJ.CHANNEL_FOLLOW_ADD]:function(e){let{message:t,compact:n,channel:i}=e,{author:s}=t,a=t.getChannelId(),r=(0,C.P)({user:s,channelId:a,guildId:i.guild_id,messageId:t.id});return(0,l.jsx)(ih,{message:t,compact:n,usernameHook:r})},[b.lAJ.GUILD_STREAM]:function(e){let{message:t,compact:n,channel:i}=e,{author:s,author:{id:r},messageReference:o}=t,d=t.getChannelId(),u=(0,c.bG)([tJ.A],()=>tJ.A.findActivity(r,e=>e.type===b.$pd.PLAYING),[r]),m=(0,c.bG)([tB.A],()=>null!=o?tB.A.getChannel(o.channel_id):null,[o]),x=o?.guild_id,g=(0,C.P)({user:s,channelId:d,guildId:i.guild_id,messageId:t.id}),h=a.useCallback(()=>{null!=m&&null!=x&&(0,f.Nl)({streamType:s8.U4.GUILD,ownerId:r,channelId:m.id,guildId:x})},[r,m,x]);return null!=o&&null!=m&&null!=o.guild_id?(0,l.jsx)(i1,{message:t,compact:n,channel:m,playingActivity:u,onJoinStream:h,usernameHook:g}):null},[b.lAJ.GUILD_DISCOVERY_DISQUALIFIED]:function(e){let{message:t,compact:n}=e,{guildId:i,guildName:s,onClickGuild:a}=lt(t);return(0,l.jsx)(iX,{message:t,compact:n,guildName:s,onClick:function(){null!=i&&em.A.open(i,b.BEX.ACCESS,b.nd0.ACCESS_DISCOVERABLE)},onClickGuild:a})},[b.lAJ.GUILD_DISCOVERY_REQUALIFIED]:function(e){let{message:t,compact:i}=e;return(0,l.jsx)(I.A,{icon:n(222548),timestamp:t.timestamp,compact:i,contentClassName:iZ.B,children:O.intl.string(O.t.tu6tOR)})},[b.lAJ.GUILD_DISCOVERY_GRACE_PERIOD_INITIAL_WARNING]:function(e){let{message:t,compact:n}=e,{guildName:i,onClickGuild:s}=lt(t);return(0,l.jsx)(iW,{message:t,compact:n,guildName:i,onClickGuild:s})},[b.lAJ.GUILD_DISCOVERY_GRACE_PERIOD_FINAL_WARNING]:function(e){let{message:t,compact:n}=e,{guildName:i,onClickGuild:s}=lt(t);return(0,l.jsx)(iY,{message:t,compact:n,guildName:i,onClickGuild:s})},[b.lAJ.THREAD_CREATED]:function(e){let{message:t,channel:i,compact:s}=e,r=(0,C.P)({user:t.author,channelId:t.channel_id,guildId:i.guild_id,messageId:t.id}),o=a.useCallback(async e=>{let n=t.messageReference?.channel_id;if(null!=n){await tb.A.loadThread(n);let t=tB.A.getChannel(n);null!=t&&(0,tP.JA)(t,e.shiftKey)}},[t]),c=a.useCallback(()=>{(0,d.openModalLazy)(async()=>{let{default:e}=await Promise.all([n.e("327744"),n.e("802598"),n.e("242266"),n.e("552705"),n.e("751743"),n.e("409980"),n.e("65225")]).then(n.bind(n,126768));return t=>(0,l.jsx)(e,{channel:i,...t})})},[i]),u=a.useCallback(e=>{let i=tB.A.getChannel(t.messageReference?.channel_id);null!=i&&(0,x.L3)(e,async()=>{let{default:e}=await Promise.all([n.e("926132"),n.e("391763"),n.e("955557"),n.e("947502"),n.e("603998"),n.e("343266"),n.e("965789"),n.e("691671"),n.e("412255"),n.e("63340"),n.e("896804"),n.e("21106"),n.e("368358"),n.e("421060"),n.e("65200"),n.e("699011"),n.e("285802"),n.e("703869"),n.e("51212"),n.e("584615")]).then(n.bind(n,612826));return t=>(0,l.jsx)(e,{...t,channel:i})})},[t]);return(0,l.jsx)(so,{message:t,compact:s,usernameHook:r,onClickThread:o,onClickViewThreads:c,onContextMenuThread:u})},[b.lAJ.THREAD_STARTER_MESSAGE]:function(e){let{message:t,compact:n}=e;return(0,l.jsx)(I.A,{iconNode:(0,l.jsx)(sa.y,{size:"md",color:"currentColor",className:su.K}),timestamp:t.timestamp,compact:n,children:O.intl.string(O.t.OCs36J)})},[b.lAJ.GUILD_INVITE_REMINDER]:void 0,[b.lAJ.AUTO_MODERATION_ACTION]:function(e){let{message:t,compact:n,channel:i}=e;return(0,E.ER)(t)?(0,l.jsx)(id,{message:t,compact:n,channel:i}):null},[b.lAJ.GUILD_INCIDENT_ALERT_MODE_ENABLED]:ln,[b.lAJ.GUILD_INCIDENT_ALERT_MODE_DISABLED]:ln,[b.lAJ.GUILD_INCIDENT_REPORT_RAID]:function(e){let{message:t,compact:n,channel:i}=e,s=(0,C.P)({user:t.author,channelId:i.id,guildId:i.guild_id,messageId:t.id});return(0,l.jsx)(iq,{message:t,compact:n,channel:i,usernameHook:s})},[b.lAJ.GUILD_INCIDENT_REPORT_FALSE_ALARM]:function(e){let{message:t,compact:n,channel:i}=e,s=(0,C.P)({user:t.author,channelId:i.id,guildId:i.guild_id,messageId:t.id});return(0,l.jsx)(iQ,{message:t,compact:n,channel:i,usernameHook:s})},[b.lAJ.ROLE_SUBSCRIPTION_PURCHASE]:function(e){let{channel:t,message:i,compact:s}=e,r=(0,k.Ay)(i),o=function(e){let{author:t,channel:n,message:i}=e,s=n.guild_id,l=(0,C.P)({user:i.author,channelId:n.id,guildId:s,messageId:i.id})(t),{analyticsLocations:r}=(0,F.Ay)(w.A.GUILD_ROLE_SUBSCRIPTION_PURCHASE_SYSTEM_MESSAGE),o=i.roleSubscriptionData,c=a.useCallback(()=>{(0,N.pX)(b.BVt.CHANNEL(s,ea.VV.ROLE_SUBSCRIPTIONS),{sourceLocationStack:r}),o?.role_subscription_listing_id!=null&&(0,V.xH)(s,n.id,i.id,o.role_subscription_listing_id)},[s,n,i,o,r]);return null==o?null:(0,V.gw)({username:t.nick,usernameOnClickHandler:l,roleSubscriptionOnClickHandler:c,guildId:s,roleSubscriptionData:i.roleSubscriptionData})}({channel:t,message:i,author:r}),c=i.roleSubscriptionData?.total_months_subscribed!=null&&i.roleSubscriptionData?.total_months_subscribed<=1;return null==o?null:(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(I.A,{icon:n(617184),timestamp:i.timestamp,compact:s,children:o}),c&&(0,l.jsx)(ec,{guildId:t.guild_id,user:i.author,username:r.nick}),(0,l.jsx)(ei,{channel:t,message:i})]})},[b.lAJ.PURCHASE_NOTIFICATION]:function(e){let{message:t,channel:n,compact:i}=e;return t.purchaseNotification?.type===A.hE.GUILD_PRODUCT?(0,l.jsx)(H,{message:t,channel:n,compact:i}):null},[b.lAJ.INTERACTION_PREMIUM_UPSELL]:void 0,[b.lAJ.STAGE_START]:function(e){let{message:t,channel:n,compact:i}=e,s=(0,C.P)({user:t.author,channelId:n.id,guildId:n.guild_id,messageId:t.id}),a=(0,c.bG)([ed.Ay],()=>ed.Ay.getActiveEventByChannel(n.id),[n.id]);return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(ss,{message:t,compact:i,usernameHook:s}),null!=a&&a.name===t.content?(0,l.jsx)(eu.A,{code:`${n.guild_id}-${a.id}`}):null]})},[b.lAJ.STAGE_END]:function(e){let{message:t,channel:n,compact:i}=e,s=(0,C.P)({user:t.author,channelId:n.id,guildId:n.guild_id,messageId:t.id});return(0,l.jsx)(se,{message:t,compact:i,usernameHook:s})},[b.lAJ.STAGE_SPEAKER]:function(e){let{message:t,channel:n,compact:i}=e,s=(0,C.P)({user:t.author,channelId:n.id,guildId:n.guild_id,messageId:t.id});return(0,l.jsx)(si,{message:t,compact:i,usernameHook:s})},[b.lAJ.STAGE_RAISE_HAND]:function(e){let{message:t,channel:n,compact:i}=e,s=(0,C.P)({user:t.author,channelId:n.id,guildId:n.guild_id,messageId:t.id}),a=(0,c.bG)([K.A],()=>K.A.can(b.xBc.MUTE_MEMBERS,n)),r=(0,c.bG)([tU.A],()=>tU.A.getParticipant(n.id,t.author.id)),o=new Date(W.default.extractTimestamp(t.id)).toISOString()===new Date(r?.voiceState?.requestToSpeakTimestamp??0).toISOString(),d=a&&r?.rtsState===tD.zF.REQUESTED_TO_SPEAK&&o;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(sn,{message:t,compact:i,usernameHook:s}),d?(0,l.jsx)(u.$,{variant:"secondary",onClick:function(){(0,tk.lL)(n,t.author.id,!1),g.A.deleteMessage(n.id,t.id,!0)},text:O.intl.string(O.t.f0T7hI),icon:m.L}):null]})},[b.lAJ.STAGE_TOPIC]:function(e){let{message:t,channel:n,compact:i}=e,s=(0,C.P)({user:t.author,channelId:n.id,guildId:n.guild_id,messageId:t.id});return(0,l.jsx)(sl,{message:t,compact:i,usernameHook:s})},[b.lAJ.GUILD_APPLICATION_PREMIUM_SUBSCRIPTION]:function(e){let{message:t,channel:n,compact:i}=e,s=(0,k.Ay)(t),a=t.application,r=(0,C.P)({user:t.author,channelId:n.id,guildId:n.guild_id,messageId:t.id});return(0,l.jsx)(I.A,{iconNode:(0,l.jsx)(tx.q,{size:"md",color:"currentColor",className:tg.C}),timestamp:t.timestamp,compact:i,children:function(e){let{application:t,username:n,usernameHook:i=b.tEg}=e;return null!=t?O.intl.format(O.t.dXdgno,{username:n,applicationName:t.name,usernameHook:i}):O.intl.format(O.t.O829Uu,{username:n,usernameHook:i})}({application:a,username:s.nick,usernameHook:r(s)})})},[b.lAJ.PRIVATE_CHANNEL_INTEGRATION_ADDED]:function(e){let{message:t,channel:i,compact:s}=e,a=(0,k.Ay)(t),r=t.application,o=(0,C.P)({user:t.author,channelId:i.id,guildId:i.guild_id,messageId:t.id}),c=tE(i,t);return(0,l.jsx)(I.A,{icon:n(617184),timestamp:t.timestamp,compact:s,children:(0,t_.eu)({application:r,username:a.nick,usernameHook:o(a),applicationNameHook:null!=r?c(r):b.tEg})})},[b.lAJ.PRIVATE_CHANNEL_INTEGRATION_REMOVED]:function(e){let{message:t,channel:i,compact:s}=e,a=(0,k.Ay)(t),r=t.application,o=(0,C.P)({user:t.author,channelId:i.id,guildId:i.guild_id,messageId:t.id}),c=tE(i,t);return(0,l.jsx)(I.A,{icon:n(884797),timestamp:t.timestamp,compact:s,children:(0,t_.A0)({application:r,username:a.nick,usernameHook:o(a),applicationNameHook:null!=r?c(r):b.tEg})})},[b.lAJ.PREMIUM_REFERRAL]:function(e){let{message:t,compact:n}=e;return(0,l.jsx)(tm,{userTrialOfferId:t.referralTrialOfferId,canRenderReferralEmbed:!0,compact:n})},[b.lAJ.GUILD_DEADCHAT_REVIVE_PROMPT]:void 0,[b.lAJ.CUSTOM_GIFT]:void 0,[b.lAJ.GUILD_GAMING_STATS_PROMPT]:void 0,[b.lAJ.VOICE_HANGOUT_INVITE]:void 0,[b.lAJ.POLL_RESULT]:function(e){let{message:t,channel:n,compact:i,disableInteraction:s=!1}=e,r=t.embeds[0],o=a.useMemo(()=>(function(e){if(e?.fields==null)return null;let t={},n={};for(let i of e.fields)switch(i.rawName){case"poll_question_text":t.questionText=i.rawValue;break;case"victor_answer_id":t.victorAnswerId=i.rawValue;break;case"victor_answer_text":t.victorAnswerText=i.rawValue;break;case"victor_answer_votes":t.victorAnswerVotes=parseInt(i.rawValue,10);break;case"total_votes":t.totalVotes=parseInt(i.rawValue,10);break;case"victor_answer_emoji_id":n.id=i.rawValue;break;case"victor_answer_emoji_name":n.name=i.rawValue;break;case"victor_answer_emoji_animated":n.animated="true"===i.rawValue}return null!=n.name&&(n.animated=n.animated??!1,t.victorEmoji=n),t})(r),[r]),c=(0,ev.EJ)(o?.questionText??"",eM.TU),d=(0,k.Ay)(t),u=(0,C.P)({user:t.author,channelId:n.id,guildId:n.guild_id,messageId:t.id,displayInline:!0}),m=t.messageReference,x=a.useCallback(()=>{null!=m&&g.A.jumpToMessage({channelId:m.channel_id,messageId:m.message_id,flash:!0,returnMessageId:t.id})},[t.id,m]);return null==o?null:(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(I.A,{iconNode:(0,l.jsx)(eS.Y,{size:"xs"}),timestamp:t.timestamp,compact:i,children:O.intl.format(O.t.VJcK41,{username:d.nick,usernameHook:u(d),title:c,titleOnClick:x})}),(0,l.jsx)(eD,{className:eL.E6,data:o,onClickPollLink:s?void 0:x})]})},[b.lAJ.CHANGELOG]:void 0,[b.lAJ.NITRO_NOTIFICATION]:function(e){let{message:t,channel:n}=e;return(0,l.jsx)(nc,{message:t,channel:n})},[b.lAJ.CHANNEL_LINKED_TO_LOBBY]:function(e){let{message:t,channel:n,compact:i}=e;return(0,l.jsx)(iN,{message:t,channel:n,compact:i})},[b.lAJ.GIFTING_PROMPT]:function(e){let{message:t,channel:n}=e,i=t.giftingPrompt,s=(0,c.bG)([v.default],()=>v.default.getUser(i?.recipientUserId));return null==i||null==s?null:(0,l.jsx)(ns,{giftIntentType:i.giftIntentType,recipientUser:s,channel:n})},[b.lAJ.IN_GAME_MESSAGE_NUX]:function(e){let{message:t,channel:n,compact:i}=e;return(0,l.jsx)(i6,{message:t,channel:n,author:t.author,compact:i})},[b.lAJ.GUILD_JOIN_REQUEST_ACCEPT_NOTIFICATION]:function(e){let{message:t,channel:i,compact:s}=e,{guild:a,joinRequest:r,usernameHook:o,guildNameClick:c}=R(t,i),d=r?.user?.username,u=a?.name;return(0,l.jsx)(I.A,{icon:n(617184),timestamp:t.timestamp,compact:s,children:null!=d&&null!=u?O.intl.format(O.t["21R6Ch"],{username:d,usernameHook:o(),guildName:u,guildNameClick:c}):O.intl.string(O.t["2VLV0d"])})},[b.lAJ.GUILD_JOIN_REQUEST_REJECT_NOTIFICATION]:function(e){let{message:t,channel:i,compact:s}=e,{guild:a,joinRequest:r,usernameHook:o,guildNameClick:c}=R(t,i),d=r?.user?.username,u=a?.name;return(0,l.jsx)(I.A,{icon:n(884797),timestamp:t.timestamp,compact:s,children:null!=d&&null!=u?O.intl.format(O.t["Bz/QC2"],{username:d,usernameHook:o(),guildName:u,guildNameClick:c}):O.intl.string(O.t.FVF6qU)})},[b.lAJ.GUILD_JOIN_REQUEST_WITHDRAWN_NOTIFICATION]:function(e){let{message:t,channel:i,compact:s}=e,{guild:a,joinRequest:r,usernameHook:o,guildNameClick:c}=R(t,i),d=r?.user?.username,u=a?.name;return(0,l.jsx)(I.A,{icon:n(884797),timestamp:t.timestamp,compact:s,children:null!=d&&null!=u?O.intl.format(O.t.Kpkesg,{username:d,usernameHook:o(),guildName:u,guildNameClick:c}):O.intl.string(O.t.BMlbE7)})},[b.lAJ.HD_STREAMING_UPGRADED]:void 0,[b.lAJ.EMOJI_ADDED]:void 0,[b.lAJ.CHAT_WALLPAPER_SET]:void 0,[b.lAJ.CHAT_WALLPAPER_REMOVED]:void 0,[b.lAJ.REPORT_TO_MOD_BAN_USER]:ty,[b.lAJ.REPORT_TO_MOD_KICK_USER]:ty,[b.lAJ.REPORT_TO_MOD_TIMEOUT_USER]:ty,[b.lAJ.REPORT_TO_MOD_DELETED_MESSAGE]:ty,[b.lAJ.REPORT_TO_MOD_CLOSED_REPORT]:ty,[b.lAJ.PREMIUM_GROUP_INVITE]:function(e){let{message:t,channel:n,compact:i}=e;return(0,l.jsx)(e2,{message:t,channel:n,compact:i})},[b.lAJ.VOICE_SESSION]:function(e){let{message:t,channel:n,compact:i}=e;return(0,l.jsx)(s5,{message:t,channel:n,compact:i})},[b.lAJ.GUILD_BOOST_UPSELL]:function(e){let{message:t,channel:n}=e;return null==t.boostingPrompt?null:(0,l.jsx)(iz,{boostingPrompt:t.boostingPrompt,channel:n})},[b.lAJ.FRIEND_REQUEST_ACCEPTED]:function(e){let{message:t,channel:n,compact:i}=e;return(0,l.jsx)(iO,{message:t,channel:n,compact:i})},[b.lAJ.MEDIA_MENTION_MESSAGE]:void 0,[b.lAJ.GUILD_SPACE_MESSAGE]:function(e){let{message:t}=e,n=t.guildSpaceData?.whiteboard_busy;return null!=n?(0,l.jsx)(eN,{...e,data:n}):null!=t.guildSpaceData?.leaderboard?(0,l.jsx)(ep,{...e}):null}}),ls=a.memo(function(e){let{message:t,channel:n,compact:i,disableInteraction:s}=e,{type:a}=t,r=li[a];if(null==r){var o;return o=Error(`unknown message type ${t.type}`),eJ.A.captureException(o),new _.A("SystemMessage").error("",o),null}return(0,l.jsx)(nl.Ay,{message:t,content:(0,tX.Ay)(t).content,compact:i??!1,children:(0,l.jsx)(r,{message:t,channel:n,compact:i,disableInteraction:s})})});function ll(e){let{message:t,channel:n,compact:i,disableInteraction:s}=e;return(0,o.A)(t)?(0,l.jsx)(ls,{message:t,channel:n,compact:i,disableInteraction:s}):null}}