/* Metro module 6519; source: design/components/Layers/native/LayerContext.native.tsx; dependencies: [6, 7, 31, 2] */ 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}); const env0_0 = importDefault(6) /* metro dependency 6 */; const env0_1 = importDefault(7) /* metro dependency 7 */; let value = importAll(31) /* metro dependency 31 */; const value2 = _fun51257(); const value3 = Object.create(value2.prototype, {constructor: {value: value2}}); const value4 = new value2(); value = value.createContext(value4 instanceof Object ? value4 : value3); (require(2) /* metro dependency 2 */).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 env0_1(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 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(); }