decord/source/design/components/Tabs/native/Tabs.native.tsx

375 lines
17 KiB
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 11832
// Function ID: 11833
2026-07-20 16:05:17 +00:00
// Name: defaultCountFormatter
2026-08-24 06:08:38 +00:00
// Dependencies: [19, 17, 1995, 21, 4119, 4668, 712, 4749, 8729, 11833, 6408, 500, 2]
2026-07-20 16:05:17 +00:00
// Exports: Tabs
2026-08-24 06:08:38 +00:00
// Module 11832 (defaultCountFormatter)
import ThemesDefault from "Themes" /* 712 */;
import closure_3 from "noop" /* 19 */;
import get_ActivityIndicator from "get ActivityIndicator" /* 17 */;
import closure_5 from "_getSystemLocale" /* 1995 */;
import jsxProd from "jsxProd" /* 21 */;
import createCacheKey from "createCacheKey" /* 4668 */;
import importDefaultResult from "module_4119" /* 4119 */;
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-07-20 16:05:17 +00:00
function defaultCountFormatter(toLocaleString) {
return toLocaleString.toLocaleString(locale.locale);
}
2026-07-29 08:29:29 +00:00
({ View: c4, ScrollView } = get_ActivityIndicator);
({ jsx: closure_6, jsxs: error } = jsxProd);
2026-08-24 06:08:38 +00:00
let closure_8 = importDefaultResult.createAnimatedComponent(ScrollView);
2026-07-29 08:29:29 +00:00
let c9 = 0.04;
let closure_10 = { mass: 0.3, damping: 13, stiffness: 100, restDisplacementThreshold: 0.001, overshootClamping: true };
let closure_11 = createCacheKey.createStyles((gap) => {
let obj = { container: null, controlsContainer: null, indicatorContainer: null, indicator: null };
2026-08-24 06:08:38 +00:00
obj = { display: "flex", flexGrow: 1, minWidth: "100%", flexDirection: "row", alignItems: "center", borderBottomColor: ThemesDefault.colors.BORDER_SUBTLE, borderBottomWidth: 1 };
2026-07-29 08:29:29 +00:00
obj[0] = obj;
2026-08-24 06:08:38 +00:00
obj = { marginHorizontal: ThemesDefault.space.PX_16, flexDirection: "row", gap };
2026-07-29 08:29:29 +00:00
obj[1] = obj;
2026-08-24 06:08:38 +00:00
obj[2] = { position: "absolute", width: "100%", height: "100%", flexDirection: "row", alignItems: "flex-end", marginLeft: ThemesDefault.space.PX_16 };
2026-07-20 16:05:17 +00:00
if ("gradient-background" === arg1) {
2026-07-29 08:29:29 +00:00
let TEXT_BRAND = tmp(712).colors.TEXT_STRONG;
2026-07-20 16:05:17 +00:00
} else {
2026-07-29 08:29:29 +00:00
TEXT_BRAND = tmp(712).colors.TEXT_BRAND;
2026-07-20 16:05:17 +00:00
}
2026-08-24 06:08:38 +00:00
obj1 = { position: "absolute", width: "100%", height: "100%", flexDirection: "row", alignItems: "flex-end", marginLeft: ThemesDefault.space.PX_16 };
obj[3] = { height: 2, backgroundColor: TEXT_BRAND, borderTopStartRadius: ThemesDefault.radii.xs, borderTopEndRadius: ThemesDefault.radii.xs };
2026-07-20 16:05:17 +00:00
return obj;
});
2026-07-29 08:29:29 +00:00
let closure_13 = { code: "function TabsNativeTsx1(){const{activeIndex,itemCount}=this.__closure;return Math.round(Math.min(Math.max(activeIndex.get(),0),itemCount-1));}" };
let closure_14 = { code: "function TabsNativeTsx2(){const{itemDimensions,clampedActiveIndex}=this.__closure;const activeItem=itemDimensions.get()[clampedActiveIndex.get()];if(activeItem==null)return 0;return activeItem.width;}" };
let closure_15 = { code: "function TabsNativeTsx3(){const{itemDimensions,clampedActiveIndex}=this.__closure;var _itemDimensions$get$c,_itemDimensions$get$c2;return(_itemDimensions$get$c=(_itemDimensions$get$c2=itemDimensions.get()[clampedActiveIndex.get()])===null||_itemDimensions$get$c2===void 0?void 0:_itemDimensions$get$c2.x)!==null&&_itemDimensions$get$c!==void 0?_itemDimensions$get$c:0;}" };
let closure_16 = { code: "function TabsNativeTsx4(){const{indicatorTranslateX,pressedIndex,clampedActiveIndex,PRESSED_TRANSLATE_AMOUNT,indicatorWidth,scrollOverflow,interpolate,SCROLL_OVERFLOW_UPPER_BOUND,SCROLL_OVERFLOW_MAX_SCALE,withSpring,SELECTED_INDICATOR_SPRING}=this.__closure;let translateX=indicatorTranslateX.get();let scaleX=1;if(pressedIndex.get()>=0){if(pressedIndex.get()<clampedActiveIndex.get()){scaleX+=PRESSED_TRANSLATE_AMOUNT;translateX-=indicatorWidth.get()*(PRESSED_TRANSLATE_AMOUNT/2);}else if(pressedIndex.get()>clampedActiveIndex.get()){scaleX+=PRESSED_TRANSLATE_AMOUNT;translateX+=indicatorWidth.get()*(PRESSED_TRANSLATE_AMOUNT/2);}}if(scrollOverflow.get()<0){const scaleFactor=interpolate(scrollOverflow.get(),[-SCROLL_OVERFLOW_UPPER_BOUND,0],[SCROLL_OVERFLOW_MAX_SCALE,1],'clamp');const scaleAmount=indicatorWidth.get()*(1-scaleFactor);scaleX=scaleFactor;translateX+=-scaleAmount/2;}else if(scrollOverflow.get()>0){const scaleFactor=interpolate(scrollOverflow.get(),[SCROLL_OVERFLOW_UPPER_BOUND,0],[SCROLL_OVERFLOW_MAX_SCALE,1],'clamp');const scaleAmount=indicatorWidth.get()*(1-scaleFactor);scaleX=scaleFactor;translateX+=scaleAmount/2;}return{width:withSpring(indicatorWidth.get(),SELECTED_INDICATOR_SPRING),transform:[{translateX:withSpring(translateX,SELECTED_INDICATOR_SPRING)},{scaleX:withSpring(scaleX,SELECTED_INDICATOR_SPRING)}]};}" };
let closure_17 = { code: "function TabsNativeTsx5(event){const{scrollOffset,onScrollWorklet}=this.__closure;var _onScrollWorklet;scrollOffset.set(event.contentOffset.x);(_onScrollWorklet=onScrollWorklet)===null||_onScrollWorklet===void 0||_onScrollWorklet(event.contentOffset.x);}" };
let closure_18 = { code: "function TabsNativeTsx6(){const{onEndDrag}=this.__closure;var _onEndDrag;(_onEndDrag=onEndDrag)===null||_onEndDrag===void 0||_onEndDrag();}" };
let closure_19 = { code: "function TabsNativeTsx7(){const{scrollOffset,activeIndex,itemDimensions}=this.__closure;return{scrollOffset:scrollOffset.get(),activeIndex:activeIndex.get(),itemDimensions:itemDimensions.get()};}" };
let closure_20 = { code: "function TabsNativeTsx8(props,prevState){const{cheapWorkletShallowEqual,itemSpacing,pageWidth,runOnJS,scrollToOffset,AUTO_SCROLL_BUFFER}=this.__closure;var _itemDimensions$activ,_itemDimensions$activ2,_itemDimensions$activ3;if(props.activeIndex===(prevState===null||prevState===void 0?void 0:prevState.activeIndex))return;if(cheapWorkletShallowEqual(props,prevState!==null&&prevState!==void 0?prevState:undefined))return;const{scrollOffset:scrollOffset,activeIndex:activeIndex,itemDimensions:itemDimensions}=props;const width=itemDimensions.reduce(function(sum,item){var _item$width;return sum+((_item$width=item===null||item===void 0?void 0:item.width)!==null&&_item$width!==void 0?_item$width:0);},0);const itemOffset=((_itemDimensions$activ=(_itemDimensions$activ2=itemDimensions[activeIndex])===null||_itemDimensions$activ2===void 0?void 0:_itemDimensions$activ2.x)!==null&&_itemDimensions$activ!==void 0?_itemDimensions$activ:0)+(activeIndex-1)*itemSpacing;const itemWidth=(_itemDimensions$activ3=itemDimensions[activeIndex])===null||_itemDimensions$activ3===void 0?void 0:_itemDimensions$activ3.width;if(width===0||itemOffset==null||itemWidth==null)return;if(scrollOffset+pageWidth<itemOffset+itemWidth){runOnJS(scrollToOffset)(itemOffset+AUTO_SCROLL_BUFFER);}else if(itemOffset<scrollOffset){runOnJS(scrollToOffset)(itemOffset-AUTO_SCROLL_BUFFER);}}" };
2026-08-24 06:08:38 +00:00
let result = require("set").fileFinishedImporting("design/components/Tabs/native/Tabs.native.tsx");
2026-07-20 16:05:17 +00:00
export { defaultCountFormatter };
export const Tabs = function Tabs(state) {
state = state.state;
let flag = state.grow;
if (flag === undefined) {
flag = true;
}
let formatCount = state.formatCount;
if (formatCount === undefined) {
2026-07-29 08:29:29 +00:00
formatCount = itemSpacing;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
const simultaneousHandlers = state.simultaneousHandlers;
2026-07-20 16:05:17 +00:00
const onScrollWorklet = state.onScrollWorklet;
const onEndDrag = state.onEndDrag;
const variant = state.variant;
let activeIndex;
2026-07-23 10:11:24 +00:00
let scrollOffset;
let scrollOverflow;
let items;
let itemDimensions;
2026-07-29 08:29:29 +00:00
itemSpacing = undefined;
2026-07-23 10:11:24 +00:00
let pageWidth;
let pressedIndex;
let setActiveIndex;
let useReducedMotion;
2026-08-24 06:08:38 +00:00
closure_17 = undefined;
2026-07-23 10:11:24 +00:00
let sharedValue;
2026-07-29 08:29:29 +00:00
let length;
2026-07-20 16:05:17 +00:00
let ref;
let derivedValue;
let derivedValue1;
let derivedValue2;
let callback1;
activeIndex = state.activeIndex;
2026-07-23 10:11:24 +00:00
scrollOffset = state.scrollOffset;
scrollOverflow = state.scrollOverflow;
items = state.items;
itemDimensions = state.itemDimensions;
itemSpacing = state.itemSpacing;
pageWidth = state.pageWidth;
pressedIndex = state.pressedIndex;
setActiveIndex = state.setActiveIndex;
useReducedMotion = state.useReducedMotion;
2026-07-29 08:29:29 +00:00
const tmp = itemDimensions(itemSpacing, variant);
2026-08-24 06:08:38 +00:00
closure_17 = tmp;
2026-07-23 10:11:24 +00:00
let obj = state(formatCount[4]);
sharedValue = obj.useSharedValue(pageWidth);
length = items.length;
ref = simultaneousHandlers.useRef(null);
2026-07-29 08:29:29 +00:00
const items1 = [sharedValue];
2026-07-23 10:11:24 +00:00
const callback = simultaneousHandlers.useCallback((nativeEvent) => {
2026-07-20 16:05:17 +00:00
const result = sharedValue.set(nativeEvent.nativeEvent.layout.width);
}, items1);
2026-08-24 06:08:38 +00:00
obj1 = state(formatCount[4]);
2026-07-20 16:05:17 +00:00
class C {
constructor() {
return Math.round(Math.min(Math.max(activeIndex.get(), 0), length - 1));
}
}
2026-07-23 10:11:24 +00:00
C.__closure = { activeIndex, itemCount: length };
2026-07-20 16:05:17 +00:00
C.__workletHash = 3447899396126;
2026-07-29 08:29:29 +00:00
C.__initData = pageWidth;
2026-07-20 16:05:17 +00:00
derivedValue = obj1.useDerivedValue(C);
2026-07-23 10:11:24 +00:00
let obj2 = state(formatCount[4]);
2026-07-20 16:05:17 +00:00
class W {
constructor() {
value = itemDimensions.get();
2026-08-24 06:08:38 +00:00
tmp2 = value[closure_21.get(closure_21)];
2026-07-20 16:05:17 +00:00
num = 0;
if (null != tmp2) {
num = tmp2.width;
}
return num;
}
}
W.__closure = { itemDimensions, clampedActiveIndex: derivedValue };
W.__workletHash = 8603255620075;
2026-07-29 08:29:29 +00:00
W.__initData = pressedIndex;
2026-07-20 16:05:17 +00:00
derivedValue1 = obj2.useDerivedValue(W);
2026-07-23 10:11:24 +00:00
let obj3 = state(formatCount[4]);
2026-07-20 16:05:17 +00:00
class N {
constructor() {
value = itemDimensions.get();
2026-08-24 06:08:38 +00:00
tmp2 = value[closure_21.get(closure_21)];
2026-07-29 08:29:29 +00:00
num = undefined;
if (tmp2 != null) {
num = tmp2.x;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
if (num == null) {
num = 0;
2026-07-20 16:05:17 +00:00
}
return num;
}
}
N.__closure = { itemDimensions, clampedActiveIndex: derivedValue };
N.__workletHash = 3224400863644;
2026-07-29 08:29:29 +00:00
N.__initData = setActiveIndex;
2026-07-20 16:05:17 +00:00
derivedValue2 = obj3.useDerivedValue(N);
2026-07-23 10:11:24 +00:00
let obj4 = state(formatCount[4]);
2026-07-20 16:05:17 +00:00
const fn = function $() {
let value = derivedValue2.get();
2026-07-29 08:29:29 +00:00
let obj = pressedIndex;
2026-07-20 16:05:17 +00:00
let num = 1;
if (pressedIndex.get() < 0) {
if (scrollOverflow.get() < 0) {
2026-07-29 08:29:29 +00:00
const obj4 = state(formatCount[4]);
const interpolateResult = obj4.interpolate(obj3.get(), [-50, 0], [0.9, 1], "clamp");
2026-07-20 16:05:17 +00:00
let sum = value + -derivedValue1.get() * (1 - interpolateResult) / 2;
num = interpolateResult;
} else {
sum = value;
2026-07-29 08:29:29 +00:00
if (obj3.get() > 0) {
const obj11 = state(formatCount[4]);
const interpolateResult1 = obj11.interpolate(obj3.get(), [50, 0], [0.9, 1], "clamp");
2026-07-20 16:05:17 +00:00
sum = value + derivedValue1.get() * (1 - interpolateResult1) / 2;
num = interpolateResult1;
}
}
2026-07-29 08:29:29 +00:00
obj = { width: null, transform: null };
obj[0] = state(formatCount[7]).withSpring(derivedValue1.get(), items);
obj = { translateX: null };
const obj6 = state(formatCount[7]);
obj[0] = state(formatCount[7]).withSpring(sum, items);
items = [obj, ];
2026-08-24 06:08:38 +00:00
obj1 = { scaleX: null };
2026-07-29 08:29:29 +00:00
const obj8 = state(formatCount[7]);
obj1[0] = state(formatCount[7]).withSpring(num, items);
items[1] = obj1;
obj[1] = items;
2026-07-20 16:05:17 +00:00
return obj;
} else {
2026-07-29 08:29:29 +00:00
obj1 = derivedValue;
value = obj.get();
2026-07-20 16:05:17 +00:00
if (value < derivedValue.get()) {
2026-07-29 08:29:29 +00:00
let num2 = 1 + scrollOverflow;
2026-07-20 16:05:17 +00:00
let diff = value - 0.02 * derivedValue1.get();
} else {
2026-07-29 08:29:29 +00:00
const value1 = obj.get();
2026-07-20 16:05:17 +00:00
num2 = 1;
2026-07-29 08:29:29 +00:00
diff = value;
if (value1 > obj1.get()) {
num2 = 1 + scrollOverflow;
2026-07-20 16:05:17 +00:00
diff = value + 0.02 * derivedValue1.get();
}
}
}
};
2026-07-29 08:29:29 +00:00
obj = { indicatorTranslateX: derivedValue2, pressedIndex, clampedActiveIndex: derivedValue, PRESSED_TRANSLATE_AMOUNT: scrollOverflow, indicatorWidth: derivedValue1, scrollOverflow, interpolate: state(formatCount[4]).interpolate, SCROLL_OVERFLOW_UPPER_BOUND: 50, SCROLL_OVERFLOW_MAX_SCALE: 0.9, withSpring: state(formatCount[7]).withSpring, SELECTED_INDICATOR_SPRING: items };
2026-07-20 16:05:17 +00:00
fn.__closure = obj;
fn.__workletHash = 1794186407627;
2026-07-29 08:29:29 +00:00
fn.__initData = useReducedMotion;
2026-07-20 16:05:17 +00:00
const animatedStyle = obj4.useAnimatedStyle(fn);
2026-07-29 08:29:29 +00:00
obj = { onScroll: null, onEndDrag: null };
2026-07-20 16:05:17 +00:00
class F {
constructor(arg0) {
result = scrollOffset.set(state.contentOffset.x);
2026-07-29 08:29:29 +00:00
if (onScrollWorklet != null) {
tmp2Result = tmp2(state.contentOffset.x);
2026-07-20 16:05:17 +00:00
}
return;
}
}
F.__closure = { scrollOffset, onScrollWorklet };
F.__workletHash = 1586298483424;
2026-08-24 06:08:38 +00:00
F.__initData = closure_17;
2026-07-29 08:29:29 +00:00
obj[0] = F;
2026-07-20 16:05:17 +00:00
const fn2 = function b() {
2026-07-29 08:29:29 +00:00
if (onEndDrag != null) {
tmp();
2026-07-20 16:05:17 +00:00
}
};
fn2.__closure = { onEndDrag };
fn2.__workletHash = 6364544472149;
2026-07-29 08:29:29 +00:00
fn2.__initData = sharedValue;
obj[1] = fn2;
2026-07-20 16:05:17 +00:00
const items2 = [useReducedMotion];
2026-07-23 10:11:24 +00:00
const obj7 = state(formatCount[4]);
2026-07-29 08:29:29 +00:00
let tmp2 = state;
2026-07-23 10:11:24 +00:00
callback1 = simultaneousHandlers.useCallback((arg0) => {
2026-07-20 16:05:17 +00:00
const current = ref.current;
2026-07-29 08:29:29 +00:00
if (current != null) {
const obj = { x: null, animated: null };
obj[0] = arg0;
obj[1] = !useReducedMotion;
2026-07-20 16:05:17 +00:00
current.scrollTo(obj);
}
}, items2);
2026-07-23 10:11:24 +00:00
const animatedScrollHandler = state(formatCount[4]).useAnimatedScrollHandler(obj);
2026-07-20 16:05:17 +00:00
const fn3 = function k() {
return { scrollOffset: scrollOffset.get(), activeIndex: activeIndex.get(), itemDimensions: itemDimensions.get() };
};
fn3.__closure = { scrollOffset, activeIndex, itemDimensions };
fn3.__workletHash = 9993285637539;
2026-07-29 08:29:29 +00:00
fn3.__initData = length;
2026-07-20 16:05:17 +00:00
class X {
constructor(arg0, arg1) {
2026-07-29 08:29:29 +00:00
tmp = arg1;
2026-07-20 16:05:17 +00:00
activeIndex = undefined;
2026-07-29 08:29:29 +00:00
if (arg1 != null) {
activeIndex = tmp.activeIndex;
2026-07-20 16:05:17 +00:00
}
if (state.activeIndex !== activeIndex) {
2026-07-29 08:29:29 +00:00
tmp15 = state;
2026-08-24 06:08:38 +00:00
tmp16 = closure_2;
obj3 = state(closure_2[8]);
2026-07-29 08:29:29 +00:00
if (!obj3.cheapWorkletShallowEqual(state, tmp)) {
2026-07-20 16:05:17 +00:00
({ scrollOffset, activeIndex, itemDimensions } = state);
num = 0;
tmp4 = itemDimensions[activeIndex];
2026-07-29 08:29:29 +00:00
num2 = undefined;
2026-07-20 16:05:17 +00:00
reduced = itemDimensions.reduce((arg0, width) => {
2026-07-29 08:29:29 +00:00
let num;
if (width != null) {
num = width.width;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
if (num == null) {
num = 0;
2026-07-20 16:05:17 +00:00
}
return arg0 + num;
}, 0);
2026-07-29 08:29:29 +00:00
if (tmp4 != null) {
num2 = tmp4.x;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
if (num2 == null) {
num2 = 0;
2026-07-20 16:05:17 +00:00
}
num3 = 1;
2026-07-29 08:29:29 +00:00
tmp5 = itemSpacing;
2026-07-20 16:05:17 +00:00
sum = num2 + (activeIndex - 1) * itemSpacing;
2026-07-29 08:29:29 +00:00
tmp7 = itemDimensions[activeIndex];
2026-07-20 16:05:17 +00:00
width = undefined;
2026-07-29 08:29:29 +00:00
if (tmp7 != null) {
width = tmp7.width;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
tmp9 = 0 !== reduced && true && null != width;
if (tmp9) {
tmp10 = pageWidth;
2026-07-20 16:05:17 +00:00
if (scrollOffset + pageWidth < sum + width) {
2026-07-29 08:29:29 +00:00
tmp15Result = tmp15(tmp16[4]);
2026-08-24 06:08:38 +00:00
tmp13 = closure_24;
2026-07-20 16:05:17 +00:00
num5 = 16;
2026-08-24 06:08:38 +00:00
tmp14 = tmp15Result.runOnJS(closure_24)(sum + 16);
2026-07-29 08:29:29 +00:00
} else if (sum < scrollOffset) {
tmp15Result1 = tmp15(tmp16[4]);
2026-08-24 06:08:38 +00:00
tmp11 = closure_24;
2026-07-29 08:29:29 +00:00
num4 = 16;
2026-08-24 06:08:38 +00:00
tmp12 = tmp15Result1.runOnJS(closure_24)(sum - 16);
2026-07-20 16:05:17 +00:00
}
}
}
}
return;
}
}
2026-07-23 10:11:24 +00:00
obj1 = { cheapWorkletShallowEqual: state(formatCount[8]).cheapWorkletShallowEqual, itemSpacing, pageWidth, runOnJS: state(formatCount[4]).runOnJS, scrollToOffset: callback1, AUTO_SCROLL_BUFFER: 16 };
2026-07-20 16:05:17 +00:00
X.__closure = obj1;
X.__workletHash = 15851319414889;
2026-07-29 08:29:29 +00:00
X.__initData = ref;
2026-07-23 10:11:24 +00:00
const animatedReaction = state(formatCount[4]).useAnimatedReaction(fn3, X);
const items3 = [items, length, formatCount, state, flag, pressedIndex, activeIndex, setActiveIndex, tmp.controlsContainer, variant];
const items4 = [simultaneousHandlers];
const memo = simultaneousHandlers.useMemo(() => variant(onScrollWorklet, {
2026-08-24 06:08:38 +00:00
style: controlsContainer.controlsContainer,
2026-07-20 16:05:17 +00:00
children: items.map((count, index) => {
count = count.count;
2026-08-24 06:08:38 +00:00
closure_0 = index;
2026-07-20 16:05:17 +00:00
({ label, id } = count);
2026-07-29 08:29:29 +00:00
const obj = { index, itemCount: closure_19, label, count: null, state: null, grow: null, pressed: null, selected: null, onPress: null, onPressIn: null, onPressOut: null, variant: null };
2026-07-20 16:05:17 +00:00
let tmp2;
if (null != count) {
2026-07-29 08:29:29 +00:00
tmp2 = callback(count);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
obj[3] = tmp2;
obj[4] = closure_0;
obj[5] = closure_1;
obj[6] = closure_14;
obj[7] = index === closure_7.get();
obj[8] = function onPress() {
2026-08-24 06:08:38 +00:00
closure_1_15(closure_0);
2026-07-20 16:05:17 +00:00
};
2026-07-29 08:29:29 +00:00
obj[9] = function onPressIn() {
2026-08-24 06:08:38 +00:00
const result = closure_1_14.set(closure_0);
2026-07-20 16:05:17 +00:00
};
2026-07-29 08:29:29 +00:00
obj[10] = function onPressOut() {
const result = closure_14.set(-1);
2026-07-20 16:05:17 +00:00
};
2026-07-29 08:29:29 +00:00
obj[11] = closure_6;
2026-08-24 06:08:38 +00:00
return closure_1_6(closure_1_0(closure_1_2[9]).TabItem, obj, id);
2026-07-20 16:05:17 +00:00
})
}), items3);
2026-07-23 10:11:24 +00:00
const memo1 = simultaneousHandlers.useMemo(() => {
2026-07-20 16:05:17 +00:00
let result = null;
if (null != simultaneousHandlers) {
const Gesture = state(formatCount[10]).Gesture;
2026-07-29 08:29:29 +00:00
result = Gesture.Native().simultaneousWithExternalGesture(tmp);
2026-07-20 16:05:17 +00:00
const NativeResult = Gesture.Native();
}
return result;
}, items4);
2026-07-29 08:29:29 +00:00
obj2 = { ref, accessibilityRole: null, keyboardShouldPersistTaps: "handled", horizontal: true, onScroll: null, scrollEventThrottle: 16, showsHorizontalScrollIndicator: false, contentContainerStyle: null, bounces: false, children: null };
2026-07-23 10:11:24 +00:00
const obj9 = state(formatCount[4]);
2026-07-29 08:29:29 +00:00
const tmp16 = activeIndex;
const tmp17 = scrollOffset;
2026-07-20 16:05:17 +00:00
let str;
if (obj12.isIOS()) {
str = "tabbar";
}
2026-07-29 08:29:29 +00:00
obj2[1] = str;
obj2[4] = animatedScrollHandler;
obj2[7] = tmp.container;
obj3 = { style: tmp.indicatorContainer, onLayout: callback, children: variant(flag(tmp3[4]).View, { style: items5 }) };
2026-07-23 10:11:24 +00:00
items5 = [tmp.indicator, animatedStyle];
const items6 = [variant(onScrollWorklet, obj3), memo];
2026-07-29 08:29:29 +00:00
obj2[9] = items6;
const tmp16Result = tmp16(tmp17, obj2);
let tmp18Result = tmp16Result;
2026-07-20 16:05:17 +00:00
if (null != memo1) {
2026-07-29 08:29:29 +00:00
obj4 = { gesture: null, children: null };
obj4[0] = memo1;
obj4[1] = tmp16Result;
tmp18Result = variant(tmp2(tmp3[10]).GestureDetector, obj4);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
return tmp18Result;
2026-07-20 16:05:17 +00:00
};