63 lines
4.0 KiB
TypeScript
63 lines
4.0 KiB
TypeScript
/* Metro module 15013; source: modules/threads/FormError.tsx; dependencies: [1244, 7246, 2] */
|
|
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
import * as IndexNativeModule from '../../intl/index.native.tsx'; /* Metro dependency 1244 */
|
|
import * as AutomodErrorUtilsModule from '../guild_automod/AutomodErrorUtils.tsx'; /* Metro dependency 7246 */
|
|
|
|
function _fun113486(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#113486, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15210:6, offset: 0x023fc48c, size: 229 bytes, params: 8, frame: 18
|
|
const env0_0 = require;
|
|
const formSubmitError_113487 = function(a0, a1) {
|
|
var value = a1;
|
|
var value2 = null;
|
|
return {type: a0, message: value2 != value ? value : value2};
|
|
};
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
object = {EmptyContent: 0};
|
|
object[0] = 'EmptyContent';
|
|
object.AutomodViolation = 1;
|
|
object[1] = 'AutomodViolation';
|
|
object.ApiValidation = 2;
|
|
object[2] = 'ApiValidation';
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/threads/FormError.tsx');
|
|
exports.FormSubmitErrorType = object;
|
|
exports.makeEmptyTitleError = function() {
|
|
return makeEmptyContentError_113488(require(dependencyMap[0]).intl.string(require(dependencyMap[0]).t.uXA573));
|
|
};
|
|
exports.makeEmptyMessageError = function() {
|
|
return makeEmptyContentError_113488(require(dependencyMap[0]).intl.string(require(dependencyMap[0]).t.kesTVT));
|
|
};
|
|
exports.makeApiNameRequiredError = makeApiNameRequiredError;
|
|
exports.makeAutomodViolationError = makeAutomodViolationError_113492;
|
|
exports.renderError = renderError_113493;
|
|
function makeEmptyContentError_113488(a0) { // fn#113488, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15210:307, offset: 0x01f47128, size: 30 bytes, params: 2, frame: 13
|
|
const formSubmitError_113487Binding = formSubmitError_113487;
|
|
const EmptyContent = env0_2.EmptyContent;
|
|
return formSubmitError_113487Binding(EmptyContent, a0);
|
|
}
|
|
|
|
function makeApiNameRequiredError() { // fn#113491, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15210:744, offset: 0x023fc5ff, size: 81 bytes, params: 1, frame: 17
|
|
const formSubmitError_113487Binding = formSubmitError_113487;
|
|
const ApiValidation = env0_2.ApiValidation;
|
|
const intl = (IndexNativeModule).intl;
|
|
return formSubmitError_113487Binding(ApiValidation,
|
|
intl.string((IndexNativeModule).t.uXA573));
|
|
}
|
|
|
|
function makeAutomodViolationError_113492(a0, a1) { // fn#113492, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15210:887, offset: 0x01f471d4, size: 81 bytes, params: 3, frame: 17
|
|
const formSubmitError_113487Binding = formSubmitError_113487;
|
|
const AutomodViolation = env0_2.AutomodViolation;
|
|
const value = undefined;
|
|
const getAutomodErrorMessageFromErrorResponse = AutomodErrorUtilsModule.getAutomodErrorMessageFromErrorResponse;
|
|
return formSubmitError_113487Binding(AutomodViolation, Reflect.apply(getAutomodErrorMessageFromErrorResponse,
|
|
AutomodErrorUtilsModule, [a0, a1 == null ? value : a1.id]));
|
|
}
|
|
|
|
function renderError_113493(a0, a1) { // fn#113493, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15210:1056, offset: 0x023fc650, size: 101 bytes, params: 3, frame: 13
|
|
const value = null;
|
|
return value == a0 ? value : a0.type !== env0_2.EmptyContent || value == a1.content ? value != a0.message ? a0.message : value : a1.content.trim().length > 0 ? value : value != a0.message ? a0.message : value;
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun113486, 15013, [1244, 7246, 2]) /* metro module 15013, dependencies: [1244, 7246, 2] */;
|