web-mojo 2.1.761 → 2.1.764

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.
Files changed (72) hide show
  1. package/dist/admin.cjs.js +1 -1
  2. package/dist/admin.cjs.js.map +1 -1
  3. package/dist/admin.es.js +10 -10
  4. package/dist/auth.cjs.js +1 -1
  5. package/dist/auth.cjs.js.map +1 -1
  6. package/dist/auth.es.js +3 -3
  7. package/dist/auth.es.js.map +1 -1
  8. package/dist/charts.cjs.js +1 -1
  9. package/dist/charts.es.js +2 -2
  10. package/dist/chunks/ChatView-6LQ_oPei.js +2 -0
  11. package/dist/chunks/{ChatView-CQLSGsuA.js.map → ChatView-6LQ_oPei.js.map} +1 -1
  12. package/dist/chunks/{ChatView-BaKGKYIW.js → ChatView-CUXfrhfS.js} +6 -6
  13. package/dist/chunks/{ChatView-BaKGKYIW.js.map → ChatView-CUXfrhfS.js.map} +1 -1
  14. package/dist/chunks/{ContextMenu-Ccy78itn.js → ContextMenu-DNlKavzq.js} +2 -2
  15. package/dist/chunks/{ContextMenu-Ccy78itn.js.map → ContextMenu-DNlKavzq.js.map} +1 -1
  16. package/dist/chunks/ContextMenu-kKsJ3HZJ.js +3 -0
  17. package/dist/chunks/{ContextMenu-EtrS3sqW.js.map → ContextMenu-kKsJ3HZJ.js.map} +1 -1
  18. package/dist/chunks/{DataView-B-NO26Rf.js → DataView-C4Wpf5d_.js} +2 -2
  19. package/dist/chunks/{DataView-B-NO26Rf.js.map → DataView-C4Wpf5d_.js.map} +1 -1
  20. package/dist/chunks/{DataView-DNnk7fTT.js → DataView-DGrhabJO.js} +2 -2
  21. package/dist/chunks/{DataView-DNnk7fTT.js.map → DataView-DGrhabJO.js.map} +1 -1
  22. package/dist/chunks/{Dialog-v6xXatPb.js → Dialog-CkXY2a9X.js} +2 -2
  23. package/dist/chunks/{Dialog-v6xXatPb.js.map → Dialog-CkXY2a9X.js.map} +1 -1
  24. package/dist/chunks/{Dialog-CBChqVIZ.js → Dialog-CqBiQSWd.js} +5 -5
  25. package/dist/chunks/{Dialog-CBChqVIZ.js.map → Dialog-CqBiQSWd.js.map} +1 -1
  26. package/dist/chunks/{FormView-B95jjgZr.js → FormView-CZ0bOvKY.js} +2 -2
  27. package/dist/chunks/{FormView-B95jjgZr.js.map → FormView-CZ0bOvKY.js.map} +1 -1
  28. package/dist/chunks/FormView-DUy10RuY.js +3 -0
  29. package/dist/chunks/{FormView-BzhM9nar.js.map → FormView-DUy10RuY.js.map} +1 -1
  30. package/dist/chunks/MetricsMiniChartWidget-NAYKIDax.js +2 -0
  31. package/dist/chunks/{MetricsMiniChartWidget-D5P4K2VW.js.map → MetricsMiniChartWidget-NAYKIDax.js.map} +1 -1
  32. package/dist/chunks/{MetricsMiniChartWidget-BLO12yFH.js → MetricsMiniChartWidget-hhVuYbr3.js} +3 -3
  33. package/dist/chunks/{MetricsMiniChartWidget-BLO12yFH.js.map → MetricsMiniChartWidget-hhVuYbr3.js.map} +1 -1
  34. package/dist/chunks/{PDFViewer-DO4ec_8P.js → PDFViewer-BmpTBi_2.js} +3 -3
  35. package/dist/chunks/{PDFViewer-DO4ec_8P.js.map → PDFViewer-BmpTBi_2.js.map} +1 -1
  36. package/dist/chunks/{PDFViewer-DHetE0mX.js → PDFViewer-DCLvYyXB.js} +2 -2
  37. package/dist/chunks/{PDFViewer-DHetE0mX.js.map → PDFViewer-DCLvYyXB.js.map} +1 -1
  38. package/dist/chunks/Page-DuN5VWhO.js +2 -0
  39. package/dist/chunks/{Page-BQ7bila2.js.map → Page-DuN5VWhO.js.map} +1 -1
  40. package/dist/chunks/{Page-Dn1oAANw.js → Page-XSD0OIyV.js} +2 -2
  41. package/dist/chunks/{Page-Dn1oAANw.js.map → Page-XSD0OIyV.js.map} +1 -1
  42. package/dist/chunks/{TokenManager-BXQKyhDc.js → TokenManager-CJBYcVqs.js} +2 -2
  43. package/dist/chunks/{TokenManager-BXQKyhDc.js.map → TokenManager-CJBYcVqs.js.map} +1 -1
  44. package/dist/chunks/{TopNav-OcY6ViTW.js → TopNav-CCXeeKNd.js} +5 -5
  45. package/dist/chunks/{TopNav-OcY6ViTW.js.map → TopNav-CCXeeKNd.js.map} +1 -1
  46. package/dist/chunks/TopNav-Db0bv7pM.js +2 -0
  47. package/dist/chunks/{TopNav-Dxw-w4PV.js.map → TopNav-Db0bv7pM.js.map} +1 -1
  48. package/dist/chunks/{WebApp-D0KJTN0p.js → WebApp-BZsvkqBm.js} +13 -19
  49. package/dist/chunks/{WebApp-D0KJTN0p.js.map → WebApp-BZsvkqBm.js.map} +1 -1
  50. package/dist/chunks/WebApp-BoCsFADo.js +2 -0
  51. package/dist/chunks/{WebApp-DlfbVd3B.js.map → WebApp-BoCsFADo.js.map} +1 -1
  52. package/dist/chunks/WebSocketClient-BITilqco.js +2 -0
  53. package/dist/chunks/{WebSocketClient-Dbz1XNJA.js.map → WebSocketClient-BITilqco.js.map} +1 -1
  54. package/dist/docit.cjs.js +1 -1
  55. package/dist/docit.cjs.js.map +1 -1
  56. package/dist/docit.es.js +5 -5
  57. package/dist/index.cjs.js +1 -1
  58. package/dist/index.cjs.js.map +1 -1
  59. package/dist/index.es.js +256 -29
  60. package/dist/index.es.js.map +1 -1
  61. package/dist/lightbox.cjs.js +1 -1
  62. package/dist/lightbox.cjs.js.map +1 -1
  63. package/dist/lightbox.es.js +4 -4
  64. package/package.json +1 -1
  65. package/dist/chunks/ChatView-CQLSGsuA.js +0 -2
  66. package/dist/chunks/ContextMenu-EtrS3sqW.js +0 -3
  67. package/dist/chunks/FormView-BzhM9nar.js +0 -3
  68. package/dist/chunks/MetricsMiniChartWidget-D5P4K2VW.js +0 -2
  69. package/dist/chunks/Page-BQ7bila2.js +0 -2
  70. package/dist/chunks/TopNav-Dxw-w4PV.js +0 -2
  71. package/dist/chunks/WebApp-DlfbVd3B.js +0 -2
  72. package/dist/chunks/WebSocketClient-Dbz1XNJA.js +0 -2
