@memberjunction/ng-explorer-core 6.2.2 → 6.3.0-edge.1

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 (123) hide show
  1. package/README.md +1 -1
  2. package/dist/app-routing.module.d.ts.map +1 -1
  3. package/dist/app-routing.module.js +42 -7
  4. package/dist/app-routing.module.js.map +1 -1
  5. package/dist/generated/lazy-feature-config.d.ts +1 -1
  6. package/dist/generated/lazy-feature-config.d.ts.map +1 -1
  7. package/dist/generated/lazy-feature-config.js +60 -4
  8. package/dist/generated/lazy-feature-config.js.map +1 -1
  9. package/dist/lib/about/about-dialog.component.d.ts +2 -0
  10. package/dist/lib/about/about-dialog.component.d.ts.map +1 -1
  11. package/dist/lib/about/about-dialog.component.js +11 -2
  12. package/dist/lib/about/about-dialog.component.js.map +1 -1
  13. package/dist/lib/guards/moved-nav-item-redirect.d.ts +10 -0
  14. package/dist/lib/guards/moved-nav-item-redirect.d.ts.map +1 -1
  15. package/dist/lib/guards/moved-nav-item-redirect.js +20 -0
  16. package/dist/lib/guards/moved-nav-item-redirect.js.map +1 -1
  17. package/dist/lib/omnibar/index.d.ts +1 -0
  18. package/dist/lib/omnibar/index.d.ts.map +1 -1
  19. package/dist/lib/omnibar/index.js +1 -0
  20. package/dist/lib/omnibar/index.js.map +1 -1
  21. package/dist/lib/omnibar/omnibar-dashboard-matches.d.ts +1 -1
  22. package/dist/lib/omnibar/omnibar-dashboard-matches.d.ts.map +1 -1
  23. package/dist/lib/omnibar/omnibar-dashboard-matches.js.map +1 -1
  24. package/dist/lib/omnibar/omnibar-palette.component.d.ts +2 -0
  25. package/dist/lib/omnibar/omnibar-palette.component.d.ts.map +1 -1
  26. package/dist/lib/omnibar/omnibar-palette.component.js +49 -1
  27. package/dist/lib/omnibar/omnibar-palette.component.js.map +1 -1
  28. package/dist/lib/omnibar/omnibar-provider.d.ts +6 -0
  29. package/dist/lib/omnibar/omnibar-provider.d.ts.map +1 -1
  30. package/dist/lib/omnibar/omnibar-provider.js.map +1 -1
  31. package/dist/lib/omnibar/omnibar-semantic-index.service.d.ts +106 -0
  32. package/dist/lib/omnibar/omnibar-semantic-index.service.d.ts.map +1 -0
  33. package/dist/lib/omnibar/omnibar-semantic-index.service.js +362 -0
  34. package/dist/lib/omnibar/omnibar-semantic-index.service.js.map +1 -0
  35. package/dist/lib/omnibar/providers/omnibar-search.provider.d.ts +9 -0
  36. package/dist/lib/omnibar/providers/omnibar-search.provider.d.ts.map +1 -1
  37. package/dist/lib/omnibar/providers/omnibar-search.provider.js +75 -8
  38. package/dist/lib/omnibar/providers/omnibar-search.provider.js.map +1 -1
  39. package/dist/lib/profile/profile-dialog.component.js +4 -4
  40. package/dist/lib/profile/profile-dialog.component.js.map +1 -1
  41. package/dist/lib/public-guest/public-artifact-guest.component.d.ts +94 -0
  42. package/dist/lib/public-guest/public-artifact-guest.component.d.ts.map +1 -0
  43. package/dist/lib/public-guest/public-artifact-guest.component.js +691 -0
  44. package/dist/lib/public-guest/public-artifact-guest.component.js.map +1 -0
  45. package/dist/lib/resource-wrappers/artifact-resource.component.d.ts +31 -4
  46. package/dist/lib/resource-wrappers/artifact-resource.component.d.ts.map +1 -1
  47. package/dist/lib/resource-wrappers/artifact-resource.component.js +154 -20
  48. package/dist/lib/resource-wrappers/artifact-resource.component.js.map +1 -1
  49. package/dist/lib/resource-wrappers/chat-collections-resource.component.d.ts +9 -190
  50. package/dist/lib/resource-wrappers/chat-collections-resource.component.d.ts.map +1 -1
  51. package/dist/lib/resource-wrappers/chat-collections-resource.component.js +40 -580
  52. package/dist/lib/resource-wrappers/chat-collections-resource.component.js.map +1 -1
  53. package/dist/lib/resource-wrappers/chat-conversations-resource.component.d.ts +10 -1
  54. package/dist/lib/resource-wrappers/chat-conversations-resource.component.d.ts.map +1 -1
  55. package/dist/lib/resource-wrappers/chat-conversations-resource.component.js +95 -18
  56. package/dist/lib/resource-wrappers/chat-conversations-resource.component.js.map +1 -1
  57. package/dist/lib/resource-wrappers/chat-export-artifact-link.d.ts +17 -0
  58. package/dist/lib/resource-wrappers/chat-export-artifact-link.d.ts.map +1 -0
  59. package/dist/lib/resource-wrappers/chat-export-artifact-link.js +28 -0
  60. package/dist/lib/resource-wrappers/chat-export-artifact-link.js.map +1 -0
  61. package/dist/lib/resource-wrappers/chat-search-routing.d.ts +1 -1
  62. package/dist/lib/resource-wrappers/chat-search-routing.d.ts.map +1 -1
  63. package/dist/lib/resource-wrappers/chat-search-routing.js +2 -2
  64. package/dist/lib/resource-wrappers/chat-search-routing.js.map +1 -1
  65. package/dist/lib/resource-wrappers/chat-tasks-resource.component.d.ts +20 -10
  66. package/dist/lib/resource-wrappers/chat-tasks-resource.component.d.ts.map +1 -1
  67. package/dist/lib/resource-wrappers/chat-tasks-resource.component.js +43 -21
  68. package/dist/lib/resource-wrappers/chat-tasks-resource.component.js.map +1 -1
  69. package/dist/lib/resource-wrappers/dashboard-resource.component.d.ts +1 -1
  70. package/dist/lib/resource-wrappers/dashboard-resource.component.d.ts.map +1 -1
  71. package/dist/lib/resource-wrappers/dashboard-resource.component.js +2 -2
  72. package/dist/lib/resource-wrappers/dashboard-resource.component.js.map +1 -1
  73. package/dist/lib/resource-wrappers/human-handoff-console-resource.component.js +3 -3
  74. package/dist/lib/resource-wrappers/library-agent-context.d.ts +42 -0
  75. package/dist/lib/resource-wrappers/library-agent-context.d.ts.map +1 -0
  76. package/dist/lib/resource-wrappers/library-agent-context.js +296 -0
  77. package/dist/lib/resource-wrappers/library-agent-context.js.map +1 -0
  78. package/dist/lib/resource-wrappers/library-resource.component.d.ts +58 -0
  79. package/dist/lib/resource-wrappers/library-resource.component.d.ts.map +1 -0
  80. package/dist/lib/resource-wrappers/library-resource.component.js +326 -0
  81. package/dist/lib/resource-wrappers/library-resource.component.js.map +1 -0
  82. package/dist/lib/resource-wrappers/livekit-lazy-config.d.ts +8 -0
  83. package/dist/lib/resource-wrappers/livekit-lazy-config.d.ts.map +1 -0
  84. package/dist/lib/resource-wrappers/livekit-lazy-config.js +17 -0
  85. package/dist/lib/resource-wrappers/livekit-lazy-config.js.map +1 -0
  86. package/dist/lib/resource-wrappers/livekit-resources.module.d.ts +23 -0
  87. package/dist/lib/resource-wrappers/livekit-resources.module.d.ts.map +1 -0
  88. package/dist/lib/resource-wrappers/livekit-resources.module.js +68 -0
  89. package/dist/lib/resource-wrappers/livekit-resources.module.js.map +1 -0
  90. package/dist/lib/shell/components/header/app-switcher.component.js +2 -2
  91. package/dist/lib/shell/components/header/app-switcher.component.js.map +1 -1
  92. package/dist/lib/shell/components/tabs/tab-container.component.d.ts +41 -0
  93. package/dist/lib/shell/components/tabs/tab-container.component.d.ts.map +1 -1
  94. package/dist/lib/shell/components/tabs/tab-container.component.js +200 -5
  95. package/dist/lib/shell/components/tabs/tab-container.component.js.map +1 -1
  96. package/dist/lib/shell/services/sharing-center-dialog-host.component.d.ts.map +1 -1
  97. package/dist/lib/shell/services/sharing-center-dialog-host.component.js +2 -1
  98. package/dist/lib/shell/services/sharing-center-dialog-host.component.js.map +1 -1
  99. package/dist/lib/shell/shell.component.d.ts.map +1 -1
  100. package/dist/lib/shell/shell.component.js +28 -10
  101. package/dist/lib/shell/shell.component.js.map +1 -1
  102. package/dist/lib/shell/shell.module.d.ts +2 -2
  103. package/dist/lib/shell/shell.module.js +4 -4
  104. package/dist/lib/shell/shell.module.js.map +1 -1
  105. package/dist/lib/single-dashboard/Components/add-item/add-item.component.js +38 -40
  106. package/dist/lib/single-dashboard/Components/add-item/add-item.component.js.map +1 -1
  107. package/dist/lib/single-dashboard/Components/delete-item/delete-item.component.js +3 -3
  108. package/dist/lib/single-dashboard/Components/delete-item/delete-item.component.js.map +1 -1
  109. package/dist/lib/single-list-detail/single-list-detail.component.js +1 -1
  110. package/dist/lib/single-list-detail/single-list-detail.component.js.map +1 -1
  111. package/dist/lib/user-notifications/user-notifications.component.d.ts +13 -0
  112. package/dist/lib/user-notifications/user-notifications.component.d.ts.map +1 -1
  113. package/dist/lib/user-notifications/user-notifications.component.js +41 -12
  114. package/dist/lib/user-notifications/user-notifications.component.js.map +1 -1
  115. package/dist/module.d.ts +57 -63
  116. package/dist/module.d.ts.map +1 -1
  117. package/dist/module.js +21 -45
  118. package/dist/module.js.map +1 -1
  119. package/dist/public-api.d.ts +5 -1
  120. package/dist/public-api.d.ts.map +1 -1
  121. package/dist/public-api.js +5 -1
  122. package/dist/public-api.js.map +1 -1
  123. package/package.json +60 -59
