UNPKG

@braze/web-sdk

Version:

Braze SDK for web sites and other JS platforms.

122 lines (121 loc) 1.73 kB
import { IamCropType as Le, IamDismissType as pr, IamOrientation as Ae, IamSerializationKeys as cr, IamServerTypes as dt, IamTextAlignment as Ee, } from "../constants.js"; import { buttonsFromSerializedInAppMessage as ur } from "../in-app-message-factory.js"; import InAppMessage from "./in-app-message.js"; export default class FullScreenMessage extends InAppMessage { constructor( r, s, e, t, o, i, a, p, m, n, c, f, u, d, l, j, g, x, z, h, v, w, y, S, b, k, q, A, B, C, D, ) { (p = p || pr.MANUAL), (k = k || Ae.PORTRAIT), super( r, s, void 0, e, t, o, i, a, p, m, n, c, f, u, d, l, j, g, x, z, h, v, w, y, S, (b = b || Le.CENTER_CROP), k, q, A, B, C, D, ), (this.Go = Ee.CENTER); } qt() { return super.qt(dt.cE); } static ha(r) { return new FullScreenMessage( r[cr.rE], r[cr.mE], r[cr.Fs], r[cr.FE], r[cr.HE], r[cr.URI], r[cr.xE], r[cr.BE], r[cr.lE], r[cr.bE], r[cr.ys], r[cr.gE], r[cr.YE], r[cr.KE], r[cr.XE], r[cr.dE], r[cr.hE], r[cr.yE], r[cr.uE], r[cr.WE], r[cr.fE], r[cr.jE], r[cr.kE], ur(r[cr.vE]), r[cr.wE], r[cr.zE], r[cr.VE], r[cr.CSS], r[cr.JE], r[cr.LANGUAGE], r[cr.Ks], ); } }