65 lines
4.4 KiB
TypeScript
65 lines
4.4 KiB
TypeScript
/* Metro module 13390; source: modules/parent_tools/hooks/useSelectedTab.tsx; dependencies: [5116, 5117, 661, 632, 5118, 683, 2] */
|
|
import AnalyticsUtils from '../../../utils/AnalyticsUtils.tsx'; /* Metro dependency 683 */
|
|
import FamilyCenterStore from '../FamilyCenterStore.tsx'; /* Metro dependency 5116 */
|
|
import FamilyCenterActionCreators from '../FamilyCenterActionCreators.tsx'; /* Metro dependency 5118 */
|
|
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
import * as UseStateFromStoresModule from '../../../external/discord_common/js/packages/flux/useStateFromStores.tsx'; /* Metro dependency 632 */
|
|
import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
|
|
import * as FamilyCenterConstantsModule from '../FamilyCenterConstants.tsx'; /* Metro dependency 5117 */
|
|
|
|
function _fun101951(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#101951, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13580:6, offset: 0x02224cb5, size: 280 bytes, params: 8, frame: 19
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const FamilyCenterSubPages = FamilyCenterConstantsModule.FamilyCenterSubPages;
|
|
object = {};
|
|
const ACTIVITY = FamilyCenterSubPages.ACTIVITY;
|
|
object[ACTIVITY] = 'family_center_activity_tab';
|
|
const REQUESTS = FamilyCenterSubPages.REQUESTS;
|
|
object[REQUESTS] = 'family_center_requests_tab';
|
|
const SETTINGS = FamilyCenterSubPages.SETTINGS;
|
|
object[SETTINGS] = 'family_center_settings_tab';
|
|
const CONTENT_AND_SOCIAL = FamilyCenterSubPages.CONTENT_AND_SOCIAL;
|
|
object[CONTENT_AND_SOCIAL] = 'family_center_content_and_social_panel';
|
|
const DATA_AND_PRIVACY = FamilyCenterSubPages.DATA_AND_PRIVACY;
|
|
object[DATA_AND_PRIVACY] = 'family_center_data_and_privacy_panel';
|
|
const SCREEN_TIME_CONTROLS = FamilyCenterSubPages.SCREEN_TIME_CONTROLS;
|
|
object[SCREEN_TIME_CONTROLS] = 'family_center_screen_time_controls_panel';
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/parent_tools/hooks/useSelectedTab.tsx');
|
|
exports.default = function() {
|
|
var object = {};
|
|
object.selectedTab = require(dependencyMap[3]).useStateFromStores([FamilyCenterStore], _fun101953);
|
|
object.handleTabChange = _fun101954;
|
|
return object;
|
|
};
|
|
exports.FAMILY_CENTER_TAB_ANALYTICS_LABELS = object;
|
|
function _default_101952() { // fn#101952, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13580:520, offset: 0x02224dcd, size: 80 bytes, params: 1, frame: 15
|
|
const useStateFromStores = UseStateFromStoresModule.useStateFromStores;
|
|
return {selectedTab: Reflect.apply(useStateFromStores, UseStateFromStoresModule, [[FamilyCenterStore], function() {
|
|
return FamilyCenterStore.getSelectedTab();
|
|
}]), handleTabChange: function(a0) {
|
|
importDefault(dependencyMap[4]).selectTab(a0);
|
|
var defaultImport2 = importDefault(dependencyMap[5]);
|
|
var FAMILY_CENTER_ACTION = AnalyticEvents.FAMILY_CENTER_ACTION;
|
|
defaultImport2.track(FAMILY_CENTER_ACTION, {action: FamilyCenterAction.TabChange, tab: a0});
|
|
}};
|
|
function _fun101953() { // fn#101953, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13580:570, offset: 0x02224e1d, size: 19 bytes, params: 1, frame: 9
|
|
return FamilyCenterStore.getSelectedTab();
|
|
}
|
|
|
|
function handleTabChange(a0) { // fn#101954, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13580:611, owner: _default_101952.handleTabChange, offset: 0x02224e30, size: 95 bytes, params: 2, frame: 16
|
|
(FamilyCenterActionCreators).selectTab(a0);
|
|
const defaultImport2 = AnalyticsUtils;
|
|
const track = defaultImport2.track;
|
|
const FAMILY_CENTER_ACTION = AnalyticEvents.FAMILY_CENTER_ACTION;
|
|
const TabChange = FamilyCenterAction.TabChange;
|
|
Reflect.apply(track, defaultImport2, [FAMILY_CENTER_ACTION, {action: TabChange, tab: a0}]);
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun101951, 13390, [5116, 5117, 661, 632, 5118, 683,
|
|
2]) /* metro module 13390, dependencies: [5116, 5117, 661, 632, 5118, 683, 2] */;
|