Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
45 lines
1.7 KiB
TypeScript
45 lines
1.7 KiB
TypeScript
// Module ID: 11001
|
|
// Function ID: 11002
|
|
// Name: AcceptFriendRequestModalActionCreators
|
|
// Dependencies: [11002, 1074, 21, 1242, 4981, 11003, 1896, 2]
|
|
// Exports: openAcceptFriendRequestConfirmModal
|
|
|
|
// Module 11001 (AcceptFriendRequestModalActionCreators)
|
|
import jsxProd from "jsxProd" /* 21 */;
|
|
import Constants from "Constants" /* 1074 */;
|
|
import AnalyticsUtilsDefault from "AnalyticsUtils" /* 1242 */;
|
|
import asyncRequireImpl from "asyncRequireImpl" /* 1896 */;
|
|
import actions_AlertActionCreatorsDefault from "actions/AlertActionCreators" /* 4981 */;
|
|
import Constants2 from "Constants" /* 11002 */;
|
|
import size from "module_2" /* 2 */;
|
|
|
|
const type = Constants2.ACCEPT_FRIEND_REQUEST_CONFIRMATION_MODAL_ID;
|
|
const AnalyticEvents = Constants.AnalyticEvents;
|
|
const jsx = jsxProd.jsx;
|
|
const result = size.fileFinishedImporting("modules/people/strangers/AcceptFriendRequestModalActionCreators.native.tsx");
|
|
|
|
export const openAcceptFriendRequestConfirmModal = function openAcceptFriendRequestConfirmModal(arg0) {
|
|
({ onConfirm: require, onCancel: importDefault } = arg0);
|
|
AnalyticsUtilsDefault.track(AnalyticEvents.OPEN_MODAL, { type });
|
|
const obj2 = { type };
|
|
actions_AlertActionCreatorsDefault.openLazy({
|
|
importer() {
|
|
return asyncRequireImpl(11003, dependencyMap.paths).then((result) => {
|
|
closure_0 = result.default;
|
|
return (arg0) => {
|
|
closure_0 = arg0;
|
|
const obj = {};
|
|
const merged = Object.assign(arg0);
|
|
obj.onCancel = function onCancel() {
|
|
closure_0.onClose();
|
|
if (closure_2_1 != null) {
|
|
tmp2();
|
|
}
|
|
};
|
|
obj.onConfirm = onConfirm;
|
|
return <closure_0 />;
|
|
};
|
|
});
|
|
}
|
|
});
|
|
};
|