UNPKG

@braze/web-sdk

Version:

Braze SDK for web sites and other JS platforms.

61 lines (60 loc) 1.22 kB
import { GLOBAL_RATE_LIMIT_CAPACITY_DEFAULT as di, GLOBAL_RATE_LIMIT_REFILL_RATE_DEFAULT as mi, } from "../common/constants.js"; export default class ci { constructor( t = 0, i = [], s = [], h = [], e = null, l = null, r = { enabled: !1 }, n = { enabled: !1, refresh_rate_limit: void 0 }, a = { enabled: !0, capacity: di, refill_rate: mi, endpoint_overrides: {} }, o = null, u = null, c = null, d = null, ) { (this.ec = t), (this.uc = i), (this.oc = s), (this.ac = h), (this.cc = e), (this.rc = l), (this.lc = r), (this.Xr = n), (this.nc = a), (this.banners = o), (this.dust = u), (this.vc = c), (this.fc = d); } qt() { return { s: "6.7.1", l: this.ec, e: this.uc, a: this.oc, p: this.ac, m: this.cc, v: this.rc, c: this.lc, f: this.Xr, grl: this.nc, b: this.banners, d: this.dust, rb: this.vc, mst: this.fc, }; } static _u(t) { let i = t.l; return ( "6.7.1" !== t.s && (i = 0), new ci(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) ); } }