@ckeditor/ckeditor5-ai 0.0.0-nightly-20240423.0 → 0.0.0-nightly-20240424.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/dist/index-content.css +4 -0
- package/dist/index-editor.css +267 -0
- package/dist/index.css +396 -0
- package/dist/index.js +23 -0
- package/dist/translations/af.d.ts +8 -0
- package/dist/translations/af.js +23 -0
- package/dist/translations/ar.d.ts +8 -0
- package/dist/translations/ar.js +23 -0
- package/dist/translations/bg.d.ts +8 -0
- package/dist/translations/bg.js +23 -0
- package/dist/translations/bn.d.ts +8 -0
- package/dist/translations/bn.js +23 -0
- package/dist/translations/bs.d.ts +8 -0
- package/dist/translations/bs.js +23 -0
- package/dist/translations/ca.d.ts +8 -0
- package/dist/translations/ca.js +23 -0
- package/dist/translations/cs.d.ts +8 -0
- package/dist/translations/cs.js +23 -0
- package/dist/translations/da.d.ts +8 -0
- package/dist/translations/da.js +23 -0
- package/dist/translations/de-ch.d.ts +8 -0
- package/dist/translations/de-ch.js +23 -0
- package/dist/translations/de.d.ts +8 -0
- package/dist/translations/de.js +23 -0
- package/dist/translations/el.d.ts +8 -0
- package/dist/translations/el.js +23 -0
- package/dist/translations/en-au.d.ts +8 -0
- package/dist/translations/en-au.js +23 -0
- package/dist/translations/en.d.ts +8 -0
- package/dist/translations/en.js +23 -0
- package/dist/translations/es-co.d.ts +8 -0
- package/dist/translations/es-co.js +23 -0
- package/dist/translations/es.d.ts +8 -0
- package/dist/translations/es.js +23 -0
- package/dist/translations/et.d.ts +8 -0
- package/dist/translations/et.js +23 -0
- package/dist/translations/fa.d.ts +8 -0
- package/dist/translations/fa.js +23 -0
- package/dist/translations/fi.d.ts +8 -0
- package/dist/translations/fi.js +23 -0
- package/dist/translations/fr.d.ts +8 -0
- package/dist/translations/fr.js +23 -0
- package/dist/translations/gl.d.ts +8 -0
- package/dist/translations/gl.js +23 -0
- package/dist/translations/he.d.ts +8 -0
- package/dist/translations/he.js +23 -0
- package/dist/translations/hi.d.ts +8 -0
- package/dist/translations/hi.js +23 -0
- package/dist/translations/hr.d.ts +8 -0
- package/dist/translations/hr.js +23 -0
- package/dist/translations/hu.d.ts +8 -0
- package/dist/translations/hu.js +23 -0
- package/dist/translations/id.d.ts +8 -0
- package/dist/translations/id.js +23 -0
- package/dist/translations/it.d.ts +8 -0
- package/dist/translations/it.js +23 -0
- package/dist/translations/ja.d.ts +8 -0
- package/dist/translations/ja.js +23 -0
- package/dist/translations/jv.d.ts +8 -0
- package/dist/translations/jv.js +23 -0
- package/dist/translations/ko.d.ts +8 -0
- package/dist/translations/ko.js +23 -0
- package/dist/translations/lt.d.ts +8 -0
- package/dist/translations/lt.js +23 -0
- package/dist/translations/lv.d.ts +8 -0
- package/dist/translations/lv.js +23 -0
- package/dist/translations/ms.d.ts +8 -0
- package/dist/translations/ms.js +23 -0
- package/dist/translations/nl.d.ts +8 -0
- package/dist/translations/nl.js +23 -0
- package/dist/translations/no.d.ts +8 -0
- package/dist/translations/no.js +23 -0
- package/dist/translations/pl.d.ts +8 -0
- package/dist/translations/pl.js +23 -0
- package/dist/translations/pt-br.d.ts +8 -0
- package/dist/translations/pt-br.js +23 -0
- package/dist/translations/pt.d.ts +8 -0
- package/dist/translations/pt.js +23 -0
- package/dist/translations/ro.d.ts +8 -0
- package/dist/translations/ro.js +23 -0
- package/dist/translations/ru.d.ts +8 -0
- package/dist/translations/ru.js +23 -0
- package/dist/translations/sk.d.ts +8 -0
- package/dist/translations/sk.js +23 -0
- package/dist/translations/sr-latn.d.ts +8 -0
- package/dist/translations/sr-latn.js +23 -0
- package/dist/translations/sr.d.ts +8 -0
- package/dist/translations/sr.js +23 -0
- package/dist/translations/sv.d.ts +8 -0
- package/dist/translations/sv.js +23 -0
- package/dist/translations/th.d.ts +8 -0
- package/dist/translations/th.js +23 -0
- package/dist/translations/tk.d.ts +8 -0
- package/dist/translations/tk.js +23 -0
- package/dist/translations/tr.d.ts +8 -0
- package/dist/translations/tr.js +23 -0
- package/dist/translations/ug.d.ts +8 -0
- package/dist/translations/ug.js +23 -0
- package/dist/translations/uk.d.ts +8 -0
- package/dist/translations/uk.js +23 -0
- package/dist/translations/ur.d.ts +8 -0
- package/dist/translations/ur.js +23 -0
- package/dist/translations/uz.d.ts +8 -0
- package/dist/translations/uz.js +23 -0
- package/dist/translations/vi.d.ts +8 -0
- package/dist/translations/vi.js +23 -0
- package/dist/translations/zh-cn.d.ts +8 -0
- package/dist/translations/zh-cn.js +23 -0
- package/dist/translations/zh.d.ts +8 -0
- package/dist/translations/zh.js +23 -0
- package/dist/types/adapters/aiadapter.d.ts +52 -0
- package/dist/types/adapters/aitextadapter.d.ts +150 -0
- package/dist/types/adapters/awstextadapter.d.ts +183 -0
- package/dist/types/adapters/openaitextadapter.d.ts +187 -0
- package/dist/types/aiassistant.d.ts +390 -0
- package/dist/types/aiassistantediting.d.ts +50 -0
- package/dist/types/aiassistantui.d.ts +57 -0
- package/dist/types/aiconfig.d.ts +73 -0
- package/dist/types/augmentation.d.ts +31 -0
- package/dist/types/index.d.ts +17 -0
- package/dist/types/ui/aiassistantcontroller.d.ts +113 -0
- package/dist/types/ui/dropdown/aicommandslistview.d.ts +37 -0
- package/dist/types/ui/dropdown/buttonlabelwithhighlightview.d.ts +33 -0
- package/dist/types/ui/dropdown/labelwithhighlightview.d.ts +29 -0
- package/dist/types/ui/form/aiformcontentarea.d.ts +52 -0
- package/dist/types/ui/form/aiformerrorview.d.ts +30 -0
- package/dist/types/ui/form/aiformpromptview.d.ts +50 -0
- package/dist/types/ui/form/aiformtoolbarview.d.ts +62 -0
- package/dist/types/ui/form/aiformview.d.ts +145 -0
- package/dist/types/ui/form/aihistorylistitemview.d.ts +22 -0
- package/dist/types/ui/form/aihistorylistview.d.ts +39 -0
- package/dist/types/ui/form/prompthistory.d.ts +24 -0
- package/dist/types/ui/showaiassistantcommand.d.ts +44 -0
- package/dist/types/utils/common-translations.d.ts +13 -0
- package/package.json +5 -4
- 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 +1 -1
- package/src/ui/dropdown/aicommandslistview.js +1 -1
- package/src/ui/dropdown/buttonlabelwithhighlightview.js +1 -1
- package/src/ui/dropdown/labelwithhighlightview.js +1 -1
- 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
|
-
function
|
|
23
|
+
const _0x253d5a=_0x7996;(function(_0x67710c,_0x51a205){const _0x509460=_0x7996,_0x15c3ac=_0x67710c();while(!![]){try{const _0x425cf9=parseInt(_0x509460(0x1fd))/0x1*(-parseInt(_0x509460(0x210))/0x2)+-parseInt(_0x509460(0x1c7))/0x3+parseInt(_0x509460(0x1cd))/0x4+-parseInt(_0x509460(0x1e8))/0x5+-parseInt(_0x509460(0x1e9))/0x6+parseInt(_0x509460(0x1d3))/0x7*(parseInt(_0x509460(0x1e2))/0x8)+parseInt(_0x509460(0x206))/0x9;if(_0x425cf9===_0x51a205)break;else _0x15c3ac['push'](_0x15c3ac['shift']());}catch(_0x136196){_0x15c3ac['push'](_0x15c3ac['shift']());}}}(_0x2be2,0x7999f));import{global as _0x6bed45}from'ckeditor5/src/utils.js';function _0x7996(_0x5e56f4,_0x1ffb79){const _0x2be297=_0x2be2();return _0x7996=function(_0x7996e2,_0x346424){_0x7996e2=_0x7996e2-0x1c1;let _0xe80324=_0x2be297[_0x7996e2];return _0xe80324;},_0x7996(_0x5e56f4,_0x1ffb79);}import{View as _0x5a73ba,ButtonView as _0x283c93,SpinnerView as _0x731bfd}from'ckeditor5/src/ui.js';function _0x2be2(){const _0x36c6e8=['value','body','absolute','change:value','change:isProcessing','element','text/html','createRange','removeAllRanges','.ck-ai-form__loader','16712WjsyyM','lastElementChild','ck-ai-form__copy-button-wrapper','appendLoader','ck-ai-form__content-field','clipboard','4269365RisUKa','1670676HPrPfz','ck-ai-form__content-area','appendChild','focus','<span>[</span>','set','position','createElement','copyButtonView','remove','\x20ck-ai-form__copy-button--copied','isEnabled','execCommand','ck-hidden','listenTo','ClipboardItem','innerHTML','setContent','loaderView','scrollHeight','13kiQRod','getSelection','setTemplate','Copy','isProcessing','copy','addRange','mousedown','querySelector','20473938lpsHNW','_createCopyButton','setStartAfter','smooth','check','left','class','write','-9999px','<span>]</span>','142382bRPMrM','render','ck-reset_all-excluded','AI\x20is\x20writing...','textContent','locale','bindTemplate','style','isVisible','bind','ck-ai-form__content-area-wrapper','ck-ai-form__copy-button','813228xhZTaV','_createLoader','text/plain','ck-content','div','ck-ai-form__content-area--processing','896408VmTUyl','contentFieldView','scrollTo','_copyHTMLToClipboard','ck-ai-form__loader','icon','1099goMYBy','setEndBefore','firstElementChild','wheel','execute'];_0x2be2=function(){return _0x36c6e8;};return _0x2be2();}import _0x1e69ec from'../../../theme/icons/copy.svg';import{getTranslation as _0x2c3d8f}from'../../utils/common-translations.js';import{icons as _0x1f5c1f}from'ckeditor5/src/core.js';export default class nt extends _0x5a73ba{constructor(_0x48cdc0,_0x5edf60=''){const _0x5f20c2=_0x7996;super(_0x48cdc0),this[_0x5f20c2(0x1ee)]({'value':null,'isVisible':!0x1,'isProcessing':!0x1});const _0x178dc8=this[_0x5f20c2(0x1c1)];this[_0x5f20c2(0x1ce)]=new ContentFieldView(_0x48cdc0,_0x5edf60),this[_0x5f20c2(0x1f1)]=this[_0x5f20c2(0x207)](),this[_0x5f20c2(0x1ff)]({'tag':_0x5f20c2(0x1cb),'attributes':{'class':['ck',_0x5f20c2(0x1c5),_0x178dc8['if'](_0x5f20c2(0x1c3),_0x5f20c2(0x1f6),_0x370826=>!_0x370826)],'tabindex':'-1'},'children':[{'tag':_0x5f20c2(0x1cb),'attributes':{'class':['ck',_0x5f20c2(0x1ea),_0x178dc8['if'](_0x5f20c2(0x201),_0x5f20c2(0x1cc))]},'children':[this[_0x5f20c2(0x1ce)],{'tag':_0x5f20c2(0x1cb),'attributes':{'class':['ck',_0x5f20c2(0x1e4)]},'children':[this[_0x5f20c2(0x1f1)]]}]}]});}[_0x253d5a(0x211)](){const _0x1900dd=_0x253d5a;super[_0x1900dd(0x211)](),this[_0x1900dd(0x1d8)]&&this[_0x1900dd(0x1ce)][_0x1900dd(0x1fa)](this[_0x1900dd(0x1d8)]);let _0x3e7afc=!0x1;this['on'](_0x1900dd(0x1db),(_0xdf4e45,_0x213243,_0x54a840)=>{const _0x54490f=_0x1900dd,_0x15f530=!this[_0x54490f(0x1ce)][_0x54490f(0x1dd)][_0x54490f(0x205)](_0x54490f(0x1e1));this[_0x54490f(0x1ce)][_0x54490f(0x1fa)](_0x54a840),this[_0x54490f(0x201)]&&_0x15f530&&!_0x3e7afc&&this[_0x54490f(0x1dd)][_0x54490f(0x1cf)]({'top':this[_0x54490f(0x1dd)][_0x54490f(0x1fc)],'behavior':_0x54490f(0x209)});}),this['on'](_0x1900dd(0x1dc),(_0x1022ad,_0x4bde6f,_0x3fd4aa)=>{const _0x55ef5d=_0x1900dd;_0x3e7afc=!0x1,_0x3fd4aa?(this[_0x55ef5d(0x1d8)]=null,this[_0x55ef5d(0x1ce)][_0x55ef5d(0x1e5)]()):this[_0x55ef5d(0x1d8)]||this[_0x55ef5d(0x1ce)][_0x55ef5d(0x1fa)]('');}),this[_0x1900dd(0x1f7)](this[_0x1900dd(0x1dd)],_0x1900dd(0x1d6),()=>{_0x3e7afc=!0x0;}),this[_0x1900dd(0x1f7)](this[_0x1900dd(0x1dd)],_0x1900dd(0x204),()=>{_0x3e7afc=!0x0;});}[_0x253d5a(0x1ec)](){const _0x30f609=_0x253d5a;this[_0x30f609(0x1dd)][_0x30f609(0x1ec)]();}[_0x253d5a(0x207)](){const _0x4c0654=_0x253d5a,_0x3967fb=this[_0x4c0654(0x215)],_0x5459bf=new _0x283c93(this[_0x4c0654(0x215)]),_0x46e8b4=_0x4c0654(0x1c6);return _0x5459bf[_0x4c0654(0x1ee)]({'label':_0x2c3d8f(_0x3967fb,_0x4c0654(0x200)),'icon':_0x1e69ec,'class':_0x46e8b4,'tooltip':!0x0}),_0x5459bf[_0x4c0654(0x1c4)](_0x4c0654(0x1c3))['to'](this,_0x4c0654(0x1d8),_0x1a6abb=>!!_0x1a6abb),_0x5459bf[_0x4c0654(0x1c4)](_0x4c0654(0x1f4))['to'](this,_0x4c0654(0x201),_0x5a21b8=>!_0x5a21b8),_0x5459bf['on'](_0x4c0654(0x1d7),()=>{const _0x4e01ef=_0x4c0654;this[_0x4e01ef(0x1d0)](this[_0x4e01ef(0x1ce)][_0x4e01ef(0x1dd)]),_0x5459bf[_0x4e01ef(0x1d2)]=_0x1f5c1f[_0x4e01ef(0x20a)],_0x5459bf[_0x4e01ef(0x20c)]=_0x46e8b4+_0x4e01ef(0x1f3),this[_0x4e01ef(0x1ec)](),setTimeout(()=>{const _0x599ffb=_0x4e01ef;_0x5459bf[_0x599ffb(0x1d2)]=_0x1e69ec,_0x5459bf[_0x599ffb(0x20c)]=_0x46e8b4;},0x3e8);}),_0x5459bf;}[_0x253d5a(0x1d0)](_0x42d821){const _0x5b9e96=_0x253d5a,{window:_0x1c447a,document:_0x4359e4}=_0x6bed45;if(_0x1c447a[_0x5b9e96(0x1f8)]){const {Blob:_0x39856f,ClipboardItem:_0x473beb}=_0x1c447a,_0x317d90=[new _0x473beb({'text/html':new _0x39856f([_0x42d821[_0x5b9e96(0x1f9)]],{'type':_0x5b9e96(0x1de)}),'text/plain':new _0x39856f([_0x42d821[_0x5b9e96(0x214)]||''],{'type':_0x5b9e96(0x1c9)})})];navigator[_0x5b9e96(0x1e7)][_0x5b9e96(0x20d)](_0x317d90);}else{const _0x110a10=_0x4359e4[_0x5b9e96(0x1f0)](_0x5b9e96(0x1cb));_0x110a10[_0x5b9e96(0x1c2)][_0x5b9e96(0x1ef)]=_0x5b9e96(0x1da),_0x110a10[_0x5b9e96(0x1c2)][_0x5b9e96(0x20b)]=_0x5b9e96(0x20e),_0x110a10[_0x5b9e96(0x1f9)]=_0x5b9e96(0x1ed)+_0x42d821[_0x5b9e96(0x1f9)]+_0x5b9e96(0x20f),_0x4359e4[_0x5b9e96(0x1d9)][_0x5b9e96(0x1eb)](_0x110a10);const _0x2e4a6f=_0x4359e4[_0x5b9e96(0x1df)]();_0x2e4a6f[_0x5b9e96(0x208)](_0x110a10[_0x5b9e96(0x1d5)]),_0x2e4a6f[_0x5b9e96(0x1d4)](_0x110a10[_0x5b9e96(0x1e3)]);const _0x3c2da0=_0x1c447a[_0x5b9e96(0x1fe)]();_0x3c2da0[_0x5b9e96(0x1e0)](),_0x3c2da0[_0x5b9e96(0x203)](_0x2e4a6f),_0x4359e4[_0x5b9e96(0x1f5)](_0x5b9e96(0x202)),_0x110a10[_0x5b9e96(0x1f2)]();}}}export class ContentFieldView extends _0x5a73ba{constructor(_0x49f3af,_0x239efa=''){const _0x78162d=_0x253d5a;super(_0x49f3af),this[_0x78162d(0x1fb)]=this[_0x78162d(0x1c8)](),this[_0x78162d(0x1ff)]({'tag':_0x78162d(0x1cb),'attributes':{'class':['ck',_0x78162d(0x1ca),_0x239efa,_0x78162d(0x212),_0x78162d(0x1e6)]}});}[_0x253d5a(0x1fa)](_0x24b8ba){const _0x44a42a=_0x253d5a;this[_0x44a42a(0x1dd)][_0x44a42a(0x1f9)]=_0x24b8ba;}[_0x253d5a(0x1e5)](){const _0x3743d9=_0x253d5a;this[_0x3743d9(0x1dd)][_0x3743d9(0x1eb)](this[_0x3743d9(0x1fb)][_0x3743d9(0x1dd)]);}[_0x253d5a(0x1c8)](){const _0x41ee9=_0x253d5a,_0x435bbe=new _0x5a73ba(),_0x1c2ec2=this[_0x41ee9(0x215)],_0x11eedb=new _0x731bfd();return _0x11eedb[_0x41ee9(0x1c3)]=!0x0,_0x435bbe[_0x41ee9(0x1ff)]({'tag':_0x41ee9(0x1cb),'attributes':{'class':['ck',_0x41ee9(0x1d1)]},'children':[_0x11eedb,{'text':_0x2c3d8f(_0x1c2ec2,_0x41ee9(0x213))}]}),_0x435bbe[_0x41ee9(0x211)](),_0x435bbe;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x4198b6,_0x5ae79d){const _0x5912f8=_0x3099,_0x49d375=_0x4198b6();while(!![]){try{const _0x2db74c=-parseInt(_0x5912f8(0x1b4))/0x1+-parseInt(_0x5912f8(0x1b1))/0x2*(parseInt(_0x5912f8(0x1af))/0x3)+parseInt(_0x5912f8(0x1b7))/0x4+-parseInt(_0x5912f8(0x1ae))/0x5+-parseInt(_0x5912f8(0x1b3))/0x6+parseInt(_0x5912f8(0x1b5))/0x7+parseInt(_0x5912f8(0x1bb))/0x8;if(_0x2db74c===_0x5ae79d)break;else _0x49d375['push'](_0x49d375['shift']());}catch(_0x9cd0dc){_0x49d375['push'](_0x49d375['shift']());}}}(_0x2aee,0x5f958));function _0x3099(_0x411bca,_0x29fdce){const _0x2aee4a=_0x2aee();return _0x3099=function(_0x3099a6,_0x41e2e3){_0x3099a6=_0x3099a6-0x1ad;let _0x14eceb=_0x2aee4a[_0x3099a6];return _0x14eceb;},_0x3099(_0x411bca,_0x29fdce);}import{View as _0x150e16,IconView as _0x372711}from'ckeditor5/src/ui.js';import _0x3f02d8 from'../../../theme/icons/error.svg';function _0x2aee(){const _0x2dd87a=['1782067WzMjwb','bindTemplate','2318012QagnJv','ck-ai-form__error','content','set','8285832vzaYZQ','text','1666690nxhMHN','12171WliSZx','setTemplate','40pEMzQh','div','2931294SpliMO','575274UrmRHU'];_0x2aee=function(){return _0x2dd87a;};return _0x2aee();}export default class mt extends _0x150e16{constructor(_0x228e90,_0x40f56d=''){const _0x133d3a=_0x3099;super(_0x228e90);const _0x41cfd9=new _0x372711(),_0x4600c9=this[_0x133d3a(0x1b6)];this[_0x133d3a(0x1ba)](_0x133d3a(0x1ad),_0x40f56d),_0x41cfd9[_0x133d3a(0x1b9)]=_0x3f02d8,this[_0x133d3a(0x1b0)]({'tag':_0x133d3a(0x1b2),'attributes':{'class':['ck',_0x133d3a(0x1b8)]},'children':[_0x41cfd9,{'text':_0x4600c9['to'](_0x133d3a(0x1ad))}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x3083(){const _0x347954=['5507568PqhvTd','33LAwTEw','element','requestAnimationFrame','1693712JGcTGD','left','fieldWrapperChildren','Submit','window','focusFirst','_createShowHistoryButton','ck-ai-form__submit','_createSubmitButton','history','3889470FxezGb','History','focusableChildren','focusLast','18uoeEzW','focusCycler','fieldView','fire','locale','filteredView','children','7818846qRLYcX','maxRows','add','update','excludeScrollbarsAndBorders','isEmpty','isVisible','697264cPmsCD','rtl','queryView','ck-ai-form__toggle-history','target','right','set','isOn','3350QzGdry','minRows','139FEIkAS','focus','3prmMmL','enter','keystrokes','execute','isEnabled','value','resultsView','width','uiLanguageDirection','bind','submitButtonView','showHistoryButtonView','style','submit','render','1523080WQlzec'];_0x3083=function(){return _0x347954;};return _0x3083();}function _0x40b8(_0x5c3065,_0x190280){const _0x3083d8=_0x3083();return _0x40b8=function(_0x40b8ff,_0x4f3f1c){_0x40b8ff=_0x40b8ff-0x122;let _0x31dd38=_0x3083d8[_0x40b8ff];return _0x31dd38;},_0x40b8(_0x5c3065,_0x190280);}const _0x5916a3=_0x40b8;(function(_0x3694f5,_0x3aa90d){const _0x45aa0d=_0x40b8,_0x5cf891=_0x3694f5();while(!![]){try{const _0x5bcaec=parseInt(_0x45aa0d(0x13d))/0x1*(parseInt(_0x45aa0d(0x13b))/0x2)+parseInt(_0x45aa0d(0x13f))/0x3*(parseInt(_0x45aa0d(0x133))/0x4)+-parseInt(_0x45aa0d(0x14e))/0x5+parseInt(_0x45aa0d(0x14f))/0x6+-parseInt(_0x45aa0d(0x12c))/0x7+parseInt(_0x45aa0d(0x153))/0x8*(-parseInt(_0x45aa0d(0x125))/0x9)+-parseInt(_0x45aa0d(0x15d))/0xa*(-parseInt(_0x45aa0d(0x150))/0xb);if(_0x5bcaec===_0x3aa90d)break;else _0x5cf891['push'](_0x5cf891['shift']());}catch(_0x112e66){_0x5cf891['push'](_0x5cf891['shift']());}}}(_0x3083,0x9dee8));import{Rect as _0x27f7f9,global as _0x4b3e3a,isVisible as _0x13ca62}from'ckeditor5/src/utils.js';import{AutocompleteView as _0x4bd3fb,ButtonView as _0x1e974f}from'ckeditor5/src/ui.js';import{icons as _0x58785f}from'ckeditor5/src/core.js';import{getTranslation as _0x567fd8}from'../../utils/common-translations.js';import _0xaf3c40 from'../../../theme/icons/submit.svg';export default class pt extends _0x4bd3fb{constructor(_0x2a307d,_0x37afc1){const _0x1ec54c=_0x40b8;super(_0x2a307d,_0x37afc1),this[_0x1ec54c(0x135)][_0x1ec54c(0x127)][_0x1ec54c(0x13c)]=0x1,this[_0x1ec54c(0x135)][_0x1ec54c(0x127)][_0x1ec54c(0x12d)]=0x3,this[_0x1ec54c(0x149)]=this[_0x1ec54c(0x15b)](),this[_0x1ec54c(0x14a)]=this[_0x1ec54c(0x159)](),this[_0x1ec54c(0x123)][_0x1ec54c(0x12e)](this[_0x1ec54c(0x14a)],0x1),this[_0x1ec54c(0x123)][_0x1ec54c(0x12e)](this[_0x1ec54c(0x149)]);}[_0x5916a3(0x14d)](){const _0x2e2d1b=_0x5916a3;super[_0x2e2d1b(0x14d)](),this[_0x2e2d1b(0x135)][_0x2e2d1b(0x155)][_0x2e2d1b(0x12e)](this[_0x2e2d1b(0x14a)]),this[_0x2e2d1b(0x12b)][_0x2e2d1b(0x12e)](this[_0x2e2d1b(0x149)]),this[_0x2e2d1b(0x141)][_0x2e2d1b(0x139)](_0x2e2d1b(0x140),(_0x514604,_0x5e02b4)=>{const _0x151110=_0x2e2d1b;_0x514604[_0x151110(0x137)]==this[_0x151110(0x135)][_0x151110(0x127)][_0x151110(0x151)]&&(this[_0x151110(0x14c)](),_0x5e02b4());});}[_0x5916a3(0x15b)](){const _0x2ef663=_0x5916a3,_0x2b721b=new _0x1e974f(this[_0x2ef663(0x129)]),_0x516620=this[_0x2ef663(0x129)];return _0x2b721b[_0x2ef663(0x139)]({'icon':_0xaf3c40,'label':_0x567fd8(_0x516620,_0x2ef663(0x156)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x2ef663(0x15a)}),_0x2b721b['on'](_0x2ef663(0x142),()=>{const _0x794851=_0x2ef663;this[_0x794851(0x14c)]();}),_0x2b721b[_0x2ef663(0x148)](_0x2ef663(0x143))['to'](this[_0x2ef663(0x135)][_0x2ef663(0x127)],_0x2ef663(0x131),this,_0x2ef663(0x143),(_0x45a30b,_0x37272a)=>!_0x45a30b&&_0x37272a),_0x2b721b;}[_0x5916a3(0x159)](){const _0x251fcb=_0x5916a3,_0xf7b434=new _0x1e974f(this[_0x251fcb(0x129)]),_0xee8b81=this[_0x251fcb(0x145)],_0x217d03=this[_0x251fcb(0x129)];_0xf7b434[_0x251fcb(0x139)]({'label':_0x567fd8(_0x217d03,_0x251fcb(0x122)),'withText':!0x1,'icon':_0x58785f[_0x251fcb(0x15c)],'tooltip':!0x0,'tooltipPosition':'sw','class':_0x251fcb(0x136)}),_0xf7b434[_0x251fcb(0x148)](_0x251fcb(0x13a))['to'](_0xee8b81,_0x251fcb(0x132)),_0xf7b434[_0x251fcb(0x148)](_0x251fcb(0x143))['to'](this,_0x251fcb(0x143)),_0xf7b434['on'](_0x251fcb(0x142),()=>{const _0x4db634=_0x251fcb;_0xee8b81[_0x4db634(0x132)]=!_0xee8b81[_0x4db634(0x132)],_0xee8b81[_0x4db634(0x132)]?this[_0x4db634(0x12a)][_0x4db634(0x13e)]():this[_0x4db634(0x13e)]();});const _0x67022a=()=>{const _0x85b314=_0x251fcb;_0x4b3e3a[_0x85b314(0x157)][_0x85b314(0x152)](()=>{const _0x39c2a3=_0x85b314;if(_0x13ca62(this[_0x39c2a3(0x151)])){const _0x2108f7=new _0x27f7f9(this[_0x39c2a3(0x135)][_0x39c2a3(0x127)][_0x39c2a3(0x151)]),_0x42e3f9=_0x2108f7[_0x39c2a3(0x146)],_0x3cd3e3=_0x39c2a3(0x134)===_0x217d03[_0x39c2a3(0x147)]?_0x39c2a3(0x154):_0x39c2a3(0x138);_0x2108f7[_0x39c2a3(0x130)](),_0xf7b434[_0x39c2a3(0x151)][_0x39c2a3(0x14b)][_0x3cd3e3]=_0x42e3f9-_0x2108f7[_0x39c2a3(0x146)]+0x1+'px';}});};return this[_0x251fcb(0x135)][_0x251fcb(0x127)]['on'](_0x251fcb(0x12f),_0x67022a),this['on'](_0x251fcb(0x14d),_0x67022a),_0xf7b434;}[_0x5916a3(0x14c)](){const _0x16dcd2=_0x5916a3,_0x1ce685=this[_0x16dcd2(0x135)][_0x16dcd2(0x127)][_0x16dcd2(0x151)][_0x16dcd2(0x144)];this[_0x16dcd2(0x128)](_0x16dcd2(0x14c),_0x1ce685);}[_0x5916a3(0x13e)](_0x4a5ad4){const _0x2156df=_0x5916a3;-0x1===_0x4a5ad4?this[_0x2156df(0x126)][_0x2156df(0x124)]():this[_0x2156df(0x126)][_0x2156df(0x158)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x27afca=_0x5cf0;function _0x5cf0(_0xb8ab84,_0x369d01){const _0x1ac49d=_0x1ac4();return _0x5cf0=function(_0x5cf0c2,_0x3e7606){_0x5cf0c2=_0x5cf0c2-0x16a;let _0x4715d5=_0x1ac49d[_0x5cf0c2];return _0x4715d5;},_0x5cf0(_0xb8ab84,_0x369d01);}(function(_0x5279f0,_0x4894d5){const _0x47dc23=_0x5cf0,_0x3859d8=_0x5279f0();while(!![]){try{const _0x34b69b=parseInt(_0x47dc23(0x170))/0x1*(-parseInt(_0x47dc23(0x17f))/0x2)+parseInt(_0x47dc23(0x18c))/0x3+parseInt(_0x47dc23(0x182))/0x4*(-parseInt(_0x47dc23(0x185))/0x5)+-parseInt(_0x47dc23(0x16d))/0x6*(parseInt(_0x47dc23(0x16e))/0x7)+parseInt(_0x47dc23(0x171))/0x8+-parseInt(_0x47dc23(0x178))/0x9*(parseInt(_0x47dc23(0x179))/0xa)+parseInt(_0x47dc23(0x184))/0xb*(parseInt(_0x47dc23(0x16a))/0xc);if(_0x34b69b===_0x4894d5)break;else _0x3859d8['push'](_0x3859d8['shift']());}catch(_0x1225f6){_0x3859d8['push'](_0x3859d8['shift']());}}}(_0x1ac4,0xdb18d));import{ToolbarView as _0x9c0170,ButtonView as _0x2e9b39}from'ckeditor5/src/ui.js';import{getTranslation as _0x9e2881}from'../../utils/common-translations.js';export const AIFormToolbarViewMainActionLabel={'REPLACE':_0x27afca(0x17d),'INSERT':_0x27afca(0x17a)};function _0x1ac4(){const _0x955d40=['32588743DatGcG','35XGDazQ','Try\x20again','insertButton','items','REPLACE','Insert\x20below','isVisible','1772151fObdzd','locale','_createButton','_CONTENT','toUpperCase','12eElpOV','ck-ai-form__toolbar','addMany','7524192dJrDyb','7JEKjEl','set','2yGhvih','11160568xUoMTW','extendTemplate','AI_','tryAgainButton','label','replaceButton','Stop','684819bZDoah','150qJaFbO','insert','ck-hidden','ck-button-action','replace','mainAction','713390qEVRdm','bindTemplate','stopButton','538396GkTKrv','bind'];_0x1ac4=function(){return _0x955d40;};return _0x1ac4();}export default class Tt extends _0x9c0170{constructor(_0x459061){const _0x443115=_0x27afca;super(_0x459061),this[_0x443115(0x16f)](_0x443115(0x18b),!0x1),this[_0x443115(0x16f)](_0x443115(0x17e),AIFormToolbarViewMainActionLabel[_0x443115(0x189)]),this[_0x443115(0x176)]=this[_0x443115(0x18e)]('',_0x443115(0x17c)),this[_0x443115(0x176)][_0x443115(0x183)](_0x443115(0x175))['to'](this,_0x443115(0x17e),_0x4c745e=>_0x9e2881(_0x459061,_0x443115(0x173)+_0x4c745e[_0x443115(0x190)]()+_0x443115(0x18f))),this[_0x443115(0x187)]=this[_0x443115(0x18e)](_0x9e2881(_0x459061,_0x443115(0x18a))),this[_0x443115(0x174)]=this[_0x443115(0x18e)](_0x9e2881(_0x459061,_0x443115(0x186))),this[_0x443115(0x181)]=this[_0x443115(0x18e)](_0x9e2881(_0x459061,_0x443115(0x177)));const _0x348fdc=this[_0x443115(0x180)];this[_0x443115(0x172)]({'attributes':{'class':[_0x443115(0x16b),_0x348fdc['if'](_0x443115(0x18b),_0x443115(0x17b),_0x1bb9c4=>!_0x1bb9c4)]}}),this[_0x443115(0x188)][_0x443115(0x16c)]([this[_0x443115(0x176)],this[_0x443115(0x187)],this[_0x443115(0x174)],this[_0x443115(0x181)]]);}[_0x27afca(0x18e)](_0x28a27b,_0x3430e4){const _0xd1b3a1=_0x27afca,_0x309263=new _0x2e9b39(this[_0xd1b3a1(0x18d)]);return _0x309263[_0xd1b3a1(0x16f)]({'label':_0x28a27b,'class':_0x3430e4||'','isVisible':!0x0,'withText':!0x0}),_0x309263;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x541a3b=_0x4cca;(function(_0x518076,_0x5a6d97){const _0x2a17c2=_0x4cca,_0x4c8b95=_0x518076();while(!![]){try{const _0x53ff74=parseInt(_0x2a17c2(0x22e))/0x1+parseInt(_0x2a17c2(0x1ea))/0x2+parseInt(_0x2a17c2(0x1e4))/0x3*(-parseInt(_0x2a17c2(0x1e0))/0x4)+-parseInt(_0x2a17c2(0x1dd))/0x5*(parseInt(_0x2a17c2(0x1ed))/0x6)+-parseInt(_0x2a17c2(0x210))/0x7*(parseInt(_0x2a17c2(0x1f6))/0x8)+-parseInt(_0x2a17c2(0x1fc))/0x9+parseInt(_0x2a17c2(0x21d))/0xa;if(_0x53ff74===_0x5a6d97)break;else _0x4c8b95['push'](_0x4c8b95['shift']());}catch(_0x5a6892){_0x4c8b95['push'](_0x4c8b95['shift']());}}}(_0x3397,0x4fd6c));function _0x4cca(_0x2a49ec,_0x38cb73){const _0x3397ae=_0x3397();return _0x4cca=function(_0x4cca4a,_0x178bc8){_0x4cca4a=_0x4cca4a-0x1da;let _0x524397=_0x3397ae[_0x4cca4a];return _0x524397;},_0x4cca(_0x2a49ec,_0x38cb73);}import{FocusTracker as _0x35a94d,KeystrokeHandler as _0x4a8a07}from'ckeditor5/src/utils.js';import{View as _0x11d026,FocusCycler as _0x1e20a4,createLabeledTextarea as _0x181399}from'ckeditor5/src/ui.js';import _0x5f26ba,{AIFormToolbarViewMainActionLabel as _0x1ea7a4}from'./aiformtoolbarview.js';import _0x49e1f1 from'./aiformcontentarea.js';import _0x35ccc5 from'./aiformerrorview.js';import _0x5e7a72 from'./aiformpromptview.js';import _0x5f5cbd from'./aihistorylistview.js';import _0x756b1a from'./aihistorylistitemview.js';import _0x104a0d from'./prompthistory.js';import{getTranslation as _0x267a3a}from'../../utils/common-translations.js';import{escape as _0x1f0bd9}from'lodash-es';function _0x3397(){const _0x14285e=['focusFirst','Ask\x20AI\x20to\x20improve\x20generated\x20text','isVisible','focusCycler','handleError','tryAgainButton','trim','453554tzgRzK','_createPromptView','label','insertButton','errorView','bindTemplate','focus','locale','4985EODAVt','isError','replaceContent','4RjDnxM','clear','shift\x20+\x20tab','queryView','1324437jXOkUf','backwardCycle','replaceButton','reset','stopProcessing','setTemplate','721940VxhMij','items','copyButtonView','1878XDXRLZ','fire','add','clearHistory','forwardCycle','startProcessing','tab','_createHistoryView','Ask\x20AI\x20to\x20edit\x20or\x20generate','80LGCFrZ','stop','_focusables','insertContentBelow','_promptHistory','contentArea','3273507fXTfRA','Empty\x20history','tryAgainEvent','historyGroupView','isEnabled','fieldView','bind','ck-ai-form','delegate','mainAction','ck-ai-form-content','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','AI_ERROR_FAILED','execute','div','stopButton','bindTo','set','focusPrevious','finishProcessing','157129pKdbrU','submitPrompt','element','focusNext','high','createCollection','focusTracker','listenTo','_createToolbar','keystrokes','REPLACE','render','focusLast','8542290dguCPT','ck-hidden','promptView','prompt','text','toolbar','submit','search','isProcessing','value'];_0x3397=function(){return _0x14285e;};return _0x3397();}export default class x extends _0x11d026{constructor(_0x1051a3,_0x180370,_0x3dec17=''){const _0x575f8d=_0x4cca;super(_0x1051a3),this[_0x575f8d(0x20d)](_0x575f8d(0x200),!0x0),this[_0x575f8d(0x20d)](_0x575f8d(0x225),!0x1),this[_0x575f8d(0x20d)](_0x575f8d(0x220),''),this[_0x575f8d(0x20d)](_0x575f8d(0x226),''),this[_0x575f8d(0x20d)](_0x575f8d(0x1de),!0x1),this[_0x575f8d(0x20d)](_0x575f8d(0x205),_0x1ea7a4[_0x575f8d(0x21a)]),this[_0x575f8d(0x1fa)]=new _0x104a0d(),this[_0x575f8d(0x232)]=new _0x35ccc5(_0x1051a3),this[_0x575f8d(0x1fb)]=new _0x49e1f1(_0x1051a3,_0x3dec17),this[_0x575f8d(0x1fb)][_0x575f8d(0x202)](_0x575f8d(0x225))['to'](this),this[_0x575f8d(0x1fb)][_0x575f8d(0x202)](_0x575f8d(0x226))['to'](this),this[_0x575f8d(0x222)]=this[_0x575f8d(0x218)](),this[_0x575f8d(0x222)][_0x575f8d(0x202)](_0x575f8d(0x205))['to'](this),this[_0x575f8d(0x21f)]=this[_0x575f8d(0x22f)](),this[_0x575f8d(0x216)]=new _0x35a94d(),this[_0x575f8d(0x219)]=new _0x4a8a07(),this[_0x575f8d(0x1f8)]=this[_0x575f8d(0x215)]([this[_0x575f8d(0x1fb)],this[_0x575f8d(0x1fb)][_0x575f8d(0x1ec)],this[_0x575f8d(0x222)],this[_0x575f8d(0x21f)]]),this[_0x575f8d(0x22a)]=new _0x1e20a4({'focusables':this[_0x575f8d(0x1f8)],'focusTracker':this[_0x575f8d(0x216)],'keystrokeHandler':this[_0x575f8d(0x219)],'actions':{'focusPrevious':_0x575f8d(0x1e2),'focusNext':_0x575f8d(0x1f3)}}),this[_0x575f8d(0x21f)][_0x575f8d(0x22a)]['on'](_0x575f8d(0x1f1),_0x5b1298=>{const _0x1dda03=_0x575f8d;this[_0x1dda03(0x22a)][_0x1dda03(0x213)](),_0x5b1298[_0x1dda03(0x1f7)]();}),this[_0x575f8d(0x21f)][_0x575f8d(0x22a)]['on'](_0x575f8d(0x1e5),_0x2660ee=>{const _0x18f8da=_0x575f8d;this[_0x18f8da(0x22a)][_0x18f8da(0x20e)](),_0x2660ee[_0x18f8da(0x1f7)]();}),this[_0x575f8d(0x21f)][_0x575f8d(0x1e3)][_0x575f8d(0x201)][_0x575f8d(0x202)](_0x575f8d(0x226))['to'](this,_0x575f8d(0x220));const _0x2d440c=this[_0x575f8d(0x1da)];this[_0x575f8d(0x1e9)]({'tag':_0x575f8d(0x20a),'attributes':{'class':['ck',_0x575f8d(0x203),_0x180370],'tabindex':'-1'},'children':[{'tag':_0x575f8d(0x20a),'attributes':{'class':['ck',_0x575f8d(0x206)]},'children':[{'tag':_0x575f8d(0x20a),'attributes':{'class':[_0x2d440c['if'](_0x575f8d(0x1de),_0x575f8d(0x21e),_0x40f7dc=>!_0x40f7dc)]},'children':[this[_0x575f8d(0x232)]]},this[_0x575f8d(0x1fb)],this[_0x575f8d(0x222)],this[_0x575f8d(0x21f)]]}]});}[_0x541a3b(0x21b)](){const _0x5995d3=_0x541a3b;super[_0x5995d3(0x21b)](),this[_0x5995d3(0x216)][_0x5995d3(0x1ef)](this[_0x5995d3(0x1fb)][_0x5995d3(0x212)]),this[_0x5995d3(0x216)][_0x5995d3(0x1ef)](this[_0x5995d3(0x1fb)][_0x5995d3(0x1ec)][_0x5995d3(0x212)]),this[_0x5995d3(0x216)][_0x5995d3(0x1ef)](this[_0x5995d3(0x222)][_0x5995d3(0x212)]),this[_0x5995d3(0x216)][_0x5995d3(0x1ef)](this[_0x5995d3(0x21f)][_0x5995d3(0x212)]),this[_0x5995d3(0x219)][_0x5995d3(0x217)](this[_0x5995d3(0x212)]);}[_0x541a3b(0x1db)](_0x585e52=0x1){const _0x3738d0=_0x541a3b;-0x1===_0x585e52?this[_0x3738d0(0x22a)][_0x3738d0(0x21c)]():this[_0x3738d0(0x22a)][_0x3738d0(0x227)]();}[_0x541a3b(0x1e7)](){const _0x1bc8e1=_0x541a3b;this[_0x1bc8e1(0x220)]='',this[_0x1bc8e1(0x226)]='',this[_0x1bc8e1(0x1de)]=!0x1,this[_0x1bc8e1(0x21f)][_0x1bc8e1(0x1e7)](),this[_0x1bc8e1(0x1fb)][_0x1bc8e1(0x229)]=!0x1,this[_0x1bc8e1(0x222)][_0x1bc8e1(0x229)]=!0x1;}[_0x541a3b(0x22f)](){const _0x1a4d90=_0x541a3b,_0x2c40fd=this[_0x1a4d90(0x1dc)],_0x2fdd2b=new _0x5e7a72(_0x2c40fd,{'queryView':{'label':_0x267a3a(_0x2c40fd,_0x1a4d90(0x1f5)),'creator':_0x181399,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x267a3a(_0x2c40fd,_0x1a4d90(0x1fd)),'secondary':_0x267a3a(_0x2c40fd,_0x1a4d90(0x207))}}},'filteredView':this[_0x1a4d90(0x1f4)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x2fdd2b[_0x1a4d90(0x202)](_0x1a4d90(0x200))['to'](this,_0x1a4d90(0x200),this,_0x1a4d90(0x225),(_0x27d2c,_0x2424fd)=>_0x27d2c&&!_0x2424fd),this[_0x1a4d90(0x217)](_0x2fdd2b,_0x1a4d90(0x223),(_0x4824d5,_0x599cb2)=>{const _0x3faee2=_0x1a4d90;this[_0x3faee2(0x220)]=_0x599cb2;const _0xf78c9c=_0x1f0bd9(_0x599cb2);this[_0x3faee2(0x1ee)](_0x3faee2(0x211),_0xf78c9c),_0x599cb2[_0x3faee2(0x22d)]()&&this[_0x3faee2(0x1fa)][_0x3faee2(0x1ef)]({'prompt':_0xf78c9c},0x0);},{'priority':_0x1a4d90(0x214)}),_0x2fdd2b;}[_0x541a3b(0x1f4)](){const _0x291196=_0x541a3b,_0x49eb54=new _0x5f5cbd(this[_0x291196(0x1dc)]);return _0x49eb54[_0x291196(0x1ff)][_0x291196(0x1eb)][_0x291196(0x20c)](this[_0x291196(0x1fa)])['as'](_0x756b1a),_0x49eb54['on'](_0x291196(0x1f0),()=>{const _0x44276d=_0x291196;this[_0x44276d(0x1fa)][_0x44276d(0x1e1)](),this[_0x44276d(0x21f)][_0x44276d(0x224)](''),this[_0x44276d(0x21f)][_0x44276d(0x1db)]();}),_0x49eb54;}[_0x541a3b(0x218)](){const _0x5a5a61=_0x541a3b,_0x41fc54=new _0x5f26ba(this[_0x5a5a61(0x1dc)]);return _0x41fc54[_0x5a5a61(0x1e6)][_0x5a5a61(0x202)](_0x5a5a61(0x200))['to'](this,_0x5a5a61(0x200),this,_0x5a5a61(0x225),this,_0x5a5a61(0x226),(_0x369ee9,_0x73cf4a,_0x395a7d)=>_0x369ee9&&!_0x73cf4a&&!!_0x395a7d),_0x41fc54[_0x5a5a61(0x1e6)][_0x5a5a61(0x204)](_0x5a5a61(0x209))['to'](this,_0x5a5a61(0x1df)),_0x41fc54[_0x5a5a61(0x231)][_0x5a5a61(0x202)](_0x5a5a61(0x200))['to'](this,_0x5a5a61(0x200),this,_0x5a5a61(0x225),this,_0x5a5a61(0x226),(_0xdcc78f,_0x2476d3,_0x35d066)=>_0xdcc78f&&!_0x2476d3&&!!_0x35d066),_0x41fc54[_0x5a5a61(0x231)][_0x5a5a61(0x204)](_0x5a5a61(0x209))['to'](this,_0x5a5a61(0x1f9)),_0x41fc54[_0x5a5a61(0x22c)][_0x5a5a61(0x202)](_0x5a5a61(0x200))['to'](this,_0x5a5a61(0x200),this,_0x5a5a61(0x225),(_0x2a26e2,_0xd9e30f)=>_0x2a26e2&&!_0xd9e30f),_0x41fc54[_0x5a5a61(0x22c)][_0x5a5a61(0x204)](_0x5a5a61(0x209))['to'](this,_0x5a5a61(0x1fe)),_0x41fc54[_0x5a5a61(0x20b)][_0x5a5a61(0x202)](_0x5a5a61(0x200))['to'](this,_0x5a5a61(0x225)),_0x41fc54[_0x5a5a61(0x20b)][_0x5a5a61(0x204)](_0x5a5a61(0x209))['to'](this,_0x5a5a61(0x1e8)),_0x41fc54;}[_0x541a3b(0x1f2)](){const _0x4372e2=_0x541a3b;this[_0x4372e2(0x226)]='',this[_0x4372e2(0x1de)]=!0x1,this[_0x4372e2(0x225)]=!0x0,this[_0x4372e2(0x1fb)][_0x4372e2(0x229)]=!0x0,this[_0x4372e2(0x222)][_0x4372e2(0x229)]=!0x0,this[_0x4372e2(0x1fb)][_0x4372e2(0x1db)]();}[_0x541a3b(0x20f)](){const _0x36a3e8=_0x541a3b,_0x2693fd=this[_0x36a3e8(0x1dc)];this[_0x36a3e8(0x225)]=!0x1,this[_0x36a3e8(0x220)]='',this[_0x36a3e8(0x21f)][_0x36a3e8(0x1e7)](),this[_0x36a3e8(0x226)]&&(this[_0x36a3e8(0x21f)][_0x36a3e8(0x1e3)][_0x36a3e8(0x230)]=_0x267a3a(_0x2693fd,_0x36a3e8(0x228)));}[_0x541a3b(0x22b)](_0x450b94){const _0x27f574=_0x541a3b,_0x2111c6=this[_0x27f574(0x1dc)];this[_0x27f574(0x20f)](),this[_0x27f574(0x1de)]=!0x0,this[_0x27f574(0x232)][_0x27f574(0x221)]=_0x450b94||_0x267a3a(_0x2111c6,_0x27f574(0x208)),this[_0x27f574(0x226)]||(this[_0x27f574(0x1fb)][_0x27f574(0x229)]=!0x1);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x11e4(){const _0x729719=['children','30eMzNjW','1576687jMACGO','locale','3tXyCdj','1225944NPHMqg','fire','execute','3393620Fkjilf','30864600nDUAOu','prompt','add','4792288FfMKLR','295018sJgfsR','set','9247136vbrKEl'];_0x11e4=function(){return _0x729719;};return _0x11e4();}(function(_0x191b84,_0x166fa7){const _0x400b00=_0x4da7,_0x2032ad=_0x191b84();while(!![]){try{const _0xfb785e=-parseInt(_0x400b00(0x19f))/0x1*(parseInt(_0x400b00(0x1a8))/0x2)+-parseInt(_0x400b00(0x1a0))/0x3+-parseInt(_0x400b00(0x1a7))/0x4+-parseInt(_0x400b00(0x1a3))/0x5+parseInt(_0x400b00(0x1ac))/0x6*(-parseInt(_0x400b00(0x1ad))/0x7)+parseInt(_0x400b00(0x1aa))/0x8+parseInt(_0x400b00(0x1a4))/0x9;if(_0xfb785e===_0x166fa7)break;else _0x2032ad['push'](_0x2032ad['shift']());}catch(_0x207cfd){_0x2032ad['push'](_0x2032ad['shift']());}}}(_0x11e4,0xb27ec));import{ListItemView as _0x256862,ButtonView as _0x3fda3b}from'ckeditor5/src/ui.js';import _0x418086 from'../dropdown/buttonlabelwithhighlightview.js';function _0x4da7(_0x13878c,_0x44e4ab){const _0x11e4b4=_0x11e4();return _0x4da7=function(_0x4da76e,_0x281afb){_0x4da76e=_0x4da76e-0x19e;let _0x2b0320=_0x11e4b4[_0x4da76e];return _0x2b0320;},_0x4da7(_0x13878c,_0x44e4ab);}import{unescape as _0x5cb7de}from'lodash-es';export default class hs extends _0x256862{constructor(_0x152bfe){const _0x314642=_0x4da7;super();const _0x515bc6=new _0x418086(),_0x6d26ac=new _0x3fda3b(this[_0x314642(0x19e)],_0x515bc6);this[_0x314642(0x1ab)][_0x314642(0x1a6)](_0x6d26ac),_0x6d26ac[_0x314642(0x1a9)]({'label':_0x152bfe[_0x314642(0x1a5)],'withText':!0x0}),_0x6d26ac['on'](_0x314642(0x1a2),()=>{const _0x96c386=_0x314642;this[_0x96c386(0x1a1)](_0x96c386(0x1a2),{'value':_0x5cb7de(_0x152bfe[_0x96c386(0x1a5)])});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x4255(){const _0x3ad1ed=['filter','label','_createClearHistoryButton','9gfaYdN','27461KdsrGg','Clear','historyGroupView','clearHistory','length','add','54351666kzyPaA','delegate','clearHistoryButton','execute','6250505MsAKhG','locale','children','set','items','fire','4258338LWESbu','9438192TOtoxK','174qFkQvV','6110708mIEGCJ','Prompt\x20history','42320ArBiyV'];_0x4255=function(){return _0x3ad1ed;};return _0x4255();}const _0x48bf83=_0x5dbc;(function(_0x449b46,_0x566155){const _0x165038=_0x5dbc,_0x205a08=_0x449b46();while(!![]){try{const _0x2d7227=parseInt(_0x165038(0x11c))/0x1*(parseInt(_0x165038(0x132))/0x2)+-parseInt(_0x165038(0x12d))/0x3+-parseInt(_0x165038(0x130))/0x4+-parseInt(_0x165038(0x127))/0x5+-parseInt(_0x165038(0x12f))/0x6*(-parseInt(_0x165038(0x11d))/0x7)+-parseInt(_0x165038(0x12e))/0x8+parseInt(_0x165038(0x123))/0x9;if(_0x2d7227===_0x566155)break;else _0x205a08['push'](_0x205a08['shift']());}catch(_0x215040){_0x205a08['push'](_0x205a08['shift']());}}}(_0x4255,0xebe8b));function _0x5dbc(_0x2c04ee,_0x24cfdc){const _0x42554b=_0x4255();return _0x5dbc=function(_0x5dbcac,_0x148224){_0x5dbcac=_0x5dbcac-0x119;let _0x4c18de=_0x42554b[_0x5dbcac];return _0x4c18de;},_0x5dbc(_0x2c04ee,_0x24cfdc);}import{ListView as _0x15b23e,ListItemGroupView as _0x4d1f5b,ButtonView as _0x2510e7}from'ckeditor5/src/ui.js';import{getTranslation as _0x5bb86a}from'../../utils/common-translations.js';export default class rs extends _0x15b23e{constructor(_0x4fcb49){const _0x33a011=_0x5dbc;super(_0x4fcb49),this[_0x33a011(0x125)]=this[_0x33a011(0x11b)](),this[_0x33a011(0x11f)]=new _0x4d1f5b(),this[_0x33a011(0x11f)][_0x33a011(0x129)][_0x33a011(0x122)](this[_0x33a011(0x125)],0x1),this[_0x33a011(0x11f)][_0x33a011(0x11a)]=_0x5bb86a(_0x4fcb49,_0x33a011(0x131)),this[_0x33a011(0x11f)][_0x33a011(0x12b)][_0x33a011(0x124)](_0x33a011(0x126))['to'](this),this[_0x33a011(0x12b)][_0x33a011(0x122)](this[_0x33a011(0x11f)]);}[_0x48bf83(0x119)](){const _0x51f81c=_0x48bf83;let _0x964367=0x0;for(const _0x458f65 of this[_0x51f81c(0x12b)])_0x964367+=_0x458f65[_0x51f81c(0x12b)][_0x51f81c(0x121)];return{'resultsCount':_0x964367,'totalItemsCount':_0x964367};}[_0x48bf83(0x11b)](){const _0x24cf80=_0x48bf83,_0x1f6615=this[_0x24cf80(0x128)],_0x1c0bae=new _0x2510e7(this[_0x24cf80(0x128)]);return _0x1c0bae[_0x24cf80(0x12a)]({'label':'('+_0x5bb86a(_0x1f6615,_0x24cf80(0x11e))+')','withText':!0x0}),_0x1c0bae['on'](_0x24cf80(0x126),()=>this[_0x24cf80(0x12c)](_0x24cf80(0x120))),_0x1c0bae;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x43ef3e=_0x1613;(function(_0x2161f5,_0x3abff2){const _0x46da6a=_0x1613,_0x14c46e=_0x2161f5();while(!![]){try{const _0x45bcf9=-parseInt(_0x46da6a(0x17b))/0x1*(-parseInt(_0x46da6a(0x191))/0x2)+parseInt(_0x46da6a(0x180))/0x3*(parseInt(_0x46da6a(0x18b))/0x4)+parseInt(_0x46da6a(0x17c))/0x5*(parseInt(_0x46da6a(0x187))/0x6)+-parseInt(_0x46da6a(0x17d))/0x7+-parseInt(_0x46da6a(0x181))/0x8*(parseInt(_0x46da6a(0x18e))/0x9)+-parseInt(_0x46da6a(0x186))/0xa+-parseInt(_0x46da6a(0x190))/0xb*(-parseInt(_0x46da6a(0x178))/0xc);if(_0x45bcf9===_0x3abff2)break;else _0x14c46e['push'](_0x14c46e['shift']());}catch(_0x2f746b){_0x14c46e['push'](_0x14c46e['shift']());}}}(_0x3bdb,0x5d35a));import{Collection as _0x665fed}from'ckeditor5/src/utils.js';const cs=_0x43ef3e(0x17f);function _0x3bdb(){const _0x303954=['4949196AIFgeE','stringify','CKEditor/AIFormView/PromptHistory','1093497bmxQFQ','7096MabeLv','map','prompt','_saveToSessionStorage','trim','2854600BZhOKE','144696bdzsiG','length','setItem','remove','4CQfifn','toLowerCase','add','2412qtYGmX','last','11bohJZX','171514hSiVYs','addMany','_loadFromSessionStorage','10274772vzjnLa','getItem','parse','4idKdpg','10EtitSh'];_0x3bdb=function(){return _0x303954;};return _0x3bdb();}function _0x1613(_0xb76f9c,_0x2d96f9){const _0x3bdb26=_0x3bdb();return _0x1613=function(_0x161325,_0x28c908){_0x161325=_0x161325-0x176;let _0x281945=_0x3bdb26[_0x161325];return _0x281945;},_0x1613(_0xb76f9c,_0x2d96f9);}export default class os extends _0x665fed{constructor(){const _0x3295b1=_0x43ef3e;super(),this[_0x3295b1(0x177)](),this['on'](_0x3295b1(0x18d),(_0x5a9c4e,_0x19c8a3)=>{const _0x4e35ae=_0x3295b1,_0x538d70=Ss(_0x19c8a3[_0x4e35ae(0x183)]);for(const _0x521d79 of this)if(_0x521d79!=_0x19c8a3&&Ss(_0x521d79[_0x4e35ae(0x183)])===_0x538d70){this[_0x4e35ae(0x18a)](_0x521d79);break;}this[_0x4e35ae(0x188)]>0x14&&this[_0x4e35ae(0x18a)](this[_0x4e35ae(0x18f)]),this[_0x4e35ae(0x184)]();}),this['on'](_0x3295b1(0x18a),()=>{const _0x4e71ac=_0x3295b1;this[_0x4e71ac(0x184)]();});}[_0x43ef3e(0x177)](){const _0x2efda4=_0x43ef3e,_0x49c760=sessionStorage[_0x2efda4(0x179)](cs)||'[]';this[_0x2efda4(0x176)](JSON[_0x2efda4(0x17a)](_0x49c760));}[_0x43ef3e(0x184)](){const _0x468c13=_0x43ef3e;sessionStorage[_0x468c13(0x189)](cs,JSON[_0x468c13(0x17e)](this[_0x468c13(0x182)](_0x5593d2=>_0x5593d2)));}}function Ss(_0x4a996c){const _0x123b08=_0x43ef3e;return _0x4a996c[_0x123b08(0x18c)]()[_0x123b08(0x185)]();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3af5fc=_0x549b;(function(_0x1d90d8,_0x19df75){const _0x3e4fb1=_0x549b,_0x492f89=_0x1d90d8();while(!![]){try{const _0x560e95=parseInt(_0x3e4fb1(0x15f))/0x1*(parseInt(_0x3e4fb1(0x169))/0x2)+parseInt(_0x3e4fb1(0x16a))/0x3*(parseInt(_0x3e4fb1(0x15d))/0x4)+parseInt(_0x3e4fb1(0x167))/0x5+parseInt(_0x3e4fb1(0x17f))/0x6+parseInt(_0x3e4fb1(0x166))/0x7+-parseInt(_0x3e4fb1(0x171))/0x8*(parseInt(_0x3e4fb1(0x17d))/0x9)+-parseInt(_0x3e4fb1(0x163))/0xa;if(_0x560e95===_0x19df75)break;else _0x492f89['push'](_0x492f89['shift']());}catch(_0xc6e245){_0x492f89['push'](_0x492f89['shift']());}}}(_0x1023,0x3eab3));import{Command as _0xaa8d08}from'ckeditor5/src/core.js';function _0x1023(){const _0x2a6374=['535664UozIyr','get','showUI','reduce','set','change:_hasContext','change:isEnabled','includes','commands','element','isEnabled','editor','63aSvWCe','_hasContext','2190660fakymn','_commandDefinitions','requiresContent','enabledCommandsIds','custom','refresh','length','getItems','model','plugins','execute','name','4dBBije','document','165WHGpaN','getRanges','from','getFirstRange','11787740YOWAzg','getSelectedBlocks','selection','2579927XGlbtO','2434080QINlAU','concat','3634hyszQC','1151637hxXvgf','isEmpty','config','isCollapsed','ai.aiAssistant.disabledElements','add','hasContent'];_0x1023=function(){return _0x2a6374;};return _0x1023();}function _0x549b(_0x2c5701,_0x129336){const _0x10233e=_0x1023();return _0x549b=function(_0x549b23,_0x297b80){_0x549b23=_0x549b23-0x152;let _0x306224=_0x10233e[_0x549b23];return _0x306224;},_0x549b(_0x2c5701,_0x129336);}import _0x4f2cc0 from'../aiassistantui.js';export default class j extends _0xaa8d08{constructor(_0x19c8ac,_0xb1321d){const _0xcd34b5=_0x549b;super(_0x19c8ac),this[_0xcd34b5(0x152)]=_0xb1321d?_0xb1321d[_0xcd34b5(0x174)]((_0x2902d9,_0x2739a2)=>_0x2902d9[_0xcd34b5(0x168)](_0x2739a2[_0xcd34b5(0x179)]),new Array()):[],this[_0xcd34b5(0x175)](_0xcd34b5(0x154),[]),this['on'](_0xcd34b5(0x176),(_0x332b90,_0x5d0a75,_0x4c30e5)=>{const _0x56b091=_0xcd34b5;this[_0x56b091(0x17b)]&&(this[_0x56b091(0x154)]=K(this[_0x56b091(0x152)],_0x4c30e5));}),this[_0xcd34b5(0x175)](_0xcd34b5(0x17e),!0x1),this['on'](_0xcd34b5(0x177),(_0x154ca2,_0x329406,_0x18b52a)=>{const _0x5671a=_0xcd34b5;this[_0x5671a(0x154)]=_0x18b52a?K(this[_0x5671a(0x152)],this[_0x5671a(0x17e)]):[];});}[_0x3af5fc(0x156)](){const _0x1526b4=_0x3af5fc,_0x8179f2=this[_0x1526b4(0x17c)][_0x1526b4(0x159)];this[_0x1526b4(0x17e)]=function(_0x41bbe0){const _0x2b8ced=_0x1526b4,_0x1049e6=_0x41bbe0[_0x2b8ced(0x15e)][_0x2b8ced(0x165)];return _0x1049e6[_0x2b8ced(0x16d)]?0x0!==[..._0x1049e6[_0x2b8ced(0x164)]()][_0x2b8ced(0x157)]&&![..._0x1049e6[_0x2b8ced(0x164)]()][0x0][_0x2b8ced(0x16b)]:!!_0x41bbe0[_0x2b8ced(0x170)](_0x1049e6[_0x2b8ced(0x162)]());}(_0x8179f2);const _0x3facb3=_0x8179f2[_0x1526b4(0x15e)][_0x1526b4(0x165)],_0x457a18=this[_0x1526b4(0x17c)][_0x1526b4(0x16c)][_0x1526b4(0x172)](_0x1526b4(0x16e));for(const _0x533a5e of _0x3facb3[_0x1526b4(0x160)]())for(const _0x53effd of _0x533a5e[_0x1526b4(0x158)]())if(_0x53effd['is'](_0x1526b4(0x17a))&&_0x457a18[_0x1526b4(0x178)](_0x53effd[_0x1526b4(0x15c)]))return void(this[_0x1526b4(0x17b)]=!0x1);this[_0x1526b4(0x17b)]=!0x0;}[_0x3af5fc(0x15b)](_0x554e4c='',_0x460219='',_0x2141cb=_0x3af5fc(0x155)){const _0x39a4ce=_0x3af5fc;this[_0x39a4ce(0x17c)][_0x39a4ce(0x15a)][_0x39a4ce(0x172)](_0x4f2cc0)[_0x39a4ce(0x173)](_0x554e4c,_0x460219,_0x2141cb);}}function K(_0xaa9170,_0x918cd1){const _0x41b54d=_0x3af5fc,_0x509353=new Set();for(const _0x4cbd4e of _0xaa9170)(_0x918cd1||!0x1===_0x4cbd4e[_0x41b54d(0x153)])&&_0x509353[_0x41b54d(0x16f)](_0x4cbd4e['id']);return Array[_0x41b54d(0x161)](_0x509353);}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(
|
|
23
|
+
export function getTranslation(_0x36855f,_0x8d6a9d,_0x38b0b5){const t=_0x36855f['t'];switch(_0x8d6a9d){case'Edit\x20or\x20review':return t('Edit\x20or\x20review');case'Improve\x20writing':return t('Improve\x20writing');case'Make\x20shorter':return t('Make\x20shorter');case'Make\x20longer':return t('Make\x20longer');case'Simplify\x20language':return t('Simplify\x20language');case'Generate\x20from\x20selection':return t('Generate\x20from\x20selection');case'Summarize':return t('Summarize');case'Continue':return t('Continue');case'Change\x20tone':return t('Change\x20tone');case'Professional':return t('Professional');case'Casual':return t('Casual');case'Direct':return t('Direct');case'Confident':return t('Confident');case'Friendly':return t('Friendly');case'Change\x20style':return t('Change\x20style');case'Business':return t('Business');case'Legal':return t('Legal');case'Journalism':return t('Journalism');case'Poetic':return t('Poetic');case'Translate':return t('Translate');case'Translate\x20to\x20%0':return t('Translate\x20to\x20%0',_0x38b0b5);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',_0x38b0b5);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x38b0b5);case'History':return t('History');case'Empty\x20history':return t('Empty\x20history');case'Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.':return t('Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.');case'Prompt\x20history':return t('Prompt\x20history');case'Search\x20AI\x20command':return t('Search\x20AI\x20command');case'No\x20commands\x20found':return t('No\x20commands\x20found');case'No\x20commands\x20available':return t('No\x20commands\x20available');case'Clear':return t('Clear');case'AI_REPLACE_CONTENT':return t({'id':'AI_REPLACE_CONTENT','string':'Replace'});case'AI_INSERT_CONTENT':return t({'id':'AI_INSERT_CONTENT','string':'Insert'});case'AI_ERROR_GET_HEADERS':return t({'id':'AI_ERROR_GET_HEADERS','string':'Preparing\x20request\x20headers\x20failed'});case'AI_ERROR_GET_PARAMETERS':return t({'id':'AI_ERROR_GET_PARAMETERS','string':'Preparing\x20request\x20parameters\x20failed'});case'AI_ERROR_UNSUPPORTED_MODEL':return t({'id':'AI_ERROR_UNSUPPORTED_MODEL','string':'The\x20requested\x20AI\x20model\x20(\x22%0\x22)\x20is\x20not\x20supported'},_0x38b0b5);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 _0x8d6a9d;}}
|