Files
discord-decomp/sources/modules/premium/gifting/native/GiftIntentExpressionPickerState.tsx
T
2026-07-27 16:20:00 +03:00

75 lines
4.0 KiB
TypeScript

/* Metro module 11433; source: modules/premium/gifting/native/GiftIntentExpressionPickerState.tsx; dependencies: [31, 1244, 2] */
function _fun87500(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#87500, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11619:6, offset: 0x01fc0ef7, size: 256 bytes, params: 8, frame: 21
const env0_0 = require;
const closure = function() {
return require(dependencyMap[1]).intl.string(require(dependencyMap[1]).t['7vWJmY']);
};
const closure2 = useGiftIntentExpressionPickerConfig;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = importAll(31) /* metro dependency 31 */;
const Set = global.Set;
const set = new Set();
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/gifting/native/GiftIntentExpressionPickerState.tsx');
exports.setGiftIntentExpressionPickerConfig = function(a0) {
env0_3 = a0;
emitChange();
};
exports.getGiftIntentCustomMessagePlaceholder = closure;
exports.useGiftIntentExpressionPickerConfig = closure2;
exports.clearGiftIntentExpressionPickerConfig = clearGiftIntentExpressionPickerConfig;
exports.useGiftIntentExpressionPickerActive = useGiftIntentExpressionPickerActive;
exports.useGiftIntentExpressionPickerPlaceholder = useGiftIntentExpressionPickerPlaceholder;
}
function emitChange() { // fn#87501, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11619:123, offset: 0x01fc0ff7, size: 30 bytes, params: 1, frame: 11
env0_4.forEach(function(a0) {
return a0();
});
}
function subscribe_87503(a0) { // fn#87503, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11619:165, offset: 0x01fc1015, size: 35 bytes, params: 2, frame: 12
const env0_0 = a0;
env0_4.add(a0);
return _fun87504;
}
function useGiftIntentExpressionPickerConfig(a0) { // fn#87507, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11619:380, offset: 0x01fc1092, size: 67 bytes, params: 2, frame: 16
const binding = env0_2;
const useSyncExternalStore = binding.useSyncExternalStore;
const subscribe_87503Binding = subscribe_87503;
const getGiftIntentExpressionPickerConfigSnapshotBinding = getGiftIntentExpressionPickerConfigSnapshot;
const value = Reflect.apply(useSyncExternalStore, binding, [subscribe_87503Binding,
getGiftIntentExpressionPickerConfigSnapshotBinding, getGiftIntentExpressionPickerConfigSnapshotBinding]);
const value2 = null;
return value2 == a0 || (value2 == value ? undefined : value.channelId) !== a0 ? value2 : value;
}
function clearGiftIntentExpressionPickerConfig(a0) { // fn#87509, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11619:1008, offset: 0x01fc10eb, size: 61 bytes, params: 2, frame: 13
var r0;
var binding;
let value = a0 != null;
if (value) {
binding = env0_3;
value = undefined;
value = (binding == null ? value : binding.channelId) !== a0;
r0 = value;
} else {
r0 = value;
}
if (!r0) {
emitChange();
}
}
function useGiftIntentExpressionPickerPlaceholder(a0) { // fn#87511, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11619:1316, offset: 0x01fc1128, size: 36 bytes, params: 2, frame: 12
const value2 = useGiftIntentExpressionPickerConfig(a0);
const value3 = null;
return value3 == value2 ? value3 : getGiftIntentCustomMessagePlaceholder();
}
function _fun87504() { // fn#87504, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11619:203, offset: 0x01fc1038, size: 26 bytes, params: 1, frame: 11
return env1_4.delete(env0_0);
}