/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */
const t={getEngine(){var t;const s=window;return s.TapticEngine||((t=s.Capacitor)===null||t===void 0?void 0:t.isPluginAvailable("Haptics"))&&s.Capacitor.Plugins.Haptics},available(){return!!this.getEngine()},isCordova(){return!!window.TapticEngine},isCapacitor(){const t=window;return!!t.Capacitor},impact(t){const s=this.getEngine();if(!s){return}const i=this.isCapacitor()?t.style.toUpperCase():t.style;s.impact({style:i})},notification(t){const s=this.getEngine();if(!s){return}const i=this.isCapacitor()?t.style.toUpperCase():t.style;s.notification({style:i})},selection(){this.impact({style:"light"})},selectionStart(){const t=this.getEngine();if(!t){return}if(this.isCapacitor()){t.selectionStart()}else{t.gestureSelectionStart()}},selectionChanged(){const t=this.getEngine();if(!t){return}if(this.isCapacitor()){t.selectionChanged()}else{t.gestureSelectionChanged()}},selectionEnd(){const t=this.getEngine();if(!t){return}if(this.isCapacitor()){t.selectionEnd()}else{t.gestureSelectionEnd()}}};const s=()=>{t.selection()};const i=()=>{t.selectionStart()};const n=()=>{t.selectionChanged()};const e=()=>{t.selectionEnd()};const o=s=>{t.impact(s)};export{i as a,n as b,e as c,s as d,o as h};
//# sourceMappingURL=p-604a7987.js.map