UNPKG

@braze/web-sdk

Version:

Braze SDK for web sites and other JS platforms.

79 lines (78 loc) 1.4 kB
import { GLOBAL_RATE_LIMIT_CAPACITY_DEFAULT as mi, GLOBAL_RATE_LIMIT_REFILL_RATE_DEFAULT as fi, } from "../common/constants.js"; export default class di { constructor( t = 0, i = [], s = [], h = [], l = null, e = null, r = { enabled: !1 }, n = { enabled: !1, refresh_rate_limit: void 0 }, a = { enabled: !0, capacity: mi, refill_rate: fi, endpoint_overrides: {} }, o = null, u = null, c = null, d = null, m = null, ) { (this.nd = t), (this.gd = i), (this.bd = s), (this.fd = h), (this.Rd = l), (this.ad = e), (this.hd = r), (this.Xr = n), (this.ud = a), (this.banners = o), (this.dust = u), (this.wd = c), (this.Td = d), (this.dd = m); } qt() { return { s: "6.9.0", l: this.nd, e: this.gd, a: this.bd, p: this.fd, m: this.Rd, v: this.ad, c: this.hd, f: this.Xr, grl: this.ud, b: this.banners, d: this.dust, rb: this.wd, mst: this.Td, ch: this.dd, }; } static _u(t) { let i = t.l; return ( "6.9.0" !== t.s && (i = 0), new di( i, t.e, t.a, t.p, t.m, t.v, t.c, t.f, t.grl, t.b, t.d, t.rb, t.mst, t.ch, ) ); } }