Loading
function(e,t,n){n.d(t,{A:()=>sg});var i,l,s=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),E=n(626584),_=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(105292);function R(e,t){let{joinRequest:n,joinRequestGuild:i}=(0,S.A)(t.id),l=(0,c.bG)([v.default],()=>v.default.getUser(n?.userId)),s=(0,C.P)({user:l,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:s,guildNameClick:o}}var M=n(702841),L=n(834730),y=n(775602),k=n(763754),D=n(953727);function U(e){let{width:t=440,height:n=200,avatar:i,...l}=e;return(0,s.jsxs)("svg",{...(0,D.A)(l),width:t,height:n,viewBox:`0 0 ${t} ${n}`,fill:"none",xmlns:"http://www.w3.org/2000/svg",...l,children:[(0,s.jsx)("rect",{y:"12",width:"440",height:"176",rx:"4",fill:"url(#paint0_linear_0_1)"}),(0,s.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,s.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,s.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,s.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,s.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,s.jsx)("defs",{children:(0,s.jsxs)("linearGradient",{id:"paint0_linear_0_1",x1:"220",y1:"12",x2:"220",y2:"188",gradientUnits:"userSpaceOnUse",children:[(0,s.jsx)("stop",{stopColor:"#686bff"}),(0,s.jsx)("stop",{offset:"1",stopColor:"#c356fd"})]})}),(0,s.jsx)("svg",{width:100,height:100,viewBox:"-2 -15 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsxs)("g",{clipPath:"url(#clip0_2645_182555)",children:[(0,s.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,s.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,s.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,l=(0,M.bG)([y.Ay],()=>!y.Ay.useReducedMotion),a=n.getAvatarURL(t,56,l),r=(0,s.jsx)("img",{src:a,className:P.dj,alt:""});return(0,s.jsxs)("div",{className:P.uE,role:"img","aria-label":O.intl.formatToPlainString(O.t["utf8+W"],{username:i}),children:[(0,s.jsx)(U,{avatar:r}),(0,s.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,s.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:l}=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,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(I.A,{icon:n(617184),timestamp:i.timestamp,compact:l,children:o}),(0,s.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,l=(W.default.extractTimestamp(n.id)+W.default.extractTimestamp(i.id))%t.length;return t[l]}function $(e){let{currentUser:t,channel:n,message:i,buttonLabels:l,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:l,currentUser:t,message:i}),[l,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,s.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:l,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 l=(0,Z.UJ)(t),s=K.A.can(b.xBc.SEND_MESSAGES,t),a=T.Ay.getMember(e,i.id)?.isPending,r=n.author.bot;return s&&!l&&!a&&!r})}({channel:t,message:n,currentUser:o});return null!=o&&d?(0,s.jsx)("div",{className:Q.S,children:(0,s.jsx)($,{currentUser:o,channel:t,message:n,buttonLabels:i,stickers:l,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)(),l=t.guild_id,r=(0,c.bG)([et.A],()=>et.A.getGuild(l)?.systemChannelFlags,[l]),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,s.jsx)(ee,{channel:t,message:n,buttonLabels:i,stickers:en.D3,event:b.HAw.ROLE_SUBSCRIPTION_PURCHASE_SYSTEM_MESSAGE_CTA_CLICKED,eventProperties:d})}var el=n(772303);function es(e){let{guildId:t,user:n,className:i}=e,l=(0,c.bG)([y.Ay],()=>!y.Ay.useReducedMotion),a=n.getAvatarURL(t,56,l),r=(0,s.jsx)("foreignObject",{x:"30",y:"68",width:"56",height:"56",transform:"skewX(12)",children:(0,s.jsx)("img",{src:a,className:el.dj,alt:""})});return(0,s.jsx)("div",{className:i,children:(0,s.jsxs)("svg",{width:"128",height:"200",viewBox:"0 0 128 200",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:el.JW,children:[(0,s.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,s.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,s.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,s.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,s.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,s.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,s.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,s.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,s.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,s.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,s.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,s.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,s.jsx)("div",{className:er._X,children:(0,s.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,s.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,s.jsxs)("div",{className:er.pG,role:"img","aria-label":O.intl.formatToPlainString(O.t["utf8+W"],{username:i}),children:[(0,s.jsx)(es,{guildId:t,user:n,className:er.sz}),(0,s.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),eE=n(518782),e_=n(104129);function ep(e){let{message:t,channel:n,compact:i}=e,l=n.guild_id,r=t.guildSpaceData?.leaderboard,o=a.useMemo(()=>(0,eE.Nu)(r),[r]),d=o?.userId,u=o?.secondaryUserId,[m,x]=(0,c.yK)([v.default],()=>[v.default.getUser(d),v.default.getUser(u)],[d,u]),g=a.useMemo(()=>(0,eA.U_)(o,m,x),[o,m,x]),h=g?.subject??null,f=g?.previousLeader??null,A=(0,k.d8)(h,n),E=(0,k.d8)(f,n),_=(0,C.P)({user:h??void 0,channelId:n.id,guildId:l,messageId:t.id})(A),p=(0,C.P)({user:f??void 0,channelId:n.id,guildId:l,messageId:t.id})(E),N=a.useCallback(()=>{null!=l&&((0,ef.jb)(l,ef.Rk.LEADERBOARD_SYSTEM_MESSAGE),(0,eh.vn)(l,ea.VV.GUILD_SPACE,{source:"Leaderboard System Message"}))},[l]);if(null==g||null==l)return null;let j=O.intl.string(O.t.sKdZ6U),T="";g.data.event===eE.zu.LEADER_CHANGED&&(T=null!=f?E.nick:j);let S=(0,eA.Sx)(g.data,{username:null!=h?A.nick:j,previousUsername:T});if(null==S)return null;let R=O.intl.format(S.message,{...S.values,usernameHook:_,previousUsernameHook:p});return(0,s.jsxs)(I.A,{iconNode:(0,s.jsx)(ex.TrophyIcon,{size:"sm",color:eg.A.colors.ICON_MUTED}),timestamp:t.timestamp,compact:i,children:[R,(0,s.jsx)(I.A.Action,{onClick:N,children:O.intl.string(e_.default.O1h3uU)})]})}var eC=n(432017),eI=n(860071),eN=n(72216),ej=n(825476);function eT(e){let{message:t,channel:n,compact:i}=e,l=n.guild_id,r=(0,ej.x)(t.guildSpaceData?.music),o=r?.userId,d=(0,c.bG)([v.default],()=>v.default.getUser(o));a.useEffect(()=>{null!=l&&null!=o&&eI.A.requestMember(l,o)},[l,o]);let u=(0,k.d8)(d,n),m=(0,C.P)({user:d,channelId:n.id,guildId:l,messageId:t.id})(u),x=a.useCallback(()=>{null!=l&&((0,ef.jb)(l,ef.Rk.MUSIC_SYSTEM_MESSAGE),(0,eh.vn)(l,ea.VV.GUILD_SPACE,{source:"Music System Message"}))},[l]);if(null==r||null==l)return null;let g=(0,eN.O)(r,null!=d?u.nick:null);return null==g?null:(0,s.jsxs)(I.A,{iconNode:(0,s.jsx)(eC.T,{size:"xs"}),timestamp:t.timestamp,compact:i,children:[O.intl.format(g.message,{...g.values,usernameHook:m}),(0,s.jsx)(I.A.Action,{onClick:x,children:O.intl.string(O.t.RzWDqY)})]})}var ev=n(193885),eS=n(403362);let eO=function(e){let{message:t,channel:n,compact:i,data:l}=e,r=(0,c.yK)([v.default],()=>l.sampled_user_ids.map(e=>v.default.getUser(e)).filter(eS.Vq).slice(0,2),[l.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=l.connected_user_count-r.length,E=0===r.length||A<=0;return(0,s.jsxs)(I.A,{iconNode:(0,s.jsx)(ev.V,{size:"xs"}),compact:i,timestamp:t.timestamp,children:[E?O.intl.string(e_.default.Sxxqdx):O.intl.format(e_.default.fcmI49,{displayCount:r.length,username:u.nick,usernameHook:x(u),username2:m.nick,username2Hook:g(m),additionalCount:A}),null!=h?(0,s.jsx)(I.A.Action,{onClick:f,children:O.intl.string(O.t.RzWDqY)}):null]})};var eR=n(503698),eM=n.n(eR),eL=n(23339),ey=n(642846),ek=n(565645),eD=n(306417),eU=n(412136),eb=n(11057);function eP(){return(0,s.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:eg.A.colors.INTERACTIVE_TEXT_DEFAULT.css,"aria-hidden":!0,children:(0,s.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 eG(e){let t,{hasNoVotes:n,victorEmoji:i}=e;if(n)t=(0,s.jsx)(eP,{});else if(null!=i){let e=""!==i.name?i.name:i.displayName;t=(0,s.jsx)(ek.A,{emojiId:i.id,emojiName:e,animated:i.animated})}return null!=t?(0,s.jsx)("div",{className:eb.ZS,children:t}):null}function eH(e){let t,{type:n,...i}=e,l="text-muted";switch(n){case"NO_VOTES":t=(0,s.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,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:eb.sj,children:[(0,s.jsx)(L.E,{variant:"text-sm/semibold",color:"text-default",className:eb.Dq,scaleFontToUserSetting:!0,children:a}),(0,s.jsx)(eD.Vx,{size:16,className:eb.To,isVictor:!0,isExpired:!0})]}),(0,s.jsxs)(L.E,{variant:"text-xs/medium",color:l,scaleFontToUserSetting:!0,children:[O.intl.string(O.t.ufIDIx)," \u2022 ",r,"%"]})]});break;case"TIE":let{tiedVotePercentage:o}=i;t=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(L.E,{variant:"text-sm/semibold",color:"text-default",scaleFontToUserSetting:!0,children:O.intl.string(O.t.kPN9si)}),(0,s.jsxs)(L.E,{variant:"text-xs/medium",color:l,scaleFontToUserSetting:!0,children:[o,"%"]})]})}return(0,s.jsx)("div",{className:eb.h_,children:t})}function ew(e){let{className:t,data:n,onClickPollLink:i}=e,l=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"===l.type;return(0,s.jsxs)("div",{className:eM()(eb.kL,{[eb.FS]:r},t),children:[(0,s.jsx)(eG,{hasNoVotes:"NO_VOTES"===l.type,victorEmoji:n.victorEmoji}),(0,s.jsx)(eH,{...l}),null!=i&&(0,s.jsx)(u.$,{size:"sm",onClick:i,variant:"secondary",text:O.intl.string(O.t.Jw7Vbf)})]})}var eF=n(435558),eV=n(403581),eB=n(331322),eJ=n(62010),ez=n(863574),eZ=n(811656),eK=n(166403),eX=n(625494),eW=n(38405),eY=n(427262),eQ=n(573359),eq=n(59784),e$=n(989790),e0=n(88001),e1=n(259589),e2=n(387993),e3=n(421438);function e7(e){let{disabled:t,invite:i,isExistingSub:l}=e;return(0,s.jsx)(u.$,{variant:"expressive",size:"md",text:O.intl.string(e1.default.rjuKse),icon:eV.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,eY.$3)(a);X.default.track(b.HAw.PREMIUM_GROUP_INVITE_EMBED_ACCEPT_CLICKED,{invite_id:t,subscription_id:e});let o=(0,eF.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,s.jsx)(i,{...n,premiumGroupSubscriptionId:e,premiumGroupInviteId:t,premiumGroupPrimaryName:r,isExistingSub:l,onClose:async()=>{c||(c=!0,eX._.dispatch(b.jej.WOW_MOMENT_CONFIRMATION_MODAL_CLOSED),eQ.A.isDisplayingWowMomentConfirmation&&eQ.A.isAnimated?setTimeout(()=>{n.onClose()},eZ.K):await n.onClose())}})},{onCloseRequest:()=>{c||(c=!0,eX._.dispatch(b.jej.WOW_MOMENT_CONFIRMATION_MODAL_CLOSED),eQ.A.isDisplayingWowMomentConfirmation&&eQ.A.isAnimated?setTimeout(()=>{(0,d.closeModal)(o)},eZ.K):(0,d.closeModal)(o))},modalKey:o})},disabled:t})}function e6(e){let{disabled:t,invite:i,channel:l}=e;return(0,s.jsx)(u.$,{variant:"secondary",size:"md",text:O.intl.string(e1.default["eYHh+z"]),onClick:function(){if(null==i||!l.isDM())return void eW.A.captureMessage("CancelInviteButton onClick: unexpected state",{extra:{inviteIsNull:null==i,channelIsDM:l.isDM(),channelId:l.id,subscriptionGroupMemberId:i?.id,subscriptionId:i?.subscription,primaryUserId:i?.primary_user}});let e=l.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,s.jsx)(e,{...n,subscriptionId:i.subscription,invitedUser:t,subscriptionGroupMemberId:i.id})}))},disabled:t})}function e5(e){let{message:t,header:n,body:i,compact:l,actionButton:a}=e;return(0,s.jsxs)(I.A,{className:e2.og,compact:l,iconNode:(0,s.jsx)(eV.t,{size:"md",color:eg.A.colors.ICON_STRONG}),children:[(0,s.jsx)(L.E,{variant:"text-md/medium",color:"text-strong",children:t}),(0,s.jsxs)(eB.B,{direction:"horizontal",className:e2.x,children:[(0,s.jsx)("img",{src:e3,alt:"",className:e2.Sl}),(0,s.jsxs)("div",{className:e2.Qs,children:[(0,s.jsx)(eJ.E,{type:"beta",variant:"expressive"}),(0,s.jsx)("h2",{className:e2.DD,children:n}),(0,s.jsx)(L.E,{variant:"text-md/medium",color:"text-subtle",children:i}),null!=a&&(0,s.jsx)("div",{className:e2.UD,children:a})]})]})]})}let e8=function(e){let{message:t,channel:n,compact:i}=e,l=t.premiumGroupInviteId,{inviteState:a,isFetching:r,invite:o,currentUser:d,premiumSubscription:u}=(0,c.cf)([eq.A,v.default,eK.A],()=>({inviteState:null!=l?eq.A.getInviteState(l):e0.xI.NOT_FOUND,isFetching:null!=l&&eq.A.isFetching(l),invite:null!=l?eq.A.getInvite(l)?.invite:null,currentUser:v.default.getCurrentUser(),premiumSubscription:eK.A.getPremiumSubscription()}),[l]);if(null==d)return null;let m=t.author,x=d.id===m.id;if(r||a===e0.xI.FETCHING||a===e0.xI.UNKNOWN)return(0,s.jsx)(ez.Wb,{isHorizontal:!0});let g=(0,e$.o1)({sender:m,channel:n,isSender:x,inviteState:a});if(null==g)return null;let h=a===e0.xI.PENDING,f=null;return f=x?h?(0,s.jsx)(e6,{disabled:!1,invite:o,channel:n}):a===e0.xI.REMOVED?(0,s.jsx)(e6,{disabled:!0,invite:o,channel:n}):null:(0,s.jsx)(e7,{disabled:!h,invite:o,isExistingSub:null!=u}),(0,s.jsx)(e5,{message:g.message,header:g.header,body:g.body,compact:i,actionButton:f})};var e9=n(536637),e4=n.n(e9),te=n(607399),tt=n(144165),tn=n(297264),ti=n(75678),tl=n(58703),ts=n(975571),ta=n(158045),tr=n(851746),to=n(727949),tc=n(664654),td=n(303682),tu=n(465794),tm=n(378135),tx=n(202541),tg=n(953081),th=n(954457);class tf 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,tm.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:ts.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:ts.A.getArticleURL(b.MVz.REFERRAL_PROGRAM)})}renderActions(){let e=this.currentUser.id!==this.trialOffer.userId||(0,ta.TW)(this.currentUser)||!this.currentUser.verified||(0,tm.P)(this.trialOffer),t=this.renderExpirationDate();return(0,s.jsxs)("div",{className:tg.UD,children:[(0,s.jsx)("div",{children:(0,s.jsx)(u.$,{variant:"primary",disabled:e,size:"sm",text:O.intl.string(O.t.O0etsF),onClick:()=>{(0,ti.A)({initialPlanId:null,subscriptionTier:tx.pe.TIER_2,analyticsLocations:this.analyticsLocations,trialId:this.trialOffer.trialId,referralTrialOfferId:this.trialOffer.id})}})}),(0,s.jsx)(L.E,{variant:"text-xs/semibold",color:"none",className:tg.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,tl.i$)(e4()(t),"LL")});if(this.recipientHasNitro||null==e.expiresAt)return null;let n=e4()(e.expiresAt);return this.offerExpired?O.intl.formatToPlainString(O.t.PuSHfU,{date:(0,tl.i$)(e4()(n),"LL")}):(0,to.GQ)(n.valueOf())}renderMedia(){return(0,s.jsx)("div",{className:tg.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:ts.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,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(tu.A,{disabled:this.offerExpired,subscriptionTier:tx.pe.TIER_2,buttonTextOverride:O.intl.string(O.t.O0etsF),size:"md",variantOverride:"expressive"}),(0,s.jsx)(L.E,{variant:"text-md/medium",color:"text-subtle",children:this.renderExpirationDate()})]}),i=(0,s.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,s.jsx)(e,{...t,startingScreen:i})})})({analyticsLocations:[],startingScreen:this.referralsSent.size===tc.Z?td.SelectFriendsModalScreens.REMINDER:td.SelectFriendsModalScreens.SELECT_FRIENDS}),text:O.intl.string(O.t.Lm2nFc)}),l=this.isSender?i:t,a=(0,s.jsx)(tt._,{src:th.A,height:84,width:144,className:tg.ms}),{headerText:r,bodyText:o}=e();return(0,s.jsxs)(I.A,{className:tg.SB,iconNode:(0,s.jsx)(eV.t,{size:"md",color:eg.A.colors.ICON_STRONG}),iconContainerClassName:tg.J5,compact:this.compact,children:[(0,s.jsx)(L.E,{variant:"text-md/medium",color:"text-strong",children:this.getSystemMessageHeader()}),(0,s.jsxs)("div",{className:tg.i2,children:[a,(0,s.jsxs)("div",{className:tg.KX,children:[(0,s.jsxs)("div",{className:tg.xJ,children:[(0,s.jsx)(tn.D,{variant:"heading-md/semibold",color:"text-strong",children:r}),(0,s.jsx)(L.E,{variant:"text-md/medium",color:"text-subtle",children:o})]}),(0,s.jsx)("div",{className:tg.ox,children:l})]})]})]})}}function tA(e){let{userTrialOfferId:t,canRenderReferralEmbed:n,compact:i}=e,{trialOffer:l,isResolving:a,referralsSent:r}=(0,c.cf)([tr.A],()=>({trialOffer:n?tr.A.getRelevantUserTrialOffer(t):null,isResolving:!!n&&tr.A.isResolving(t),referralsSent:tr.A.getRecipientStatus()}),[n,t]),o=v.default.getCurrentUser(),d=(0,c.bG)([v.default],()=>null!=l&&(0,ta.TW)(void 0!==o&&l.userId===o.id?o:v.default.getUser(l.userId))),u=(0,c.bG)([eK.A],()=>d?eK.A.getPremiumTypeSubscription()?.trialEndsAt:null),{analyticsLocations:m}=(0,F.Ay)(w.A.SHARE_NITRO_EMBED);return a?(0,s.jsx)(ez.Wb,{isHorizontal:!te.Fr}):n&&null!=l&&void 0!==o?(0,s.jsx)(tf,{trialOffer:l,referralsSent:r,currentUser:o,recipientHasNitro:d,trialEndsAt:u,analyticsLocations:m,compact:i}):(0,s.jsx)("div",{className:tg.TU,children:(0,s.jsx)("div",{className:tg.Gq})})}var tE=n(638916),t_=n(834516),tp=n(28863),tC=n(342296),tI=n(486020),tN=n(552691);function tj(e,t){let n=a.useRef(null);return a.useCallback(i=>(l,a)=>{let r=tI.Ay.getApplicationIconURL({id:i.id,icon:i.icon,bot:i.bot,botIconFirst:!0}),{bot:o}=i;return null==o?l:(0,s.jsx)(tC.A,{targetElementRef:n,userId:o.id,avatarUrl:r,guildId:e.guild_id,channelId:e.id,messageId:t.id,clickTrap:!0,children:e=>(0,s.jsx)(tp.Anchor,{...e,ref:n,children:l})},a)},[e,t.id])}var tT=n(448761),tv=n(215026),tS=n(905499),tO=n(60270),tR=n(241326),tM=n(478016),tL=n(256416);let ty={[tT.l.REPORT_TO_MOD_BAN_USER]:()=>tL.default.komFTv,[tT.l.REPORT_TO_MOD_KICK_USER]:()=>tL.default.FAJmJV,[tT.l.REPORT_TO_MOD_TIMEOUT_USER]:()=>tL.default["90r/sR"]},tk={[tT.l.REPORT_TO_MOD_DELETED_MESSAGE]:()=>tL.default["4023i8"],[tT.l.REPORT_TO_MOD_CLOSED_REPORT]:()=>tL.default.UE81zV};function tD(e){let{type:t}=e,n=null;switch(t){case tT.l.REPORT_TO_MOD_BAN_USER:n=tv.w;break;case tT.l.REPORT_TO_MOD_KICK_USER:n=tS.N;break;case tT.l.REPORT_TO_MOD_TIMEOUT_USER:n=tO.g;break;case tT.l.REPORT_TO_MOD_DELETED_MESSAGE:n=tR.TrashIcon;break;case tT.l.REPORT_TO_MOD_CLOSED_REPORT:n=tM.U}return null!=n?(0,s.jsx)(n,{size:"refresh_sm",color:"currentColor"}):null}function tU(e){let{message:t,channel:n,compact:i}=e,{author:l,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)(l,n),x=(0,C.P)({user:l,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=ty[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,s.jsx)(I.A,{iconNode:(0,s.jsx)(tD,{type:r}),timestamp:t.timestamp,compact:i,children:A})}function tb(e){let{message:t,channel:n,compact:i}=e,{author:l,type:a}=t,r=(0,k.Ay)(t),o=t.getChannelId(),c=(0,k.m2)(l,n),d=(0,C.P)({user:l,channelId:o,guildId:n.guild_id,messageId:t.id})(c),u=tk[a]??null;if(null==u)return null;let m=O.intl.format(u(),{actorName:r.nick,actorHook:d});return(0,s.jsx)(I.A,{iconNode:(0,s.jsx)(tD,{type:a}),timestamp:t.timestamp,compact:i,children:m})}function tP(e){let{message:t,channel:n,compact:i}=e,{type:l}=t;return l===tT.l.REPORT_TO_MOD_BAN_USER||l===tT.l.REPORT_TO_MOD_KICK_USER||l===tT.l.REPORT_TO_MOD_TIMEOUT_USER?(0,s.jsx)(tU,{message:t,channel:n,compact:i}):(0,s.jsx)(tb,{message:t,channel:n,compact:i})}var tG=n(849736),tH=n(63995),tw=n(105530),tF=n(353202),tV=n(747926);let tB=[{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 tJ=n(179847);function tz(e){var t;let n,i,{channel:l,message:r}=e,o=(t=r.id,i=((null!=(n=v.default.getCurrentUser()?.id)?W.default.extractTimestamp(n):0)+W.default.extractTimestamp(t))%tB.length,tB[i]),c=a.useCallback(()=>{(0,Y.i)({type:J.oU.FORM,content:"",channel:l}).then(e=>{let{valid:t}=e;if(t){var n;n=o.id,g.A.sendGreetMessage(l.id,n,g.A.getSendMessageOptionsForReply({channel:l,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})}})},[l,r,o]);return(0,s.jsx)("div",{className:tJ.T,children:(0,s.jsx)(u.$,{icon:{type:"sticker",asset:o,component:z.A},text:O.intl.string(O.t["7Tj6HT"]),onClick:c,variant:"secondary"})})}function tZ(e){let{message:t,channel:n}=e,i=n.getGuildId(),l=(0,c.bG)([v.default,K.A,et.A,T.Ay],()=>{let e=v.default.getCurrentUser(),l=(0,Z.UJ)(n),s=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 s&&!l&&!a&&!r&&c});return null!=i&&l?(0,s.jsx)(tz,{message:t,channel:n}):null}var tK=n(470710),tX=n(734057),tW=n(290863),tY=n(309010),tQ=n(977997),tq=n(562153),t$=n(521981),t0=n(782603),t1=n(562708),t2=n(778712),t3=n(214947),t7=n(597770),t6=n(966327),t5=n(139286),t8=n(427358),t9=n(242874),t4=n(507104),ne=n(51501),nt=n(5755),nn=n(690802);let ni=(0,t2.FT)(t2._3.SIZE_56),nl=(0,t2.FT)(t2._3.SIZE_24);function ns(e){let{user:t,ariaLabel:n,showCutout:i}=e,l=a.useId(),r="u">typeof document&&document.documentElement?.dir==="rtl"?-2:ni-nl- -2,o=ni-nl- -3;return(0,s.jsxs)("svg",{width:ni,height:ni,viewBox:`0 0 ${ni} ${ni}`,className:nn.XH,children:[i&&(0,s.jsxs)("mask",{id:l,maskUnits:"userSpaceOnUse",children:[(0,s.jsx)("rect",{x:0,y:0,width:ni,height:ni,fill:"white"}),(0,s.jsx)("circle",{cx:r+nl/2,cy:o+nl/2,r:nl/2+2,fill:"black"})]}),(0,s.jsx)("foreignObject",{x:0,y:0,width:ni,height:ni,mask:i?`url(#${l})`:void 0,children:(0,s.jsx)(t6.A,{className:nn.A6,user:t,"aria-label":n,size:t2._3.SIZE_56})})]})}function na(e){let{giftIntentType:t,recipientUser:i,analyticsPage:l,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)([t4.Ay],()=>t4.Ay.getFriendAnniversaryYears(i.id)),h=(0,ne.$u)(t),{openGiftModal:f}=(0,nt.$)({giftRecipient:i,analyticsLocations:x,analyticsLocation:h.chat,analyticsObject:{page:l,section:r,object:b.ZSU.BUTTON_CTA,objectType:b.AnalyticsObjectTypes.GIFT},location:"gift-intent-card"});function A(){switch(t){case tx.np.FRIEND_ANNIVERSARY:return O.intl.string(O.t.ilhtIa);case tx.np.UNSPECIFIED:return;default:return(0,t9.yE)(t)}}return a.useEffect(()=>{(0,t5.x)({name:t1.ImpressionNames.GIFT_INTENT_CARD,type:t1.ImpressionTypes.VIEW,properties:{gift_intent_type:t,num_friend_anniversaries:t4.Ay.getFriendAnniversaries().length}})},[t]),(0,s.jsx)("div",{ref:o,className:nn.Qs,children:(0,s.jsxs)("div",{className:nn.gx,children:[(0,s.jsxs)("div",{className:nn.ou,children:[(0,s.jsxs)("div",{className:nn.HD,children:[(0,s.jsx)(ns,{user:i,ariaLabel:i.username,showCutout:null!=m}),null!=m&&(0,s.jsx)(t6.A,{className:nn.GM,user:m,"aria-label":i.username,size:t2._3.SIZE_24})]}),(0,s.jsxs)("div",{className:nn.FS,children:[(0,s.jsx)(L.E,{variant:"text-md/medium",color:"text-strong",lineClamp:3,children:function(){switch(t){case tx.np.FRIEND_ANNIVERSARY:return O.intl.string(O.t.CeQIwZ);case tx.np.UNSPECIFIED:return;default:return(0,t9.yE)(t)}}()}),(0,s.jsxs)("div",{className:nn.jA,children:[(0,s.jsx)(t3.$,{size:"xs"}),(0,s.jsx)(L.E,{className:nn.Tm,variant:"text-md/normal",color:"text-subtle",lineClamp:1,children:function(){switch(t){case tx.np.FRIEND_ANNIVERSARY:return O.intl.formatToPlainString(O.t.PpG27s,{numberOfYears:g});case tx.np.UNSPECIFIED:return;default:return(0,t9.yE)(t)}}()})]})]})]}),(0,s.jsxs)("div",{className:nn.UD,children:[(0,s.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,s.jsx)(e,{...n,giftIntentType:t,analyticsLocationHistory:x,recipient:i})})}}),(0,s.jsx)(u.$,{size:"sm",variant:"expressive",text:A(),icon:t7.GiftIcon,"aria-label":A(),onClick:function(e){e.stopPropagation();let n=t8.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 nr=n(147036),no=n(36889);function nc(e){let{giftIntentType:t,recipientUser:n,channel:i}=e;return(0,s.jsx)(I.A,{contentClassName:no.o9,iconContainerClassName:no.zc,iconNode:(0,s.jsx)(t0.BellIcon,{colorClass:no.Kk}),children:(0,s.jsx)(na,{giftIntentType:t,recipientUser:n,analyticsPage:(0,nr.DJ)(i),analyticsSection:b.JJy.CHANNEL})})}var nd=n(438729),nu=n(862482),nm=n(725807),nx=n(900443);function ng(e){let{message:t,channel:n}=e,i=null!=n.guild_id?b.JJy.TEXT_IN_VOICE:b.JJy.CHANNEL_TEXT_AREA;return(0,s.jsx)(I.A,{contentClassName:nx.o9,iconContainerClassName:nx.zc,iconNode:(0,s.jsx)(t0.BellIcon,{colorClass:nx.Kk}),children:(0,s.jsxs)("div",{className:nx.kL,children:[(0,s.jsxs)("div",{children:[(0,s.jsx)(L.E,{variant:"text-sm/medium",children:t.content}),(0,s.jsxs)("div",{className:nx.C5,children:[(0,s.jsx)(eV.t,{size:"xs",colorClass:nx.bu}),(0,s.jsx)(L.E,{variant:"text-xs/medium",className:nx.vp,children:O.intl.string(O.t["BMw+7I"])})]})]}),(0,s.jsx)("div",{className:nx.UD,children:(0,s.jsx)(nm.A,{showGradient:!0,iconClassName:nx.PC,subscriptionTier:tx.pe.TIER_2,textOptions:{textOverride:O.intl.string(O.t.Y2WKTl)},size:nu.$n.Sizes.SMALL,premiumModalAnalyticsLocation:{section:i,object:b.ZSU.MESSAGE}})})]})})}var nh=n(812299);function nf(e){let{message:t,compact:i,appNameHook:l,addingUser:r,addingUserHook:o}=e,c=(0,k.Ay)(t),d=l(c);function u(e,n){return(0,s.jsxs)(a.Fragment,{children:[d(e,`${n}-name`),(0,nh.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,s.jsx)(I.A,{icon:n(617184),timestamp:t.timestamp,compact:i,children:m})}var nA=n(837381),nE=n(933832),n_=n(138134),np=n(866665),nC=n(231483),nI=n(123292),nN=n(709066),nj=n(845625),nT=n(449585),nv=n(995786),nS=n(741231),nO=n(589022),nR=n(367513),nM=n(47167),nL=n(332173),ny=n(95701),nk=n(994500),nD=n(449054);function nU(e){let{channel:t,onClick:n,beforeTransition:i,className:l,openChatWithoutConnecting:a}=e,r=(0,c.bG)([v.default,nk.A],()=>null==t?"":(0,nM.m1)(t,v.default,nk.A),[t]);return(0,s.jsx)(np.m,{"data-pending-richtooltip-migration":!0,__unsupportedReactNodeAsText:r,position:"top",children:(0,s.jsx)(nL.A,{role:"link",className:l,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 nD.Z2(e,{},{channelId:t});let l=tX.A.getChannel(t);if(null!=l&&(0,ny.ay)(l.type)){if(n){nR.A.updateChatOpen(l.id,!0),(0,N.pX)(b.BVt.CHANNEL(e,t));return}h.default.selectVoiceChannel(l.id);return}(0,N.pX)(b.BVt.CHANNEL(e,t))}(t?.guild_id,t?.id,a))},iconType:(0,nr.QG)(t),children:r})})}var nb=n(491182),nP=n(622868),nG=n(868892);function nH(e){let{message:t,channel:n,content:i,className:l,compact:a,popoutProps:r,hideTimestamp:o=!1,withFooter:c=!1,...d}=e,u=(0,k.Ay)(t);return(0,s.jsx)("div",{className:eM()({[nG.Ym]:c},nG.gD,{[nG.oE]:a},l),children:(0,s.jsx)(nb.A,{...d,className:eM()(nG.zC,{[nG.oE]:a}),childrenMessageContent:(0,s.jsx)(nd.Ay,{className:eM()(nG.__invalid_messageContent,{[nG.oE]:a}),message:t,content:i,compact:a??!1}),childrenHeader:(0,s.jsx)(nP.Ay,{message:t,channel:n,author:u,guildId:n?.guild_id,compact:a,hideTimestamp:o,className:eM()(nG.wx,{[nG.oE]:a}),...r??{}}),compact:a,author:u})})}var nw=n(10364),nF=n(837528),nV=n(754459),nB=n(97808),nJ=n(3451),nz=n(19575),nZ=n(6829);let nK=nz.Ay.getEnableHardwareAcceleration()?nB.Js:nB.eu;function nX(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],[t,n]=a.useState(!1),i=(0,c.bG)([y.Ay],()=>y.Ay.useReducedMotion),l=a.useMemo(()=>{let n=t||!i&&!e;return(0,nJ.q)(n)},[t,i,e]);return{avatarSrc:l,eventHandlers:{onMouseEnter:a.useCallback(()=>n(!0),[]),onMouseLeave:a.useCallback(()=>n(!1),[])}}}function nW(e){let{src:t}=e;return(0,s.jsx)("div",{className:nZ.H,children:(0,s.jsx)(nK,{src:t,size:t2._3.SIZE_40,"aria-label":O.intl.string(O.t.hG1StD)})})}var nY=n(381941),nQ=n(705751),nq=n(200700);function n$(e,t){let{popouts:n,selected:i,setPopout:l}=(0,nV.A)(e.id,nY.Fd),{usernameProfile:s,avatarProfile:r}=n,o=(0,nF.r4)(e.author.id,t.id),c=(0,nF.UY)(e.author.id,t.id,e.id),d=(0,nF.m)(e,t,s,l);return{selected:i,onContextMenu:o,onContextMenuModerateUser:c,onClickUsername:d,onClickAvatar:(0,nF.Jo)(r,l),onPopoutRequestClose:a.useCallback(()=>l({usernameProfile:!1,avatarProfile:!1,referencedUsernameProfile:!1}),[l]),renderPopout:nw.A,showAvatarPopout:r,showUsernamePopout:s}}function n0(e,t,n){return a.useMemo(()=>{if(null!=t&&null!=n)return i=>(0,s.jsx)(nO.A,{...i,user:t,currentUser:n,guildId:e.guild_id,channelId:e.id})},[e,t,n])}function n1(e){let{children:t,className:n,compact:i}=e;return(0,s.jsx)("div",{className:eM()(nZ.xQ,n,{[nZ.oE]:i}),children:t})}function n2(e){let{children:t,className:n}=e;return(0,s.jsx)("div",{className:eM()(nZ.A3,n),children:t})}function n3(e){switch(e){case nj.G.DELETE_USER_MESSAGE:return(0,s.jsx)(tR.TrashIcon,{size:"xs",color:"currentColor",className:nZ.yr});case nj.G.SET_COMPLETED:return(0,s.jsx)(nE.CheckmarkLargeIcon,{size:"xs",color:"currentColor",className:eM()(nZ.yr,nZ.r0)});case nj.G.SUBMIT_FEEDBACK:return(0,s.jsx)(n_.FlagIcon,{size:"xs",color:"currentColor",className:nZ.yr});default:return null}}function n7(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 n3(e);let l=function(e,t,n){let i=tq.Ay.getNickname(n,null,t)??eY.Ay.getUserTag(t),l=e4()(e.ts),s=`${i} ${l.fromNow()}`;try{switch(parseInt(e.actionType)){case nj.G.DELETE_USER_MESSAGE:return O.intl.formatToPlainString(O.t.BtKE9h,{userName:i,timestamp:l.fromNow()});case nj.G.SET_COMPLETED:return O.intl.formatToPlainString(O.t.dyo9US,{userName:i,timestamp:l.fromNow()});case nj.G.SUBMIT_FEEDBACK:return O.intl.formatToPlainString(O.t["C9/kIO"],{userName:i,timestamp:l.fromNow()});default:return s}}catch(e){return s}}(t,i,n);return(0,s.jsx)(np.m,{text:l,children:n3(e)})}catch(e){return null}}function n6(e){let{alertActionsExecution:t,guildId:n}=e,i=Object.values(t.actions).sort((e,t)=>e.actionType<t.actionType?1:-1);return(0,s.jsx)("div",{className:nZ.q_,children:i.map(e=>(0,s.jsx)(n7,{alertAction:e,guildId:n},e.actionType))})}let n5=a.memo(function(e){let t,{message:n,channel:i,embedChannel:l,compact:a,interactionUserId:r}=e,o=n$(n,i),c=n0(i,n.author),d=(0,k.Ay)(n),u=(0,nP.tO)({message:n,channel:i,author:d,guildId:i?.guild_id,compact:a,...o},c),m=v.default.getUser(r),x=n$(n,i),g=n0(i,m,v.default.getCurrentUser());if(null!=m){let e=(0,k.FT)(m,i),l=(0,nP.tO)({message:n,channel:i,author:e,guildId:i?.guild_id,compact:a,...x},g);t=()=>l}return(0,s.jsx)(L.E,{variant:"text-md/normal",color:"text-strong",tag:"span",className:nZ.he,children:(0,_.fu)(n,l,function(){return(0,s.jsx)("div",{className:nZ.aT,children:(0,s.jsx)(nU,{channel:l,className:nZ.HA,openChatWithoutConnecting:!0})})},function(){return u},t)})});function n8(e){let{id:t,compact:n,message:i,channel:l}=e,{avatarSrc:r,eventHandlers:{onMouseEnter:o,onMouseLeave:d}}=nX(!0),{onFocus:u,...m}=(0,nA.rm)(t??""),{isFocused:x,handleFocus:g,handleBlur:f}=(0,nF.G8)(u),A=(0,c.bG)([y.Ay],()=>y.Ay.keyboardModeEnabled),E=(0,c.bG)([K.A],()=>K.A.can(b.xBc.MANAGE_MESSAGES,l),[l]),{ruleName:p,embedChannel:C,decisionId:N,keywordMatchedContent:j,keyword:T,content:v,flaggedMessageId:S,timeoutDuration:R,decisionReason:M,alertActionsExecution:k,quarantineType:D,interactionUserId:U}=(0,_.Ay)(i),P=a.useMemo(()=>(0,t$.Tz)(v,j,l.id),[v,j,l]),{selected:G,...H}=n$(i,l),w=a.useCallback(()=>{(0,nT.w2)(i.id,v,N,l)},[i.id,v,N,l]),F=a.useCallback(e=>{null!=S&&null!=C&&(e.stopPropagation(),e.preventDefault(),(0,nS.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,nv.E5)(i.id,l,nj.G.DELETE_USER_MESSAGE)},[l,i.id]),J=(0,nq.getFriendlyDurationString)(Number(R)),z=null!=M,Z=E&&null!=S&&(null==k||!k.actions.hasOwnProperty(nj.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,s.jsx)("div",{onMouseEnter:o,onMouseLeave:d,children:(0,s.jsx)(I.A,{className:eM()(nZ.rs,{[nZ.oE]:n}),iconNode:n?null:(0,s.jsx)(nW,{src:r}),iconContainerClassName:nZ.zc,compact:n,children:(0,s.jsxs)("div",{className:eM()(nZ.Qs,{[nZ.oE]:n}),children:[(0,s.jsx)(nP.ix,{message:i,messageClassname:nZ.he,className:eM()(nZ.QV,nZ.he,{[nZ.oE]:n}),username:(0,s.jsxs)("div",{className:nZ.he,children:[(0,s.jsx)(L.E,{variant:"text-md/normal",color:"text-brand",tag:"span",className:nZ.Xh,children:O.intl.string(O.t.hG1StD)}),(0,s.jsx)(nN.A,{type:nQ.nu.SYSTEM_DM,className:nZ.Al}),(0,s.jsx)(n5,{message:i,channel:l,embedChannel:C,compact:n,interactionUserId:U})]}),compact:n,showTimestamp:!0}),(0,s.jsx)("div",{className:eM()(nZ.BK,{[nZ.oE]:n}),children:(0,s.jsx)(nH,{...m,message:i,channel:C,content:P,compact:n,withFooter:!0,hideTimestamp:!0,className:eM()(nZ.gD,{[nZ.oE]:n,[nZ.wH]:G||A&&x,[nZ.JD]:null!=S&&null!=C}),childrenAccessories:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:nZ.Y4,children:[null!=T&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(L.E,{variant:"text-xs/medium",color:"text-muted",tag:"span",children:O.intl.format(O.t.SYIUTR,{keyword:T})}),(0,s.jsx)("div",{className:eM()(nZ.Om,nZ.Gx)})]}),null!=p&&(0,s.jsx)(L.E,{variant:"text-xs/medium",color:"text-muted",tag:"span",children:O.intl.format(O.t.ZoOyKB,{ruleName:p})}),null!=J&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:eM()(nZ.Om,nZ.Gx)}),(0,s.jsx)(L.E,{variant:"text-xs/medium",color:"text-muted",tag:"span",className:nZ.__invalid_footerText,children:O.intl.format(O.t["3LYql6"],{duration:J})})]}),null!=D&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:eM()(nZ.Om,nZ.Gx)}),(0,s.jsx)(L.E,{variant:"text-xs/medium",color:"text-muted",tag:"span",className:nZ.nx,children:O.intl.format(O.t["26bB2M"],{reason:(0,_.o2)(D)})})]})]}),z?(0,s.jsx)(n2,{children:(0,s.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,s.jsx)(n1,{compact:n,children:(0,s.jsxs)("div",{className:eM()(nZ.Y4,nZ.UD,{[nZ.oE]:n}),children:[(0,s.jsxs)("div",{className:nZ.AX,children:[(0,s.jsx)(nC.ShieldIcon,{size:"xs",color:eg.A.unsafe_rawColors.BRAND_500.css,className:nZ.Dq}),(0,s.jsx)(nI.Q,{variant:"primary",size:"sm",textVariant:"text-xs/normal",text:O.intl.string(O.t.DEoVWZ),onClick:function(e){H.onContextMenuModerateUser?.(e)}})]}),W?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:nZ.Om}),(0,s.jsx)("div",{className:nZ.AX,children:(0,s.jsx)(nI.Q,{onClick:()=>V(X),variant:"primary",size:"sm",textVariant:"text-xs/normal",text:O.intl.string(O.t.jtkj06)})})]}):null,(0,s.jsx)("div",{className:nZ.Om}),(0,s.jsx)("div",{className:nZ.AX,children:(0,s.jsx)(nI.Q,{onClick:w,variant:"primary",size:"sm",textVariant:"text-xs/normal",text:O.intl.string(O.t["94JbM3"])})}),Z?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:nZ.Om}),(0,s.jsx)("div",{className:nZ.AX,children:(0,s.jsx)(nI.Q,{onClick:B,variant:"primary",size:"sm",textVariant:"text-xs/normal",text:O.intl.string(O.t["3A52tY"])})})]}):null,null!=k?(0,s.jsx)(n6,{alertActionsExecution:k,guildId:l.guild_id}):null]})})]})})})}var n9=n(718564),n4=((i={}).JOIN_RAID="JOIN_RAID",i.DM_RAID="DM_RAID",i.MENTION_RAID="MENTION_RAID",i),ie=n(695366),it=n(848847),ii=n(939249),il=n(953822),is=n(585510),ia=n(903093),ir=n(735699),io=n(854627),ic=n(474352);function id(){return(0,s.jsx)("div",{className:ic.Om})}function iu(e){let{message:t,compact:n}=e,{notificationType:i}=(0,_.Bk)(t);switch(i){case _.ZA:case n9.W.RAID:return(0,s.jsx)(ih,{message:t,compact:n});case n9.W.MENTION_RAID:return(0,s.jsx)(iA,{message:t,compact:n});case n9.W.ACTIVITY_ALERTS_ENABLED:return(0,s.jsx)(ig,{message:t,compact:n});case n9.W.INTERACTION_BLOCKED:return(0,s.jsx)(ix,{compact:n});default:return(0,s.jsx)(im,{compact:n})}}function im(e){let{compact:t}=e;return(0,s.jsx)(iE,{compact:t,header:(0,s.jsxs)(a.Fragment,{children:[(0,s.jsx)(ie.E,{size:"xs",color:eg.A.colors.TEXT_DEFAULT.css}),(0,s.jsx)(L.E,{variant:"text-md/semibold",color:"text-default",children:O.intl.string(O.t.VdZCcC)})]}),content:(0,s.jsx)(L.E,{variant:"text-md/normal",color:"text-muted",children:O.intl.string(O.t["NxHYX/"])})})}function ix(e){let{compact:t}=e;return(0,s.jsx)(iE,{compact:t,header:(0,s.jsxs)(a.Fragment,{children:[(0,s.jsx)(ie.E,{size:"xs",color:eg.A.colors.TEXT_DEFAULT.css}),(0,s.jsx)(L.E,{variant:"text-md/semibold",color:"text-default",children:O.intl.string(O.t["2qTBw/"])})]}),content:(0,s.jsx)(L.E,{variant:"text-md/normal",color:"text-muted",children:O.intl.string(O.t.Dc9wCp)})})}function ig(e){let{message:t,compact:n}=e,i=v.default.getUser((0,_.ZD)(t)),l=tX.A.getBasicChannel(t.channel_id)?.guild_id,r=null!=l&&null!=i?T.Ay.getMember(l,i.id):null,{avatarSrc:o,avatarDecorationSrc:c,eventHandlers:d}=(0,io.A)({userId:i?.id,guildId:l,size:12}),u=a.useRef(null);return(0,s.jsx)(iE,{compact:n,header:(0,s.jsxs)(a.Fragment,{children:[(0,s.jsx)(it.H,{size:"xs",color:eg.A.colors.TEXT_FEEDBACK_POSITIVE.css}),(0,s.jsx)(L.E,{variant:"text-md/semibold",color:"text-feedback-positive",children:O.intl.string(O.t.lVLiFp)})]}),subheader:(0,s.jsxs)("div",{className:ic.Ns,children:[(0,s.jsx)("div",{className:ic.gk,children:null!=r&&null!=i&&(0,s.jsxs)(a.Fragment,{children:[(0,s.jsx)(L.E,{variant:"text-xs/medium",color:"text-default",children:O.intl.string(O.t.qlFrXW)}),(0,s.jsx)(tC.A,{targetElementRef:u,user:i,guildId:l,channelId:t.channel_id,messageId:t.id,children:e=>(0,s.jsxs)(ii.D,{innerRef:u,className:ic.rI,...e,children:[(0,s.jsx)("div",{...d,children:(0,s.jsx)(nB.eu,{src:o,avatarDecoration:c,size:t2._3.SIZE_16,"aria-label":"TODO"})}),(0,s.jsxs)(L.E,{variant:"text-xs/medium",style:{color:null!=r.colorString?r.colorString:eg.A.colors.TEXT_DEFAULT.css},children:[" ","@",i.username]})]})})]})}),(0,s.jsx)(id,{}),(0,s.jsx)(L.E,{variant:"text-xs/medium",color:"text-default",children:e4()(t.timestamp).fromNow()})]}),content:(0,s.jsx)(L.E,{variant:"text-md/normal",color:"text-muted",children:O.intl.string(O.t["QV/8u5"])})})}function ih(e){let{message:t,compact:n}=e,{joinAttempts:i,raidDatetime:l,dmsSent:r,raidType:o,resolvedReason:d}=(0,_.Bk)(t),u=(0,c.bG)([tX.A],()=>tX.A.getChannel(t.channel_id),[t.channel_id]),m=u?.guild_id??null,{shouldShowIncidentActions:x}=(0,is.Li)(m),g=(0,nF.Am)(t.author.id,t.channel_id),h=a.useCallback(()=>{let e=u?.guild_id;null!=e&&(0,nT.is)(t.id,e)},[t.id,u]),f=o===n4.DM_RAID,A=f?ie.E:il.E;return(0,s.jsx)(iE,{compact:n,header:(0,s.jsxs)(a.Fragment,{children:[(0,s.jsx)(A,{size:"xs",color:eg.A.colors.TEXT_FEEDBACK_CRITICAL.css}),(0,s.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,s.jsxs)("div",{className:ic.Ns,children:[null!=i&&(0,s.jsx)(L.E,{variant:"text-xs/medium",color:"text-default",children:O.intl.format(O.t["4ylIiu"],{joinCount:i})}),null!=r&&(0,s.jsx)(L.E,{variant:"text-xs/medium",color:"text-default",children:O.intl.format(O.t["5C8Mh3"],{dmsSent:r})}),null!=l&&(0,s.jsxs)(a.Fragment,{children:[(0,s.jsx)(id,{}),(0,s.jsx)(L.E,{variant:"text-xs/medium",color:"text-default",children:e4()(l).fromNow()})]})]}),content:null!=l?(0,s.jsx)(L.E,{variant:"text-md/normal",color:"text-muted",children:O.intl.format(O.t["4QIIZl"],{dateTime:l.toLocaleString(O.intl.currentLocale,ia.yc)})}):null,footerButtons:x?(0,s.jsxs)("div",{className:ic.OZ,children:[(0,s.jsxs)("div",{className:ic.AX,children:[(0,s.jsx)(nC.ShieldIcon,{size:"xs",color:eg.A.unsafe_rawColors.BRAND_500.css,className:ic.Dq}),(0,s.jsx)(nI.Q,{variant:"primary",size:"sm",textVariant:"text-xs/medium",text:O.intl.string(O.t.DEoVWZ),onClick:function(e){g(e)}})]}),(0,s.jsx)(id,{}),(0,s.jsx)("div",{className:ic.AX,children:(0,s.jsx)(nI.Q,{variant:"primary",textVariant:"text-xs/medium",size:"sm",text:(0,_.Oj)(d),onClick:h})})]}):null})}function iA(e){let{message:t,compact:n}=e,i=tX.A.getBasicChannel(t.channel_id)?.guild_id,{raidDatetime:l,decisionId:r,suspiciousMentionActivityUntil:o}=(0,_.Bk)(t);return(0,s.jsx)(iE,{compact:n,header:(0,s.jsxs)(a.Fragment,{children:[(0,s.jsx)(ie.E,{size:"xs",color:eg.A.colors.TEXT_FEEDBACK_CRITICAL.css}),(0,s.jsx)(L.E,{variant:"text-md/semibold",color:"text-feedback-critical",children:O.intl.string(O.t.C2uIXE)})]}),subheader:(0,s.jsx)("div",{className:ic.Ns,children:null!=l&&(0,s.jsx)(L.E,{variant:"text-xs/medium",color:"text-default",children:e4()(l).fromNow()})}),content:(0,s.jsx)(L.E,{variant:"text-md/normal",color:"text-muted",children:O.intl.string(O.t.SWIWEV)}),footerButtons:(0,s.jsxs)("div",{className:ic.OZ,children:[(0,s.jsx)("div",{className:ic.AX,children:(0,s.jsx)(nI.Q,{variant:"primary",textVariant:"text-xs/medium",size:"sm",text:O.intl.string(O.t.oX14El),onClick:function(){null!=i&&null!=r&&(0,nv.W5)(i,r,()=>{(0,ir.w)(o),(0,nv.wu)(i)})}})}),(0,s.jsx)(id,{}),(0,s.jsx)("div",{className:ic.AX,children:(0,s.jsx)(nI.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 iE(e){let{compact:t,header:n,subheader:i,content:l,footerButtons:a}=e;return(0,s.jsxs)("div",{className:eM()(ic.gD,{[ic.oE]:t}),children:[(0,s.jsxs)("div",{className:ic.Ux,children:[(0,s.jsxs)("div",{className:ic.LN,children:[(0,s.jsx)("div",{className:ic.MY,children:n}),null!=i&&(0,s.jsx)("div",{className:ic.m_,children:i})]}),l]}),null!=a&&(0,s.jsx)("div",{className:eM()(ic.Y4,ic.UX,{[ic.oE]:t}),children:a})]})}function i_(e){let{id:t,compact:n,message:i,channel:l}=e,{avatarSrc:a,eventHandlers:{onMouseEnter:r,onMouseLeave:o}}=nX(!0),{notificationType:c}=(0,_.Bk)(i),d=null==c||c===n9.W.RAID;return(0,s.jsx)("div",{onMouseEnter:r,onMouseLeave:o,children:(0,s.jsx)(I.A,{className:eM()(ic.rs,{[ic.oE]:n}),iconNode:n?null:(0,s.jsx)(nW,{src:a}),iconContainerClassName:ic.zc,compact:n,children:(0,s.jsxs)("div",{className:eM()(ic.Qs,{[ic.oE]:n}),children:[(0,s.jsx)(nP.ix,{message:i,messageClassname:ic.he,className:eM()(ic.QV,ic.he,{[ic.oE]:n}),username:(0,s.jsxs)("div",{className:ic.he,children:[(0,s.jsx)(L.E,{variant:"text-md/normal",color:"text-brand",tag:"span",className:ic.Xh,children:O.intl.string(O.t.hG1StD)}),(0,s.jsx)(nN.A,{type:nQ.nu.SYSTEM_DM,className:ic.Al}),d&&(0,s.jsx)(L.E,{variant:"text-md/normal",color:"text-strong",tag:"span",className:ic.he,children:O.intl.string(O.t.ufawcw)})]}),compact:n,showTimestamp:!0}),(0,s.jsx)("div",{className:ic.BZ}),(0,s.jsx)(iu,{message:i,compact:n})]})})})}function ip(e){let{message:t,...n}=e;return(0,_.de)(t)?(0,s.jsx)(i_,{message:t,...n}):(0,s.jsx)(n8,{message:t,...n})}var iC=n(480012);function iI(e){let{message:t,compact:i,missed:l,joinable:a,usernameHook:r,onClickJoinCall:o}=e,c=(0,k.Ay)(t),d=c.nick,u=r(c),m=(0,iC.A)(t);return l?(0,s.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,s.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,s.jsx)(I.A.Action,{onClick:o,children:O.intl.string(O.t.oa9mvZ)}):null]})}var iN=n(517905);function ij(e){let{children:t,messageReference:n,guildName:i}=e,l=a.useRef(null);if(null==n)return(0,s.jsx)(tp.Anchor,{children:t});let{guild_id:r}=n;return null==r?(0,s.jsx)(tp.Anchor,{children:t}):(0,s.jsx)(iN.A,{guildId:r,name:i,targetElementRef:l,children:e=>{let{"aria-controls":n,"aria-expanded":i,...a}=e;return(0,s.jsx)(tp.Anchor,{...a,ref:l,children:t})}})}function iT(e){let{usernameHook:t,message:i,compact:l}=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,s.jsx)(ij,{messageReference:o,guildName:u,children:e},t)});return(0,s.jsx)(I.A,{icon:n(617184),timestamp:r,compact:l,children:m})}var iv=n(22231),iS=n(73028);function iO(e){let{message:t,usernameHook:n,compact:i}=e,l=(0,k.Ay)(t),a=n(l);return(0,s.jsx)(I.A,{iconNode:(0,s.jsx)(iv.PencilIcon,{size:"xs",color:"currentColor"}),timestamp:t.timestamp,compact:i,children:O.intl.format(O.t["4wLp25"],{username:l.nick,usernameHook:a,editGroupButton:(0,s.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,iS.U)(t.channel_id,w.A.GROUP_DM_SYSTEM_MESSAGE_ICON)})})}var iR=n(663417),iM=n(429913),iL=n(564178);function iy(e){let{message:t,channel:n,compact:i}=e,l=(0,k.Ay)(t),a=(0,C.P)({user:t.author,channelId:n.id,guildId:n.guild_id,messageId:t.id})(l),r=(0,iM.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,s.jsx)(L.E,{className:iL.S,variant:"text-md/semibold",color:"text-strong",children:r.name},r.name),helpdeskArticle:"#"});return(0,s.jsx)(I.A,{iconNode:(0,s.jsx)(iR.RefreshIcon,{size:"sm",color:eg.A.colors.STATUS_POSITIVE}),timestamp:t.timestamp,compact:i,contentClassName:iL.H,children:o})}function ik(e){let{message:t,usernameHook:n,compact:i,isForumPost:l}=e,a=(0,k.Ay)(t),r=n(a),o=(0,c.bG)([tX.A],()=>tX.A.getChannel(t.channel_id)?.isGroupDM()??!1);return(0,s.jsx)(I.A,{compact:i,iconNode:(0,s.jsx)(iv.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,s.jsx)(L.E,{tag:"span",variant:"text-md/medium",color:"text-strong",children:t.content},`group-name-${t.id}`),editGroupButton:(0,s.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,iS.U)(t.channel_id,w.A.GROUP_DM_SYSTEM_MESSAGE_NAME)}):O.intl.format(l?O.t.SOQ4hJ:O.t.oItgEw,{username:a.nick,usernameHook:r,channelName:t.content})})}var iD=n(366605);function iU(e){let{message:t,usernameHook:n,onClickPins:i,compact:l}=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,s.jsx)(iD.t,{size:"sm",color:"currentColor"})};return(0,s.jsx)(I.A,{...d,timestamp:t.timestamp,compact:l,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 ib=n(497767);function iP(e){let t,{message:n,channel:i,compact:l}=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,s.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,s.jsx)(I.A,{iconNode:(0,s.jsx)(ib.V,{size:"sm",color:eg.A.colors.STATUS_POSITIVE}),timestamp:n.timestamp,compact:l,children:t})}function iG(e){let{message:t,compact:n,usernameHook:i}=e,l=(0,k.Ay)(t),a=i(l),{avatarSrc:r,eventHandlers:{onMouseEnter:o,onMouseLeave:c}}=nX(!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,s.jsx)("div",{onMouseEnter:o,onMouseLeave:c,children:(0,s.jsx)(I.A,{className:eM()(ic.rs,{[ic.oE]:n}),iconNode:n?null:(0,s.jsx)(nW,{src:r}),iconContainerClassName:ic.zc,compact:n,children:(0,s.jsxs)("div",{className:eM()(ic.Qs,{[ic.oE]:n}),children:[(0,s.jsx)(nP.ix,{message:t,messageClassname:ic.he,className:eM()(ic.QV,ic.he,{[ic.oE]:n}),username:(0,s.jsxs)("div",{className:ic.he,children:[(0,s.jsx)(L.E,{variant:"text-md/normal",color:"text-brand",tag:"span",className:ic.Xh,children:O.intl.string(O.t.hG1StD)}),(0,s.jsx)(nN.A,{type:nQ.nu.SYSTEM_DM,className:ic.Al})]}),compact:n,showTimestamp:!0}),(0,s.jsx)("div",{className:eM()(ic.__invalid_messageContent,{[ic.oE]:n}),children:t.type===b.lAJ.GUILD_INCIDENT_ALERT_MODE_ENABLED?O.intl.format(O.t["+m8eD7"],{username:l.nick,usernameHook:a,time:d}):O.intl.format(O.t["BHeke+"],{username:l.nick,usernameHook:a})})]})})})}var iH=n(554146),iw=n(501419),iF=n(104510),iV=n(987144);function iB(e){let{guild:t,analyticsLocation:n,analyticsLocations:i,closeLayer:l,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,iV.g)({analyticsLocations:m,analyticsLocation:{object:b.ZSU.BUTTON_CTA,objectType:b.AnalyticsObjectTypes.BUY,...n},guild:t,closeLayer:l,onClose:()=>{d(!1)}})}return(0,s.jsx)(u.$,{variant:r,size:"md",icon:iF._,text:O.intl.string(O.t.gKmQ1G),onClick:h,loading:o,disabled:g})}var iJ=n(363487),iz=n(828162),iZ=n(49999),iK=n(356863),iX=n(764828);let iW="https://cdn.discordapp.com/assets/content/d13cdfe882b0acba4f7752d488ba86dc628364d43eb3be876c8bb6f0bc80a240.png",iY="https://cdn.discordapp.com/assets/content/424bcefb880eff14d647b0467cf446e83c27321af508a2e0a5f707d80c42e58b.png";function iQ(e){let{title:t,body:n,guild:i,analyticsLocations:l}=e,a=(0,c.bG)([y.Ay],()=>y.Ay.useReducedMotion);return(0,s.jsxs)("div",{className:iX.kL,children:[(0,s.jsx)("div",{className:iX.ZS,children:(0,s.jsx)("img",{className:iX.Sl,src:a?iY:iW,alt:"Boost gem"})}),(0,s.jsxs)("div",{className:iX.Qs,children:[(0,s.jsx)(tn.D,{variant:"heading-md/semibold",style:{marginTop:0,marginBottom:"var(--space-4)"},children:t}),(0,s.jsx)(L.E,{color:"text-muted",className:iX.rf,variant:"text-sm/medium",children:n})]}),(0,s.jsx)("div",{children:(0,s.jsx)(iB,{guild:i,analyticsLocations:l,analyticsLocation:{page:b.liQ.GUILD_CHANNEL,section:b.JJy.CHANNEL_TEXT_AREA}})})]})}function iq(e){let{guild:t}=e;a.useEffect(()=>{(0,iw.uh)(iH.M.FIRST_BOOSTER_UPSELL_OVERSEER,{dismissAction:iZ.i.AUTO_DISMISS,guildId:t.id})},[t.id]);let n=(0,iJ.A)(t.id);return(0,s.jsx)(iQ,{title:O.intl.string(iK.default.qGDEON),body:O.intl.format(iK.default["s+HTdX"],{viewAllPerks:e=>(0,s.jsx)(ii.D,{tag:"a",role:"link",onClick:()=>{n?(0,iz.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 i$(e){let{boostingPrompt:t,guild:n}=e;return t.guildBoostUpsellType===A.Mk.FIRST_BOOSTER?(0,s.jsx)(iq,{guild:n}):null}function i0(e){let{boostingPrompt:t,channel:n}=e,i=n.guild_id,l=(0,c.bG)([et.A],()=>et.A.getGuild(i),[i]);return null==l?null:(0,s.jsx)(I.A,{contentClassName:iX.FG,iconContainerClassName:iX.zc,iconNode:(0,s.jsx)(t0.BellIcon,{colorClass:iX.Kk}),children:(0,s.jsx)(i$,{boostingPrompt:t,guild:l})})}var i1=n(565255);let i2="this server";function i3(e){let{message:t,compact:i,guildName:l,onClick:a,onClickGuild:r}=e;return(0,s.jsx)(I.A,{icon:n(290388),timestamp:t.timestamp,compact:i,contentClassName:i1.B,children:O.intl.format(O.t.bYdG3f,{guildName:l??i2,onClick:a,onClickGuild:r??(()=>{})})})}function i7(e){let{message:t,compact:n,guildName:i,onClickGuild:l}=e;return(0,s.jsx)(I.A,{iconNode:(0,s.jsx)(ie.E,{size:"custom",width:20,height:20,color:"currentColor",className:i1.Q}),timestamp:t.timestamp,compact:n,contentClassName:i1.B,children:O.intl.format(O.t.vzfXql,{guildName:i??i2,onClickGuild:l??(()=>{})})})}function i6(e){let{message:t,compact:n,guildName:i,onClickGuild:l}=e;return(0,s.jsx)(I.A,{iconNode:(0,s.jsx)(ie.E,{size:"custom",width:20,height:20,color:"currentColor",className:i1.Q}),timestamp:t.timestamp,compact:n,contentClassName:i1.B,children:O.intl.format(O.t["/TfvyR"],{guildName:i??i2,onClickGuild:l??(()=>{})})})}function i5(e){let{message:t,compact:n,usernameHook:i}=e,l=(0,k.Ay)(t),a=i(l),{avatarSrc:r,eventHandlers:{onMouseEnter:o,onMouseLeave:c}}=nX(!0);return(0,s.jsx)("div",{onMouseEnter:o,onMouseLeave:c,children:(0,s.jsx)(I.A,{className:eM()(ic.rs,{[ic.oE]:n}),iconNode:n?null:(0,s.jsx)(nW,{src:r}),iconContainerClassName:ic.zc,compact:n,children:(0,s.jsxs)("div",{className:eM()(ic.Qs,{[ic.oE]:n}),children:[(0,s.jsx)(nP.ix,{message:t,messageClassname:ic.he,className:eM()(ic.QV,ic.he,{[ic.oE]:n}),username:(0,s.jsxs)("div",{className:ic.he,children:[(0,s.jsx)(L.E,{variant:"text-md/normal",color:"text-brand",tag:"span",className:ic.Xh,children:O.intl.string(O.t.hG1StD)}),(0,s.jsx)(nN.A,{type:nQ.nu.SYSTEM_DM,className:ic.Al})]}),compact:n,showTimestamp:!0}),(0,s.jsx)("div",{className:eM()(ic.__invalid_messageContent,{[ic.oE]:n}),children:O.intl.format(O.t.qntXNQ,{username:l.nick,usernameHook:a})})]})})})}function i8(e){let{message:t,compact:n,usernameHook:i,channel:l}=e,a=(0,c.bG)([et.A],()=>et.A.getGuild(l.guild_id)),r=(0,k.Ay)(t),o=i(r),{avatarSrc:d,eventHandlers:{onMouseEnter:u,onMouseLeave:m}}=nX(!0);return(0,s.jsx)("div",{onMouseEnter:u,onMouseLeave:m,children:(0,s.jsx)(I.A,{className:eM()(ic.rs,{[ic.oE]:n}),iconNode:n?null:(0,s.jsx)(nW,{src:d}),iconContainerClassName:ic.zc,compact:n,children:(0,s.jsxs)("div",{className:eM()(ic.Qs,{[ic.oE]:n}),children:[(0,s.jsx)(nP.ix,{message:t,messageClassname:ic.he,className:eM()(ic.QV,ic.he,{[ic.oE]:n}),username:(0,s.jsxs)("div",{className:ic.he,children:[(0,s.jsx)(L.E,{variant:"text-md/normal",color:"text-brand",tag:"span",className:ic.Xh,children:O.intl.string(O.t.hG1StD)}),(0,s.jsx)(nN.A,{type:nQ.nu.SYSTEM_DM,className:ic.Al})]}),compact:n,showTimestamp:!0}),(0,s.jsx)("div",{className:eM()(ic.__invalid_messageContent,{[ic.oE]:n}),children:O.intl.format(O.t.W0UBI3,{username:r.nick,usernameHook:o,guildName:a?.name??""})})]})})})}var i9=n(959988),i4=n(402216);function le(e){let{message:t,channel:n,playingActivity:i,onJoinStream:l,usernameHook:a,compact:r}=e,o=(0,k.Ay)(t),c=(0,nM.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:l,usernameHook:u});return null!=d&&(m=O.intl.format(O.t.NEFxtd,{username:o.nick,duration:d.humanize(),channelName:c??"",usernameHook:u})),(0,s.jsx)(I.A,{iconNode:null!=d?(0,s.jsx)(i9.G,{size:"custom",color:"currentColor",width:20,height:20}):(0,s.jsx)(i4.Ay,{size:i4.Ay.Sizes.SMALL}),timestamp:t.timestamp,compact:r,children:m})}var lt=n(687966),ln=n(769015),li=n(234003);function ll(e){let{message:t,channel:n,author:i,compact:l}=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,iM.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,s.jsxs)("span",{className:li.Y_,children:[(0,s.jsx)(ln.A,{game:o,size:ln.M.XXSMALL,className:li.p4})," ",e]}),helpdeskArticle:ts.A.getArticleURL(b.MVz.SOCIAL_LAYER_CONNECTIONS)});return(0,s.jsx)(I.A,{iconNode:(0,s.jsx)(lt.GameControllerIcon,{size:"sm"}),compact:l,contentClassName:li.Qs,children:(0,s.jsx)("div",{children:c})})}function ls(e){let{message:t,otherUsername:i,usernameHook:l,otherUsernameHook:a,compact:r}=e,{nick:o}=(0,k.Ay)(t),c=l(),d=a(),u=O.intl.format(O.t.MMN2Jq,{username:o,usernameHook:c,otherUsername:i,otherUsernameHook:d});return(0,s.jsx)(I.A,{icon:n(617184),timestamp:t.timestamp,compact:r,children:u})}function la(e){let t,{message:i,usernameHook:l,otherUser:a,otherUsernameHook:r,compact:o,channel:c}=e,d=(0,k.Ay)(i),u=d.nick,m=l(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,s.jsx)(I.A,{icon:n(884797),timestamp:i.timestamp,compact:o,children:t})}var lr=n(451394),lo=n(598490);function lc(e){let{message:t,compact:n,usernameHook:i}=e,l=(0,k.Ay)(t),a=i(l),r=O.intl.format(O.t["zla/ux"],{username:l.nick,usernameHook:a,topic:t.content});return(0,s.jsx)(I.A,{className:lo.d,iconNode:(0,s.jsx)(lr.q,{size:"md",color:"currentColor"}),iconContainerClassName:lo.z,timestamp:t.timestamp,compact:n,children:r})}var ld=n(297152);function lu(e){let{message:t,compact:n,usernameHook:i}=e,l=(0,k.Ay)(t),a=i(l),r=O.intl.format(O.t.tv2DNy,{username:l.nick,usernameHook:a});return(0,s.jsx)(I.A,{className:lo.d,iconNode:(0,s.jsx)(ld.E,{size:"md",color:"currentColor"}),iconContainerClassName:lo.z,timestamp:t.timestamp,compact:n,children:r})}function lm(e){let{message:t,compact:n,usernameHook:i}=e,l=(0,k.Ay)(t),a=i(l),r=O.intl.format(O.t["dKW5C+"],{username:l.nick,usernameHook:a});return(0,s.jsx)(I.A,{className:lo.d,iconNode:(0,s.jsx)(m.L,{size:"md",color:"currentColor"}),iconContainerClassName:lo.z,timestamp:t.timestamp,compact:n,children:r})}function lx(e){let{message:t,compact:n,usernameHook:i}=e,l=(0,k.Ay)(t),a=i(l),r=O.intl.format(O.t["Rv+TSM"],{username:l.nick,usernameHook:a,topic:t.content});return(0,s.jsx)(I.A,{className:lo.d,iconNode:(0,s.jsx)(lr.q,{size:"md",color:eg.A.unsafe_rawColors.GREEN_360.css}),iconContainerClassName:lo.z,timestamp:t.timestamp,compact:n,children:r})}function lg(e){let{message:t,compact:n,usernameHook:i}=e,l=(0,k.Ay)(t),a=i(l),r=O.intl.format(O.t.Yy6vLs,{username:l.nick,usernameHook:a,topic:t.content});return(0,s.jsx)(I.A,{className:lo.d,iconNode:(0,s.jsx)(lr.q,{size:"md",color:"currentColor"}),iconContainerClassName:lo.z,timestamp:t.timestamp,compact:n,children:r})}var lh=n(163328),lf=n(562534);function lA(e){let{message:t,compact:n,usernameHook:i,onClickThread:l,onClickViewThreads:a,onContextMenuThread:r}=e,o=(0,k.Ay)(t),d=i(o),u=(0,c.bG)([tX.A],()=>tX.A.getChannel(t.messageReference?.channel_id)),m=(0,nM.Ay)(u),x=O.intl.format(O.t.cZ9Uf2,{actorName:o.nick,actorHook:d,threadName:m??t.content,threadOnClick:{onClick:l,onContextMenu:r},viewThreadsOnClick:a});return(0,s.jsx)(I.A,{iconNode:(0,s.jsx)(lh.y,{size:"md",color:"currentColor",className:lf.K}),timestamp:t.timestamp,compact:n,children:x})}function lE(e){let{message:t,channel:i,targetUser:l,actorUsernameHook:a,targetUsernameHook:r,compact:o}=e,c=(0,k.Ay)(t),d=(0,k.d8)(l,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,s.jsx)(I.A,{icon:n(617184),timestamp:t.timestamp,compact:o,children:x})}function l_(e){let{message:t,channel:i,targetUser:l,actorUsernameHook:a,targetUsernameHook:r,compact:o}=e,c=(0,k.Ay)(t),d=(0,k.d8)(l,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,s.jsx)(I.A,{icon:n(884797),timestamp:t.timestamp,compact:o,children:x})}var lp=n(961934),lC=n(861464);function lI(e){let{message:t,usernameHook:i,compact:l}=e,a=(0,k.Ay)(t),r=i(a),o=lC.A.getSystemMessageUserJoin(t.id),c=O.intl.format(o,{username:a.nick,usernameHook:r});return(0,s.jsx)(I.A,{icon:n(617184),timestamp:t.timestamp,compact:l,children:c})}var lN=n(776310),lj=n(132500),lT=n(319060),lv=n(544048),lS=n(844222),lO=n(21161);let lR=(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 lM=n(513609),lL=n(512599);function ly(e){let t=Number(e.content);return isNaN(t)||0===t?1:t}var lk=n(780964),lD=n(766075),lU=n(473145),lb=n(473193),lP=n(889158);function lG(e){let t=(0,iJ.A)(e);return a.useCallback(()=>{null!=e&&(t?(0,iz.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 lH(e){let{className:t,animate:n}=e;return(0,s.jsx)("div",{className:t,children:(0,s.jsx)("img",{className:lP.fj,src:n?iW:iY,alt:"","aria-hidden":!0})})}function lw(e){let{title:t,body:n}=e;return(0,s.jsxs)("div",{className:lP.Qs,children:[(0,s.jsx)(L.E,{variant:"text-md/semibold",scaleFontToUserSetting:!0,className:lP.DD,children:t}),(0,s.jsx)(L.E,{variant:"text-sm/medium",scaleFontToUserSetting:!0,className:lP.rf,children:n})]})}function lF(e){let{guild:t,firstBooster:n}=e;return(0,s.jsx)("div",{className:lP.o1,children:(0,s.jsx)(iB,{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 lV(e){let{guild:t,children:n}=e,i=lG(t?.id);return(0,s.jsx)(ii.D,{tag:"a",role:"link",className:lP.oT,onClick:i,children:n})}function lB(e){let t,n,{message:i,guild:l,usernameHook:a,showCta:o}=e,d=(t=(0,c.bG)([y.Ay],()=>y.Ay.useReducedMotion),n=r.useContext(lb.C)?.animate??!1,!t&&n),u=(0,k.Ay)(i),m=a(u),x=i.hasFlag(b.pr7.IS_FIRST_BOOSTER),g=lG(l?.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:ly(i)}),f=o?O.intl.format(O.t.dWm8Iu,{learnMoreHook:e=>(0,s.jsx)(lV,{guild:l,children:e})}):O.intl.string(O.t["0Mdw0t"]),A=(0,s.jsxs)("div",{className:lP.kL,children:[(0,s.jsx)(lH,{className:lP.rc,animate:d}),(0,s.jsx)(lw,{title:h,body:f}),o&&null!=l&&(0,s.jsx)(lF,{guild:l,firstBooster:x})]}),E=(0,s.jsx)(iF._,{className:lP.Kk});return(0,s.jsx)(I.A,{contentClassName:lP.$O,iconNode:E,iconContainerClassName:lP.zc,children:o?A:(0,s.jsx)(ii.D,{className:lP.w8,onClick:g,children:A})})}var lJ=n(50826);let lz={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 lZ=((l={}).TOP_LEFT="TOP_LEFT",l.TOP_RIGHT="TOP_RIGHT",l.BOTTOM_LEFT="BOTTOM_LEFT",l.BOTTOM_RIGHT="BOTTOM_RIGHT",l);let lK=["TOP_LEFT","TOP_RIGHT"],lX=(0,eL.xI)(lT.A.USER_PREMIUM_GUILD_SUBSCRIPTION_EASTER_EGG_SIZE),lW={leafPosition:{x:85,y:125},leafRotationDirection:1},lY=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:{...lW,getConfettiPosition:e=>({x:e-11,y:125}),confettiVelocityDirection:{x:1,y:-1}},BOTTOM_RIGHT:{...lW,getConfettiPosition:e=>({x:11,y:125}),confettiVelocityDirection:{x:-1,y:-1}}}),lQ="falling-leaf",lq=["#61D5B2"],l$=n(80705),l0=n(232460),l1=[l$,l0];function l2(){return n.e("698150").then(n.t.bind(n,633343,19)).then(e=>{let{default:t}=e;return t})}function l3(e){let{onAnimationComplete:t,onClick:n,position:i,size:l}=e,r=a.useRef(null),[o,c]=a.useState(null),[d]=a.useState(i??function(){switch(Math.floor(Math.random()*Object.keys(lZ).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(lO.x),[x,g]=a.useState(null),h=(0,lN.f9)(m,x),f=function(e,t){if(null==e)return"enter";switch(e){case"enter":return"confetti";case"confetti":if(lK.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=lK.includes(d),E=A&&"exit"===o,_=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}=lY[d],t=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:lX,i=e?.getBoundingClientRect();if(null==i)return{x:0,y:0};let l=lY[t].getConfettiPosition(n);return{x:i.left+l.x,y:i.top+l.y}}(r.current,d,l);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,l]),a.useEffect(()=>{if(A&&"leaf_fall"===o){let e=lY[d].leafRotationDirection;h.createConfetti({id:`${lQ}-${(0,lj.A)()}`,position:{type:"static",value:function(e,t){let n=e?.getBoundingClientRect();if(null==n)return{x:0,y:0};let i=lY[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?l$:l0})}},[A,h,d,o]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(lN.K_,{ref:g,sprites:l1,colors:lq,spriteWidth:45,spriteHeight:45}),(0,s.jsx)(ii.D,{onClick:n,className:eM()(lJ.FT,{[lJ.FZ]:"TOP_LEFT"===d,[lJ.S]:"TOP_RIGHT"===d,[lJ.Re]:"BOTTOM_LEFT"===d,[lJ._t]:"BOTTOM_RIGHT"===d}),children:(0,s.jsx)(lv.t,{animationRef:C,className:eM()(lJ.oQ,{[lJ.EG]:E}),nextScene:f,sceneSegments:lz,onScenePlay:_,onSceneComplete:p,importData:l2,pauseWhileUnfocused:!1})})]})}function l7(e){let t,{message:n,compact:i,guild:l,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=ly(n),{createMultipleConfettiAt:u,addClickListener:m}=a.useContext(lO.x),[x,g]=a.useState(!1),h=a.useRef(null),{reducedMotion:f}=a.useContext(lS.C),A=(0,k.Ay)(n),E=A.nick,_=r(A);t=null==c||null==l?d>1?O.intl.format(O.t.yfC9ds,{username:E,usernameHook:_,numSubscriptions:d}):O.intl.format(O.t["57St/7"],{username:E,usernameHook:_}):d>1?O.intl.format(O.t.PO9uJD,{username:E,usernameHook:_,numSubscriptions:d,guildName:l.name,newTierName:(0,lU.gb)(c)}):O.intl.format(O.t.cUfTTE,{username:E,usernameHook:_,guildName:l.name,newTierName:(0,lU.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,lL.O9)({settingsVisible:!0}),(0,lD.openUserSettings)(lk.X.POGGERMODE_PANEL),g(!1)},[]),j=a.useCallback((e,t)=>{t?.id.startsWith(lQ)&&N()},[N]);a.useEffect(()=>m(j));let T=a.useCallback(e=>{e.target===e.currentTarget&&o(e)},[o]),v=(0,s.jsx)(ii.D,{className:lJ.P0,innerRef:h,onClick:o,children:(0,s.jsx)(iF._,{color:eg.A.unsafe_rawColors.GUILD_BOOSTING_PINK,className:lJ.Kk,onMouseEnter:p})});return(0,s.jsxs)(I.A,{iconNode:v,timestamp:n.timestamp,compact:i,children:[(0,s.jsx)("div",{onClick:T,className:lJ.iU,children:t}),x?(0,s.jsx)(lM.Ay,{children:(0,s.jsx)("div",{className:lJ.LK,children:(0,s.jsx)(l3,{onAnimationComplete:C,onClick:N})})}):null]})}function l6(e){let{message:t,compact:n,guild:i,usernameHook:l}=e,{enabled:a,showCta:r}=lR.useConfig({location:"UserPremiumGuildSubscription"});return t.type===b.lAJ.GUILD_BOOST&&a&&!n?(0,s.jsx)(lB,{message:t,guild:i,usernameHook:l,showCta:r}):(0,s.jsx)(l7,{...e})}var l5=n(305866),l8=n(364522),l9=n(265872),l4=n(983851),se=n(61230),st=n(538451),sn=n(944052),si=n(461154);function sl(e){let{users:t,guildId:n,channelId:i}=e;return(0,s.jsx)(l5.l,{className:si.XM,children:(0,s.jsx)(l8.Ip,{className:si.XG,children:(0,s.jsx)("div",{children:t.map(e=>(0,s.jsx)(st.A,{user:e,guildId:n??void 0,channelId:i,nick:tq.Ay.getNickname(n,i,e)},e.id))})})})}function ss(e){let{message:t,channel:n,compact:i}=e,l=(0,iC.A)(t),r=(0,sn.X7)(t),o=t.messageReference?.channel_id,d=(0,c.bG)([tX.A],()=>tX.A.getChannel(o)),u=function(e,t,n,i,l,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,l]=a.useState(!1),r=a.useCallback(n=>(0,s.jsx)(sl,{users:n,guildId:e,channelId:t}),[e,t]);return a.useCallback(e=>(t,a)=>(0,s.jsx)(l9.Y,{targetElementRef:n,renderPopout:()=>r(e),shouldShow:i,position:"bottom",onRequestClose:()=>l(!1),children:e=>(0,s.jsx)(ii.D,{...e,tag:"a",style:{display:"inline"},innerRef:n,onClick:()=>{l(e=>!e)},children:t})},a),[i,r])}(t.guild_id,t.id),A=a.useCallback((e,t)=>null==r?e:(0,s.jsx)(se.T,{channel:r,childWrapperClassName:si.c6,children:(0,s.jsx)(ii.D,{tag:"a",children:e})},t),[r]);return null==l?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:l})}(t,n,t.author,r,l,d),m=a.useMemo(()=>{let e=(0,s.jsx)(l4.H,{size:"md",color:eg.A.colors.STATUS_POSITIVE});return null==d||null!=l?e:(0,s.jsx)(se.T,{channel:d,children:(0,s.jsx)(l4.H,{size:"md",color:eg.A.colors.STATUS_POSITIVE})})},[d,l]);return(0,s.jsx)(I.A,{iconNode:m,timestamp:t.timestamp,compact:i,children:u})}var sa=n(325278);function sr(e){let{message:t,compact:n,channel:i}=e,{author:l}=t,a=t.getChannelId(),r=t.actor??void 0,o=(0,k.d8)(r,i),c=(0,C.P)({user:l,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,s.jsx)(nf,{message:t,compact:n,appNameHook:c,addingUser:null!=r?o:null,addingUserHook:d})}function so(e){let{message:t,compact:n,channel:i}=e,{author:l}=t,a=t.getChannelId(),r=(0,C.P)({user:l,channelId:a,guildId:i.guild_id,messageId:t.id});return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(lI,{message:t,compact:n,usernameHook:r}),(0,s.jsx)(tZ,{channel:i,message:t})]})}function sc(e){let{message:t,channel:n,compact:i}=e,{author:l}=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:l,channelId:o,guildId:n.guild_id,messageId:t.id,stopPropagation:!0});return(0,s.jsx)(l6,{message:t,compact:i,guild:d,usernameHook:m,onClickMessage:u})}function sd(e){let t=e.getChannelId(),n=(0,c.bG)([tX.A],()=>tX.A.getChannel(t),[t]),i=(null!=n?n.getGuildId():null)??e.messageReference?.guild_id??null,l=(0,c.bG)([et.A],()=>null!=i?et.A.getGuild(i):null,[i]),s=null==i?void 0:()=>{(0,N.uh)(i)};return{guildId:i,guildName:l?.name??null,onClickGuild:s}}function su(e){let{message:t,compact:n,channel:i}=e,l=(0,C.P)({user:t.author,channelId:i.id,guildId:i.guild_id,messageId:t.id});return(0,s.jsx)(iG,{message:t,compact:n,usernameHook:l})}let sm=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:l}=t,a=t.getChannelId(),r=(0,c.bG)([v.default],()=>v.default.getUser(t.mentions[0]),[t]),o=tq.Ay.getName(null,a,r),d=(0,C.P)({user:l,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,s.jsx)(lE,{message:t,channel:n,compact:i,targetUser:r,actorUsernameHook:d,targetUsernameHook:u}):(0,s.jsx)(ls,{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:l}=t,a=t.getChannelId(),r=(0,c.bG)([v.default],()=>v.default.getUser(t.mentions[0]),[t]),o=(0,C.P)({user:l,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,s.jsx)(l_,{message:t,channel:n,compact:i,targetUser:r,actorUsernameHook:o,targetUsernameHook:d}):null!=r&&r.id!==l.id?(0,s.jsx)(la,{message:t,channel:n,compact:i,usernameHook:o,otherUser:r,otherUsernameHook:d}):(0,s.jsx)(la,{message:t,channel:n,compact:i,usernameHook:o})},[b.lAJ.CALL]:function(e){let{message:t,compact:n,channel:i}=e,{id:l,author:r}=t,o=j.default.getId(),d=t.getChannelId(),u=(0,c.bG)([tK.A],()=>tK.A.isCallActive(d,l),[d,l]),m=(0,c.bG)([tQ.A],()=>tQ.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,s.jsx)(iI,{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:l}=t,a=t.getChannelId(),r=(0,C.P)({user:l,channelId:a,guildId:i.guild_id,messageId:t.id});return(0,s.jsx)(ik,{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:l}=t,a=t.getChannelId(),r=(0,C.P)({user:l,channelId:a,guildId:i.guild_id,messageId:t.id});return(0,s.jsx)(iO,{compact:n,message:t,usernameHook:r})},[b.lAJ.CHANNEL_PINNED_MESSAGE]:function(e){let{message:t,compact:n,channel:i}=e,{author:l}=t,r=t.getChannelId(),o=a.useCallback(()=>{if(tY.Ay.getChannelId()!==r){let e=tX.A.getChannel(r);null!=e&&(0,N.uh)(e.guild_id,e.id)}setTimeout(()=>eX._.dispatch(b.jej.TOGGLE_CHANNEL_PINS),0)},[r]),c=(0,C.P)({user:l,channelId:r,guildId:i.guild_id,messageId:t.id});return(0,s.jsx)(iU,{message:t,compact:n,usernameHook:c,onClickPins:__OVERLAY__?null:o})},[b.lAJ.USER_JOIN]:function(e){return e.message.author.bot?(0,s.jsx)(sr,{...e}):(0,s.jsx)(so,{...e})},[b.lAJ.GUILD_BOOST]:sc,[b.lAJ.GUILD_BOOST_TIER_1]:sc,[b.lAJ.GUILD_BOOST_TIER_2]:sc,[b.lAJ.GUILD_BOOST_TIER_3]:sc,[b.lAJ.CHANNEL_FOLLOW_ADD]:function(e){let{message:t,compact:n,channel:i}=e,{author:l}=t,a=t.getChannelId(),r=(0,C.P)({user:l,channelId:a,guildId:i.guild_id,messageId:t.id});return(0,s.jsx)(iT,{message:t,compact:n,usernameHook:r})},[b.lAJ.GUILD_STREAM]:function(e){let{message:t,compact:n,channel:i}=e,{author:l,author:{id:r},messageReference:o}=t,d=t.getChannelId(),u=(0,c.bG)([tW.A],()=>tW.A.findActivity(r,e=>e.type===b.$pd.PLAYING),[r]),m=(0,c.bG)([tX.A],()=>null!=o?tX.A.getChannel(o.channel_id):null,[o]),x=o?.guild_id,g=(0,C.P)({user:l,channelId:d,guildId:i.guild_id,messageId:t.id}),h=a.useCallback(()=>{null!=m&&null!=x&&(0,f.Nl)({streamType:sa.U4.GUILD,ownerId:r,channelId:m.id,guildId:x})},[r,m,x]);return null!=o&&null!=m&&null!=o.guild_id?(0,s.jsx)(le,{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:l,onClickGuild:a}=sd(t);return(0,s.jsx)(i3,{message:t,compact:n,guildName:l,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,s.jsx)(I.A,{icon:n(222548),timestamp:t.timestamp,compact:i,contentClassName:i1.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:l}=sd(t);return(0,s.jsx)(i7,{message:t,compact:n,guildName:i,onClickGuild:l})},[b.lAJ.GUILD_DISCOVERY_GRACE_PERIOD_FINAL_WARNING]:function(e){let{message:t,compact:n}=e,{guildName:i,onClickGuild:l}=sd(t);return(0,s.jsx)(i6,{message:t,compact:n,guildName:i,onClickGuild:l})},[b.lAJ.THREAD_CREATED]:function(e){let{message:t,channel:i,compact:l}=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 tF.A.loadThread(n);let t=tX.A.getChannel(n);null!=t&&(0,tV.JA)(t,e.shiftKey)}},[t]),c=a.useCallback(()=>{(0,d.openModalLazy)(async()=>{let{default:e}=await Promise.all([n.e("327744"),n.e("927517"),n.e("552705"),n.e("751743"),n.e("409980"),n.e("65225")]).then(n.bind(n,126768));return t=>(0,s.jsx)(e,{channel:i,...t})})},[i]),u=a.useCallback(e=>{let i=tX.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("400744"),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("285802"),n.e("65200"),n.e("421060"),n.e("699011"),n.e("703869"),n.e("51212"),n.e("584615")]).then(n.bind(n,612826));return t=>(0,s.jsx)(e,{...t,channel:i})})},[t]);return(0,s.jsx)(lA,{message:t,compact:l,usernameHook:r,onClickThread:o,onClickViewThreads:c,onContextMenuThread:u})},[b.lAJ.THREAD_STARTER_MESSAGE]:function(e){let{message:t,compact:n}=e;return(0,s.jsx)(I.A,{iconNode:(0,s.jsx)(lh.y,{size:"md",color:"currentColor",className:lp.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,_.ER)(t)?(0,s.jsx)(ip,{message:t,compact:n,channel:i}):null},[b.lAJ.GUILD_INCIDENT_ALERT_MODE_ENABLED]:su,[b.lAJ.GUILD_INCIDENT_ALERT_MODE_DISABLED]:su,[b.lAJ.GUILD_INCIDENT_REPORT_RAID]:function(e){let{message:t,compact:n,channel:i}=e,l=(0,C.P)({user:t.author,channelId:i.id,guildId:i.guild_id,messageId:t.id});return(0,s.jsx)(i8,{message:t,compact:n,channel:i,usernameHook:l})},[b.lAJ.GUILD_INCIDENT_REPORT_FALSE_ALARM]:function(e){let{message:t,compact:n,channel:i}=e,l=(0,C.P)({user:t.author,channelId:i.id,guildId:i.guild_id,messageId:t.id});return(0,s.jsx)(i5,{message:t,compact:n,channel:i,usernameHook:l})},[b.lAJ.ROLE_SUBSCRIPTION_PURCHASE]:function(e){let{channel:t,message:i,compact:l}=e,r=(0,k.Ay)(i),o=function(e){let{author:t,channel:n,message:i}=e,l=n.guild_id,s=(0,C.P)({user:i.author,channelId:n.id,guildId:l,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(l,ea.VV.ROLE_SUBSCRIPTIONS),{sourceLocationStack:r}),o?.role_subscription_listing_id!=null&&(0,V.xH)(l,n.id,i.id,o.role_subscription_listing_id)},[l,n,i,o,r]);return null==o?null:(0,V.gw)({username:t.nick,usernameOnClickHandler:s,roleSubscriptionOnClickHandler:c,guildId:l,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,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(I.A,{icon:n(617184),timestamp:i.timestamp,compact:l,children:o}),c&&(0,s.jsx)(ec,{guildId:t.guild_id,user:i.author,username:r.nick}),(0,s.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,s.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,l=(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,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(lx,{message:t,compact:i,usernameHook:l}),null!=a&&a.name===t.content?(0,s.jsx)(eu.A,{code:`${n.guild_id}-${a.id}`}):null]})},[b.lAJ.STAGE_END]:function(e){let{message:t,channel:n,compact:i}=e,l=(0,C.P)({user:t.author,channelId:n.id,guildId:n.guild_id,messageId:t.id});return(0,s.jsx)(lc,{message:t,compact:i,usernameHook:l})},[b.lAJ.STAGE_SPEAKER]:function(e){let{message:t,channel:n,compact:i}=e,l=(0,C.P)({user:t.author,channelId:n.id,guildId:n.guild_id,messageId:t.id});return(0,s.jsx)(lm,{message:t,compact:i,usernameHook:l})},[b.lAJ.STAGE_RAISE_HAND]:function(e){let{message:t,channel:n,compact:i}=e,l=(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)([tH.A],()=>tH.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===tw.zF.REQUESTED_TO_SPEAK&&o;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(lu,{message:t,compact:i,usernameHook:l}),d?(0,s.jsx)(u.$,{variant:"secondary",onClick:function(){(0,tG.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,l=(0,C.P)({user:t.author,channelId:n.id,guildId:n.guild_id,messageId:t.id});return(0,s.jsx)(lg,{message:t,compact:i,usernameHook:l})},[b.lAJ.GUILD_APPLICATION_PREMIUM_SUBSCRIPTION]:function(e){let{message:t,channel:n,compact:i}=e,l=(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,s.jsx)(I.A,{iconNode:(0,s.jsx)(tE.q,{size:"md",color:"currentColor",className:t_.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:l.nick,usernameHook:r(l)})})},[b.lAJ.PRIVATE_CHANNEL_INTEGRATION_ADDED]:function(e){let{message:t,channel:i,compact:l}=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=tj(i,t);return(0,s.jsx)(I.A,{icon:n(617184),timestamp:t.timestamp,compact:l,children:(0,tN.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:l}=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=tj(i,t);return(0,s.jsx)(I.A,{icon:n(884797),timestamp:t.timestamp,compact:l,children:(0,tN.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,s.jsx)(tA,{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:l=!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,eL.EJ)(o?.questionText??"",eU.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,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(I.A,{iconNode:(0,s.jsx)(ey.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,s.jsx)(ew,{className:eb.E6,data:o,onClickPollLink:l?void 0:x})]})},[b.lAJ.CHANGELOG]:void 0,[b.lAJ.NITRO_NOTIFICATION]:function(e){let{message:t,channel:n}=e;return(0,s.jsx)(ng,{message:t,channel:n})},[b.lAJ.CHANNEL_LINKED_TO_LOBBY]:function(e){let{message:t,channel:n,compact:i}=e;return(0,s.jsx)(iy,{message:t,channel:n,compact:i})},[b.lAJ.GIFTING_PROMPT]:function(e){let{message:t,channel:n}=e,i=t.giftingPrompt,l=(0,c.bG)([v.default],()=>v.default.getUser(i?.recipientUserId));return null==i||null==l?null:(0,s.jsx)(nc,{giftIntentType:i.giftIntentType,recipientUser:l,channel:n})},[b.lAJ.IN_GAME_MESSAGE_NUX]:function(e){let{message:t,channel:n,compact:i}=e;return(0,s.jsx)(ll,{message:t,channel:n,author:t.author,compact:i})},[b.lAJ.GUILD_JOIN_REQUEST_ACCEPT_NOTIFICATION]:function(e){let{message:t,channel:i,compact:l}=e,{guild:a,joinRequest:r,usernameHook:o,guildNameClick:c}=R(t,i),d=r?.user?.username,u=a?.name;return(0,s.jsx)(I.A,{icon:n(617184),timestamp:t.timestamp,compact:l,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:l}=e,{guild:a,joinRequest:r,usernameHook:o,guildNameClick:c}=R(t,i),d=r?.user?.username,u=a?.name;return(0,s.jsx)(I.A,{icon:n(884797),timestamp:t.timestamp,compact:l,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:l}=e,{guild:a,joinRequest:r,usernameHook:o,guildNameClick:c}=R(t,i),d=r?.user?.username,u=a?.name;return(0,s.jsx)(I.A,{icon:n(884797),timestamp:t.timestamp,compact:l,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]:tP,[b.lAJ.REPORT_TO_MOD_KICK_USER]:tP,[b.lAJ.REPORT_TO_MOD_TIMEOUT_USER]:tP,[b.lAJ.REPORT_TO_MOD_DELETED_MESSAGE]:tP,[b.lAJ.REPORT_TO_MOD_CLOSED_REPORT]:tP,[b.lAJ.PREMIUM_GROUP_INVITE]:function(e){let{message:t,channel:n,compact:i}=e;return(0,s.jsx)(e8,{message:t,channel:n,compact:i})},[b.lAJ.VOICE_SESSION]:function(e){let{message:t,channel:n,compact:i}=e;return(0,s.jsx)(ss,{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,s.jsx)(i0,{boostingPrompt:t.boostingPrompt,channel:n})},[b.lAJ.FRIEND_REQUEST_ACCEPTED]:function(e){let{message:t,channel:n,compact:i}=e;return(0,s.jsx)(iP,{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,s.jsx)(eO,{...e,data:n}):null!=t.guildSpaceData?.leaderboard?(0,s.jsx)(ep,{...e}):null!=t.guildSpaceData?.music?(0,s.jsx)(eT,{...e}):null}}),sx=a.memo(function(e){let{message:t,channel:n,compact:i,disableInteraction:l}=e,{type:a}=t,r=sm[a];if(null==r){var o;return o=Error(`unknown message type ${t.type}`),eW.A.captureException(o),new E.A("SystemMessage").error("",o),null}return(0,s.jsx)(nd.Ay,{message:t,content:(0,t$.Ay)(t).content,compact:i??!1,children:(0,s.jsx)(r,{message:t,channel:n,compact:i,disableInteraction:l})})});function sg(e){let{message:t,channel:n,compact:i,disableInteraction:l}=e;return(0,o.A)(t)?(0,s.jsx)(sx,{message:t,channel:n,compact:i,disableInteraction:l}):null}}