/*! * (C) Ionic http://ionicframework.com - MIT License */ import{g as getCapacitor}from"./capacitor-59395cbd.js";var ImpactStyle;(function(t){t["Heavy"]="HEAVY";t["Medium"]="MEDIUM";t["Light"]="LIGHT"})(ImpactStyle||(ImpactStyle={}));var NotificationType;(function(t){t["Success"]="SUCCESS";t["Warning"]="WARNING";t["Error"]="ERROR"})(NotificationType||(NotificationType={}));var HapticEngine={getEngine:function(){var t=getCapacitor();if(t===null||t===void 0?void 0:t.isPluginAvailable("Haptics")){return t.Plugins.Haptics}return undefined},available:function(){var t=this.getEngine();if(!t){return false}var i=getCapacitor();if((i===null||i===void 0?void 0:i.getPlatform())==="web"){return typeof navigator!=="undefined"&&navigator.vibrate!==undefined}return true},impact:function(t){var i=this.getEngine();if(!i){return}i.impact({style:t.style})},notification:function(t){var i=this.getEngine();if(!i){return}i.notification({type:t.type})},selection:function(){this.impact({style:ImpactStyle.Light})},selectionStart:function(){var t=this.getEngine();if(!t){return}t.selectionStart()},selectionChanged:function(){var t=this.getEngine();if(!t){return}t.selectionChanged()},selectionEnd:function(){var t=this.getEngine();if(!t){return}t.selectionEnd()}};var hapticAvailable=function(){return HapticEngine.available()};var hapticSelection=function(){hapticAvailable()&&HapticEngine.selection()};var hapticSelectionStart=function(){hapticAvailable()&&HapticEngine.selectionStart()};var hapticSelectionChanged=function(){hapticAvailable()&&HapticEngine.selectionChanged()};var hapticSelectionEnd=function(){hapticAvailable()&&HapticEngine.selectionEnd()};var hapticImpact=function(t){hapticAvailable()&&HapticEngine.impact(t)};export{ImpactStyle as I,hapticSelectionStart as a,hapticSelectionChanged as b,hapticSelection as c,hapticImpact as d,hapticSelectionEnd as h};