51 lines
1.7 KiB
TypeScript
51 lines
1.7 KiB
TypeScript
/* Metro module 5279; source: utils/native/StyleSheetUtils.tsx; dependencies: [2] */
|
|
function _fun46918(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#46918, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5457:6, offset: 0x011b2e2f, size: 96 bytes, params: 8, frame: 16
|
|
var object2;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
object2 = {};
|
|
object2.getStyleProp = getStyleProp;
|
|
(require(2) /* metro dependency 2 */).fileFinishedImporting('utils/native/StyleSheetUtils.tsx');
|
|
exports.default = object2;
|
|
}
|
|
|
|
function getStyleProp(a0, a1) { // fn#46919, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5457:113, offset: 0x011b2e8f, size: 116 bytes, params: 3, frame: 18
|
|
var r4;
|
|
var value;
|
|
if (a1 == null) {
|
|
return undefined;
|
|
}
|
|
if (a1 === '') {
|
|
return undefined;
|
|
}
|
|
const Array = global.Array;
|
|
if (Array.isArray(a0)) {
|
|
value = a0.length - 1;
|
|
if (value >= 0) {
|
|
r4 = value;
|
|
loopExit7: while (true) {
|
|
value = getStyleProp(a0[r4], a1);
|
|
if (value != null) {
|
|
return value;
|
|
}
|
|
value = typeof r4 === 'bigint' ? r4 - 1n : +r4 - 1;
|
|
if (value >= 0) {
|
|
r4 = value;
|
|
continue;
|
|
}
|
|
break loopExit7;
|
|
}
|
|
return undefined;
|
|
}
|
|
return undefined;
|
|
}
|
|
if (a0 == null) {
|
|
return undefined;
|
|
}
|
|
if (typeof a0 !== 'object') {
|
|
return undefined;
|
|
}
|
|
return a0[a1];
|
|
}
|
|
|