147 lines
8.4 KiB
TypeScript
147 lines
8.4 KiB
TypeScript
/* Metro module 4593; source: design/components/Button/native/ButtonEllipsis.native.tsx; dependencies: [31, 33, 4017, 4501, 697, 4504, 4583, 4594, 2] */
|
|
import ReanimatedRexport from '../../../../modules/reanimated/ReanimatedRexport.tsx'; /* Metro dependency 4017 */
|
|
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
|
|
import * as JsxRuntimeModule from '../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
|
|
import * as ReanimatedRexportModule from '../../../../modules/reanimated/ReanimatedRexport.tsx'; /* Metro dependency 4017 */
|
|
import * as CreateStylesModule from '../../Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
|
|
import * as TimingModule from '../../../animation/reanimated/timing/timing.tsx'; /* Metro dependency 4504 */
|
|
import * as ButtonHooksNativeModule from './ButtonHooks.native.tsx'; /* Metro dependency 4583 */
|
|
import * as UseMountEffectModule from '../../../../hooks/useMountEffect.tsx'; /* Metro dependency 4594 */
|
|
|
|
function _fun38927(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#38927, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4771:6, offset: 0x010d1647, size: 301 bytes, params: 8, frame: 19
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
ReactModule;
|
|
object = {duration: 500};
|
|
const Easing = (ReanimatedRexportModule).Easing;
|
|
const inOut = Easing.inOut;
|
|
const Easing2 = (ReanimatedRexportModule).Easing;
|
|
object.easing = Reflect.apply(inOut, Easing, [Easing2.quad]);
|
|
const env0_6 = (CreateStylesModule).createStyles(_fun38932);
|
|
object = {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));}"};
|
|
const env0_8 = _fun38933();
|
|
object = {code: 'function ButtonEllipsisNativeTsx2(){const{opacity,scale}=this.__closure;return{opacity:opacity.get(),transform:[{scale:scale.get()}]};}'};
|
|
(FileImportTrackerModule).fileFinishedImporting('design/components/Button/native/ButtonEllipsis.native.tsx');
|
|
exports.Ellipsis = Ellipsis;
|
|
function EllipsisCircle({variant, size, offset}) { // fn#38928, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4771:1436, offset: 0x010d1774, size: 293 bytes, params: 2, frame: 22
|
|
const styles = useStyles(size, offset,
|
|
(ButtonHooksNativeModule).useForegroundColor(variant));
|
|
const value3 = (ReanimatedRexportModule).useSharedValue(0.4);
|
|
const value4 = (ReanimatedRexportModule).useSharedValue(0.75);
|
|
(UseMountEffectModule).useMountLayoutEffect(_fun38929);
|
|
const useAnimatedStyle = ReanimatedRexportModule.useAnimatedStyle;
|
|
const EllipsisCircleW2 = EllipsisCircleW;
|
|
EllipsisCircleW2.__closure = {opacity: value3, scale: value4};
|
|
EllipsisCircleW2.__workletHash = 13371762734705;
|
|
EllipsisCircleW2.__initData = env0_9;
|
|
const value5 = Reflect.apply(useAnimatedStyle, ReanimatedRexportModule, [EllipsisCircleW2]);
|
|
const View = (ReanimatedRexport).View;
|
|
return <View style={[styles.circle, value5]} />;
|
|
function _fun38929() { // fn#38929, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4771:1625, offset: 0x010d1899, size: 72 bytes, params: 1, frame: 17
|
|
const binding = env0_1;
|
|
const set = binding.set;
|
|
const binding2 = env1_8;
|
|
const offsetBinding = offset;
|
|
Reflect.apply(set, binding, [binding2(offsetBinding, 1)]);
|
|
env0_2.set(env1_8(offsetBinding, 1));
|
|
return _fun38930;
|
|
function _fun38930() { // fn#38930, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4771:1658, offset: 0x010d18e1, size: 69 bytes, params: 1, frame: 16
|
|
const value = environment.__proto__.__proto__;
|
|
(ReanimatedRexportModule).cancelAnimation(env1_1);
|
|
(ReanimatedRexportModule).cancelAnimation(env1_2);
|
|
}
|
|
|
|
}
|
|
|
|
function EllipsisCircleW() { // fn#38931, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4771:1758, owner: EllipsisCircle.w, offset: 0x010d1926, size: 56 bytes, params: 1, frame: 11
|
|
const object = {};
|
|
object.opacity = env0_1.get();
|
|
const object2 = {};
|
|
object2.scale = env0_2.get();
|
|
object.transform = [object2];
|
|
return object;
|
|
}
|
|
|
|
}
|
|
|
|
function _fun38932(a0, a1, a2) { // fn#38932, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4771:221, offset: 0x010d195e, size: 147 bytes, params: 4, frame: 14
|
|
var r2;
|
|
var r3;
|
|
var value;
|
|
var value3;
|
|
var value4;
|
|
var value5;
|
|
if (a0 === 'lg') {
|
|
value = 8;
|
|
value5 = 4;
|
|
r2 = value;
|
|
r3 = value5;
|
|
} else if (a0 === 'md') {
|
|
value = 6;
|
|
value4 = 4;
|
|
r2 = value;
|
|
r3 = value4;
|
|
} else if (a0 === 'sm') {
|
|
value = 6;
|
|
value4 = 4;
|
|
r2 = value;
|
|
r3 = value4;
|
|
} else {
|
|
value = 4;
|
|
if (a0 !== 'xs') {
|
|
r2 = undefined;
|
|
r3 = value;
|
|
} else {
|
|
value = 5;
|
|
value3 = 3;
|
|
r2 = value;
|
|
r3 = value3;
|
|
}
|
|
}
|
|
const object2 = {width: r2, height: r2};
|
|
object2.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
|
|
object2.marginEnd = a1 === 2 ? 0 : r3;
|
|
object2.backgroundColor = a2;
|
|
return {circle: object2};
|
|
}
|
|
|
|
function _fun38933() { // fn#38933, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4771:830, offset: 0x010d19f1, size: 144 bytes, params: 1, frame: 16
|
|
const withEllipsisAnimation2 = withEllipsisAnimation;
|
|
const object = {ELLIPSIS_APPEAR_DURATION: 500};
|
|
object.withDelay = (require(4017) /* metro dependency 4017: ReanimatedRexport */).withDelay;
|
|
object.withRepeat = (require(4017) /* metro dependency 4017: ReanimatedRexport */).withRepeat;
|
|
object.withTiming = (require(4504) /* metro dependency 4504: timing */).withTiming;
|
|
object.ELLIPSIS_APPEAR_TIMING = env0_5;
|
|
withEllipsisAnimation2.__closure = object;
|
|
withEllipsisAnimation2.__workletHash = 2181731162311;
|
|
withEllipsisAnimation2.__initData = env0_7;
|
|
return withEllipsisAnimation2;
|
|
function withEllipsisAnimation(a0, a1) { // fn#38934, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4771:867, offset: 0x010d1a81, size: 123 bytes, params: 3, frame: 20
|
|
const value = environment.__proto__;
|
|
const withDelay = ReanimatedRexportModule.withDelay;
|
|
const value2 = 166.66666666666666 * a0;
|
|
return Reflect.apply(withDelay, ReanimatedRexportModule, [value2,
|
|
ReanimatedRexportModule.withRepeat((TimingModule).withTiming(a1, env1_5,
|
|
'animate-always'), -1, true)]);
|
|
}
|
|
|
|
}
|
|
|
|
function Ellipsis(a0) { // fn#38935, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4771:2036, offset: 0x010d1afc, size: 171 bytes, params: 2, frame: 21
|
|
const View = (ReanimatedRexport).View;
|
|
return (
|
|
<View style={{flexDirection: 'row'}}>
|
|
<EllipsisCircle offset={0} {...a0} />
|
|
<EllipsisCircle offset={1} {...a0} />
|
|
<EllipsisCircle offset={2} {...a0} />
|
|
</View>
|
|
);
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun38927, 4593, [31, 33, 4017, 4501, 697, 4504, 4583, 4594,
|
|
2]) /* metro module 4593, dependencies: [31, 33, 4017, 4501, 697, 4504, 4583, 4594, 2] */;
|