Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,91 @@
|
||||
/* Metro module 8575; source: modules/keyboard/native/PortalKeyboardFooterIOS.ios.tsx; dependencies: [31, 33, 4501, 697, 1585, 1599, 4022, 4017, 1583, 676, 4027, 2] */
|
||||
function _fun67845(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#67845, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8760:6, offset: 0x01c34353, size: 232 bytes, params: 8, frame: 21
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importAll(31) /* metro dependency 31 */;
|
||||
const env0_4 = (require(33) /* metro dependency 33 */).jsx;
|
||||
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = createStylesModule.createStyles;
|
||||
const MOBILE_KEYBOARD_PANEL_BACKGROUND = (importDefault(697) /* metro dependency 697: native */).colors.MOBILE_KEYBOARD_PANEL_BACKGROUND;
|
||||
const env0_5 = Reflect.apply(createStyles, createStylesModule, [{keyboardStickyFooter: {'position': 'absolute',
|
||||
'bottom': 0, 'left': 0, 'right': 0, 'zIndex': 1, 'flex': 1,
|
||||
backgroundColor: MOBILE_KEYBOARD_PANEL_BACKGROUND}}]);
|
||||
object = {code: "function PortalKeyboardFooterIOSIosTsx1(){const{interpolate,progress,bottom,keyboardType,KeyboardTypes,animatedSheetIndex,height,EXPRESSION_FOOTER_HEIGHT}=this.__closure;const offset=interpolate(progress.get(),[0,1],[0,bottom]);if(keyboardType.get()===KeyboardTypes.EXPRESSION&&animatedSheetIndex.get()>=0){return{transform:[{translateY:height.get()+offset}]};}return{transform:[{translateY:interpolate(animatedSheetIndex.get(),[-1,0],[EXPRESSION_FOOTER_HEIGHT+bottom,0],'clamp')}]};}"};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/keyboard/native/PortalKeyboardFooterIOS.ios.tsx');
|
||||
exports.default = PortalKeyboardFooterIOS;
|
||||
}
|
||||
|
||||
function PortalKeyboardFooterIOS({animatedSheetIndex, portalHostName}) { // fn#67846, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8760:889, offset: 0x01c3443b, size: 433 bytes, params: 2, frame: 28
|
||||
portalHostName = portalHostName === undefined ? 'expression-footer' : portalHostName;
|
||||
const styles = useStyles();
|
||||
const bottom = (importDefault(1585) /* metro dependency 1585: useSafeAreaInsetsNative */)().bottom;
|
||||
const value2 = (require(1599) /* metro dependency 1599 */).useReanimatedKeyboardAnimation();
|
||||
const height = value2.height;
|
||||
const env0_3 = height;
|
||||
const progress = value2.progress;
|
||||
const value3 = (require(4022) /* metro dependency 4022: useKeyboardType */).useKeyboardTypeSharedValue();
|
||||
const reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */;
|
||||
const useAnimatedStyle = reanimatedRexportModule.useAnimatedStyle;
|
||||
const closure = PortalKeyboardFooterIOSP;
|
||||
const object2 = {};
|
||||
object2.interpolate = reanimatedRexportModule.interpolate;
|
||||
object2.progress = progress;
|
||||
object2.bottom = bottom;
|
||||
object2.keyboardType = value3;
|
||||
const KeyboardTypes = (require(1583) /* metro dependency 1583: KeyboardTypes */).KeyboardTypes;
|
||||
object2.KeyboardTypes = KeyboardTypes;
|
||||
object2.animatedSheetIndex = animatedSheetIndex;
|
||||
object2.height = height;
|
||||
const EXPRESSION_FOOTER_HEIGHT = (require(676) /* metro dependency 676: ConstantsIOS */).EXPRESSION_FOOTER_HEIGHT;
|
||||
object2.EXPRESSION_FOOTER_HEIGHT = EXPRESSION_FOOTER_HEIGHT;
|
||||
closure.__closure = object2;
|
||||
closure.__workletHash = 9642021588244;
|
||||
closure.__initData = undefined;
|
||||
const value5 = env0_3.useMemo(_fun67848, [Reflect.apply(useAnimatedStyle, reanimatedRexportModule, [closure]),
|
||||
styles]);
|
||||
const View = (importDefault(4017) /* metro dependency 4017: ReanimatedRexport */).View;
|
||||
const PortalHost = (require(4027) /* metro dependency 4027 */).PortalHost;
|
||||
return (
|
||||
<View style={value5}>
|
||||
<PortalHost name={portalHostName} />
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function PortalKeyboardFooterIOSP() { // fn#67847, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8760:1151, owner: PortalKeyboardFooterIOS.p, offset: 0x01c345ec, size: 325 bytes, params: 1, frame: 24
|
||||
var object;
|
||||
var object3;
|
||||
const EXPRESSION_FOOTER_HEIGHT = (require(676) /* metro dependency 676: ConstantsIOS */).EXPRESSION_FOOTER_HEIGHT;
|
||||
var heightBinding;
|
||||
let value = environment.__proto__;
|
||||
const reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */;
|
||||
const value4 = reanimatedRexportModule.interpolate(progress.get(), [0, 1], [0, bottom]);
|
||||
const value5 = env0_5.get();
|
||||
const KeyboardTypes = (require(1583) /* metro dependency 1583: KeyboardTypes */).KeyboardTypes;
|
||||
const EXPRESSION = KeyboardTypes.EXPRESSION;
|
||||
if (value5 !== EXPRESSION) {
|
||||
object3 = {};
|
||||
value = reanimatedRexportModule;
|
||||
object3.translateY = value.interpolate(animatedSheetIndex.get(), [-1, 0], [EXPRESSION_FOOTER_HEIGHT + bottom,
|
||||
0],
|
||||
'clamp');
|
||||
object = {transform: [object3]};
|
||||
} else if (animatedSheetIndex.get() >= 0) {
|
||||
heightBinding = height;
|
||||
object = {transform: [{translateY: heightBinding.get() + value4}]};
|
||||
} else {
|
||||
object3 = {};
|
||||
value = require(4017) /* metro dependency 4017: ReanimatedRexport */;
|
||||
object3.translateY = value.interpolate(animatedSheetIndex.get(), [-1, 0], [EXPRESSION_FOOTER_HEIGHT + bottom,
|
||||
0],
|
||||
'clamp');
|
||||
object = {transform: [object3]};
|
||||
}
|
||||
return object;
|
||||
}
|
||||
|
||||
function _fun67848() { // fn#67848, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8760:1685, offset: 0x01c34731, size: 31 bytes, params: 1, frame: 3
|
||||
return [styles.keyboardStickyFooter, env0_6];
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user