85 lines
4.9 KiB
TypeScript
85 lines
4.9 KiB
TypeScript
/* Metro module 11433; source: modules/premium/gifting/native/GiftIntentExpressionPickerState.tsx; dependencies: [31, 1244, 2] */
|
|
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
|
|
|
|
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 useGiftIntentExpressionPickerConfig2 = useGiftIntentExpressionPickerConfig;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const Set = global.Set;
|
|
const set = new Set();
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/premium/gifting/native/GiftIntentExpressionPickerState.tsx');
|
|
exports.setGiftIntentExpressionPickerConfig = function(a0) {
|
|
env0_3 = a0;
|
|
emitChange();
|
|
};
|
|
exports.getGiftIntentCustomMessagePlaceholder = closure;
|
|
exports.useGiftIntentExpressionPickerConfig = useGiftIntentExpressionPickerConfig2;
|
|
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 _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);
|
|
}
|
|
|
|
}
|
|
|
|
function getGiftIntentExpressionPickerConfigSnapshot() { // fn#87505, offset: 0x00c7c381, size: 9 bytes, params: 1, frame: 1
|
|
return env0_3;
|
|
}
|
|
|
|
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 useSyncExternalStore = ReactModule.useSyncExternalStore;
|
|
const subscribe_87503Binding = subscribe_87503;
|
|
const getGiftIntentExpressionPickerConfigSnapshotBinding = getGiftIntentExpressionPickerConfigSnapshot;
|
|
const value = Reflect.apply(useSyncExternalStore, ReactModule, [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 useGiftIntentExpressionPickerActive(a0) { // fn#87510, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11619:1172, offset: 0x0102b252, size: 25 bytes, params: 2, frame: 11
|
|
return useGiftIntentExpressionPickerConfig(a0) != null;
|
|
}
|
|
|
|
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();
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun87500, 11433, [31, 1244, 2]) /* metro module 11433, dependencies: [31, 1244, 2] */;
|