907 lines
30 KiB
React
907 lines
30 KiB
React
/* Metro module 1706; source: unknown; dependencies: [6, 7, 57, 1659, 1707, 1708, 1709, 1710, 1658] */
|
|
function _fun18601(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#18601, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1833:6, offset: 0x00e914f1, size: 249 bytes, params: 8, frame: 20
|
|
let env0_0 = require;
|
|
const isInlineStyleTransform = function(a0) {
|
|
var Array = global.Array;
|
|
var value = Array.isArray(a0);
|
|
return value ? a0.some(_fun18603) : !!value;
|
|
};
|
|
const closure = function(a0) {
|
|
var r0;
|
|
var env0_0 = a0;
|
|
var value = !!a0;
|
|
if (a0) {
|
|
value = global.Object.keys(a0);
|
|
value = value.some(_fun18605);
|
|
r0 = value;
|
|
} else {
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
};
|
|
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(57) /* metro dependency 57 */;
|
|
const closure2 = getInlinePropsUpdate;
|
|
const object3 = {};
|
|
object3.isSharedValue = (require(1659) /* metro dependency 1659 */).isSharedValue;
|
|
closure2.__closure = object3;
|
|
closure2.__workletHash = 14886679339062;
|
|
closure2.__initData = {code: "function getInlinePropsUpdate_Pnpm_InlinePropManagerTs1(inlineProps){const getInlinePropsUpdate_Pnpm_InlinePropManagerTs1=this._recur;const{isSharedValue}=this.__closure;const update={};for(const[key,styleValue]of Object.entries(inlineProps)){if(isSharedValue(styleValue)){update[key]=styleValue.value;}else if(Array.isArray(styleValue)){update[key]=styleValue.map(function(item){return getInlinePropsUpdate_Pnpm_InlinePropManagerTs1(item);});}else if(typeof styleValue==='object'){update[key]=getInlinePropsUpdate_Pnpm_InlinePropManagerTs1(styleValue);}else{update[key]=styleValue;}}return update;}"};
|
|
object = {code: 'function pnpm_InlinePropManagerTs2(){const{getInlinePropsUpdate,newInlineProps,updateProps,shareableViewDescriptors}=this.__closure;const update=getInlinePropsUpdate(newInlineProps);updateProps(shareableViewDescriptors,update);}'};
|
|
let value = _fun18608();
|
|
exports.hasInlineStyles = closure;
|
|
exports.getInlineStyle = getInlineStyle;
|
|
exports.InlinePropManager = value;
|
|
}
|
|
|
|
function isInlineStyleTransform(a0) { // fn#18602, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1833:126, offset: 0x00e915ea, size: 50 bytes, params: 2, frame: 12
|
|
const Array = global.Array;
|
|
const isArray = Array.isArray(a0);
|
|
return isArray ? a0.some(function(a0) {
|
|
return hasInlineStyles(a0);
|
|
}) : !!isArray;
|
|
}
|
|
|
|
function hasInlineStyles(a0) { // fn#18604, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1833:1192, offset: 0x00e9162f, size: 54 bytes, params: 2, frame: 13
|
|
var r0;
|
|
const env0_0 = a0;
|
|
let value = !!a0;
|
|
if (a0) {
|
|
value = global.Object.keys(a0);
|
|
value = value.some(_fun18605);
|
|
r0 = value;
|
|
} else {
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function getInlinePropsUpdate(a0) { // fn#18606, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1833:859, offset: 0x00e916b3, size: 236 bytes, params: 2, frame: 29
|
|
var r14;
|
|
var binding;
|
|
var value2;
|
|
var property;
|
|
var property2;
|
|
var property3;
|
|
var moduleValue;
|
|
var isSharedValue;
|
|
var isSharedValue2;
|
|
var Array;
|
|
var isArray;
|
|
var isArray2;
|
|
var value3;
|
|
var getInlinePropsUpdateBinding;
|
|
var inlinePropsUpdateBinding;
|
|
var map;
|
|
var closure;
|
|
var value5;
|
|
var value6;
|
|
var error;
|
|
const object2 = {};
|
|
const Object = global.Object;
|
|
const iterator = Object.entries(a0)[Symbol.iterator]();
|
|
const iterator2 = iterator.next;
|
|
let r2 = iterator;
|
|
let item2 = Reflect.apply(iterator2, r2, []);
|
|
let item = item2.value;
|
|
item2 = item2.done ? undefined : r2;
|
|
reducibleJoin2: while (true) {
|
|
if (item2 === undefined) {
|
|
return object2;
|
|
}
|
|
break reducibleJoin2;
|
|
}
|
|
reducibleLoop2: while (true) {
|
|
try {
|
|
binding = env0_4;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
value2 = binding(item, 2);
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
property = value2[0];
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
property2 = value2[1];
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
property3 = dependencyMap[3];
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
moduleValue = require(property3);
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
isSharedValue = moduleValue.isSharedValue;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
isSharedValue2 = Reflect.apply(isSharedValue, moduleValue, [property2]);
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
if (isSharedValue2) {
|
|
try {
|
|
value6 = property2.value;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
object2[property] = value6;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
r2 = item2;
|
|
} else {
|
|
try {
|
|
Array = global.Array;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
isArray = Array.isArray;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
isArray2 = Reflect.apply(isArray, Array, [property2]);
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
if (isArray2) {
|
|
try {
|
|
map = property2.map;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
closure = function(a0) {
|
|
return getInlinePropsUpdate(a0);
|
|
};
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
value5 = Reflect.apply(map, property2, [closure]);
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
object2[property] = value5;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
r2 = item2;
|
|
} else {
|
|
try {
|
|
value3 = typeof property2 === 'object';
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
if (value3) {
|
|
try {
|
|
getInlinePropsUpdateBinding = getInlinePropsUpdate;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
inlinePropsUpdateBinding = getInlinePropsUpdateBinding(property2);
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
r14 = inlinePropsUpdateBinding;
|
|
} else {
|
|
r14 = property2;
|
|
}
|
|
try {
|
|
object2[property] = r14;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
r2 = item2;
|
|
}
|
|
}
|
|
item2 = Reflect.apply(iterator2, r2, []);
|
|
item = item2.value;
|
|
item2 = item2.done ? undefined : r2;
|
|
if (item2 === undefined) {
|
|
break reducibleLoop2;
|
|
}
|
|
continue reducibleLoop2;
|
|
}
|
|
return object2;
|
|
}
|
|
|
|
function _fun18608() { // fn#18608, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1833:1600, offset: 0x00e9179f, size: 80 bytes, params: 1, frame: 15
|
|
return env0_3(InlinePropManager, [{key: 'attachInlineProps', value: value_18610}, {key: 'detachInlineProps',
|
|
value: value_18614}]);
|
|
}
|
|
|
|
function getInlineStyle(a0, a1) { // fn#18615, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1833:3393, offset: 0x00e91c3c, size: 200 bytes, params: 3, frame: 26
|
|
var r14;
|
|
var r13;
|
|
var binding;
|
|
var value2;
|
|
var property;
|
|
var property2;
|
|
var property3;
|
|
var moduleValue;
|
|
var isSharedValue;
|
|
var isSharedValue2;
|
|
var value3;
|
|
var isInlineStyleTransformBinding;
|
|
var isInlineStyleTransform2;
|
|
var error;
|
|
if (a1) {
|
|
return getInlinePropsUpdate_2(a0);
|
|
}
|
|
const object2 = {};
|
|
const Object = global.Object;
|
|
const iterator = Object.entries(a0)[Symbol.iterator]();
|
|
const iterator2 = iterator.next;
|
|
let r4 = iterator;
|
|
let item2 = Reflect.apply(iterator2, r4, []);
|
|
let item = item2.value;
|
|
item2 = item2.done ? undefined : r4;
|
|
reducibleJoin3: while (true) {
|
|
if (item2 === undefined) {
|
|
return object2;
|
|
}
|
|
break reducibleJoin3;
|
|
}
|
|
reducibleLoop3: while (true) {
|
|
try {
|
|
binding = env0_4;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
value2 = binding(item, 2);
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
property = value2[0];
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
property2 = value2[1];
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
property3 = dependencyMap[3];
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
moduleValue = require(property3);
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
isSharedValue = moduleValue.isSharedValue;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
isSharedValue2 = Reflect.apply(isSharedValue, moduleValue, [property2]);
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
reducibleJoin20: while (true) {
|
|
if (isSharedValue2) {
|
|
r13 = isSharedValue2;
|
|
break reducibleJoin20;
|
|
}
|
|
value3 = property === 'transform';
|
|
reducibleJoin19: while (true) {
|
|
if (value3) {
|
|
try {
|
|
isInlineStyleTransformBinding = isInlineStyleTransform;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
isInlineStyleTransform2 = isInlineStyleTransformBinding(property2);
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
r14 = isInlineStyleTransform2;
|
|
break reducibleJoin19;
|
|
}
|
|
r14 = value3;
|
|
break reducibleJoin19;
|
|
}
|
|
r13 = r14;
|
|
break reducibleJoin20;
|
|
}
|
|
reducibleJoin2: while (true) {
|
|
if (r13) {
|
|
r4 = item2;
|
|
break reducibleJoin2;
|
|
}
|
|
try {
|
|
object2[property] = property2;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
r4 = item2;
|
|
break reducibleJoin2;
|
|
}
|
|
item2 = Reflect.apply(iterator2, r4, []);
|
|
item = item2.value;
|
|
item2 = item2.done ? undefined : r4;
|
|
if (item2 === undefined) {
|
|
break reducibleLoop3;
|
|
}
|
|
continue reducibleLoop3;
|
|
}
|
|
return object2;
|
|
}
|
|
|
|
function _fun18605(a0) { // fn#18605, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1833:1252, offset: 0x00e91665, size: 78 bytes, params: 2, frame: 14
|
|
const property = env0_0[a0];
|
|
const value = environment.__proto__;
|
|
return (require(1659) /* metro dependency 1659 */).isSharedValue(property) || a0 === 'transform' && isInlineStyleTransform(property);
|
|
}
|
|
|
|
function InlinePropManager() { // fn#18609, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1833:1621, offset: 0x00e917ef, size: 49 bytes, params: 1, frame: 13
|
|
env1_2(this, InlinePropManager);
|
|
this._inlinePropsViewDescriptors = null;
|
|
this._inlinePropsMapperId = null;
|
|
this._inlineProps = {};
|
|
}
|
|
|
|
function value_18610(a0, a1) { // fn#18610, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1833:1800, offset: 0x00e91820, size: 591 bytes, params: 3, frame: 25
|
|
var environment;
|
|
var r8;
|
|
var r4;
|
|
var r5;
|
|
var props;
|
|
var value;
|
|
var _inlineProps;
|
|
var Object;
|
|
var keys;
|
|
var length;
|
|
var length2;
|
|
var value2;
|
|
var iterator;
|
|
var iterator2;
|
|
var item;
|
|
var item2;
|
|
var value3;
|
|
var property;
|
|
var property2;
|
|
var value4;
|
|
var error;
|
|
var _inlinePropsViewDescriptors;
|
|
var value5;
|
|
var moduleValue;
|
|
var makeViewDescriptorsSet;
|
|
var viewTag;
|
|
var viewName;
|
|
var shadowNodeWrapper;
|
|
var viewConfig;
|
|
var moduleValue2;
|
|
var adaptViewConfig;
|
|
var add;
|
|
var object2;
|
|
var shareableViewDescriptors;
|
|
var closure;
|
|
var value6;
|
|
var updateProps;
|
|
var _inlinePropsMapperId;
|
|
var moduleValue3;
|
|
var stopMapper;
|
|
var moduleValue4;
|
|
var startMapper;
|
|
var values;
|
|
exceptionSkip9: while (true) {
|
|
exceptionLanding9: while (true) {
|
|
props = a0.props;
|
|
value = extractSharedValuesMapFromProps(props);
|
|
var env0_0 = value;
|
|
_inlineProps = this._inlineProps;
|
|
Object = global.Object;
|
|
keys = Object.keys;
|
|
length = Reflect.apply(keys, Object, [value]).length;
|
|
Object = global.Object;
|
|
keys = Object.keys;
|
|
length2 = Reflect.apply(keys, Object, [_inlineProps]).length;
|
|
value2 = true;
|
|
if (length !== length2) {
|
|
r4 = value2;
|
|
} else {
|
|
Object = global.Object;
|
|
keys = Object.keys;
|
|
iterator = Reflect.apply(keys, Object, [value])[Symbol.iterator]();
|
|
iterator2 = iterator.next;
|
|
r8 = iterator;
|
|
loopExit2: while (true) {
|
|
item2 = Reflect.apply(iterator2, r8, []);
|
|
item = item2.value;
|
|
item2 = item2.done ? undefined : r8;
|
|
value3 = false;
|
|
if (item2 === undefined) {
|
|
r4 = value3;
|
|
break loopExit2;
|
|
}
|
|
try {
|
|
property = value[item];
|
|
} catch (error) {
|
|
break exceptionLanding9;
|
|
}
|
|
try {
|
|
property2 = _inlineProps[item];
|
|
} catch (error) {
|
|
break exceptionLanding9;
|
|
}
|
|
try {
|
|
value4 = property !== property2;
|
|
} catch (error) {
|
|
break exceptionLanding9;
|
|
}
|
|
if (value4) {
|
|
item2.return();
|
|
r4 = value2;
|
|
break loopExit2;
|
|
}
|
|
r8 = item2;
|
|
continue;
|
|
}
|
|
}
|
|
if (r4) {
|
|
_inlinePropsViewDescriptors = this._inlinePropsViewDescriptors;
|
|
if (_inlinePropsViewDescriptors) {
|
|
continue;
|
|
}
|
|
value5 = environment.__proto__;
|
|
moduleValue = require(1708) /* metro dependency 1708 */;
|
|
makeViewDescriptorsSet = moduleValue.makeViewDescriptorsSet;
|
|
this._inlinePropsViewDescriptors = Reflect.apply(makeViewDescriptorsSet, moduleValue, []);
|
|
viewTag = a1.viewTag;
|
|
viewName = a1.viewName;
|
|
shadowNodeWrapper = a1.shadowNodeWrapper;
|
|
viewConfig = a1.viewConfig;
|
|
Object = global.Object;
|
|
length = Object.keys(value).length;
|
|
if (length) {
|
|
r5 = viewConfig;
|
|
continue;
|
|
}
|
|
r5 = length;
|
|
continue;
|
|
if (!r5) {
|
|
continue;
|
|
}
|
|
moduleValue2 = require(1709) /* metro dependency 1709 */;
|
|
adaptViewConfig = moduleValue2.adaptViewConfig;
|
|
Reflect.apply(adaptViewConfig, moduleValue2, [viewConfig]);
|
|
_inlinePropsViewDescriptors = this._inlinePropsViewDescriptors;
|
|
add = _inlinePropsViewDescriptors.add;
|
|
Reflect.apply(add, _inlinePropsViewDescriptors, [{tag: viewTag, name: viewName,
|
|
shadowNodeWrapper: shadowNodeWrapper}]);
|
|
_inlinePropsViewDescriptors = this._inlinePropsViewDescriptors;
|
|
shareableViewDescriptors = _inlinePropsViewDescriptors.shareableViewDescriptors;
|
|
var env0_1 = shareableViewDescriptors;
|
|
closure = pnpm_InlinePropManagerTs2;
|
|
object2 = {};
|
|
value6 = environment.__proto__;
|
|
object2.getInlinePropsUpdate = getInlinePropsUpdate_2;
|
|
object2.newInlineProps = value;
|
|
updateProps = (require(1710) /* metro dependency 1710 */).updateProps;
|
|
object2.updateProps = updateProps;
|
|
object2.shareableViewDescriptors = shareableViewDescriptors;
|
|
closure.__closure = object2;
|
|
closure.__workletHash = 4459550727912;
|
|
closure.__initData = env1_7;
|
|
this._inlineProps = value;
|
|
_inlinePropsMapperId = this._inlinePropsMapperId;
|
|
if (!_inlinePropsMapperId) {
|
|
continue;
|
|
}
|
|
moduleValue3 = require(1658) /* metro dependency 1658 */;
|
|
stopMapper = moduleValue3.stopMapper;
|
|
_inlinePropsMapperId = this._inlinePropsMapperId;
|
|
Reflect.apply(stopMapper, moduleValue3, [_inlinePropsMapperId]);
|
|
this._inlinePropsMapperId = null;
|
|
Object = global.Object;
|
|
keys = Object.keys;
|
|
length = Reflect.apply(keys, Object, [value]).length;
|
|
if (length) {
|
|
moduleValue4 = require(1658) /* metro dependency 1658 */;
|
|
startMapper = moduleValue4.startMapper;
|
|
Object = global.Object;
|
|
values = Object.values;
|
|
this._inlinePropsMapperId = Reflect.apply(startMapper, moduleValue4, [closure, Reflect.apply(values,
|
|
Object,
|
|
[value])]);
|
|
break;
|
|
}
|
|
break;
|
|
}
|
|
return undefined;
|
|
break exceptionSkip9;
|
|
}
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
break exceptionSkip9;
|
|
}
|
|
}
|
|
|
|
function value_18614() { // fn#18614, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1833:3233, offset: 0x00e91c02, size: 58 bytes, params: 1, frame: 12
|
|
var value;
|
|
if (this._inlinePropsMapperId) {
|
|
value = environment.__proto__;
|
|
value = require(1658) /* metro dependency 1658 */;
|
|
value.stopMapper(this._inlinePropsMapperId);
|
|
}
|
|
}
|
|
|
|
function extractSharedValuesMapFromProps(a0) { // fn#18611, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1833:1840, owner: value_18610.extractSharedValuesMapFromProps, offset: 0x00e91a6f, size: 161 bytes, params: 2, frame: 27
|
|
var r10;
|
|
var r15;
|
|
var propertyName;
|
|
var propertyName2;
|
|
var property;
|
|
var moduleValue;
|
|
var isSharedValue;
|
|
var moduleValue2;
|
|
var flattenArray;
|
|
var style;
|
|
var value2;
|
|
const object2 = {};
|
|
for (propertyName in a0) {
|
|
property = a0[propertyName];
|
|
if (propertyName === 'style') {
|
|
moduleValue2 = require(1707) /* metro dependency 1707 */;
|
|
flattenArray = moduleValue2.flattenArray;
|
|
style = a0.style;
|
|
if (style != null) {
|
|
r15 = style;
|
|
continue;
|
|
}
|
|
value2 = Reflect.apply(flattenArray, moduleValue2, [[]]);
|
|
value2.forEach(_fun18612);
|
|
r10 = propertyName2;
|
|
} else {
|
|
moduleValue = require(1659) /* metro dependency 1659 */;
|
|
isSharedValue = moduleValue.isSharedValue;
|
|
if (!Reflect.apply(isSharedValue, moduleValue, [property])) {
|
|
r10 = propertyName2;
|
|
continue;
|
|
}
|
|
object2[propertyName] = property;
|
|
r10 = propertyName2;
|
|
}
|
|
}
|
|
return object2;
|
|
}
|
|
|
|
function pnpm_InlinePropManagerTs2() { // fn#18613, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1833:2750, owner: value_18610.pnpm_InlinePropManagerTs2, offset: 0x00e91bc7, size: 59 bytes, params: 1, frame: 15
|
|
let value = environment.__proto__.__proto__;
|
|
const inlinePropsUpdate_2 = getInlinePropsUpdate_2(env0_0);
|
|
value = require(1710) /* metro dependency 1710 */;
|
|
value.updateProps(shareableViewDescriptors, inlinePropsUpdate_2);
|
|
}
|
|
|
|
function _fun18612(a0) { // fn#18612, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1833:1988, offset: 0x00e91b10, size: 183 bytes, params: 2, frame: 25
|
|
var r2;
|
|
var r13;
|
|
var r12;
|
|
var Object;
|
|
var entries;
|
|
var iterator;
|
|
var iterator2;
|
|
var value;
|
|
var value2;
|
|
var item;
|
|
var item2;
|
|
var binding;
|
|
var value3;
|
|
var property;
|
|
var property2;
|
|
var property3;
|
|
var moduleValue;
|
|
var isSharedValue;
|
|
var isSharedValue2;
|
|
var value4;
|
|
var isInlineStyleTransformBinding;
|
|
var isInlineStyleTransform2;
|
|
var error;
|
|
exceptionSkip24: while (true) {
|
|
exceptionLanding24: while (true) {
|
|
if (a0) {
|
|
Object = global.Object;
|
|
entries = Object.entries;
|
|
iterator = Reflect.apply(entries, Object, [a0])[Symbol.iterator]();
|
|
iterator2 = iterator.next;
|
|
value = environment;
|
|
value2 = environment.__proto__.__proto__.__proto__;
|
|
r2 = iterator;
|
|
while (true) {
|
|
item2 = Reflect.apply(iterator2, r2, []);
|
|
item = item2.value;
|
|
item2 = item2.done ? undefined : r2;
|
|
if (item2 === undefined) {
|
|
break;
|
|
}
|
|
try {
|
|
binding = env3_4;
|
|
} catch (error) {
|
|
break exceptionLanding24;
|
|
}
|
|
try {
|
|
value3 = binding(item, 2);
|
|
} catch (error) {
|
|
break exceptionLanding24;
|
|
}
|
|
try {
|
|
property = value3[0];
|
|
} catch (error) {
|
|
break exceptionLanding24;
|
|
}
|
|
try {
|
|
property2 = value3[1];
|
|
} catch (error) {
|
|
break exceptionLanding24;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
break exceptionLanding24;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
break exceptionLanding24;
|
|
}
|
|
try {
|
|
property3 = dependencyMap[3];
|
|
} catch (error) {
|
|
break exceptionLanding24;
|
|
}
|
|
try {
|
|
moduleValue = require(property3);
|
|
} catch (error) {
|
|
break exceptionLanding24;
|
|
}
|
|
try {
|
|
isSharedValue = moduleValue.isSharedValue;
|
|
} catch (error) {
|
|
break exceptionLanding24;
|
|
}
|
|
try {
|
|
isSharedValue2 = Reflect.apply(isSharedValue, moduleValue, [property2]);
|
|
} catch (error) {
|
|
break exceptionLanding24;
|
|
}
|
|
if (isSharedValue2) {
|
|
r12 = isSharedValue2;
|
|
continue;
|
|
}
|
|
value4 = property === 'transform';
|
|
if (!value4) {
|
|
r13 = value4;
|
|
continue;
|
|
}
|
|
try {
|
|
isInlineStyleTransformBinding = isInlineStyleTransform;
|
|
} catch (error) {
|
|
break exceptionLanding24;
|
|
}
|
|
try {
|
|
isInlineStyleTransform2 = isInlineStyleTransformBinding(property2);
|
|
} catch (error) {
|
|
break exceptionLanding24;
|
|
}
|
|
r13 = isInlineStyleTransform2;
|
|
r12 = r13;
|
|
if (!r12) {
|
|
r2 = item2;
|
|
continue;
|
|
}
|
|
try {
|
|
binding = env0_0;
|
|
} catch (error) {
|
|
break exceptionLanding24;
|
|
}
|
|
try {
|
|
binding[property] = property2;
|
|
} catch (error) {
|
|
break exceptionLanding24;
|
|
}
|
|
r2 = item2;
|
|
}
|
|
}
|
|
return undefined;
|
|
break exceptionSkip24;
|
|
}
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
break exceptionSkip24;
|
|
}
|
|
}
|
|
|