/* Metro module 7759; source: unknown; dependencies: [65, 7760, 7751, 7761, 7764, 7752, 7750] */ import Module00065 from './module-00065.js'; /* Metro dependency 65 */ import Module07751 from './module-07751.js'; /* Metro dependency 7751 */ import Module07752 from './module-07752.js'; /* Metro dependency 7752 */ import Module07761 from './module-07761.js'; /* Metro dependency 7761 */ import Module07764 from './module-07764.js'; /* Metro dependency 7764 */ import * as Module07760Module from './module-07760.js'; /* Metro dependency 7760 */ function _fun62126(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#62126, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7937:6, offset: 0x01b57b92, size: 156 bytes, params: 8, frame: 20 const env0_0 = require; const propsAndStyles2 = propsAndStyles; const extractProps2 = extractProps; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); const env0_4 = {'evenodd': 0, 'nonzero': 1}; exports.default = extractProps2; exports.propsAndStyles = propsAndStyles2; exports.extract = extract_62130; exports.withoutXY = withoutXY; function propsAndStyles(a0) { // fn#62127, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7937:130, offset: 0x01b57c2e, size: 122 bytes, params: 2, frame: 23 const value = a0; const style = value.style; return style ? global.Object.assign({}, global.Array.isArray(style) ? global.Object.assign.apply(global.Object, [{}].concat(Module00065(style))) : style, value) : value; } function getMarker(a0) { // fn#62128, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7937:267, offset: 0x01b57ca8, size: 61 bytes, params: 2, frame: 14 var value; var value2; if (a0) { value = undefined; value2 = a0.match((require(7760) /* metro dependency 7760 */).idPattern); return value2 ? value2[1] : value; } } function extractProps(a0, a1) { // fn#62129, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7937:350, offset: 0x01b57ce5, size: 731 bytes, params: 3, frame: 33 var value4; var value5; var value6; const idPattern = (Module07760Module).idPattern; var value7; var value8; const id = a0.id; const opacity = a0.opacity; const onLayout = a0.onLayout; const clipPath = a0.clipPath; const clipRule = a0.clipRule; const display = a0.display; const mask = a0.mask; const filter = a0.filter; const marker = a0.marker; const markerStart = a0.markerStart; let value = undefined; const r14 = value !== markerStart ? markerStart : marker; const markerMid = a0.markerMid; const r13 = value !== markerMid ? markerMid : marker; const markerEnd = a0.markerEnd; const r12 = value !== markerEnd ? markerEnd : marker; const testID = a0.testID; const accessibilityLabel = a0.accessibilityLabel; const accessible = a0.accessible; const object = {}; const items2 = []; (Module07751)(object, a0, a1); (Module07761)(object, a0, items2); (Module07764)(object, a0, items2); if (a0.color) { object.color = a0.color; } if (items2.length) { object.propList = items2; } const value3 = (Module07752)(a0); if (value3 !== null) { object.matrix = value3; } if (opacity != null) { object.opacity = (importDefault(7750) /* metro dependency 7750 */)(opacity); } if (display != null) { value4 = 'none'; object.display = value4 !== display ? value : value4; } if (onLayout) { object.onSvgLayout = onLayout; } if (r14) { object.markerStart = getMarker(r14); } if (r13) { object.markerMid = getMarker(r13); } if (r12) { object.markerEnd = getMarker(r12); } if (id) { object.name = global.String(id); } if (testID) { object.testID = testID; } if (accessibilityLabel) { object.accessibilityLabel = accessibilityLabel; } if (accessible) { object.accessible = accessible; } if (clipRule) { value5 = 1; value6 = 0; object.clipRule = value6 !== env0_4[clipRule] ? value5 : value6; } if (clipPath) { value7 = clipPath.match(idPattern); if (value7) { object.clipPath = value7[1]; } else { global.console.warn('Invalid `clipPath` prop, expected a clipPath like "#id", but got: "' + clipPath + '"'); } } if (mask) { value8 = mask.match(idPattern); if (value8) { object.mask = value8[1]; } else { global.console.warn('Invalid `mask` prop, expected a mask like "#id", but got: "' + mask + '"'); } } if (filter) { value = filter.match(idPattern); if (value) { object.filter = value[1]; } else { global.console.warn('Invalid `filter` prop, expected a filter like "#id", but got: "' + filter + '"'); } } return object; } function extract_62130(a0, a1) { // fn#62130, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7937:1576, offset: 0x01b57fc0, size: 32 bytes, params: 3, frame: 13 return extractProps(propsAndStyles(a1), a0); } function withoutXY(a0, a1) { // fn#62131, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7937:1652, offset: 0x01b57fe0, size: 64 bytes, params: 3, frame: 17 const extractPropsBinding = extractProps; const Object = global.Object; const assign = Object.assign; let value = propsAndStyles(a1); value = Reflect.apply(assign, Object, [{}, value, {'x': null, 'y': null}]); return extractPropsBinding(value, a0); } } global.__d(_fun62126, 7759, [65, 7760, 7751, 7761, 7764, 7752, 7750]) /* metro module 7759, dependencies: [65, 7760, 7751, 7761, 7764, 7752, 7750] */;