@ckeditor/ckeditor5-ai 40.0.0 → 40.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +2 -2
- package/build/ai.js +2 -2
- package/build/translations/af.js +1 -1
- package/build/translations/ar.js +1 -1
- package/build/translations/bg.js +1 -1
- package/build/translations/bn.js +1 -1
- package/build/translations/bs.js +1 -1
- package/build/translations/ca.js +1 -1
- package/build/translations/cs.js +1 -1
- package/build/translations/da.js +1 -1
- package/build/translations/de-ch.js +1 -1
- package/build/translations/de.js +1 -1
- package/build/translations/el.js +1 -1
- package/build/translations/en-au.js +1 -1
- package/build/translations/es-co.js +1 -1
- package/build/translations/es.js +1 -1
- package/build/translations/et.js +1 -1
- package/build/translations/fa.js +1 -1
- package/build/translations/fi.js +1 -1
- package/build/translations/fr.js +1 -1
- package/build/translations/gl.js +1 -1
- package/build/translations/he.js +1 -1
- package/build/translations/hi.js +1 -1
- package/build/translations/hr.js +1 -1
- package/build/translations/hu.js +1 -1
- package/build/translations/id.js +1 -1
- package/build/translations/it.js +1 -1
- package/build/translations/ja.js +1 -1
- package/build/translations/jv.js +1 -1
- package/build/translations/ko.js +1 -1
- package/build/translations/lt.js +1 -1
- package/build/translations/lv.js +1 -1
- package/build/translations/ms.js +1 -1
- package/build/translations/nl.js +1 -1
- package/build/translations/no.js +1 -1
- package/build/translations/pl.js +1 -1
- package/build/translations/pt-br.js +1 -1
- package/build/translations/pt.js +1 -1
- package/build/translations/ro.js +1 -1
- package/build/translations/ru.js +1 -1
- package/build/translations/sk.js +1 -1
- package/build/translations/sr-latn.js +1 -1
- package/build/translations/sr.js +1 -1
- package/build/translations/sv.js +1 -1
- package/build/translations/th.js +1 -1
- package/build/translations/tk.js +1 -1
- package/build/translations/tr.js +1 -1
- package/build/translations/ug.js +1 -1
- package/build/translations/uk.js +1 -1
- package/build/translations/ur.js +1 -1
- package/build/translations/uz.js +1 -0
- package/build/translations/vi.js +1 -1
- package/build/translations/zh-cn.js +1 -1
- package/build/translations/zh.js +1 -1
- package/lang/contexts.json +1 -0
- package/lang/translations/af.po +60 -16
- package/lang/translations/ar.po +60 -16
- package/lang/translations/bg.po +60 -16
- package/lang/translations/bn.po +60 -16
- package/lang/translations/bs.po +60 -16
- package/lang/translations/ca.po +60 -16
- package/lang/translations/cs.po +60 -16
- package/lang/translations/da.po +60 -16
- package/lang/translations/de-ch.po +60 -16
- package/lang/translations/de.po +60 -16
- package/lang/translations/el.po +60 -16
- package/lang/translations/en-au.po +60 -16
- package/lang/translations/en.po +60 -16
- package/lang/translations/es-co.po +60 -16
- package/lang/translations/es.po +60 -16
- package/lang/translations/et.po +60 -16
- package/lang/translations/fa.po +60 -16
- package/lang/translations/fi.po +60 -16
- package/lang/translations/fr.po +60 -16
- package/lang/translations/gl.po +60 -16
- package/lang/translations/he.po +60 -16
- package/lang/translations/hi.po +60 -16
- package/lang/translations/hr.po +93 -49
- package/lang/translations/hu.po +60 -16
- package/lang/translations/id.po +60 -16
- package/lang/translations/it.po +60 -16
- package/lang/translations/ja.po +60 -16
- package/lang/translations/jv.po +60 -16
- package/lang/translations/ko.po +60 -16
- package/lang/translations/lt.po +60 -16
- package/lang/translations/lv.po +60 -16
- package/lang/translations/ms.po +60 -16
- package/lang/translations/nl.po +60 -16
- package/lang/translations/no.po +60 -16
- package/lang/translations/pl.po +60 -16
- package/lang/translations/pt-br.po +60 -16
- package/lang/translations/pt.po +60 -16
- package/lang/translations/ro.po +60 -16
- package/lang/translations/ru.po +60 -16
- package/lang/translations/sk.po +60 -16
- package/lang/translations/sr-latn.po +60 -16
- package/lang/translations/sr.po +60 -16
- package/lang/translations/sv.po +60 -16
- package/lang/translations/th.po +60 -16
- package/lang/translations/tk.po +60 -16
- package/lang/translations/tr.po +60 -16
- package/lang/translations/ug.po +94 -50
- package/lang/translations/uk.po +60 -16
- package/lang/translations/ur.po +60 -16
- package/lang/translations/uz.po +226 -0
- package/lang/translations/vi.po +60 -16
- package/lang/translations/zh-cn.po +60 -16
- package/lang/translations/zh.po +60 -16
- package/package.json +3 -3
- package/src/aiassistant.d.ts +458 -419
- package/src/aiassistant.js +1 -1
- package/src/aiassistantediting.d.ts +45 -45
- package/src/aiassistantediting.js +1 -1
- package/src/aiassistantui.d.ts +44 -46
- package/src/aiassistantui.js +1 -1
- package/src/aiconnector.d.ts +45 -44
- package/src/aiconnector.js +1 -1
- package/src/augmentation.d.ts +26 -26
- package/src/index.d.ts +9 -9
- package/src/ui/aiassistantcontroller.d.ts +96 -59
- package/src/ui/aiassistantcontroller.js +1 -1
- package/src/ui/dropdown/aicommandslistview.d.ts +22 -22
- package/src/ui/dropdown/aicommandslistview.js +1 -1
- package/src/ui/dropdown/buttonlabelwithhighlightview.d.ts +29 -29
- package/src/ui/dropdown/buttonlabelwithhighlightview.js +1 -1
- package/src/ui/dropdown/labelwithhighlightview.d.ts +25 -0
- package/src/ui/dropdown/labelwithhighlightview.js +23 -0
- package/src/ui/form/aiformcontentarea.d.ts +48 -48
- package/src/ui/form/aiformcontentarea.js +1 -1
- package/src/ui/form/aiformerrorview.d.ts +26 -26
- package/src/ui/form/aiformerrorview.js +1 -1
- package/src/ui/form/aiformpromptview.d.ts +46 -46
- package/src/ui/form/aiformpromptview.js +1 -1
- package/src/ui/form/aiformtoolbarview.d.ts +54 -41
- package/src/ui/form/aiformtoolbarview.js +1 -1
- package/src/ui/form/aiformview.d.ts +142 -131
- package/src/ui/form/aiformview.js +1 -1
- package/src/ui/form/aihistorylistitemview.d.ts +18 -18
- package/src/ui/form/aihistorylistitemview.js +1 -1
- package/src/ui/form/aihistorylistview.d.ts +35 -35
- package/src/ui/form/aihistorylistview.js +1 -1
- package/src/ui/form/prompthistory.d.ts +20 -20
- package/src/ui/form/prompthistory.js +1 -1
- package/src/ui/showaiassistantcommand.d.ts +26 -26
- package/src/ui/showaiassistantcommand.js +1 -1
- package/src/utils/common-translations.d.ts +9 -9
- package/src/utils/common-translations.js +1 -1
- package/theme/ai-form.css +58 -11
- package/theme/ai.css +20 -15
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @module ai/ui/aiformpromptview
|
|
7
|
-
*/
|
|
8
|
-
import { type Locale } from 'ckeditor5/src/utils';
|
|
9
|
-
import { AutocompleteView, ButtonView, type TextareaView, type AutocompleteViewConfig } from 'ckeditor5/src/ui';
|
|
10
|
-
/**
|
|
11
|
-
* A textarea field allowing to ask AI.
|
|
12
|
-
*/
|
|
13
|
-
export default class AIFormPromptView extends AutocompleteView<TextareaView> {
|
|
14
|
-
/**
|
|
15
|
-
* The submit button view.
|
|
16
|
-
*/
|
|
17
|
-
submitButtonView: ButtonView;
|
|
18
|
-
/**
|
|
19
|
-
* The button that shows and hides the history autocomplete panel.
|
|
20
|
-
*/
|
|
21
|
-
showHistoryButtonView: ButtonView;
|
|
22
|
-
/**
|
|
23
|
-
* Creates `AIFormPromptView` instance.
|
|
24
|
-
*
|
|
25
|
-
* @param locale The localization services instance.
|
|
26
|
-
* @param config Autocomplete config.
|
|
27
|
-
*/
|
|
28
|
-
constructor(locale: Locale, config: AutocompleteViewConfig<TextareaView>);
|
|
29
|
-
/**
|
|
30
|
-
* @inheritDoc
|
|
31
|
-
*/
|
|
32
|
-
render(): void;
|
|
33
|
-
/**
|
|
34
|
-
* @inheritDoc
|
|
35
|
-
*/
|
|
36
|
-
focus(direction?: 1 | -1): void;
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* Fired when the query is submitted by the user.
|
|
40
|
-
*
|
|
41
|
-
* @eventName ~AIFormPromptView#submit
|
|
42
|
-
*/
|
|
43
|
-
export type AIFormPromptViewSubmitEvent = {
|
|
44
|
-
name: 'submit';
|
|
45
|
-
args: [query: string];
|
|
46
|
-
};
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module ai/ui/aiformpromptview
|
|
7
|
+
*/
|
|
8
|
+
import { type Locale } from 'ckeditor5/src/utils';
|
|
9
|
+
import { AutocompleteView, ButtonView, type TextareaView, type AutocompleteViewConfig } from 'ckeditor5/src/ui';
|
|
10
|
+
/**
|
|
11
|
+
* A textarea field allowing to ask AI.
|
|
12
|
+
*/
|
|
13
|
+
export default class AIFormPromptView extends AutocompleteView<TextareaView> {
|
|
14
|
+
/**
|
|
15
|
+
* The submit button view.
|
|
16
|
+
*/
|
|
17
|
+
submitButtonView: ButtonView;
|
|
18
|
+
/**
|
|
19
|
+
* The button that shows and hides the history autocomplete panel.
|
|
20
|
+
*/
|
|
21
|
+
showHistoryButtonView: ButtonView;
|
|
22
|
+
/**
|
|
23
|
+
* Creates `AIFormPromptView` instance.
|
|
24
|
+
*
|
|
25
|
+
* @param locale The localization services instance.
|
|
26
|
+
* @param config Autocomplete config.
|
|
27
|
+
*/
|
|
28
|
+
constructor(locale: Locale, config: AutocompleteViewConfig<TextareaView>);
|
|
29
|
+
/**
|
|
30
|
+
* @inheritDoc
|
|
31
|
+
*/
|
|
32
|
+
render(): void;
|
|
33
|
+
/**
|
|
34
|
+
* @inheritDoc
|
|
35
|
+
*/
|
|
36
|
+
focus(direction?: 1 | -1): void;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Fired when the query is submitted by the user.
|
|
40
|
+
*
|
|
41
|
+
* @eventName ~AIFormPromptView#submit
|
|
42
|
+
*/
|
|
43
|
+
export type AIFormPromptViewSubmitEvent = {
|
|
44
|
+
name: 'submit';
|
|
45
|
+
args: [query: string];
|
|
46
|
+
};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4894=['width','locale','_createShowHistoryButton','resultsView','left','minRows','fieldView','queryView','value','focusCycler','uiLanguageDirection','add','excludeScrollbarsAndBorders','isEnabled','submitButtonView','ck-ai-form__toggle-history','style','bind','focus','right','_createSubmitButton','enter','execute','isVisible','focusLast','fire','window','showHistoryButtonView','submit','filteredView','set','history','render','keystrokes','focusableChildren','fieldWrapperChildren','update','rtl','isOn','element','focusFirst','ck-ai-form__submit'];(function(_0x551fda,_0x48948b){const _0x21646c=function(_0x47268c){while(--_0x47268c){_0x551fda['push'](_0x551fda['shift']());}};_0x21646c(++_0x48948b);}(_0x4894,0x1c9));const _0x2164=function(_0x551fda,_0x48948b){_0x551fda=_0x551fda-0x0;let _0x21646c=_0x4894[_0x551fda];return _0x21646c;};import{Rect as _0x3749bf,global as _0x455126,isVisible as _0x21dfb4}from'ckeditor5/src/utils';import{AutocompleteView as _0x1e9f0c,ButtonView as _0x2bbd04}from'ckeditor5/src/ui';import{icons as _0x5597ac}from'ckeditor5/src/core';import{escape as _0x4b24d0}from'lodash-es';import{getTranslation as _0x1b8e72}from'../../utils/common-translations';import _0x3884a5 from'../../../theme/icons/submit.svg';export default class tt extends _0x1e9f0c{constructor(_0x53cf65,_0x11f8b2){super(_0x53cf65,_0x11f8b2),this['queryView']['fieldView'][_0x2164('0xa')]=0x1,this['queryView']['fieldView']['maxRows']=0x3,this[_0x2164('0x13')]=this[_0x2164('0x19')](),this[_0x2164('0x20')]=this[_0x2164('0x7')](),this[_0x2164('0x27')][_0x2164('0x10')](this[_0x2164('0x20')],0x1),this[_0x2164('0x27')]['add'](this['submitButtonView']);}[_0x2164('0x25')](){super[_0x2164('0x25')](),this[_0x2164('0xc')][_0x2164('0x28')][_0x2164('0x10')](this['showHistoryButtonView']),this['children'][_0x2164('0x10')](this['submitButtonView']),this[_0x2164('0x26')][_0x2164('0x23')](_0x2164('0x1a'),(_0x492274,_0x256922)=>{_0x492274['target']==this[_0x2164('0xc')][_0x2164('0xb')][_0x2164('0x2')]&&(this[_0x2164('0x21')](),_0x256922());});}['_createSubmitButton'](){const _0x37df3f=new _0x2bbd04(this['locale']),_0x4e9f87=this[_0x2164('0x6')];return _0x37df3f[_0x2164('0x23')]({'icon':_0x3884a5,'label':_0x1b8e72(_0x4e9f87,'Submit'),'isVisible':!0x0,'tooltip':!0x0,'class':_0x2164('0x4')}),_0x37df3f['on'](_0x2164('0x1b'),()=>{this[_0x2164('0x21')]();}),_0x37df3f[_0x2164('0x16')](_0x2164('0x12'))['to'](this[_0x2164('0xc')][_0x2164('0xb')],'isEmpty',this,_0x2164('0x12'),(_0xb3bb7c,_0x4b13e1)=>!_0xb3bb7c&&_0x4b13e1),_0x37df3f;}['_createShowHistoryButton'](){const _0x566d1f=new _0x2bbd04(this['locale']),_0x41b3fb=this[_0x2164('0x8')],_0xe11ff0=this['locale'];_0x566d1f[_0x2164('0x23')]({'label':_0x1b8e72(_0xe11ff0,'History'),'withText':!0x1,'icon':_0x5597ac[_0x2164('0x24')],'tooltip':!0x0,'tooltipPosition':'sw','class':_0x2164('0x14')}),_0x566d1f[_0x2164('0x16')](_0x2164('0x1'))['to'](_0x41b3fb,_0x2164('0x1c')),_0x566d1f[_0x2164('0x16')](_0x2164('0x12'))['to'](this,_0x2164('0x12')),_0x566d1f['on'](_0x2164('0x1b'),()=>{_0x41b3fb[_0x2164('0x1c')]=!_0x41b3fb[_0x2164('0x1c')],_0x41b3fb['isVisible']?this[_0x2164('0x22')][_0x2164('0x17')]():this['focus']();});const _0x1a4e11=()=>{_0x455126[_0x2164('0x1f')]['requestAnimationFrame'](()=>{if(_0x21dfb4(this[_0x2164('0x2')])){const _0x44dc56=new _0x3749bf(this['queryView']['fieldView'][_0x2164('0x2')]),_0x1d16aa=_0x44dc56[_0x2164('0x5')],_0x7dcde9=_0x2164('0x0')===_0xe11ff0[_0x2164('0xf')]?_0x2164('0x9'):_0x2164('0x18');_0x44dc56[_0x2164('0x11')](),_0x566d1f[_0x2164('0x2')][_0x2164('0x15')][_0x7dcde9]=_0x1d16aa-_0x44dc56[_0x2164('0x5')]+0x1+'px';}});};return this['queryView'][_0x2164('0xb')]['on'](_0x2164('0x29'),_0x1a4e11),this['on'](_0x2164('0x25'),_0x1a4e11),_0x566d1f;}['submit'](){const _0x5a30c2=this[_0x2164('0xc')][_0x2164('0xb')][_0x2164('0x2')][_0x2164('0xd')];this[_0x2164('0x1e')]('submit',_0x4b24d0(_0x5a30c2));}[_0x2164('0x17')](_0xcf91a8){-0x1===_0xcf91a8?this[_0x2164('0xe')][_0x2164('0x1d')]():this[_0x2164('0xe')][_0x2164('0x3')]();}}
|
|
@@ -1,41 +1,54 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @module ai/ui/aiformtoolbarview
|
|
7
|
-
*/
|
|
8
|
-
import type { Locale } from 'ckeditor5/src/utils';
|
|
9
|
-
import { ToolbarView, ButtonView } from 'ckeditor5/src/ui';
|
|
10
|
-
/**
|
|
11
|
-
*
|
|
12
|
-
*/
|
|
13
|
-
export
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
*
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module ai/ui/aiformtoolbarview
|
|
7
|
+
*/
|
|
8
|
+
import type { Locale } from 'ckeditor5/src/utils';
|
|
9
|
+
import { ToolbarView, ButtonView } from 'ckeditor5/src/ui';
|
|
10
|
+
/**
|
|
11
|
+
* The action name affecting the label of {@link ~AIFormToolbarView#replaceButton}.
|
|
12
|
+
*/
|
|
13
|
+
export declare enum AIFormToolbarViewMainAction {
|
|
14
|
+
REPLACE = "replace",
|
|
15
|
+
INSERT = "insert"
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* A class representing the text area view of the AI assistant.
|
|
19
|
+
*/
|
|
20
|
+
export default class AIFormToolbarView extends ToolbarView {
|
|
21
|
+
/**
|
|
22
|
+
* Controls whether the toolbar is visible.
|
|
23
|
+
*
|
|
24
|
+
* @observable
|
|
25
|
+
* @default false
|
|
26
|
+
*/
|
|
27
|
+
isVisible: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Button that is used to replace the selected content by the generated one.
|
|
30
|
+
*/
|
|
31
|
+
replaceButton: ButtonView;
|
|
32
|
+
/**
|
|
33
|
+
* Button that is used to insert the generated content below the selection.
|
|
34
|
+
*/
|
|
35
|
+
insertButton: ButtonView;
|
|
36
|
+
/**
|
|
37
|
+
* Button that is used to regenerate the response.
|
|
38
|
+
*/
|
|
39
|
+
tryAgainButton: ButtonView;
|
|
40
|
+
/**
|
|
41
|
+
* Button that is used to stop the processing of the request.
|
|
42
|
+
*/
|
|
43
|
+
stopButton: ButtonView;
|
|
44
|
+
/**
|
|
45
|
+
* The action name affecting the label of {@link #replaceButton}.
|
|
46
|
+
*
|
|
47
|
+
* @default 'replace'
|
|
48
|
+
*/
|
|
49
|
+
mainAction: AIFormToolbarViewMainAction;
|
|
50
|
+
/**
|
|
51
|
+
* @inheritDoc
|
|
52
|
+
*/
|
|
53
|
+
constructor(locale: Locale);
|
|
54
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x48b8=['stopButton','insert','items','AI_','_createButton','Try\x20again','insertButton','tryAgainButton','locale','replaceButton','set','toUpperCase','isVisible','bindTemplate','ck-button-action','bind','Insert\x20below','REPLACE','mainAction','addMany','_CONTENT'];(function(_0x47e8d6,_0x48b88b){const _0x62d03=function(_0x5c84c0){while(--_0x5c84c0){_0x47e8d6['push'](_0x47e8d6['shift']());}};_0x62d03(++_0x48b88b);}(_0x48b8,0x192));const _0x62d0=function(_0x47e8d6,_0x48b88b){_0x47e8d6=_0x47e8d6-0x0;let _0x62d03=_0x48b8[_0x47e8d6];return _0x62d03;};import{ToolbarView as _0x52f42f,ButtonView as _0x34f683}from'ckeditor5/src/ui';import{getTranslation as _0x1db11e}from'../../utils/common-translations';export var AIFormToolbarViewMainAction;!function(_0x1dfb7d){_0x1dfb7d[_0x62d0('0xe')]='replace',_0x1dfb7d['INSERT']=_0x62d0('0x13');}(AIFormToolbarViewMainAction||(AIFormToolbarViewMainAction={}));export default class ti extends _0x52f42f{constructor(_0x194ad9){super(_0x194ad9),this[_0x62d0('0x7')](_0x62d0('0x9'),!0x1),this[_0x62d0('0x7')](_0x62d0('0xf'),AIFormToolbarViewMainAction[_0x62d0('0xe')]),this[_0x62d0('0x6')]=this[_0x62d0('0x1')]('',_0x62d0('0xb')),this['replaceButton'][_0x62d0('0xc')]('label')['to'](this,_0x62d0('0xf'),_0x683105=>_0x1db11e(_0x194ad9,_0x62d0('0x0')+_0x683105[_0x62d0('0x8')]()+_0x62d0('0x11'))),this[_0x62d0('0x3')]=this['_createButton'](_0x1db11e(_0x194ad9,_0x62d0('0xd'))),this[_0x62d0('0x4')]=this['_createButton'](_0x1db11e(_0x194ad9,_0x62d0('0x2'))),this[_0x62d0('0x12')]=this[_0x62d0('0x1')](_0x1db11e(_0x194ad9,'Stop'));const _0x5038a1=this[_0x62d0('0xa')];this['extendTemplate']({'attributes':{'class':['ck-ai-form__toolbar',_0x5038a1['if'](_0x62d0('0x9'),'ck-hidden',_0x5b0eca=>!_0x5b0eca)]}}),this[_0x62d0('0x14')][_0x62d0('0x10')]([this[_0x62d0('0x6')],this[_0x62d0('0x3')],this[_0x62d0('0x4')],this[_0x62d0('0x12')]]);}['_createButton'](_0x32fc28,_0x285a7b){const _0x2de9a0=new _0x34f683(this[_0x62d0('0x5')]);return _0x2de9a0['set']({'label':_0x32fc28,'class':_0x285a7b||'','isVisible':!0x0,'withText':!0x0}),_0x2de9a0;}}
|
|
@@ -1,131 +1,142 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @module ai/ui/aiformview
|
|
7
|
-
*/
|
|
8
|
-
import { FocusTracker, KeystrokeHandler, type Locale } from 'ckeditor5/src/utils';
|
|
9
|
-
import { View, FormHeaderView } from 'ckeditor5/src/ui';
|
|
10
|
-
import AIFormToolbarView from './aiformtoolbarview';
|
|
11
|
-
import AIFormContentArea from './aiformcontentarea';
|
|
12
|
-
import AIFormErrorView from './aiformerrorview';
|
|
13
|
-
import AIFormPromptView from './aiformpromptview';
|
|
14
|
-
/**
|
|
15
|
-
* A class representing the form view of the AI assistant.
|
|
16
|
-
*/
|
|
17
|
-
export default class AIFormView extends View {
|
|
18
|
-
/**
|
|
19
|
-
* Tracks information about the DOM focus in the form.
|
|
20
|
-
*
|
|
21
|
-
* @readonly
|
|
22
|
-
*/
|
|
23
|
-
focusTracker: FocusTracker;
|
|
24
|
-
/**
|
|
25
|
-
* An instance of the {@link module:utils/keystrokehandler~KeystrokeHandler}.
|
|
26
|
-
*
|
|
27
|
-
* @readonly
|
|
28
|
-
*/
|
|
29
|
-
keystrokes: KeystrokeHandler;
|
|
30
|
-
/**
|
|
31
|
-
* The view that represent the header of the form.
|
|
32
|
-
*/
|
|
33
|
-
header: FormHeaderView;
|
|
34
|
-
/**
|
|
35
|
-
* The text area view that is used to display AI response.
|
|
36
|
-
*/
|
|
37
|
-
contentArea: AIFormContentArea;
|
|
38
|
-
/**
|
|
39
|
-
* Toolbar view containing button views that manage the AI response and this form itself.
|
|
40
|
-
*/
|
|
41
|
-
toolbar: AIFormToolbarView;
|
|
42
|
-
/**
|
|
43
|
-
* The component used for handling the user's query, including history and submit buttons.
|
|
44
|
-
*/
|
|
45
|
-
promptView: AIFormPromptView;
|
|
46
|
-
/**
|
|
47
|
-
* View that is used to display the error message.
|
|
48
|
-
*/
|
|
49
|
-
errorView: AIFormErrorView;
|
|
50
|
-
/**
|
|
51
|
-
* The prompt text can be configured either during construction when the AI command has been selected,
|
|
52
|
-
* or later by submitting the {@link #labeledInput}, if it hasn't been previously initialized.
|
|
53
|
-
* After setting this value the AI request is triggered.
|
|
54
|
-
*/
|
|
55
|
-
prompt: string;
|
|
56
|
-
/**
|
|
57
|
-
* The value that is generated after user submitting the user prompt.
|
|
58
|
-
*/
|
|
59
|
-
value: string;
|
|
60
|
-
/**
|
|
61
|
-
* Flag that indicates if the AI assistant form view is enabled or disabled.
|
|
62
|
-
*
|
|
63
|
-
* If it is disabled, all interactive elements of this view are disabled as well.
|
|
64
|
-
*/
|
|
65
|
-
isEnabled: boolean;
|
|
66
|
-
/**
|
|
67
|
-
* Indicates if the AI request is processing.
|
|
68
|
-
*/
|
|
69
|
-
isProcessing: boolean;
|
|
70
|
-
/**
|
|
71
|
-
* Indicates if the AI request failed.
|
|
72
|
-
*/
|
|
73
|
-
isError: boolean;
|
|
74
|
-
/**
|
|
75
|
-
*
|
|
76
|
-
*
|
|
77
|
-
* @
|
|
78
|
-
*
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
*
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
*
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
*
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
*
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module ai/ui/aiformview
|
|
7
|
+
*/
|
|
8
|
+
import { FocusTracker, KeystrokeHandler, type Locale } from 'ckeditor5/src/utils';
|
|
9
|
+
import { View, FormHeaderView } from 'ckeditor5/src/ui';
|
|
10
|
+
import AIFormToolbarView, { AIFormToolbarViewMainAction } from './aiformtoolbarview';
|
|
11
|
+
import AIFormContentArea from './aiformcontentarea';
|
|
12
|
+
import AIFormErrorView from './aiformerrorview';
|
|
13
|
+
import AIFormPromptView from './aiformpromptview';
|
|
14
|
+
/**
|
|
15
|
+
* A class representing the form view of the AI assistant.
|
|
16
|
+
*/
|
|
17
|
+
export default class AIFormView extends View {
|
|
18
|
+
/**
|
|
19
|
+
* Tracks information about the DOM focus in the form.
|
|
20
|
+
*
|
|
21
|
+
* @readonly
|
|
22
|
+
*/
|
|
23
|
+
focusTracker: FocusTracker;
|
|
24
|
+
/**
|
|
25
|
+
* An instance of the {@link module:utils/keystrokehandler~KeystrokeHandler}.
|
|
26
|
+
*
|
|
27
|
+
* @readonly
|
|
28
|
+
*/
|
|
29
|
+
keystrokes: KeystrokeHandler;
|
|
30
|
+
/**
|
|
31
|
+
* The view that represent the header of the form.
|
|
32
|
+
*/
|
|
33
|
+
header: FormHeaderView;
|
|
34
|
+
/**
|
|
35
|
+
* The text area view that is used to display AI response.
|
|
36
|
+
*/
|
|
37
|
+
contentArea: AIFormContentArea;
|
|
38
|
+
/**
|
|
39
|
+
* Toolbar view containing button views that manage the AI response and this form itself.
|
|
40
|
+
*/
|
|
41
|
+
toolbar: AIFormToolbarView;
|
|
42
|
+
/**
|
|
43
|
+
* The component used for handling the user's query, including history and submit buttons.
|
|
44
|
+
*/
|
|
45
|
+
promptView: AIFormPromptView;
|
|
46
|
+
/**
|
|
47
|
+
* View that is used to display the error message.
|
|
48
|
+
*/
|
|
49
|
+
errorView: AIFormErrorView;
|
|
50
|
+
/**
|
|
51
|
+
* The prompt text can be configured either during construction when the AI command has been selected,
|
|
52
|
+
* or later by submitting the {@link #labeledInput}, if it hasn't been previously initialized.
|
|
53
|
+
* After setting this value the AI request is triggered.
|
|
54
|
+
*/
|
|
55
|
+
prompt: string;
|
|
56
|
+
/**
|
|
57
|
+
* The value that is generated after user submitting the user prompt.
|
|
58
|
+
*/
|
|
59
|
+
value: string;
|
|
60
|
+
/**
|
|
61
|
+
* Flag that indicates if the AI assistant form view is enabled or disabled.
|
|
62
|
+
*
|
|
63
|
+
* If it is disabled, all interactive elements of this view are disabled as well.
|
|
64
|
+
*/
|
|
65
|
+
isEnabled: boolean;
|
|
66
|
+
/**
|
|
67
|
+
* Indicates if the AI request is processing.
|
|
68
|
+
*/
|
|
69
|
+
isProcessing: boolean;
|
|
70
|
+
/**
|
|
71
|
+
* Indicates if the AI request failed.
|
|
72
|
+
*/
|
|
73
|
+
isError: boolean;
|
|
74
|
+
/**
|
|
75
|
+
* The action name for the main insertion button in the {@link #toolbar}.
|
|
76
|
+
*
|
|
77
|
+
* See {@link module:ai/ui/aiformtoolbarview~AIFormToolbarView#replaceButton}.
|
|
78
|
+
*
|
|
79
|
+
* @default 'replace'
|
|
80
|
+
*/
|
|
81
|
+
mainAction: AIFormToolbarViewMainAction;
|
|
82
|
+
/**
|
|
83
|
+
* Creates an instance of the {@link module:ai/ui/aiformview~AIFormView} class.
|
|
84
|
+
*
|
|
85
|
+
* @param locale The localization services instance.
|
|
86
|
+
*/
|
|
87
|
+
constructor(locale: Locale, uiClasses: string, contentAreaCssClass?: string);
|
|
88
|
+
/**
|
|
89
|
+
* @inheritDoc
|
|
90
|
+
*/
|
|
91
|
+
render(): void;
|
|
92
|
+
focus(): void;
|
|
93
|
+
/**
|
|
94
|
+
* Resets the form to the initial values.
|
|
95
|
+
*/
|
|
96
|
+
reset(): void;
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* Fired when a user performed an action that should lead to replace the current selection by generated content.
|
|
100
|
+
*
|
|
101
|
+
* @eventName ~AIFormView#replaceContent
|
|
102
|
+
*/
|
|
103
|
+
export type ReplaceContentEvent = {
|
|
104
|
+
name: 'replaceContent';
|
|
105
|
+
args: [];
|
|
106
|
+
};
|
|
107
|
+
/**
|
|
108
|
+
* Fired when a user performed an action that should lead to insert generated content below the current selection.
|
|
109
|
+
*
|
|
110
|
+
* @eventName ~AIFormView#insertContentBelow
|
|
111
|
+
*/
|
|
112
|
+
export type InsertContentBelowEvent = {
|
|
113
|
+
name: 'insertContentBelow';
|
|
114
|
+
args: [];
|
|
115
|
+
};
|
|
116
|
+
/**
|
|
117
|
+
* Fired when a user performed an action that should lead to retry the previous request to AI.
|
|
118
|
+
*
|
|
119
|
+
* @eventName ~AIFormView#tryAgainEvent
|
|
120
|
+
*/
|
|
121
|
+
export type TryAgainEvent = {
|
|
122
|
+
name: 'tryAgainEvent';
|
|
123
|
+
args: [];
|
|
124
|
+
};
|
|
125
|
+
/**
|
|
126
|
+
* Fired when a user performed an action that should lead to stop the processing of AI.
|
|
127
|
+
*
|
|
128
|
+
* @eventName ~AIFormView#stopProcessing
|
|
129
|
+
*/
|
|
130
|
+
export type StopProcessingEvent = {
|
|
131
|
+
name: 'stopProcessing';
|
|
132
|
+
args: [];
|
|
133
|
+
};
|
|
134
|
+
/**
|
|
135
|
+
* Fired when a user performed an action that should lead to ask AI.
|
|
136
|
+
*
|
|
137
|
+
* @eventName ~AIFormView#submitPrompt
|
|
138
|
+
*/
|
|
139
|
+
export type SubmitPromptEvent = {
|
|
140
|
+
name: 'submitPrompt';
|
|
141
|
+
args: [prompt: string];
|
|
142
|
+
};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xa281=['replaceButton','copyButtonView','focus','execute','div','locale','isEnabled','prompt','isProcessing','backwardCycle','trim','tryAgainEvent','clear','forwardCycle','Ask\x20AI\x20to\x20improve\x20generated\x20text','_focusCycler','createCollection','tryAgainButton','shift\x20+\x20tab','submitPrompt','header','clearHistory','tab','AI_ERROR_FAILED','focusFirst','isVisible','mainAction','isError','focusCycler','items','_promptHistory','keystrokes','_createToolbar','reset','stopButton','toolbar','focusPrevious','fieldView','insertButton','_focusables','errorView','label','promptView','bindTemplate','handleError','_createHistoryView','listenTo','search','high','focusTracker','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','stop','value','element','add','delegate','bindTo','bind','insertContentBelow','contentArea','set','finishProcessing','setTemplate','Ask\x20AI\x20to\x20edit\x20or\x20generate','AI\x20Assistant','queryView','render'];(function(_0x450a90,_0xa28152){const _0x50fe49=function(_0x3c64e5){while(--_0x3c64e5){_0x450a90['push'](_0x450a90['shift']());}};_0x50fe49(++_0xa28152);}(_0xa281,0x186));const _0x50fe=function(_0x450a90,_0xa28152){_0x450a90=_0x450a90-0x0;let _0x50fe49=_0xa281[_0x450a90];return _0x50fe49;};import{FocusTracker as _0x24a234,KeystrokeHandler as _0x58ee63}from'ckeditor5/src/utils';import{View as _0x4886d6,FocusCycler as _0x35aec3,createLabeledTextarea as _0x25b4b0,FormHeaderView as _0x419d54}from'ckeditor5/src/ui';import _0x10fe6c,{AIFormToolbarViewMainAction as _0x2dcd77}from'./aiformtoolbarview';import _0x181bb8 from'./aiformcontentarea';import _0x1de56c from'./aiformerrorview';import _0x1a8634 from'./aiformpromptview';import _0x194eed from'./aihistorylistview';import _0x36ed0f from'./aihistorylistitemview';import _0x216e55 from'./prompthistory';import{getTranslation as _0x5205d6}from'../../utils/common-translations';import _0x52871c from'../../../theme/icons/robot-pencil.svg';export default class v extends _0x4886d6{constructor(_0x16ef1b,_0xfae830,_0x38736b=''){super(_0x16ef1b),this[_0x50fe('0x5')](_0x50fe('0x12'),!0x0),this[_0x50fe('0x5')](_0x50fe('0x14'),!0x1),this[_0x50fe('0x5')](_0x50fe('0x13'),''),this[_0x50fe('0x5')]('value',''),this[_0x50fe('0x5')]('isError',!0x1),this[_0x50fe('0x5')](_0x50fe('0x26'),_0x2dcd77['REPLACE']),this[_0x50fe('0x2a')]=new _0x216e55(),this[_0x50fe('0x34')]=new _0x1de56c(_0x16ef1b),this['header']=new _0x419d54(_0x16ef1b,{'label':_0x5205d6(_0x16ef1b,_0x50fe('0x9')),'icon':_0x52871c}),this['contentArea']=new _0x181bb8(_0x16ef1b,_0x38736b),this[_0x50fe('0x4')][_0x50fe('0x2')](_0x50fe('0x14'))['to'](this),this[_0x50fe('0x4')]['bind'](_0x50fe('0x40'))['to'](this),this[_0x50fe('0x2f')]=this['_createToolbar'](),this[_0x50fe('0x2f')][_0x50fe('0x2')](_0x50fe('0x26'))['to'](this),this[_0x50fe('0x36')]=this['_createPromptView'](),this[_0x50fe('0x3d')]=new _0x24a234(),this['keystrokes']=new _0x58ee63(),this[_0x50fe('0x33')]=this[_0x50fe('0x1c')]([this[_0x50fe('0x4')],this[_0x50fe('0x4')][_0x50fe('0xd')],this[_0x50fe('0x2f')],this[_0x50fe('0x36')]]),this[_0x50fe('0x1b')]=new _0x35aec3({'focusables':this[_0x50fe('0x33')],'focusTracker':this[_0x50fe('0x3d')],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':_0x50fe('0x1e'),'focusNext':_0x50fe('0x22')}}),this[_0x50fe('0x36')][_0x50fe('0x28')]['on'](_0x50fe('0x19'),_0x10cc63=>{this[_0x50fe('0x1b')]['focusNext'](),_0x10cc63[_0x50fe('0x3f')]();}),this[_0x50fe('0x36')][_0x50fe('0x28')]['on'](_0x50fe('0x15'),_0x1301b4=>{this['_focusCycler'][_0x50fe('0x30')](),_0x1301b4[_0x50fe('0x3f')]();}),this[_0x50fe('0x36')]['queryView'][_0x50fe('0x31')][_0x50fe('0x2')]('value')['to'](this,_0x50fe('0x13'));const _0x1cbedf=this[_0x50fe('0x37')];this[_0x50fe('0x7')]({'tag':_0x50fe('0x10'),'attributes':{'class':['ck','ck-ai-form',_0xfae830],'tabindex':'-1'},'children':[this[_0x50fe('0x20')],{'tag':_0x50fe('0x10'),'attributes':{'class':['ck','ck-ai-form-content']},'children':[{'tag':_0x50fe('0x10'),'attributes':{'class':[_0x1cbedf['if']('isError','ck-hidden',_0x292036=>!_0x292036)]},'children':[this[_0x50fe('0x34')]]},this[_0x50fe('0x4')],this[_0x50fe('0x2f')],this[_0x50fe('0x36')]]}]});}[_0x50fe('0xb')](){super[_0x50fe('0xb')](),this[_0x50fe('0x3d')][_0x50fe('0x42')](this['contentArea'][_0x50fe('0x41')]),this[_0x50fe('0x3d')][_0x50fe('0x42')](this['contentArea']['copyButtonView'][_0x50fe('0x41')]),this[_0x50fe('0x3d')][_0x50fe('0x42')](this[_0x50fe('0x2f')]['element']),this[_0x50fe('0x3d')][_0x50fe('0x42')](this[_0x50fe('0x36')][_0x50fe('0x41')]),this[_0x50fe('0x2b')][_0x50fe('0x3a')](this[_0x50fe('0x41')]);}['focus'](){this[_0x50fe('0x1b')][_0x50fe('0x24')]();}[_0x50fe('0x2d')](){this[_0x50fe('0x13')]='',this[_0x50fe('0x40')]='',this[_0x50fe('0x36')][_0x50fe('0x2d')](),this[_0x50fe('0x4')][_0x50fe('0x25')]=!0x1,this[_0x50fe('0x2f')][_0x50fe('0x25')]=!0x1;}['_createPromptView'](){const _0x2ebf7e=this[_0x50fe('0x11')],_0x5bfc56=new _0x1a8634(_0x2ebf7e,{'queryView':{'label':_0x5205d6(_0x2ebf7e,_0x50fe('0x8')),'creator':_0x25b4b0,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x5205d6(_0x2ebf7e,'Empty\x20history'),'secondary':_0x5205d6(_0x2ebf7e,_0x50fe('0x3e'))}}},'filteredView':this[_0x50fe('0x39')](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x5bfc56['bind'](_0x50fe('0x12'))['to'](this,'isEnabled',this,'isProcessing',(_0x186aba,_0x2ca2c3)=>_0x186aba&&!_0x2ca2c3),this[_0x50fe('0x3a')](_0x5bfc56,'submit',(_0x15b251,_0x59841a)=>{this[_0x50fe('0x13')]=_0x59841a,this['fire'](_0x50fe('0x1f'),this[_0x50fe('0x13')]),_0x59841a[_0x50fe('0x16')]()&&this[_0x50fe('0x2a')][_0x50fe('0x42')]({'prompt':_0x59841a[_0x50fe('0x16')]()},0x0);},{'priority':_0x50fe('0x3c')}),_0x5bfc56;}['_createHistoryView'](){const _0x1c055f=new _0x194eed(this[_0x50fe('0x11')]);return _0x1c055f['historyGroupView'][_0x50fe('0x29')][_0x50fe('0x1')](this[_0x50fe('0x2a')])['as'](_0x36ed0f),_0x1c055f['on'](_0x50fe('0x21'),()=>{this['_promptHistory'][_0x50fe('0x18')](),this[_0x50fe('0x36')][_0x50fe('0x3b')](''),this[_0x50fe('0x36')][_0x50fe('0xe')]();}),_0x1c055f;}[_0x50fe('0x2c')](){const _0x421df2=new _0x10fe6c(this[_0x50fe('0x11')]);return _0x421df2[_0x50fe('0xc')]['bind'](_0x50fe('0x12'))['to'](this,_0x50fe('0x12'),this,_0x50fe('0x14'),this,'value',(_0x5a503e,_0x268654,_0x45ed25)=>_0x5a503e&&!_0x268654&&!!_0x45ed25),_0x421df2[_0x50fe('0xc')][_0x50fe('0x0')](_0x50fe('0xf'))['to'](this,'replaceContent'),_0x421df2[_0x50fe('0x32')]['bind']('isEnabled')['to'](this,'isEnabled',this,_0x50fe('0x14'),this,_0x50fe('0x40'),(_0x347cb0,_0x15cdb1,_0x429280)=>_0x347cb0&&!_0x15cdb1&&!!_0x429280),_0x421df2[_0x50fe('0x32')]['delegate']('execute')['to'](this,_0x50fe('0x3')),_0x421df2[_0x50fe('0x1d')][_0x50fe('0x2')](_0x50fe('0x12'))['to'](this,_0x50fe('0x12'),this,_0x50fe('0x14'),(_0x13e098,_0x1a18d7)=>_0x13e098&&!_0x1a18d7),_0x421df2[_0x50fe('0x1d')][_0x50fe('0x0')](_0x50fe('0xf'))['to'](this,_0x50fe('0x17')),_0x421df2['stopButton'][_0x50fe('0x2')](_0x50fe('0x12'))['to'](this,_0x50fe('0x14')),_0x421df2[_0x50fe('0x2e')][_0x50fe('0x0')](_0x50fe('0xf'))['to'](this,'stopProcessing'),_0x421df2;}['startProcessing'](){this[_0x50fe('0x40')]='',this[_0x50fe('0x27')]=!0x1,this['isProcessing']=!0x0,this[_0x50fe('0x4')]['isVisible']=!0x0,this['toolbar'][_0x50fe('0x25')]=!0x0,this[_0x50fe('0x4')][_0x50fe('0xe')]();}[_0x50fe('0x6')](){const _0x35cda0=this[_0x50fe('0x11')];this[_0x50fe('0x14')]=!0x1,this[_0x50fe('0x13')]='',this[_0x50fe('0x36')]['reset'](),this[_0x50fe('0x40')]&&(this[_0x50fe('0x36')][_0x50fe('0xa')][_0x50fe('0x35')]=_0x5205d6(_0x35cda0,_0x50fe('0x1a')));}[_0x50fe('0x38')](_0x21537b){const _0x4272a0=this['locale'];this[_0x50fe('0x6')](),this['isError']=!0x0,this[_0x50fe('0x34')]['text']=_0x21537b||_0x5205d6(_0x4272a0,_0x50fe('0x23')),this[_0x50fe('0x40')]||(this[_0x50fe('0x4')][_0x50fe('0x25')]=!0x1);}}
|