107 lines
5.3 KiB
TypeScript
107 lines
5.3 KiB
TypeScript
// Module ID: 6268
|
|
// Function ID: 56310
|
|
// Name: items
|
|
// Dependencies: [31, 27, 33, 4131, 689, 3992, 4132, 666, 2]
|
|
|
|
// Module 6268 (items)
|
|
import importAllResult from "result";
|
|
import get_ActivityIndicator from "get ActivityIndicator";
|
|
import jsxProd from "jsxProd";
|
|
import _createForOfIteratorHelperLoose from "_createForOfIteratorHelperLoose";
|
|
|
|
let closure_4;
|
|
let closure_5;
|
|
let closure_6;
|
|
let closure_7;
|
|
const require = arg1;
|
|
({ Image: closure_4, View: closure_5 } = get_ActivityIndicator);
|
|
({ jsx: closure_6, jsxs: closure_7 } = jsxProd);
|
|
let closure_8 = Object.freeze({ FLASH_TIME_PERCENT: 0.72, FLASH_DURATION_PERCENT: 0.08 });
|
|
let obj = { container: { overflow: "hidden" } };
|
|
obj = {};
|
|
const merged = Object.assign(get_ActivityIndicator.StyleSheet.absoluteFillObject);
|
|
obj.shineContainer = obj;
|
|
_createForOfIteratorHelperLoose = { transform: null, width: 56, flex: 0, height: "300%", top: "-10%" };
|
|
let items = [{ rotate: "30deg" }];
|
|
_createForOfIteratorHelperLoose.transform = items;
|
|
obj.shine = _createForOfIteratorHelperLoose;
|
|
obj.shineInner = { backgroundColor: require("_createForOfIteratorHelperLoose").colors.BACKGROUND_MOD_NORMAL, flex: 1 };
|
|
let closure_9 = _createForOfIteratorHelperLoose.createStyles(obj);
|
|
let closure_10 = { code: "function ShineAnimationTsx1(){const{interpolate,progress}=this.__closure;const widthPercent=interpolate(progress.get(),[0,1],[20,160]);return{width:widthPercent+\"%\"};}" };
|
|
let closure_11 = { code: "function ShineAnimationTsx2(){const{ShineAnimationConfig,interpolateColor,progress,flashStartColor,flashEndColor}=this.__closure;const startTime=ShineAnimationConfig.FLASH_TIME_PERCENT;const duration=ShineAnimationConfig.FLASH_DURATION_PERCENT;return{backgroundColor:interpolateColor(progress.get(),[0,startTime,startTime,startTime+duration,1],[flashStartColor,flashStartColor,flashEndColor,flashEndColor,flashStartColor])};}" };
|
|
let obj2 = { backgroundColor: require("_createForOfIteratorHelperLoose").colors.BACKGROUND_MOD_NORMAL, flex: 1 };
|
|
const memoResult = importAllResult.memo(function ShineAnimation(arg0) {
|
|
let source;
|
|
let style;
|
|
({ source, style } = arg0);
|
|
const tmp = callback3();
|
|
let obj = sharedValue(hexResult1[5]);
|
|
sharedValue = obj.useSharedValue(0);
|
|
let items = [sharedValue];
|
|
const effect = importAllResult.useEffect(() => {
|
|
const obj = sharedValue(hexResult1[5]);
|
|
const obj2 = sharedValue(hexResult1[5]);
|
|
const result = sharedValue.set(obj.withDelay(400, obj2.withRepeat(sharedValue(hexResult1[6]).withTiming(1, { duration: 1000 }), -1, false)));
|
|
}, items);
|
|
let obj1 = sharedValue(hexResult1[5]);
|
|
class A {
|
|
constructor() {
|
|
obj = {};
|
|
obj2 = outer1_0(alpha[5]);
|
|
obj.width = "" + obj2.interpolate(closure_0.get(), [0, 1], [20, 160]) + "%";
|
|
return obj;
|
|
}
|
|
}
|
|
obj = { interpolate: sharedValue(hexResult1[5]).interpolate, progress: sharedValue };
|
|
A.__closure = obj;
|
|
A.__workletHash = 4072719467417;
|
|
A.__initData = closure_10;
|
|
const animatedStyle = obj1.useAnimatedStyle(A);
|
|
const tmp5 = importDefault(hexResult1[7]);
|
|
const tmp5Result = importDefault(hexResult1[7])(importDefault(hexResult1[4]).unsafe_rawColors.BRAND_360);
|
|
const hexResult = importDefault(hexResult1[7])(importDefault(hexResult1[4]).unsafe_rawColors.BRAND_360).alpha(0.2).hex();
|
|
importDefault = hexResult;
|
|
const alphaResult = importDefault(hexResult1[7])(importDefault(hexResult1[4]).unsafe_rawColors.BRAND_360).alpha(0.2);
|
|
const tmp7 = importDefault(hexResult1[7]);
|
|
const tmp7Result = importDefault(hexResult1[7])(importDefault(hexResult1[4]).unsafe_rawColors.BRAND_360);
|
|
hexResult1 = importDefault(hexResult1[7])(importDefault(hexResult1[4]).unsafe_rawColors.BRAND_360).alpha(1).hex();
|
|
const alphaResult1 = importDefault(hexResult1[7])(importDefault(hexResult1[4]).unsafe_rawColors.BRAND_360).alpha(1);
|
|
class E {
|
|
constructor() {
|
|
FLASH_TIME_PERCENT = outer1_8.FLASH_TIME_PERCENT;
|
|
obj = {};
|
|
obj2 = outer1_0(alpha[5]);
|
|
items = [0];
|
|
items[1] = FLASH_TIME_PERCENT;
|
|
items[2] = FLASH_TIME_PERCENT;
|
|
items[3] = FLASH_TIME_PERCENT + outer1_8.FLASH_DURATION_PERCENT;
|
|
items[4] = 1;
|
|
items1 = [, , , , ];
|
|
items1[0] = closure_1;
|
|
items1[1] = closure_1;
|
|
items1[2] = alpha;
|
|
items1[3] = alpha;
|
|
items1[4] = closure_1;
|
|
obj.backgroundColor = obj2.interpolateColor(closure_0.get(), items, items1);
|
|
return obj;
|
|
}
|
|
}
|
|
obj = { ShineAnimationConfig: closure_8, interpolateColor: sharedValue(hexResult1[5]).interpolateColor, progress: sharedValue, flashStartColor: hexResult, flashEndColor: hexResult1 };
|
|
E.__closure = obj;
|
|
E.__workletHash = 9845866779228;
|
|
E.__initData = closure_11;
|
|
const animatedStyle1 = sharedValue(hexResult1[5]).useAnimatedStyle(E);
|
|
obj1 = { style: items1 };
|
|
items1 = [tmp.container, style, animatedStyle1];
|
|
let obj2 = { style: tmp.shineContainer };
|
|
const items2 = [callback(importDefault(hexResult1[5]).View, { style: animatedStyle }), ];
|
|
const obj8 = sharedValue(hexResult1[5]);
|
|
items2[1] = callback(closure_5, { style: tmp.shine, children: callback(closure_5, obj4) });
|
|
obj2.children = items2;
|
|
const items3 = [callback2(closure_5, obj2), callback(closure_4, { source })];
|
|
obj1.children = items3;
|
|
return callback2(importDefault(hexResult1[5]).View, obj1);
|
|
});
|
|
let result = require("jsxProd").fileFinishedImporting("components_native/premium/ShineAnimation.tsx");
|
|
|
|
export default memoResult;
|