Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,182 @@
|
||||
/* Metro module 7220; source: modules/poggermode/PoggermodeUtils.tsx; dependencies: [7073, 696, 2] */
|
||||
function _fun57748(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#57748, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7398:6, offset: 0x016b5265, size: 321 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const poggermodeConstantsModule = require(7073) /* metro dependency 7073: PoggermodeConstants */;
|
||||
const env0_2 = poggermodeConstantsModule.ShakeLevel;
|
||||
const env0_3 = poggermodeConstantsModule.SHAKE_STEPS;
|
||||
const env0_4 = poggermodeConstantsModule.SHAKE_STEP_DIVIDER;
|
||||
items = [[1, 0.001], [25, 0.3], [100, 0.5], [250, 0.8], [500, 0.9], [2500, 0.95], [9001, 1]];
|
||||
const env0_6 = items.map(function(a0) {
|
||||
var iterator = a0[Symbol.iterator]();
|
||||
var item2 = iterator.next();
|
||||
var item = item2.value;
|
||||
item2 = item2.done ? undefined : iterator;
|
||||
var value = undefined;
|
||||
var value2 = item2 === value;
|
||||
var r0 = value2 ? value : item;
|
||||
if (!value2) {
|
||||
item2.return();
|
||||
}
|
||||
return r0;
|
||||
});
|
||||
const env0_7 = items.map(function(a0) {
|
||||
var r0;
|
||||
var r1;
|
||||
var r2;
|
||||
var item3;
|
||||
var value3;
|
||||
var iterator = a0[Symbol.iterator]();
|
||||
var iterator2 = iterator.next;
|
||||
var item2 = Reflect.apply(iterator2, iterator, []);
|
||||
var item = item2.value;
|
||||
item2 = item2.done ? undefined : iterator;
|
||||
var value = undefined;
|
||||
var value2 = item2 === value;
|
||||
if (value2) {
|
||||
r0 = value;
|
||||
r1 = item2;
|
||||
r2 = value2;
|
||||
} else {
|
||||
item3 = Reflect.apply(iterator2, item2, []);
|
||||
item = item3.value;
|
||||
item3 = item3.done ? undefined : item2;
|
||||
value3 = item3 === value;
|
||||
if (value3) {
|
||||
r0 = value;
|
||||
r1 = item3;
|
||||
r2 = value3;
|
||||
} else {
|
||||
r0 = item;
|
||||
r1 = item3;
|
||||
r2 = value3;
|
||||
}
|
||||
}
|
||||
if (!r2) {
|
||||
r1.return();
|
||||
}
|
||||
return r0;
|
||||
});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/poggermode/PoggermodeUtils.tsx');
|
||||
exports.getComboShakeIntensity = getComboShakeIntensity;
|
||||
exports.getComboPercentage = getComboPercentage;
|
||||
exports.getComboStyles = getComboStyles;
|
||||
exports.getComboScore = function({value, multiplier}) {
|
||||
return value * (multiplier ?? 1);
|
||||
};
|
||||
}
|
||||
|
||||
function getStepwiseValue({multiplier, value = 1}, a1) { // fn#57749, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7398:177, offset: 0x016b53a6, size: 155 bytes, params: 3, frame: 21
|
||||
var r6;
|
||||
var r7;
|
||||
var item3;
|
||||
var value5;
|
||||
let value = a2;
|
||||
const iterator = a1[Symbol.iterator]();
|
||||
const iterator2 = iterator.next;
|
||||
let item2 = Reflect.apply(iterator2, iterator, []);
|
||||
let item = item2.value;
|
||||
item2 = item2.done ? undefined : iterator;
|
||||
const value4 = item2 === undefined;
|
||||
const r3 = value4 ? undefined : item;
|
||||
if (value4) {
|
||||
r6 = item2;
|
||||
r7 = value4;
|
||||
} else {
|
||||
item3 = Reflect.apply(iterator2, item2, []);
|
||||
item = item3.value;
|
||||
item3 = item3.done ? undefined : item2;
|
||||
value5 = item3 === undefined;
|
||||
if (value5) {
|
||||
r6 = item3;
|
||||
r7 = value5;
|
||||
} else {
|
||||
r6 = item3;
|
||||
r7 = value5;
|
||||
}
|
||||
}
|
||||
if (!r7) {
|
||||
r6.return();
|
||||
}
|
||||
value = value * multiplier;
|
||||
if (value <= 0) {
|
||||
return 0;
|
||||
}
|
||||
value = r3.reduce(_fun57750, 0);
|
||||
const Math = global.Math;
|
||||
return Math.min(value, value);
|
||||
}
|
||||
|
||||
function getComboShakeIntensity(a0) { // fn#57753, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7398:618, offset: 0x016b54c3, size: 75 bytes, params: 2, frame: 16
|
||||
const value = a1;
|
||||
const r1 = value !== undefined ? value : ShakeLevel.LEVEL_3;
|
||||
return getStepwiseValue(a0, [SHAKE_STEPS[r1], SHAKE_STEP_DIVIDER[r1]], 100000);
|
||||
}
|
||||
|
||||
function getComboPercentage(a0) { // fn#57754, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7398:692, offset: 0x016b550e, size: 44 bytes, params: 2, frame: 15
|
||||
return getStepwiseValue(a0, [env0_6, env0_7], 1);
|
||||
}
|
||||
|
||||
function getComboStyles(a0) { // fn#57755, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7398:740, offset: 0x016b553a, size: 319 bytes, params: 2, frame: 14
|
||||
var r0;
|
||||
var object2;
|
||||
if (a0 === 1) {
|
||||
object2 = {};
|
||||
object2.color = (require(696) /* metro dependency 696: shimsNative */).unsafe_getRawColor('BRAND_500');
|
||||
r0 = object2;
|
||||
} else if (a0 === 2) {
|
||||
object2 = {};
|
||||
object2.color = (require(696) /* metro dependency 696: shimsNative */).unsafe_getRawColor('GREEN_360');
|
||||
r0 = object2;
|
||||
} else if (a0 === 3) {
|
||||
object2 = {};
|
||||
object2.color = (require(696) /* metro dependency 696: shimsNative */).unsafe_getRawColor('GREEN_360');
|
||||
r0 = object2;
|
||||
} else if (a0 === 4) {
|
||||
object2 = {};
|
||||
object2.color = (require(696) /* metro dependency 696: shimsNative */).unsafe_getRawColor('YELLOW_300');
|
||||
object2.square = true;
|
||||
r0 = object2;
|
||||
} else if (a0 === 5) {
|
||||
object2 = {};
|
||||
object2.color = (require(696) /* metro dependency 696: shimsNative */).unsafe_getRawColor('YELLOW_300');
|
||||
object2.square = true;
|
||||
r0 = object2;
|
||||
} else if (a0 === 6) {
|
||||
object2 = {};
|
||||
object2.color = (require(696) /* metro dependency 696: shimsNative */).unsafe_getRawColor('RED_400');
|
||||
object2.square = true;
|
||||
r0 = object2;
|
||||
} else {
|
||||
object2 = {};
|
||||
object2.color = (require(696) /* metro dependency 696: shimsNative */).unsafe_getRawColor('ORANGE_345');
|
||||
object2.flair = true;
|
||||
r0 = object2;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun57750(a0, a1, a2) { // fn#57750, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7398:257, offset: 0x016b5441, size: 130 bytes, params: 4, frame: 7
|
||||
var property;
|
||||
var binding;
|
||||
var property2;
|
||||
var property3;
|
||||
let value = a0;
|
||||
if (env0_2 > a1) {
|
||||
property = env0_1[a2];
|
||||
value = a2 + 1;
|
||||
if (value === env0_0.length) {
|
||||
return env0_1[a2];
|
||||
}
|
||||
binding = env0_0;
|
||||
property2 = binding[a2 + 1];
|
||||
binding = env0_1;
|
||||
property3 = binding[a2 + 1];
|
||||
value = env0_2 - a1;
|
||||
value /= property2 - a1;
|
||||
return value * (property3 - property) + property;
|
||||
}
|
||||
return env0_2 !== a1 ? value : env0_1[a2];
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user