53 lines
2.9 KiB
TypeScript
53 lines
2.9 KiB
TypeScript
/* Metro module 11536; source: modules/chat_input/native/useAnniversaryPlaceholder.tsx; dependencies: [8326, 566, 11433, 2] */
|
|
import PremiumGiftingIntentStore from '../../premium/gifting/PremiumGiftingIntentStore.tsx'; /* Metro dependency 8326 */
|
|
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
import * as FluxModule from '../../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
|
|
|
|
function _fun88357(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#88357, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11722:6, offset: 0x01fe089a, size: 114 bytes, params: 8, frame: 18
|
|
let env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/chat_input/native/useAnniversaryPlaceholder.tsx');
|
|
exports.default = function(a0) {
|
|
var env0_0 = a0;
|
|
return require(dependencyMap[1]).useStateFromStores([PremiumGiftingIntentStore], _fun88359, [a0]);
|
|
};
|
|
function useAnniversaryPlaceholder(a0) { // fn#88358, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11722:205, offset: 0x01fe090c, size: 75 bytes, params: 2, frame: 16
|
|
const env0_0 = a0;
|
|
return (FluxModule).useStateFromStores([PremiumGiftingIntentStore], _fun88359,
|
|
[a0]);
|
|
function _fun88359() { // fn#88359, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11722:282, offset: 0x01fe0957, size: 121 bytes, params: 1, frame: 14
|
|
var r1;
|
|
var value3;
|
|
var friendAnniversaries;
|
|
var value;
|
|
const value2 = null;
|
|
if (value2 != env0_0) {
|
|
var binding = env0_0;
|
|
if (binding.isDM()) {
|
|
value = env0_0.getRecipientId();
|
|
if (value2 != value) {
|
|
value3 = environment.__proto__;
|
|
friendAnniversaries = PremiumGiftingIntentStore.getFriendAnniversaries();
|
|
if (friendAnniversaries.includes(value)) {
|
|
value = require(11433) /* metro dependency 11433: GiftIntentExpressionPickerState */;
|
|
value = value.getGiftIntentCustomMessagePlaceholder();
|
|
r1 = value;
|
|
} else {
|
|
r1 = value2;
|
|
}
|
|
} else {
|
|
r1 = value2;
|
|
}
|
|
return r1;
|
|
}
|
|
}
|
|
return value2;
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun88357, 11536, [8326, 566, 11433, 2]) /* metro module 11536, dependencies: [8326, 566, 11433, 2] */;
|