Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,21 @@
|
||||
/* Metro module 10748; source: modules/tooltip/TooltipActionCreators.tsx; dependencies: [694, 2] */
|
||||
function _fun82647(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#82647, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10934:6, offset: 0x01efd19d, size: 118 bytes, params: 8, frame: 17
|
||||
var object2;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
object2 = {acknowledgeTooltip: acknowledgeTooltip, attemptToShowTooltip: attemptToShowTooltip};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/tooltip/TooltipActionCreators.tsx');
|
||||
exports.default = object2;
|
||||
}
|
||||
|
||||
function acknowledgeTooltip(a0) { // fn#82648, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10934:99, offset: 0x01efd213, size: 56 bytes, params: 2, frame: 13
|
||||
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'TOOLTIP_ACKNOWLEDGE', tooltip: a0});
|
||||
}
|
||||
|
||||
function attemptToShowTooltip(a0) { // fn#82649, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10934:179, offset: 0x01efd24b, size: 70 bytes, params: 2, frame: 14
|
||||
let value = a1;
|
||||
const r4 = value !== undefined ? value : false;
|
||||
value = importDefault(694) /* metro dependency 694: Dispatcher */;
|
||||
value.dispatch({type: 'TOOLTIP_SHOW_ATTEMPT', tooltip: a0, ignoreMaxShownLimit: r4});
|
||||
}
|
||||
|
||||
@@ -0,0 +1,128 @@
|
||||
/* Metro module 10747; source: modules/tooltip/TooltipStore.tsx; dependencies: [6, 7, 15, 17, 18, 661, 587, 566, 694, 2] */
|
||||
function _fun82636(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#82636, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10933:6, offset: 0x01efcd76, size: 371 bytes, params: 8, frame: 20
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_3 = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_4 = importDefault(15) /* metro dependency 15 */;
|
||||
const env0_5 = importDefault(17) /* metro dependency 17 */;
|
||||
const env0_6 = importDefault(18) /* metro dependency 18 */;
|
||||
const env0_7 = (require(661) /* metro dependency 661: Constants */).StorageKeys;
|
||||
let Set = global.Set;
|
||||
let set = new Set();
|
||||
Set = global.Set;
|
||||
set = new Set();
|
||||
const Store = (importDefault(566) /* metro dependency 566: flux */).Store;
|
||||
_fun82640(Store).displayName = 'TooltipStore';
|
||||
set = new set(importDefault(694) /* metro dependency 694: Dispatcher */, {TOOLTIP_ACKNOWLEDGE: TOOLTIP_ACKNOWLEDGE,
|
||||
TOOLTIP_SHOW_ATTEMPT: TOOLTIP_SHOW_ATTEMPT});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/tooltip/TooltipStore.tsx');
|
||||
exports.default = set;
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_82637() { // fn#82637, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10933:170, offset: 0x01efcee9, size: 98 bytes, params: 1, frame: 18
|
||||
var Boolean;
|
||||
var prototype;
|
||||
var valueOf;
|
||||
var call;
|
||||
var Reflect;
|
||||
var construct;
|
||||
var closure;
|
||||
var value;
|
||||
var error;
|
||||
try {
|
||||
Boolean = global.Boolean;
|
||||
prototype = Boolean.prototype;
|
||||
valueOf = prototype.valueOf;
|
||||
call = valueOf.call;
|
||||
Reflect = global.Reflect;
|
||||
construct = Reflect.construct;
|
||||
Boolean = global.Boolean;
|
||||
closure = function() {
|
||||
};
|
||||
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
|
||||
value = Reflect.apply(call, valueOf, [value]);
|
||||
var result = !value;
|
||||
} catch (error) {
|
||||
}
|
||||
return (_isNativeReflectConstruct_82637_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function _fun82640(a0) { // fn#82640, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10933:389, offset: 0x01efcf4b, size: 72 bytes, params: 2, frame: 15
|
||||
const closure = TooltipStore;
|
||||
env0_6(closure, a0);
|
||||
return env0_3(closure, [{key: 'initialize', value: function() {
|
||||
var r5;
|
||||
var items;
|
||||
var property = require(dependencyMap[6]).Storage;
|
||||
var ACKNOWLEDGED_TOOLTIPS_KEY = StorageKeys.ACKNOWLEDGED_TOOLTIPS_KEY;
|
||||
r5 = property.get(ACKNOWLEDGED_TOOLTIPS_KEY, []) ?? [];
|
||||
property = global.Set;
|
||||
items = [];
|
||||
arraySpread(items, r5, 0, r5);
|
||||
env1_9 = apply(property, items, 0);
|
||||
}}]);
|
||||
}
|
||||
|
||||
function TOOLTIP_ACKNOWLEDGE(a0) { // fn#82645, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10933:952, offset: 0x01efd0d9, size: 100 bytes, params: 2, frame: 15
|
||||
const binding = env0_9;
|
||||
if (binding != null) {
|
||||
binding.add(a0.tooltip);
|
||||
}
|
||||
const Storage = (require(587) /* metro dependency 587: Storage */).Storage;
|
||||
const set = Storage.set;
|
||||
const ACKNOWLEDGED_TOOLTIPS_KEY = StorageKeys.ACKNOWLEDGED_TOOLTIPS_KEY;
|
||||
const Array = global.Array;
|
||||
Reflect.apply(set, Storage, [ACKNOWLEDGED_TOOLTIPS_KEY, Array(env0_9)]);
|
||||
}
|
||||
|
||||
function TOOLTIP_SHOW_ATTEMPT({tooltip, ignoreMaxShownLimit}) { // fn#82646, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10933:1072, offset: 0x01efd13d, size: 96 bytes, params: 2, frame: 13
|
||||
let binding = env0_8;
|
||||
if (binding.has(tooltip)) {
|
||||
return false;
|
||||
}
|
||||
binding = env0_9;
|
||||
if (binding.has(tooltip)) {
|
||||
return false;
|
||||
}
|
||||
if (ignoreMaxShownLimit || env0_8.size < 1) {
|
||||
env0_8.add(tooltip);
|
||||
}
|
||||
}
|
||||
|
||||
function TooltipStore(a0) { // fn#82641, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10933:401, offset: 0x01efcf93, size: 156 bytes, params: 2, frame: 20
|
||||
var r0;
|
||||
var Reflect;
|
||||
let value = copyRestArgs(0, undefined);
|
||||
let binding = env1_2;
|
||||
binding(this, TooltipStore);
|
||||
const items2 = [];
|
||||
arraySpread(items2, value, 0, items2);
|
||||
value = env1_5(TooltipStore);
|
||||
binding = env1_4;
|
||||
if (_isNativeReflectConstruct_82637()) {
|
||||
Reflect = global.Reflect;
|
||||
value = Reflect.construct(value, items2, env1_5(this).constructor);
|
||||
r0 = value;
|
||||
} else {
|
||||
value = value.apply(this, items2);
|
||||
r0 = value;
|
||||
}
|
||||
value = binding(this, r0);
|
||||
value.canShowTooltip = canShowTooltip;
|
||||
value.hasShownTooltip = hasShownTooltip;
|
||||
return value;
|
||||
}
|
||||
|
||||
function canShowTooltip(a0) { // fn#82642, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10933:640, owner: TooltipStore.canShowTooltip, offset: 0x01efd02f, size: 42 bytes, params: 2, frame: 12
|
||||
const value = environment.__proto__.__proto__;
|
||||
return env2_8.has(a0) && !env2_9.has(a0);
|
||||
}
|
||||
|
||||
function hasShownTooltip(a0) { // fn#82643, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10933:681, owner: TooltipStore.hasShownTooltip, offset: 0x01efd059, size: 22 bytes, params: 2, frame: 11
|
||||
return env2_8.has(a0);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,36 @@
|
||||
/* Metro module 10746; source: modules/tooltip/useCanShowTooltip.tsx; dependencies: [31, 10747, 566, 10748, 2] */
|
||||
function _fun82632(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#82632, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10932:6, offset: 0x01efcc0e, size: 137 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importAll(31) /* metro dependency 31 */;
|
||||
const tooltipStore = importDefault(10747) /* metro dependency 10747: TooltipStore */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/tooltip/useCanShowTooltip.tsx');
|
||||
exports.useCanShowTooltip = useCanShowTooltip;
|
||||
}
|
||||
|
||||
function useCanShowTooltip(a0) { // fn#82633, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10932:207, offset: 0x01efcc97, size: 130 bytes, params: 2, frame: 18
|
||||
const value = a1;
|
||||
const value2 = a2;
|
||||
const env0_0 = a0;
|
||||
const r6 = value !== undefined ? value : false;
|
||||
const r7 = !(value2 !== undefined) || value2;
|
||||
const value3 = (require(566) /* metro dependency 566: flux */).useStateFromStores([TooltipStore], _fun82634);
|
||||
env0_3.useEffect(_fun82635, [r7, r6, a0]);
|
||||
return value3;
|
||||
}
|
||||
|
||||
function _fun82634() { // fn#82634, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10932:261, offset: 0x01efcd19, size: 34 bytes, params: 1, frame: 12
|
||||
return TooltipStore.canShowTooltip(env0_0) && env0_2;
|
||||
}
|
||||
|
||||
function _fun82635() { // fn#82635, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10932:310, offset: 0x01efcd3b, size: 59 bytes, params: 1, frame: 13
|
||||
var value2;
|
||||
var defaultImport;
|
||||
if (env0_2) {
|
||||
value2 = environment.__proto__;
|
||||
defaultImport = importDefault(10748) /* metro dependency 10748: TooltipActionCreators */;
|
||||
defaultImport.attemptToShowTooltip(env0_0, env0_1);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user