decord/source/design/components/Button/native/ButtonEllipsis.native.tsx

123 lines
4.9 KiB
TypeScript
Raw Normal View History

2026-08-12 06:57:52 +00:00
// Module ID: 4769
// Function ID: 4770
2026-07-20 16:05:17 +00:00
// Name: EllipsisCircle
2026-08-12 06:57:52 +00:00
// Dependencies: [19, 21, 4083, 4344, 712, 4345, 4759, 4770, 2]
2026-07-20 16:05:17 +00:00
// Exports: Ellipsis
2026-08-12 06:57:52 +00:00
// Module 4769 (EllipsisCircle)
2026-07-29 08:29:29 +00:00
import "noop";
2026-07-23 10:11:24 +00:00
import jsxProd from "jsxProd";
2026-08-12 06:57:52 +00:00
import { Easing } from "module_4083";
2026-07-29 08:29:29 +00:00
import createCacheKey from "createCacheKey";
2026-07-23 10:11:24 +00:00
2026-07-29 08:29:29 +00:00
let c3;
let c4;
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-07-20 16:05:17 +00:00
function EllipsisCircle(offset) {
let size;
let variant;
offset = offset.offset;
2026-07-29 08:29:29 +00:00
let sharedValue;
let sharedValue1;
2026-07-20 16:05:17 +00:00
({ variant, size } = offset);
2026-07-23 10:11:24 +00:00
let obj = offset(sharedValue1[6]);
const tmp = callback3(size, offset, offset(sharedValue1[6]).useForegroundColor(variant));
2026-07-29 08:29:29 +00:00
sharedValue = offset(sharedValue1[2]).useSharedValue(0.4);
let obj2 = offset(sharedValue1[2]);
2026-07-23 10:11:24 +00:00
sharedValue1 = offset(sharedValue1[2]).useSharedValue(0.75);
2026-07-29 08:29:29 +00:00
let obj3 = offset(sharedValue1[2]);
2026-07-23 10:11:24 +00:00
const mountLayoutEffect = offset(sharedValue1[7]).useMountLayoutEffect(() => {
2026-08-04 21:03:28 +00:00
if (typeof outer1_7 !== "function") {
2026-07-29 08:29:29 +00:00
HermesBuiltin.throwTypeError();
}
const result = 166.66666666666666 * tmp3;
let obj = offset(sharedValue1[2]);
const tmp2 = outer1_7;
const obj2 = offset(sharedValue1[2]);
const result1 = sharedValue.set(obj.withDelay(result, obj2.withRepeat(offset(sharedValue1[5]).withTiming(1, outer1_5, "animate-always"), -1, true)));
2026-08-04 21:03:28 +00:00
if (typeof tmp2 !== "function") {
2026-07-29 08:29:29 +00:00
HermesBuiltin.throwTypeError();
}
let tmp4Result = tmp4(tmp5[2]);
const result2 = 166.66666666666666 * tmp3;
tmp4Result = tmp4(tmp5[2]);
const obj3 = offset(sharedValue1[5]);
const tmp7 = outer1_5;
const result3 = sharedValue1.set(tmp4Result.withDelay(result2, tmp4Result.withRepeat(offset(sharedValue1[5]).withTiming(1, tmp7, "animate-always"), -1, true)));
2026-07-20 16:05:17 +00:00
return () => {
2026-07-29 08:29:29 +00:00
outer1_0(outer1_2[2]).cancelAnimation(closure_1);
const obj = outer1_0(outer1_2[2]);
outer1_0(outer1_2[2]).cancelAnimation(closure_2);
2026-07-20 16:05:17 +00:00
};
});
2026-07-23 10:11:24 +00:00
const obj4 = offset(sharedValue1[7]);
2026-07-20 16:05:17 +00:00
const fn = function w() {
2026-07-29 08:29:29 +00:00
let obj = { opacity: sharedValue.get(), transform: null };
2026-07-20 16:05:17 +00:00
obj = { scale: sharedValue1.get() };
const items = [obj];
2026-07-29 08:29:29 +00:00
obj[1] = items;
2026-07-20 16:05:17 +00:00
return obj;
};
fn.__closure = { opacity: sharedValue, scale: sharedValue1 };
fn.__workletHash = 13371762734705;
2026-07-29 08:29:29 +00:00
fn.__initData = closure_8;
2026-07-23 10:11:24 +00:00
const animatedStyle = offset(sharedValue1[2]).useAnimatedStyle(fn);
2026-07-20 16:05:17 +00:00
const style = [tmp.circle, animatedStyle];
2026-07-23 10:11:24 +00:00
return callback(sharedValue(sharedValue1[2]).View, { style });
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
({ jsx: c3, jsxs: c4 } = jsxProd);
let obj = { duration: 500, easing: null };
2026-08-12 06:57:52 +00:00
obj[1] = Easing.inOut(require("module_4083").Easing.quad);
2026-07-29 08:29:29 +00:00
let closure_6 = createCacheKey.createStyles((arg0, arg1, arg2) => {
2026-07-20 16:05:17 +00:00
if ("lg" === arg0) {
let num = 4;
2026-07-29 08:29:29 +00:00
let num2 = 8;
2026-07-20 16:05:17 +00:00
} else {
if ("md" !== arg0) {
if ("sm" !== arg0) {
num = 4;
if ("xs" === arg0) {
num = 3;
2026-07-29 08:29:29 +00:00
num2 = 5;
2026-07-20 16:05:17 +00:00
}
}
}
num = 4;
2026-07-29 08:29:29 +00:00
num2 = 6;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
const circle = { width: num2, height: num2, borderRadius: importDefault(712).radii.round, marginEnd: null, backgroundColor: null };
2026-07-20 16:05:17 +00:00
let num3 = 0;
if (2 !== arg1) {
num3 = num;
}
2026-07-29 08:29:29 +00:00
circle[3] = num3;
circle[4] = arg2;
return { circle };
2026-07-20 16:05:17 +00:00
});
2026-07-29 08:29:29 +00:00
function withEllipsisAnimation(arg0, value) {
2026-08-12 06:57:52 +00:00
const obj = require(4083);
2026-07-29 08:29:29 +00:00
const result = 166.66666666666666 * arg0;
2026-08-12 06:57:52 +00:00
const obj2 = require(4083);
return obj.withDelay(result, obj2.withRepeat(require(4345) /* CONFIG_NEVER_ANIMATE_TIMING */.withTiming(value, obj, "animate-always"), -1, true));
2026-07-29 08:29:29 +00:00
}
2026-08-12 06:57:52 +00:00
obj = { ELLIPSIS_APPEAR_DURATION: 500, withDelay: require("module_4083").withDelay, withRepeat: require("module_4083").withRepeat, withTiming: require("CONFIG_NEVER_ANIMATE_TIMING").withTiming, ELLIPSIS_APPEAR_TIMING: obj };
2026-07-29 08:29:29 +00:00
withEllipsisAnimation.__closure = obj;
withEllipsisAnimation.__workletHash = 2181731162311;
withEllipsisAnimation.__initData = { code: "function withEllipsisAnimation_ButtonEllipsisNativeTsx1(offset,value){const{ELLIPSIS_APPEAR_DURATION,withDelay,withRepeat,withTiming,ELLIPSIS_APPEAR_TIMING}=this.__closure;const animationTimeMs=ELLIPSIS_APPEAR_DURATION;const animationStaggerTimeMs=animationTimeMs/3;return withDelay(offset*animationStaggerTimeMs,withRepeat(withTiming(value,ELLIPSIS_APPEAR_TIMING,'animate-always'),-1,true));}" };
let closure_8 = { code: "function ButtonEllipsisNativeTsx2(){const{opacity,scale}=this.__closure;return{opacity:opacity.get(),transform:[{scale:scale.get()}]};}" };
2026-08-12 06:57:52 +00:00
let result = require("module_4083").fileFinishedImporting("design/components/Button/native/ButtonEllipsis.native.tsx");
2026-07-20 16:05:17 +00:00
export const Ellipsis = function Ellipsis(arg0) {
2026-07-29 08:29:29 +00:00
let obj = { style: { flexDirection: "row" }, children: null };
2026-07-20 16:05:17 +00:00
obj = { offset: 0 };
const merged = Object.assign(arg0);
const items = [callback(EllipsisCircle, obj), , ];
obj = { offset: 1 };
const merged1 = Object.assign(arg0);
items[1] = callback(EllipsisCircle, obj);
const merged2 = Object.assign(arg0);
items[2] = callback(EllipsisCircle, { offset: 2 });
2026-07-29 08:29:29 +00:00
obj[1] = items;
2026-08-12 06:57:52 +00:00
return callback2(importDefault(4083).View, obj);
2026-07-20 16:05:17 +00:00
};