1(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0e8e3d"],{"8aca":function(t,i,a){"use strict";a.r(i),a.d(i,"HapticsWeb",(function(){return r}));var e=a("1547"),n=a("22a7");class r extends e["a"]{constructor(){super(...arguments),this.selectionStarted=!1}async impact(t){const i=this.patternForImpact(null===t||void 0===t?void 0:t.style);this.vibrateWithPattern(i)}async notification(t){const i=this.patternForNotification(null===t||void 0===t?void 0:t.type);this.vibrateWithPattern(i)}async vibrate(t){const i=(null===t||void 0===t?void 0:t.duration)||300;this.vibrateWithPattern([i])}async selectionStart(){this.selectionStarted=!0}async selectionChanged(){this.selectionStarted&&this.vibrateWithPattern([70])}async selectionEnd(){this.selectionStarted=!1}patternForImpact(t=n["a"].Heavy){return t===n["a"].Medium?[43]:t===n["a"].Light?[20]:[61]}patternForNotification(t=n["b"].Success){return t===n["b"].Warning?[30,40,30,50,60]:t===n["b"].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}}}]); 2//# sourceMappingURL=chunk-2d0e8e3d.js.map
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.