61 lines
2.4 KiB
JavaScript
61 lines
2.4 KiB
JavaScript
/* Metro module 7762; source: unknown; dependencies: [27, 7763] */
|
|
import * as ReactNativeModule from './module-00027-ReactNative.js'; /* Metro dependency 27 */
|
|
import * as Module07763Module from './module-07763.js'; /* Metro dependency 7763 */
|
|
|
|
function _fun62138(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#62138, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7940:6, offset: 0x01b582f9, size: 144 bytes, params: 8, frame: 18
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const env0_3 = RegExp('^url\\(#(.+)\\)$', '');
|
|
object = {type: 2};
|
|
object = {type: 3};
|
|
object = {type: 4};
|
|
exports.default = extractBrush;
|
|
function extractBrush(a0) { // fn#62139, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7940:181, offset: 0x01b58389, size: 292 bytes, params: 2, frame: 17
|
|
var r0;
|
|
var value;
|
|
var console;
|
|
var warn;
|
|
if (a0 === 'none') {
|
|
return null;
|
|
}
|
|
if (a0 === 'currentColor') {
|
|
return env0_4;
|
|
}
|
|
if (a0 === 'context-fill') {
|
|
return env0_5;
|
|
}
|
|
if (a0 === 'context-stroke') {
|
|
return env0_6;
|
|
}
|
|
const r2 = typeof a0 === 'string' && a0.match(env0_3);
|
|
if (r2) {
|
|
return {type: 1, brushRef: r2[1]};
|
|
}
|
|
const value3 = typeof processColor((Module07763Module).convertPercentageColor(a0));
|
|
if (value3 === 'number') {
|
|
r0 = {type: 0, payload: value};
|
|
} else if (value3 !== 'object') {
|
|
console = global.console;
|
|
warn = console.warn;
|
|
value = global.String(a0);
|
|
Reflect.apply(warn, console, ['"' + value + '" is not a valid color or brush']);
|
|
value = null;
|
|
r0 = value;
|
|
} else if (value !== null) {
|
|
r0 = {type: 0, payload: value};
|
|
} else {
|
|
console = global.console;
|
|
warn = console.warn;
|
|
value = global.String(a0);
|
|
Reflect.apply(warn, console, ['"' + value + '" is not a valid color or brush']);
|
|
value = null;
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun62138, 7762, [27, 7763]) /* metro module 7762, dependencies: [27, 7763] */;
|