/* Metro module 13419; source: modules/parent_tools/native/FamilyCenterSettingsControls.tsx; dependencies: [31, 27, 5117, 661, 33, 4501, 697, 4573, 1244, 2224, 5080, 13420, 1962, 13422, 6238, 8170, 13406, 5188, 1484, 13423, 4572, 6231, 4578, 5177, 4603, 13348, 5118, 13424, 2] */ function _fun102091(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#102091, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13609:6, offset: 0x0222c2f9, size: 464 bytes, params: 8, frame: 22 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(5117) /* metro dependency 5117: FamilyCenterConstants */).FamilyCenterSubPages; const env0_6 = (require(661) /* metro dependency 661: Constants */).UserSettingsSections; 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 PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16; object2.teenControlsContainer = {gap: PX_16}; let PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4; object2.controlledSettingsHeader = {gap: PX_4}; PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4; object2.parentalControlsContainer = {gap: PX_4}; const PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8; object2.controlsGroup = {marginTop: PX_8}; const ICON_FEEDBACK_WARNING = (importDefault(697) /* metro dependency 697: native */).colors.ICON_FEEDBACK_WARNING; object2.subLabelWarning = {color: ICON_FEEDBACK_WARNING}; const TEXT_FEEDBACK_CRITICAL = (importDefault(697) /* metro dependency 697: native */).colors.TEXT_FEEDBACK_CRITICAL; object2.subLabelCritical = {color: TEXT_FEEDBACK_CRITICAL}; const env0_9 = Reflect.apply(createStyles, value, [object2]); (require(2) /* metro dependency 2 */).fileFinishedImporting('modules/parent_tools/native/FamilyCenterSettingsControls.tsx'); exports.default = FamilyCenterSettingsControls; } function SpendingLimitRow({cap, teenId}) { // fn#102092, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13609:575, offset: 0x0222c4c9, size: 221 bytes, params: 2, frame: 22 const styles = useStyles(); const {trailing, subLabel} = getSpendingLimitRowProps((require(13422) /* metro dependency 13422: SpendingLimitDisplay */).useSpendingLimitDisplayState(cap), styles); const value5 = teenId == null; const TableRow = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow; const intl = (require(1244) /* metro dependency 1244: indexNative */).intl; return ( ); } function FamilyCenterSettingsTeenControls() { // fn#102097, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13609:1793, offset: 0x0222c869, size: 907 bytes, params: 1, frame: 36 var r5; var TableRowGroup; var items3; var TableRow; var object9; var length; const value2 = undefined; const styles = useStyles(); const value3 = (require(8170) /* metro dependency 8170: useUserLinks */).useActiveLinkUserIds(); const value4 = (require(13406) /* metro dependency 13406: useSelectedTeenUser */).useSelectedTeenUser(); const value5 = (require(5188) /* metro dependency 5188: FamilyCenterV3Experiment */).useIsFamilyCenterV3Enabled({location: 'FamilyCenterSettingsControls'}); const env0_1 = (require(1484) /* metro dependency 1484: useNavigationNative */).useNavigation(); const r6 = (value4 == null || value4.restrictedSchedule == null ? value2 : value4.restrictedSchedule.rules) ?? []; const value6 = (require(13422) /* metro dependency 13422: SpendingLimitDisplay */).useSpendingLimitFromUserSettings(); const {subLabel, trailing} = (importDefault(13423) /* metro dependency 13423: useScheduleTimeControlsRowProps */)(r6); const Stack = (require(4572) /* metro dependency 4572: StackNative */).Stack; const Stack2 = (require(4572) /* metro dependency 4572: StackNative */).Stack; const Text = (require(4573) /* metro dependency 4573: Text */).Text; const intl = (require(1244) /* metro dependency 1244: indexNative */).intl; const text = {intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).ahKIJO)}; const format = intl.format; const X9rW0j = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).X9rW0j; const stack = {text}{Reflect.apply(format, intl, [X9rW0j, {openSettingsHook: openSettingsHook}])}; if (value5) { var viewBindingProps = {style: styles.controlsGroup}; TableRowGroup = (require(6231) /* metro dependency 6231: TableRowGroupNative */).TableRowGroup; items3 = []; TableRow = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow; var tableRowProps = {label: intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */)['1Op+NP']), subLabel: subLabel, trailing: trailing}; length = r6.length; tableRowProps.onPress = length > 0 ? _fun102100 : value2; length = r6.length; tableRowProps.arrow = length > 0; items3[1] = ; r5 = {items3}; } else { r5 = value5; } const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button; return ( {stack} {r5}