/* Metro module 4593; source: design/components/Button/native/ButtonEllipsis.native.tsx; dependencies: [31, 33, 4017, 4501, 697, 4504, 4583, 4594, 2] */ 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 var object2; const env0_0 = require; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); importAll(31) /* metro dependency 31 */; const value = require(33) /* metro dependency 33 */; const env0_3 = value.jsx; const env0_4 = value.jsxs; object2 = {duration: 500}; const Easing = (require(4017) /* metro dependency 4017: ReanimatedRexport */).Easing; const inOut = Easing.inOut; const Easing2 = (require(4017) /* metro dependency 4017: ReanimatedRexport */).Easing; object2.easing = Reflect.apply(inOut, Easing, [Easing2.quad]); const env0_6 = (require(4501) /* metro dependency 4501: createStyles */).createStyles(_fun38932); object2 = {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(); object2 = {code: 'function ButtonEllipsisNativeTsx2(){const{opacity,scale}=this.__closure;return{opacity:opacity.get(),transform:[{scale:scale.get()}]};}'}; (require(2) /* metro dependency 2 */).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, (require(4583) /* metro dependency 4583: ButtonHooksNative */).useForegroundColor(variant)); const value3 = (require(4017) /* metro dependency 4017: ReanimatedRexport */).useSharedValue(0.4); const value4 = (require(4017) /* metro dependency 4017: ReanimatedRexport */).useSharedValue(0.75); (require(4594) /* metro dependency 4594: useMountEffect */).useMountLayoutEffect(_fun38929); const reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */; const useAnimatedStyle = reanimatedRexportModule.useAnimatedStyle; const closure = EllipsisCircleW; closure.__closure = {opacity: value3, scale: value4}; closure.__workletHash = 13371762734705; closure.__initData = env0_9; const value5 = Reflect.apply(useAnimatedStyle, reanimatedRexportModule, [closure]); const View = (importDefault(4017) /* metro dependency 4017: ReanimatedRexport */).View; return ; } 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 object = {width: r2, height: r2}; object.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round; object.marginEnd = a1 === 2 ? 0 : r3; object.backgroundColor = a2; return {circle: object}; } 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 closure = withEllipsisAnimation; const object2 = {ELLIPSIS_APPEAR_DURATION: 500}; object2.withDelay = (require(4017) /* metro dependency 4017: ReanimatedRexport */).withDelay; object2.withRepeat = (require(4017) /* metro dependency 4017: ReanimatedRexport */).withRepeat; object2.withTiming = (require(4504) /* metro dependency 4504: timing */).withTiming; object2.ELLIPSIS_APPEAR_TIMING = env0_5; closure.__closure = object2; closure.__workletHash = 2181731162311; closure.__initData = env0_7; return closure; } 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 = (importDefault(4017) /* metro dependency 4017: ReanimatedRexport */).View; return ( ); } 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 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 object3 = {}; object3.opacity = env0_1.get(); const object4 = {}; object4.scale = env0_2.get(); object3.transform = [object4]; return object3; } 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 reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */; const withDelay = reanimatedRexportModule.withDelay; const value2 = 166.66666666666666 * a0; const moduleValue2 = reanimatedRexportModule; return Reflect.apply(withDelay, reanimatedRexportModule, [value2, moduleValue2.withRepeat((require(4504) /* metro dependency 4504: timing */).withTiming(a1, env1_5, 'animate-always'), -1, true)]); } 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__; (require(4017) /* metro dependency 4017: ReanimatedRexport */).cancelAnimation(env1_1); (require(4017) /* metro dependency 4017: ReanimatedRexport */).cancelAnimation(env1_2); }