// Module ID: 11066 // Function ID: 11067 // Name: leaveFrame // Dependencies: [10677, 676, 4282, 5367, 10689, 10696, 698, 709, 2] // Module 11066 (leaveFrame) import dispatcherDefault from "dispatcher" /* 709 */; import initializeDefault from "initialize" /* 5367 */; import closure_3 from "map" /* 10677 */; import ME from "ME" /* 676 */; import { TransportTypes } from "RPC_SCOPE_CONFIG" /* 4282 */; let require = arg1; ({ AnalyticEvents: c4, RPCCloseCodes: c5 } = ME); initializeDefault; class FramesManager extends tmp3 { constructor() { applyArgumentsResult = HermesBuiltin.applyArguments(new.target, new.target); closure_0 = applyArgumentsResult; applyArgumentsResult.actions = { RPC_APP_DISCONNECTED(arg0) { applyArgumentsResult.handleRPCDisconnect(arg0); }, FRAME_LAUNCH(applicationId) { const result = applyArgumentsResult(10689).trackFrameSessionStart(applicationId.applicationId); }, FRAME_LAUNCH_FAIL(applicationId) { const result = applyArgumentsResult(10696).discardPendingFrameLaunch(applicationId.applicationId); }, FRAME_STOP(applicationId) { applyArgumentsResult(10689).trackFrameSessionEnd(applicationId.applicationId); } }; applyArgumentsResult.handleRPCDisconnect = function handleRPCDisconnect(arg0) { ({ reason, source } = arg0); if (null != reason) { if (source.type === closure_1_6.POST_MESSAGE) { const frameByIframeId = closure_1_3.getFrameByIframeId(source.iframeId); if (null != frameByIframeId) { applyArgumentsResult.leaveFrame(frameByIframeId.id); if (reason.code !== closure_1_5.CLOSE_NORMAL) { let obj = closure_1_1(closure_1_2[6]); obj = { rpc_close_code: null, rpc_message: null, application_id: null }; ({ code: obj2[0], message: obj2[1] } = reason); obj[2] = frameByIframeId.applicationId; obj.track(closure_1_4.ACTIVITY_CLOSED_RPC_ERROR, obj); const result = obj3.showRPCDisconnectErrorUI(reason); } obj3 = applyArgumentsResult; } } } }; return applyArgumentsResult; } } FramesManager.prototype["leaveFrame"] = function leaveFrame(frameId) { frame = frame.getFrame(frameId); if (null != frame) { let obj = dispatcherDefault; obj = { type: "FRAME_STOP", applicationId: null, frameId: null }; ({ applicationId: obj2[1], id: obj2[2] } = frame); obj.dispatch(obj); } }; FramesManager.displayName = "FramesManager"; let result = require("set").fileFinishedImporting("modules/frames/FramesManager.tsx"); export default FramesManager;