import{g as t}from"./p-eb6f4547.js";
/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */var n;(function(t){t["Heavy"]="HEAVY";t["Medium"]="MEDIUM";t["Light"]="LIGHT"})(n||(n={}));var i;(function(t){t["Success"]="SUCCESS";t["Warning"]="WARNING";t["Error"]="ERROR"})(i||(i={}));const s={getEngine(){const n=window.TapticEngine;if(n){return n}const i=t();if(i===null||i===void 0?void 0:i.isPluginAvailable("Haptics")){return i.Plugins.Haptics}return undefined},available(){const n=this.getEngine();if(!n){return false}const i=t();if((i===null||i===void 0?void 0:i.getPlatform())==="web"){return typeof navigator!=="undefined"&&navigator.vibrate!==undefined}return true},isCordova(){return window.TapticEngine!==undefined},isCapacitor(){return t()!==undefined},impact(t){const n=this.getEngine();if(!n){return}const i=this.isCapacitor()?t.style:t.style.toLowerCase();n.impact({style:i})},notification(t){const n=this.getEngine();if(!n){return}const i=this.isCapacitor()?t.type:t.type.toLowerCase();n.notification({type:i})},selection(){const t=this.isCapacitor()?n.Light:"light";this.impact({style:t})},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 e=()=>s.available();const o=()=>{e()&&s.selection()};const r=()=>{e()&&s.selectionStart()};const c=()=>{e()&&s.selectionChanged()};const a=()=>{e()&&s.selectionEnd()};const f=t=>{e()&&s.impact(t)};export{n as I,f as a,r as b,c,a as d,o as h};
//# sourceMappingURL=p-e150c324.js.map