71 lines
3.3 KiB
JavaScript
71 lines
3.3 KiB
JavaScript
/* Metro module 7409; source: unknown; dependencies: [7397, 7369] */
|
|
import * as Module07369Module from './module-07369.js'; /* Metro dependency 7369 */
|
|
import * as DEBUG_BUILDModule from './module-07397-DEBUG_BUILD.js'; /* Metro dependency 7397 */
|
|
|
|
function _fun59700(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#59700, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7587:6, offset: 0x016f0088, size: 66 bytes, params: 8, frame: 16
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
exports.parseSampleRate = parseSampleRate_59701;
|
|
function parseSampleRate_59701(a0) { // fn#59701, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7587:97, offset: 0x016f00ca, size: 245 bytes, params: 2, frame: 21
|
|
const DEBUG_BUILD = (DEBUG_BUILDModule).DEBUG_BUILD;
|
|
const logger = (Module07369Module).logger;
|
|
var warn;
|
|
var JSON;
|
|
let value = a0;
|
|
const value2 = typeof value;
|
|
if (value2 === 'boolean') {
|
|
return global.Number(value);
|
|
}
|
|
const r0 = value2 !== 'string' ? value : global.parseFloat(value);
|
|
if (typeof r0 !== 'number') {
|
|
if (DEBUG_BUILD) {
|
|
warn = logger.warn;
|
|
JSON = global.JSON;
|
|
value = JSON.stringify(value);
|
|
JSON = global.JSON;
|
|
Reflect.apply(warn, logger,
|
|
['[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ' + value + ' of type ' + JSON.stringify(value2) + '.']);
|
|
}
|
|
return undefined;
|
|
}
|
|
if (global.isNaN(r0)) {
|
|
if (DEBUG_BUILD) {
|
|
warn = logger.warn;
|
|
JSON = global.JSON;
|
|
value = JSON.stringify(value);
|
|
JSON = global.JSON;
|
|
Reflect.apply(warn, logger,
|
|
['[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ' + value + ' of type ' + JSON.stringify(value2) + '.']);
|
|
}
|
|
return undefined;
|
|
}
|
|
if (r0 < 0) {
|
|
if (DEBUG_BUILD) {
|
|
warn = logger.warn;
|
|
JSON = global.JSON;
|
|
value = JSON.stringify(value);
|
|
JSON = global.JSON;
|
|
Reflect.apply(warn, logger,
|
|
['[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ' + value + ' of type ' + JSON.stringify(value2) + '.']);
|
|
}
|
|
return undefined;
|
|
}
|
|
if (r0 > 1) {
|
|
if (DEBUG_BUILD) {
|
|
warn = logger.warn;
|
|
JSON = global.JSON;
|
|
value = JSON.stringify(value);
|
|
JSON = global.JSON;
|
|
Reflect.apply(warn, logger,
|
|
['[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ' + value + ' of type ' + JSON.stringify(value2) + '.']);
|
|
}
|
|
return undefined;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun59700, 7409, [7397, 7369]) /* metro module 7409, dependencies: [7397, 7369] */;
|