Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,61 @@
|
||||
/* Metro module 13041; source: modules/rpc/server/commands/setOrientationLockState.tsx; dependencies: [4237, 482, 8079, 694, 8076, 2] */
|
||||
function _fun99550(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#99550, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13231:6, offset: 0x021cdb28, size: 180 bytes, params: 8, frame: 19
|
||||
var object2;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = (require(4237) /* metro dependency 4237: Constants */).OrientationLockState;
|
||||
const constantsModule = require(482) /* metro dependency 482: Constants */;
|
||||
const RPCCommands = constantsModule.RPCCommands;
|
||||
const env0_3 = constantsModule.RPCErrors;
|
||||
object2 = {};
|
||||
const SET_ORIENTATION_LOCK_STATE = RPCCommands.SET_ORIENTATION_LOCK_STATE;
|
||||
object2[SET_ORIENTATION_LOCK_STATE] = {validation: validation_99551, handler: handler_99552};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/rpc/server/commands/setOrientationLockState.tsx');
|
||||
exports.default = object2;
|
||||
}
|
||||
|
||||
function validation_99551(a0) { // fn#99551, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13231:213, offset: 0x021cdbdc, size: 253 bytes, params: 2, frame: 20
|
||||
var value;
|
||||
const value3 = (importDefault(8079) /* metro dependency 8079: createRpcJoiSchemaObject */)(a0).required();
|
||||
const keys = value3.keys;
|
||||
const object2 = {};
|
||||
const value4 = a0.number();
|
||||
let valid = value4.valid;
|
||||
let UNLOCKED = OrientationLockState.UNLOCKED;
|
||||
let PORTRAIT = OrientationLockState.PORTRAIT;
|
||||
let LANDSCAPE = OrientationLockState.LANDSCAPE;
|
||||
object2.lock_state = Reflect.apply(valid, value4, [UNLOCKED, PORTRAIT, LANDSCAPE]).required();
|
||||
valid = a0.number().valid;
|
||||
UNLOCKED = OrientationLockState.UNLOCKED;
|
||||
PORTRAIT = OrientationLockState.PORTRAIT;
|
||||
LANDSCAPE = OrientationLockState.LANDSCAPE;
|
||||
value = Reflect.apply(valid, value, [UNLOCKED, PORTRAIT, LANDSCAPE]);
|
||||
value = value.allow(null);
|
||||
object2.picture_in_picture_lock_state = value.optional();
|
||||
valid = a0.number().valid;
|
||||
UNLOCKED = OrientationLockState.UNLOCKED;
|
||||
PORTRAIT = OrientationLockState.PORTRAIT;
|
||||
LANDSCAPE = OrientationLockState.LANDSCAPE;
|
||||
value = Reflect.apply(valid, value, [UNLOCKED, PORTRAIT, LANDSCAPE]);
|
||||
value = value.allow(null);
|
||||
object2.grid_lock_state = value.optional();
|
||||
return Reflect.apply(keys, value3, [object2]);
|
||||
}
|
||||
|
||||
function handler_99552({socket, args}) { // fn#99552, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13231:516, offset: 0x021cdcd9, size: 235 bytes, params: 2, frame: 21
|
||||
const lock_state = args.lock_state;
|
||||
const picture_in_picture_lock_state = args.picture_in_picture_lock_state;
|
||||
const grid_lock_state = args.grid_lock_state;
|
||||
const id = socket.application.id;
|
||||
if (id == null) {
|
||||
throw new (importDefault(8076) /* metro dependency 8076: RPCError */)({errorCode: RPCErrors.INVALID_COMMAND},
|
||||
'No application.');
|
||||
}
|
||||
let value = importDefault(694) /* metro dependency 694: Dispatcher */;
|
||||
value.dispatch({type: 'FRAME_SET_ORIENTATION_LOCK_STATE', applicationId: id, lockState: lock_state,
|
||||
pictureInPictureLockState: picture_in_picture_lock_state});
|
||||
value = importDefault(694) /* metro dependency 694: Dispatcher */;
|
||||
value.dispatch({type: 'EMBEDDED_ACTIVITY_SET_ORIENTATION_LOCK_STATE', applicationId: id, lockState: lock_state,
|
||||
pictureInPictureLockState: picture_in_picture_lock_state, gridLockState: grid_lock_state});
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user