@braze/web-sdk
Version:
Braze SDK for web sites and other JS platforms.
22 lines (21 loc) • 545 B
JavaScript
import ls from "./filter-set.js";
export default class fs {
constructor(t, s) {
(this.productId = t), (this.tf = s), (this.productId = t), (this.tf = s);
}
Hc(t) {
if (null == this.productId || null == this.tf) return !1;
const s = t[0],
i = t[1];
return s === this.productId && this.tf.Hc(i);
}
static fromJson(t) {
return new fs(
t ? t.product_id : null,
t ? ls.fromJson(t.property_filters) : null,
);
}
qt() {
return { id: this.productId, pf: this.tf ? this.tf.qt() : null };
}
}