Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,134 @@
|
||||
/* Metro module 14294; source: modules/screen_recording/native/ScreenRecordingActionSheet.tsx; dependencies: [31, 27, 14290, 33, 4501, 697, 4573, 4578, 4080, 5278, 5312, 6622, 6805, 2] */
|
||||
function _fun108135(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#108135, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14491:6, offset: 0x023161ea, size: 432 bytes, params: 8, frame: 22
|
||||
var object4;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
const env0_3 = (require(27) /* metro dependency 27 */).View;
|
||||
const env0_4 = (require(14290) /* metro dependency 14290: ScreenRecordingStore */).useScreenRecordingStore;
|
||||
let value = require(33) /* metro dependency 33 */;
|
||||
const env0_5 = value.jsx;
|
||||
const env0_6 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object4 = {};
|
||||
const object5 = {'justifyContent': 'center', 'alignItems': 'center'};
|
||||
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object5.gap = PX_16;
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object5.paddingVertical = PX_16;
|
||||
let PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object5.paddingHorizontal = PX_8;
|
||||
object5.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.xl;
|
||||
object4.container = object5;
|
||||
const object6 = {position: 'absolute'};
|
||||
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object6.top = PX_8;
|
||||
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object6.right = PX_8;
|
||||
object4.closeButton = object6;
|
||||
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object4.buttonContainer = {'display': 'flex', 'flexDirection': 'row', gap: PX_8};
|
||||
const env0_7 = Reflect.apply(createStyles, value, [object4]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/screen_recording/native/ScreenRecordingActionSheet.tsx');
|
||||
exports.default = ScreenRecordingActionSheet;
|
||||
}
|
||||
|
||||
function ScreenRecordingActionSheet() { // fn#108136, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14491:654, offset: 0x0231639a, size: 803 bytes, params: 1, frame: 33
|
||||
var object2;
|
||||
var container;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
var items3;
|
||||
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
|
||||
var view;
|
||||
const PressableOpacity = (require(5278) /* metro dependency 5278: Pressables */).PressableOpacity;
|
||||
var items2;
|
||||
var defaultImport;
|
||||
var view2;
|
||||
const value2 = undefined;
|
||||
const styles = useStyles();
|
||||
const value3 = useScreenRecordingStore(function(a0) {
|
||||
return a0.isUploading;
|
||||
});
|
||||
const value4 = useScreenRecordingStore(function(a0) {
|
||||
return a0.isCompleted;
|
||||
});
|
||||
const value5 = useScreenRecordingStore(function(a0) {
|
||||
return a0.currentStep;
|
||||
});
|
||||
const value6 = useScreenRecordingStore(function(a0) {
|
||||
return a0.currentSurveyConfig;
|
||||
});
|
||||
const env0_0 = useScreenRecordingStore(function(a0) {
|
||||
return a0.nextStep;
|
||||
});
|
||||
const env0_1 = useScreenRecordingStore(function(a0) {
|
||||
return a0.completeActionSheet;
|
||||
});
|
||||
const value7 = null;
|
||||
const steps = value7 == value6 ? value2 : value6.steps;
|
||||
let r2 = value7 != steps ? steps : [];
|
||||
const r19 = r2.length > value5 ? r2[value5] : value7;
|
||||
r2 = value7 == value6 ? value2 : value6.useIsStepCompleted(value5);
|
||||
let r15 = value7 != r2 && r2;
|
||||
const completedTitle = value7 == value6 ? value2 : value6.completedTitle;
|
||||
const r11 = value7 != completedTitle ? completedTitle : 'Complete';
|
||||
const completedInstructions = value7 == value6 ? value2 : value6.completedInstructions;
|
||||
const r18 = value7 != completedInstructions ? completedInstructions : 'Thanks for your feedback!';
|
||||
if (value7 != r19) {
|
||||
object2 = {};
|
||||
container = styles.container;
|
||||
object2.style = container;
|
||||
items3 = [<Text variant="heading-xl/bold">{r11}</Text>];
|
||||
items3[1] = <Text variant="text-md/normal">{r18}</Text>;
|
||||
items3[2] = <Button disabled={value3} text="Done" loading={value3} onPress={onPress_108143} />;
|
||||
view = <View {...object2}>{items3}</View>;
|
||||
object2 = {};
|
||||
container = styles.container;
|
||||
object2.style = container;
|
||||
items2 = [<PressableOpacity style={styles.closeButton} onPress={onPress_108144} accessibilityLabel="close">{((XSmallIcon) => <XSmallIcon size="md" color="text-default" />)((require(5312) /* metro dependency 5312: XSmallIcon */).XSmallIcon)}</PressableOpacity>];
|
||||
items2[1] = <Text variant="heading-xl/bold">{r19.title}</Text>;
|
||||
defaultImport = importDefault(6622) /* metro dependency 6622: MarkupUtils */;
|
||||
items2[2] = <Text variant="text-md/normal">{defaultImport.parse(r19.instructions)}</Text>;
|
||||
r15 = r15 ? value3 : !r15;
|
||||
items2[3] = <View style={styles.buttonContainer}><Button disabled={r15} text="Next" loading={value3} onPress={onPress_108145} /></View>;
|
||||
view2 = <View {...object2}>{items2}</View>;
|
||||
} else {
|
||||
if (value7 == value4) {
|
||||
return value7;
|
||||
}
|
||||
container = styles.container;
|
||||
items3 = [<Text variant="heading-xl/bold">{r11}</Text>];
|
||||
items3[1] = <Text variant="text-md/normal">{r18}</Text>;
|
||||
items3[2] = <Button disabled={value3} text="Done" loading={value3} onPress={onPress_108143} />;
|
||||
view = <View style={container}>{items3}</View>;
|
||||
container = styles.container;
|
||||
items2 = [<PressableOpacity style={styles.closeButton} onPress={onPress_108144} accessibilityLabel="close">{((XSmallIcon) => <XSmallIcon size="md" color="text-default" />)((require(5312) /* metro dependency 5312: XSmallIcon */).XSmallIcon)}</PressableOpacity>];
|
||||
items2[1] = <Text variant="heading-xl/bold">{r19.title}</Text>;
|
||||
defaultImport = importDefault(6622) /* metro dependency 6622: MarkupUtils */;
|
||||
items2[2] = <Text variant="text-md/normal">{defaultImport.parse(r19.instructions)}</Text>;
|
||||
r15 = r15 ? value3 : !r15;
|
||||
items2[3] = <View style={styles.buttonContainer}><Button disabled={r15} text="Next" loading={value3} onPress={onPress_108145} /></View>;
|
||||
view2 = <View style={container}>{items2}</View>;
|
||||
}
|
||||
const r5 = value4 ? view : view2;
|
||||
const ActionSheet = (require(6805) /* metro dependency 6805: ActionSheetNative */).ActionSheet;
|
||||
return (
|
||||
<ActionSheet>
|
||||
{r5}
|
||||
</ActionSheet>
|
||||
);
|
||||
}
|
||||
|
||||
function ScreenRecordingActionSheetOnPress() { // fn#108143, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14491:1361, owner: ScreenRecordingActionSheet.onPress, offset: 0x023166de, size: 48 bytes, params: 1, frame: 12
|
||||
env0_1();
|
||||
const value = environment.__proto__;
|
||||
(importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet();
|
||||
}
|
||||
|
||||
function ScreenRecordingActionSheetOnPress_108144() { // fn#108144, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14491:1493, owner: ScreenRecordingActionSheet.onPress, offset: 0x0231670e, size: 37 bytes, params: 1, frame: 11
|
||||
const value = environment.__proto__;
|
||||
return (importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
/* Metro module 14292; source: modules/screen_recording/native/ScreenRecordingManager.ios.tsx; dependencies: [27, 2] */
|
||||
function _fun108122(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#108122, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14489:6, offset: 0x02315f9e, size: 194 bytes, params: 8, frame: 18
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const NativeModules = (require(27) /* metro dependency 27 */).NativeModules;
|
||||
const env0_0 = NativeModules.DCDScreenRecordingManager;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/screen_recording/native/ScreenRecordingManager.ios.tsx');
|
||||
exports.default = {requestPermissions: function() {
|
||||
return DCDScreenRecordingManager.requestPermissions();
|
||||
}, startRecording: function() {
|
||||
return DCDScreenRecordingManager.startRecording();
|
||||
}, stopRecording: function() {
|
||||
return DCDScreenRecordingManager.stopRecording();
|
||||
}, isRecording: function() {
|
||||
return DCDScreenRecordingManager.isRecording();
|
||||
}, getLatestRecording: function() {
|
||||
return DCDScreenRecordingManager.getLatestRecording();
|
||||
}, setRecordingQuality: function(a0) {
|
||||
return DCDScreenRecordingManager.setRecordingQuality(a0);
|
||||
}, getRecordingQuality: function() {
|
||||
return DCDScreenRecordingManager.getRecordingQuality();
|
||||
}};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,268 @@
|
||||
/* Metro module 14289; source: modules/screen_recording/native/ScreenRecordingPip.tsx; dependencies: [57, 31, 27, 14290, 33, 4501, 697, 4017, 11281, 14283, 5321, 4577, 4581, 4080, 14294, 1962, 14284, 5278, 4573, 4578, 4064, 14295, 2] */
|
||||
function _fun108062(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#108062, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14486:6, offset: 0x02313f1a, size: 650 bytes, params: 8, frame: 23
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(57) /* metro dependency 57 */;
|
||||
const env0_4 = importAll(31) /* metro dependency 31 */;
|
||||
const env0_5 = (require(27) /* metro dependency 27 */).View;
|
||||
const env0_6 = (require(14290) /* metro dependency 14290: ScreenRecordingStore */).useScreenRecordingStore;
|
||||
let value = require(33) /* metro dependency 33 */;
|
||||
const env0_7 = value.jsx;
|
||||
const env0_8 = value.jsxs;
|
||||
const env0_9 = value.Fragment;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object2 = {};
|
||||
object2.widgetContainer = {position: 'absolute'};
|
||||
const object5 = {'backgroundColor': null, 'justifyContent': 'center', 'alignItems': 'center', 'height': 100,
|
||||
'width': 100};
|
||||
const BACKGROUND_BRAND = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BRAND;
|
||||
object5.backgroundColor = BACKGROUND_BRAND;
|
||||
let PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object5.gap = PX_8;
|
||||
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object5.padding = PX_8;
|
||||
object5.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.xl;
|
||||
const SHADOW_MOBILE_NAVIGATOR_X = (importDefault(697) /* metro dependency 697: native */).shadows.SHADOW_MOBILE_NAVIGATOR_X;
|
||||
copyDataProperties(object5, SHADOW_MOBILE_NAVIGATOR_X, undefined);
|
||||
object2.widget = object5;
|
||||
object2.stepText = {'textAlign': 'center', 'maxWidth': 68};
|
||||
const object6 = {};
|
||||
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object6.padding = PX_8;
|
||||
object6.borderWidth = 1;
|
||||
const WHITE = (importDefault(697) /* metro dependency 697: native */).colors.WHITE;
|
||||
object6.borderColor = WHITE;
|
||||
object6.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
|
||||
object2.stopButton = object6;
|
||||
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object2.doneButton = {padding: PX_8};
|
||||
const env0_11 = Reflect.apply(createStyles, value, [object2]);
|
||||
object2 = {code: 'function ScreenRecordingPipTsx1(x,y){const{windowDimensionsSharedValue,insetsSharedValue,clamp,dragBoundsPadding,contentWidth,contentHeight}=this.__closure;const{width:windowWidth,height:windowHeight}=windowDimensionsSharedValue.get();const insets=insetsSharedValue.get();return{x:clamp(x,insets.left+dragBoundsPadding,windowWidth-insets.right-contentWidth-dragBoundsPadding),y:clamp(y,insets.top+dragBoundsPadding,windowHeight-insets.bottom-contentHeight-dragBoundsPadding)};}'};
|
||||
object2 = {code: 'function ScreenRecordingPipTsx2(){const{runOnJS,onChangePosition,x,y}=this.__closure;runOnJS(onChangePosition)({x:x.get(),y:y.get()});}'};
|
||||
object2 = {code: 'function ScreenRecordingPipTsx3(event){const{getClampedPosition,originalX,originalY,x,y}=this.__closure;const{x:xClamped,y:yClamped}=getClampedPosition(originalX.get()+event.translationX,originalY.get()+event.translationY);x.set(xClamped);y.set(yClamped);}'};
|
||||
object2 = {code: 'function ScreenRecordingPipTsx4(){const{originalX,x,originalY,y}=this.__closure;originalX.set(x.get());originalY.set(y.get());}'};
|
||||
object2 = {code: 'function ScreenRecordingPipTsx5(){const{getClampedPosition,x,y,withSpring,springUnclamped}=this.__closure;const{x:translateX,y:translateY}=getClampedPosition(x.get(),y.get());return{transform:[{translateX:withSpring(translateX,springUnclamped)},{translateY:withSpring(translateY,springUnclamped)}]};}'};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/screen_recording/native/ScreenRecordingPip.tsx');
|
||||
exports.default = ScreenRecordingPipConnected;
|
||||
}
|
||||
|
||||
function ScreenRecordingPip({surveyConfig}) { // fn#108063, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14486:3744, offset: 0x023141a4, size: 911 bytes, params: 2, frame: 33
|
||||
var r13;
|
||||
var r0;
|
||||
var jsxRuntimeEnv0_9Binding;
|
||||
var items3;
|
||||
var PressableOpacity;
|
||||
var items2;
|
||||
var object;
|
||||
const styles = useStyles();
|
||||
const value2 = (importDefault(14283) /* metro dependency 14283: useWindowDimensionsSharedValueNative */)();
|
||||
const value3 = (importDefault(11281) /* metro dependency 11281: useSafeAreaInsetsSharedValueNative */)();
|
||||
const value4 = useScreenRecordingStore(function(a0) {
|
||||
return a0.isRecording;
|
||||
});
|
||||
const value5 = useScreenRecordingStore(function(a0) {
|
||||
return a0.currentStep;
|
||||
});
|
||||
const value6 = useScreenRecordingStore(function(a0) {
|
||||
return a0.isUploading;
|
||||
});
|
||||
const value7 = surveyConfig.useIsStepCompleted(value5);
|
||||
const binding = env0_4;
|
||||
const useCallback = binding.useCallback;
|
||||
const [property, property2] = env0_3(env0_4.useState(Reflect.apply(useCallback, binding, [_fun108067, [value2,
|
||||
value3]])), 2);
|
||||
const value11 = (require(4017) /* metro dependency 4017: ReanimatedRexport */).useSharedValue(property.x);
|
||||
const value12 = (require(4017) /* metro dependency 4017: ReanimatedRexport */).useSharedValue(property.y);
|
||||
var env0_4 = value12;
|
||||
env0_4.useEffect(_fun108068, [property.x, property.y, value11, value12]);
|
||||
if (value4) {
|
||||
jsxRuntimeEnv0_9Binding = jsxRuntimeEnv0_9;
|
||||
items3 = [((Component) => <Component x={value11} y={value12} />)(importDefault(14284) /* metro dependency 14284: VEVOO */)];
|
||||
var draggableContainer_108071BindingProps = {x: value11, y: value12, contentWidth: env0_10,
|
||||
contentHeight: env0_10,
|
||||
dragBoundsPadding: (importDefault(697) /* metro dependency 697: native */).space.PX_4,
|
||||
onChangePosition: property2};
|
||||
PressableOpacity = (require(5278) /* metro dependency 5278: Pressables */).PressableOpacity;
|
||||
var pressableOpacityProps = {style: styles.widget, accessibilityRole: 'button',
|
||||
onPress: env0_4.useCallback(_fun108069, []), activeOpacity: 0.5};
|
||||
items2 = [((Text) => <Text variant="text-xs/semibold" color="white" style={styles.stepText}>{value6 ? 'Uploading...' : 'Step ' + (value5 + 1)}</Text>)((require(4573) /* metro dependency 4573: Text */).Text)];
|
||||
if (value6) {
|
||||
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
|
||||
r13 = <Button loading text="" onPress={function() {
|
||||
}} />;
|
||||
} else {
|
||||
object = {};
|
||||
if (value7) {
|
||||
object.style = styles.doneButton;
|
||||
object.children = ((CheckmarkLargeIcon) => <CheckmarkLargeIcon size="md" color="status-positive" />)((require(4064) /* metro dependency 4064: CheckmarkLargeIcon */).CheckmarkLargeIcon);
|
||||
} else {
|
||||
object.style = styles.stopButton;
|
||||
object.children = ((StopIcon) => <StopIcon size="md" color="text-feedback-critical" />)((require(14295) /* metro dependency 14295: StopIcon */).StopIcon);
|
||||
}
|
||||
r13 = <View {...object} />;
|
||||
}
|
||||
items2[1] = r13;
|
||||
items3[1] = <DraggableContainer_108071 {...draggableContainer_108071BindingProps}><PressableOpacity {...pressableOpacityProps}>{items2}</PressableOpacity></DraggableContainer_108071>;
|
||||
r0 = <>{items3}</>;
|
||||
} else {
|
||||
r0 = null;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function DraggableContainer_108071({x, y, contentWidth, contentHeight, dragBoundsPadding, onChangePosition, children}) { // fn#108071, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14486:2094, offset: 0x02314656, size: 821 bytes, params: 2, frame: 33
|
||||
dragBoundsPadding = dragBoundsPadding === undefined ? 0 : dragBoundsPadding;
|
||||
const env0_4 = dragBoundsPadding;
|
||||
const styles = useStyles();
|
||||
const reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */;
|
||||
let useSharedValue = reanimatedRexportModule.useSharedValue;
|
||||
let get = x.get;
|
||||
const value2 = Reflect.apply(useSharedValue, reanimatedRexportModule, [Reflect.apply(get, x, [])]);
|
||||
const moduleValue2 = reanimatedRexportModule;
|
||||
useSharedValue = moduleValue2.useSharedValue;
|
||||
get = y.get;
|
||||
const value3 = Reflect.apply(useSharedValue, moduleValue2, [Reflect.apply(get, y, [])]);
|
||||
const value4 = (importDefault(11281) /* metro dependency 11281: useSafeAreaInsetsSharedValueNative */)();
|
||||
const value5 = (importDefault(14283) /* metro dependency 14283: useWindowDimensionsSharedValueNative */)();
|
||||
const binding = env0_4;
|
||||
const useCallback = binding.useCallback;
|
||||
let closure = DraggableContainer_108071C;
|
||||
let object2 = {windowDimensionsSharedValue: value5, insetsSharedValue: value4};
|
||||
object2.clamp = reanimatedRexportModule.clamp;
|
||||
object2.dragBoundsPadding = dragBoundsPadding;
|
||||
object2.contentWidth = contentWidth;
|
||||
object2.contentHeight = contentHeight;
|
||||
closure.__closure = object2;
|
||||
closure.__workletHash = 5314404716267;
|
||||
closure.__initData = env0_12;
|
||||
const value6 = Reflect.apply(useCallback, binding, [closure, [contentHeight, contentWidth, dragBoundsPadding,
|
||||
value4, value5]]);
|
||||
const Gesture = (require(5321) /* metro dependency 5321 */).Gesture;
|
||||
const value7 = Gesture.Pan();
|
||||
const onStart = value7.onStart;
|
||||
closure = DraggableContainer_108071X;
|
||||
closure.__closure = {originalX: value2, x: x, originalY: value3, y: y};
|
||||
closure.__workletHash = 7766704092529;
|
||||
closure.__initData = env0_15;
|
||||
const value8 = Reflect.apply(onStart, value7, [closure]);
|
||||
const onUpdate = value8.onUpdate;
|
||||
closure = DraggableContainer_108071V;
|
||||
closure.__closure = {getClampedPosition: value6, originalX: value2, originalY: value3, x: x, y: y};
|
||||
closure.__workletHash = 3428194988690;
|
||||
closure.__initData = env0_14;
|
||||
const value9 = Reflect.apply(onUpdate, value8, [closure]);
|
||||
const onEnd = value9.onEnd;
|
||||
closure = DraggableContainer_108071F;
|
||||
closure.__closure = {runOnJS: reanimatedRexportModule.runOnJS, onChangePosition: onChangePosition, x: x, y: y};
|
||||
closure.__workletHash = 144401388839;
|
||||
closure.__initData = env0_13;
|
||||
const value10 = Reflect.apply(onEnd, value9, [closure]);
|
||||
const moduleValue3 = reanimatedRexportModule;
|
||||
const useAnimatedStyle = moduleValue3.useAnimatedStyle;
|
||||
closure = DraggableContainer_108071R;
|
||||
object2 = {getClampedPosition: value6, x: x, y: y};
|
||||
object2.withSpring = (require(4577) /* metro dependency 4577: spring */).withSpring;
|
||||
object2.springUnclamped = (require(4581) /* metro dependency 4581: springPresets */).springUnclamped;
|
||||
closure.__closure = object2;
|
||||
closure.__workletHash = 5273315246744;
|
||||
closure.__initData = env0_16;
|
||||
const value11 = Reflect.apply(useAnimatedStyle, moduleValue3, [closure]);
|
||||
const GestureDetector = (require(5321) /* metro dependency 5321 */).GestureDetector;
|
||||
const View = (importDefault(4017) /* metro dependency 4017: ReanimatedRexport */).View;
|
||||
return (
|
||||
<GestureDetector gesture={value10}>
|
||||
<View style={[styles.widgetContainer, value11]}>
|
||||
{children}
|
||||
</View>
|
||||
</GestureDetector>
|
||||
);
|
||||
}
|
||||
|
||||
function ScreenRecordingPipConnected() { // fn#108077, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14486:5077, offset: 0x02314b41, size: 55 bytes, params: 1, frame: 15
|
||||
const value2 = useScreenRecordingStore(function(a0) {
|
||||
return a0.currentSurveyConfig;
|
||||
});
|
||||
const value3 = null;
|
||||
return value3 == value2 ? value3 : <ScreenRecordingPip surveyConfig={value2} />;
|
||||
}
|
||||
|
||||
function _fun108067() { // fn#108067, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14486:3939, offset: 0x02314554, size: 130 bytes, params: 1, frame: 16
|
||||
const binding = env0_0;
|
||||
const get = binding.get;
|
||||
const width = Reflect.apply(get, binding, []).width;
|
||||
const value = env0_1.get();
|
||||
const object2 = {};
|
||||
const value4 = width - value.right - env1_10;
|
||||
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object2.x = value4 - PX_16;
|
||||
const top = value.top;
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object2.y = top + PX_16;
|
||||
return object2;
|
||||
}
|
||||
|
||||
function _fun108068() { // fn#108068, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14486:4165, offset: 0x023145d6, size: 49 bytes, params: 1, frame: 13
|
||||
let binding = env0_3;
|
||||
const set = binding.set;
|
||||
const binding2 = env0_2;
|
||||
Reflect.apply(set, binding, [binding2.x]);
|
||||
binding = env0_4;
|
||||
binding.set(binding2.y);
|
||||
}
|
||||
|
||||
function _fun108069() { // fn#108069, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14486:4230, offset: 0x02314607, size: 79 bytes, params: 1, frame: 15
|
||||
let value = environment.__proto__;
|
||||
const defaultImport = importDefault(dependencyMap[13]);
|
||||
const openLazy = defaultImport.openLazy;
|
||||
value = require(dependencyMap[15]);
|
||||
value = value(dependencyMap[14], dependencyMap.paths);
|
||||
Reflect.apply(openLazy, defaultImport, [value, 'ScreenRecordingActionSheet']);
|
||||
}
|
||||
|
||||
function DraggableContainer_108071C(a0, a1) { // fn#108072, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14486:2322, owner: DraggableContainer_108071.C, offset: 0x0231498b, size: 181 bytes, params: 3, frame: 24
|
||||
const {width, height} = env0_9.get();
|
||||
const value3 = env0_8.get();
|
||||
const object2 = {};
|
||||
const reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */;
|
||||
const clamp = reanimatedRexportModule.clamp;
|
||||
const left = value3.left;
|
||||
const dragBoundsPaddingBinding = dragBoundsPadding;
|
||||
object2.x = Reflect.apply(clamp, reanimatedRexportModule, [a0, left + dragBoundsPaddingBinding,
|
||||
width - value3.right - contentWidth - dragBoundsPaddingBinding]);
|
||||
const moduleValue2 = reanimatedRexportModule;
|
||||
object2.y = moduleValue2.clamp(a1, value3.top + dragBoundsPaddingBinding,
|
||||
height - value3.bottom - contentHeight - dragBoundsPaddingBinding);
|
||||
return object2;
|
||||
}
|
||||
|
||||
function DraggableContainer_108071F() { // fn#108075, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14486:3079, owner: DraggableContainer_108071.f, offset: 0x02314a40, size: 85 bytes, params: 1, frame: 14
|
||||
let value = environment.__proto__;
|
||||
value = Reflect.apply((require(4017) /* metro dependency 4017: ReanimatedRexport */).runOnJS, value,
|
||||
[onChangePosition]);
|
||||
const object2 = {};
|
||||
object2.x = x.get();
|
||||
object2.y = y.get();
|
||||
value(object2);
|
||||
}
|
||||
|
||||
function DraggableContainer_108071R() { // fn#108076, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14486:3276, owner: DraggableContainer_108071.R, offset: 0x02314a95, size: 172 bytes, params: 1, frame: 21
|
||||
const binding = env0_10;
|
||||
const value2 = x.get();
|
||||
let value = y.get();
|
||||
value = binding(value2, value);
|
||||
const x2 = value.x;
|
||||
const y2 = value.y;
|
||||
value = environment.__proto__;
|
||||
value = require(4577) /* metro dependency 4577: spring */;
|
||||
const withSpring = value.withSpring;
|
||||
const springUnclamped = (require(4581) /* metro dependency 4581: springPresets */).springUnclamped;
|
||||
const items2 = [{translateX: Reflect.apply(withSpring, value, [x2, springUnclamped])}];
|
||||
const object = {};
|
||||
object.translateY = (require(4577) /* metro dependency 4577: spring */).withSpring(y2, springUnclamped);
|
||||
items2[1] = object;
|
||||
return {transform: items2};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,84 @@
|
||||
/* Metro module 14290; source: modules/screen_recording/native/ScreenRecordingStore.tsx; dependencies: [629, 14291, 2] */
|
||||
function _fun108079(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#108079, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14487:6, offset: 0x02314b83, size: 117 bytes, params: 8, frame: 18
|
||||
let env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
let value = require(629) /* metro dependency 629 */;
|
||||
value = value.create(function(a0, a1) {
|
||||
var env0_0 = a0;
|
||||
var env0_1 = a1;
|
||||
return {'isRecording': false, 'microphoneEnabled': false, 'isUploading': false, 'currentStep': 0,
|
||||
'stepStartedTime': null, 'isCompleted': false, 'currentSurveyId': null, 'currentSurveyConfig': null,
|
||||
startRecording: _fun108081, stopRecording: _fun108082, setIsUploading: _fun108083, nextStep: _fun108084,
|
||||
resetActionSheet: _fun108085, completeActionSheet: _fun108086};
|
||||
});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/screen_recording/native/ScreenRecordingStore.tsx');
|
||||
exports.useScreenRecordingStore = value;
|
||||
}
|
||||
|
||||
function _fun108080(a0, a1) { // fn#108080, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14487:114, offset: 0x02314bf8, size: 104 bytes, params: 3, frame: 3
|
||||
const env0_0 = a0;
|
||||
const env0_1 = a1;
|
||||
return {'isRecording': false, 'microphoneEnabled': false, 'isUploading': false, 'currentStep': 0,
|
||||
'stepStartedTime': null, 'isCompleted': false, 'currentSurveyId': null, 'currentSurveyConfig': null,
|
||||
startRecording: startRecording_108081, stopRecording: stopRecording_108082, setIsUploading: setIsUploading,
|
||||
nextStep: nextStep, resetActionSheet: resetActionSheet, completeActionSheet: completeActionSheet};
|
||||
}
|
||||
|
||||
function startRecording_108081() { // fn#108081, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14487:285, offset: 0x02314c60, size: 89 bytes, params: 1, frame: 15
|
||||
const value = a0;
|
||||
const value2 = a1;
|
||||
const value3 = a2;
|
||||
const r5 = value !== undefined ? value : false;
|
||||
const r4 = value2 !== undefined ? value2 : null;
|
||||
const r3 = value3 !== undefined ? value3 : null;
|
||||
const binding = env0_0;
|
||||
const object2 = {isRecording: true, microphoneEnabled: r5, currentSurveyId: r4, currentSurveyConfig: r3};
|
||||
const Date = global.Date;
|
||||
object2.stepStartedTime = Date.now();
|
||||
return binding(object2);
|
||||
}
|
||||
|
||||
function stopRecording_108082() { // fn#108082, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14487:428, offset: 0x02314cb9, size: 30 bytes, params: 1, frame: 11
|
||||
return env0_0({'isRecording': false, 'microphoneEnabled': false, 'currentStep': 0, 'stepStartedTime': null,
|
||||
'isCompleted': false});
|
||||
}
|
||||
|
||||
function setIsUploading(a0) { // fn#108083, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14487:538, offset: 0x02314cd7, size: 26 bytes, params: 2, frame: 11
|
||||
return env0_0({isUploading: a0});
|
||||
}
|
||||
|
||||
function nextStep() { // fn#108084, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14487:569, offset: 0x02314cf1, size: 123 bytes, params: 1, frame: 15
|
||||
var r1;
|
||||
var object2;
|
||||
const value2 = undefined;
|
||||
const moduleValue = require();
|
||||
const value3 = moduleValue.currentStep + 1;
|
||||
const currentSurveyConfig = moduleValue.currentSurveyConfig;
|
||||
const value4 = value3 >= ((currentSurveyConfig == null ? value2 : currentSurveyConfig.steps) ?? []).length;
|
||||
const binding = env0_0;
|
||||
if (value4) {
|
||||
r1 = {isCompleted: true};
|
||||
} else {
|
||||
object2 = {currentStep: value3};
|
||||
object2.stepStartedTime = global.Date.now();
|
||||
r1 = object2;
|
||||
}
|
||||
binding(r1);
|
||||
return value2;
|
||||
}
|
||||
|
||||
function resetActionSheet() { // fn#108085, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14487:799, offset: 0x02314d6c, size: 53 bytes, params: 1, frame: 12
|
||||
const binding = env0_0;
|
||||
const object2 = {'currentStep': 0, 'stepStartedTime': null, 'isCompleted': false};
|
||||
const Date = global.Date;
|
||||
object2.stepStartedTime = Date.now();
|
||||
return binding(object2);
|
||||
}
|
||||
|
||||
function completeActionSheet() { // fn#108086, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14487:884, offset: 0x02314da1, size: 63 bytes, params: 1, frame: 11
|
||||
const value = environment.__proto__;
|
||||
(require(14291) /* metro dependency 14291: ScreenRecordingUtils */).handleStopAndSend();
|
||||
env0_0({'currentStep': 0, 'stepStartedTime': null, 'isCompleted': false});
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,29 @@
|
||||
/* Metro module 14293; source: modules/screen_recording/native/StudyConfig.tsx; dependencies: [2] */
|
||||
function _fun108130(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#108130, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14490:6, offset: 0x023160e9, size: 131 bytes, params: 8, frame: 17
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/screen_recording/native/StudyConfig.tsx');
|
||||
exports.SURVEY_CONFIGS = {};
|
||||
exports.getSurveyConfig = getSurveyConfig;
|
||||
exports.getSurveyConfigSafe = getSurveyConfigSafe;
|
||||
exports.getAvailableSurveys = getAvailableSurveys;
|
||||
}
|
||||
|
||||
function getSurveyConfig(a0) { // fn#108131, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14490:219, offset: 0x0231616c, size: 28 bytes, params: 2, frame: 3
|
||||
const property = env0_0[a0];
|
||||
const value = null;
|
||||
return value != property ? property : value;
|
||||
}
|
||||
|
||||
function getSurveyConfigSafe(a0) { // fn#108132, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14490:305, offset: 0x02316188, size: 52 bytes, params: 2, frame: 4
|
||||
const value = null;
|
||||
return value == a0 || a0 === '' ? value : value != env0_0[a0] ? env0_0[a0] : value;
|
||||
}
|
||||
|
||||
function getAvailableSurveys() { // fn#108133, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14490:416, offset: 0x023161bc, size: 46 bytes, params: 1, frame: 11
|
||||
const Object = global.Object;
|
||||
return Object.values(env0_0).filter(function(a0) {
|
||||
return a0.predicate();
|
||||
});
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user