128 lines
8.7 KiB
JavaScript
128 lines
8.7 KiB
JavaScript
/* Metro module 1283; source: unknown; dependencies: [1284, 1285] */
|
|
import * as Module01284Module from './module-01284.js'; /* Metro dependency 1284 */
|
|
import * as DataFormatterCacheModule from './module-01285-dataFormatterCache.js'; /* Metro dependency 1285 */
|
|
|
|
function _fun14112(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#14112, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1410:6, offset: 0x00dfb150, size: 66 bytes, params: 8, frame: 16
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
exports.makeDataFormatters = makeDataFormatters;
|
|
function makeDataFormatters(a0, a1) { // fn#14113, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1410:113, offset: 0x00dfb192, size: 149 bytes, params: 3, frame: 6
|
|
const env0_0 = a0;
|
|
const env0_1 = a1;
|
|
const r0 = arguments.length > 2 && arguments[2] !== undefined && arguments[2];
|
|
return {formatDate: formatDate, formatDuration: formatDuration, formatNumber: formatNumber, formatList: formatList,
|
|
formatListToParts: formatListToParts, formatRelativeTime: formatRelativeTime, formatTime: formatTime,
|
|
getPluralRules: getPluralRules};
|
|
function optionsWithLocaleMatcher(a0) { // fn#14114, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1410:208, owner: makeDataFormatters.optionsWithLocaleMatcher, offset: 0x00dfb227, size: 67 bytes, params: 2, frame: 16
|
|
var r0;
|
|
var Object;
|
|
var assign;
|
|
let value = a0;
|
|
if (env0_2) {
|
|
Object = global.Object;
|
|
assign = Object.assign;
|
|
value = global.Object.assign({}, value);
|
|
value = Reflect.apply(assign, Object, [value, {localeMatcher: 'lookup'}]);
|
|
r0 = value;
|
|
} else {
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function formatDate(a0, a1) { // fn#14115, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1410:334, owner: makeDataFormatters.formatDate, offset: 0x00dfb26a, size: 110 bytes, params: 3, frame: 16
|
|
const value = environment.__proto__;
|
|
const formatConfigOptions = (Module01284Module).resolveFormatConfigOptions(require.date, a1);
|
|
const dataFormatterCache = (DataFormatterCacheModule).dataFormatterCache;
|
|
const getDateTimeFormatter = dataFormatterCache.getDateTimeFormatter;
|
|
return Reflect.apply(getDateTimeFormatter, dataFormatterCache, [env0_0,
|
|
optionsWithLocaleMatcher(formatConfigOptions)]).format(a0);
|
|
}
|
|
|
|
function formatDuration(a0, a1) { // fn#14116, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1410:526, owner: makeDataFormatters.formatDuration, offset: 0x00dfb2d8, size: 112 bytes, params: 3, frame: 16
|
|
const value = environment.__proto__;
|
|
const formatConfigOptions = (Module01284Module).resolveFormatConfigOptions(require.time, a1);
|
|
const dataFormatterCache = (DataFormatterCacheModule).dataFormatterCache;
|
|
const getDurationFormatter = dataFormatterCache.getDurationFormatter;
|
|
return Reflect.apply(getDurationFormatter, dataFormatterCache, [env0_0,
|
|
optionsWithLocaleMatcher(formatConfigOptions)]).format(a0);
|
|
}
|
|
|
|
function formatNumber(a0, a1) { // fn#14117, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1410:720, owner: makeDataFormatters.formatNumber, offset: 0x00dfb348, size: 112 bytes, params: 3, frame: 16
|
|
const value = environment.__proto__;
|
|
const formatConfigOptions = (Module01284Module).resolveFormatConfigOptions(require.number,
|
|
a1);
|
|
const dataFormatterCache = (DataFormatterCacheModule).dataFormatterCache;
|
|
const getNumberFormatter = dataFormatterCache.getNumberFormatter;
|
|
return Reflect.apply(getNumberFormatter, dataFormatterCache, [env0_0,
|
|
optionsWithLocaleMatcher(formatConfigOptions)]).format(a0);
|
|
}
|
|
|
|
function formatList(a0, a1) { // fn#14118, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1410:910, owner: makeDataFormatters.formatList, offset: 0x00dfb3b8, size: 110 bytes, params: 3, frame: 16
|
|
const value = environment.__proto__;
|
|
const formatConfigOptions = (Module01284Module).resolveFormatConfigOptions(require.list, a1);
|
|
const dataFormatterCache = (DataFormatterCacheModule).dataFormatterCache;
|
|
const getListFormatter = dataFormatterCache.getListFormatter;
|
|
return Reflect.apply(getListFormatter, dataFormatterCache, [env0_0,
|
|
optionsWithLocaleMatcher(formatConfigOptions)]).format(a0);
|
|
}
|
|
|
|
function formatListToParts(a0, a1) { // fn#14119, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1410:1101, owner: makeDataFormatters.formatListToParts, offset: 0x00dfb426, size: 203 bytes, params: 3, frame: 24
|
|
var environment;
|
|
var propertyName;
|
|
var value3;
|
|
let value = environment.__proto__;
|
|
const formatConfigOptions = (Module01284Module).resolveFormatConfigOptions(require.list, a1);
|
|
const object = {};
|
|
const object3 = object;
|
|
for (propertyName in a0) {
|
|
value3 = '$+/-$placeholder.' + propertyName;
|
|
object[value3] = a0[propertyName];
|
|
}
|
|
const dataFormatterCache = (DataFormatterCacheModule).dataFormatterCache;
|
|
const getListFormatter = dataFormatterCache.getListFormatter;
|
|
const formatToParts = Reflect.apply(getListFormatter, dataFormatterCache, [object3,
|
|
optionsWithLocaleMatcher(formatConfigOptions)]).formatToParts;
|
|
const Object = global.Object;
|
|
value = Reflect.apply(formatToParts, value, [Object.keys(object)]);
|
|
return value.map(_fun14120);
|
|
function _fun14120(a0) { // fn#14120, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1410:1355, offset: 0x00dfb4f1, size: 44 bytes, params: 2, frame: 3
|
|
const property = env0_0[a0.value];
|
|
const r0 = property === null ? a0.value : property !== undefined ? property : a0.value;
|
|
a0.value = r0;
|
|
return r0;
|
|
}
|
|
|
|
}
|
|
|
|
function formatRelativeTime(a0, a1, a2) { // fn#14121, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1410:1455, owner: makeDataFormatters.formatRelativeTime, offset: 0x00dfb51d, size: 116 bytes, params: 4, frame: 16
|
|
const value = environment.__proto__;
|
|
const formatConfigOptions = (Module01284Module).resolveFormatConfigOptions(require.relativeTime,
|
|
a2);
|
|
const dataFormatterCache = (DataFormatterCacheModule).dataFormatterCache;
|
|
const getRelativeTimeFormatter = dataFormatterCache.getRelativeTimeFormatter;
|
|
return Reflect.apply(getRelativeTimeFormatter, dataFormatterCache, [env0_0,
|
|
optionsWithLocaleMatcher(formatConfigOptions)]).format(a0, a1);
|
|
}
|
|
|
|
function formatTime(a0, a1) { // fn#14122, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1410:1667, owner: makeDataFormatters.formatTime, offset: 0x00dfb591, size: 110 bytes, params: 3, frame: 16
|
|
const value = environment.__proto__;
|
|
const formatConfigOptions = (Module01284Module).resolveFormatConfigOptions(require.time, a1);
|
|
const dataFormatterCache = (DataFormatterCacheModule).dataFormatterCache;
|
|
const getDateTimeFormatter = dataFormatterCache.getDateTimeFormatter;
|
|
return Reflect.apply(getDateTimeFormatter, dataFormatterCache, [env0_0,
|
|
optionsWithLocaleMatcher(formatConfigOptions)]).format(a0);
|
|
}
|
|
|
|
function getPluralRules(a0) { // fn#14123, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1410:1859, owner: makeDataFormatters.getPluralRules, offset: 0x00dfb5ff, size: 64 bytes, params: 2, frame: 15
|
|
return (DataFormatterCacheModule).dataFormatterCache.getPluralRules(env0_0,
|
|
optionsWithLocaleMatcher(a0));
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun14112, 1283, [1284, 1285]) /* metro module 1283, dependencies: [1284, 1285] */;
|