Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
55 lines
1.7 KiB
JavaScript
55 lines
1.7 KiB
JavaScript
// Module ID: 4610
|
|
// Function ID: 4611
|
|
// Dependencies: [19, 4607, 4611]
|
|
// Exports: useHaptics
|
|
|
|
// Module 4610
|
|
import _mod19 from "module_19" /* 19 */;
|
|
import _modDef4607 from "module_4607" /* 4607 */;
|
|
|
|
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);
|
|
_modDef4607.trigger(arg0, {});
|
|
},
|
|
triggerPattern(arg0, arg1) {
|
|
const merged = Object.assign(enableVibrateFallback);
|
|
const merged1 = Object.assign(arg1);
|
|
_modDef4607.triggerPattern(arg0, {});
|
|
},
|
|
stop() {
|
|
closure_1_1(4607).stop();
|
|
},
|
|
isSupported() {
|
|
return closure_1_1(4607).isSupported();
|
|
},
|
|
playHaptic(arg0, arg1, arg2) {
|
|
const merged = Object.assign(enableVibrateFallback);
|
|
const merged1 = Object.assign(arg2);
|
|
return closure_0(4611).playHaptic(arg0, arg1, {});
|
|
},
|
|
impact(arg0, arg1, arg2) {
|
|
const merged = Object.assign(enableVibrateFallback);
|
|
const merged1 = Object.assign(arg2);
|
|
_modDef4607.impact(arg0, arg1, {});
|
|
},
|
|
setEnabled: _modDef4607.setEnabled,
|
|
isEnabled: _modDef4607.isEnabled,
|
|
getSystemHapticStatus: _modDef4607.getSystemHapticStatus,
|
|
playAHAP: _modDef4607.playAHAP
|
|
}), items);
|
|
};
|