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` export default class { constructor(component, updateQueue) { this.component = component this.updateQueue = updateQueue } payload() { return { fingerprint: this.component.fingerprint, serverMemo: this.component.serverMemo, // This ensures only the type & payload properties only get sent over. updates: this.updateQueue.map(update => ({ type: update.type, payload: update.payload, })), } } shouldSkipWatcherForDataKey(dataKey) { // If the data is dirty, run the watcher. if (this.response.effects.dirty.includes(dataKey)) return false let compareBeforeFirstDot = (subject, value) => { if (typeof subject !== 'string' || typeof value !== 'string') return false return subject.split('.')[0] === value.split('.')[0] } // Otherwise see if there was a defered update for a data key. // In that case, we want to skip running the Livewire watcher. return this.updateQueue .filter(update => compareBeforeFirstDot(update.name, dataKey)) .some(update => update.skipWatcher) } storeResponse(payload) { return (this.response = payload) } resolve() { let returns = this.response.effects.returns || [] this.updateQueue.forEach(update => { if (update.type !== 'callMethod') return update.resolve( returns[update.signature] !== undefined ? returns[update.signature] : (returns[update.method] !== undefined ? returns[update.method] : null) ) }) } reject() { this.updateQueue.forEach(update => { update.reject() }) } }