package/dist/index.es.js CHANGED
@@ -1,16 +1,255 @@
1
- import { V as View, W as WebApp, d as dataFormatter, M as Mustache } from "./chunks/WebApp-D0KJTN0p.js";
2
- import { B, D, g, E, h, r, R, b, a, c, e, f } from "./chunks/WebApp-D0KJTN0p.js";
3
- import { P as Page } from "./chunks/Page-Dn1oAANw.js";
4
- import { G as GroupList, T as ToastService, U as User, a as Group } from "./chunks/ContextMenu-Ccy78itn.js";
5
- import { C, b as b2, c as c2, M, f as f2, g as g2, h as h2, i, j, e as e2, d } from "./chunks/ContextMenu-Ccy78itn.js";
6
- import { M as Member } from "./chunks/ChatView-BaKGKYIW.js";
7
- import { f as f3, e as e3, C as C2, E as E2, k, j as j2, r as r2, t, s, x, z, y, u, w, v, F, g as g3, ap, aq, D as D2, I, B as B2, A, H, Q, R as R2, G, N, O, J, K, Y, Z, a2, a3, $, _, a0, a1, a5, a7, a6, a4, L, c as c3, a8, a9, l, n, m, ab, aa, ae, ac, ad, P, aj, an, ak, al, am, af, ag, ah, ao, ai, W, X, U, V, S, i as i2, h as h3, o, q, p, d as d2, b as b3, a as a10, T, ar, aw, av, as, at, au } from "./chunks/ChatView-BaKGKYIW.js";
8
- import { S as SimpleSearchView, T as TopNav } from "./chunks/TopNav-OcY6ViTW.js";
1
+ import { V as View, W as WebApp, d as dataFormatter, M as Mustache } from "./chunks/WebApp-BZsvkqBm.js";
2
+ import { B, D, g, E, h, r, R, b, a, c, e, f } from "./chunks/WebApp-BZsvkqBm.js";
3
+ import { P as Page } from "./chunks/Page-XSD0OIyV.js";
4
+ import { G as GroupList, T as ToastService, U as User, a as Group } from "./chunks/ContextMenu-DNlKavzq.js";
5
+ import { C, b as b2, c as c2, M, f as f2, g as g2, h as h2, i, j, e as e2, d } from "./chunks/ContextMenu-DNlKavzq.js";
6
+ import { M as Member } from "./chunks/ChatView-CUXfrhfS.js";
7
+ import { f as f3, e as e3, C as C2, E as E2, k, j as j2, r as r2, t, s, x, z, y, u, w, v, F, g as g3, ap, aq, D as D2, I, B as B2, A, H, Q, R as R2, G, N, O, J, K, Y, Z, a2, a3, $, _, a0, a1, a5, a7, a6, a4, L, c as c3, a8, a9, l, n, m, ab, aa, ae, ac, ad, P, aj, an, ak, al, am, af, ag, ah, ao, ai, W, X, U, V, S, i as i2, h as h3, o, q, p, d as d2, b as b3, a as a10, T, ar, aw, av, as, at, au } from "./chunks/ChatView-CUXfrhfS.js";
8
+ import { S as SimpleSearchView, T as TopNav } from "./chunks/TopNav-CCXeeKNd.js";
9
9
  import { T as TokenManager } from "./chunks/TokenManager-CAZNcCMs.js";
