buzzcasting-utils 1.3.13 → 1.3.15
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.
|
@@ -148,8 +148,11 @@ export declare enum EVENTS {
|
|
|
148
148
|
APPROVE_MESSAGE = "approveMessage",
|
|
149
149
|
CHANNEL = "channel",
|
|
150
150
|
CLEAN_MESSAGES = "cleanMessages",
|
|
151
|
-
|
|
151
|
+
CLOSE_BUILDER_DIALOG = "closeBuilderDialog",
|
|
152
152
|
CLOSE_BUILDER_MODAL = "closeBuilderModal",
|
|
153
|
+
CLOSE_MODAL = "closeModal",
|
|
154
|
+
CSS_SET = "setCss",
|
|
155
|
+
CSS_STORE = "storeCss",
|
|
153
156
|
DASHBOARD_LOAD = "loadDashboard",
|
|
154
157
|
DASHBOARD_STORE = "storeDashboard",
|
|
155
158
|
ERROR = "error",
|
|
@@ -158,7 +161,6 @@ export declare enum EVENTS {
|
|
|
158
161
|
MAUPPUT_UPDATE = "layoutUpdate",
|
|
159
162
|
PREV_SLIDE = "prevSlide",
|
|
160
163
|
RELOAD_PRESENTATION = "reloadPresentation",
|
|
161
|
-
SHOW_MODAL = "showModal",
|
|
162
164
|
STAR_MESSAGE = "starMessage",
|
|
163
165
|
GOTO_SLIDE = "gotoSlide",
|
|
164
166
|
NEXT_SLIDE = "nextSlide",
|
|
@@ -168,7 +170,9 @@ export declare enum EVENTS {
|
|
|
168
170
|
PRESENTATION_READY = "presentationReady",
|
|
169
171
|
PRESENTATION_LOAD = "loadPresentation",
|
|
170
172
|
PRESENTATION_STORE = "storePresentation",
|
|
173
|
+
SHOW_BUILDER_DIALOG = "showBuilderDialog",
|
|
171
174
|
SHOW_BUILDER_MODAL = "showBuilderModal",
|
|
175
|
+
SHOW_MODAL = "showModal",
|
|
172
176
|
SLIDE_DID_LOAD = "slideDidLoad",
|
|
173
177
|
SLIDE_GOTO = "slideGoto",
|
|
174
178
|
SLIDE_READY = "slideReady",
|
|
@@ -1084,6 +1088,7 @@ export declare interface IStorageOptions {
|
|
|
1084
1088
|
bearer?: string;
|
|
1085
1089
|
csrf?: string;
|
|
1086
1090
|
moderation?: string;
|
|
1091
|
+
nonce?: string;
|
|
1087
1092
|
beforeTime?: string;
|
|
1088
1093
|
delay?: number;
|
|
1089
1094
|
period?: number;
|
|
@@ -1199,7 +1204,7 @@ export declare interface MessagesAttr {
|
|
|
1199
1204
|
edit?: string;
|
|
1200
1205
|
}
|
|
1201
1206
|
|
|
1202
|
-
export declare const minifyCss: (css: string) =>
|
|
1207
|
+
export declare const minifyCss: (css: string) => string;
|
|
1203
1208
|
|
|
1204
1209
|
export declare const minifyHtml: (html: string) => string;
|
|
1205
1210
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var m = /* @__PURE__ */ ((e) => (e.MESSAGES = "messages", e.CLOUD = "cloud", e.SERIES = "series", e.TOPICS = "topics", e.WIDGET = "widget", e.WIDGETS = "widgets", e.DASHBOARD = "dashboard", e.DASHBOARDS = "dashboards", e.SLIDE = "slide", e.SLIDES = "slides", e.PRESENTATION = "presentation", e.PRESENTATIONS = "presentations", e.PREFERENCE = "preference", e.PREFERENCES = "preferences", 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 || {}), v = /* @__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.
|
|
1
|
+
var m = /* @__PURE__ */ ((e) => (e.MESSAGES = "messages", e.CLOUD = "cloud", e.SERIES = "series", e.TOPICS = "topics", e.WIDGET = "widget", e.WIDGETS = "widgets", e.DASHBOARD = "dashboard", e.DASHBOARDS = "dashboards", e.SLIDE = "slide", e.SLIDES = "slides", e.PRESENTATION = "presentation", e.PRESENTATIONS = "presentations", e.PREFERENCE = "preference", e.PREFERENCES = "preferences", 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 || {}), v = /* @__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.MAUPPUT_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_GOTO = "slideGoto", e.SLIDE_READY = "slideReady", e.SLIDE_LOAD = "loadSlide", 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))(v || {}), 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) => {
|
|
@@ -19,7 +19,7 @@ function z(e) {
|
|
|
19
19
|
video: t
|
|
20
20
|
};
|
|
21
21
|
}
|
|
22
|
-
function
|
|
22
|
+
function q(e) {
|
|
23
23
|
const t = {};
|
|
24
24
|
for (let r = 0; r < e.length; r++) {
|
|
25
25
|
const n = e.item(r);
|
|
@@ -27,7 +27,7 @@ function N(e) {
|
|
|
27
27
|
}
|
|
28
28
|
return t;
|
|
29
29
|
}
|
|
30
|
-
function
|
|
30
|
+
function N(e) {
|
|
31
31
|
const t = {};
|
|
32
32
|
for (let r = 0; r < e.length; r++) {
|
|
33
33
|
const n = e[r];
|
|
@@ -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] = P(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 P(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
|
),
|
|
@@ -135,7 +135,7 @@ const ue = () => [b(2), b(1), b(1), b(1), b(3)].join("-"), b = (e) => {
|
|
|
135
135
|
t += ((1 + Math.random()) * 65536 | 0).toString(16).substring(1);
|
|
136
136
|
return t;
|
|
137
137
|
};
|
|
138
|
-
function
|
|
138
|
+
function I(e, t) {
|
|
139
139
|
for (; e.length < t; )
|
|
140
140
|
e = `0${e}`;
|
|
141
141
|
return e;
|
|
@@ -148,13 +148,13 @@ function f(e, t) {
|
|
|
148
148
|
n = t.charCodeAt(r), e = (e << 5) - e + n, e |= 0;
|
|
149
149
|
return e < 0 ? e * -2 : e;
|
|
150
150
|
}
|
|
151
|
-
function
|
|
151
|
+
function $(e, t, r) {
|
|
152
152
|
return Object.keys(t).sort().reduce(n, e);
|
|
153
153
|
function n(o, a) {
|
|
154
|
-
return
|
|
154
|
+
return L(o, t[a], a, r);
|
|
155
155
|
}
|
|
156
156
|
}
|
|
157
|
-
function
|
|
157
|
+
function L(e, t, r, n) {
|
|
158
158
|
const o = f(f(f(e, r), M(t)), typeof t);
|
|
159
159
|
if (t === null)
|
|
160
160
|
return f(o, "null");
|
|
@@ -164,7 +164,7 @@ function _(e, t, r, n) {
|
|
|
164
164
|
if (n.includes(t))
|
|
165
165
|
return f(o, `[Circular]${r}`);
|
|
166
166
|
n.push(t);
|
|
167
|
-
const a =
|
|
167
|
+
const a = $(o, t, n);
|
|
168
168
|
if (!("valueOf" in t) || typeof t.valueOf != "function")
|
|
169
169
|
return a;
|
|
170
170
|
try {
|
|
@@ -179,7 +179,7 @@ function M(e) {
|
|
|
179
179
|
return Object.prototype.toString.call(e);
|
|
180
180
|
}
|
|
181
181
|
function fe(e) {
|
|
182
|
-
return
|
|
182
|
+
return I(L(0, e, "", []).toString(16), 8);
|
|
183
183
|
}
|
|
184
184
|
const pe = (e) => {
|
|
185
185
|
let t = "";
|
|
@@ -234,15 +234,15 @@ const pe = (e) => {
|
|
|
234
234
|
let t = {}, r = e.split(",");
|
|
235
235
|
for (let n = 0; n < r.length; n++) t[r[n]] = !0;
|
|
236
236
|
return t;
|
|
237
|
-
}, R = /^<([-A-Za-z0-9_]+)((?:\s+[a-zA-Z_:][-a-zA-Z0-9_:.]*(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)>/,
|
|
237
|
+
}, R = /^<([-A-Za-z0-9_]+)((?:\s+[a-zA-Z_:][-a-zA-Z0-9_:.]*(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)>/, _ = /^<\/([-A-Za-z0-9_]+)[^>]*>/, y = /([a-zA-Z_:][-a-zA-Z0-9_:.]*)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|([^>\s]+)))?/g, C = g(
|
|
238
238
|
"area,base,basefont,br,col,frame,hr,img,input,link,meta,param,embed,command,keygen,source,track,wbr"
|
|
239
|
-
),
|
|
239
|
+
), S = g(
|
|
240
240
|
"a,address,article,applet,aside,audio,blockquote,button,canvas,center,dd,del,dir,div,dl,dt,fieldset,figcaption,figure,footer,form,frameset,h1,h2,h3,h4,h5,h6,header,hgroup,hr,iframe,ins,isindex,li,map,menu,noframes,noscript,object,ol,output,p,pre,section,script,table,tbody,td,tfoot,th,thead,tr,ul,video"
|
|
241
241
|
), U = g(
|
|
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
|
-
), B = g("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr"),
|
|
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
|
-
),
|
|
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;
|
|
@@ -257,8 +257,8 @@ const pe = (e) => {
|
|
|
257
257
|
}
|
|
258
258
|
};
|
|
259
259
|
for (; e; ) {
|
|
260
|
-
if (n = !0, !a.at(-1) || !
|
|
261
|
-
if (e.indexOf("<!--") == 0 ? (r = e.indexOf("-->"), r >= 0 && (t.comment && t.comment(e.substring(4, r)), e = e.substring(r + 3), n = !1)) : e.indexOf("</") == 0 ? (o = e.match(
|
|
260
|
+
if (n = !0, !a.at(-1) || !T[a.at(-1)]) {
|
|
261
|
+
if (e.indexOf("<!--") == 0 ? (r = e.indexOf("-->"), r >= 0 && (t.comment && t.comment(e.substring(4, r)), e = e.substring(r + 3), n = !1)) : e.indexOf("</") == 0 ? (o = e.match(_), o && (e = e.substring(o[0].length), o[0].replace(_, i), n = !1)) : e.indexOf("<") == 0 && (o = e.match(R), o && (e = e.substring(o[0].length), o[0].replace(R, u), n = !1)), n) {
|
|
262
262
|
r = e.indexOf("<");
|
|
263
263
|
let c = r < 0 ? e : e.substring(0, r);
|
|
264
264
|
e = r < 0 ? "" : e.substring(r), t.chars && t.chars(c);
|
|
@@ -279,13 +279,13 @@ const pe = (e) => {
|
|
|
279
279
|
}
|
|
280
280
|
i();
|
|
281
281
|
function u(c, s, d, p) {
|
|
282
|
-
if (s = s.toLowerCase(),
|
|
282
|
+
if (s = s.toLowerCase(), S[s])
|
|
283
283
|
for (; a.at(-1) && U[a.at(-1)]; )
|
|
284
284
|
i("", a.at(-1));
|
|
285
|
-
if (B[s] && a.at(-1) == s && i("", s), p =
|
|
285
|
+
if (B[s] && a.at(-1) == s && i("", s), p = C[s] || !!p, p || a.push(s), t.start) {
|
|
286
286
|
const w = [];
|
|
287
287
|
d.replace(y, function(j, A) {
|
|
288
|
-
let O = arguments[2] ? arguments[2] : arguments[3] ? arguments[3] : arguments[4] ? arguments[4] :
|
|
288
|
+
let O = arguments[2] ? arguments[2] : arguments[3] ? arguments[3] : arguments[4] ? arguments[4] : G[A] ? A : "";
|
|
289
289
|
w.push({
|
|
290
290
|
name: A,
|
|
291
291
|
value: O,
|
|
@@ -425,9 +425,7 @@ const be = (e) => {
|
|
|
425
425
|
break;
|
|
426
426
|
}
|
|
427
427
|
}, xe = (e) => e.replace(/\<\!--\s*?[^\s?\[][\s\S]*?--\>/g, "").replace(/\>\s*\</g, "><").replace(/\t/g, ""), Ae = (e) => e.replace(/\>\</g, `>
|
|
428
|
-
<`), De = (e) => {
|
|
429
|
-
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, "!");
|
|
430
|
-
}, we = (e) => e.replace(/\,/g, ", ").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, ` {
|
|
431
429
|
`).replace(/\}/g, `}
|
|
432
430
|
`).replace(/\;/g, `;
|
|
433
431
|
`);
|
|
@@ -450,11 +448,11 @@ function Re(e) {
|
|
|
450
448
|
const t = RegExp(`[?&]${e}=([^&]*)`).exec(window.location.search);
|
|
451
449
|
return t && decodeURIComponent(t[1].replace(/\+/g, " ")) || null;
|
|
452
450
|
}
|
|
453
|
-
const
|
|
451
|
+
const _e = (e) => new Proxy(new URLSearchParams(window.location.search), {
|
|
454
452
|
// @ts-ignore
|
|
455
453
|
get: (r, n) => r.get(n)
|
|
456
454
|
})[e];
|
|
457
|
-
function
|
|
455
|
+
function Le(e) {
|
|
458
456
|
return e[Math.floor(Math.random() * e.length)];
|
|
459
457
|
}
|
|
460
458
|
function ve(e) {
|
|
@@ -468,7 +466,7 @@ function ve(e) {
|
|
|
468
466
|
return {};
|
|
469
467
|
}
|
|
470
468
|
}
|
|
471
|
-
function
|
|
469
|
+
function Ee(e) {
|
|
472
470
|
const t = window.BuzzCasting.getOptions().suspended ?? !1;
|
|
473
471
|
return e.forEach((r) => {
|
|
474
472
|
var n;
|
|
@@ -509,13 +507,13 @@ function Pe(e) {
|
|
|
509
507
|
}
|
|
510
508
|
}), e;
|
|
511
509
|
}
|
|
512
|
-
function
|
|
510
|
+
function Pe(e, t, r, n) {
|
|
513
511
|
e.stopPropagation(), t.showModal({
|
|
514
512
|
showComponent: "card-modal",
|
|
515
513
|
props: { data: r, options: n }
|
|
516
514
|
});
|
|
517
515
|
}
|
|
518
|
-
function
|
|
516
|
+
function ke(e) {
|
|
519
517
|
const t = [...e];
|
|
520
518
|
for (let r = t.length - 1; r > 0; r--) {
|
|
521
519
|
const n = Math.floor(Math.random() * (r + 1));
|
|
@@ -523,13 +521,13 @@ function Le(e) {
|
|
|
523
521
|
}
|
|
524
522
|
return t;
|
|
525
523
|
}
|
|
526
|
-
function
|
|
524
|
+
function Ie() {
|
|
527
525
|
let e = "";
|
|
528
526
|
const t = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
|
|
529
527
|
for (let r = 0; r < 7; r++) e += t.charAt(Math.floor(Math.random() * t.length));
|
|
530
528
|
return e;
|
|
531
529
|
}
|
|
532
|
-
const
|
|
530
|
+
const $e = (e) => {
|
|
533
531
|
switch (e == null ? void 0 : e.type) {
|
|
534
532
|
case m.MESSAGES:
|
|
535
533
|
return h.MESSAGES;
|
|
@@ -556,8 +554,8 @@ const Ie = (e) => {
|
|
|
556
554
|
default:
|
|
557
555
|
return "text-white text-xs";
|
|
558
556
|
}
|
|
559
|
-
},
|
|
560
|
-
function
|
|
557
|
+
}, Ce = (e, t, r) => Promise.race([e, Z(t, r)]), Z = (e, t) => new Promise((r, n) => setTimeout(() => t === void 0 ? r("ok") : n(t), e));
|
|
558
|
+
function Se(e) {
|
|
561
559
|
let t = `${e.type}.${e.topics}`;
|
|
562
560
|
return e.order && (t += `.${e.order}`), e.period && (t += `.${e.period}`), t;
|
|
563
561
|
}
|
|
@@ -597,26 +595,26 @@ export {
|
|
|
597
595
|
pe as HTMLtoXML,
|
|
598
596
|
x as MODERATION,
|
|
599
597
|
le as RGBAchangeA,
|
|
600
|
-
|
|
598
|
+
E as STORAGE,
|
|
601
599
|
Q as ShapeType,
|
|
602
600
|
X as Type,
|
|
603
601
|
J as anonymize,
|
|
604
602
|
z as attachedMedia,
|
|
605
|
-
|
|
603
|
+
q as attrs,
|
|
606
604
|
ee as brandLogo,
|
|
607
|
-
|
|
605
|
+
P as camelCase,
|
|
608
606
|
V as camelCasedProps,
|
|
609
607
|
te as camelize,
|
|
610
608
|
re as capitalizeFirstLetter,
|
|
611
609
|
ne as clearContents,
|
|
612
|
-
|
|
610
|
+
k as deepMerge,
|
|
613
611
|
ce as escape,
|
|
614
|
-
|
|
612
|
+
N as filterAttributes,
|
|
615
613
|
de as formatContent,
|
|
616
614
|
ue as getGuid,
|
|
617
|
-
|
|
615
|
+
Se as getKey,
|
|
618
616
|
Re as getParameterByName,
|
|
619
|
-
|
|
617
|
+
_e as getQueryParam,
|
|
620
618
|
fe as hashSum,
|
|
621
619
|
be as html2json,
|
|
622
620
|
he as intToString,
|
|
@@ -632,15 +630,15 @@ export {
|
|
|
632
630
|
se as randomRGB,
|
|
633
631
|
ie as randomRGBA,
|
|
634
632
|
ae as randomRGBAfull,
|
|
635
|
-
|
|
633
|
+
Le as randomValue,
|
|
636
634
|
ve as rtl,
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
635
|
+
Ee as sanitize,
|
|
636
|
+
Pe as showModal,
|
|
637
|
+
ke as shuffleMessages,
|
|
638
|
+
Ie as stringGen,
|
|
639
|
+
$e as typeCss,
|
|
642
640
|
Me as uniq,
|
|
643
641
|
ye as upDownColor,
|
|
644
642
|
Ue as widgetParams,
|
|
645
|
-
|
|
643
|
+
Ce as wrapPromise
|
|
646
644
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "buzzcasting-utils",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.3.
|
|
4
|
+
"version": "1.3.15",
|
|
5
5
|
"private": false,
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Mark Tamis, TouchFlows SAS",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"eslint": "^9.25.1",
|
|
42
42
|
"lint-staged": "^15.5.1",
|
|
43
43
|
"typescript": "^5.8.3",
|
|
44
|
-
"vite": "^6.3.
|
|
44
|
+
"vite": "^6.3.4",
|
|
45
45
|
"vite-plugin-dts": "^4.5.3",
|
|
46
46
|
"vitest": "^3.1.2"
|
|
47
47
|
},
|