File: /var/www/vhost/disk-apps/pwa.sports-crowd.com/node_modules/@ionic/core/dist/ionic/p-5455eb05.js
/*!
* (C) Ionic http://ionicframework.com - MIT License
*/
const t={getEngine(){var t;const i=window;return i.TapticEngine||(null===(t=i.Capacitor)||void 0===t?void 0:t.isPluginAvailable("Haptics"))&&i.Capacitor.Plugins.Haptics},available(){var t;const i=window;return!!this.getEngine()&&("web"!==(null===(t=i.Capacitor)||void 0===t?void 0:t.getPlatform())||"undefined"!=typeof navigator&&void 0!==navigator.vibrate)},isCordova:()=>!!window.TapticEngine,isCapacitor:()=>!!window.Capacitor,impact(t){const i=this.getEngine();if(!i)return;const s=this.isCapacitor()?t.style.toUpperCase():t.style;i.impact({style:s})},notification(t){const i=this.getEngine();if(!i)return;const s=this.isCapacitor()?t.style.toUpperCase():t.style;i.notification({style:s})},selection(){this.impact({style:"light"})},selectionStart(){const t=this.getEngine();t&&(this.isCapacitor()?t.selectionStart():t.gestureSelectionStart())},selectionChanged(){const t=this.getEngine();t&&(this.isCapacitor()?t.selectionChanged():t.gestureSelectionChanged())},selectionEnd(){const t=this.getEngine();t&&(this.isCapacitor()?t.selectionEnd():t.gestureSelectionEnd())}},i=()=>t.available(),s=()=>{i()&&t.selection()},n=()=>{i()&&t.selectionStart()},o=()=>{i()&&t.selectionChanged()},e=()=>{i()&&t.selectionEnd()},a=s=>{i()&&t.impact(s)};export{n as a,o as b,s as c,a as d,e as h}