10
- import Dialog from "./chunks/Dialog-CBChqVIZ.js";
11
- import { default as default2 } from "./chunks/DataView-B-NO26Rf.js";
12
- import { F as F2, a as a11 } from "./chunks/FormView-B95jjgZr.js";
10
+ import Dialog from "./chunks/Dialog-CqBiQSWd.js";
11
+ import { default as default2 } from "./chunks/DataView-C4Wpf5d_.js";
12
+ import { F as F2, a as a11 } from "./chunks/FormView-CZ0bOvKY.js";
13
13
  import { W as W2 } from "./chunks/WebSocketClient-B6ribe3B.js";
14
+ const __vite_import_meta_env__ = { "BASE_URL": "/", "DEV": false, "MODE": "production", "PROD": true, "SSR": false };
15
+ const LEVELS = Object.freeze({
16
+ silent: 0,
17
+ error: 1,
18
+ warn: 2,
19
+ info: 3,
20
+ log: 3,
21
+ // alias to info
22
+ debug: 4,
23
+ trace: 5,
24
+ all: 5
25
+ // alias
26
+ });
27
+ const isDev = (() => {
28
+ try {
29
+ if (typeof import.meta !== "undefined" && import.meta && __vite_import_meta_env__ && true) {
30
+ return false;
31
+ }
32
+ } catch {
33
+ }
34
+ if (typeof globalThis !== "undefined" && typeof globalThis.__DEV__ !== "undefined") {
35
+ try {
36
+ return !!globalThis.__DEV__;
37
+ } catch {
38
+ }
39
+ }
40
+ const hasProcess = typeof process !== "undefined" && process && typeof process.env === "object";
41
+ if (hasProcess && typeof process.env.NODE_ENV === "string") {
42
+ return process.env.NODE_ENV !== "production";
43
+ }
44
+ return false;
45
+ })();
46
+ const isBrowser = typeof window !== "undefined" && typeof document !== "undefined";
47
+ const GLOBAL = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : global;
48
+ const ORIGINAL_CONSOLE = GLOBAL.console || {};
49
+ const ORIGINALS = {};
50
+ let INSTALLED = false;
51
+ let CURRENT_LEVEL = null;
52
+ const DEFAULT_DEV_LEVEL = "debug";
53
+ const DEFAULT_PROD_LEVEL = "warn";
54
+ function parseLevel(level) {
55
+ if (typeof level === "number") {
56
+ const min = LEVELS.silent;
57
+ const max = LEVELS.trace;
58
+ return Math.min(Math.max(level, min), max);
59
+ }
60
+ if (typeof level === "string") {
61
+ const key = level.toLowerCase();
62
+ if (Object.prototype.hasOwnProperty.call(LEVELS, key)) {
63
+ return LEVELS[key];
64
+ }
65
+ }
66
+ return null;
67
+ }
68
+ function getUrlLogLevel() {
69
+ if (!isBrowser || typeof location === "undefined" || !location.search) return null;
70
+ try {
71
+ const params = new URLSearchParams(location.search);
72
+ const keys = ["logLevel", "loglevel", "mojoLog"];
73
+ for (const k2 of keys) {
74
+ const v2 = params.get(k2);
75
+ if (v2 != null) {
76
+ const parsed = parseLevel(v2);
77
+ if (parsed !== null) return parsed;
78
+ }
79
+ }
80
+ } catch {
81
+ }
82
+ return null;
83
+ }
84
+ function getStoredLogLevel() {
85
+ if (!isBrowser || !("localStorage" in GLOBAL)) return null;
86
+ try {
87
+ const v2 = GLOBAL.localStorage.getItem("MOJO_LOG_LEVEL");
88
+ if (v2 != null) {
89
+ const parsed = parseLevel(v2);
90
+ if (parsed !== null) return parsed;
91
+ }
92
+ } catch {
93
+ }
94
+ return null;
95
+ }
96
+ function storeLogLevel(levelNumberOrName) {
97
+ if (!isBrowser || !("localStorage" in GLOBAL)) return;
98
+ try {
99
+ const key = typeof levelNumberOrName === "string" ? levelNumberOrName : levelNumberOrName === null ? null : Object.entries(LEVELS).find(([, num]) => num === levelNumberOrName)?.[0] ?? null;
100
+ if (key) {
101
+ GLOBAL.localStorage.setItem("MOJO_LOG_LEVEL", key);
102
+ } else {
103
+ GLOBAL.localStorage.removeItem("MOJO_LOG_LEVEL");
104
+ }
105
+ } catch {
106
+ }
107
+ }
108
+ function makeWrapper(methodName, methodLevel) {
109
+ const original = ORIGINALS[methodName] || ORIGINAL_CONSOLE[methodName] || (() => {
110
+ });
111
+ return function wrappedConsoleMethod(...args) {
112
+ if (CURRENT_LEVEL >= methodLevel) {
113
+ return original.apply(ORIGINAL_CONSOLE, args);
114
+ }
115
+ return void 0;
116
+ };
117
+ }
118
+ function makeAssertWrapper() {
119
+ const original = ORIGINALS.assert || ORIGINAL_CONSOLE.assert || (() => {
120
+ });
121
+ return function wrappedAssert(condition, ...args) {
122
+ if (!condition) {
123
+ if (CURRENT_LEVEL >= LEVELS.error) {
124
+ return original.apply(ORIGINAL_CONSOLE, [condition, ...args]);
125
+ }
126
+ return void 0;
127
+ }
128
+ return void 0;
129
+ };
130
+ }
131
+ function determineInitialLevel(explicitLevel) {
132
+ const explicit = parseLevel(explicitLevel);
133
+ if (explicit !== null) return explicit;
134
+ const urlLevel = getUrlLogLevel();
135
+ if (urlLevel !== null) return urlLevel;
136
+ const storedLevel = getStoredLogLevel();
137
+ if (storedLevel !== null) return storedLevel;
138
+ return parseLevel(isDev ? DEFAULT_DEV_LEVEL : DEFAULT_PROD_LEVEL);
139
+ }
140
+ function buildPatchedConsole() {
141
+ const patched = { ...ORIGINAL_CONSOLE };
142
+ const methodLevels = {
143
+ // Critical
144
+ error: LEVELS.error,
145
+ warn: LEVELS.warn,
146
+ // Informational
147
+ info: LEVELS.info,
148
+ log: LEVELS.info,
149
+ dir: LEVELS.info,
150
+ table: LEVELS.info,
151
+ // Verbose / Debug
152
+ debug: LEVELS.debug,
153
+ group: LEVELS.debug,
154
+ groupCollapsed: LEVELS.debug,
155
+ groupEnd: LEVELS.debug,
156
+ time: LEVELS.debug,
157
+ timeEnd: LEVELS.debug,
158
+ timeLog: LEVELS.debug,
159
+ trace: LEVELS.trace
160
+ };
161
+ for (const name of Object.keys(methodLevels)) {
162
+ ORIGINALS[name] = ORIGINAL_CONSOLE[name] || (() => {
163
+ });
164
+ patched[name] = makeWrapper(name, methodLevels[name]);
165
+ }
166
+ ORIGINALS.assert = ORIGINAL_CONSOLE.assert || (() => {
167
+ });
168
+ patched.assert = makeAssertWrapper();
169
+ return patched;
170
+ }
171
+ const ConsoleSilencer = {
172
+ // Install the silencer (idempotent)
173
+ install(options = {}) {
174
+ if (INSTALLED) {
175
+ if (options && typeof options.level !== "undefined") {
176
+ this.setLevel(options.level, { persist: !!options.persist });
177
+ }
178
+ return this;
179
+ }
180
+ if (!GLOBAL || !ORIGINAL_CONSOLE) {
181
+ INSTALLED = true;
182
+ return this;
183
+ }
184
+ CURRENT_LEVEL = determineInitialLevel(options.level);
185
+ const patched = buildPatchedConsole();
186
+ GLOBAL.console = patched;
187
+ INSTALLED = true;
188
+ GLOBAL.MOJOConsoleSilencer = this;
189
+ return this;
190
+ },
191
+ // Uninstall and restore the original console
192
+ uninstall() {
193
+ if (!INSTALLED) return this;
194
+ try {
195
+ GLOBAL.console = ORIGINAL_CONSOLE;
196
+ } catch {
197
+ }
198
+ INSTALLED = false;
199
+ return this;
200
+ },
201
+ // Set current level at runtime; accepts string or number
202
+ // levels: 'silent' | 'error' | 'warn' | 'info' | 'debug' | 'trace'
203
+ setLevel(level, { persist = false } = {}) {
204
+ const parsed = parseLevel(level);
205
+ if (parsed === null) return this;
206
+ CURRENT_LEVEL = parsed;
207
+ if (persist) {
208
+ storeLogLevel(level);
209
+ }
210
+ return this;
211
+ },
212
+ // Get the current numeric level
213
+ getLevel() {
214
+ return CURRENT_LEVEL;
215
+ },
216
+ // Get the current level name (best-effort)
217
+ getLevelName() {
218
+ const entry = Object.entries(LEVELS).find(([, num]) => num === CURRENT_LEVEL);
219
+ return entry ? entry[0] : null;
220
+ },
221
+ // Convenience helpers
222
+ criticalOnly({ persist = false } = {}) {
223
+ return this.setLevel("warn", { persist });
224
+ },
225
+ errorsOnly({ persist = false } = {}) {
226
+ return this.setLevel("error", { persist });
227
+ },
228
+ silent({ persist = false } = {}) {
229
+ return this.setLevel("silent", { persist });
230
+ },
231
+ verbose({ persist = false } = {}) {
232
+ return this.setLevel(isDev ? "debug" : "info", { persist });
233
+ },
234
+ allowAll({ persist = false } = {}) {
235
+ return this.setLevel("trace", { persist });
236
+ },
237
+ // Run a block with a temporary level, then restore
238
+ withTemporaryLevel(level, fn) {
239
+ const prev = CURRENT_LEVEL;
240
+ const parsed = parseLevel(level);
241
+ if (parsed === null || typeof fn !== "function") return fn?.();
242
+ CURRENT_LEVEL = parsed;
243
+ try {
244
+ return fn();
245
+ } finally {
246
+ CURRENT_LEVEL = prev;
247
+ }
248
+ },
249
+ // Expose levels map for consumers
250
+ LEVELS
251
+ };
252
+ const installConsoleSilencer = (options) => ConsoleSilencer.install(options);
14
253
  class Sidebar extends View {
15
254
  constructor(options = {}) {
16
255
  super({
@@ -1621,11 +1860,9 @@ class PortalApp extends WebApp {
1621
1860
  if (this.activeUser) {
1622
1861
  await this.checkActiveGroup();
1623
1862
  }
1624
- console.log("Setting up router...");
1625
1863
  await this.setupRouter();
1626
1864
  this.isStarted = true;
1627
1865
  this.events.emit("app:ready", { app: this });
1628
- console.log(`${this.title} portal ready`);
1629
1866
  }
1630
1867
  async checkAuthStatus() {
1631
1868
  const tokenStatus = this.tokenManager.checkTokenStatus();
@@ -1681,7 +1918,6 @@ class PortalApp extends WebApp {
1681
1918
  await this.activeUser.member.fetchForGroup(group.id);
1682
1919
  }
1683
1920
  this.events.emit("group:loaded", { group: this.activeGroup });
1684
- console.log("Loaded active group:", group.get("name"));
1685
1921
  } catch (error) {
1686
1922
  console.warn("Failed to load active group:", error);
1687
1923
  if (urlGroupId && !this.loadActiveGroupId()) {
@@ -1694,7 +1930,6 @@ class PortalApp extends WebApp {
1694
1930
  await fallbackGroup.fetch();
1695
1931
  this.activeGroup = fallbackGroup;
1696
1932
  this.events.emit("group:loaded", { group: this.activeGroup });
1697
- console.log("Fell back to stored active group:", fallbackGroup.get("name"));
1698
1933
  } catch (fallbackError) {
1699
1934
  console.warn("Fallback to stored group also failed:", fallbackError);
1700
1935
  this.clearActiveGroupId();
@@ -1729,7 +1964,6 @@ class PortalApp extends WebApp {
1729
1964
  page.onGroupChange(group);
1730
1965
  }
1731
1966
  this.router.updateUrl({ group: group.id }, { replace: true });
1732
- console.log("Active group set to:", group ? group.get("name") : "none");
1733
1967
  return this;
1734
1968
  }
1735
1969
  /**
@@ -1789,14 +2023,14 @@ class PortalApp extends WebApp {
1789
2023
  * Get storage key for active group ID
1790
2024
  */
1791
2025
  getActiveGroupStorageKey() {
1792
- return `mojo_active_group_id`;
2026
+ return `active_group_id`;
1793
2027
  }
1794
2028
  /**
1795
2029
  * Set portal profile to localStorage
1796
2030
  */
1797
2031
  setPortalProfile(profile) {
1798
2032
  try {
1799
- localStorage.setItem("mojo_portal_profile", profile);
2033
+ localStorage.setItem("portal_profile", profile);
1800
2034
  } catch (error) {
1801
2035
  console.warn("Failed to save portal profile:", error);
1802
2036
  }
@@ -2003,7 +2237,6 @@ class PortalApp extends WebApp {
2003
2237
  if (this.topbar) {
2004
2238
  this.topbar.setUser(user);
2005
2239
  }
2006
- console.log("Active user set:", user);
2007
2240
  this.events.emit("portal:user-changed", { user });
2008
2241
  }
2009
2242
  /**
@@ -2090,8 +2323,6 @@ class PortalApp extends WebApp {
2090
2323
  showToggle: true,
2091
2324
  passwordUsage: "new",
2092
2325
  // sets autocomplete to 'new-password'
2093
- showToggle: true,
2094
- // default, can omit
2095
2326
  strengthMeter: true,
2096
2327
  capsLockWarning: true,
2097
2328
  attributes: {
@@ -2107,8 +2338,6 @@ class PortalApp extends WebApp {
2107
2338
  showToggle: true,
2108
2339
  passwordUsage: "new",
2109
2340
  // sets autocomplete to 'new-password'
2110
- showToggle: true,
2111
- // default, can omit
2112
2341
  strengthMeter: true,
2113
2342
  capsLockWarning: true,
2114
2343
  attributes: {
@@ -2155,9 +2384,6 @@ class PortalApp extends WebApp {
2155
2384
  return;
2156
2385
  }
2157
2386
  try {
2158
- if (this.activeUser?.attributes) {
2159
- console.log("activeUser.attributes:", this.activeUser.attributes);
2160
- }
2161
2387
  const result = await Dialog.showModelForm({
2162
2388
  title: "Edit Profile",
2163
2389
  size: "lg",
@@ -2275,10 +2501,8 @@ class PortalApp extends WebApp {
2275
2501
  cancelText: "Cancel"
2276
2502
  });
2277
2503
  if (result && result.success) {
2278
- console.log("Profile saved successfully:", result);
2279
2504
  this.showSuccess("Profile updated successfully!");
2280
2505
  } else if (result && !result.success) {
2281
- console.log("Profile save failed:", result);
2282
2506
  }
2283
2507
  } catch (error) {
2284
2508
  console.error("Error showing profile form:", error);
@@ -2458,6 +2682,7 @@ class MustacheFormatter {
2458
2682
  }
2459
2683
  }
2460
2684
  const mustacheFormatter = new MustacheFormatter();
2685
+ ConsoleSilencer.install({ level: "error" });
2461
2686
  const FRAMEWORK_NAME = "MOJO";
2462
2687
  const PACKAGE_NAME = "web-mojo";
2463
2688
  const index = {
@@ -2470,6 +2695,7 @@ export {
2470
2695
  e3 as ChatMessageView,
2471
2696
  C2 as ChatView,
2472
2697
  C as Collection,
2698
+ ConsoleSilencer,
2473
2699
  b2 as ContextMenu,
2474
2700
  default2 as DataView,
2475
2701
  D as DataWrapper,
@@ -2596,6 +2822,7 @@ export {
2596
2822
  W2 as WebSocketClient,
2597
2823
  a11 as applyFileDropMixin,
2598
2824
  dataFormatter,
2599
- index as default
2825
+ index as default,
2826
+ installConsoleSilencer
2600
2827
  };
2601
2828
  //# sourceMappingURL=index.es.js.map