decord/source/modules/quests/native/BountiesModal/BountiesModalConstants.tsx
github-actions 67d978d9fb chore: update source for alpha 346.0
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9672_m.js (378.6 MB)
2026-09-07 16:44:02 +00:00

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));
}
};