// Module ID: 9714 // Function ID: 9715 // Name: VoiceCallOverlayUtils // Dependencies: [9598, 573, 2] // Exports: doesTargetPositionIntersectOtherOverlaysWorklet, setPipEnabledWhileFocusedOnActivityOrStream, updateVoiceCallOverlayLayoutState // Module 9714 (VoiceCallOverlayUtils) import DispatcherDefault from "Dispatcher" /* 573 */; import ChannelCallConstants from "ChannelCallConstants" /* 9598 */; import size from "module_2" /* 2 */; const MIN_MARGIN_BETWEEN_OVERLAYS = ChannelCallConstants.MIN_MARGIN_BETWEEN_OVERLAYS; const VoiceCallOverlayType = ChannelCallConstants.VoiceCallOverlayType; function doRectanglesIntersectWorklet(arg0, arg1, MIN_MARGIN_BETWEEN_OVERLAYS) { if (null != arg0) { if (null != arg0.x) { if (null != arg0.y) { if (null != arg0.width) { if (null != arg0.height) { if (null != arg1) { if (null != arg1.x) { if (null != arg1.y) { if (null != arg1.width) { if (null != arg1.height) { let tmp = arg0.x + arg0.width + MIN_MARGIN_BETWEEN_OVERLAYS < arg1.x; const diff = arg0.y - MIN_MARGIN_BETWEEN_OVERLAYS; const sum = arg0.y + arg0.height + MIN_MARGIN_BETWEEN_OVERLAYS; const sum1 = arg1.y + arg1.height; if (!tmp) { tmp = arg0.x - MIN_MARGIN_BETWEEN_OVERLAYS > arg1.x + arg1.width; } if (!tmp) { tmp = sum < arg1.y; } if (!tmp) { tmp = diff > sum1; } return !tmp; } } } } } } } } } } return false; } doRectanglesIntersectWorklet.__closure = {}; doRectanglesIntersectWorklet.__workletHash = 697248006216; doRectanglesIntersectWorklet.__initData = { code: "function doRectanglesIntersectWorklet_VoiceCallOverlayUtilsTsx1(rectA,rectB,minMarginBetweenOverlays){if(rectA==null||rectA.x==null||rectA.y==null||rectA.width==null||rectA.height==null||rectB==null||rectB.x==null||rectB.y==null||rectB.width==null||rectB.height==null){return false;}const minAx=rectA.x-minMarginBetweenOverlays;const maxAx=rectA.x+rectA.width+minMarginBetweenOverlays;const minAy=rectA.y-minMarginBetweenOverlays;const maxAy=rectA.y+rectA.height+minMarginBetweenOverlays;const minBx=rectB.x;const maxBx=rectB.x+rectB.width;const minBy=rectB.y;const maxBy=rectB.y+rectB.height;const aLeftOfB=maxAxmaxBx;const aBelowB=minAy>maxBy;const aAboveB=maxAy