47 lines
1.8 KiB
TypeScript
47 lines
1.8 KiB
TypeScript
// Module ID: 16315
|
|
// Function ID: 16316
|
|
// Name: maybeShowVibegrationsFeedback
|
|
// Dependencies: [10991, 16316, 16317, 16335, 1987, 6459, 4801, 2]
|
|
// Exports: default
|
|
|
|
// Module 16315 (maybeShowVibegrationsFeedback)
|
|
import ActionSheetActionCreatorsDefault from "ActionSheetActionCreators" /* 4801 */;
|
|
import Constants from "Constants" /* 10991 */;
|
|
import FeedbackManagerDefault from "FeedbackManager" /* 16317 */;
|
|
import size from "module_2" /* 2 */;
|
|
|
|
const require = globalThis.__r;
|
|
let _require, importDefault;
|
|
|
|
const FeedbackType = Constants.FeedbackType;
|
|
let result = size.fileFinishedImporting("modules/vibegrations/native/maybeShowVibegrationsFeedback.tsx");
|
|
|
|
export default function maybeShowVibegrationsFeedback(arg0) {
|
|
let closure_0;
|
|
let paths;
|
|
_require = arg0;
|
|
let obj = require("vibegrationsFeedback");
|
|
const countSettledTurnsResult = obj.countSettledTurns(arg0);
|
|
importDefault = countSettledTurnsResult;
|
|
let result = countSettledTurnsResult < require("vibegrationsFeedback").MINIMUM_SETTLED_TURNS_FOR_FEEDBACK;
|
|
const tmp = _require;
|
|
if (!result) {
|
|
const tmpResult = tmp(16316);
|
|
result = tmpResult.hasShownFeedbackForProject(arg0);
|
|
}
|
|
if (!result) {
|
|
const obj3 = FeedbackManagerDefault;
|
|
const result1 = obj3.possiblyShowFeedbackModal(FeedbackType.VIBEGRATIONS, () => {
|
|
let projectId;
|
|
let obj = projectId(paths[1]);
|
|
const result = obj.markFeedbackShownForProject(projectId);
|
|
projectId = projectId(paths[4])(paths[3], paths.paths);
|
|
let obj2 = projectId(paths[5]);
|
|
obj2.runAfterInteractions(() => {
|
|
const obj = ActionSheetActionCreatorsDefault;
|
|
const obj2 = { projectId, promptCount: importDefault };
|
|
obj.openLazy(projectId, "VibegrationsFeedback" + projectId, obj2);
|
|
});
|
|
});
|
|
}
|
|
};
|