@ckeditor/ckeditor5-ai 46.0.0-alpha.1 → 46.0.0-alpha.3
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/build/ai.js +1 -1
- package/dist/index.js +2 -2
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +9 -9
- package/src/adapters/aiadapter.js +1 -1
- package/src/adapters/aitextadapter.js +1 -1
- package/src/adapters/awstextadapter.js +1 -1
- package/src/adapters/openaitextadapter.d.ts +1 -2
- package/src/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant.js +1 -1
- package/src/aiassistantediting.js +1 -1
- package/src/aiassistantui.js +1 -1
- package/src/index.js +1 -1
- package/src/legacyerrors.js +1 -1
- package/src/ui/aiassistantcontroller.js +2 -2
- package/src/ui/form/aiformcontentarea.js +1 -1
- package/src/ui/form/aiformerrorview.js +1 -1
- package/src/ui/form/aiformpromptview.js +1 -1
- package/src/ui/form/aiformtoolbarview.js +1 -1
- package/src/ui/form/aiformview.js +1 -1
- package/src/ui/form/aihistorylistitemview.js +1 -1
- package/src/ui/form/aihistorylistview.js +1 -1
- package/src/ui/form/prompthistory.js +1 -1
- package/src/ui/showaiassistantcommand.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/normalizecommandsconfig.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x46218d=_0x302a;(function(_0xcbe10a,_0x943caa){const _0x525102=_0x302a,_0x4c2522=_0xcbe10a();while(!![]){try{const _0x39d5d0=-parseInt(_0x525102(0x1fc))/0x1*(-parseInt(_0x525102(0x215))/0x2)+parseInt(_0x525102(0x224))/0x3+parseInt(_0x525102(0x21f))/0x4*(parseInt(_0x525102(0x1e4))/0x5)+-parseInt(_0x525102(0x1e9))/0x6+-parseInt(_0x525102(0x20a))/0x7+-parseInt(_0x525102(0x1f9))/0x8+parseInt(_0x525102(0x1db))/0x9;if(_0x39d5d0===_0x943caa)break;else _0x4c2522['push'](_0x4c2522['shift']());}catch(_0x54a0ad){_0x4c2522['push'](_0x4c2522['shift']());}}}(_0x1eb5,0xcb74d));import{global as _0x41a528}from'ckeditor5/src/utils.js';function _0x302a(_0x56b93d,_0x1efffa){const _0x1eb5f4=_0x1eb5();return _0x302a=function(_0x302a0b,_0x27f6bb){_0x302a0b=_0x302a0b-0x1d7;let _0x49cc2b=_0x1eb5f4[_0x302a0b];return _0x49cc2b;},_0x302a(_0x56b93d,_0x1efffa);}import{View as _0x5f14f7,ButtonView as _0x1dd376,SpinnerView as _0x1838bd}from'ckeditor5/src/ui.js';function _0x1eb5(){const _0x109fca=['setStartAfter','\x20ck-ai-form__copy-button--copied','8538066veJAWm','_createLoader','AI\x20is\x20writing...','ck-ai-form__copy-button','Copy','ck-ai-form__content-field','<span>]</span>','addRange','contentFieldView','wheel','listenTo','style','copy','render','position','firstElementChild','5092400LSERHW','element','querySelector','1CvJwQu','scrollHeight','icon','createElement','ck-ai-form__content-area-wrapper','locale','setEndBefore','scrollTo','value','setTemplate','loaderView','_createCopyButton','change:isProcessing','createRange','10604300kMUhBn','class','isProcessing','isEnabled','text/plain','clipboard','textContent','remove','appendLoader','absolute','ck-reset_all-excluded','2094576xQVMzd','ck-ai-form__content-area--processing','appendChild','ck-hidden','left','getSelection','set','body','focus','lastElementChild','42332Uutnpq','text/html','copyButtonView','_copyHTMLToClipboard','bind','2398368JVJlLL','ck-content','div','.ck-ai-form__loader','<span>[</span>','isVisible','execute','change:value','ck-ai-form__loader','-9999px','write','14858424JIWTfa','setContent','mousedown','smooth','execCommand','bindTemplate','ck-ai-form__copy-button-wrapper','ck-ai-form__content-area','ClipboardItem','430SwVHbV','innerHTML','removeAllRanges'];_0x1eb5=function(){return _0x109fca;};return _0x1eb5();}import{IconCheck as _0x3a5e96,IconCopy as _0x1706f3}from'ckeditor5/src/icons.js';import{getTranslation as _0x328644}from'../../utils/common-translations.js';export class AIFormContentArea extends _0x5f14f7{[_0x46218d(0x1f1)];[_0x46218d(0x221)];constructor(_0x204c7e,_0x7ce362=''){const _0x5875ab=_0x46218d;super(_0x204c7e),this[_0x5875ab(0x21b)]({'value':null,'isVisible':!0x1,'isProcessing':!0x1});const _0x7475ab=this[_0x5875ab(0x1e0)];this[_0x5875ab(0x1f1)]=new ContentFieldView(_0x204c7e,_0x7ce362),this[_0x5875ab(0x221)]=this[_0x5875ab(0x207)](),this[_0x5875ab(0x205)]({'tag':_0x5875ab(0x226),'attributes':{'class':['ck',_0x5875ab(0x200),_0x7475ab['if'](_0x5875ab(0x229),_0x5875ab(0x218),_0x1d0940=>!_0x1d0940)],'tabindex':'-1'},'children':[{'tag':_0x5875ab(0x226),'attributes':{'class':['ck',_0x5875ab(0x1e2),_0x7475ab['if'](_0x5875ab(0x20c),_0x5875ab(0x216))]},'children':[this[_0x5875ab(0x1f1)],{'tag':_0x5875ab(0x226),'attributes':{'class':['ck',_0x5875ab(0x1e1)]},'children':[this[_0x5875ab(0x221)]]}]}]});}[_0x46218d(0x1f6)](){const _0x4c6c94=_0x46218d;super[_0x4c6c94(0x1f6)](),this[_0x4c6c94(0x204)]&&this[_0x4c6c94(0x1f1)][_0x4c6c94(0x1dc)](this[_0x4c6c94(0x204)]);let _0x5c41e6=!0x1;this['on'](_0x4c6c94(0x1d7),(_0x5cb567,_0x99d286,_0x52dd77)=>{const _0xad3f3b=_0x4c6c94,_0x1e2e5b=!this[_0xad3f3b(0x1f1)][_0xad3f3b(0x1fa)][_0xad3f3b(0x1fb)](_0xad3f3b(0x227));this[_0xad3f3b(0x1f1)][_0xad3f3b(0x1dc)](_0x52dd77),this[_0xad3f3b(0x20c)]&&_0x1e2e5b&&!_0x5c41e6&&this[_0xad3f3b(0x1fa)][_0xad3f3b(0x203)]({'top':this[_0xad3f3b(0x1fa)][_0xad3f3b(0x1fd)],'behavior':_0xad3f3b(0x1de)});}),this['on'](_0x4c6c94(0x208),(_0x450bbb,_0x4181af,_0x513a80)=>{const _0x1d557a=_0x4c6c94;_0x5c41e6=!0x1,_0x513a80?(this[_0x1d557a(0x204)]=null,this[_0x1d557a(0x1f1)][_0x1d557a(0x212)]()):this[_0x1d557a(0x204)]||this[_0x1d557a(0x1f1)][_0x1d557a(0x1dc)]('');}),this[_0x4c6c94(0x1f3)](this[_0x4c6c94(0x1fa)],_0x4c6c94(0x1f2),()=>{_0x5c41e6=!0x0;}),this[_0x4c6c94(0x1f3)](this[_0x4c6c94(0x1fa)],_0x4c6c94(0x1dd),()=>{_0x5c41e6=!0x0;});}[_0x46218d(0x21d)](){const _0x1c6d31=_0x46218d;this[_0x1c6d31(0x1fa)][_0x1c6d31(0x21d)]();}[_0x46218d(0x207)](){const _0x574f7f=_0x46218d,_0x294e05=this[_0x574f7f(0x201)],_0x558f18=new _0x1dd376(this[_0x574f7f(0x201)]),_0x31eec8=_0x574f7f(0x1ec);return _0x558f18[_0x574f7f(0x21b)]({'label':_0x328644(_0x294e05,_0x574f7f(0x1ed)),'icon':_0x1706f3,'class':_0x31eec8,'tooltip':!0x0}),_0x558f18[_0x574f7f(0x223)](_0x574f7f(0x229))['to'](this,_0x574f7f(0x204),_0x18c92b=>!!_0x18c92b),_0x558f18[_0x574f7f(0x223)](_0x574f7f(0x20d))['to'](this,_0x574f7f(0x20c),_0x4a9dda=>!_0x4a9dda),_0x558f18['on'](_0x574f7f(0x22a),()=>{const _0x6d1c9d=_0x574f7f;this[_0x6d1c9d(0x222)](this[_0x6d1c9d(0x1f1)][_0x6d1c9d(0x1fa)]),_0x558f18[_0x6d1c9d(0x1fe)]=_0x3a5e96,_0x558f18[_0x6d1c9d(0x20b)]=_0x31eec8+_0x6d1c9d(0x1e8),this[_0x6d1c9d(0x21d)](),setTimeout(()=>{const _0x1d8a7b=_0x6d1c9d;_0x558f18[_0x1d8a7b(0x1fe)]=_0x1706f3,_0x558f18[_0x1d8a7b(0x20b)]=_0x31eec8;},0x3e8);}),_0x558f18;}[_0x46218d(0x222)](_0x1d5524){const _0x5dd8f6=_0x46218d,{window:_0x128e98,document:_0x231ac8}=_0x41a528;if(_0x128e98[_0x5dd8f6(0x1e3)]){const {Blob:_0x4a4dbf,ClipboardItem:_0x5a6fe8}=_0x128e98,_0x3757f5=[new _0x5a6fe8({'text/html':new _0x4a4dbf([_0x1d5524[_0x5dd8f6(0x1e5)]],{'type':_0x5dd8f6(0x220)}),'text/plain':new _0x4a4dbf([_0x1d5524[_0x5dd8f6(0x210)]||''],{'type':_0x5dd8f6(0x20e)})})];navigator[_0x5dd8f6(0x20f)][_0x5dd8f6(0x1da)](_0x3757f5);}else{const _0x462202=_0x231ac8[_0x5dd8f6(0x1ff)](_0x5dd8f6(0x226));_0x462202[_0x5dd8f6(0x1f4)][_0x5dd8f6(0x1f7)]=_0x5dd8f6(0x213),_0x462202[_0x5dd8f6(0x1f4)][_0x5dd8f6(0x219)]=_0x5dd8f6(0x1d9),_0x462202[_0x5dd8f6(0x1e5)]=_0x5dd8f6(0x228)+_0x1d5524[_0x5dd8f6(0x1e5)]+_0x5dd8f6(0x1ef),_0x231ac8[_0x5dd8f6(0x21c)][_0x5dd8f6(0x217)](_0x462202);const _0x181c77=_0x231ac8[_0x5dd8f6(0x209)]();_0x181c77[_0x5dd8f6(0x1e7)](_0x462202[_0x5dd8f6(0x1f8)]),_0x181c77[_0x5dd8f6(0x202)](_0x462202[_0x5dd8f6(0x21e)]);const _0x33b6ba=_0x128e98[_0x5dd8f6(0x21a)]();_0x33b6ba[_0x5dd8f6(0x1e6)](),_0x33b6ba[_0x5dd8f6(0x1f0)](_0x181c77),_0x231ac8[_0x5dd8f6(0x1df)](_0x5dd8f6(0x1f5)),_0x462202[_0x5dd8f6(0x211)]();}}}export class ContentFieldView extends _0x5f14f7{constructor(_0x34df9d,_0x2e7a77=''){const _0x23b58f=_0x46218d;super(_0x34df9d),this[_0x23b58f(0x206)]=this[_0x23b58f(0x1ea)](),this[_0x23b58f(0x205)]({'tag':_0x23b58f(0x226),'attributes':{'class':['ck',_0x23b58f(0x225),_0x2e7a77,_0x23b58f(0x214),_0x23b58f(0x1ee)]}});}[_0x46218d(0x1dc)](_0x5151de){const _0x20c331=_0x46218d;this[_0x20c331(0x1fa)][_0x20c331(0x1e5)]=_0x5151de;}[_0x46218d(0x212)](){const _0x4f7513=_0x46218d;this[_0x4f7513(0x1fa)][_0x4f7513(0x217)](this[_0x4f7513(0x206)][_0x4f7513(0x1fa)]);}[_0x46218d(0x1ea)](){const _0xa268f8=_0x46218d,_0x24a9e1=new _0x5f14f7(),_0x2d5e8=this[_0xa268f8(0x201)],_0x44bf6a=new _0x1838bd();return _0x44bf6a[_0xa268f8(0x229)]=!0x0,_0x24a9e1[_0xa268f8(0x205)]({'tag':_0xa268f8(0x226),'attributes':{'class':['ck',_0xa268f8(0x1d8)]},'children':[_0x44bf6a,{'text':_0x328644(_0x2d5e8,_0xa268f8(0x1eb))}]}),_0x24a9e1[_0xa268f8(0x1f6)](),_0x24a9e1;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0xb12f52,_0x48c2b0){const _0x3784=_0x1599,_0x15fa43=_0xb12f52();while(!![]){try{const _0x411e3f=parseInt(_0x3784(0xe6))/0x1*(-parseInt(_0x3784(0xec))/0x2)+-parseInt(_0x3784(0xee))/0x3+parseInt(_0x3784(0xe9))/0x4*(parseInt(_0x3784(0xe8))/0x5)+-parseInt(_0x3784(0xed))/0x6+parseInt(_0x3784(0xea))/0x7+-parseInt(_0x3784(0xe7))/0x8+parseInt(_0x3784(0xeb))/0x9;if(_0x411e3f===_0x48c2b0)break;else _0x15fa43['push'](_0x15fa43['shift']());}catch(_0x4085b4){_0x15fa43['push'](_0x15fa43['shift']());}}}(_0x50f1,0x32e98));import{IconError as _0xe44a8b}from'ckeditor5/src/icons.js';function _0x1599(_0x380d8f,_0x4b5d46){const _0x50f102=_0x50f1();return _0x1599=function(_0x159996,_0x5b4618){_0x159996=_0x159996-0xe4;let _0x4f623b=_0x50f102[_0x159996];return _0x4f623b;},_0x1599(_0x380d8f,_0x4b5d46);}import{View as _0x3d120c,IconView as _0x1bec64}from'ckeditor5/src/ui.js';export class AIFormErrorView extends _0x3d120c{constructor(_0x27dd3,_0x118c80=''){const _0x1516f2=_0x1599;super(_0x27dd3);const _0x101426=new _0x1bec64(),_0x4b2cd3=this[_0x1516f2(0xf2)];this[_0x1516f2(0xf3)](_0x1516f2(0xf1),_0x118c80),_0x101426[_0x1516f2(0xef)]=_0xe44a8b,this[_0x1516f2(0xf0)]({'tag':_0x1516f2(0xe4),'attributes':{'class':['ck',_0x1516f2(0xe5)]},'children':[_0x101426,{'text':_0x4b2cd3['to'](_0x1516f2(0xf1))}]});}}function _0x50f1(){const _0x59f772=['setTemplate','text','bindTemplate','set','div','ck-ai-form__error','20469WRGTgb','1873008TUusjq','5fUawbG','1051124avqIrA','2560551BCQlgn','4626819FJlCRO','40mLipoo','977448VpkbfU','383145vqXpae','content'];_0x50f1=function(){return _0x59f772;};return _0x50f1();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x51d8(_0x222f87,_0x44662e){const _0x1f5240=_0x1f52();return _0x51d8=function(_0x51d8b1,_0x3217b3){_0x51d8b1=_0x51d8b1-0x123;let _0x421103=_0x1f5240[_0x51d8b1];return _0x421103;},_0x51d8(_0x222f87,_0x44662e);}const _0x461e38=_0x51d8;function _0x1f52(){const _0x2bd412=['6aTHOus','uiLanguageDirection','keystrokes','filteredView','20PYOPYf','_createShowHistoryButton','isOn','element','Submit','submitButtonView','fire','right','4347618ueovOi','isEmpty','5009296ShEhOF','12465Xvmmll','rtl','focus','style','value','add','left','ck-ai-form__submit','1443825JsXGgQ','History','requestAnimationFrame','minRows','isEnabled','fieldWrapperChildren','render','width','bind','target','showHistoryButtonView','235707ZcWYlU','resultsView','_createSubmitButton','focusableChildren','excludeScrollbarsAndBorders','focusLast','maxRows','execute','window','fieldView','update','focusFirst','796AqCqox','children','isVisible','set','locale','focusCycler','ck-ai-form__toggle-history','3491327oNlsfT','queryView','submit','165985enAieH','enter','6NyJtwZ'];_0x1f52=function(){return _0x2bd412;};return _0x1f52();}(function(_0x377a44,_0x3ded06){const _0x15bae9=_0x51d8,_0x5ca2a4=_0x377a44();while(!![]){try{const _0x4fedde=-parseInt(_0x15bae9(0x144))/0x1+-parseInt(_0x15bae9(0x146))/0x2*(-parseInt(_0x15bae9(0x12e))/0x3)+parseInt(_0x15bae9(0x13a))/0x4*(-parseInt(_0x15bae9(0x156))/0x5)+parseInt(_0x15bae9(0x147))/0x6*(-parseInt(_0x15bae9(0x141))/0x7)+parseInt(_0x15bae9(0x155))/0x8+-parseInt(_0x15bae9(0x123))/0x9+parseInt(_0x15bae9(0x14b))/0xa*(parseInt(_0x15bae9(0x153))/0xb);if(_0x4fedde===_0x3ded06)break;else _0x5ca2a4['push'](_0x5ca2a4['shift']());}catch(_0x26ed62){_0x5ca2a4['push'](_0x5ca2a4['shift']());}}}(_0x1f52,0x50d3b));import{Rect as _0x1d18c6,global as _0x2e36db,isVisible as _0x538252}from'ckeditor5/src/utils.js';import{IconHistory as _0x4e70fe,IconSubmit as _0x4b9e8c}from'ckeditor5/src/icons.js';import{AutocompleteView as _0x2bcb35,ButtonView as _0x3af624}from'ckeditor5/src/ui.js';import{getTranslation as _0x1f846b}from'../../utils/common-translations.js';export class AIFormPromptView extends _0x2bcb35{[_0x461e38(0x150)];[_0x461e38(0x12d)];constructor(_0x218333,_0x3042e3){const _0x3396b0=_0x461e38;super(_0x218333,_0x3042e3),this[_0x3396b0(0x142)][_0x3396b0(0x137)][_0x3396b0(0x126)]=0x1,this[_0x3396b0(0x142)][_0x3396b0(0x137)][_0x3396b0(0x134)]=0x3,this[_0x3396b0(0x150)]=this[_0x3396b0(0x130)](),this[_0x3396b0(0x12d)]=this[_0x3396b0(0x14c)](),this[_0x3396b0(0x131)][_0x3396b0(0x15b)](this[_0x3396b0(0x12d)],0x1),this[_0x3396b0(0x131)][_0x3396b0(0x15b)](this[_0x3396b0(0x150)]);}[_0x461e38(0x129)](){const _0x26a7d9=_0x461e38;super[_0x26a7d9(0x129)](),this[_0x26a7d9(0x142)][_0x26a7d9(0x128)][_0x26a7d9(0x15b)](this[_0x26a7d9(0x12d)]),this[_0x26a7d9(0x13b)][_0x26a7d9(0x15b)](this[_0x26a7d9(0x150)]),this[_0x26a7d9(0x149)][_0x26a7d9(0x13d)](_0x26a7d9(0x145),(_0x4459c8,_0x4714c3)=>{const _0x34bb21=_0x26a7d9;_0x4459c8[_0x34bb21(0x12c)]==this[_0x34bb21(0x142)][_0x34bb21(0x137)][_0x34bb21(0x14e)]&&(this[_0x34bb21(0x143)](),_0x4714c3());});}[_0x461e38(0x130)](){const _0x2c7885=_0x461e38,_0x53e29e=new _0x3af624(this[_0x2c7885(0x13e)]),_0x12ae12=this[_0x2c7885(0x13e)];return _0x53e29e[_0x2c7885(0x13d)]({'icon':_0x4b9e8c,'label':_0x1f846b(_0x12ae12,_0x2c7885(0x14f)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x2c7885(0x15d)}),_0x53e29e['on'](_0x2c7885(0x135),()=>{const _0x1df0b9=_0x2c7885;this[_0x1df0b9(0x143)]();}),_0x53e29e[_0x2c7885(0x12b)](_0x2c7885(0x127))['to'](this[_0x2c7885(0x142)][_0x2c7885(0x137)],_0x2c7885(0x154),this,_0x2c7885(0x127),(_0x20860a,_0x3f2b76)=>!_0x20860a&&_0x3f2b76),_0x53e29e;}[_0x461e38(0x14c)](){const _0x47510d=_0x461e38,_0x5ca435=new _0x3af624(this[_0x47510d(0x13e)]),_0x447fda=this[_0x47510d(0x12f)],_0x46153d=this[_0x47510d(0x13e)];_0x5ca435[_0x47510d(0x13d)]({'label':_0x1f846b(_0x46153d,_0x47510d(0x124)),'withText':!0x1,'icon':_0x4e70fe,'tooltip':!0x0,'tooltipPosition':'sw','class':_0x47510d(0x140)}),_0x5ca435[_0x47510d(0x12b)](_0x47510d(0x14d))['to'](_0x447fda,_0x47510d(0x13c)),_0x5ca435[_0x47510d(0x12b)](_0x47510d(0x127))['to'](this,_0x47510d(0x127)),_0x5ca435['on'](_0x47510d(0x135),()=>{const _0x1e42c6=_0x47510d;_0x447fda[_0x1e42c6(0x13c)]=!_0x447fda[_0x1e42c6(0x13c)],_0x447fda[_0x1e42c6(0x13c)]?this[_0x1e42c6(0x14a)][_0x1e42c6(0x158)]():this[_0x1e42c6(0x158)]();});const _0x57b05b=()=>{const _0xec1085=_0x47510d;_0x2e36db[_0xec1085(0x136)][_0xec1085(0x125)](()=>{const _0x3c7d1b=_0xec1085;if(_0x538252(this[_0x3c7d1b(0x14e)])){const _0x33c0e6=new _0x1d18c6(this[_0x3c7d1b(0x142)][_0x3c7d1b(0x137)][_0x3c7d1b(0x14e)]),_0x1c3cf0=_0x33c0e6[_0x3c7d1b(0x12a)],_0xa2de2=_0x3c7d1b(0x157)===_0x46153d[_0x3c7d1b(0x148)]?_0x3c7d1b(0x15c):_0x3c7d1b(0x152);_0x33c0e6[_0x3c7d1b(0x132)](),_0x5ca435[_0x3c7d1b(0x14e)][_0x3c7d1b(0x159)][_0xa2de2]=_0x1c3cf0-_0x33c0e6[_0x3c7d1b(0x12a)]+0x1+'px';}});};return this[_0x47510d(0x142)][_0x47510d(0x137)]['on'](_0x47510d(0x138),_0x57b05b),this['on'](_0x47510d(0x129),_0x57b05b),_0x5ca435;}[_0x461e38(0x143)](){const _0x4da83e=_0x461e38,_0x5678e1=this[_0x4da83e(0x142)][_0x4da83e(0x137)][_0x4da83e(0x14e)][_0x4da83e(0x15a)];this[_0x4da83e(0x151)](_0x4da83e(0x143),_0x5678e1);}[_0x461e38(0x158)](_0x3e8183){const _0x3050c9=_0x461e38;-0x1===_0x3e8183?this[_0x3050c9(0x13f)][_0x3050c9(0x133)]():this[_0x3050c9(0x13f)][_0x3050c9(0x139)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x309ef3=_0x82b3;(function(_0x5b004f,_0x5dde5d){const _0x4b77f8=_0x82b3,_0x9aa6df=_0x5b004f();while(!![]){try{const _0x4ffe7e=parseInt(_0x4b77f8(0x187))/0x1+parseInt(_0x4b77f8(0x1a0))/0x2*(-parseInt(_0x4b77f8(0x195))/0x3)+-parseInt(_0x4b77f8(0x19b))/0x4*(parseInt(_0x4b77f8(0x18d))/0x5)+parseInt(_0x4b77f8(0x191))/0x6+-parseInt(_0x4b77f8(0x188))/0x7*(-parseInt(_0x4b77f8(0x1a8))/0x8)+-parseInt(_0x4b77f8(0x18f))/0x9+-parseInt(_0x4b77f8(0x185))/0xa*(-parseInt(_0x4b77f8(0x1a4))/0xb);if(_0x4ffe7e===_0x5dde5d)break;else _0x9aa6df['push'](_0x9aa6df['shift']());}catch(_0x579a24){_0x9aa6df['push'](_0x9aa6df['shift']());}}}(_0x1c96,0x59c0b));import{ToolbarView as _0x1bbd68,ButtonView as _0x11191a}from'ckeditor5/src/ui.js';function _0x1c96(){const _0x4ba117=['6NgPHhr','REPLACE','stopButton','locale','11aoPIxS','isVisible','bindTemplate','mainAction','35472vqWMwZ','replace','addMany','5535960SwgeqA','tryAgainButton','148716JFNPPq','987xmkUIM','set','_CONTENT','items','extendTemplate','139800VjxHvk','Try\x20again','6563367rNZOMU','insert','2026890ipVULx','_createButton','ck-hidden','ck-button-action','121071PJQQKO','AI_','replaceButton','label','toUpperCase','ck-ai-form__toolbar','64RoNMXc','Insert\x20below','Stop','bind','insertButton'];_0x1c96=function(){return _0x4ba117;};return _0x1c96();}import{getTranslation as _0x4dcd73}from'../../utils/common-translations.js';function _0x82b3(_0x22fb60,_0x13a9e2){const _0x1c961f=_0x1c96();return _0x82b3=function(_0x82b36b,_0x2a5088){_0x82b36b=_0x82b36b-0x184;let _0x971100=_0x1c961f[_0x82b36b];return _0x971100;},_0x82b3(_0x22fb60,_0x13a9e2);}export const AIFormToolbarViewMainActionLabel={'REPLACE':_0x309ef3(0x1a9),'INSERT':_0x309ef3(0x190)};export class AIFormToolbarView extends _0x1bbd68{constructor(_0x1b41f7){const _0x81cdd6=_0x309ef3;super(_0x1b41f7),this[_0x81cdd6(0x189)](_0x81cdd6(0x1a5),!0x1),this[_0x81cdd6(0x189)](_0x81cdd6(0x1a7),AIFormToolbarViewMainActionLabel[_0x81cdd6(0x1a1)]),this[_0x81cdd6(0x197)]=this[_0x81cdd6(0x192)]('',_0x81cdd6(0x194)),this[_0x81cdd6(0x197)][_0x81cdd6(0x19e)](_0x81cdd6(0x198))['to'](this,_0x81cdd6(0x1a7),_0x35bf27=>_0x4dcd73(_0x1b41f7,_0x81cdd6(0x196)+_0x35bf27[_0x81cdd6(0x199)]()+_0x81cdd6(0x18a))),this[_0x81cdd6(0x19f)]=this[_0x81cdd6(0x192)](_0x4dcd73(_0x1b41f7,_0x81cdd6(0x19c))),this[_0x81cdd6(0x186)]=this[_0x81cdd6(0x192)](_0x4dcd73(_0x1b41f7,_0x81cdd6(0x18e))),this[_0x81cdd6(0x1a2)]=this[_0x81cdd6(0x192)](_0x4dcd73(_0x1b41f7,_0x81cdd6(0x19d)));const _0x2feeca=this[_0x81cdd6(0x1a6)];this[_0x81cdd6(0x18c)]({'attributes':{'class':[_0x81cdd6(0x19a),_0x2feeca['if'](_0x81cdd6(0x1a5),_0x81cdd6(0x193),_0x19e436=>!_0x19e436)]}}),this[_0x81cdd6(0x18b)][_0x81cdd6(0x184)]([this[_0x81cdd6(0x197)],this[_0x81cdd6(0x19f)],this[_0x81cdd6(0x186)],this[_0x81cdd6(0x1a2)]]);}[_0x309ef3(0x192)](_0x426292,_0x21a6e0){const _0x469d05=_0x309ef3,_0xecd204=new _0x11191a(this[_0x469d05(0x1a3)]);return _0xecd204[_0x469d05(0x189)]({'label':_0x426292,'class':_0x21a6e0||'','isVisible':!0x0,'withText':!0x0}),_0xecd204;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3abafc=_0x4858;(function(_0x17f056,_0x344689){const _0x1731c4=_0x4858,_0x5d20e8=_0x17f056();while(!![]){try{const _0xa1acff=-parseInt(_0x1731c4(0x10f))/0x1+parseInt(_0x1731c4(0x122))/0x2+parseInt(_0x1731c4(0x11c))/0x3+-parseInt(_0x1731c4(0x146))/0x4+parseInt(_0x1731c4(0x11b))/0x5+-parseInt(_0x1731c4(0x100))/0x6*(-parseInt(_0x1731c4(0x120))/0x7)+-parseInt(_0x1731c4(0x12f))/0x8*(parseInt(_0x1731c4(0x126))/0x9);if(_0xa1acff===_0x344689)break;else _0x5d20e8['push'](_0x5d20e8['shift']());}catch(_0x5796e9){_0x5d20e8['push'](_0x5d20e8['shift']());}}}(_0x6fa4,0xf13cd));import{FocusTracker as _0x2dec48,KeystrokeHandler as _0x44fee8}from'ckeditor5/src/utils.js';import{View as _0x1b2dda,FocusCycler as _0x29bd56,createLabeledTextarea as _0x1f0ce3}from'ckeditor5/src/ui.js';import{AIFormToolbarView as _0x3e8bab,AIFormToolbarViewMainActionLabel as _0x9e6835}from'./aiformtoolbarview.js';import{AIFormContentArea as _0x5375a0}from'./aiformcontentarea.js';import{AIFormErrorView as _0x13c1e6}from'./aiformerrorview.js';import{AIFormPromptView as _0x3a055a}from'./aiformpromptview.js';import{AIHistoryListView as _0x299039}from'./aihistorylistview.js';function _0x4858(_0x5122ac,_0x7be412){const _0x6fa40a=_0x6fa4();return _0x4858=function(_0x48583f,_0x147e48){_0x48583f=_0x48583f-0xfa;let _0x3e3079=_0x6fa40a[_0x48583f];return _0x3e3079;},_0x4858(_0x5122ac,_0x7be412);}import{AIHistoryListItemView as _0x12e664}from'./aihistorylistitemview.js';import{PromptHistory as _0x5bf6cb}from'./prompthistory.js';import{getTranslation as _0x5b2fc1}from'../../utils/common-translations.js';function _0x6fa4(){const _0x213191=['_createPromptView','_focusables','label','insertContentBelow','fire','focus','listenTo','clear','high','items','value','reset','ck-ai-form','submit','265575anFiaP','submitPrompt','bindTemplate','focusTracker','handleError','finishProcessing','locale','isError','div','focusLast','Empty\x20history','execute','4207790QpjPwh','4777929JyWKTV','element','toolbar','ck-hidden','7ffpyNO','search','3709638NsIGUm','isProcessing','isVisible','ck-ai-form-content','31756707suxGxk','tryAgainButton','Ask\x20AI\x20to\x20improve\x20generated\x20text','queryView','stopButton','tryAgainEvent','contentArea','_promptHistory','insertButton','8zKkUSr','createCollection','replaceContent','prompt','isEnabled','AI_ERROR_FAILED','delegate','replaceButton','focusFirst','promptView','trim','keystrokes','shift\x20+\x20tab','errorView','_createToolbar','tab','focusCycler','_createHistoryView','setTemplate','add','copyButtonView','fieldView','stopProcessing','2805656vREkhQ','text','startProcessing','render','bind','Ask\x20AI\x20to\x20edit\x20or\x20generate','chain','bindTo','mainAction','set','clearHistory','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','historyGroupView','REPLACE','7167606iQsAEv'];_0x6fa4=function(){return _0x213191;};return _0x6fa4();}import{escape as _0xb3e930}from'es-toolkit/compat';export class AIFormView extends _0x1b2dda{[_0x3abafc(0x112)];[_0x3abafc(0x13a)];[_0x3abafc(0x12c)];[_0x3abafc(0x11e)];[_0x3abafc(0x138)];[_0x3abafc(0x13c)];[_0x3abafc(0x102)];[_0x3abafc(0x13f)];[_0x3abafc(0x12d)];constructor(_0x344bdf,_0x13cbf7,_0x3d0ff1=''){const _0x5debf8=_0x3abafc;super(_0x344bdf),this[_0x5debf8(0xfb)](_0x5debf8(0x133),!0x0),this[_0x5debf8(0xfb)](_0x5debf8(0x123),!0x1),this[_0x5debf8(0xfb)](_0x5debf8(0x132),''),this[_0x5debf8(0xfb)](_0x5debf8(0x10b),''),this[_0x5debf8(0xfb)](_0x5debf8(0x116),!0x1),this[_0x5debf8(0xfb)](_0x5debf8(0xfa),_0x9e6835[_0x5debf8(0xff)]),this[_0x5debf8(0x12d)]=new _0x5bf6cb(),this[_0x5debf8(0x13c)]=new _0x13c1e6(_0x344bdf),this[_0x5debf8(0x12c)]=new _0x5375a0(_0x344bdf,_0x3d0ff1),this[_0x5debf8(0x12c)][_0x5debf8(0x14a)](_0x5debf8(0x123))['to'](this),this[_0x5debf8(0x12c)][_0x5debf8(0x14a)](_0x5debf8(0x10b))['to'](this),this[_0x5debf8(0x11e)]=this[_0x5debf8(0x13d)](),this[_0x5debf8(0x11e)][_0x5debf8(0x14a)](_0x5debf8(0xfa))['to'](this),this[_0x5debf8(0x138)]=this[_0x5debf8(0x101)](),this[_0x5debf8(0x112)]=new _0x2dec48(),this[_0x5debf8(0x13a)]=new _0x44fee8(),this[_0x5debf8(0x102)]=this[_0x5debf8(0x130)]([this[_0x5debf8(0x12c)],this[_0x5debf8(0x12c)][_0x5debf8(0x143)],this[_0x5debf8(0x11e)],this[_0x5debf8(0x138)]]),this[_0x5debf8(0x13f)]=new _0x29bd56({'focusables':this[_0x5debf8(0x102)],'focusTracker':this[_0x5debf8(0x112)],'keystrokeHandler':this[_0x5debf8(0x13a)],'actions':{'focusPrevious':_0x5debf8(0x13b),'focusNext':_0x5debf8(0x13e)}}),this[_0x5debf8(0x13f)][_0x5debf8(0x14c)](this[_0x5debf8(0x138)][_0x5debf8(0x13f)]),this[_0x5debf8(0x138)][_0x5debf8(0x129)][_0x5debf8(0x144)][_0x5debf8(0x14a)](_0x5debf8(0x10b))['to'](this,_0x5debf8(0x132));const _0x16aa14=this[_0x5debf8(0x111)];this[_0x5debf8(0x141)]({'tag':_0x5debf8(0x117),'attributes':{'class':['ck',_0x5debf8(0x10d),_0x13cbf7],'tabindex':'-1'},'children':[{'tag':_0x5debf8(0x117),'attributes':{'class':['ck',_0x5debf8(0x125)]},'children':[{'tag':_0x5debf8(0x117),'attributes':{'class':[_0x16aa14['if'](_0x5debf8(0x116),_0x5debf8(0x11f),_0x45356e=>!_0x45356e)]},'children':[this[_0x5debf8(0x13c)]]},this[_0x5debf8(0x12c)],this[_0x5debf8(0x11e)],this[_0x5debf8(0x138)]]}]});}[_0x3abafc(0x149)](){const _0x5f90de=_0x3abafc;super[_0x5f90de(0x149)](),this[_0x5f90de(0x112)][_0x5f90de(0x142)](this[_0x5f90de(0x12c)][_0x5f90de(0x11d)]),this[_0x5f90de(0x112)][_0x5f90de(0x142)](this[_0x5f90de(0x12c)][_0x5f90de(0x143)][_0x5f90de(0x11d)]),this[_0x5f90de(0x112)][_0x5f90de(0x142)](this[_0x5f90de(0x11e)][_0x5f90de(0x11d)]),this[_0x5f90de(0x112)][_0x5f90de(0x142)](this[_0x5f90de(0x138)][_0x5f90de(0x11d)]),this[_0x5f90de(0x13a)][_0x5f90de(0x107)](this[_0x5f90de(0x11d)]);}[_0x3abafc(0x106)](_0x1923d4=0x1){const _0x9bd358=_0x3abafc;-0x1===_0x1923d4?this[_0x9bd358(0x13f)][_0x9bd358(0x118)]():this[_0x9bd358(0x13f)][_0x9bd358(0x137)]();}[_0x3abafc(0x10c)](){const _0x450160=_0x3abafc;this[_0x450160(0x132)]='',this[_0x450160(0x10b)]='',this[_0x450160(0x116)]=!0x1,this[_0x450160(0x138)][_0x450160(0x10c)](),this[_0x450160(0x12c)][_0x450160(0x124)]=!0x1,this[_0x450160(0x11e)][_0x450160(0x124)]=!0x1;}[_0x3abafc(0x101)](){const _0x4c0aa5=_0x3abafc,_0x5ed97f=this[_0x4c0aa5(0x115)],_0x2405b1=new _0x3a055a(_0x5ed97f,{'queryView':{'label':_0x5b2fc1(_0x5ed97f,_0x4c0aa5(0x14b)),'creator':_0x1f0ce3,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x5b2fc1(_0x5ed97f,_0x4c0aa5(0x119)),'secondary':_0x5b2fc1(_0x5ed97f,_0x4c0aa5(0xfd))}}},'filteredView':this[_0x4c0aa5(0x140)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x2405b1[_0x4c0aa5(0x14a)](_0x4c0aa5(0x133))['to'](this,_0x4c0aa5(0x133),this,_0x4c0aa5(0x123),(_0x54b973,_0x7a11ac)=>_0x54b973&&!_0x7a11ac),this[_0x4c0aa5(0x107)](_0x2405b1,_0x4c0aa5(0x10e),(_0x2e41de,_0x51c323)=>{const _0x3f3d64=_0x4c0aa5;this[_0x3f3d64(0x132)]=_0x51c323;const _0x5a7325=_0xb3e930(_0x51c323);this[_0x3f3d64(0x105)](_0x3f3d64(0x110),_0x5a7325),_0x51c323[_0x3f3d64(0x139)]()&&this[_0x3f3d64(0x12d)][_0x3f3d64(0x142)]({'prompt':_0x5a7325},0x0);},{'priority':_0x4c0aa5(0x109)}),_0x2405b1;}[_0x3abafc(0x140)](){const _0xf16e2d=_0x3abafc,_0x190bce=new _0x299039(this[_0xf16e2d(0x115)]);return _0x190bce[_0xf16e2d(0xfe)][_0xf16e2d(0x10a)][_0xf16e2d(0x14d)](this[_0xf16e2d(0x12d)])['as'](_0x12e664),_0x190bce['on'](_0xf16e2d(0xfc),()=>{const _0x129b62=_0xf16e2d;this[_0x129b62(0x12d)][_0x129b62(0x108)](),this[_0x129b62(0x138)][_0x129b62(0x121)](''),this[_0x129b62(0x138)][_0x129b62(0x106)]();}),_0x190bce;}[_0x3abafc(0x13d)](){const _0x53e3f6=_0x3abafc,_0x484083=new _0x3e8bab(this[_0x53e3f6(0x115)]);return _0x484083[_0x53e3f6(0x136)][_0x53e3f6(0x14a)](_0x53e3f6(0x133))['to'](this,_0x53e3f6(0x133),this,_0x53e3f6(0x123),this,_0x53e3f6(0x10b),(_0x2ff201,_0x534b04,_0x579b59)=>_0x2ff201&&!_0x534b04&&!!_0x579b59),_0x484083[_0x53e3f6(0x136)][_0x53e3f6(0x135)](_0x53e3f6(0x11a))['to'](this,_0x53e3f6(0x131)),_0x484083[_0x53e3f6(0x12e)][_0x53e3f6(0x14a)](_0x53e3f6(0x133))['to'](this,_0x53e3f6(0x133),this,_0x53e3f6(0x123),this,_0x53e3f6(0x10b),(_0x10342e,_0x4a649e,_0x2d6325)=>_0x10342e&&!_0x4a649e&&!!_0x2d6325),_0x484083[_0x53e3f6(0x12e)][_0x53e3f6(0x135)](_0x53e3f6(0x11a))['to'](this,_0x53e3f6(0x104)),_0x484083[_0x53e3f6(0x127)][_0x53e3f6(0x14a)](_0x53e3f6(0x133))['to'](this,_0x53e3f6(0x133),this,_0x53e3f6(0x123),(_0x4cf186,_0x325725)=>_0x4cf186&&!_0x325725),_0x484083[_0x53e3f6(0x127)][_0x53e3f6(0x135)](_0x53e3f6(0x11a))['to'](this,_0x53e3f6(0x12b)),_0x484083[_0x53e3f6(0x12a)][_0x53e3f6(0x14a)](_0x53e3f6(0x133))['to'](this,_0x53e3f6(0x123)),_0x484083[_0x53e3f6(0x12a)][_0x53e3f6(0x135)](_0x53e3f6(0x11a))['to'](this,_0x53e3f6(0x145)),_0x484083;}[_0x3abafc(0x148)](){const _0x3e3152=_0x3abafc;this[_0x3e3152(0x10b)]='',this[_0x3e3152(0x116)]=!0x1,this[_0x3e3152(0x123)]=!0x0,this[_0x3e3152(0x12c)][_0x3e3152(0x124)]=!0x0,this[_0x3e3152(0x11e)][_0x3e3152(0x124)]=!0x0,this[_0x3e3152(0x12c)][_0x3e3152(0x106)]();}[_0x3abafc(0x114)](){const _0x4bee3d=_0x3abafc,_0x4ea31e=this[_0x4bee3d(0x115)];this[_0x4bee3d(0x123)]=!0x1,this[_0x4bee3d(0x132)]='',this[_0x4bee3d(0x138)][_0x4bee3d(0x10c)](),this[_0x4bee3d(0x10b)]&&(this[_0x4bee3d(0x138)][_0x4bee3d(0x129)][_0x4bee3d(0x103)]=_0x5b2fc1(_0x4ea31e,_0x4bee3d(0x128)));}[_0x3abafc(0x113)](_0xac6376){const _0x72d6f5=_0x3abafc,_0x2e3d31=this[_0x72d6f5(0x115)];this[_0x72d6f5(0x114)](),this[_0x72d6f5(0x116)]=!0x0,this[_0x72d6f5(0x13c)][_0x72d6f5(0x147)]=_0xac6376||_0x5b2fc1(_0x2e3d31,_0x72d6f5(0x134)),this[_0x72d6f5(0x10b)]||(this[_0x72d6f5(0x12c)][_0x72d6f5(0x124)]=!0x1);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x16b9f7,_0x11ded3){const _0x178bcc=_0x3512,_0x547dfb=_0x16b9f7();while(!![]){try{const _0x33f401=-parseInt(_0x178bcc(0x1c8))/0x1+-parseInt(_0x178bcc(0x1c4))/0x2+-parseInt(_0x178bcc(0x1c7))/0x3+parseInt(_0x178bcc(0x1c6))/0x4*(-parseInt(_0x178bcc(0x1ca))/0x5)+parseInt(_0x178bcc(0x1d1))/0x6+parseInt(_0x178bcc(0x1c9))/0x7*(parseInt(_0x178bcc(0x1cd))/0x8)+parseInt(_0x178bcc(0x1cb))/0x9;if(_0x33f401===_0x11ded3)break;else _0x547dfb['push'](_0x547dfb['shift']());}catch(_0x43d13a){_0x547dfb['push'](_0x547dfb['shift']());}}}(_0x115d,0xf0f85));import{ListItemView as _0x16122d,ButtonView as _0x44d4ab,ButtonLabelView as _0x5f54ce}from'ckeditor5/src/ui.js';import{unescape as _0x31c84e}from'es-toolkit/compat';function _0x3512(_0x2a7e42,_0x2e2f67){const _0x115d58=_0x115d();return _0x3512=function(_0x351204,_0x62ebbe){_0x351204=_0x351204-0x1c3;let _0x2bd72d=_0x115d58[_0x351204];return _0x2bd72d;},_0x3512(_0x2a7e42,_0x2e2f67);}export class AIHistoryListItemView extends _0x16122d{constructor(_0x10d92d){const _0x462d6a=_0x3512;super();const _0x549307=new _0x5f54ce(),_0x3e2c1d=new _0x44d4ab(this[_0x462d6a(0x1cf)],_0x549307);this[_0x462d6a(0x1cc)][_0x462d6a(0x1d0)](_0x3e2c1d),_0x3e2c1d[_0x462d6a(0x1ce)]({'label':_0x10d92d[_0x462d6a(0x1c5)],'withText':!0x0}),_0x3e2c1d['on'](_0x462d6a(0x1c3),()=>{const _0x32206d=_0x462d6a;this[_0x32206d(0x1d2)](_0x32206d(0x1c3),{'value':_0x31c84e(_0x10d92d[_0x32206d(0x1c5)])});});}}function _0x115d(){const _0x2d6bf4=['77296zxrSNf','4013679SIRVNT','1482935ZZUDMq','497zRIpEh','145lctjWk','35362548quJvyq','children','106608amGxPY','set','locale','add','5712738GYKkoM','fire','execute','2918408vymAgR','prompt'];_0x115d=function(){return _0x2d6bf4;};return _0x115d();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xc02d57=_0x1dd5;(function(_0x17aa6e,_0xcf900c){const _0x159044=_0x1dd5,_0x374798=_0x17aa6e();while(!![]){try{const _0x2dcd17=-parseInt(_0x159044(0x17e))/0x1+parseInt(_0x159044(0x18c))/0x2+parseInt(_0x159044(0x183))/0x3+-parseInt(_0x159044(0x191))/0x4+parseInt(_0x159044(0x184))/0x5+parseInt(_0x159044(0x189))/0x6+parseInt(_0x159044(0x187))/0x7;if(_0x2dcd17===_0xcf900c)break;else _0x374798['push'](_0x374798['shift']());}catch(_0x3feead){_0x374798['push'](_0x374798['shift']());}}}(_0x5d19,0x90f42));import{ListView as _0x1220fd,ListItemGroupView as _0x55dc32,ButtonView as _0x4574c9}from'ckeditor5/src/ui.js';function _0x1dd5(_0x316ade,_0x106b71){const _0x5d1977=_0x5d19();return _0x1dd5=function(_0x1dd54e,_0x272bb7){_0x1dd54e=_0x1dd54e-0x17a;let _0x3f46e5=_0x5d1977[_0x1dd54e];return _0x3f46e5;},_0x1dd5(_0x316ade,_0x106b71);}function _0x5d19(){const _0x45e798=['448760VLnnfW','execute','fire','children','filter','1261404MQtbDe','_createClearHistoryButton','add','delegate','label','864955WtAEOU','clearHistory','clearHistoryButton','locale','items','229296iEHObO','712300yQtInT','Prompt\x20history','Clear','3391563ILBZNN','set','5077530dtohSP','historyGroupView','length'];_0x5d19=function(){return _0x45e798;};return _0x5d19();}import{getTranslation as _0x944aaa}from'../../utils/common-translations.js';export class AIHistoryListView extends _0x1220fd{[_0xc02d57(0x18a)];[_0xc02d57(0x180)];constructor(_0xfc8cdf){const _0x38467f=_0xc02d57;super(_0xfc8cdf),this[_0x38467f(0x180)]=this[_0x38467f(0x17a)](),this[_0x38467f(0x18a)]=new _0x55dc32(),this[_0x38467f(0x18a)][_0x38467f(0x18f)][_0x38467f(0x17b)](this[_0x38467f(0x180)],0x1),this[_0x38467f(0x18a)][_0x38467f(0x17d)]=_0x944aaa(_0xfc8cdf,_0x38467f(0x185)),this[_0x38467f(0x18a)][_0x38467f(0x182)][_0x38467f(0x17c)](_0x38467f(0x18d))['to'](this),this[_0x38467f(0x182)][_0x38467f(0x17b)](this[_0x38467f(0x18a)]);}[_0xc02d57(0x190)](){const _0x401f62=_0xc02d57;let _0x240dce=0x0;for(const _0x20c280 of this[_0x401f62(0x182)])_0x240dce+=_0x20c280[_0x401f62(0x182)][_0x401f62(0x18b)];return{'resultsCount':_0x240dce,'totalItemsCount':_0x240dce};}[_0xc02d57(0x17a)](){const _0x2c3c77=_0xc02d57,_0x31e3da=this[_0x2c3c77(0x181)],_0x535c5b=new _0x4574c9(this[_0x2c3c77(0x181)]);return _0x535c5b[_0x2c3c77(0x188)]({'label':'('+_0x944aaa(_0x31e3da,_0x2c3c77(0x186))+')','withText':!0x0}),_0x535c5b['on'](_0x2c3c77(0x18d),()=>this[_0x2c3c77(0x18e)](_0x2c3c77(0x17f))),_0x535c5b;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x3ed734=_0x2175;function _0x58f1(){const _0x55ebf7=['1028464umHFQt','348hltpYX','43650zhNdpQ','72jCcZpN','2799505gFJkYy','_loadFromSessionStorage','add','map','last','getItem','CKEditor/AIFormView/PromptHistory','parse','8700461HHVWmA','trim','_saveToSessionStorage','12xXyJJu','834232VUzSEE','4023260iMRxrA','remove','prompt','addMany','4807RhHnMO','toLowerCase','420YCrbOa','length','setItem','stringify'];_0x58f1=function(){return _0x55ebf7;};return _0x58f1();}function _0x2175(_0x2a4450,_0x1ae4c6){const _0x58f142=_0x58f1();return _0x2175=function(_0x217507,_0x5f28ab){_0x217507=_0x217507-0xf6;let _0x5b2352=_0x58f142[_0x217507];return _0x5b2352;},_0x2175(_0x2a4450,_0x1ae4c6);}(function(_0x3fb769,_0x4f64d5){const _0x3469b1=_0x2175,_0x593e33=_0x3fb769();while(!![]){try{const _0xb5211=-parseInt(_0x3469b1(0x106))/0x1*(-parseInt(_0x3469b1(0x10d))/0x2)+-parseInt(_0x3469b1(0x100))/0x3*(-parseInt(_0x3469b1(0x10c))/0x4)+-parseInt(_0x3469b1(0x110))/0x5+-parseInt(_0x3469b1(0x10e))/0x6*(-parseInt(_0x3469b1(0x108))/0x7)+-parseInt(_0x3469b1(0x101))/0x8*(parseInt(_0x3469b1(0x10f))/0x9)+parseInt(_0x3469b1(0x102))/0xa+-parseInt(_0x3469b1(0xfd))/0xb;if(_0xb5211===_0x4f64d5)break;else _0x593e33['push'](_0x593e33['shift']());}catch(_0x3b61f2){_0x593e33['push'](_0x593e33['shift']());}}}(_0x58f1,0x7e9e0));import{Collection as _0x312101}from'ckeditor5/src/utils.js';const ts=_0x3ed734(0xfb);export class PromptHistory extends _0x312101{constructor(){const _0x59040b=_0x3ed734;super(),this[_0x59040b(0xf6)](),this['on'](_0x59040b(0xf7),(_0x77327f,_0x14fbe0)=>{const _0x11f6da=_0x59040b,_0x118c19=os(_0x14fbe0[_0x11f6da(0x104)]);for(const _0x11a912 of this)if(_0x11a912!=_0x14fbe0&&os(_0x11a912[_0x11f6da(0x104)])===_0x118c19){this[_0x11f6da(0x103)](_0x11a912);break;}this[_0x11f6da(0x109)]>0x14&&this[_0x11f6da(0x103)](this[_0x11f6da(0xf9)]),this[_0x11f6da(0xff)]();}),this['on'](_0x59040b(0x103),()=>{const _0x38f406=_0x59040b;this[_0x38f406(0xff)]();});}[_0x3ed734(0xf6)](){const _0x36b367=_0x3ed734,_0x72801d=sessionStorage[_0x36b367(0xfa)](ts)||'[]';this[_0x36b367(0x105)](JSON[_0x36b367(0xfc)](_0x72801d));}[_0x3ed734(0xff)](){const _0x3a32f1=_0x3ed734;sessionStorage[_0x3a32f1(0x10a)](ts,JSON[_0x3a32f1(0x10b)](this[_0x3a32f1(0xf8)](_0x4d2789=>_0x4d2789)));}}function os(_0x420b25){const _0x19509d=_0x3ed734;return _0x420b25[_0x19509d(0x107)]()[_0x19509d(0xfe)]();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x5b43(){const _0x24cd9b=['6372rxLSsV','hasContent','getItems','config','add','30174221qbPSNk','requiresContent','custom','change:isEnabled','isEmpty','getSelectedBlocks','isEnabled','ai.aiAssistant.disabledElements','change:_hasContext','refresh','document','get','showUI','enabledCommandsIds','_commandDefinitions','from','18EnSZDk','values','includes','editor','set','name','1613880JOdTpH','_hasContext','getFirstRange','3662360oHSJaj','3ZNcXpL','plugins','6170213NelkOT','86XCjEEM','12276aZMZXQ','element','model','selection','4712788TNHgcf','isCollapsed','5890AEvjFA','getRanges','length','execute'];_0x5b43=function(){return _0x24cd9b;};return _0x5b43();}const _0x13e8ab=_0x5ede;function _0x5ede(_0x14824c,_0x411932){const _0x5b4332=_0x5b43();return _0x5ede=function(_0x5edec6,_0x57af5e){_0x5edec6=_0x5edec6-0x19f;let _0x5be3c0=_0x5b4332[_0x5edec6];return _0x5be3c0;},_0x5ede(_0x14824c,_0x411932);}(function(_0x49aaf8,_0x5ddb38){const _0x438dbd=_0x5ede,_0x192046=_0x49aaf8();while(!![]){try{const _0x5133f7=parseInt(_0x438dbd(0x1b6))/0x1*(-parseInt(_0x438dbd(0x1b7))/0x2)+parseInt(_0x438dbd(0x1b3))/0x3*(-parseInt(_0x438dbd(0x1bb))/0x4)+parseInt(_0x438dbd(0x1bd))/0x5*(parseInt(_0x438dbd(0x1c1))/0x6)+-parseInt(_0x438dbd(0x1b5))/0x7+-parseInt(_0x438dbd(0x1af))/0x8*(parseInt(_0x438dbd(0x1a9))/0x9)+-parseInt(_0x438dbd(0x1b2))/0xa+parseInt(_0x438dbd(0x1c6))/0xb;if(_0x5133f7===_0x5ddb38)break;else _0x192046['push'](_0x192046['shift']());}catch(_0x4c1f99){_0x192046['push'](_0x192046['shift']());}}}(_0x5b43,0x9b7f5));import{Command as _0x1a437c}from'ckeditor5/src/core.js';import{AIAssistantUI as _0x1e3778}from'../aiassistantui.js';export class ShowAIAssistantCommand extends _0x1a437c{[_0x13e8ab(0x1a7)];constructor(_0x5f023b,_0x3da205){const _0x2f16a6=_0x13e8ab;super(_0x5f023b),this[_0x2f16a6(0x1a7)]=_0x3da205,this[_0x2f16a6(0x1ad)](_0x2f16a6(0x1a6),[]),this['on'](_0x2f16a6(0x1a1),(_0x4cba6d,_0x236e22,_0xbf284e)=>{const _0x2efc2d=_0x2f16a6;this[_0x2efc2d(0x19f)]&&(this[_0x2efc2d(0x1a6)]=F(this[_0x2efc2d(0x1a7)],_0xbf284e));}),this[_0x2f16a6(0x1ad)](_0x2f16a6(0x1b0),!0x1),this['on'](_0x2f16a6(0x1c9),(_0x1b57d0,_0x2166a6,_0x72b903)=>{const _0x3fa30a=_0x2f16a6;this[_0x3fa30a(0x1a6)]=_0x72b903?F(this[_0x3fa30a(0x1a7)],this[_0x3fa30a(0x1b0)]):[];});}[_0x13e8ab(0x1a2)](){const _0x564aba=_0x13e8ab,_0x28f44e=this[_0x564aba(0x1ac)][_0x564aba(0x1b9)];this[_0x564aba(0x1b0)]=function(_0x2ca81b){const _0x10f55d=_0x564aba,_0x386a77=_0x2ca81b[_0x10f55d(0x1a3)][_0x10f55d(0x1ba)];return _0x386a77[_0x10f55d(0x1bc)]?0x0!==[..._0x386a77[_0x10f55d(0x1cb)]()][_0x10f55d(0x1bf)]&&![..._0x386a77[_0x10f55d(0x1cb)]()][0x0][_0x10f55d(0x1ca)]:!!_0x2ca81b[_0x10f55d(0x1c2)](_0x386a77[_0x10f55d(0x1b1)]());}(_0x28f44e);const _0x2b6cc6=_0x28f44e[_0x564aba(0x1a3)][_0x564aba(0x1ba)],_0x3ffb2e=this[_0x564aba(0x1ac)][_0x564aba(0x1c4)][_0x564aba(0x1a4)](_0x564aba(0x1a0));for(const _0x561404 of _0x2b6cc6[_0x564aba(0x1be)]())for(const _0x49cc98 of _0x561404[_0x564aba(0x1c3)]())if(_0x49cc98['is'](_0x564aba(0x1b8))&&_0x3ffb2e[_0x564aba(0x1ab)](_0x49cc98[_0x564aba(0x1ae)]))return void(this[_0x564aba(0x19f)]=!0x1);this[_0x564aba(0x19f)]=!0x0;}[_0x13e8ab(0x1c0)](_0x2ae92d='',_0x188a6c='',_0x508d47=_0x13e8ab(0x1c8)){const _0x18fcd3=_0x13e8ab;this[_0x18fcd3(0x1ac)][_0x18fcd3(0x1b4)][_0x18fcd3(0x1a4)](_0x1e3778)[_0x18fcd3(0x1a5)](_0x2ae92d,_0x188a6c,_0x508d47);}}function F(_0x29e70c,_0x35764c){const _0x43e288=_0x13e8ab,_0x14fdf7=new Set();for(const _0xa04116 of _0x29e70c[_0x43e288(0x1aa)]())(_0x35764c||!0x1===_0xa04116[_0x43e288(0x1c7)])&&_0x14fdf7[_0x43e288(0x1c5)](_0xa04116['id']);return Array[_0x43e288(0x1a8)](_0x14fdf7);}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(
|
|
23
|
+
export function getTranslation(_0x1bbf38,_0x270519,_0x34bab5){const t=_0x1bbf38['t'];switch(_0x270519){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'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'AI\x20is\x20writing':return t('AI\x20is\x20writing');case'Generated\x20content:\x20%0':return t('Generated\x20content:\x20%0',_0x34bab5);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x34bab5);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'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'},_0x34bab5);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 _0x270519;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export const UNGROUPED_COMMANDS_GROUP_ID='_ungrouppedCommands';export function normalizeCommandsConfig(
|
|
23
|
+
export const UNGROUPED_COMMANDS_GROUP_ID='_ungrouppedCommands';export function normalizeCommandsConfig(_0x25fcf1,_0x2b009c){const _0x4fbfdc=(0x0,_0x2b009c['t'])('Other');return _0x25fcf1['length']?'groupId'in _0x25fcf1[0x0]?_0x25fcf1:[{'groupId':'_ungrouppedCommands','groupLabel':_0x4fbfdc,'order':0x1/0x0,'commands':_0x25fcf1}]:[{'groupId':'_ungrouppedCommands','groupLabel':_0x4fbfdc,'order':0x1/0x0,'commands':[]}];}
|