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/ec14db6db671055463ea.js
2025-12-08 18:44:58 +02:00

50 lines
46 KiB
JavaScript

"use strict";(this.webpackChunkdiscord_app=this.webpackChunkdiscord_app||[]).push([[58848,98222],{293862:(e,t,r)=>{r.d(t,{Z:()=>lt});var n=r(785893),o=r(667294),i=r(294184),c=r.n(i),s=r(202351),u=r(707961),a=r(744564),l=r(508233),f=r(394352),p=r(218680),d=r(107364),h=r(190186),y=r(727599),m=r(623926),g=r(496486),v=r.n(g),O=r(38773),_=r(336194),b=r(213192),R=r.n(b),E=r(2590);function P(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function I(e){I=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)};return I(e)}function w(e,t){return!t||"object"!==j(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 S(e,t){S=Object.setPrototypeOf||function(e,t){e.__proto__=t;return e};return S(e,t)}var j=function(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};function C(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=I(e);if(t){var o=I(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return w(this,r)}}var M=R()({ARROW_UP:null,ARROW_DOWN:null,ARROW_LEFT:null,ARROW_RIGHT:null});function T(e){switch(e){case E.yXg.ARROW_DOWN:return M.ARROW_DOWN;case E.yXg.ARROW_UP:return M.ARROW_UP;case E.yXg.ARROW_LEFT:return M.ARROW_LEFT;case E.yXg.ARROW_RIGHT:return M.ARROW_RIGHT;default:return null}}var x=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&&S(e,t)}(r,e);var t=C(r);function r(){P(this,r);var e
;(e=t.apply(this,arguments)).state={focusedColumn:null,focusedRow:null};e.handleKeyDown=function(t){var r=e.props.onSelect;switch(t.keyCode){case E.yXg.ARROW_DOWN:case E.yXg.ARROW_UP:case E.yXg.ARROW_LEFT:case E.yXg.ARROW_RIGHT:e.focusNext(T(t.keyCode));break;case E.yXg.ENTER:var n=e.calculateFocusedItem();if(null!=n&&null!=r){t.preventDefault();t.stopPropagation();r(n)}}};e.wrapPosition=function(t,r,n,o){var i,c=t.length,s=n*c+r,u=Math.max(s+o,0)%c,a=0;o<0&&u>r&&(a=-1);o>0&&u<r&&(a=1);return{column:u,row:(null!==(i=e.calculateClosest(t[r][n],t[u]))&&void 0!==i?i:n)+a}};return e}var n=r.prototype;n.componentDidMount=function(){document.addEventListener("keydown",this.handleKeyDown,!0)};n.componentWillUnmount=function(){document.removeEventListener("keydown",this.handleKeyDown,!0)};n.focusNext=function(e){var t=this,r=this.props,n=r.getItemGrid,o=r.onFocus,i=this.state,c=i.focusedColumn,s=i.focusedRow;if(null!=e){var u=n();if(null!=u){var a=this.getNext(u,c,s,e);this.setState({
focusedColumn:a.column,focusedRow:a.row},(function(){var e=t.calculateFocusedItem();null!=e&&null!=o&&o(e)}))}}};n.getNext=function(e,t,r,n){var o,i,c,s;if(null==t||null==r){i=0;c=0;o={column:0,row:0}}else{i=t;c=r;switch(n){case M.ARROW_UP:o={column:i,row:Math.max(c-1,0)};break;case M.ARROW_DOWN:o={column:i,row:Math.min(c+1,e[i].length-1)};break;case M.ARROW_LEFT:o=this.wrapPosition(e,i,c,-1);break;case M.ARROW_RIGHT:o=this.wrapPosition(e,i,c,1)}}null!=o&&(s=e[o.column][o.row]);null!=s&&null!=o||(s=e[(o={column:i,row:c}).column][o.row]);return{column:o.column,row:o.row,id:s}};n.calculateClosest=function(e,t){var r=this.props.getCoordsMap()[e];if(null!=r){for(var n,o=Number.MAX_SAFE_INTEGER,i=0;i<t.length;i++){var c=this.props.getCoordsMap()[t[i]];if(null!=c){var s=Math.abs(c.top-r.top);if(!(s<o))break;o=s;n=i}}return n}};n.calculateFocusedItem=function(){var e=this.props.getItemGrid,t=this.state,r=t.focusedRow,n=t.focusedColumn,o=e()
;return null==o||null==n||null==r||null==o[n]||null==o[n][r]?null:o[n][r]};n.render=function(){return this.props.children};return r}(o.Component),U=r(82677),L=r(295652),A=r(672380);function N(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Z(e){Z=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)};return Z(e)}function D(e,t){return!t||"object"!==k(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 G(e,t){G=Object.setPrototypeOf||function(e,t){e.__proto__=t;return e};return G(e,t)}var F,k=function(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};function K(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=Z(e);if(t){var o=Z(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return D(this,r)}}function H(e,t,r){var n=Math.max(Math.floor(e/t),1);return Math.min(n,r)}const B=(0,A.Z)((F=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&&G(e,t)}(r,e);var t=K(r);function r(){N(this,r);var e;(e=t.apply(this,arguments)).state={columns:H(e.props.width,e.props.desiredItemWidth,e.props.maxColumns)};return e}r.prototype.render=function(){var e=this.props,t=e.width,r=e.height;return(0,e.children)(this.state.columns,t,r)};r.getDerivedStateFromProps=function(e,t){var r=H(e.width,e.desiredItemWidth,e.maxColumns);return r!==t.columns?{columns:r}:null};return r
}(o.Component),F.defaultProps={desiredItemWidth:200},F));var W=r(853158),V=r(502652),z=r.n(V);function Q(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function q(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Y(e){Y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)};return Y(e)}function X(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&&$(e,t)}function J(e,t){return!t||"object"!==ee(t)&&"function"!=typeof t?Q(e):t}function $(e,t){$=Object.setPrototypeOf||function(e,t){e.__proto__=t;return e};return $(e,t)}var ee=function(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};function te(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=Y(e);if(t){var o=Y(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return J(this,r)}}var re=[_.Z.unsafe_rawColors.PREMIUM_TIER_1_PURPLE.css,_.Z.unsafe_rawColors.PREMIUM_TIER_1_BLUE.css,"#929AFA"],ne=function(e){X(r,e);var t=te(r);function r(){q(this,r);var e;(e=t.apply(this,arguments)).state={backgroundColor:v().sample(re)};return e}r.prototype.render=function(){var e=this.props.height,t=this.state.backgroundColor;return(0,n.jsx)("div",{style:{height:e,backgroundColor:t},className:z().gif})};return r}(o.PureComponent);(function(e){X(r,e);var t=te(r);function r(e){q(this,r);var n;(n=t.call(this,e)).animateSlide=function(){
var e=Q(n),t=e.props.direction,r=e.state,o=r.translateY,i=r.height,c=t>0?0:-i/2+12,s=t>0?-i/2+12:0;o.setValue(c);W.Z.timing(o,{toValue:s,duration:800,easing:W.Z.Easing.linear}).start(n.animateSlide)};var o=new Array(10).fill(null).map((function(){return v().random(40,150)}));n.state={blocks:o,height:2*o.reduce((function(e,t){return e+t+12}),12),translateY:new W.Z.Value(0)};return n}var o=r.prototype;o.componentDidMount=function(){this.animateSlide()};o.getAnimatedStyle=function(){var e=this.props.columns,t=this.state.translateY;return{width:"".concat(100/e,"%"),transform:[{translateY:t.interpolate({inputRange:[0,1],outputRange:["0px","1px"]})}]}};o.render=function(){var e=this.state.blocks;return(0,n.jsxs)(W.Z.div,{className:z().column,style:this.getAnimatedStyle(),children:[e.map((function(e,t){return(0,n.jsx)(ne,{height:e},t)})),e.map((function(e,t){return(0,n.jsx)(ne,{height:e},"alt".concat(t))}))]})};return r}(o.Component)).defaultProps={direction:-1};var oe=function(e){
var t=e.columns;return(0,n.jsx)("div",{className:z().column,style:{width:"".concat(100/t,"%")},children:new Array(4).fill(null).map((function(e,t){return(0,n.jsx)("div",{className:z().categoryLoader},t)}))})},ie=function(e){X(r,e);var t=te(r);function r(){q(this,r);return t.apply(this,arguments)}r.prototype.render=function(){var e=this.props,t=e.columns,r=e.renderColumn;return(0,n.jsx)("div",{className:z().container,children:new Array(t).fill(null).map((function(e,n){return r(t,n)}))})};return r}(o.PureComponent),ce=r(957083),se=r(711003),ue=r(26468),ae=r(45761),le=r(473708),fe=r(121748),pe=r.n(fe);function de(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 he(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ye(e,t,r){t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r;return e}function me(e){
me=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)};return me(e)}function ge(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&&_e(e,t)}function ve(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){ye(e,t,r[t])}))}return e}function Oe(e,t){return!t||"object"!==Re(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 _e(e,t){_e=Object.setPrototypeOf||function(e,t){e.__proto__=t;return e};return _e(e,t)}function be(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,o,i=[],c=!0,s=!1;try{for(r=r.call(e);!(c=(n=r.next()).done);c=!0){i.push(n.value);if(t&&i.length===t)break}}catch(e){s=!0;o=e}finally{try{c||null==r.return||r.return()}finally{if(s)throw o}}return i}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return de(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 de(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 Re=function(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};function Ee(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=me(e);if(t){var o=me(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Oe(this,r)}}var Pe=[_.Z.unsafe_rawColors.PREMIUM_TIER_1_PURPLE.css,_.Z.unsafe_rawColors.PREMIUM_TIER_1_BLUE.css,"#929AFA"],Ie=Array.from({length:16}).map((function(e,t){return{id:"".concat(t),height:Math.floor(100*Math.random())+120}}));function we(e){var t;return null!==(t=e.id)&&void 0!==t?t:e.src}function Se(e,t){var r=Ie[t];return null==r?0:r.height}function je(e,t,r,o){if(!(e>0))return null==Ie[t]?null:(0,n.jsx)("div",{className:pe().placeholder,style:ve({animationDelay:"".concat(75*t,"ms")},r)},o)}function Ce(e,t){var r,n;return e>0?"":null!==(n=null===(r=Ie[t])||void 0===r?void 0:r.id)&&void 0!==n?n:""}
function Me(e){return e===O.EO.VIDEO}var Te=function(e){ge(r,e);var t=Ee(r);function r(e){he(this,r);var n;(n=t.call(this,e)).ref=null;n._video=null;n._image=null;n._mounted=!0;n.handleCanPlay=function(){n._mounted&&n.setState({loaded:!0})};n.handleClick=function(){var e=n.props,t=e.onClick,r=e.item,o=e.index;null!=t&&t(r,o)};var o=n.props,i=o.format,c=o.color,s=o.imagePool;n.state={color:null==c?v().sample(Pe):c,loaded:!1};if(!Me(i)){n._image=s.getElement();n._image.onload=function(){return n.setState({loaded:!0})};n._image.src=e.src}return n}var o=r.prototype;o.componentDidMount=function(){var e=this.props,t=e.format,r=e.src,n=e.coords,o=n.width,i=n.height,c=e.videoPool,s=this.ref;if(t===O.EO.VIDEO&&null!=s){var u=c.getElement();u.oncanplay=this.handleCanPlay;u.src=r;u.width=o;u.height=i;s.appendChild(u);this._video=u}};o.componentDidUpdate=function(e){var t=this.props.coords,r=t.width,n=t.height;if(null!=this._video&&(e.coords.width!==r||e.coords.height!==n)){this._video.width=r
;this._video.height=n}};o.componentWillUnmount=function(){this._mounted=!1;var e=this._image,t=this._video,r=this.props,n=r.imagePool,o=r.videoPool;if(null!=e){this._image=null;n.poolElement(e)}if(null!=t){this._video=null;o.poolElement(t)}};o.renderGIF=function(){var e=this.props,t=e.src,r=e.coords,o=r.width,i=r.height;return this.state.loaded?(0,n.jsx)("img",{src:t,width:o,height:i,className:pe().gif,alt:""}):null};o.render=function(){var e=this,t=this.props,r=t.item,o=t.renderExtras,i=t.format,s=t.coords,a=t.focused,l=this.state,f=l.color,p=l.loaded;return(0,n.jsxs)(u.P3F,{tabIndex:-1,innerRef:function(t){e.ref=t},className:c()(pe().result,ye({},pe().focused,a)),onClick:this.handleClick,style:ve({backgroundColor:p?void 0:f},s),children:[Me(i)?null:this.renderGIF(),null!=o?o(r):null]})};return r}(o.PureComponent),xe=function(e){ge(r,e);var t=Ee(r);function r(){he(this,r);var e;(e=t.apply(this,arguments))._masonryRef=o.createRef();e.prevResultQuery=null;e.state={focusedId:null}
;e.handleFocus=function(t){var r=e._masonryRef.current;if(null!=r){var n=r.getCoordsMap()[t];if(null!=n){r.scrollIntoViewRect({start:n.top-10,end:n.top+n.height+10});e.setState({focusedId:t})}}};e.handleSelect=function(t){var r,n=e.props.data,o=n.findIndex((function(e){return we(e)===t}));-1!==o&&(r=n[o]);null!=r&&e.selectItem(r,o)};e.handleClickItem=function(t,r){e.selectItem(t,r)};e.handleScroll=function(){var t=e.props.resultQuery,r=e._masonryRef.current;if(null!=r){var n=r.getScrollerState(),o=n.scrollTop;if(n.scrollHeight-o<=1220){t!==e.prevResultQuery&&(0,l.mO)(t);e.prevResultQuery=t}}};e.renderItem=function(t,r,o,i){if(t>0)return null;var c=e.state.focusedId,s=e.props.data[r];return null==s?null:(0,n.jsx)(Te,{item:s,index:r,format:s.format,src:s.src,coords:o,onClick:e.handleClickItem,renderExtras:function(){return(0,n.jsx)(ae.Z,ve({className:pe().favButton},s))},focused:we(s)===c,imagePool:e.props.imagePool,videoPool:e.props.videoPool},i)};e.getItemHeight=function(t,r,n){
if(t>0)return 0;var o=e.props.data[r];return null==o?0:n*(o.height/o.width)};e.getItemKey=function(t,r){if(t>0)return null;var n,o=e.props.data[r];return null!=o?null!==(n=o.id)&&void 0!==n?n:o.src:null};e.renderSection=function(t,r,i){var c=e.props,s=c.onSelectSuggestion,a=c.suggestions;return 1===t?(0,n.jsx)("div",{className:pe().endContainer,style:r,children:a.length>0?(0,n.jsxs)(o.Fragment,{children:[(0,n.jsx)("div",{className:pe().endText,children:le.Z.Messages.GIF_PICKER_RELATED_SEARCH}),(0,n.jsx)("div",{className:pe().searchSuggestions,children:a.map((function(e){return(0,n.jsx)(u.zxk,{look:u.zxk.Looks.OUTLINED,color:u.zxk.Colors.PRIMARY,size:u.zxk.Sizes.SMALL,className:pe().searchSuggestion,onClick:function(){s(e)},children:e},e)}))})]}):null},i):null};e.renderContent=function(t,r,o){var i=e.props,c=i.data,s=i.resultQuery,a=i.query,l=i.resultType;return 0!==c.length||s===a&&l!==E.wI2.TRENDING_GIFS?(0,n.jsx)(u.GMG,{ref:e._masonryRef,fade:!0,itemGutter:12,className:pe().results,
columns:t,sections:[c.length,0],getItemKey:e.getItemKey,getItemHeight:e.getItemHeight,renderItem:e.renderItem,getSectionHeight:e.getSectionHeight,renderSection:e.renderSection,onScroll:e.handleScroll,chunkSize:128},"".concat(s,"-").concat(null!=l?l:"")):(0,n.jsx)(u.GMG,{fade:!0,className:pe().results,sections:[Ie.length],columns:t,itemGutter:12,getItemKey:Ce,getItemHeight:Se,renderItem:je,chunkSize:128},s)};e.getItemGrid=function(){var t=e._masonryRef.current;return null!=t?t.getItemGrid():[]};e.getCoordsMap=function(){var t=e._masonryRef.current;return null!=t?t.getCoordsMap():{}};return e}var i=r.prototype;i.componentDidMount=function(){var e=this.props,t=e.resultType,r=e.data;if(t===E.wI2.FAVORITES){(0,l.t1)(E.wI2.FAVORITES);(0,l.hM)(r,E.wI2.FAVORITES,{limit:null})}};i.selectItem=function(e,t){var r=this.props,n=r.onSelectGIF,o=r.resultType,i=r.data,c=r.resultQuery;null!=n&&n(e);(0,l.R7)({type:o,index:t,offset:this.props.searchOffset,limit:this.props.searchLimit,results:i,
totalResults:this.props.searchTotalResults,query:c,gifId:e.id})};i.getSectionHeight=function(e){return 1===e?220:0};i.renderEmptyFavorite=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(0,n.jsx)("div",{className:pe().emptyHint,children:null!=e?(0,n.jsxs)("div",{className:pe().emptyHintCard,children:[t?(0,n.jsx)(U.Z,{className:pe().emptyHintFavorite}):null,(0,n.jsx)("div",{className:pe().emptyHintText,children:e})]}):(0,n.jsx)("div",{className:pe().emptyHintSpacer})})};i.renderEmptyFavorites=function(){var e=this;return(0,n.jsx)(u.Ttm,{className:pe().results,fade:!0,children:(0,n.jsxs)("div",{className:pe().emptyHints,children:[this.renderEmptyFavorite(le.Z.Messages.NO_GIF_FAVORITES_HOW_TO_FAVORITE,!0),this.renderEmptyFavorite(le.Z.Messages.NO_GIF_FAVORITES_WHERE_TO_FAVORITE),this.renderEmptyFavorite(le.Z.Messages.NO_GIF_FAVORITES_GO_FAVORITE),Array.from({length:15}).map((function(t,r){return(0,n.jsx)(o.Fragment,{children:e.renderEmptyFavorite()},r)
})),this.renderEmptyFavorite(le.Z.Messages.NO_GIF_FAVORITES_FLAVOR_FAVORITE_PLEASE),Array.from({length:16}).map((function(t,r){return(0,n.jsx)(o.Fragment,{children:e.renderEmptyFavorite()},r)})),this.renderEmptyFavorite(le.Z.Messages.NO_GIF_FAVORITES_FLAVOR_STILL_HERE)]})})};i.render=function(){var e=this.props,t=e.data,r=e.resultQuery,o=e.query,i=e.resultType;return 0===t.length&&r===o&&i!==E.wI2.TRENDING_GIFS?i===E.wI2.FAVORITES?this.renderEmptyFavorites():(0,n.jsx)(se.Z,{message:le.Z.Messages.NO_GIF_SEARCH_RESULTS,className:pe().noResults}):(0,n.jsx)(x,{getItemGrid:this.getItemGrid,getCoordsMap:this.getCoordsMap,onFocus:this.handleFocus,onSelect:this.handleSelect,children:(0,n.jsx)(B,{desiredItemWidth:200,maxColumns:8,children:this.renderContent})},r)};return r}(o.PureComponent);function Ue(){var e=o.useContext(ue.ZP).renderWindow.document;return{imagePool:be(o.useState((function(){return new ce.Z((function(){return e.createElement("img")}),(function(e){e.onload=null;e.src=""}))
})),1)[0],videoPool:be(o.useState((function(){return new ce.Z((function(){var t=e.createElement("video");t.className=pe().gif;t.autoplay=!0;t.loop=!0;t.muted=!0;t.preload="auto";t.controls=!1;return t}),(function(e){e.src="";e.oncanplay=null;var t=e.parentNode;null!=t&&t.removeChild(e)}))})),1)[0]}}const Le=function(e){var t=Ue();return(0,n.jsx)(xe,ve({},e,t))};var Ae=r(487595),Ne=r.n(Ae);function Ze(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 De(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ge(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){Fe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)};return Fe(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}function Ke(e,t){return!t||"object"!==We(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 He(e,t){He=Object.setPrototypeOf||function(e,t){e.__proto__=t;return e};return He(e,t)}function Be(e){return function(e){if(Array.isArray(e))return Ze(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Ze(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 Ze(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var We=function(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};function Ve(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=Fe(e);if(t){var o=Fe(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Ke(this,r)}}var ze=function(e,t){return(0,n.jsx)(oe,{columns:e},t)};function Qe(e){var t,r=v().sample(v().values(e));return{type:E.wI2.FAVORITES,
name:le.Z.Messages.CATEGORY_FAVORITE,icon:U.Z,src:null!=r?r.src:"https://media.giphy.com/media/1TOSaJsWtnhe0/giphy.gif",format:null!==(t=null==r?void 0:r.format)&&void 0!==t?t:O.EO.IMAGE}}var qe=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&&He(e,t)}(r,e);var t=Ve(r);function r(){De(this,r);var e;(e=t.apply(this,arguments))._masonryRef=o.createRef();e.state={favoritesTile:Qe(e.props.favorites),selectedIndex:{column:0,row:0},focusedId:null};e.handleFocus=function(t){var r=e._masonryRef.current;if(null!=r){var n=r.getCoordsMap()[t];if(null!=n){r.scrollIntoViewRect({start:n.top-10,end:n.top+n.height+10});e.setState({focusedId:t})}}};e.handleSelect=function(t){var r=e.props.onSelectItem,n=e.getData().find((function(e){return e.name===t}));null!=n&&null!=r&&r(n.type,n.name)};e.getItemKey=function(t,r){
if(t>0)return null;var n=e.getData()[r];return null!=n?n.name:null};e.memoizedData=(0,L.oH)((function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return r?Be(t):[e].concat(Be(t))}));e.renderItem=function(t,r,o,i){if(t>0)return null;var c=e.getData()[r];if(null!=c){var s=e.props,u=s.onSelectItem,a=s.imagePool,l=s.videoPool,f=e.state.focusedId;return(0,n.jsx)(Te,{format:c.format,color:_.Z.unsafe_rawColors.PRIMARY_800.css,src:c.src,item:c,index:r,coords:o,onClick:function(){return u(c.type,c.name)},renderExtras:e.renderCategoryExtras,focused:c.name===f,imagePool:a,videoPool:l},i)}};e.renderContent=function(t,r,o){return 0===e.props.trendingCategories.length?(0,n.jsx)(ie,{columns:t,width:r,renderColumn:ze}):(0,n.jsx)(u.GMG,{ref:e._masonryRef,fade:!0,className:Ne().container,itemGutter:12,getItemKey:e.getItemKey,columns:t,getItemHeight:function(){return 110},renderItem:e.renderItem,sections:[e.getData().length],chunkSize:50})};e.getItemGrid=function(){
var t=e._masonryRef.current;return null!=t?t.getItemGrid():[]};e.getCoordsMap=function(){var t=e._masonryRef.current;return null!=t?t.getCoordsMap():{}};return e}var i=r.prototype;i.componentDidMount=function(){0===this.props.trendingCategories.length&&(0,l.Tg)()};i.getData=function(){return this.memoizedData(this.state.favoritesTile,this.props.trendingCategories,this.props.hideFavoritesTile)};i.renderCategoryExtras=function(e){var t=e.name,r=e.icon,i=e.type;return(0,n.jsxs)(o.Fragment,{children:[(0,n.jsx)("div",{className:i===E.wI2.FAVORITES?Ne().categoryFadeBlurple:Ne().categoryFade}),(0,n.jsxs)("div",{className:Ne().categoryText,children:[null!=r?(0,n.jsx)(r,{className:Ne().categoryIcon}):null,(0,n.jsx)("span",{className:Ne().categoryName,children:t})]})]})};i.render=function(){return(0,n.jsx)(x,{getItemGrid:this.getItemGrid,getCoordsMap:this.getCoordsMap,onFocus:this.handleFocus,onSelect:this.handleSelect,children:(0,n.jsx)(B,{desiredItemWidth:200,maxColumns:6,
children:this.renderContent})})};return r}(o.PureComponent);function Ye(e){var t=(0,s.e7)([p.Z],(function(){return p.Z.getTrendingCategories()})),r=(0,m.gG)(),o=Ue();return(0,n.jsx)(qe,ke(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){Ge(e,t,r[t])}))}return e}({},e,o),{trendingCategories:t,favorites:r}))}var Xe=r(936957),Je=r(320461),$e=r.n(Je);function et(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tt(e,t,r){t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r;return e}function rt(e){rt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)};return rt(e)}function nt(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 ot(e,t){return!t||"object"!==ct(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 it(e,t){it=Object.setPrototypeOf||function(e,t){e.__proto__=t;return e};return it(e,t)}var ct=function(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};function st(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=rt(e);if(t){var o=rt(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return ot(this,r)}}var ut=function(e){return e.stopPropagation()},at=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&&it(e,t)}(r,e);var t=st(r);function r(){et(this,r);var e;(e=t.apply(this,arguments)).state={resultType:null};e.searchBarRef=o.createRef();e.backToFrontPage=function(t){var r=e.state.resultType;if(t.keyCode===E.yXg.ESCAPE&&null!=r){t.stopPropagation();t.preventDefault();e.handleClearQuery()}};e.handleChangeQuery=function(t){(0,f.ql)(t);e.search(t,E.wI2.SEARCH)};e.handleSelectSuggestion=function(t){(0,f.ql)("");l.v2();e.search(t,E.wI2.SEARCH_SUGGESTION,!0)}
;e.handleClearQuery=function(){var t=e.searchBarRef.current;(0,f.ql)("");l.v2();e.setState({resultType:null});null!=t&&t.focus()};e.handleSelectGIF=function(t){var r=e.props.onSelectGIF;null!=r&&r(t)};e.handleSelectItem=function(t,r){var n=e.searchBarRef.current;switch(t){case E.wI2.TRENDING_CATEGORY:l.yC(r,E.wI2.TRENDING_CATEGORY,!0);null!=n&&n.focus();break;case E.wI2.TRENDING_GIFS:l.UU()}e.setState({resultType:t})};return e}var i=r.prototype;i.componentDidMount=function(){l.gK();document.addEventListener("keydown",this.backToFrontPage);""!==this.props.query&&this.search(this.props.query,E.wI2.SEARCH)};i.componentWillUnmount=function(){a.Z.wait((function(){return l.v2()}));document.removeEventListener("keydown",this.backToFrontPage)};i.search=function(e,t,r){l.yC(e,t,r);""===e?this.setState({resultType:null}):this.state.resultType!==E.wI2.SEARCH&&this.setState({resultType:E.wI2.SEARCH})};i.renderHeaderContent=function(){var e=this.props.query;switch(this.state.resultType){
case E.wI2.FAVORITES:return(0,n.jsx)(u.vwX,{tag:"h5",className:$e().searchHeader,children:le.Z.Messages.CATEGORY_FAVORITE});case E.wI2.TRENDING_GIFS:return(0,n.jsx)(u.vwX,{tag:"h5",className:$e().searchHeader,children:le.Z.Messages.GIF_PICKER_RESULT_TYPE_TRENDING_GIFS});default:return(0,n.jsx)(h.Z,{className:$e().searchBar,size:h.Z.Sizes.MEDIUM,query:e,onChange:this.handleChangeQuery,onClear:this.handleClearQuery,placeholder:le.Z.Messages.SEARCH_TENOR,"aria-label":le.Z.Messages.SEARCH_TENOR,ref:this.searchBarRef,autoFocus:!0})}};i.renderHeader=function(){var e=null;null!=this.state.resultType&&(e=(0,n.jsx)(u.P3F,{onClick:this.handleClearQuery,className:$e().backButton,"aria-label":le.Z.Messages.BACK,children:(0,n.jsx)(y.Z,{title:le.Z.Messages.BACK})}));return(0,n.jsxs)(d.Z,{align:d.Z.Align.CENTER,children:[e,this.renderHeaderContent()]})};i.renderContent=function(){
var e=this.props,t=e.resultItems,r=e.resultQuery,o=e.query,i=e.favorites,c=e.searchOffset,s=e.searchLimit,u=e.searchTotalResults,a=e.suggestions,l=e.hideFavorites,f=this.state.resultType;return null==f?(0,n.jsx)(Ye,{hideFavoritesTile:l,onSelectItem:this.handleSelectItem}):(0,n.jsx)(Le,{data:f===E.wI2.FAVORITES?i:t,onSelectGIF:this.handleSelectGIF,resultType:f,resultQuery:r,query:o,searchOffset:c,searchLimit:s,searchTotalResults:u,suggestions:a,onSelectSuggestion:this.handleSelectSuggestion})};i.render=function(){var e=this.props,t=e.className,r=e.forwardedRef;return(0,n.jsxs)("div",{id:Xe.vO,role:"tabpanel","aria-labelledby":Xe._3,className:c()($e().container,t),onClick:ut,ref:r,children:[(0,n.jsx)("div",{className:$e().header,children:this.renderHeader()}),(0,n.jsx)("div",{className:$e().content,children:this.renderContent()})]})};return r}(o.PureComponent);const lt=o.forwardRef((function(e,t){e.persistSearch||(0,f.ql)("");var r=(0,s.cj)([p.Z],(function(){return{query:p.Z.getQuery(),
resultQuery:p.Z.getResultQuery(),resultItems:p.Z.getResultItems(),suggestions:p.Z.getSuggestions()}})),o=r.query,i=r.resultQuery,c=r.resultItems,u=r.suggestions,a=(0,f.Iu)((function(e){return e.searchQuery})),l=null!=a&&""!==a?a:o,d=(0,m.HI)();return(0,n.jsx)(at,nt(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){tt(e,t,r[t])}))}return e}({},e),{forwardedRef:t,query:l,resultQuery:i,resultItems:c,suggestions:u,favorites:d,searchOffset:0,searchTotalResults:p.Z.getResultItems().length,searchLimit:null}))}))},557877:(e,t,r)=>{r.d(t,{Cg:()=>l,zC:()=>U,Yp:()=>T,il:()=>D,XO:()=>x,hC:()=>N,o9:()=>A,VF:()=>Z,WW:()=>L});var n=r(785893),o=(r(667294),r(336194)),i=(r(707961),r(633878));function c(e,t,r){t in e?Object.defineProperty(e,t,{value:r,
enumerable:!0,configurable:!0,writable:!0}):e[t]=r;return e}function s(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 u(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++){r=i[n];t.indexOf(r)>=0||(o[r]=e[r])}return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++){r=i[n];t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}}return o}function a(e){var t=e.width,r=void 0===t?24:t,o=e.height,a=void 0===o?24:o,l=u(e,["width","height"])
;return(0,n.jsxs)("svg",s(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){c(e,t,r[t])}))}return e}({},(0,i.Z)(l)),{height:a,width:r,viewBox:"0 0 24 24",children:[(0,n.jsx)("path",{
d:"m6.3599 4.33.41.84c.02245.04336.03052.09274.02304.14099s-.03013.09287-.06465.1274c-.03453.03453-.07915.05717-.1274.06465s-.09763-.00059-.14099-.02304l-.84-.41c-.03119-.01506-.06537-.02288-.1-.02288s-.06882.00782-.1.02288l-.84.41c-.04336.02245-.09274.03052-.141.02304-.04825-.00748-.09287-.03012-.12739-.06465-.03453-.03453-.05717-.07915-.06465-.1274s.00058-.09763.02304-.14099l.41-.84c.01505-.03119.02287-.06537.02287-.1s-.00782-.06881-.02287-.1l-.41-.84c-.01585-.04253-.01876-.08879-.00836-.13297.01039-.04417.03362-.08429.06676-.11529s.07471-.05151.11948-.05894c.04477-.00742.09074-.00144.13212.0172l.84.41c.03118.01506.06537.02288.1.02288s.06881-.00782.1-.02288l.84-.41c.04336-.02245.09274-.03052.14099-.02304s.09287.03012.1274.06465c.03452.03453.05717.07914.06465.1274.00748.04825-.00059.09763-.02304.14099l-.41.84c-.01211.02846-.01834.05907-.01834.09s.00623.06154.01834.09z",fill:"#ffd836"}),(0,n.jsx)("path",{
d:"m12 2.70001-5.45996 5.46v7.67999l5.45996 5.46 5.46-5.46v-7.67999zm2.73 11.99999-2.73 2.74-2.72996-2.73v-5.41999l2.72996-2.73 2.73 2.73z",fill:"#ff73fa"}),(0,n.jsx)("path",{d:"m12 2.70001v3.86l2.73 2.73 2.73-1.13z",fill:"#ffc0ff"}),(0,n.jsx)("path",{d:"m9.27004 14.71-2.73 1.13 5.45996 5.46v-3.86z",fill:"#e655d4"}),(0,n.jsxs)("g",{fill:"#d4e4ff",children:[(0,n.jsx)("path",{d:"m16.2199 17.7h.01c.243 0 .44-.197.44-.44v-.89c0-.243-.197-.44-.44-.44h-.01c-.243 0-.44.197-.44.44v.89c0 .243.197.44.44.44z"}),(0,n.jsx)("path",{d:"m16.2199 21.25h.01c.243 0 .44-.197.44-.44v-.89c0-.243-.197-.44-.44-.44h-.01c-.243 0-.44.197-.44.44v.89c0 .243.197.44.44.44z"}),(0,n.jsx)("path",{d:"m15.3401 18.59v-.01c0-.243-.197-.44-.44-.44h-.89c-.243 0-.44.197-.44.44v.01c0 .243.197.44.44.44h.89c.243 0 .44-.197.44-.44z"}),(0,n.jsx)("path",{d:"m18.8799 18.59v-.01c0-.243-.197-.44-.44-.44h-.89c-.243 0-.44.197-.44.44v.01c0 .243.197.44.44.44h.89c.243 0 .44-.197.44-.44z"})]}),(0,n.jsx)("path",{
d:"m9.27002 9.29v5.42l2.72998 2.73 2.73-2.73v-5.42l-2.73-2.73z",fill:"#ffdef9"}),(0,n.jsx)("path",{d:"m14.72 9.28998v.01l-5.42997 5.43002-.01-.01v-1.47l4.69997-4.71002z",fill:"#fff"}),(0,n.jsx)("path",{d:"m14.7201 11.34v1.5l-3.66 3.66-.75-.75z",fill:"#fff"})]}))}var l,f=r(901644),p=r(217674),d=r(312690),h=r(855595),y=r(575562),m=(r(108206),r(235606)),g=r(71236),v=r(521798),O=r(507165),_=r(2590),b=r(203600),R=r(473708);r(809470);!function(e){e.GUILD_BANNER_INVITE="guild_banner_invite"}(l||(l={}));var E=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.Z.unsafe_rawColors.PREMIUM_PERK_ORANGE.css;return{color:e,icon:d.Z,description:R.Z.Messages.PREMIUM_GUILD_SUBSCRIPTION_UPSELL_PERKS_ANIMATED_ICON}},P=function(){return{color:o.Z.unsafe_rawColors.PREMIUM_PERK_ORANGE.css,icon:h.Z,description:R.Z.Messages.PREMIUM_GUILD_SUBSCRIPTION_UPSELL_PERKS_ROLE_ICON}},I=function(){
var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.Z.unsafe_rawColors.PREMIUM_PERK_PURPLE.css;return{color:e,icon:v.Z,description:R.Z.Messages.PREMIUM_GUILD_SUBSCRIPTION_UPSELL_PERKS_STICKERS}},w=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.Z.unsafe_rawColors.PREMIUM_PERK_YELLOW.css;return{color:e,icon:v.Z,description:R.Z.Messages.PREMIUM_GUILD_SUBSCRIPTION_UPSELL_PERKS_STICKERS_UPLOAD.format({numStickers:b.$8[_.Eu4.TIER_1]})}},S=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.Z.unsafe_rawColors.PREMIUM_PERK_PURPLE.css,r=0,n=0;switch(e){case _.Eu4.TIER_1:r=15;n=100;break;case _.Eu4.TIER_2:r=30;n=150;break;case _.Eu4.TIER_3:r=60;n=250}return{color:t,icon:v.Z,description:R.Z.Messages.PREMIUM_GUILD_SUBSCRIPTION_UPSELL_PERKS_STICKERS_AND_EMOJIS.format({numStickers:r,numEmojis:n})}},j=function(){return{color:o.Z.unsafe_rawColors.PREMIUM_PERK_GOLD.css,icon:g.Z,
description:R.Z.Messages.PREMIUM_GUILD_SUBSCRIPTION_UPSELL_PERKS_VANITY_URL}},C=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:R.Z.Messages.PREMIUM_GUILD_SUBSCRIPTION_UPSELL_PERKS_OTHER;return{color:o.Z.unsafe_rawColors.PREMIUM_PERK_BLUE.css,icon:f.Z,description:e}},M=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.Z.unsafe_rawColors.PREMIUM_PERK_GREEN.css;return{color:e,icon:m.Z,description:R.Z.Messages.PREMIUM_GUILD_SUBSCRIPTION_UPSELL_PERKS_SCREEN_SHARE_1080P}};function T(){return[P(),{color:o.Z.unsafe_rawColors.PREMIUM_PERK_GREEN.css,icon:y.Z,description:R.Z.Messages.PREMIUM_GUILD_SUBSCRIPTION_UPSELL_PERKS_GUILD_BANNER},I(),C()]}function x(){return[P(),S(_.Eu4.TIER_2),M(),C()]}function U(){return[S(_.Eu4.TIER_3,o.Z.unsafe_rawColors.PREMIUM_PERK_GREEN.css),{color:o.Z.unsafe_rawColors.PREMIUM_PERK_PURPLE.css,icon:O.Z,description:R.Z.Messages.PREMIUM_GUILD_SUBSCRIPTION_UPSELL_PERKS_FILE_UPLOAD_TIER_3},j(),C()]}function L(){
return[j(),{color:o.Z.unsafe_rawColors.PREMIUM_PERK_GREEN.css,icon:d.Z,description:R.Z.Messages.PREMIUM_GUILD_SUBSCRIPTION_UPSELL_PERKS_ANIMATED_GUILD_BANNER},S(_.Eu4.TIER_3),C()]}function A(){return[{color:o.Z.unsafe_rawColors.PREMIUM_PERK_GREEN.css,icon:y.Z,description:R.Z.Messages.PREMIUM_GUILD_SUBSCRIPTION_UPSELL_PERKS_CUSTOM_INVITE},I(),E(),C()]}function N(){return[I(),C()]}function Z(){return[{icon:p.Z,color:o.Z.unsafe_rawColors.PREMIUM_PERK_PINK.css,description:R.Z.Messages.PREMIUM_GUILD_USER_FEATURE_BOOST_CRYSTAL},{icon:h.Z,color:o.Z.unsafe_rawColors.PREMIUM_PERK_YELLOW.css,description:R.Z.Messages.PREMIUM_GUILD_USER_FEATURE_SPECIAL_ROLE},{icon:a,description:R.Z.Messages.PREMIUM_GUILD_USER_FEATURE_PROFILE_BADGE},{color:o.Z.unsafe_rawColors.PREMIUM_PERK_BLUE.css,icon:f.Z,description:R.Z.Messages.PREMIUM_GUILD_USER_FEATURE_OTHERS}]}function D(){return[E(),{color:o.Z.unsafe_rawColors.PREMIUM_PERK_PURPLE.css,icon:m.Z,
description:R.Z.Messages.PREMIUM_GUILD_SUBSCRIPTION_UPSELL_PERKS_SCREEN_SHARE_720P},w(),C()]}},596801:(e,t,r)=>{r.d(t,{Z:()=>h});var n=r(785893),o=(r(667294),r(707961)),i=r(979197),c=r(625797),s=r(652591),u=r(2590);function a(e,t,r,n,o,i,c){try{var s=e[i](c),u=s.value}catch(e){r(e);return}s.done?t(u):Promise.resolve(u).then(n,o)}function l(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function c(e){a(i,n,o,c,s,"next",e)}function s(e){a(i,n,o,c,s,"throw",e)}c(void 0)}))}}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 p(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++){r=i[n];t.indexOf(r)>=0||(o[r]=e[r])}return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++){r=i[n]
;t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}}return o}var d=function(e,t){var r,n,o,i,c={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;c;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;(n=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++;n=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];n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};function h(e,t){var a=null!=t?t:"".concat(u.jXE.PREMIUM_GUILD_UPSELL_MODAL);null!=e.targetBoostedGuildTier&&(a+=" - Tier ".concat(e.targetBoostedGuildTier));s.default.track(u.rMx.OPEN_MODAL,{type:a,location:e.analyticsSourceLocation});var h=e.openInPopoutEnabled,y=p(e,["openInPopoutEnabled"]),m=i.Z.getWindowOpen(u.KJ3.CHANNEL_CALL_POPOUT)&&null!=h&&h;m&&(0,c.Z)(u.KJ3.CHANNEL_CALL_POPOUT);var g=m?o.u1M:o.z1l;(0,o.ZDy)(l((function(){var e,t;return d(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(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(28401),r.e(96075),r.e(43891),r.e(49096),r.e(22620)]).then(r.bind(r,374714))];case 1:e=o.sent(),t=e.default
;return[2,function(e){return(0,n.jsx)(t,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}({},y,e))}]}}))})),{onCloseCallback:function(){s.default.track(u.rMx.MODAL_DISMISSED,{type:a,location:e.analyticsSourceLocation})},contextKey:g})}},901644:(e,t,r)=>{r.d(t,{Z:()=>u});var n=r(785893),o=(r(667294),r(633878));function i(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,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++){r=i[n];t.indexOf(r)>=0||(o[r]=e[r])}return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++){r=i[n];t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}}return o}function u(e){var t=e.width,r=void 0===t?24:t,u=e.height,a=void 0===u?24:u,l=e.color,f=void 0===l?"currentColor":l,p=e.foreground,d=s(e,["width","height","color","foreground"]);return(0,n.jsx)("svg",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){i(e,t,r[t])}))}return e}({},(0,o.Z)(d)),{width:r,height:a,viewBox:"0 0 24 24",children:(0,n.jsx)("path",{fill:f,className:p,d:"M12 2C6.477 2 2 6.477 2 12C2 17.522 6.477 22 12 22C17.523 22 22 17.522 22 12C22 6.477 17.522 2 12 2ZM16.293 6.293L17.707 7.706L16.414 9L17.707 10.293L16.293 11.706L13.586 9L16.293 6.293ZM6.293 7.707L7.707 6.294L10.414 9L7.707 11.707L6.293 10.294L7.586 9L6.293 7.707ZM18 14C18 16.617 15.14 19 12 19C8.86 19 6 16.617 6 14V13H18V14Z"})}))}},507165:(e,t,r)=>{r.d(t,{Z:()=>u});var n=r(785893),o=(r(667294),r(633878));function i(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,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++){r=i[n];t.indexOf(r)>=0||(o[r]=e[r])}return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++){r=i[n];t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}}return o}function u(e){var t=e.width,r=void 0===t?40:t,u=e.height,a=void 0===u?40:u,l=e.color,f=void 0===l?"currentColor":l,p=s(e,["width","height","color"]);return(0,n.jsx)("svg",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){i(e,t,r[t])}))}return e}({},(0,o.Z)(p)),{width:r,height:a,viewBox:"0 0 20 21",fill:f,xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.2139 1.00082L0.271335 12.3825C-0.0698739 12.8168 0.00557122 13.4454 0.439846 13.7866C0.616031 13.9251 0.833599 14.0003 1.05766 14.0003H5.00022V20.0003C5.00022 20.5526 5.44794 21.0003 6.00022 21.0003H14.0002C14.5525 21.0003 15.0002 20.5526 15.0002 20.0003V14.0003H18.9428C19.495 14.0003 19.9428 13.5526 19.9428 13.0003C19.9428 12.7763 19.8675 12.5587 19.7291 12.3825L10.7865 1.00082C10.4453 0.566546 9.81669 0.4911 9.38241 0.832308C9.31972 0.881561 9.26315 0.938133 9.2139 1.00082Z",fill:f})}))}}}]);
//# sourceMappingURL=ec14db6db671055463ea.js.map