88 lines
81 KiB
JavaScript
88 lines
81 KiB
JavaScript
(this.webpackChunkdiscord_app=this.webpackChunkdiscord_app||[]).push([[56097],{936023:(e,t,r)=>{e.exports=r.p+"d8898bda2fe27e299c83d26fde7d1503.png"},338935:(e,t,r)=>{"use strict";r.d(t,{s$:()=>h,Am:()=>p,ZP:()=>m});var n=r(785893),i=(r(667294),r(707961)),o=r(963881),l=r(53645),a=r(473708);function c(e,t,r,n,i,o,l){try{var a=e[o](l),c=a.value}catch(e){r(e);return}a.done?t(c):Promise.resolve(c).then(n,i)}function s(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function l(e){c(o,n,i,l,a,"next",e)}function a(e){c(o,n,i,l,a,"throw",e)}l(void 0)}))}}function u(e,t,r){t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r;return e}function d(e,t){t=null!=t?t:{};Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){
|
|
return Object.getOwnPropertyDescriptor(e,t).enumerable})));r.push.apply(r,n)}return r}(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}));return e}var f=function(e,t){var r,n,i,o,l={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;l;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;(n=0,i)&&(o=[2&o[0],i.value]);switch(o[0]){case 0:case 1:i=o;break;case 4:l.label++;return{value:o[1],done:!1};case 5:l.label++;n=o[1];o=[0];continue;case 7:o=l.ops.pop();l.trys.pop();continue;default:if(!(i=l.trys,i=i.length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){l=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){l.label=o[1];break}
|
|
if(6===o[0]&&l.label<i[1]){l.label=i[1];i=o;break}if(i&&l.label<i[2]){l.label=i[2];l.ops.push(o);break}i[2]&&l.ops.pop();l.trys.pop();continue}o=t.call(e,l)}catch(e){o=[6,e];n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}},h="guild-connection-roles";function p(e){(0,i.ZDy)(s((function(){var t,i;return f(this,(function(o){switch(o.label){case 0:
|
|
return[4,Promise.all([r.e(40532),r.e(17260),r.e(26785),r.e(87820),r.e(12916),r.e(68335),r.e(28531),r.e(47007),r.e(90249),r.e(42554),r.e(70395),r.e(56087),r.e(76824),r.e(70606),r.e(91418),r.e(50763),r.e(96043),r.e(97815),r.e(39497),r.e(13717),r.e(27499),r.e(43655),r.e(73727),r.e(32548),r.e(54602),r.e(17377),r.e(65472),r.e(24251),r.e(10675),r.e(87903),r.e(4275),r.e(93132),r.e(12878),r.e(30027),r.e(3790),r.e(28401),r.e(88271),r.e(96075),r.e(43891),r.e(49096),r.e(25691),r.e(73597),r.e(33404),r.e(42212),r.e(93666),r.e(24813),r.e(23164),r.e(75700),r.e(96179),r.e(95819),r.e(39813),r.e(57575),r.e(8308),r.e(25978),r.e(77859),r.e(24501),r.e(83640),r.e(77308)]).then(r.bind(r,738999))];case 1:t=o.sent(),i=t.default;return[2,function(t){return(0,n.jsx)(i,d(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){
|
|
return Object.getOwnPropertyDescriptor(r,e).enumerable}))));n.forEach((function(t){u(e,t,r[t])}))}return e}({},t),{guildId:e}))}]}}))})),{modalKey:h,contextKey:i.z1l,onCloseRequest:function(){(0,i.Mr3)(h,i.z1l)}})}function m(e){return(0,l.kQ)(e)?(0,n.jsx)(i.sNh,{id:"guild-connection-roles",label:a.Z.Messages.CONNECTIONS_ROLES_CHANNEL_NAME,icon:o.Z,action:function(){return p(e.id)}}):null}},198265:(e,t,r)=>{"use strict";r.d(t,{g:()=>n,t:()=>i});var n,i;!function(e){e[e.NORMAL=0]="NORMAL";e[e.LOADING=1]="LOADING";e[e.DISABLED=2]="DISABLED"}(n||(n={}));!function(e){e[e.STRING=1]="STRING";e[e.USER=2]="USER";e[e.ROLE=3]="ROLE";e[e.CHANNEL=4]="CHANNEL";e[e.GUILD=5]="GUILD"}(i||(i={}))},303907:(e,t,r)=>{"use strict";r.d(t,{h:()=>d,J:()=>h});var n=r(496486),i=r.n(n),o=r(73904),l=r(457896),a=r(775173),c=r(198265),s=r(473708),u=function(e,t){return{id:e.id,name:e.name,animated:e.animated,src:t&&null!=e.id?a.ZP.getEmojiURL({id:e.id,animated:e.animated||!1,size:48}):void 0}},d=function(e,t,r){
|
|
var n=(null==e?void 0:e.data.interactionType)===o.B8.MESSAGE_COMPONENT&&(null==e?void 0:e.state)===l.F.FAILED?e.data.indices:null;if(null!=n&&i().isEqual(n.slice(0,n.length-1),r.indices)){var a;return null!==(a=null==t?void 0:t.interactionError)&&void 0!==a?a:function(e){return 429===(null==e?void 0:e.errorCode)?s.Z.Messages.INTERACTION_RATE_LIMITED:s.Z.Messages.APPLICATION_COMMAND_FAILED}(e)}},f=function(e){switch(e){case o.re.ACTION_ROW:case o.re.BUTTON:case o.re.STRING_SELECT:case o.re.INPUT_TEXT:case o.re.USER_SELECT:case o.re.ROLE_SELECT:case o.re.MENTIONABLE_SELECT:case o.re.CHANNEL_SELECT:return!0}};function h(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],i=r.includeEmojiSrc;return e.map((function(e,l){if(!f(e.type))return null;var a=n.concat(l);switch(e.type){case o.re.ACTION_ROW:var d=null!=e.components?h(e.components,t,r,a):void 0;return{type:o.re.ACTION_ROW,indices:a,components:d}
|
|
;case o.re.BUTTON:var p=null!=e.emoji?u(e.emoji,i):void 0;return{type:o.re.BUTTON,customId:e.custom_id,style:e.style,disabled:e.disabled,url:e.url,label:e.label,emoji:p,indices:a,applicationId:t};case o.re.STRING_SELECT:var m;return{type:o.re.STRING_SELECT,customId:e.custom_id,disabled:e.disabled,options:e.options.map((function(e){return{type:c.t.STRING,label:e.label,value:e.value,default:e.default,description:e.description,emoji:null!=e.emoji?u(e.emoji,i):void 0}})),placeholder:null!==(m=e.placeholder)&&void 0!==m?m:s.Z.Messages.MESSAGE_SELECT_COMPONENT_DEFAULT_PLACEHOLDER,minValues:e.min_values,maxValues:e.max_values,indices:a,applicationId:t};case o.re.INPUT_TEXT:return{type:e.type,style:e.style,customId:e.custom_id,label:e.label,value:e.value,placeholder:e.placeholder,disabled:e.disabled,required:e.required,minLength:e.min_length,maxLength:e.max_length,indices:a};case o.re.USER_SELECT:var g;return{type:o.re.USER_SELECT,customId:e.custom_id,disabled:e.disabled,
|
|
placeholder:null!==(g=e.placeholder)&&void 0!==g?g:s.Z.Messages.MESSAGE_SELECT_COMPONENT_DEFAULT_PLACEHOLDER,minValues:e.min_values,maxValues:e.max_values,indices:a,applicationId:t};case o.re.ROLE_SELECT:var y;return{type:o.re.ROLE_SELECT,customId:e.custom_id,disabled:e.disabled,placeholder:null!==(y=e.placeholder)&&void 0!==y?y:s.Z.Messages.MESSAGE_SELECT_COMPONENT_DEFAULT_PLACEHOLDER,minValues:e.min_values,maxValues:e.max_values,indices:a,applicationId:t};case o.re.MENTIONABLE_SELECT:var O;return{type:o.re.MENTIONABLE_SELECT,customId:e.custom_id,disabled:e.disabled,placeholder:null!==(O=e.placeholder)&&void 0!==O?O:s.Z.Messages.MESSAGE_SELECT_COMPONENT_DEFAULT_PLACEHOLDER,minValues:e.min_values,maxValues:e.max_values,indices:a,applicationId:t};case o.re.CHANNEL_SELECT:var b;return{type:o.re.CHANNEL_SELECT,customId:e.custom_id,disabled:e.disabled,placeholder:null!==(b=e.placeholder)&&void 0!==b?b:s.Z.Messages.MESSAGE_SELECT_COMPONENT_DEFAULT_PLACEHOLDER,minValues:e.min_values,
|
|
maxValues:e.max_values,indices:a,channelTypes:e.channel_types,applicationId:t};default:return null}})).filter((function(e){return null!=e}))}},979264:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});var n=r(2590);function i(e){return e.type===n.uaV.DEFAULT&&null!=e.messageReference}},804808:(e,t,r)=>{"use strict";r.d(t,{ZP:()=>s,k$:()=>d});r(940007);var n=r(883064),i=r(473291),o=r(2590);var l=new Set([o.hBH.IMAGE,o.hBH.GIFV]),a=new Set(["strong","em","u","text","inlineCode","s","spoiler"]);function c(e,t,r){r.toAST;var n=r.hideSimpleEmbedContent,o=void 0===n||n,a=r.formatInline,c=void 0!==a&&a,s=r.postProcessor,u=!1,d=e(t.content,!0,function(e,t){return{allowLinks:null!=e.webhookId||Boolean(t.allowLinks),channelId:e.channel_id,mentionChannels:e.mentionChannels,isInteracting:!!t.isInteracting,formatInline:Boolean(t.formatInline),noStyleAndInteraction:Boolean(t.noStyleAndInteraction),allowHeading:Boolean(t.allowHeading),allowList:Boolean(t.allowList),
|
|
previewLinkTarget:Boolean(t.previewLinkTarget),disableAnimatedEmoji:Boolean(t.disableAnimatedEmoji),disableAutoBlockNewlines:!0}}(t,r),(function(e,r){Array.isArray(e)||(e=[e]);o&&(e=function(e,t){if(1!==e.length||1!==t.length)return e;var r=e[0],n=t[0];if("link"===r.type&&l.has(n.type)&&(0,i.dY)(n))return[];return e}(e,t.embeds));c||(e=function(e,t){if(t)return f(e);"paragraph"===e[0].type&&e[0].content instanceof Array&&(e[0].content=f(e[0].content));return e}(e,r));0;u=function(e,t){if(t)return h(e);if("paragraph"===e[0].type&&e[0].content instanceof Array)return h(e[0].content);return!1}(e,r);c&&(e=p(e));null!=s&&(e=s(e,r));return e}));return{hasSpoilerEmbeds:u,content:d}}function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.formatInline?n.Z.parseInlineReply:n.Z.parse;return c(r,e,t)}function u(e,t,r,n){return e(t,!0,{allowLinks:!1,mentionChannels:[],isInteracting:!1,formatInline:!1,noStyleAndInteraction:!1,allowHeading:!1,allowList:!1,
|
|
disableAutoBlockNewlines:!0,highlightWord:r,disableAnimatedEmoji:!1,channelId:n},(function(e){Array.isArray(e)||(e=[e]);return e}))}function d(e,t,r){return u(n.Z.parseAutoModerationSystemMessage,e,t,r)}function f(e){if(e.some((function(e){return"emoji"!==e.type&&"customEmoji"!==e.type&&("string"!=typeof e.content||""!==e.content.trim())})))return e;var t=0;e.forEach((function(e){"emoji"!==e.type&&"customEmoji"!==e.type||(t+=1);if(t>30)return!1}));if(t>30)return e;e.forEach((function(e){e.jumboable=!0}));return e}function h(e){return e.some((function(e){return"spoiler"===e.type&&Array.isArray(e.content)&&e.content.some((function(e){return"link"===e.type}))}))}function p(e){e.forEach((function(e){a.has(e.type)&&null!=e.content&&(Array.isArray(e.content)?p(e.content):e.content=e.content.replace(/\n/g," "))}));return e}},834876:(e,t,r)=>{"use strict";r.d(t,{ut:()=>l,Gq:()=>a,XX:()=>c,Dv:()=>s,bY:()=>u,bX:()=>d,iG:()=>f,Gx:()=>h});var n=r(344485),i=r(791707),o=r(2590);function l(e){
|
|
return"message-content-".concat(e.id)}function a(e){return"message-reply-context-".concat(e.id)}function c(e,t){var r=null!=t?t:e.id;return"message-username-".concat(r)}function s(e){return"message-timestamp-".concat(e.id)}function u(e){return"message-reactions-".concat(e.id)}function d(e){return"message-accessories-".concat(e.id)}function f(e,t,r){var u=e.type===o.uaV.REPLY&&null!=e.messageReference,f=e.embeds.length>0,h=e.attachments.length>0,p=e.stickerItems.length>0,m=e.codedLinks.length>0,g=e.hasFlag(o.iLy.HAS_THREAD),y=f||h||p||m||g||e.type===o.uaV.THREAD_CREATED,O=f&&e.content===e.embeds[0].url&&e.embeds[0].type===o.hBH.GIFV,b=e.type!==o.uaV.DEFAULT||!O&&""!==e.content,j=(0,i.Z)(e),x=!j&&!1!==(null==r?void 0:r.hasTimestamp),v=!j,w=c(e,t),E=a(e),P=v?"".concat(u?E:w," ").concat(n.Z0):"";if(b){var C=l(e);P+=" ".concat(C)}if(y){var S=d(e);P+=" ".concat(S)}if(x){var N=s(e);P+=" ".concat(n.fy," ").concat(N)}return P.trim()}function h(e){if(0!==e.reactions.length){var t=u(e)
|
|
;return"".concat(n.Mb," ").concat(t)}}},350296:(e,t,r)=>{"use strict";r.d(t,{Z:()=>s});var n=r(785893),i=(r(667294),r(694278)),o=r(185759),l=r(550131);function a(e,t,r){t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r;return e}function c(e,t){t=null!=t?t:{};Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})));r.push.apply(r,n)}return r}(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}));return e}function s(e){var t,r,s=(0,l.ZP)(e.message),u=(0,i.x)({message:e.message,channel:e.channel,user:null!==(r=null===(t=e.message)||void 0===t?void 0:t.author)&&void 0!==r?r:e.userOverride,compact:!!e.compact,isRepliedMessage:!!e.isRepliedMessage}),d={}
|
|
;null!=u&&(d[o.a.SYSTEM_TAG]=u);return(0,n.jsx)(o.Z,c(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))));n.forEach((function(t){a(e,t,r[t])}))}return e}({},e),{author:s,decorations:d}))}},593499:(e,t,r)=>{"use strict";r.d(t,{Z:()=>a});var n=r(468482),i=r.n(n),o={LATIN12:i().latin12CompactTimeStamp,LATIN24:i().latin24CompactTimeStamp,ASIAN:i().asianCompactTimeStamp},l=/(AM|PM)$/;function a(e){return null!=e.match(l)?o.LATIN24:e.length<=5?o.LATIN12:o.ASIAN}},283285:(e,t,r)=>{"use strict";r.d(t,{Z:()=>c});var n=r(667294),i=r(804808),o=r(785893),l=r(613749);var a=r(2590);function c(e,t){
|
|
var r=t.hideSimpleEmbedContent,c=t.formatInline,s=void 0!==c&&c,u=t.noStyleAndInteraction,d=void 0!==u&&u,f=t.isInteracting,h=void 0!==f&&f,p=t.allowHeading,m=void 0!==p&&p,g=t.allowList,y=void 0!==g&&g,O=t.allowLinks,b=void 0!==O&&O,j=t.previewLinkTarget,x=void 0!==j&&j;return n.useMemo((function(){return null!=e.customRenderedContent?e.customRenderedContent:e.isCommandType()&&0===e.content.length||e.hasFlag(a.iLy.LOADING)?function(e){return{content:(0,o.jsx)(l.ZP,{message:e}),hasSpoilerEmbeds:!1}}(e):(0,i.ZP)(e,{hideSimpleEmbedContent:r,formatInline:s,noStyleAndInteraction:d,isInteracting:h,allowHeading:m,allowList:y,allowLinks:b,previewLinkTarget:x})}),[e.content,e.customRenderedContent,e.embeds,e.interaction,e.state,e.type,r,s,d,h,m,y,b,x])}},589591:(e,t,r)=>{"use strict";r.d(t,{cp:()=>d,QA:()=>f,BF:()=>h});var n=r(396043),i=r(979264),o=r(652591),l=r(940455),a=r(2590),c=r(936023),s=r.n(c);function u(e,t,r){t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,
|
|
writable:!0}):e[t]=r;return e}function d(e){return(0,i.Z)(e)&&e.messageReference.guild_id===l.M_||null!=e.author&&e.author.id===l.c9}function f(){return s()}var h=function(e){o.default.track(a.rMx.USER_FLOW_TRANSITION,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))));n.forEach((function(t){u(e,t,r[t])}))}return e}({flow_type:l.tA,from_step:e.fromStep,to_step:e.toStep},(0,n.hH)(e.guildId)))}},357566:(e,t,r)=>{"use strict";r.d(t,{Z:()=>c});var n=r(785893),i=(r(667294),r(633878));function o(e,t,r){t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r;return e}function l(e,t){t=null!=t?t:{};Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e,t){var r=Object.keys(e)
|
|
;if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})));r.push.apply(r,n)}return r}(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}));return e}function a(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++){r=o[n];t.indexOf(r)>=0||(i[r]=e[r])}return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++){r=o[n];t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}}return i}function c(e){var t=e.color,r=void 0===t?"currentColor":t,c=e.height,s=void 0===c?24:c,u=e.width,d=void 0===u?24:u,f=a(e,["color","height","width"]);return(0,n.jsxs)("svg",l(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r)
|
|
;"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))));n.forEach((function(t){o(e,t,r[t])}))}return e}({},(0,i.Z)(f)),{width:d,height:s,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,n.jsx)("path",{d:"M12.83 14.24L9.29006 10.71C9.19737 10.6165 9.124 10.5057 9.07424 10.3839C9.02447 10.2621 8.99926 10.1316 9.00002 10V4H11V9.58997L14.24 12.83L12.83 14.24Z",fill:r}),(0,n.jsx)("path",{
|
|
d:"M13.3101 2L18 6.69V13.3101L13.3101 18H6.68994L2 13.3101V6.69L6.68994 2H13.3101V2ZM13.73 0H6.27002C6.00525 0.00368349 5.75169 0.107244 5.56006 0.289978L0.290039 5.56C0.107305 5.75163 0.00368349 6.00525 0 6.27002V13.73C0.00368349 13.9947 0.107305 14.2483 0.290039 14.4399L5.56006 19.71C5.75169 19.8927 6.00525 19.9963 6.27002 20H13.73C13.9947 19.9963 14.2483 19.8927 14.4399 19.71L19.71 14.4399C19.8927 14.2483 19.9963 13.9947 20 13.73V6.27002C19.9963 6.00525 19.8927 5.75163 19.71 5.56L14.4399 0.289978C14.2483 0.107244 13.9947 0.00368349 13.73 0V0Z",fill:r})]}))}},816240:(e,t,r)=>{"use strict";r.d(t,{Z:()=>c});var n=r(785893),i=(r(667294),r(633878));function o(e,t,r){t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r;return e}function l(e,t){t=null!=t?t:{};Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){
|
|
var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})));r.push.apply(r,n)}return r}(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}));return e}function a(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++){r=o[n];t.indexOf(r)>=0||(i[r]=e[r])}return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++){r=o[n];t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}}return i}function c(e){var t=e.width,r=void 0===t?24:t,c=e.height,s=void 0===c?24:c,u=e.color,d=void 0===u?"currentColor":u,f=e.foreground,h=a(e,["width","height","color","foreground"]);return(0,n.jsx)("svg",l(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r)
|
|
;"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))));n.forEach((function(t){o(e,t,r[t])}))}return e}({},(0,i.Z)(h)),{width:r,height:s,viewBox:"0 0 24 24",children:(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",className:f,d:"M6 2C3.79086 2 2 3.79086 2 6V18C2 20.2091 3.79086 22 6 22H18C20.2091 22 22 20.2091 22 18V6C22 3.79086 20.2091 2 18 2H6ZM10 8C10 6.8952 9.1032 6 8 6C6.8944 6 6 6.8952 6 8C6 9.1056 6.8944 10 8 10C9.1032 10 10 9.1056 10 8ZM9 14L6 18H18L15 11L11 16L9 14Z",fill:d})}))}},571724:(e,t,r)=>{"use strict";r.d(t,{Z:()=>c});var n=r(785893),i=(r(667294),r(633878));function o(e,t,r){t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r;return e}function l(e,t){t=null!=t?t:{};Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e,t){var r=Object.keys(e)
|
|
;if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})));r.push.apply(r,n)}return r}(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}));return e}function a(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++){r=o[n];t.indexOf(r)>=0||(i[r]=e[r])}return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++){r=o[n];t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}}return i}function c(e){var t=e.width,r=void 0===t?16:t,c=e.height,s=void 0===c?16:c,u=e.color,d=void 0===u?"currentColor":u,f=a(e,["width","height","color"]);return(0,n.jsx)("svg",l(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r)
|
|
;"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))));n.forEach((function(t){o(e,t,r[t])}))}return e}({width:r,height:s},(0,i.Z)(f)),{viewBox:"0 0 16 16",children:(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.20038 2.39762V5.24178C9.20038 6.10455 9.89673 6.80072 10.7597 6.80072H13.6046C13.9558 6.80072 14.1343 6.37826 13.8844 6.12835L9.87292 2.11796C9.62295 1.86806 9.20038 2.04061 9.20038 2.39762ZM10.7461 8.01794C9.22044 8.01794 7.98197 6.77947 7.98197 5.25382V2.03499H3.19561C2.53749 2.03499 1.99902 2.57346 1.99902 3.23158V12.8043C1.99902 13.4624 2.53749 14.0009 3.19561 14.0009H12.7683C13.4265 14.0009 13.9649 13.4624 13.9649 12.8043V8.01794H10.7461ZM9.80015 9C9.80015 9.99411 8.99427 10.8 8.00015 10.8C7.00604 10.8 6.20015 9.99411 6.20015 9H5.00015C5.00015 10.6569 6.3433 12 8.00015 12C9.65701 12 11.0002 10.6569 11.0002 9H9.80015Z",fill:d})}))}},
|
|
613749:(e,t,r)=>{"use strict";r.d(t,{c4:()=>j,st:()=>x,ZP:()=>w});var n=r(785893),i=r(667294),o=r(294184),l=r.n(o),a=r(283151),c=r(202351),s=r(707961),u=r(303907),d=r(873934),f=r(166076),h=r(265367),p=r(98265),m=r(2590),g=r(473708),y=r(639867),O=r.n(y);function b(e){return{text:e,icon:(0,n.jsx)(s.bbz,{className:O().icon,dotRadius:3.5,themed:!0})}}function j(e){return{text:null!=e?e:g.Z.Messages.APPLICATION_COMMAND_FAILED,color:p.Z.Colors.ERROR,icon:(0,n.jsx)(h.Z,{width:16,height:16,className:l()(O().icon,O().errorIcon)})}}function x(e){var t=e.className,r=e.icon,i=e.text,o=e.color;return(0,n.jsxs)("div",{className:l()(O().wrapper,t),children:[r,(0,n.jsx)(p.Z,{size:p.Z.Sizes.SIZE_14,color:o,children:i})]})}function v(e){var t=e.message,r=e.className,o=e.component,l=(0,a.Z)(),s=(0,c.e7)([d.Z],(function(){return d.Z.getInteraction(t)}),[t]);i.useEffect((function(){var e=null;if(t.hasFlag(m.iLy.LOADING)&&null!=s){var r=(0,f.ow)(t.id)-Date.now();r>0&&(e=setTimeout((function(){return l()
|
|
}),1e3+r))}return function(){clearTimeout(e)}}),[l,s,t]);var h=null;if(null==o)h=function(e,t){switch((0,f.t$)(t,e)){case f.rQ.SENDING:return b(g.Z.Messages.APPLICATION_COMMAND_SENDING);case f.rQ.CREATED:return b(g.Z.Messages.APPLICATION_COMMAND_WAITING.format({applicationName:t.author.username}));case f.rQ.TIMED_OUT:return j(g.Z.Messages.APPLICATION_COMMAND_TIMED_OUT);case f.rQ.FAILED:return j(t.interactionError)}}(s,t);else{var p=(0,u.h)(s,t,o);null!=p&&(h=j(p))}if(null==h)return null;var y=h.text,O=h.icon,v=h.color;return(0,n.jsx)(x,{icon:O,text:y,className:r,color:v})}const w=i.memo(v)},508754:(e,t,r)=>{"use strict";r.d(t,{Z:()=>h});var n=r(785893),i=(r(667294),r(294184)),o=r.n(i),l=r(707961),a=r(468482),c=r.n(a);function s(e,t,r){t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r;return e}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r)
|
|
;"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))));n.forEach((function(t){s(e,t,r[t])}))}return e}function d(e,t){t=null!=t?t:{};Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})));r.push.apply(r,n)}return r}(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}));return e}function f(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++){r=o[n];t.indexOf(r)>=0||(i[r]=e[r])}return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++){r=o[n]
|
|
;t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}}return i}const h=function(e){var t,r=e.className,i=e.compact,a=void 0!==i&&i,h=e.contentOnly,p=void 0!==h&&h,m=e.zalgo,g=void 0===m||m,y=e.disableInteraction,O=void 0!==y&&y,b=e.childrenHighlight,j=e.childrenRepliedMessage,x=e.childrenExecutedCommand,v=e.childrenHeader,w=e.childrenSystemMessage,E=e.childrenButtons,P=e.childrenMessageContent,C=e.childrenAccessories,S=e.messageRef,N=e.focusProps,I=void 0===N?{offset:{left:4,right:4}}:N,_=e.hasThread,T=e.isSystemMessage,A=e.hasReply,M=f(e,["className","compact","contentOnly","zalgo","disableInteraction","childrenHighlight","childrenRepliedMessage","childrenExecutedCommand","childrenHeader","childrenSystemMessage","childrenButtons","childrenMessageContent","childrenAccessories","messageRef","focusProps","hasThread","isSystemMessage","hasReply"]),D=(0,n.jsx)(l.tEY,d(u({},I),{children:(0,n.jsxs)("div",d(u({className:o()(r,(t={},s(t,c().wrapper,!0),
|
|
s(t,c().contentOnly,p),s(t,c().compact,a),s(t,c().cozy,!a),s(t,c().zalgo,g),s(t,c().hasThread,_),s(t,c().isSystemMessage,T),s(t,c().hasReply,A),t)),ref:S},M),{role:"article",children:[!a&&b,j,x,(0,n.jsxs)("div",{className:c().contents,children:[w,v,null==w&&P]}),C,null!=E?(0,n.jsx)("div",{className:c().buttonContainer,children:E}):null]}))}));return O?(0,n.jsx)(l.Rny,{children:D}):D}},723876:(e,t,r)=>{"use strict";r.d(t,{L5:()=>b,HR:()=>x,ZP:()=>v});var n=r(785893),i=r(667294),o=r(294184),l=r.n(o),a=r(506907),c=r.n(a),s=r(199731),u=r(834876),d=r(42028),f=r(2590),h=r(473708),p=r(913198),m=r.n(p),g=r(468482),y=r.n(g);function O(e,t,r){t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r;return e}function b(e,t){return e.hasFlag(f.iLy.SOURCE_MESSAGE_DELETED)?h.Z.Messages.SOURCE_MESSAGE_DELETED:t}function j(e){
|
|
var t,r,o=e.className,a=e.message,s=e.children,p=e.content,g=e.onUpdate,j=e.contentRef,x=a.isEdited(),v=a.state===f.yb.SEND_FAILED,w=a.state===f.yb.SENDING,E=a.isCommandType(),P=null===(t=a.editedTimestamp)||void 0===t?void 0:t.toString(),C=i.useRef(!1);i.useLayoutEffect((function(){C.current?null!=g&&g():C.current=!0}),[g,a.content,p,P,s]);return(0,n.jsxs)("div",{id:(0,u.ut)(a),ref:j,className:l()(o,m().markup,(r={},O(r,y().messageContent,!0),O(r,y().isSending,w&&!E),O(r,y().markupRtl,"rtl"===c()(a.content)),O(r,y().isFailed,v),r)),children:[null!=s?s:b(a,p),x&&null!=a.editedTimestamp&&(0,n.jsxs)(n.Fragment,{children:[" ",(0,n.jsx)(d.Z,{timestamp:a.editedTimestamp,isEdited:!0,isInline:!1,children:(0,n.jsxs)("span",{className:y().edited,children:["(",h.Z.Messages.MESSAGE_EDITED,")"]})})]})]})}function x(e,t){var r,n,i=t.message,o=e.message;return(0,
|
|
s.Z)(e,t,["message"])&&i.content===o.content&&i.state===o.state&&(null===(r=i.editedTimestamp)||void 0===r?void 0:r.toString())===(null===(n=o.editedTimestamp)||void 0===n?void 0:n.toString())}const v=i.memo(j,x)},824803:(e,t,r)=>{"use strict";r.d(t,{nD:()=>yt,ZP:()=>Ot,F2:()=>gt,xP:()=>mt});var n=r(785893),i=r(667294),o=r(294184),l=r.n(o),a=r(289283),c=r(202351),s=r(707961),u=r(859853),d=r(80317),f=r(995141),h=r(441143),p=r.n(h),m=r(496486),g=r.n(m),y=r(336194),O=r(327499),b=r(385028),j=r(74535),x=r(265688),v=r(396043),w=r(762423),E=r(722406),P=r(21372),C=r(609853),S=r(621329),N=r(652591),I=r(53645),_=r(744564);function T(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function A(e){A=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)};return A(e)}function M(e,t){return!t||"object"!==L(t)&&"function"!=typeof t?function(e){
|
|
if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function D(e,t){D=Object.setPrototypeOf||function(e,t){e.__proto__=t;return e};return D(e,t)}var L=function(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};function R(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})));return!0}catch(e){return!1}}();return function(){var r,n=A(e);if(t){var i=A(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return M(this,r)}}var Z=new Map,k=function(e){var t=e.roleId,r=e.roleConnectionEligibility;Z.set(t,r)},U=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{
|
|
constructor:{value:e,writable:!0,configurable:!0}});t&&D(e,t)}(r,e);var t=R(r);function r(){T(this,r);return t.apply(this,arguments)}var n=r.prototype;n.getGuildRoleConnectionEligibility=function(e){return null!=e?Z.get(e):void 0};n.__getLocalVars=function(){return{roleConnectionEligibilities:Z,handleFetchSuccess:k}};return r}(c.ZP.Store);U.displayName="GuildRoleConnectionEligibilityStore";const G=new U(_.Z,{GUILD_ROLE_CONNECTION_ELIGIBILITY_FETCH_SUCCESS:k});var B=r(979422),H=r(566500),V=r(491984),F=r(338935),z=r(678005),Y=r(2590),q=r(448898),W=r(473708),X=r(802449),K=r.n(X);function Q(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function J(e,t,r,n,i,o,l){try{var a=e[o](l),c=a.value}catch(e){r(e);return}a.done?t(c):Promise.resolve(c).then(n,i)}function $(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function l(e){J(o,n,i,l,a,"next",e)}function a(e){J(o,n,i,l,a,"throw",e)}l(void 0)}))}}
|
|
function ee(e,t,r){t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r;return e}function te(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))));n.forEach((function(t){ee(e,t,r[t])}))}return e}function re(e,t){t=null!=t?t:{};Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})));r.push.apply(r,n)}return r}(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}));return e}function ne(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){
|
|
var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o=[],l=!0,a=!1;try{for(r=r.call(e);!(l=(n=r.next()).done);l=!0){o.push(n.value);if(t&&o.length===t)break}}catch(e){a=!0;i=e}finally{try{l||null==r.return||r.return()}finally{if(a)throw i}}return o}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Q(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Q(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var ie=function(e,t){var r,n,i,o,l={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){
|
|
return this}),o;function a(o){return function(a){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;l;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;(n=0,i)&&(o=[2&o[0],i.value]);switch(o[0]){case 0:case 1:i=o;break;case 4:l.label++;return{value:o[1],done:!1};case 5:l.label++;n=o[1];o=[0];continue;case 7:o=l.ops.pop();l.trys.pop();continue;default:if(!(i=l.trys,i=i.length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){l=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){l.label=o[1];break}if(6===o[0]&&l.label<i[1]){l.label=i[1];i=o;break}if(i&&l.label<i[2]){l.label=i[2];l.ops.push(o);break}i[2]&&l.ops.pop();l.trys.pop();continue}o=t.call(e,l)}catch(e){o=[6,e];n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}};function oe(e){var t,r=e.connectionType,i=e.connectionMetadataField,o=e.operator,l=e.value,a=e.description;if(null!=a)switch(o){
|
|
case z.iO.LESS_THAN:t=W.Z.Messages.CONNECTIONS_ROLE_RULE_GENERIC.format({description:a,count:Math.max(0,Number(l)-1)});break;case z.iO.GREATER_THAN:t=W.Z.Messages.CONNECTIONS_ROLE_RULE_GENERIC.format({description:a,count:Math.max(0,Number(l)+1)});break;default:t=a}else t=(0,I.n_)({connectionType:r,connectionMetadataField:i,operator:o,value:l});return null==t?null:(0,n.jsxs)("div",{className:K().popoutCheck,children:[(0,n.jsx)(S.Z,{className:K().popoutCheckIcon}),(0,n.jsx)(s.xvT,{variant:"text-xs/medium",color:"header-primary",children:t})]})}function le(e){var t=e.eligibilityStates,r=(0,j.ZP)(),i=(0,s.dQu)(y.Z.unsafe_rawColors.GREEN_330).hex(),o=g().groupBy(t,(function(e){return"".concat(e.connection_type).concat(null!=e.application_id?":".concat(e.application_id):"")}));return(0,n.jsx)(n.Fragment,{children:Object.keys(o).map((function(e){var t,l=o[e],a=l.filter((function(e){return null!=e.operator})),c=l.find((function(e){return null!=e.application}));try{t=x.Z.get(e)}catch(e){}
|
|
var u,d,f,h=null==c?void 0:c.application,m=null!=(null==h?void 0:h.bot)?new E.Z(h.bot):null;I.SJ.includes(null!==(u=null==h?void 0:h.id)&&void 0!==u?u:"")?d=(0,n.jsx)(V.Z,{className:K().botTag,color:i,size:16}):null!=m&&(d=(0,n.jsx)(C.Z,{className:K().botTag,verified:m.isVerifiedBot()}));return(0,n.jsxs)("div",{className:K().popoutChecksGroup,children:[(0,n.jsxs)("div",{className:K().popoutCheckGroupName,children:[null!=t?(0,n.jsx)("img",{src:r===Y.BRd.DARK?t.icon.darkSVG:t.icon.lightSVG,alt:"",className:K().popoutCheckGroupPlatformIcon}):null,null!=m?(0,n.jsx)(b.Z,{user:m,size:s.EFr.SIZE_20,className:K().popoutCheckGroupPlatformIcon}):null,(0,n.jsx)(s.xvT,{variant:"text-sm/medium",color:"interactive-active",children:null!==(f=null==t?void 0:t.name)&&void 0!==f?f:null==h?void 0:h.name}),d]}),a.map((function(e){var t=e.connection_type,r=e.connection_metadata_field,i=e.operator,o=e.value,l=e.description;p()(null!=r,"connectionMetadataField is null");p()(null!=i,"operator is null")
|
|
;p()(null!=o,"value is null");return(0,n.jsx)(oe,{connectionType:t,connectionMetadataField:r,operator:i,value:o,description:l},"".concat(t,":").concat(r,":").concat(i,":").concat(o))}))]},e)}))})}function ae(e){var t,r=e.onGetRolesClicked,o=e.onOpenProfile,l=e.eligibilityStates,a=e.userId,u=e.roleId,d=e.channelId,f=e.guildId;i.useEffect((function(){N.default.track(Y.rMx.PASSPORT_ROLE_POPOUT_VIEWED,te({other_user_id:a,role_id:u},(0,v.JS)(d),(0,v.hH)(f)))}),[a,u,d,f]);var h,p=(0,c.e7)([P.ZP],(function(){var e;return null!==(t=null===(e=P.ZP.getSelfMember(f))||void 0===e?void 0:e.roles.includes(u))&&void 0!==t&&t}),[f,u]);h=1===l.length&&1===l[0].length?W.Z.Messages.CONNECTIONS_ROLE_POPOUT_HEADER_ONE:1===l.length?W.Z.Messages.CONNECTIONS_ROLE_POPOUT_HEADER_ALL.format():W.Z.Messages.CONNECTIONS_ROLE_POPOUT_HEADER_OR.format();return(0,n.jsxs)("div",{className:K().popout,children:[(0,n.jsx)("div",{className:K().popoutHeaderContainer,children:(0,n.jsx)(s.xvT,{variant:"text-xs/normal",
|
|
color:"text-normal",className:K().popoutHeaderText,children:h})}),(0,n.jsx)("div",{className:K().popoutChecks,children:(0,n.jsx)(le,{eligibilityStates:l.flat()})}),(0,n.jsxs)("div",{className:K().buttonContainer,children:[p?null:(0,n.jsx)(s.zxk,{className:K().getRolesButton,onClick:r,children:W.Z.Messages.CONNECTIONS_ROLE_POPOUT_GET_ROLES}),(0,n.jsx)(s.zxk,{className:K().viewConnectionsButton,color:s.zxk.Colors.PRIMARY,onClick:o,children:W.Z.Messages.CONNECTIONS_ROLE_POPOUT_VIEW_CONNECTIONS})]})]})}function ce(e){var t=e.userId,r=e.guild,o=e.channel,l=(0,B.Z)(r,t,o.id,!0),a=(0,c.e7)([G],(function(){return G.getGuildRoleConnectionEligibility(null==l?void 0:l.id)})),u=ne(i.useState(null==a),2),d=u[0],f=u[1];if(null==l)return null;function h(){return(h=$((function(){return ie(this,(function(e){switch(e.label){case 0:p()(null!=l,"visibleConnectionsRole is null");return d&&null==a?[4,O.Z.fetchGuildRoleConnectionsEligibility(r.id,l.id)]:[2];case 1:e.sent();f(!1);return[2]}}))
|
|
}))).apply(this,arguments)}return(0,n.jsx)(s.KeG,{onRequestOpen:function(){return h.apply(this,arguments)},renderPopout:function(){return Promise.resolve((function(e){var i=e.closePopout;if(null==a)return(0,n.jsx)(n.Fragment,{});p()(null!=l,"visibleConnectionsRole is null");return(0,n.jsx)(ae,{eligibilityStates:a,userId:t,roleId:l.id,channelId:o.id,guildId:r.id,onGetRolesClicked:function(){(0,F.Am)(r.id)},onOpenProfile:function(){(0,w.m)({userId:t,guildId:r.id,channelId:o.id,section:q.oh.USER_INFO_CONNECTIONS,analyticsLocation:{section:Y.jXE.CHANNEL}});i()}})}))},align:"top",nudgeAlignIntoViewport:!0,children:function(e){return(0,n.jsx)(s.ua7,{text:W.Z.Messages.CONNECTIONS_ROLE_POPOUT_CLICK_TO_VIEW,children:function(t){return(0,n.jsxs)("div",re(te({className:K().badge},t,e),{children:[(0,n.jsx)(H.Z,{className:K().badgeVerifiedIcon,size:16,color:l.colorString}),(0,n.jsx)(s.xvT,{variant:"text-xs/bold",color:"header-primary",className:K().roleName,children:l.name})]}))}})}})}
|
|
var se=r(872017),ue=r(633878);function de(e,t,r){t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r;return e}function fe(e,t){t=null!=t?t:{};Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})));r.push.apply(r,n)}return r}(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}));return e}function he(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++){r=o[n];t.indexOf(r)>=0||(i[r]=e[r])}return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++){r=o[n];t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}}return i}function pe(e){
|
|
var t=e.width,r=void 0===t?24:t,i=e.height,o=void 0===i?24:i,l=e.color,a=void 0===l?"currentColor":l,c=he(e,["width","height","color"]);return(0,n.jsxs)("svg",fe(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))));n.forEach((function(t){de(e,t,r[t])}))}return e}({},(0,ue.Z)(c)),{width:r,height:o,viewBox:"0 0 64 64",fill:"none",children:[(0,n.jsx)("rect",{width:"8",height:"8",fill:a}),(0,n.jsx)("rect",{x:"56",y:"56",width:"8",height:"8",fill:a}),(0,n.jsx)("rect",{x:"28",y:"21.6453",width:"2.66667",height:"2.66667",fill:a}),(0,n.jsx)("rect",{x:"30.6667",y:"21.6453",width:"2.66667",height:"2.66667",fill:a}),(0,n.jsx)("rect",{x:"28",y:"18.9785",width:"2.66667",height:"2.66667",fill:a}),(0,n.jsx)("rect",{x:"25.3335",y:"18.9785",width:"2.66667",height:"2.66667",fill:a
|
|
}),(0,n.jsx)("rect",{x:"30.6667",y:"18.9785",width:"2.66667",height:"2.66667",fill:a}),(0,n.jsx)("rect",{x:"28",y:"16.3119",width:"2.66667",height:"2.66667",fill:a}),(0,n.jsx)("rect",{x:"25.3335",y:"16.3119",width:"2.66667",height:"2.66667",fill:a}),(0,n.jsx)("rect",{x:"22.6667",y:"16.3119",width:"2.66667",height:"2.66667",fill:a}),(0,n.jsx)("rect",{x:"30.6667",y:"16.3119",width:"2.66667",height:"2.66667",fill:a}),(0,n.jsx)("rect",{x:"28",y:"13.6453",width:"2.66667",height:"2.66667",fill:a}),(0,n.jsx)("rect",{x:"25.3335",y:"13.6453",width:"2.66667",height:"2.66667",fill:a}),(0,n.jsx)("rect",{x:"22.6667",y:"13.6453",width:"2.66667",height:"2.66667",fill:a}),(0,n.jsx)("rect",{x:"30.6667",y:"13.6453",width:"2.66667",height:"2.66667",fill:a}),(0,n.jsx)("rect",{x:"28",y:"10.9785",width:"2.66667",height:"2.66667",fill:a}),(0,n.jsx)("rect",{x:"25.3335",y:"10.9785",width:"2.66667",height:"2.66667",fill:a}),(0,n.jsx)("rect",{x:"22.6667",y:"10.9785",width:"2.66667",height:"2.66667",fill:a}),(0,
|
|
n.jsx)("rect",{opacity:"0.2",x:"30.6667",y:"10.9785",width:"2.66667",height:"2.66667",fill:a}),(0,n.jsx)("rect",{x:"28",y:"8.31189",width:"2.66667",height:"2.66667",fill:a}),(0,n.jsx)("rect",{x:"25.3335",y:"8.31189",width:"2.66667",height:"2.66667",fill:a}),(0,n.jsx)("rect",{width:"2.66667",height:"2.66667",transform:"matrix(-1 0 0 1 36 21.6453)",fill:a}),(0,n.jsx)("rect",{width:"2.66667",height:"2.66667",transform:"matrix(-1 0 0 1 36 18.9785)",fill:a}),(0,n.jsx)("rect",{width:"2.66667",height:"2.66667",transform:"matrix(-1 0 0 1 38.6667 18.9785)",fill:a}),(0,n.jsx)("rect",{width:"2.66667",height:"2.66667",transform:"matrix(-1 0 0 1 36 16.3119)",fill:a}),(0,n.jsx)("rect",{width:"2.66667",height:"2.66667",transform:"matrix(-1 0 0 1 38.6667 16.3119)",fill:a}),(0,n.jsx)("rect",{width:"2.66666",height:"2.66667",transform:"matrix(-1 0 0 1 41.3335 16.3119)",fill:a}),(0,n.jsx)("rect",{width:"2.66667",height:"2.66667",transform:"matrix(-1 0 0 1 36 13.6453)",fill:a}),(0,n.jsx)("rect",{
|
|
width:"2.66667",height:"2.66667",transform:"matrix(-1 0 0 1 38.6667 13.6453)",fill:a}),(0,n.jsx)("rect",{width:"2.66666",height:"2.66667",transform:"matrix(-1 0 0 1 41.3335 13.6453)",fill:a}),(0,n.jsx)("rect",{width:"2.66667",height:"2.66667",transform:"matrix(-1 0 0 1 36 10.9785)",fill:a}),(0,n.jsx)("rect",{width:"2.66667",height:"2.66667",transform:"matrix(-1 0 0 1 38.6667 10.9785)",fill:a}),(0,n.jsx)("rect",{width:"2.66666",height:"2.66667",transform:"matrix(-1 0 0 1 41.3335 10.9785)",fill:a}),(0,n.jsx)("rect",{width:"2.66667",height:"2.66667",transform:"matrix(-1 0 0 1 36 8.31189)",fill:a}),(0,n.jsx)("rect",{width:"2.66667",height:"2.66667",transform:"matrix(-1 0 0 1 38.6667 8.31189)",fill:a}),(0,n.jsx)("rect",{x:"30.6667",y:"24.3119",width:"2.66667",height:"2.66667",fill:a}),(0,n.jsx)("rect",{x:"30.6394",y:"47.6882",width:"2.66667",height:"2.66666",fill:a}),(0,n.jsx)("rect",{x:"30.6394",y:"45.0215",width:"2.66667",height:"2.66667",fill:a}),(0,n.jsx)("rect",{x:"28.0273",
|
|
y:"45.0215",width:"2.66667",height:"2.66667",fill:a}),(0,n.jsx)("rect",{x:"17.5796",y:"34.3549",width:"2.66667",height:"2.66667",fill:a}),(0,n.jsx)("rect",{x:"28.0273",y:"42.3549",width:"2.66667",height:"2.66667",fill:a}),(0,n.jsx)("rect",{x:"17.5796",y:"31.6882",width:"2.66667",height:"2.66667",fill:a}),(0,n.jsx)("rect",{x:"28.0273",y:"39.6882",width:"2.66667",height:"2.66666",fill:a}),(0,n.jsx)("rect",{x:"17.5796",y:"29.0215",width:"2.66667",height:"2.66667",fill:a}),(0,n.jsx)("rect",{x:"28.0273",y:"37.0215",width:"2.66667",height:"2.66667",fill:a}),(0,n.jsx)("rect",{x:"17.5796",y:"26.3549",width:"2.66667",height:"2.66667",fill:a}),(0,n.jsx)("rect",{x:"25.4155",y:"45.0215",width:"2.66667",height:"2.66667",fill:a}),(0,n.jsx)("rect",{x:"14.9675",y:"34.3549",width:"2.66667",height:"2.66667",fill:a}),(0,n.jsx)("rect",{x:"25.4155",y:"42.3549",width:"2.66667",height:"2.66667",fill:a}),(0,n.jsx)("rect",{x:"14.9675",y:"31.6882",width:"2.66667",height:"2.66667",fill:a}),(0,n.jsx)("rect",{
|
|
x:"25.4155",y:"39.6882",width:"2.66667",height:"2.66666",fill:a}),(0,n.jsx)("rect",{x:"14.9675",y:"29.0215",width:"2.66667",height:"2.66667",fill:a}),(0,n.jsx)("rect",{x:"25.4155",y:"37.0215",width:"2.66667",height:"2.66667",fill:a}),(0,n.jsx)("rect",{x:"14.9675",y:"26.3549",width:"2.66667",height:"2.66667",fill:a}),(0,n.jsx)("rect",{x:"22.8035",y:"45.0215",width:"2.66667",height:"2.66667",fill:a}),(0,n.jsx)("rect",{x:"12.3555",y:"34.3549",width:"2.66667",height:"2.66667",fill:a}),(0,n.jsx)("rect",{x:"22.8035",y:"42.3549",width:"2.66667",height:"2.66667",fill:a}),(0,n.jsx)("rect",{x:"12.3555",y:"31.6882",width:"2.66667",height:"2.66667",fill:a}),(0,n.jsx)("rect",{x:"22.8035",y:"39.6882",width:"2.66667",height:"2.66666",fill:a}),(0,n.jsx)("rect",{x:"12.3555",y:"29.0215",width:"2.66667",height:"2.66667",fill:a}),(0,n.jsx)("rect",{x:"22.8035",y:"37.0215",width:"2.66667",height:"2.66667",fill:a}),(0,n.jsx)("rect",{x:"12.3555",y:"26.3549",width:"2.66667",height:"2.66667",fill:a}),(0,
|
|
n.jsx)("rect",{x:"20.1914",y:"45.0215",width:"2.66667",height:"2.66667",fill:a}),(0,n.jsx)("rect",{x:"9.74365",y:"34.3549",width:"2.66667",height:"2.66667",fill:a}),(0,n.jsx)("rect",{x:"20.1914",y:"42.3549",width:"2.66667",height:"2.66667",fill:a}),(0,n.jsx)("rect",{x:"9.74365",y:"31.6882",width:"2.66667",height:"2.66667",fill:a}),(0,n.jsx)("rect",{x:"20.1914",y:"39.6882",width:"2.66667",height:"2.66666",fill:a}),(0,n.jsx)("rect",{x:"9.74365",y:"29.0215",width:"2.66667",height:"2.66667",fill:a}),(0,n.jsx)("rect",{x:"20.1914",y:"37.0215",width:"2.66667",height:"2.66667",fill:a}),(0,n.jsx)("rect",{x:"9.74365",y:"26.3549",width:"2.66667",height:"2.66667",fill:a}),(0,n.jsx)("rect",{x:"17.5796",y:"45.0215",width:"2.66667",height:"2.66667",fill:a}),(0,n.jsx)("rect",{x:"7.13159",y:"34.3549",width:"2.66667",height:"2.66667",fill:a}),(0,n.jsx)("rect",{x:"17.5796",y:"42.3549",width:"2.66667",height:"2.66667",fill:a}),(0,n.jsx)("rect",{x:"7.13159",y:"31.6882",width:"2.66667",height:"2.66667",
|
|
fill:a}),(0,n.jsx)("rect",{x:"14.9128",y:"42.3549",width:"2.66667",height:"2.66667",fill:a}),(0,n.jsx)("rect",{x:"22.9128",y:"31.6882",width:"2.66667",height:"2.66667",transform:"rotate(-180 22.9128 31.6882)",fill:a}),(0,n.jsx)("rect",{x:"17.5796",y:"39.6882",width:"2.66667",height:"2.66666",fill:a}),(0,n.jsx)("rect",{x:"7.13159",y:"29.0215",width:"2.66667",height:"2.66667",fill:a}),(0,n.jsx)("rect",{x:"14.9128",y:"39.6882",width:"2.66667",height:"2.66666",fill:a}),(0,n.jsx)("rect",{x:"22.9128",y:"34.3549",width:"2.66667",height:"2.66667",transform:"rotate(-180 22.9128 34.3549)",fill:a}),(0,n.jsx)("rect",{x:"12.2461",y:"39.6882",width:"2.66667",height:"2.66666",fill:a}),(0,n.jsx)("rect",{x:"25.5796",y:"34.3549",width:"2.66667",height:"2.66667",transform:"rotate(-180 25.5796 34.3549)",fill:a}),(0,n.jsx)("rect",{x:"17.5796",y:"37.0215",width:"2.66667",height:"2.66667",fill:a}),(0,n.jsx)("rect",{x:"7.13159",y:"26.3549",width:"2.66667",height:"2.66667",fill:a}),(0,n.jsx)("rect",{
|
|
x:"14.9128",y:"37.0215",width:"2.66667",height:"2.66667",fill:a}),(0,n.jsx)("rect",{x:"22.9128",y:"37.0215",width:"2.66667",height:"2.66667",transform:"rotate(-180 22.9128 37.0215)",fill:a}),(0,n.jsx)("rect",{x:"12.2461",y:"37.0215",width:"2.66667",height:"2.66667",fill:a}),(0,n.jsx)("rect",{x:"25.5796",y:"37.0215",width:"2.66667",height:"2.66667",transform:"rotate(-180 25.5796 37.0215)",fill:a}),(0,n.jsx)("rect",{x:"9.57959",y:"37.0215",width:"2.66667",height:"2.66667",fill:a}),(0,n.jsx)("rect",{x:"28.2461",y:"37.0215",width:"2.66667",height:"2.66667",transform:"rotate(-180 28.2461 37.0215)",fill:a}),(0,n.jsx)("rect",{width:"2.66667",height:"2.66667",transform:"matrix(-1 0 0 1 35.9727 45.0215)",fill:a}),(0,n.jsx)("rect",{width:"2.66667",height:"2.66667",transform:"matrix(-1 0 0 1 46.4207 34.3549)",fill:a}),(0,n.jsx)("rect",{width:"2.66667",height:"2.66667",transform:"matrix(-1 0 0 1 35.9727 42.3549)",fill:a}),(0,n.jsx)("rect",{width:"2.66667",height:"2.66667",
|
|
transform:"matrix(-1 0 0 1 46.4207 31.6882)",fill:a}),(0,n.jsx)("rect",{width:"2.66667",height:"2.66666",transform:"matrix(-1 0 0 1 35.9727 39.6882)",fill:a}),(0,n.jsx)("rect",{width:"2.66667",height:"2.66667",transform:"matrix(-1 0 0 1 46.4207 29.0215)",fill:a}),(0,n.jsx)("rect",{width:"2.66667",height:"2.66667",transform:"matrix(-1 0 0 1 35.9727 37.0215)",fill:a}),(0,n.jsx)("rect",{width:"2.66667",height:"2.66667",transform:"matrix(-1 0 0 1 46.4207 26.3549)",fill:a}),(0,n.jsx)("rect",{width:"2.66667",height:"2.66667",transform:"matrix(-1 0 0 1 38.5847 45.0215)",fill:a}),(0,n.jsx)("rect",{width:"2.66666",height:"2.66667",transform:"matrix(-1 0 0 1 49.0327 34.3549)",fill:a}),(0,n.jsx)("rect",{width:"2.66667",height:"2.66667",transform:"matrix(-1 0 0 1 38.5847 42.3549)",fill:a}),(0,n.jsx)("rect",{width:"2.66666",height:"2.66667",transform:"matrix(-1 0 0 1 49.0327 31.6882)",fill:a}),(0,n.jsx)("rect",{width:"2.66667",height:"2.66666",transform:"matrix(-1 0 0 1 38.5847 39.6882)",fill:a
|
|
}),(0,n.jsx)("rect",{width:"2.66666",height:"2.66667",transform:"matrix(-1 0 0 1 49.0327 29.0215)",fill:a}),(0,n.jsx)("rect",{width:"2.66667",height:"2.66667",transform:"matrix(-1 0 0 1 38.5847 37.0215)",fill:a}),(0,n.jsx)("rect",{width:"2.66666",height:"2.66667",transform:"matrix(-1 0 0 1 49.0327 26.3549)",fill:a}),(0,n.jsx)("rect",{width:"2.66666",height:"2.66667",transform:"matrix(-1 0 0 1 41.1968 45.0215)",fill:a}),(0,n.jsx)("rect",{width:"2.66667",height:"2.66667",transform:"matrix(-1 0 0 1 51.6445 34.3549)",fill:a}),(0,n.jsx)("rect",{width:"2.66666",height:"2.66667",transform:"matrix(-1 0 0 1 41.1968 42.3549)",fill:a}),(0,n.jsx)("rect",{width:"2.66667",height:"2.66667",transform:"matrix(-1 0 0 1 51.6445 31.6882)",fill:a}),(0,n.jsx)("rect",{width:"2.66666",height:"2.66666",transform:"matrix(-1 0 0 1 41.1968 39.6882)",fill:a}),(0,n.jsx)("rect",{width:"2.66667",height:"2.66667",transform:"matrix(-1 0 0 1 51.6445 29.0215)",fill:a}),(0,n.jsx)("rect",{width:"2.66666",height:"2.66667",
|
|
transform:"matrix(-1 0 0 1 41.1968 37.0215)",fill:a}),(0,n.jsx)("rect",{width:"2.66667",height:"2.66667",transform:"matrix(-1 0 0 1 51.6445 26.3549)",fill:a}),(0,n.jsx)("rect",{width:"2.66667",height:"2.66667",transform:"matrix(-1 0 0 1 43.8086 45.0215)",fill:a}),(0,n.jsx)("rect",{width:"2.66667",height:"2.66667",transform:"matrix(-1 0 0 1 54.2566 34.3549)",fill:a}),(0,n.jsx)("rect",{width:"2.66667",height:"2.66667",transform:"matrix(-1 0 0 1 43.8086 42.3549)",fill:a}),(0,n.jsx)("rect",{width:"2.66667",height:"2.66667",transform:"matrix(-1 0 0 1 54.2566 31.6882)",fill:a}),(0,n.jsx)("rect",{width:"2.66667",height:"2.66666",transform:"matrix(-1 0 0 1 43.8086 39.6882)",fill:a}),(0,n.jsx)("rect",{width:"2.66667",height:"2.66667",transform:"matrix(-1 0 0 1 54.2566 29.0215)",fill:a}),(0,n.jsx)("rect",{width:"2.66667",height:"2.66667",transform:"matrix(-1 0 0 1 43.8086 37.0215)",fill:a}),(0,n.jsx)("rect",{width:"2.66667",height:"2.66667",transform:"matrix(-1 0 0 1 54.2566 26.3549)",fill:a
|
|
}),(0,n.jsx)("rect",{width:"2.66667",height:"2.66667",transform:"matrix(-1 0 0 1 46.4207 45.0215)",fill:a}),(0,n.jsx)("rect",{width:"2.66666",height:"2.66667",transform:"matrix(-1 0 0 1 56.8687 34.3549)",fill:a}),(0,n.jsx)("rect",{width:"2.66667",height:"2.66667",transform:"matrix(-1 0 0 1 46.4207 42.3549)",fill:a}),(0,n.jsx)("rect",{width:"2.66666",height:"2.66667",transform:"matrix(-1 0 0 1 56.8687 31.6882)",fill:a}),(0,n.jsx)("rect",{width:"2.66666",height:"2.66667",transform:"matrix(-1 0 0 1 49.0874 42.3549)",fill:a}),(0,n.jsx)("rect",{width:"2.66667",height:"2.66667",transform:"matrix(1 0 0 -1 41.0874 31.6882)",fill:a}),(0,n.jsx)("rect",{width:"2.66667",height:"2.66666",transform:"matrix(-1 0 0 1 46.4207 39.6882)",fill:a}),(0,n.jsx)("rect",{width:"2.66666",height:"2.66667",transform:"matrix(-1 0 0 1 56.8687 29.0215)",fill:a}),(0,n.jsx)("rect",{width:"2.66666",height:"2.66666",transform:"matrix(-1 0 0 1 49.0874 39.6882)",fill:a}),(0,n.jsx)("rect",{width:"2.66667",height:"2.66667",
|
|
transform:"matrix(1 0 0 -1 41.0874 34.3549)",fill:a}),(0,n.jsx)("rect",{width:"2.66667",height:"2.66666",transform:"matrix(-1 0 0 1 51.7539 39.6882)",fill:a}),(0,n.jsx)("rect",{width:"2.66666",height:"2.66667",transform:"matrix(1 0 0 -1 38.4207 34.3549)",fill:a}),(0,n.jsx)("rect",{width:"2.66667",height:"2.66667",transform:"matrix(-1 0 0 1 46.4207 37.0215)",fill:a}),(0,n.jsx)("rect",{width:"2.66666",height:"2.66667",transform:"matrix(-1 0 0 1 56.8687 26.3549)",fill:a}),(0,n.jsx)("rect",{width:"2.66666",height:"2.66667",transform:"matrix(-1 0 0 1 49.0874 37.0215)",fill:a}),(0,n.jsx)("rect",{width:"2.66667",height:"2.66667",transform:"matrix(1 0 0 -1 41.0874 37.0215)",fill:a}),(0,n.jsx)("rect",{width:"2.66667",height:"2.66667",transform:"matrix(-1 0 0 1 51.7539 37.0215)",fill:a}),(0,n.jsx)("rect",{width:"2.66666",height:"2.66667",transform:"matrix(1 0 0 -1 38.4207 37.0215)",fill:a}),(0,n.jsx)("rect",{width:"2.66667",height:"2.66667",transform:"matrix(-1 0 0 1 54.4207 37.0215)",fill:a
|
|
}),(0,n.jsx)("rect",{width:"2.66667",height:"2.66667",transform:"matrix(1 0 0 -1 35.7539 37.0215)",fill:a}),(0,n.jsx)("rect",{x:"30.6394",y:"50.3549",width:"2.66667",height:"2.66667",fill:a}),(0,n.jsx)("rect",{x:"30.6394",y:"53.0215",width:"2.66667",height:"2.66667",fill:a})]}))}var me=r(128169),ge=r(918771),ye=r(827991),Oe=r(61209),be=r(715107),je=r(897256),xe=r.n(je);const ve=function(e){var t=e.guild,r=e.message,o=e.onClose,l=Oe.Z.getChannel(be.Z.getChannelId(t.id));i.useEffect((function(){N.default.track(Y.rMx.OPEN_POPOUT,{type:"New Member Badge Popout",guild_id:t.id,channel_id:null==l?void 0:l.id})}),[]);return null==l?null:(0,n.jsx)(ge.W_,{children:(0,n.jsxs)("div",{className:xe().popoutContainer,children:[(0,n.jsxs)("div",{className:xe().mainContent,children:[(0,n.jsx)("div",{className:xe().iconContainer,children:(0,n.jsx)(pe,{width:40,height:40})}),(0,n.jsxs)("div",{children:[(0,n.jsx)(s.X6q,{variant:"heading-md/semibold",className:xe().header,
|
|
children:W.Z.Messages.NEW_MEMBER_BADGE_TOOLTIP_TEXT}),(0,n.jsx)(s.xvT,{variant:"text-sm/normal",children:W.Z.Messages.NEW_MEMBER_BADGE_POPOUT_TEXT})]})]}),(0,n.jsx)(s.zxk,{size:s.zxk.Sizes.SMALL,color:s.zxk.Colors.BRAND,className:xe().ctaButton,innerClassName:xe().ctaButtonContent,fullWidth:!0,onClick:function(){v.ZP.trackWithMetadata(Y.rMx.NEW_MEMBER_MENTION_CTA_CLICKED,{target_user_id:r.author.id});o();(0,ye.q)(r.author,l.id)},children:W.Z.Messages.MENTION_USER.format({username:r.author.username})})]})})};var we=r(711934),Ee=r.n(we);function Pe(e,t,r){t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r;return e}function Ce(e,t){t=null!=t?t:{};Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})));r.push.apply(r,n)
|
|
}return r}(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}));return e}function Se(e){var t=e.guild,r=e.message;return(0,me.vV)(t.id,r.author.id)?(0,n.jsx)(s.yRy,{animation:s.yRy.Animation.TRANSLATE,align:"center",autoInvert:!0,nudgeAlignIntoViewport:!0,position:"right",renderPopout:function(e){var i=e.closePopout;return(0,n.jsx)(ve,{guild:t,message:r,onClose:i})},children:function(e){var t=e.onClick;return(0,n.jsx)(s.P3F,{onClick:t,tag:"span",children:(0,n.jsx)(s.ua7,{text:W.Z.Messages.NEW_MEMBER_BADGE_TOOLTIP_TEXT,children:function(e){return(0,n.jsx)("div",Ce(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))));n.forEach((function(t){Pe(e,t,r[t])}))}return e}({className:Ee().newMemberBadge},e),{children:(0,
|
|
n.jsx)(pe,{width:20,height:20})}))}})})}}):null}var Ne=r(834876),Ie=r(440922),_e=r(833667),Te=r(971611),Ae=r(217674),Me=r(380652),De=r(429697),Le=r.n(De);function Re(e,t,r){t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r;return e}function Ze(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))));n.forEach((function(t){Re(e,t,r[t])}))}return e}function ke(e,t){t=null!=t?t:{};Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})));r.push.apply(r,n)}return r}(Object(t)).forEach((function(r){
|
|
Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}));return e}const Ue=function(e){var t=e.roleIcon,r=e.guild,o=t.name;i.useEffect((function(){N.default.track(Y.rMx.OPEN_POPOUT,Ze({type:"Role Icon Popout",guild_id:r.id},(0,v.v_)(Oe.Z.getChannel(be.Z.getChannelId(r.id)))))}),[]);var l=ke(Ze({},t),{src:null==t.src?t.src:(0,Ie.o)(t.src,40),size:40});return(0,n.jsx)(ge.W_,{children:(0,n.jsxs)("div",{className:Le().popoutContainer,children:[(0,n.jsxs)("div",{className:Le().mainContent,children:[(0,n.jsx)("div",{className:Le().roleIconContainer,children:(0,n.jsx)(Me.Z,ke(Ze({},l),{enableTooltip:!1,className:Le().roleIcon,enableHeight:!1}))}),(0,n.jsxs)("div",{className:Le().truncatingText,children:[(0,n.jsx)(s.X6q,{variant:"heading-md/semibold",className:Le().roleName,children:(0,n.jsx)(Te.Z,{children:o})}),(0,n.jsx)(s.xvT,{variant:"text-sm/normal",children:W.Z.Messages.ROLE_ICON_POPOUT_DESCRIPTION.format({name:o})})]})]}),(0,n.jsxs)(s.zxk,{size:s.zxk.Sizes.SMALL,
|
|
color:s.zxk.Colors.PRIMARY,className:Le().ctaButton,innerClassName:Le().ctaButtonContent,fullWidth:!0,onClick:function(){(0,_e.f)({guildId:r.id,location:{section:Y.jXE.ROLE_ICON_POPOUT}})},children:[(0,n.jsx)(Ae.Z,{width:14,height:14,className:Le().boosterBadge}),W.Z.Messages.ROLE_ICON_POPOUT_CTA]})]})})};var Ge=r(490355);function Be(e,t,r){t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r;return e}function He(e,t){t=null!=t?t:{};Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})));r.push.apply(r,n)}return r}(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}));return e}function Ve(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{}
|
|
;var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++){r=o[n];t.indexOf(r)>=0||(i[r]=e[r])}return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++){r=o[n];t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}}return i}function Fe(e){var t=e.width,r=void 0===t?24:t,i=e.height,o=void 0===i?24:i,l=e.color,a=void 0===l?"currentColor":l,c=e.foreground,s=Ve(e,["width","height","color","foreground"]);return(0,n.jsxs)("svg",He(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))));n.forEach((function(t){Be(e,t,r[t])}))}return e}({},(0,ue.Z)(s)),{width:r,height:o,viewBox:"0 0 24 24",fill:"none",children:[(0,n.jsx)("path",{className:c,fill:a,fillRule:"evenodd",clipRule:"evenodd",
|
|
d:"M18 10.7101C15.1085 9.84957 13 7.17102 13 4C13 3.69264 13.0198 3.3899 13.0582 3.093C12.7147 3.03189 12.3611 3 12 3C8.686 3 6 5.686 6 9V14C6 15.657 4.656 17 3 17V18H21V17C19.344 17 18 15.657 18 14V10.7101ZM8.55493 19C9.24793 20.19 10.5239 21 11.9999 21C13.4759 21 14.7519 20.19 15.4449 19H8.55493Z"}),(0,n.jsx)("path",{d:"M18.2624 5.50209L21 2.5V1H16.0349V2.49791H18.476L16 5.61088V7H21V5.50209H18.2624Z",fill:a})]}))}var ze=r(348958),Ye=r.n(ze);function qe(e,t,r){t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r;return e}function We(e,t){t=null!=t?t:{};Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})));r.push.apply(r,n)}return r}(Object(t)).forEach((function(r){
|
|
Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}));return e}function Xe(){return(0,n.jsx)(s.ua7,{text:W.Z.Messages.SUPPRESS_NOTIFICATIONS_TOOLTIP,children:function(e){return(0,n.jsx)("div",We(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))));n.forEach((function(t){qe(e,t,r[t])}))}return e}({className:Ye().badge},e),{children:(0,n.jsx)(Fe,{width:"1rem",height:"1rem"})}))}})}var Ke=r(725691),Qe=r(379991),Je=r(567403),$e=r(682776),et=r(357566),tt=r(775173),rt=r(930948),nt=r(661123),it=r(42028),ot=r(694278),lt=r(185759),at=r(468482),ct=r.n(at);function st(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function ut(e,t,r){t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0
|
|
}):e[t]=r;return e}function dt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))));n.forEach((function(t){ut(e,t,r[t])}))}return e}function ft(e,t){t=null!=t?t:{};Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})));r.push.apply(r,n)}return r}(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}));return e}function ht(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){
|
|
var n,i,o=[],l=!0,a=!1;try{for(r=r.call(e);!(l=(n=r.next()).done);l=!0){o.push(n.value);if(t&&o.length===t)break}}catch(e){a=!0;i=e}finally{try{l||null==r.return||r.return()}finally{if(a)throw i}}return o}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return st(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return st(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function pt(e){var t,r=e.message,i=e.messageAuthor,o=e.compact,a=e.animate,c=e.guildId,s=e.onClick,u=e.onContextMenu,d=e.onMouseDown,h=e.onKeyDown,p=e.showCommunicationDisabledStyles,m=void 0!==p&&p,g=e.canUseAvatarDecorations,y=void 0!==g&&g,O=e.className,b=i.guildMemberAvatar,j=r.author,x=o?32:80
|
|
;t=null!=b&&null!=c?(0,tt.JM)({guildId:c,userId:j.id,avatar:b,canAnimate:a,size:x}):j.getAvatarURL(void 0,x,a);var v,w=y?(0,tt.NZ)({userId:j.id,avatarDecoration:j.avatarDecoration,size:(0,f.y)(x),canAnimate:a}):null;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("img",{onClick:s,onContextMenu:u,onMouseDown:d,onKeyDown:h,src:t,"aria-hidden":!0,className:l()(O,(v={},ut(v,ct().avatar,!0),ut(v,ct().compact,o),ut(v,ct().clickable,null!=s),ut(v,ct().communicationDisabledOpacity,m),v)),alt:" "}),null==w||o?null:(0,n.jsx)("img",{className:ct().avatarDecoration,src:w,alt:" ","aria-hidden":!0})]})}function mt(e,t,r){var i=e.message,o=e.channel,l=e.author,a=e.compact,c=void 0!==a&&a,s=e.onContextMenu,u=e.showUsernamePopout,d=e.onClickUsername,f=e.onPopoutRequestClose;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(lt.Z,{message:i,channel:o,author:l,compact:c,showPopout:u,renderPopout:t,onClick:d,onContextMenu:s,onPopoutRequestClose:f,decorations:r}),c&&(0,n.jsxs)(n.Fragment,{children:[(0,
|
|
n.jsx)("i",{className:ct().separator,children:":"})," "]})]})}function gt(e){var t,r=e.props,o=e.guildId,l=e.handleRenderPopout,f=e.showCommunicationDisabledStyles,h=void 0!==f&&f,p=e.className,m=r.message,g=r.author,y=r.compact,O=void 0!==y&&y,b=r.subscribeToGroupId,j=r.animate,x=void 0===j||j,v=r.onContextMenu,w=r.onClickAvatar,E=r.onPopoutRequestClose,P=r.showAvatarPopout,C=ht(i.useState(!1),2),S=C[0],N=C[1],I=i.useContext(u.S).reducedMotion,_=(0,d.U)().canUseAvatarDecorations,T=!I.enabled&&(null!=b?S:x),A=(0,c.e7)([Qe.ZP],(function(){return null!==(t=r.displayCompactAvatars)&&void 0!==t?t:Qe.ZP.displayCompactAvatars})),M=null!=m.messageReference&&null!=m.webhookId,D=m.author.id;i.useEffect((function(){if(null!=b){rt.S.subscribeKeyed(Y.LPv.ANIMATE_CHAT_AVATAR,"".concat(b,":").concat(D),N);return function(){rt.S.unsubscribeKeyed(Y.LPv.ANIMATE_CHAT_AVATAR,"".concat(b,":").concat(D),N)}}}),[D,b]);if(!O||A)return null!=l&&null!=P?(0,n.jsx)(s.yRy,{preload:M?void 0:function(){return(0,
|
|
Ke.Z)(m.author.id,null!=g.guildMemberAvatar&&null!=o?(0,tt.JM)({guildId:o,userId:m.author.id,avatar:g.guildMemberAvatar,size:80}):m.author.getAvatarURL(void 0,80,!1),{guildId:o,channelId:m.channel_id})},renderPopout:l,shouldShow:P,position:a.tq?"window_center":"right",onRequestClose:E,children:function(e){return pt({message:m,messageAuthor:g,compact:O,animate:T,guildId:o,onClick:w,onContextMenu:v,onMouseDown:e.onMouseDown,onKeyDown:e.onKeyDown,showCommunicationDisabledStyles:h,canUseAvatarDecorations:_,className:p})}}):pt({message:m,messageAuthor:g,compact:O,animate:T,guildId:o,onClick:w,onContextMenu:v,onMouseDown:void 0,onKeyDown:void 0,showCommunicationDisabledStyles:h,canUseAvatarDecorations:_,className:p})}function yt(e){var t=e.message,r=e.avatar,i=e.username,o=e.usernameSpanId,a=e.usernameClassName,c=e.compact,u=e.showTimestamp,d=e.showTimestampOnHover,f=e.ariaLabelledBy,h=e.ariaDescribedBy,p=e.className,m=e.messageClassname,g=e.badges;return(0,n.jsxs)(n.Fragment,{
|
|
children:[!c&&r,(0,n.jsxs)(s.H,{className:l()(ct().header,p),"aria-describedby":h,"aria-labelledby":f,children:[u&&c&&(0,n.jsx)(it.Z,{id:(0,Ne.Dv)(t),compact:!0,timestamp:t.timestamp,isVisibleOnlyOnHover:d,className:m,isInline:!1}),c&&r,(0,n.jsx)("span",{id:o,className:a,children:i}),u&&!c&&(0,n.jsx)(it.Z,{id:(0,Ne.Dv)(t),timestamp:t.timestamp,className:m}),null!=g&&g.length>0?(0,n.jsx)("div",{className:ct().badgesContainer,children:g}):null]})]})}function Ot(e){var t,r=e.message,o=e.repliedMessage,a=e.compact,u=void 0!==a&&a,d=e.renderPopout,f=e.showTimestampOnHover,h=e.roleIcon,p=e.subscribeToGroupId,m=e.hideTimestamp,g=e.className,y=e.channel,O=i.useMemo((function(){return null!=d?function(e){return d(e,r)}:void 0}),[d,r]),b=ht((0,se.ZP)(r.author.id,e.guildId),2)[1],j=(0,c.e7)([Je.Z],(function(){return Je.Z.getGuild(e.guildId)}),[e.guildId]),x=null!=r.author&&null!=j&&$e.Z.canManageUser(Y.Plq.MODERATE_MEMBERS,r.author,j),v=b&&x,w=gt({props:e,guildId:e.guildId,handleRenderPopout:O,
|
|
showCommunicationDisabledStyles:v}),E=(0,c.e7)([Qe.ZP],(function(){return null!==(t=e.displayCompactAvatars)&&void 0!==t?t:Qe.ZP.displayCompactAvatars})),P=u&&!E||null==h||null==j?u&&!E||null==h?null:(0,n.jsx)(Me.Z,ft(dt({},h),{className:ct().roleIcon}),"role-icon-children"):(0,n.jsx)(s.yRy,{animation:s.yRy.Animation.TRANSLATE,align:"center",autoInvert:!0,nudgeAlignIntoViewport:!0,position:"right",renderPopout:function(){return(0,n.jsx)(Ue,{roleIcon:h,guild:j})},children:function(e){var t=e.onClick;return(0,n.jsx)(Me.Z,ft(dt({},h),{className:ct().roleIcon,onClick:t}))}},"role-icon-children"),C=(0,ot.x)({message:r,channel:y,user:null==r?void 0:r.author,compact:u,isRepliedMessage:!1}),S=[];null!=P&&S.push(P);null!=j&&S.push((0,n.jsx)(Se,{guild:j,message:r},"new-member"));null!=y&&null!=j&&S.push((0,n.jsx)(ce,{guild:j,channel:y,userId:r.author.id},"connections"));var N=[];(0,nt.yE)(r.flags,Y.iLy.SUPPRESS_NOTIFICATIONS)&&N.push((0,n.jsx)(Xe,{},"suppress-notifications"));var I={}
|
|
;I[lt.a.SYSTEM_TAG]=C;I[lt.a.BADGES]=S;var _,T=mt(e,O,I),A=(0,Ne.XX)(r,p),M=(0,Ne.Dv)(r),D=m?"".concat(A):"".concat(A," ").concat(M),L=(null==o?void 0:o.state)===Ge.Y.LOADED?(0,Ne.Gq)(r):void 0,R=!0!==m;return(0,n.jsx)(yt,{message:r,avatar:w,username:(0,n.jsxs)(n.Fragment,{children:[v&&(0,n.jsx)(s.ua7,{text:W.Z.Messages.GUILD_COMMUNICATION_DISABLED_ICON_TOOLTIP_BODY,children:function(e){return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(et.Z,ft(dt({},e),{width:12,height:12,className:u?ct().compactCommunicationDisabled:ct().communicationDisabled})),(0,n.jsx)(s.nn4,{children:W.Z.Messages.GUILD_COMMUNICATION_DISABLED_BOTTOM_SHEET_TITLE})]})}}),T]}),usernameSpanId:(0,Ne.XX)(r,p),usernameClassName:l()(ct().headerText,(_={},ut(_,ct().hasRoleIcon,null!=P),ut(_,ct().hasBadges,null!=C||N.length>0),_)),compact:u,showTimestamp:R,showTimestampOnHover:f,ariaLabelledBy:D,ariaDescribedBy:L,className:g,badges:N})}},42028:(e,t,r)=>{"use strict";r.d(t,{Z:()=>p});var n=r(785893),i=(r(667294),
|
|
r(294184)),o=r.n(i),l=r(707961),a=r(593499),c=r(70145),s=r(473708),u=r(468482),d=r.n(u);function f(e,t,r){t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r;return e}function h(e,t){t=null!=t?t:{};Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})));r.push.apply(r,n)}return r}(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}));return e}const p=function(e){var t,r=e.children,i=e.className,u=e.compact,p=void 0!==u&&u,m=e.timestamp,g=e.isVisibleOnlyOnHover,y=void 0!==g&&g,O=e.cozyAlt,b=void 0!==O&&O,j=e.isInline,x=void 0===j||j,v=e.id,w=e.isEdited,E=void 0!==w&&w,P=(0,c.Hg)(m),C=p?(0,c.vc)(m,"LT"):(0,c.Y4)(m),S=p?(0,
|
|
a.Z)(C):null,N=E?s.Z.Messages.MESSAGE_EDITED_TIMESTAMP_A11Y_LABEL.format({timeFormatted:P}):P;return(0,n.jsx)("span",{className:o()(i,S,(t={},f(t,d().timestamp,!0),f(t,d().timestampVisibleOnHover,y),f(t,d().timestampInline,x),f(t,d().alt,b),t)),children:(0,n.jsx)(l.ua7,{text:(0,c.vc)(m,"LLLL"),"aria-label":N,tooltipClassName:d().timestampTooltip,delay:750,children:function(e){return(0,n.jsx)("time",h(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))));n.forEach((function(t){f(e,t,r[t])}))}return e}({},e),{id:v,dateTime:m.toISOString(),children:null!=r?r:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("i",{className:d().separator,"aria-hidden":!0,children:p?"[":" — "}),C,p&&(0,n.jsxs)("i",{className:d().separator,"aria-hidden":!0,children:["]"," "]})]})}))}})})}},
|
|
763536:(e,t,r)=>{"use strict";r.d(t,{Z:()=>G,f:()=>U});var n=r(785893),i=r(667294),o=r(294184),l=r.n(o),a=r(730381),c=r.n(a),s=r(707961),u=r(908741),d=r(834876),f=r(350296),h=r(593499),p=r(490355);function m(e,t){return null!=t&&!!e.mentions.includes(t.author.id)}var g=r(513586),y=r(318313),O=r(816240),b=r(633878);function j(e,t,r){t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r;return e}function x(e,t){t=null!=t?t:{};Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})));r.push.apply(r,n)}return r}(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}));return e}function v(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{}
|
|
;var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++){r=o[n];t.indexOf(r)>=0||(i[r]=e[r])}return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++){r=o[n];t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}}return i}function w(e){var t=e.width,r=void 0===t?19:t,i=e.height,o=void 0===i?24:i,l=e.color,a=void 0===l?"currentColor":l,c=e.foreground,s=v(e,["width","height","color","foreground"]);return(0,n.jsx)("svg",x(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))));n.forEach((function(t){j(e,t,r[t])}))}return e}({},(0,b.Z)(s)),{width:r,height:o,viewBox:"0 0 19 24",fill:"none",children:(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",
|
|
d:"M12.7036 11C12.7036 12.66 11.2786 14 9.5 14C7.72143 14 6.28571 12.66 6.28571 11V5C6.28571 3.34 7.72143 2 9.5 2C11.2786 2 12.7143 3.34 12.7143 5L12.7036 11ZM9.5 16.1C12.4571 16.1 15.1786 14 15.1786 11H17C17 14.42 14.0857 17.24 10.5714 17.72V22H8.42857V17.72C4.91429 17.23 2 14.41 2 11H3.82143C3.82143 14 6.54286 16.1 9.5 16.1Z",fill:a,className:c})}))}var E=r(571724),P=r(325198),C=r(775173),S=r(70145),N=r(72580),I=r(723876),_=r(939198),T=r(2590),A=r(473708),M=r(468482),D=r.n(M);function L(e,t,r){t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r;return e}function R(e){var t=e.width,r=void 0===t?12:t,i=e.height,o=void 0===i?8:i,l=e.color,a=void 0===l?"currentColor":l,c=e.className,s=e.foreground;return(0,n.jsx)("svg",{className:c,width:r,height:o,viewBox:"0 0 12 8",children:(0,n.jsx)("path",{
|
|
d:"M0.809739 3.59646L5.12565 0.468433C5.17446 0.431163 5.23323 0.408043 5.2951 0.401763C5.35698 0.395482 5.41943 0.406298 5.4752 0.432954C5.53096 0.45961 5.57776 0.50101 5.61013 0.552343C5.64251 0.603676 5.65914 0.662833 5.6581 0.722939V2.3707C10.3624 2.3707 11.2539 5.52482 11.3991 7.21174C11.4028 7.27916 11.3848 7.34603 11.3474 7.40312C11.3101 7.46021 11.2554 7.50471 11.1908 7.53049C11.1262 7.55626 11.0549 7.56204 10.9868 7.54703C10.9187 7.53201 10.857 7.49695 10.8104 7.44666C8.72224 5.08977 5.6581 5.63359 5.6581 5.63359V7.28135C5.65831 7.34051 5.64141 7.39856 5.60931 7.44894C5.5772 7.49932 5.53117 7.54004 5.4764 7.5665C5.42163 7.59296 5.3603 7.60411 5.29932 7.59869C5.23834 7.59328 5.18014 7.57151 5.13128 7.53585L0.809739 4.40892C0.744492 4.3616 0.691538 4.30026 0.655067 4.22975C0.618596 4.15925 0.599609 4.08151 0.599609 4.00269C0.599609 3.92386 0.618596 3.84612 0.655067 3.77562C0.691538 3.70511 0.744492 3.64377 0.809739 3.59646Z",className:s,fill:a})})}function Z(e){
|
|
var t=e.width,r=void 0===t?18:t,i=e.height,o=void 0===i?18:i,l=e.className,a=e.foreground;return(0,n.jsx)("svg",{className:l,width:r,height:o,viewBox:"0 0 18 18",children:(0,n.jsx)("path",{fill:"#3ba55c",d:"M0 8h14.2l-3.6-3.6L12 3l6 6-6 6-1.4-1.4 3.6-3.6H0",className:a})})}function k(e,t,r){var i=e.referencedMessage,o=e.compact,a=e.isReplyAuthorBlocked,c=e.repliedAuthor,u=e.showAvatarPopout,d=e.onClickAvatar,f=e.onContextMenu,h=e.onPopoutRequestClose;if(o||i.state!==p.Y.LOADED||a)return(0,n.jsx)("div",{className:D().replyBadge,children:(0,n.jsx)(R,{className:D().replyIcon})});if(i.message.type===T.uaV.USER_JOIN||i.message.type===T.uaV.ROLE_SUBSCRIPTION_PURCHASE)return(0,n.jsx)(Z,{className:D().userJoinSystemMessageIcon});if(i.message.type===T.uaV.GUILD_APPLICATION_PREMIUM_SUBSCRIPTION)return(0,n.jsx)(P.Z,{className:D().ticketIcon});var m=function(){return function(e,t,r,i,o){var a;return(0,n.jsx)("img",{alt:"",src:null!=(null==t?void 0:t.guildMemberAvatar)&&null!=r?(0,C.JM)({guildId:r,
|
|
userId:e.id,avatar:t.guildMemberAvatar}):e.getAvatarURL(r,16),onClick:i,onContextMenu:o,className:l()((a={},L(a,D().replyAvatar,!0),L(a,D().clickable,null!=i),a))})}(i.message.author,c,t,d,f)};return null!=r&&null!=u?(0,n.jsx)(s.yRy,{renderPopout:r,shouldShow:u,position:"right",onRequestClose:h,children:m}):m()}function U(e,t,r,i,o){var l,a,c,s=o.iconClass,u=o.iconSize,d=null==t||""===t||Array.isArray(t)&&0===t.length,f=(0,g.cv)(e).length>0,h=null!=e.interaction,p=e.hasFlag(T.iLy.IS_VOICE_MESSAGE);if(r)l=A.Z.Messages.REPLY_QUOTE_MESSAGE_BLOCKED;else if(e.type===T.uaV.CHANNEL_PINNED_MESSAGE)l=A.Z.Messages.MESSAGE_PINNED;else if(d)if(f)l=A.Z.Messages.REPLY_QUOTE_STICKER;else if(h)l=A.Z.Messages.REPLY_QUOTE_COMMAND;else if(p)l=A.Z.Messages.REPLY_QUOTE_VOICE_MESSAGE;else{l=A.Z.Messages.REPLY_QUOTE_NO_TEXT_CONTENT;c=(0,n.jsx)(O.Z,{className:s,width:u,height:u})}else a=(0,n.jsx)(I.ZP,{message:e,content:t,className:i});f?c=(0,n.jsx)(E.Z,{className:s,width:u,height:u}):h?c=(0,n.jsx)(y.Z,{
|
|
className:s,width:u,height:u}):p?c=(0,n.jsx)(w,{className:s,width:u*(19/24),height:u}):(e.attachments.length>0||e.embeds.length>0)&&(c=(0,n.jsx)(O.Z,{className:s,width:u,height:u}));return{contentPlaceholder:l,renderedContent:a,icon:c}}function G(e){var t,r=e.repliedAuthor,o=e.baseAuthor,a=e.baseMessage,g=e.referencedMessage,y=e.renderPopout,O=i.useMemo((function(){return null!=y&&g.state===p.Y.LOADED?function(e){return y(e,g.message)}:void 0}),[g,y]),b=i.useContext(u.Z),j=k(e,b,O),x=function(e,t){var r=e.baseMessage,i=e.channel,o=e.referencedMessage,l=e.showUsernamePopout,a=e.onClickUsername,c=e.onContextMenu,s=e.onPopoutRequestClose,u=(null==o?void 0:o.state)===p.Y.LOADED?o.message:void 0;return null==u||u.type===T.uaV.USER_JOIN||u.type===T.uaV.ROLE_SUBSCRIPTION_PURCHASE||u.type===T.uaV.GUILD_APPLICATION_PREMIUM_SUBSCRIPTION?null:(0,n.jsx)(f.Z,{message:u,channel:i,compact:!0,withMentionPrefix:m(r,u),showPopout:l,renderPopout:t,onClick:a,onContextMenu:c,onPopoutRequestClose:s,
|
|
isRepliedMessage:!0})}(e,O),v=function(e){var t=e.content,r=e.referencedMessage,i=e.isReplyAuthorBlocked,o=r.state!==p.Y.DELETED?e.onClickReply:void 0;switch(r.state){case p.Y.LOADED:var a=U(r.message,t,i,D().repliedTextContent,{iconClass:D().repliedTextContentIcon,iconSize:_.WW}),c=a.contentPlaceholder,u=a.renderedContent,d=a.icon;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s.P3F,{className:l()(D().repliedTextPreview,D().clickable),onClick:o,children:(0,n.jsx)(s.nuw,{children:null!=u?u:(0,n.jsx)("span",{className:D().repliedTextPlaceholder,children:c})})}),d]});case p.Y.NOT_LOADED:return(0,n.jsx)(s.P3F,{className:l()(D().repliedTextPreview,D().clickable),onClick:o,children:(0,n.jsx)("span",{className:D().repliedTextPlaceholder,children:A.Z.Messages.REPLY_QUOTE_MESSAGE_NOT_LOADED})});case p.Y.DELETED:return(0,n.jsx)("div",{className:D().repliedTextPreview,children:(0,n.jsx)("span",{className:D().repliedTextPlaceholder,children:A.Z.Messages.REPLY_QUOTE_MESSAGE_DELETED})});default:
|
|
(0,N.vE)(r)}}(e),w=i.useMemo((function(){return e.compact?(0,h.Z)((0,S.vc)(c()(),"LT")):null}),[e.compact]);null!=r&&null!=o&&(t=A.Z.Messages.CHANNEL_MESSAGE_REPLY_A11Y_LABEL.format({author:null==o?void 0:o.nick,repliedAuthor:null==r?void 0:r.nick}));return(0,n.jsxs)("div",{id:(0,d.Gq)(a),className:l()(D().repliedMessage,w),"aria-label":t,children:[j,x,v]})}},694278:(e,t,r)=>{"use strict";r.d(t,{x:()=>u});var n=r(785893),i=(r(667294),r(979264)),o=r(589591),l=r(609853),a=r(876986),c=r(468482),s=r.n(c);function u(e){var t,r=e.message,c=e.channel,u=e.user,d=e.compact,f=e.isRepliedMessage;(null==r?void 0:r.isSystemDM())?t=l.Z.Types.SYSTEM_DM:null!=r&&(0,i.Z)(r)?t=(0,o.cp)(r)?l.Z.Types.OFFICIAL:l.Z.Types.SERVER:(null==u?void 0:u.id)===a.fL?t=l.Z.Types.AI:(null==u?void 0:u.bot)?t=l.Z.Types.BOT:null!=c&&c.isForumPost()&&c.ownerId===(null==u?void 0:u.id)&&!f&&(t=l.Z.Types.ORIGINAL_POSTER);return null==t?null:(0,n.jsx)(l.Z,{className:d?s().botTagCompact:s().botTagCozy,type:t,
|
|
verified:null==u?void 0:u.isVerifiedBot(),useRemSizes:!0})}},185759:(e,t,r)=>{"use strict";r.d(t,{a:()=>n,Z:()=>x});var n,i=r(785893),o=r(667294),l=r(294184),a=r.n(l),c=r(289283),s=r(202351),u=r(707961),d=r(316878),f=r(908741),h=r(725691),p=r(775173),m=r(468482),g=r.n(m);function y(e,t,r){t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r;return e}function O(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))));n.forEach((function(t){y(e,t,r[t])}))}return e}function b(e,t){t=null!=t?t:{};Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){
|
|
return Object.getOwnPropertyDescriptor(e,t).enumerable})));r.push.apply(r,n)}return r}(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}));return e}function j(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++){r=o[n];t.indexOf(r)>=0||(i[r]=e[r])}return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++){r=o[n];t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}}return i}!function(e){e[e.SYSTEM_TAG=0]="SYSTEM_TAG";e[e.BADGES=1]="BADGES"}(n||(n={}));function x(e){
|
|
var t,r=e.author,l=e.message,m=e.userOverride,y=e.compact,x=void 0!==y&&y,v=e.withMentionPrefix,w=void 0!==v&&v,E=e.showPopout,P=void 0!==E&&E,C=e.className,S=e.onClick,N=e.onContextMenu,I=e.onPopoutRequestClose,_=e.renderPopout,T=e.decorations,A=o.useContext(f.Z),M=w?"@":"",D=r.nick,L=r.colorString,R=r.colorRoleName,Z=null!=l.messageReference&&null!=l.webhookId,k=(0,s.e7)([d.Z],(function(){return d.Z.roleStyle})),U="username"===k,G="dot"===k,B={className:g().username,style:U&&null!=L?{color:L}:void 0,onClick:S,onContextMenu:N,children:M+D};if(null!=_&&null!=P){t=(0,i.jsx)(u.yRy,{preload:Z?void 0:function(){var e=null!=m?m:l.author;return(0,h.Z)(e.id,null!=r.guildMemberAvatar&&null!=A?(0,p.JM)({guildId:A,userId:e.id,avatar:r.guildMemberAvatar,size:80}):e.getAvatarURL(A,80),{guildId:A,channelId:l.channel_id})},renderPopout:_,shouldShow:P,position:c.tq?"window_center":"right",onRequestClose:I,children:function(e){e.onClick;var t=j(e,["onClick"]);return(0,i.jsx)(u.P3F,b(O({tag:"span"
|
|
},t,B),{className:a()(B.className,g().clickable,C)}))}})}else t=(0,i.jsx)(u.P3F,b(O({},B),{className:a()(B.className,C)}));var H=null!=T?T[n.SYSTEM_TAG]:null,V=null!=T?T[n.BADGES]:null;return(0,i.jsxs)(i.Fragment,{children:[null!=H&&x?(0,i.jsxs)(i.Fragment,{children:[" ",H," "]}):null,G?(0,i.jsx)(u.FhE,{color:L,name:R,className:g().roleDot}):null,t,null!=V?(0,i.jsx)(i.Fragment,{children:V}):null,null==H||x?null:H]})}}}]);
|
|
//# sourceMappingURL=fbf18034ebc7818b9672.js.map
|