// Module ID: 12481 // Function ID: 12482 // Name: MIN_MARGIN_BETWEEN_OVERLAYS // Dependencies: [8707, 709, 2] // Exports: doesTargetPositionIntersectOtherOverlaysWorklet, setPipEnabledWhileFocusedOnActivityOrStream, updateVoiceCallOverlayLayoutState // Module 12481 (MIN_MARGIN_BETWEEN_OVERLAYS) import set from "set" /* 2 */; import dispatcherDefault from "dispatcher" /* 709 */; import BOX_MODE_ACTIONSHEET_WIDTH from "BOX_MODE_ACTIONSHEET_WIDTH" /* 8707 */; const MIN_MARGIN_BETWEEN_OVERLAYS = BOX_MODE_ACTIONSHEET_WIDTH.MIN_MARGIN_BETWEEN_OVERLAYS; const VoiceCallOverlayType = BOX_MODE_ACTIONSHEET_WIDTH.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