49 lines
2.4 KiB
TypeScript
49 lines
2.4 KiB
TypeScript
/* Metro module 11536; source: modules/chat_input/native/useAnniversaryPlaceholder.tsx; dependencies: [8326, 566, 11433, 2] */
|
|
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});
|
|
const premiumGiftingIntentStore = importDefault(8326) /* metro dependency 8326: PremiumGiftingIntentStore */;
|
|
(require(2) /* metro dependency 2 */).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 (require(566) /* metro dependency 566: flux */).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;
|
|
}
|
|
|