@braze/web-sdk
Version:
Braze SDK for web sites and other JS platforms.
66 lines (65 loc) • 1.34 kB
JavaScript
import {
GLOBAL_RATE_LIMIT_CAPACITY_DEFAULT as hi,
GLOBAL_RATE_LIMIT_REFILL_RATE_DEFAULT as li,
} from "../common/constants.js";
export default class ni {
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: hi, refill_rate: li, endpoint_overrides: {} },
o = null,
c = null,
) {
(this.Dl = t),
(this.Il = i),
(this.Ml = s),
(this.Sl = h),
(this.Pl = e),
(this.xl = l),
(this.Gl = r),
(this.je = n),
(this.kl = a),
(this.banners = o),
(this.dust = c),
(this.Dl = t),
(this.Il = i),
(this.Ml = s),
(this.Sl = h),
(this.Pl = e),
(this.xl = l),
(this.Gl = r),
(this.je = n),
(this.kl = a),
(this.banners = o),
(this.dust = c);
}
dt() {
return {
s: "6.4.0",
l: this.Dl,
e: this.Il,
a: this.Ml,
p: this.Sl,
m: this.Pl,
v: this.xl,
c: this.Gl,
f: this.je,
grl: this.kl,
b: this.banners,
d: this.dust,
};
}
static Vo(t) {
let i = t.l;
return (
"6.4.0" !== t.s && (i = 0),
new ni(i, t.e, t.a, t.p, t.m, t.v, t.c, t.f, t.grl, t.b, t.d)
);
}
}