@braze/web-sdk
Version:
Braze SDK for web sites and other JS platforms.
34 lines (33 loc) • 1.04 kB
JavaScript
import Card from "./card.js";
export default class CaptionedImage extends Card {
constructor(t, s, i, h, e, r, a, o, c, n, d, p, u, l, m, f) {
super(t, s, i, h, e, r, a, o, c, n, d, p, u, l, m, f),
(this.Xt = "ab-captioned-image"),
(this.Yt = !0),
(this.test = !1);
}
dt() {
const t = {};
return (
(t[Card.ss.ts] = Card.es.hs),
(t[Card.ss.rs] = this.id),
(t[Card.ss.os] = this.viewed),
(t[Card.ss.cs] = this.title),
(t[Card.ss.ns] = this.imageUrl),
(t[Card.ss.ds] = this.description),
(t[Card.ss.ps] = this.updated),
(t[Card.ss.us] = this.expiresAt),
(t[Card.ss.URL] = this.url),
(t[Card.ss.ls] = this.linkText),
(t[Card.ss.fs] = this.aspectRatio),
(t[Card.ss.xs] = this.extras),
(t[Card.ss.bs] = this.pinned),
(t[Card.ss.gs] = this.dismissible),
(t[Card.ss.js] = this.clicked),
(t[Card.ss.zs] = this.language),
(t[Card.ss.ks] = this.altImageText),
(t[Card.ss.qs] = this.test),
t
);
}
}