@@ -8,6 +8,7 @@ import { RegisterClass } from '@memberjunction/global';
8
8
  import { DashboardEngine } from '@memberjunction/core-entities';
9
9
  import { OmnibarProvider, OMNIBAR_NAV_KEY } from '../omnibar-provider';
10
10
  import { CanOpenInDashboardTab, SplitDashboardMatches } from '../omnibar-dashboard-matches';
11
+ import { OmnibarSemanticIndexService } from '../omnibar-semantic-index.service';
11
12
  /** Most dashboard rows in the results: name matches and description or category matches together. */
12
13
  const MAX_DASHBOARD_ROWS = 3;
13
14
  /** Icon per cross-source result type (matches the Search Results page vocabulary). */
@@ -44,21 +45,87 @@ let OmnibarSearchProvider = class OmnibarSearchProvider extends OmnibarProvider
44
45
  async GetSuggestions(request) {
45
46
  const search = this.context.Search;
46
47
  const query = request.Query.trim();
47
- if (!search || query.length === 0) {
48
+ if (query.length === 0) {
48
49
  return [];
49
50
  }
50
51
  const dashboards = this.dashboardSuggestions(query, request);
51
- const dashboardCount = dashboards.NameMatches.length + dashboards.DescriptionOrCategoryMatches.length;
52
+ const semanticSuggestions = await this.semanticMetadataSuggestions(query, request.MaxResults);
53
+ const isOffline = this.isOfflineMode();
54
+ if (!search && semanticSuggestions.length === 0 && dashboards.NameMatches.length === 0 && dashboards.DescriptionOrCategoryMatches.length === 0) {
55
+ return [];
56
+ }
57
+ const localMerged = this.mergeLocalSuggestions(dashboards.NameMatches, semanticSuggestions, dashboards.DescriptionOrCategoryMatches);
58
+ // Offline / client-only mode: return local semantic + cached dashboard matches with zero PreviewSearch GraphQL calls
59
+ if (isOffline || !search) {
60
+ const cappedLocal = localMerged.slice(0, Math.max(0, request.MaxResults - 1));
61
+ return [...cappedLocal, this.seeAllSuggestion(query)];
62
+ }
63
+ const localCount = localMerged.length;
64
+ try {
65
+ // Search fills the rows left after local matches and the trailing "see all".
66
+ const remaining = Math.max(1, request.MaxResults - 1 - localCount);
67
+ const response = await search.PreviewSearch(query, remaining);
68
+ const remoteSuggestions = (response.Success ? response.Results : []).map((item) => this.toSuggestion(item));
69
+ const combined = this.dedupeSuggestions([
70
+ ...dashboards.NameMatches,
71
+ ...remoteSuggestions,
72
+ ...semanticSuggestions,
73
+ ...dashboards.DescriptionOrCategoryMatches,
74
+ ]);
75
+ return [...combined.slice(0, Math.max(1, request.MaxResults - 1)), this.seeAllSuggestion(query)];
76
+ }
77
+ catch {
78
+ // Fail soft — the palette still offers local semantic/dashboard matches and the full-search escape hatch.
79
+ return [...localMerged.slice(0, Math.max(0, request.MaxResults - 1)), this.seeAllSuggestion(query)];
80
+ }
81
+ }
82
+ /**
83
+ * Client-only `< 15 ms` semantic + lexical metadata suggestions with zero
84
+ * `SearchService.PreviewSearch` GraphQL calls.
85
+ */
86
+ async GetLocalSuggestions(request) {
87
+ const query = request.Query.trim();
88
+ if (query.length === 0) {
89
+ return [];
90
+ }
91
+ const dashboards = this.dashboardSuggestions(query, request);
92
+ const semantic = await this.semanticMetadataSuggestions(query, request.MaxResults);
93
+ const merged = this.mergeLocalSuggestions(dashboards.NameMatches, semantic, dashboards.DescriptionOrCategoryMatches);
94
+ return merged.slice(0, Math.max(1, request.MaxResults - 1));
95
+ }
96
+ isOfflineMode() {
97
+ if (this.context.OfflineOnly === true) {
98
+ return true;
99
+ }
100
+ return typeof navigator !== 'undefined' && navigator.onLine === false;
101
+ }
102
+ async semanticMetadataSuggestions(query, maxResults) {
103
+ const index = OmnibarSemanticIndexService.Instance;
104
+ if (!index.IsReady) {
105
+ return [];
106
+ }
52
107
  try {
53
- // Search fills the rows left after the dashboards and the trailing "see all".
54
- const response = await search.PreviewSearch(query, Math.max(1, request.MaxResults - 1 - dashboardCount));
55
- const suggestions = (response.Success ? response.Results : []).map((item) => this.toSuggestion(item));
56
- return [...dashboards.NameMatches, ...suggestions, ...dashboards.DescriptionOrCategoryMatches, this.seeAllSuggestion(query)];
108
+ const result = await index.Query(query, { MaxResults: Math.max(1, maxResults) });
109
+ return result.Suggestions;
57
110
  }
58
111
  catch {
59
- // Fail soft — the palette still offers the dashboards and the full-search escape hatch.
60
- return [...dashboards.NameMatches, ...dashboards.DescriptionOrCategoryMatches, this.seeAllSuggestion(query)];
112
+ return [];
113
+ }
114
+ }
115
+ mergeLocalSuggestions(nameMatches, semanticMatches, descMatches) {
116
+ return this.dedupeSuggestions([...nameMatches, ...semanticMatches, ...descMatches]);
117
+ }
118
+ dedupeSuggestions(items) {
119
+ const seen = new Set();
120
+ const out = [];
121
+ for (const item of items) {
122
+ if (seen.has(item.id)) {
123
+ continue;
124
+ }
125
+ seen.add(item.id);
126
+ out.push(item);
61
127
  }
128
+ return out;
62
129
  }
63
130
  /**
64
131
  * Dashboards the user can open in a dashboard tab whose name, description or category
@@ -1 +1 @@
1
- {"version":3,"file":"omnibar-search.provider.js","sourceRoot":"","sources":["../../../../src/lib/omnibar/providers/omnibar-search.provider.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAEvD,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAGhE,OAAO,EAAE,eAAe,EAAE,eAAe,EAAqB,MAAM,qBAAqB,CAAC;AAC1F,OAAO,EAAE,qBAAqB,EAA2C,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAErI,qGAAqG;AACrG,MAAM,kBAAkB,GAAG,CAAC,CAAC;AAE7B,sFAAsF;AACtF,SAAS,aAAa,CAAC,IAAsB;IACzC,QAAQ,IAAI,CAAC,UAAU,EAAE,CAAC;QACtB,KAAK,cAAc,CAAC,CAAC,OAAO,wBAAwB,CAAC;Q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AvGY,qBAAqB;IADjC,aAAa,CAAC,eAAe,EAAE,gBAAgB,CAAC;GACpC,qBAAqB,CAuGjC;;AAED,iEAAiE;AACjE,MAAM,UAAU,yBAAyB;IACrC,oBAAoB;AACxB,CAAC","sourcesContent":["import { RegisterClass } from '@memberjunction/global';\nimport type { IMetadataProvider } from '@memberjunction/core';\nimport { DashboardEngine } from '@memberjunction/core-entities';\nimport type { MentionSuggestion, ComposerSuggestionRequest } from '@memberjunction/ng-composer';\nimport type { SearchResultItem } from '@memberjunction/ng-search';\nimport { OmnibarProvider, OMNIBAR_NAV_KEY, OmnibarNavPayload } from '../omnibar-provider';\nimport { CanOpenInDashboardTab, DashboardMatchLike, DashboardMatchSplit, SplitDashboardMatches } from '../omnibar-dashboard-matches';\n\n/** Most dashboard rows in the results: name matches and description or category matches together. */\nconst MAX_DASHBOARD_ROWS = 3;\n\n/** Icon per cross-source result type (matches the Search Results page vocabulary). */\nfunction iconForResult(item: SearchResultItem): string {\n switch (item.ResultType) {\n case 'storage-file': return 'fa-solid fa-file-lines';\n case 'content-item': return 'fa-solid fa-newspaper';\n default: return 'fa-solid fa-id-card';\n }\n}\n\n/** Group label per result type — drives the palette's section headers. */\nfunction groupForResult(item: SearchResultItem): string {\n switch (item.ResultType) {\n case 'storage-file': return 'Files';\n case 'content-item': return 'Content';\n default: return 'Records';\n }\n}\n\n/**\n * The omnibar's DEFAULT mode (empty TriggerChar): plain text = the same\n * cross-source search that backs the Search Results page (vectors + full-text +\n * entities + storage), served through `SearchService.PreviewSearch`. Matching\n * dashboards from the cached `DashboardEngine` form a \"Dashboards\" group: name matches\n * come before the search results, and dashboards that match only by description or\n * category come after them. Always appends a trailing \"See all results\" suggestion\n * that opens the full Search workspace.\n */\n@RegisterClass(OmnibarProvider, 'omnibar-search')\nexport class OmnibarSearchProvider extends OmnibarProvider {\n public readonly TriggerChar = '';\n public readonly Key = 'omnibar-search';\n public override readonly Priority = 100;\n public readonly ModeLabel = 'Global Search';\n public override readonly Placeholder = 'Search everything — or type #, /, @ …';\n\n public async GetSuggestions(request: ComposerSuggestionRequest): Promise<MentionSuggestion[]> {\n const search = this.context.Search;\n const query = request.Query.trim();\n if (!search || query.length === 0) {\n return [];\n }\n const dashboards = this.dashboardSuggestions(query, request);\n const dashboardCount = dashboards.NameMatches.length + dashboards.DescriptionOrCategoryMatches.length;\n try {\n // Search fills the rows left after the dashboards and the trailing \"see all\".\n const response = await search.PreviewSearch(query, Math.max(1, request.MaxResults - 1 - dashboardCount));\n const suggestions = (response.Success ? response.Results : []).map((item) => this.toSuggestion(item));\n return [...dashboards.NameMatches, ...suggestions, ...dashboards.DescriptionOrCategoryMatches, this.seeAllSuggestion(query)];\n } catch {\n // Fail soft — the palette still offers the dashboards and the full-search escape hatch.\n return [...dashboards.NameMatches, ...dashboards.DescriptionOrCategoryMatches, this.seeAllSuggestion(query)];\n }\n }\n\n /**\n * Dashboards the user can open in a dashboard tab whose name, description or category\n * matches the query, split into name matches and description-or-category-only matches.\n * Reads only the cached engine: returns empty lists when it is not loaded or no user\n * is known, and never loads it.\n */\n private dashboardSuggestions(query: string, request: ComposerSuggestionRequest): DashboardMatchSplit<MentionSuggestion> {\n const none: DashboardMatchSplit<MentionSuggestion> = { NameMatches: [], DescriptionOrCategoryMatches: [] };\n try {\n const engine = this.dashboardEngine(request.Provider);\n const userId = request.ContextUser?.ID ?? (request.Provider ?? this.context.Search?.Provider)?.CurrentUser?.ID;\n if (!userId || !engine.Loaded) {\n return none;\n }\n const openable = engine.GetAccessibleDashboards(userId).filter(CanOpenInDashboardTab);\n const matches = SplitDashboardMatches(openable, query, MAX_DASHBOARD_ROWS);\n return {\n NameMatches: matches.NameMatches.map((d) => this.toDashboardSuggestion(d)),\n DescriptionOrCategoryMatches: matches.DescriptionOrCategoryMatches.map((d) => this.toDashboardSuggestion(d)),\n };\n } catch {\n return none;\n }\n }\n\n /** The DashboardEngine for the request's provider, else the global instance. */\n private dashboardEngine(provider: IMetadataProvider | null): DashboardEngine {\n return provider\n ? DashboardEngine.GetProviderInstance<DashboardEngine>(provider, DashboardEngine) as DashboardEngine\n : DashboardEngine.Instance;\n }\n\n private toDashboardSuggestion(dashboard: DashboardMatchLike): MentionSuggestion {\n const nav: OmnibarNavPayload = { kind: 'dashboard', dashboardId: dashboard.ID, dashboardName: dashboard.Name };\n return {\n type: 'dashboard',\n id: `dashboard:${dashboard.ID}`,\n name: dashboard.Name,\n displayName: dashboard.Name,\n description: [dashboard.Category, dashboard.User].filter(Boolean).join(' · '),\n icon: 'fa-solid fa-gauge-high',\n data: { [OMNIBAR_NAV_KEY]: nav, group: 'Dashboards' },\n };\n }\n\n private toSuggestion(item: SearchResultItem): MentionSuggestion {\n const isFile = item.ResultType === 'storage-file';\n const nav: OmnibarNavPayload = isFile\n ? { kind: 'file', fileName: item.Title, rawMetadata: item.RawMetadata }\n : { kind: 'record', entityName: item.EntityName, recordId: item.RecordID };\n return {\n type: groupForResult(item).toLowerCase(),\n id: `${item.EntityName}:${item.RecordID}`,\n name: item.Title,\n displayName: item.Title,\n description: item.Snippet || item.EntityName,\n icon: iconForResult(item),\n data: {\n [OMNIBAR_NAV_KEY]: nav,\n group: groupForResult(item),\n score: item.Score,\n },\n };\n }\n\n private seeAllSuggestion(query: string): MentionSuggestion {\n const nav: OmnibarNavPayload = { kind: 'search', query };\n return {\n type: 'see-all',\n id: `see-all:${query}`,\n name: `See all results for “${query}”`,\n displayName: `See all results for “${query}”`,\n description: 'Opens the full Search Results workspace with scopes & relevance controls',\n icon: 'fa-solid fa-arrow-right',\n data: { [OMNIBAR_NAV_KEY]: nav, group: '' },\n };\n }\n}\n\n/** Tree-shaking guard — referenced by LoadOmnibarProviders(). */\nexport function LoadOmnibarSearchProvider(): void {\n // intentional no-op\n}\n"]}
1
+ {"version":3,"file":"omnibar-search.provider.js","sourceRoot":"","sources":["../../../../src/lib/omnibar/providers/omnibar-search.provider.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,aAAa,EAAE,MAAM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,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE,CAAC;QAC/E,OAAO;YACH,IAAI,EAAE,cAAc,CAAC,IAAI,CAAC,CAAC,WAAW,EAAE;YACxC,EAAE,EAAE,GAAG,IAAI,CAAC,UAAU,IAAI,IAAI,CAAC,QAAQ,EAAE;YACzC,IAAI,EAAE,IAAI,CAAC,KAAK;YAChB,WAAW,EAAE,IAAI,CAAC,KAAK;YACvB,WAAW,EAAE,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC,UAAU;YAC5C,IAAI,EAAE,aAAa,CAAC,IAAI,CAAC;YACzB,IAAI,EAAE;gBACF,CAAC,eAAe,CAAC,EAAE,GAAG;gBACtB,KAAK,EAAE,cAAc,CAAC,IAAI,CAAC;gBAC3B,KAAK,EAAE,IAAI,CAAC,KAAK;aACpB;SACJ,CAAC;IACN,CAAC;IAEO,gBAAgB,CAAC,KAAa;QAClC,MAAM,GAAG,GAAsB,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;QACzD,OAAO;YACH,IAAI,EAAE,SAAS;YACf,EAAE,EAAE,WAAW,KAAK,EAAE;YACtB,IAAI,EAAE,wBAAwB,KAAK,GAAG;YACtC,WAAW,EAAE,wBAAwB,KAAK,GAAG;YAC7C,WAAW,EAAE,0EAA0E;YACvF,IAAI,EAAE,yBAAyB;YAC/B,IAAI,EAAE,EAAE,CAAC,eAAe,CAAC,EAAE,GAAG,EAAE,KAAK,EAAE,EAAE,EAAE;SAC9C,CAAC;IACN,CAAC;CACJ,CAAA;AA9LY,qBAAqB;IADjC,aAAa,CAAC,eAAe,EAAE,gBAAgB,CAAC;GACpC,qBAAqB,CA8LjC;;AAED,iEAAiE;AACjE,MAAM,UAAU,yBAAyB;IACrC,oBAAoB;AACxB,CAAC","sourcesContent":["import { RegisterClass } from '@memberjunction/global';\nimport type { IMetadataProvider } from '@memberjunction/core';\nimport { DashboardEngine } from '@memberjunction/core-entities';\nimport type { MentionSuggestion, ComposerSuggestionRequest } from '@memberjunction/ng-composer';\nimport type { SearchResultItem } from '@memberjunction/ng-search';\nimport { OmnibarProvider, OMNIBAR_NAV_KEY, OmnibarNavPayload } from '../omnibar-provider';\nimport { CanOpenInDashboardTab, DashboardMatchLike, DashboardMatchSplit, SplitDashboardMatches } from '../omnibar-dashboard-matches';\nimport { OmnibarSemanticIndexService } from '../omnibar-semantic-index.service';\n\n/** Most dashboard rows in the results: name matches and description or category matches together. */\nconst MAX_DASHBOARD_ROWS = 3;\n\n/** Icon per cross-source result type (matches the Search Results page vocabulary). */\nfunction iconForResult(item: SearchResultItem): string {\n switch (item.ResultType) {\n case 'storage-file': return 'fa-solid fa-file-lines';\n case 'content-item': return 'fa-solid fa-newspaper';\n default: return 'fa-solid fa-id-card';\n }\n}\n\n/** Group label per result type — drives the palette's section headers. */\nfunction groupForResult(item: SearchResultItem): string {\n switch (item.ResultType) {\n case 'storage-file': return 'Files';\n case 'content-item': return 'Content';\n default: return 'Records';\n }\n}\n\n/**\n * The omnibar's DEFAULT mode (empty TriggerChar): plain text = the same\n * cross-source search that backs the Search Results page (vectors + full-text +\n * entities + storage), served through `SearchService.PreviewSearch`. Matching\n * dashboards from the cached `DashboardEngine` form a \"Dashboards\" group: name matches\n * come before the search results, and dashboards that match only by description or\n * category come after them. Always appends a trailing \"See all results\" suggestion\n * that opens the full Search workspace.\n */\n@RegisterClass(OmnibarProvider, 'omnibar-search')\nexport class OmnibarSearchProvider extends OmnibarProvider {\n public readonly TriggerChar = '';\n public readonly Key = 'omnibar-search';\n public override readonly Priority = 100;\n public readonly ModeLabel = 'Global Search';\n public override readonly Placeholder = 'Search everything — or type #, /, @ …';\n\n public async GetSuggestions(request: ComposerSuggestionRequest): Promise<MentionSuggestion[]> {\n const search = this.context.Search;\n const query = request.Query.trim();\n if (query.length === 0) {\n return [];\n }\n\n const dashboards = this.dashboardSuggestions(query, request);\n const semanticSuggestions = await this.semanticMetadataSuggestions(query, request.MaxResults);\n const isOffline = this.isOfflineMode();\n\n if (!search && semanticSuggestions.length === 0 && dashboards.NameMatches.length === 0 && dashboards.DescriptionOrCategoryMatches.length === 0) {\n return [];\n }\n\n const localMerged = this.mergeLocalSuggestions(\n dashboards.NameMatches,\n semanticSuggestions,\n dashboards.DescriptionOrCategoryMatches\n );\n\n // Offline / client-only mode: return local semantic + cached dashboard matches with zero PreviewSearch GraphQL calls\n if (isOffline || !search) {\n const cappedLocal = localMerged.slice(0, Math.max(0, request.MaxResults - 1));\n return [...cappedLocal, this.seeAllSuggestion(query)];\n }\n\n const localCount = localMerged.length;\n try {\n // Search fills the rows left after local matches and the trailing \"see all\".\n const remaining = Math.max(1, request.MaxResults - 1 - localCount);\n const response = await search.PreviewSearch(query, remaining);\n const remoteSuggestions = (response.Success ? response.Results : []).map((item) => this.toSuggestion(item));\n const combined = this.dedupeSuggestions([\n ...dashboards.NameMatches,\n ...remoteSuggestions,\n ...semanticSuggestions,\n ...dashboards.DescriptionOrCategoryMatches,\n ]);\n return [...combined.slice(0, Math.max(1, request.MaxResults - 1)), this.seeAllSuggestion(query)];\n } catch {\n // Fail soft — the palette still offers local semantic/dashboard matches and the full-search escape hatch.\n return [...localMerged.slice(0, Math.max(0, request.MaxResults - 1)), this.seeAllSuggestion(query)];\n }\n }\n\n /**\n * Client-only `< 15 ms` semantic + lexical metadata suggestions with zero\n * `SearchService.PreviewSearch` GraphQL calls.\n */\n public async GetLocalSuggestions(request: ComposerSuggestionRequest): Promise<MentionSuggestion[]> {\n const query = request.Query.trim();\n if (query.length === 0) {\n return [];\n }\n const dashboards = this.dashboardSuggestions(query, request);\n const semantic = await this.semanticMetadataSuggestions(query, request.MaxResults);\n const merged = this.mergeLocalSuggestions(\n dashboards.NameMatches,\n semantic,\n dashboards.DescriptionOrCategoryMatches\n );\n return merged.slice(0, Math.max(1, request.MaxResults - 1));\n }\n\n private isOfflineMode(): boolean {\n if (this.context.OfflineOnly === true) {\n return true;\n }\n return typeof navigator !== 'undefined' && navigator.onLine === false;\n }\n\n private async semanticMetadataSuggestions(query: string, maxResults: number): Promise<MentionSuggestion[]> {\n const index = OmnibarSemanticIndexService.Instance;\n if (!index.IsReady) {\n return [];\n }\n try {\n const result = await index.Query(query, { MaxResults: Math.max(1, maxResults) });\n return result.Suggestions;\n } catch {\n return [];\n }\n }\n\n private mergeLocalSuggestions(\n nameMatches: MentionSuggestion[],\n semanticMatches: MentionSuggestion[],\n descMatches: MentionSuggestion[]\n ): MentionSuggestion[] {\n return this.dedupeSuggestions([...nameMatches, ...semanticMatches, ...descMatches]);\n }\n\n private dedupeSuggestions(items: MentionSuggestion[]): MentionSuggestion[] {\n const seen = new Set<string>();\n const out: MentionSuggestion[] = [];\n for (const item of items) {\n if (seen.has(item.id)) {\n continue;\n }\n seen.add(item.id);\n out.push(item);\n }\n return out;\n }\n\n /**\n * Dashboards the user can open in a dashboard tab whose name, description or category\n * matches the query, split into name matches and description-or-category-only matches.\n * Reads only the cached engine: returns empty lists when it is not loaded or no user\n * is known, and never loads it.\n */\n private dashboardSuggestions(query: string, request: ComposerSuggestionRequest): DashboardMatchSplit<MentionSuggestion> {\n const none: DashboardMatchSplit<MentionSuggestion> = { NameMatches: [], DescriptionOrCategoryMatches: [] };\n try {\n const engine = this.dashboardEngine(request.Provider);\n const userId = request.ContextUser?.ID ?? (request.Provider ?? this.context.Search?.Provider)?.CurrentUser?.ID;\n if (!userId || !engine.Loaded) {\n return none;\n }\n const openable = engine.GetAccessibleDashboards(userId).filter(CanOpenInDashboardTab);\n const matches = SplitDashboardMatches(openable, query, MAX_DASHBOARD_ROWS);\n return {\n NameMatches: matches.NameMatches.map((d) => this.toDashboardSuggestion(d)),\n DescriptionOrCategoryMatches: matches.DescriptionOrCategoryMatches.map((d) => this.toDashboardSuggestion(d)),\n };\n } catch {\n return none;\n }\n }\n\n /** The DashboardEngine for the request's provider, else the global instance. */\n private dashboardEngine(provider: IMetadataProvider | null): DashboardEngine {\n return provider\n ? DashboardEngine.GetProviderInstance<DashboardEngine>(provider, DashboardEngine) as DashboardEngine\n : DashboardEngine.Instance;\n }\n\n private toDashboardSuggestion(dashboard: DashboardMatchLike): MentionSuggestion {\n const nav: OmnibarNavPayload = { kind: 'dashboard', dashboardId: dashboard.ID, dashboardName: dashboard.Name };\n return {\n type: 'dashboard',\n id: `dashboard:${dashboard.ID}`,\n name: dashboard.Name,\n displayName: dashboard.Name,\n description: [dashboard.Category, dashboard.User].filter(Boolean).join(' · '),\n icon: 'fa-solid fa-gauge-high',\n data: { [OMNIBAR_NAV_KEY]: nav, group: 'Dashboards' },\n };\n }\n\n private toSuggestion(item: SearchResultItem): MentionSuggestion {\n const isFile = item.ResultType === 'storage-file';\n const nav: OmnibarNavPayload = isFile\n ? { kind: 'file', fileName: item.Title, rawMetadata: item.RawMetadata }\n : { kind: 'record', entityName: item.EntityName, recordId: item.RecordID };\n return {\n type: groupForResult(item).toLowerCase(),\n id: `${item.EntityName}:${item.RecordID}`,\n name: item.Title,\n displayName: item.Title,\n description: item.Snippet || item.EntityName,\n icon: iconForResult(item),\n data: {\n [OMNIBAR_NAV_KEY]: nav,\n group: groupForResult(item),\n score: item.Score,\n },\n };\n }\n\n private seeAllSuggestion(query: string): MentionSuggestion {\n const nav: OmnibarNavPayload = { kind: 'search', query };\n return {\n type: 'see-all',\n id: `see-all:${query}`,\n name: `See all results for “${query}”`,\n displayName: `See all results for “${query}”`,\n description: 'Opens the full Search Results workspace with scopes & relevance controls',\n icon: 'fa-solid fa-arrow-right',\n data: { [OMNIBAR_NAV_KEY]: nav, group: '' },\n };\n }\n}\n\n/** Tree-shaking guard — referenced by LoadOmnibarProviders(). */\nexport function LoadOmnibarSearchProvider(): void {\n // intentional no-op\n}\n"]}
@@ -6,13 +6,13 @@ import { CONVERSATIONS_FORK_AUTHORIZATION, UserInfoEngine } from '@memberjunctio
6
6
  import { MJAuthBase } from '@memberjunction/ng-auth-services';
7
7
  import { BaseAngularComponent } from '@memberjunction/ng-base-types';
8
8
  import { ThemeService, SharedService } from '@memberjunction/ng-shared';
9
- import { ExplorerSettingsModule } from '@memberjunction/ng-explorer-settings';
9
+ import { UserSettingsModule } from '@memberjunction/ng-explorer-settings/user-settings.module';
10
10
  import { UserHoldsAuthorization } from '@memberjunction/ng-conversations';
11
11
  import { IsOmnibarAvailable, IsOmnibarEnabledForUser, OMNIBAR_USER_SETTING_KEY } from '../omnibar/omnibar-user-setting';
12
12
  import { GetOmnibarShortcutLabel } from '../omnibar/omnibar-shortcut';
13
13
  import { IsForkingOnForUser, SaveForkingForUser } from './forking-setting';
14
14
  import * as i0 from "@angular/core";
15
- import * as i1 from "@memberjunction/ng-explorer-settings";
15
+ import * as i1 from "@memberjunction/ng-explorer-settings/user-settings.module";
16
16
  const _forTrack0 = ($index, $item) => $item.label;
17
17
  const _forTrack1 = ($index, $item) => $item.key;
18
18
  const _forTrack2 = ($index, $item) => $item.id;
@@ -807,11 +807,11 @@ export class ProfileDialogComponent extends BaseAngularComponent {
807
807
  i0.ɵɵtextInterpolate(ctx.PanelTitle);
808
808
  i0.ɵɵadvance(2);
809
809
  i0.ɵɵconditional(ctx.ActivePanel === "photo" ? 62 : ctx.ActivePanel === "theme" ? 63 : -1);
810
- } }, dependencies: [CommonModule, ExplorerSettingsModule, i1.UserProfileSettingsComponent], styles: ["[_nghost-%COMP%] {\n display: block;\n width: 100%;\n height: 100%;\n}\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n.mj-profile[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n background: var(--mj-bg-surface);\n color: var(--mj-text-primary);\n height: 100%;\n max-height: 100vh;\n max-height: 100dvh;\n min-height: 0;\n position: relative;\n font-family: inherit;\n overflow: hidden;\n}\n.mj-profile__close[_ngcontent-%COMP%] {\n position: absolute;\n top: 12px; right: 12px;\n width: 36px; height: 36px;\n border: none; border-radius: 8px;\n background: rgba(255, 255, 255, 0.18);\n backdrop-filter: blur(8px);\n color: #fff;\n cursor: pointer;\n font-size: 16px;\n display: flex; align-items: center; justify-content: center;\n transition: background 0.15s, opacity 0.2s;\n z-index: 4;\n}\n.mj-profile__close[_ngcontent-%COMP%]:hover { background: rgba(255, 255, 255, 0.3); }\n.mj-profile--panel-open[_ngcontent-%COMP%] .mj-profile__close[_ngcontent-%COMP%] { opacity: 0; pointer-events: none; }\n\n\n\n\n\n.mj-profile__main[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n flex: 1;\n min-height: 0;\n transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);\n}\n.mj-profile--panel-open[_ngcontent-%COMP%] .mj-profile__main[_ngcontent-%COMP%] {\n transform: translateX(-12%);\n pointer-events: none;\n}\n\n.mj-profile__hero[_ngcontent-%COMP%] {\n background: linear-gradient(135deg, #264FAF 0%, #0076b6 100%);\n color: #fff;\n padding: 22px 24px 56px;\n position: relative;\n overflow: hidden;\n flex-shrink: 0;\n}\n.mj-profile__hero[_ngcontent-%COMP%]::before {\n content: '';\n position: absolute;\n inset: -50%;\n background: radial-gradient(circle, rgba(255, 255, 255, 0.10) 0%, transparent 60%);\n animation: _ngcontent-%COMP%_mj-profile-rotate 24s linear infinite;\n pointer-events: none;\n}\n@media (prefers-reduced-motion: reduce) {\n .mj-profile__hero[_ngcontent-%COMP%]::before { animation: none; }\n}\n@keyframes _ngcontent-%COMP%_mj-profile-rotate { to { transform: rotate(360deg); } }\n\n.mj-profile__hero-title[_ngcontent-%COMP%] {\n margin: 0;\n font-size: 12px;\n font-weight: 700;\n text-transform: uppercase;\n letter-spacing: 1.2px;\n opacity: 0.85;\n position: relative;\n z-index: 1;\n}\n\n.mj-profile__avatar-zone[_ngcontent-%COMP%] {\n position: relative;\n width: 96px;\n height: 96px;\n margin: -48px auto 12px;\n z-index: 2;\n}\n.mj-profile__avatar[_ngcontent-%COMP%] {\n width: 96px;\n height: 96px;\n border-radius: 50%;\n background: linear-gradient(135deg, #264FAF 0%, #0076b6 100%);\n color: #fff;\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 32px;\n font-weight: 700;\n border: 4px solid var(--mj-bg-surface);\n box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);\n object-fit: cover;\n overflow: hidden;\n}\nimg.mj-profile__avatar[_ngcontent-%COMP%] { background: var(--mj-bg-surface-card); }\n.mj-profile__avatar--icon[_ngcontent-%COMP%] i[_ngcontent-%COMP%] { font-size: 36px; }\n\n.mj-profile__avatar-edit[_ngcontent-%COMP%] {\n position: absolute;\n bottom: 2px; right: 2px;\n width: 30px; height: 30px;\n border-radius: 50%;\n background: var(--mj-bg-surface);\n color: var(--mj-brand-primary);\n border: 2px solid var(--mj-bg-surface);\n cursor: pointer;\n display: flex; align-items: center; justify-content: center;\n font-size: 12px;\n box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);\n transition: transform 0.15s;\n}\n.mj-profile__avatar-edit[_ngcontent-%COMP%]:hover { transform: scale(1.1); }\n\n.mj-profile__identity[_ngcontent-%COMP%] {\n text-align: center;\n padding: 0 24px 16px;\n flex-shrink: 0;\n}\n.mj-profile__name[_ngcontent-%COMP%] {\n margin: 0 0 4px;\n font-size: 22px;\n font-weight: 700;\n letter-spacing: -0.4px;\n color: var(--mj-text-primary);\n}\n.mj-profile__email[_ngcontent-%COMP%] {\n margin: 0 0 12px;\n color: var(--mj-text-muted);\n font-size: 13px;\n word-break: break-all;\n}\n.mj-profile__chips[_ngcontent-%COMP%] {\n display: flex;\n gap: 6px;\n flex-wrap: wrap;\n justify-content: center;\n}\n.mj-profile__chip[_ngcontent-%COMP%] {\n display: inline-flex;\n align-items: center;\n gap: 4px;\n padding: 3px 9px;\n border-radius: 100px;\n font-size: 11px;\n font-weight: 600;\n background: color-mix(in srgb, var(--mj-brand-primary) 12%, transparent);\n color: var(--mj-brand-primary);\n}\n.mj-profile__chip--admin[_ngcontent-%COMP%] {\n background: color-mix(in srgb, #f59e0b 14%, transparent);\n color: #b45309;\n}\n.mj-profile__chip--dev[_ngcontent-%COMP%] {\n background: color-mix(in srgb, #10b981 14%, transparent);\n color: #047857;\n}\n\n\n\n\n\n.mj-profile__scroll[_ngcontent-%COMP%] {\n flex: 1;\n min-height: 0;\n overflow-y: auto;\n}\n\n.mj-profile__field-list[_ngcontent-%COMP%] {\n padding: 0 24px;\n}\n.mj-profile__field[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n padding: 12px 0;\n gap: 14px;\n border-top: 1px solid var(--mj-border-subtle);\n width: 100%;\n text-align: left;\n background: transparent;\n border-left: none;\n border-right: none;\n border-bottom: none;\n font-family: inherit;\n color: inherit;\n}\n.mj-profile__field[_ngcontent-%COMP%]:first-child { border-top: none; }\n.mj-profile__field--button[_ngcontent-%COMP%] {\n cursor: pointer;\n transition: background 0.12s;\n margin: 0 -8px;\n padding-left: 8px;\n padding-right: 8px;\n border-radius: 8px;\n border-top: none;\n}\n.mj-profile__field--button[_ngcontent-%COMP%] + .mj-profile__field--button[_ngcontent-%COMP%] { margin-top: 0; }\n.mj-profile__field--button[_ngcontent-%COMP%]:hover { background: var(--mj-bg-surface-hover); }\n.mj-profile__field--button[_ngcontent-%COMP%]:hover .mj-profile__field-chev[_ngcontent-%COMP%] { color: var(--mj-brand-primary); }\n.mj-profile__field-icon[_ngcontent-%COMP%] {\n width: 32px; height: 32px;\n background: var(--mj-bg-surface-sunken);\n border-radius: 8px;\n color: var(--mj-text-secondary);\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 12px;\n flex-shrink: 0;\n}\n.mj-profile__field-body[_ngcontent-%COMP%] { flex: 1; min-width: 0; }\n.mj-profile__field-label[_ngcontent-%COMP%] {\n font-size: 10.5px;\n color: var(--mj-text-muted);\n text-transform: uppercase;\n font-weight: 600;\n letter-spacing: 0.5px;\n}\n.mj-profile__field-value[_ngcontent-%COMP%] {\n font-size: 13px;\n color: var(--mj-text-primary);\n margin-top: 2px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.mj-profile__field-muted[_ngcontent-%COMP%] { color: var(--mj-text-muted); }\n.mj-profile__field-chev[_ngcontent-%COMP%] {\n color: var(--mj-text-muted);\n font-size: 11px;\n transition: color 0.15s;\n}\n\n.mj-profile__section[_ngcontent-%COMP%] {\n padding: 16px 24px 8px;\n}\n.mj-profile__section-head[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n justify-content: space-between;\n margin-bottom: 10px;\n}\n.mj-profile__section-head[_ngcontent-%COMP%] h4[_ngcontent-%COMP%] {\n margin: 0;\n font-size: 11px;\n font-weight: 700;\n color: var(--mj-text-muted);\n text-transform: uppercase;\n letter-spacing: 0.6px;\n}\n.mj-profile__unread[_ngcontent-%COMP%] {\n font-size: 11px;\n font-weight: 600;\n color: var(--mj-brand-primary);\n background: color-mix(in srgb, var(--mj-brand-primary) 10%, transparent);\n padding: 2px 8px;\n border-radius: 100px;\n}\n.mj-profile__channels-loading[_ngcontent-%COMP%] {\n color: var(--mj-text-muted);\n font-size: 12.5px;\n padding: 12px;\n text-align: center;\n}\n.mj-profile__channels[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: 8px;\n}\n.mj-profile__channel[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: 12px;\n padding: 10px 14px;\n background: var(--mj-bg-surface-card);\n border: 1px solid var(--mj-border-subtle);\n border-radius: 10px;\n cursor: pointer;\n transition: all 0.15s;\n font-family: inherit;\n text-align: left;\n width: 100%;\n}\n.mj-profile__channel[_ngcontent-%COMP%]:hover:not(:disabled) {\n border-color: var(--mj-border-default);\n background: var(--mj-bg-surface-hover);\n}\n.mj-profile__channel[_ngcontent-%COMP%]:disabled { cursor: wait; opacity: 0.7; }\n.mj-profile__channel-icon[_ngcontent-%COMP%] {\n width: 32px; height: 32px;\n border-radius: 8px;\n background: var(--mj-bg-surface-sunken);\n color: var(--mj-text-secondary);\n display: flex; align-items: center; justify-content: center;\n font-size: 13px;\n flex-shrink: 0;\n transition: all 0.15s;\n}\n.mj-profile__channel--on[_ngcontent-%COMP%] .mj-profile__channel-icon[_ngcontent-%COMP%] {\n background: color-mix(in srgb, var(--mj-brand-primary) 14%, transparent);\n color: var(--mj-brand-primary);\n}\n.mj-profile__channel-label[_ngcontent-%COMP%] {\n flex: 1;\n font-size: 13.5px;\n font-weight: 500;\n color: var(--mj-text-primary);\n}\n.mj-profile__channel-hint[_ngcontent-%COMP%] {\n font-size: 11.5px;\n font-weight: 400;\n color: var(--mj-text-muted);\n margin-top: 2px;\n}\n.mj-profile__channel-state[_ngcontent-%COMP%] {\n flex-shrink: 0;\n color: var(--mj-text-muted);\n font-size: 13px;\n min-width: 36px;\n display: flex; justify-content: flex-end; align-items: center;\n}\n\n.mj-profile__switch[_ngcontent-%COMP%] {\n width: 36px;\n height: 20px;\n background: var(--mj-border-strong);\n border-radius: 100px;\n position: relative;\n transition: background 0.2s;\n display: inline-block;\n}\n.mj-profile__switch-knob[_ngcontent-%COMP%] {\n position: absolute;\n top: 2px; left: 2px;\n width: 16px; height: 16px;\n background: white;\n border-radius: 50%;\n transition: transform 0.2s;\n box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);\n}\n.mj-profile__switch--on[_ngcontent-%COMP%] { background: var(--mj-brand-primary); }\n.mj-profile__switch--on[_ngcontent-%COMP%] .mj-profile__switch-knob[_ngcontent-%COMP%] { transform: translateX(16px); }\n\n.mj-profile__footer[_ngcontent-%COMP%] {\n border-top: 1px solid var(--mj-border-subtle);\n padding: 14px 20px;\n display: flex;\n gap: 8px;\n align-items: center;\n flex-shrink: 0;\n}\n.mj-profile__spacer[_ngcontent-%COMP%] { flex: 1; }\n.mj-profile__btn[_ngcontent-%COMP%] {\n padding: 9px 16px;\n border-radius: 8px;\n border: 1px solid var(--mj-border-default);\n background: var(--mj-bg-surface);\n color: var(--mj-text-primary);\n cursor: pointer;\n font-size: 13px;\n font-weight: 500;\n font-family: inherit;\n display: inline-flex;\n align-items: center;\n gap: 6px;\n transition: all 0.15s;\n}\n.mj-profile__btn[_ngcontent-%COMP%]:hover { background: var(--mj-bg-surface-hover); border-color: var(--mj-border-strong); }\n.mj-profile__btn--primary[_ngcontent-%COMP%] {\n background: var(--mj-brand-primary);\n color: var(--mj-text-inverse);\n border-color: var(--mj-brand-primary);\n}\n.mj-profile__btn--primary[_ngcontent-%COMP%]:hover {\n background: color-mix(in srgb, var(--mj-brand-primary) 88%, black);\n border-color: color-mix(in srgb, var(--mj-brand-primary) 88%, black);\n}\n.mj-profile__btn--danger[_ngcontent-%COMP%] {\n color: var(--mj-status-error);\n border-color: color-mix(in srgb, var(--mj-status-error) 30%, var(--mj-border-default));\n}\n.mj-profile__btn--danger[_ngcontent-%COMP%]:hover {\n background: color-mix(in srgb, var(--mj-status-error) 8%, transparent);\n border-color: var(--mj-status-error);\n}\n\n\n.mj-profile__panel[_ngcontent-%COMP%] {\n position: absolute;\n inset: 0;\n background: var(--mj-bg-surface);\n transform: translateX(100%);\n transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);\n display: flex;\n flex-direction: column;\n z-index: 3;\n}\n.mj-profile__panel--open[_ngcontent-%COMP%] {\n transform: translateX(0);\n box-shadow: -8px 0 24px rgba(0, 0, 0, 0.06);\n}\n.mj-profile__panel-header[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: 12px;\n padding: 14px 18px;\n border-bottom: 1px solid var(--mj-border-subtle);\n background: var(--mj-bg-surface-card);\n flex-shrink: 0;\n}\n.mj-profile__panel-back[_ngcontent-%COMP%] {\n width: 34px; height: 34px;\n border-radius: 8px;\n border: 1px solid var(--mj-border-default);\n background: var(--mj-bg-surface);\n color: var(--mj-text-primary);\n cursor: pointer;\n display: flex; align-items: center; justify-content: center;\n font-size: 13px;\n transition: all 0.15s;\n font-family: inherit;\n}\n.mj-profile__panel-back[_ngcontent-%COMP%]:hover {\n background: var(--mj-bg-surface-hover);\n border-color: var(--mj-brand-primary);\n color: var(--mj-brand-primary);\n}\n.mj-profile__panel-title[_ngcontent-%COMP%] {\n margin: 0;\n font-size: 15px;\n font-weight: 600;\n color: var(--mj-text-primary);\n letter-spacing: -0.2px;\n}\n.mj-profile__panel-body[_ngcontent-%COMP%] {\n flex: 1;\n min-height: 0;\n overflow-y: auto;\n padding: 16px 20px 20px;\n}\n\n\n.mj-profile__themes[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: 8px;\n}\n.mj-profile__theme[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: 14px;\n padding: 12px 14px;\n background: var(--mj-bg-surface-card);\n border: 1px solid var(--mj-border-subtle);\n border-radius: 10px;\n cursor: pointer;\n transition: all 0.15s;\n text-align: left;\n width: 100%;\n font-family: inherit;\n}\n.mj-profile__theme[_ngcontent-%COMP%]:hover:not(:disabled) {\n border-color: var(--mj-brand-primary);\n background: var(--mj-bg-surface-hover);\n}\n.mj-profile__theme[_ngcontent-%COMP%]:disabled { cursor: wait; opacity: 0.7; }\n.mj-profile__theme--active[_ngcontent-%COMP%] {\n border-color: var(--mj-brand-primary);\n background: color-mix(in srgb, var(--mj-brand-primary) 5%, var(--mj-bg-surface-card));\n}\n.mj-profile__theme-swatch[_ngcontent-%COMP%] {\n width: 40px; height: 40px;\n border-radius: 10px;\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 16px;\n flex-shrink: 0;\n border: 1px solid var(--mj-border-default);\n}\n.mj-profile__theme-swatch--light[_ngcontent-%COMP%] {\n background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);\n color: #f59e0b;\n}\n.mj-profile__theme-swatch--dark[_ngcontent-%COMP%] {\n background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);\n color: #94a3b8;\n border-color: #334155;\n}\n.mj-profile__theme-swatch--system[_ngcontent-%COMP%] {\n background: linear-gradient(135deg, #ffffff 0%, #ffffff 49%, #1e293b 51%, #0f172a 100%);\n color: var(--mj-text-secondary);\n}\n.mj-profile__theme-info[_ngcontent-%COMP%] { flex: 1; min-width: 0; }\n.mj-profile__theme-name[_ngcontent-%COMP%] {\n font-size: 13.5px;\n font-weight: 600;\n color: var(--mj-text-primary);\n}\n.mj-profile__theme-desc[_ngcontent-%COMP%] {\n font-size: 11.5px;\n color: var(--mj-text-muted);\n margin-top: 2px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.mj-profile__theme-check[_ngcontent-%COMP%] {\n color: var(--mj-brand-primary);\n font-size: 14px;\n flex-shrink: 0;\n}\n\n\n.mj-profile__theme-sep[_ngcontent-%COMP%] {\n font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;\n color: var(--mj-text-muted); padding: 6px 4px 2px; margin-top: 6px;\n}\n.mj-profile__brand-swatch[_ngcontent-%COMP%] {\n display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 0;\n}\n.mj-profile__brand-swatch[_ngcontent-%COMP%] i[_ngcontent-%COMP%] {\n width: 33%; height: 100%; display: block;\n}\n\n@media (max-width: 480px) {\n .mj-profile__hero[_ngcontent-%COMP%] { padding: 20px 18px 48px; }\n .mj-profile__avatar-zone[_ngcontent-%COMP%] { width: 88px; height: 88px; margin-top: -44px; }\n .mj-profile__avatar[_ngcontent-%COMP%] { width: 88px; height: 88px; font-size: 28px; }\n .mj-profile__name[_ngcontent-%COMP%] { font-size: 19px; }\n .mj-profile__field-list[_ngcontent-%COMP%], \n .mj-profile__section[_ngcontent-%COMP%] { padding-left: 18px; padding-right: 18px; }\n .mj-profile__footer[_ngcontent-%COMP%] { padding: 12px 16px; }\n .mj-profile--panel-open[_ngcontent-%COMP%] .mj-profile__main[_ngcontent-%COMP%] { transform: translateX(-20%); }\n .mj-profile__panel-body[_ngcontent-%COMP%] { padding: 14px 16px 16px; }\n}"] });
810
+ } }, dependencies: [CommonModule, UserSettingsModule, i1.UserProfileSettingsComponent], styles: ["[_nghost-%COMP%] {\n display: block;\n width: 100%;\n height: 100%;\n}\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n.mj-profile[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n background: var(--mj-bg-surface);\n color: var(--mj-text-primary);\n height: 100%;\n max-height: 100vh;\n max-height: 100dvh;\n min-height: 0;\n position: relative;\n font-family: inherit;\n overflow: hidden;\n}\n.mj-profile__close[_ngcontent-%COMP%] {\n position: absolute;\n top: 12px; right: 12px;\n width: 36px; height: 36px;\n border: none; border-radius: 8px;\n background: rgba(255, 255, 255, 0.18);\n backdrop-filter: blur(8px);\n color: #fff;\n cursor: pointer;\n font-size: 16px;\n display: flex; align-items: center; justify-content: center;\n transition: background 0.15s, opacity 0.2s;\n z-index: 4;\n}\n.mj-profile__close[_ngcontent-%COMP%]:hover { background: rgba(255, 255, 255, 0.3); }\n.mj-profile--panel-open[_ngcontent-%COMP%] .mj-profile__close[_ngcontent-%COMP%] { opacity: 0; pointer-events: none; }\n\n\n\n\n\n.mj-profile__main[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n flex: 1;\n min-height: 0;\n transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);\n}\n.mj-profile--panel-open[_ngcontent-%COMP%] .mj-profile__main[_ngcontent-%COMP%] {\n transform: translateX(-12%);\n pointer-events: none;\n}\n\n.mj-profile__hero[_ngcontent-%COMP%] {\n background: linear-gradient(135deg, #264FAF 0%, #0076b6 100%);\n color: #fff;\n padding: 22px 24px 56px;\n position: relative;\n overflow: hidden;\n flex-shrink: 0;\n}\n.mj-profile__hero[_ngcontent-%COMP%]::before {\n content: '';\n position: absolute;\n inset: -50%;\n background: radial-gradient(circle, rgba(255, 255, 255, 0.10) 0%, transparent 60%);\n animation: _ngcontent-%COMP%_mj-profile-rotate 24s linear infinite;\n pointer-events: none;\n}\n@media (prefers-reduced-motion: reduce) {\n .mj-profile__hero[_ngcontent-%COMP%]::before { animation: none; }\n}\n@keyframes _ngcontent-%COMP%_mj-profile-rotate { to { transform: rotate(360deg); } }\n\n.mj-profile__hero-title[_ngcontent-%COMP%] {\n margin: 0;\n font-size: 12px;\n font-weight: 700;\n text-transform: uppercase;\n letter-spacing: 1.2px;\n opacity: 0.85;\n position: relative;\n z-index: 1;\n}\n\n.mj-profile__avatar-zone[_ngcontent-%COMP%] {\n position: relative;\n width: 96px;\n height: 96px;\n margin: -48px auto 12px;\n z-index: 2;\n}\n.mj-profile__avatar[_ngcontent-%COMP%] {\n width: 96px;\n height: 96px;\n border-radius: 50%;\n background: linear-gradient(135deg, #264FAF 0%, #0076b6 100%);\n color: #fff;\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 32px;\n font-weight: 700;\n border: 4px solid var(--mj-bg-surface);\n box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);\n object-fit: cover;\n overflow: hidden;\n}\nimg.mj-profile__avatar[_ngcontent-%COMP%] { background: var(--mj-bg-surface-card); }\n.mj-profile__avatar--icon[_ngcontent-%COMP%] i[_ngcontent-%COMP%] { font-size: 36px; }\n\n.mj-profile__avatar-edit[_ngcontent-%COMP%] {\n position: absolute;\n bottom: 2px; right: 2px;\n width: 30px; height: 30px;\n border-radius: 50%;\n background: var(--mj-bg-surface);\n color: var(--mj-brand-primary);\n border: 2px solid var(--mj-bg-surface);\n cursor: pointer;\n display: flex; align-items: center; justify-content: center;\n font-size: 12px;\n box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);\n transition: transform 0.15s;\n}\n.mj-profile__avatar-edit[_ngcontent-%COMP%]:hover { transform: scale(1.1); }\n\n.mj-profile__identity[_ngcontent-%COMP%] {\n text-align: center;\n padding: 0 24px 16px;\n flex-shrink: 0;\n}\n.mj-profile__name[_ngcontent-%COMP%] {\n margin: 0 0 4px;\n font-size: 22px;\n font-weight: 700;\n letter-spacing: -0.4px;\n color: var(--mj-text-primary);\n}\n.mj-profile__email[_ngcontent-%COMP%] {\n margin: 0 0 12px;\n color: var(--mj-text-muted);\n font-size: 13px;\n word-break: break-all;\n}\n.mj-profile__chips[_ngcontent-%COMP%] {\n display: flex;\n gap: 6px;\n flex-wrap: wrap;\n justify-content: center;\n}\n.mj-profile__chip[_ngcontent-%COMP%] {\n display: inline-flex;\n align-items: center;\n gap: 4px;\n padding: 3px 9px;\n border-radius: 100px;\n font-size: 11px;\n font-weight: 600;\n background: color-mix(in srgb, var(--mj-brand-primary) 12%, transparent);\n color: var(--mj-brand-primary);\n}\n.mj-profile__chip--admin[_ngcontent-%COMP%] {\n background: color-mix(in srgb, #f59e0b 14%, transparent);\n color: #b45309;\n}\n.mj-profile__chip--dev[_ngcontent-%COMP%] {\n background: color-mix(in srgb, #10b981 14%, transparent);\n color: #047857;\n}\n\n\n\n\n\n.mj-profile__scroll[_ngcontent-%COMP%] {\n flex: 1;\n min-height: 0;\n overflow-y: auto;\n}\n\n.mj-profile__field-list[_ngcontent-%COMP%] {\n padding: 0 24px;\n}\n.mj-profile__field[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n padding: 12px 0;\n gap: 14px;\n border-top: 1px solid var(--mj-border-subtle);\n width: 100%;\n text-align: left;\n background: transparent;\n border-left: none;\n border-right: none;\n border-bottom: none;\n font-family: inherit;\n color: inherit;\n}\n.mj-profile__field[_ngcontent-%COMP%]:first-child { border-top: none; }\n.mj-profile__field--button[_ngcontent-%COMP%] {\n cursor: pointer;\n transition: background 0.12s;\n margin: 0 -8px;\n padding-left: 8px;\n padding-right: 8px;\n border-radius: 8px;\n border-top: none;\n}\n.mj-profile__field--button[_ngcontent-%COMP%] + .mj-profile__field--button[_ngcontent-%COMP%] { margin-top: 0; }\n.mj-profile__field--button[_ngcontent-%COMP%]:hover { background: var(--mj-bg-surface-hover); }\n.mj-profile__field--button[_ngcontent-%COMP%]:hover .mj-profile__field-chev[_ngcontent-%COMP%] { color: var(--mj-brand-primary); }\n.mj-profile__field-icon[_ngcontent-%COMP%] {\n width: 32px; height: 32px;\n background: var(--mj-bg-surface-sunken);\n border-radius: 8px;\n color: var(--mj-text-secondary);\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 12px;\n flex-shrink: 0;\n}\n.mj-profile__field-body[_ngcontent-%COMP%] { flex: 1; min-width: 0; }\n.mj-profile__field-label[_ngcontent-%COMP%] {\n font-size: 10.5px;\n color: var(--mj-text-muted);\n text-transform: uppercase;\n font-weight: 600;\n letter-spacing: 0.5px;\n}\n.mj-profile__field-value[_ngcontent-%COMP%] {\n font-size: 13px;\n color: var(--mj-text-primary);\n margin-top: 2px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.mj-profile__field-muted[_ngcontent-%COMP%] { color: var(--mj-text-muted); }\n.mj-profile__field-chev[_ngcontent-%COMP%] {\n color: var(--mj-text-muted);\n font-size: 11px;\n transition: color 0.15s;\n}\n\n.mj-profile__section[_ngcontent-%COMP%] {\n padding: 16px 24px 8px;\n}\n.mj-profile__section-head[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n justify-content: space-between;\n margin-bottom: 10px;\n}\n.mj-profile__section-head[_ngcontent-%COMP%] h4[_ngcontent-%COMP%] {\n margin: 0;\n font-size: 11px;\n font-weight: 700;\n color: var(--mj-text-muted);\n text-transform: uppercase;\n letter-spacing: 0.6px;\n}\n.mj-profile__unread[_ngcontent-%COMP%] {\n font-size: 11px;\n font-weight: 600;\n color: var(--mj-brand-primary);\n background: color-mix(in srgb, var(--mj-brand-primary) 10%, transparent);\n padding: 2px 8px;\n border-radius: 100px;\n}\n.mj-profile__channels-loading[_ngcontent-%COMP%] {\n color: var(--mj-text-muted);\n font-size: 12.5px;\n padding: 12px;\n text-align: center;\n}\n.mj-profile__channels[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: 8px;\n}\n.mj-profile__channel[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: 12px;\n padding: 10px 14px;\n background: var(--mj-bg-surface-card);\n border: 1px solid var(--mj-border-subtle);\n border-radius: 10px;\n cursor: pointer;\n transition: all 0.15s;\n font-family: inherit;\n text-align: left;\n width: 100%;\n}\n.mj-profile__channel[_ngcontent-%COMP%]:hover:not(:disabled) {\n border-color: var(--mj-border-default);\n background: var(--mj-bg-surface-hover);\n}\n.mj-profile__channel[_ngcontent-%COMP%]:disabled { cursor: wait; opacity: 0.7; }\n.mj-profile__channel-icon[_ngcontent-%COMP%] {\n width: 32px; height: 32px;\n border-radius: 8px;\n background: var(--mj-bg-surface-sunken);\n color: var(--mj-text-secondary);\n display: flex; align-items: center; justify-content: center;\n font-size: 13px;\n flex-shrink: 0;\n transition: all 0.15s;\n}\n.mj-profile__channel--on[_ngcontent-%COMP%] .mj-profile__channel-icon[_ngcontent-%COMP%] {\n background: color-mix(in srgb, var(--mj-brand-primary) 14%, transparent);\n color: var(--mj-brand-primary);\n}\n.mj-profile__channel-label[_ngcontent-%COMP%] {\n flex: 1;\n font-size: 13.5px;\n font-weight: 500;\n color: var(--mj-text-primary);\n}\n.mj-profile__channel-hint[_ngcontent-%COMP%] {\n font-size: 11.5px;\n font-weight: 400;\n color: var(--mj-text-muted);\n margin-top: 2px;\n}\n.mj-profile__channel-state[_ngcontent-%COMP%] {\n flex-shrink: 0;\n color: var(--mj-text-muted);\n font-size: 13px;\n min-width: 36px;\n display: flex; justify-content: flex-end; align-items: center;\n}\n\n.mj-profile__switch[_ngcontent-%COMP%] {\n width: 36px;\n height: 20px;\n background: var(--mj-border-strong);\n border-radius: 100px;\n position: relative;\n transition: background 0.2s;\n display: inline-block;\n}\n.mj-profile__switch-knob[_ngcontent-%COMP%] {\n position: absolute;\n top: 2px; left: 2px;\n width: 16px; height: 16px;\n background: white;\n border-radius: 50%;\n transition: transform 0.2s;\n box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);\n}\n.mj-profile__switch--on[_ngcontent-%COMP%] { background: var(--mj-brand-primary); }\n.mj-profile__switch--on[_ngcontent-%COMP%] .mj-profile__switch-knob[_ngcontent-%COMP%] { transform: translateX(16px); }\n\n.mj-profile__footer[_ngcontent-%COMP%] {\n border-top: 1px solid var(--mj-border-subtle);\n padding: 14px 20px;\n display: flex;\n gap: 8px;\n align-items: center;\n flex-shrink: 0;\n}\n.mj-profile__spacer[_ngcontent-%COMP%] { flex: 1; }\n.mj-profile__btn[_ngcontent-%COMP%] {\n padding: 9px 16px;\n border-radius: 8px;\n border: 1px solid var(--mj-border-default);\n background: var(--mj-bg-surface);\n color: var(--mj-text-primary);\n cursor: pointer;\n font-size: 13px;\n font-weight: 500;\n font-family: inherit;\n display: inline-flex;\n align-items: center;\n gap: 6px;\n transition: all 0.15s;\n}\n.mj-profile__btn[_ngcontent-%COMP%]:hover { background: var(--mj-bg-surface-hover); border-color: var(--mj-border-strong); }\n.mj-profile__btn--primary[_ngcontent-%COMP%] {\n background: var(--mj-brand-primary);\n color: var(--mj-text-inverse);\n border-color: var(--mj-brand-primary);\n}\n.mj-profile__btn--primary[_ngcontent-%COMP%]:hover {\n background: color-mix(in srgb, var(--mj-brand-primary) 88%, black);\n border-color: color-mix(in srgb, var(--mj-brand-primary) 88%, black);\n}\n.mj-profile__btn--danger[_ngcontent-%COMP%] {\n color: var(--mj-status-error);\n border-color: color-mix(in srgb, var(--mj-status-error) 30%, var(--mj-border-default));\n}\n.mj-profile__btn--danger[_ngcontent-%COMP%]:hover {\n background: color-mix(in srgb, var(--mj-status-error) 8%, transparent);\n border-color: var(--mj-status-error);\n}\n\n\n.mj-profile__panel[_ngcontent-%COMP%] {\n position: absolute;\n inset: 0;\n background: var(--mj-bg-surface);\n transform: translateX(100%);\n transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);\n display: flex;\n flex-direction: column;\n z-index: 3;\n}\n.mj-profile__panel--open[_ngcontent-%COMP%] {\n transform: translateX(0);\n box-shadow: -8px 0 24px rgba(0, 0, 0, 0.06);\n}\n.mj-profile__panel-header[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: 12px;\n padding: 14px 18px;\n border-bottom: 1px solid var(--mj-border-subtle);\n background: var(--mj-bg-surface-card);\n flex-shrink: 0;\n}\n.mj-profile__panel-back[_ngcontent-%COMP%] {\n width: 34px; height: 34px;\n border-radius: 8px;\n border: 1px solid var(--mj-border-default);\n background: var(--mj-bg-surface);\n color: var(--mj-text-primary);\n cursor: pointer;\n display: flex; align-items: center; justify-content: center;\n font-size: 13px;\n transition: all 0.15s;\n font-family: inherit;\n}\n.mj-profile__panel-back[_ngcontent-%COMP%]:hover {\n background: var(--mj-bg-surface-hover);\n border-color: var(--mj-brand-primary);\n color: var(--mj-brand-primary);\n}\n.mj-profile__panel-title[_ngcontent-%COMP%] {\n margin: 0;\n font-size: 15px;\n font-weight: 600;\n color: var(--mj-text-primary);\n letter-spacing: -0.2px;\n}\n.mj-profile__panel-body[_ngcontent-%COMP%] {\n flex: 1;\n min-height: 0;\n overflow-y: auto;\n padding: 16px 20px 20px;\n}\n\n\n.mj-profile__themes[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: 8px;\n}\n.mj-profile__theme[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: 14px;\n padding: 12px 14px;\n background: var(--mj-bg-surface-card);\n border: 1px solid var(--mj-border-subtle);\n border-radius: 10px;\n cursor: pointer;\n transition: all 0.15s;\n text-align: left;\n width: 100%;\n font-family: inherit;\n}\n.mj-profile__theme[_ngcontent-%COMP%]:hover:not(:disabled) {\n border-color: var(--mj-brand-primary);\n background: var(--mj-bg-surface-hover);\n}\n.mj-profile__theme[_ngcontent-%COMP%]:disabled { cursor: wait; opacity: 0.7; }\n.mj-profile__theme--active[_ngcontent-%COMP%] {\n border-color: var(--mj-brand-primary);\n background: color-mix(in srgb, var(--mj-brand-primary) 5%, var(--mj-bg-surface-card));\n}\n.mj-profile__theme-swatch[_ngcontent-%COMP%] {\n width: 40px; height: 40px;\n border-radius: 10px;\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 16px;\n flex-shrink: 0;\n border: 1px solid var(--mj-border-default);\n}\n.mj-profile__theme-swatch--light[_ngcontent-%COMP%] {\n background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);\n color: #f59e0b;\n}\n.mj-profile__theme-swatch--dark[_ngcontent-%COMP%] {\n background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);\n color: #94a3b8;\n border-color: #334155;\n}\n.mj-profile__theme-swatch--system[_ngcontent-%COMP%] {\n background: linear-gradient(135deg, #ffffff 0%, #ffffff 49%, #1e293b 51%, #0f172a 100%);\n color: var(--mj-text-secondary);\n}\n.mj-profile__theme-info[_ngcontent-%COMP%] { flex: 1; min-width: 0; }\n.mj-profile__theme-name[_ngcontent-%COMP%] {\n font-size: 13.5px;\n font-weight: 600;\n color: var(--mj-text-primary);\n}\n.mj-profile__theme-desc[_ngcontent-%COMP%] {\n font-size: 11.5px;\n color: var(--mj-text-muted);\n margin-top: 2px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.mj-profile__theme-check[_ngcontent-%COMP%] {\n color: var(--mj-brand-primary);\n font-size: 14px;\n flex-shrink: 0;\n}\n\n\n.mj-profile__theme-sep[_ngcontent-%COMP%] {\n font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;\n color: var(--mj-text-muted); padding: 6px 4px 2px; margin-top: 6px;\n}\n.mj-profile__brand-swatch[_ngcontent-%COMP%] {\n display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 0;\n}\n.mj-profile__brand-swatch[_ngcontent-%COMP%] i[_ngcontent-%COMP%] {\n width: 33%; height: 100%; display: block;\n}\n\n@media (max-width: 480px) {\n .mj-profile__hero[_ngcontent-%COMP%] { padding: 20px 18px 48px; }\n .mj-profile__avatar-zone[_ngcontent-%COMP%] { width: 88px; height: 88px; margin-top: -44px; }\n .mj-profile__avatar[_ngcontent-%COMP%] { width: 88px; height: 88px; font-size: 28px; }\n .mj-profile__name[_ngcontent-%COMP%] { font-size: 19px; }\n .mj-profile__field-list[_ngcontent-%COMP%], \n .mj-profile__section[_ngcontent-%COMP%] { padding-left: 18px; padding-right: 18px; }\n .mj-profile__footer[_ngcontent-%COMP%] { padding: 12px 16px; }\n .mj-profile--panel-open[_ngcontent-%COMP%] .mj-profile__main[_ngcontent-%COMP%] { transform: translateX(-20%); }\n .mj-profile__panel-body[_ngcontent-%COMP%] { padding: 14px 16px 16px; }\n}"] });
811
811
  }
812
812
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ProfileDialogComponent, [{
813
813
  type: Component,
814
- args: [{ selector: 'mj-profile-dialog', standalone: true, imports: [CommonModule, ExplorerSettingsModule], template: `
814
+ args: [{ selector: 'mj-profile-dialog', standalone: true, imports: [CommonModule, UserSettingsModule], template: `
815
815
  <div class="mj-profile" [class.mj-profile--panel-open]="ActivePanel !== 'none'" role="document">
816
816
  <button class="mj-profile__close" type="button" aria-label="Close" (click)="OnCloseClick()">
817
817
  <i class="fa-solid fa-xmark"></i>