ModuleBuilder/dist/module/Show All Activities.js

3 lines
6.1 KiB
JavaScript
Raw Normal View History

2021-01-23 14:19:51 +00:00
parcelRequire=function(e,r,t,n){var i,o="function"==typeof parcelRequire&&parcelRequire,u="function"==typeof require&&require;function f(t,n){if(!r[t]){if(!e[t]){var i="function"==typeof parcelRequire&&parcelRequire;if(!n&&i)return i(t,!0);if(o)return o(t,!0);if(u&&"string"==typeof t)return u(t);var c=new Error("Cannot find module '"+t+"'");throw c.code="MODULE_NOT_FOUND",c}p.resolve=function(r){return e[t][1][r]||r},p.cache={};var l=r[t]=new f.Module(t);e[t][0].call(l.exports,p,l,l.exports,this)}return r[t].exports;function p(e){return f(p.resolve(e))}}f.isParcelRequire=!0,f.Module=function(e){this.id=e,this.bundle=f,this.exports={}},f.modules=e,f.cache=r,f.parent=o,f.register=function(r,t){e[r]=[function(e,r){r.exports=t},{}]};for(var c=0;c<t.length;c++)try{f(t[c])}catch(e){i||(i=e)}if(t.length){var l=f(t[t.length-1]);"object"==typeof exports&&"undefined"!=typeof module?module.exports=l:"function"==typeof define&&define.amd?define(function(){return l}):n&&(this[n]=l)}if(parcelRequire=f,i)throw i;return f}({"index.js":[function(require,module,exports) {
2021-01-23 21:36:01 +00:00
"use strict";function t(t,e,i,n,r,a,s){try{var o=t[a](s),c=o.value}catch(l){return void i(l)}o.done?e(c):Promise.resolve(c).then(n,r)}function e(e){return function(){var i=this,n=arguments;return new Promise(function(r,a){var s=e.apply(i,n);function o(e){t(s,r,a,o,c,"next",e)}function c(e){t(s,r,a,o,c,"throw",e)}o(void 0)})}}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var i,n="1.0.0",r=goosemodScope.patcher,a=r.inject,s=r.uninject,o={goosemodHandlers:{onImport:function(){var t=e(regeneratorRuntime.mark(function t(){var e,n,r,s,o,c,l,p,u,h,d,m,f,v,g,y,x;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return(i=document.createElement("style")).appendChild(document.createTextNode(".allactivities-left {\n margin-right: 8px;\n }\n .allactivities-right {\n margin-left: 8px;\n }\n .allactivities-margin {\n margin-top: 12px;\n }\n .allactivities-margin2 {\n margin-top: 22px;\n }")),document.head.appendChild(i),n=function(t,i){return 0==i&&(e=[]),!e.includes(t.application_id||t.name)&&(e.push(t.application_id||t.name),4!=t.type)},r=goosemodScope.webpackModules,s=r.find,o=r.findByProps,c=r.findByDisplayName,t.next=7,o("getActivities");case 7:return l=t.sent,p=l.getActivities,t.next=11,o("getGame","getGameByName");case 11:return u=t.sent,h=u.getGame,t.next=15,c("UserActivity");case 15:return d=t.sent,a("gm-show-all-activities-pre",d.prototype,"render",function(t){if(this.props.__saa)return t;var e=p(this.props.user.id).filter(n);if(!e||!e.length)return t;if(this.state){var i=e[this.state.activity];if(!i)return t;this.props.activity=i,this.props.game=h(i.application_id),this.state.activity>0&&this.props.streamingGuild?(this.props._streamingGuild=this.props.streamingGuild,delete this.props.streamingGuild):0===this.state.activity&&this.props._streamingGuild&&(this.props.streamingGuild=this.props._streamingGuild)}else this.state={activity:e.indexOf(this.props.activity)};return t},!0),m=goosemodScope.webpackModules.common.React,t.next=20,o("Messages");case 20:return f=t.sent,v=f.Messages,t.next=24,o("iconButtonSize");case 24:return g=t.sent,t.next=27,o("TooltipContainer").TooltipContainer;case 27:return y=t.sent,t.next=30,s(function(t){return t.DropdownSizes});case 30:x=t.sent,a("gm-show-all-activities",d.prototype,"render",function(t,e){var i=this;if(this.props.__saa||this.state&&this.state.activity>0){var r=goosemodScope.reactUtils.findInReactTree(e,function(t){return t&&t.onOpenConnections});r&&(r.activity=this.props.activity,delete r.applicationStream)}if(this.props.__saa)return e=e.props.children;var a=p(this.props.user.id).filter(n);if(e&&e.props&&!e.props.children||!a||!a.length)return e;var s=e.props.children[1].props.children,o=this.props.activity.details||this.props.activity.state?" allactivities-margin".concat(1==this.props.activity.type&&"Profile Modal"==this.props.source?"2":""):"";return 0!=this.state.activity&&s.unshift(m.createElement(y,{className:"allactivities-left".concat(o),text:v.PAGINATION_PREVIOUS},m.createElement(x,{className:g.iconButtonSize,size:x.Sizes.MIN,color:x.Colors.WHITE,look:x.Looks.OUTLINED,onClick:function(){return i.setState({activity:i.state.activity-1})}},m.createElement("div",{className:"contents-18-Yxp"},m.createElement("div",{className:"flex-1xMQg5 flex-1O1GKY horizontal-1ae9ci horizontal-2EEEnY flex-1O1GKY directionRow-3v3tfG justifyStart-2NDFzi alignCenter-1dQNNs noWrap-3jynv6",style:{flex:"1 1 auto"}},m.createElement("svg",{"aria-hidden":"false",width:"24",height:"24",className:"flexChild-faoVW3 left-3d-3Co",viewBox:"0 0 24 24",style:{flex:"1 1 auto"}},m.createElement("polygon",{fill:"currentColor","fill-rule":"nonzero",points:"13 20 11 20 11 8 5.5 13.5 4.08 12.08 12 4.16 19.92 12.08 18.5 13.5 13 8"}))))))),this.state.activity<a.length-1&&s.push(m.createElement(y,{className:"allactivities-right".concat(o),text:v.NEXT},m.createElement(x,{className:g.iconButtonSize,size:x.Sizes.MIN,color:x.Colors.WHITE,look:x.Looks.OUTLINED,onClick:function(){return i.setState({activity:i.state.acti
2021-01-23 14:19:51 +00:00
},{}]},{},["index.js"], null);parcelRequire('index.js').default