Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,96 @@
|
||||
/* Metro module 13445; source: modules/parent_tools/native/FamilyCenterParentalControlsScreenTime.tsx; dependencies: [27, 661, 33, 4501, 697, 10909, 6238, 4573, 1244, 2224, 13406, 1484, 6231, 2] */
|
||||
function _fun102238(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#102238, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13635:6, offset: 0x02233b31, size: 300 bytes, params: 8, frame: 22
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = (require(27) /* metro dependency 27 */).View;
|
||||
const env0_4 = (require(661) /* metro dependency 661: Constants */).UserSettingsSections;
|
||||
let value = require(33) /* metro dependency 33 */;
|
||||
const env0_5 = value.jsx;
|
||||
const env0_6 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object2 = {};
|
||||
const PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
|
||||
object2.header = {paddingTop: PX_24};
|
||||
const object4 = {};
|
||||
const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object4.paddingHorizontal = PX_16;
|
||||
const PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object4.gap = PX_8;
|
||||
object2.container = object4;
|
||||
const env0_7 = Reflect.apply(createStyles, value, [object2]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/parent_tools/native/FamilyCenterParentalControlsScreenTime.tsx');
|
||||
exports.default = FamilyCenterParentalControlsScreenTime;
|
||||
}
|
||||
|
||||
function ScheduleRuleRow({rule, teenId, navigation, readOnly}) { // fn#102239, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13635:308, offset: 0x02233c5d, size: 302 bytes, params: 2, frame: 24
|
||||
readOnly = !(readOnly === undefined) && readOnly;
|
||||
const scheduleRuleDateRange = (require(10909) /* metro dependency 10909: FamilyCenterRestrictedHoursUtils */).getScheduleRuleDateRange(rule);
|
||||
const familyCenterRestrictedHoursUtilsModule = require(10909) /* metro dependency 10909: FamilyCenterRestrictedHoursUtils */;
|
||||
const value5 = familyCenterRestrictedHoursUtilsModule.formatDays(rule.days);
|
||||
const TableRow = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const enabled = rule.enabled;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const string = intl.string;
|
||||
const defaultImport = importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */;
|
||||
return (
|
||||
<TableRow
|
||||
label={scheduleRuleDateRange}
|
||||
subLabel={value5}
|
||||
trailing={<Text variant="text-sm/medium" color="text-subtle">{enabled ? Reflect.apply(string, intl,
|
||||
[defaultImport['8vDHRq']]) : Reflect.apply(string, intl, [defaultImport['4z9fN+']])}</Text>}
|
||||
arrow={!readOnly}
|
||||
onPress={readOnly ? undefined : _fun102240}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
function FamilyCenterParentalControlsScreenTime({readOnly}) { // fn#102241, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13635:881, offset: 0x02233dca, size: 413 bytes, params: 2, frame: 26
|
||||
var r0;
|
||||
var Text;
|
||||
var intl;
|
||||
if (readOnly !== undefined) {
|
||||
}
|
||||
const styles = useStyles();
|
||||
const value4 = (require(13406) /* metro dependency 13406: useSelectedTeenUser */).useSelectedTeenUser();
|
||||
const env0_1 = (require(1484) /* metro dependency 1484: useNavigationNative */).useNavigation();
|
||||
if (value4?.id == null) {
|
||||
r0 = null;
|
||||
} else {
|
||||
var viewBindingProps = {style: styles.container};
|
||||
Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
var textProps = {'variant': 'text-sm/semibold', 'color': 'text-subtle', style: styles.header};
|
||||
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
r0 = <View {...viewBindingProps}><Text {...textProps}>{intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */)['72CmJd'])}</Text>{((TableRowGroup) => <TableRowGroup hasIcons={false}>{(require(10909) /* metro dependency 10909: FamilyCenterRestrictedHoursUtils */).sortRulesByStartTime((value4 == null || value4.restrictedSchedule == null ? undefined : value4.restrictedSchedule.rules) ?? []).map(_fun102242)}</TableRowGroup>)((require(6231) /* metro dependency 6231: TableRowGroupNative */).TableRowGroup)}</View>;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun102240() { // fn#102240, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13635:691, offset: 0x02233d8b, size: 63 bytes, params: 1, frame: 15
|
||||
const value = environment;
|
||||
const navigationBinding = navigation;
|
||||
const navigate = navigationBinding.navigate;
|
||||
const FAMILY_CENTER_SCHEDULE_DOWNTIME = UserSettingsSections.FAMILY_CENTER_SCHEDULE_DOWNTIME;
|
||||
const object3 = {};
|
||||
object3.teenId = teenId;
|
||||
const object4 = {};
|
||||
copyDataProperties(object4, rule, value);
|
||||
object3.rule = object4;
|
||||
return Reflect.apply(navigate, navigationBinding, [FAMILY_CENTER_SCHEDULE_DOWNTIME, object3]);
|
||||
}
|
||||
|
||||
function _fun102242(a0) { // fn#102242, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13635:1383, offset: 0x02233f67, size: 68 bytes, params: 2, frame: 16
|
||||
return (
|
||||
<ScheduleRuleRow
|
||||
rule={a0}
|
||||
teenId={id}
|
||||
navigation={env0_1}
|
||||
readOnly={readOnly}
|
||||
key={a0.ruleId}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user