This commit is contained in:
janisslsm committed 2026-11-01 12:12:55 +02:00
1 parent 1781d25a15
commit 732c0ad767
33051 files changed
+2591613 -3019689

No files matched your search

@@ -0,0 +1,10 @@
// Metro module 8823 (f8824).
const r9 = {
NONE: 0,
0: "NONE",
SHAPE: 1,
1: "SHAPE",
FEED_ITEM: 2,
2: "FEED_ITEM"
};
export { r9 as FastestListPropsPlaceholderType };
@@ -0,0 +1,14 @@
// Metro module 9246 (f9247).
import { useState } from "react";
import { getWindowDimensions } from "../../screen/useWindowDimensions.native";
export default function useFastestListPropsEstimatedListSize({ estimatedListSize, horizontal }) {
const [state, ] = useState(() => {
let r1 = estimatedListSize;
if (estimatedListSize === "windowSize") {
const windowDimensions = getWindowDimensions();
r1 = horizontal ? windowDimensions.width : windowDimensions.height;
}
return r1;
});
return state;
};
@@ -0,0 +1,174 @@
// Metro module 9247 (f9248).
import { useMemo } from "react";
import { FastestListPropsPlaceholderType } from "./FastestListPropsPlaceholder";
import { hexToRgbaString } from "../../../utils/ColorUtils";
let c6080_3;
const createNativePlaceholderConfig = function createNativePlaceholderConfig(a0) {
const type = a0?.type;
let placeholderType = type;
if (placeholderType == null) {
placeholderType = FastestListPropsPlaceholderType.NONE;
}
const r18 = {
borderRadius: void 0,
borderTopLeftRadius: void 0,
borderTopRightRadius: void 0,
borderBottomLeftRadius: void 0,
borderBottomRightRadius: void 0,
divider: void 0,
dividerColorRgba: void 0,
dividerPaddingLeft: void 0,
dividerPaddingRight: void 0,
placeholderShape: void 0,
placeholderShapeColorRgba: void 0,
placeholderShapeCount: void 0,
placeholderShapeGap: void 0,
placeholderShapePaddingHorizontal: void 0,
placeholderShapePaddingVertical: void 0,
placeholderFeedBackgroundColorRgba: void 0,
placeholderFeedColorRgba: void 0,
placeholderFeedLabelPadding: void 0,
placeholderFeedLabelPaddingInnerRatio: void 0,
placeholderFeedLabelSize: void 0,
placeholderFeedLabelSecondarySize: void 0,
placeholderFeedPadding: void 0,
placeholderFeedShape: void 0,
placeholderFeedShapeSize: void 0,
placeholderType,
width: void 0,
height: void 0,
verticalAlignment: void 0,
horizontalAlignment: void 0
};
if (a0 == null) {
return r18;
}
if (FastestListPropsPlaceholderType.NONE !== type) {
if (FastestListPropsPlaceholderType.SHAPE === type) {
let borderRadius2 = a0.borderRadius;
if (borderRadius2 == null) {
borderRadius2 = 0;
}
r18.borderRadius = borderRadius2;
r18.placeholderShape = a0.shape;
let spaceGap = a0.spaceGap;
if (spaceGap == null) {
spaceGap = 0;
}
r18.placeholderShapeGap = spaceGap;
let paddingHorizontal = a0.paddingHorizontal;
if (paddingHorizontal == null) {
paddingHorizontal = 0;
}
r18.placeholderShapePaddingHorizontal = paddingHorizontal;
let paddingVertical = a0.paddingVertical;
if (paddingVertical == null) {
paddingVertical = 0;
}
r18.placeholderShapePaddingVertical = paddingVertical;
r18.placeholderShapeColorRgba = hexToRgbaString(a0.colorHex, a0.opacity);
let shapeCount = a0.shapeCount;
if (shapeCount == null) {
shapeCount = 1;
}
r18.placeholderShapeCount = shapeCount;
r18.width = a0.width;
r18.height = a0.height;
let verticalAlignment = a0.verticalAlignment;
if (verticalAlignment == null) {
verticalAlignment = "center";
}
r18.verticalAlignment = verticalAlignment;
let horizonalAlignment = a0.horizonalAlignment;
if (horizonalAlignment == null) {
horizonalAlignment = "center";
}
r18.horizontalAlignment = horizonalAlignment;
} else {
if (FastestListPropsPlaceholderType.FEED_ITEM !== type) {
throw new Error(`Invalid placeholder type: ${type}`);
}
let borderRadius = a0.borderRadius;
if (borderRadius == null) {
borderRadius = 0;
}
r18.borderRadius = borderRadius;
let borderTopLeftRadius = a0.borderTopLeftRadius;
if (borderTopLeftRadius == null) {
borderTopLeftRadius = 0;
}
r18.borderTopLeftRadius = borderTopLeftRadius;
let borderTopRightRadius = a0.borderTopRightRadius;
if (borderTopRightRadius == null) {
borderTopRightRadius = 0;
}
r18.borderTopRightRadius = borderTopRightRadius;
let borderBottomLeftRadius = a0.borderBottomLeftRadius;
if (borderBottomLeftRadius == null) {
borderBottomLeftRadius = 0;
}
r18.borderBottomLeftRadius = borderBottomLeftRadius;
let borderBottomRightRadius = a0.borderBottomRightRadius;
if (borderBottomRightRadius == null) {
borderBottomRightRadius = 0;
}
r18.borderBottomRightRadius = borderBottomRightRadius;
let divider = a0.divider;
if (divider == null) {
divider = false;
}
r18.divider = divider;
r18.dividerColorRgba = a0.dividerColorHex != null ? hexToRgbaString(a0.dividerColorHex) : void 0;
let dividerPaddingLeft = a0.dividerPaddingLeft;
if (dividerPaddingLeft == null) {
dividerPaddingLeft = 0;
}
r18.dividerPaddingLeft = dividerPaddingLeft;
let dividerPaddingRight = a0.dividerPaddingRight;
if (dividerPaddingRight == null) {
dividerPaddingRight = 0;
}
r18.dividerPaddingRight = dividerPaddingRight;
r18.placeholderFeedBackgroundColorRgba = a0.backgroundColorHex != null ? hexToRgbaString(a0.backgroundColorHex) : void 0;
r18.placeholderFeedColorRgba = hexToRgbaString(a0.colorHex);
r18.placeholderFeedLabelSize = a0.labelSize;
let labelSecondarySize = a0.labelSecondarySize;
if (labelSecondarySize == null) {
labelSecondarySize = 0;
}
r18.placeholderFeedLabelSecondarySize = labelSecondarySize;
r18.placeholderFeedLabelPadding = a0.labelPadding;
let labelPaddingInnerRatio = a0.labelPaddingInnerRatio;
if (labelPaddingInnerRatio == null) {
labelPaddingInnerRatio = 0.4;
}
r18.placeholderFeedLabelPaddingInnerRatio = labelPaddingInnerRatio;
let padding = a0.padding;
if (padding == null) {
padding = 0;
}
r18.placeholderFeedPadding = padding;
r18.placeholderFeedShape = a0.shape;
r18.placeholderFeedShapeSize = a0.shapeSize;
}
}
return r18;
};
c6080_3 = {
sectionItem: {
type: FastestListPropsPlaceholderType.NONE
}
};
export default function useFastestListPropsPlaceholder(r5 = c6080_3) {
let c17089_0 = r5;
return useMemo(() => ({
listFooter: createNativePlaceholderConfig(c17089_0.listFooter),
listHeader: createNativePlaceholderConfig(c17089_0.listHeader),
sectionFooter: createNativePlaceholderConfig(c17089_0.sectionFooter),
sectionHeader: createNativePlaceholderConfig(c17089_0.sectionHeader),
sectionItem: createNativePlaceholderConfig(c17089_0.sectionItem),
sectionItemAtFront: createNativePlaceholderConfig(c17089_0.sectionItemAtFront),
sectionItemAtRear: createNativePlaceholderConfig(c17089_0.sectionItemAtRear),
sectionItemSingleton: createNativePlaceholderConfig(c17089_0.sectionItemSingleton)
}), [r5]);
};
@@ -0,0 +1,39 @@
// Metro module 9251 (f9252).
import { useAnimatedScrollHandler } from "../../reanimated/ReanimatedRexport";
const __initData = {
code: "function useFastestListPropsScrollReportingNativeTsx1(event){const{scrollPosition,horizontal}=this.__closure;if(scrollPosition!=null){scrollPosition.set(horizontal?event.contentOffset.x:event.contentOffset.y);}}"
};
export default function useFastestListPropsScrollReporting(a0, a1) {
const scrollPosition = a0.scrollReporting === "animatedScrollPosition" ? a0.scrollPosition : void 0;
const n = function n(a0) {
if (scrollPosition != null) {
const contentOffset = a0.contentOffset;
scrollPosition.set(a1 ? contentOffset.x : contentOffset.y);
}
};
n.__closure = {
scrollPosition,
horizontal: a1
};
n.__workletHash = 14196294214838;
n.__initData = __initData;
const animatedScrollHandler = useAnimatedScrollHandler({
onScroll: n
});
const scrollReporting = a0.scrollReporting;
if (scrollReporting === "animatedScrollPosition") {
return {
onScroll: animatedScrollHandler
};
}
if (scrollReporting === "animatedCallbacks") {
return {
onScroll: a0.scrollHandlerAnimated
};
}
return {
onScroll: a0.onScroll,
onScrollBeginDrag: a0.onScrollBeginDrag,
onScrollEndDrag: a0.onScrollEndDrag
};
};