UNPKG

@braze/web-sdk

Version:

Braze SDK for web sites and other JS platforms.

22 lines (21 loc) 509 B
import ls from "./filter-set.js"; export default class ns { constructor(t, s) { (this.xc = t), (this.tf = s), (this.xc = t), (this.tf = s); } zc(t) { if (null == this.xc || null == this.tf) return !1; const s = t[0], i = t[1]; return s === this.xc && this.tf.zc(i); } static fromJson(t) { return new ns( t ? t.event_name : null, t ? ls.fromJson(t.property_filters) : null, ); } qt() { return { e: this.xc, pf: this.tf ? this.tf.qt() : null }; } }