/* Metro module 15328; source: modules/launchpad/native/shared/CutoutImage.tsx; dependencies: [57, 31, 27, 33, 491, 7744, 10255, 2] */ import Module00057 from '../../../../by-id/module-00057.js'; /* Metro dependency 57 */ import Module07744 from '../../../../by-id/module-07744.js'; /* Metro dependency 7744 */ import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */ import * as ReactNativeModule from '../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */ import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */ import * as JsxRuntimeModule from '../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */ import * as Module00491Module from '../../../../by-id/module-00491.js'; /* Metro dependency 491 */ 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}); let value = ReactModule; value = value.memo(CutoutImage); (FileImportTrackerModule).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 object2; 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 value19 = Module00057(Reflect.apply(useState, binding, [Module00491Module.v4()]), 2); const property = value19[0]; const env0_1 = value19[1]; const r11 = property != null ? 'url(#' + property + ')' : undefined; let r24 = clipOuterAmount > 0 ? Module00491Module.v4() : undefined; const r10 = r24 != null ? 'url(#' + r24 + ')' : undefined; binding = env0_4; const value24 = binding.useCallback(_fun117228, []); binding.useLayoutEffect(_fun117229, [imageTintColor]); const defaultImport = Module07744; 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; object2 = {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()); } } } } global.__d(_fun117226, 15328, [57, 31, 27, 33, 491, 7744, 10255, 2]) /* metro module 15328, dependencies: [57, 31, 27, 33, 491, 7744, 10255, 2] */;