@m6d/cortex-angular 0.15.1 → 0.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -6
- package/fesm2022/m6d-cortex-angular.mjs +165 -189
- package/package.json +1 -1
- package/types/m6d-cortex-angular.d.ts +23 -19
|
@@ -1,27 +1,3 @@
|
|
|
1
|
-
var __create = Object.create;
|
|
2
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __toESM = (mod, isNodeMode, target) => {
|
|
7
|
-
target = mod != null ? __create(__getProtoOf(mod)) : {};
|
|
8
|
-
const to = isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target;
|
|
9
|
-
for (let key of __getOwnPropNames(mod))
|
|
10
|
-
if (!__hasOwnProp.call(to, key))
|
|
11
|
-
__defProp(to, key, {
|
|
12
|
-
get: () => mod[key],
|
|
13
|
-
enumerable: true
|
|
14
|
-
});
|
|
15
|
-
return to;
|
|
16
|
-
};
|
|
17
|
-
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
18
|
-
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
19
|
-
}) : x)(function(x) {
|
|
20
|
-
if (typeof require !== "undefined")
|
|
21
|
-
return require.apply(this, arguments);
|
|
22
|
-
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
23
|
-
});
|
|
24
|
-
|
|
25
1
|
// dist/fesm2022/m6d-cortex-angular.mjs
|
|
26
2
|
import * as i0 from "@angular/core";
|
|
27
3
|
import { ChangeDetectionStrategy as ChangeDetectionStrategy2, Component, DestroyRef, Directive, ElementRef, Injectable, InjectionToken, Injector, Pipe, TemplateRef, ViewEncapsulation as ViewEncapsulation2, afterNextRender, afterRenderEffect, computed, contentChildren, effect, inject, input, output, signal, untracked, viewChild } from "@angular/core";
|
|
@@ -74,6 +50,9 @@ function checkAttachmentPolicy(file) {
|
|
|
74
50
|
return "ok";
|
|
75
51
|
}
|
|
76
52
|
var VISITOR_RECAPTCHA_ACTION = "cortex_visitor";
|
|
53
|
+
function localized(value, locale) {
|
|
54
|
+
return value[locale] ?? value.en ?? Object.values(value)[0];
|
|
55
|
+
}
|
|
77
56
|
var STATEMENT_TOOLS = ["executeCode", "queryDataset", "describeDataset"];
|
|
78
57
|
var APPROVAL_TITLE_FIELD = "approvalTitle";
|
|
79
58
|
function modelLineOf(input, field) {
|
|
@@ -664,14 +643,6 @@ function composerDrop(options) {
|
|
|
664
643
|
}
|
|
665
644
|
};
|
|
666
645
|
}
|
|
667
|
-
// src/internal/client/src/format/localized.ts
|
|
668
|
-
function localized(value, locale) {
|
|
669
|
-
if (value === undefined || typeof value === "string" || Array.isArray(value)) {
|
|
670
|
-
return value;
|
|
671
|
-
}
|
|
672
|
-
const byLocale = value;
|
|
673
|
-
return byLocale[locale] ?? byLocale.en ?? Object.values(byLocale)[0];
|
|
674
|
-
}
|
|
675
646
|
// src/internal/client/src/i18n/ar.json
|
|
676
647
|
var ar_default = {
|
|
677
648
|
translate_history: "السجل",
|
|
@@ -1736,8 +1707,8 @@ function createCortexConnection(options) {
|
|
|
1736
1707
|
});
|
|
1737
1708
|
heard(answersReceiptOf(response.status));
|
|
1738
1709
|
api.readVisitorAnswer(response, init?.headers);
|
|
1739
|
-
const
|
|
1740
|
-
if (submission && !
|
|
1710
|
+
const replay = new Headers(init?.headers).has("Last-Event-ID");
|
|
1711
|
+
if (submission && !replay && response.status === 401)
|
|
1741
1712
|
options.onMessageRefused?.();
|
|
1742
1713
|
const refusal = await refusalOf(response);
|
|
1743
1714
|
if (refusal)
|
|
@@ -1851,8 +1822,8 @@ function createTurnLifecycle(options) {
|
|
|
1851
1822
|
ownsRun = true;
|
|
1852
1823
|
options.setRunning(true);
|
|
1853
1824
|
}
|
|
1854
|
-
function settleDelivery(callId,
|
|
1855
|
-
delivering.get(callId)?.waiters.forEach(
|
|
1825
|
+
function settleDelivery(callId, settle) {
|
|
1826
|
+
delivering.get(callId)?.waiters.forEach(settle);
|
|
1856
1827
|
delivering.delete(callId);
|
|
1857
1828
|
}
|
|
1858
1829
|
function notTaken(ids, failure, mayHaveLanded = false) {
|
|
@@ -2038,8 +2009,8 @@ function createTurnLifecycle(options) {
|
|
|
2038
2009
|
}, 0);
|
|
2039
2010
|
},
|
|
2040
2011
|
deliverAnswer(callId, deliver) {
|
|
2041
|
-
return new Promise((
|
|
2042
|
-
const waiters = [...delivering.get(callId)?.waiters ?? [], { resolve
|
|
2012
|
+
return new Promise((resolve, reject) => {
|
|
2013
|
+
const waiters = [...delivering.get(callId)?.waiters ?? [], { resolve, reject }];
|
|
2043
2014
|
delivering.set(callId, { deliver, waiters });
|
|
2044
2015
|
send(callId, deliver);
|
|
2045
2016
|
});
|
|
@@ -2166,7 +2137,7 @@ function createChatSession(options) {
|
|
|
2166
2137
|
onRefused: whileAlive((refusal) => lifecycle.sendRefused(refusal)),
|
|
2167
2138
|
onMessageRefused: options.onMessageRefused,
|
|
2168
2139
|
onReceipt: whileAlive((ids, receipt) => lifecycle.receiptArrived(ids, receipt)),
|
|
2169
|
-
setLoadingMessages: whileAlive((
|
|
2140
|
+
setLoadingMessages: whileAlive((loading) => set("isLoadingMessages", loading))
|
|
2170
2141
|
});
|
|
2171
2142
|
const client = new ChatClient({
|
|
2172
2143
|
threadId,
|
|
@@ -2472,6 +2443,7 @@ function createCortexWidget(options) {
|
|
|
2472
2443
|
selected: undefined,
|
|
2473
2444
|
session: BLANK_SESSION,
|
|
2474
2445
|
capabilities: undefined,
|
|
2446
|
+
displayName: undefined,
|
|
2475
2447
|
unanswered: undefined,
|
|
2476
2448
|
attachments: queue.getState(),
|
|
2477
2449
|
creating: false,
|
|
@@ -2588,13 +2560,14 @@ ${draft}` : text);
|
|
|
2588
2560
|
onAnswered: (capabilities) => {
|
|
2589
2561
|
update({
|
|
2590
2562
|
capabilities,
|
|
2563
|
+
displayName: capabilities.displayName,
|
|
2591
2564
|
unanswered: undefined,
|
|
2592
2565
|
debugMode: state.debugMode && capabilities.debug
|
|
2593
2566
|
});
|
|
2594
2567
|
if (answers())
|
|
2595
2568
|
session?.resumeAnswers();
|
|
2596
2569
|
},
|
|
2597
|
-
onMissed: (unanswered) => update({ unanswered })
|
|
2570
|
+
onMissed: (unanswered) => update({ unanswered, displayName: state.displayName ?? {} })
|
|
2598
2571
|
});
|
|
2599
2572
|
}
|
|
2600
2573
|
function followTitle() {
|
|
@@ -2897,8 +2870,15 @@ ${draft}` : text);
|
|
|
2897
2870
|
};
|
|
2898
2871
|
}
|
|
2899
2872
|
function partsOf(state) {
|
|
2900
|
-
const { threads, selected, capabilities, debugMode } = state;
|
|
2901
|
-
return {
|
|
2873
|
+
const { threads, selected, capabilities, displayName, debugMode } = state;
|
|
2874
|
+
return {
|
|
2875
|
+
threads,
|
|
2876
|
+
selected,
|
|
2877
|
+
capabilities,
|
|
2878
|
+
displayName,
|
|
2879
|
+
debugMode,
|
|
2880
|
+
isWorking: state.session.isAgentWorking
|
|
2881
|
+
};
|
|
2902
2882
|
}
|
|
2903
2883
|
function widgetParts(widget, source, config, composer) {
|
|
2904
2884
|
const locale = resolveLocale(config.locale);
|
|
@@ -2906,12 +2886,12 @@ function widgetParts(widget, source, config, composer) {
|
|
|
2906
2886
|
newChat: widget.newChat,
|
|
2907
2887
|
deleteThread: (threadId) => void widget.deleteThread(threadId)
|
|
2908
2888
|
} : undefined;
|
|
2889
|
+
const newChatTitle = source.displayName === undefined ? "" : localized(source.displayName, locale) ?? translate(locale, "translate_new_chat");
|
|
2909
2890
|
function header(screen) {
|
|
2910
2891
|
return {
|
|
2911
2892
|
screen,
|
|
2912
2893
|
viewMode: config.viewMode ?? "helper",
|
|
2913
|
-
title: source.selected?.title ??
|
|
2914
|
-
agentName: localized(config.agentName, locale),
|
|
2894
|
+
title: source.selected?.title ?? newChatTitle,
|
|
2915
2895
|
threadCount: source.threads?.length,
|
|
2916
2896
|
isWorking: source.isWorking,
|
|
2917
2897
|
debug: { shown: Boolean(source.capabilities?.debug), on: source.debugMode },
|
|
@@ -4005,8 +3985,8 @@ function withoutComments(css) {
|
|
|
4005
3985
|
return css.replace(CSS_STRING_OR_COMMENT, (token) => token.startsWith("/*") ? "" : token);
|
|
4006
3986
|
}
|
|
4007
3987
|
async function sanitizeReport(source) {
|
|
4008
|
-
const { default:
|
|
4009
|
-
const fragment =
|
|
3988
|
+
const { default: DOMPurify } = await import("dompurify");
|
|
3989
|
+
const fragment = DOMPurify.sanitize(source, {
|
|
4010
3990
|
FORCE_BODY: true,
|
|
4011
3991
|
RETURN_DOM_FRAGMENT: true,
|
|
4012
3992
|
USE_PROFILES: { html: true, svg: true, svgFilters: true },
|
|
@@ -4085,7 +4065,7 @@ var FENCED_SPEC = /^\s*(`{3,}|~{3,})[^\n]*\n([\s\S]*?)\n\s*\1\s*$/;
|
|
|
4085
4065
|
// src/internal/client/src/content/media-blocks.ts
|
|
4086
4066
|
var builtIn = {
|
|
4087
4067
|
async mermaid(host, source, { scheme }) {
|
|
4088
|
-
const [{ default: mermaid }, { default:
|
|
4068
|
+
const [{ default: mermaid }, { default: DOMPurify }] = await Promise.all([
|
|
4089
4069
|
import("mermaid"),
|
|
4090
4070
|
import("dompurify")
|
|
4091
4071
|
]);
|
|
@@ -4116,7 +4096,7 @@ ${source}`;
|
|
|
4116
4096
|
});
|
|
4117
4097
|
const svg = await run;
|
|
4118
4098
|
const drawing = document.createElement("div");
|
|
4119
|
-
drawing.innerHTML =
|
|
4099
|
+
drawing.innerHTML = DOMPurify.sanitize(svg, { USE_PROFILES: { svg: true, svgFilters: true } });
|
|
4120
4100
|
stripExternalResources(drawing);
|
|
4121
4101
|
host.replaceChildren(...drawing.childNodes);
|
|
4122
4102
|
return () => {
|
|
@@ -4653,13 +4633,13 @@ function messageLayout(message, options) {
|
|
|
4653
4633
|
const parts = visibleMessageParts(message.parts, options);
|
|
4654
4634
|
const drawn = parts.filter((part) => options.fold?.get(part)?.kind !== "hidden");
|
|
4655
4635
|
const lastText = drawn.filter((part) => part.type === "text").at(-1);
|
|
4656
|
-
const
|
|
4636
|
+
const settled = (message.role === "user" || message.role === "assistant") && !options.isStreaming;
|
|
4657
4637
|
return {
|
|
4658
4638
|
metadata,
|
|
4659
4639
|
parts,
|
|
4660
4640
|
drawsBody: parts.length > 0 || Boolean(metadata?.attachments?.length || metadata?.isAborted),
|
|
4661
4641
|
streamingPart: options.isStreaming ? parts.at(-1) : undefined,
|
|
4662
|
-
actionsAfter:
|
|
4642
|
+
actionsAfter: settled && lastText ? lastText === drawn.at(-1) ? "end" : lastText : undefined,
|
|
4663
4643
|
debugStrip: options.debugMode && metadata !== undefined && options.closesTurn
|
|
4664
4644
|
};
|
|
4665
4645
|
}
|
|
@@ -4741,7 +4721,7 @@ var CORTEX_CONFIG_PROVIDERS = [{
|
|
|
4741
4721
|
return scheme.asReadonly();
|
|
4742
4722
|
}
|
|
4743
4723
|
}];
|
|
4744
|
-
var TranslatePipe = class
|
|
4724
|
+
var TranslatePipe = class TranslatePipe {
|
|
4745
4725
|
locale = inject(CORTEX_LOCALE);
|
|
4746
4726
|
transform(key, params) {
|
|
4747
4727
|
return translate(this.locale(), key, params);
|
|
@@ -4750,7 +4730,7 @@ var TranslatePipe = class TranslatePipe2 {
|
|
|
4750
4730
|
minVersion: "12.0.0",
|
|
4751
4731
|
version: "22.2.0",
|
|
4752
4732
|
ngImport: i0,
|
|
4753
|
-
type:
|
|
4733
|
+
type: TranslatePipe,
|
|
4754
4734
|
deps: [],
|
|
4755
4735
|
target: i0.ɵɵFactoryTarget.Pipe
|
|
4756
4736
|
});
|
|
@@ -4758,7 +4738,7 @@ var TranslatePipe = class TranslatePipe2 {
|
|
|
4758
4738
|
minVersion: "14.0.0",
|
|
4759
4739
|
version: "22.2.0",
|
|
4760
4740
|
ngImport: i0,
|
|
4761
|
-
type:
|
|
4741
|
+
type: TranslatePipe,
|
|
4762
4742
|
isStandalone: true,
|
|
4763
4743
|
name: "translate",
|
|
4764
4744
|
pure: false
|
|
@@ -4777,7 +4757,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
4777
4757
|
}]
|
|
4778
4758
|
}]
|
|
4779
4759
|
});
|
|
4780
|
-
var CortexChatService = class
|
|
4760
|
+
var CortexChatService = class CortexChatService {
|
|
4781
4761
|
widget = createCortexWidget({ getConfig: inject(CORTEX_CONFIG) });
|
|
4782
4762
|
snapshot = signal(this.widget.getState(), ...ngDevMode ? [{ debugName: "snapshot" }] : []);
|
|
4783
4763
|
text = signal(this.widget.getDraft(), ...ngDevMode ? [{ debugName: "text" }] : []);
|
|
@@ -4803,7 +4783,7 @@ var CortexChatService = class CortexChatService2 {
|
|
|
4803
4783
|
minVersion: "12.0.0",
|
|
4804
4784
|
version: "22.2.0",
|
|
4805
4785
|
ngImport: i0,
|
|
4806
|
-
type:
|
|
4786
|
+
type: CortexChatService,
|
|
4807
4787
|
deps: [],
|
|
4808
4788
|
target: i0.ɵɵFactoryTarget.Injectable
|
|
4809
4789
|
});
|
|
@@ -4811,7 +4791,7 @@ var CortexChatService = class CortexChatService2 {
|
|
|
4811
4791
|
minVersion: "12.0.0",
|
|
4812
4792
|
version: "22.2.0",
|
|
4813
4793
|
ngImport: i0,
|
|
4814
|
-
type:
|
|
4794
|
+
type: CortexChatService
|
|
4815
4795
|
});
|
|
4816
4796
|
};
|
|
4817
4797
|
i0.ɵɵngDeclareClassMetadata({
|
|
@@ -4822,7 +4802,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
4822
4802
|
decorators: [{ type: Injectable }],
|
|
4823
4803
|
ctorParameters: () => []
|
|
4824
4804
|
});
|
|
4825
|
-
var AttachmentQueueComponent = class
|
|
4805
|
+
var AttachmentQueueComponent = class AttachmentQueueComponent {
|
|
4826
4806
|
icons = ICON_PATHS;
|
|
4827
4807
|
chat = inject(CortexChatService);
|
|
4828
4808
|
locale = inject(CORTEX_LOCALE);
|
|
@@ -4833,14 +4813,14 @@ var AttachmentQueueComponent = class AttachmentQueueComponent2 {
|
|
|
4833
4813
|
minVersion: "12.0.0",
|
|
4834
4814
|
version: "22.2.0",
|
|
4835
4815
|
ngImport: i0,
|
|
4836
|
-
type:
|
|
4816
|
+
type: AttachmentQueueComponent,
|
|
4837
4817
|
deps: [],
|
|
4838
4818
|
target: i0.ɵɵFactoryTarget.Component
|
|
4839
4819
|
});
|
|
4840
4820
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
4841
4821
|
minVersion: "17.0.0",
|
|
4842
4822
|
version: "22.2.0",
|
|
4843
|
-
type:
|
|
4823
|
+
type: AttachmentQueueComponent,
|
|
4844
4824
|
isStandalone: true,
|
|
4845
4825
|
selector: "cortex-attachment-queue",
|
|
4846
4826
|
ngImport: i0,
|
|
@@ -5024,7 +5004,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
5024
5004
|
}]
|
|
5025
5005
|
}]
|
|
5026
5006
|
});
|
|
5027
|
-
var ChatComposerComponent = class
|
|
5007
|
+
var ChatComposerComponent = class ChatComposerComponent {
|
|
5028
5008
|
icons = ICON_PATHS;
|
|
5029
5009
|
chat = inject(CortexChatService);
|
|
5030
5010
|
dragging = signal(false, ...ngDevMode ? [{ debugName: "dragging" }] : []);
|
|
@@ -5069,14 +5049,14 @@ var ChatComposerComponent = class ChatComposerComponent2 {
|
|
|
5069
5049
|
minVersion: "12.0.0",
|
|
5070
5050
|
version: "22.2.0",
|
|
5071
5051
|
ngImport: i0,
|
|
5072
|
-
type:
|
|
5052
|
+
type: ChatComposerComponent,
|
|
5073
5053
|
deps: [],
|
|
5074
5054
|
target: i0.ɵɵFactoryTarget.Component
|
|
5075
5055
|
});
|
|
5076
5056
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
5077
5057
|
minVersion: "17.0.0",
|
|
5078
5058
|
version: "22.2.0",
|
|
5079
|
-
type:
|
|
5059
|
+
type: ChatComposerComponent,
|
|
5080
5060
|
isStandalone: true,
|
|
5081
5061
|
selector: "cortex-chat-composer",
|
|
5082
5062
|
viewQueries: [{
|
|
@@ -5324,21 +5304,21 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
5324
5304
|
args: ["messageInput", { isSignal: true }]
|
|
5325
5305
|
}] }
|
|
5326
5306
|
});
|
|
5327
|
-
var ChatHeaderComponent = class
|
|
5307
|
+
var ChatHeaderComponent = class ChatHeaderComponent {
|
|
5328
5308
|
context = input.required(...ngDevMode ? [{ debugName: "context" }] : []);
|
|
5329
5309
|
icons = ICON_PATHS;
|
|
5330
5310
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
5331
5311
|
minVersion: "12.0.0",
|
|
5332
5312
|
version: "22.2.0",
|
|
5333
5313
|
ngImport: i0,
|
|
5334
|
-
type:
|
|
5314
|
+
type: ChatHeaderComponent,
|
|
5335
5315
|
deps: [],
|
|
5336
5316
|
target: i0.ɵɵFactoryTarget.Component
|
|
5337
5317
|
});
|
|
5338
5318
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
5339
5319
|
minVersion: "17.0.0",
|
|
5340
5320
|
version: "22.2.0",
|
|
5341
|
-
type:
|
|
5321
|
+
type: ChatHeaderComponent,
|
|
5342
5322
|
isStandalone: true,
|
|
5343
5323
|
selector: "cortex-chat-header",
|
|
5344
5324
|
inputs: { context: {
|
|
@@ -5422,9 +5402,7 @@ var ChatHeaderComponent = class ChatHeaderComponent2 {
|
|
|
5422
5402
|
</button>
|
|
5423
5403
|
|
|
5424
5404
|
<div class="cortex-widget__chat-title-wrap">
|
|
5425
|
-
<p class="cortex-widget__chat-title">
|
|
5426
|
-
{{ header.title ?? header.agentName ?? ('translate_new_chat' | translate) }}
|
|
5427
|
-
</p>
|
|
5405
|
+
<p class="cortex-widget__chat-title">{{ header.title }}</p>
|
|
5428
5406
|
</div>
|
|
5429
5407
|
|
|
5430
5408
|
@if (header.debug.shown) {
|
|
@@ -5563,9 +5541,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
5563
5541
|
</button>
|
|
5564
5542
|
|
|
5565
5543
|
<div class="cortex-widget__chat-title-wrap">
|
|
5566
|
-
<p class="cortex-widget__chat-title">
|
|
5567
|
-
{{ header.title ?? header.agentName ?? ('translate_new_chat' | translate) }}
|
|
5568
|
-
</p>
|
|
5544
|
+
<p class="cortex-widget__chat-title">{{ header.title }}</p>
|
|
5569
5545
|
</div>
|
|
5570
5546
|
|
|
5571
5547
|
@if (header.debug.shown) {
|
|
@@ -5612,7 +5588,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
5612
5588
|
}]
|
|
5613
5589
|
}] }
|
|
5614
5590
|
});
|
|
5615
|
-
var ChatLandingComponent = class
|
|
5591
|
+
var ChatLandingComponent = class ChatLandingComponent {
|
|
5616
5592
|
context = input.required(...ngDevMode ? [{ debugName: "context" }] : []);
|
|
5617
5593
|
icons = ICON_PATHS;
|
|
5618
5594
|
locale = inject(CORTEX_LOCALE);
|
|
@@ -5623,14 +5599,14 @@ var ChatLandingComponent = class ChatLandingComponent2 {
|
|
|
5623
5599
|
minVersion: "12.0.0",
|
|
5624
5600
|
version: "22.2.0",
|
|
5625
5601
|
ngImport: i0,
|
|
5626
|
-
type:
|
|
5602
|
+
type: ChatLandingComponent,
|
|
5627
5603
|
deps: [],
|
|
5628
5604
|
target: i0.ɵɵFactoryTarget.Component
|
|
5629
5605
|
});
|
|
5630
5606
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
5631
5607
|
minVersion: "17.0.0",
|
|
5632
5608
|
version: "22.2.0",
|
|
5633
|
-
type:
|
|
5609
|
+
type: ChatLandingComponent,
|
|
5634
5610
|
isStandalone: true,
|
|
5635
5611
|
selector: "cortex-chat-landing",
|
|
5636
5612
|
inputs: { context: {
|
|
@@ -5792,7 +5768,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
5792
5768
|
}]
|
|
5793
5769
|
}] }
|
|
5794
5770
|
});
|
|
5795
|
-
var CopyButtonComponent = class
|
|
5771
|
+
var CopyButtonComponent = class CopyButtonComponent {
|
|
5796
5772
|
value = input.required(...ngDevMode ? [{ debugName: "value" }] : []);
|
|
5797
5773
|
icons = ICON_PATHS;
|
|
5798
5774
|
copied = signal(false, ...ngDevMode ? [{ debugName: "copied" }] : []);
|
|
@@ -5812,14 +5788,14 @@ var CopyButtonComponent = class CopyButtonComponent2 {
|
|
|
5812
5788
|
minVersion: "12.0.0",
|
|
5813
5789
|
version: "22.2.0",
|
|
5814
5790
|
ngImport: i0,
|
|
5815
|
-
type:
|
|
5791
|
+
type: CopyButtonComponent,
|
|
5816
5792
|
deps: [],
|
|
5817
5793
|
target: i0.ɵɵFactoryTarget.Component
|
|
5818
5794
|
});
|
|
5819
5795
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
5820
5796
|
minVersion: "17.0.0",
|
|
5821
5797
|
version: "22.2.0",
|
|
5822
|
-
type:
|
|
5798
|
+
type: CopyButtonComponent,
|
|
5823
5799
|
isStandalone: true,
|
|
5824
5800
|
selector: "cortex-copy-button",
|
|
5825
5801
|
inputs: { value: {
|
|
@@ -5926,21 +5902,21 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
5926
5902
|
}]
|
|
5927
5903
|
}] }
|
|
5928
5904
|
});
|
|
5929
|
-
var MessageAbortedFlagComponent = class
|
|
5905
|
+
var MessageAbortedFlagComponent = class MessageAbortedFlagComponent {
|
|
5930
5906
|
label = input.required(...ngDevMode ? [{ debugName: "label" }] : []);
|
|
5931
5907
|
icons = ICON_PATHS;
|
|
5932
5908
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
5933
5909
|
minVersion: "12.0.0",
|
|
5934
5910
|
version: "22.2.0",
|
|
5935
5911
|
ngImport: i0,
|
|
5936
|
-
type:
|
|
5912
|
+
type: MessageAbortedFlagComponent,
|
|
5937
5913
|
deps: [],
|
|
5938
5914
|
target: i0.ɵɵFactoryTarget.Component
|
|
5939
5915
|
});
|
|
5940
5916
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
5941
5917
|
minVersion: "17.1.0",
|
|
5942
5918
|
version: "22.2.0",
|
|
5943
|
-
type:
|
|
5919
|
+
type: MessageAbortedFlagComponent,
|
|
5944
5920
|
isStandalone: true,
|
|
5945
5921
|
selector: "cortex-message-aborted-flag",
|
|
5946
5922
|
inputs: { label: {
|
|
@@ -6013,7 +5989,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
6013
5989
|
}]
|
|
6014
5990
|
}] }
|
|
6015
5991
|
});
|
|
6016
|
-
var MessageAttachmentsComponent = class
|
|
5992
|
+
var MessageAttachmentsComponent = class MessageAttachmentsComponent {
|
|
6017
5993
|
attachments = input.required(...ngDevMode ? [{ debugName: "attachments" }] : []);
|
|
6018
5994
|
isUser = input(false, ...ngDevMode ? [{ debugName: "isUser" }] : []);
|
|
6019
5995
|
icons = ICON_PATHS;
|
|
@@ -6025,14 +6001,14 @@ var MessageAttachmentsComponent = class MessageAttachmentsComponent2 {
|
|
|
6025
6001
|
minVersion: "12.0.0",
|
|
6026
6002
|
version: "22.2.0",
|
|
6027
6003
|
ngImport: i0,
|
|
6028
|
-
type:
|
|
6004
|
+
type: MessageAttachmentsComponent,
|
|
6029
6005
|
deps: [],
|
|
6030
6006
|
target: i0.ɵɵFactoryTarget.Component
|
|
6031
6007
|
});
|
|
6032
6008
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
6033
6009
|
minVersion: "17.0.0",
|
|
6034
6010
|
version: "22.2.0",
|
|
6035
|
-
type:
|
|
6011
|
+
type: MessageAttachmentsComponent,
|
|
6036
6012
|
isStandalone: true,
|
|
6037
6013
|
selector: "cortex-message-attachments",
|
|
6038
6014
|
inputs: {
|
|
@@ -6156,21 +6132,21 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
6156
6132
|
}]
|
|
6157
6133
|
}
|
|
6158
6134
|
});
|
|
6159
|
-
var LlmUsageBreakdownComponent = class
|
|
6135
|
+
var LlmUsageBreakdownComponent = class LlmUsageBreakdownComponent {
|
|
6160
6136
|
usage = input.required(...ngDevMode ? [{ debugName: "usage" }] : []);
|
|
6161
6137
|
count = formatCount;
|
|
6162
6138
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
6163
6139
|
minVersion: "12.0.0",
|
|
6164
6140
|
version: "22.2.0",
|
|
6165
6141
|
ngImport: i0,
|
|
6166
|
-
type:
|
|
6142
|
+
type: LlmUsageBreakdownComponent,
|
|
6167
6143
|
deps: [],
|
|
6168
6144
|
target: i0.ɵɵFactoryTarget.Component
|
|
6169
6145
|
});
|
|
6170
6146
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
6171
6147
|
minVersion: "17.1.0",
|
|
6172
6148
|
version: "22.2.0",
|
|
6173
|
-
type:
|
|
6149
|
+
type: LlmUsageBreakdownComponent,
|
|
6174
6150
|
isStandalone: true,
|
|
6175
6151
|
selector: "cortex-llm-usage-breakdown",
|
|
6176
6152
|
inputs: { usage: {
|
|
@@ -6269,7 +6245,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
6269
6245
|
}]
|
|
6270
6246
|
}] }
|
|
6271
6247
|
});
|
|
6272
|
-
var LlmUsageChipsComponent = class
|
|
6248
|
+
var LlmUsageChipsComponent = class LlmUsageChipsComponent {
|
|
6273
6249
|
usage = input.required(...ngDevMode ? [{ debugName: "usage" }] : []);
|
|
6274
6250
|
cachePercent = computed(() => cachePercent(this.usage()), ...ngDevMode ? [{ debugName: "cachePercent" }] : []);
|
|
6275
6251
|
count = formatCount;
|
|
@@ -6277,14 +6253,14 @@ var LlmUsageChipsComponent = class LlmUsageChipsComponent2 {
|
|
|
6277
6253
|
minVersion: "12.0.0",
|
|
6278
6254
|
version: "22.2.0",
|
|
6279
6255
|
ngImport: i0,
|
|
6280
|
-
type:
|
|
6256
|
+
type: LlmUsageChipsComponent,
|
|
6281
6257
|
deps: [],
|
|
6282
6258
|
target: i0.ɵɵFactoryTarget.Component
|
|
6283
6259
|
});
|
|
6284
6260
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
6285
6261
|
minVersion: "17.0.0",
|
|
6286
6262
|
version: "22.2.0",
|
|
6287
|
-
type:
|
|
6263
|
+
type: LlmUsageChipsComponent,
|
|
6288
6264
|
isStandalone: true,
|
|
6289
6265
|
selector: "cortex-llm-usage-chips",
|
|
6290
6266
|
inputs: { usage: {
|
|
@@ -6355,7 +6331,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
6355
6331
|
}]
|
|
6356
6332
|
}] }
|
|
6357
6333
|
});
|
|
6358
|
-
var JsonTreeComponent = class
|
|
6334
|
+
var JsonTreeComponent = class JsonTreeComponent {
|
|
6359
6335
|
data = input.required(...ngDevMode ? [{ debugName: "data" }] : []);
|
|
6360
6336
|
expandDepth = input(1, ...ngDevMode ? [{ debugName: "expandDepth" }] : []);
|
|
6361
6337
|
parsedData = computed(() => deepParseJson(this.data()), ...ngDevMode ? [{ debugName: "parsedData" }] : []);
|
|
@@ -6371,14 +6347,14 @@ var JsonTreeComponent = class JsonTreeComponent2 {
|
|
|
6371
6347
|
minVersion: "12.0.0",
|
|
6372
6348
|
version: "22.2.0",
|
|
6373
6349
|
ngImport: i0,
|
|
6374
|
-
type:
|
|
6350
|
+
type: JsonTreeComponent,
|
|
6375
6351
|
deps: [],
|
|
6376
6352
|
target: i0.ɵɵFactoryTarget.Component
|
|
6377
6353
|
});
|
|
6378
6354
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
6379
6355
|
minVersion: "17.0.0",
|
|
6380
6356
|
version: "22.2.0",
|
|
6381
|
-
type:
|
|
6357
|
+
type: JsonTreeComponent,
|
|
6382
6358
|
isStandalone: true,
|
|
6383
6359
|
selector: "cortex-json-tree",
|
|
6384
6360
|
inputs: {
|
|
@@ -6591,7 +6567,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
6591
6567
|
}]
|
|
6592
6568
|
}
|
|
6593
6569
|
});
|
|
6594
|
-
var MessageLlmInspectorComponent = class
|
|
6570
|
+
var MessageLlmInspectorComponent = class MessageLlmInspectorComponent {
|
|
6595
6571
|
messageId = input.required(...ngDevMode ? [{ debugName: "messageId" }] : []);
|
|
6596
6572
|
icons = ICON_PATHS;
|
|
6597
6573
|
open = signal(false, ...ngDevMode ? [{ debugName: "open" }] : []);
|
|
@@ -6636,14 +6612,14 @@ var MessageLlmInspectorComponent = class MessageLlmInspectorComponent2 {
|
|
|
6636
6612
|
minVersion: "12.0.0",
|
|
6637
6613
|
version: "22.2.0",
|
|
6638
6614
|
ngImport: i0,
|
|
6639
|
-
type:
|
|
6615
|
+
type: MessageLlmInspectorComponent,
|
|
6640
6616
|
deps: [],
|
|
6641
6617
|
target: i0.ɵɵFactoryTarget.Component
|
|
6642
6618
|
});
|
|
6643
6619
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
6644
6620
|
minVersion: "17.0.0",
|
|
6645
6621
|
version: "22.2.0",
|
|
6646
|
-
type:
|
|
6622
|
+
type: MessageLlmInspectorComponent,
|
|
6647
6623
|
isStandalone: true,
|
|
6648
6624
|
selector: "cortex-message-llm-inspector",
|
|
6649
6625
|
inputs: { messageId: {
|
|
@@ -6940,7 +6916,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
6940
6916
|
}]
|
|
6941
6917
|
}] }
|
|
6942
6918
|
});
|
|
6943
|
-
var MarkedPipe = class
|
|
6919
|
+
var MarkedPipe = class MarkedPipe {
|
|
6944
6920
|
sanitizer = inject(DomSanitizer);
|
|
6945
6921
|
transform(value, fading = []) {
|
|
6946
6922
|
if (!value)
|
|
@@ -6951,7 +6927,7 @@ var MarkedPipe = class MarkedPipe2 {
|
|
|
6951
6927
|
minVersion: "12.0.0",
|
|
6952
6928
|
version: "22.2.0",
|
|
6953
6929
|
ngImport: i0,
|
|
6954
|
-
type:
|
|
6930
|
+
type: MarkedPipe,
|
|
6955
6931
|
deps: [],
|
|
6956
6932
|
target: i0.ɵɵFactoryTarget.Pipe
|
|
6957
6933
|
});
|
|
@@ -6959,7 +6935,7 @@ var MarkedPipe = class MarkedPipe2 {
|
|
|
6959
6935
|
minVersion: "14.0.0",
|
|
6960
6936
|
version: "22.2.0",
|
|
6961
6937
|
ngImport: i0,
|
|
6962
|
-
type:
|
|
6938
|
+
type: MarkedPipe,
|
|
6963
6939
|
isStandalone: true,
|
|
6964
6940
|
name: "marked"
|
|
6965
6941
|
});
|
|
@@ -6974,7 +6950,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
6974
6950
|
args: [{ name: "marked" }]
|
|
6975
6951
|
}]
|
|
6976
6952
|
});
|
|
6977
|
-
var ExpandableComponent = class
|
|
6953
|
+
var ExpandableComponent = class ExpandableComponent {
|
|
6978
6954
|
label = input.required(...ngDevMode ? [{ debugName: "label" }] : []);
|
|
6979
6955
|
ready = input(true, ...ngDevMode ? [{ debugName: "ready" }] : []);
|
|
6980
6956
|
actions = input(...ngDevMode ? [undefined, { debugName: "actions" }] : []);
|
|
@@ -6993,14 +6969,14 @@ var ExpandableComponent = class ExpandableComponent2 {
|
|
|
6993
6969
|
minVersion: "12.0.0",
|
|
6994
6970
|
version: "22.2.0",
|
|
6995
6971
|
ngImport: i0,
|
|
6996
|
-
type:
|
|
6972
|
+
type: ExpandableComponent,
|
|
6997
6973
|
deps: [],
|
|
6998
6974
|
target: i0.ɵɵFactoryTarget.Component
|
|
6999
6975
|
});
|
|
7000
6976
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
7001
6977
|
minVersion: "17.0.0",
|
|
7002
6978
|
version: "22.2.0",
|
|
7003
|
-
type:
|
|
6979
|
+
type: ExpandableComponent,
|
|
7004
6980
|
isStandalone: true,
|
|
7005
6981
|
selector: "cortex-expandable",
|
|
7006
6982
|
inputs: {
|
|
@@ -7230,7 +7206,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
7230
7206
|
}]
|
|
7231
7207
|
}
|
|
7232
7208
|
});
|
|
7233
|
-
var AttachmentImageComponent = class
|
|
7209
|
+
var AttachmentImageComponent = class AttachmentImageComponent {
|
|
7234
7210
|
id = input.required(...ngDevMode ? [{ debugName: "id" }] : []);
|
|
7235
7211
|
alt = input.required(...ngDevMode ? [{ debugName: "alt" }] : []);
|
|
7236
7212
|
attachment = input(...ngDevMode ? [undefined, { debugName: "attachment" }] : []);
|
|
@@ -7249,14 +7225,14 @@ var AttachmentImageComponent = class AttachmentImageComponent2 {
|
|
|
7249
7225
|
minVersion: "12.0.0",
|
|
7250
7226
|
version: "22.2.0",
|
|
7251
7227
|
ngImport: i0,
|
|
7252
|
-
type:
|
|
7228
|
+
type: AttachmentImageComponent,
|
|
7253
7229
|
deps: [],
|
|
7254
7230
|
target: i0.ɵɵFactoryTarget.Component
|
|
7255
7231
|
});
|
|
7256
7232
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
7257
7233
|
minVersion: "17.0.0",
|
|
7258
7234
|
version: "22.2.0",
|
|
7259
|
-
type:
|
|
7235
|
+
type: AttachmentImageComponent,
|
|
7260
7236
|
isStandalone: true,
|
|
7261
7237
|
selector: "cortex-attachment-image",
|
|
7262
7238
|
inputs: {
|
|
@@ -7396,7 +7372,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
7396
7372
|
}]
|
|
7397
7373
|
}
|
|
7398
7374
|
});
|
|
7399
|
-
var MediaBlockHeadComponent = class
|
|
7375
|
+
var MediaBlockHeadComponent = class MediaBlockHeadComponent {
|
|
7400
7376
|
language = input.required(...ngDevMode ? [{ debugName: "language" }] : []);
|
|
7401
7377
|
source = input.required(...ngDevMode ? [{ debugName: "source" }] : []);
|
|
7402
7378
|
pending = input.required(...ngDevMode ? [{ debugName: "pending" }] : []);
|
|
@@ -7410,14 +7386,14 @@ var MediaBlockHeadComponent = class MediaBlockHeadComponent2 {
|
|
|
7410
7386
|
minVersion: "12.0.0",
|
|
7411
7387
|
version: "22.2.0",
|
|
7412
7388
|
ngImport: i0,
|
|
7413
|
-
type:
|
|
7389
|
+
type: MediaBlockHeadComponent,
|
|
7414
7390
|
deps: [],
|
|
7415
7391
|
target: i0.ɵɵFactoryTarget.Component
|
|
7416
7392
|
});
|
|
7417
7393
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
7418
7394
|
minVersion: "17.0.0",
|
|
7419
7395
|
version: "22.2.0",
|
|
7420
|
-
type:
|
|
7396
|
+
type: MediaBlockHeadComponent,
|
|
7421
7397
|
isStandalone: true,
|
|
7422
7398
|
selector: "cortex-media-block-head",
|
|
7423
7399
|
inputs: {
|
|
@@ -7616,7 +7592,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
7616
7592
|
}]
|
|
7617
7593
|
}
|
|
7618
7594
|
});
|
|
7619
|
-
var MediaDrawingComponent = class
|
|
7595
|
+
var MediaDrawingComponent = class MediaDrawingComponent {
|
|
7620
7596
|
language = input.required(...ngDevMode ? [{ debugName: "language" }] : []);
|
|
7621
7597
|
source = input.required(...ngDevMode ? [{ debugName: "source" }] : []);
|
|
7622
7598
|
closed = input.required(...ngDevMode ? [{ debugName: "closed" }] : []);
|
|
@@ -7651,14 +7627,14 @@ var MediaDrawingComponent = class MediaDrawingComponent2 {
|
|
|
7651
7627
|
minVersion: "12.0.0",
|
|
7652
7628
|
version: "22.2.0",
|
|
7653
7629
|
ngImport: i0,
|
|
7654
|
-
type:
|
|
7630
|
+
type: MediaDrawingComponent,
|
|
7655
7631
|
deps: [],
|
|
7656
7632
|
target: i0.ɵɵFactoryTarget.Component
|
|
7657
7633
|
});
|
|
7658
7634
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
7659
7635
|
minVersion: "17.1.0",
|
|
7660
7636
|
version: "22.2.0",
|
|
7661
|
-
type:
|
|
7637
|
+
type: MediaDrawingComponent,
|
|
7662
7638
|
isStandalone: true,
|
|
7663
7639
|
selector: "cortex-media-drawing",
|
|
7664
7640
|
inputs: {
|
|
@@ -7746,7 +7722,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
7746
7722
|
}]
|
|
7747
7723
|
}
|
|
7748
7724
|
});
|
|
7749
|
-
var MediaBlockComponent = class
|
|
7725
|
+
var MediaBlockComponent = class MediaBlockComponent {
|
|
7750
7726
|
language = input.required(...ngDevMode ? [{ debugName: "language" }] : []);
|
|
7751
7727
|
source = input.required(...ngDevMode ? [{ debugName: "source" }] : []);
|
|
7752
7728
|
closed = input.required(...ngDevMode ? [{ debugName: "closed" }] : []);
|
|
@@ -7766,14 +7742,14 @@ var MediaBlockComponent = class MediaBlockComponent2 {
|
|
|
7766
7742
|
minVersion: "12.0.0",
|
|
7767
7743
|
version: "22.2.0",
|
|
7768
7744
|
ngImport: i0,
|
|
7769
|
-
type:
|
|
7745
|
+
type: MediaBlockComponent,
|
|
7770
7746
|
deps: [],
|
|
7771
7747
|
target: i0.ɵɵFactoryTarget.Component
|
|
7772
7748
|
});
|
|
7773
7749
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
7774
7750
|
minVersion: "17.0.0",
|
|
7775
7751
|
version: "22.2.0",
|
|
7776
|
-
type:
|
|
7752
|
+
type: MediaBlockComponent,
|
|
7777
7753
|
isStandalone: true,
|
|
7778
7754
|
selector: "cortex-media-block",
|
|
7779
7755
|
inputs: {
|
|
@@ -8041,7 +8017,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
8041
8017
|
}]
|
|
8042
8018
|
}
|
|
8043
8019
|
});
|
|
8044
|
-
var TableBlockComponent = class
|
|
8020
|
+
var TableBlockComponent = class TableBlockComponent {
|
|
8045
8021
|
markdown = input.required(...ngDevMode ? [{ debugName: "markdown" }] : []);
|
|
8046
8022
|
closed = input.required(...ngDevMode ? [{ debugName: "closed" }] : []);
|
|
8047
8023
|
icons = ICON_PATHS;
|
|
@@ -8053,14 +8029,14 @@ var TableBlockComponent = class TableBlockComponent2 {
|
|
|
8053
8029
|
minVersion: "12.0.0",
|
|
8054
8030
|
version: "22.2.0",
|
|
8055
8031
|
ngImport: i0,
|
|
8056
|
-
type:
|
|
8032
|
+
type: TableBlockComponent,
|
|
8057
8033
|
deps: [],
|
|
8058
8034
|
target: i0.ɵɵFactoryTarget.Component
|
|
8059
8035
|
});
|
|
8060
8036
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
8061
8037
|
minVersion: "17.2.0",
|
|
8062
8038
|
version: "22.2.0",
|
|
8063
|
-
type:
|
|
8039
|
+
type: TableBlockComponent,
|
|
8064
8040
|
isStandalone: true,
|
|
8065
8041
|
selector: "cortex-table-block",
|
|
8066
8042
|
inputs: {
|
|
@@ -8219,7 +8195,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
8219
8195
|
}]
|
|
8220
8196
|
}
|
|
8221
8197
|
});
|
|
8222
|
-
var MessageTextPartComponent = class
|
|
8198
|
+
var MessageTextPartComponent = class MessageTextPartComponent {
|
|
8223
8199
|
role = input.required(...ngDevMode ? [{ debugName: "role" }] : []);
|
|
8224
8200
|
textPart = input.required(...ngDevMode ? [{ debugName: "textPart" }] : []);
|
|
8225
8201
|
streaming = input(false, ...ngDevMode ? [{ debugName: "streaming" }] : []);
|
|
@@ -8250,14 +8226,14 @@ var MessageTextPartComponent = class MessageTextPartComponent2 {
|
|
|
8250
8226
|
minVersion: "12.0.0",
|
|
8251
8227
|
version: "22.2.0",
|
|
8252
8228
|
ngImport: i0,
|
|
8253
|
-
type:
|
|
8229
|
+
type: MessageTextPartComponent,
|
|
8254
8230
|
deps: [],
|
|
8255
8231
|
target: i0.ɵɵFactoryTarget.Component
|
|
8256
8232
|
});
|
|
8257
8233
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
8258
8234
|
minVersion: "17.0.0",
|
|
8259
8235
|
version: "22.2.0",
|
|
8260
|
-
type:
|
|
8236
|
+
type: MessageTextPartComponent,
|
|
8261
8237
|
isStandalone: true,
|
|
8262
8238
|
selector: "cortex-message-text-part",
|
|
8263
8239
|
inputs: {
|
|
@@ -8460,7 +8436,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
8460
8436
|
}]
|
|
8461
8437
|
}
|
|
8462
8438
|
});
|
|
8463
|
-
var MessageReasoningPartComponent = class
|
|
8439
|
+
var MessageReasoningPartComponent = class MessageReasoningPartComponent {
|
|
8464
8440
|
reasoningPart = input.required(...ngDevMode ? [{ debugName: "reasoningPart" }] : []);
|
|
8465
8441
|
streaming = input(false, ...ngDevMode ? [{ debugName: "streaming" }] : []);
|
|
8466
8442
|
icons = ICON_PATHS;
|
|
@@ -8468,14 +8444,14 @@ var MessageReasoningPartComponent = class MessageReasoningPartComponent2 {
|
|
|
8468
8444
|
minVersion: "12.0.0",
|
|
8469
8445
|
version: "22.2.0",
|
|
8470
8446
|
ngImport: i0,
|
|
8471
|
-
type:
|
|
8447
|
+
type: MessageReasoningPartComponent,
|
|
8472
8448
|
deps: [],
|
|
8473
8449
|
target: i0.ɵɵFactoryTarget.Component
|
|
8474
8450
|
});
|
|
8475
8451
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
8476
8452
|
minVersion: "17.1.0",
|
|
8477
8453
|
version: "22.2.0",
|
|
8478
|
-
type:
|
|
8454
|
+
type: MessageReasoningPartComponent,
|
|
8479
8455
|
isStandalone: true,
|
|
8480
8456
|
selector: "cortex-message-reasoning-part",
|
|
8481
8457
|
inputs: {
|
|
@@ -8659,7 +8635,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
8659
8635
|
}]
|
|
8660
8636
|
}
|
|
8661
8637
|
});
|
|
8662
|
-
var ToolGlyphComponent = class
|
|
8638
|
+
var ToolGlyphComponent = class ToolGlyphComponent {
|
|
8663
8639
|
state = input.required(...ngDevMode ? [{ debugName: "state" }] : []);
|
|
8664
8640
|
active = input.required(...ngDevMode ? [{ debugName: "active" }] : []);
|
|
8665
8641
|
icons = ICON_PATHS;
|
|
@@ -8667,14 +8643,14 @@ var ToolGlyphComponent = class ToolGlyphComponent2 {
|
|
|
8667
8643
|
minVersion: "12.0.0",
|
|
8668
8644
|
version: "22.2.0",
|
|
8669
8645
|
ngImport: i0,
|
|
8670
|
-
type:
|
|
8646
|
+
type: ToolGlyphComponent,
|
|
8671
8647
|
deps: [],
|
|
8672
8648
|
target: i0.ɵɵFactoryTarget.Component
|
|
8673
8649
|
});
|
|
8674
8650
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
8675
8651
|
minVersion: "17.1.0",
|
|
8676
8652
|
version: "22.2.0",
|
|
8677
|
-
type:
|
|
8653
|
+
type: ToolGlyphComponent,
|
|
8678
8654
|
isStandalone: true,
|
|
8679
8655
|
selector: "cortex-tool-glyph",
|
|
8680
8656
|
inputs: {
|
|
@@ -8804,7 +8780,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
8804
8780
|
}]
|
|
8805
8781
|
}
|
|
8806
8782
|
});
|
|
8807
|
-
var ApprovalCardComponent = class
|
|
8783
|
+
var ApprovalCardComponent = class ApprovalCardComponent {
|
|
8808
8784
|
toolCallPart = input.required(...ngDevMode ? [{ debugName: "toolCallPart" }] : []);
|
|
8809
8785
|
asking = input.required(...ngDevMode ? [{ debugName: "asking" }] : []);
|
|
8810
8786
|
icons = ICON_PATHS;
|
|
@@ -8818,14 +8794,14 @@ var ApprovalCardComponent = class ApprovalCardComponent2 {
|
|
|
8818
8794
|
minVersion: "12.0.0",
|
|
8819
8795
|
version: "22.2.0",
|
|
8820
8796
|
ngImport: i0,
|
|
8821
|
-
type:
|
|
8797
|
+
type: ApprovalCardComponent,
|
|
8822
8798
|
deps: [],
|
|
8823
8799
|
target: i0.ɵɵFactoryTarget.Component
|
|
8824
8800
|
});
|
|
8825
8801
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
8826
8802
|
minVersion: "17.0.0",
|
|
8827
8803
|
version: "22.2.0",
|
|
8828
|
-
type:
|
|
8804
|
+
type: ApprovalCardComponent,
|
|
8829
8805
|
isStandalone: true,
|
|
8830
8806
|
selector: "cortex-approval-card",
|
|
8831
8807
|
inputs: {
|
|
@@ -8990,7 +8966,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
8990
8966
|
}]
|
|
8991
8967
|
}
|
|
8992
8968
|
});
|
|
8993
|
-
var ClientToolEmbedComponent = class
|
|
8969
|
+
var ClientToolEmbedComponent = class ClientToolEmbedComponent {
|
|
8994
8970
|
toolCallPart = input.required(...ngDevMode ? [{ debugName: "toolCallPart" }] : []);
|
|
8995
8971
|
fallback = output();
|
|
8996
8972
|
state = signal({ phase: "initiating" }, ...ngDevMode ? [{ debugName: "state" }] : []);
|
|
@@ -9064,14 +9040,14 @@ var ClientToolEmbedComponent = class ClientToolEmbedComponent2 {
|
|
|
9064
9040
|
minVersion: "12.0.0",
|
|
9065
9041
|
version: "22.2.0",
|
|
9066
9042
|
ngImport: i0,
|
|
9067
|
-
type:
|
|
9043
|
+
type: ClientToolEmbedComponent,
|
|
9068
9044
|
deps: [],
|
|
9069
9045
|
target: i0.ɵɵFactoryTarget.Component
|
|
9070
9046
|
});
|
|
9071
9047
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
9072
9048
|
minVersion: "17.0.0",
|
|
9073
9049
|
version: "22.2.0",
|
|
9074
|
-
type:
|
|
9050
|
+
type: ClientToolEmbedComponent,
|
|
9075
9051
|
isStandalone: true,
|
|
9076
9052
|
selector: "cortex-client-tool-embed",
|
|
9077
9053
|
inputs: { toolCallPart: {
|
|
@@ -9284,7 +9260,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
9284
9260
|
}]
|
|
9285
9261
|
}
|
|
9286
9262
|
});
|
|
9287
|
-
var LocationPickerComponent = class
|
|
9263
|
+
var LocationPickerComponent = class LocationPickerComponent {
|
|
9288
9264
|
center = input.required(...ngDevMode ? [{ debugName: "center" }] : []);
|
|
9289
9265
|
submit = input.required(...ngDevMode ? [{ debugName: "submit" }] : []);
|
|
9290
9266
|
icons = ICON_PATHS;
|
|
@@ -9323,14 +9299,14 @@ var LocationPickerComponent = class LocationPickerComponent2 {
|
|
|
9323
9299
|
minVersion: "12.0.0",
|
|
9324
9300
|
version: "22.2.0",
|
|
9325
9301
|
ngImport: i0,
|
|
9326
|
-
type:
|
|
9302
|
+
type: LocationPickerComponent,
|
|
9327
9303
|
deps: [],
|
|
9328
9304
|
target: i0.ɵɵFactoryTarget.Component
|
|
9329
9305
|
});
|
|
9330
9306
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
9331
9307
|
minVersion: "17.0.0",
|
|
9332
9308
|
version: "22.2.0",
|
|
9333
|
-
type:
|
|
9309
|
+
type: LocationPickerComponent,
|
|
9334
9310
|
isStandalone: true,
|
|
9335
9311
|
selector: "cortex-location-picker",
|
|
9336
9312
|
inputs: {
|
|
@@ -9526,7 +9502,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
9526
9502
|
}]
|
|
9527
9503
|
}
|
|
9528
9504
|
});
|
|
9529
|
-
var LocationInputComponent = class
|
|
9505
|
+
var LocationInputComponent = class LocationInputComponent {
|
|
9530
9506
|
toolCallPart = input.required(...ngDevMode ? [{ debugName: "toolCallPart" }] : []);
|
|
9531
9507
|
setOutput = input.required(...ngDevMode ? [{ debugName: "setOutput" }] : []);
|
|
9532
9508
|
icons = ICON_PATHS;
|
|
@@ -9558,14 +9534,14 @@ var LocationInputComponent = class LocationInputComponent2 {
|
|
|
9558
9534
|
minVersion: "12.0.0",
|
|
9559
9535
|
version: "22.2.0",
|
|
9560
9536
|
ngImport: i0,
|
|
9561
|
-
type:
|
|
9537
|
+
type: LocationInputComponent,
|
|
9562
9538
|
deps: [],
|
|
9563
9539
|
target: i0.ɵɵFactoryTarget.Component
|
|
9564
9540
|
});
|
|
9565
9541
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
9566
9542
|
minVersion: "17.0.0",
|
|
9567
9543
|
version: "22.2.0",
|
|
9568
|
-
type:
|
|
9544
|
+
type: LocationInputComponent,
|
|
9569
9545
|
isStandalone: true,
|
|
9570
9546
|
selector: "cortex-location-input",
|
|
9571
9547
|
inputs: {
|
|
@@ -9733,7 +9709,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
9733
9709
|
}]
|
|
9734
9710
|
}
|
|
9735
9711
|
});
|
|
9736
|
-
var HighlightPipe = class
|
|
9712
|
+
var HighlightPipe = class HighlightPipe {
|
|
9737
9713
|
sanitizer = inject(DomSanitizer);
|
|
9738
9714
|
transform(code, lang) {
|
|
9739
9715
|
if (!code)
|
|
@@ -9744,7 +9720,7 @@ var HighlightPipe = class HighlightPipe2 {
|
|
|
9744
9720
|
minVersion: "12.0.0",
|
|
9745
9721
|
version: "22.2.0",
|
|
9746
9722
|
ngImport: i0,
|
|
9747
|
-
type:
|
|
9723
|
+
type: HighlightPipe,
|
|
9748
9724
|
deps: [],
|
|
9749
9725
|
target: i0.ɵɵFactoryTarget.Pipe
|
|
9750
9726
|
});
|
|
@@ -9752,7 +9728,7 @@ var HighlightPipe = class HighlightPipe2 {
|
|
|
9752
9728
|
minVersion: "14.0.0",
|
|
9753
9729
|
version: "22.2.0",
|
|
9754
9730
|
ngImport: i0,
|
|
9755
|
-
type:
|
|
9731
|
+
type: HighlightPipe,
|
|
9756
9732
|
isStandalone: true,
|
|
9757
9733
|
name: "highlight"
|
|
9758
9734
|
});
|
|
@@ -9767,21 +9743,21 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
9767
9743
|
args: [{ name: "highlight" }]
|
|
9768
9744
|
}]
|
|
9769
9745
|
});
|
|
9770
|
-
var MessageToolCallOutcomeComponent = class
|
|
9746
|
+
var MessageToolCallOutcomeComponent = class MessageToolCallOutcomeComponent {
|
|
9771
9747
|
toolCallPart = input.required(...ngDevMode ? [{ debugName: "toolCallPart" }] : []);
|
|
9772
9748
|
outcome = computed(() => toolCallOutcome(this.toolCallPart()), ...ngDevMode ? [{ debugName: "outcome" }] : []);
|
|
9773
9749
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
9774
9750
|
minVersion: "12.0.0",
|
|
9775
9751
|
version: "22.2.0",
|
|
9776
9752
|
ngImport: i0,
|
|
9777
|
-
type:
|
|
9753
|
+
type: MessageToolCallOutcomeComponent,
|
|
9778
9754
|
deps: [],
|
|
9779
9755
|
target: i0.ɵɵFactoryTarget.Component
|
|
9780
9756
|
});
|
|
9781
9757
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
9782
9758
|
minVersion: "17.0.0",
|
|
9783
9759
|
version: "22.2.0",
|
|
9784
|
-
type:
|
|
9760
|
+
type: MessageToolCallOutcomeComponent,
|
|
9785
9761
|
isStandalone: true,
|
|
9786
9762
|
selector: "cortex-message-tool-call-outcome",
|
|
9787
9763
|
inputs: { toolCallPart: {
|
|
@@ -9920,21 +9896,21 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
9920
9896
|
}]
|
|
9921
9897
|
}] }
|
|
9922
9898
|
});
|
|
9923
|
-
var MessageToolCallStatusComponent = class
|
|
9899
|
+
var MessageToolCallStatusComponent = class MessageToolCallStatusComponent {
|
|
9924
9900
|
toolCallPart = input.required(...ngDevMode ? [{ debugName: "toolCallPart" }] : []);
|
|
9925
9901
|
badge = computed(() => toolCallBadge(this.toolCallPart()), ...ngDevMode ? [{ debugName: "badge" }] : []);
|
|
9926
9902
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
9927
9903
|
minVersion: "12.0.0",
|
|
9928
9904
|
version: "22.2.0",
|
|
9929
9905
|
ngImport: i0,
|
|
9930
|
-
type:
|
|
9906
|
+
type: MessageToolCallStatusComponent,
|
|
9931
9907
|
deps: [],
|
|
9932
9908
|
target: i0.ɵɵFactoryTarget.Component
|
|
9933
9909
|
});
|
|
9934
9910
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
9935
9911
|
minVersion: "17.0.0",
|
|
9936
9912
|
version: "22.2.0",
|
|
9937
|
-
type:
|
|
9913
|
+
type: MessageToolCallStatusComponent,
|
|
9938
9914
|
isStandalone: true,
|
|
9939
9915
|
selector: "cortex-message-tool-call-status",
|
|
9940
9916
|
inputs: { toolCallPart: {
|
|
@@ -10007,7 +9983,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
10007
9983
|
}]
|
|
10008
9984
|
}] }
|
|
10009
9985
|
});
|
|
10010
|
-
var MessageToolCallPartComponent = class
|
|
9986
|
+
var MessageToolCallPartComponent = class MessageToolCallPartComponent {
|
|
10011
9987
|
toolCallPart = input.required(...ngDevMode ? [{ debugName: "toolCallPart" }] : []);
|
|
10012
9988
|
icons = ICON_PATHS;
|
|
10013
9989
|
splitInput = computed(() => splitToolCallInput(this.toolCallPart().input), ...ngDevMode ? [{ debugName: "splitInput" }] : []);
|
|
@@ -10018,14 +9994,14 @@ var MessageToolCallPartComponent = class MessageToolCallPartComponent2 {
|
|
|
10018
9994
|
minVersion: "12.0.0",
|
|
10019
9995
|
version: "22.2.0",
|
|
10020
9996
|
ngImport: i0,
|
|
10021
|
-
type:
|
|
9997
|
+
type: MessageToolCallPartComponent,
|
|
10022
9998
|
deps: [],
|
|
10023
9999
|
target: i0.ɵɵFactoryTarget.Component
|
|
10024
10000
|
});
|
|
10025
10001
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
10026
10002
|
minVersion: "17.0.0",
|
|
10027
10003
|
version: "22.2.0",
|
|
10028
|
-
type:
|
|
10004
|
+
type: MessageToolCallPartComponent,
|
|
10029
10005
|
isStandalone: true,
|
|
10030
10006
|
selector: "cortex-message-tool-call-part",
|
|
10031
10007
|
inputs: { toolCallPart: {
|
|
@@ -10242,7 +10218,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
10242
10218
|
}]
|
|
10243
10219
|
}] }
|
|
10244
10220
|
});
|
|
10245
|
-
var SubtleActivityComponent = class
|
|
10221
|
+
var SubtleActivityComponent = class SubtleActivityComponent {
|
|
10246
10222
|
activity = input.required(...ngDevMode ? [{ debugName: "activity" }] : []);
|
|
10247
10223
|
labels = computed(() => activityLabelKeys(this.activity()), ...ngDevMode ? [{ debugName: "labels" }] : []);
|
|
10248
10224
|
cycle = signal({
|
|
@@ -10260,14 +10236,14 @@ var SubtleActivityComponent = class SubtleActivityComponent2 {
|
|
|
10260
10236
|
minVersion: "12.0.0",
|
|
10261
10237
|
version: "22.2.0",
|
|
10262
10238
|
ngImport: i0,
|
|
10263
|
-
type:
|
|
10239
|
+
type: SubtleActivityComponent,
|
|
10264
10240
|
deps: [],
|
|
10265
10241
|
target: i0.ɵɵFactoryTarget.Component
|
|
10266
10242
|
});
|
|
10267
10243
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
10268
10244
|
minVersion: "17.1.0",
|
|
10269
10245
|
version: "22.2.0",
|
|
10270
|
-
type:
|
|
10246
|
+
type: SubtleActivityComponent,
|
|
10271
10247
|
isStandalone: true,
|
|
10272
10248
|
selector: "cortex-subtle-activity",
|
|
10273
10249
|
inputs: { activity: {
|
|
@@ -10338,7 +10314,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
10338
10314
|
}] }
|
|
10339
10315
|
});
|
|
10340
10316
|
var BUILT_IN_TOOL_COMPONENTS = { [REQUEST_LOCATION_TOOL]: LocationInputComponent };
|
|
10341
|
-
var MessageToolCallAnimatedComponent = class
|
|
10317
|
+
var MessageToolCallAnimatedComponent = class MessageToolCallAnimatedComponent {
|
|
10342
10318
|
message = input.required(...ngDevMode ? [{ debugName: "message" }] : []);
|
|
10343
10319
|
toolCallPart = input.required(...ngDevMode ? [{ debugName: "toolCallPart" }] : []);
|
|
10344
10320
|
config = inject(CORTEX_CONFIG);
|
|
@@ -10356,7 +10332,7 @@ var MessageToolCallAnimatedComponent = class MessageToolCallAnimatedComponent2 {
|
|
|
10356
10332
|
mountedComponent = computed(() => {
|
|
10357
10333
|
const surface = this.surface();
|
|
10358
10334
|
const part = this.toolCallPart();
|
|
10359
|
-
const setOutput = (
|
|
10335
|
+
const setOutput = (output) => this.chatService.widget.addToolResult(part.id, part.name, output);
|
|
10360
10336
|
if (surface.kind === "consumer") {
|
|
10361
10337
|
const inputs = {
|
|
10362
10338
|
toolCallPart: part,
|
|
@@ -10391,14 +10367,14 @@ var MessageToolCallAnimatedComponent = class MessageToolCallAnimatedComponent2 {
|
|
|
10391
10367
|
minVersion: "12.0.0",
|
|
10392
10368
|
version: "22.2.0",
|
|
10393
10369
|
ngImport: i0,
|
|
10394
|
-
type:
|
|
10370
|
+
type: MessageToolCallAnimatedComponent,
|
|
10395
10371
|
deps: [],
|
|
10396
10372
|
target: i0.ɵɵFactoryTarget.Component
|
|
10397
10373
|
});
|
|
10398
10374
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
10399
10375
|
minVersion: "17.0.0",
|
|
10400
10376
|
version: "22.2.0",
|
|
10401
|
-
type:
|
|
10377
|
+
type: MessageToolCallAnimatedComponent,
|
|
10402
10378
|
isStandalone: true,
|
|
10403
10379
|
selector: "cortex-message-tool-call-animated",
|
|
10404
10380
|
inputs: {
|
|
@@ -10595,7 +10571,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
10595
10571
|
}]
|
|
10596
10572
|
}
|
|
10597
10573
|
});
|
|
10598
|
-
var MessagePartComponent = class
|
|
10574
|
+
var MessagePartComponent = class MessagePartComponent {
|
|
10599
10575
|
message = input.required(...ngDevMode ? [{ debugName: "message" }] : []);
|
|
10600
10576
|
part = input.required(...ngDevMode ? [{ debugName: "part" }] : []);
|
|
10601
10577
|
animate = input(false, ...ngDevMode ? [{ debugName: "animate" }] : []);
|
|
@@ -10608,14 +10584,14 @@ var MessagePartComponent = class MessagePartComponent2 {
|
|
|
10608
10584
|
minVersion: "12.0.0",
|
|
10609
10585
|
version: "22.2.0",
|
|
10610
10586
|
ngImport: i0,
|
|
10611
|
-
type:
|
|
10587
|
+
type: MessagePartComponent,
|
|
10612
10588
|
deps: [],
|
|
10613
10589
|
target: i0.ɵɵFactoryTarget.Component
|
|
10614
10590
|
});
|
|
10615
10591
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
10616
10592
|
minVersion: "17.0.0",
|
|
10617
10593
|
version: "22.2.0",
|
|
10618
|
-
type:
|
|
10594
|
+
type: MessagePartComponent,
|
|
10619
10595
|
isStandalone: true,
|
|
10620
10596
|
selector: "cortex-message-part",
|
|
10621
10597
|
inputs: {
|
|
@@ -10861,7 +10837,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
10861
10837
|
}]
|
|
10862
10838
|
}
|
|
10863
10839
|
});
|
|
10864
|
-
var MessageTokenUsageComponent = class
|
|
10840
|
+
var MessageTokenUsageComponent = class MessageTokenUsageComponent {
|
|
10865
10841
|
usage = input.required(...ngDevMode ? [{ debugName: "usage" }] : []);
|
|
10866
10842
|
modelId = input(...ngDevMode ? [undefined, { debugName: "modelId" }] : []);
|
|
10867
10843
|
icons = ICON_PATHS;
|
|
@@ -10875,14 +10851,14 @@ var MessageTokenUsageComponent = class MessageTokenUsageComponent2 {
|
|
|
10875
10851
|
minVersion: "12.0.0",
|
|
10876
10852
|
version: "22.2.0",
|
|
10877
10853
|
ngImport: i0,
|
|
10878
|
-
type:
|
|
10854
|
+
type: MessageTokenUsageComponent,
|
|
10879
10855
|
deps: [],
|
|
10880
10856
|
target: i0.ɵɵFactoryTarget.Component
|
|
10881
10857
|
});
|
|
10882
10858
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
10883
10859
|
minVersion: "17.0.0",
|
|
10884
10860
|
version: "22.2.0",
|
|
10885
|
-
type:
|
|
10861
|
+
type: MessageTokenUsageComponent,
|
|
10886
10862
|
isStandalone: true,
|
|
10887
10863
|
selector: "cortex-message-token-usage",
|
|
10888
10864
|
inputs: {
|
|
@@ -11180,7 +11156,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
11180
11156
|
}]
|
|
11181
11157
|
}
|
|
11182
11158
|
});
|
|
11183
|
-
var MessageBodyComponent = class
|
|
11159
|
+
var MessageBodyComponent = class MessageBodyComponent {
|
|
11184
11160
|
message = input.required(...ngDevMode ? [{ debugName: "message" }] : []);
|
|
11185
11161
|
layout = input.required(...ngDevMode ? [{ debugName: "layout" }] : []);
|
|
11186
11162
|
animate = input.required(...ngDevMode ? [{ debugName: "animate" }] : []);
|
|
@@ -11221,14 +11197,14 @@ var MessageBodyComponent = class MessageBodyComponent2 {
|
|
|
11221
11197
|
minVersion: "12.0.0",
|
|
11222
11198
|
version: "22.2.0",
|
|
11223
11199
|
ngImport: i0,
|
|
11224
|
-
type:
|
|
11200
|
+
type: MessageBodyComponent,
|
|
11225
11201
|
deps: [],
|
|
11226
11202
|
target: i0.ɵɵFactoryTarget.Component
|
|
11227
11203
|
});
|
|
11228
11204
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
11229
11205
|
minVersion: "17.0.0",
|
|
11230
11206
|
version: "22.2.0",
|
|
11231
|
-
type:
|
|
11207
|
+
type: MessageBodyComponent,
|
|
11232
11208
|
isStandalone: true,
|
|
11233
11209
|
selector: "cortex-message-body",
|
|
11234
11210
|
inputs: {
|
|
@@ -11525,7 +11501,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
11525
11501
|
}]
|
|
11526
11502
|
}
|
|
11527
11503
|
});
|
|
11528
|
-
var TriggerBlockComponent = class
|
|
11504
|
+
var TriggerBlockComponent = class TriggerBlockComponent {
|
|
11529
11505
|
firing = input.required(...ngDevMode ? [{ debugName: "firing" }] : []);
|
|
11530
11506
|
debugMode = inject(CortexChatService).debugMode;
|
|
11531
11507
|
icons = ICON_PATHS;
|
|
@@ -11535,14 +11511,14 @@ var TriggerBlockComponent = class TriggerBlockComponent2 {
|
|
|
11535
11511
|
minVersion: "12.0.0",
|
|
11536
11512
|
version: "22.2.0",
|
|
11537
11513
|
ngImport: i0,
|
|
11538
|
-
type:
|
|
11514
|
+
type: TriggerBlockComponent,
|
|
11539
11515
|
deps: [],
|
|
11540
11516
|
target: i0.ɵɵFactoryTarget.Component
|
|
11541
11517
|
});
|
|
11542
11518
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
11543
11519
|
minVersion: "17.0.0",
|
|
11544
11520
|
version: "22.2.0",
|
|
11545
|
-
type:
|
|
11521
|
+
type: TriggerBlockComponent,
|
|
11546
11522
|
isStandalone: true,
|
|
11547
11523
|
selector: "cortex-trigger-block",
|
|
11548
11524
|
inputs: { firing: {
|
|
@@ -11636,7 +11612,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
11636
11612
|
}]
|
|
11637
11613
|
}] }
|
|
11638
11614
|
});
|
|
11639
|
-
var MessageComponent = class
|
|
11615
|
+
var MessageComponent = class MessageComponent {
|
|
11640
11616
|
message = input.required(...ngDevMode ? [{ debugName: "message" }] : []);
|
|
11641
11617
|
isStreaming = input(false, ...ngDevMode ? [{ debugName: "isStreaming" }] : []);
|
|
11642
11618
|
closesTurn = input(false, ...ngDevMode ? [{ debugName: "closesTurn" }] : []);
|
|
@@ -11656,14 +11632,14 @@ var MessageComponent = class MessageComponent2 {
|
|
|
11656
11632
|
minVersion: "12.0.0",
|
|
11657
11633
|
version: "22.2.0",
|
|
11658
11634
|
ngImport: i0,
|
|
11659
|
-
type:
|
|
11635
|
+
type: MessageComponent,
|
|
11660
11636
|
deps: [],
|
|
11661
11637
|
target: i0.ɵɵFactoryTarget.Component
|
|
11662
11638
|
});
|
|
11663
11639
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
11664
11640
|
minVersion: "17.0.0",
|
|
11665
11641
|
version: "22.2.0",
|
|
11666
|
-
type:
|
|
11642
|
+
type: MessageComponent,
|
|
11667
11643
|
isStandalone: true,
|
|
11668
11644
|
selector: "cortex-message",
|
|
11669
11645
|
inputs: {
|
|
@@ -11854,7 +11830,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
11854
11830
|
}]
|
|
11855
11831
|
}
|
|
11856
11832
|
});
|
|
11857
|
-
var MessageListComponent = class
|
|
11833
|
+
var MessageListComponent = class MessageListComponent {
|
|
11858
11834
|
icons = ICON_PATHS;
|
|
11859
11835
|
messagesContainer = viewChild("messagesContainer", ...ngDevMode ? [{ debugName: "messagesContainer" }] : []);
|
|
11860
11836
|
messagesContent = viewChild("messagesContent", ...ngDevMode ? [{ debugName: "messagesContent" }] : []);
|
|
@@ -11920,14 +11896,14 @@ var MessageListComponent = class MessageListComponent2 {
|
|
|
11920
11896
|
minVersion: "12.0.0",
|
|
11921
11897
|
version: "22.2.0",
|
|
11922
11898
|
ngImport: i0,
|
|
11923
|
-
type:
|
|
11899
|
+
type: MessageListComponent,
|
|
11924
11900
|
deps: [],
|
|
11925
11901
|
target: i0.ɵɵFactoryTarget.Component
|
|
11926
11902
|
});
|
|
11927
11903
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
11928
11904
|
minVersion: "17.0.0",
|
|
11929
11905
|
version: "22.2.0",
|
|
11930
|
-
type:
|
|
11906
|
+
type: MessageListComponent,
|
|
11931
11907
|
isStandalone: true,
|
|
11932
11908
|
selector: "cortex-message-list",
|
|
11933
11909
|
viewQueries: [
|
|
@@ -12113,7 +12089,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
12113
12089
|
}]
|
|
12114
12090
|
}
|
|
12115
12091
|
});
|
|
12116
|
-
var MessagesSkeletonComponent = class
|
|
12092
|
+
var MessagesSkeletonComponent = class MessagesSkeletonComponent {
|
|
12117
12093
|
bubbles = [
|
|
12118
12094
|
{
|
|
12119
12095
|
role: "user",
|
|
@@ -12140,14 +12116,14 @@ var MessagesSkeletonComponent = class MessagesSkeletonComponent2 {
|
|
|
12140
12116
|
minVersion: "12.0.0",
|
|
12141
12117
|
version: "22.2.0",
|
|
12142
12118
|
ngImport: i0,
|
|
12143
|
-
type:
|
|
12119
|
+
type: MessagesSkeletonComponent,
|
|
12144
12120
|
deps: [],
|
|
12145
12121
|
target: i0.ɵɵFactoryTarget.Component
|
|
12146
12122
|
});
|
|
12147
12123
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
12148
12124
|
minVersion: "17.0.0",
|
|
12149
12125
|
version: "22.2.0",
|
|
12150
|
-
type:
|
|
12126
|
+
type: MessagesSkeletonComponent,
|
|
12151
12127
|
isStandalone: true,
|
|
12152
12128
|
selector: "cortex-messages-skeleton",
|
|
12153
12129
|
host: { classAttribute: "cortex-widget__messages-skeleton" },
|
|
@@ -12191,7 +12167,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
12191
12167
|
}]
|
|
12192
12168
|
}]
|
|
12193
12169
|
});
|
|
12194
|
-
var ThreadListComponent = class
|
|
12170
|
+
var ThreadListComponent = class ThreadListComponent {
|
|
12195
12171
|
context = input.required(...ngDevMode ? [{ debugName: "context" }] : []);
|
|
12196
12172
|
icons = ICON_PATHS;
|
|
12197
12173
|
locale = inject(CORTEX_LOCALE);
|
|
@@ -12202,14 +12178,14 @@ var ThreadListComponent = class ThreadListComponent2 {
|
|
|
12202
12178
|
minVersion: "12.0.0",
|
|
12203
12179
|
version: "22.2.0",
|
|
12204
12180
|
ngImport: i0,
|
|
12205
|
-
type:
|
|
12181
|
+
type: ThreadListComponent,
|
|
12206
12182
|
deps: [],
|
|
12207
12183
|
target: i0.ɵɵFactoryTarget.Component
|
|
12208
12184
|
});
|
|
12209
12185
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
12210
12186
|
minVersion: "17.0.0",
|
|
12211
12187
|
version: "22.2.0",
|
|
12212
|
-
type:
|
|
12188
|
+
type: ThreadListComponent,
|
|
12213
12189
|
isStandalone: true,
|
|
12214
12190
|
selector: "cortex-thread-list",
|
|
12215
12191
|
inputs: { context: {
|
|
@@ -12530,7 +12506,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
12530
12506
|
}]
|
|
12531
12507
|
}] }
|
|
12532
12508
|
});
|
|
12533
|
-
var CortexSlotDirective = class
|
|
12509
|
+
var CortexSlotDirective = class CortexSlotDirective {
|
|
12534
12510
|
slot = input.required({
|
|
12535
12511
|
...ngDevMode ? { debugName: "slot" } : {},
|
|
12536
12512
|
alias: "cortexSlot"
|
|
@@ -12546,14 +12522,14 @@ var CortexSlotDirective = class CortexSlotDirective2 {
|
|
|
12546
12522
|
minVersion: "12.0.0",
|
|
12547
12523
|
version: "22.2.0",
|
|
12548
12524
|
ngImport: i0,
|
|
12549
|
-
type:
|
|
12525
|
+
type: CortexSlotDirective,
|
|
12550
12526
|
deps: [],
|
|
12551
12527
|
target: i0.ɵɵFactoryTarget.Directive
|
|
12552
12528
|
});
|
|
12553
12529
|
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
12554
12530
|
minVersion: "17.1.0",
|
|
12555
12531
|
version: "22.2.0",
|
|
12556
|
-
type:
|
|
12532
|
+
type: CortexSlotDirective,
|
|
12557
12533
|
isStandalone: true,
|
|
12558
12534
|
selector: "ng-template[cortexSlot]",
|
|
12559
12535
|
inputs: { slot: {
|
|
@@ -12584,7 +12560,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
12584
12560
|
}]
|
|
12585
12561
|
}] }
|
|
12586
12562
|
});
|
|
12587
|
-
var CortexChatWidgetComponent = class
|
|
12563
|
+
var CortexChatWidgetComponent = class CortexChatWidgetComponent {
|
|
12588
12564
|
config = input.required(...ngDevMode ? [{ debugName: "config" }] : []);
|
|
12589
12565
|
direction = computed(() => LOCALE_DIRECTIONS[resolveLocale(this.config().locale)], ...ngDevMode ? [{ debugName: "direction" }] : []);
|
|
12590
12566
|
landingComposer = viewChild.required("landingComposer", ...ngDevMode ? [{ debugName: "landingComposer" }] : []);
|
|
@@ -12611,14 +12587,14 @@ var CortexChatWidgetComponent = class CortexChatWidgetComponent2 {
|
|
|
12611
12587
|
minVersion: "12.0.0",
|
|
12612
12588
|
version: "22.2.0",
|
|
12613
12589
|
ngImport: i0,
|
|
12614
|
-
type:
|
|
12590
|
+
type: CortexChatWidgetComponent,
|
|
12615
12591
|
deps: [],
|
|
12616
12592
|
target: i0.ɵɵFactoryTarget.Component
|
|
12617
12593
|
});
|
|
12618
12594
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
12619
12595
|
minVersion: "17.0.0",
|
|
12620
12596
|
version: "22.2.0",
|
|
12621
|
-
type:
|
|
12597
|
+
type: CortexChatWidgetComponent,
|
|
12622
12598
|
isStandalone: true,
|
|
12623
12599
|
selector: "cortex-chat-widget",
|
|
12624
12600
|
inputs: { config: {
|
|
@@ -12638,7 +12614,7 @@ var CortexChatWidgetComponent = class CortexChatWidgetComponent2 {
|
|
|
12638
12614
|
providers: [
|
|
12639
12615
|
{
|
|
12640
12616
|
provide: CORTEX_CONFIG,
|
|
12641
|
-
useFactory: () => inject(
|
|
12617
|
+
useFactory: () => inject(CortexChatWidgetComponent).config
|
|
12642
12618
|
},
|
|
12643
12619
|
...CORTEX_CONFIG_PROVIDERS,
|
|
12644
12620
|
CortexChatService
|
|
@@ -12985,6 +12961,6 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
12985
12961
|
}
|
|
12986
12962
|
});
|
|
12987
12963
|
export {
|
|
12988
|
-
|
|
12989
|
-
|
|
12964
|
+
CortexChatWidgetComponent,
|
|
12965
|
+
CortexSlotDirective
|
|
12990
12966
|
};
|