buzzcasting-utils 1.5.4 → 1.5.6

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,10 @@ export declare enum EVENTS {
159
159
  ERROR = "error",
160
160
  HIDE_MESSAGE = "hideMessage",
161
161
  HIDE_LABELS = "hideLabels",
162
- MAUPPUT_UPDATE = "layoutUpdate",
162
+ IMAGE_GET = "getImage",
163
+ IMAGE_SET = "setImage",
164
+ IMAGE_STORED = "imageStored",
165
+ LAUPPUT_UPDATE = "layoutUpdate",
163
166
  PREV_SLIDE = "prevSlide",
164
167
  RELOAD_PRESENTATION = "reloadPresentation",
165
168
  STAR_MESSAGE = "starMessage",
@@ -171,6 +174,9 @@ export declare enum EVENTS {
171
174
  PRESENTATION_READY = "presentationReady",
172
175
  PRESENTATION_LOAD = "loadPresentation",
173
176
  PRESENTATION_STORE = "storePresentation",
177
+ SCREENSHOT_TAKE = "takeScreenshot",
178
+ SCREENSHOT_STORE = "storeScreenshot",
179
+ SECTION_UPDATE = "sectionUpdate",
174
180
  SHOW_BUILDER_DIALOG = "showBuilderDialog",
175
181
  SHOW_BUILDER_MODAL = "showBuilderModal",
176
182
  SHOW_MODAL = "showModal",
@@ -179,8 +185,10 @@ export declare enum EVENTS {
179
185
  SLIDE_GOTO = "slideGoto",
180
186
  SLIDE_LOAD = "loadSlide",
181
187
  SLIDE_READY = "slideReady",
188
+ SLIDE_SAVED = "slideSaved",
182
189
  SLIDE_SET = "setSlide",
183
190
  SLIDE_STORE = "storeSlide",
191
+ SLIDE_STORED = "slideStored",
184
192
  SLIDE_TRANSITIONER = "slideTransitioner",
185
193
  START_TRANSITIONER = "startTransitioner",
186
194
  STORAGE_INIT = "storageInit",
@@ -189,6 +197,7 @@ export declare enum EVENTS {
189
197
  SWITCH_PRESENTATION = "switchPresentation",
190
198
  REMOVE_CLOUD = "removeCloud",
191
199
  UPDATE = "update",
200
+ UPLOAD_COMPLETED = "uploadCompleted",
192
201
  VERSION = "version",
193
202
  WIDGETS_CLEAR = "widgetsClear",
194
203
  WIDGET_LOAD = "widgetLoad",
@@ -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 || {}), E = /* @__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_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))(E || {}), x = /* @__PURE__ */ ((e) => (e.APPROVED = "approved", e.BEFORE = "before", e.DELAYED = "delayed", e.NONE = "none", e.REALTIME = "realtime", e))(x || {}), v = /* @__PURE__ */ ((e) => (e.KEYVAL = "keyval", e.LOCAL = "local", e.SESSION = "session", e.DEXIE = "dexie", e.WINDOW = "window", e))(v || {});
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.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.PAUSE_PRESENTATION = "pausePresentation", e.PRESENTATION_READY = "presentationReady", e.PRESENTATION_LOAD = "loadPresentation", e.PRESENTATION_STORE = "storePresentation", 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.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_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] = k(n.value));
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 k(e) {
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 I(e) {
115
+ function P(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 ? I([t[o], r[o]]) : r[o]
120
+ [o]: o in t && typeof t[o] == "object" && t[o] !== null && typeof r[o] == "object" && r[o] !== null ? P([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 P(e, t) {
138
+ function k(e, t) {
139
139
  for (; e.length < t; )
140
140
  e = `0${e}`;
141
141
  return e;
@@ -179,7 +179,7 @@ function M(e) {
179
179
  return Object.prototype.toString.call(e);
180
180
  }
181
181
  function fe(e) {
182
- return P(L(0, e, "", []).toString(16), 8);
182
+ return k(L(0, e, "", []).toString(16), 8);
183
183
  }
184
184
  const pe = (e) => {
185
185
  let t = "";
@@ -234,13 +234,13 @@ 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*(\/?)>/, _ = /^<\/([-A-Za-z0-9_]+)[^>]*>/, y = /([a-zA-Z_:][-a-zA-Z0-9_:.]*)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|([^>\s]+)))?/g, S = g(
237
+ }, R = /^<([-A-Za-z0-9_]+)((?:\s+[a-zA-Z_:][-a-zA-Z0-9_:.]*(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)>/, _ = /^<\/([-A-Za-z0-9_]+)[^>]*>/, S = /([a-zA-Z_:][-a-zA-Z0-9_:.]*)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|([^>\s]+)))?/g, y = g(
238
238
  "area,base,basefont,br,col,frame,hr,img,input,link,meta,param,embed,command,keygen,source,track,wbr"
239
239
  ), C = 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"), G = g(
243
+ ), G = g("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr"), B = g(
244
244
  "checked,compact,declare,defer,disabled,ismap,multiple,nohref,noresize,noshade,nowrap,readonly,selected"
245
245
  ), T = g("script,style"), A = (e, t) => {
246
246
  let r, n, o, a = [], l = e;
@@ -282,17 +282,17 @@ const pe = (e) => {
282
282
  if (s = s.toLowerCase(), C[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 = S[s] || !!p, p || a.push(s), t.start) {
286
- const w = [];
287
- d.replace(y, function(j, D) {
288
- let O = arguments[2] ? arguments[2] : arguments[3] ? arguments[3] : arguments[4] ? arguments[4] : G[D] ? D : "";
289
- w.push({
285
+ if (G[s] && a.at(-1) == s && i("", s), p = y[s] || !!p, p || a.push(s), t.start) {
286
+ const O = [];
287
+ d.replace(S, function(j, D) {
288
+ let w = arguments[2] ? arguments[2] : arguments[3] ? arguments[3] : arguments[4] ? arguments[4] : B[D] ? D : "";
289
+ O.push({
290
290
  name: D,
291
- value: O,
292
- escaped: O.replace(/(^|[^\\])"/g, '$1\\"')
291
+ value: w,
292
+ escaped: w.replace(/(^|[^\\])"/g, '$1\\"')
293
293
  //"
294
294
  });
295
- }), t.start && t.start(s, w, p);
295
+ }), t.start && t.start(s, O, p);
296
296
  }
297
297
  }
298
298
  };
@@ -425,11 +425,11 @@ 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, ""), De = (e) => e.replace(/\>\</g, `>
428
- <`), Ae = (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, ` {
428
+ <`), Ae = (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, "!"), Oe = (e) => e.replace(/\,/g, ", ").replace(/\{/g, ` {
429
429
  `).replace(/\}/g, `}
430
430
  `).replace(/\;/g, `;
431
431
  `);
432
- function Oe(e, t) {
432
+ function we(e, t) {
433
433
  const r = [
434
434
  { value: 1, symbol: "" },
435
435
  { value: 1e3, symbol: "K" },
@@ -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 Ee(e) {
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 ve(e) {
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 ke(e, t, r, n) {
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 Ie(e) {
516
+ function Pe(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));
@@ -521,7 +521,7 @@ function Ie(e) {
521
521
  }
522
522
  return t;
523
523
  }
524
- function Pe() {
524
+ function ke() {
525
525
  let e = "";
526
526
  const t = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
527
527
  for (let r = 0; r < 7; r++) e += t.charAt(Math.floor(Math.random() * t.length));
@@ -538,14 +538,14 @@ const $e = (e) => {
538
538
  default:
539
539
  return h.NO_UPDATES;
540
540
  }
541
- }, Y = (e = 6) => Math.random().toString(36).substring(2, e + 2), K = (e, t = []) => !t.find(function(n) {
541
+ }, K = (e = 6) => Math.random().toString(36).substring(2, e + 2), Y = (e, t = []) => !t.find(function(n) {
542
542
  return n === e;
543
543
  }), Me = (e, t = []) => {
544
544
  let n = 0, o = "";
545
545
  for (; o == "" && n < 100; )
546
- o = Y(e), K(o, t) || (o = "", n++);
546
+ o = K(e), Y(o, t) || (o = "", n++);
547
547
  return o;
548
- }, ye = (e) => {
548
+ }, Se = (e) => {
549
549
  switch (!0) {
550
550
  case e < 0:
551
551
  return "text-down text-xs";
@@ -554,7 +554,7 @@ const $e = (e) => {
554
554
  default:
555
555
  return "text-white text-xs";
556
556
  }
557
- }, Se = (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));
557
+ }, ye = (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
558
  function Ce(e) {
559
559
  let t = `${e.type}.${e.topics}`;
560
560
  return e.order && (t += `.${e.order}`), e.period && (t += `.${e.period}`), t;
@@ -567,7 +567,7 @@ function Ue(e) {
567
567
  }
568
568
  return e;
569
569
  }
570
- function Be(e, t) {
570
+ function Ge(e, t) {
571
571
  var i;
572
572
  let r, n, o, a, l;
573
573
  switch (e.moderation) {
@@ -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
- E as EVENTS,
592
+ I as EVENTS,
593
593
  A as HTMLParser,
594
594
  ge as HTMLtoDOM,
595
595
  pe as HTMLtoXML,
596
596
  x as MODERATION,
597
597
  le as RGBAchangeA,
598
- v as STORAGE,
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
- k as camelCase,
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
- I as deepMerge,
610
+ P as deepMerge,
611
611
  ce as escape,
612
612
  N as filterAttributes,
613
613
  de as formatContent,
@@ -620,25 +620,25 @@ export {
620
620
  he as intToString,
621
621
  F as json2html,
622
622
  me as log,
623
- we as maxifyCss,
623
+ Oe as maxifyCss,
624
624
  De as maxifyHtml,
625
625
  Ae as minifyCss,
626
626
  xe as minifyHtml,
627
- Be as moderation,
628
- Oe as numberFormatter,
627
+ Ge as moderation,
628
+ we as numberFormatter,
629
629
  oe as randomColor,
630
630
  se as randomRGB,
631
631
  ie as randomRGBA,
632
632
  ae as randomRGBAfull,
633
633
  Le as randomValue,
634
- Ee as rtl,
635
- ve as sanitize,
636
- ke as showModal,
637
- Ie as shuffleMessages,
638
- Pe as stringGen,
634
+ Ie as rtl,
635
+ Ee as sanitize,
636
+ ve as showModal,
637
+ Pe as shuffleMessages,
638
+ ke as stringGen,
639
639
  $e as typeCss,
640
640
  Me as uniq,
641
- ye as upDownColor,
641
+ Se as upDownColor,
642
642
  Ue as widgetParams,
643
- Se as wrapPromise
643
+ ye as wrapPromise
644
644
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "buzzcasting-utils",
3
3
  "type": "module",
4
- "version": "1.5.4",
4
+ "version": "1.5.6",
5
5
  "private": false,
6
6
  "author": {
7
7
  "name": "Mark Tamis, TouchFlows SAS",
@@ -39,7 +39,7 @@
39
39
  "camelcase": "^8.0.0",
40
40
  "changelogen": "^0.6.1",
41
41
  "eslint": "^9.25.1",
42
- "lint-staged": "^15.5.1",
42
+ "lint-staged": "^16.0.0",
43
43
  "typescript": "^5.8.3",
44
44
  "vite": "^6.3.4",
45
45
  "vite-plugin-dts": "^4.5.3",