@progress/kendo-vue-conversational-ui 4.3.0-dev.202401291303

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (75) hide show
  1. package/LICENSE.md +11 -0
  2. package/NOTICE.txt +86 -0
  3. package/README.md +53 -0
  4. package/dist/cdn/js/kendo-vue-conversational-ui.js +1 -0
  5. package/dist/es/additionalTypes.ts +21 -0
  6. package/dist/es/ai-prompt/AIPrompt.d.ts +117 -0
  7. package/dist/es/ai-prompt/AIPrompt.js +117 -0
  8. package/dist/es/ai-prompt/AIPromptContent.d.ts +47 -0
  9. package/dist/es/ai-prompt/AIPromptContent.js +33 -0
  10. package/dist/es/ai-prompt/AIPromptExpander.d.ts +45 -0
  11. package/dist/es/ai-prompt/AIPromptExpander.js +66 -0
  12. package/dist/es/ai-prompt/AIPromptFooter.d.ts +44 -0
  13. package/dist/es/ai-prompt/AIPromptFooter.js +33 -0
  14. package/dist/es/ai-prompt/AIPromptHeader.d.ts +71 -0
  15. package/dist/es/ai-prompt/AIPromptHeader.js +141 -0
  16. package/dist/es/ai-prompt/views/AIPromptCommandsView.d.ts +87 -0
  17. package/dist/es/ai-prompt/views/AIPromptCommandsView.js +116 -0
  18. package/dist/es/ai-prompt/views/AIPromptOutputView.d.ts +77 -0
  19. package/dist/es/ai-prompt/views/AIPromptOutputView.js +2048 -0
  20. package/dist/es/ai-prompt/views/AIPromptView.d.ts +56 -0
  21. package/dist/es/ai-prompt/views/AIPromptView.js +297 -0
  22. package/dist/es/ai-prompt/views/AIPromptViewRender.d.ts +51 -0
  23. package/dist/es/ai-prompt/views/AIPromptViewRender.js +39 -0
  24. package/dist/es/main.d.ts +8 -0
  25. package/dist/es/main.js +8 -0
  26. package/dist/es/messages/main.d.ts +20 -0
  27. package/dist/es/messages/main.js +21 -0
  28. package/dist/esm/additionalTypes.ts +21 -0
  29. package/dist/esm/ai-prompt/AIPrompt.d.ts +117 -0
  30. package/dist/esm/ai-prompt/AIPrompt.js +117 -0
  31. package/dist/esm/ai-prompt/AIPromptContent.d.ts +47 -0
  32. package/dist/esm/ai-prompt/AIPromptContent.js +33 -0
  33. package/dist/esm/ai-prompt/AIPromptExpander.d.ts +45 -0
  34. package/dist/esm/ai-prompt/AIPromptExpander.js +66 -0
  35. package/dist/esm/ai-prompt/AIPromptFooter.d.ts +44 -0
  36. package/dist/esm/ai-prompt/AIPromptFooter.js +33 -0
  37. package/dist/esm/ai-prompt/AIPromptHeader.d.ts +71 -0
  38. package/dist/esm/ai-prompt/AIPromptHeader.js +141 -0
  39. package/dist/esm/ai-prompt/views/AIPromptCommandsView.d.ts +87 -0
  40. package/dist/esm/ai-prompt/views/AIPromptCommandsView.js +116 -0
  41. package/dist/esm/ai-prompt/views/AIPromptOutputView.d.ts +77 -0
  42. package/dist/esm/ai-prompt/views/AIPromptOutputView.js +2048 -0
  43. package/dist/esm/ai-prompt/views/AIPromptView.d.ts +56 -0
  44. package/dist/esm/ai-prompt/views/AIPromptView.js +297 -0
  45. package/dist/esm/ai-prompt/views/AIPromptViewRender.d.ts +51 -0
  46. package/dist/esm/ai-prompt/views/AIPromptViewRender.js +39 -0
  47. package/dist/esm/main.d.ts +8 -0
  48. package/dist/esm/main.js +8 -0
  49. package/dist/esm/messages/main.d.ts +20 -0
  50. package/dist/esm/messages/main.js +21 -0
  51. package/dist/esm/package.json +3 -0
  52. package/dist/npm/additionalTypes.ts +21 -0
  53. package/dist/npm/ai-prompt/AIPrompt.d.ts +117 -0
  54. package/dist/npm/ai-prompt/AIPrompt.js +124 -0
  55. package/dist/npm/ai-prompt/AIPromptContent.d.ts +47 -0
  56. package/dist/npm/ai-prompt/AIPromptContent.js +40 -0
  57. package/dist/npm/ai-prompt/AIPromptExpander.d.ts +45 -0
  58. package/dist/npm/ai-prompt/AIPromptExpander.js +73 -0
  59. package/dist/npm/ai-prompt/AIPromptFooter.d.ts +44 -0
  60. package/dist/npm/ai-prompt/AIPromptFooter.js +40 -0
  61. package/dist/npm/ai-prompt/AIPromptHeader.d.ts +71 -0
  62. package/dist/npm/ai-prompt/AIPromptHeader.js +148 -0
  63. package/dist/npm/ai-prompt/views/AIPromptCommandsView.d.ts +87 -0
  64. package/dist/npm/ai-prompt/views/AIPromptCommandsView.js +123 -0
  65. package/dist/npm/ai-prompt/views/AIPromptOutputView.d.ts +77 -0
  66. package/dist/npm/ai-prompt/views/AIPromptOutputView.js +2055 -0
  67. package/dist/npm/ai-prompt/views/AIPromptView.d.ts +56 -0
  68. package/dist/npm/ai-prompt/views/AIPromptView.js +304 -0
  69. package/dist/npm/ai-prompt/views/AIPromptViewRender.d.ts +51 -0
  70. package/dist/npm/ai-prompt/views/AIPromptViewRender.js +46 -0
  71. package/dist/npm/main.d.ts +8 -0
  72. package/dist/npm/main.js +24 -0
  73. package/dist/npm/messages/main.d.ts +20 -0
  74. package/dist/npm/messages/main.js +24 -0
  75. package/package.json +70 -0
