163 lines
5.5 KiB
TypeScript
163 lines
5.5 KiB
TypeScript
// Module ID: 16387
|
|
// Function ID: 16388
|
|
// Name: vibegrations/VibegrationsAwaitingUser
|
|
// Dependencies: [19, 4826, 21, 588, 4837, 558, 576, 504, 4570, 4838, 2]
|
|
|
|
// Module 16387 (vibegrations/VibegrationsAwaitingUser)
|
|
import Fragment from "Fragment" /* 21 */;
|
|
import nativeDefault from "native" /* 588 */;
|
|
import ReanimatedRexport from "ReanimatedRexport" /* 4570 */;
|
|
import timing from "timing" /* 4838 */;
|
|
import react from "react" /* 19 */;
|
|
import AccessibilityStore from "AccessibilityStore" /* 4826 */;
|
|
import createStyles from "createStyles" /* 4837 */;
|
|
import ReactCompilerGating from "ReactCompilerGating" /* 558 */;
|
|
import size from "module_2" /* 2 */;
|
|
|
|
let set;
|
|
|
|
let rect;
|
|
const jsx = Fragment.jsx;
|
|
const PX_4 = nativeDefault.space.PX_4;
|
|
let obj = { ring: rect };
|
|
rect = { position: "absolute", top: -PX_4, right: -PX_4, bottom: -PX_4, left: -PX_4, borderWidth: PX_4, borderColor: nativeDefault.colors.BACKGROUND_BRAND, borderRadius: nativeDefault.radii.md };
|
|
let closure_6 = createStyles.createStyles(obj);
|
|
const __initData = { code: "function VibegrationsAwaitingUserTsx1(){const{opacity}=this.__closure;return{opacity:opacity.get()};}" };
|
|
const __initData2 = { code: "function VibegrationsAwaitingUserTsx2(){const{opacity}=this.__closure;return{opacity:opacity.get()};}" };
|
|
const tmp2 = ReactCompilerGating.isReactCompilerEnabled() ? (() => {
|
|
let stateFromStores;
|
|
let tmp5;
|
|
let tmp6;
|
|
let useReducedMotion;
|
|
let tmp = stateFromStores;
|
|
let obj = stateFromStores(576);
|
|
const cResult = obj.c(9);
|
|
const tmp4 = closure_6();
|
|
if (cResult[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
const items = [AccessibilityStore];
|
|
let fn = function l() {
|
|
return useReducedMotion.useReducedMotion;
|
|
};
|
|
cResult[0] = items;
|
|
cResult[1] = fn;
|
|
tmp5 = items;
|
|
tmp6 = fn;
|
|
} else {
|
|
[tmp5, tmp6] = cResult;
|
|
}
|
|
const tmpResult = tmp(504);
|
|
stateFromStores = tmpResult.useStateFromStores(tmp5, tmp6);
|
|
const tmpResult3 = tmp(4570);
|
|
const sharedValue = tmpResult3.useSharedValue(0);
|
|
if (cResult[2] === sharedValue) {
|
|
let tmp10;
|
|
let tmp11;
|
|
if (cResult[3] === stateFromStores) {
|
|
tmp10 = cResult[4];
|
|
tmp11 = cResult[5];
|
|
}
|
|
const effect = react.useEffect(tmp10, tmp11);
|
|
const fn3 = function v() {
|
|
const obj = { opacity: sharedValue.get() };
|
|
return obj;
|
|
};
|
|
let obj2 = { opacity: sharedValue };
|
|
fn3.__closure = obj2;
|
|
fn3.__workletHash = 7009775530053;
|
|
fn3.__initData = __initData;
|
|
const tmpResult4 = tmp(4570);
|
|
const animatedStyle = tmpResult4.useAnimatedStyle(fn3);
|
|
if (cResult[6] === animatedStyle) {
|
|
let tmp16;
|
|
if (cResult[7] === tmp4.ring) {
|
|
tmp16 = cResult[8];
|
|
}
|
|
return tmp16;
|
|
}
|
|
const items1 = [tmp4.ring, animatedStyle];
|
|
const tmp19 = jsx(sharedValue(4570).View, { pointerEvents: "none", style: items1 });
|
|
cResult[6] = animatedStyle;
|
|
cResult[7] = tmp4.ring;
|
|
cResult[8] = tmp19;
|
|
tmp16 = tmp19;
|
|
}
|
|
const fn2 = function y() {
|
|
let Easing;
|
|
let fn;
|
|
const tmp = stateFromStores;
|
|
if (tmp) {
|
|
const obj2 = ReanimatedRexport;
|
|
obj2.cancelAnimation(sharedValue);
|
|
const result = sharedValue.set(0);
|
|
} else {
|
|
set = sharedValue.set;
|
|
const withRepeat = ReanimatedRexport.withRepeat;
|
|
ReanimatedRexport;
|
|
let obj = { duration: 1000, easing: Easing.inOut(ReanimatedRexport.Easing.ease) };
|
|
const withTiming = timing.withTiming;
|
|
timing;
|
|
Easing = ReanimatedRexport.Easing;
|
|
const result1 = set(withRepeat(withTiming(0.35, obj), -1, true));
|
|
fn = () => {
|
|
const obj = stateFromStores(dependencyMap[8]);
|
|
return obj.cancelAnimation(sharedValue);
|
|
};
|
|
}
|
|
return fn;
|
|
};
|
|
const items2 = [sharedValue, stateFromStores];
|
|
cResult[2] = sharedValue;
|
|
cResult[3] = stateFromStores;
|
|
cResult[4] = fn2;
|
|
cResult[5] = items2;
|
|
tmp11 = items2;
|
|
tmp10 = fn2;
|
|
}) : (() => {
|
|
let stateFromStores;
|
|
let useReducedMotion;
|
|
let tmp = closure_6();
|
|
let obj = stateFromStores(504);
|
|
const items = [AccessibilityStore];
|
|
stateFromStores = obj.useStateFromStores(items, () => useReducedMotion.useReducedMotion);
|
|
let obj2 = stateFromStores(4570);
|
|
const sharedValue = obj2.useSharedValue(0);
|
|
const items1 = [sharedValue, stateFromStores];
|
|
const effect = react.useEffect(() => {
|
|
let Easing;
|
|
let fn;
|
|
const tmp = stateFromStores;
|
|
if (tmp) {
|
|
const obj2 = ReanimatedRexport;
|
|
obj2.cancelAnimation(sharedValue);
|
|
const result = sharedValue.set(0);
|
|
} else {
|
|
set = sharedValue.set;
|
|
const withRepeat = ReanimatedRexport.withRepeat;
|
|
ReanimatedRexport;
|
|
let obj = { duration: 1000, easing: Easing.inOut(ReanimatedRexport.Easing.ease) };
|
|
const withTiming = timing.withTiming;
|
|
timing;
|
|
Easing = ReanimatedRexport.Easing;
|
|
const result1 = set(withRepeat(withTiming(0.35, obj), -1, true));
|
|
fn = () => {
|
|
const obj = stateFromStores(dependencyMap[8]);
|
|
return obj.cancelAnimation(sharedValue);
|
|
};
|
|
}
|
|
return fn;
|
|
}, items1);
|
|
let fn = function p() {
|
|
const obj = { opacity: sharedValue.get() };
|
|
return obj;
|
|
};
|
|
fn.__closure = { opacity: sharedValue };
|
|
fn.__workletHash = 15488190280262;
|
|
fn.__initData = __initData2;
|
|
const obj3 = stateFromStores(4570);
|
|
const animatedStyle = obj3.useAnimatedStyle(fn);
|
|
const items2 = [tmp.ring, animatedStyle];
|
|
return jsx(sharedValue(4570).View, { pointerEvents: "none", style: items2 });
|
|
});
|
|
let result = size.fileFinishedImporting("modules/vibegrations/native/VibegrationsAwaitingUser.tsx");
|
|
|
|
export const VibegrationsAwaitingPulseRing = tmp2;
|