Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,124 @@
|
||||
/* Metro module 15798; source: modules/nuf/native/components/ConnectGuardianModal.tsx; dependencies: [31, 27, 661, 5117, 33, 4501, 697, 1585, 15799, 683, 5461, 4573, 1244, 2224, 6766, 15800, 4578, 2] */
|
||||
function _fun121383(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#121383, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16006:6, offset: 0x0254679c, size: 557 bytes, params: 8, frame: 24
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importAll(31) /* metro dependency 31 */;
|
||||
const env0_4 = (require(27) /* metro dependency 27 */).View;
|
||||
const env0_5 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
|
||||
const env0_6 = (require(5117) /* metro dependency 5117: FamilyCenterConstants */).FamilyCenterAction;
|
||||
let value = require(33) /* metro dependency 33 */;
|
||||
const env0_7 = value.jsx;
|
||||
const env0_8 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object2 = {};
|
||||
const BACKGROUND_BASE_LOW = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOW;
|
||||
object2.container = {flex: 1, backgroundColor: BACKGROUND_BASE_LOW};
|
||||
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object2.centered = {'flex': 1, 'alignItems': 'center', 'justifyContent': 'center', paddingHorizontal: PX_16};
|
||||
const PX_40 = (importDefault(697) /* metro dependency 697: native */).space.PX_40;
|
||||
object2.header = {marginBottom: PX_40};
|
||||
const object3 = {};
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object3.paddingHorizontal = PX_16;
|
||||
const PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object3.marginBottom = PX_8;
|
||||
object3.textAlign = 'center';
|
||||
object2.title = object3;
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object2.description = {paddingHorizontal: PX_16, textAlign: 'center'};
|
||||
object2.cardSection = {alignItems: 'center'};
|
||||
const object4 = {};
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object4.paddingHorizontal = PX_16;
|
||||
const PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
|
||||
object4.marginBottom = PX_24;
|
||||
object4.textAlign = 'center';
|
||||
object2.scanPrompt = object4;
|
||||
object2.grow = {flexGrow: 1};
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object2.footer = {paddingHorizontal: PX_16};
|
||||
const env0_9 = Reflect.apply(createStyles, value, [object2]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/nuf/native/components/ConnectGuardianModal.tsx');
|
||||
exports.default = ConnectGuardianModal;
|
||||
}
|
||||
|
||||
function ConnectGuardianModal(a0) { // fn#121384, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16006:909, offset: 0x025469c9, size: 925 bytes, params: 2, frame: 34
|
||||
var r0;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
var string;
|
||||
var items3;
|
||||
var items2;
|
||||
var object;
|
||||
var items4;
|
||||
var object2;
|
||||
var Button;
|
||||
const onComplete = a0.route.params.onComplete;
|
||||
var value;
|
||||
const styles = useStyles();
|
||||
const bottom = (importDefault(1585) /* metro dependency 1585: useSafeAreaInsetsNative */)().bottom;
|
||||
const value2 = (require(15799) /* metro dependency 15799: useConnectGuardianGate */).useConnectGuardianGate();
|
||||
const binding = env0_3;
|
||||
const env0_2 = binding.useRef(false);
|
||||
binding.useEffect(_fun121385, [value2.state, onComplete]);
|
||||
if (value2.state !== 'gate') {
|
||||
r0 = <View style={[styles.container,
|
||||
styles.centered]}>{((ActivityIndicator) => <ActivityIndicator />)((require(5461) /* metro dependency 5461: ActivityIndicatorNative */).ActivityIndicator)}</View>;
|
||||
} else {
|
||||
var viewBindingProps = {style: styles.container};
|
||||
var viewBindingProps2 = {style: styles.header};
|
||||
string = intl.string;
|
||||
value = <Text style={styles.title} variant="heading-xl/bold" color="text-default">{Reflect.apply(string, intl,
|
||||
[(importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).vELYWk])}</Text>;
|
||||
items3 = [value];
|
||||
items3[1] = ((TextWithIOSLinkWorkaround) => <TextWithIOSLinkWorkaround style={styles.description} variant="text-sm/medium" color="text-muted">{intl.format((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).pDByAB,
|
||||
|
||||
{link: 'https://support.discord.com/hc/articles/14155060633623'})}</TextWithIOSLinkWorkaround>)((require(6766) /* metro dependency 6766: TextWithIOSLinkWorkaround */).TextWithIOSLinkWorkaround);
|
||||
value = <View {...viewBindingProps2}>{items3}</View>;
|
||||
items2 = [value];
|
||||
var viewBindingProps3 = {style: styles.cardSection};
|
||||
string = intl.string;
|
||||
value = <Text style={styles.scanPrompt} variant="text-md/semibold" color="text-default">{Reflect.apply(string,
|
||||
intl,
|
||||
[(importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).Mi60fm])}</Text>;
|
||||
items2[1] = <View {...viewBindingProps3}>{value}{((ConnectGuardianCard) => <ConnectGuardianCard linkCode={value2.linkCode} expiresAt={value2.expiresAt} onRefresh={value2.refresh} />)((require(15800) /* metro dependency 15800: ConnectGuardianCard */).ConnectGuardianCard)}</View>;
|
||||
items2[2] = <View style={styles.grow} />;
|
||||
object = {};
|
||||
items4 = [styles.footer];
|
||||
object2 = {};
|
||||
object2.paddingBottom = bottom + (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
items4[1] = object2;
|
||||
object.style = items4;
|
||||
Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
|
||||
string = intl.string;
|
||||
items2[3] = <View {...object}><Button variant="primary" size="lg" text={Reflect.apply(string, intl,
|
||||
[(require(1244) /* metro dependency 1244: indexNative */).t['3PatSz']])} onPress={onPress_121386} /></View>;
|
||||
value = <View {...viewBindingProps}>{items2}</View>;
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun121385() { // fn#121385, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16006:1071, offset: 0x02546d66, size: 142 bytes, params: 1, frame: 17
|
||||
var value3;
|
||||
var defaultImport;
|
||||
if (!(env0_1.state !== 'error' || env0_2.current)) {
|
||||
env0_2.current = true;
|
||||
value3 = environment.__proto__;
|
||||
defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
||||
defaultImport.track(AnalyticEvents.FAMILY_CENTER_ACTION,
|
||||
{action: FamilyCenterAction.NufConsentGateLinkCodeError,
|
||||
source: 'NUF Connect Guardian'});
|
||||
if (onComplete != null) {
|
||||
onComplete(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function ConnectGuardianModalOnPress() { // fn#121386, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16006:2222, owner: ConnectGuardianModal.onPress, offset: 0x02546df4, size: 33 bytes, params: 1, frame: 12
|
||||
return onComplete?.(false);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user