buzzcasting-utils 1.8.1 → 1.8.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export declare function anonymize(name: string): string;
|
|
2
2
|
|
|
3
3
|
export declare enum API {
|
|
4
|
+
CARDS = "cards",
|
|
4
5
|
CLOUD = "cloud",
|
|
5
6
|
DASHBOARD = "dashboard",
|
|
6
7
|
DASHBOARDS = "dashboards",
|
|
@@ -171,7 +172,7 @@ export declare enum EVENTS {
|
|
|
171
172
|
NEXT_SLIDE = "nextSlide",
|
|
172
173
|
PREFERENCE_LOAD = "loadPreference",
|
|
173
174
|
PREFERENCE_STORE = "storePreference",
|
|
174
|
-
|
|
175
|
+
PREFERENCE_UPDATED = "preferenceUpdated",
|
|
175
176
|
PAUSE_PRESENTATION = "pausePresentation",
|
|
176
177
|
PRESENTATION_READY = "presentationReady",
|
|
177
178
|
PRESENTATION_LOAD = "loadPresentation",
|
|
@@ -1140,7 +1141,7 @@ export declare interface IStorageOptions {
|
|
|
1140
1141
|
delay?: number;
|
|
1141
1142
|
display?: string;
|
|
1142
1143
|
domain?: string;
|
|
1143
|
-
html?:
|
|
1144
|
+
html?: boolean;
|
|
1144
1145
|
locale: string;
|
|
1145
1146
|
loglevel?: number;
|
|
1146
1147
|
moderation?: string;
|
|
@@ -1149,6 +1150,7 @@ export declare interface IStorageOptions {
|
|
|
1149
1150
|
period?: number;
|
|
1150
1151
|
presentation: string;
|
|
1151
1152
|
retention?: number;
|
|
1153
|
+
shadow?: boolean;
|
|
1152
1154
|
slide?: string;
|
|
1153
1155
|
slides?: string[];
|
|
1154
1156
|
storage: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var h = /* @__PURE__ */ ((e) => (e.CLOUD = "cloud", e.DASHBOARD = "dashboard", e.DASHBOARDS = "dashboards", e.IMAGES = "images", e.MESSAGES = "messages", e.PREFERENCE = "preference", e.PREFERENCES = "preferences", e.PRESENTATION = "presentation", e.PRESENTATIONS = "presentations", e.SERIES = "series", e.SLIDE = "slide", e.SLIDES = "slides", e.TOPICS = "topics", e.WIDGET = "widget", e.WIDGETS = "widgets", e))(h || {}), m = /* @__PURE__ */ ((e) => (e.API = "color:white;background-color:grey;padding:0 4px 0 4px;border-radius:5px;", e.APP = "color:white;background-color:navy;padding:0 4px 0 4px;border-radius:5px;", e.BROADCAST = "color:navy;background-color:orange;padding:0 4px 0 4px;border-radius:5px;", e.CLOUD = "color:purple;background-color:mistyrose;padding:0 4px 0 4px;border-radius:5px;", e.DATA = "color:grey;background-color:lightskyblue;padding:0 4px 0 4px;border-radius:5px;", e.ERROR = "color:white;background-color:red;padding:0 4px 0 4px;border-radius:5px;", e.GET_DATA = "color:black;background-color:lime;padding:0 4px 0 4px;border-radius:5px;", e.HIDE = "color:white;background-color:red;padding:0 4px 0 4px;border-radius:5px;", e.KO = "color:white;background-color:red;padding:0 4px 0 4px;border-radius:5px;", e.MESSAGES = "color:white;background-color:darkslateblue;padding:0 4px 0 4px;border-radius:5px;", e.NO_UPDATES = "color:grey;border:1px solid grey;padding:0 4px 0 4px;border-radius:5px;", e.NONE = "color:transparent;background-color:transparent;", e.OK = "color:black;background-color:lime;padding:0 4px 0 4px;border-radius:5px;", e.PRESENTATION = "color:white;background-color:darkred;padding:0 4px 0 4px;border-radius:5px;", e.SERIES = "color:purple;background-color:thistle;padding:0 4px 0 4px;border-radius:5px;", e.SLIDE = "color:black;background-color:yellow;padding:0 4px 0 4px;border-radius:5px;", e.STORAGE = "color:black;background-color:cyan;padding:0 4px 0 4px;border-radius:5px;", e.SUBSCRIBE = "color:white;background-color:dodgerblue;padding:0 4px 0 4px;border-radius:5px;", e.WIDGET = "color:gret;background-color:lemonchiffon;padding:0 4px 0 4px;border-radius:5px;", e.WS = "color:white;background-color:green;padding:0 4px 0 4px;border-radius:5px;", e))(m || {}),
|
|
1
|
+
var h = /* @__PURE__ */ ((e) => (e.CARDS = "cards", e.CLOUD = "cloud", e.DASHBOARD = "dashboard", e.DASHBOARDS = "dashboards", e.IMAGES = "images", e.MESSAGES = "messages", e.PREFERENCE = "preference", e.PREFERENCES = "preferences", e.PRESENTATION = "presentation", e.PRESENTATIONS = "presentations", e.SERIES = "series", e.SLIDE = "slide", e.SLIDES = "slides", e.TOPICS = "topics", e.WIDGET = "widget", e.WIDGETS = "widgets", e))(h || {}), m = /* @__PURE__ */ ((e) => (e.API = "color:white;background-color:grey;padding:0 4px 0 4px;border-radius:5px;", e.APP = "color:white;background-color:navy;padding:0 4px 0 4px;border-radius:5px;", e.BROADCAST = "color:navy;background-color:orange;padding:0 4px 0 4px;border-radius:5px;", e.CLOUD = "color:purple;background-color:mistyrose;padding:0 4px 0 4px;border-radius:5px;", e.DATA = "color:grey;background-color:lightskyblue;padding:0 4px 0 4px;border-radius:5px;", e.ERROR = "color:white;background-color:red;padding:0 4px 0 4px;border-radius:5px;", e.GET_DATA = "color:black;background-color:lime;padding:0 4px 0 4px;border-radius:5px;", e.HIDE = "color:white;background-color:red;padding:0 4px 0 4px;border-radius:5px;", e.KO = "color:white;background-color:red;padding:0 4px 0 4px;border-radius:5px;", e.MESSAGES = "color:white;background-color:darkslateblue;padding:0 4px 0 4px;border-radius:5px;", e.NO_UPDATES = "color:grey;border:1px solid grey;padding:0 4px 0 4px;border-radius:5px;", e.NONE = "color:transparent;background-color:transparent;", e.OK = "color:black;background-color:lime;padding:0 4px 0 4px;border-radius:5px;", e.PRESENTATION = "color:white;background-color:darkred;padding:0 4px 0 4px;border-radius:5px;", e.SERIES = "color:purple;background-color:thistle;padding:0 4px 0 4px;border-radius:5px;", e.SLIDE = "color:black;background-color:yellow;padding:0 4px 0 4px;border-radius:5px;", e.STORAGE = "color:black;background-color:cyan;padding:0 4px 0 4px;border-radius:5px;", e.SUBSCRIBE = "color:white;background-color:dodgerblue;padding:0 4px 0 4px;border-radius:5px;", e.WIDGET = "color:gret;background-color:lemonchiffon;padding:0 4px 0 4px;border-radius:5px;", e.WS = "color:white;background-color:green;padding:0 4px 0 4px;border-radius:5px;", e))(m || {}), I = /* @__PURE__ */ ((e) => (e.ADD_SLIDE = "addSlide", e.APP_READY = "appReady", e.API_UPDATE = "apiUpdate", e.BACKGROUND_UPDATE = "backgroundUpdate", e.COMPONENT_UPDATE = "componentUpdate", e.WS_API_REQUEST = "wsApiRequest", e.WS_API_RESPONSE = "wsApiResponse", e.WS_API_UPDATE = "wsApiRUpdate", e.APPROVE_MESSAGE = "approveMessage", e.CHANNEL = "channel", e.CLEAN_MESSAGES = "cleanMessages", e.CLOSE_BUILDER_DIALOG = "closeBuilderDialog", e.CLOSE_BUILDER_MODAL = "closeBuilderModal", e.CLOSE_MODAL = "closeModal", e.COLOR_UPDATE = "colorUpdate", e.COMPONENT_INDEX = "componentIndex", e.CSS_SET = "setCss", e.CSS_STORE = "storeCss", e.DASHBOARD_LOAD = "loadDashboard", e.DASHBOARD_STORE = "storeDashboard", e.DASHBOARD_UPDATED = "dashboardUpdated", e.ERROR = "error", e.HIDE_MESSAGE = "hideMessage", e.HIDE_LABELS = "hideLabels", e.IMAGE_GET = "getImage", e.IMAGE_SET = "setImage", e.IMAGE_STORED = "imageStored", e.LAUPPUT_UPDATE = "layoutUpdate", e.PREV_SLIDE = "prevSlide", e.RELOAD_PRESENTATION = "reloadPresentation", e.STAR_MESSAGE = "starMessage", e.GOTO_SLIDE = "gotoSlide", e.NEXT_SLIDE = "nextSlide", e.PREFERENCE_LOAD = "loadPreference", e.PREFERENCE_STORE = "storePreference", e.PREFERENCE_UPDATED = "preferenceUpdated", e.PAUSE_PRESENTATION = "pausePresentation", e.PRESENTATION_READY = "presentationReady", e.PRESENTATION_LOAD = "loadPresentation", e.PRESENTATION_STORE = "storePresentation", e.PRESENTATION_UPDATED = "presentationUpdated", e.ROW_COL_UPDATE = "rowcolupdate", e.SCREENSHOT_TAKE = "takeScreenshot", e.SCREENSHOT_STORE = "storeScreenshot", e.SECTION_UPDATE = "sectionUpdate", e.SHOW_BUILDER_DIALOG = "showBuilderDialog", e.SHOW_BUILDER_MODAL = "showBuilderModal", e.SHOW_MODAL = "showModal", e.SLIDE_DID_LOAD = "slideDidLoad", e.SLIDE_GET = "getSlide", e.SLIDE_GOTO = "slideGoto", e.SLIDE_LOAD = "loadSlide", e.SLIDE_READY = "slideReady", e.SLIDE_SAVED = "slideSaved", e.SLIDE_SET = "setSlide", e.SLIDE_STORE = "storeSlide", e.SLIDE_STORED = "slideStored", e.SLIDE_TRANSITIONER = "slideTransitioner", e.SLIDE_UPDATED = "slideUpdated", e.START_TRANSITIONER = "startTransitioner", e.STORAGE_INIT = "storageInit", e.SUBSCRIBE = "subscribe", e.SUSPEND_ACCOUNT = "suspendAccount", e.SWITCH_PRESENTATION = "switchPresentation", e.REMOVE_CLOUD = "removeCloud", e.UPDATE = "update", e.UPLOAD_COMPLETED = "uploadCompleted", e.VERSION = "version", e.WIDGETS_CLEAR = "widgetsClear", e.WIDGET_DID_LOAD = "widgetDidLoad", e.WIDGET_DID_UPDATE = "widgetDidUpdate", e.WIDGET_LOAD = "widgetLoad", e.WIDGET_STORE = "widgetStore", e.WIDGET_UPDATE = "widgetUpdate", e))(I || {}), D = /* @__PURE__ */ ((e) => (e.APPROVED = "approved", e.BEFORE = "before", e.DELAYED = "delayed", e.NONE = "none", e.REALTIME = "realtime", e))(D || {}), P = /* @__PURE__ */ ((e) => (e.KEYVAL = "keyval", e.LOCAL = "local", e.SESSION = "session", e.DEXIE = "dexie", e.WINDOW = "window", e))(P || {});
|
|
2
2
|
function J(e) {
|
|
3
3
|
const t = e.toUpperCase().split(/[\s_-]+/);
|
|
4
4
|
return t.length > 0 ? (t.forEach((r, n) => {
|
|
@@ -133,11 +133,11 @@ function E(e) {
|
|
|
133
133
|
);
|
|
134
134
|
}
|
|
135
135
|
const de = (e) => [...new Set(e)], ue = (e) => e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
136
|
-
function
|
|
136
|
+
function fe(e, t = "font-bold") {
|
|
137
137
|
return `${e?.title !== null ? `<div class="${t}">${e.title}</div>` : ""}${e?.content ? e.content.replace(/\n\n/g, `
|
|
138
138
|
`).replace(/\n/g, "<br/>") : ""}`;
|
|
139
139
|
}
|
|
140
|
-
const
|
|
140
|
+
const pe = () => [b(2), b(1), b(1), b(1), b(3)].join("-"), b = (e) => {
|
|
141
141
|
let t = "";
|
|
142
142
|
for (let r = 0; r < e; r++)
|
|
143
143
|
t += ((1 + Math.random()) * 65536 | 0).toString(16).substring(1);
|
|
@@ -148,7 +148,7 @@ function k(e, t) {
|
|
|
148
148
|
e = `0${e}`;
|
|
149
149
|
return e;
|
|
150
150
|
}
|
|
151
|
-
function
|
|
151
|
+
function f(e, t) {
|
|
152
152
|
let r, n, o;
|
|
153
153
|
if (t.length === 0)
|
|
154
154
|
return e;
|
|
@@ -159,35 +159,35 @@ function p(e, t) {
|
|
|
159
159
|
function y(e, t, r) {
|
|
160
160
|
return Object.keys(t).sort().reduce(n, e);
|
|
161
161
|
function n(o, a) {
|
|
162
|
-
return
|
|
162
|
+
return L(o, t[a], a, r);
|
|
163
163
|
}
|
|
164
164
|
}
|
|
165
|
-
function
|
|
166
|
-
const o =
|
|
165
|
+
function L(e, t, r, n) {
|
|
166
|
+
const o = f(f(f(e, r), M(t)), typeof t);
|
|
167
167
|
if (t === null)
|
|
168
|
-
return
|
|
168
|
+
return f(o, "null");
|
|
169
169
|
if (t === void 0)
|
|
170
|
-
return
|
|
170
|
+
return f(o, "undefined");
|
|
171
171
|
if (typeof t == "object" || typeof t == "function") {
|
|
172
172
|
if (n.includes(t))
|
|
173
|
-
return
|
|
173
|
+
return f(o, `[Circular]${r}`);
|
|
174
174
|
n.push(t);
|
|
175
175
|
const a = y(o, t, n);
|
|
176
176
|
if (!("valueOf" in t) || typeof t.valueOf != "function")
|
|
177
177
|
return a;
|
|
178
178
|
try {
|
|
179
|
-
return
|
|
179
|
+
return f(a, String(t.valueOf()));
|
|
180
180
|
} catch (l) {
|
|
181
|
-
return
|
|
181
|
+
return f(a, `[valueOf exception]${l.stack || l.message}`);
|
|
182
182
|
}
|
|
183
183
|
}
|
|
184
|
-
return
|
|
184
|
+
return f(o, t.toString());
|
|
185
185
|
}
|
|
186
186
|
function M(e) {
|
|
187
187
|
return Object.prototype.toString.call(e);
|
|
188
188
|
}
|
|
189
189
|
function ge(e) {
|
|
190
|
-
return k(
|
|
190
|
+
return k(L(0, e, "", []).toString(16), 8);
|
|
191
191
|
}
|
|
192
192
|
const be = (e) => {
|
|
193
193
|
let t = "";
|
|
@@ -259,8 +259,8 @@ const be = (e) => {
|
|
|
259
259
|
for (d = a.length - 1; d >= 0 && a[d] != s; d--)
|
|
260
260
|
;
|
|
261
261
|
if (d >= 0) {
|
|
262
|
-
for (let
|
|
263
|
-
t.end && t.end(a[
|
|
262
|
+
for (let p = a.length - 1; p >= d; p--)
|
|
263
|
+
t.end && t.end(a[p]);
|
|
264
264
|
a.length = d;
|
|
265
265
|
}
|
|
266
266
|
};
|
|
@@ -286,11 +286,11 @@ const be = (e) => {
|
|
|
286
286
|
l = e;
|
|
287
287
|
}
|
|
288
288
|
i();
|
|
289
|
-
function u(c, s, d,
|
|
289
|
+
function u(c, s, d, p) {
|
|
290
290
|
if (s = s.toLowerCase(), C[s])
|
|
291
291
|
for (; a.at(-1) && S[a.at(-1)]; )
|
|
292
292
|
i("", a.at(-1));
|
|
293
|
-
if (G[s] && a.at(-1) == s && i("", s),
|
|
293
|
+
if (G[s] && a.at(-1) == s && i("", s), p = $[s] || !!p, p || a.push(s), t.start) {
|
|
294
294
|
const O = [];
|
|
295
295
|
d.replace(U, function(Q, A) {
|
|
296
296
|
let _ = arguments[2] ? arguments[2] : arguments[3] ? arguments[3] : arguments[4] ? arguments[4] : B[A] ? A : "";
|
|
@@ -300,7 +300,7 @@ const be = (e) => {
|
|
|
300
300
|
escaped: _.replace(/(^|[^\\])"/g, '$1\\"')
|
|
301
301
|
//"
|
|
302
302
|
});
|
|
303
|
-
}), t.start && t.start(s, O,
|
|
303
|
+
}), t.start && t.start(s, O, p);
|
|
304
304
|
}
|
|
305
305
|
}
|
|
306
306
|
};
|
|
@@ -440,11 +440,11 @@ const he = (e) => {
|
|
|
440
440
|
break;
|
|
441
441
|
}
|
|
442
442
|
}, _e = (e) => e.replace(/\<\!--\s*?[^\s?\[][\s\S]*?--\>/g, "").replace(/\>\s*\</g, "><").replace(/\t/g, ""), we = (e) => e.replace(/\>\</g, `>
|
|
443
|
-
<`), Re = (e) => e.replace(/\/\*.*\*\/|\/\*[\s\S]*?\*\/|\n|\t|\v|\s{2,}/g, "").replace(/\s*\{\s*/g, "{").replace(/\s*\}\s*/g, "}").replace(/\s*\:\s*/g, ":").replace(/\s*\;\s*/g, ";").replace(/\s*\,\s*/g, ",").replace(/\s*\~\s*/g, "~").replace(/\s*\>\s*/g, ">").replace(/\s*\+\s*/g, "+").replace(/\s*\!\s*/g, "!"),
|
|
443
|
+
<`), Re = (e) => e.replace(/\/\*.*\*\/|\/\*[\s\S]*?\*\/|\n|\t|\v|\s{2,}/g, "").replace(/\s*\{\s*/g, "{").replace(/\s*\}\s*/g, "}").replace(/\s*\:\s*/g, ":").replace(/\s*\;\s*/g, ";").replace(/\s*\,\s*/g, ",").replace(/\s*\~\s*/g, "~").replace(/\s*\>\s*/g, ">").replace(/\s*\+\s*/g, "+").replace(/\s*\!\s*/g, "!"), Le = (e) => e.replace(/\,/g, ", ").replace(/\{/g, ` {
|
|
444
444
|
`).replace(/\}/g, `}
|
|
445
445
|
`).replace(/\;/g, `;
|
|
446
446
|
`);
|
|
447
|
-
function
|
|
447
|
+
function Ie(e, t) {
|
|
448
448
|
const r = [
|
|
449
449
|
{ value: 1, symbol: "" },
|
|
450
450
|
{ value: 1e3, symbol: "K" },
|
|
@@ -482,9 +482,11 @@ function ke(e) {
|
|
|
482
482
|
}
|
|
483
483
|
}
|
|
484
484
|
function ye(e) {
|
|
485
|
-
const t =
|
|
486
|
-
|
|
487
|
-
|
|
485
|
+
const t = e.filter(
|
|
486
|
+
(r) => r !== void 0
|
|
487
|
+
);
|
|
488
|
+
return t.forEach((r) => {
|
|
489
|
+
if (window.BuzzCasting.getOptions().suspended === !0 ? r.content = "License suspended, please contact your Sales Representative to restore service" : r.content = r.content?.replace(
|
|
488
490
|
/(https?:\/\/)?([\da-z.-]+)\.([a-z.]{2,6})([/\w .-]*)((\?.*)?)/g,
|
|
489
491
|
""
|
|
490
492
|
) || "", r.sender !== null)
|
|
@@ -519,7 +521,7 @@ function ye(e) {
|
|
|
519
521
|
const n = new URL(r.link);
|
|
520
522
|
r.sender.title = n.hostname.replace("www.", "");
|
|
521
523
|
}
|
|
522
|
-
}),
|
|
524
|
+
}), t;
|
|
523
525
|
}
|
|
524
526
|
function Me(e, t, r, n) {
|
|
525
527
|
e.stopPropagation(), t.showModal({
|
|
@@ -601,7 +603,7 @@ var X = /* @__PURE__ */ ((e) => (e.MultiPolygon = "MultiPolygon", e.Polygon = "P
|
|
|
601
603
|
export {
|
|
602
604
|
h as API,
|
|
603
605
|
m as CSS,
|
|
604
|
-
|
|
606
|
+
I as EVENTS,
|
|
605
607
|
x as HTMLParser,
|
|
606
608
|
me as HTMLtoDOM,
|
|
607
609
|
be as HTMLtoXML,
|
|
@@ -623,8 +625,8 @@ export {
|
|
|
623
625
|
E as deepMerge,
|
|
624
626
|
ue as escape,
|
|
625
627
|
N as filterAttributes,
|
|
626
|
-
|
|
627
|
-
|
|
628
|
+
fe as formatContent,
|
|
629
|
+
pe as getGuid,
|
|
628
630
|
Te as getKey,
|
|
629
631
|
Pe as getParameterByName,
|
|
630
632
|
ve as getQueryParam,
|
|
@@ -635,12 +637,12 @@ export {
|
|
|
635
637
|
xe as isEmpty,
|
|
636
638
|
F as json2html,
|
|
637
639
|
Oe as log,
|
|
638
|
-
|
|
640
|
+
Le as maxifyCss,
|
|
639
641
|
we as maxifyHtml,
|
|
640
642
|
Re as minifyCss,
|
|
641
643
|
_e as minifyHtml,
|
|
642
644
|
We as moderation,
|
|
643
|
-
|
|
645
|
+
Ie as numberFormatter,
|
|
644
646
|
ae as randomColor,
|
|
645
647
|
le as randomRGB,
|
|
646
648
|
se as randomRGBA,
|