78 lines
5.1 KiB
TypeScript
78 lines
5.1 KiB
TypeScript
/* Metro module 9926; source: modules/notifications/native/NotificationSurveyActionSheet.tsx; dependencies: [31, 9904, 661, 33, 1244, 683, 9927, 9907, 4080, 9929, 1962, 2] */
|
|
import FeedbackActionSheet from '../../feedback/native/FeedbackActionSheet.tsx'; /* Metro dependency 9927 */
|
|
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 ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
|
|
import * as ConstantsModule2 from './Constants.tsx'; /* Metro dependency 9904 */
|
|
|
|
function _fun77709(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#77709, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10112:6, offset: 0x01e07cd9, size: 193 bytes, params: 8, frame: 18
|
|
const env0_0 = require;
|
|
const trackOpen_77710 = function() {
|
|
var defaultImport = importDefault(dependencyMap[5]);
|
|
var OPEN_POPOUT = AnalyticEvents.OPEN_POPOUT;
|
|
defaultImport.track(OPEN_POPOUT, {'type': 'Notification Feedback Sheet', 'source': 'Notification End'});
|
|
};
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
ReactModule;
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/notifications/native/NotificationSurveyActionSheet.tsx');
|
|
exports.default = NotificationSurveyActionSheet;
|
|
function NotificationSurveyActionSheet({notificationType, location, messageId}) { // fn#77711, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10112:405, offset: 0x01e07dd8, size: 469 bytes, params: 2, frame: 22
|
|
let object = {};
|
|
const TOO_MANY = NotificationUserFeedbackReasons.TOO_MANY;
|
|
object.value = TOO_MANY;
|
|
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
|
let string = intl.string;
|
|
object.label = Reflect.apply(string, intl, [(require(1244) /* metro dependency 1244: indexNative */).t.pLeQp0]);
|
|
const items2 = [object];
|
|
object = {};
|
|
const IRRELEVANT = NotificationUserFeedbackReasons.IRRELEVANT;
|
|
object.value = IRRELEVANT;
|
|
object.label = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.tuwPcC);
|
|
items2[1] = object;
|
|
object = {};
|
|
const DISLIKE_CONTENT = NotificationUserFeedbackReasons.DISLIKE_CONTENT;
|
|
object.value = DISLIKE_CONTENT;
|
|
object.label = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.glUMhg);
|
|
items2[2] = object;
|
|
const feedbackActionSheetProps = {'headerLabel': null, 'showHeaderCloseButton': true,
|
|
'hideDontShowAgainCheckbox': true,
|
|
headerLabel: intl.string((require(1244) /* metro dependency 1244: indexNative */).t.wGioO1)};
|
|
string = intl.string;
|
|
const Yzl7Or = (require(1244) /* metro dependency 1244: indexNative */).t.Yzl7Or;
|
|
feedbackActionSheetProps.ratingsBodyLabel = Reflect.apply(string, intl, [Yzl7Or]);
|
|
feedbackActionSheetProps.reasonsHeaderLabel = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.g1q5fr);
|
|
feedbackActionSheetProps.reasons = items2;
|
|
feedbackActionSheetProps.trackOpen = trackOpen_77710;
|
|
feedbackActionSheetProps.trackReport = trackReport;
|
|
return <FeedbackActionSheet {...feedbackActionSheetProps} />;
|
|
function trackReport({rating, reason}) { // fn#77712, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10112:1022, owner: NotificationSurveyActionSheet.trackReport, offset: 0x01e07fad, size: 277 bytes, params: 2, frame: 20
|
|
var value2;
|
|
var defaultImport;
|
|
let value = null;
|
|
if (value != rating) {
|
|
value2 = environment.__proto__;
|
|
defaultImport = importDefault(dependencyMap[5]);
|
|
defaultImport.track(AnalyticEvents.NOTIFICATION_REPORT_SUBMITTED,
|
|
{reason: value != reason ? reason.value : value,
|
|
rating: rating, notification_type: notificationType, location: location, message_id: messageId});
|
|
}
|
|
value = environment.__proto__;
|
|
require(dependencyMap[7]).handleSurveyCleanup();
|
|
value = importDefault(dependencyMap[8]);
|
|
const openLazy = value.openLazy;
|
|
const value3 = require(dependencyMap[10])(dependencyMap[9], dependencyMap.paths);
|
|
const object = {};
|
|
const intl = require(dependencyMap[4]).intl;
|
|
object.header = intl.string(require(dependencyMap[4]).t.wGioO1);
|
|
Reflect.apply(openLazy, value, [value3, 'UserFeedbackSurvey', object]);
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun77709, 9926, [31, 9904, 661, 33, 1244, 683, 9927, 9907, 4080, 9929, 1962,
|
|
2]) /* metro module 9926, dependencies: [31, 9904, 661, 33, 1244, 683, 9927, 9907, 4080, 9929, 1962, 2] */;
|