Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4759.js (118.4 MB)
30 lines
895 B
JavaScript
30 lines
895 B
JavaScript
// Module ID: 6852
|
|
// Function ID: 6853
|
|
// Dependencies: [19, 6642]
|
|
// Exports: useBottomSheetTimingConfigs
|
|
|
|
// Module 6852
|
|
import _mod19 from "module_19" /* 19 */;
|
|
import value2 from "value2" /* 6642 */;
|
|
|
|
const useMemo = _mod19.useMemo;
|
|
|
|
export const useBottomSheetTimingConfigs = (arg0) => {
|
|
const easing = arg0;
|
|
const items = [, , ];
|
|
({ duration: arr[0], easing: arr[1], reduceMotion: arr[2] } = arg0);
|
|
return useMemo(() => {
|
|
let ANIMATION_EASING = easing.easing;
|
|
if (!ANIMATION_EASING) {
|
|
ANIMATION_EASING = value2.ANIMATION_EASING;
|
|
}
|
|
const obj = { easing: ANIMATION_EASING, duration: null, reduceMotion: null };
|
|
let ANIMATION_DURATION = tmp.duration;
|
|
if (!ANIMATION_DURATION) {
|
|
ANIMATION_DURATION = value2.ANIMATION_DURATION;
|
|
}
|
|
obj.duration = ANIMATION_DURATION;
|
|
obj.reduceMotion = easing.reduceMotion;
|
|
return obj;
|
|
}, items);
|
|
};
|