/* Metro module 15328; source: modules/launchpad/native/shared/CutoutImage.tsx; dependencies: [57, 31, 27, 33, 491, 7744, 10255, 2] */ function _fun117226(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#117226, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15525:6, offset: 0x024a99e0, size: 199 bytes, params: 8, frame: 19 const env0_0 = require; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); const env0_3 = importDefault(57) /* metro dependency 57 */; let value = importAll(31) /* metro dependency 31 */; const env0_5 = (require(27) /* metro dependency 27 */).Image; const value2 = require(33) /* metro dependency 33 */; const env0_6 = value2.jsx; const env0_7 = value2.jsxs; value = value.memo(CutoutImage); (require(2) /* metro dependency 2 */).fileFinishedImporting('modules/launchpad/native/shared/CutoutImage.tsx'); exports.default = value; } function CutoutImage({style, cutoutTopLeftSize, cutoutTopLeftInsetX, cutoutTopLeftInsetY, cutoutTopRightSize, cutoutTopRightInsetX, cutoutTopRightInsetY, cutoutBottomLeftSize, cutoutBottomLeftInsetX, cutoutBottomLeftInsetY, cutoutBottomRightSize, cutoutBottomRightInsetX, cutoutBottomRightInsetY, imageSize, imageSource, imageBorderRadius = imageSize / 2, imageBackgroundColor, imageTintColor, clipInnerAmount, clipOuterAmount, borderStroke, borderStrokeColor}) { // fn#117227, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15525:173, offset: 0x024a9aa7, size: 1937 bytes, params: 2, frame: 53 var r17; var ClipPath; var object; cutoutTopLeftSize = cutoutTopLeftSize === undefined ? 0 : cutoutTopLeftSize; cutoutTopLeftInsetX = cutoutTopLeftInsetX === undefined ? 0 : cutoutTopLeftInsetX; cutoutTopLeftInsetY = cutoutTopLeftInsetY === undefined ? 0 : cutoutTopLeftInsetY; cutoutTopRightSize = cutoutTopRightSize === undefined ? 0 : cutoutTopRightSize; cutoutTopRightInsetX = cutoutTopRightInsetX === undefined ? 0 : cutoutTopRightInsetX; cutoutTopRightInsetY = cutoutTopRightInsetY === undefined ? 0 : cutoutTopRightInsetY; cutoutBottomLeftSize = cutoutBottomLeftSize === undefined ? 0 : cutoutBottomLeftSize; cutoutBottomLeftInsetX = cutoutBottomLeftInsetX === undefined ? 0 : cutoutBottomLeftInsetX; cutoutBottomLeftInsetY = cutoutBottomLeftInsetY === undefined ? 0 : cutoutBottomLeftInsetY; cutoutBottomRightSize = cutoutBottomRightSize === undefined ? 0 : cutoutBottomRightSize; cutoutBottomRightInsetX = cutoutBottomRightInsetX === undefined ? 0 : cutoutBottomRightInsetX; cutoutBottomRightInsetY = cutoutBottomRightInsetY === undefined ? 0 : cutoutBottomRightInsetY; clipInnerAmount = clipInnerAmount === undefined ? 0 : clipInnerAmount; clipOuterAmount = clipOuterAmount === undefined ? 0 : clipOuterAmount; let binding = env0_4; const useState = binding.useState; const moduleValue = require(491) /* metro dependency 491 */; const value19 = env0_3(Reflect.apply(useState, binding, [moduleValue.v4()]), 2); const property = value19[0]; const env0_1 = value19[1]; const r11 = property != null ? 'url(#' + property + ')' : undefined; let r24 = clipOuterAmount > 0 ? moduleValue.v4() : undefined; const r10 = r24 != null ? 'url(#' + r24 + ')' : undefined; binding = env0_4; const value24 = binding.useCallback(_fun117228, []); binding.useLayoutEffect(_fun117229, [imageTintColor]); const defaultImport = importDefault(7744) /* metro dependency 7744 */; const Defs = (require(7744) /* metro dependency 7744 */).Defs; const Mask = (require(7744) /* metro dependency 7744 */).Mask; const items2 = [imageBorderRadius === imageSize / 2 ? ((Circle) => )((require(7744) /* metro dependency 7744 */).Circle) : ((Rect) => )((require(7744) /* metro dependency 7744 */).Rect)]; items2[1] = cutoutTopLeftSize > 0 ? ((Circle) => )((require(7744) /* metro dependency 7744 */).Circle) : null; items2[2] = cutoutTopRightSize > 0 ? ((Circle) => )((require(7744) /* metro dependency 7744 */).Circle) : null; items2[3] = cutoutBottomLeftSize > 0 ? ((Circle) => )((require(7744) /* metro dependency 7744 */).Circle) : null; items2[4] = cutoutBottomRightSize > 0 ? ((Circle) => )((require(7744) /* metro dependency 7744 */).Circle) : null; items2[5] = clipInnerAmount > 0 ? imageBorderRadius === imageSize / 2 ? ((Circle) => )((require(7744) /* metro dependency 7744 */).Circle) : ((Rect) => )((require(7744) /* metro dependency 7744 */).Rect) : null; const mask = {items2}; if (r24 != null) { ClipPath = (require(7744) /* metro dependency 7744 */).ClipPath; object = {id: r24}; if (imageBorderRadius === imageSize / 2) { const Circle = (require(7744) /* metro dependency 7744 */).Circle; r24 = ; } else { const Rect = (require(7744) /* metro dependency 7744 */).Rect; r24 = ; } r17 = {r24}; } else { r17 = null; } const items3 = [{mask}{r17}]; items3[1] = imageBackgroundColor != null ? ((Rect) => )((require(7744) /* metro dependency 7744 */).Rect) : null; items3[2] = imageSource != null ? typeof imageSource !== 'number' ? ((Image) => )((require(7744) /* metro dependency 7744 */).Image) : imageTintColor != null ? ((ForeignObject) => )((require(7744) /* metro dependency 7744 */).ForeignObject) : ((Image) => )((require(7744) /* metro dependency 7744 */).Image) : null; items3[3] = borderStroke != null ? ((Rect) => )((require(7744) /* metro dependency 7744 */).Rect) : null; return ((Component) => {items3})(defaultImport); } function _fun117228() { // fn#117228, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15525:831, offset: 0x024aa238, size: 49 bytes, params: 1, frame: 12 const binding = env0_1; let value = environment.__proto__; value = require(491) /* metro dependency 491 */; binding(value.v4()); } function _fun117229() { // fn#117229, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15525:884, offset: 0x024aa269, size: 61 bytes, params: 1, frame: 12 var binding; var value; if (imageTintColor != null) { binding = env0_1; value = environment.__proto__; value = require(491) /* metro dependency 491 */; binding(value.v4()); } }