decord/source/__polyfill/04xxx/module_4998.js
github-actions 4f02868c60 chore: update source for alpha 346.4
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4792.js (118.4 MB)
2026-09-11 10:30:06 +00:00

175 lines
5.9 KiB
JavaScript

// Module ID: 4998
// Function ID: 4999
// Dependencies: [109, 19, 17, 21, 4986, 4996, 4995, 4999, 5000, 5003, 4985, 5005, 4976]
// Module 4998
import _modDef4976 from "module_4976" /* 4976 */;
import _modDef4995 from "module_4995" /* 4995 */;
import styleDefault from "style" /* 5000 */;
import _objectWithoutProperties from "_objectWithoutProperties" /* 109 */;
import noop from "module_19" /* 19 */;
const require = fn;
get_ActivityIndicator = fn(17);
({ Platform, StyleSheet } = get_ActivityIndicator);
const jsxProd = fn(21);
({ jsx: closure_4, Fragment: hasOwnProperty, jsxs: metroRequire } = jsxProd);
const styles = StyleSheet.create({ container: { flex: 1 }, absoluteWithNoBottom: { position: "absolute", top: 0, start: 0, end: 0 } });
export default noop.forwardRef(function ScreenStackItem(arg0, ref) {
({ children, headerConfig, stackPresentation, sheetAllowedDetents, screenId } = arg0);
({ scrollEdgeEffects, unstable_sheetFooter } = arg0);
({ activityState, shouldFreeze, contentStyle, style, onHeaderHeightChange } = arg0);
const merged = Object.assign(arg0, Object.assign({ children: 0, headerConfig: 0, activityState: 0, shouldFreeze: 0, stackPresentation: 0, sheetAllowedDetents: 0, contentStyle: 0, style: 0, screenId: 0, onHeaderHeightChange: 0, scrollEdgeEffects: 0, unstable_sheetFooter: 0 }));
importDefault = undefined;
dependencyMap = undefined;
let flag5;
closure_4 = undefined;
let hidden;
if (headerConfig != null) {
hidden = headerConfig.hidden;
}
let flag;
if (headerConfig != null) {
flag = headerConfig.disableTopInsetApplication;
}
if (flag == null) {
flag = false;
}
let flag2;
if (headerConfig != null) {
flag2 = headerConfig.disableLeftInsetApplication;
}
if (flag2 == null) {
flag2 = false;
}
let flag3;
if (headerConfig != null) {
flag3 = headerConfig.disableRightInsetApplication;
}
if (flag3 == null) {
flag3 = false;
}
let flag4;
if (headerConfig != null) {
flag4 = headerConfig.disableBottomInsetApplication;
}
if (flag4 == null) {
flag4 = false;
}
importDefault = flag5.useRef(null);
dependencyMap = flag5.useContext(tmp4(4996).RNSScreensRefContext);
const imperativeHandle = flag5.useImperativeHandle(ref, () => ref.current);
if (stackPresentation == null) {
stackPresentation = "push";
}
flag5 = undefined;
if (headerConfig != null) {
flag5 = headerConfig.hidden;
}
if (flag5 == null) {
flag5 = false;
}
closure_4 = obj2.useRef(flag5);
const items = [flag5, stackPresentation];
const effect = obj2.useEffect(() => {
_modDef4995(false, "Dynamically changing header's visibility in modals will result in remounting the screen and losing all local state.");
closure_4.current = flag5;
}, items);
let isIOS26OrHigher = undefined === scrollEdgeEffects;
if (!isIOS26OrHigher) {
const _Object = Object;
const values = Object.values(scrollEdgeEffects);
isIOS26OrHigher = values.some((item) => "hidden" !== item);
}
let blurEffect;
if (headerConfig != null) {
blurEffect = headerConfig.blurEffect;
}
let tmp10 = undefined !== blurEffect;
if (tmp10) {
tmp10 = "none" !== headerConfig.blurEffect;
}
let obj = screenId(4986);
const tmp3 = !hidden;
if (isIOS26OrHigher) {
isIOS26OrHigher = tmp10;
}
if (isIOS26OrHigher) {
isIOS26OrHigher = tmp4(4999).isIOS26OrHigher;
}
_modDef4995(isIOS26OrHigher, "[RNScreens] Using both `blurEffect` and `scrollEdgeEffects` simultaneously may cause overlapping effects.");
if ("formSheet" !== stackPresentation) {
let container = closure_7.container;
} else if ("fitToContents" === sheetAllowedDetents) {
container = closure_7.absoluteWithNoBottom;
} else {
container = closure_7.container;
}
const obj3 = { value: obj.useEdgeInsetApplication(tmp3, flag, flag2, flag3, flag4).nextContextValue, children: null };
const obj4 = { contentStyle, style: container, stackPresentation, children: null };
let tmp19Result = children;
const tmp17 = closure_6;
const tmp18 = closure_5;
if (screenId(4999).isIOS26OrHigher) {
const obj5 = { edges: {}, children };
tmp19Result = tmp19(tmp4(5003).SafeAreaView, obj5);
}
obj4.children = tmp19Result;
obj3.children = closure_4(styleDefault, obj4);
const items1 = [closure_4(screenId(4986).EdgeInsetApplicationContext.Provider, obj3), , ];
const merged1 = Object.assign(headerConfig);
items1[1] = closure_4(screenId(4985).ScreenStackHeaderConfig, {});
let tmp19Result2 = "formSheet" === stackPresentation && unstable_sheetFooter;
if (tmp19Result2) {
const obj7 = { children: unstable_sheetFooter() };
tmp19Result2 = tmp19(tmp4(5005).FooterComponent, obj7);
}
items1[2] = tmp19Result2;
const obj6 = {};
const tmp11Result = styleDefault;
const obj8 = {
ref(current) {
closure_1.current = current;
if (null !== closure_2) {
if (null === current) {
delete tmp2[tmp];
} else {
const obj = { current };
tmp5[screenId] = obj;
}
} else {
const _console = console;
console.warn("Looks like RNSScreensRefContext is missing. Make sure the ScreenStack component is wrapped in it");
}
},
enabled: true,
isNativeStack: true,
activityState,
shouldFreeze,
screenId,
stackPresentation,
hasLargeHeader: null,
sheetAllowedDetents: null,
style: null,
scrollEdgeEffects: null,
onHeaderHeightChange: null
};
let flag6;
const tmp17Result = tmp17(tmp18, { children: items1 });
if (headerConfig != null) {
flag6 = headerConfig.largeTitle;
}
if (flag6 == null) {
flag6 = false;
}
obj8.hasLargeHeader = flag6;
obj8.sheetAllowedDetents = sheetAllowedDetents;
const items2 = [style, undefined];
obj8.style = items2;
obj8.scrollEdgeEffects = scrollEdgeEffects;
obj8.onHeaderHeightChange = onHeaderHeightChange;
const merged2 = Object.assign(merged);
obj8.children = tmp17Result;
return closure_4(_modDef4976, obj8);
});