Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,77 @@
|
||||
/* Metro module 15800; source: modules/parent_tools/native/ConnectGuardianCard.tsx; dependencies: [31, 27, 1878, 5117, 33, 4501, 697, 632, 8994, 7054, 1244, 2224, 4572, 9181, 4573, 4690, 2] */
|
||||
function _fun121393(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#121393, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16008:6, offset: 0x025470c3, size: 341 bytes, params: 8, frame: 23
|
||||
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 userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
|
||||
const env0_6 = (require(5117) /* metro dependency 5117: FamilyCenterConstants */).FAMILY_CENTER_REQUEST_QR_CODE_URL;
|
||||
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;
|
||||
const object = {};
|
||||
const PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
|
||||
object.padding = PX_12;
|
||||
object.borderWidth = 1;
|
||||
object.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
|
||||
const BORDER_NORMAL = (importDefault(697) /* metro dependency 697: native */).colors.BORDER_NORMAL;
|
||||
object.borderColor = BORDER_NORMAL;
|
||||
const env0_9 = Reflect.apply(createStyles, value, [{card: object, countdown: {textAlign: 'center'}}]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/parent_tools/native/ConnectGuardianCard.tsx');
|
||||
exports.ConnectGuardianCard = ConnectGuardianCard;
|
||||
}
|
||||
|
||||
function ConnectGuardianCard({linkCode, expiresAt, onRefresh}) { // fn#121394, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16008:487, offset: 0x02547218, size: 562 bytes, params: 2, frame: 30
|
||||
var environment;
|
||||
let value = environment;
|
||||
const styles = useStyles();
|
||||
const value2 = (require(632) /* metro dependency 632: useStateFromStores */).useStateFromStores([UserStore],
|
||||
_fun121395);
|
||||
const value3 = (importDefault(8994) /* metro dependency 8994: useStableCallback */)(onRefresh);
|
||||
const {days, hours, minutes, seconds} = (importDefault(7054) /* metro dependency 7054: useCountdown */)(expiresAt);
|
||||
env0_3.useEffect(_fun121396, [expiresAt, value3]);
|
||||
if (value2 == null) {
|
||||
return null;
|
||||
}
|
||||
const value5 = FAMILY_CENTER_REQUEST_QR_CODE_URL(value2, linkCode);
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const string = intl.string;
|
||||
const RfkLDs = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).RfkLDs;
|
||||
const value6 = Reflect.apply(string, intl, [RfkLDs]);
|
||||
const Stack = (require(4572) /* metro dependency 4572: StackNative */).Stack;
|
||||
const PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
const QRCodeWithOverlay = (require(9181) /* metro dependency 9181: QRCode */).QRCodeWithOverlay;
|
||||
const items2 = [<QRCodeWithOverlay size={160} text={value5} />];
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const getTimeFormat = (require(4690) /* metro dependency 4690: TimeUtils */).getTimeFormat;
|
||||
value = Reflect.apply(getTimeFormat, value, [86400 * days + 3600 * hours + 60 * minutes + seconds]);
|
||||
items2[1] = <Text style={styles.countdown} variant="text-xs/normal">{'' + value6 + ' ' + value}</Text>;
|
||||
return (
|
||||
<View style={styles.card}>
|
||||
<Stack align="center" spacing={PX_8}>
|
||||
{items2}
|
||||
</Stack>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun121395() { // fn#121395, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16008:598, offset: 0x0254744a, size: 34 bytes, params: 1, frame: 10
|
||||
const value = environment.__proto__;
|
||||
return UserStore.getCurrentUser()?.id;
|
||||
}
|
||||
|
||||
function _fun121396() { // fn#121396, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16008:745, offset: 0x0254746c, size: 79 bytes, params: 1, frame: 15
|
||||
const expiresAtBinding = expiresAt;
|
||||
const Date = global.Date;
|
||||
const value2 = expiresAtBinding - Date.now();
|
||||
if (value2 <= 0) {
|
||||
env0_1();
|
||||
return undefined;
|
||||
}
|
||||
const env0_0 = global.setTimeout(env0_1, value2);
|
||||
return _fun121397;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user