@@ -0,0 +1,2055 @@
1
+ "use strict";
2
+
3
+ var __assign = undefined && undefined.__assign || function () {
4
+ __assign = Object.assign || function (t) {
5
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
6
+ s = arguments[i];
7
+ for (var p in s) {
8
+ if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
9
+ }
10
+ }
11
+ return t;
12
+ };
13
+ return __assign.apply(this, arguments);
14
+ };
15
+ Object.defineProperty(exports, "__esModule", {
16
+ value: true
17
+ });
18
+ exports.AIPromptOutputViewVue2 = exports.AIPromptOutputView = exports.outputViewDefaults = void 0;
19
+ // @ts-ignore
20
+ var Vue = require("vue");
21
+ var allVue = Vue;
22
+ var gh = allVue.h;
23
+ var isV3 = allVue.version && allVue.version[0] === '3';
24
+ var AIPromptContent_1 = require("../AIPromptContent");
25
+ var main_1 = require("../../messages/main");
26
+ var AIPromptViewRender_1 = require("./AIPromptViewRender");
27
+ var kendo_vue_layout_1 = require("@progress/kendo-vue-layout");
28
+ var kendo_svg_icons_1 = require("@progress/kendo-svg-icons");
29
+ var kendo_vue_buttons_1 = require("@progress/kendo-vue-buttons");
30
+ var kendo_vue_intl_1 = require("@progress/kendo-vue-intl");
31
+ var kendo_vue_common_1 = require("@progress/kendo-vue-common");
32
+ /**
33
+ * Specifies the default values for Output view Toolbar.
34
+ */
35
+ exports.outputViewDefaults = {
36
+ name: 'output-view',
37
+ buttonText: 'Output',
38
+ buttonIcon: kendo_svg_icons_1.commentIcon
39
+ };
40
+ /**
41
+ * @hidden
42
+ */
43
+ var AIPromptOutputViewVue2 = {
44
+ name: 'KendoAIPromptOutputView',
45
+ props: {
46
+ outputs: Array,
47
+ outputCard: [String, Function, Object],
48
+ showOutputRating: Boolean
49
+ },
50
+ // @ts-ignore
51
+ setup: !isV3 ? undefined : function () {
52
+ var v3 = !!isV3;
53
+ return {
54
+ v3: v3
55
+ };
56
+ },
57
+ inject: {
58
+ kendoAIPrompt: {
59
+ default: null
60
+ },
61
+ kendoLocalizationService: {
62
+ default: null
63
+ }
64
+ },
65
+ data: function data() {
66
+ return {
67
+ copyButtonIcon: kendo_svg_icons_1.copyIcon
68
+ };
69
+ },
70
+ methods: {
71
+ retryPrompt: function retryPrompt(output) {
72
+ if (this.kendoAIPrompt.onPromptRequest) {
73
+ this.kendoAIPrompt.onPromptRequest.call(null, output.prompt, __assign(__assign({}, output), {
74
+ isRetry: true
75
+ }));
76
+ }
77
+ },
78
+ copyToClipboard: function copyToClipboard(output) {
79
+ var _this = this;
80
+ // Maybe we need to provide handler to the client for this
81
+ if (output === null || output === void 0 ? void 0 : output.responseContent) {
82
+ navigator.clipboard.writeText(output.responseContent);
83
+ }
84
+ this.copyButtonIcon = kendo_svg_icons_1.checkIcon;
85
+ setTimeout(function () {
86
+ _this.copyButtonIcon = kendo_svg_icons_1.copyIcon;
87
+ }, 1000);
88
+ },
89
+ outputRating: function outputRating(output, ratingType) {
90
+ if (this.kendoAIPrompt.onPromptRequest) {
91
+ this.kendoAIPrompt.onPromptRequest.call(null, output.prompt, __assign(__assign({}, output), {
92
+ ratingType: ratingType,
93
+ isRetry: false
94
+ }));
95
+ }
96
+ }
97
+ },
98
+ render: function render(createElement) {
99
+ var _this3 = this;
100
+ var h = gh || createElement;
101
+ var _a = this.$props,
102
+ outputs = _a.outputs,
103
+ showOutputRating = _a.showOutputRating,
104
+ outputCard = _a.outputCard;
105
+ var ls = (0, kendo_vue_intl_1.provideLocalizationService)(this);
106
+ var card = kendo_vue_common_1.templateRendering.call(this, outputCard, kendo_vue_common_1.getListeners.call(this));
107
+ return (
108
+ // @ts-ignore function children
109
+ h(AIPromptViewRender_1.AIPromptViewRender, {
110
+ name: exports.outputViewDefaults.name,
111
+ attrs: this.v3 ? undefined : {
112
+ name: exports.outputViewDefaults.name
113
+ }
114
+ }, this.v3 ? function () {
115
+ return [
116
+ // @ts-ignore function children
117
+ h(AIPromptContent_1.AIPromptContent, _this3.v3 ? function () {
118
+ return [h("div", {
119
+ "class": "k-card-list"
120
+ }, [outputs && outputs.length > 0 ? outputs.map(function (output) {
121
+ var _this2 = this;
122
+ var _this = this;
123
+ var outputCardRendering = kendo_vue_common_1.getTemplate.call(this, {
124
+ h: h,
125
+ template: card,
126
+ defaultRendering: null,
127
+ additionalProps: {
128
+ output: output
129
+ }
130
+ });
131
+ return outputCard ? outputCardRendering :
132
+ // @ts-ignore function children
133
+ h(kendo_vue_layout_1.Card, {
134
+ key: output.id
135
+ }, this.v3 ? function () {
136
+ return [
137
+ // @ts-ignore function children
138
+ h(kendo_vue_layout_1.CardHeader, _this2.v3 ? function () {
139
+ return [output.title &&
140
+ // @ts-ignore function children
141
+ h(kendo_vue_layout_1.CardTitle, _this2.v3 ? function () {
142
+ return [output.title];
143
+ } : [output.title]), output.subTitle &&
144
+ // @ts-ignore function children
145
+ h(kendo_vue_layout_1.CardSubtitle, _this2.v3 ? function () {
146
+ return [output.subTitle];
147
+ } : [output.subTitle])];
148
+ } : [output.title && h(kendo_vue_layout_1.CardTitle, _this2.v3 ? function () {
149
+ return [output.title];
150
+ } : [output.title]), output.subTitle && h(kendo_vue_layout_1.CardSubtitle, _this2.v3 ? function () {
151
+ return [output.subTitle];
152
+ } : [output.subTitle])]),
153
+ // @ts-ignore function children
154
+ h(kendo_vue_layout_1.CardBody, _this2.v3 ? function () {
155
+ return [output.responseContent];
156
+ } : [output.responseContent]),
157
+ // @ts-ignore function children
158
+ h(kendo_vue_layout_1.CardActions, _this2.v3 ? function () {
159
+ return [
160
+ // @ts-ignore function children
161
+ h(kendo_vue_buttons_1.Button, {
162
+ size: 'medium',
163
+ attrs: _this2.v3 ? undefined : {
164
+ size: 'medium',
165
+ themeColor: 'primary',
166
+ fillMode: 'flat',
167
+ rounded: 'medium',
168
+ title: 'Copy',
169
+ svgIcon: _this2.copyButtonIcon,
170
+ "aria-hidden": "true"
171
+ },
172
+ themeColor: 'primary',
173
+ fillMode: 'flat',
174
+ rounded: 'medium',
175
+ title: 'Copy',
176
+ svgIcon: _this2.copyButtonIcon,
177
+ "aria-hidden": "true",
178
+ onClick: function onClick() {
179
+ return _this.copyToClipboard(output);
180
+ },
181
+ on: _this2.v3 ? undefined : {
182
+ "click": function onClick() {
183
+ return _this.copyToClipboard(output);
184
+ }
185
+ }
186
+ }, _this2.v3 ? function () {
187
+ return ['Copy'];
188
+ } : ['Copy']),
189
+ // @ts-ignore function children
190
+ h(kendo_vue_buttons_1.Button, {
191
+ size: 'medium',
192
+ attrs: _this2.v3 ? undefined : {
193
+ size: 'medium',
194
+ themeColor: 'base',
195
+ fillMode: 'flat',
196
+ rounded: 'medium',
197
+ title: 'Retry',
198
+ svgIcon: kendo_svg_icons_1.rotateIcon,
199
+ "aria-hidden": "true"
200
+ },
201
+ themeColor: 'base',
202
+ fillMode: 'flat',
203
+ rounded: 'medium',
204
+ title: 'Retry',
205
+ svgIcon: kendo_svg_icons_1.rotateIcon,
206
+ "aria-hidden": "true",
207
+ onClick: function onClick() {
208
+ return _this.retryPrompt(output);
209
+ },
210
+ on: _this2.v3 ? undefined : {
211
+ "click": function onClick() {
212
+ return _this.retryPrompt(output);
213
+ }
214
+ }
215
+ }, _this2.v3 ? function () {
216
+ return ['Retry'];
217
+ } : ['Retry']), showOutputRating && h("span", {
218
+ "class": "k-spacer"
219
+ }), showOutputRating && h(kendo_vue_buttons_1.Button, {
220
+ size: 'medium',
221
+ attrs: _this2.v3 ? undefined : {
222
+ size: 'medium',
223
+ themeColor: output.ratingType === 'positive' ? 'primary' : 'base',
224
+ fillMode: 'flat',
225
+ rounded: 'medium',
226
+ title: 'Rate up',
227
+ svgIcon: kendo_svg_icons_1.thumbUpOutlineIcon,
228
+ "aria-hidden": "true"
229
+ },
230
+ themeColor: output.ratingType === 'positive' ? 'primary' : 'base',
231
+ fillMode: 'flat',
232
+ rounded: 'medium',
233
+ title: 'Rate up',
234
+ svgIcon: kendo_svg_icons_1.thumbUpOutlineIcon,
235
+ "aria-hidden": "true",
236
+ onClick: function onClick() {
237
+ return _this.outputRating(output, 'positive');
238
+ },
239
+ on: _this2.v3 ? undefined : {
240
+ "click": function onClick() {
241
+ return _this.outputRating(output, 'positive');
242
+ }
243
+ }
244
+ }), showOutputRating && h(kendo_vue_buttons_1.Button, {
245
+ size: 'medium',
246
+ attrs: _this2.v3 ? undefined : {
247
+ size: 'medium',
248
+ themeColor: output.ratingType === 'negative' ? 'primary' : 'base',
249
+ fillMode: 'flat',
250
+ rounded: 'medium',
251
+ title: 'Rate down',
252
+ svgIcon: kendo_svg_icons_1.thumbDownOutlineIcon,
253
+ "aria-hidden": "true"
254
+ },
255
+ themeColor: output.ratingType === 'negative' ? 'primary' : 'base',
256
+ fillMode: 'flat',
257
+ rounded: 'medium',
258
+ title: 'Rate down',
259
+ svgIcon: kendo_svg_icons_1.thumbDownOutlineIcon,
260
+ "aria-hidden": "true",
261
+ onClick: function onClick() {
262
+ return _this.outputRating(output, 'negative');
263
+ },
264
+ on: _this2.v3 ? undefined : {
265
+ "click": function onClick() {
266
+ return _this.outputRating(output, 'negative');
267
+ }
268
+ }
269
+ })];
270
+ } : [h(kendo_vue_buttons_1.Button, {
271
+ size: 'medium',
272
+ attrs: _this2.v3 ? undefined : {
273
+ size: 'medium',
274
+ themeColor: 'primary',
275
+ fillMode: 'flat',
276
+ rounded: 'medium',
277
+ title: 'Copy',
278
+ svgIcon: _this2.copyButtonIcon,
279
+ "aria-hidden": "true"
280
+ },
281
+ themeColor: 'primary',
282
+ fillMode: 'flat',
283
+ rounded: 'medium',
284
+ title: 'Copy',
285
+ svgIcon: _this2.copyButtonIcon,
286
+ "aria-hidden": "true",
287
+ onClick: function onClick() {
288
+ return _this.copyToClipboard(output);
289
+ },
290
+ on: _this2.v3 ? undefined : {
291
+ "click": function onClick() {
292
+ return _this.copyToClipboard(output);
293
+ }
294
+ }
295
+ }, _this2.v3 ? function () {
296
+ return ['Copy'];
297
+ } : ['Copy']), h(kendo_vue_buttons_1.Button, {
298
+ size: 'medium',
299
+ attrs: _this2.v3 ? undefined : {
300
+ size: 'medium',
301
+ themeColor: 'base',
302
+ fillMode: 'flat',
303
+ rounded: 'medium',
304
+ title: 'Retry',
305
+ svgIcon: kendo_svg_icons_1.rotateIcon,
306
+ "aria-hidden": "true"
307
+ },
308
+ themeColor: 'base',
309
+ fillMode: 'flat',
310
+ rounded: 'medium',
311
+ title: 'Retry',
312
+ svgIcon: kendo_svg_icons_1.rotateIcon,
313
+ "aria-hidden": "true",
314
+ onClick: function onClick() {
315
+ return _this.retryPrompt(output);
316
+ },
317
+ on: _this2.v3 ? undefined : {
318
+ "click": function onClick() {
319
+ return _this.retryPrompt(output);
320
+ }
321
+ }
322
+ }, _this2.v3 ? function () {
323
+ return ['Retry'];
324
+ } : ['Retry']), showOutputRating && h("span", {
325
+ "class": "k-spacer"
326
+ }), showOutputRating && h(kendo_vue_buttons_1.Button, {
327
+ size: 'medium',
328
+ attrs: _this2.v3 ? undefined : {
329
+ size: 'medium',
330
+ themeColor: output.ratingType === 'positive' ? 'primary' : 'base',
331
+ fillMode: 'flat',
332
+ rounded: 'medium',
333
+ title: 'Rate up',
334
+ svgIcon: kendo_svg_icons_1.thumbUpOutlineIcon,
335
+ "aria-hidden": "true"
336
+ },
337
+ themeColor: output.ratingType === 'positive' ? 'primary' : 'base',
338
+ fillMode: 'flat',
339
+ rounded: 'medium',
340
+ title: 'Rate up',
341
+ svgIcon: kendo_svg_icons_1.thumbUpOutlineIcon,
342
+ "aria-hidden": "true",
343
+ onClick: function onClick() {
344
+ return _this.outputRating(output, 'positive');
345
+ },
346
+ on: _this2.v3 ? undefined : {
347
+ "click": function onClick() {
348
+ return _this.outputRating(output, 'positive');
349
+ }
350
+ }
351
+ }), showOutputRating && h(kendo_vue_buttons_1.Button, {
352
+ size: 'medium',
353
+ attrs: _this2.v3 ? undefined : {
354
+ size: 'medium',
355
+ themeColor: output.ratingType === 'negative' ? 'primary' : 'base',
356
+ fillMode: 'flat',
357
+ rounded: 'medium',
358
+ title: 'Rate down',
359
+ svgIcon: kendo_svg_icons_1.thumbDownOutlineIcon,
360
+ "aria-hidden": "true"
361
+ },
362
+ themeColor: output.ratingType === 'negative' ? 'primary' : 'base',
363
+ fillMode: 'flat',
364
+ rounded: 'medium',
365
+ title: 'Rate down',
366
+ svgIcon: kendo_svg_icons_1.thumbDownOutlineIcon,
367
+ "aria-hidden": "true",
368
+ onClick: function onClick() {
369
+ return _this.outputRating(output, 'negative');
370
+ },
371
+ on: _this2.v3 ? undefined : {
372
+ "click": function onClick() {
373
+ return _this.outputRating(output, 'negative');
374
+ }
375
+ }
376
+ })])];
377
+ } : [h(kendo_vue_layout_1.CardHeader, _this2.v3 ? function () {
378
+ return [output.title && h(kendo_vue_layout_1.CardTitle, _this2.v3 ? function () {
379
+ return [output.title];
380
+ } : [output.title]), output.subTitle && h(kendo_vue_layout_1.CardSubtitle, _this2.v3 ? function () {
381
+ return [output.subTitle];
382
+ } : [output.subTitle])];
383
+ } : [output.title && h(kendo_vue_layout_1.CardTitle, _this2.v3 ? function () {
384
+ return [output.title];
385
+ } : [output.title]), output.subTitle && h(kendo_vue_layout_1.CardSubtitle, _this2.v3 ? function () {
386
+ return [output.subTitle];
387
+ } : [output.subTitle])]), h(kendo_vue_layout_1.CardBody, _this2.v3 ? function () {
388
+ return [output.responseContent];
389
+ } : [output.responseContent]), h(kendo_vue_layout_1.CardActions, _this2.v3 ? function () {
390
+ return [h(kendo_vue_buttons_1.Button, {
391
+ size: 'medium',
392
+ attrs: _this2.v3 ? undefined : {
393
+ size: 'medium',
394
+ themeColor: 'primary',
395
+ fillMode: 'flat',
396
+ rounded: 'medium',
397
+ title: 'Copy',
398
+ svgIcon: _this2.copyButtonIcon,
399
+ "aria-hidden": "true"
400
+ },
401
+ themeColor: 'primary',
402
+ fillMode: 'flat',
403
+ rounded: 'medium',
404
+ title: 'Copy',
405
+ svgIcon: _this2.copyButtonIcon,
406
+ "aria-hidden": "true",
407
+ onClick: function onClick() {
408
+ return _this.copyToClipboard(output);
409
+ },
410
+ on: _this2.v3 ? undefined : {
411
+ "click": function onClick() {
412
+ return _this.copyToClipboard(output);
413
+ }
414
+ }
415
+ }, _this2.v3 ? function () {
416
+ return ['Copy'];
417
+ } : ['Copy']), h(kendo_vue_buttons_1.Button, {
418
+ size: 'medium',
419
+ attrs: _this2.v3 ? undefined : {
420
+ size: 'medium',
421
+ themeColor: 'base',
422
+ fillMode: 'flat',
423
+ rounded: 'medium',
424
+ title: 'Retry',
425
+ svgIcon: kendo_svg_icons_1.rotateIcon,
426
+ "aria-hidden": "true"
427
+ },
428
+ themeColor: 'base',
429
+ fillMode: 'flat',
430
+ rounded: 'medium',
431
+ title: 'Retry',
432
+ svgIcon: kendo_svg_icons_1.rotateIcon,
433
+ "aria-hidden": "true",
434
+ onClick: function onClick() {
435
+ return _this.retryPrompt(output);
436
+ },
437
+ on: _this2.v3 ? undefined : {
438
+ "click": function onClick() {
439
+ return _this.retryPrompt(output);
440
+ }
441
+ }
442
+ }, _this2.v3 ? function () {
443
+ return ['Retry'];
444
+ } : ['Retry']), showOutputRating && h("span", {
445
+ "class": "k-spacer"
446
+ }), showOutputRating && h(kendo_vue_buttons_1.Button, {
447
+ size: 'medium',
448
+ attrs: _this2.v3 ? undefined : {
449
+ size: 'medium',
450
+ themeColor: output.ratingType === 'positive' ? 'primary' : 'base',
451
+ fillMode: 'flat',
452
+ rounded: 'medium',
453
+ title: 'Rate up',
454
+ svgIcon: kendo_svg_icons_1.thumbUpOutlineIcon,
455
+ "aria-hidden": "true"
456
+ },
457
+ themeColor: output.ratingType === 'positive' ? 'primary' : 'base',
458
+ fillMode: 'flat',
459
+ rounded: 'medium',
460
+ title: 'Rate up',
461
+ svgIcon: kendo_svg_icons_1.thumbUpOutlineIcon,
462
+ "aria-hidden": "true",
463
+ onClick: function onClick() {
464
+ return _this.outputRating(output, 'positive');
465
+ },
466
+ on: _this2.v3 ? undefined : {
467
+ "click": function onClick() {
468
+ return _this.outputRating(output, 'positive');
469
+ }
470
+ }
471
+ }), showOutputRating && h(kendo_vue_buttons_1.Button, {
472
+ size: 'medium',
473
+ attrs: _this2.v3 ? undefined : {
474
+ size: 'medium',
475
+ themeColor: output.ratingType === 'negative' ? 'primary' : 'base',
476
+ fillMode: 'flat',
477
+ rounded: 'medium',
478
+ title: 'Rate down',
479
+ svgIcon: kendo_svg_icons_1.thumbDownOutlineIcon,
480
+ "aria-hidden": "true"
481
+ },
482
+ themeColor: output.ratingType === 'negative' ? 'primary' : 'base',
483
+ fillMode: 'flat',
484
+ rounded: 'medium',
485
+ title: 'Rate down',
486
+ svgIcon: kendo_svg_icons_1.thumbDownOutlineIcon,
487
+ "aria-hidden": "true",
488
+ onClick: function onClick() {
489
+ return _this.outputRating(output, 'negative');
490
+ },
491
+ on: _this2.v3 ? undefined : {
492
+ "click": function onClick() {
493
+ return _this.outputRating(output, 'negative');
494
+ }
495
+ }
496
+ })];
497
+ } : [h(kendo_vue_buttons_1.Button, {
498
+ size: 'medium',
499
+ attrs: _this2.v3 ? undefined : {
500
+ size: 'medium',
501
+ themeColor: 'primary',
502
+ fillMode: 'flat',
503
+ rounded: 'medium',
504
+ title: 'Copy',
505
+ svgIcon: _this2.copyButtonIcon,
506
+ "aria-hidden": "true"
507
+ },
508
+ themeColor: 'primary',
509
+ fillMode: 'flat',
510
+ rounded: 'medium',
511
+ title: 'Copy',
512
+ svgIcon: _this2.copyButtonIcon,
513
+ "aria-hidden": "true",
514
+ onClick: function onClick() {
515
+ return _this.copyToClipboard(output);
516
+ },
517
+ on: _this2.v3 ? undefined : {
518
+ "click": function onClick() {
519
+ return _this.copyToClipboard(output);
520
+ }
521
+ }
522
+ }, _this2.v3 ? function () {
523
+ return ['Copy'];
524
+ } : ['Copy']), h(kendo_vue_buttons_1.Button, {
525
+ size: 'medium',
526
+ attrs: _this2.v3 ? undefined : {
527
+ size: 'medium',
528
+ themeColor: 'base',
529
+ fillMode: 'flat',
530
+ rounded: 'medium',
531
+ title: 'Retry',
532
+ svgIcon: kendo_svg_icons_1.rotateIcon,
533
+ "aria-hidden": "true"
534
+ },
535
+ themeColor: 'base',
536
+ fillMode: 'flat',
537
+ rounded: 'medium',
538
+ title: 'Retry',
539
+ svgIcon: kendo_svg_icons_1.rotateIcon,
540
+ "aria-hidden": "true",
541
+ onClick: function onClick() {
542
+ return _this.retryPrompt(output);
543
+ },
544
+ on: _this2.v3 ? undefined : {
545
+ "click": function onClick() {
546
+ return _this.retryPrompt(output);
547
+ }
548
+ }
549
+ }, _this2.v3 ? function () {
550
+ return ['Retry'];
551
+ } : ['Retry']), showOutputRating && h("span", {
552
+ "class": "k-spacer"
553
+ }), showOutputRating && h(kendo_vue_buttons_1.Button, {
554
+ size: 'medium',
555
+ attrs: _this2.v3 ? undefined : {
556
+ size: 'medium',
557
+ themeColor: output.ratingType === 'positive' ? 'primary' : 'base',
558
+ fillMode: 'flat',
559
+ rounded: 'medium',
560
+ title: 'Rate up',
561
+ svgIcon: kendo_svg_icons_1.thumbUpOutlineIcon,
562
+ "aria-hidden": "true"
563
+ },
564
+ themeColor: output.ratingType === 'positive' ? 'primary' : 'base',
565
+ fillMode: 'flat',
566
+ rounded: 'medium',
567
+ title: 'Rate up',
568
+ svgIcon: kendo_svg_icons_1.thumbUpOutlineIcon,
569
+ "aria-hidden": "true",
570
+ onClick: function onClick() {
571
+ return _this.outputRating(output, 'positive');
572
+ },
573
+ on: _this2.v3 ? undefined : {
574
+ "click": function onClick() {
575
+ return _this.outputRating(output, 'positive');
576
+ }
577
+ }
578
+ }), showOutputRating && h(kendo_vue_buttons_1.Button, {
579
+ size: 'medium',
580
+ attrs: _this2.v3 ? undefined : {
581
+ size: 'medium',
582
+ themeColor: output.ratingType === 'negative' ? 'primary' : 'base',
583
+ fillMode: 'flat',
584
+ rounded: 'medium',
585
+ title: 'Rate down',
586
+ svgIcon: kendo_svg_icons_1.thumbDownOutlineIcon,
587
+ "aria-hidden": "true"
588
+ },
589
+ themeColor: output.ratingType === 'negative' ? 'primary' : 'base',
590
+ fillMode: 'flat',
591
+ rounded: 'medium',
592
+ title: 'Rate down',
593
+ svgIcon: kendo_svg_icons_1.thumbDownOutlineIcon,
594
+ "aria-hidden": "true",
595
+ onClick: function onClick() {
596
+ return _this.outputRating(output, 'negative');
597
+ },
598
+ on: _this2.v3 ? undefined : {
599
+ "click": function onClick() {
600
+ return _this.outputRating(output, 'negative');
601
+ }
602
+ }
603
+ })])]);
604
+ }, _this3) :
605
+ // @ts-ignore function children
606
+ h(kendo_vue_layout_1.Card, _this3.v3 ? function () {
607
+ return [
608
+ // @ts-ignore function children
609
+ h(kendo_vue_layout_1.CardBody, _this3.v3 ? function () {
610
+ return [ls.toLanguageString(main_1.aIPromptNoOutputs, main_1.messages[main_1.aIPromptNoOutputs])];
611
+ } : [ls.toLanguageString(main_1.aIPromptNoOutputs, main_1.messages[main_1.aIPromptNoOutputs])])];
612
+ } : [h(kendo_vue_layout_1.CardBody, _this3.v3 ? function () {
613
+ return [ls.toLanguageString(main_1.aIPromptNoOutputs, main_1.messages[main_1.aIPromptNoOutputs])];
614
+ } : [ls.toLanguageString(main_1.aIPromptNoOutputs, main_1.messages[main_1.aIPromptNoOutputs])])])])];
615
+ } : [h("div", {
616
+ "class": "k-card-list"
617
+ }, [outputs && outputs.length > 0 ? outputs.map(function (output) {
618
+ var _this2 = this;
619
+ var _this = this;
620
+ var outputCardRendering = kendo_vue_common_1.getTemplate.call(this, {
621
+ h: h,
622
+ template: card,
623
+ defaultRendering: null,
624
+ additionalProps: {
625
+ output: output
626
+ }
627
+ });
628
+ return outputCard ? outputCardRendering : h(kendo_vue_layout_1.Card, {
629
+ key: output.id
630
+ }, this.v3 ? function () {
631
+ return [h(kendo_vue_layout_1.CardHeader, _this2.v3 ? function () {
632
+ return [output.title && h(kendo_vue_layout_1.CardTitle, _this2.v3 ? function () {
633
+ return [output.title];
634
+ } : [output.title]), output.subTitle && h(kendo_vue_layout_1.CardSubtitle, _this2.v3 ? function () {
635
+ return [output.subTitle];
636
+ } : [output.subTitle])];
637
+ } : [output.title && h(kendo_vue_layout_1.CardTitle, _this2.v3 ? function () {
638
+ return [output.title];
639
+ } : [output.title]), output.subTitle && h(kendo_vue_layout_1.CardSubtitle, _this2.v3 ? function () {
640
+ return [output.subTitle];
641
+ } : [output.subTitle])]), h(kendo_vue_layout_1.CardBody, _this2.v3 ? function () {
642
+ return [output.responseContent];
643
+ } : [output.responseContent]), h(kendo_vue_layout_1.CardActions, _this2.v3 ? function () {
644
+ return [h(kendo_vue_buttons_1.Button, {
645
+ size: 'medium',
646
+ attrs: _this2.v3 ? undefined : {
647
+ size: 'medium',
648
+ themeColor: 'primary',
649
+ fillMode: 'flat',
650
+ rounded: 'medium',
651
+ title: 'Copy',
652
+ svgIcon: _this2.copyButtonIcon,
653
+ "aria-hidden": "true"
654
+ },
655
+ themeColor: 'primary',
656
+ fillMode: 'flat',
657
+ rounded: 'medium',
658
+ title: 'Copy',
659
+ svgIcon: _this2.copyButtonIcon,
660
+ "aria-hidden": "true",
661
+ onClick: function onClick() {
662
+ return _this.copyToClipboard(output);
663
+ },
664
+ on: _this2.v3 ? undefined : {
665
+ "click": function onClick() {
666
+ return _this.copyToClipboard(output);
667
+ }
668
+ }
669
+ }, _this2.v3 ? function () {
670
+ return ['Copy'];
671
+ } : ['Copy']), h(kendo_vue_buttons_1.Button, {
672
+ size: 'medium',
673
+ attrs: _this2.v3 ? undefined : {
674
+ size: 'medium',
675
+ themeColor: 'base',
676
+ fillMode: 'flat',
677
+ rounded: 'medium',
678
+ title: 'Retry',
679
+ svgIcon: kendo_svg_icons_1.rotateIcon,
680
+ "aria-hidden": "true"
681
+ },
682
+ themeColor: 'base',
683
+ fillMode: 'flat',
684
+ rounded: 'medium',
685
+ title: 'Retry',
686
+ svgIcon: kendo_svg_icons_1.rotateIcon,
687
+ "aria-hidden": "true",
688
+ onClick: function onClick() {
689
+ return _this.retryPrompt(output);
690
+ },
691
+ on: _this2.v3 ? undefined : {
692
+ "click": function onClick() {
693
+ return _this.retryPrompt(output);
694
+ }
695
+ }
696
+ }, _this2.v3 ? function () {
697
+ return ['Retry'];
698
+ } : ['Retry']), showOutputRating && h("span", {
699
+ "class": "k-spacer"
700
+ }), showOutputRating && h(kendo_vue_buttons_1.Button, {
701
+ size: 'medium',
702
+ attrs: _this2.v3 ? undefined : {
703
+ size: 'medium',
704
+ themeColor: output.ratingType === 'positive' ? 'primary' : 'base',
705
+ fillMode: 'flat',
706
+ rounded: 'medium',
707
+ title: 'Rate up',
708
+ svgIcon: kendo_svg_icons_1.thumbUpOutlineIcon,
709
+ "aria-hidden": "true"
710
+ },
711
+ themeColor: output.ratingType === 'positive' ? 'primary' : 'base',
712
+ fillMode: 'flat',
713
+ rounded: 'medium',
714
+ title: 'Rate up',
715
+ svgIcon: kendo_svg_icons_1.thumbUpOutlineIcon,
716
+ "aria-hidden": "true",
717
+ onClick: function onClick() {
718
+ return _this.outputRating(output, 'positive');
719
+ },
720
+ on: _this2.v3 ? undefined : {
721
+ "click": function onClick() {
722
+ return _this.outputRating(output, 'positive');
723
+ }
724
+ }
725
+ }), showOutputRating && h(kendo_vue_buttons_1.Button, {
726
+ size: 'medium',
727
+ attrs: _this2.v3 ? undefined : {
728
+ size: 'medium',
729
+ themeColor: output.ratingType === 'negative' ? 'primary' : 'base',
730
+ fillMode: 'flat',
731
+ rounded: 'medium',
732
+ title: 'Rate down',
733
+ svgIcon: kendo_svg_icons_1.thumbDownOutlineIcon,
734
+ "aria-hidden": "true"
735
+ },
736
+ themeColor: output.ratingType === 'negative' ? 'primary' : 'base',
737
+ fillMode: 'flat',
738
+ rounded: 'medium',
739
+ title: 'Rate down',
740
+ svgIcon: kendo_svg_icons_1.thumbDownOutlineIcon,
741
+ "aria-hidden": "true",
742
+ onClick: function onClick() {
743
+ return _this.outputRating(output, 'negative');
744
+ },
745
+ on: _this2.v3 ? undefined : {
746
+ "click": function onClick() {
747
+ return _this.outputRating(output, 'negative');
748
+ }
749
+ }
750
+ })];
751
+ } : [h(kendo_vue_buttons_1.Button, {
752
+ size: 'medium',
753
+ attrs: _this2.v3 ? undefined : {
754
+ size: 'medium',
755
+ themeColor: 'primary',
756
+ fillMode: 'flat',
757
+ rounded: 'medium',
758
+ title: 'Copy',
759
+ svgIcon: _this2.copyButtonIcon,
760
+ "aria-hidden": "true"
761
+ },
762
+ themeColor: 'primary',
763
+ fillMode: 'flat',
764
+ rounded: 'medium',
765
+ title: 'Copy',
766
+ svgIcon: _this2.copyButtonIcon,
767
+ "aria-hidden": "true",
768
+ onClick: function onClick() {
769
+ return _this.copyToClipboard(output);
770
+ },
771
+ on: _this2.v3 ? undefined : {
772
+ "click": function onClick() {
773
+ return _this.copyToClipboard(output);
774
+ }
775
+ }
776
+ }, _this2.v3 ? function () {
777
+ return ['Copy'];
778
+ } : ['Copy']), h(kendo_vue_buttons_1.Button, {
779
+ size: 'medium',
780
+ attrs: _this2.v3 ? undefined : {
781
+ size: 'medium',
782
+ themeColor: 'base',
783
+ fillMode: 'flat',
784
+ rounded: 'medium',
785
+ title: 'Retry',
786
+ svgIcon: kendo_svg_icons_1.rotateIcon,
787
+ "aria-hidden": "true"
788
+ },
789
+ themeColor: 'base',
790
+ fillMode: 'flat',
791
+ rounded: 'medium',
792
+ title: 'Retry',
793
+ svgIcon: kendo_svg_icons_1.rotateIcon,
794
+ "aria-hidden": "true",
795
+ onClick: function onClick() {
796
+ return _this.retryPrompt(output);
797
+ },
798
+ on: _this2.v3 ? undefined : {
799
+ "click": function onClick() {
800
+ return _this.retryPrompt(output);
801
+ }
802
+ }
803
+ }, _this2.v3 ? function () {
804
+ return ['Retry'];
805
+ } : ['Retry']), showOutputRating && h("span", {
806
+ "class": "k-spacer"
807
+ }), showOutputRating && h(kendo_vue_buttons_1.Button, {
808
+ size: 'medium',
809
+ attrs: _this2.v3 ? undefined : {
810
+ size: 'medium',
811
+ themeColor: output.ratingType === 'positive' ? 'primary' : 'base',
812
+ fillMode: 'flat',
813
+ rounded: 'medium',
814
+ title: 'Rate up',
815
+ svgIcon: kendo_svg_icons_1.thumbUpOutlineIcon,
816
+ "aria-hidden": "true"
817
+ },
818
+ themeColor: output.ratingType === 'positive' ? 'primary' : 'base',
819
+ fillMode: 'flat',
820
+ rounded: 'medium',
821
+ title: 'Rate up',
822
+ svgIcon: kendo_svg_icons_1.thumbUpOutlineIcon,
823
+ "aria-hidden": "true",
824
+ onClick: function onClick() {
825
+ return _this.outputRating(output, 'positive');
826
+ },
827
+ on: _this2.v3 ? undefined : {
828
+ "click": function onClick() {
829
+ return _this.outputRating(output, 'positive');
830
+ }
831
+ }
832
+ }), showOutputRating && h(kendo_vue_buttons_1.Button, {
833
+ size: 'medium',
834
+ attrs: _this2.v3 ? undefined : {
835
+ size: 'medium',
836
+ themeColor: output.ratingType === 'negative' ? 'primary' : 'base',
837
+ fillMode: 'flat',
838
+ rounded: 'medium',
839
+ title: 'Rate down',
840
+ svgIcon: kendo_svg_icons_1.thumbDownOutlineIcon,
841
+ "aria-hidden": "true"
842
+ },
843
+ themeColor: output.ratingType === 'negative' ? 'primary' : 'base',
844
+ fillMode: 'flat',
845
+ rounded: 'medium',
846
+ title: 'Rate down',
847
+ svgIcon: kendo_svg_icons_1.thumbDownOutlineIcon,
848
+ "aria-hidden": "true",
849
+ onClick: function onClick() {
850
+ return _this.outputRating(output, 'negative');
851
+ },
852
+ on: _this2.v3 ? undefined : {
853
+ "click": function onClick() {
854
+ return _this.outputRating(output, 'negative');
855
+ }
856
+ }
857
+ })])];
858
+ } : [h(kendo_vue_layout_1.CardHeader, _this2.v3 ? function () {
859
+ return [output.title && h(kendo_vue_layout_1.CardTitle, _this2.v3 ? function () {
860
+ return [output.title];
861
+ } : [output.title]), output.subTitle && h(kendo_vue_layout_1.CardSubtitle, _this2.v3 ? function () {
862
+ return [output.subTitle];
863
+ } : [output.subTitle])];
864
+ } : [output.title && h(kendo_vue_layout_1.CardTitle, _this2.v3 ? function () {
865
+ return [output.title];
866
+ } : [output.title]), output.subTitle && h(kendo_vue_layout_1.CardSubtitle, _this2.v3 ? function () {
867
+ return [output.subTitle];
868
+ } : [output.subTitle])]), h(kendo_vue_layout_1.CardBody, _this2.v3 ? function () {
869
+ return [output.responseContent];
870
+ } : [output.responseContent]), h(kendo_vue_layout_1.CardActions, _this2.v3 ? function () {
871
+ return [h(kendo_vue_buttons_1.Button, {
872
+ size: 'medium',
873
+ attrs: _this2.v3 ? undefined : {
874
+ size: 'medium',
875
+ themeColor: 'primary',
876
+ fillMode: 'flat',
877
+ rounded: 'medium',
878
+ title: 'Copy',
879
+ svgIcon: _this2.copyButtonIcon,
880
+ "aria-hidden": "true"
881
+ },
882
+ themeColor: 'primary',
883
+ fillMode: 'flat',
884
+ rounded: 'medium',
885
+ title: 'Copy',
886
+ svgIcon: _this2.copyButtonIcon,
887
+ "aria-hidden": "true",
888
+ onClick: function onClick() {
889
+ return _this.copyToClipboard(output);
890
+ },
891
+ on: _this2.v3 ? undefined : {
892
+ "click": function onClick() {
893
+ return _this.copyToClipboard(output);
894
+ }
895
+ }
896
+ }, _this2.v3 ? function () {
897
+ return ['Copy'];
898
+ } : ['Copy']), h(kendo_vue_buttons_1.Button, {
899
+ size: 'medium',
900
+ attrs: _this2.v3 ? undefined : {
901
+ size: 'medium',
902
+ themeColor: 'base',
903
+ fillMode: 'flat',
904
+ rounded: 'medium',
905
+ title: 'Retry',
906
+ svgIcon: kendo_svg_icons_1.rotateIcon,
907
+ "aria-hidden": "true"
908
+ },
909
+ themeColor: 'base',
910
+ fillMode: 'flat',
911
+ rounded: 'medium',
912
+ title: 'Retry',
913
+ svgIcon: kendo_svg_icons_1.rotateIcon,
914
+ "aria-hidden": "true",
915
+ onClick: function onClick() {
916
+ return _this.retryPrompt(output);
917
+ },
918
+ on: _this2.v3 ? undefined : {
919
+ "click": function onClick() {
920
+ return _this.retryPrompt(output);
921
+ }
922
+ }
923
+ }, _this2.v3 ? function () {
924
+ return ['Retry'];
925
+ } : ['Retry']), showOutputRating && h("span", {
926
+ "class": "k-spacer"
927
+ }), showOutputRating && h(kendo_vue_buttons_1.Button, {
928
+ size: 'medium',
929
+ attrs: _this2.v3 ? undefined : {
930
+ size: 'medium',
931
+ themeColor: output.ratingType === 'positive' ? 'primary' : 'base',
932
+ fillMode: 'flat',
933
+ rounded: 'medium',
934
+ title: 'Rate up',
935
+ svgIcon: kendo_svg_icons_1.thumbUpOutlineIcon,
936
+ "aria-hidden": "true"
937
+ },
938
+ themeColor: output.ratingType === 'positive' ? 'primary' : 'base',
939
+ fillMode: 'flat',
940
+ rounded: 'medium',
941
+ title: 'Rate up',
942
+ svgIcon: kendo_svg_icons_1.thumbUpOutlineIcon,
943
+ "aria-hidden": "true",
944
+ onClick: function onClick() {
945
+ return _this.outputRating(output, 'positive');
946
+ },
947
+ on: _this2.v3 ? undefined : {
948
+ "click": function onClick() {
949
+ return _this.outputRating(output, 'positive');
950
+ }
951
+ }
952
+ }), showOutputRating && h(kendo_vue_buttons_1.Button, {
953
+ size: 'medium',
954
+ attrs: _this2.v3 ? undefined : {
955
+ size: 'medium',
956
+ themeColor: output.ratingType === 'negative' ? 'primary' : 'base',
957
+ fillMode: 'flat',
958
+ rounded: 'medium',
959
+ title: 'Rate down',
960
+ svgIcon: kendo_svg_icons_1.thumbDownOutlineIcon,
961
+ "aria-hidden": "true"
962
+ },
963
+ themeColor: output.ratingType === 'negative' ? 'primary' : 'base',
964
+ fillMode: 'flat',
965
+ rounded: 'medium',
966
+ title: 'Rate down',
967
+ svgIcon: kendo_svg_icons_1.thumbDownOutlineIcon,
968
+ "aria-hidden": "true",
969
+ onClick: function onClick() {
970
+ return _this.outputRating(output, 'negative');
971
+ },
972
+ on: _this2.v3 ? undefined : {
973
+ "click": function onClick() {
974
+ return _this.outputRating(output, 'negative');
975
+ }
976
+ }
977
+ })];
978
+ } : [h(kendo_vue_buttons_1.Button, {
979
+ size: 'medium',
980
+ attrs: _this2.v3 ? undefined : {
981
+ size: 'medium',
982
+ themeColor: 'primary',
983
+ fillMode: 'flat',
984
+ rounded: 'medium',
985
+ title: 'Copy',
986
+ svgIcon: _this2.copyButtonIcon,
987
+ "aria-hidden": "true"
988
+ },
989
+ themeColor: 'primary',
990
+ fillMode: 'flat',
991
+ rounded: 'medium',
992
+ title: 'Copy',
993
+ svgIcon: _this2.copyButtonIcon,
994
+ "aria-hidden": "true",
995
+ onClick: function onClick() {
996
+ return _this.copyToClipboard(output);
997
+ },
998
+ on: _this2.v3 ? undefined : {
999
+ "click": function onClick() {
1000
+ return _this.copyToClipboard(output);
1001
+ }
1002
+ }
1003
+ }, _this2.v3 ? function () {
1004
+ return ['Copy'];
1005
+ } : ['Copy']), h(kendo_vue_buttons_1.Button, {
1006
+ size: 'medium',
1007
+ attrs: _this2.v3 ? undefined : {
1008
+ size: 'medium',
1009
+ themeColor: 'base',
1010
+ fillMode: 'flat',
1011
+ rounded: 'medium',
1012
+ title: 'Retry',
1013
+ svgIcon: kendo_svg_icons_1.rotateIcon,
1014
+ "aria-hidden": "true"
1015
+ },
1016
+ themeColor: 'base',
1017
+ fillMode: 'flat',
1018
+ rounded: 'medium',
1019
+ title: 'Retry',
1020
+ svgIcon: kendo_svg_icons_1.rotateIcon,
1021
+ "aria-hidden": "true",
1022
+ onClick: function onClick() {
1023
+ return _this.retryPrompt(output);
1024
+ },
1025
+ on: _this2.v3 ? undefined : {
1026
+ "click": function onClick() {
1027
+ return _this.retryPrompt(output);
1028
+ }
1029
+ }
1030
+ }, _this2.v3 ? function () {
1031
+ return ['Retry'];
1032
+ } : ['Retry']), showOutputRating && h("span", {
1033
+ "class": "k-spacer"
1034
+ }), showOutputRating && h(kendo_vue_buttons_1.Button, {
1035
+ size: 'medium',
1036
+ attrs: _this2.v3 ? undefined : {
1037
+ size: 'medium',
1038
+ themeColor: output.ratingType === 'positive' ? 'primary' : 'base',
1039
+ fillMode: 'flat',
1040
+ rounded: 'medium',
1041
+ title: 'Rate up',
1042
+ svgIcon: kendo_svg_icons_1.thumbUpOutlineIcon,
1043
+ "aria-hidden": "true"
1044
+ },
1045
+ themeColor: output.ratingType === 'positive' ? 'primary' : 'base',
1046
+ fillMode: 'flat',
1047
+ rounded: 'medium',
1048
+ title: 'Rate up',
1049
+ svgIcon: kendo_svg_icons_1.thumbUpOutlineIcon,
1050
+ "aria-hidden": "true",
1051
+ onClick: function onClick() {
1052
+ return _this.outputRating(output, 'positive');
1053
+ },
1054
+ on: _this2.v3 ? undefined : {
1055
+ "click": function onClick() {
1056
+ return _this.outputRating(output, 'positive');
1057
+ }
1058
+ }
1059
+ }), showOutputRating && h(kendo_vue_buttons_1.Button, {
1060
+ size: 'medium',
1061
+ attrs: _this2.v3 ? undefined : {
1062
+ size: 'medium',
1063
+ themeColor: output.ratingType === 'negative' ? 'primary' : 'base',
1064
+ fillMode: 'flat',
1065
+ rounded: 'medium',
1066
+ title: 'Rate down',
1067
+ svgIcon: kendo_svg_icons_1.thumbDownOutlineIcon,
1068
+ "aria-hidden": "true"
1069
+ },
1070
+ themeColor: output.ratingType === 'negative' ? 'primary' : 'base',
1071
+ fillMode: 'flat',
1072
+ rounded: 'medium',
1073
+ title: 'Rate down',
1074
+ svgIcon: kendo_svg_icons_1.thumbDownOutlineIcon,
1075
+ "aria-hidden": "true",
1076
+ onClick: function onClick() {
1077
+ return _this.outputRating(output, 'negative');
1078
+ },
1079
+ on: _this2.v3 ? undefined : {
1080
+ "click": function onClick() {
1081
+ return _this.outputRating(output, 'negative');
1082
+ }
1083
+ }
1084
+ })])]);
1085
+ }, _this3) : h(kendo_vue_layout_1.Card, _this3.v3 ? function () {
1086
+ return [h(kendo_vue_layout_1.CardBody, _this3.v3 ? function () {
1087
+ return [ls.toLanguageString(main_1.aIPromptNoOutputs, main_1.messages[main_1.aIPromptNoOutputs])];
1088
+ } : [ls.toLanguageString(main_1.aIPromptNoOutputs, main_1.messages[main_1.aIPromptNoOutputs])])];
1089
+ } : [h(kendo_vue_layout_1.CardBody, _this3.v3 ? function () {
1090
+ return [ls.toLanguageString(main_1.aIPromptNoOutputs, main_1.messages[main_1.aIPromptNoOutputs])];
1091
+ } : [ls.toLanguageString(main_1.aIPromptNoOutputs, main_1.messages[main_1.aIPromptNoOutputs])])])])])];
1092
+ } : [h(AIPromptContent_1.AIPromptContent, _this3.v3 ? function () {
1093
+ return [h("div", {
1094
+ "class": "k-card-list"
1095
+ }, [outputs && outputs.length > 0 ? outputs.map(function (output) {
1096
+ var _this2 = this;
1097
+ var _this = this;
1098
+ var outputCardRendering = kendo_vue_common_1.getTemplate.call(this, {
1099
+ h: h,
1100
+ template: card,
1101
+ defaultRendering: null,
1102
+ additionalProps: {
1103
+ output: output
1104
+ }
1105
+ });
1106
+ return outputCard ? outputCardRendering : h(kendo_vue_layout_1.Card, {
1107
+ key: output.id
1108
+ }, this.v3 ? function () {
1109
+ return [h(kendo_vue_layout_1.CardHeader, _this2.v3 ? function () {
1110
+ return [output.title && h(kendo_vue_layout_1.CardTitle, _this2.v3 ? function () {
1111
+ return [output.title];
1112
+ } : [output.title]), output.subTitle && h(kendo_vue_layout_1.CardSubtitle, _this2.v3 ? function () {
1113
+ return [output.subTitle];
1114
+ } : [output.subTitle])];
1115
+ } : [output.title && h(kendo_vue_layout_1.CardTitle, _this2.v3 ? function () {
1116
+ return [output.title];
1117
+ } : [output.title]), output.subTitle && h(kendo_vue_layout_1.CardSubtitle, _this2.v3 ? function () {
1118
+ return [output.subTitle];
1119
+ } : [output.subTitle])]), h(kendo_vue_layout_1.CardBody, _this2.v3 ? function () {
1120
+ return [output.responseContent];
1121
+ } : [output.responseContent]), h(kendo_vue_layout_1.CardActions, _this2.v3 ? function () {
1122
+ return [h(kendo_vue_buttons_1.Button, {
1123
+ size: 'medium',
1124
+ attrs: _this2.v3 ? undefined : {
1125
+ size: 'medium',
1126
+ themeColor: 'primary',
1127
+ fillMode: 'flat',
1128
+ rounded: 'medium',
1129
+ title: 'Copy',
1130
+ svgIcon: _this2.copyButtonIcon,
1131
+ "aria-hidden": "true"
1132
+ },
1133
+ themeColor: 'primary',
1134
+ fillMode: 'flat',
1135
+ rounded: 'medium',
1136
+ title: 'Copy',
1137
+ svgIcon: _this2.copyButtonIcon,
1138
+ "aria-hidden": "true",
1139
+ onClick: function onClick() {
1140
+ return _this.copyToClipboard(output);
1141
+ },
1142
+ on: _this2.v3 ? undefined : {
1143
+ "click": function onClick() {
1144
+ return _this.copyToClipboard(output);
1145
+ }
1146
+ }
1147
+ }, _this2.v3 ? function () {
1148
+ return ['Copy'];
1149
+ } : ['Copy']), h(kendo_vue_buttons_1.Button, {
1150
+ size: 'medium',
1151
+ attrs: _this2.v3 ? undefined : {
1152
+ size: 'medium',
1153
+ themeColor: 'base',
1154
+ fillMode: 'flat',
1155
+ rounded: 'medium',
1156
+ title: 'Retry',
1157
+ svgIcon: kendo_svg_icons_1.rotateIcon,
1158
+ "aria-hidden": "true"
1159
+ },
1160
+ themeColor: 'base',
1161
+ fillMode: 'flat',
1162
+ rounded: 'medium',
1163
+ title: 'Retry',
1164
+ svgIcon: kendo_svg_icons_1.rotateIcon,
1165
+ "aria-hidden": "true",
1166
+ onClick: function onClick() {
1167
+ return _this.retryPrompt(output);
1168
+ },
1169
+ on: _this2.v3 ? undefined : {
1170
+ "click": function onClick() {
1171
+ return _this.retryPrompt(output);
1172
+ }
1173
+ }
1174
+ }, _this2.v3 ? function () {
1175
+ return ['Retry'];
1176
+ } : ['Retry']), showOutputRating && h("span", {
1177
+ "class": "k-spacer"
1178
+ }), showOutputRating && h(kendo_vue_buttons_1.Button, {
1179
+ size: 'medium',
1180
+ attrs: _this2.v3 ? undefined : {
1181
+ size: 'medium',
1182
+ themeColor: output.ratingType === 'positive' ? 'primary' : 'base',
1183
+ fillMode: 'flat',
1184
+ rounded: 'medium',
1185
+ title: 'Rate up',
1186
+ svgIcon: kendo_svg_icons_1.thumbUpOutlineIcon,
1187
+ "aria-hidden": "true"
1188
+ },
1189
+ themeColor: output.ratingType === 'positive' ? 'primary' : 'base',
1190
+ fillMode: 'flat',
1191
+ rounded: 'medium',
1192
+ title: 'Rate up',
1193
+ svgIcon: kendo_svg_icons_1.thumbUpOutlineIcon,
1194
+ "aria-hidden": "true",
1195
+ onClick: function onClick() {
1196
+ return _this.outputRating(output, 'positive');
1197
+ },
1198
+ on: _this2.v3 ? undefined : {
1199
+ "click": function onClick() {
1200
+ return _this.outputRating(output, 'positive');
1201
+ }
1202
+ }
1203
+ }), showOutputRating && h(kendo_vue_buttons_1.Button, {
1204
+ size: 'medium',
1205
+ attrs: _this2.v3 ? undefined : {
1206
+ size: 'medium',
1207
+ themeColor: output.ratingType === 'negative' ? 'primary' : 'base',
1208
+ fillMode: 'flat',
1209
+ rounded: 'medium',
1210
+ title: 'Rate down',
1211
+ svgIcon: kendo_svg_icons_1.thumbDownOutlineIcon,
1212
+ "aria-hidden": "true"
1213
+ },
1214
+ themeColor: output.ratingType === 'negative' ? 'primary' : 'base',
1215
+ fillMode: 'flat',
1216
+ rounded: 'medium',
1217
+ title: 'Rate down',
1218
+ svgIcon: kendo_svg_icons_1.thumbDownOutlineIcon,
1219
+ "aria-hidden": "true",
1220
+ onClick: function onClick() {
1221
+ return _this.outputRating(output, 'negative');
1222
+ },
1223
+ on: _this2.v3 ? undefined : {
1224
+ "click": function onClick() {
1225
+ return _this.outputRating(output, 'negative');
1226
+ }
1227
+ }
1228
+ })];
1229
+ } : [h(kendo_vue_buttons_1.Button, {
1230
+ size: 'medium',
1231
+ attrs: _this2.v3 ? undefined : {
1232
+ size: 'medium',
1233
+ themeColor: 'primary',
1234
+ fillMode: 'flat',
1235
+ rounded: 'medium',
1236
+ title: 'Copy',
1237
+ svgIcon: _this2.copyButtonIcon,
1238
+ "aria-hidden": "true"
1239
+ },
1240
+ themeColor: 'primary',
1241
+ fillMode: 'flat',
1242
+ rounded: 'medium',
1243
+ title: 'Copy',
1244
+ svgIcon: _this2.copyButtonIcon,
1245
+ "aria-hidden": "true",
1246
+ onClick: function onClick() {
1247
+ return _this.copyToClipboard(output);
1248
+ },
1249
+ on: _this2.v3 ? undefined : {
1250
+ "click": function onClick() {
1251
+ return _this.copyToClipboard(output);
1252
+ }
1253
+ }
1254
+ }, _this2.v3 ? function () {
1255
+ return ['Copy'];
1256
+ } : ['Copy']), h(kendo_vue_buttons_1.Button, {
1257
+ size: 'medium',
1258
+ attrs: _this2.v3 ? undefined : {
1259
+ size: 'medium',
1260
+ themeColor: 'base',
1261
+ fillMode: 'flat',
1262
+ rounded: 'medium',
1263
+ title: 'Retry',
1264
+ svgIcon: kendo_svg_icons_1.rotateIcon,
1265
+ "aria-hidden": "true"
1266
+ },
1267
+ themeColor: 'base',
1268
+ fillMode: 'flat',
1269
+ rounded: 'medium',
1270
+ title: 'Retry',
1271
+ svgIcon: kendo_svg_icons_1.rotateIcon,
1272
+ "aria-hidden": "true",
1273
+ onClick: function onClick() {
1274
+ return _this.retryPrompt(output);
1275
+ },
1276
+ on: _this2.v3 ? undefined : {
1277
+ "click": function onClick() {
1278
+ return _this.retryPrompt(output);
1279
+ }
1280
+ }
1281
+ }, _this2.v3 ? function () {
1282
+ return ['Retry'];
1283
+ } : ['Retry']), showOutputRating && h("span", {
1284
+ "class": "k-spacer"
1285
+ }), showOutputRating && h(kendo_vue_buttons_1.Button, {
1286
+ size: 'medium',
1287
+ attrs: _this2.v3 ? undefined : {
1288
+ size: 'medium',
1289
+ themeColor: output.ratingType === 'positive' ? 'primary' : 'base',
1290
+ fillMode: 'flat',
1291
+ rounded: 'medium',
1292
+ title: 'Rate up',
1293
+ svgIcon: kendo_svg_icons_1.thumbUpOutlineIcon,
1294
+ "aria-hidden": "true"
1295
+ },
1296
+ themeColor: output.ratingType === 'positive' ? 'primary' : 'base',
1297
+ fillMode: 'flat',
1298
+ rounded: 'medium',
1299
+ title: 'Rate up',
1300
+ svgIcon: kendo_svg_icons_1.thumbUpOutlineIcon,
1301
+ "aria-hidden": "true",
1302
+ onClick: function onClick() {
1303
+ return _this.outputRating(output, 'positive');
1304
+ },
1305
+ on: _this2.v3 ? undefined : {
1306
+ "click": function onClick() {
1307
+ return _this.outputRating(output, 'positive');
1308
+ }
1309
+ }
1310
+ }), showOutputRating && h(kendo_vue_buttons_1.Button, {
1311
+ size: 'medium',
1312
+ attrs: _this2.v3 ? undefined : {
1313
+ size: 'medium',
1314
+ themeColor: output.ratingType === 'negative' ? 'primary' : 'base',
1315
+ fillMode: 'flat',
1316
+ rounded: 'medium',
1317
+ title: 'Rate down',
1318
+ svgIcon: kendo_svg_icons_1.thumbDownOutlineIcon,
1319
+ "aria-hidden": "true"
1320
+ },
1321
+ themeColor: output.ratingType === 'negative' ? 'primary' : 'base',
1322
+ fillMode: 'flat',
1323
+ rounded: 'medium',
1324
+ title: 'Rate down',
1325
+ svgIcon: kendo_svg_icons_1.thumbDownOutlineIcon,
1326
+ "aria-hidden": "true",
1327
+ onClick: function onClick() {
1328
+ return _this.outputRating(output, 'negative');
1329
+ },
1330
+ on: _this2.v3 ? undefined : {
1331
+ "click": function onClick() {
1332
+ return _this.outputRating(output, 'negative');
1333
+ }
1334
+ }
1335
+ })])];
1336
+ } : [h(kendo_vue_layout_1.CardHeader, _this2.v3 ? function () {
1337
+ return [output.title && h(kendo_vue_layout_1.CardTitle, _this2.v3 ? function () {
1338
+ return [output.title];
1339
+ } : [output.title]), output.subTitle && h(kendo_vue_layout_1.CardSubtitle, _this2.v3 ? function () {
1340
+ return [output.subTitle];
1341
+ } : [output.subTitle])];
1342
+ } : [output.title && h(kendo_vue_layout_1.CardTitle, _this2.v3 ? function () {
1343
+ return [output.title];
1344
+ } : [output.title]), output.subTitle && h(kendo_vue_layout_1.CardSubtitle, _this2.v3 ? function () {
1345
+ return [output.subTitle];
1346
+ } : [output.subTitle])]), h(kendo_vue_layout_1.CardBody, _this2.v3 ? function () {
1347
+ return [output.responseContent];
1348
+ } : [output.responseContent]), h(kendo_vue_layout_1.CardActions, _this2.v3 ? function () {
1349
+ return [h(kendo_vue_buttons_1.Button, {
1350
+ size: 'medium',
1351
+ attrs: _this2.v3 ? undefined : {
1352
+ size: 'medium',
1353
+ themeColor: 'primary',
1354
+ fillMode: 'flat',
1355
+ rounded: 'medium',
1356
+ title: 'Copy',
1357
+ svgIcon: _this2.copyButtonIcon,
1358
+ "aria-hidden": "true"
1359
+ },
1360
+ themeColor: 'primary',
1361
+ fillMode: 'flat',
1362
+ rounded: 'medium',
1363
+ title: 'Copy',
1364
+ svgIcon: _this2.copyButtonIcon,
1365
+ "aria-hidden": "true",
1366
+ onClick: function onClick() {
1367
+ return _this.copyToClipboard(output);
1368
+ },
1369
+ on: _this2.v3 ? undefined : {
1370
+ "click": function onClick() {
1371
+ return _this.copyToClipboard(output);
1372
+ }
1373
+ }
1374
+ }, _this2.v3 ? function () {
1375
+ return ['Copy'];
1376
+ } : ['Copy']), h(kendo_vue_buttons_1.Button, {
1377
+ size: 'medium',
1378
+ attrs: _this2.v3 ? undefined : {
1379
+ size: 'medium',
1380
+ themeColor: 'base',
1381
+ fillMode: 'flat',
1382
+ rounded: 'medium',
1383
+ title: 'Retry',
1384
+ svgIcon: kendo_svg_icons_1.rotateIcon,
1385
+ "aria-hidden": "true"
1386
+ },
1387
+ themeColor: 'base',
1388
+ fillMode: 'flat',
1389
+ rounded: 'medium',
1390
+ title: 'Retry',
1391
+ svgIcon: kendo_svg_icons_1.rotateIcon,
1392
+ "aria-hidden": "true",
1393
+ onClick: function onClick() {
1394
+ return _this.retryPrompt(output);
1395
+ },
1396
+ on: _this2.v3 ? undefined : {
1397
+ "click": function onClick() {
1398
+ return _this.retryPrompt(output);
1399
+ }
1400
+ }
1401
+ }, _this2.v3 ? function () {
1402
+ return ['Retry'];
1403
+ } : ['Retry']), showOutputRating && h("span", {
1404
+ "class": "k-spacer"
1405
+ }), showOutputRating && h(kendo_vue_buttons_1.Button, {
1406
+ size: 'medium',
1407
+ attrs: _this2.v3 ? undefined : {
1408
+ size: 'medium',
1409
+ themeColor: output.ratingType === 'positive' ? 'primary' : 'base',
1410
+ fillMode: 'flat',
1411
+ rounded: 'medium',
1412
+ title: 'Rate up',
1413
+ svgIcon: kendo_svg_icons_1.thumbUpOutlineIcon,
1414
+ "aria-hidden": "true"
1415
+ },
1416
+ themeColor: output.ratingType === 'positive' ? 'primary' : 'base',
1417
+ fillMode: 'flat',
1418
+ rounded: 'medium',
1419
+ title: 'Rate up',
1420
+ svgIcon: kendo_svg_icons_1.thumbUpOutlineIcon,
1421
+ "aria-hidden": "true",
1422
+ onClick: function onClick() {
1423
+ return _this.outputRating(output, 'positive');
1424
+ },
1425
+ on: _this2.v3 ? undefined : {
1426
+ "click": function onClick() {
1427
+ return _this.outputRating(output, 'positive');
1428
+ }
1429
+ }
1430
+ }), showOutputRating && h(kendo_vue_buttons_1.Button, {
1431
+ size: 'medium',
1432
+ attrs: _this2.v3 ? undefined : {
1433
+ size: 'medium',
1434
+ themeColor: output.ratingType === 'negative' ? 'primary' : 'base',
1435
+ fillMode: 'flat',
1436
+ rounded: 'medium',
1437
+ title: 'Rate down',
1438
+ svgIcon: kendo_svg_icons_1.thumbDownOutlineIcon,
1439
+ "aria-hidden": "true"
1440
+ },
1441
+ themeColor: output.ratingType === 'negative' ? 'primary' : 'base',
1442
+ fillMode: 'flat',
1443
+ rounded: 'medium',
1444
+ title: 'Rate down',
1445
+ svgIcon: kendo_svg_icons_1.thumbDownOutlineIcon,
1446
+ "aria-hidden": "true",
1447
+ onClick: function onClick() {
1448
+ return _this.outputRating(output, 'negative');
1449
+ },
1450
+ on: _this2.v3 ? undefined : {
1451
+ "click": function onClick() {
1452
+ return _this.outputRating(output, 'negative');
1453
+ }
1454
+ }
1455
+ })];
1456
+ } : [h(kendo_vue_buttons_1.Button, {
1457
+ size: 'medium',
1458
+ attrs: _this2.v3 ? undefined : {
1459
+ size: 'medium',
1460
+ themeColor: 'primary',
1461
+ fillMode: 'flat',
1462
+ rounded: 'medium',
1463
+ title: 'Copy',
1464
+ svgIcon: _this2.copyButtonIcon,
1465
+ "aria-hidden": "true"
1466
+ },
1467
+ themeColor: 'primary',
1468
+ fillMode: 'flat',
1469
+ rounded: 'medium',
1470
+ title: 'Copy',
1471
+ svgIcon: _this2.copyButtonIcon,
1472
+ "aria-hidden": "true",
1473
+ onClick: function onClick() {
1474
+ return _this.copyToClipboard(output);
1475
+ },
1476
+ on: _this2.v3 ? undefined : {
1477
+ "click": function onClick() {
1478
+ return _this.copyToClipboard(output);
1479
+ }
1480
+ }
1481
+ }, _this2.v3 ? function () {
1482
+ return ['Copy'];
1483
+ } : ['Copy']), h(kendo_vue_buttons_1.Button, {
1484
+ size: 'medium',
1485
+ attrs: _this2.v3 ? undefined : {
1486
+ size: 'medium',
1487
+ themeColor: 'base',
1488
+ fillMode: 'flat',
1489
+ rounded: 'medium',
1490
+ title: 'Retry',
1491
+ svgIcon: kendo_svg_icons_1.rotateIcon,
1492
+ "aria-hidden": "true"
1493
+ },
1494
+ themeColor: 'base',
1495
+ fillMode: 'flat',
1496
+ rounded: 'medium',
1497
+ title: 'Retry',
1498
+ svgIcon: kendo_svg_icons_1.rotateIcon,
1499
+ "aria-hidden": "true",
1500
+ onClick: function onClick() {
1501
+ return _this.retryPrompt(output);
1502
+ },
1503
+ on: _this2.v3 ? undefined : {
1504
+ "click": function onClick() {
1505
+ return _this.retryPrompt(output);
1506
+ }
1507
+ }
1508
+ }, _this2.v3 ? function () {
1509
+ return ['Retry'];
1510
+ } : ['Retry']), showOutputRating && h("span", {
1511
+ "class": "k-spacer"
1512
+ }), showOutputRating && h(kendo_vue_buttons_1.Button, {
1513
+ size: 'medium',
1514
+ attrs: _this2.v3 ? undefined : {
1515
+ size: 'medium',
1516
+ themeColor: output.ratingType === 'positive' ? 'primary' : 'base',
1517
+ fillMode: 'flat',
1518
+ rounded: 'medium',
1519
+ title: 'Rate up',
1520
+ svgIcon: kendo_svg_icons_1.thumbUpOutlineIcon,
1521
+ "aria-hidden": "true"
1522
+ },
1523
+ themeColor: output.ratingType === 'positive' ? 'primary' : 'base',
1524
+ fillMode: 'flat',
1525
+ rounded: 'medium',
1526
+ title: 'Rate up',
1527
+ svgIcon: kendo_svg_icons_1.thumbUpOutlineIcon,
1528
+ "aria-hidden": "true",
1529
+ onClick: function onClick() {
1530
+ return _this.outputRating(output, 'positive');
1531
+ },
1532
+ on: _this2.v3 ? undefined : {
1533
+ "click": function onClick() {
1534
+ return _this.outputRating(output, 'positive');
1535
+ }
1536
+ }
1537
+ }), showOutputRating && h(kendo_vue_buttons_1.Button, {
1538
+ size: 'medium',
1539
+ attrs: _this2.v3 ? undefined : {
1540
+ size: 'medium',
1541
+ themeColor: output.ratingType === 'negative' ? 'primary' : 'base',
1542
+ fillMode: 'flat',
1543
+ rounded: 'medium',
1544
+ title: 'Rate down',
1545
+ svgIcon: kendo_svg_icons_1.thumbDownOutlineIcon,
1546
+ "aria-hidden": "true"
1547
+ },
1548
+ themeColor: output.ratingType === 'negative' ? 'primary' : 'base',
1549
+ fillMode: 'flat',
1550
+ rounded: 'medium',
1551
+ title: 'Rate down',
1552
+ svgIcon: kendo_svg_icons_1.thumbDownOutlineIcon,
1553
+ "aria-hidden": "true",
1554
+ onClick: function onClick() {
1555
+ return _this.outputRating(output, 'negative');
1556
+ },
1557
+ on: _this2.v3 ? undefined : {
1558
+ "click": function onClick() {
1559
+ return _this.outputRating(output, 'negative');
1560
+ }
1561
+ }
1562
+ })])]);
1563
+ }, _this3) : h(kendo_vue_layout_1.Card, _this3.v3 ? function () {
1564
+ return [h(kendo_vue_layout_1.CardBody, _this3.v3 ? function () {
1565
+ return [ls.toLanguageString(main_1.aIPromptNoOutputs, main_1.messages[main_1.aIPromptNoOutputs])];
1566
+ } : [ls.toLanguageString(main_1.aIPromptNoOutputs, main_1.messages[main_1.aIPromptNoOutputs])])];
1567
+ } : [h(kendo_vue_layout_1.CardBody, _this3.v3 ? function () {
1568
+ return [ls.toLanguageString(main_1.aIPromptNoOutputs, main_1.messages[main_1.aIPromptNoOutputs])];
1569
+ } : [ls.toLanguageString(main_1.aIPromptNoOutputs, main_1.messages[main_1.aIPromptNoOutputs])])])])];
1570
+ } : [h("div", {
1571
+ "class": "k-card-list"
1572
+ }, [outputs && outputs.length > 0 ? outputs.map(function (output) {
1573
+ var _this2 = this;
1574
+ var _this = this;
1575
+ var outputCardRendering = kendo_vue_common_1.getTemplate.call(this, {
1576
+ h: h,
1577
+ template: card,
1578
+ defaultRendering: null,
1579
+ additionalProps: {
1580
+ output: output
1581
+ }
1582
+ });
1583
+ return outputCard ? outputCardRendering : h(kendo_vue_layout_1.Card, {
1584
+ key: output.id
1585
+ }, this.v3 ? function () {
1586
+ return [h(kendo_vue_layout_1.CardHeader, _this2.v3 ? function () {
1587
+ return [output.title && h(kendo_vue_layout_1.CardTitle, _this2.v3 ? function () {
1588
+ return [output.title];
1589
+ } : [output.title]), output.subTitle && h(kendo_vue_layout_1.CardSubtitle, _this2.v3 ? function () {
1590
+ return [output.subTitle];
1591
+ } : [output.subTitle])];
1592
+ } : [output.title && h(kendo_vue_layout_1.CardTitle, _this2.v3 ? function () {
1593
+ return [output.title];
1594
+ } : [output.title]), output.subTitle && h(kendo_vue_layout_1.CardSubtitle, _this2.v3 ? function () {
1595
+ return [output.subTitle];
1596
+ } : [output.subTitle])]), h(kendo_vue_layout_1.CardBody, _this2.v3 ? function () {
1597
+ return [output.responseContent];
1598
+ } : [output.responseContent]), h(kendo_vue_layout_1.CardActions, _this2.v3 ? function () {
1599
+ return [h(kendo_vue_buttons_1.Button, {
1600
+ size: 'medium',
1601
+ attrs: _this2.v3 ? undefined : {
1602
+ size: 'medium',
1603
+ themeColor: 'primary',
1604
+ fillMode: 'flat',
1605
+ rounded: 'medium',
1606
+ title: 'Copy',
1607
+ svgIcon: _this2.copyButtonIcon,
1608
+ "aria-hidden": "true"
1609
+ },
1610
+ themeColor: 'primary',
1611
+ fillMode: 'flat',
1612
+ rounded: 'medium',
1613
+ title: 'Copy',
1614
+ svgIcon: _this2.copyButtonIcon,
1615
+ "aria-hidden": "true",
1616
+ onClick: function onClick() {
1617
+ return _this.copyToClipboard(output);
1618
+ },
1619
+ on: _this2.v3 ? undefined : {
1620
+ "click": function onClick() {
1621
+ return _this.copyToClipboard(output);
1622
+ }
1623
+ }
1624
+ }, _this2.v3 ? function () {
1625
+ return ['Copy'];
1626
+ } : ['Copy']), h(kendo_vue_buttons_1.Button, {
1627
+ size: 'medium',
1628
+ attrs: _this2.v3 ? undefined : {
1629
+ size: 'medium',
1630
+ themeColor: 'base',
1631
+ fillMode: 'flat',
1632
+ rounded: 'medium',
1633
+ title: 'Retry',
1634
+ svgIcon: kendo_svg_icons_1.rotateIcon,
1635
+ "aria-hidden": "true"
1636
+ },
1637
+ themeColor: 'base',
1638
+ fillMode: 'flat',
1639
+ rounded: 'medium',
1640
+ title: 'Retry',
1641
+ svgIcon: kendo_svg_icons_1.rotateIcon,
1642
+ "aria-hidden": "true",
1643
+ onClick: function onClick() {
1644
+ return _this.retryPrompt(output);
1645
+ },
1646
+ on: _this2.v3 ? undefined : {
1647
+ "click": function onClick() {
1648
+ return _this.retryPrompt(output);
1649
+ }
1650
+ }
1651
+ }, _this2.v3 ? function () {
1652
+ return ['Retry'];
1653
+ } : ['Retry']), showOutputRating && h("span", {
1654
+ "class": "k-spacer"
1655
+ }), showOutputRating && h(kendo_vue_buttons_1.Button, {
1656
+ size: 'medium',
1657
+ attrs: _this2.v3 ? undefined : {
1658
+ size: 'medium',
1659
+ themeColor: output.ratingType === 'positive' ? 'primary' : 'base',
1660
+ fillMode: 'flat',
1661
+ rounded: 'medium',
1662
+ title: 'Rate up',
1663
+ svgIcon: kendo_svg_icons_1.thumbUpOutlineIcon,
1664
+ "aria-hidden": "true"
1665
+ },
1666
+ themeColor: output.ratingType === 'positive' ? 'primary' : 'base',
1667
+ fillMode: 'flat',
1668
+ rounded: 'medium',
1669
+ title: 'Rate up',
1670
+ svgIcon: kendo_svg_icons_1.thumbUpOutlineIcon,
1671
+ "aria-hidden": "true",
1672
+ onClick: function onClick() {
1673
+ return _this.outputRating(output, 'positive');
1674
+ },
1675
+ on: _this2.v3 ? undefined : {
1676
+ "click": function onClick() {
1677
+ return _this.outputRating(output, 'positive');
1678
+ }
1679
+ }
1680
+ }), showOutputRating && h(kendo_vue_buttons_1.Button, {
1681
+ size: 'medium',
1682
+ attrs: _this2.v3 ? undefined : {
1683
+ size: 'medium',
1684
+ themeColor: output.ratingType === 'negative' ? 'primary' : 'base',
1685
+ fillMode: 'flat',
1686
+ rounded: 'medium',
1687
+ title: 'Rate down',
1688
+ svgIcon: kendo_svg_icons_1.thumbDownOutlineIcon,
1689
+ "aria-hidden": "true"
1690
+ },
1691
+ themeColor: output.ratingType === 'negative' ? 'primary' : 'base',
1692
+ fillMode: 'flat',
1693
+ rounded: 'medium',
1694
+ title: 'Rate down',
1695
+ svgIcon: kendo_svg_icons_1.thumbDownOutlineIcon,
1696
+ "aria-hidden": "true",
1697
+ onClick: function onClick() {
1698
+ return _this.outputRating(output, 'negative');
1699
+ },
1700
+ on: _this2.v3 ? undefined : {
1701
+ "click": function onClick() {
1702
+ return _this.outputRating(output, 'negative');
1703
+ }
1704
+ }
1705
+ })];
1706
+ } : [h(kendo_vue_buttons_1.Button, {
1707
+ size: 'medium',
1708
+ attrs: _this2.v3 ? undefined : {
1709
+ size: 'medium',
1710
+ themeColor: 'primary',
1711
+ fillMode: 'flat',
1712
+ rounded: 'medium',
1713
+ title: 'Copy',
1714
+ svgIcon: _this2.copyButtonIcon,
1715
+ "aria-hidden": "true"
1716
+ },
1717
+ themeColor: 'primary',
1718
+ fillMode: 'flat',
1719
+ rounded: 'medium',
1720
+ title: 'Copy',
1721
+ svgIcon: _this2.copyButtonIcon,
1722
+ "aria-hidden": "true",
1723
+ onClick: function onClick() {
1724
+ return _this.copyToClipboard(output);
1725
+ },
1726
+ on: _this2.v3 ? undefined : {
1727
+ "click": function onClick() {
1728
+ return _this.copyToClipboard(output);
1729
+ }
1730
+ }
1731
+ }, _this2.v3 ? function () {
1732
+ return ['Copy'];
1733
+ } : ['Copy']), h(kendo_vue_buttons_1.Button, {
1734
+ size: 'medium',
1735
+ attrs: _this2.v3 ? undefined : {
1736
+ size: 'medium',
1737
+ themeColor: 'base',
1738
+ fillMode: 'flat',
1739
+ rounded: 'medium',
1740
+ title: 'Retry',
1741
+ svgIcon: kendo_svg_icons_1.rotateIcon,
1742
+ "aria-hidden": "true"
1743
+ },
1744
+ themeColor: 'base',
1745
+ fillMode: 'flat',
1746
+ rounded: 'medium',
1747
+ title: 'Retry',
1748
+ svgIcon: kendo_svg_icons_1.rotateIcon,
1749
+ "aria-hidden": "true",
1750
+ onClick: function onClick() {
1751
+ return _this.retryPrompt(output);
1752
+ },
1753
+ on: _this2.v3 ? undefined : {
1754
+ "click": function onClick() {
1755
+ return _this.retryPrompt(output);
1756
+ }
1757
+ }
1758
+ }, _this2.v3 ? function () {
1759
+ return ['Retry'];
1760
+ } : ['Retry']), showOutputRating && h("span", {
1761
+ "class": "k-spacer"
1762
+ }), showOutputRating && h(kendo_vue_buttons_1.Button, {
1763
+ size: 'medium',
1764
+ attrs: _this2.v3 ? undefined : {
1765
+ size: 'medium',
1766
+ themeColor: output.ratingType === 'positive' ? 'primary' : 'base',
1767
+ fillMode: 'flat',
1768
+ rounded: 'medium',
1769
+ title: 'Rate up',
1770
+ svgIcon: kendo_svg_icons_1.thumbUpOutlineIcon,
1771
+ "aria-hidden": "true"
1772
+ },
1773
+ themeColor: output.ratingType === 'positive' ? 'primary' : 'base',
1774
+ fillMode: 'flat',
1775
+ rounded: 'medium',
1776
+ title: 'Rate up',
1777
+ svgIcon: kendo_svg_icons_1.thumbUpOutlineIcon,
1778
+ "aria-hidden": "true",
1779
+ onClick: function onClick() {
1780
+ return _this.outputRating(output, 'positive');
1781
+ },
1782
+ on: _this2.v3 ? undefined : {
1783
+ "click": function onClick() {
1784
+ return _this.outputRating(output, 'positive');
1785
+ }
1786
+ }
1787
+ }), showOutputRating && h(kendo_vue_buttons_1.Button, {
1788
+ size: 'medium',
1789
+ attrs: _this2.v3 ? undefined : {
1790
+ size: 'medium',
1791
+ themeColor: output.ratingType === 'negative' ? 'primary' : 'base',
1792
+ fillMode: 'flat',
1793
+ rounded: 'medium',
1794
+ title: 'Rate down',
1795
+ svgIcon: kendo_svg_icons_1.thumbDownOutlineIcon,
1796
+ "aria-hidden": "true"
1797
+ },
1798
+ themeColor: output.ratingType === 'negative' ? 'primary' : 'base',
1799
+ fillMode: 'flat',
1800
+ rounded: 'medium',
1801
+ title: 'Rate down',
1802
+ svgIcon: kendo_svg_icons_1.thumbDownOutlineIcon,
1803
+ "aria-hidden": "true",
1804
+ onClick: function onClick() {
1805
+ return _this.outputRating(output, 'negative');
1806
+ },
1807
+ on: _this2.v3 ? undefined : {
1808
+ "click": function onClick() {
1809
+ return _this.outputRating(output, 'negative');
1810
+ }
1811
+ }
1812
+ })])];
1813
+ } : [h(kendo_vue_layout_1.CardHeader, _this2.v3 ? function () {
1814
+ return [output.title && h(kendo_vue_layout_1.CardTitle, _this2.v3 ? function () {
1815
+ return [output.title];
1816
+ } : [output.title]), output.subTitle && h(kendo_vue_layout_1.CardSubtitle, _this2.v3 ? function () {
1817
+ return [output.subTitle];
1818
+ } : [output.subTitle])];
1819
+ } : [output.title && h(kendo_vue_layout_1.CardTitle, _this2.v3 ? function () {
1820
+ return [output.title];
1821
+ } : [output.title]), output.subTitle && h(kendo_vue_layout_1.CardSubtitle, _this2.v3 ? function () {
1822
+ return [output.subTitle];
1823
+ } : [output.subTitle])]), h(kendo_vue_layout_1.CardBody, _this2.v3 ? function () {
1824
+ return [output.responseContent];
1825
+ } : [output.responseContent]), h(kendo_vue_layout_1.CardActions, _this2.v3 ? function () {
1826
+ return [h(kendo_vue_buttons_1.Button, {
1827
+ size: 'medium',
1828
+ attrs: _this2.v3 ? undefined : {
1829
+ size: 'medium',
1830
+ themeColor: 'primary',
1831
+ fillMode: 'flat',
1832
+ rounded: 'medium',
1833
+ title: 'Copy',
1834
+ svgIcon: _this2.copyButtonIcon,
1835
+ "aria-hidden": "true"
1836
+ },
1837
+ themeColor: 'primary',
1838
+ fillMode: 'flat',
1839
+ rounded: 'medium',
1840
+ title: 'Copy',
1841
+ svgIcon: _this2.copyButtonIcon,
1842
+ "aria-hidden": "true",
1843
+ onClick: function onClick() {
1844
+ return _this.copyToClipboard(output);
1845
+ },
1846
+ on: _this2.v3 ? undefined : {
1847
+ "click": function onClick() {
1848
+ return _this.copyToClipboard(output);
1849
+ }
1850
+ }
1851
+ }, _this2.v3 ? function () {
1852
+ return ['Copy'];
1853
+ } : ['Copy']), h(kendo_vue_buttons_1.Button, {
1854
+ size: 'medium',
1855
+ attrs: _this2.v3 ? undefined : {
1856
+ size: 'medium',
1857
+ themeColor: 'base',
1858
+ fillMode: 'flat',
1859
+ rounded: 'medium',
1860
+ title: 'Retry',
1861
+ svgIcon: kendo_svg_icons_1.rotateIcon,
1862
+ "aria-hidden": "true"
1863
+ },
1864
+ themeColor: 'base',
1865
+ fillMode: 'flat',
1866
+ rounded: 'medium',
1867
+ title: 'Retry',
1868
+ svgIcon: kendo_svg_icons_1.rotateIcon,
1869
+ "aria-hidden": "true",
1870
+ onClick: function onClick() {
1871
+ return _this.retryPrompt(output);
1872
+ },
1873
+ on: _this2.v3 ? undefined : {
1874
+ "click": function onClick() {
1875
+ return _this.retryPrompt(output);
1876
+ }
1877
+ }
1878
+ }, _this2.v3 ? function () {
1879
+ return ['Retry'];
1880
+ } : ['Retry']), showOutputRating && h("span", {
1881
+ "class": "k-spacer"
1882
+ }), showOutputRating && h(kendo_vue_buttons_1.Button, {
1883
+ size: 'medium',
1884
+ attrs: _this2.v3 ? undefined : {
1885
+ size: 'medium',
1886
+ themeColor: output.ratingType === 'positive' ? 'primary' : 'base',
1887
+ fillMode: 'flat',
1888
+ rounded: 'medium',
1889
+ title: 'Rate up',
1890
+ svgIcon: kendo_svg_icons_1.thumbUpOutlineIcon,
1891
+ "aria-hidden": "true"
1892
+ },
1893
+ themeColor: output.ratingType === 'positive' ? 'primary' : 'base',
1894
+ fillMode: 'flat',
1895
+ rounded: 'medium',
1896
+ title: 'Rate up',
1897
+ svgIcon: kendo_svg_icons_1.thumbUpOutlineIcon,
1898
+ "aria-hidden": "true",
1899
+ onClick: function onClick() {
1900
+ return _this.outputRating(output, 'positive');
1901
+ },
1902
+ on: _this2.v3 ? undefined : {
1903
+ "click": function onClick() {
1904
+ return _this.outputRating(output, 'positive');
1905
+ }
1906
+ }
1907
+ }), showOutputRating && h(kendo_vue_buttons_1.Button, {
1908
+ size: 'medium',
1909
+ attrs: _this2.v3 ? undefined : {
1910
+ size: 'medium',
1911
+ themeColor: output.ratingType === 'negative' ? 'primary' : 'base',
1912
+ fillMode: 'flat',
1913
+ rounded: 'medium',
1914
+ title: 'Rate down',
1915
+ svgIcon: kendo_svg_icons_1.thumbDownOutlineIcon,
1916
+ "aria-hidden": "true"
1917
+ },
1918
+ themeColor: output.ratingType === 'negative' ? 'primary' : 'base',
1919
+ fillMode: 'flat',
1920
+ rounded: 'medium',
1921
+ title: 'Rate down',
1922
+ svgIcon: kendo_svg_icons_1.thumbDownOutlineIcon,
1923
+ "aria-hidden": "true",
1924
+ onClick: function onClick() {
1925
+ return _this.outputRating(output, 'negative');
1926
+ },
1927
+ on: _this2.v3 ? undefined : {
1928
+ "click": function onClick() {
1929
+ return _this.outputRating(output, 'negative');
1930
+ }
1931
+ }
1932
+ })];
1933
+ } : [h(kendo_vue_buttons_1.Button, {
1934
+ size: 'medium',
1935
+ attrs: _this2.v3 ? undefined : {
1936
+ size: 'medium',
1937
+ themeColor: 'primary',
1938
+ fillMode: 'flat',
1939
+ rounded: 'medium',
1940
+ title: 'Copy',
1941
+ svgIcon: _this2.copyButtonIcon,
1942
+ "aria-hidden": "true"
1943
+ },
1944
+ themeColor: 'primary',
1945
+ fillMode: 'flat',
1946
+ rounded: 'medium',
1947
+ title: 'Copy',
1948
+ svgIcon: _this2.copyButtonIcon,
1949
+ "aria-hidden": "true",
1950
+ onClick: function onClick() {
1951
+ return _this.copyToClipboard(output);
1952
+ },
1953
+ on: _this2.v3 ? undefined : {
1954
+ "click": function onClick() {
1955
+ return _this.copyToClipboard(output);
1956
+ }
1957
+ }
1958
+ }, _this2.v3 ? function () {
1959
+ return ['Copy'];
1960
+ } : ['Copy']), h(kendo_vue_buttons_1.Button, {
1961
+ size: 'medium',
1962
+ attrs: _this2.v3 ? undefined : {
1963
+ size: 'medium',
1964
+ themeColor: 'base',
1965
+ fillMode: 'flat',
1966
+ rounded: 'medium',
1967
+ title: 'Retry',
1968
+ svgIcon: kendo_svg_icons_1.rotateIcon,
1969
+ "aria-hidden": "true"
1970
+ },
1971
+ themeColor: 'base',
1972
+ fillMode: 'flat',
1973
+ rounded: 'medium',
1974
+ title: 'Retry',
1975
+ svgIcon: kendo_svg_icons_1.rotateIcon,
1976
+ "aria-hidden": "true",
1977
+ onClick: function onClick() {
1978
+ return _this.retryPrompt(output);
1979
+ },
1980
+ on: _this2.v3 ? undefined : {
1981
+ "click": function onClick() {
1982
+ return _this.retryPrompt(output);
1983
+ }
1984
+ }
1985
+ }, _this2.v3 ? function () {
1986
+ return ['Retry'];
1987
+ } : ['Retry']), showOutputRating && h("span", {
1988
+ "class": "k-spacer"
1989
+ }), showOutputRating && h(kendo_vue_buttons_1.Button, {
1990
+ size: 'medium',
1991
+ attrs: _this2.v3 ? undefined : {
1992
+ size: 'medium',
1993
+ themeColor: output.ratingType === 'positive' ? 'primary' : 'base',
1994
+ fillMode: 'flat',
1995
+ rounded: 'medium',
1996
+ title: 'Rate up',
1997
+ svgIcon: kendo_svg_icons_1.thumbUpOutlineIcon,
1998
+ "aria-hidden": "true"
1999
+ },
2000
+ themeColor: output.ratingType === 'positive' ? 'primary' : 'base',
2001
+ fillMode: 'flat',
2002
+ rounded: 'medium',
2003
+ title: 'Rate up',
2004
+ svgIcon: kendo_svg_icons_1.thumbUpOutlineIcon,
2005
+ "aria-hidden": "true",
2006
+ onClick: function onClick() {
2007
+ return _this.outputRating(output, 'positive');
2008
+ },
2009
+ on: _this2.v3 ? undefined : {
2010
+ "click": function onClick() {
2011
+ return _this.outputRating(output, 'positive');
2012
+ }
2013
+ }
2014
+ }), showOutputRating && h(kendo_vue_buttons_1.Button, {
2015
+ size: 'medium',
2016
+ attrs: _this2.v3 ? undefined : {
2017
+ size: 'medium',
2018
+ themeColor: output.ratingType === 'negative' ? 'primary' : 'base',
2019
+ fillMode: 'flat',
2020
+ rounded: 'medium',
2021
+ title: 'Rate down',
2022
+ svgIcon: kendo_svg_icons_1.thumbDownOutlineIcon,
2023
+ "aria-hidden": "true"
2024
+ },
2025
+ themeColor: output.ratingType === 'negative' ? 'primary' : 'base',
2026
+ fillMode: 'flat',
2027
+ rounded: 'medium',
2028
+ title: 'Rate down',
2029
+ svgIcon: kendo_svg_icons_1.thumbDownOutlineIcon,
2030
+ "aria-hidden": "true",
2031
+ onClick: function onClick() {
2032
+ return _this.outputRating(output, 'negative');
2033
+ },
2034
+ on: _this2.v3 ? undefined : {
2035
+ "click": function onClick() {
2036
+ return _this.outputRating(output, 'negative');
2037
+ }
2038
+ }
2039
+ })])]);
2040
+ }, _this3) : h(kendo_vue_layout_1.Card, _this3.v3 ? function () {
2041
+ return [h(kendo_vue_layout_1.CardBody, _this3.v3 ? function () {
2042
+ return [ls.toLanguageString(main_1.aIPromptNoOutputs, main_1.messages[main_1.aIPromptNoOutputs])];
2043
+ } : [ls.toLanguageString(main_1.aIPromptNoOutputs, main_1.messages[main_1.aIPromptNoOutputs])])];
2044
+ } : [h(kendo_vue_layout_1.CardBody, _this3.v3 ? function () {
2045
+ return [ls.toLanguageString(main_1.aIPromptNoOutputs, main_1.messages[main_1.aIPromptNoOutputs])];
2046
+ } : [ls.toLanguageString(main_1.aIPromptNoOutputs, main_1.messages[main_1.aIPromptNoOutputs])])])])])])
2047
+ );
2048
+ }
2049
+ };
2050
+ exports.AIPromptOutputViewVue2 = AIPromptOutputViewVue2;
2051
+ /**
2052
+ * @hidden
2053
+ */
2054
+ var AIPromptOutputView = AIPromptOutputViewVue2;
2055
+ exports.AIPromptOutputView = AIPromptOutputView;