PNG  IHDR;IDATxܻn0K )(pA 7LeG{ §㻢|ذaÆ 6lذaÆ 6lذaÆ 6lom$^yذag5bÆ 6lذaÆ 6lذa{ 6lذaÆ `}HFkm,mӪôô! x|'ܢ˟;E:9&ᶒ}{v]n&6 h_tڠ͵-ҫZ;Z$.Pkž)!o>}leQfJTu іچ\X=8Rن4`Vwl>nG^is"ms$ui?wbs[m6K4O.4%/bC%t Mז -lG6mrz2s%9s@-k9=)kB5\+͂Zsٲ Rn~GRC wIcIn7jJhۛNCS|j08yiHKֶۛkɈ+;SzL/F*\Ԕ#"5m2[S=gnaPeғL lذaÆ 6l^ḵaÆ 6lذaÆ 6lذa; _ذaÆ 6lذaÆ 6lذaÆ RIENDB` import store from '@/Store' export default function () { store.registerHook('component.initialized', component => { if (Array.isArray(component.listeners)) { component.listeners.forEach(event => { if (event.startsWith('echo')) { if (typeof Echo === 'undefined') { console.warn('Laravel Echo cannot be found') return } let event_parts = event.split(/(echo:|echo-)|:|,/) if (event_parts[1] == 'echo:') { event_parts.splice(2, 0, 'channel', undefined) } if (event_parts[2] == 'notification') { event_parts.push(undefined, undefined) } let [ s1, signature, channel_type, s2, channel, s3, event_name, ] = event_parts if (['channel', 'private', 'encryptedPrivate'].includes(channel_type)) { Echo[channel_type](channel).listen(event_name, e => { store.emit(event, e) }) } else if (channel_type == 'presence') { Echo.join(channel)[event_name](e => { store.emit(event, e) }) } else if (channel_type == 'notification') { Echo.private(channel).notification(notification => { store.emit(event, notification) }) } else { console.warn('Echo channel type not yet supported') } } }) } }) }