UNPKG

@braze/web-sdk

Version:

Braze SDK for web sites and other JS platforms.

25 lines (24 loc) 717 B
import { PropertiesBase as x } from "../common/properties-base.js"; export default class FeatureFlag extends x { constructor(s, t = !1, i = {}, e) { super(i), (this.id = s), (this.enabled = t), (this.trackingString = e), (this.id = s), (this.enabled = t), (this.trackingString = e); } qt() { const s = {}; return ( (s[FeatureFlag.bs.qs] = this.id), (s[FeatureFlag.bs.Nr] = this.enabled), (s[FeatureFlag.bs.Or] = this.properties), (s[FeatureFlag.bs.Qr] = this.trackingString), s ); } } (FeatureFlag.bs = { qs: "id", Nr: "e", Or: "pr", Qr: "fts" }), (FeatureFlag.ui = { qs: "id", Nr: "enabled", Or: "properties", Qr: "fts" });