@ckeditor/ckeditor5-ai 0.0.0-nightly-20240130.0 → 0.0.0-nightly-20240201.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.
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2e36=['history','focus','bind','set','fieldWrapperChildren','isEnabled','_createShowHistoryButton','target','update','locale','submit','isOn','showHistoryButtonView','_createSubmitButton','excludeScrollbarsAndBorders','filteredView','execute','enter','maxRows','focusCycler','queryView','fire','element','History','isEmpty','render','focusableChildren','Submit','left','width','add','value','window','style','resultsView','children','ck-ai-form__toggle-history','requestAnimationFrame','focusLast','fieldView','isVisible','submitButtonView','focusFirst'];(function(_0x19e1e9,_0x2e36c5){const _0x567f5f=function(_0x3b67b5){while(--_0x3b67b5){_0x19e1e9['push'](_0x19e1e9['shift']());}};_0x567f5f(++_0x2e36c5);}(_0x2e36,0xd0));const _0x567f=function(_0x19e1e9,_0x2e36c5){_0x19e1e9=_0x19e1e9-0x0;let _0x567f5f=_0x2e36[_0x19e1e9];return _0x567f5f;};import{Rect as _0x8d717b,global as _0x31fdcf,isVisible as _0x21543b}from'ckeditor5/src/utils.js';import{AutocompleteView as _0x15e389,ButtonView as _0x44b662}from'ckeditor5/src/ui.js';import{icons as _0x1d2837}from'ckeditor5/src/core.js';import{getTranslation as _0x13fe98}from'../../utils/common-translations.js';import _0x381dfa from'../../../theme/icons/submit.svg';export default class ht extends _0x15e389{constructor(_0x48bbd7,_0x41f422){super(_0x48bbd7,_0x41f422),this['queryView'][_0x567f('0x3')]['minRows']=0x1,this[_0x567f('0x1b')][_0x567f('0x3')][_0x567f('0x19')]=0x3,this['submitButtonView']=this[_0x567f('0x14')](),this[_0x567f('0x13')]=this[_0x567f('0xd')](),this[_0x567f('0x21')]['add'](this[_0x567f('0x13')],0x1),this[_0x567f('0x21')]['add'](this[_0x567f('0x5')]);}[_0x567f('0x20')](){super[_0x567f('0x20')](),this['queryView'][_0x567f('0xb')][_0x567f('0x25')](this[_0x567f('0x13')]),this[_0x567f('0x2a')][_0x567f('0x25')](this[_0x567f('0x5')]),this['keystrokes']['set'](_0x567f('0x18'),(_0x299e99,_0x2fe5a2)=>{_0x299e99[_0x567f('0xe')]==this[_0x567f('0x1b')][_0x567f('0x3')][_0x567f('0x1d')]&&(this[_0x567f('0x11')](),_0x2fe5a2());});}[_0x567f('0x14')](){const _0x43ec0a=new _0x44b662(this[_0x567f('0x10')]),_0x3fca94=this[_0x567f('0x10')];return _0x43ec0a[_0x567f('0xa')]({'icon':_0x381dfa,'label':_0x13fe98(_0x3fca94,_0x567f('0x22')),'isVisible':!0x0,'tooltip':!0x0,'class':'ck-ai-form__submit'}),_0x43ec0a['on'](_0x567f('0x17'),()=>{this['submit']();}),_0x43ec0a['bind'](_0x567f('0xc'))['to'](this['queryView']['fieldView'],_0x567f('0x1f'),this,_0x567f('0xc'),(_0x17c624,_0x170b3b)=>!_0x17c624&&_0x170b3b),_0x43ec0a;}[_0x567f('0xd')](){const _0x455cfa=new _0x44b662(this[_0x567f('0x10')]),_0x5b3bd3=this[_0x567f('0x29')],_0x556569=this[_0x567f('0x10')];_0x455cfa[_0x567f('0xa')]({'label':_0x13fe98(_0x556569,_0x567f('0x1e')),'withText':!0x1,'icon':_0x1d2837[_0x567f('0x7')],'tooltip':!0x0,'tooltipPosition':'sw','class':_0x567f('0x0')}),_0x455cfa[_0x567f('0x9')](_0x567f('0x12'))['to'](_0x5b3bd3,_0x567f('0x4')),_0x455cfa[_0x567f('0x9')](_0x567f('0xc'))['to'](this,_0x567f('0xc')),_0x455cfa['on'](_0x567f('0x17'),()=>{_0x5b3bd3[_0x567f('0x4')]=!_0x5b3bd3[_0x567f('0x4')],_0x5b3bd3[_0x567f('0x4')]?this[_0x567f('0x16')][_0x567f('0x8')]():this[_0x567f('0x8')]();});const _0x5080be=()=>{_0x31fdcf[_0x567f('0x27')][_0x567f('0x1')](()=>{if(_0x21543b(this[_0x567f('0x1d')])){const _0x4a4f75=new _0x8d717b(this[_0x567f('0x1b')][_0x567f('0x3')][_0x567f('0x1d')]),_0x36e0c2=_0x4a4f75[_0x567f('0x24')],_0x402aa4='rtl'===_0x556569['uiLanguageDirection']?_0x567f('0x23'):'right';_0x4a4f75[_0x567f('0x15')](),_0x455cfa['element'][_0x567f('0x28')][_0x402aa4]=_0x36e0c2-_0x4a4f75[_0x567f('0x24')]+0x1+'px';}});};return this[_0x567f('0x1b')]['fieldView']['on'](_0x567f('0xf'),_0x5080be),this['on']('render',_0x5080be),_0x455cfa;}[_0x567f('0x11')](){const _0x17c0f3=this[_0x567f('0x1b')][_0x567f('0x3')]['element'][_0x567f('0x26')];this[_0x567f('0x1c')](_0x567f('0x11'),_0x17c0f3);}['focus'](_0x288ebc){-0x1===_0x288ebc?this[_0x567f('0x1a')][_0x567f('0x2')]():this[_0x567f('0x1a')][_0x567f('0x6')]();}}
23
+ const _0x47c2=['fieldWrapperChildren','requestAnimationFrame','_createSubmitButton','enter','History','focusableChildren','isEnabled','bind','render','isVisible','ck-ai-form__submit','ck-ai-form__toggle-history','execute','focus','set','rtl','focusCycler','locale','submit','showHistoryButtonView','style','fire','_createShowHistoryButton','add','uiLanguageDirection','width','minRows','focusFirst','resultsView','maxRows','keystrokes','isEmpty','focusLast','submitButtonView','children','fieldView','left','right','element','filteredView','update','queryView'];(function(_0x58f712,_0x47c2d5){const _0x7ce21f=function(_0x46069d){while(--_0x46069d){_0x58f712['push'](_0x58f712['shift']());}};_0x7ce21f(++_0x47c2d5);}(_0x47c2,0x1da));const _0x7ce2=function(_0x58f712,_0x47c2d5){_0x58f712=_0x58f712-0x0;let _0x7ce21f=_0x47c2[_0x58f712];return _0x7ce21f;};import{Rect as _0x430c52,global as _0xc7ae9a,isVisible as _0x35bca3}from'ckeditor5/src/utils.js';import{AutocompleteView as _0x2942c3,ButtonView as _0x1f66d5}from'ckeditor5/src/ui.js';import{icons as _0x4e2cc8}from'ckeditor5/src/core.js';import{getTranslation as _0x501f02}from'../../utils/common-translations.js';import _0xfb4ce6 from'../../../theme/icons/submit.svg';export default class ht extends _0x2942c3{constructor(_0x246798,_0x1ff8e1){super(_0x246798,_0x1ff8e1),this[_0x7ce2('0x1d')]['fieldView'][_0x7ce2('0xe')]=0x1,this[_0x7ce2('0x1d')][_0x7ce2('0x17')][_0x7ce2('0x11')]=0x3,this[_0x7ce2('0x15')]=this[_0x7ce2('0x20')](),this[_0x7ce2('0x7')]=this[_0x7ce2('0xa')](),this[_0x7ce2('0x23')][_0x7ce2('0xb')](this[_0x7ce2('0x7')],0x1),this[_0x7ce2('0x23')]['add'](this['submitButtonView']);}[_0x7ce2('0x26')](){super[_0x7ce2('0x26')](),this[_0x7ce2('0x1d')][_0x7ce2('0x1e')][_0x7ce2('0xb')](this[_0x7ce2('0x7')]),this[_0x7ce2('0x16')][_0x7ce2('0xb')](this[_0x7ce2('0x15')]),this[_0x7ce2('0x12')][_0x7ce2('0x2')](_0x7ce2('0x21'),(_0x4e5369,_0x412f49)=>{_0x4e5369['target']==this[_0x7ce2('0x1d')][_0x7ce2('0x17')][_0x7ce2('0x1a')]&&(this[_0x7ce2('0x6')](),_0x412f49());});}[_0x7ce2('0x20')](){const _0x317d0e=new _0x1f66d5(this[_0x7ce2('0x5')]),_0x5e7604=this[_0x7ce2('0x5')];return _0x317d0e['set']({'icon':_0xfb4ce6,'label':_0x501f02(_0x5e7604,'Submit'),'isVisible':!0x0,'tooltip':!0x0,'class':_0x7ce2('0x28')}),_0x317d0e['on'](_0x7ce2('0x0'),()=>{this[_0x7ce2('0x6')]();}),_0x317d0e[_0x7ce2('0x25')](_0x7ce2('0x24'))['to'](this['queryView'][_0x7ce2('0x17')],_0x7ce2('0x13'),this,_0x7ce2('0x24'),(_0x42c5ec,_0x53b9f5)=>!_0x42c5ec&&_0x53b9f5),_0x317d0e;}[_0x7ce2('0xa')](){const _0x2c475a=new _0x1f66d5(this[_0x7ce2('0x5')]),_0x3fd1e4=this[_0x7ce2('0x10')],_0x498afc=this[_0x7ce2('0x5')];_0x2c475a[_0x7ce2('0x2')]({'label':_0x501f02(_0x498afc,_0x7ce2('0x22')),'withText':!0x1,'icon':_0x4e2cc8['history'],'tooltip':!0x0,'tooltipPosition':'sw','class':_0x7ce2('0x29')}),_0x2c475a[_0x7ce2('0x25')]('isOn')['to'](_0x3fd1e4,_0x7ce2('0x27')),_0x2c475a[_0x7ce2('0x25')]('isEnabled')['to'](this,_0x7ce2('0x24')),_0x2c475a['on']('execute',()=>{_0x3fd1e4[_0x7ce2('0x27')]=!_0x3fd1e4[_0x7ce2('0x27')],_0x3fd1e4[_0x7ce2('0x27')]?this[_0x7ce2('0x1b')][_0x7ce2('0x1')]():this[_0x7ce2('0x1')]();});const _0x330b67=()=>{_0xc7ae9a['window'][_0x7ce2('0x1f')](()=>{if(_0x35bca3(this[_0x7ce2('0x1a')])){const _0xe7d1b5=new _0x430c52(this[_0x7ce2('0x1d')][_0x7ce2('0x17')]['element']),_0x3807db=_0xe7d1b5[_0x7ce2('0xd')],_0x352935=_0x7ce2('0x3')===_0x498afc[_0x7ce2('0xc')]?_0x7ce2('0x18'):_0x7ce2('0x19');_0xe7d1b5['excludeScrollbarsAndBorders'](),_0x2c475a['element'][_0x7ce2('0x8')][_0x352935]=_0x3807db-_0xe7d1b5[_0x7ce2('0xd')]+0x1+'px';}});};return this[_0x7ce2('0x1d')][_0x7ce2('0x17')]['on'](_0x7ce2('0x1c'),_0x330b67),this['on'](_0x7ce2('0x26'),_0x330b67),_0x2c475a;}[_0x7ce2('0x6')](){const _0x5d109a=this[_0x7ce2('0x1d')][_0x7ce2('0x17')]['element']['value'];this[_0x7ce2('0x9')](_0x7ce2('0x6'),_0x5d109a);}[_0x7ce2('0x1')](_0x2b8e22){-0x1===_0x2b8e22?this[_0x7ce2('0x4')][_0x7ce2('0x14')]():this[_0x7ce2('0x4')][_0x7ce2('0xf')]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5380=['REPLACE','Stop','Insert\x20below','bindTemplate','ck-hidden','toUpperCase','mainAction','set','tryAgainButton','extendTemplate','stopButton','_createButton','insert','ck-button-action','ck-ai-form__toolbar','_CONTENT','items','locale','AI_','isVisible','bind','addMany','replaceButton'];(function(_0x3ce855,_0x5380c1){const _0x412608=function(_0xa56a8b){while(--_0xa56a8b){_0x3ce855['push'](_0x3ce855['shift']());}};_0x412608(++_0x5380c1);}(_0x5380,0x164));const _0x4126=function(_0x3ce855,_0x5380c1){_0x3ce855=_0x3ce855-0x0;let _0x412608=_0x5380[_0x3ce855];return _0x412608;};import{ToolbarView as _0xe65e20,ButtonView as _0x4ea027}from'ckeditor5/src/ui.js';import{getTranslation as _0x386c20}from'../../utils/common-translations.js';export const AIFormToolbarViewMainActionLabel={'REPLACE':'replace','INSERT':_0x4126('0x1')};export default class at extends _0xe65e20{constructor(_0x559df2){super(_0x559df2),this[_0x4126('0x13')](_0x4126('0x8'),!0x1),this[_0x4126('0x13')]('mainAction',AIFormToolbarViewMainActionLabel[_0x4126('0xc')]),this[_0x4126('0xb')]=this[_0x4126('0x0')]('',_0x4126('0x2')),this[_0x4126('0xb')][_0x4126('0x9')]('label')['to'](this,_0x4126('0x12'),_0x409dd4=>_0x386c20(_0x559df2,_0x4126('0x7')+_0x409dd4[_0x4126('0x11')]()+_0x4126('0x4'))),this['insertButton']=this[_0x4126('0x0')](_0x386c20(_0x559df2,_0x4126('0xe'))),this[_0x4126('0x14')]=this[_0x4126('0x0')](_0x386c20(_0x559df2,'Try\x20again')),this[_0x4126('0x16')]=this['_createButton'](_0x386c20(_0x559df2,_0x4126('0xd')));const _0x36fe99=this[_0x4126('0xf')];this[_0x4126('0x15')]({'attributes':{'class':[_0x4126('0x3'),_0x36fe99['if'](_0x4126('0x8'),_0x4126('0x10'),_0x34dec5=>!_0x34dec5)]}}),this[_0x4126('0x5')][_0x4126('0xa')]([this[_0x4126('0xb')],this['insertButton'],this[_0x4126('0x14')],this[_0x4126('0x16')]]);}['_createButton'](_0x1bde48,_0x2dce76){const _0x593807=new _0x4ea027(this[_0x4126('0x6')]);return _0x593807[_0x4126('0x13')]({'label':_0x1bde48,'class':_0x2dce76||'','isVisible':!0x0,'withText':!0x0}),_0x593807;}}
23
+ const _0x1441=['extendTemplate','mainAction','Insert\x20below','items','isVisible','REPLACE','bind','set','_CONTENT','ck-hidden','label','Stop','locale','AI_','_createButton','replaceButton','tryAgainButton','insert','insertButton','addMany','stopButton'];(function(_0x390cd6,_0x1441ae){const _0x189604=function(_0x2ff359){while(--_0x2ff359){_0x390cd6['push'](_0x390cd6['shift']());}};_0x189604(++_0x1441ae);}(_0x1441,0x153));const _0x1896=function(_0x390cd6,_0x1441ae){_0x390cd6=_0x390cd6-0x0;let _0x189604=_0x1441[_0x390cd6];return _0x189604;};import{ToolbarView as _0x2bddac,ButtonView as _0x159836}from'ckeditor5/src/ui.js';import{getTranslation as _0x4b4bdb}from'../../utils/common-translations.js';export const AIFormToolbarViewMainActionLabel={'REPLACE':'replace','INSERT':_0x1896('0xe')};export default class at extends _0x2bddac{constructor(_0x1da4a9){super(_0x1da4a9),this[_0x1896('0x4')](_0x1896('0x1'),!0x1),this[_0x1896('0x4')](_0x1896('0x13'),AIFormToolbarViewMainActionLabel[_0x1896('0x2')]),this[_0x1896('0xc')]=this[_0x1896('0xb')]('','ck-button-action'),this['replaceButton'][_0x1896('0x3')](_0x1896('0x7'))['to'](this,_0x1896('0x13'),_0x36eb52=>_0x4b4bdb(_0x1da4a9,_0x1896('0xa')+_0x36eb52['toUpperCase']()+_0x1896('0x5'))),this[_0x1896('0xf')]=this[_0x1896('0xb')](_0x4b4bdb(_0x1da4a9,_0x1896('0x14'))),this['tryAgainButton']=this[_0x1896('0xb')](_0x4b4bdb(_0x1da4a9,'Try\x20again')),this['stopButton']=this[_0x1896('0xb')](_0x4b4bdb(_0x1da4a9,_0x1896('0x8')));const _0x4af6e1=this['bindTemplate'];this[_0x1896('0x12')]({'attributes':{'class':['ck-ai-form__toolbar',_0x4af6e1['if']('isVisible',_0x1896('0x6'),_0x19cf4e=>!_0x19cf4e)]}}),this[_0x1896('0x0')][_0x1896('0x10')]([this[_0x1896('0xc')],this[_0x1896('0xf')],this[_0x1896('0xd')],this[_0x1896('0x11')]]);}[_0x1896('0xb')](_0x2cc09b,_0x54c2d8){const _0x51ef7e=new _0x159836(this[_0x1896('0x9')]);return _0x51ef7e['set']({'label':_0x2cc09b,'class':_0x54c2d8||'','isVisible':!0x0,'withText':!0x0}),_0x51ef7e;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x43d1=['setTemplate','isEnabled','bindTo','items','tab','isVisible','Ask\x20AI\x20to\x20edit\x20or\x20generate','copyButtonView','focusLast','keystrokes','finishProcessing','queryView','_createToolbar','handleError','contentArea','tryAgainEvent','startProcessing','insertButton','fire','high','stopButton','execute','locale','reset','isError','bind','_createHistoryView','replaceButton','prompt','createCollection','clear','REPLACE','focusFirst','mainAction','shift\x20+\x20tab','element','Ask\x20AI\x20to\x20improve\x20generated\x20text','_createPromptView','_focusables','focusTracker','insertContentBelow','toolbar','set','promptView','isProcessing','render','clearHistory','errorView','text','ck-hidden','focusPrevious','ck-ai-form-content','tryAgainButton','Empty\x20history','submitPrompt','backwardCycle','listenTo','add','stop','div','value','bindTemplate','focusCycler','historyGroupView','focus','_promptHistory','focusNext','delegate','fieldView'];(function(_0x2dd8da,_0x43d171){const _0x51a87a=function(_0x3f4fc5){while(--_0x3f4fc5){_0x2dd8da['push'](_0x2dd8da['shift']());}};_0x51a87a(++_0x43d171);}(_0x43d1,0x124));const _0x51a8=function(_0x2dd8da,_0x43d171){_0x2dd8da=_0x2dd8da-0x0;let _0x51a87a=_0x43d1[_0x2dd8da];return _0x51a87a;};import{FocusTracker as _0x5c7c87,KeystrokeHandler as _0x571e7a}from'ckeditor5/src/utils.js';import{View as _0x2d8552,FocusCycler as _0x20bc47,createLabeledTextarea as _0x3d9ddd}from'ckeditor5/src/ui.js';import _0x79a7c3,{AIFormToolbarViewMainActionLabel as _0x395359}from'./aiformtoolbarview.js';import _0x1dc4c0 from'./aiformcontentarea.js';import _0x338a27 from'./aiformerrorview.js';import _0xaeed01 from'./aiformpromptview.js';import _0xb517de from'./aihistorylistview.js';import _0x4bc450 from'./aihistorylistitemview.js';import _0x115458 from'./prompthistory.js';import{getTranslation as _0x5a846c}from'../../utils/common-translations.js';import{escape as _0x257c31}from'lodash-es';export default class v extends _0x2d8552{constructor(_0x4aec1f,_0x41f010,_0x70361d=''){super(_0x4aec1f),this[_0x51a8('0x1a')](_0x51a8('0x36'),!0x0),this[_0x51a8('0x1a')](_0x51a8('0x1c'),!0x1),this[_0x51a8('0x1a')]('prompt',''),this[_0x51a8('0x1a')](_0x51a8('0x2c'),''),this[_0x51a8('0x1a')](_0x51a8('0x8'),!0x1),this[_0x51a8('0x1a')](_0x51a8('0x11'),_0x395359[_0x51a8('0xf')]),this['_promptHistory']=new _0x115458(),this[_0x51a8('0x1f')]=new _0x338a27(_0x4aec1f),this[_0x51a8('0x43')]=new _0x1dc4c0(_0x4aec1f,_0x70361d),this[_0x51a8('0x43')][_0x51a8('0x9')]('isProcessing')['to'](this),this[_0x51a8('0x43')]['bind'](_0x51a8('0x2c'))['to'](this),this[_0x51a8('0x19')]=this[_0x51a8('0x41')](),this[_0x51a8('0x19')]['bind'](_0x51a8('0x11'))['to'](this),this[_0x51a8('0x1b')]=this[_0x51a8('0x15')](),this[_0x51a8('0x17')]=new _0x5c7c87(),this[_0x51a8('0x3e')]=new _0x571e7a(),this[_0x51a8('0x16')]=this[_0x51a8('0xd')]([this['contentArea'],this[_0x51a8('0x43')][_0x51a8('0x3c')],this[_0x51a8('0x19')],this['promptView']]),this['focusCycler']=new _0x20bc47({'focusables':this[_0x51a8('0x16')],'focusTracker':this['focusTracker'],'keystrokeHandler':this[_0x51a8('0x3e')],'actions':{'focusPrevious':_0x51a8('0x12'),'focusNext':_0x51a8('0x39')}}),this[_0x51a8('0x1b')][_0x51a8('0x2e')]['on']('forwardCycle',_0x7682b4=>{this['focusCycler'][_0x51a8('0x32')](),_0x7682b4[_0x51a8('0x2a')]();}),this[_0x51a8('0x1b')]['focusCycler']['on'](_0x51a8('0x27'),_0x43dfd4=>{this[_0x51a8('0x2e')][_0x51a8('0x22')](),_0x43dfd4['stop']();}),this[_0x51a8('0x1b')][_0x51a8('0x40')][_0x51a8('0x34')]['bind'](_0x51a8('0x2c'))['to'](this,_0x51a8('0xc'));const _0x4bbecd=this[_0x51a8('0x2d')];this[_0x51a8('0x35')]({'tag':_0x51a8('0x2b'),'attributes':{'class':['ck','ck-ai-form',_0x41f010],'tabindex':'-1'},'children':[{'tag':'div','attributes':{'class':['ck',_0x51a8('0x23')]},'children':[{'tag':'div','attributes':{'class':[_0x4bbecd['if'](_0x51a8('0x8'),_0x51a8('0x21'),_0x1e16b1=>!_0x1e16b1)]},'children':[this[_0x51a8('0x1f')]]},this['contentArea'],this[_0x51a8('0x19')],this[_0x51a8('0x1b')]]}]});}[_0x51a8('0x1d')](){super['render'](),this[_0x51a8('0x17')]['add'](this[_0x51a8('0x43')][_0x51a8('0x13')]),this[_0x51a8('0x17')]['add'](this[_0x51a8('0x43')][_0x51a8('0x3c')][_0x51a8('0x13')]),this[_0x51a8('0x17')][_0x51a8('0x29')](this[_0x51a8('0x19')][_0x51a8('0x13')]),this['focusTracker'][_0x51a8('0x29')](this[_0x51a8('0x1b')][_0x51a8('0x13')]),this[_0x51a8('0x3e')][_0x51a8('0x28')](this[_0x51a8('0x13')]);}[_0x51a8('0x30')](_0x2beb96=0x1){-0x1===_0x2beb96?this[_0x51a8('0x2e')][_0x51a8('0x3d')]():this[_0x51a8('0x2e')][_0x51a8('0x10')]();}[_0x51a8('0x7')](){this[_0x51a8('0xc')]='',this['value']='',this[_0x51a8('0x8')]=!0x1,this[_0x51a8('0x1b')]['reset'](),this[_0x51a8('0x43')][_0x51a8('0x3a')]=!0x1,this[_0x51a8('0x19')][_0x51a8('0x3a')]=!0x1;}[_0x51a8('0x15')](){const _0x3bfa20=this[_0x51a8('0x6')],_0x1fe332=new _0xaeed01(_0x3bfa20,{'queryView':{'label':_0x5a846c(_0x3bfa20,_0x51a8('0x3b')),'creator':_0x3d9ddd,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x5a846c(_0x3bfa20,_0x51a8('0x25')),'secondary':_0x5a846c(_0x3bfa20,'Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.')}}},'filteredView':this[_0x51a8('0xa')](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x1fe332['bind'](_0x51a8('0x36'))['to'](this,'isEnabled',this,_0x51a8('0x1c'),(_0xc30735,_0x52d3b8)=>_0xc30735&&!_0x52d3b8),this[_0x51a8('0x28')](_0x1fe332,'submit',(_0x3c8a90,_0x462af8)=>{this[_0x51a8('0xc')]=_0x462af8;const _0x294931=_0x257c31(_0x462af8);this[_0x51a8('0x2')](_0x51a8('0x26'),_0x294931),_0x462af8['trim']()&&this[_0x51a8('0x31')][_0x51a8('0x29')]({'prompt':_0x294931},0x0);},{'priority':_0x51a8('0x3')}),_0x1fe332;}[_0x51a8('0xa')](){const _0x41fc26=new _0xb517de(this[_0x51a8('0x6')]);return _0x41fc26[_0x51a8('0x2f')][_0x51a8('0x38')][_0x51a8('0x37')](this[_0x51a8('0x31')])['as'](_0x4bc450),_0x41fc26['on'](_0x51a8('0x1e'),()=>{this[_0x51a8('0x31')][_0x51a8('0xe')](),this[_0x51a8('0x1b')]['search'](''),this['promptView'][_0x51a8('0x30')]();}),_0x41fc26;}['_createToolbar'](){const _0x3ccada=new _0x79a7c3(this['locale']);return _0x3ccada[_0x51a8('0xb')][_0x51a8('0x9')](_0x51a8('0x36'))['to'](this,_0x51a8('0x36'),this,_0x51a8('0x1c'),this,_0x51a8('0x2c'),(_0x236e09,_0x1f514c,_0x2fecdc)=>_0x236e09&&!_0x1f514c&&!!_0x2fecdc),_0x3ccada[_0x51a8('0xb')][_0x51a8('0x33')](_0x51a8('0x5'))['to'](this,'replaceContent'),_0x3ccada['insertButton'][_0x51a8('0x9')](_0x51a8('0x36'))['to'](this,_0x51a8('0x36'),this,_0x51a8('0x1c'),this,_0x51a8('0x2c'),(_0x50486b,_0x57d841,_0x48de90)=>_0x50486b&&!_0x57d841&&!!_0x48de90),_0x3ccada[_0x51a8('0x1')]['delegate']('execute')['to'](this,_0x51a8('0x18')),_0x3ccada[_0x51a8('0x24')]['bind'](_0x51a8('0x36'))['to'](this,_0x51a8('0x36'),this,_0x51a8('0x1c'),(_0x4c19cf,_0x31cfb8)=>_0x4c19cf&&!_0x31cfb8),_0x3ccada[_0x51a8('0x24')][_0x51a8('0x33')](_0x51a8('0x5'))['to'](this,_0x51a8('0x44')),_0x3ccada[_0x51a8('0x4')][_0x51a8('0x9')](_0x51a8('0x36'))['to'](this,_0x51a8('0x1c')),_0x3ccada['stopButton']['delegate']('execute')['to'](this,'stopProcessing'),_0x3ccada;}[_0x51a8('0x0')](){this[_0x51a8('0x2c')]='',this['isError']=!0x1,this[_0x51a8('0x1c')]=!0x0,this[_0x51a8('0x43')][_0x51a8('0x3a')]=!0x0,this[_0x51a8('0x19')][_0x51a8('0x3a')]=!0x0,this[_0x51a8('0x43')][_0x51a8('0x30')]();}[_0x51a8('0x3f')](){const _0x3623f4=this[_0x51a8('0x6')];this[_0x51a8('0x1c')]=!0x1,this[_0x51a8('0xc')]='',this[_0x51a8('0x1b')][_0x51a8('0x7')](),this[_0x51a8('0x2c')]&&(this[_0x51a8('0x1b')][_0x51a8('0x40')]['label']=_0x5a846c(_0x3623f4,_0x51a8('0x14')));}[_0x51a8('0x42')](_0x8b315a){const _0x2ac8ca=this['locale'];this[_0x51a8('0x3f')](),this[_0x51a8('0x8')]=!0x0,this[_0x51a8('0x1f')][_0x51a8('0x20')]=_0x8b315a||_0x5a846c(_0x2ac8ca,'AI_ERROR_FAILED'),this[_0x51a8('0x2c')]||(this['contentArea']['isVisible']=!0x1);}}
23
+ const _0x382d=['bind','submit','search','Ask\x20AI\x20to\x20edit\x20or\x20generate','fire','reset','div','bindTo','focusLast','shift\x20+\x20tab','execute','element','focusNext','_createHistoryView','stop','setTemplate','historyGroupView','isProcessing','_focusables','ck-ai-form','ck-ai-form-content','prompt','label','focusTracker','trim','forwardCycle','listenTo','stopButton','locale','insertButton','render','value','replaceButton','toolbar','Ask\x20AI\x20to\x20improve\x20generated\x20text','_createPromptView','finishProcessing','queryView','set','isError','delegate','backwardCycle','errorView','REPLACE','focusCycler','contentArea','ck-hidden','createCollection','focusFirst','replaceContent','text','Empty\x20history','focusPrevious','tryAgainButton','copyButtonView','isEnabled','clear','mainAction','isVisible','focus','clearHistory','high','handleError','keystrokes','_promptHistory','add','promptView'];(function(_0x5deed0,_0x382d37){const _0x376b65=function(_0x2b6824){while(--_0x2b6824){_0x5deed0['push'](_0x5deed0['shift']());}};_0x376b65(++_0x382d37);}(_0x382d,0x1ee));const _0x376b=function(_0x5deed0,_0x382d37){_0x5deed0=_0x5deed0-0x0;let _0x376b65=_0x382d[_0x5deed0];return _0x376b65;};import{FocusTracker as _0x419232,KeystrokeHandler as _0x99cdeb}from'ckeditor5/src/utils.js';import{View as _0x295cb8,FocusCycler as _0x17bf1e,createLabeledTextarea as _0x472c48}from'ckeditor5/src/ui.js';import _0x3f7786,{AIFormToolbarViewMainActionLabel as _0x3c67b2}from'./aiformtoolbarview.js';import _0x2d7f65 from'./aiformcontentarea.js';import _0x3e23d0 from'./aiformerrorview.js';import _0x43ea97 from'./aiformpromptview.js';import _0x17e058 from'./aihistorylistview.js';import _0x453245 from'./aihistorylistitemview.js';import _0x54ef9c from'./prompthistory.js';import{getTranslation as _0x1cead2}from'../../utils/common-translations.js';import{escape as _0x1eb6c7}from'lodash-es';export default class v extends _0x295cb8{constructor(_0x2fb628,_0xe54334,_0x784d6f=''){super(_0x2fb628),this[_0x376b('0xd')](_0x376b('0x1e'),!0x0),this[_0x376b('0xd')]('isProcessing',!0x1),this[_0x376b('0xd')](_0x376b('0x3f'),''),this['set'](_0x376b('0x6'),''),this[_0x376b('0xd')](_0x376b('0xe'),!0x1),this[_0x376b('0xd')](_0x376b('0x20'),_0x3c67b2[_0x376b('0x12')]),this[_0x376b('0x27')]=new _0x54ef9c(),this[_0x376b('0x11')]=new _0x3e23d0(_0x2fb628),this['contentArea']=new _0x2d7f65(_0x2fb628,_0x784d6f),this['contentArea'][_0x376b('0x2a')](_0x376b('0x3b'))['to'](this),this[_0x376b('0x14')][_0x376b('0x2a')]('value')['to'](this),this[_0x376b('0x8')]=this['_createToolbar'](),this[_0x376b('0x8')][_0x376b('0x2a')]('mainAction')['to'](this),this[_0x376b('0x29')]=this['_createPromptView'](),this[_0x376b('0x41')]=new _0x419232(),this[_0x376b('0x26')]=new _0x99cdeb(),this['_focusables']=this[_0x376b('0x16')]([this[_0x376b('0x14')],this['contentArea']['copyButtonView'],this[_0x376b('0x8')],this['promptView']]),this[_0x376b('0x13')]=new _0x17bf1e({'focusables':this[_0x376b('0x3c')],'focusTracker':this['focusTracker'],'keystrokeHandler':this[_0x376b('0x26')],'actions':{'focusPrevious':_0x376b('0x33'),'focusNext':'tab'}}),this[_0x376b('0x29')][_0x376b('0x13')]['on'](_0x376b('0x0'),_0x418ba8=>{this[_0x376b('0x13')][_0x376b('0x36')](),_0x418ba8['stop']();}),this[_0x376b('0x29')][_0x376b('0x13')]['on'](_0x376b('0x10'),_0x3e7d05=>{this['focusCycler'][_0x376b('0x1b')](),_0x3e7d05[_0x376b('0x38')]();}),this[_0x376b('0x29')][_0x376b('0xc')]['fieldView']['bind'](_0x376b('0x6'))['to'](this,_0x376b('0x3f'));const _0x3e4edb=this['bindTemplate'];this[_0x376b('0x39')]({'tag':_0x376b('0x30'),'attributes':{'class':['ck',_0x376b('0x3d'),_0xe54334],'tabindex':'-1'},'children':[{'tag':_0x376b('0x30'),'attributes':{'class':['ck',_0x376b('0x3e')]},'children':[{'tag':_0x376b('0x30'),'attributes':{'class':[_0x3e4edb['if']('isError',_0x376b('0x15'),_0xf722f1=>!_0xf722f1)]},'children':[this[_0x376b('0x11')]]},this[_0x376b('0x14')],this[_0x376b('0x8')],this[_0x376b('0x29')]]}]});}[_0x376b('0x5')](){super['render'](),this[_0x376b('0x41')][_0x376b('0x28')](this['contentArea'][_0x376b('0x35')]),this['focusTracker'][_0x376b('0x28')](this[_0x376b('0x14')][_0x376b('0x1d')][_0x376b('0x35')]),this[_0x376b('0x41')][_0x376b('0x28')](this[_0x376b('0x8')]['element']),this[_0x376b('0x41')]['add'](this[_0x376b('0x29')][_0x376b('0x35')]),this[_0x376b('0x26')][_0x376b('0x1')](this['element']);}[_0x376b('0x22')](_0x4e683e=0x1){-0x1===_0x4e683e?this[_0x376b('0x13')][_0x376b('0x32')]():this[_0x376b('0x13')][_0x376b('0x17')]();}[_0x376b('0x2f')](){this[_0x376b('0x3f')]='',this[_0x376b('0x6')]='',this[_0x376b('0xe')]=!0x1,this['promptView']['reset'](),this[_0x376b('0x14')][_0x376b('0x21')]=!0x1,this[_0x376b('0x8')][_0x376b('0x21')]=!0x1;}[_0x376b('0xa')](){const _0x5238c1=this[_0x376b('0x3')],_0x40695d=new _0x43ea97(_0x5238c1,{'queryView':{'label':_0x1cead2(_0x5238c1,_0x376b('0x2d')),'creator':_0x472c48,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x1cead2(_0x5238c1,_0x376b('0x1a')),'secondary':_0x1cead2(_0x5238c1,'Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.')}}},'filteredView':this[_0x376b('0x37')](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x40695d['bind'](_0x376b('0x1e'))['to'](this,'isEnabled',this,_0x376b('0x3b'),(_0xaa5f69,_0x7b7185)=>_0xaa5f69&&!_0x7b7185),this[_0x376b('0x1')](_0x40695d,_0x376b('0x2b'),(_0x469747,_0x42add4)=>{this['prompt']=_0x42add4;const _0xba8c1b=_0x1eb6c7(_0x42add4);this[_0x376b('0x2e')]('submitPrompt',_0xba8c1b),_0x42add4[_0x376b('0x42')]()&&this[_0x376b('0x27')]['add']({'prompt':_0xba8c1b},0x0);},{'priority':_0x376b('0x24')}),_0x40695d;}[_0x376b('0x37')](){const _0x36a157=new _0x17e058(this['locale']);return _0x36a157[_0x376b('0x3a')]['items'][_0x376b('0x31')](this[_0x376b('0x27')])['as'](_0x453245),_0x36a157['on'](_0x376b('0x23'),()=>{this['_promptHistory'][_0x376b('0x1f')](),this[_0x376b('0x29')][_0x376b('0x2c')](''),this[_0x376b('0x29')][_0x376b('0x22')]();}),_0x36a157;}['_createToolbar'](){const _0x3ab81f=new _0x3f7786(this[_0x376b('0x3')]);return _0x3ab81f[_0x376b('0x7')][_0x376b('0x2a')]('isEnabled')['to'](this,_0x376b('0x1e'),this,'isProcessing',this,_0x376b('0x6'),(_0x239ff9,_0x4e7e5e,_0x3daadb)=>_0x239ff9&&!_0x4e7e5e&&!!_0x3daadb),_0x3ab81f[_0x376b('0x7')][_0x376b('0xf')](_0x376b('0x34'))['to'](this,_0x376b('0x18')),_0x3ab81f[_0x376b('0x4')][_0x376b('0x2a')](_0x376b('0x1e'))['to'](this,_0x376b('0x1e'),this,_0x376b('0x3b'),this,_0x376b('0x6'),(_0x418891,_0x46dc58,_0x4d03fa)=>_0x418891&&!_0x46dc58&&!!_0x4d03fa),_0x3ab81f['insertButton'][_0x376b('0xf')](_0x376b('0x34'))['to'](this,'insertContentBelow'),_0x3ab81f[_0x376b('0x1c')][_0x376b('0x2a')]('isEnabled')['to'](this,_0x376b('0x1e'),this,_0x376b('0x3b'),(_0x16dab0,_0x5a363c)=>_0x16dab0&&!_0x5a363c),_0x3ab81f[_0x376b('0x1c')][_0x376b('0xf')](_0x376b('0x34'))['to'](this,'tryAgainEvent'),_0x3ab81f[_0x376b('0x2')][_0x376b('0x2a')](_0x376b('0x1e'))['to'](this,_0x376b('0x3b')),_0x3ab81f[_0x376b('0x2')][_0x376b('0xf')](_0x376b('0x34'))['to'](this,'stopProcessing'),_0x3ab81f;}['startProcessing'](){this[_0x376b('0x6')]='',this[_0x376b('0xe')]=!0x1,this[_0x376b('0x3b')]=!0x0,this[_0x376b('0x14')][_0x376b('0x21')]=!0x0,this['toolbar']['isVisible']=!0x0,this[_0x376b('0x14')]['focus']();}[_0x376b('0xb')](){const _0x5bdb5b=this[_0x376b('0x3')];this[_0x376b('0x3b')]=!0x1,this[_0x376b('0x3f')]='',this[_0x376b('0x29')][_0x376b('0x2f')](),this[_0x376b('0x6')]&&(this['promptView'][_0x376b('0xc')][_0x376b('0x40')]=_0x1cead2(_0x5bdb5b,_0x376b('0x9')));}[_0x376b('0x25')](_0x17fe4b){const _0x45012a=this['locale'];this['finishProcessing'](),this[_0x376b('0xe')]=!0x0,this[_0x376b('0x11')][_0x376b('0x19')]=_0x17fe4b||_0x1cead2(_0x45012a,'AI_ERROR_FAILED'),this[_0x376b('0x6')]||(this[_0x376b('0x14')][_0x376b('0x21')]=!0x1);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4146=['set','fire','execute','children','locale','prompt'];(function(_0x19af0c,_0x4146ea){const _0x3cabcc=function(_0x25f2dc){while(--_0x25f2dc){_0x19af0c['push'](_0x19af0c['shift']());}};_0x3cabcc(++_0x4146ea);}(_0x4146,0xcf));const _0x3cab=function(_0x19af0c,_0x4146ea){_0x19af0c=_0x19af0c-0x0;let _0x3cabcc=_0x4146[_0x19af0c];return _0x3cabcc;};import{ListItemView as _0x2aa532,ButtonView as _0x14ca88}from'ckeditor5/src/ui.js';import _0xd30802 from'../dropdown/buttonlabelwithhighlightview.js';import{unescape as _0x1c409c}from'lodash-es';export default class hs extends _0x2aa532{constructor(_0x211d72){super();const _0x256f29=new _0xd30802(),_0x32d157=new _0x14ca88(this[_0x3cab('0x1')],_0x256f29);this[_0x3cab('0x0')]['add'](_0x32d157),_0x32d157[_0x3cab('0x3')]({'label':_0x211d72[_0x3cab('0x2')],'withText':!0x0}),_0x32d157['on'](_0x3cab('0x5'),()=>{this[_0x3cab('0x4')](_0x3cab('0x5'),{'value':_0x1c409c(_0x211d72[_0x3cab('0x2')])});});}}
23
+ const _0x19c7=['add','fire','prompt','children','set','execute','locale'];(function(_0x15714f,_0x19c77c){const _0x4a075d=function(_0x49a8f7){while(--_0x49a8f7){_0x15714f['push'](_0x15714f['shift']());}};_0x4a075d(++_0x19c77c);}(_0x19c7,0xbe));const _0x4a07=function(_0x15714f,_0x19c77c){_0x15714f=_0x15714f-0x0;let _0x4a075d=_0x19c7[_0x15714f];return _0x4a075d;};import{ListItemView as _0xe824c4,ButtonView as _0x5d353e}from'ckeditor5/src/ui.js';import _0x1129d0 from'../dropdown/buttonlabelwithhighlightview.js';import{unescape as _0x115710}from'lodash-es';export default class hs extends _0xe824c4{constructor(_0x900613){super();const _0x4267ee=new _0x1129d0(),_0x69c538=new _0x5d353e(this[_0x4a07('0x5')],_0x4267ee);this[_0x4a07('0x2')][_0x4a07('0x6')](_0x69c538),_0x69c538[_0x4a07('0x3')]({'label':_0x900613[_0x4a07('0x1')],'withText':!0x0}),_0x69c538['on']('execute',()=>{this[_0x4a07('0x0')](_0x4a07('0x4'),{'value':_0x115710(_0x900613[_0x4a07('0x1')])});});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4e97=['execute','_createClearHistoryButton','children','length','label','items','clearHistory','locale','delegate','historyGroupView','set','clearHistoryButton','Clear','filter'];(function(_0x4119f1,_0x4e97b3){const _0x20ebde=function(_0x290f3){while(--_0x290f3){_0x4119f1['push'](_0x4119f1['shift']());}};_0x20ebde(++_0x4e97b3);}(_0x4e97,0x175));const _0x20eb=function(_0x4119f1,_0x4e97b3){_0x4119f1=_0x4119f1-0x0;let _0x20ebde=_0x4e97[_0x4119f1];return _0x20ebde;};import{ListView as _0x1e041d,ListItemGroupView as _0xf6058d,ButtonView as _0x5c623}from'ckeditor5/src/ui.js';import{getTranslation as _0x537ebc}from'../../utils/common-translations.js';export default class rs extends _0x1e041d{constructor(_0x48ad6e){super(_0x48ad6e),this[_0x20eb('0x2')]=this[_0x20eb('0x6')](),this[_0x20eb('0x0')]=new _0xf6058d(),this[_0x20eb('0x0')][_0x20eb('0x7')]['add'](this[_0x20eb('0x2')],0x1),this[_0x20eb('0x0')][_0x20eb('0x9')]=_0x537ebc(_0x48ad6e,'Prompt\x20history'),this['historyGroupView']['items'][_0x20eb('0xd')](_0x20eb('0x5'))['to'](this),this[_0x20eb('0xa')]['add'](this['historyGroupView']);}[_0x20eb('0x4')](){let _0x27042d=0x0;for(const _0x487b1f of this[_0x20eb('0xa')])_0x27042d+=_0x487b1f[_0x20eb('0xa')][_0x20eb('0x8')];return{'resultsCount':_0x27042d,'totalItemsCount':_0x27042d};}[_0x20eb('0x6')](){const _0x45d9ae=this[_0x20eb('0xc')],_0x20f005=new _0x5c623(this[_0x20eb('0xc')]);return _0x20f005[_0x20eb('0x1')]({'label':'('+_0x537ebc(_0x45d9ae,_0x20eb('0x3'))+')','withText':!0x0}),_0x20f005['on']('execute',()=>this['fire'](_0x20eb('0xb'))),_0x20f005;}}
23
+ const _0x3f81=['clearHistoryButton','execute','_createClearHistoryButton','items','locale','Prompt\x20history','delegate','label','children','fire','historyGroupView','add','clearHistory','set','Clear'];(function(_0x55b022,_0x3f8145){const _0x51b51a=function(_0x54ffd0){while(--_0x54ffd0){_0x55b022['push'](_0x55b022['shift']());}};_0x51b51a(++_0x3f8145);}(_0x3f81,0x1cc));const _0x51b5=function(_0x55b022,_0x3f8145){_0x55b022=_0x55b022-0x0;let _0x51b51a=_0x3f81[_0x55b022];return _0x51b51a;};import{ListView as _0x43834f,ListItemGroupView as _0x2080a8,ButtonView as _0x2c052e}from'ckeditor5/src/ui.js';import{getTranslation as _0x590865}from'../../utils/common-translations.js';export default class rs extends _0x43834f{constructor(_0x30ef21){super(_0x30ef21),this[_0x51b5('0x5')]=this[_0x51b5('0x7')](),this[_0x51b5('0x0')]=new _0x2080a8(),this[_0x51b5('0x0')][_0x51b5('0xd')][_0x51b5('0x1')](this[_0x51b5('0x5')],0x1),this['historyGroupView'][_0x51b5('0xc')]=_0x590865(_0x30ef21,_0x51b5('0xa')),this[_0x51b5('0x0')][_0x51b5('0x8')][_0x51b5('0xb')](_0x51b5('0x6'))['to'](this),this[_0x51b5('0x8')][_0x51b5('0x1')](this[_0x51b5('0x0')]);}['filter'](){let _0x599b73=0x0;for(const _0x401a0d of this['items'])_0x599b73+=_0x401a0d['items']['length'];return{'resultsCount':_0x599b73,'totalItemsCount':_0x599b73};}[_0x51b5('0x7')](){const _0x38e160=this['locale'],_0x1e44fa=new _0x2c052e(this[_0x51b5('0x9')]);return _0x1e44fa[_0x51b5('0x3')]({'label':'('+_0x590865(_0x38e160,_0x51b5('0x4'))+')','withText':!0x0}),_0x1e44fa['on'](_0x51b5('0x6'),()=>this[_0x51b5('0xe')](_0x51b5('0x2'))),_0x1e44fa;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x24db=['prompt','addMany','setItem','_loadFromSessionStorage','add','_saveToSessionStorage','map','trim','stringify','parse','length','getItem','remove','last'];(function(_0x6f1e2d,_0x24dbd1){const _0x34fcda=function(_0x261090){while(--_0x261090){_0x6f1e2d['push'](_0x6f1e2d['shift']());}};_0x34fcda(++_0x24dbd1);}(_0x24db,0x81));const _0x34fc=function(_0x6f1e2d,_0x24dbd1){_0x6f1e2d=_0x6f1e2d-0x0;let _0x34fcda=_0x24db[_0x6f1e2d];return _0x34fcda;};import{Collection as _0x110ee3}from'ckeditor5/src/utils.js';const cs='CKEditor/AIFormView/PromptHistory';export default class os extends _0x110ee3{constructor(){super(),this['_loadFromSessionStorage'](),this['on'](_0x34fc('0x1'),(_0x296b1a,_0x5ef4f4)=>{const _0x52ba8f=Ss(_0x5ef4f4['prompt']);for(const _0x1a9ac6 of this)if(_0x1a9ac6!=_0x5ef4f4&&Ss(_0x1a9ac6[_0x34fc('0xb')])===_0x52ba8f){this[_0x34fc('0x9')](_0x1a9ac6);break;}this[_0x34fc('0x7')]>0x14&&this['remove'](this[_0x34fc('0xa')]),this['_saveToSessionStorage']();}),this['on'](_0x34fc('0x9'),()=>{this['_saveToSessionStorage']();});}[_0x34fc('0x0')](){const _0x4b71ee=sessionStorage[_0x34fc('0x8')](cs)||'[]';this[_0x34fc('0xc')](JSON[_0x34fc('0x6')](_0x4b71ee));}[_0x34fc('0x2')](){sessionStorage[_0x34fc('0xd')](cs,JSON[_0x34fc('0x5')](this[_0x34fc('0x3')](_0x4b815b=>_0x4b815b)));}}function Ss(_0x38121c){return _0x38121c['toLowerCase']()[_0x34fc('0x4')]();}
23
+ const _0x51c7=['_saveToSessionStorage','addMany','remove','map','prompt','_loadFromSessionStorage','last','trim','getItem','parse','setItem','CKEditor/AIFormView/PromptHistory','add'];(function(_0x127f82,_0x51c762){const _0x4c8d8f=function(_0x10d456){while(--_0x10d456){_0x127f82['push'](_0x127f82['shift']());}};_0x4c8d8f(++_0x51c762);}(_0x51c7,0xb1));const _0x4c8d=function(_0x127f82,_0x51c762){_0x127f82=_0x127f82-0x0;let _0x4c8d8f=_0x51c7[_0x127f82];return _0x4c8d8f;};import{Collection as _0x57f06e}from'ckeditor5/src/utils.js';const cs=_0x4c8d('0x3');export default class os extends _0x57f06e{constructor(){super(),this['_loadFromSessionStorage'](),this['on'](_0x4c8d('0x4'),(_0xf66060,_0x5c8807)=>{const _0xb08802=Ss(_0x5c8807[_0x4c8d('0x9')]);for(const _0x315525 of this)if(_0x315525!=_0x5c8807&&Ss(_0x315525[_0x4c8d('0x9')])===_0xb08802){this[_0x4c8d('0x7')](_0x315525);break;}this['length']>0x14&&this[_0x4c8d('0x7')](this[_0x4c8d('0xb')]),this[_0x4c8d('0x5')]();}),this['on']('remove',()=>{this['_saveToSessionStorage']();});}[_0x4c8d('0xa')](){const _0x51fad6=sessionStorage[_0x4c8d('0x0')](cs)||'[]';this[_0x4c8d('0x6')](JSON[_0x4c8d('0x1')](_0x51fad6));}['_saveToSessionStorage'](){sessionStorage[_0x4c8d('0x2')](cs,JSON['stringify'](this[_0x4c8d('0x8')](_0x328a2f=>_0x328a2f)));}}function Ss(_0x4eb608){return _0x4eb608['toLowerCase']()[_0x4c8d('0xc')]();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4d46=['getItems','showUI','isEnabled','getRanges','model','selection','execute','custom','refresh','includes','ai.aiAssistant.disabledElements','editor'];(function(_0x2388a2,_0x4d466c){const _0x39c954=function(_0x37c660){while(--_0x37c660){_0x2388a2['push'](_0x2388a2['shift']());}};_0x39c954(++_0x4d466c);}(_0x4d46,0x6d));const _0x39c9=function(_0x2388a2,_0x4d466c){_0x2388a2=_0x2388a2-0x0;let _0x39c954=_0x4d46[_0x2388a2];return _0x39c954;};import{Command as _0x5b7af2}from'ckeditor5/src/core.js';import _0x5dd1ce from'../aiassistantui.js';export default class g extends _0x5b7af2{[_0x39c9('0x7')](){const _0x2fb6c0=this[_0x39c9('0xa')][_0x39c9('0x3')]['document'][_0x39c9('0x4')],_0x52c414=this[_0x39c9('0xa')]['config']['get'](_0x39c9('0x9'));for(const _0x4b6dae of _0x2fb6c0[_0x39c9('0x2')]())for(const _0x4f3b6d of _0x4b6dae[_0x39c9('0xb')]())if(_0x4f3b6d['is']('element')&&_0x52c414[_0x39c9('0x8')](_0x4f3b6d['name']))return void(this[_0x39c9('0x1')]=!0x1);this['isEnabled']=!0x0;}[_0x39c9('0x5')](_0x3c1adf='',_0x2317d8='',_0x5a25a8=_0x39c9('0x6')){this[_0x39c9('0xa')]['plugins']['get'](_0x5dd1ce)[_0x39c9('0x0')](_0x3c1adf,_0x2317d8,_0x5a25a8);}}
23
+ const _0x255a=['selection','document','showUI','isEnabled','plugins','editor','includes','config','get','refresh','getItems','execute','element'];(function(_0x588be4,_0x255a94){const _0x427b0b=function(_0x59fc9d){while(--_0x59fc9d){_0x588be4['push'](_0x588be4['shift']());}};_0x427b0b(++_0x255a94);}(_0x255a,0x1d8));const _0x427b=function(_0x588be4,_0x255a94){_0x588be4=_0x588be4-0x0;let _0x427b0b=_0x255a[_0x588be4];return _0x427b0b;};import{Command as _0x244d70}from'ckeditor5/src/core.js';import _0x38c9e8 from'../aiassistantui.js';export default class g extends _0x244d70{[_0x427b('0x5')](){const _0x325e37=this[_0x427b('0x1')]['model'][_0x427b('0xa')][_0x427b('0x9')],_0x45b988=this[_0x427b('0x1')][_0x427b('0x3')][_0x427b('0x4')]('ai.aiAssistant.disabledElements');for(const _0x142dd8 of _0x325e37['getRanges']())for(const _0x5e1e6e of _0x142dd8[_0x427b('0x6')]())if(_0x5e1e6e['is'](_0x427b('0x8'))&&_0x45b988[_0x427b('0x2')](_0x5e1e6e['name']))return void(this[_0x427b('0xc')]=!0x1);this['isEnabled']=!0x0;}[_0x427b('0x7')](_0x556073='',_0x57e558='',_0x67a79d='custom'){this[_0x427b('0x1')][_0x427b('0x0')][_0x427b('0x4')](_0x38c9e8)[_0x427b('0xb')](_0x556073,_0x57e558,_0x67a79d);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x12cf52,_0x51ba24,_0x3910fd){const t=_0x12cf52['t'];switch(_0x51ba24){case'Edit\x20or\x20review':return t('Edit\x20or\x20review');case'Improve\x20writing':return t('Improve\x20writing');case'Make\x20shorter':return t('Make\x20shorter');case'Make\x20longer':return t('Make\x20longer');case'Simplify\x20language':return t('Simplify\x20language');case'Generate\x20from\x20selection':return t('Generate\x20from\x20selection');case'Summarize':return t('Summarize');case'Continue':return t('Continue');case'Change\x20tone':return t('Change\x20tone');case'Professional':return t('Professional');case'Casual':return t('Casual');case'Direct':return t('Direct');case'Confident':return t('Confident');case'Friendly':return t('Friendly');case'Change\x20style':return t('Change\x20style');case'Business':return t('Business');case'Legal':return t('Legal');case'Journalism':return t('Journalism');case'Poetic':return t('Poetic');case'Translate':return t('Translate');case'Translate\x20to\x20%0':return t('Translate\x20to\x20%0',_0x3910fd);case'English':return t('English');case'Spanish':return t('Spanish');case'German':return t('German');case'Portuguese':return t('Portuguese');case'French':return t('French');case'Simplified\x20Chinese':return t('Simplified\x20Chinese');case'Hindi':return t('Hindi');case'Arabic':return t('Arabic');case'AI\x20Assistant':return t('AI\x20Assistant');case'AI\x20Commands':return t('AI\x20Commands');case'Ask\x20AI\x20to\x20edit\x20or\x20generate':return t('Ask\x20AI\x20to\x20edit\x20or\x20generate');case'Ask\x20AI\x20to\x20improve\x20generated\x20text':return t('Ask\x20AI\x20to\x20improve\x20generated\x20text');case'Copy':return t('Copy');case'Submit':return t('Submit');case'Insert\x20below':return t('Insert\x20below');case'Try\x20again':return t('Try\x20again');case'Stop':return t('Stop');case'AI\x20is\x20writing...':return t('AI\x20is\x20writing...');case'History':return t('History');case'Empty\x20history':return t('Empty\x20history');case'Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.':return t('Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.');case'Prompt\x20history':return t('Prompt\x20history');case'Search\x20AI\x20command':return t('Search\x20AI\x20command');case'No\x20commands\x20found':return t('No\x20commands\x20found');case'No\x20commands\x20available':return t('No\x20commands\x20available');case'Clear':return t('Clear');case'AI_REPLACE_CONTENT':return t({'id':'AI_REPLACE_CONTENT','string':'Replace'});case'AI_INSERT_CONTENT':return t({'id':'AI_INSERT_CONTENT','string':'Insert'});case'AI_ERROR_GET_HEADERS':return t({'id':'AI_ERROR_GET_HEADERS','string':'Preparing\x20request\x20headers\x20failed'});case'AI_ERROR_GET_PARAMETERS':return t({'id':'AI_ERROR_GET_PARAMETERS','string':'Preparing\x20request\x20parameters\x20failed'});case'AI_ERROR_UNSUPPORTED_MODEL':return t({'id':'AI_ERROR_UNSUPPORTED_MODEL','string':'The\x20requested\x20AI\x20model\x20(\x22%0\x22)\x20is\x20not\x20supported'},_0x3910fd);case'AI_ERROR_CONTEXT_LENGTH':return t({'id':'AI_ERROR_CONTEXT_LENGTH','string':'Selected\x20content\x20is\x20too\x20long'});case'AI_ERROR_MODERATION':return t({'id':'AI_ERROR_MODERATION','string':'Requested\x20query\x20does\x20not\x20pass\x20moderation\x20rules'});case'AI_ERROR_FAILED':return t({'id':'AI_ERROR_FAILED','string':'Failed\x20to\x20communicate\x20with\x20the\x20AI\x20service'});default:return _0x51ba24;}}
23
+ export function getTranslation(_0x4f0bd3,_0x25d9a5,_0x2b4376){const t=_0x4f0bd3['t'];switch(_0x25d9a5){case'Edit\x20or\x20review':return t('Edit\x20or\x20review');case'Improve\x20writing':return t('Improve\x20writing');case'Make\x20shorter':return t('Make\x20shorter');case'Make\x20longer':return t('Make\x20longer');case'Simplify\x20language':return t('Simplify\x20language');case'Generate\x20from\x20selection':return t('Generate\x20from\x20selection');case'Summarize':return t('Summarize');case'Continue':return t('Continue');case'Change\x20tone':return t('Change\x20tone');case'Professional':return t('Professional');case'Casual':return t('Casual');case'Direct':return t('Direct');case'Confident':return t('Confident');case'Friendly':return t('Friendly');case'Change\x20style':return t('Change\x20style');case'Business':return t('Business');case'Legal':return t('Legal');case'Journalism':return t('Journalism');case'Poetic':return t('Poetic');case'Translate':return t('Translate');case'Translate\x20to\x20%0':return t('Translate\x20to\x20%0',_0x2b4376);case'English':return t('English');case'Spanish':return t('Spanish');case'German':return t('German');case'Portuguese':return t('Portuguese');case'French':return t('French');case'Simplified\x20Chinese':return t('Simplified\x20Chinese');case'Hindi':return t('Hindi');case'Arabic':return t('Arabic');case'AI\x20Assistant':return t('AI\x20Assistant');case'AI\x20Commands':return t('AI\x20Commands');case'Ask\x20AI\x20to\x20edit\x20or\x20generate':return t('Ask\x20AI\x20to\x20edit\x20or\x20generate');case'Ask\x20AI\x20to\x20improve\x20generated\x20text':return t('Ask\x20AI\x20to\x20improve\x20generated\x20text');case'Copy':return t('Copy');case'Submit':return t('Submit');case'Insert\x20below':return t('Insert\x20below');case'Try\x20again':return t('Try\x20again');case'Stop':return t('Stop');case'AI\x20is\x20writing...':return t('AI\x20is\x20writing...');case'History':return t('History');case'Empty\x20history':return t('Empty\x20history');case'Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.':return t('Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.');case'Prompt\x20history':return t('Prompt\x20history');case'Search\x20AI\x20command':return t('Search\x20AI\x20command');case'No\x20commands\x20found':return t('No\x20commands\x20found');case'No\x20commands\x20available':return t('No\x20commands\x20available');case'Clear':return t('Clear');case'AI_REPLACE_CONTENT':return t({'id':'AI_REPLACE_CONTENT','string':'Replace'});case'AI_INSERT_CONTENT':return t({'id':'AI_INSERT_CONTENT','string':'Insert'});case'AI_ERROR_GET_HEADERS':return t({'id':'AI_ERROR_GET_HEADERS','string':'Preparing\x20request\x20headers\x20failed'});case'AI_ERROR_GET_PARAMETERS':return t({'id':'AI_ERROR_GET_PARAMETERS','string':'Preparing\x20request\x20parameters\x20failed'});case'AI_ERROR_UNSUPPORTED_MODEL':return t({'id':'AI_ERROR_UNSUPPORTED_MODEL','string':'The\x20requested\x20AI\x20model\x20(\x22%0\x22)\x20is\x20not\x20supported'},_0x2b4376);case'AI_ERROR_CONTEXT_LENGTH':return t({'id':'AI_ERROR_CONTEXT_LENGTH','string':'Selected\x20content\x20is\x20too\x20long'});case'AI_ERROR_MODERATION':return t({'id':'AI_ERROR_MODERATION','string':'Requested\x20query\x20does\x20not\x20pass\x20moderation\x20rules'});case'AI_ERROR_FAILED':return t({'id':'AI_ERROR_FAILED','string':'Failed\x20to\x20communicate\x20with\x20the\x20AI\x20service'});default:return _0x25d9a5;}}