Files
discord-decomp/sources/by-id/module-01795-applyStyle.js
2026-07-28 01:06:53 +03:00

95 lines
6.6 KiB
JavaScript

/* Metro module 1795; source: unknown; dependencies: [1613, 1710] */
import * as Module01613Module from './module-01613.js'; /* Metro dependency 1613 */
import * as UpdatePropsModule from './module-01710-updateProps.js'; /* Metro dependency 1710 */
function _fun19698(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#19698, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1922:6, offset: 0x00eb18fe, size: 231 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = Module01613Module;
value = value.isFabric();
object = {code: "function createViewDescriptorPaper_Pnpm_styleUpdaterTs1(screenId){return{tag:screenId,name:'RCTView'};}"};
const value2 = _fun19699();
object = {code: 'function createViewDescriptorFabric_Pnpm_styleUpdaterTs2(screenId){return{shadowNodeWrapper:screenId};}'};
const env0_4 = value ? _fun19701() : value2;
object = {code: 'function applyStyleForTopScreen_Pnpm_styleUpdaterTs3(screenTransitionConfig,event){const{createViewDescriptor,updateProps}=this.__closure;const{screenDimensions:screenDimensions,topScreenId:topScreenId,screenTransition:screenTransition}=screenTransitionConfig;const{topScreenStyle:computeTopScreenStyle}=screenTransition;const topScreenStyle=computeTopScreenStyle(event,screenDimensions);const topScreenDescriptor={value:[createViewDescriptor(topScreenId)]};updateProps(topScreenDescriptor,topScreenStyle,undefined);}'};
const env0_6 = _fun19703();
object = {code: 'function applyStyleForBelowTopScreen_Pnpm_styleUpdaterTs4(screenTransitionConfig,event){const{createViewDescriptor,updateProps}=this.__closure;const{screenDimensions:screenDimensions,belowTopScreenId:belowTopScreenId,screenTransition:screenTransition}=screenTransitionConfig;const{belowTopScreenStyle:computeBelowTopScreenStyle}=screenTransition;const belowTopScreenStyle=computeBelowTopScreenStyle(event,screenDimensions);const belowTopScreenDescriptor={value:[createViewDescriptor(belowTopScreenId)]};updateProps(belowTopScreenDescriptor,belowTopScreenStyle,undefined);}'};
value = _fun19705();
object = {code: 'function applyStyle_Pnpm_styleUpdaterTs5(screenTransitionConfig,event){const{applyStyleForTopScreen,applyStyleForBelowTopScreen}=this.__closure;applyStyleForTopScreen(screenTransitionConfig,event);applyStyleForBelowTopScreen(screenTransitionConfig,event);}'};
const value4 = _fun19707();
exports.applyStyleForBelowTopScreen = value;
exports.applyStyle = value4;
function _fun19699() { // fn#19699, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1922:234, offset: 0x00eb19e5, size: 46 bytes, params: 1, frame: 2
const closure = function(a0) {
return {tag: a0, name: 'RCTView'};
};
closure.__closure = {};
closure.__workletHash = 10248318774025;
closure.__initData = env0_2;
return closure;
}
function _fun19701() { // fn#19701, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1922:508, offset: 0x00eb1a28, size: 46 bytes, params: 1, frame: 2
const closure = function(a0) {
return {shadowNodeWrapper: a0};
};
closure.__closure = {};
closure.__workletHash = 2882608262143;
closure.__initData = env0_3;
return closure;
}
function _fun19703() { // fn#19703, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1922:1204, offset: 0x00eb1a62, size: 88 bytes, params: 1, frame: 14
const applyStyleForTopScreen2 = applyStyleForTopScreen;
const object = {};
object.createViewDescriptor = env0_4;
object.updateProps = (require(1710) /* metro dependency 1710 */).updateProps;
applyStyleForTopScreen2.__closure = object;
applyStyleForTopScreen2.__workletHash = 541570832073;
applyStyleForTopScreen2.__initData = env0_5;
return applyStyleForTopScreen2;
function applyStyleForTopScreen({screenDimensions, topScreenId, screenTransition}, a1) { // fn#19704, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1922:1221, offset: 0x00eb1aba, size: 99 bytes, params: 3, frame: 16
const value = screenTransition.topScreenStyle(a1, screenDimensions);
const object = {};
object.value = [env1_4(topScreenId)];
(UpdatePropsModule).updateProps(object, value, undefined);
}
}
function _fun19705() { // fn#19705, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1922:2105, offset: 0x00eb1b1d, size: 88 bytes, params: 1, frame: 14
const applyStyleForBelowTopScreen2 = applyStyleForBelowTopScreen;
const object = {};
object.createViewDescriptor = env0_4;
object.updateProps = (require(1710) /* metro dependency 1710 */).updateProps;
applyStyleForBelowTopScreen2.__closure = object;
applyStyleForBelowTopScreen2.__workletHash = 1349027100765;
applyStyleForBelowTopScreen2.__initData = env0_7;
return applyStyleForBelowTopScreen2;
function applyStyleForBelowTopScreen({screenDimensions, belowTopScreenId, screenTransition}, a1) { // fn#19706, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1922:2122, offset: 0x00eb1b75, size: 99 bytes, params: 3, frame: 16
const value = screenTransition.belowTopScreenStyle(a1, screenDimensions);
const object = {};
object.value = [env1_4(belowTopScreenId)];
(UpdatePropsModule).updateProps(object, value, undefined);
}
}
function _fun19707() { // fn#19707, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1922:2706, offset: 0x00eb1bd8, size: 66 bytes, params: 1, frame: 4
const applyStyle2 = applyStyle;
applyStyle2.__closure = {applyStyleForTopScreen: env0_6, applyStyleForBelowTopScreen: env0_8};
applyStyle2.__workletHash = 7852442865245;
applyStyle2.__initData = env0_9;
return applyStyle2;
function applyStyle(a0, a1) { // fn#19708, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1922:2723, offset: 0x00eb1c1a, size: 33 bytes, params: 3, frame: 14
env1_6(a0, a1);
env1_8(a0, a1);
}
}
}
global.__d(_fun19698, 1795, [1613, 1710]) /* metro module 1795, dependencies: [1613, 1710] */;