@ckeditor/ckeditor5-ai 43.1.0-alpha.0 → 43.1.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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/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.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/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/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/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/ko.js +1 -1
- package/dist/translations/ko.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/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/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/sk.js +1 -1
- package/dist/translations/sk.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/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 +8 -8
- 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.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/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
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x23f6fb=_0x4ce5;(function(_0x5711d1,_0x97253d){const _0x257b9a=_0x4ce5,_0x4f8af4=_0x5711d1();while(!![]){try{const _0x4cd38d=-parseInt(_0x257b9a(0x113))/0x1*(parseInt(_0x257b9a(0xe8))/0x2)+parseInt(_0x257b9a(0xfb))/0x3*(parseInt(_0x257b9a(0x111))/0x4)+parseInt(_0x257b9a(0x132))/0x5+-parseInt(_0x257b9a(0x12b))/0x6*(parseInt(_0x257b9a(0x129))/0x7)+-parseInt(_0x257b9a(0xef))/0x8+-parseInt(_0x257b9a(0x119))/0x9*(-parseInt(_0x257b9a(0xec))/0xa)+-parseInt(_0x257b9a(0x122))/0xb*(parseInt(_0x257b9a(0xe9))/0xc);if(_0x4cd38d===_0x97253d)break;else _0x4f8af4['push'](_0x4f8af4['shift']());}catch(_0xdf037){_0x4f8af4['push'](_0x4f8af4['shift']());}}}(_0x250a,0x78952));import{global as _0x289831}from'ckeditor5/src/utils.js';function _0x250a(){const _0x278ba5=['remove','21022oZGmyE','852rGTwba','querySelector','bind','8578190kvvHCK','mousedown','lastElementChild','3382392FZpQpb','body','_copyHTMLToClipboard','scrollHeight','<span>]</span>','wheel','_createCopyButton','ck-ai-form__content-field','text/plain','locale','smooth','isEnabled','411WzWnfR','setStartAfter','loaderView','ck-ai-form__copy-button','check','textContent','removeAllRanges','div','execCommand','value','getSelection','ck-ai-form__copy-button-wrapper','position','scrollTo','absolute','appendChild','render','text/html','change:isProcessing','class','setTemplate','ck-hidden','16964eVQuHt','bindTemplate','61TVwruR','execute','element','firstElementChild','icon','ClipboardItem','9ZZsSkt','Copy','setContent','left','ck-ai-form__content-area','createElement','ck-ai-form__content-area-wrapper','ck-ai-form__loader','copyButtonView','98516EwNZiB','clipboard','_createLoader','ck-content','change:value','isProcessing','style','1215291kqwVyN','focus','6dUpXCK','ck-reset_all-excluded','isVisible','-9999px','<span>[</span>','write','set','4642645QEnemL','contentFieldView','AI\x20is\x20writing...','copy','innerHTML','appendLoader','ck-ai-form__content-area--processing','setEndBefore','createRange','\x20ck-ai-form__copy-button--copied','addRange','listenTo','.ck-ai-form__loader'];_0x250a=function(){return _0x278ba5;};return _0x250a();}import{View as _0x5ee94b,ButtonView as _0x44b41d,SpinnerView as _0x4cf7b2}from'ckeditor5/src/ui.js';function _0x4ce5(_0x2d85e8,_0x82a054){const _0x250ade=_0x250a();return _0x4ce5=function(_0x4ce5ca,_0x570b6d){_0x4ce5ca=_0x4ce5ca-0xdc;let _0x5730aa=_0x250ade[_0x4ce5ca];return _0x5730aa;},_0x4ce5(_0x2d85e8,_0x82a054);}import _0x2e0119 from'../../../theme/icons/copy.svg';import{getTranslation as _0x2c1db6}from'../../utils/common-translations.js';import{icons as _0x1afe5f}from'ckeditor5/src/core.js';export default class K extends _0x5ee94b{constructor(_0x1454b4,_0x20e21e=''){const _0x5c4b16=_0x4ce5;super(_0x1454b4),this[_0x5c4b16(0x131)]({'value':null,'isVisible':!0x1,'isProcessing':!0x1});const _0x43a6d6=this[_0x5c4b16(0x112)];this[_0x5c4b16(0x133)]=new ContentFieldView(_0x1454b4,_0x20e21e),this[_0x5c4b16(0x121)]=this[_0x5c4b16(0xf5)](),this[_0x5c4b16(0x10f)]({'tag':_0x5c4b16(0x102),'attributes':{'class':['ck',_0x5c4b16(0x11f),_0x43a6d6['if'](_0x5c4b16(0x12d),_0x5c4b16(0x110),_0x3433b1=>!_0x3433b1)],'tabindex':'-1'},'children':[{'tag':_0x5c4b16(0x102),'attributes':{'class':['ck',_0x5c4b16(0x11d),_0x43a6d6['if'](_0x5c4b16(0x127),_0x5c4b16(0xe0))]},'children':[this[_0x5c4b16(0x133)],{'tag':_0x5c4b16(0x102),'attributes':{'class':['ck',_0x5c4b16(0x106)]},'children':[this[_0x5c4b16(0x121)]]}]}]});}[_0x23f6fb(0x10b)](){const _0x5bbc9d=_0x23f6fb;super[_0x5bbc9d(0x10b)](),this[_0x5bbc9d(0x104)]&&this[_0x5bbc9d(0x133)][_0x5bbc9d(0x11b)](this[_0x5bbc9d(0x104)]);let _0xb11740=!0x1;this['on'](_0x5bbc9d(0x126),(_0xd02ac0,_0x325c27,_0x451f76)=>{const _0x180b2b=_0x5bbc9d,_0x23da38=!this[_0x180b2b(0x133)][_0x180b2b(0x115)][_0x180b2b(0xea)](_0x180b2b(0xe6));this[_0x180b2b(0x133)][_0x180b2b(0x11b)](_0x451f76),this[_0x180b2b(0x127)]&&_0x23da38&&!_0xb11740&&this[_0x180b2b(0x115)][_0x180b2b(0x108)]({'top':this[_0x180b2b(0x115)][_0x180b2b(0xf2)],'behavior':_0x180b2b(0xf9)});}),this['on'](_0x5bbc9d(0x10d),(_0x4c77f9,_0x13c1d8,_0x5664ac)=>{const _0x5afbf7=_0x5bbc9d;_0xb11740=!0x1,_0x5664ac?(this[_0x5afbf7(0x104)]=null,this[_0x5afbf7(0x133)][_0x5afbf7(0xdf)]()):this[_0x5afbf7(0x104)]||this[_0x5afbf7(0x133)][_0x5afbf7(0x11b)]('');}),this[_0x5bbc9d(0xe5)](this[_0x5bbc9d(0x115)],_0x5bbc9d(0xf4),()=>{_0xb11740=!0x0;}),this[_0x5bbc9d(0xe5)](this[_0x5bbc9d(0x115)],_0x5bbc9d(0xed),()=>{_0xb11740=!0x0;});}[_0x23f6fb(0x12a)](){const _0x139b62=_0x23f6fb;this[_0x139b62(0x115)][_0x139b62(0x12a)]();}[_0x23f6fb(0xf5)](){const _0x1fd4b=_0x23f6fb,_0x59db63=this[_0x1fd4b(0xf8)],_0x449946=new _0x44b41d(this[_0x1fd4b(0xf8)]),_0xdad0c6=_0x1fd4b(0xfe);return _0x449946[_0x1fd4b(0x131)]({'label':_0x2c1db6(_0x59db63,_0x1fd4b(0x11a)),'icon':_0x2e0119,'class':_0xdad0c6,'tooltip':!0x0}),_0x449946[_0x1fd4b(0xeb)](_0x1fd4b(0x12d))['to'](this,_0x1fd4b(0x104),_0xee8598=>!!_0xee8598),_0x449946[_0x1fd4b(0xeb)](_0x1fd4b(0xfa))['to'](this,_0x1fd4b(0x127),_0x22909b=>!_0x22909b),_0x449946['on'](_0x1fd4b(0x114),()=>{const _0x318f11=_0x1fd4b;this[_0x318f11(0xf1)](this[_0x318f11(0x133)][_0x318f11(0x115)]),_0x449946[_0x318f11(0x117)]=_0x1afe5f[_0x318f11(0xff)],_0x449946[_0x318f11(0x10e)]=_0xdad0c6+_0x318f11(0xe3),this[_0x318f11(0x12a)](),setTimeout(()=>{const _0xd9209e=_0x318f11;_0x449946[_0xd9209e(0x117)]=_0x2e0119,_0x449946[_0xd9209e(0x10e)]=_0xdad0c6;},0x3e8);}),_0x449946;}[_0x23f6fb(0xf1)](_0x5ae794){const _0x4edf17=_0x23f6fb,{window:_0x346818,document:_0x411ac6}=_0x289831;if(_0x346818[_0x4edf17(0x118)]){const {Blob:_0x5604fa,ClipboardItem:_0x2a72c5}=_0x346818,_0x1001ba=[new _0x2a72c5({'text/html':new _0x5604fa([_0x5ae794[_0x4edf17(0xde)]],{'type':_0x4edf17(0x10c)}),'text/plain':new _0x5604fa([_0x5ae794[_0x4edf17(0x100)]||''],{'type':_0x4edf17(0xf7)})})];navigator[_0x4edf17(0x123)][_0x4edf17(0x130)](_0x1001ba);}else{const _0x39e246=_0x411ac6[_0x4edf17(0x11e)](_0x4edf17(0x102));_0x39e246[_0x4edf17(0x128)][_0x4edf17(0x107)]=_0x4edf17(0x109),_0x39e246[_0x4edf17(0x128)][_0x4edf17(0x11c)]=_0x4edf17(0x12e),_0x39e246[_0x4edf17(0xde)]=_0x4edf17(0x12f)+_0x5ae794[_0x4edf17(0xde)]+_0x4edf17(0xf3),_0x411ac6[_0x4edf17(0xf0)][_0x4edf17(0x10a)](_0x39e246);const _0x1cf0d6=_0x411ac6[_0x4edf17(0xe2)]();_0x1cf0d6[_0x4edf17(0xfc)](_0x39e246[_0x4edf17(0x116)]),_0x1cf0d6[_0x4edf17(0xe1)](_0x39e246[_0x4edf17(0xee)]);const _0x408552=_0x346818[_0x4edf17(0x105)]();_0x408552[_0x4edf17(0x101)](),_0x408552[_0x4edf17(0xe4)](_0x1cf0d6),_0x411ac6[_0x4edf17(0x103)](_0x4edf17(0xdd)),_0x39e246[_0x4edf17(0xe7)]();}}}export class ContentFieldView extends _0x5ee94b{constructor(_0x265d0a,_0x2c549a=''){const _0x4380d2=_0x23f6fb;super(_0x265d0a),this[_0x4380d2(0xfd)]=this[_0x4380d2(0x124)](),this[_0x4380d2(0x10f)]({'tag':_0x4380d2(0x102),'attributes':{'class':['ck',_0x4380d2(0x125),_0x2c549a,_0x4380d2(0x12c),_0x4380d2(0xf6)]}});}[_0x23f6fb(0x11b)](_0x401820){const _0xca8d4c=_0x23f6fb;this[_0xca8d4c(0x115)][_0xca8d4c(0xde)]=_0x401820;}[_0x23f6fb(0xdf)](){const _0x24c694=_0x23f6fb;this[_0x24c694(0x115)][_0x24c694(0x10a)](this[_0x24c694(0xfd)][_0x24c694(0x115)]);}[_0x23f6fb(0x124)](){const _0x872f25=_0x23f6fb,_0x48d973=new _0x5ee94b(),_0x4a32f4=this[_0x872f25(0xf8)],_0x4a5e9c=new _0x4cf7b2();return _0x4a5e9c[_0x872f25(0x12d)]=!0x0,_0x48d973[_0x872f25(0x10f)]({'tag':_0x872f25(0x102),'attributes':{'class':['ck',_0x872f25(0x120)]},'children':[_0x4a5e9c,{'text':_0x2c1db6(_0x4a32f4,_0x872f25(0xdc))}]}),_0x48d973[_0x872f25(0x10b)](),_0x48d973;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x121e35,_0x5c1bae){const _0xbe64da=_0x5d36,_0xca5823=_0x121e35();while(!![]){try{const _0x2dd6c8=-parseInt(_0xbe64da(0x99))/0x1+parseInt(_0xbe64da(0x8c))/0x2+-parseInt(_0xbe64da(0x93))/0x3*(-parseInt(_0xbe64da(0x97))/0x4)+parseInt(_0xbe64da(0x8b))/0x5+parseInt(_0xbe64da(0x95))/0x6+-parseInt(_0xbe64da(0x8e))/0x7*(parseInt(_0xbe64da(0x8a))/0x8)+parseInt(_0xbe64da(0x98))/0x9*(parseInt(_0xbe64da(0x90))/0xa);if(_0x2dd6c8===_0x5c1bae)break;else _0xca5823['push'](_0xca5823['shift']());}catch(_0x20b267){_0xca5823['push'](_0xca5823['shift']());}}}(_0x50e0,0xe8600));function _0x5d36(_0x29e094,_0x7f80e2){const _0x50e0d8=_0x50e0();return _0x5d36=function(_0x5d363a,_0x41d22d){_0x5d363a=_0x5d363a-0x89;let _0x5af333=_0x50e0d8[_0x5d363a];return _0x5af333;},_0x5d36(_0x29e094,_0x7f80e2);}import{View as _0x7b2fee,IconView as _0x3000b2}from'ckeditor5/src/ui.js';import _0x1b9852 from'../../../theme/icons/error.svg';function _0x50e0(){const _0x4d4804=['text','6463384BuRdhh','325170SofkTT','2047246GmLeNy','bindTemplate','14jVFFSa','div','12360EXaOBL','setTemplate','set','3rrmHpM','ck-ai-form__error','4345152Ktaodr','content','3322076YkkIZB','3267PFreUk','524382mfCtnz'];_0x50e0=function(){return _0x4d4804;};return _0x50e0();}export default class Y extends _0x7b2fee{constructor(_0xc982e9,_0x192671=''){const _0x23a373=_0x5d36;super(_0xc982e9);const _0x4dccea=new _0x3000b2(),_0x371faa=this[_0x23a373(0x8d)];this[_0x23a373(0x92)](_0x23a373(0x89),_0x192671),_0x4dccea[_0x23a373(0x96)]=_0x1b9852,this[_0x23a373(0x91)]({'tag':_0x23a373(0x8f),'attributes':{'class':['ck',_0x23a373(0x94)]},'children':[_0x4dccea,{'text':_0x371faa['to'](_0x23a373(0x89))}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x21b87a=_0x55f2;(function(_0x354920,_0x4b9691){const _0xc76c49=_0x55f2,_0x161de9=_0x354920();while(!![]){try{const _0x4db87d=parseInt(_0xc76c49(0x10e))/0x1*(parseInt(_0xc76c49(0x103))/0x2)+-parseInt(_0xc76c49(0x111))/0x3+parseInt(_0xc76c49(0xf5))/0x4*(parseInt(_0xc76c49(0x104))/0x5)+parseInt(_0xc76c49(0xe2))/0x6+-parseInt(_0xc76c49(0xf8))/0x7*(parseInt(_0xc76c49(0xee))/0x8)+parseInt(_0xc76c49(0x106))/0x9*(-parseInt(_0xc76c49(0xef))/0xa)+parseInt(_0xc76c49(0xde))/0xb;if(_0x4db87d===_0x4b9691)break;else _0x161de9['push'](_0x161de9['shift']());}catch(_0x549d41){_0x161de9['push'](_0x161de9['shift']());}}}(_0x29bf,0x82a8c));import{Rect as _0x142ec4,global as _0x58670f,isVisible as _0xc2473c}from'ckeditor5/src/utils.js';import{AutocompleteView as _0xcfe084,ButtonView as _0x195712}from'ckeditor5/src/ui.js';import{icons as _0x5b66ce}from'ckeditor5/src/core.js';import{getTranslation as _0x46c07b}from'../../utils/common-translations.js';import _0x7ef1df from'../../../theme/icons/submit.svg';function _0x29bf(){const _0x599298=['ck-ai-form__submit','maxRows','target','keystrokes','excludeScrollbarsAndBorders','filteredView','update','bind','8UKlgip','5331110OgwjmY','isEnabled','isEmpty','enter','focus','focusableChildren','168lLbBvt','isVisible','execute','3994354ZqrAcn','fieldView','locale','set','requestAnimationFrame','width','fire','children','submitButtonView','render','rtl','2sDPnkn','30285BxwkjM','add','9JnJUhh','window','right','resultsView','Submit','minRows','value','_createShowHistoryButton','425151vsYrzW','history','focusLast','2466453gSyhBg','ck-ai-form__toggle-history','focusCycler','left','focusFirst','fieldWrapperChildren','isOn','History','submit','12709015UtsTdo','uiLanguageDirection','_createSubmitButton','style','3756924DKKxiA','queryView','element','showHistoryButtonView'];_0x29bf=function(){return _0x599298;};return _0x29bf();}function _0x55f2(_0x384563,_0x2240b4){const _0x29bfe2=_0x29bf();return _0x55f2=function(_0x55f273,_0x2444ee){_0x55f273=_0x55f273-0xd8;let _0x4f7416=_0x29bfe2[_0x55f273];return _0x4f7416;},_0x55f2(_0x384563,_0x2240b4);}export default class ot extends _0xcfe084{constructor(_0x34f288,_0x2e5c7a){const _0x5c8793=_0x55f2;super(_0x34f288,_0x2e5c7a),this[_0x5c8793(0xe3)][_0x5c8793(0xf9)][_0x5c8793(0x10b)]=0x1,this[_0x5c8793(0xe3)][_0x5c8793(0xf9)][_0x5c8793(0xe7)]=0x3,this[_0x5c8793(0x100)]=this[_0x5c8793(0xe0)](),this[_0x5c8793(0xe5)]=this[_0x5c8793(0x10d)](),this[_0x5c8793(0xf4)][_0x5c8793(0x105)](this[_0x5c8793(0xe5)],0x1),this[_0x5c8793(0xf4)][_0x5c8793(0x105)](this[_0x5c8793(0x100)]);}[_0x21b87a(0x101)](){const _0xacb81e=_0x21b87a;super[_0xacb81e(0x101)](),this[_0xacb81e(0xe3)][_0xacb81e(0xda)][_0xacb81e(0x105)](this[_0xacb81e(0xe5)]),this[_0xacb81e(0xff)][_0xacb81e(0x105)](this[_0xacb81e(0x100)]),this[_0xacb81e(0xe9)][_0xacb81e(0xfb)](_0xacb81e(0xf2),(_0x3afa82,_0x3471c9)=>{const _0x56bfb3=_0xacb81e;_0x3afa82[_0x56bfb3(0xe8)]==this[_0x56bfb3(0xe3)][_0x56bfb3(0xf9)][_0x56bfb3(0xe4)]&&(this[_0x56bfb3(0xdd)](),_0x3471c9());});}[_0x21b87a(0xe0)](){const _0x498a58=_0x21b87a,_0x254c22=new _0x195712(this[_0x498a58(0xfa)]),_0x3ac072=this[_0x498a58(0xfa)];return _0x254c22[_0x498a58(0xfb)]({'icon':_0x7ef1df,'label':_0x46c07b(_0x3ac072,_0x498a58(0x10a)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x498a58(0xe6)}),_0x254c22['on'](_0x498a58(0xf7),()=>{const _0x3916f6=_0x498a58;this[_0x3916f6(0xdd)]();}),_0x254c22[_0x498a58(0xed)](_0x498a58(0xf0))['to'](this[_0x498a58(0xe3)][_0x498a58(0xf9)],_0x498a58(0xf1),this,_0x498a58(0xf0),(_0x194ade,_0x1caac8)=>!_0x194ade&&_0x1caac8),_0x254c22;}[_0x21b87a(0x10d)](){const _0x50b48d=_0x21b87a,_0x2c45f2=new _0x195712(this[_0x50b48d(0xfa)]),_0x9c41a9=this[_0x50b48d(0x109)],_0x2a92bc=this[_0x50b48d(0xfa)];_0x2c45f2[_0x50b48d(0xfb)]({'label':_0x46c07b(_0x2a92bc,_0x50b48d(0xdc)),'withText':!0x1,'icon':_0x5b66ce[_0x50b48d(0x10f)],'tooltip':!0x0,'tooltipPosition':'sw','class':_0x50b48d(0x112)}),_0x2c45f2[_0x50b48d(0xed)](_0x50b48d(0xdb))['to'](_0x9c41a9,_0x50b48d(0xf6)),_0x2c45f2[_0x50b48d(0xed)](_0x50b48d(0xf0))['to'](this,_0x50b48d(0xf0)),_0x2c45f2['on'](_0x50b48d(0xf7),()=>{const _0x1de6e2=_0x50b48d;_0x9c41a9[_0x1de6e2(0xf6)]=!_0x9c41a9[_0x1de6e2(0xf6)],_0x9c41a9[_0x1de6e2(0xf6)]?this[_0x1de6e2(0xeb)][_0x1de6e2(0xf3)]():this[_0x1de6e2(0xf3)]();});const _0x75d6d1=()=>{const _0x3da750=_0x50b48d;_0x58670f[_0x3da750(0x107)][_0x3da750(0xfc)](()=>{const _0x3b56fb=_0x3da750;if(_0xc2473c(this[_0x3b56fb(0xe4)])){const _0x57a5f7=new _0x142ec4(this[_0x3b56fb(0xe3)][_0x3b56fb(0xf9)][_0x3b56fb(0xe4)]),_0x4e3770=_0x57a5f7[_0x3b56fb(0xfd)],_0x278fea=_0x3b56fb(0x102)===_0x2a92bc[_0x3b56fb(0xdf)]?_0x3b56fb(0xd8):_0x3b56fb(0x108);_0x57a5f7[_0x3b56fb(0xea)](),_0x2c45f2[_0x3b56fb(0xe4)][_0x3b56fb(0xe1)][_0x278fea]=_0x4e3770-_0x57a5f7[_0x3b56fb(0xfd)]+0x1+'px';}});};return this[_0x50b48d(0xe3)][_0x50b48d(0xf9)]['on'](_0x50b48d(0xec),_0x75d6d1),this['on'](_0x50b48d(0x101),_0x75d6d1),_0x2c45f2;}[_0x21b87a(0xdd)](){const _0x41749b=_0x21b87a,_0x36204b=this[_0x41749b(0xe3)][_0x41749b(0xf9)][_0x41749b(0xe4)][_0x41749b(0x10c)];this[_0x41749b(0xfe)](_0x41749b(0xdd),_0x36204b);}[_0x21b87a(0xf3)](_0x598f6c){const _0x1da84a=_0x21b87a;-0x1===_0x598f6c?this[_0x1da84a(0x113)][_0x1da84a(0x110)]():this[_0x1da84a(0x113)][_0x1da84a(0xd9)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5606cd=_0x25c5;(function(_0x54d343,_0x417d3d){const _0x4d2f5c=_0x25c5,_0x3a371f=_0x54d343();while(!![]){try{const _0x636f55=parseInt(_0x4d2f5c(0xa8))/0x1+parseInt(_0x4d2f5c(0xad))/0x2*(parseInt(_0x4d2f5c(0xb8))/0x3)+-parseInt(_0x4d2f5c(0xae))/0x4+parseInt(_0x4d2f5c(0xbc))/0x5+-parseInt(_0x4d2f5c(0xb9))/0x6+parseInt(_0x4d2f5c(0xbf))/0x7*(parseInt(_0x4d2f5c(0xc9))/0x8)+-parseInt(_0x4d2f5c(0xac))/0x9*(parseInt(_0x4d2f5c(0xb3))/0xa);if(_0x636f55===_0x417d3d)break;else _0x3a371f['push'](_0x3a371f['shift']());}catch(_0x24cfc3){_0x3a371f['push'](_0x3a371f['shift']());}}}(_0x3c9f,0x3bc14));import{ToolbarView as _0x1bfc7e,ButtonView as _0x34af2e}from'ckeditor5/src/ui.js';function _0x3c9f(){const _0x46c1f4=['Try\x20again','AI_','1497210qGAHwW','ck-hidden','Insert\x20below','49ZlTenL','bindTemplate','replace','addMany','Stop','locale','_createButton','set','ck-ai-form__toolbar','extendTemplate','206168PsiCLI','tryAgainButton','label','toUpperCase','173348NQLRqs','mainAction','ck-button-action','insert','261Bwfzwx','104376bfyPhz','436192nOcNYY','REPLACE','stopButton','items','isVisible','88870VfAJDl','replaceButton','bind','_CONTENT','insertButton','9eZgezV','1189344IwTlVC'];_0x3c9f=function(){return _0x46c1f4;};return _0x3c9f();}import{getTranslation as _0x28296b}from'../../utils/common-translations.js';function _0x25c5(_0x335c51,_0x185874){const _0x3c9ff6=_0x3c9f();return _0x25c5=function(_0x25c5d1,_0x1d609d){_0x25c5d1=_0x25c5d1-0xa7;let _0x53f7e6=_0x3c9ff6[_0x25c5d1];return _0x53f7e6;},_0x25c5(_0x335c51,_0x185874);}export const AIFormToolbarViewMainActionLabel={'REPLACE':_0x5606cd(0xc1),'INSERT':_0x5606cd(0xab)};export default class rt extends _0x1bfc7e{constructor(_0x4b0272){const _0x2449be=_0x5606cd;super(_0x4b0272),this[_0x2449be(0xc6)](_0x2449be(0xb2),!0x1),this[_0x2449be(0xc6)](_0x2449be(0xa9),AIFormToolbarViewMainActionLabel[_0x2449be(0xaf)]),this[_0x2449be(0xb4)]=this[_0x2449be(0xc5)]('',_0x2449be(0xaa)),this[_0x2449be(0xb4)][_0x2449be(0xb5)](_0x2449be(0xcb))['to'](this,_0x2449be(0xa9),_0x46a0d1=>_0x28296b(_0x4b0272,_0x2449be(0xbb)+_0x46a0d1[_0x2449be(0xa7)]()+_0x2449be(0xb6))),this[_0x2449be(0xb7)]=this[_0x2449be(0xc5)](_0x28296b(_0x4b0272,_0x2449be(0xbe))),this[_0x2449be(0xca)]=this[_0x2449be(0xc5)](_0x28296b(_0x4b0272,_0x2449be(0xba))),this[_0x2449be(0xb0)]=this[_0x2449be(0xc5)](_0x28296b(_0x4b0272,_0x2449be(0xc3)));const _0x195c93=this[_0x2449be(0xc0)];this[_0x2449be(0xc8)]({'attributes':{'class':[_0x2449be(0xc7),_0x195c93['if'](_0x2449be(0xb2),_0x2449be(0xbd),_0x3583a9=>!_0x3583a9)]}}),this[_0x2449be(0xb1)][_0x2449be(0xc2)]([this[_0x2449be(0xb4)],this[_0x2449be(0xb7)],this[_0x2449be(0xca)],this[_0x2449be(0xb0)]]);}[_0x5606cd(0xc5)](_0x4171c0,_0x52cf7a){const _0xd4f906=_0x5606cd,_0x2fa6f5=new _0x34af2e(this[_0xd4f906(0xc4)]);return _0x2fa6f5[_0xd4f906(0xc6)]({'label':_0x4171c0,'class':_0x52cf7a||'','isVisible':!0x0,'withText':!0x0}),_0x2fa6f5;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x4f60(){const _0x58f227=['text','clearHistory','REPLACE','render','focus','stopProcessing','ck-ai-form-content','setTemplate','isProcessing','trim','Ask\x20AI\x20to\x20improve\x20generated\x20text','prompt','high','2hoCngg','div','submitPrompt','insertContentBelow','AI_ERROR_FAILED','delegate','tab','queryView','Empty\x20history','_focusables','ck-ai-form','bindTemplate','stopButton','_promptHistory','contentArea','historyGroupView','set','toolbar','tryAgainButton','9WeFahb','_createPromptView','handleError','createCollection','_createToolbar','_createHistoryView','4LkcMzW','bind','replaceContent','focusLast','search','chain','focusCycler','locale','execute','isError','reset','promptView','isEnabled','5396880dUIcuj','27377VzjVKO','listenTo','focusFirst','value','finishProcessing','element','shift\x20+\x20tab','errorView','items','insertButton','mainAction','label','submit','50135vtkWaY','8549013WXrjWz','7981920ztRrmz','fieldView','1672PibKTR','replaceButton','ck-hidden','clear','copyButtonView','bindTo','keystrokes','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','startProcessing','fire','3907955AEAllS','isVisible','tryAgainEvent','878268QXDAVt','focusTracker','Ask\x20AI\x20to\x20edit\x20or\x20generate','add'];_0x4f60=function(){return _0x58f227;};return _0x4f60();}const _0x258c13=_0x3749;(function(_0x2c5ef6,_0x41dc7a){const _0x31a6c9=_0x3749,_0x5831f6=_0x2c5ef6();while(!![]){try{const _0x5e9e81=parseInt(_0x31a6c9(0x108))/0x1+parseInt(_0x31a6c9(0x12a))/0x2*(-parseInt(_0x31a6c9(0x119))/0x3)+parseInt(_0x31a6c9(0xed))/0x4*(-parseInt(_0x31a6c9(0x116))/0x5)+-parseInt(_0x31a6c9(0xfa))/0x6+parseInt(_0x31a6c9(0xfb))/0x7*(parseInt(_0x31a6c9(0x10c))/0x8)+-parseInt(_0x31a6c9(0xe7))/0x9*(-parseInt(_0x31a6c9(0x10a))/0xa)+parseInt(_0x31a6c9(0x109))/0xb;if(_0x5e9e81===_0x41dc7a)break;else _0x5831f6['push'](_0x5831f6['shift']());}catch(_0x5c9a65){_0x5831f6['push'](_0x5831f6['shift']());}}}(_0x4f60,0x7285a));import{FocusTracker as _0x33ac91,KeystrokeHandler as _0x3cd46d}from'ckeditor5/src/utils.js';import{View as _0x374a63,FocusCycler as _0x1a8b95,createLabeledTextarea as _0x1fea04}from'ckeditor5/src/ui.js';import _0x3dc68a,{AIFormToolbarViewMainActionLabel as _0x2f44c3}from'./aiformtoolbarview.js';import _0x5dc64a from'./aiformcontentarea.js';import _0x4a9892 from'./aiformerrorview.js';function _0x3749(_0x59f8f0,_0x35a507){const _0x4f60de=_0x4f60();return _0x3749=function(_0x3749f0,_0x4df917){_0x3749f0=_0x3749f0-0xd6;let _0x32ebf2=_0x4f60de[_0x3749f0];return _0x32ebf2;},_0x3749(_0x59f8f0,_0x35a507);}import _0x14069d from'./aiformpromptview.js';import _0x47db0f from'./aihistorylistview.js';import _0x5d10fc from'./aihistorylistitemview.js';import _0x36a68a from'./prompthistory.js';import{getTranslation as _0x4cfe34}from'../../utils/common-translations.js';import{escape as _0x2438f0}from'lodash-es';export default class v extends _0x374a63{constructor(_0x5385a3,_0x4d4484,_0x1378b7=''){const _0x5f50c2=_0x3749;super(_0x5385a3),this[_0x5f50c2(0xe4)](_0x5f50c2(0xf9),!0x0),this[_0x5f50c2(0xe4)](_0x5f50c2(0x125),!0x1),this[_0x5f50c2(0xe4)](_0x5f50c2(0x128),''),this[_0x5f50c2(0xe4)](_0x5f50c2(0xfe),''),this[_0x5f50c2(0xe4)](_0x5f50c2(0xf6),!0x1),this[_0x5f50c2(0xe4)](_0x5f50c2(0x105),_0x2f44c3[_0x5f50c2(0x11f)]),this[_0x5f50c2(0xe1)]=new _0x36a68a(),this[_0x5f50c2(0x102)]=new _0x4a9892(_0x5385a3),this[_0x5f50c2(0xe2)]=new _0x5dc64a(_0x5385a3,_0x1378b7),this[_0x5f50c2(0xe2)][_0x5f50c2(0xee)](_0x5f50c2(0x125))['to'](this),this[_0x5f50c2(0xe2)][_0x5f50c2(0xee)](_0x5f50c2(0xfe))['to'](this),this[_0x5f50c2(0xe5)]=this[_0x5f50c2(0xeb)](),this[_0x5f50c2(0xe5)][_0x5f50c2(0xee)](_0x5f50c2(0x105))['to'](this),this[_0x5f50c2(0xf8)]=this[_0x5f50c2(0xe8)](),this[_0x5f50c2(0x11a)]=new _0x33ac91(),this[_0x5f50c2(0x112)]=new _0x3cd46d(),this[_0x5f50c2(0xdd)]=this[_0x5f50c2(0xea)]([this[_0x5f50c2(0xe2)],this[_0x5f50c2(0xe2)][_0x5f50c2(0x110)],this[_0x5f50c2(0xe5)],this[_0x5f50c2(0xf8)]]),this[_0x5f50c2(0xf3)]=new _0x1a8b95({'focusables':this[_0x5f50c2(0xdd)],'focusTracker':this[_0x5f50c2(0x11a)],'keystrokeHandler':this[_0x5f50c2(0x112)],'actions':{'focusPrevious':_0x5f50c2(0x101),'focusNext':_0x5f50c2(0xda)}}),this[_0x5f50c2(0xf3)][_0x5f50c2(0xf2)](this[_0x5f50c2(0xf8)][_0x5f50c2(0xf3)]),this[_0x5f50c2(0xf8)][_0x5f50c2(0xdb)][_0x5f50c2(0x10b)][_0x5f50c2(0xee)](_0x5f50c2(0xfe))['to'](this,_0x5f50c2(0x128));const _0x1f3377=this[_0x5f50c2(0xdf)];this[_0x5f50c2(0x124)]({'tag':_0x5f50c2(0x12b),'attributes':{'class':['ck',_0x5f50c2(0xde),_0x4d4484],'tabindex':'-1'},'children':[{'tag':_0x5f50c2(0x12b),'attributes':{'class':['ck',_0x5f50c2(0x123)]},'children':[{'tag':_0x5f50c2(0x12b),'attributes':{'class':[_0x1f3377['if'](_0x5f50c2(0xf6),_0x5f50c2(0x10e),_0x4d4389=>!_0x4d4389)]},'children':[this[_0x5f50c2(0x102)]]},this[_0x5f50c2(0xe2)],this[_0x5f50c2(0xe5)],this[_0x5f50c2(0xf8)]]}]});}[_0x258c13(0x120)](){const _0x5cc483=_0x258c13;super[_0x5cc483(0x120)](),this[_0x5cc483(0x11a)][_0x5cc483(0x11c)](this[_0x5cc483(0xe2)][_0x5cc483(0x100)]),this[_0x5cc483(0x11a)][_0x5cc483(0x11c)](this[_0x5cc483(0xe2)][_0x5cc483(0x110)][_0x5cc483(0x100)]),this[_0x5cc483(0x11a)][_0x5cc483(0x11c)](this[_0x5cc483(0xe5)][_0x5cc483(0x100)]),this[_0x5cc483(0x11a)][_0x5cc483(0x11c)](this[_0x5cc483(0xf8)][_0x5cc483(0x100)]),this[_0x5cc483(0x112)][_0x5cc483(0xfc)](this[_0x5cc483(0x100)]);}[_0x258c13(0x121)](_0x3b802a=0x1){const _0xab3157=_0x258c13;-0x1===_0x3b802a?this[_0xab3157(0xf3)][_0xab3157(0xf0)]():this[_0xab3157(0xf3)][_0xab3157(0xfd)]();}[_0x258c13(0xf7)](){const _0x43e67c=_0x258c13;this[_0x43e67c(0x128)]='',this[_0x43e67c(0xfe)]='',this[_0x43e67c(0xf6)]=!0x1,this[_0x43e67c(0xf8)][_0x43e67c(0xf7)](),this[_0x43e67c(0xe2)][_0x43e67c(0x117)]=!0x1,this[_0x43e67c(0xe5)][_0x43e67c(0x117)]=!0x1;}[_0x258c13(0xe8)](){const _0x471a82=_0x258c13,_0x408c24=this[_0x471a82(0xf4)],_0x5cb2d1=new _0x14069d(_0x408c24,{'queryView':{'label':_0x4cfe34(_0x408c24,_0x471a82(0x11b)),'creator':_0x1fea04,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x4cfe34(_0x408c24,_0x471a82(0xdc)),'secondary':_0x4cfe34(_0x408c24,_0x471a82(0x113))}}},'filteredView':this[_0x471a82(0xec)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x5cb2d1[_0x471a82(0xee)](_0x471a82(0xf9))['to'](this,_0x471a82(0xf9),this,_0x471a82(0x125),(_0x18ed78,_0x1f068c)=>_0x18ed78&&!_0x1f068c),this[_0x471a82(0xfc)](_0x5cb2d1,_0x471a82(0x107),(_0x3eabae,_0x6af0a2)=>{const _0x565e60=_0x471a82;this[_0x565e60(0x128)]=_0x6af0a2;const _0x16c121=_0x2438f0(_0x6af0a2);this[_0x565e60(0x115)](_0x565e60(0xd6),_0x16c121),_0x6af0a2[_0x565e60(0x126)]()&&this[_0x565e60(0xe1)][_0x565e60(0x11c)]({'prompt':_0x16c121},0x0);},{'priority':_0x471a82(0x129)}),_0x5cb2d1;}[_0x258c13(0xec)](){const _0xed95b8=_0x258c13,_0x4634dd=new _0x47db0f(this[_0xed95b8(0xf4)]);return _0x4634dd[_0xed95b8(0xe3)][_0xed95b8(0x103)][_0xed95b8(0x111)](this[_0xed95b8(0xe1)])['as'](_0x5d10fc),_0x4634dd['on'](_0xed95b8(0x11e),()=>{const _0x4ed7a7=_0xed95b8;this[_0x4ed7a7(0xe1)][_0x4ed7a7(0x10f)](),this[_0x4ed7a7(0xf8)][_0x4ed7a7(0xf1)](''),this[_0x4ed7a7(0xf8)][_0x4ed7a7(0x121)]();}),_0x4634dd;}[_0x258c13(0xeb)](){const _0x130720=_0x258c13,_0x4f5c68=new _0x3dc68a(this[_0x130720(0xf4)]);return _0x4f5c68[_0x130720(0x10d)][_0x130720(0xee)](_0x130720(0xf9))['to'](this,_0x130720(0xf9),this,_0x130720(0x125),this,_0x130720(0xfe),(_0xdf26d8,_0x2bdab5,_0x5dfec9)=>_0xdf26d8&&!_0x2bdab5&&!!_0x5dfec9),_0x4f5c68[_0x130720(0x10d)][_0x130720(0xd9)](_0x130720(0xf5))['to'](this,_0x130720(0xef)),_0x4f5c68[_0x130720(0x104)][_0x130720(0xee)](_0x130720(0xf9))['to'](this,_0x130720(0xf9),this,_0x130720(0x125),this,_0x130720(0xfe),(_0x1cab7e,_0x4b1c44,_0x5f9e06)=>_0x1cab7e&&!_0x4b1c44&&!!_0x5f9e06),_0x4f5c68[_0x130720(0x104)][_0x130720(0xd9)](_0x130720(0xf5))['to'](this,_0x130720(0xd7)),_0x4f5c68[_0x130720(0xe6)][_0x130720(0xee)](_0x130720(0xf9))['to'](this,_0x130720(0xf9),this,_0x130720(0x125),(_0x2261c5,_0x20eabc)=>_0x2261c5&&!_0x20eabc),_0x4f5c68[_0x130720(0xe6)][_0x130720(0xd9)](_0x130720(0xf5))['to'](this,_0x130720(0x118)),_0x4f5c68[_0x130720(0xe0)][_0x130720(0xee)](_0x130720(0xf9))['to'](this,_0x130720(0x125)),_0x4f5c68[_0x130720(0xe0)][_0x130720(0xd9)](_0x130720(0xf5))['to'](this,_0x130720(0x122)),_0x4f5c68;}[_0x258c13(0x114)](){const _0x500ab2=_0x258c13;this[_0x500ab2(0xfe)]='',this[_0x500ab2(0xf6)]=!0x1,this[_0x500ab2(0x125)]=!0x0,this[_0x500ab2(0xe2)][_0x500ab2(0x117)]=!0x0,this[_0x500ab2(0xe5)][_0x500ab2(0x117)]=!0x0,this[_0x500ab2(0xe2)][_0x500ab2(0x121)]();}[_0x258c13(0xff)](){const _0xde9d16=_0x258c13,_0x2bbca0=this[_0xde9d16(0xf4)];this[_0xde9d16(0x125)]=!0x1,this[_0xde9d16(0x128)]='',this[_0xde9d16(0xf8)][_0xde9d16(0xf7)](),this[_0xde9d16(0xfe)]&&(this[_0xde9d16(0xf8)][_0xde9d16(0xdb)][_0xde9d16(0x106)]=_0x4cfe34(_0x2bbca0,_0xde9d16(0x127)));}[_0x258c13(0xe9)](_0x5e818a){const _0x4306d9=_0x258c13,_0x74299f=this[_0x4306d9(0xf4)];this[_0x4306d9(0xff)](),this[_0x4306d9(0xf6)]=!0x0,this[_0x4306d9(0x102)][_0x4306d9(0x11d)]=_0x5e818a||_0x4cfe34(_0x74299f,_0x4306d9(0xd8)),this[_0x4306d9(0xfe)]||(this[_0x4306d9(0xe2)][_0x4306d9(0x117)]=!0x1);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x43bfc3,_0x2fe6d7){const _0x432871=_0x1eae,_0xe7d9e5=_0x43bfc3();while(!![]){try{const _0x217a68=parseInt(_0x432871(0xa3))/0x1*(parseInt(_0x432871(0xa0))/0x2)+-parseInt(_0x432871(0x93))/0x3*(-parseInt(_0x432871(0xa1))/0x4)+-parseInt(_0x432871(0x9f))/0x5*(parseInt(_0x432871(0x9a))/0x6)+-parseInt(_0x432871(0x9b))/0x7+parseInt(_0x432871(0xa4))/0x8+-parseInt(_0x432871(0xa2))/0x9*(-parseInt(_0x432871(0x98))/0xa)+-parseInt(_0x432871(0x9d))/0xb*(parseInt(_0x432871(0x9e))/0xc);if(_0x217a68===_0x2fe6d7)break;else _0xe7d9e5['push'](_0xe7d9e5['shift']());}catch(_0x18637d){_0xe7d9e5['push'](_0xe7d9e5['shift']());}}}(_0x32df,0xd7ee8));function _0x32df(){const _0x4baf74=['fire','1818597enZwdL','add','prompt','children','execute','130RZdYWQ','set','646410BJYPjh','12253262yBckas','locale','297rDIxjr','482112vQEajU','25ELWDeM','4438pRMiVa','8BsfIYv','730647AceBDh','677BAadyK','3906472GgYvgr'];_0x32df=function(){return _0x4baf74;};return _0x32df();}import{ListItemView as _0x2c3aa4,ButtonView as _0x2e95b9,ButtonLabelView as _0x97fdb7}from'ckeditor5/src/ui.js';import{unescape as _0x5df2c5}from'lodash-es';function _0x1eae(_0x431613,_0x31ab9a){const _0x32dfa9=_0x32df();return _0x1eae=function(_0x1eae43,_0x13cd60){_0x1eae43=_0x1eae43-0x93;let _0x54cb31=_0x32dfa9[_0x1eae43];return _0x54cb31;},_0x1eae(_0x431613,_0x31ab9a);}export default class hs extends _0x2c3aa4{constructor(_0x5a8f44){const _0x6ebc0c=_0x1eae;super();const _0x1bf67c=new _0x97fdb7(),_0x35213b=new _0x2e95b9(this[_0x6ebc0c(0x9c)],_0x1bf67c);this[_0x6ebc0c(0x96)][_0x6ebc0c(0x94)](_0x35213b),_0x35213b[_0x6ebc0c(0x99)]({'label':_0x5a8f44[_0x6ebc0c(0x95)],'withText':!0x0}),_0x35213b['on'](_0x6ebc0c(0x97),()=>{const _0x17bd01=_0x6ebc0c;this[_0x17bd01(0xa5)](_0x17bd01(0x97),{'value':_0x5df2c5(_0x5a8f44[_0x17bd01(0x95)])});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x4472(){const _0x266078=['138vEqLlu','Prompt\x20history','5qtezgN','execute','historyGroupView','set','8396zZQDnx','290RuNJUs','663486CzZqjj','fire','length','locale','163341JJnopT','filter','_createClearHistoryButton','Clear','add','clearHistory','56224VNlfAQ','label','delegate','items','19120pjKmLu','360mPpglN','737694YCOIUq','clearHistoryButton','10066562KTmYuj','children'];_0x4472=function(){return _0x266078;};return _0x4472();}const _0x1c29d3=_0x509d;(function(_0x44d12c,_0x57e20c){const _0x3daa4a=_0x509d,_0x1ca081=_0x44d12c();while(!![]){try{const _0x127c3e=parseInt(_0x3daa4a(0xb3))/0x1+parseInt(_0x3daa4a(0x99))/0x2+-parseInt(_0x3daa4a(0x9d))/0x3*(parseInt(_0x3daa4a(0xa3))/0x4)+parseInt(_0x3daa4a(0x9f))/0x5*(parseInt(_0x3daa4a(0xa5))/0x6)+parseInt(_0x3daa4a(0xaf))/0x7*(parseInt(_0x3daa4a(0x98))/0x8)+-parseInt(_0x3daa4a(0xa9))/0x9*(-parseInt(_0x3daa4a(0xa4))/0xa)+-parseInt(_0x3daa4a(0x9b))/0xb;if(_0x127c3e===_0x57e20c)break;else _0x1ca081['push'](_0x1ca081['shift']());}catch(_0x38ec7f){_0x1ca081['push'](_0x1ca081['shift']());}}}(_0x4472,0x5b755));function _0x509d(_0x491996,_0x175e7a){const _0x44723d=_0x4472();return _0x509d=function(_0x509d3b,_0x20f290){_0x509d3b=_0x509d3b-0x98;let _0x580704=_0x44723d[_0x509d3b];return _0x580704;},_0x509d(_0x491996,_0x175e7a);}import{ListView as _0xf61b32,ListItemGroupView as _0x1958a7,ButtonView as _0x3f6081}from'ckeditor5/src/ui.js';import{getTranslation as _0x12d67f}from'../../utils/common-translations.js';export default class rs extends _0xf61b32{constructor(_0x1638b7){const _0x7e7155=_0x509d;super(_0x1638b7),this[_0x7e7155(0x9a)]=this[_0x7e7155(0xab)](),this[_0x7e7155(0xa1)]=new _0x1958a7(),this[_0x7e7155(0xa1)][_0x7e7155(0x9c)][_0x7e7155(0xad)](this[_0x7e7155(0x9a)],0x1),this[_0x7e7155(0xa1)][_0x7e7155(0xb0)]=_0x12d67f(_0x1638b7,_0x7e7155(0x9e)),this[_0x7e7155(0xa1)][_0x7e7155(0xb2)][_0x7e7155(0xb1)](_0x7e7155(0xa0))['to'](this),this[_0x7e7155(0xb2)][_0x7e7155(0xad)](this[_0x7e7155(0xa1)]);}[_0x1c29d3(0xaa)](){const _0x2e50a9=_0x1c29d3;let _0x536957=0x0;for(const _0x2b0a1e of this[_0x2e50a9(0xb2)])_0x536957+=_0x2b0a1e[_0x2e50a9(0xb2)][_0x2e50a9(0xa7)];return{'resultsCount':_0x536957,'totalItemsCount':_0x536957};}[_0x1c29d3(0xab)](){const _0x56e792=_0x1c29d3,_0x17d69d=this[_0x56e792(0xa8)],_0x29930c=new _0x3f6081(this[_0x56e792(0xa8)]);return _0x29930c[_0x56e792(0xa2)]({'label':'('+_0x12d67f(_0x17d69d,_0x56e792(0xac))+')','withText':!0x0}),_0x29930c['on'](_0x56e792(0xa0),()=>this[_0x56e792(0xa6)](_0x56e792(0xae))),_0x29930c;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5de399=_0x40e6;(function(_0x408886,_0x40cf8a){const _0x59ccb2=_0x40e6,_0x2d5d63=_0x408886();while(!![]){try{const _0x158d27=-parseInt(_0x59ccb2(0xc2))/0x1*(-parseInt(_0x59ccb2(0xb6))/0x2)+-parseInt(_0x59ccb2(0xc3))/0x3*(parseInt(_0x59ccb2(0xc6))/0x4)+-parseInt(_0x59ccb2(0xbf))/0x5*(-parseInt(_0x59ccb2(0xc5))/0x6)+-parseInt(_0x59ccb2(0xaf))/0x7*(parseInt(_0x59ccb2(0xbb))/0x8)+-parseInt(_0x59ccb2(0xb7))/0x9+-parseInt(_0x59ccb2(0xb9))/0xa+-parseInt(_0x59ccb2(0xc8))/0xb*(-parseInt(_0x59ccb2(0xae))/0xc);if(_0x158d27===_0x40cf8a)break;else _0x2d5d63['push'](_0x2d5d63['shift']());}catch(_0x5cd888){_0x2d5d63['push'](_0x2d5d63['shift']());}}}(_0x5189,0xa1028));function _0x5189(){const _0x1c3c57=['setItem','11PexOmh','parse','21307116ZpKKUV','21VXKnkF','addMany','stringify','map','last','_saveToSessionStorage','toLowerCase','5034wSmlqo','8089542uBcPSh','CKEditor/AIFormView/PromptHistory','10755970fZqWlB','trim','1815416BYmfVm','_loadFromSessionStorage','length','add','5TzZoFv','prompt','getItem','424uqOfrd','3RjQiYy','remove','3581958KLUcVD','500328TMBrhv'];_0x5189=function(){return _0x1c3c57;};return _0x5189();}import{Collection as _0xc22c6c}from'ckeditor5/src/utils.js';const cs=_0x5de399(0xb8);function _0x40e6(_0x23e65b,_0xf72d09){const _0x5189d1=_0x5189();return _0x40e6=function(_0x40e63c,_0x1e7d60){_0x40e63c=_0x40e63c-0xad;let _0x252d32=_0x5189d1[_0x40e63c];return _0x252d32;},_0x40e6(_0x23e65b,_0xf72d09);}export default class os extends _0xc22c6c{constructor(){const _0x2bba05=_0x5de399;super(),this[_0x2bba05(0xbc)](),this['on'](_0x2bba05(0xbe),(_0x54c5e5,_0x401734)=>{const _0x211529=_0x2bba05,_0x2544b4=Ss(_0x401734[_0x211529(0xc0)]);for(const _0x573edf of this)if(_0x573edf!=_0x401734&&Ss(_0x573edf[_0x211529(0xc0)])===_0x2544b4){this[_0x211529(0xc4)](_0x573edf);break;}this[_0x211529(0xbd)]>0x14&&this[_0x211529(0xc4)](this[_0x211529(0xb3)]),this[_0x211529(0xb4)]();}),this['on'](_0x2bba05(0xc4),()=>{const _0x45144e=_0x2bba05;this[_0x45144e(0xb4)]();});}[_0x5de399(0xbc)](){const _0x323127=_0x5de399,_0x4965f5=sessionStorage[_0x323127(0xc1)](cs)||'[]';this[_0x323127(0xb0)](JSON[_0x323127(0xad)](_0x4965f5));}[_0x5de399(0xb4)](){const _0x2d541e=_0x5de399;sessionStorage[_0x2d541e(0xc7)](cs,JSON[_0x2d541e(0xb1)](this[_0x2d541e(0xb2)](_0x42de67=>_0x42de67)));}}function Ss(_0xc3bd80){const _0x3a9c82=_0x5de399;return _0xc3bd80[_0x3a9c82(0xb5)]()[_0x3a9c82(0xba)]();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x519e(){const _0x11c06f=['getSelectedBlocks','_commandDefinitions','add','from','set','430dfUBNZ','getFirstRange','change:isEnabled','hasContent','plugins','model','getItems','selection','showUI','enabledCommandsIds','5212584qyPdFv','1734495mFJtUy','ai.aiAssistant.disabledElements','custom','isEnabled','values','includes','_hasContext','change:_hasContext','isCollapsed','execute','557184qrKySL','getRanges','refresh','isEmpty','requiresContent','config','length','name','editor','document','1616604FkCxFs','1029954OCFenG','get','75861IXnYEx','element','29828iCjXyV'];_0x519e=function(){return _0x11c06f;};return _0x519e();}const _0x479504=_0x1815;(function(_0xa5f710,_0x155eaa){const _0x563655=_0x1815,_0x28e4df=_0xa5f710();while(!![]){try{const _0x570421=-parseInt(_0x563655(0x12f))/0x1+-parseInt(_0x563655(0x156))/0x2+parseInt(_0x563655(0x157))/0x3+-parseInt(_0x563655(0x131))/0x4*(-parseInt(_0x563655(0x137))/0x5)+-parseInt(_0x563655(0x14c))/0x6+-parseInt(_0x563655(0x142))/0x7+parseInt(_0x563655(0x141))/0x8;if(_0x570421===_0x155eaa)break;else _0x28e4df['push'](_0x28e4df['shift']());}catch(_0x5c9782){_0x28e4df['push'](_0x28e4df['shift']());}}}(_0x519e,0x646f5));import{Command as _0x5ec934}from'ckeditor5/src/core.js';import _0x3efee0 from'../aiassistantui.js';function _0x1815(_0x4b687a,_0x4b311f){const _0x519e12=_0x519e();return _0x1815=function(_0x181561,_0x3d257f){_0x181561=_0x181561-0x12f;let _0x45773b=_0x519e12[_0x181561];return _0x45773b;},_0x1815(_0x4b687a,_0x4b311f);}export default class C extends _0x5ec934{constructor(_0x984bd5,_0x39dacd){const _0x154f00=_0x1815;super(_0x984bd5),this[_0x154f00(0x133)]=_0x39dacd,this[_0x154f00(0x136)](_0x154f00(0x140),[]),this['on'](_0x154f00(0x149),(_0x2db687,_0xc46f28,_0x211850)=>{const _0x10721d=_0x154f00;this[_0x10721d(0x145)]&&(this[_0x10721d(0x140)]=F(this[_0x10721d(0x133)],_0x211850));}),this[_0x154f00(0x136)](_0x154f00(0x148),!0x1),this['on'](_0x154f00(0x139),(_0x1781c1,_0x22cf07,_0x558df3)=>{const _0x5c236c=_0x154f00;this[_0x5c236c(0x140)]=_0x558df3?F(this[_0x5c236c(0x133)],this[_0x5c236c(0x148)]):[];});}[_0x479504(0x14e)](){const _0x140148=_0x479504,_0xacae25=this[_0x140148(0x154)][_0x140148(0x13c)];this[_0x140148(0x148)]=function(_0x4486fe){const _0x40723=_0x140148,_0x5ef4ec=_0x4486fe[_0x40723(0x155)][_0x40723(0x13e)];return _0x5ef4ec[_0x40723(0x14a)]?0x0!==[..._0x5ef4ec[_0x40723(0x132)]()][_0x40723(0x152)]&&![..._0x5ef4ec[_0x40723(0x132)]()][0x0][_0x40723(0x14f)]:!!_0x4486fe[_0x40723(0x13a)](_0x5ef4ec[_0x40723(0x138)]());}(_0xacae25);const _0x3f1d84=_0xacae25[_0x140148(0x155)][_0x140148(0x13e)],_0x3fb1a3=this[_0x140148(0x154)][_0x140148(0x151)][_0x140148(0x158)](_0x140148(0x143));for(const _0x484622 of _0x3f1d84[_0x140148(0x14d)]())for(const _0x57461f of _0x484622[_0x140148(0x13d)]())if(_0x57461f['is'](_0x140148(0x130))&&_0x3fb1a3[_0x140148(0x147)](_0x57461f[_0x140148(0x153)]))return void(this[_0x140148(0x145)]=!0x1);this[_0x140148(0x145)]=!0x0;}[_0x479504(0x14b)](_0x19fc2e='',_0x981285='',_0x38e9f9=_0x479504(0x144)){const _0xfffedb=_0x479504;this[_0xfffedb(0x154)][_0xfffedb(0x13b)][_0xfffedb(0x158)](_0x3efee0)[_0xfffedb(0x13f)](_0x19fc2e,_0x981285,_0x38e9f9);}}function F(_0xcd6f24,_0x3432f4){const _0x336f76=_0x479504,_0x4a345b=new Set();for(const _0x21237b of _0xcd6f24[_0x336f76(0x146)]())(_0x3432f4||!0x1===_0x21237b[_0x336f76(0x150)])&&_0x4a345b[_0x336f76(0x134)](_0x21237b['id']);return Array[_0x336f76(0x135)](_0x4a345b);}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(
|
|
23
|
+
export function getTranslation(_0x25b53e,_0x30d3d0,_0xc79c86){const t=_0x25b53e['t'];switch(_0x30d3d0){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',_0xc79c86);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0xc79c86);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'},_0xc79c86);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 _0x30d3d0;}}
|