buzzcasting-utils 1.3.5 → 1.3.7
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.
- package/dist/buzzcasting-utils.d.ts +949 -125
- package/dist/buzzcasting-utils.esm.js +87 -93
- package/package.json +9 -9
|
@@ -1,11 +1,11 @@
|
|
|
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 || {}),
|
|
2
|
-
function
|
|
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 || {}), P = /* @__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_MODAL = "closeModal", e.CLOSE_BUILDER_MODAL = "closeBuilderModal", 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.SHOW_MODAL = "showModal", 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_MODAL = "showBuilderModal", 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))(P || {}), x = /* @__PURE__ */ ((e) => (e.APPROVED = "approved", e.BEFORE = "before", e.DELAYED = "delayed", e.NONE = "none", e.REALTIME = "realtime", e))(x || {}), k = /* @__PURE__ */ ((e) => (e.KEYVAL = "keyval", e.LOCAL = "local", e.SESSION = "session", e.DEXIE = "dexie", e.WINDOW = "window", e))(k || {});
|
|
2
|
+
function J(e) {
|
|
3
3
|
const t = e.toUpperCase().split(/[\s_-]+/);
|
|
4
4
|
return t.length > 0 ? (t.forEach((r, n) => {
|
|
5
5
|
t[n] = `${r.charAt(0)}.`;
|
|
6
6
|
}), t.join(" ")) : "";
|
|
7
7
|
}
|
|
8
|
-
function
|
|
8
|
+
function z(e) {
|
|
9
9
|
let t = "", r = "", n = {
|
|
10
10
|
backgroundImage: ""
|
|
11
11
|
};
|
|
@@ -19,7 +19,7 @@ function J(e) {
|
|
|
19
19
|
video: t
|
|
20
20
|
};
|
|
21
21
|
}
|
|
22
|
-
function
|
|
22
|
+
function N(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 z(e) {
|
|
|
27
27
|
}
|
|
28
28
|
return t;
|
|
29
29
|
}
|
|
30
|
-
function
|
|
30
|
+
function q(e) {
|
|
31
31
|
const t = {};
|
|
32
32
|
for (let r = 0; r < e.length; r++) {
|
|
33
33
|
const n = e[r];
|
|
@@ -35,15 +35,15 @@ function N(e) {
|
|
|
35
35
|
}
|
|
36
36
|
return t;
|
|
37
37
|
}
|
|
38
|
-
function
|
|
38
|
+
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] = L(n.value));
|
|
43
43
|
}
|
|
44
44
|
return t;
|
|
45
45
|
}
|
|
46
|
-
function
|
|
46
|
+
function ee(e, t) {
|
|
47
47
|
switch (e) {
|
|
48
48
|
case "ax":
|
|
49
49
|
return '<div class="axa-switch-small bg-center bg-cover w-6 h-6"></div>';
|
|
@@ -87,34 +87,34 @@ function V(e, t) {
|
|
|
87
87
|
return "";
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
|
-
function
|
|
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 L(e) {
|
|
94
94
|
return e.toLowerCase().split("-").reduce((t, r) => t + (r.charAt(0).toUpperCase() + r.slice(1)));
|
|
95
95
|
}
|
|
96
|
-
const
|
|
97
|
-
function
|
|
96
|
+
const re = (e) => e.charAt(0).toUpperCase() + e.slice(1);
|
|
97
|
+
function ne(e) {
|
|
98
98
|
const t = document.createRange();
|
|
99
99
|
t.selectNodeContents(e), t.deleteContents();
|
|
100
100
|
}
|
|
101
|
-
function
|
|
101
|
+
function $(e) {
|
|
102
102
|
e.reduce(
|
|
103
103
|
(t, r) => Object.keys(r).reduce(
|
|
104
104
|
(n, o) => ({
|
|
105
105
|
...n,
|
|
106
|
-
[o]: o in t && typeof t[o] == "object" && t[o] !== null && typeof r[o] == "object" && r[o] !== null ?
|
|
106
|
+
[o]: o in t && typeof t[o] == "object" && t[o] !== null && typeof r[o] == "object" && r[o] !== null ? $([t[o], r[o]]) : r[o]
|
|
107
107
|
}),
|
|
108
108
|
t
|
|
109
109
|
),
|
|
110
110
|
{}
|
|
111
111
|
);
|
|
112
112
|
}
|
|
113
|
-
function
|
|
113
|
+
function oe(e, t = "font-bold") {
|
|
114
114
|
return `${(e == null ? void 0 : e.title.length) > 0 ? `<div class="${t}">${e.title}</div>` : ""}${e != null && e.content ? e.content.replace(/\n\n/g, `
|
|
115
115
|
`).replace(/\n/g, "<br/>") : ""}`;
|
|
116
116
|
}
|
|
117
|
-
const
|
|
117
|
+
const ae = () => [b(2), b(1), b(1), b(1), b(3)].join("-"), b = (e) => {
|
|
118
118
|
let t = "";
|
|
119
119
|
for (let r = 0; r < e; r++)
|
|
120
120
|
t += ((1 + Math.random()) * 65536 | 0).toString(16).substring(1);
|
|
@@ -163,10 +163,10 @@ function _(e, t, r, n) {
|
|
|
163
163
|
function y(e) {
|
|
164
164
|
return Object.prototype.toString.call(e);
|
|
165
165
|
}
|
|
166
|
-
function
|
|
166
|
+
function ie(e) {
|
|
167
167
|
return v(_(0, e, "", []).toString(16), 8);
|
|
168
168
|
}
|
|
169
|
-
const
|
|
169
|
+
const se = (e) => {
|
|
170
170
|
let t = "";
|
|
171
171
|
return D(e, {
|
|
172
172
|
start: function(r, n, o) {
|
|
@@ -185,7 +185,7 @@ const ie = (e) => {
|
|
|
185
185
|
t += `<!-- ${r} -->`;
|
|
186
186
|
}
|
|
187
187
|
}), t;
|
|
188
|
-
},
|
|
188
|
+
}, le = (e, t) => {
|
|
189
189
|
const r = g("html,head,body,title"), n = { link: "head", base: "head" };
|
|
190
190
|
t ? t = t.ownerDocument || t.getOwnerDocument && t.getOwnerDocument() || t : typeof t < "u" ? t = new Document() : typeof document < "u" && document.implementation && document.implementation.createDocument && (t = document.implementation.createDocument("", "", null));
|
|
191
191
|
const o = [];
|
|
@@ -227,15 +227,8 @@ const ie = (e) => {
|
|
|
227
227
|
"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"
|
|
228
228
|
), T = g("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr"), B = g(
|
|
229
229
|
"checked,compact,declare,defer,disabled,ismap,multiple,nohref,noresize,noshade,nowrap,readonly,selected"
|
|
230
|
-
), H = g("script,style")
|
|
231
|
-
Array.prototype.last = function() {
|
|
232
|
-
return this[this.length - 1];
|
|
233
|
-
};
|
|
234
|
-
const D = (e, t) => {
|
|
230
|
+
), H = g("script,style"), D = (e, t) => {
|
|
235
231
|
let r, n, o, a = [], l = e;
|
|
236
|
-
a.last = function() {
|
|
237
|
-
return this[this.length - 1];
|
|
238
|
-
};
|
|
239
232
|
const i = (c, s) => {
|
|
240
233
|
let d;
|
|
241
234
|
if (!s) d = 0;
|
|
@@ -249,7 +242,7 @@ const D = (e, t) => {
|
|
|
249
242
|
}
|
|
250
243
|
};
|
|
251
244
|
for (; e; ) {
|
|
252
|
-
if (n = !0, !a.
|
|
245
|
+
if (n = !0, !a.at(-1) || !H[a.at(-1)]) {
|
|
253
246
|
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(E), o && (e = e.substring(o[0].length), o[0].replace(E, 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) {
|
|
254
247
|
r = e.indexOf("<");
|
|
255
248
|
let c = r < 0 ? e : e.substring(0, r);
|
|
@@ -258,25 +251,25 @@ const D = (e, t) => {
|
|
|
258
251
|
} else
|
|
259
252
|
e = e.replace(
|
|
260
253
|
//@ts-ignore
|
|
261
|
-
new RegExp("([\\s\\S]*?)</" + a.
|
|
254
|
+
new RegExp("([\\s\\S]*?)</" + a.at(-1) + "[^>]*>"),
|
|
262
255
|
function(c, s) {
|
|
263
256
|
return s = s.replace(
|
|
264
257
|
/<!--([\s\S]*?)-->|<!\[CDATA\[([\s\S]*?)]]>/g,
|
|
265
258
|
"$1$2"
|
|
266
259
|
), t.chars && t.chars(s), "";
|
|
267
260
|
}
|
|
268
|
-
), i("", a.
|
|
261
|
+
), i("", a.at(-1));
|
|
269
262
|
if (e == l) throw "Parse Error: " + e;
|
|
270
263
|
l = e;
|
|
271
264
|
}
|
|
272
265
|
i();
|
|
273
266
|
function u(c, s, d, p) {
|
|
274
267
|
if (s = s.toLowerCase(), C[s])
|
|
275
|
-
for (; a.
|
|
276
|
-
i("", a.
|
|
277
|
-
if (T[s] && a.
|
|
268
|
+
for (; a.at(-1) && U[a.at(-1)]; )
|
|
269
|
+
i("", a.at(-1));
|
|
270
|
+
if (T[s] && a.at(-1) == s && i("", s), p = S[s] || !!p, p || a.push(s), t.start) {
|
|
278
271
|
const w = [];
|
|
279
|
-
d.replace(M, function(
|
|
272
|
+
d.replace(M, function(j, A) {
|
|
280
273
|
let O = arguments[2] ? arguments[2] : arguments[3] ? arguments[3] : arguments[4] ? arguments[4] : B[A] ? A : "";
|
|
281
274
|
w.push({
|
|
282
275
|
name: A,
|
|
@@ -294,7 +287,7 @@ function G(e) {
|
|
|
294
287
|
function W(e) {
|
|
295
288
|
return e.replace(/<\?xml.*\?>\n/, "").replace(/<!doctype.*\>\n/, "").replace(/<!DOCTYPE.*\>\n/, "");
|
|
296
289
|
}
|
|
297
|
-
const
|
|
290
|
+
const ce = (e) => {
|
|
298
291
|
e = W(e);
|
|
299
292
|
const t = [], r = {
|
|
300
293
|
node: "root",
|
|
@@ -384,7 +377,7 @@ const le = (e) => {
|
|
|
384
377
|
return `<!-- ${e.text} -->`;
|
|
385
378
|
if (e.node === "root")
|
|
386
379
|
return r;
|
|
387
|
-
},
|
|
380
|
+
}, de = (e, t = 0, r = !0, n = "en") => {
|
|
388
381
|
if (typeof e == "string" || e instanceof String) return e.toString().replace(/[^0-9.]/g, "");
|
|
389
382
|
if (r === !1)
|
|
390
383
|
return e.toLocaleString(n);
|
|
@@ -402,7 +395,7 @@ const le = (e) => {
|
|
|
402
395
|
for (a = o.length - 1; a > 0 && !(e >= o[a].v); a--)
|
|
403
396
|
;
|
|
404
397
|
return (e / o[a].v).toFixed(t).replace(/\.0+$|(\.[0-9]*[1-9])0+$/, "$1") + o[a].s;
|
|
405
|
-
},
|
|
398
|
+
}, ue = (e = 0, t) => {
|
|
406
399
|
switch (!0) {
|
|
407
400
|
case e > 3:
|
|
408
401
|
console.debug(...t);
|
|
@@ -417,14 +410,14 @@ const le = (e) => {
|
|
|
417
410
|
console.error(...t);
|
|
418
411
|
break;
|
|
419
412
|
}
|
|
420
|
-
},
|
|
421
|
-
<`),
|
|
413
|
+
}, fe = (e) => e.replace(/\<\!--\s*?[^\s?\[][\s\S]*?--\>/g, "").replace(/\>\s*\</g, "><").replace(/\t/g, ""), pe = (e) => e.replace(/\>\</g, `>
|
|
414
|
+
<`), ge = (e) => {
|
|
422
415
|
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, "!");
|
|
423
|
-
},
|
|
416
|
+
}, be = (e) => e.replace(/\,/g, ", ").replace(/\{/g, ` {
|
|
424
417
|
`).replace(/\}/g, `}
|
|
425
418
|
`).replace(/\;/g, `;
|
|
426
419
|
`);
|
|
427
|
-
function
|
|
420
|
+
function he(e, t) {
|
|
428
421
|
const r = [
|
|
429
422
|
{ value: 1, symbol: "" },
|
|
430
423
|
{ value: 1e3, symbol: "K" },
|
|
@@ -439,18 +432,18 @@ function be(e, t) {
|
|
|
439
432
|
;
|
|
440
433
|
return (e / r[o].value).toFixed(t).replace(n, "$1") + r[o].symbol;
|
|
441
434
|
}
|
|
442
|
-
function
|
|
435
|
+
function me(e) {
|
|
443
436
|
const t = RegExp(`[?&]${e}=([^&]*)`).exec(window.location.search);
|
|
444
437
|
return t && decodeURIComponent(t[1].replace(/\+/g, " ")) || null;
|
|
445
438
|
}
|
|
446
|
-
const
|
|
439
|
+
const xe = (e) => new Proxy(new URLSearchParams(window.location.search), {
|
|
447
440
|
// @ts-ignore
|
|
448
441
|
get: (r, n) => r.get(n)
|
|
449
442
|
})[e];
|
|
450
|
-
function
|
|
443
|
+
function Ae(e) {
|
|
451
444
|
return e[Math.floor(Math.random() * e.length)];
|
|
452
445
|
}
|
|
453
|
-
function
|
|
446
|
+
function De(e) {
|
|
454
447
|
switch (e.language) {
|
|
455
448
|
case "ar":
|
|
456
449
|
return {
|
|
@@ -461,7 +454,7 @@ function Ae(e) {
|
|
|
461
454
|
return {};
|
|
462
455
|
}
|
|
463
456
|
}
|
|
464
|
-
function
|
|
457
|
+
function we(e) {
|
|
465
458
|
const t = window.BuzzCasting.getOptions().suspended ?? !1;
|
|
466
459
|
return e.forEach((r) => {
|
|
467
460
|
var n;
|
|
@@ -502,13 +495,13 @@ function De(e) {
|
|
|
502
495
|
}
|
|
503
496
|
}), e;
|
|
504
497
|
}
|
|
505
|
-
function
|
|
498
|
+
function Oe(e, t, r, n) {
|
|
506
499
|
e.stopPropagation(), t.showModal({
|
|
507
500
|
showComponent: "card-modal",
|
|
508
501
|
props: { data: r, options: n }
|
|
509
502
|
});
|
|
510
503
|
}
|
|
511
|
-
function
|
|
504
|
+
function Re(e) {
|
|
512
505
|
const t = [...e];
|
|
513
506
|
for (let r = t.length - 1; r > 0; r--) {
|
|
514
507
|
const n = Math.floor(Math.random() * (r + 1));
|
|
@@ -516,13 +509,13 @@ function Oe(e) {
|
|
|
516
509
|
}
|
|
517
510
|
return t;
|
|
518
511
|
}
|
|
519
|
-
function
|
|
512
|
+
function Ee() {
|
|
520
513
|
let e = "";
|
|
521
514
|
const t = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
|
|
522
515
|
for (let r = 0; r < 7; r++) e += t.charAt(Math.floor(Math.random() * t.length));
|
|
523
516
|
return e;
|
|
524
517
|
}
|
|
525
|
-
const
|
|
518
|
+
const _e = (e) => {
|
|
526
519
|
switch (e == null ? void 0 : e.type) {
|
|
527
520
|
case m.MESSAGES:
|
|
528
521
|
return h.MESSAGES;
|
|
@@ -535,7 +528,7 @@ const Ee = (e) => {
|
|
|
535
528
|
}
|
|
536
529
|
}, Y = (e = 6) => Math.random().toString(36).substring(2, e + 2), K = (e, t = []) => !t.find(function(n) {
|
|
537
530
|
return n === e;
|
|
538
|
-
}),
|
|
531
|
+
}), Pe = (e, t = []) => {
|
|
539
532
|
let n = 0, o = "";
|
|
540
533
|
for (; o == "" && n < 100; )
|
|
541
534
|
o = Y(e), K(o, t) || (o = "", n++);
|
|
@@ -554,7 +547,7 @@ function $e(e) {
|
|
|
554
547
|
let t = `${e.type}.${e.topics}`;
|
|
555
548
|
return e.order && (t += `.${e.order}`), e.period && (t += `.${e.period}`), t;
|
|
556
549
|
}
|
|
557
|
-
function
|
|
550
|
+
function ve(e) {
|
|
558
551
|
var t;
|
|
559
552
|
if (e.widget === void 0) {
|
|
560
553
|
const r = (t = e.topics) == null ? void 0 : t.split("-");
|
|
@@ -562,7 +555,7 @@ function Pe(e) {
|
|
|
562
555
|
}
|
|
563
556
|
return e;
|
|
564
557
|
}
|
|
565
|
-
function
|
|
558
|
+
function Ie(e, t) {
|
|
566
559
|
var i;
|
|
567
560
|
let r, n, o, a, l;
|
|
568
561
|
switch (e.moderation) {
|
|
@@ -580,53 +573,54 @@ function ve(e, t) {
|
|
|
580
573
|
}
|
|
581
574
|
return t;
|
|
582
575
|
}
|
|
583
|
-
var X = /* @__PURE__ */ ((e) => (e.MultiPolygon = "MultiPolygon", e.Polygon = "Polygon", e))(X || {});
|
|
576
|
+
var X = /* @__PURE__ */ ((e) => (e.MultiPolygon = "MultiPolygon", e.Polygon = "Polygon", e))(X || {}), Q = /* @__PURE__ */ ((e) => (e.MultiPolygon = "MultiPolygon", e.Polygon = "Polygon", e))(Q || {});
|
|
584
577
|
export {
|
|
585
578
|
m as API,
|
|
586
579
|
h as CSS,
|
|
587
|
-
|
|
580
|
+
P as EVENTS,
|
|
588
581
|
D as HTMLParser,
|
|
589
|
-
|
|
590
|
-
|
|
582
|
+
le as HTMLtoDOM,
|
|
583
|
+
se as HTMLtoXML,
|
|
591
584
|
x as MODERATION,
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
J as
|
|
596
|
-
z as
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
te as
|
|
602
|
-
re as
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
oe as
|
|
585
|
+
k as STORAGE,
|
|
586
|
+
Q as ShapeType,
|
|
587
|
+
X as Type,
|
|
588
|
+
J as anonymize,
|
|
589
|
+
z as attachedMedia,
|
|
590
|
+
N as attrs,
|
|
591
|
+
ee as brandLogo,
|
|
592
|
+
L as camelCase,
|
|
593
|
+
V as camelCasedProps,
|
|
594
|
+
te as camelize,
|
|
595
|
+
re as capitalizeFirstLetter,
|
|
596
|
+
ne as clearContents,
|
|
597
|
+
$ as deepMerge,
|
|
598
|
+
q as filterAttributes,
|
|
599
|
+
oe as formatContent,
|
|
600
|
+
ae as getGuid,
|
|
607
601
|
$e as getKey,
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
602
|
+
me as getParameterByName,
|
|
603
|
+
xe as getQueryParam,
|
|
604
|
+
ie as hashSum,
|
|
605
|
+
ce as html2json,
|
|
606
|
+
de as intToString,
|
|
613
607
|
F as json2html,
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
608
|
+
ue as log,
|
|
609
|
+
be as maxifyCss,
|
|
610
|
+
pe as maxifyHtml,
|
|
611
|
+
ge as minifyCss,
|
|
612
|
+
fe as minifyHtml,
|
|
613
|
+
Ie as moderation,
|
|
614
|
+
he as numberFormatter,
|
|
615
|
+
Ae as randomValue,
|
|
616
|
+
De as rtl,
|
|
617
|
+
we as sanitize,
|
|
618
|
+
Oe as showModal,
|
|
619
|
+
Re as shuffleMessages,
|
|
620
|
+
Ee as stringGen,
|
|
621
|
+
_e as typeCss,
|
|
622
|
+
Pe as uniq,
|
|
629
623
|
ke as upDownColor,
|
|
630
|
-
|
|
624
|
+
ve as widgetParams,
|
|
631
625
|
Le as wrapPromise
|
|
632
626
|
};
|
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.7",
|
|
5
5
|
"private": false,
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Mark Tamis, TouchFlows SAS",
|
|
@@ -32,18 +32,18 @@
|
|
|
32
32
|
"@antfu/eslint-config": "^4.11.0",
|
|
33
33
|
"@commitlint/cli": "^19.8.0",
|
|
34
34
|
"@commitlint/config-conventional": "^19.8.0",
|
|
35
|
-
"@types/node": "^22.
|
|
36
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
37
|
-
"@typescript-eslint/parser": "^8.
|
|
38
|
-
"@vitest/coverage-v8": "^3.
|
|
35
|
+
"@types/node": "^22.14.0",
|
|
36
|
+
"@typescript-eslint/eslint-plugin": "^8.29.1",
|
|
37
|
+
"@typescript-eslint/parser": "^8.29.1",
|
|
38
|
+
"@vitest/coverage-v8": "^3.1.1",
|
|
39
39
|
"camelcase": "^8.0.0",
|
|
40
40
|
"changelogen": "^0.6.1",
|
|
41
|
-
"eslint": "^9.
|
|
41
|
+
"eslint": "^9.24.0",
|
|
42
42
|
"lint-staged": "^15.5.0",
|
|
43
|
-
"typescript": "^5.8.
|
|
44
|
-
"vite": "^6.2.
|
|
43
|
+
"typescript": "^5.8.3",
|
|
44
|
+
"vite": "^6.2.5",
|
|
45
45
|
"vite-plugin-dts": "^4.5.3",
|
|
46
|
-
"vitest": "^3.
|
|
46
|
+
"vitest": "^3.1.1"
|
|
47
47
|
},
|
|
48
48
|
"lint-staged": {
|
|
49
49
|
"*.ts": "npm run lint"
|