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