Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4823.js (118.4 MB)
55 lines
1.7 KiB
JavaScript
55 lines
1.7 KiB
JavaScript
// Module ID: 4612
|
|
// Function ID: 4613
|
|
// Dependencies: [19, 4609, 4613]
|
|
// Exports: useHaptics
|
|
|
|
// Module 4612
|
|
import _mod19 from "module_19" /* 19 */;
|
|
import _modDef4609 from "module_4609" /* 4609 */;
|
|
|
|
const useMemo = _mod19.useMemo;
|
|
|
|
export const useHaptics = function useHaptics(enableVibrateFallback) {
|
|
closure_0 = enableVibrateFallback;
|
|
let prop;
|
|
if (enableVibrateFallback != null) {
|
|
prop = enableVibrateFallback.enableVibrateFallback;
|
|
}
|
|
let prop1;
|
|
if (enableVibrateFallback != null) {
|
|
prop1 = enableVibrateFallback.ignoreAndroidSystemSettings;
|
|
}
|
|
const items = [prop, prop1];
|
|
return useMemo(() => ({
|
|
trigger(arg0, arg1) {
|
|
const merged = Object.assign(enableVibrateFallback);
|
|
const merged1 = Object.assign(arg1);
|
|
_modDef4609.trigger(arg0, {});
|
|
},
|
|
triggerPattern(arg0, arg1) {
|
|
const merged = Object.assign(enableVibrateFallback);
|
|
const merged1 = Object.assign(arg1);
|
|
_modDef4609.triggerPattern(arg0, {});
|
|
},
|
|
stop() {
|
|
closure_1_1(4609).stop();
|
|
},
|
|
isSupported() {
|
|
return closure_1_1(4609).isSupported();
|
|
},
|
|
playHaptic(arg0, arg1, arg2) {
|
|
const merged = Object.assign(enableVibrateFallback);
|
|
const merged1 = Object.assign(arg2);
|
|
return closure_0(4613).playHaptic(arg0, arg1, {});
|
|
},
|
|
impact(arg0, arg1, arg2) {
|
|
const merged = Object.assign(enableVibrateFallback);
|
|
const merged1 = Object.assign(arg2);
|
|
_modDef4609.impact(arg0, arg1, {});
|
|
},
|
|
setEnabled: _modDef4609.setEnabled,
|
|
isEnabled: _modDef4609.isEnabled,
|
|
getSystemHapticStatus: _modDef4609.getSystemHapticStatus,
|
|
playAHAP: _modDef4609.playAHAP
|
|
}), items);
|
|
};
|