UNPKG

@braze/web-sdk

Version:

Braze SDK for web sites and other JS platforms.

25 lines (24 loc) 717 B
import { PropertiesBase as p } from "../common/properties-base.js"; export default class FeatureFlag extends p { 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); } dt() { const s = {}; return ( (s[FeatureFlag.ss.rs] = this.id), (s[FeatureFlag.ss.Fe] = this.enabled), (s[FeatureFlag.ss.we] = this.properties), (s[FeatureFlag.ss.xe] = this.trackingString), s ); } } (FeatureFlag.ss = { rs: "id", Fe: "e", we: "pr", xe: "fts" }), (FeatureFlag.ui = { rs: "id", Fe: "enabled", we: "properties", xe: "fts" });