215 lines
14 KiB
TypeScript
215 lines
14 KiB
TypeScript
/* Metro module 12626; source: modules/parent_tools/native/FamilyCenterDataConfirmation.tsx; dependencies: [31, 33, 1244, 2224, 12627, 4050, 9390, 6699, 12628, 12630, 8665, 7002, 6238, 4572, 4573, 6231, 6696, 2] */
|
|
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 UserPlusIconModule from '../../../design/components/Icon/native/redesign/generated/UserPlusIcon.tsx'; /* Metro dependency 4050 */
|
|
import * as TableRowGroupNativeModule from '../../../design/components/TableRow/native/TableRowGroup.native.tsx'; /* Metro dependency 6231 */
|
|
import * as TableRowNativeModule from '../../../design/components/TableRow/native/TableRow.native.tsx'; /* Metro dependency 6238 */
|
|
import * as ForumLockIconModule from '../../../design/components/Icon/native/redesign/generated/ForumLockIcon.tsx'; /* Metro dependency 6696 */
|
|
import * as GroupIconModule from '../../../design/components/Icon/native/redesign/generated/GroupIcon.tsx'; /* Metro dependency 6699 */
|
|
import * as SettingsIconModule from '../../../design/components/Icon/native/redesign/generated/SettingsIcon.tsx'; /* Metro dependency 7002 */
|
|
import * as FlagIconModule from '../../../design/components/Icon/native/redesign/generated/FlagIcon.tsx'; /* Metro dependency 8665 */
|
|
import * as ServerIconModule from '../../../design/components/Icon/native/redesign/generated/ServerIcon.tsx'; /* Metro dependency 9390 */
|
|
import * as UseAgeSpecificTextModule from '../hooks/useAgeSpecificText.tsx'; /* Metro dependency 12627 */
|
|
import * as PhoneIconModule from '../../../design/components/Icon/native/redesign/generated/PhoneIcon.tsx'; /* Metro dependency 12628 */
|
|
import * as CreditCardIconModule from '../../../design/components/Icon/native/redesign/generated/CreditCardIcon.tsx'; /* Metro dependency 12630 */
|
|
|
|
function _fun96894(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#96894, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12816:6, offset: 0x0216aaff, size: 157 bytes, params: 8, frame: 18
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
ReactModule;
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/parent_tools/native/FamilyCenterDataConfirmation.tsx');
|
|
exports.default = FamilyCenterDataConfirmation;
|
|
function FamilyCenterDataConfirmation({source}) { // fn#96895, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12816:249, offset: 0x0216ab9c, size: 2178 bytes, params: 2, frame: 38
|
|
const TableRowGroup = (TableRowGroupNativeModule).TableRowGroup;
|
|
var r6;
|
|
var Stack2;
|
|
let value = source === 'request-modal';
|
|
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
|
let string = intl.string;
|
|
const value3 = Reflect.apply(string, intl,
|
|
[(importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */)['+yrQhd']]);
|
|
string = intl.string;
|
|
const WGz9Dc = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).WGz9Dc;
|
|
const value4 = Reflect.apply(string, intl, [WGz9Dc]);
|
|
let useAgeSpecificText = UseAgeSpecificTextModule.useAgeSpecificText;
|
|
const value5 = Reflect.apply(useAgeSpecificText, UseAgeSpecificTextModule, [value3, value4]);
|
|
const value7 = UseAgeSpecificTextModule.useAgeSpecificText((require(1244) /* metro dependency 1244: indexNative */).intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */)['TCzk/e']),
|
|
intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */)['2OqtJJ']));
|
|
useAgeSpecificText = UseAgeSpecificTextModule.useAgeSpecificText;
|
|
string = intl.string;
|
|
const ASf7XN = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).ASf7XN;
|
|
const value9 = Reflect.apply(useAgeSpecificText, UseAgeSpecificTextModule, [Reflect.apply(string, intl, [ASf7XN]),
|
|
intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */)['82y87X'])]);
|
|
const value11 = UseAgeSpecificTextModule.useAgeSpecificText((require(1244) /* metro dependency 1244: indexNative */).intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */)['0QDVFN']),
|
|
intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */)['1xBHHV']));
|
|
const value12 = (require(1244) /* metro dependency 1244: indexNative */).intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */)['JvJ3P/']);
|
|
useAgeSpecificText = UseAgeSpecificTextModule.useAgeSpecificText;
|
|
const value13 = intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).l0ChgF);
|
|
string = intl.string;
|
|
const S2ss5X = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).S2ss5X;
|
|
const value14 = Reflect.apply(useAgeSpecificText, UseAgeSpecificTextModule, [value13, Reflect.apply(string, intl, [S2ss5X])]);
|
|
useAgeSpecificText = UseAgeSpecificTextModule.useAgeSpecificText;
|
|
string = intl.string;
|
|
const LDu4Uk = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).LDu4Uk;
|
|
const value16 = Reflect.apply(useAgeSpecificText, UseAgeSpecificTextModule, [Reflect.apply(string, intl, [LDu4Uk]),
|
|
intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).fEgtLV)]);
|
|
const value17 = (require(1244) /* metro dependency 1244: indexNative */).intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */)['4SCALu']);
|
|
const value18 = intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).oYf9P7);
|
|
const value20 = UseAgeSpecificTextModule.useAgeSpecificText((require(1244) /* metro dependency 1244: indexNative */).intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */)['dES/2r']),
|
|
intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).ep6mdN));
|
|
const value22 = UseAgeSpecificTextModule.useAgeSpecificText((require(1244) /* metro dependency 1244: indexNative */).intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */)['30+sih']),
|
|
intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */)['0cuLn1']));
|
|
useAgeSpecificText = UseAgeSpecificTextModule.useAgeSpecificText;
|
|
const value23 = intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).tHTyRh);
|
|
string = intl.string;
|
|
const TeNlMb = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).TeNlMb;
|
|
const value24 = Reflect.apply(useAgeSpecificText, UseAgeSpecificTextModule, [value23, Reflect.apply(string, intl, [TeNlMb])]);
|
|
const value26 = UseAgeSpecificTextModule.useAgeSpecificText(intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).wZejZr),
|
|
intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).tdgcf1));
|
|
let object = {header: value12, description: value14};
|
|
const UserPlusIcon = (UserPlusIconModule).UserPlusIcon;
|
|
object.IconComponent = UserPlusIcon;
|
|
object.source = source;
|
|
const items4 = [object];
|
|
object = {header: (require(1244) /* metro dependency 1244: indexNative */).intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */)['44NEx6']),
|
|
description: value16};
|
|
const ServerIcon = (ServerIconModule).ServerIcon;
|
|
object.IconComponent = ServerIcon;
|
|
object.source = source;
|
|
items4[1] = object;
|
|
object = {header: value17, description: value18};
|
|
const GroupIcon = (GroupIconModule).GroupIcon;
|
|
object.IconComponent = GroupIcon;
|
|
object.source = source;
|
|
items4[2] = object;
|
|
object = {};
|
|
const intl3 = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
|
string = intl3.string;
|
|
const GNs2ZH = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).GNs2ZH;
|
|
object.header = Reflect.apply(string, intl3, [GNs2ZH]);
|
|
const intl4 = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
|
string = intl4.string;
|
|
const Ief2xc = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).Ief2xc;
|
|
object.description = Reflect.apply(string, intl4, [Ief2xc]);
|
|
const PhoneIcon = (PhoneIconModule).PhoneIcon;
|
|
object.IconComponent = PhoneIcon;
|
|
object.source = source;
|
|
const items2 = [object];
|
|
object = {};
|
|
const intl5 = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
|
string = intl5.string;
|
|
const PjM3r5 = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).PjM3r5;
|
|
object.header = Reflect.apply(string, intl5, [PjM3r5]);
|
|
object.description = value20;
|
|
const CreditCardIcon = (CreditCardIconModule).CreditCardIcon;
|
|
object.IconComponent = CreditCardIcon;
|
|
object.source = source;
|
|
items2[1] = object;
|
|
object = {header: value22, description: value24};
|
|
const FlagIcon = (FlagIconModule).FlagIcon;
|
|
object.IconComponent = FlagIcon;
|
|
object.source = source;
|
|
items2[2] = object;
|
|
object = {};
|
|
const intl6 = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
|
string = intl6.string;
|
|
const UCuHM8 = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).UCuHM8;
|
|
object.header = Reflect.apply(string, intl6, [UCuHM8]);
|
|
object.description = value26;
|
|
const SettingsIcon = (SettingsIconModule).SettingsIcon;
|
|
object.IconComponent = SettingsIcon;
|
|
object.source = source;
|
|
items2[3] = object;
|
|
const jsxRuntimeEnv0_4Binding = jsxRuntimeEnv0_4;
|
|
const items3 = [];
|
|
arraySpread(items3, items2, arraySpread(items3, items4, 0, intl), intl);
|
|
const fragment = (
|
|
<>
|
|
{items3.map(_fun96896)}
|
|
</>
|
|
);
|
|
const Stack = (require(4572) /* metro dependency 4572: StackNative */).Stack;
|
|
if (value) {
|
|
Stack2 = (require(4572) /* metro dependency 4572: StackNative */).Stack;
|
|
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
|
value = (
|
|
<Text
|
|
accessibilityRole="header"
|
|
variant="text-sm/semibold"
|
|
color="text-muted"
|
|
>
|
|
{intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */)['05xZPR'])}
|
|
</Text>
|
|
);
|
|
value = (
|
|
<Stack2 spacing={8}>
|
|
{value}
|
|
<TableRowGroup hasIcons>
|
|
{fragment}
|
|
</TableRowGroup>
|
|
</Stack2>
|
|
);
|
|
r6 = value;
|
|
} else {
|
|
r6 = (
|
|
<TableRowGroup title={value5} hasIcons>
|
|
{fragment}
|
|
</TableRowGroup>
|
|
);
|
|
}
|
|
const object4 = {header: value9, description: value11};
|
|
const ForumLockIcon = (ForumLockIconModule).ForumLockIcon;
|
|
object4.IconComponent = ForumLockIcon;
|
|
object4.source = source;
|
|
object4.negative = true;
|
|
return (
|
|
<Stack spacing={24}>
|
|
{r6}
|
|
<TableRowGroup title={value7} hasIcons>
|
|
{[object4].map(_fun96897)}
|
|
</TableRowGroup>
|
|
</Stack>
|
|
);
|
|
function _fun96896({header, description, IconComponent}) { // fn#96896, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12816:2189, offset: 0x0216b41e, size: 133 bytes, params: 2, frame: 21
|
|
const value = environment.__proto__;
|
|
const TableRow = (TableRowNativeModule).TableRow;
|
|
const TableRow2 = (TableRowNativeModule).TableRow;
|
|
const Icon = TableRow2.Icon;
|
|
return (
|
|
<TableRow
|
|
label={header}
|
|
subLabel={description}
|
|
icon={<Icon variant={result ? 'default' : 'text-status-online'} IconComponent={IconComponent} />}
|
|
key={header}
|
|
/>
|
|
);
|
|
}
|
|
|
|
function _fun96897({header, description, IconComponent, negative}) { // fn#96897, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12816:2855, offset: 0x0216b4a3, size: 145 bytes, params: 2, frame: 22
|
|
const value = environment.__proto__;
|
|
const TableRow = (TableRowNativeModule).TableRow;
|
|
const TableRow2 = (TableRowNativeModule).TableRow;
|
|
const Icon = TableRow2.Icon;
|
|
return (
|
|
<TableRow
|
|
label={header}
|
|
subLabel={description}
|
|
icon={<Icon
|
|
variant={result ? 'default' : negative === true ? 'text-status-dnd' : 'default'}
|
|
IconComponent={IconComponent}
|
|
/>}
|
|
key={header}
|
|
/>
|
|
);
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun96894, 12626, [31, 33, 1244, 2224, 12627, 4050, 9390, 6699, 12628, 12630, 8665, 7002, 6238, 4572,
|
|
4573, 6231, 6696,
|
|
2]) /* metro module 12626, dependencies: [31, 33, 1244, 2224, 12627, 4050, 9390, 6699, 12628, 12630, 8665, 7002, 6238, 4572, 4573, 6231, 6696, 2] */;
|