1"use strict";(self.webpackChunkpwa=self.webpackChunkpwa||[]).push([[3789],{6170:function(t,e,n){n.r(e),n.d(e,{HapticsWeb:function(){return r}});var i=n(16546),a=n(23693);class r extends i.E_{constructor(){super(...arguments),this.selectionStarted=!1}async impact(t){const e=this.patternForImpact(null==t?void 0:t.style);this.vibrateWithPattern(e)}async notification(t){const e=this.patternForNotification(null==t?void 0:t.type);this.vibrateWithPattern(e)}async vibrate(t){const e=(null==t?void 0:t.duration)||300;this.vibrateWithPattern([e])}async selectionStart(){this.selectionStarted=!0}async selectionChanged(){this.selectionStarted&&this.vibrateWithPattern([70])}async selectionEnd(){this.selectionStarted=!1}patternForImpact(t=a.kn.Heavy){return t===a.kn.Medium?[43]:t===a.kn.Light?[20]:[61]}patternForNotification(t=a._n.Success){return t===a._n.Warning?[30,40,30,50,60]:t===a._n.Error?[27,45,50]:[35,65,21]}vibrateWithPattern(t){if(!navigator.vibrate)throw this.unavailable("Browser does not support the vibrate API");navigator.vibrate(t)}
1}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.