UNPKG

@scandit/web-datacapture-core

Version:

Scandit Data Capture SDK for the Web

1 lines 817 B
import {e,c,d,b}from'./chunk-CD2BU66N.js';import {a as a$1}from'./chunk-CRUOVJHW.js';import {a}from'./chunk-SGL5J2CI.js';var s=class u{constructor(){this._text="";this._tag="";this._textColor=a.fromHex(e.hintStyle.textColor);this._backgroundColor=a.fromHex(e.hintStyle.backgroundColor);}static init(t,o){let n=new u;return n._text=t,n._tag=o,n}withIcon(t){return this._icon=t,this}withTextColor(t){return this._textColor=t,this}withBackgroundColor(t){return this._backgroundColor=t,this}withNotificationStyle(t){this._style=t;let o={info:e,error:b,warning:d,success:c}[t];return this._textColor=a.fromHex(o.hintStyle.textColor),this._backgroundColor=a.fromHex(o.hintStyle.backgroundColor),this}build(){return new a$1(this._text,this._tag,this._style,this._icon,this._textColor,this._backgroundColor)}};export{s as a};