/* Metro module 6519; source: design/components/Layers/native/LayerContext.native.tsx; dependencies: [6, 7, 31, 2] */ import ClassCallCheck from '../../../../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */ import CreateClass from '../../../../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */ import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */ import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */ function _fun51256(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#51256, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6697:6, offset: 0x0122d34e, size: 176 bytes, params: 8, frame: 18 const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); let value = ReactModule; const value2 = _fun51257(); const value3 = Object.create(value2.prototype, {constructor: {value: value2}}); const value4 = new value2(); value = value.createContext(value4 instanceof Object ? value4 : value3); (FileImportTrackerModule).fileFinishedImporting('design/components/Layers/native/LayerContext.native.tsx'); exports.LayerContextManager = value2; exports.LayerContext = value; function _fun51257() { // fn#51257, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6697:128, offset: 0x0122d3fe, size: 103 bytes, params: 1, frame: 15 return CreateClass(LayerContextManager, [{key: 'add', value: function(a0, a1) { var env0_0 = a0; this.items = this.items.filter(_fun51261); this.items.push({key: a0, component: a1}); this.invalidate(); }}, {key: 'remove', value: function(a0) { var env0_0 = a0; this.items = this.items.filter(_fun51263); this.invalidate(); }}, {key: 'setSurfaceRef', value: function(a0) { this.surfaceRef.current = a0; }}]); function LayerContextManager() { // fn#51258, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6697:149, offset: 0x0122d465, size: 64 bytes, params: 1, frame: 13 env1_0(this, LayerContextManager); this.surfaceRef = {current: null}; this.items = []; this.invalidate = function() { return null; }; } function value_51260(a0, a1) { // fn#51260, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6697:298, offset: 0x0122d4a5, size: 83 bytes, params: 3, frame: 13 const env0_0 = a0; const items2 = this.items; this.items = items2.filter(_fun51261); this.items.push({key: a0, component: a1}); this.invalidate(); function _fun51261({key}) { // fn#51261, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6697:342, offset: 0x01002f66, size: 21 bytes, params: 2, frame: 2 return key !== env0_0; } } function value_51262(a0) { // fn#51262, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6697:434, offset: 0x0122d4f8, size: 53 bytes, params: 2, frame: 12 const env0_0 = a0; const items2 = this.items; this.items = items2.filter(_fun51263); this.invalidate(); function _fun51263({key}) { // fn#51263, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6697:476, offset: 0x01002f66, size: 21 bytes, params: 2, frame: 2 return key !== env0_0; } } } } global.__d(_fun51256, 6519, [6, 7, 31, 2]) /* metro module 6519, dependencies: [6, 7, 31, 2] */;