This repository has been archived on 2026-02-28. You can view files and clone it, but cannot push or open issues or pull requests.
ServerSpacebarOld/assets/public/client/a0293aa991f940de5f6a.js
2025-12-08 18:44:58 +02:00

15 lines
13 KiB
JavaScript

"use strict";(this.webpackChunkdiscord_app=this.webpackChunkdiscord_app||[]).push([[19669],{77705:(e,t,n)=>{n.d(t,{Z:()=>c});var r=n(744564),o=n(52317),i=n(9430);const c={update:function(e){r.Z.dispatch({type:"CHANNEL_COLLAPSE",channelId:e})},toggleCollapseGuild:function(e){o.Z.saveUserGuildSettings(e,{hide_muted_channels:!i.Z.isGuildCollapsed(e)});r.Z.dispatch({type:"GUILD_TOGGLE_COLLAPSE_MUTED",guildId:e})}}},434651:(e,t,n)=>{n.d(t,{Z:()=>m});var r=n(785893),o=n(667294),i=n(202351),c=n(707961),u=n(357088),l=n(401080),a=n(725691),s=n(736818),f=n(567403),p=n(682776),b=n(473903),y=n(2590),d=n(473708),h=n(882090),O=n.n(h);function v(e,t,n,r,o,i,c){try{var u=e[i](c),l=u.value}catch(e){n(e);return}u.done?t(l):Promise.resolve(l).then(r,o)}function g(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function c(e){v(i,r,o,c,u,"next",e)}function u(e){v(i,r,o,c,u,"throw",e)}c(void 0)}))}}function j(e,t,n){t in e?Object.defineProperty(e,t,{value:n,
enumerable:!0,configurable:!0,writable:!0}):e[t]=n;return e}function w(e,t){t=null!=t?t:{};Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})));n.push.apply(n,r)}return n}(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}));return e}var P=function(e,t){var n,r,o,i,c={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;c;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;(r=0,
o)&&(i=[2&i[0],o.value]);switch(i[0]){case 0:case 1:o=i;break;case 4:c.label++;return{value:i[1],done:!1};case 5:c.label++;r=i[1];i=[0];continue;case 7:i=c.ops.pop();c.trys.pop();continue;default:if(!(o=c.trys,o=o.length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){c=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){c.label=i[1];break}if(6===i[0]&&c.label<o[1]){c.label=o[1];o=i;break}if(o&&c.label<o[2]){c.label=o[2];c.ops.push(i);break}o[2]&&c.ops.pop();c.trys.pop();continue}i=t.call(e,c)}catch(e){i=[6,e];r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}};function m(e,t,h,v,m){var E=f.Z.getGuild(e),Z=s.default.getId(),N=(0,i.e7)([b.default],(function(){return b.default.getUser(t)}));(0,i.e7)([p.Z],(function(){return p.Z.getGuildVersion(e)}),[e]);var D=o.useMemo((function(){return j({},e,[t])}),[e,t]);(0,u.$)(D);var x=v===y.IlC.POPOUT,I=(0,l.Z)({guild:E,analyticsLocation:h});if(null==E||x)return null
;var S=Z===t&&(p.Z.can(y.Plq.CHANGE_NICKNAME,E)||p.Z.can(y.Plq.MANAGE_NICKNAMES,E)),_=Z===t,k=p.Z.canManageUser(y.Plq.MANAGE_NICKNAMES,t,E);if(!(S||k||_))return null;if(null==N)return null;var C=E.hasFeature(y.oNc.HUB)?d.Z.Messages.HUB_EDIT_PROFILE:d.Z.Messages.CHANGE_IDENTITY,H=_?C:d.Z.Messages.CHANGE_NICKNAME;return(0,r.jsx)(c.sNh,{id:"change-nickname",label:(0,r.jsx)("div",{className:O().labelWrapper,children:(0,r.jsx)("span",{className:O().label,children:H})}),icon:m,action:function(){if(_){(0,a.Z)(N.id,N.getAvatarURL(e,80),{guildId:e});I()}else(0,c.ZDy)(g((function(){var t,o;return P(this,(function(i){switch(i.label){case 0:return[4,Promise.all([n.e(40532),n.e(33166)]).then(n.bind(n,633166))];case 1:t=i.sent(),o=t.default;return[2,function(t){return(0,r.jsx)(o,w(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){
return Object.getOwnPropertyDescriptor(n,e).enumerable}))));r.forEach((function(t){j(e,t,n[t])}))}return e}({},t),{guildId:e,user:N,analyticsSource:h}))}]}}))})))}})}},753082:(e,t,n)=>{n.d(t,{Z:()=>v});var r=n(785893),o=(n(667294),n(202351)),i=n(707961),c=n(15970),u=n(5544),l=n(682776),a=n(226919),s=n(2590),f=n(473708);function p(e,t,n,r,o,i,c){try{var u=e[i](c),l=u.value}catch(e){n(e);return}u.done?t(l):Promise.resolve(l).then(r,o)}function b(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function c(e){p(i,r,o,c,u,"next",e)}function u(e){p(i,r,o,c,u,"throw",e)}c(void 0)}))}}function y(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n;return e}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){
return Object.getOwnPropertyDescriptor(n,e).enumerable}))));r.forEach((function(t){y(e,t,n[t])}))}return e}function h(e,t){t=null!=t?t:{};Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})));n.push.apply(n,r)}return n}(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}));return e}var O=function(e,t){var n,r,o,i,c={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;c;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),
0):r.next)&&!(o=o.call(r,i[1])).done)return o;(r=0,o)&&(i=[2&i[0],o.value]);switch(i[0]){case 0:case 1:o=i;break;case 4:c.label++;return{value:i[1],done:!1};case 5:c.label++;r=i[1];i=[0];continue;case 7:i=c.ops.pop();c.trys.pop();continue;default:if(!(o=c.trys,o=o.length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){c=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){c.label=i[1];break}if(6===i[0]&&c.label<o[1]){c.label=o[1];o=i;break}if(o&&c.label<o[2]){c.label=o[2];c.ops.push(i);break}o[2]&&c.ops.pop();c.trys.pop();continue}i=t.call(e,c)}catch(e){i=[6,e];r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}};function v(e){var t=e.source,n=e.guild,r=e.channel,i=e.stageInstance,a=(0,o.e7)([u.ZP,l.Z],(function(){var e;return null===(e=u.ZP.getChannels(n.id)[u.sH].find((function(e){return l.Z.can(s.Plq.CREATE_INSTANT_INVITE,e.channel)})))||void 0===e?void 0:e.channel})),f=(0,o.e7)([l.Z],(function(){return(0,c.b)(l.Z,n,r,i)})),p=g(t,n,f&&null!=r?r:a),b=j(t)
;return null==r&&t===s.t4x.GUILD_CONTEXT_MENU?null:f||null!=a?p:b}var g=function(e,t,o){return(0,r.jsx)(i.sNh,{id:"invite-people",label:f.Z.Messages.INVITE_PEOPLE,color:"brand",icon:e===s.t4x.GUILD_HEADER?a.Z:void 0,action:function(){return(0,i.ZDy)(b((function(){var i,c;return O(this,(function(u){switch(u.label){case 0:return[4,Promise.all([n.e(40532),n.e(45446),n.e(86502),n.e(58635)]).then(n.bind(n,945446))];case 1:i=u.sent(),c=i.default;return[2,function(n){return(0,r.jsx)(c,h(d({},n),{guild:t,channel:o,source:e}))}]}}))})))}})},j=function(e){return(0,r.jsx)(i.sNh,{id:"invite-people",label:f.Z.Messages.INVITE_PEOPLE,color:"brand",icon:e===s.t4x.GUILD_HEADER?a.Z:void 0,action:function(){return(0,i.ZDy)(b((function(){var e,t;return O(this,(function(o){switch(o.label){case 0:return[4,Promise.all([n.e(40532),n.e(69712)]).then(n.bind(n,69712))];case 1:e=o.sent(),t=e.default;return[2,function(e){return(0,r.jsx)(t,d({},e))}]}}))})))}})}},907582:(e,t,n)=>{n.d(t,{Z:()=>g})
;var r=n(785893),o=(n(667294),n(707961)),i=n(633878);function c(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n;return e}function u(e,t){t=null!=t?t:{};Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})));n.push.apply(n,r)}return n}(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}));return e}function l(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++){n=i[r];t.indexOf(n)>=0||(o[n]=e[n])}return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++){n=i[r];t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}}
return o}function a(e){var t=e.width,n=void 0===t?24:t,o=e.height,a=void 0===o?24:o,s=e.color,f=void 0===s?"currentColor":s,p=l(e,["width","height","color"]);return(0,r.jsxs)("svg",u(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))));r.forEach((function(t){c(e,t,n[t])}))}return e}({},(0,i.Z)(p)),{width:n,height:a,viewBox:"0 0 24 24",children:[(0,r.jsx)("path",{d:"M21 4V1H19V4H16V6H19V9H21V6H24V4H21Z",fill:f}),(0,r.jsx)("path",{d:"M8 4H14V9H5V20H19V11H21V20C21 21.1 20.1 22 19 22H5C4.46957 22 3.96086 21.7893 3.58579 21.4142C3.21071 21.0391 3 20.5304 3 20L3.01 6C3.01 4.9 3.89 4 5 4H6V2H8V4Z",fill:f}),(0,r.jsx)("path",{d:"M7 11H12V16H7V11Z",fill:f})]}))}var s=n(678545),f=n(360703),p=n(473708);function b(e,t,n,r,o,i,c){try{var u=e[i](c),l=u.value}catch(e){n(e);return
}u.done?t(l):Promise.resolve(l).then(r,o)}function y(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function c(e){b(i,r,o,c,u,"next",e)}function u(e){b(i,r,o,c,u,"throw",e)}c(void 0)}))}}function d(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n;return e}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))));r.forEach((function(t){d(e,t,n[t])}))}return e}function O(e,t){t=null!=t?t:{};Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable
})));n.push.apply(n,r)}return n}(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}));return e}var v=function(e,t){var n,r,o,i,c={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;c;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;(r=0,o)&&(i=[2&i[0],o.value]);switch(i[0]){case 0:case 1:o=i;break;case 4:c.label++;return{value:i[1],done:!1};case 5:c.label++;r=i[1];i=[0];continue;case 7:i=c.ops.pop();c.trys.pop();continue;default:if(!(o=c.trys,o=o.length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){c=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){c.label=i[1];break}if(6===i[0]&&c.label<o[1]){c.label=o[1];o=i;break}
if(o&&c.label<o[2]){c.label=o[2];c.ops.push(i);break}o[2]&&c.ops.pop();c.trys.pop();continue}i=t.call(e,c)}catch(e){i=[6,e];r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}};function g(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=(0,s.Z)(e),c=(0,f.Z)();if(!i)return null;var u=function(){(0,o.ZDy)(y((function(){var t,o;return v(this,(function(i){switch(i.label){case 0:return[4,Promise.all([n.e(40532),n.e(45446),n.e(40706),n.e(3328),n.e(22849)]).then(n.bind(n,41380))];case 1:t=i.sent(),o=t.default;return[2,function(t){return(0,r.jsx)(o,O(h({},t),{guildId:e}))}]}}))})),c)};return(0,r.jsx)(o.sNh,{id:"create-event",label:p.Z.Messages.SCHEDULE_EVENT,icon:t?a:void 0,action:u})}},809210:(e,t,n)=>{n.d(t,{Z:()=>O});var r=n(785893),o=(n(667294),n(202351)),i=n(707961),c=n(473419),u=n(567403),l=n(473903),a=n(531441),s=n(347834),f=n(873629),p=n(489610),b=n(2590),y=n(473708),d=n(199243),h=n.n(d);function O(e){var t=(0,p.Ks)(e),n=(0,
o.e7)([c.Z],(function(){return!(0,f.DQ)(e,c.Z)})),d=(0,p.DM)(e),O=(0,o.e7)([u.Z],(function(){return u.Z.getGuild(e)})),v=(0,o.e7)([l.default],(function(){return l.default.getCurrentUser()}));return null!=v&&null!=O&&t&&(O.hasFeature(b.oNc.COMMUNITY)||v.isStaff())?(0,r.jsx)(i.S89,{id:"opt-in",label:n?(0,r.jsxs)("div",{className:h().channelOptInItem,children:[(0,r.jsx)("span",{children:y.Z.Messages.GUILD_CHANNEL_OPT_IN}),(0,r.jsx)(a.IG,{text:y.Z.Messages.NEW,className:h().newBadge})]}):y.Z.Messages.GUILD_CHANNEL_OPT_IN,checked:!d,action:function(){(0,f.kH)(e);n&&(0,s.Kt)(e)}}):null}}}]);
//# sourceMappingURL=a0293aa991f940de5f6a.js.map