@ckeditor/ckeditor5-ai 0.0.0-nightly-20240202.0 → 0.0.0-nightly-20240203.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 _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')]();}}
23
+ const _0x242d=['execute','excludeScrollbarsAndBorders','focusableChildren','minRows','ck-ai-form__submit','enter','requestAnimationFrame','window','add','update','rtl','locale','fieldView','width','bind','resultsView','submit','isVisible','left','Submit','element','render','queryView','focus','isEmpty','filteredView','value','isEnabled','fire','keystrokes','fieldWrapperChildren','_createSubmitButton','submitButtonView','_createShowHistoryButton','showHistoryButtonView','set'];(function(_0x182b1f,_0x242dc7){const _0x1997c9=function(_0x39388c){while(--_0x39388c){_0x182b1f['push'](_0x182b1f['shift']());}};_0x1997c9(++_0x242dc7);}(_0x242d,0xc9));const _0x1997=function(_0x182b1f,_0x242dc7){_0x182b1f=_0x182b1f-0x0;let _0x1997c9=_0x242d[_0x182b1f];return _0x1997c9;};import{Rect as _0x3b9514,global as _0x390d70,isVisible as _0x30af0f}from'ckeditor5/src/utils.js';import{AutocompleteView as _0x20420a,ButtonView as _0x3de23c}from'ckeditor5/src/ui.js';import{icons as _0x4e3ab0}from'ckeditor5/src/core.js';import{getTranslation as _0x75fa2e}from'../../utils/common-translations.js';import _0x1777ac from'../../../theme/icons/submit.svg';export default class ht extends _0x20420a{constructor(_0x57ef98,_0x381255){super(_0x57ef98,_0x381255),this[_0x1997('0x1')]['fieldView'][_0x1997('0x12')]=0x1,this[_0x1997('0x1')][_0x1997('0x1b')]['maxRows']=0x3,this[_0x1997('0xb')]=this[_0x1997('0xa')](),this[_0x1997('0xd')]=this[_0x1997('0xc')](),this['focusableChildren'][_0x1997('0x17')](this[_0x1997('0xd')],0x1),this[_0x1997('0x11')][_0x1997('0x17')](this['submitButtonView']);}['render'](){super[_0x1997('0x0')](),this[_0x1997('0x1')][_0x1997('0x9')][_0x1997('0x17')](this[_0x1997('0xd')]),this['children']['add'](this[_0x1997('0xb')]),this[_0x1997('0x8')][_0x1997('0xe')](_0x1997('0x14'),(_0x292ffb,_0x36bc7b)=>{_0x292ffb['target']==this[_0x1997('0x1')][_0x1997('0x1b')][_0x1997('0x23')]&&(this['submit'](),_0x36bc7b());});}[_0x1997('0xa')](){const _0x58ed01=new _0x3de23c(this[_0x1997('0x1a')]),_0x5dbac5=this['locale'];return _0x58ed01[_0x1997('0xe')]({'icon':_0x1777ac,'label':_0x75fa2e(_0x5dbac5,_0x1997('0x22')),'isVisible':!0x0,'tooltip':!0x0,'class':_0x1997('0x13')}),_0x58ed01['on'](_0x1997('0xf'),()=>{this[_0x1997('0x1f')]();}),_0x58ed01[_0x1997('0x1d')](_0x1997('0x6'))['to'](this['queryView'][_0x1997('0x1b')],_0x1997('0x3'),this,_0x1997('0x6'),(_0x25f140,_0x1e66eb)=>!_0x25f140&&_0x1e66eb),_0x58ed01;}['_createShowHistoryButton'](){const _0x3ec802=new _0x3de23c(this[_0x1997('0x1a')]),_0x5f5201=this[_0x1997('0x1e')],_0xed22f3=this[_0x1997('0x1a')];_0x3ec802[_0x1997('0xe')]({'label':_0x75fa2e(_0xed22f3,'History'),'withText':!0x1,'icon':_0x4e3ab0['history'],'tooltip':!0x0,'tooltipPosition':'sw','class':'ck-ai-form__toggle-history'}),_0x3ec802['bind']('isOn')['to'](_0x5f5201,_0x1997('0x20')),_0x3ec802[_0x1997('0x1d')](_0x1997('0x6'))['to'](this,_0x1997('0x6')),_0x3ec802['on']('execute',()=>{_0x5f5201['isVisible']=!_0x5f5201[_0x1997('0x20')],_0x5f5201[_0x1997('0x20')]?this[_0x1997('0x4')]['focus']():this[_0x1997('0x2')]();});const _0x3f7474=()=>{_0x390d70[_0x1997('0x16')][_0x1997('0x15')](()=>{if(_0x30af0f(this['element'])){const _0x210435=new _0x3b9514(this[_0x1997('0x1')][_0x1997('0x1b')][_0x1997('0x23')]),_0x55c2f3=_0x210435[_0x1997('0x1c')],_0x41528e=_0x1997('0x19')===_0xed22f3['uiLanguageDirection']?_0x1997('0x21'):'right';_0x210435[_0x1997('0x10')](),_0x3ec802[_0x1997('0x23')]['style'][_0x41528e]=_0x55c2f3-_0x210435[_0x1997('0x1c')]+0x1+'px';}});};return this[_0x1997('0x1')][_0x1997('0x1b')]['on'](_0x1997('0x18'),_0x3f7474),this['on']('render',_0x3f7474),_0x3ec802;}[_0x1997('0x1f')](){const _0x41fbc8=this[_0x1997('0x1')][_0x1997('0x1b')][_0x1997('0x23')][_0x1997('0x5')];this[_0x1997('0x7')]('submit',_0x41fbc8);}[_0x1997('0x2')](_0x150df9){-0x1===_0x150df9?this['focusCycler']['focusLast']():this['focusCycler']['focusFirst']();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
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;}}
23
+ const _0x4ca5=['Insert\x20below','bindTemplate','items','REPLACE','_createButton','mainAction','replace','insertButton','addMany','toUpperCase','ck-ai-form__toolbar','isVisible','bind','ck-hidden','ck-button-action','label','stopButton','replaceButton','AI_','Stop','_CONTENT','set','Try\x20again'];(function(_0x2500ca,_0x4ca53d){const _0x3257fe=function(_0x538712){while(--_0x538712){_0x2500ca['push'](_0x2500ca['shift']());}};_0x3257fe(++_0x4ca53d);}(_0x4ca5,0xff));const _0x3257=function(_0x2500ca,_0x4ca53d){_0x2500ca=_0x2500ca-0x0;let _0x3257fe=_0x4ca5[_0x2500ca];return _0x3257fe;};import{ToolbarView as _0x190d71,ButtonView as _0x497a82}from'ckeditor5/src/ui.js';import{getTranslation as _0x193ec5}from'../../utils/common-translations.js';export const AIFormToolbarViewMainActionLabel={'REPLACE':_0x3257('0x4'),'INSERT':'insert'};export default class at extends _0x190d71{constructor(_0x43c2c7){super(_0x43c2c7),this[_0x3257('0x13')]('isVisible',!0x1),this[_0x3257('0x13')]('mainAction',AIFormToolbarViewMainActionLabel[_0x3257('0x1')]),this['replaceButton']=this['_createButton']('',_0x3257('0xc')),this[_0x3257('0xf')][_0x3257('0xa')](_0x3257('0xd'))['to'](this,_0x3257('0x3'),_0x5b4897=>_0x193ec5(_0x43c2c7,_0x3257('0x10')+_0x5b4897[_0x3257('0x7')]()+_0x3257('0x12'))),this['insertButton']=this[_0x3257('0x2')](_0x193ec5(_0x43c2c7,_0x3257('0x15'))),this['tryAgainButton']=this[_0x3257('0x2')](_0x193ec5(_0x43c2c7,_0x3257('0x14'))),this[_0x3257('0xe')]=this[_0x3257('0x2')](_0x193ec5(_0x43c2c7,_0x3257('0x11')));const _0x32132e=this[_0x3257('0x16')];this['extendTemplate']({'attributes':{'class':[_0x3257('0x8'),_0x32132e['if'](_0x3257('0x9'),_0x3257('0xb'),_0x4c41c8=>!_0x4c41c8)]}}),this[_0x3257('0x0')][_0x3257('0x6')]([this[_0x3257('0xf')],this[_0x3257('0x5')],this['tryAgainButton'],this['stopButton']]);}[_0x3257('0x2')](_0x3352fd,_0x306272){const _0x1462a2=new _0x497a82(this['locale']);return _0x1462a2[_0x3257('0x13')]({'label':_0x3352fd,'class':_0x306272||'','isVisible':!0x0,'withText':!0x0}),_0x1462a2;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
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);}}
23
+ const _0x8078=['contentArea','bind','isProcessing','delegate','stopProcessing','focusCycler','stopButton','text','tryAgainEvent','handleError','queryView','replaceContent','submitPrompt','ck-ai-form','listenTo','_createToolbar','replaceButton','setTemplate','focusTracker','toolbar','startProcessing','div','_createPromptView','focusNext','render','execute','set','stop','value','_createHistoryView','insertContentBelow','element','mainAction','clearHistory','reset','locale','prompt','high','bindTemplate','fire','isVisible','finishProcessing','focusPrevious','focus','createCollection','add','keystrokes','isEnabled','REPLACE','promptView','copyButtonView','errorView','Empty\x20history','search','insertButton','historyGroupView','AI_ERROR_FAILED','isError','items','ck-ai-form-content','_promptHistory'];(function(_0x4e4766,_0x807884){const _0x11dfc8=function(_0x1930de){while(--_0x1930de){_0x4e4766['push'](_0x4e4766['shift']());}};_0x11dfc8(++_0x807884);}(_0x8078,0x1ad));const _0x11df=function(_0x4e4766,_0x807884){_0x4e4766=_0x4e4766-0x0;let _0x11dfc8=_0x8078[_0x4e4766];return _0x11dfc8;};import{FocusTracker as _0x2436b9,KeystrokeHandler as _0x14d7bd}from'ckeditor5/src/utils.js';import{View as _0x1f9380,FocusCycler as _0x51f91a,createLabeledTextarea as _0x61b3d5}from'ckeditor5/src/ui.js';import _0x6611d3,{AIFormToolbarViewMainActionLabel as _0x2efaf3}from'./aiformtoolbarview.js';import _0x451338 from'./aiformcontentarea.js';import _0x5cddf8 from'./aiformerrorview.js';import _0x3cf8dc from'./aiformpromptview.js';import _0x15f81a from'./aihistorylistview.js';import _0xe4b7a9 from'./aihistorylistitemview.js';import _0x5dbd05 from'./prompthistory.js';import{getTranslation as _0xd558b6}from'../../utils/common-translations.js';import{escape as _0x38b990}from'lodash-es';export default class v extends _0x1f9380{constructor(_0x250819,_0x54ffb8,_0x3177c9=''){super(_0x250819),this[_0x11df('0x18')](_0x11df('0x2d'),!0x0),this[_0x11df('0x18')](_0x11df('0x0'),!0x1),this['set'](_0x11df('0x22'),''),this[_0x11df('0x18')](_0x11df('0x1a'),''),this[_0x11df('0x18')](_0x11df('0x37'),!0x1),this['set'](_0x11df('0x1e'),_0x2efaf3[_0x11df('0x2e')]),this[_0x11df('0x3a')]=new _0x5dbd05(),this['errorView']=new _0x5cddf8(_0x250819),this[_0x11df('0x3b')]=new _0x451338(_0x250819,_0x3177c9),this[_0x11df('0x3b')]['bind']('isProcessing')['to'](this),this[_0x11df('0x3b')][_0x11df('0x3c')](_0x11df('0x1a'))['to'](this),this[_0x11df('0x11')]=this[_0x11df('0xd')](),this[_0x11df('0x11')]['bind'](_0x11df('0x1e'))['to'](this),this[_0x11df('0x2f')]=this[_0x11df('0x14')](),this['focusTracker']=new _0x2436b9(),this[_0x11df('0x2c')]=new _0x14d7bd(),this['_focusables']=this[_0x11df('0x2a')]([this[_0x11df('0x3b')],this[_0x11df('0x3b')][_0x11df('0x30')],this['toolbar'],this[_0x11df('0x2f')]]),this['focusCycler']=new _0x51f91a({'focusables':this['_focusables'],'focusTracker':this[_0x11df('0x10')],'keystrokeHandler':this[_0x11df('0x2c')],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['promptView'][_0x11df('0x3')]['on']('forwardCycle',_0x50406e=>{this[_0x11df('0x3')][_0x11df('0x15')](),_0x50406e[_0x11df('0x19')]();}),this[_0x11df('0x2f')][_0x11df('0x3')]['on']('backwardCycle',_0x5b18b6=>{this[_0x11df('0x3')][_0x11df('0x28')](),_0x5b18b6[_0x11df('0x19')]();}),this['promptView'][_0x11df('0x8')]['fieldView'][_0x11df('0x3c')](_0x11df('0x1a'))['to'](this,_0x11df('0x22'));const _0x4f59e5=this[_0x11df('0x24')];this[_0x11df('0xf')]({'tag':_0x11df('0x13'),'attributes':{'class':['ck',_0x11df('0xb'),_0x54ffb8],'tabindex':'-1'},'children':[{'tag':_0x11df('0x13'),'attributes':{'class':['ck',_0x11df('0x39')]},'children':[{'tag':_0x11df('0x13'),'attributes':{'class':[_0x4f59e5['if'](_0x11df('0x37'),'ck-hidden',_0x5da600=>!_0x5da600)]},'children':[this[_0x11df('0x31')]]},this[_0x11df('0x3b')],this['toolbar'],this[_0x11df('0x2f')]]}]});}[_0x11df('0x16')](){super[_0x11df('0x16')](),this[_0x11df('0x10')][_0x11df('0x2b')](this[_0x11df('0x3b')][_0x11df('0x1d')]),this[_0x11df('0x10')][_0x11df('0x2b')](this['contentArea'][_0x11df('0x30')][_0x11df('0x1d')]),this[_0x11df('0x10')]['add'](this[_0x11df('0x11')][_0x11df('0x1d')]),this[_0x11df('0x10')][_0x11df('0x2b')](this[_0x11df('0x2f')][_0x11df('0x1d')]),this[_0x11df('0x2c')][_0x11df('0xc')](this[_0x11df('0x1d')]);}['focus'](_0x220e3a=0x1){-0x1===_0x220e3a?this['focusCycler']['focusLast']():this[_0x11df('0x3')]['focusFirst']();}[_0x11df('0x20')](){this[_0x11df('0x22')]='',this[_0x11df('0x1a')]='',this[_0x11df('0x37')]=!0x1,this[_0x11df('0x2f')][_0x11df('0x20')](),this[_0x11df('0x3b')][_0x11df('0x26')]=!0x1,this['toolbar'][_0x11df('0x26')]=!0x1;}[_0x11df('0x14')](){const _0x4d8bda=this[_0x11df('0x21')],_0x55c51b=new _0x3cf8dc(_0x4d8bda,{'queryView':{'label':_0xd558b6(_0x4d8bda,'Ask\x20AI\x20to\x20edit\x20or\x20generate'),'creator':_0x61b3d5,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0xd558b6(_0x4d8bda,_0x11df('0x32')),'secondary':_0xd558b6(_0x4d8bda,'Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.')}}},'filteredView':this[_0x11df('0x1b')](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x55c51b['bind'](_0x11df('0x2d'))['to'](this,_0x11df('0x2d'),this,_0x11df('0x0'),(_0x1bb429,_0x11f29a)=>_0x1bb429&&!_0x11f29a),this[_0x11df('0xc')](_0x55c51b,'submit',(_0x3188ee,_0xba2d14)=>{this[_0x11df('0x22')]=_0xba2d14;const _0x3bbcd0=_0x38b990(_0xba2d14);this[_0x11df('0x25')](_0x11df('0xa'),_0x3bbcd0),_0xba2d14['trim']()&&this[_0x11df('0x3a')][_0x11df('0x2b')]({'prompt':_0x3bbcd0},0x0);},{'priority':_0x11df('0x23')}),_0x55c51b;}['_createHistoryView'](){const _0x49d7b3=new _0x15f81a(this['locale']);return _0x49d7b3[_0x11df('0x35')][_0x11df('0x38')]['bindTo'](this[_0x11df('0x3a')])['as'](_0xe4b7a9),_0x49d7b3['on'](_0x11df('0x1f'),()=>{this['_promptHistory']['clear'](),this[_0x11df('0x2f')][_0x11df('0x33')](''),this[_0x11df('0x2f')][_0x11df('0x29')]();}),_0x49d7b3;}['_createToolbar'](){const _0xbba794=new _0x6611d3(this[_0x11df('0x21')]);return _0xbba794['replaceButton'][_0x11df('0x3c')](_0x11df('0x2d'))['to'](this,_0x11df('0x2d'),this,_0x11df('0x0'),this,'value',(_0x3511dc,_0x28fbaf,_0x26fcbf)=>_0x3511dc&&!_0x28fbaf&&!!_0x26fcbf),_0xbba794[_0x11df('0xe')][_0x11df('0x1')]('execute')['to'](this,_0x11df('0x9')),_0xbba794[_0x11df('0x34')][_0x11df('0x3c')](_0x11df('0x2d'))['to'](this,'isEnabled',this,_0x11df('0x0'),this,_0x11df('0x1a'),(_0xacdb77,_0xd3bf49,_0x170554)=>_0xacdb77&&!_0xd3bf49&&!!_0x170554),_0xbba794[_0x11df('0x34')]['delegate'](_0x11df('0x17'))['to'](this,_0x11df('0x1c')),_0xbba794['tryAgainButton']['bind'](_0x11df('0x2d'))['to'](this,_0x11df('0x2d'),this,_0x11df('0x0'),(_0x8b250b,_0x1511e3)=>_0x8b250b&&!_0x1511e3),_0xbba794['tryAgainButton'][_0x11df('0x1')](_0x11df('0x17'))['to'](this,_0x11df('0x6')),_0xbba794[_0x11df('0x4')]['bind'](_0x11df('0x2d'))['to'](this,_0x11df('0x0')),_0xbba794['stopButton'][_0x11df('0x1')](_0x11df('0x17'))['to'](this,_0x11df('0x2')),_0xbba794;}[_0x11df('0x12')](){this[_0x11df('0x1a')]='',this[_0x11df('0x37')]=!0x1,this['isProcessing']=!0x0,this['contentArea']['isVisible']=!0x0,this[_0x11df('0x11')][_0x11df('0x26')]=!0x0,this[_0x11df('0x3b')][_0x11df('0x29')]();}['finishProcessing'](){const _0x598a79=this[_0x11df('0x21')];this[_0x11df('0x0')]=!0x1,this[_0x11df('0x22')]='',this[_0x11df('0x2f')][_0x11df('0x20')](),this[_0x11df('0x1a')]&&(this['promptView']['queryView']['label']=_0xd558b6(_0x598a79,'Ask\x20AI\x20to\x20improve\x20generated\x20text'));}[_0x11df('0x7')](_0x467996){const _0x3168c0=this['locale'];this[_0x11df('0x27')](),this[_0x11df('0x37')]=!0x0,this[_0x11df('0x31')][_0x11df('0x5')]=_0x467996||_0xd558b6(_0x3168c0,_0x11df('0x36')),this[_0x11df('0x1a')]||(this[_0x11df('0x3b')][_0x11df('0x26')]=!0x1);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
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')])});});}}
23
+ const _0x4236=['add','fire','execute','set','locale','prompt','children'];(function(_0x246bca,_0x423676){const _0x5a8025=function(_0x2b1ae7){while(--_0x2b1ae7){_0x246bca['push'](_0x246bca['shift']());}};_0x5a8025(++_0x423676);}(_0x4236,0xfd));const _0x5a80=function(_0x246bca,_0x423676){_0x246bca=_0x246bca-0x0;let _0x5a8025=_0x4236[_0x246bca];return _0x5a8025;};import{ListItemView as _0x566e6f,ButtonView as _0x4f4f08}from'ckeditor5/src/ui.js';import _0x2937e0 from'../dropdown/buttonlabelwithhighlightview.js';import{unescape as _0x5a0598}from'lodash-es';export default class hs extends _0x566e6f{constructor(_0x129786){super();const _0x5351e8=new _0x2937e0(),_0x3164d3=new _0x4f4f08(this[_0x5a80('0x3')],_0x5351e8);this[_0x5a80('0x5')][_0x5a80('0x6')](_0x3164d3),_0x3164d3[_0x5a80('0x2')]({'label':_0x129786[_0x5a80('0x4')],'withText':!0x0}),_0x3164d3['on'](_0x5a80('0x1'),()=>{this[_0x5a80('0x0')](_0x5a80('0x1'),{'value':_0x5a0598(_0x129786['prompt'])});});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
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;}}
23
+ const _0x4d0f=['fire','Prompt\x20history','locale','_createClearHistoryButton','items','filter','Clear','clearHistoryButton','set','length','delegate','clearHistory','execute','historyGroupView','label','children','add'];(function(_0x34a726,_0x4d0f76){const _0x336806=function(_0x597726){while(--_0x597726){_0x34a726['push'](_0x34a726['shift']());}};_0x336806(++_0x4d0f76);}(_0x4d0f,0x141));const _0x3368=function(_0x34a726,_0x4d0f76){_0x34a726=_0x34a726-0x0;let _0x336806=_0x4d0f[_0x34a726];return _0x336806;};import{ListView as _0x432b9d,ListItemGroupView as _0x5ab891,ButtonView as _0x21b6e7}from'ckeditor5/src/ui.js';import{getTranslation as _0x40731a}from'../../utils/common-translations.js';export default class rs extends _0x432b9d{constructor(_0x535830){super(_0x535830),this[_0x3368('0x9')]=this[_0x3368('0x5')](),this[_0x3368('0xf')]=new _0x5ab891(),this[_0x3368('0xf')][_0x3368('0x0')][_0x3368('0x1')](this[_0x3368('0x9')],0x1),this['historyGroupView'][_0x3368('0x10')]=_0x40731a(_0x535830,_0x3368('0x3')),this['historyGroupView'][_0x3368('0x6')][_0x3368('0xc')](_0x3368('0xe'))['to'](this),this['items'][_0x3368('0x1')](this[_0x3368('0xf')]);}[_0x3368('0x7')](){let _0x1fd4c7=0x0;for(const _0xf3d0f9 of this[_0x3368('0x6')])_0x1fd4c7+=_0xf3d0f9[_0x3368('0x6')][_0x3368('0xb')];return{'resultsCount':_0x1fd4c7,'totalItemsCount':_0x1fd4c7};}[_0x3368('0x5')](){const _0x1891bf=this[_0x3368('0x4')],_0x226483=new _0x21b6e7(this[_0x3368('0x4')]);return _0x226483[_0x3368('0xa')]({'label':'('+_0x40731a(_0x1891bf,_0x3368('0x8'))+')','withText':!0x0}),_0x226483['on'](_0x3368('0xe'),()=>this[_0x3368('0x2')](_0x3368('0xd'))),_0x226483;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
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')]();}
23
+ const _0x4020=['map','_loadFromSessionStorage','stringify','_saveToSessionStorage','length','addMany','CKEditor/AIFormView/PromptHistory','trim','add','prompt','setItem','remove','parse','last','toLowerCase'];(function(_0x3f84f2,_0x40205d){const _0xd4e958=function(_0x243d22){while(--_0x243d22){_0x3f84f2['push'](_0x3f84f2['shift']());}};_0xd4e958(++_0x40205d);}(_0x4020,0x16f));const _0xd4e9=function(_0x3f84f2,_0x40205d){_0x3f84f2=_0x3f84f2-0x0;let _0xd4e958=_0x4020[_0x3f84f2];return _0xd4e958;};import{Collection as _0x448fa7}from'ckeditor5/src/utils.js';const cs=_0xd4e9('0xe');export default class os extends _0x448fa7{constructor(){super(),this[_0xd4e9('0x9')](),this['on'](_0xd4e9('0x1'),(_0x2ce16e,_0x117c3e)=>{const _0x279618=Ss(_0x117c3e[_0xd4e9('0x2')]);for(const _0x539dd0 of this)if(_0x539dd0!=_0x117c3e&&Ss(_0x539dd0[_0xd4e9('0x2')])===_0x279618){this[_0xd4e9('0x4')](_0x539dd0);break;}this[_0xd4e9('0xc')]>0x14&&this[_0xd4e9('0x4')](this[_0xd4e9('0x6')]),this['_saveToSessionStorage']();}),this['on'](_0xd4e9('0x4'),()=>{this[_0xd4e9('0xb')]();});}[_0xd4e9('0x9')](){const _0x454795=sessionStorage['getItem'](cs)||'[]';this[_0xd4e9('0xd')](JSON[_0xd4e9('0x5')](_0x454795));}[_0xd4e9('0xb')](){sessionStorage[_0xd4e9('0x3')](cs,JSON[_0xd4e9('0xa')](this[_0xd4e9('0x8')](_0x3fab54=>_0x3fab54)));}}function Ss(_0xeaea50){return _0xeaea50[_0xd4e9('0x7')]()[_0xd4e9('0x0')]();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
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);}}
23
+ const _0xd8d0=['plugins','showUI','document','selection','name','getRanges','getItems','element','model','ai.aiAssistant.disabledElements','custom','config','execute','get','includes','editor','isEnabled'];(function(_0x471671,_0xd8d0ac){const _0x553b0=function(_0x126599){while(--_0x126599){_0x471671['push'](_0x471671['shift']());}};_0x553b0(++_0xd8d0ac);}(_0xd8d0,0x18e));const _0x553b=function(_0x471671,_0xd8d0ac){_0x471671=_0x471671-0x0;let _0x553b0=_0xd8d0[_0x471671];return _0x553b0;};import{Command as _0x2c396b}from'ckeditor5/src/core.js';import _0xc5a553 from'../aiassistantui.js';export default class g extends _0x2c396b{['refresh'](){const _0x45c89e=this['editor'][_0x553b('0x1')][_0x553b('0xc')][_0x553b('0xd')],_0x1e4dd1=this[_0x553b('0x8')][_0x553b('0x4')][_0x553b('0x6')](_0x553b('0x2'));for(const _0xf275b6 of _0x45c89e[_0x553b('0xf')]())for(const _0x35c28f of _0xf275b6[_0x553b('0x10')]())if(_0x35c28f['is'](_0x553b('0x0'))&&_0x1e4dd1[_0x553b('0x7')](_0x35c28f[_0x553b('0xe')]))return void(this[_0x553b('0x9')]=!0x1);this[_0x553b('0x9')]=!0x0;}[_0x553b('0x5')](_0x5dc555='',_0x411151='',_0x342bf9=_0x553b('0x3')){this['editor'][_0x553b('0xa')][_0x553b('0x6')](_0xc5a553)[_0x553b('0xb')](_0x5dc555,_0x411151,_0x342bf9);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
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;}}
23
+ export function getTranslation(_0x1c1b78,_0x40cd1d,_0x15f8db){const t=_0x1c1b78['t'];switch(_0x40cd1d){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',_0x15f8db);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'},_0x15f8db);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 _0x40cd1d;}}