56 lines
3.9 KiB
TypeScript
56 lines
3.9 KiB
TypeScript
/* Metro module 14056; source: modules/collectibles/native/SkeletonCard.tsx; dependencies: [31, 33, 4501, 697, 10020, 4017, 4504, 2] */
|
|
import ReanimatedRexport from '../../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 '../../reanimated/ReanimatedRexport.tsx'; /* Metro dependency 4017 */
|
|
import * as TimingModule from '../../../design/animation/reanimated/timing/timing.tsx'; /* Metro dependency 4504 */
|
|
|
|
function _fun106594(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#106594, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14253:6, offset: 0x022e25e1, size: 191 bytes, params: 8, frame: 18
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const env0_5 = (require(4501) /* metro dependency 4501: createStyles */).createStyles(function(a0, a1) {
|
|
var object2 = {width: a0, height: a1};
|
|
object2.backgroundColor = importDefault(dependencyMap[3]).colors.BORDER_SUBTLE;
|
|
object2.borderRadius = importDefault(dependencyMap[3]).radii.sm;
|
|
return {skeletonCard: object2};
|
|
});
|
|
object = {code: 'function SkeletonCardTsx1(){const{opacity}=this.__closure;return{opacity:opacity.get()};}'};
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/collectibles/native/SkeletonCard.tsx');
|
|
exports.default = _default_106596;
|
|
function _default_106596({width = require(dependencyMap[4]).COLLECTIBLES_SHOP_CARD_WIDTH, height, style}) { // fn#106596, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14253:374, offset: 0x022e26f9, size: 305 bytes, params: 2, frame: 22
|
|
const styles = useStyles(width,
|
|
height ?? (require(10020) /* metro dependency 10020: CollectiblesShopCardV2 */).COLLECTIBLES_SHOP_CARD_HEIGHT);
|
|
const value2 = (ReanimatedRexportModule).useSharedValue(0.3);
|
|
ReactModule.useEffect(_fun106597, [value2]);
|
|
const useAnimatedStyle = ReanimatedRexportModule.useAnimatedStyle;
|
|
const _default_106596Y2 = _default_106596Y;
|
|
_default_106596Y2.__closure = {opacity: value2};
|
|
_default_106596Y2.__workletHash = 5620456625640;
|
|
_default_106596Y2.__initData = env0_6;
|
|
const value3 = Reflect.apply(useAnimatedStyle, ReanimatedRexportModule, [_default_106596Y2]);
|
|
const View = (ReanimatedRexport).View;
|
|
return <View style={[styles.skeletonCard, style, value3]} />;
|
|
function _fun106597() { // fn#106597, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14253:547, offset: 0x022e282a, size: 103 bytes, params: 1, frame: 19
|
|
const binding = env0_0;
|
|
const set = binding.set;
|
|
let value = environment.__proto__;
|
|
value = require(4017) /* metro dependency 4017: ReanimatedRexport */;
|
|
Reflect.apply(set, binding, [value.withRepeat((TimingModule).withTiming(1,
|
|
{duration: 650}), -1, true)]);
|
|
}
|
|
|
|
function _default_106596Y() { // fn#106598, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14253:666, owner: _default_106596.y, offset: 0x01d2f35e, size: 24 bytes, params: 1, frame: 10
|
|
const object = {};
|
|
object.opacity = env0_0.get();
|
|
return object;
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun106594, 14056, [31, 33, 4501, 697, 10020, 4017, 4504,
|
|
2]) /* metro module 14056, dependencies: [31, 33, 4501, 697, 10020, 4017, 4504, 2] */;
|