73 lines
4.3 KiB
TypeScript
73 lines
4.3 KiB
TypeScript
/* Metro module 13545; source: modules/quests/native/BountiesModal/BountiesScrollRecapFooter.tsx; dependencies: [31, 27, 4502, 33, 4501, 697, 477, 1244, 4573, 10076, 566, 3868, 2] */
|
|
function _fun102920(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#102920, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13735:6, offset: 0x0224f472, size: 232 bytes, params: 8, frame: 19
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
importAll(31) /* metro dependency 31 */;
|
|
const env0_3 = (require(27) /* metro dependency 27 */).View;
|
|
const accessibilityStore = importDefault(4502) /* metro dependency 4502: AccessibilityStore */;
|
|
const value = require(33) /* metro dependency 33 */;
|
|
const env0_5 = value.jsx;
|
|
const env0_6 = value.jsxs;
|
|
const env0_7 = (require(4501) /* metro dependency 4501: createStyles */).createStyles(_fun102921);
|
|
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/native/BountiesModal/BountiesScrollRecapFooter.tsx');
|
|
exports.BountiesScrollRecapFooter = BountiesScrollRecapFooter;
|
|
exports.BountiesScrollRecapFooterGradient = BountiesScrollRecapFooterGradient;
|
|
}
|
|
|
|
function _fun102921() { // fn#102921, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13735:180, offset: 0x0224f55a, size: 185 bytes, params: 1, frame: 16
|
|
const object2 = {};
|
|
let PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
|
|
object2.container = {'flex': 1, 'alignItems': 'center', 'justifyContent': 'center', gap: PX_4};
|
|
object2.headerLabel = {textTransform: 'uppercase'};
|
|
PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
|
|
object2.orbRow = {'flexDirection': 'row', 'alignItems': 'center', gap: PX_4};
|
|
object2.rive = {'flex': 1, 'width': '100%'};
|
|
const object3 = {};
|
|
const value = 6;
|
|
object3.marginTop = require(dependencyMap[value]).isIOS() ? value : 0;
|
|
object2.orbAmount = object3;
|
|
return object2;
|
|
}
|
|
|
|
function BountiesScrollRecapFooter({orbAmount}) { // fn#102922, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13735:585, offset: 0x0224f613, size: 381 bytes, params: 2, frame: 25
|
|
const styles = useStyles();
|
|
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
|
const value2 = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.d6Rrn6);
|
|
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
|
const items2 = [<Text variant="text-xs/bold" color="text-brand" style={styles.headerLabel} accessible={false}>{value2}</Text>];
|
|
const OrbsIcon = (require(10076) /* metro dependency 10076: OrbsIcon */).OrbsIcon;
|
|
items2[1] = <View style={styles.orbRow} accessible={false} importantForAccessibility="no-hide-descendants"><OrbsIcon size="sm" color="icon-strong" accessible={false} /><Text variant="display-sm" color="text-strong" accessible={false} style={styles.orbAmount}>{'+' + orbAmount}</Text></View>;
|
|
return (
|
|
<View
|
|
style={styles.container}
|
|
pointerEvents="none"
|
|
accessible
|
|
accessibilityRole="text"
|
|
accessibilityLabel={'' + value2 + ', +' + orbAmount}
|
|
>
|
|
{items2}
|
|
</View>
|
|
);
|
|
}
|
|
|
|
function BountiesScrollRecapFooterGradient() { // fn#102923, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13735:1232, offset: 0x0224f790, size: 153 bytes, params: 1, frame: 18
|
|
const styles = useStyles();
|
|
const useReducedMotion = (require(566) /* metro dependency 566: flux */).useStateFromStores([AccessibilityStore],
|
|
function() {
|
|
return AccessibilityStore.useReducedMotion;
|
|
});
|
|
const BountiesScrollGradientRive = (require(3868) /* metro dependency 3868: native */).BountiesScrollGradientRive;
|
|
return (
|
|
<View style={styles.rive}>
|
|
<BountiesScrollGradientRive
|
|
stateMachine="State Machine 1"
|
|
fit="fill"
|
|
alignment="bottom-center"
|
|
withReducedMotion={useReducedMotion ? 'halt' : 'play'}
|
|
/>
|
|
</View>
|
|
);
|
|
}
|
|
|