Files
discord-decomp/sources/by-id/module-06800-Clipboard.js
2026-07-28 01:06:53 +03:00

212 lines
10 KiB
JavaScript

/* Metro module 6800; source: unknown; dependencies: [27, 6801] */
import * as ReactNativeModule from './module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as Module06801Module from './module-06801.js'; /* Metro dependency 6801 */
function _fun53515(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#53515, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6978:6, offset: 0x0134e043, size: 370 bytes, params: 8, frame: 19
var closure;
let value = this;
if (!(value && value.__createBinding)) {
if (global.Object.create) {
closure = function(a0, a1, a2, a3) {
var value = a2;
var value2 = a3;
var env0_0 = a1;
var env0_1 = value;
var r5 = value2 !== undefined ? value2 : value;
var Object = global.Object;
Object.defineProperty(a0, r5, {enumerable: true, get: _fun53517});
};
}
}
if (!(value && value.__setModuleDefault)) {
if (global.Object.create) {
closure = function(a0, a1) {
var Object = global.Object;
Object.defineProperty(a0, 'default', {enumerable: true, value: a1});
};
}
}
let r4 = value && value.__importStar;
r4 = !r4 ? _fun53521 : r4;
let Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
exports.Clipboard = undefined;
const env0_3 = r4(Module06801Module);
exports.Clipboard = {getString: getString_53522, getStrings: getStrings, getImagePNG: getImagePNG,
getImageJPG: getImageJPG, setImage: setImage, getImage: getImage, setString: setString_53528,
setStrings: setStrings, hasString: hasString, hasImage: hasImage, hasURL: hasURL, hasNumber: hasNumber,
hasWebURL: hasWebURL, addListener: addListener_53535, removeAllListeners: removeAllListeners_53536};
function _fun53516(a0, a1, a2, a3) { // fn#53516, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6978:93, offset: 0x0134e1b5, size: 70 bytes, params: 5, frame: 17
const value = a2;
const value2 = a3;
const env0_0 = a1;
const r5 = value2 !== undefined ? value2 : value;
const Object = global.Object;
Object.defineProperty(a0, r5, {enumerable: true, get: function() {
return require[importDefault];
}});
function get_53517() { // fn#53517, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6978:174, offset: 0x00dfaef6, size: 17 bytes, params: 1, frame: 2
return require[importDefault];
}
}
function _fun53521(a0) { // fn#53521, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6978:430, offset: 0x00e6a5bd, size: 127 bytes, params: 2, frame: 25
var r8;
var r11;
var value;
var properties;
var properties2;
var properties3;
var propertyName;
var propertyName2;
var value2;
var Object;
var prototype;
var hasOwnProperty;
var call;
var value3;
if (a0) {
reducibleJoin2: while (true) {
if (a0.__esModule) {
return a0;
}
break reducibleJoin2;
}
}
const object = {};
reducibleJoin9: while (true) {
if (a0 == null) {
break reducibleJoin9;
}
value = environment;
properties = Object.keys(a0);
properties2 = 0;
properties3 = properties.length;
if (properties === undefined) {
break reducibleJoin9;
}
r8 = properties2;
reducibleLoop4: while (true) {
propertyName = properties[r8];
propertyName2 = r8 + 1;
if (propertyName === undefined) {
break reducibleJoin9;
}
value2 = propertyName !== 'default';
reducibleJoin7: while (true) {
if (value2) {
Object = global.Object;
prototype = Object.prototype;
hasOwnProperty = prototype.hasOwnProperty;
call = hasOwnProperty.call;
value3 = Reflect.apply(call, hasOwnProperty, [a0, propertyName]);
r11 = value3;
break reducibleJoin7;
}
r11 = value2;
break reducibleJoin7;
}
if (r11) {
env0_0(object, a0, propertyName);
r8 = propertyName2;
continue reducibleLoop4;
}
r8 = propertyName2;
continue reducibleLoop4;
}
}
env0_1(object, a0);
return object;
}
function getString_53522() { // fn#53522, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6978:707, offset: 0x0134e1fb, size: 24 bytes, params: 1, frame: 9
return env0_3.default.getString();
}
function getStrings() { // fn#53523, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6978:769, offset: 0x0134e213, size: 24 bytes, params: 1, frame: 9
return env0_3.default.getStrings();
}
function getImagePNG() { // fn#53524, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6978:834, offset: 0x0134e22b, size: 24 bytes, params: 1, frame: 9
return env0_3.default.getImagePNG();
}
function getImageJPG() { // fn#53525, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6978:901, offset: 0x0134e243, size: 24 bytes, params: 1, frame: 9
return env0_3.default.getImageJPG();
}
function setImage(a0) { // fn#53526, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6978:965, offset: 0x0134e25b, size: 54 bytes, params: 2, frame: 11
const Platform = ReactNativeModule.Platform;
const OS = Platform.OS;
if (OS === 'ios') {
env0_3.default.setImage(a0);
}
}
function getImage() { // fn#53527, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6978:1041, offset: 0x0134e291, size: 24 bytes, params: 1, frame: 9
return env0_3.default.getImage();
}
function setString_53528(a0) { // fn#53528, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6978:1100, offset: 0x0134e2a9, size: 30 bytes, params: 2, frame: 11
env0_3.default.setString(a0);
}
function setStrings(a0) { // fn#53529, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6978:1157, offset: 0x0134e2c7, size: 30 bytes, params: 2, frame: 11
env0_3.default.setStrings(a0);
}
function hasString() { // fn#53530, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6978:1215, offset: 0x0134e2e5, size: 24 bytes, params: 1, frame: 9
return env0_3.default.hasString();
}
function hasImage() { // fn#53531, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6978:1275, offset: 0x0134e2fd, size: 24 bytes, params: 1, frame: 9
return env0_3.default.hasImage();
}
function hasURL() { // fn#53532, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6978:1331, offset: 0x0134e315, size: 52 bytes, params: 1, frame: 10
const Platform = ReactNativeModule.Platform;
const OS = Platform.OS;
if (OS === 'ios') {
return env0_3.default.hasURL();
}
}
function hasNumber() { // fn#53533, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6978:1411, offset: 0x0134e349, size: 52 bytes, params: 1, frame: 10
const Platform = ReactNativeModule.Platform;
const OS = Platform.OS;
if (OS === 'ios') {
return env0_3.default.hasNumber();
}
}
function hasWebURL() { // fn#53534, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6978:1497, offset: 0x0134e37d, size: 52 bytes, params: 1, frame: 10
const Platform = ReactNativeModule.Platform;
const OS = Platform.OS;
if (OS === 'ios') {
return env0_3.default.hasWebURL();
}
}
function addListener_53535(a0) { // fn#53535, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6978:1585, offset: 0x0134e3b1, size: 25 bytes, params: 2, frame: 11
return env0_3.addListener(a0);
}
function removeAllListeners_53536() { // fn#53536, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6978:1656, offset: 0x0134e3ca, size: 21 bytes, params: 1, frame: 9
env0_3.removeAllListeners();
}
}
function _fun53518(a0, a1, a2, a3) { // fn#53518, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6978:205, offset: 0x00dfaf07, size: 31 bytes, params: 5, frame: 4
const value = a2;
const value2 = a3;
a0[value2 !== undefined ? value2 : value] = a1[value];
}
function _fun53520(a0, a1) { // fn#53520, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6978:375, offset: 0x00dfeea9, size: 16 bytes, params: 3, frame: 2
a0.default = a1;
}
global.__d(_fun53515, 6800, [27, 6801]) /* metro module 6800, dependencies: [27, 6801] */;