decord/source/modules/channel/useTextareaPlaceholderAndLabels.tsx

93 lines
4.1 KiB
TypeScript
Raw Normal View History

2026-07-25 08:10:48 +00:00
// Module ID: 11098
// Function ID: 86257
2026-07-20 16:05:17 +00:00
// Name: useTextareaPlaceholderAndLabels
2026-07-25 08:10:48 +00:00
// Dependencies: [653, 4321, 1212, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-07-25 08:10:48 +00:00
// Module 11098 (useTextareaPlaceholderAndLabels)
2026-07-23 10:11:24 +00:00
import ME from "ME";
let closure_3;
let closure_4;
({ ChannelTypes: closure_3, ChannelTypesSets: closure_4 } = ME);
const result = require("getSystemLocale").fileFinishedImporting("modules/channel/useTextareaPlaceholderAndLabels.tsx");
2026-07-20 16:05:17 +00:00
export default function useTextareaPlaceholderAndLabels(isCreatingThread) {
let channel;
let isReadonly;
({ channel, isReadonly } = isCreatingThread);
if (isReadonly === undefined) {
isReadonly = false;
}
let flag = isCreatingThread.isCreatingThread;
if (flag === undefined) {
flag = false;
}
2026-07-25 08:10:48 +00:00
const tmp = importDefault(4321)(channel, true);
const tmp2 = importDefault(4321)(channel, false);
2026-07-20 16:05:17 +00:00
if (null != channel) {
if (null != tmp) {
if (flag) {
let obj = {};
2026-07-23 10:11:24 +00:00
const intl9 = require(1212) /* getSystemLocale */.intl;
obj.placeholder = intl9.string(require(1212) /* getSystemLocale */.t.YzpScd);
const intl10 = require(1212) /* getSystemLocale */.intl;
obj.accessibilityLabel = intl10.string(require(1212) /* getSystemLocale */.t.YzpScd);
2026-07-20 16:05:17 +00:00
let obj9 = obj;
} else if (isReadonly) {
obj = {};
2026-07-23 10:11:24 +00:00
const intl7 = require(1212) /* getSystemLocale */.intl;
obj.placeholder = intl7.string(require(1212) /* getSystemLocale */.t["RRvRp/"]);
const intl8 = require(1212) /* getSystemLocale */.intl;
obj.accessibilityLabel = intl8.string(require(1212) /* getSystemLocale */.t["RRvRp/"]);
2026-07-20 16:05:17 +00:00
obj9 = obj;
} else if (channel.isForumPost()) {
const obj1 = {};
2026-07-23 10:11:24 +00:00
const intl5 = require(1212) /* getSystemLocale */.intl;
2026-07-20 16:05:17 +00:00
const obj2 = { channel: tmp };
2026-07-23 10:11:24 +00:00
obj1.placeholder = intl5.formatToPlainString(require(1212) /* getSystemLocale */.t.Y6qWLc, obj2);
const intl6 = require(1212) /* getSystemLocale */.intl;
2026-07-20 16:05:17 +00:00
const obj3 = { channel: tmp2 };
2026-07-23 10:11:24 +00:00
obj1.accessibilityLabel = intl6.formatToPlainString(require(1212) /* getSystemLocale */.t.KffKoR, obj3);
2026-07-20 16:05:17 +00:00
obj9 = obj1;
} else {
const THREADS = constants2.THREADS;
if (THREADS.has(channel.type)) {
const obj4 = {};
2026-07-23 10:11:24 +00:00
const intl3 = require(1212) /* getSystemLocale */.intl;
2026-07-20 16:05:17 +00:00
const obj5 = { channel: tmp };
2026-07-23 10:11:24 +00:00
obj4.placeholder = intl3.formatToPlainString(require(1212) /* getSystemLocale */.t["8lzR/R"], obj5);
const intl4 = require(1212) /* getSystemLocale */.intl;
2026-07-20 16:05:17 +00:00
const obj6 = { channel: tmp2 };
2026-07-23 10:11:24 +00:00
obj4.accessibilityLabel = intl4.formatToPlainString(require(1212) /* getSystemLocale */.t.UZIMWS, obj6);
2026-07-20 16:05:17 +00:00
obj9 = obj4;
} else if (channel.type === constants.DM) {
obj = {};
2026-07-23 10:11:24 +00:00
const intl = require(1212) /* getSystemLocale */.intl;
2026-07-20 16:05:17 +00:00
const obj7 = { channel: tmp };
2026-07-23 10:11:24 +00:00
obj.placeholder = intl.formatToPlainString(require(1212) /* getSystemLocale */.t["4c+CAx"], obj7);
const intl2 = require(1212) /* getSystemLocale */.intl;
2026-07-20 16:05:17 +00:00
const obj8 = { channel: tmp2 };
2026-07-23 10:11:24 +00:00
obj.accessibilityLabel = intl2.formatToPlainString(require(1212) /* getSystemLocale */.t.fqOxbV, obj8);
2026-07-20 16:05:17 +00:00
obj9 = obj;
} else {
obj9 = {};
2026-07-23 10:11:24 +00:00
const intl13 = require(1212) /* getSystemLocale */.intl;
2026-07-20 16:05:17 +00:00
const obj10 = { channel: tmp };
2026-07-23 10:11:24 +00:00
obj9.placeholder = intl13.formatToPlainString(require(1212) /* getSystemLocale */.t["8lzR/R"], obj10);
const intl14 = require(1212) /* getSystemLocale */.intl;
2026-07-20 16:05:17 +00:00
const obj11 = { channel: tmp2 };
2026-07-23 10:11:24 +00:00
obj9.accessibilityLabel = intl14.formatToPlainString(require(1212) /* getSystemLocale */.t.ih7ZSA, obj11);
2026-07-20 16:05:17 +00:00
}
}
}
return obj9;
}
const obj12 = {};
2026-07-23 10:11:24 +00:00
const intl11 = require(1212) /* getSystemLocale */.intl;
obj12.placeholder = intl11.string(require(1212) /* getSystemLocale */.t.MKDeyL);
const intl12 = require(1212) /* getSystemLocale */.intl;
obj12.accessibilityLabel = intl12.string(require(1212) /* getSystemLocale */.t.MKDeyL);
2026-07-20 16:05:17 +00:00
obj9 = obj12;
};