buzzcasting-utils 1.5.4 → 1.5.5
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.
|
@@ -159,7 +159,9 @@ export declare enum EVENTS {
|
|
|
159
159
|
ERROR = "error",
|
|
160
160
|
HIDE_MESSAGE = "hideMessage",
|
|
161
161
|
HIDE_LABELS = "hideLabels",
|
|
162
|
-
|
|
162
|
+
IMAGE_GET = "getImage",
|
|
163
|
+
IMAGE_SET = "setImage",
|
|
164
|
+
LAUPPUT_UPDATE = "layoutUpdate",
|
|
163
165
|
PREV_SLIDE = "prevSlide",
|
|
164
166
|
RELOAD_PRESENTATION = "reloadPresentation",
|
|
165
167
|
STAR_MESSAGE = "starMessage",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var m = /* @__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))(m || {}), h = /* @__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))(h || {}),
|
|
1
|
+
var m = /* @__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))(m || {}), h = /* @__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))(h || {}), I = /* @__PURE__ */ ((e) => (e.ADD_SLIDE = "addSlide", e.APP_READY = "appReady", e.API_UPDATE = "apiUpdate", 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.CSS_SET = "setCss", e.CSS_STORE = "storeCss", e.DASHBOARD_LOAD = "loadDashboard", e.DASHBOARD_STORE = "storeDashboard", e.ERROR = "error", e.HIDE_MESSAGE = "hideMessage", e.HIDE_LABELS = "hideLabels", e.IMAGE_GET = "getImage", e.IMAGE_SET = "setImage", 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.PAUSE_PRESENTATION = "pausePresentation", e.PRESENTATION_READY = "presentationReady", e.PRESENTATION_LOAD = "loadPresentation", e.PRESENTATION_STORE = "storePresentation", 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_SET = "setSlide", e.SLIDE_STORE = "storeSlide", e.SLIDE_TRANSITIONER = "slideTransitioner", 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.VERSION = "version", e.WIDGETS_CLEAR = "widgetsClear", e.WIDGET_LOAD = "widgetLoad", e.WIDGET_STORE = "widgetStore", e.WIDGET_UPDATE = "widgetUpdate", e))(I || {}), x = /* @__PURE__ */ ((e) => (e.APPROVED = "approved", e.BEFORE = "before", e.DELAYED = "delayed", e.NONE = "none", e.REALTIME = "realtime", e))(x || {}), E = /* @__PURE__ */ ((e) => (e.KEYVAL = "keyval", e.LOCAL = "local", e.SESSION = "session", e.DEXIE = "dexie", e.WINDOW = "window", e))(E || {});
|
|
2
2
|
function J(e) {
|
|
3
3
|
const t = e.toUpperCase().split(/[\s_-]+/);
|
|
4
4
|
return t.length > 0 ? (t.forEach((r, n) => {
|
|
@@ -39,7 +39,7 @@ function V(e) {
|
|
|
39
39
|
const t = {};
|
|
40
40
|
for (let r = 0; r < e.length; r++) {
|
|
41
41
|
const n = e[r];
|
|
42
|
-
n.name !== "class" && (t[n.name] =
|
|
42
|
+
n.name !== "class" && (t[n.name] = v(n.value));
|
|
43
43
|
}
|
|
44
44
|
return t;
|
|
45
45
|
}
|
|
@@ -90,7 +90,7 @@ function ee(e, t) {
|
|
|
90
90
|
function te(e) {
|
|
91
91
|
return e.replace(/^\w|[A-Z]|\b\w/g, (t, r) => r === 0 ? t.toLowerCase() : t.toUpperCase()).replace(/\s+/g, "");
|
|
92
92
|
}
|
|
93
|
-
function
|
|
93
|
+
function v(e) {
|
|
94
94
|
return e.toLowerCase().split("-").reduce((t, r) => t + (r.charAt(0).toUpperCase() + r.slice(1)));
|
|
95
95
|
}
|
|
96
96
|
const re = (e) => e.charAt(0).toUpperCase() + e.slice(1);
|
|
@@ -112,12 +112,12 @@ const oe = () => Math.floor(Math.random() * 16777215).toString(16), ae = () => {
|
|
|
112
112
|
let r = e.split(",");
|
|
113
113
|
return r = r.map((n) => parseFloat(n.trim()).toString()), e = "background-color: rgba(" + parseInt(r[0]) + "," + parseInt(r[1]) + "," + parseInt(r[2]) + "," + t + ");", e;
|
|
114
114
|
};
|
|
115
|
-
function
|
|
115
|
+
function k(e) {
|
|
116
116
|
e.reduce(
|
|
117
117
|
(t, r) => Object.keys(r).reduce(
|
|
118
118
|
(n, o) => ({
|
|
119
119
|
...n,
|
|
120
|
-
[o]: o in t && typeof t[o] == "object" && t[o] !== null && typeof r[o] == "object" && r[o] !== null ?
|
|
120
|
+
[o]: o in t && typeof t[o] == "object" && t[o] !== null && typeof r[o] == "object" && r[o] !== null ? k([t[o], r[o]]) : r[o]
|
|
121
121
|
}),
|
|
122
122
|
t
|
|
123
123
|
),
|
|
@@ -183,7 +183,7 @@ function fe(e) {
|
|
|
183
183
|
}
|
|
184
184
|
const pe = (e) => {
|
|
185
185
|
let t = "";
|
|
186
|
-
return
|
|
186
|
+
return D(e, {
|
|
187
187
|
start: function(r, n, o) {
|
|
188
188
|
t += "<" + r;
|
|
189
189
|
for (let a = 0; a < n.length; a++)
|
|
@@ -210,7 +210,7 @@ const pe = (e) => {
|
|
|
210
210
|
}(), t.getElementsByTagName)
|
|
211
211
|
for (let i in r) r[i] = t.getElementsByTagName(i)[0];
|
|
212
212
|
let l = r.body;
|
|
213
|
-
return
|
|
213
|
+
return D(e, {
|
|
214
214
|
start: function(i, u, c) {
|
|
215
215
|
if (r[i]) {
|
|
216
216
|
l = r[i], c || o.push(l);
|
|
@@ -242,7 +242,7 @@ const pe = (e) => {
|
|
|
242
242
|
"abbr,acronym,applet,b,basefont,bdo,big,br,button,cite,code,del,dfn,em,font,i,iframe,img,input,ins,kbd,label,map,object,q,s,samp,script,select,small,span,strike,strong,sub,sup,textarea,tt,u,var"
|
|
243
243
|
), B = g("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr"), G = g(
|
|
244
244
|
"checked,compact,declare,defer,disabled,ismap,multiple,nohref,noresize,noshade,nowrap,readonly,selected"
|
|
245
|
-
), T = g("script,style"),
|
|
245
|
+
), T = g("script,style"), D = (e, t) => {
|
|
246
246
|
let r, n, o, a = [], l = e;
|
|
247
247
|
const i = (c, s) => {
|
|
248
248
|
let d;
|
|
@@ -284,10 +284,10 @@ const pe = (e) => {
|
|
|
284
284
|
i("", a.at(-1));
|
|
285
285
|
if (B[s] && a.at(-1) == s && i("", s), p = S[s] || !!p, p || a.push(s), t.start) {
|
|
286
286
|
const w = [];
|
|
287
|
-
d.replace(y, function(j,
|
|
288
|
-
let O = arguments[2] ? arguments[2] : arguments[3] ? arguments[3] : arguments[4] ? arguments[4] : G[
|
|
287
|
+
d.replace(y, function(j, A) {
|
|
288
|
+
let O = arguments[2] ? arguments[2] : arguments[3] ? arguments[3] : arguments[4] ? arguments[4] : G[A] ? A : "";
|
|
289
289
|
w.push({
|
|
290
|
-
name:
|
|
290
|
+
name: A,
|
|
291
291
|
value: O,
|
|
292
292
|
escaped: O.replace(/(^|[^\\])"/g, '$1\\"')
|
|
293
293
|
//"
|
|
@@ -308,7 +308,7 @@ const be = (e) => {
|
|
|
308
308
|
node: "root",
|
|
309
309
|
child: []
|
|
310
310
|
};
|
|
311
|
-
return
|
|
311
|
+
return D(e, {
|
|
312
312
|
start: function(n, o, a) {
|
|
313
313
|
let l = {
|
|
314
314
|
node: "element",
|
|
@@ -424,8 +424,8 @@ const be = (e) => {
|
|
|
424
424
|
console.error(...t);
|
|
425
425
|
break;
|
|
426
426
|
}
|
|
427
|
-
}, xe = (e) => e.replace(/\<\!--\s*?[^\s?\[][\s\S]*?--\>/g, "").replace(/\>\s*\</g, "><").replace(/\t/g, ""),
|
|
428
|
-
<`),
|
|
427
|
+
}, xe = (e) => e.replace(/\<\!--\s*?[^\s?\[][\s\S]*?--\>/g, "").replace(/\>\s*\</g, "><").replace(/\t/g, ""), Ae = (e) => e.replace(/\>\</g, `>
|
|
428
|
+
<`), De = (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, "!"), we = (e) => e.replace(/\,/g, ", ").replace(/\{/g, ` {
|
|
429
429
|
`).replace(/\}/g, `}
|
|
430
430
|
`).replace(/\;/g, `;
|
|
431
431
|
`);
|
|
@@ -455,7 +455,7 @@ const _e = (e) => new Proxy(new URLSearchParams(window.location.search), {
|
|
|
455
455
|
function Le(e) {
|
|
456
456
|
return e[Math.floor(Math.random() * e.length)];
|
|
457
457
|
}
|
|
458
|
-
function
|
|
458
|
+
function Ie(e) {
|
|
459
459
|
switch (e.language) {
|
|
460
460
|
case "ar":
|
|
461
461
|
return {
|
|
@@ -466,7 +466,7 @@ function Ee(e) {
|
|
|
466
466
|
return {};
|
|
467
467
|
}
|
|
468
468
|
}
|
|
469
|
-
function
|
|
469
|
+
function Ee(e) {
|
|
470
470
|
const t = window.BuzzCasting.getOptions().suspended ?? !1;
|
|
471
471
|
return e.forEach((r) => {
|
|
472
472
|
var n;
|
|
@@ -507,13 +507,13 @@ function ve(e) {
|
|
|
507
507
|
}
|
|
508
508
|
}), e;
|
|
509
509
|
}
|
|
510
|
-
function
|
|
510
|
+
function ve(e, t, r, n) {
|
|
511
511
|
e.stopPropagation(), t.showModal({
|
|
512
512
|
showComponent: "card-modal",
|
|
513
513
|
props: { data: r, options: n }
|
|
514
514
|
});
|
|
515
515
|
}
|
|
516
|
-
function
|
|
516
|
+
function ke(e) {
|
|
517
517
|
const t = [...e];
|
|
518
518
|
for (let r = t.length - 1; r > 0; r--) {
|
|
519
519
|
const n = Math.floor(Math.random() * (r + 1));
|
|
@@ -589,25 +589,25 @@ var X = /* @__PURE__ */ ((e) => (e.MultiPolygon = "MultiPolygon", e.Polygon = "P
|
|
|
589
589
|
export {
|
|
590
590
|
m as API,
|
|
591
591
|
h as CSS,
|
|
592
|
-
|
|
593
|
-
|
|
592
|
+
I as EVENTS,
|
|
593
|
+
D as HTMLParser,
|
|
594
594
|
ge as HTMLtoDOM,
|
|
595
595
|
pe as HTMLtoXML,
|
|
596
596
|
x as MODERATION,
|
|
597
597
|
le as RGBAchangeA,
|
|
598
|
-
|
|
598
|
+
E as STORAGE,
|
|
599
599
|
Q as ShapeType,
|
|
600
600
|
X as Type,
|
|
601
601
|
J as anonymize,
|
|
602
602
|
z as attachedMedia,
|
|
603
603
|
q as attrs,
|
|
604
604
|
ee as brandLogo,
|
|
605
|
-
|
|
605
|
+
v as camelCase,
|
|
606
606
|
V as camelCasedProps,
|
|
607
607
|
te as camelize,
|
|
608
608
|
re as capitalizeFirstLetter,
|
|
609
609
|
ne as clearContents,
|
|
610
|
-
|
|
610
|
+
k as deepMerge,
|
|
611
611
|
ce as escape,
|
|
612
612
|
N as filterAttributes,
|
|
613
613
|
de as formatContent,
|
|
@@ -621,8 +621,8 @@ export {
|
|
|
621
621
|
F as json2html,
|
|
622
622
|
me as log,
|
|
623
623
|
we as maxifyCss,
|
|
624
|
-
|
|
625
|
-
|
|
624
|
+
Ae as maxifyHtml,
|
|
625
|
+
De as minifyCss,
|
|
626
626
|
xe as minifyHtml,
|
|
627
627
|
Be as moderation,
|
|
628
628
|
Oe as numberFormatter,
|
|
@@ -631,10 +631,10 @@ export {
|
|
|
631
631
|
ie as randomRGBA,
|
|
632
632
|
ae as randomRGBAfull,
|
|
633
633
|
Le as randomValue,
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
634
|
+
Ie as rtl,
|
|
635
|
+
Ee as sanitize,
|
|
636
|
+
ve as showModal,
|
|
637
|
+
ke as shuffleMessages,
|
|
638
638
|
Pe as stringGen,
|
|
639
639
|
$e as typeCss,
|
|
640
640
|
Me as uniq,
|