PageSourceSearch

https://apprms.web.app/chunk-BOHXWWVF.js

js apprms.web.app collected 2026-10-03 12:18:53 UTC 2,035 bytes, 2 lines download raw bytes

1import{ha as l,i as u}from"./chunk-QFPTFNIK.js";import{a as f,b as p}from"./chunk-A7HXKATL.js";import{ga as h}from"./chunk-EKZMVQ4B.js";import{c as d}from"./chunk-ITL2CWPT.js";import{k as a}from"./chunk-Q762RTV7.js";var y="rms_chat_sound_enabled",g=(()=>{let t=class t{constructor(){this.audioContext=null,this.soundEnabled=!0,this.loadPreference()}loadPreference(){return a(this,null,function*(){try{let{value:o}=yield u.get({key:y});this.soundEnabled=o!=="false"}catch{this.soundEnabled=!0}})}toggleSound(){return a(this,null,function*(){return this.soundEnabled=!this.soundEnabled,yield u.set({key:y,value:String(this.soundEnabled)}),this.soundEnabled&&(yield this.playMessageReceived()),this.soundEnabled})}isSoundEnabled(){return this.soundEnabled}playMessageReceived(){return a(this,null,function*(){this.soundEnabled&&(yield this.playTone([{freq:880,duration:.08,type:"sine"},{freq:1200,duration:.12,type:"sine"}]),this.hapticNotification())})}playMessageSent(){return a(this,null,function*(){this.soundEnabled&&(yield this.playTone([{freq:600,duration:.06,type:"sine"}]))})}hapticNotification(){d.isNativePlatform()&&l.notification({type:p.Success}).catch(()=>{})}hapticTap(){d.isNativePlatform()&&l.impact({style:f.Light}).catch(()=>{})}playTone(o){return a(this,null,function*(){try{this.audioContext||(this.audioContext=new AudioContext),this.audioContext.state==="suspended"&&(yield this.audioContext.resume());let e=0;for(let i of o){let n=this.audioContext.createOscillator(),s=this.audioContext.createGain();n.connect(s),s.connect(this.audioContext.destination),n.frequency.value=i.freq,n.type=i.type;let r=this.audioContext.currentTime+e;s.gain.setValueAtTime(.25,r),s.gain.exponentialRampToValueAtTime(.001,r+i.duration),n.start(r),n.stop(r+i.duration),e+=i.duration}}catch(e){console.warn("[ChatSound] Falha ao tocar som:",e)}})}};t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=h({token:t,factory:t.\u0275fac,providedIn:"root"});let c=t;return c})();export{g as a};
2//# sourceMappingURL=chunk-BOHXWWVF.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.