26 lines
1.1 KiB
TypeScript
26 lines
1.1 KiB
TypeScript
// Module ID: 15008
|
|
// Function ID: 15009
|
|
// Name: BOUNTY_REWARD_CLAIM_FAILED_TOAST_DURATION_MS
|
|
// Dependencies: [11507, 2]
|
|
// Exports: getBountyVideoEndAppStoreSheetHeight, getBountyVideoEndPeekTargetScale
|
|
|
|
// Module 15008 (BOUNTY_REWARD_CLAIM_FAILED_TOAST_DURATION_MS)
|
|
import set from "set" /* 2 */;
|
|
import APP_STORE_OVERLAY_HEIGHT_RATIO from "APP_STORE_OVERLAY_HEIGHT_RATIO" /* 11507 */;
|
|
|
|
const result = set.fileFinishedImporting("modules/quests/native/BountiesModal/BountiesModalConstants.tsx");
|
|
|
|
export const BOUNTY_REWARD_CLAIM_FAILED_TOAST_DURATION_MS = 10000;
|
|
export const getBountyVideoEndAppStoreSheetHeight = function getBountyVideoEndAppStoreSheetHeight(arg0) {
|
|
return arg0 * APP_STORE_OVERLAY_HEIGHT_RATIO.APP_STORE_OVERLAY_HEIGHT_RATIO;
|
|
};
|
|
export const getBountyVideoEndPeekTargetScale = function getBountyVideoEndPeekTargetScale(arg0) {
|
|
({ windowHeight, videoHeight } = arg0);
|
|
if (videoHeight <= 0) {
|
|
return 1;
|
|
} else {
|
|
const _Math = Math;
|
|
const _Math2 = Math;
|
|
return Math.min(1, Math.max(0.1, (windowHeight - windowHeight * APP_STORE_OVERLAY_HEIGHT_RATIO.APP_STORE_OVERLAY_HEIGHT_RATIO - tmp - 8) / videoHeight));
|
|
}
|
|
};
|