88 lines
4.4 KiB
TypeScript
88 lines
4.4 KiB
TypeScript
/* Metro module 11535; source: modules/channel/useTextareaPlaceholderAndLabels.tsx; dependencies: [661, 4805, 1244, 2] */
|
|
import UseChannelName from './useChannelName.tsx'; /* Metro dependency 4805 */
|
|
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
import * as ConstantsModule from '../../Constants.tsx'; /* Metro dependency 661 */
|
|
import * as IndexNativeModule from '../../intl/index.native.tsx'; /* Metro dependency 1244 */
|
|
|
|
function _fun88355(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#88355, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11721:6, offset: 0x01fe03f2, size: 134 bytes, params: 8, frame: 18
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/channel/useTextareaPlaceholderAndLabels.tsx');
|
|
exports.default = useTextareaPlaceholderAndLabels;
|
|
function useTextareaPlaceholderAndLabels({channel, isReadonly, isCreatingThread}) { // fn#88356, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11721:239, offset: 0x01fe0478, size: 1058 bytes, params: 2, frame: 23
|
|
var r0;
|
|
var THREADS;
|
|
var object;
|
|
const intl = (IndexNativeModule).intl;
|
|
const t = (IndexNativeModule).t;
|
|
var string;
|
|
var YzpScd;
|
|
var MKDeyL;
|
|
isReadonly = !(isReadonly === undefined) && isReadonly;
|
|
isCreatingThread = !(isCreatingThread === undefined) && isCreatingThread;
|
|
const value2 = (UseChannelName)(channel, true);
|
|
const value3 = (UseChannelName)(channel, false);
|
|
if (channel == null) {
|
|
object = {};
|
|
string = intl.string;
|
|
MKDeyL = t.MKDeyL;
|
|
object.placeholder = Reflect.apply(string, intl, [MKDeyL]);
|
|
string = intl.string;
|
|
MKDeyL = t.MKDeyL;
|
|
object.accessibilityLabel = Reflect.apply(string, intl, [MKDeyL]);
|
|
r0 = object;
|
|
} else if (value2 == null) {
|
|
object = {};
|
|
string = intl.string;
|
|
MKDeyL = t.MKDeyL;
|
|
object.placeholder = Reflect.apply(string, intl, [MKDeyL]);
|
|
string = intl.string;
|
|
MKDeyL = t.MKDeyL;
|
|
object.accessibilityLabel = Reflect.apply(string, intl, [MKDeyL]);
|
|
r0 = object;
|
|
} else if (isCreatingThread) {
|
|
object = {};
|
|
string = intl.string;
|
|
YzpScd = t.YzpScd;
|
|
object.placeholder = Reflect.apply(string, intl, [YzpScd]);
|
|
string = intl.string;
|
|
YzpScd = t.YzpScd;
|
|
object.accessibilityLabel = Reflect.apply(string, intl, [YzpScd]);
|
|
r0 = object;
|
|
} else if (isReadonly) {
|
|
object = {};
|
|
object.placeholder = intl.string(t['RRvRp/']);
|
|
object.accessibilityLabel = intl.string(t['RRvRp/']);
|
|
r0 = object;
|
|
} else if (channel.isForumPost()) {
|
|
object = {};
|
|
object.placeholder = intl.formatToPlainString(t.Y6qWLc, {channel: value2});
|
|
object.accessibilityLabel = intl.formatToPlainString(t.KffKoR, {channel: value3});
|
|
r0 = object;
|
|
} else {
|
|
THREADS = ChannelTypesSets.THREADS;
|
|
if (THREADS.has(channel.type)) {
|
|
object = {};
|
|
object.placeholder = intl.formatToPlainString(t['8lzR/R'], {channel: value2});
|
|
object.accessibilityLabel = intl.formatToPlainString(t.UZIMWS, {channel: value3});
|
|
r0 = object;
|
|
} else if (channel.type === ChannelTypes.DM) {
|
|
object = {};
|
|
object.placeholder = intl.formatToPlainString(t['4c+CAx'], {channel: value2});
|
|
object.accessibilityLabel = intl.formatToPlainString(t.fqOxbV, {channel: value3});
|
|
r0 = object;
|
|
} else {
|
|
object = {};
|
|
object.placeholder = intl.formatToPlainString(t['8lzR/R'], {channel: value2});
|
|
object.accessibilityLabel = intl.formatToPlainString(t.ih7ZSA, {channel: value3});
|
|
r0 = object;
|
|
}
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun88355, 11535, [661, 4805, 1244, 2]) /* metro module 11535, dependencies: [661, 4805, 1244, 2] */;
|