@m6d/cortex-angular 0.15.0 → 0.15.2
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/fesm2022/m6d-cortex-angular.mjs +147 -170
- package/package.json +1 -1
|
@@ -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";
|
|
@@ -632,6 +608,7 @@ function createComposerInput(textarea, widget) {
|
|
|
632
608
|
textarea.removeEventListener("keydown", onKeyDown);
|
|
633
609
|
resize?.disconnect();
|
|
634
610
|
}
|
|
611
|
+
textarea.style.transition = "none";
|
|
635
612
|
textarea.addEventListener("keydown", onKeyDown);
|
|
636
613
|
resize?.observe(textarea, { box: "border-box" });
|
|
637
614
|
return { send, fit, dispose };
|
|
@@ -1735,8 +1712,8 @@ function createCortexConnection(options) {
|
|
|
1735
1712
|
});
|
|
1736
1713
|
heard(answersReceiptOf(response.status));
|
|
1737
1714
|
api.readVisitorAnswer(response, init?.headers);
|
|
1738
|
-
const
|
|
1739
|
-
if (submission && !
|
|
1715
|
+
const replay = new Headers(init?.headers).has("Last-Event-ID");
|
|
1716
|
+
if (submission && !replay && response.status === 401)
|
|
1740
1717
|
options.onMessageRefused?.();
|
|
1741
1718
|
const refusal = await refusalOf(response);
|
|
1742
1719
|
if (refusal)
|
|
@@ -1850,8 +1827,8 @@ function createTurnLifecycle(options) {
|
|
|
1850
1827
|
ownsRun = true;
|
|
1851
1828
|
options.setRunning(true);
|
|
1852
1829
|
}
|
|
1853
|
-
function settleDelivery(callId,
|
|
1854
|
-
delivering.get(callId)?.waiters.forEach(
|
|
1830
|
+
function settleDelivery(callId, settle) {
|
|
1831
|
+
delivering.get(callId)?.waiters.forEach(settle);
|
|
1855
1832
|
delivering.delete(callId);
|
|
1856
1833
|
}
|
|
1857
1834
|
function notTaken(ids, failure, mayHaveLanded = false) {
|
|
@@ -2037,8 +2014,8 @@ function createTurnLifecycle(options) {
|
|
|
2037
2014
|
}, 0);
|
|
2038
2015
|
},
|
|
2039
2016
|
deliverAnswer(callId, deliver) {
|
|
2040
|
-
return new Promise((
|
|
2041
|
-
const waiters = [...delivering.get(callId)?.waiters ?? [], { resolve
|
|
2017
|
+
return new Promise((resolve, reject) => {
|
|
2018
|
+
const waiters = [...delivering.get(callId)?.waiters ?? [], { resolve, reject }];
|
|
2042
2019
|
delivering.set(callId, { deliver, waiters });
|
|
2043
2020
|
send(callId, deliver);
|
|
2044
2021
|
});
|
|
@@ -2165,7 +2142,7 @@ function createChatSession(options) {
|
|
|
2165
2142
|
onRefused: whileAlive((refusal) => lifecycle.sendRefused(refusal)),
|
|
2166
2143
|
onMessageRefused: options.onMessageRefused,
|
|
2167
2144
|
onReceipt: whileAlive((ids, receipt) => lifecycle.receiptArrived(ids, receipt)),
|
|
2168
|
-
setLoadingMessages: whileAlive((
|
|
2145
|
+
setLoadingMessages: whileAlive((loading) => set("isLoadingMessages", loading))
|
|
2169
2146
|
});
|
|
2170
2147
|
const client = new ChatClient({
|
|
2171
2148
|
threadId,
|
|
@@ -4004,8 +3981,8 @@ function withoutComments(css) {
|
|
|
4004
3981
|
return css.replace(CSS_STRING_OR_COMMENT, (token) => token.startsWith("/*") ? "" : token);
|
|
4005
3982
|
}
|
|
4006
3983
|
async function sanitizeReport(source) {
|
|
4007
|
-
const { default:
|
|
4008
|
-
const fragment =
|
|
3984
|
+
const { default: DOMPurify } = await import("dompurify");
|
|
3985
|
+
const fragment = DOMPurify.sanitize(source, {
|
|
4009
3986
|
FORCE_BODY: true,
|
|
4010
3987
|
RETURN_DOM_FRAGMENT: true,
|
|
4011
3988
|
USE_PROFILES: { html: true, svg: true, svgFilters: true },
|
|
@@ -4084,7 +4061,7 @@ var FENCED_SPEC = /^\s*(`{3,}|~{3,})[^\n]*\n([\s\S]*?)\n\s*\1\s*$/;
|
|
|
4084
4061
|
// src/internal/client/src/content/media-blocks.ts
|
|
4085
4062
|
var builtIn = {
|
|
4086
4063
|
async mermaid(host, source, { scheme }) {
|
|
4087
|
-
const [{ default: mermaid }, { default:
|
|
4064
|
+
const [{ default: mermaid }, { default: DOMPurify }] = await Promise.all([
|
|
4088
4065
|
import("mermaid"),
|
|
4089
4066
|
import("dompurify")
|
|
4090
4067
|
]);
|
|
@@ -4115,7 +4092,7 @@ ${source}`;
|
|
|
4115
4092
|
});
|
|
4116
4093
|
const svg = await run;
|
|
4117
4094
|
const drawing = document.createElement("div");
|
|
4118
|
-
drawing.innerHTML =
|
|
4095
|
+
drawing.innerHTML = DOMPurify.sanitize(svg, { USE_PROFILES: { svg: true, svgFilters: true } });
|
|
4119
4096
|
stripExternalResources(drawing);
|
|
4120
4097
|
host.replaceChildren(...drawing.childNodes);
|
|
4121
4098
|
return () => {
|
|
@@ -4652,13 +4629,13 @@ function messageLayout(message, options) {
|
|
|
4652
4629
|
const parts = visibleMessageParts(message.parts, options);
|
|
4653
4630
|
const drawn = parts.filter((part) => options.fold?.get(part)?.kind !== "hidden");
|
|
4654
4631
|
const lastText = drawn.filter((part) => part.type === "text").at(-1);
|
|
4655
|
-
const
|
|
4632
|
+
const settled = (message.role === "user" || message.role === "assistant") && !options.isStreaming;
|
|
4656
4633
|
return {
|
|
4657
4634
|
metadata,
|
|
4658
4635
|
parts,
|
|
4659
4636
|
drawsBody: parts.length > 0 || Boolean(metadata?.attachments?.length || metadata?.isAborted),
|
|
4660
4637
|
streamingPart: options.isStreaming ? parts.at(-1) : undefined,
|
|
4661
|
-
actionsAfter:
|
|
4638
|
+
actionsAfter: settled && lastText ? lastText === drawn.at(-1) ? "end" : lastText : undefined,
|
|
4662
4639
|
debugStrip: options.debugMode && metadata !== undefined && options.closesTurn
|
|
4663
4640
|
};
|
|
4664
4641
|
}
|
|
@@ -4740,7 +4717,7 @@ var CORTEX_CONFIG_PROVIDERS = [{
|
|
|
4740
4717
|
return scheme.asReadonly();
|
|
4741
4718
|
}
|
|
4742
4719
|
}];
|
|
4743
|
-
var TranslatePipe = class
|
|
4720
|
+
var TranslatePipe = class TranslatePipe {
|
|
4744
4721
|
locale = inject(CORTEX_LOCALE);
|
|
4745
4722
|
transform(key, params) {
|
|
4746
4723
|
return translate(this.locale(), key, params);
|
|
@@ -4749,7 +4726,7 @@ var TranslatePipe = class TranslatePipe2 {
|
|
|
4749
4726
|
minVersion: "12.0.0",
|
|
4750
4727
|
version: "22.2.0",
|
|
4751
4728
|
ngImport: i0,
|
|
4752
|
-
type:
|
|
4729
|
+
type: TranslatePipe,
|
|
4753
4730
|
deps: [],
|
|
4754
4731
|
target: i0.ɵɵFactoryTarget.Pipe
|
|
4755
4732
|
});
|
|
@@ -4757,7 +4734,7 @@ var TranslatePipe = class TranslatePipe2 {
|
|
|
4757
4734
|
minVersion: "14.0.0",
|
|
4758
4735
|
version: "22.2.0",
|
|
4759
4736
|
ngImport: i0,
|
|
4760
|
-
type:
|
|
4737
|
+
type: TranslatePipe,
|
|
4761
4738
|
isStandalone: true,
|
|
4762
4739
|
name: "translate",
|
|
4763
4740
|
pure: false
|
|
@@ -4776,7 +4753,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
4776
4753
|
}]
|
|
4777
4754
|
}]
|
|
4778
4755
|
});
|
|
4779
|
-
var CortexChatService = class
|
|
4756
|
+
var CortexChatService = class CortexChatService {
|
|
4780
4757
|
widget = createCortexWidget({ getConfig: inject(CORTEX_CONFIG) });
|
|
4781
4758
|
snapshot = signal(this.widget.getState(), ...ngDevMode ? [{ debugName: "snapshot" }] : []);
|
|
4782
4759
|
text = signal(this.widget.getDraft(), ...ngDevMode ? [{ debugName: "text" }] : []);
|
|
@@ -4802,7 +4779,7 @@ var CortexChatService = class CortexChatService2 {
|
|
|
4802
4779
|
minVersion: "12.0.0",
|
|
4803
4780
|
version: "22.2.0",
|
|
4804
4781
|
ngImport: i0,
|
|
4805
|
-
type:
|
|
4782
|
+
type: CortexChatService,
|
|
4806
4783
|
deps: [],
|
|
4807
4784
|
target: i0.ɵɵFactoryTarget.Injectable
|
|
4808
4785
|
});
|
|
@@ -4810,7 +4787,7 @@ var CortexChatService = class CortexChatService2 {
|
|
|
4810
4787
|
minVersion: "12.0.0",
|
|
4811
4788
|
version: "22.2.0",
|
|
4812
4789
|
ngImport: i0,
|
|
4813
|
-
type:
|
|
4790
|
+
type: CortexChatService
|
|
4814
4791
|
});
|
|
4815
4792
|
};
|
|
4816
4793
|
i0.ɵɵngDeclareClassMetadata({
|
|
@@ -4821,7 +4798,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
4821
4798
|
decorators: [{ type: Injectable }],
|
|
4822
4799
|
ctorParameters: () => []
|
|
4823
4800
|
});
|
|
4824
|
-
var AttachmentQueueComponent = class
|
|
4801
|
+
var AttachmentQueueComponent = class AttachmentQueueComponent {
|
|
4825
4802
|
icons = ICON_PATHS;
|
|
4826
4803
|
chat = inject(CortexChatService);
|
|
4827
4804
|
locale = inject(CORTEX_LOCALE);
|
|
@@ -4832,14 +4809,14 @@ var AttachmentQueueComponent = class AttachmentQueueComponent2 {
|
|
|
4832
4809
|
minVersion: "12.0.0",
|
|
4833
4810
|
version: "22.2.0",
|
|
4834
4811
|
ngImport: i0,
|
|
4835
|
-
type:
|
|
4812
|
+
type: AttachmentQueueComponent,
|
|
4836
4813
|
deps: [],
|
|
4837
4814
|
target: i0.ɵɵFactoryTarget.Component
|
|
4838
4815
|
});
|
|
4839
4816
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
4840
4817
|
minVersion: "17.0.0",
|
|
4841
4818
|
version: "22.2.0",
|
|
4842
|
-
type:
|
|
4819
|
+
type: AttachmentQueueComponent,
|
|
4843
4820
|
isStandalone: true,
|
|
4844
4821
|
selector: "cortex-attachment-queue",
|
|
4845
4822
|
ngImport: i0,
|
|
@@ -5023,7 +5000,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
5023
5000
|
}]
|
|
5024
5001
|
}]
|
|
5025
5002
|
});
|
|
5026
|
-
var ChatComposerComponent = class
|
|
5003
|
+
var ChatComposerComponent = class ChatComposerComponent {
|
|
5027
5004
|
icons = ICON_PATHS;
|
|
5028
5005
|
chat = inject(CortexChatService);
|
|
5029
5006
|
dragging = signal(false, ...ngDevMode ? [{ debugName: "dragging" }] : []);
|
|
@@ -5068,14 +5045,14 @@ var ChatComposerComponent = class ChatComposerComponent2 {
|
|
|
5068
5045
|
minVersion: "12.0.0",
|
|
5069
5046
|
version: "22.2.0",
|
|
5070
5047
|
ngImport: i0,
|
|
5071
|
-
type:
|
|
5048
|
+
type: ChatComposerComponent,
|
|
5072
5049
|
deps: [],
|
|
5073
5050
|
target: i0.ɵɵFactoryTarget.Component
|
|
5074
5051
|
});
|
|
5075
5052
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
5076
5053
|
minVersion: "17.0.0",
|
|
5077
5054
|
version: "22.2.0",
|
|
5078
|
-
type:
|
|
5055
|
+
type: ChatComposerComponent,
|
|
5079
5056
|
isStandalone: true,
|
|
5080
5057
|
selector: "cortex-chat-composer",
|
|
5081
5058
|
viewQueries: [{
|
|
@@ -5323,21 +5300,21 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
5323
5300
|
args: ["messageInput", { isSignal: true }]
|
|
5324
5301
|
}] }
|
|
5325
5302
|
});
|
|
5326
|
-
var ChatHeaderComponent = class
|
|
5303
|
+
var ChatHeaderComponent = class ChatHeaderComponent {
|
|
5327
5304
|
context = input.required(...ngDevMode ? [{ debugName: "context" }] : []);
|
|
5328
5305
|
icons = ICON_PATHS;
|
|
5329
5306
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
5330
5307
|
minVersion: "12.0.0",
|
|
5331
5308
|
version: "22.2.0",
|
|
5332
5309
|
ngImport: i0,
|
|
5333
|
-
type:
|
|
5310
|
+
type: ChatHeaderComponent,
|
|
5334
5311
|
deps: [],
|
|
5335
5312
|
target: i0.ɵɵFactoryTarget.Component
|
|
5336
5313
|
});
|
|
5337
5314
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
5338
5315
|
minVersion: "17.0.0",
|
|
5339
5316
|
version: "22.2.0",
|
|
5340
|
-
type:
|
|
5317
|
+
type: ChatHeaderComponent,
|
|
5341
5318
|
isStandalone: true,
|
|
5342
5319
|
selector: "cortex-chat-header",
|
|
5343
5320
|
inputs: { context: {
|
|
@@ -5611,7 +5588,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
5611
5588
|
}]
|
|
5612
5589
|
}] }
|
|
5613
5590
|
});
|
|
5614
|
-
var ChatLandingComponent = class
|
|
5591
|
+
var ChatLandingComponent = class ChatLandingComponent {
|
|
5615
5592
|
context = input.required(...ngDevMode ? [{ debugName: "context" }] : []);
|
|
5616
5593
|
icons = ICON_PATHS;
|
|
5617
5594
|
locale = inject(CORTEX_LOCALE);
|
|
@@ -5622,14 +5599,14 @@ var ChatLandingComponent = class ChatLandingComponent2 {
|
|
|
5622
5599
|
minVersion: "12.0.0",
|
|
5623
5600
|
version: "22.2.0",
|
|
5624
5601
|
ngImport: i0,
|
|
5625
|
-
type:
|
|
5602
|
+
type: ChatLandingComponent,
|
|
5626
5603
|
deps: [],
|
|
5627
5604
|
target: i0.ɵɵFactoryTarget.Component
|
|
5628
5605
|
});
|
|
5629
5606
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
5630
5607
|
minVersion: "17.0.0",
|
|
5631
5608
|
version: "22.2.0",
|
|
5632
|
-
type:
|
|
5609
|
+
type: ChatLandingComponent,
|
|
5633
5610
|
isStandalone: true,
|
|
5634
5611
|
selector: "cortex-chat-landing",
|
|
5635
5612
|
inputs: { context: {
|
|
@@ -5791,7 +5768,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
5791
5768
|
}]
|
|
5792
5769
|
}] }
|
|
5793
5770
|
});
|
|
5794
|
-
var CopyButtonComponent = class
|
|
5771
|
+
var CopyButtonComponent = class CopyButtonComponent {
|
|
5795
5772
|
value = input.required(...ngDevMode ? [{ debugName: "value" }] : []);
|
|
5796
5773
|
icons = ICON_PATHS;
|
|
5797
5774
|
copied = signal(false, ...ngDevMode ? [{ debugName: "copied" }] : []);
|
|
@@ -5811,14 +5788,14 @@ var CopyButtonComponent = class CopyButtonComponent2 {
|
|
|
5811
5788
|
minVersion: "12.0.0",
|
|
5812
5789
|
version: "22.2.0",
|
|
5813
5790
|
ngImport: i0,
|
|
5814
|
-
type:
|
|
5791
|
+
type: CopyButtonComponent,
|
|
5815
5792
|
deps: [],
|
|
5816
5793
|
target: i0.ɵɵFactoryTarget.Component
|
|
5817
5794
|
});
|
|
5818
5795
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
5819
5796
|
minVersion: "17.0.0",
|
|
5820
5797
|
version: "22.2.0",
|
|
5821
|
-
type:
|
|
5798
|
+
type: CopyButtonComponent,
|
|
5822
5799
|
isStandalone: true,
|
|
5823
5800
|
selector: "cortex-copy-button",
|
|
5824
5801
|
inputs: { value: {
|
|
@@ -5925,21 +5902,21 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
5925
5902
|
}]
|
|
5926
5903
|
}] }
|
|
5927
5904
|
});
|
|
5928
|
-
var MessageAbortedFlagComponent = class
|
|
5905
|
+
var MessageAbortedFlagComponent = class MessageAbortedFlagComponent {
|
|
5929
5906
|
label = input.required(...ngDevMode ? [{ debugName: "label" }] : []);
|
|
5930
5907
|
icons = ICON_PATHS;
|
|
5931
5908
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
5932
5909
|
minVersion: "12.0.0",
|
|
5933
5910
|
version: "22.2.0",
|
|
5934
5911
|
ngImport: i0,
|
|
5935
|
-
type:
|
|
5912
|
+
type: MessageAbortedFlagComponent,
|
|
5936
5913
|
deps: [],
|
|
5937
5914
|
target: i0.ɵɵFactoryTarget.Component
|
|
5938
5915
|
});
|
|
5939
5916
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
5940
5917
|
minVersion: "17.1.0",
|
|
5941
5918
|
version: "22.2.0",
|
|
5942
|
-
type:
|
|
5919
|
+
type: MessageAbortedFlagComponent,
|
|
5943
5920
|
isStandalone: true,
|
|
5944
5921
|
selector: "cortex-message-aborted-flag",
|
|
5945
5922
|
inputs: { label: {
|
|
@@ -6012,7 +5989,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
6012
5989
|
}]
|
|
6013
5990
|
}] }
|
|
6014
5991
|
});
|
|
6015
|
-
var MessageAttachmentsComponent = class
|
|
5992
|
+
var MessageAttachmentsComponent = class MessageAttachmentsComponent {
|
|
6016
5993
|
attachments = input.required(...ngDevMode ? [{ debugName: "attachments" }] : []);
|
|
6017
5994
|
isUser = input(false, ...ngDevMode ? [{ debugName: "isUser" }] : []);
|
|
6018
5995
|
icons = ICON_PATHS;
|
|
@@ -6024,14 +6001,14 @@ var MessageAttachmentsComponent = class MessageAttachmentsComponent2 {
|
|
|
6024
6001
|
minVersion: "12.0.0",
|
|
6025
6002
|
version: "22.2.0",
|
|
6026
6003
|
ngImport: i0,
|
|
6027
|
-
type:
|
|
6004
|
+
type: MessageAttachmentsComponent,
|
|
6028
6005
|
deps: [],
|
|
6029
6006
|
target: i0.ɵɵFactoryTarget.Component
|
|
6030
6007
|
});
|
|
6031
6008
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
6032
6009
|
minVersion: "17.0.0",
|
|
6033
6010
|
version: "22.2.0",
|
|
6034
|
-
type:
|
|
6011
|
+
type: MessageAttachmentsComponent,
|
|
6035
6012
|
isStandalone: true,
|
|
6036
6013
|
selector: "cortex-message-attachments",
|
|
6037
6014
|
inputs: {
|
|
@@ -6155,21 +6132,21 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
6155
6132
|
}]
|
|
6156
6133
|
}
|
|
6157
6134
|
});
|
|
6158
|
-
var LlmUsageBreakdownComponent = class
|
|
6135
|
+
var LlmUsageBreakdownComponent = class LlmUsageBreakdownComponent {
|
|
6159
6136
|
usage = input.required(...ngDevMode ? [{ debugName: "usage" }] : []);
|
|
6160
6137
|
count = formatCount;
|
|
6161
6138
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
6162
6139
|
minVersion: "12.0.0",
|
|
6163
6140
|
version: "22.2.0",
|
|
6164
6141
|
ngImport: i0,
|
|
6165
|
-
type:
|
|
6142
|
+
type: LlmUsageBreakdownComponent,
|
|
6166
6143
|
deps: [],
|
|
6167
6144
|
target: i0.ɵɵFactoryTarget.Component
|
|
6168
6145
|
});
|
|
6169
6146
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
6170
6147
|
minVersion: "17.1.0",
|
|
6171
6148
|
version: "22.2.0",
|
|
6172
|
-
type:
|
|
6149
|
+
type: LlmUsageBreakdownComponent,
|
|
6173
6150
|
isStandalone: true,
|
|
6174
6151
|
selector: "cortex-llm-usage-breakdown",
|
|
6175
6152
|
inputs: { usage: {
|
|
@@ -6268,7 +6245,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
6268
6245
|
}]
|
|
6269
6246
|
}] }
|
|
6270
6247
|
});
|
|
6271
|
-
var LlmUsageChipsComponent = class
|
|
6248
|
+
var LlmUsageChipsComponent = class LlmUsageChipsComponent {
|
|
6272
6249
|
usage = input.required(...ngDevMode ? [{ debugName: "usage" }] : []);
|
|
6273
6250
|
cachePercent = computed(() => cachePercent(this.usage()), ...ngDevMode ? [{ debugName: "cachePercent" }] : []);
|
|
6274
6251
|
count = formatCount;
|
|
@@ -6276,14 +6253,14 @@ var LlmUsageChipsComponent = class LlmUsageChipsComponent2 {
|
|
|
6276
6253
|
minVersion: "12.0.0",
|
|
6277
6254
|
version: "22.2.0",
|
|
6278
6255
|
ngImport: i0,
|
|
6279
|
-
type:
|
|
6256
|
+
type: LlmUsageChipsComponent,
|
|
6280
6257
|
deps: [],
|
|
6281
6258
|
target: i0.ɵɵFactoryTarget.Component
|
|
6282
6259
|
});
|
|
6283
6260
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
6284
6261
|
minVersion: "17.0.0",
|
|
6285
6262
|
version: "22.2.0",
|
|
6286
|
-
type:
|
|
6263
|
+
type: LlmUsageChipsComponent,
|
|
6287
6264
|
isStandalone: true,
|
|
6288
6265
|
selector: "cortex-llm-usage-chips",
|
|
6289
6266
|
inputs: { usage: {
|
|
@@ -6354,7 +6331,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
6354
6331
|
}]
|
|
6355
6332
|
}] }
|
|
6356
6333
|
});
|
|
6357
|
-
var JsonTreeComponent = class
|
|
6334
|
+
var JsonTreeComponent = class JsonTreeComponent {
|
|
6358
6335
|
data = input.required(...ngDevMode ? [{ debugName: "data" }] : []);
|
|
6359
6336
|
expandDepth = input(1, ...ngDevMode ? [{ debugName: "expandDepth" }] : []);
|
|
6360
6337
|
parsedData = computed(() => deepParseJson(this.data()), ...ngDevMode ? [{ debugName: "parsedData" }] : []);
|
|
@@ -6370,14 +6347,14 @@ var JsonTreeComponent = class JsonTreeComponent2 {
|
|
|
6370
6347
|
minVersion: "12.0.0",
|
|
6371
6348
|
version: "22.2.0",
|
|
6372
6349
|
ngImport: i0,
|
|
6373
|
-
type:
|
|
6350
|
+
type: JsonTreeComponent,
|
|
6374
6351
|
deps: [],
|
|
6375
6352
|
target: i0.ɵɵFactoryTarget.Component
|
|
6376
6353
|
});
|
|
6377
6354
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
6378
6355
|
minVersion: "17.0.0",
|
|
6379
6356
|
version: "22.2.0",
|
|
6380
|
-
type:
|
|
6357
|
+
type: JsonTreeComponent,
|
|
6381
6358
|
isStandalone: true,
|
|
6382
6359
|
selector: "cortex-json-tree",
|
|
6383
6360
|
inputs: {
|
|
@@ -6590,7 +6567,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
6590
6567
|
}]
|
|
6591
6568
|
}
|
|
6592
6569
|
});
|
|
6593
|
-
var MessageLlmInspectorComponent = class
|
|
6570
|
+
var MessageLlmInspectorComponent = class MessageLlmInspectorComponent {
|
|
6594
6571
|
messageId = input.required(...ngDevMode ? [{ debugName: "messageId" }] : []);
|
|
6595
6572
|
icons = ICON_PATHS;
|
|
6596
6573
|
open = signal(false, ...ngDevMode ? [{ debugName: "open" }] : []);
|
|
@@ -6635,14 +6612,14 @@ var MessageLlmInspectorComponent = class MessageLlmInspectorComponent2 {
|
|
|
6635
6612
|
minVersion: "12.0.0",
|
|
6636
6613
|
version: "22.2.0",
|
|
6637
6614
|
ngImport: i0,
|
|
6638
|
-
type:
|
|
6615
|
+
type: MessageLlmInspectorComponent,
|
|
6639
6616
|
deps: [],
|
|
6640
6617
|
target: i0.ɵɵFactoryTarget.Component
|
|
6641
6618
|
});
|
|
6642
6619
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
6643
6620
|
minVersion: "17.0.0",
|
|
6644
6621
|
version: "22.2.0",
|
|
6645
|
-
type:
|
|
6622
|
+
type: MessageLlmInspectorComponent,
|
|
6646
6623
|
isStandalone: true,
|
|
6647
6624
|
selector: "cortex-message-llm-inspector",
|
|
6648
6625
|
inputs: { messageId: {
|
|
@@ -6939,7 +6916,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
6939
6916
|
}]
|
|
6940
6917
|
}] }
|
|
6941
6918
|
});
|
|
6942
|
-
var MarkedPipe = class
|
|
6919
|
+
var MarkedPipe = class MarkedPipe {
|
|
6943
6920
|
sanitizer = inject(DomSanitizer);
|
|
6944
6921
|
transform(value, fading = []) {
|
|
6945
6922
|
if (!value)
|
|
@@ -6950,7 +6927,7 @@ var MarkedPipe = class MarkedPipe2 {
|
|
|
6950
6927
|
minVersion: "12.0.0",
|
|
6951
6928
|
version: "22.2.0",
|
|
6952
6929
|
ngImport: i0,
|
|
6953
|
-
type:
|
|
6930
|
+
type: MarkedPipe,
|
|
6954
6931
|
deps: [],
|
|
6955
6932
|
target: i0.ɵɵFactoryTarget.Pipe
|
|
6956
6933
|
});
|
|
@@ -6958,7 +6935,7 @@ var MarkedPipe = class MarkedPipe2 {
|
|
|
6958
6935
|
minVersion: "14.0.0",
|
|
6959
6936
|
version: "22.2.0",
|
|
6960
6937
|
ngImport: i0,
|
|
6961
|
-
type:
|
|
6938
|
+
type: MarkedPipe,
|
|
6962
6939
|
isStandalone: true,
|
|
6963
6940
|
name: "marked"
|
|
6964
6941
|
});
|
|
@@ -6973,7 +6950,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
6973
6950
|
args: [{ name: "marked" }]
|
|
6974
6951
|
}]
|
|
6975
6952
|
});
|
|
6976
|
-
var ExpandableComponent = class
|
|
6953
|
+
var ExpandableComponent = class ExpandableComponent {
|
|
6977
6954
|
label = input.required(...ngDevMode ? [{ debugName: "label" }] : []);
|
|
6978
6955
|
ready = input(true, ...ngDevMode ? [{ debugName: "ready" }] : []);
|
|
6979
6956
|
actions = input(...ngDevMode ? [undefined, { debugName: "actions" }] : []);
|
|
@@ -6992,14 +6969,14 @@ var ExpandableComponent = class ExpandableComponent2 {
|
|
|
6992
6969
|
minVersion: "12.0.0",
|
|
6993
6970
|
version: "22.2.0",
|
|
6994
6971
|
ngImport: i0,
|
|
6995
|
-
type:
|
|
6972
|
+
type: ExpandableComponent,
|
|
6996
6973
|
deps: [],
|
|
6997
6974
|
target: i0.ɵɵFactoryTarget.Component
|
|
6998
6975
|
});
|
|
6999
6976
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
7000
6977
|
minVersion: "17.0.0",
|
|
7001
6978
|
version: "22.2.0",
|
|
7002
|
-
type:
|
|
6979
|
+
type: ExpandableComponent,
|
|
7003
6980
|
isStandalone: true,
|
|
7004
6981
|
selector: "cortex-expandable",
|
|
7005
6982
|
inputs: {
|
|
@@ -7229,7 +7206,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
7229
7206
|
}]
|
|
7230
7207
|
}
|
|
7231
7208
|
});
|
|
7232
|
-
var AttachmentImageComponent = class
|
|
7209
|
+
var AttachmentImageComponent = class AttachmentImageComponent {
|
|
7233
7210
|
id = input.required(...ngDevMode ? [{ debugName: "id" }] : []);
|
|
7234
7211
|
alt = input.required(...ngDevMode ? [{ debugName: "alt" }] : []);
|
|
7235
7212
|
attachment = input(...ngDevMode ? [undefined, { debugName: "attachment" }] : []);
|
|
@@ -7248,14 +7225,14 @@ var AttachmentImageComponent = class AttachmentImageComponent2 {
|
|
|
7248
7225
|
minVersion: "12.0.0",
|
|
7249
7226
|
version: "22.2.0",
|
|
7250
7227
|
ngImport: i0,
|
|
7251
|
-
type:
|
|
7228
|
+
type: AttachmentImageComponent,
|
|
7252
7229
|
deps: [],
|
|
7253
7230
|
target: i0.ɵɵFactoryTarget.Component
|
|
7254
7231
|
});
|
|
7255
7232
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
7256
7233
|
minVersion: "17.0.0",
|
|
7257
7234
|
version: "22.2.0",
|
|
7258
|
-
type:
|
|
7235
|
+
type: AttachmentImageComponent,
|
|
7259
7236
|
isStandalone: true,
|
|
7260
7237
|
selector: "cortex-attachment-image",
|
|
7261
7238
|
inputs: {
|
|
@@ -7395,7 +7372,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
7395
7372
|
}]
|
|
7396
7373
|
}
|
|
7397
7374
|
});
|
|
7398
|
-
var MediaBlockHeadComponent = class
|
|
7375
|
+
var MediaBlockHeadComponent = class MediaBlockHeadComponent {
|
|
7399
7376
|
language = input.required(...ngDevMode ? [{ debugName: "language" }] : []);
|
|
7400
7377
|
source = input.required(...ngDevMode ? [{ debugName: "source" }] : []);
|
|
7401
7378
|
pending = input.required(...ngDevMode ? [{ debugName: "pending" }] : []);
|
|
@@ -7409,14 +7386,14 @@ var MediaBlockHeadComponent = class MediaBlockHeadComponent2 {
|
|
|
7409
7386
|
minVersion: "12.0.0",
|
|
7410
7387
|
version: "22.2.0",
|
|
7411
7388
|
ngImport: i0,
|
|
7412
|
-
type:
|
|
7389
|
+
type: MediaBlockHeadComponent,
|
|
7413
7390
|
deps: [],
|
|
7414
7391
|
target: i0.ɵɵFactoryTarget.Component
|
|
7415
7392
|
});
|
|
7416
7393
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
7417
7394
|
minVersion: "17.0.0",
|
|
7418
7395
|
version: "22.2.0",
|
|
7419
|
-
type:
|
|
7396
|
+
type: MediaBlockHeadComponent,
|
|
7420
7397
|
isStandalone: true,
|
|
7421
7398
|
selector: "cortex-media-block-head",
|
|
7422
7399
|
inputs: {
|
|
@@ -7615,7 +7592,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
7615
7592
|
}]
|
|
7616
7593
|
}
|
|
7617
7594
|
});
|
|
7618
|
-
var MediaDrawingComponent = class
|
|
7595
|
+
var MediaDrawingComponent = class MediaDrawingComponent {
|
|
7619
7596
|
language = input.required(...ngDevMode ? [{ debugName: "language" }] : []);
|
|
7620
7597
|
source = input.required(...ngDevMode ? [{ debugName: "source" }] : []);
|
|
7621
7598
|
closed = input.required(...ngDevMode ? [{ debugName: "closed" }] : []);
|
|
@@ -7650,14 +7627,14 @@ var MediaDrawingComponent = class MediaDrawingComponent2 {
|
|
|
7650
7627
|
minVersion: "12.0.0",
|
|
7651
7628
|
version: "22.2.0",
|
|
7652
7629
|
ngImport: i0,
|
|
7653
|
-
type:
|
|
7630
|
+
type: MediaDrawingComponent,
|
|
7654
7631
|
deps: [],
|
|
7655
7632
|
target: i0.ɵɵFactoryTarget.Component
|
|
7656
7633
|
});
|
|
7657
7634
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
7658
7635
|
minVersion: "17.1.0",
|
|
7659
7636
|
version: "22.2.0",
|
|
7660
|
-
type:
|
|
7637
|
+
type: MediaDrawingComponent,
|
|
7661
7638
|
isStandalone: true,
|
|
7662
7639
|
selector: "cortex-media-drawing",
|
|
7663
7640
|
inputs: {
|
|
@@ -7745,7 +7722,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
7745
7722
|
}]
|
|
7746
7723
|
}
|
|
7747
7724
|
});
|
|
7748
|
-
var MediaBlockComponent = class
|
|
7725
|
+
var MediaBlockComponent = class MediaBlockComponent {
|
|
7749
7726
|
language = input.required(...ngDevMode ? [{ debugName: "language" }] : []);
|
|
7750
7727
|
source = input.required(...ngDevMode ? [{ debugName: "source" }] : []);
|
|
7751
7728
|
closed = input.required(...ngDevMode ? [{ debugName: "closed" }] : []);
|
|
@@ -7765,14 +7742,14 @@ var MediaBlockComponent = class MediaBlockComponent2 {
|
|
|
7765
7742
|
minVersion: "12.0.0",
|
|
7766
7743
|
version: "22.2.0",
|
|
7767
7744
|
ngImport: i0,
|
|
7768
|
-
type:
|
|
7745
|
+
type: MediaBlockComponent,
|
|
7769
7746
|
deps: [],
|
|
7770
7747
|
target: i0.ɵɵFactoryTarget.Component
|
|
7771
7748
|
});
|
|
7772
7749
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
7773
7750
|
minVersion: "17.0.0",
|
|
7774
7751
|
version: "22.2.0",
|
|
7775
|
-
type:
|
|
7752
|
+
type: MediaBlockComponent,
|
|
7776
7753
|
isStandalone: true,
|
|
7777
7754
|
selector: "cortex-media-block",
|
|
7778
7755
|
inputs: {
|
|
@@ -8040,7 +8017,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
8040
8017
|
}]
|
|
8041
8018
|
}
|
|
8042
8019
|
});
|
|
8043
|
-
var TableBlockComponent = class
|
|
8020
|
+
var TableBlockComponent = class TableBlockComponent {
|
|
8044
8021
|
markdown = input.required(...ngDevMode ? [{ debugName: "markdown" }] : []);
|
|
8045
8022
|
closed = input.required(...ngDevMode ? [{ debugName: "closed" }] : []);
|
|
8046
8023
|
icons = ICON_PATHS;
|
|
@@ -8052,14 +8029,14 @@ var TableBlockComponent = class TableBlockComponent2 {
|
|
|
8052
8029
|
minVersion: "12.0.0",
|
|
8053
8030
|
version: "22.2.0",
|
|
8054
8031
|
ngImport: i0,
|
|
8055
|
-
type:
|
|
8032
|
+
type: TableBlockComponent,
|
|
8056
8033
|
deps: [],
|
|
8057
8034
|
target: i0.ɵɵFactoryTarget.Component
|
|
8058
8035
|
});
|
|
8059
8036
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
8060
8037
|
minVersion: "17.2.0",
|
|
8061
8038
|
version: "22.2.0",
|
|
8062
|
-
type:
|
|
8039
|
+
type: TableBlockComponent,
|
|
8063
8040
|
isStandalone: true,
|
|
8064
8041
|
selector: "cortex-table-block",
|
|
8065
8042
|
inputs: {
|
|
@@ -8218,7 +8195,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
8218
8195
|
}]
|
|
8219
8196
|
}
|
|
8220
8197
|
});
|
|
8221
|
-
var MessageTextPartComponent = class
|
|
8198
|
+
var MessageTextPartComponent = class MessageTextPartComponent {
|
|
8222
8199
|
role = input.required(...ngDevMode ? [{ debugName: "role" }] : []);
|
|
8223
8200
|
textPart = input.required(...ngDevMode ? [{ debugName: "textPart" }] : []);
|
|
8224
8201
|
streaming = input(false, ...ngDevMode ? [{ debugName: "streaming" }] : []);
|
|
@@ -8249,14 +8226,14 @@ var MessageTextPartComponent = class MessageTextPartComponent2 {
|
|
|
8249
8226
|
minVersion: "12.0.0",
|
|
8250
8227
|
version: "22.2.0",
|
|
8251
8228
|
ngImport: i0,
|
|
8252
|
-
type:
|
|
8229
|
+
type: MessageTextPartComponent,
|
|
8253
8230
|
deps: [],
|
|
8254
8231
|
target: i0.ɵɵFactoryTarget.Component
|
|
8255
8232
|
});
|
|
8256
8233
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
8257
8234
|
minVersion: "17.0.0",
|
|
8258
8235
|
version: "22.2.0",
|
|
8259
|
-
type:
|
|
8236
|
+
type: MessageTextPartComponent,
|
|
8260
8237
|
isStandalone: true,
|
|
8261
8238
|
selector: "cortex-message-text-part",
|
|
8262
8239
|
inputs: {
|
|
@@ -8459,7 +8436,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
8459
8436
|
}]
|
|
8460
8437
|
}
|
|
8461
8438
|
});
|
|
8462
|
-
var MessageReasoningPartComponent = class
|
|
8439
|
+
var MessageReasoningPartComponent = class MessageReasoningPartComponent {
|
|
8463
8440
|
reasoningPart = input.required(...ngDevMode ? [{ debugName: "reasoningPart" }] : []);
|
|
8464
8441
|
streaming = input(false, ...ngDevMode ? [{ debugName: "streaming" }] : []);
|
|
8465
8442
|
icons = ICON_PATHS;
|
|
@@ -8467,14 +8444,14 @@ var MessageReasoningPartComponent = class MessageReasoningPartComponent2 {
|
|
|
8467
8444
|
minVersion: "12.0.0",
|
|
8468
8445
|
version: "22.2.0",
|
|
8469
8446
|
ngImport: i0,
|
|
8470
|
-
type:
|
|
8447
|
+
type: MessageReasoningPartComponent,
|
|
8471
8448
|
deps: [],
|
|
8472
8449
|
target: i0.ɵɵFactoryTarget.Component
|
|
8473
8450
|
});
|
|
8474
8451
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
8475
8452
|
minVersion: "17.1.0",
|
|
8476
8453
|
version: "22.2.0",
|
|
8477
|
-
type:
|
|
8454
|
+
type: MessageReasoningPartComponent,
|
|
8478
8455
|
isStandalone: true,
|
|
8479
8456
|
selector: "cortex-message-reasoning-part",
|
|
8480
8457
|
inputs: {
|
|
@@ -8658,7 +8635,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
8658
8635
|
}]
|
|
8659
8636
|
}
|
|
8660
8637
|
});
|
|
8661
|
-
var ToolGlyphComponent = class
|
|
8638
|
+
var ToolGlyphComponent = class ToolGlyphComponent {
|
|
8662
8639
|
state = input.required(...ngDevMode ? [{ debugName: "state" }] : []);
|
|
8663
8640
|
active = input.required(...ngDevMode ? [{ debugName: "active" }] : []);
|
|
8664
8641
|
icons = ICON_PATHS;
|
|
@@ -8666,14 +8643,14 @@ var ToolGlyphComponent = class ToolGlyphComponent2 {
|
|
|
8666
8643
|
minVersion: "12.0.0",
|
|
8667
8644
|
version: "22.2.0",
|
|
8668
8645
|
ngImport: i0,
|
|
8669
|
-
type:
|
|
8646
|
+
type: ToolGlyphComponent,
|
|
8670
8647
|
deps: [],
|
|
8671
8648
|
target: i0.ɵɵFactoryTarget.Component
|
|
8672
8649
|
});
|
|
8673
8650
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
8674
8651
|
minVersion: "17.1.0",
|
|
8675
8652
|
version: "22.2.0",
|
|
8676
|
-
type:
|
|
8653
|
+
type: ToolGlyphComponent,
|
|
8677
8654
|
isStandalone: true,
|
|
8678
8655
|
selector: "cortex-tool-glyph",
|
|
8679
8656
|
inputs: {
|
|
@@ -8803,7 +8780,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
8803
8780
|
}]
|
|
8804
8781
|
}
|
|
8805
8782
|
});
|
|
8806
|
-
var ApprovalCardComponent = class
|
|
8783
|
+
var ApprovalCardComponent = class ApprovalCardComponent {
|
|
8807
8784
|
toolCallPart = input.required(...ngDevMode ? [{ debugName: "toolCallPart" }] : []);
|
|
8808
8785
|
asking = input.required(...ngDevMode ? [{ debugName: "asking" }] : []);
|
|
8809
8786
|
icons = ICON_PATHS;
|
|
@@ -8817,14 +8794,14 @@ var ApprovalCardComponent = class ApprovalCardComponent2 {
|
|
|
8817
8794
|
minVersion: "12.0.0",
|
|
8818
8795
|
version: "22.2.0",
|
|
8819
8796
|
ngImport: i0,
|
|
8820
|
-
type:
|
|
8797
|
+
type: ApprovalCardComponent,
|
|
8821
8798
|
deps: [],
|
|
8822
8799
|
target: i0.ɵɵFactoryTarget.Component
|
|
8823
8800
|
});
|
|
8824
8801
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
8825
8802
|
minVersion: "17.0.0",
|
|
8826
8803
|
version: "22.2.0",
|
|
8827
|
-
type:
|
|
8804
|
+
type: ApprovalCardComponent,
|
|
8828
8805
|
isStandalone: true,
|
|
8829
8806
|
selector: "cortex-approval-card",
|
|
8830
8807
|
inputs: {
|
|
@@ -8989,7 +8966,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
8989
8966
|
}]
|
|
8990
8967
|
}
|
|
8991
8968
|
});
|
|
8992
|
-
var ClientToolEmbedComponent = class
|
|
8969
|
+
var ClientToolEmbedComponent = class ClientToolEmbedComponent {
|
|
8993
8970
|
toolCallPart = input.required(...ngDevMode ? [{ debugName: "toolCallPart" }] : []);
|
|
8994
8971
|
fallback = output();
|
|
8995
8972
|
state = signal({ phase: "initiating" }, ...ngDevMode ? [{ debugName: "state" }] : []);
|
|
@@ -9063,14 +9040,14 @@ var ClientToolEmbedComponent = class ClientToolEmbedComponent2 {
|
|
|
9063
9040
|
minVersion: "12.0.0",
|
|
9064
9041
|
version: "22.2.0",
|
|
9065
9042
|
ngImport: i0,
|
|
9066
|
-
type:
|
|
9043
|
+
type: ClientToolEmbedComponent,
|
|
9067
9044
|
deps: [],
|
|
9068
9045
|
target: i0.ɵɵFactoryTarget.Component
|
|
9069
9046
|
});
|
|
9070
9047
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
9071
9048
|
minVersion: "17.0.0",
|
|
9072
9049
|
version: "22.2.0",
|
|
9073
|
-
type:
|
|
9050
|
+
type: ClientToolEmbedComponent,
|
|
9074
9051
|
isStandalone: true,
|
|
9075
9052
|
selector: "cortex-client-tool-embed",
|
|
9076
9053
|
inputs: { toolCallPart: {
|
|
@@ -9283,7 +9260,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
9283
9260
|
}]
|
|
9284
9261
|
}
|
|
9285
9262
|
});
|
|
9286
|
-
var LocationPickerComponent = class
|
|
9263
|
+
var LocationPickerComponent = class LocationPickerComponent {
|
|
9287
9264
|
center = input.required(...ngDevMode ? [{ debugName: "center" }] : []);
|
|
9288
9265
|
submit = input.required(...ngDevMode ? [{ debugName: "submit" }] : []);
|
|
9289
9266
|
icons = ICON_PATHS;
|
|
@@ -9322,14 +9299,14 @@ var LocationPickerComponent = class LocationPickerComponent2 {
|
|
|
9322
9299
|
minVersion: "12.0.0",
|
|
9323
9300
|
version: "22.2.0",
|
|
9324
9301
|
ngImport: i0,
|
|
9325
|
-
type:
|
|
9302
|
+
type: LocationPickerComponent,
|
|
9326
9303
|
deps: [],
|
|
9327
9304
|
target: i0.ɵɵFactoryTarget.Component
|
|
9328
9305
|
});
|
|
9329
9306
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
9330
9307
|
minVersion: "17.0.0",
|
|
9331
9308
|
version: "22.2.0",
|
|
9332
|
-
type:
|
|
9309
|
+
type: LocationPickerComponent,
|
|
9333
9310
|
isStandalone: true,
|
|
9334
9311
|
selector: "cortex-location-picker",
|
|
9335
9312
|
inputs: {
|
|
@@ -9525,7 +9502,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
9525
9502
|
}]
|
|
9526
9503
|
}
|
|
9527
9504
|
});
|
|
9528
|
-
var LocationInputComponent = class
|
|
9505
|
+
var LocationInputComponent = class LocationInputComponent {
|
|
9529
9506
|
toolCallPart = input.required(...ngDevMode ? [{ debugName: "toolCallPart" }] : []);
|
|
9530
9507
|
setOutput = input.required(...ngDevMode ? [{ debugName: "setOutput" }] : []);
|
|
9531
9508
|
icons = ICON_PATHS;
|
|
@@ -9557,14 +9534,14 @@ var LocationInputComponent = class LocationInputComponent2 {
|
|
|
9557
9534
|
minVersion: "12.0.0",
|
|
9558
9535
|
version: "22.2.0",
|
|
9559
9536
|
ngImport: i0,
|
|
9560
|
-
type:
|
|
9537
|
+
type: LocationInputComponent,
|
|
9561
9538
|
deps: [],
|
|
9562
9539
|
target: i0.ɵɵFactoryTarget.Component
|
|
9563
9540
|
});
|
|
9564
9541
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
9565
9542
|
minVersion: "17.0.0",
|
|
9566
9543
|
version: "22.2.0",
|
|
9567
|
-
type:
|
|
9544
|
+
type: LocationInputComponent,
|
|
9568
9545
|
isStandalone: true,
|
|
9569
9546
|
selector: "cortex-location-input",
|
|
9570
9547
|
inputs: {
|
|
@@ -9732,7 +9709,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
9732
9709
|
}]
|
|
9733
9710
|
}
|
|
9734
9711
|
});
|
|
9735
|
-
var HighlightPipe = class
|
|
9712
|
+
var HighlightPipe = class HighlightPipe {
|
|
9736
9713
|
sanitizer = inject(DomSanitizer);
|
|
9737
9714
|
transform(code, lang) {
|
|
9738
9715
|
if (!code)
|
|
@@ -9743,7 +9720,7 @@ var HighlightPipe = class HighlightPipe2 {
|
|
|
9743
9720
|
minVersion: "12.0.0",
|
|
9744
9721
|
version: "22.2.0",
|
|
9745
9722
|
ngImport: i0,
|
|
9746
|
-
type:
|
|
9723
|
+
type: HighlightPipe,
|
|
9747
9724
|
deps: [],
|
|
9748
9725
|
target: i0.ɵɵFactoryTarget.Pipe
|
|
9749
9726
|
});
|
|
@@ -9751,7 +9728,7 @@ var HighlightPipe = class HighlightPipe2 {
|
|
|
9751
9728
|
minVersion: "14.0.0",
|
|
9752
9729
|
version: "22.2.0",
|
|
9753
9730
|
ngImport: i0,
|
|
9754
|
-
type:
|
|
9731
|
+
type: HighlightPipe,
|
|
9755
9732
|
isStandalone: true,
|
|
9756
9733
|
name: "highlight"
|
|
9757
9734
|
});
|
|
@@ -9766,21 +9743,21 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
9766
9743
|
args: [{ name: "highlight" }]
|
|
9767
9744
|
}]
|
|
9768
9745
|
});
|
|
9769
|
-
var MessageToolCallOutcomeComponent = class
|
|
9746
|
+
var MessageToolCallOutcomeComponent = class MessageToolCallOutcomeComponent {
|
|
9770
9747
|
toolCallPart = input.required(...ngDevMode ? [{ debugName: "toolCallPart" }] : []);
|
|
9771
9748
|
outcome = computed(() => toolCallOutcome(this.toolCallPart()), ...ngDevMode ? [{ debugName: "outcome" }] : []);
|
|
9772
9749
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
9773
9750
|
minVersion: "12.0.0",
|
|
9774
9751
|
version: "22.2.0",
|
|
9775
9752
|
ngImport: i0,
|
|
9776
|
-
type:
|
|
9753
|
+
type: MessageToolCallOutcomeComponent,
|
|
9777
9754
|
deps: [],
|
|
9778
9755
|
target: i0.ɵɵFactoryTarget.Component
|
|
9779
9756
|
});
|
|
9780
9757
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
9781
9758
|
minVersion: "17.0.0",
|
|
9782
9759
|
version: "22.2.0",
|
|
9783
|
-
type:
|
|
9760
|
+
type: MessageToolCallOutcomeComponent,
|
|
9784
9761
|
isStandalone: true,
|
|
9785
9762
|
selector: "cortex-message-tool-call-outcome",
|
|
9786
9763
|
inputs: { toolCallPart: {
|
|
@@ -9919,21 +9896,21 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
9919
9896
|
}]
|
|
9920
9897
|
}] }
|
|
9921
9898
|
});
|
|
9922
|
-
var MessageToolCallStatusComponent = class
|
|
9899
|
+
var MessageToolCallStatusComponent = class MessageToolCallStatusComponent {
|
|
9923
9900
|
toolCallPart = input.required(...ngDevMode ? [{ debugName: "toolCallPart" }] : []);
|
|
9924
9901
|
badge = computed(() => toolCallBadge(this.toolCallPart()), ...ngDevMode ? [{ debugName: "badge" }] : []);
|
|
9925
9902
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
9926
9903
|
minVersion: "12.0.0",
|
|
9927
9904
|
version: "22.2.0",
|
|
9928
9905
|
ngImport: i0,
|
|
9929
|
-
type:
|
|
9906
|
+
type: MessageToolCallStatusComponent,
|
|
9930
9907
|
deps: [],
|
|
9931
9908
|
target: i0.ɵɵFactoryTarget.Component
|
|
9932
9909
|
});
|
|
9933
9910
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
9934
9911
|
minVersion: "17.0.0",
|
|
9935
9912
|
version: "22.2.0",
|
|
9936
|
-
type:
|
|
9913
|
+
type: MessageToolCallStatusComponent,
|
|
9937
9914
|
isStandalone: true,
|
|
9938
9915
|
selector: "cortex-message-tool-call-status",
|
|
9939
9916
|
inputs: { toolCallPart: {
|
|
@@ -10006,7 +9983,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
10006
9983
|
}]
|
|
10007
9984
|
}] }
|
|
10008
9985
|
});
|
|
10009
|
-
var MessageToolCallPartComponent = class
|
|
9986
|
+
var MessageToolCallPartComponent = class MessageToolCallPartComponent {
|
|
10010
9987
|
toolCallPart = input.required(...ngDevMode ? [{ debugName: "toolCallPart" }] : []);
|
|
10011
9988
|
icons = ICON_PATHS;
|
|
10012
9989
|
splitInput = computed(() => splitToolCallInput(this.toolCallPart().input), ...ngDevMode ? [{ debugName: "splitInput" }] : []);
|
|
@@ -10017,14 +9994,14 @@ var MessageToolCallPartComponent = class MessageToolCallPartComponent2 {
|
|
|
10017
9994
|
minVersion: "12.0.0",
|
|
10018
9995
|
version: "22.2.0",
|
|
10019
9996
|
ngImport: i0,
|
|
10020
|
-
type:
|
|
9997
|
+
type: MessageToolCallPartComponent,
|
|
10021
9998
|
deps: [],
|
|
10022
9999
|
target: i0.ɵɵFactoryTarget.Component
|
|
10023
10000
|
});
|
|
10024
10001
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
10025
10002
|
minVersion: "17.0.0",
|
|
10026
10003
|
version: "22.2.0",
|
|
10027
|
-
type:
|
|
10004
|
+
type: MessageToolCallPartComponent,
|
|
10028
10005
|
isStandalone: true,
|
|
10029
10006
|
selector: "cortex-message-tool-call-part",
|
|
10030
10007
|
inputs: { toolCallPart: {
|
|
@@ -10241,7 +10218,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
10241
10218
|
}]
|
|
10242
10219
|
}] }
|
|
10243
10220
|
});
|
|
10244
|
-
var SubtleActivityComponent = class
|
|
10221
|
+
var SubtleActivityComponent = class SubtleActivityComponent {
|
|
10245
10222
|
activity = input.required(...ngDevMode ? [{ debugName: "activity" }] : []);
|
|
10246
10223
|
labels = computed(() => activityLabelKeys(this.activity()), ...ngDevMode ? [{ debugName: "labels" }] : []);
|
|
10247
10224
|
cycle = signal({
|
|
@@ -10259,14 +10236,14 @@ var SubtleActivityComponent = class SubtleActivityComponent2 {
|
|
|
10259
10236
|
minVersion: "12.0.0",
|
|
10260
10237
|
version: "22.2.0",
|
|
10261
10238
|
ngImport: i0,
|
|
10262
|
-
type:
|
|
10239
|
+
type: SubtleActivityComponent,
|
|
10263
10240
|
deps: [],
|
|
10264
10241
|
target: i0.ɵɵFactoryTarget.Component
|
|
10265
10242
|
});
|
|
10266
10243
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
10267
10244
|
minVersion: "17.1.0",
|
|
10268
10245
|
version: "22.2.0",
|
|
10269
|
-
type:
|
|
10246
|
+
type: SubtleActivityComponent,
|
|
10270
10247
|
isStandalone: true,
|
|
10271
10248
|
selector: "cortex-subtle-activity",
|
|
10272
10249
|
inputs: { activity: {
|
|
@@ -10337,7 +10314,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
10337
10314
|
}] }
|
|
10338
10315
|
});
|
|
10339
10316
|
var BUILT_IN_TOOL_COMPONENTS = { [REQUEST_LOCATION_TOOL]: LocationInputComponent };
|
|
10340
|
-
var MessageToolCallAnimatedComponent = class
|
|
10317
|
+
var MessageToolCallAnimatedComponent = class MessageToolCallAnimatedComponent {
|
|
10341
10318
|
message = input.required(...ngDevMode ? [{ debugName: "message" }] : []);
|
|
10342
10319
|
toolCallPart = input.required(...ngDevMode ? [{ debugName: "toolCallPart" }] : []);
|
|
10343
10320
|
config = inject(CORTEX_CONFIG);
|
|
@@ -10355,7 +10332,7 @@ var MessageToolCallAnimatedComponent = class MessageToolCallAnimatedComponent2 {
|
|
|
10355
10332
|
mountedComponent = computed(() => {
|
|
10356
10333
|
const surface = this.surface();
|
|
10357
10334
|
const part = this.toolCallPart();
|
|
10358
|
-
const setOutput = (
|
|
10335
|
+
const setOutput = (output) => this.chatService.widget.addToolResult(part.id, part.name, output);
|
|
10359
10336
|
if (surface.kind === "consumer") {
|
|
10360
10337
|
const inputs = {
|
|
10361
10338
|
toolCallPart: part,
|
|
@@ -10390,14 +10367,14 @@ var MessageToolCallAnimatedComponent = class MessageToolCallAnimatedComponent2 {
|
|
|
10390
10367
|
minVersion: "12.0.0",
|
|
10391
10368
|
version: "22.2.0",
|
|
10392
10369
|
ngImport: i0,
|
|
10393
|
-
type:
|
|
10370
|
+
type: MessageToolCallAnimatedComponent,
|
|
10394
10371
|
deps: [],
|
|
10395
10372
|
target: i0.ɵɵFactoryTarget.Component
|
|
10396
10373
|
});
|
|
10397
10374
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
10398
10375
|
minVersion: "17.0.0",
|
|
10399
10376
|
version: "22.2.0",
|
|
10400
|
-
type:
|
|
10377
|
+
type: MessageToolCallAnimatedComponent,
|
|
10401
10378
|
isStandalone: true,
|
|
10402
10379
|
selector: "cortex-message-tool-call-animated",
|
|
10403
10380
|
inputs: {
|
|
@@ -10594,7 +10571,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
10594
10571
|
}]
|
|
10595
10572
|
}
|
|
10596
10573
|
});
|
|
10597
|
-
var MessagePartComponent = class
|
|
10574
|
+
var MessagePartComponent = class MessagePartComponent {
|
|
10598
10575
|
message = input.required(...ngDevMode ? [{ debugName: "message" }] : []);
|
|
10599
10576
|
part = input.required(...ngDevMode ? [{ debugName: "part" }] : []);
|
|
10600
10577
|
animate = input(false, ...ngDevMode ? [{ debugName: "animate" }] : []);
|
|
@@ -10607,14 +10584,14 @@ var MessagePartComponent = class MessagePartComponent2 {
|
|
|
10607
10584
|
minVersion: "12.0.0",
|
|
10608
10585
|
version: "22.2.0",
|
|
10609
10586
|
ngImport: i0,
|
|
10610
|
-
type:
|
|
10587
|
+
type: MessagePartComponent,
|
|
10611
10588
|
deps: [],
|
|
10612
10589
|
target: i0.ɵɵFactoryTarget.Component
|
|
10613
10590
|
});
|
|
10614
10591
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
10615
10592
|
minVersion: "17.0.0",
|
|
10616
10593
|
version: "22.2.0",
|
|
10617
|
-
type:
|
|
10594
|
+
type: MessagePartComponent,
|
|
10618
10595
|
isStandalone: true,
|
|
10619
10596
|
selector: "cortex-message-part",
|
|
10620
10597
|
inputs: {
|
|
@@ -10860,7 +10837,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
10860
10837
|
}]
|
|
10861
10838
|
}
|
|
10862
10839
|
});
|
|
10863
|
-
var MessageTokenUsageComponent = class
|
|
10840
|
+
var MessageTokenUsageComponent = class MessageTokenUsageComponent {
|
|
10864
10841
|
usage = input.required(...ngDevMode ? [{ debugName: "usage" }] : []);
|
|
10865
10842
|
modelId = input(...ngDevMode ? [undefined, { debugName: "modelId" }] : []);
|
|
10866
10843
|
icons = ICON_PATHS;
|
|
@@ -10874,14 +10851,14 @@ var MessageTokenUsageComponent = class MessageTokenUsageComponent2 {
|
|
|
10874
10851
|
minVersion: "12.0.0",
|
|
10875
10852
|
version: "22.2.0",
|
|
10876
10853
|
ngImport: i0,
|
|
10877
|
-
type:
|
|
10854
|
+
type: MessageTokenUsageComponent,
|
|
10878
10855
|
deps: [],
|
|
10879
10856
|
target: i0.ɵɵFactoryTarget.Component
|
|
10880
10857
|
});
|
|
10881
10858
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
10882
10859
|
minVersion: "17.0.0",
|
|
10883
10860
|
version: "22.2.0",
|
|
10884
|
-
type:
|
|
10861
|
+
type: MessageTokenUsageComponent,
|
|
10885
10862
|
isStandalone: true,
|
|
10886
10863
|
selector: "cortex-message-token-usage",
|
|
10887
10864
|
inputs: {
|
|
@@ -11179,7 +11156,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
11179
11156
|
}]
|
|
11180
11157
|
}
|
|
11181
11158
|
});
|
|
11182
|
-
var MessageBodyComponent = class
|
|
11159
|
+
var MessageBodyComponent = class MessageBodyComponent {
|
|
11183
11160
|
message = input.required(...ngDevMode ? [{ debugName: "message" }] : []);
|
|
11184
11161
|
layout = input.required(...ngDevMode ? [{ debugName: "layout" }] : []);
|
|
11185
11162
|
animate = input.required(...ngDevMode ? [{ debugName: "animate" }] : []);
|
|
@@ -11220,14 +11197,14 @@ var MessageBodyComponent = class MessageBodyComponent2 {
|
|
|
11220
11197
|
minVersion: "12.0.0",
|
|
11221
11198
|
version: "22.2.0",
|
|
11222
11199
|
ngImport: i0,
|
|
11223
|
-
type:
|
|
11200
|
+
type: MessageBodyComponent,
|
|
11224
11201
|
deps: [],
|
|
11225
11202
|
target: i0.ɵɵFactoryTarget.Component
|
|
11226
11203
|
});
|
|
11227
11204
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
11228
11205
|
minVersion: "17.0.0",
|
|
11229
11206
|
version: "22.2.0",
|
|
11230
|
-
type:
|
|
11207
|
+
type: MessageBodyComponent,
|
|
11231
11208
|
isStandalone: true,
|
|
11232
11209
|
selector: "cortex-message-body",
|
|
11233
11210
|
inputs: {
|
|
@@ -11524,7 +11501,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
11524
11501
|
}]
|
|
11525
11502
|
}
|
|
11526
11503
|
});
|
|
11527
|
-
var TriggerBlockComponent = class
|
|
11504
|
+
var TriggerBlockComponent = class TriggerBlockComponent {
|
|
11528
11505
|
firing = input.required(...ngDevMode ? [{ debugName: "firing" }] : []);
|
|
11529
11506
|
debugMode = inject(CortexChatService).debugMode;
|
|
11530
11507
|
icons = ICON_PATHS;
|
|
@@ -11534,14 +11511,14 @@ var TriggerBlockComponent = class TriggerBlockComponent2 {
|
|
|
11534
11511
|
minVersion: "12.0.0",
|
|
11535
11512
|
version: "22.2.0",
|
|
11536
11513
|
ngImport: i0,
|
|
11537
|
-
type:
|
|
11514
|
+
type: TriggerBlockComponent,
|
|
11538
11515
|
deps: [],
|
|
11539
11516
|
target: i0.ɵɵFactoryTarget.Component
|
|
11540
11517
|
});
|
|
11541
11518
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
11542
11519
|
minVersion: "17.0.0",
|
|
11543
11520
|
version: "22.2.0",
|
|
11544
|
-
type:
|
|
11521
|
+
type: TriggerBlockComponent,
|
|
11545
11522
|
isStandalone: true,
|
|
11546
11523
|
selector: "cortex-trigger-block",
|
|
11547
11524
|
inputs: { firing: {
|
|
@@ -11635,7 +11612,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
11635
11612
|
}]
|
|
11636
11613
|
}] }
|
|
11637
11614
|
});
|
|
11638
|
-
var MessageComponent = class
|
|
11615
|
+
var MessageComponent = class MessageComponent {
|
|
11639
11616
|
message = input.required(...ngDevMode ? [{ debugName: "message" }] : []);
|
|
11640
11617
|
isStreaming = input(false, ...ngDevMode ? [{ debugName: "isStreaming" }] : []);
|
|
11641
11618
|
closesTurn = input(false, ...ngDevMode ? [{ debugName: "closesTurn" }] : []);
|
|
@@ -11655,14 +11632,14 @@ var MessageComponent = class MessageComponent2 {
|
|
|
11655
11632
|
minVersion: "12.0.0",
|
|
11656
11633
|
version: "22.2.0",
|
|
11657
11634
|
ngImport: i0,
|
|
11658
|
-
type:
|
|
11635
|
+
type: MessageComponent,
|
|
11659
11636
|
deps: [],
|
|
11660
11637
|
target: i0.ɵɵFactoryTarget.Component
|
|
11661
11638
|
});
|
|
11662
11639
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
11663
11640
|
minVersion: "17.0.0",
|
|
11664
11641
|
version: "22.2.0",
|
|
11665
|
-
type:
|
|
11642
|
+
type: MessageComponent,
|
|
11666
11643
|
isStandalone: true,
|
|
11667
11644
|
selector: "cortex-message",
|
|
11668
11645
|
inputs: {
|
|
@@ -11853,7 +11830,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
11853
11830
|
}]
|
|
11854
11831
|
}
|
|
11855
11832
|
});
|
|
11856
|
-
var MessageListComponent = class
|
|
11833
|
+
var MessageListComponent = class MessageListComponent {
|
|
11857
11834
|
icons = ICON_PATHS;
|
|
11858
11835
|
messagesContainer = viewChild("messagesContainer", ...ngDevMode ? [{ debugName: "messagesContainer" }] : []);
|
|
11859
11836
|
messagesContent = viewChild("messagesContent", ...ngDevMode ? [{ debugName: "messagesContent" }] : []);
|
|
@@ -11919,14 +11896,14 @@ var MessageListComponent = class MessageListComponent2 {
|
|
|
11919
11896
|
minVersion: "12.0.0",
|
|
11920
11897
|
version: "22.2.0",
|
|
11921
11898
|
ngImport: i0,
|
|
11922
|
-
type:
|
|
11899
|
+
type: MessageListComponent,
|
|
11923
11900
|
deps: [],
|
|
11924
11901
|
target: i0.ɵɵFactoryTarget.Component
|
|
11925
11902
|
});
|
|
11926
11903
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
11927
11904
|
minVersion: "17.0.0",
|
|
11928
11905
|
version: "22.2.0",
|
|
11929
|
-
type:
|
|
11906
|
+
type: MessageListComponent,
|
|
11930
11907
|
isStandalone: true,
|
|
11931
11908
|
selector: "cortex-message-list",
|
|
11932
11909
|
viewQueries: [
|
|
@@ -12112,7 +12089,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
12112
12089
|
}]
|
|
12113
12090
|
}
|
|
12114
12091
|
});
|
|
12115
|
-
var MessagesSkeletonComponent = class
|
|
12092
|
+
var MessagesSkeletonComponent = class MessagesSkeletonComponent {
|
|
12116
12093
|
bubbles = [
|
|
12117
12094
|
{
|
|
12118
12095
|
role: "user",
|
|
@@ -12139,14 +12116,14 @@ var MessagesSkeletonComponent = class MessagesSkeletonComponent2 {
|
|
|
12139
12116
|
minVersion: "12.0.0",
|
|
12140
12117
|
version: "22.2.0",
|
|
12141
12118
|
ngImport: i0,
|
|
12142
|
-
type:
|
|
12119
|
+
type: MessagesSkeletonComponent,
|
|
12143
12120
|
deps: [],
|
|
12144
12121
|
target: i0.ɵɵFactoryTarget.Component
|
|
12145
12122
|
});
|
|
12146
12123
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
12147
12124
|
minVersion: "17.0.0",
|
|
12148
12125
|
version: "22.2.0",
|
|
12149
|
-
type:
|
|
12126
|
+
type: MessagesSkeletonComponent,
|
|
12150
12127
|
isStandalone: true,
|
|
12151
12128
|
selector: "cortex-messages-skeleton",
|
|
12152
12129
|
host: { classAttribute: "cortex-widget__messages-skeleton" },
|
|
@@ -12190,7 +12167,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
12190
12167
|
}]
|
|
12191
12168
|
}]
|
|
12192
12169
|
});
|
|
12193
|
-
var ThreadListComponent = class
|
|
12170
|
+
var ThreadListComponent = class ThreadListComponent {
|
|
12194
12171
|
context = input.required(...ngDevMode ? [{ debugName: "context" }] : []);
|
|
12195
12172
|
icons = ICON_PATHS;
|
|
12196
12173
|
locale = inject(CORTEX_LOCALE);
|
|
@@ -12201,14 +12178,14 @@ var ThreadListComponent = class ThreadListComponent2 {
|
|
|
12201
12178
|
minVersion: "12.0.0",
|
|
12202
12179
|
version: "22.2.0",
|
|
12203
12180
|
ngImport: i0,
|
|
12204
|
-
type:
|
|
12181
|
+
type: ThreadListComponent,
|
|
12205
12182
|
deps: [],
|
|
12206
12183
|
target: i0.ɵɵFactoryTarget.Component
|
|
12207
12184
|
});
|
|
12208
12185
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
12209
12186
|
minVersion: "17.0.0",
|
|
12210
12187
|
version: "22.2.0",
|
|
12211
|
-
type:
|
|
12188
|
+
type: ThreadListComponent,
|
|
12212
12189
|
isStandalone: true,
|
|
12213
12190
|
selector: "cortex-thread-list",
|
|
12214
12191
|
inputs: { context: {
|
|
@@ -12529,7 +12506,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
12529
12506
|
}]
|
|
12530
12507
|
}] }
|
|
12531
12508
|
});
|
|
12532
|
-
var CortexSlotDirective = class
|
|
12509
|
+
var CortexSlotDirective = class CortexSlotDirective {
|
|
12533
12510
|
slot = input.required({
|
|
12534
12511
|
...ngDevMode ? { debugName: "slot" } : {},
|
|
12535
12512
|
alias: "cortexSlot"
|
|
@@ -12545,14 +12522,14 @@ var CortexSlotDirective = class CortexSlotDirective2 {
|
|
|
12545
12522
|
minVersion: "12.0.0",
|
|
12546
12523
|
version: "22.2.0",
|
|
12547
12524
|
ngImport: i0,
|
|
12548
|
-
type:
|
|
12525
|
+
type: CortexSlotDirective,
|
|
12549
12526
|
deps: [],
|
|
12550
12527
|
target: i0.ɵɵFactoryTarget.Directive
|
|
12551
12528
|
});
|
|
12552
12529
|
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
12553
12530
|
minVersion: "17.1.0",
|
|
12554
12531
|
version: "22.2.0",
|
|
12555
|
-
type:
|
|
12532
|
+
type: CortexSlotDirective,
|
|
12556
12533
|
isStandalone: true,
|
|
12557
12534
|
selector: "ng-template[cortexSlot]",
|
|
12558
12535
|
inputs: { slot: {
|
|
@@ -12583,7 +12560,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
12583
12560
|
}]
|
|
12584
12561
|
}] }
|
|
12585
12562
|
});
|
|
12586
|
-
var CortexChatWidgetComponent = class
|
|
12563
|
+
var CortexChatWidgetComponent = class CortexChatWidgetComponent {
|
|
12587
12564
|
config = input.required(...ngDevMode ? [{ debugName: "config" }] : []);
|
|
12588
12565
|
direction = computed(() => LOCALE_DIRECTIONS[resolveLocale(this.config().locale)], ...ngDevMode ? [{ debugName: "direction" }] : []);
|
|
12589
12566
|
landingComposer = viewChild.required("landingComposer", ...ngDevMode ? [{ debugName: "landingComposer" }] : []);
|
|
@@ -12610,14 +12587,14 @@ var CortexChatWidgetComponent = class CortexChatWidgetComponent2 {
|
|
|
12610
12587
|
minVersion: "12.0.0",
|
|
12611
12588
|
version: "22.2.0",
|
|
12612
12589
|
ngImport: i0,
|
|
12613
|
-
type:
|
|
12590
|
+
type: CortexChatWidgetComponent,
|
|
12614
12591
|
deps: [],
|
|
12615
12592
|
target: i0.ɵɵFactoryTarget.Component
|
|
12616
12593
|
});
|
|
12617
12594
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
12618
12595
|
minVersion: "17.0.0",
|
|
12619
12596
|
version: "22.2.0",
|
|
12620
|
-
type:
|
|
12597
|
+
type: CortexChatWidgetComponent,
|
|
12621
12598
|
isStandalone: true,
|
|
12622
12599
|
selector: "cortex-chat-widget",
|
|
12623
12600
|
inputs: { config: {
|
|
@@ -12637,7 +12614,7 @@ var CortexChatWidgetComponent = class CortexChatWidgetComponent2 {
|
|
|
12637
12614
|
providers: [
|
|
12638
12615
|
{
|
|
12639
12616
|
provide: CORTEX_CONFIG,
|
|
12640
|
-
useFactory: () => inject(
|
|
12617
|
+
useFactory: () => inject(CortexChatWidgetComponent).config
|
|
12641
12618
|
},
|
|
12642
12619
|
...CORTEX_CONFIG_PROVIDERS,
|
|
12643
12620
|
CortexChatService
|
|
@@ -12984,6 +12961,6 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
12984
12961
|
}
|
|
12985
12962
|
});
|
|
12986
12963
|
export {
|
|
12987
|
-
|
|
12988
|
-
|
|
12964
|
+
CortexChatWidgetComponent,
|
|
12965
|
+
CortexSlotDirective
|
|
12989
12966
|
};
|