Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,76 @@
|
||||
/* Metro module 15702; source: modules/activities/native/ActivityFeedbackActionSheet.tsx; dependencies: [31, 4237, 661, 9906, 33, 683, 15703, 9927, 1244, 9909, 3856, 15704, 2] */
|
||||
function _fun120528(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#120528, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15910:6, offset: 0x0252e186, size: 242 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
const ActivityFeedbackReasons = (require(4237) /* metro dependency 4237: Constants */).ActivityFeedbackReasons;
|
||||
const env0_4 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
|
||||
const env0_5 = (require(9906) /* metro dependency 9906: Constants */).FeedbackType;
|
||||
const env0_6 = (require(33) /* metro dependency 33 */).jsx;
|
||||
const OTHER = ActivityFeedbackReasons.OTHER;
|
||||
items = [OTHER];
|
||||
const ADS = ActivityFeedbackReasons.ADS;
|
||||
items[1] = ADS;
|
||||
const NOT_FUN = ActivityFeedbackReasons.NOT_FUN;
|
||||
items[2] = NOT_FUN;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activities/native/ActivityFeedbackActionSheet.tsx');
|
||||
exports.default = ActivityFeedbackActionSheet;
|
||||
}
|
||||
|
||||
function ActivityFeedbackActionSheet({activityApplication, channel, embeddedActivityLocation, analyticsData}) { // fn#120529, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15910:330, offset: 0x0252e278, size: 359 bytes, params: 2, frame: 25
|
||||
const value3 = (importDefault(15703) /* metro dependency 15703: getActivityReportOptions */)(true,
|
||||
activityApplication.embeddedActivityConfig?.displays_advertisements === true);
|
||||
const FeedbackActionSheet = importDefault(9927) /* metro dependency 9927: FeedbackActionSheet */;
|
||||
const object2 = {};
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const formatToPlainString = intl.formatToPlainString;
|
||||
const QXYwoD = (require(1244) /* metro dependency 1244: indexNative */).t.QXYwoD;
|
||||
object2.headerLabel = Reflect.apply(formatToPlainString, intl, [QXYwoD,
|
||||
{applicationName: activityApplication.name}]);
|
||||
object2.showHeaderCloseButton = true;
|
||||
object2.ratingsBodyLabel = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['9hk2KF']);
|
||||
object2.reasonsHeaderLabel = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.g1q5fr);
|
||||
object2.reasons = value3;
|
||||
object2.feedbackReasons = env0_7;
|
||||
const OTHER = ActivityFeedbackReasons.OTHER;
|
||||
object2.otherKey = OTHER;
|
||||
object2.trackOpen = function() {
|
||||
var activityApplicationBinding = activityApplication;
|
||||
var defaultImport = importDefault(dependencyMap[5]);
|
||||
var OPEN_POPOUT = AnalyticEvents.OPEN_POPOUT;
|
||||
defaultImport.track(OPEN_POPOUT, {type: 'Activity Feedback Sheet',
|
||||
application_id: activityApplicationBinding.id,
|
||||
application_name: activityApplicationBinding.name, game_id: activityApplicationBinding.id,
|
||||
source: 'Activity End'});
|
||||
};
|
||||
object2.trackReport = trackReport;
|
||||
return <FeedbackActionSheet {...object2} />;
|
||||
}
|
||||
|
||||
function ActivityFeedbackActionSheetTrackReport({rating, reason, feedback, dontShowAgain}) { // fn#120531, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15910:1026, owner: ActivityFeedbackActionSheet.trackReport, offset: 0x0252e44c, size: 319 bytes, params: 2, frame: 21
|
||||
var value3;
|
||||
var defaultImport;
|
||||
var value5;
|
||||
var defaultImport2;
|
||||
let value = null;
|
||||
const r4 = value != reason ? reason.value : value;
|
||||
if (dontShowAgain) {
|
||||
value3 = environment.__proto__;
|
||||
defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
||||
defaultImport.track(AnalyticEvents.ACTIVITY_REPORT_DONT_SHOW, {application_id: activityApplication.id,
|
||||
rating: rating});
|
||||
(require(9909) /* metro dependency 9909: FeedbackUtils */).processOptOut({feedbackType: FeedbackType.ACTIVITY,
|
||||
location: 'ActivityFeedbackActionSheet'});
|
||||
}
|
||||
if (value != rating) {
|
||||
value5 = environment.__proto__;
|
||||
(require(3856) /* metro dependency 3856: ToastUtils */).presentFeedbackSent();
|
||||
defaultImport2 = importDefault(15704) /* metro dependency 15704: trackActivityProblem */;
|
||||
value = '';
|
||||
defaultImport2({problem: r4, channel: channel, embeddedActivityLocation: embeddedActivityLocation,
|
||||
feedback: value != feedback ? feedback : value, activityApplication: activityApplication,
|
||||
analyticsData: analyticsData, location: 'Activity End', rating: rating});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user