UNPKG

@braze/web-sdk

Version:

Braze SDK for web sites and other JS platforms.

57 lines (56 loc) 1.31 kB
import { PropertiesBase as D } from "../common/properties-base.js"; import f from "../managers/subscription-manager.js"; export default class Banner extends D { constructor(s, i, t, h = !1, r = !1, e = -1, n = {}, o = null) { super(n), (this.id = s), (this.placementId = i), (this.html = t), (this.ss = h), (this.isControl = r), (this.ts = e), (this.G = o), (this.id = s), (this.placementId = i), (this.html = t), (this.ss = h), (this.isControl = r), (this.ts = e), (this.hs = !1), (this.rs = !1), (this.es = null); } subscribeToDismissedEvent(s) { return this.ns().Ut(s); } removeSubscription(s) { null != this.es && this.es.removeSubscription(s); } removeAllSubscriptions() { null != this.es && this.es.removeAllSubscriptions(); } os() { return this.isControl; } ns() { return null == this.es && (this.es = new f()), this.es; } Ft() { return ( !this.rs && ((this.rs = !0), this.ns().A(), this.removeAllSubscriptions(), !0) ); } qt() { return { id: this.id, pid: this.placementId, html: this.html, its: this.ss, ic: this.isControl, eat: this.ts, pr: this.properties, sk: this.G, }; } }