50 lines
3.6 KiB
TypeScript
50 lines
3.6 KiB
TypeScript
/* Metro module 11491; source: modules/safety_hub/hooks/useEmitAppealIngestionEvent.tsx; dependencies: [31, 11473, 5267, 661, 566, 11479, 11481, 683, 2] */
|
|
import AnalyticsUtils from '../../../utils/AnalyticsUtils.tsx'; /* Metro dependency 683 */
|
|
import SafetyHubStore from '../SafetyHubStore.tsx'; /* Metro dependency 11473 */
|
|
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 ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
|
|
import * as SafetyHubConstantsModule from '../SafetyHubConstants.tsx'; /* Metro dependency 5267 */
|
|
import * as UseSafetyHubAccountStandingModule from './useSafetyHubAccountStanding.tsx'; /* Metro dependency 11481 */
|
|
|
|
function _fun88054(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#88054, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11677:6, offset: 0x01fd2fb1, size: 191 bytes, params: 8, frame: 19
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/safety_hub/hooks/useEmitAppealIngestionEvent.tsx');
|
|
exports.useEmitAppealIngestionEvent = useEmitAppealIngestionEvent;
|
|
function useEmitAppealIngestionEvent() { // fn#88055, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11677:336, offset: 0x01fd3070, size: 227 bytes, params: 1, frame: 19
|
|
const appealClassificationId = (require(566) /* metro dependency 566: flux */).useStateFromStores([SafetyHubStore],
|
|
function() {
|
|
return SafetyHubStore.getAppealClassificationId();
|
|
});
|
|
const value2 = (require(11479) /* metro dependency 11479: useSafetyHubClassifications */).useSafetyHubClassification(appealClassificationId ?? EMPTY_STRING_SNOWFLAKE_ID);
|
|
const value3 = (UseSafetyHubAccountStandingModule).useSafetyHubAccountStanding();
|
|
const isDsaEligible = (require(566) /* metro dependency 566: flux */).useStateFromStores([SafetyHubStore],
|
|
function() {
|
|
return SafetyHubStore.getIsDsaEligible();
|
|
});
|
|
return isDsaEligible.useCallback(_fun88058, [value3.state, appealClassificationId, value2, isDsaEligible]);
|
|
function _fun88058(a0) { // fn#88058, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11677:588, offset: 0x01fd3166, size: 158 bytes, params: 2, frame: 19
|
|
const defaultImport = AnalyticsUtils;
|
|
const track = defaultImport.track;
|
|
const SAFETY_HUB_ACTION = AnalyticEvents.SAFETY_HUB_ACTION;
|
|
const object = {action: a0};
|
|
object.account_standing = env0_2.state;
|
|
const appealClassificationIdBinding = appealClassificationId;
|
|
const value3 = null;
|
|
object.classification_ids = value3 != appealClassificationIdBinding ? [global.Number(appealClassificationId)] : value3;
|
|
const AppealIngestion = SafetyHubAnalyticsActionSource.AppealIngestion;
|
|
object.source = AppealIngestion;
|
|
object.is_dsa_eligible = isDsaEligible;
|
|
object.violation_type = env0_1.violationType;
|
|
Reflect.apply(track, defaultImport, [SAFETY_HUB_ACTION, object]);
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun88054, 11491, [31, 11473, 5267, 661, 566, 11479, 11481, 683,
|
|
2]) /* metro module 11491, dependencies: [31, 11473, 5267, 661, 566, 11479, 11481, 683, 2] */;
|