Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,68 @@
|
||||
/* Metro module 3999; source: modules/client_themes/ClientThemesUtils.tsx; dependencies: [3965, 1313, 482, 696, 2] */
|
||||
function _fun32865(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#32865, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4157:6, offset: 0x010201aa, size: 223 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
let value = require(3965) /* metro dependency 3965: ClientThemesConstants */;
|
||||
const env0_2 = value.LEGACY_STANDARD_BACKGROUND_THEMES;
|
||||
const env0_3 = value.REFRESH_STANDARD_BACKGROUND_THEMES;
|
||||
value = require(1313) /* metro dependency 1313: ThemeConstants */;
|
||||
const env0_4 = value.PROTO_THEME_MAP_MOBILE;
|
||||
value.PROTO_THEME_MAP_WEB_REFRESH;
|
||||
const env0_5 = (require(482) /* metro dependency 482: Constants */).ThemeTypes;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/client_themes/ClientThemesUtils.tsx');
|
||||
exports.getThemeForColor = function(a0) {
|
||||
return a0.l <= 0.3 ? ThemeTypes.DARK : ThemeTypes.LIGHT;
|
||||
};
|
||||
exports.getLinearGradientForBackgroundGradient = function({angle, colors}) {
|
||||
var value = colors.map(_fun32868);
|
||||
value = value.join(', ');
|
||||
return 'linear-gradient(' + angle + 'deg, ' + value + ')';
|
||||
};
|
||||
exports.areThemesEqualForGradientThemes = areThemesEqualForGradientThemes;
|
||||
exports.getBaseTheme = function(a0) {
|
||||
return PROTO_THEME_MAP_MOBILE[a0];
|
||||
};
|
||||
exports.getThemeName = getThemeName;
|
||||
}
|
||||
|
||||
function getLinearGradientForBackgroundGradient({angle, colors}) { // fn#32867, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4157:471, offset: 0x010202bb, size: 87 bytes, params: 2, frame: 17
|
||||
let value = colors.map(_fun32868);
|
||||
value = value.join(', ');
|
||||
return 'linear-gradient(' + angle + 'deg, ' + value + ')';
|
||||
}
|
||||
|
||||
function areThemesEqualForGradientThemes(a0, a1) { // fn#32869, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4157:715, offset: 0x01020371, size: 87 bytes, params: 3, frame: 6
|
||||
var r1;
|
||||
var r0;
|
||||
const value = a0 === a1;
|
||||
if (value) {
|
||||
r0 = value;
|
||||
} else {
|
||||
r1 = a0 === ThemeTypes.DARK && a1 === ThemeTypes.DARKER;
|
||||
r1 = !r1 ? a0 === ThemeTypes.DARKER && a1 === ThemeTypes.DARK : r1;
|
||||
r0 = r1;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function getThemeName(a0, a1) { // fn#32871, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4157:867, offset: 0x010203c8, size: 81 bytes, params: 3, frame: 12
|
||||
var r1;
|
||||
const env0_0 = a0;
|
||||
let value = (a1 ? REFRESH_STANDARD_BACKGROUND_THEMES : LEGACY_STANDARD_BACKGROUND_THEMES).find(_fun32872);
|
||||
if (value == null) {
|
||||
r1 = undefined;
|
||||
} else {
|
||||
value = value.getName();
|
||||
r1 = value;
|
||||
}
|
||||
return r1 ?? '';
|
||||
}
|
||||
|
||||
function _fun32868({token, stop}) { // fn#32868, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4157:580, offset: 0x01020312, size: 95 bytes, params: 2, frame: 17
|
||||
let value = environment.__proto__;
|
||||
value = require(696) /* metro dependency 696: shimsNative */;
|
||||
value = value.unsafe_getResolvedRawColor(token, {saturation: 1});
|
||||
return '' + value + ' ' + stop + '%';
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user