Files
discord-decomp/_bundle/createViewDescriptorPaper.js
T
2026-11-01 12:12:55 +02:00

84 lines
4.2 KiB
JavaScript

// Metro module 1791 (f1792).
import * as _Module1609 from "./Module1609";
import * as _Module1706 from "./Module1706";
let createViewDescriptorPaper, applyStyleForTopScreen, applyStyleForBelowTopScreen;
const isFabric = _Module1609.isFabric();
let r16 = function createViewDescriptorPaper(a0) {
return {
tag: a0,
name: "RCTView"
};
};
r16.__closure = {};
r16.__workletHash = 10248318774025;
r16.__initData = {
code: "function createViewDescriptorPaper_Pnpm_styleUpdaterTs1(screenId){return{tag:screenId,name:'RCTView'};}"
};
const createViewDescriptorFabric = function createViewDescriptorFabric(a0) {
return {
shadowNodeWrapper: a0
};
};
createViewDescriptorFabric.__closure = {};
createViewDescriptorFabric.__workletHash = 2882608262143;
createViewDescriptorFabric.__initData = {
code: "function createViewDescriptorFabric_Pnpm_styleUpdaterTs2(screenId){return{shadowNodeWrapper:screenId};}"
};
if (isFabric) {
r16 = createViewDescriptorFabric;
}
createViewDescriptorPaper = r16;
const applyStyleForTopScreen2 = function applyStyleForTopScreen(a0, a1) {
const { screenDimensions, topScreenId } = a0;
const r8 = (0, a0.screenTransition.topScreenStyle)(a1, screenDimensions);
_Module1706.updateProps({
value: [createViewDescriptorPaper(topScreenId)]
}, r8, void 0);
};
applyStyleForTopScreen2.__closure = {
createViewDescriptor: createViewDescriptorPaper,
updateProps: _Module1706.updateProps
};
applyStyleForTopScreen2.__workletHash = 541570832073;
applyStyleForTopScreen2.__initData = {
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);}"
};
applyStyleForTopScreen = applyStyleForTopScreen2;
const applyStyleForBelowTopScreen2 = function applyStyleForBelowTopScreen(a0, a1) {
const { screenDimensions, belowTopScreenId } = a0;
const r8 = (0, a0.screenTransition.belowTopScreenStyle)(a1, screenDimensions);
_Module1706.updateProps({
value: [createViewDescriptorPaper(belowTopScreenId)]
}, r8, void 0);
};
applyStyleForBelowTopScreen2.__closure = {
createViewDescriptor: createViewDescriptorPaper,
updateProps: _Module1706.updateProps
};
applyStyleForBelowTopScreen2.__workletHash = 1349027100765;
applyStyleForBelowTopScreen2.__initData = {
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);}"
};
applyStyleForBelowTopScreen = applyStyleForBelowTopScreen2;
export function applyStyle(a0, a1) {
const { screenDimensions, topScreenId } = a0;
const r10 = (0, a0.screenTransition.topScreenStyle)(a1, screenDimensions);
_Module1706.updateProps({
value: [createViewDescriptorPaper(topScreenId)]
}, r10, void 0);
const { screenDimensions: screenDimensions2, belowTopScreenId } = a0;
const r31 = (0, a0.screenTransition.belowTopScreenStyle)(a1, screenDimensions2);
_Module1706.updateProps({
value: [createViewDescriptorPaper(belowTopScreenId)]
}, r31, void 0);
}
applyStyle.__closure = {
applyStyleForTopScreen,
applyStyleForBelowTopScreen
};
applyStyle.__workletHash = 7852442865245;
applyStyle.__initData = {
code: "function applyStyle_Pnpm_styleUpdaterTs5(screenTransitionConfig,event){const{applyStyleForTopScreen,applyStyleForBelowTopScreen}=this.__closure;applyStyleForTopScreen(screenTransitionConfig,event);applyStyleForBelowTopScreen(screenTransitionConfig,event);}"
};
export { applyStyleForBelowTopScreen };