@ckeditor/ckeditor5-ai 0.0.0-nightly-20240415.0 → 0.0.0-nightly-20240416.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/package.json +4 -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
|
-
const
|
|
23
|
+
const _0x569207=_0x3fd4;(function(_0x2a13c8,_0x287f8e){const _0xc51f8d=_0x3fd4,_0x1f4b11=_0x2a13c8();while(!![]){try{const _0x234e69=parseInt(_0xc51f8d(0x180))/0x1+-parseInt(_0xc51f8d(0x181))/0x2+-parseInt(_0xc51f8d(0x1aa))/0x3+-parseInt(_0xc51f8d(0x173))/0x4+parseInt(_0xc51f8d(0x194))/0x5*(parseInt(_0xc51f8d(0x172))/0x6)+parseInt(_0xc51f8d(0x1a9))/0x7+parseInt(_0xc51f8d(0x1b9))/0x8;if(_0x234e69===_0x287f8e)break;else _0x1f4b11['push'](_0x1f4b11['shift']());}catch(_0x467cd2){_0x1f4b11['push'](_0x1f4b11['shift']());}}}(_0x5ac2,0xb7738));import{global as _0x377da3}from'ckeditor5/src/utils.js';import{View as _0x5e2063,ButtonView as _0x1695da,SpinnerView as _0x49080c}from'ckeditor5/src/ui.js';import _0x37819f from'../../../theme/icons/copy.svg';function _0x3fd4(_0x3c3d74,_0x5ef9d3){const _0x5ac277=_0x5ac2();return _0x3fd4=function(_0x3fd473,_0x470f1e){_0x3fd473=_0x3fd473-0x167;let _0x36d204=_0x5ac277[_0x3fd473];return _0x36d204;},_0x3fd4(_0x3c3d74,_0x5ef9d3);}function _0x5ac2(){const _0x30450a=['-9999px','_copyHTMLToClipboard','locale','ck-ai-form__content-area--processing','check','value','ck-ai-form__content-area-wrapper','6UkKShz','5809256akCSeC','ck-ai-form__loader','write','clipboard','div','listenTo','text/plain','ck-hidden','body','render','change:isProcessing','<span>]</span>','addRange','552383JoVzTr','1451134kKmxvP','<span>[</span>','appendLoader','absolute','lastElementChild','ck-reset_all-excluded','text/html','remove','wheel','ClipboardItem','focus','isVisible','bindTemplate','createElement','bind','ck-ai-form__copy-button-wrapper','setStartAfter','appendChild','icon','3320615lWYabU','ck-ai-form__copy-button','ck-ai-form__content-field','copy','AI\x20is\x20writing...','execCommand','scrollHeight','left','firstElementChild','style','mousedown','createRange','change:value','ck-ai-form__content-area','.ck-ai-form__loader','innerHTML','element','setContent','set','textContent','Copy','5210240UlKIxs','2805588eExQhy','copyButtonView','setTemplate','scrollTo','smooth','\x20ck-ai-form__copy-button--copied','setEndBefore','contentFieldView','class','querySelector','_createCopyButton','removeAllRanges','loaderView','getSelection','execute','15229336oRykXV','_createLoader','isProcessing','ck-content','position','isEnabled'];_0x5ac2=function(){return _0x30450a;};return _0x5ac2();}import{getTranslation as _0x26ead1}from'../../utils/common-translations.js';import{icons as _0x546992}from'ckeditor5/src/core.js';export default class nt extends _0x5e2063{constructor(_0x2ce428,_0x53f891=''){const _0x355804=_0x3fd4;super(_0x2ce428),this[_0x355804(0x1a6)]({'value':null,'isVisible':!0x1,'isProcessing':!0x1});const _0x48449a=this[_0x355804(0x18d)];this[_0x355804(0x1b1)]=new ContentFieldView(_0x2ce428,_0x53f891),this[_0x355804(0x1ab)]=this[_0x355804(0x1b4)](),this[_0x355804(0x1ac)]({'tag':_0x355804(0x177),'attributes':{'class':['ck',_0x355804(0x171),_0x48449a['if'](_0x355804(0x18c),_0x355804(0x17a),_0x1fb250=>!_0x1fb250)],'tabindex':'-1'},'children':[{'tag':_0x355804(0x177),'attributes':{'class':['ck',_0x355804(0x1a1),_0x48449a['if'](_0x355804(0x167),_0x355804(0x16e))]},'children':[this[_0x355804(0x1b1)],{'tag':_0x355804(0x177),'attributes':{'class':['ck',_0x355804(0x190)]},'children':[this[_0x355804(0x1ab)]]}]}]});}[_0x569207(0x17c)](){const _0x4feaa7=_0x569207;super[_0x4feaa7(0x17c)](),this[_0x4feaa7(0x170)]&&this[_0x4feaa7(0x1b1)][_0x4feaa7(0x1a5)](this[_0x4feaa7(0x170)]);let _0x26dfa0=!0x1;this['on'](_0x4feaa7(0x1a0),(_0xe72161,_0x457092,_0x15d22e)=>{const _0x52deb3=_0x4feaa7,_0x3a648f=!this[_0x52deb3(0x1b1)][_0x52deb3(0x1a4)][_0x52deb3(0x1b3)](_0x52deb3(0x1a2));this[_0x52deb3(0x1b1)][_0x52deb3(0x1a5)](_0x15d22e),this[_0x52deb3(0x167)]&&_0x3a648f&&!_0x26dfa0&&this[_0x52deb3(0x1a4)][_0x52deb3(0x1ad)]({'top':this[_0x52deb3(0x1a4)][_0x52deb3(0x19a)],'behavior':_0x52deb3(0x1ae)});}),this['on'](_0x4feaa7(0x17d),(_0x4109ca,_0x43e4bf,_0x141c71)=>{const _0xe2c798=_0x4feaa7;_0x26dfa0=!0x1,_0x141c71?(this[_0xe2c798(0x170)]=null,this[_0xe2c798(0x1b1)][_0xe2c798(0x183)]()):this[_0xe2c798(0x170)]||this[_0xe2c798(0x1b1)][_0xe2c798(0x1a5)]('');}),this[_0x4feaa7(0x178)](this[_0x4feaa7(0x1a4)],_0x4feaa7(0x189),()=>{_0x26dfa0=!0x0;}),this[_0x4feaa7(0x178)](this[_0x4feaa7(0x1a4)],_0x4feaa7(0x19e),()=>{_0x26dfa0=!0x0;});}[_0x569207(0x18b)](){const _0x397ca9=_0x569207;this[_0x397ca9(0x1a4)][_0x397ca9(0x18b)]();}[_0x569207(0x1b4)](){const _0x524188=_0x569207,_0x1eafa0=this[_0x524188(0x16d)],_0x2caea7=new _0x1695da(this[_0x524188(0x16d)]),_0x37a4c2=_0x524188(0x195);return _0x2caea7[_0x524188(0x1a6)]({'label':_0x26ead1(_0x1eafa0,_0x524188(0x1a8)),'icon':_0x37819f,'class':_0x37a4c2,'tooltip':!0x0}),_0x2caea7[_0x524188(0x18f)](_0x524188(0x18c))['to'](this,_0x524188(0x170),_0x5b96cd=>!!_0x5b96cd),_0x2caea7[_0x524188(0x18f)](_0x524188(0x16a))['to'](this,_0x524188(0x167),_0x598fa5=>!_0x598fa5),_0x2caea7['on'](_0x524188(0x1b8),()=>{const _0x1b0ad2=_0x524188;this[_0x1b0ad2(0x16c)](this[_0x1b0ad2(0x1b1)][_0x1b0ad2(0x1a4)]),_0x2caea7[_0x1b0ad2(0x193)]=_0x546992[_0x1b0ad2(0x16f)],_0x2caea7[_0x1b0ad2(0x1b2)]=_0x37a4c2+_0x1b0ad2(0x1af),this[_0x1b0ad2(0x18b)](),setTimeout(()=>{const _0x3b841c=_0x1b0ad2;_0x2caea7[_0x3b841c(0x193)]=_0x37819f,_0x2caea7[_0x3b841c(0x1b2)]=_0x37a4c2;},0x3e8);}),_0x2caea7;}[_0x569207(0x16c)](_0x4f6498){const _0x2c81f9=_0x569207,{window:_0x3cbae5,document:_0x23bb95}=_0x377da3;if(_0x3cbae5[_0x2c81f9(0x18a)]){const {Blob:_0x45db87,ClipboardItem:_0x1aa1db}=_0x3cbae5,_0x5aef5c=[new _0x1aa1db({'text/html':new _0x45db87([_0x4f6498[_0x2c81f9(0x1a3)]],{'type':_0x2c81f9(0x187)}),'text/plain':new _0x45db87([_0x4f6498[_0x2c81f9(0x1a7)]||''],{'type':_0x2c81f9(0x179)})})];navigator[_0x2c81f9(0x176)][_0x2c81f9(0x175)](_0x5aef5c);}else{const _0x3679e3=_0x23bb95[_0x2c81f9(0x18e)](_0x2c81f9(0x177));_0x3679e3[_0x2c81f9(0x19d)][_0x2c81f9(0x169)]=_0x2c81f9(0x184),_0x3679e3[_0x2c81f9(0x19d)][_0x2c81f9(0x19b)]=_0x2c81f9(0x16b),_0x3679e3[_0x2c81f9(0x1a3)]=_0x2c81f9(0x182)+_0x4f6498[_0x2c81f9(0x1a3)]+_0x2c81f9(0x17e),_0x23bb95[_0x2c81f9(0x17b)][_0x2c81f9(0x192)](_0x3679e3);const _0x16746e=_0x23bb95[_0x2c81f9(0x19f)]();_0x16746e[_0x2c81f9(0x191)](_0x3679e3[_0x2c81f9(0x19c)]),_0x16746e[_0x2c81f9(0x1b0)](_0x3679e3[_0x2c81f9(0x185)]);const _0x2ce7de=_0x3cbae5[_0x2c81f9(0x1b7)]();_0x2ce7de[_0x2c81f9(0x1b5)](),_0x2ce7de[_0x2c81f9(0x17f)](_0x16746e),_0x23bb95[_0x2c81f9(0x199)](_0x2c81f9(0x197)),_0x3679e3[_0x2c81f9(0x188)]();}}}export class ContentFieldView extends _0x5e2063{constructor(_0x426a75,_0x464cf4=''){const _0x4d9977=_0x569207;super(_0x426a75),this[_0x4d9977(0x1b6)]=this[_0x4d9977(0x1ba)](),this[_0x4d9977(0x1ac)]({'tag':_0x4d9977(0x177),'attributes':{'class':['ck',_0x4d9977(0x168),_0x464cf4,_0x4d9977(0x186),_0x4d9977(0x196)]}});}[_0x569207(0x1a5)](_0x30fa2a){const _0xc3c748=_0x569207;this[_0xc3c748(0x1a4)][_0xc3c748(0x1a3)]=_0x30fa2a;}[_0x569207(0x183)](){const _0x48e0f5=_0x569207;this[_0x48e0f5(0x1a4)][_0x48e0f5(0x192)](this[_0x48e0f5(0x1b6)][_0x48e0f5(0x1a4)]);}[_0x569207(0x1ba)](){const _0x585c20=_0x569207,_0x415964=new _0x5e2063(),_0x563117=this[_0x585c20(0x16d)],_0x57969d=new _0x49080c();return _0x57969d[_0x585c20(0x18c)]=!0x0,_0x415964[_0x585c20(0x1ac)]({'tag':_0x585c20(0x177),'attributes':{'class':['ck',_0x585c20(0x174)]},'children':[_0x57969d,{'text':_0x26ead1(_0x563117,_0x585c20(0x198))}]}),_0x415964[_0x585c20(0x17c)](),_0x415964;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x4d7a(){const _0x1ffa6e=['setTemplate','3297196SQjsZb','1069305FmliQk','8437xtGLNH','74412LuhFXA','10130lqdnWY','3680140vhYtFK','2985417AGmTqV','ck-ai-form__error','text','div','2bWZhkV','set','18537972UHVImT','content','4JnRntV','bindTemplate','6fzNAIT','536zkEKxx'];_0x4d7a=function(){return _0x1ffa6e;};return _0x4d7a();}function _0x2d84(_0x5cdc15,_0x2d5cf9){const _0x4d7ade=_0x4d7a();return _0x2d84=function(_0x2d84b9,_0x161a62){_0x2d84b9=_0x2d84b9-0xc0;let _0x487d66=_0x4d7ade[_0x2d84b9];return _0x487d66;},_0x2d84(_0x5cdc15,_0x2d5cf9);}(function(_0x30a899,_0x9bf594){const _0x2b3204=_0x2d84,_0x29c4ee=_0x30a899();while(!![]){try{const _0x337c57=-parseInt(_0x2b3204(0xcd))/0x1*(parseInt(_0x2b3204(0xc3))/0x2)+parseInt(_0x2b3204(0xd2))/0x3*(-parseInt(_0x2b3204(0xc7))/0x4)+-parseInt(_0x2b3204(0xd1))/0x5*(parseInt(_0x2b3204(0xc9))/0x6)+parseInt(_0x2b3204(0xcc))/0x7+parseInt(_0x2b3204(0xca))/0x8*(parseInt(_0x2b3204(0xcf))/0x9)+-parseInt(_0x2b3204(0xd0))/0xa*(-parseInt(_0x2b3204(0xce))/0xb)+parseInt(_0x2b3204(0xc5))/0xc;if(_0x337c57===_0x9bf594)break;else _0x29c4ee['push'](_0x29c4ee['shift']());}catch(_0x202f51){_0x29c4ee['push'](_0x29c4ee['shift']());}}}(_0x4d7a,0x8560a));import{View as _0x482162,IconView as _0x209d94}from'ckeditor5/src/ui.js';import _0x3d5440 from'../../../theme/icons/error.svg';export default class mt extends _0x482162{constructor(_0x18962c,_0x589a04=''){const _0x39c9d9=_0x2d84;super(_0x18962c);const _0x32e92f=new _0x209d94(),_0x3a658e=this[_0x39c9d9(0xc8)];this[_0x39c9d9(0xc4)](_0x39c9d9(0xc1),_0x589a04),_0x32e92f[_0x39c9d9(0xc6)]=_0x3d5440,this[_0x39c9d9(0xcb)]({'tag':_0x39c9d9(0xc2),'attributes':{'class':['ck',_0x39c9d9(0xc0)]},'children':[_0x32e92f,{'text':_0x3a658e['to'](_0x39c9d9(0xc1))}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x4f8db8=_0x1005;(function(_0x1e54e3,_0x2f3906){const _0x302486=_0x1005,_0x3b44df=_0x1e54e3();while(!![]){try{const _0x419476=parseInt(_0x302486(0x1ec))/0x1*(-parseInt(_0x302486(0x1e7))/0x2)+-parseInt(_0x302486(0x1ef))/0x3*(-parseInt(_0x302486(0x1f0))/0x4)+parseInt(_0x302486(0x205))/0x5*(parseInt(_0x302486(0x214))/0x6)+-parseInt(_0x302486(0x1ee))/0x7*(parseInt(_0x302486(0x1fd))/0x8)+-parseInt(_0x302486(0x20e))/0x9+-parseInt(_0x302486(0x1e0))/0xa*(-parseInt(_0x302486(0x219))/0xb)+parseInt(_0x302486(0x1fb))/0xc;if(_0x419476===_0x2f3906)break;else _0x3b44df['push'](_0x3b44df['shift']());}catch(_0x4028b5){_0x3b44df['push'](_0x3b44df['shift']());}}}(_0x46a8,0x5d35d));import{Rect as _0x2f0599,global as _0xab9524,isVisible as _0x248e8f}from'ckeditor5/src/utils.js';function _0x1005(_0x25a929,_0x3aa8d1){const _0x46a8af=_0x46a8();return _0x1005=function(_0x1005a1,_0x50245c){_0x1005a1=_0x1005a1-0x1de;let _0x3def25=_0x46a8af[_0x1005a1];return _0x3def25;},_0x1005(_0x25a929,_0x3aa8d1);}import{AutocompleteView as _0x22a6e7,ButtonView as _0x515b31}from'ckeditor5/src/ui.js';import{icons as _0x2fda7d}from'ckeditor5/src/core.js';function _0x46a8(){const _0x6e6b7d=['focus','locale','isVisible','children','requestAnimationFrame','5zGqZrn','value','execute','ck-ai-form__toggle-history','render','keystrokes','enter','isOn','isEnabled','745362tRVAQp','focusLast','Submit','focusableChildren','window','queryView','929028tOhzio','_createSubmitButton','element','update','ck-ai-form__submit','4147660MdaPsb','uiLanguageDirection','rtl','submitButtonView','10rSdcQI','history','History','fire','isEmpty','set','showHistoryButtonView','1381852TzxMDK','minRows','maxRows','bind','submit','1mtoYzX','left','103159LJNUVh','1077LOjNcW','1604ExkJkd','style','excludeScrollbarsAndBorders','resultsView','filteredView','_createShowHistoryButton','focusCycler','add','fieldWrapperChildren','width','target','10884588VeEOmc','focusFirst','232rMMrPV','fieldView','right'];_0x46a8=function(){return _0x6e6b7d;};return _0x46a8();}import{getTranslation as _0x33bca6}from'../../utils/common-translations.js';import _0x155771 from'../../../theme/icons/submit.svg';export default class pt extends _0x22a6e7{constructor(_0x485ad2,_0x3d5ade){const _0x3cfe06=_0x1005;super(_0x485ad2,_0x3d5ade),this[_0x3cfe06(0x213)][_0x3cfe06(0x1fe)][_0x3cfe06(0x1e8)]=0x1,this[_0x3cfe06(0x213)][_0x3cfe06(0x1fe)][_0x3cfe06(0x1e9)]=0x3,this[_0x3cfe06(0x1df)]=this[_0x3cfe06(0x215)](),this[_0x3cfe06(0x1e6)]=this[_0x3cfe06(0x1f5)](),this[_0x3cfe06(0x211)][_0x3cfe06(0x1f7)](this[_0x3cfe06(0x1e6)],0x1),this[_0x3cfe06(0x211)][_0x3cfe06(0x1f7)](this[_0x3cfe06(0x1df)]);}[_0x4f8db8(0x209)](){const _0x8aae34=_0x4f8db8;super[_0x8aae34(0x209)](),this[_0x8aae34(0x213)][_0x8aae34(0x1f8)][_0x8aae34(0x1f7)](this[_0x8aae34(0x1e6)]),this[_0x8aae34(0x203)][_0x8aae34(0x1f7)](this[_0x8aae34(0x1df)]),this[_0x8aae34(0x20a)][_0x8aae34(0x1e5)](_0x8aae34(0x20b),(_0xa4f114,_0x405017)=>{const _0x524abb=_0x8aae34;_0xa4f114[_0x524abb(0x1fa)]==this[_0x524abb(0x213)][_0x524abb(0x1fe)][_0x524abb(0x216)]&&(this[_0x524abb(0x1eb)](),_0x405017());});}[_0x4f8db8(0x215)](){const _0xc0c461=_0x4f8db8,_0x51bfb3=new _0x515b31(this[_0xc0c461(0x201)]),_0x36b48f=this[_0xc0c461(0x201)];return _0x51bfb3[_0xc0c461(0x1e5)]({'icon':_0x155771,'label':_0x33bca6(_0x36b48f,_0xc0c461(0x210)),'isVisible':!0x0,'tooltip':!0x0,'class':_0xc0c461(0x218)}),_0x51bfb3['on'](_0xc0c461(0x207),()=>{const _0x4bb62c=_0xc0c461;this[_0x4bb62c(0x1eb)]();}),_0x51bfb3[_0xc0c461(0x1ea)](_0xc0c461(0x20d))['to'](this[_0xc0c461(0x213)][_0xc0c461(0x1fe)],_0xc0c461(0x1e4),this,_0xc0c461(0x20d),(_0x580480,_0x8ec4e7)=>!_0x580480&&_0x8ec4e7),_0x51bfb3;}[_0x4f8db8(0x1f5)](){const _0x47bc9b=_0x4f8db8,_0x419a22=new _0x515b31(this[_0x47bc9b(0x201)]),_0xa1d99b=this[_0x47bc9b(0x1f3)],_0x1bd43b=this[_0x47bc9b(0x201)];_0x419a22[_0x47bc9b(0x1e5)]({'label':_0x33bca6(_0x1bd43b,_0x47bc9b(0x1e2)),'withText':!0x1,'icon':_0x2fda7d[_0x47bc9b(0x1e1)],'tooltip':!0x0,'tooltipPosition':'sw','class':_0x47bc9b(0x208)}),_0x419a22[_0x47bc9b(0x1ea)](_0x47bc9b(0x20c))['to'](_0xa1d99b,_0x47bc9b(0x202)),_0x419a22[_0x47bc9b(0x1ea)](_0x47bc9b(0x20d))['to'](this,_0x47bc9b(0x20d)),_0x419a22['on'](_0x47bc9b(0x207),()=>{const _0x10e4e6=_0x47bc9b;_0xa1d99b[_0x10e4e6(0x202)]=!_0xa1d99b[_0x10e4e6(0x202)],_0xa1d99b[_0x10e4e6(0x202)]?this[_0x10e4e6(0x1f4)][_0x10e4e6(0x200)]():this[_0x10e4e6(0x200)]();});const _0x48e4e0=()=>{const _0x3e493e=_0x47bc9b;_0xab9524[_0x3e493e(0x212)][_0x3e493e(0x204)](()=>{const _0x2e02e3=_0x3e493e;if(_0x248e8f(this[_0x2e02e3(0x216)])){const _0x40f823=new _0x2f0599(this[_0x2e02e3(0x213)][_0x2e02e3(0x1fe)][_0x2e02e3(0x216)]),_0x482bd3=_0x40f823[_0x2e02e3(0x1f9)],_0x3a631a=_0x2e02e3(0x1de)===_0x1bd43b[_0x2e02e3(0x21a)]?_0x2e02e3(0x1ed):_0x2e02e3(0x1ff);_0x40f823[_0x2e02e3(0x1f2)](),_0x419a22[_0x2e02e3(0x216)][_0x2e02e3(0x1f1)][_0x3a631a]=_0x482bd3-_0x40f823[_0x2e02e3(0x1f9)]+0x1+'px';}});};return this[_0x47bc9b(0x213)][_0x47bc9b(0x1fe)]['on'](_0x47bc9b(0x217),_0x48e4e0),this['on'](_0x47bc9b(0x209),_0x48e4e0),_0x419a22;}[_0x4f8db8(0x1eb)](){const _0x787e59=_0x4f8db8,_0x41f34b=this[_0x787e59(0x213)][_0x787e59(0x1fe)][_0x787e59(0x216)][_0x787e59(0x206)];this[_0x787e59(0x1e3)](_0x787e59(0x1eb),_0x41f34b);}[_0x4f8db8(0x200)](_0x143d33){const _0x5e20b0=_0x4f8db8;-0x1===_0x143d33?this[_0x5e20b0(0x1f6)][_0x5e20b0(0x20f)]():this[_0x5e20b0(0x1f6)][_0x5e20b0(0x1fc)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3c4f87=_0x4943;function _0x4943(_0x5daa72,_0x3dd217){const _0x3dc0eb=_0x3dc0();return _0x4943=function(_0x494340,_0x266767){_0x494340=_0x494340-0x14a;let _0x4a420e=_0x3dc0eb[_0x494340];return _0x4a420e;},_0x4943(_0x5daa72,_0x3dd217);}(function(_0x409d81,_0x4436cc){const _0x49a13d=_0x4943,_0x219a54=_0x409d81();while(!![]){try{const _0x6b58e1=-parseInt(_0x49a13d(0x167))/0x1*(parseInt(_0x49a13d(0x16b))/0x2)+parseInt(_0x49a13d(0x15c))/0x3*(-parseInt(_0x49a13d(0x153))/0x4)+-parseInt(_0x49a13d(0x16f))/0x5*(parseInt(_0x49a13d(0x14e))/0x6)+-parseInt(_0x49a13d(0x14c))/0x7*(parseInt(_0x49a13d(0x15e))/0x8)+parseInt(_0x49a13d(0x151))/0x9*(-parseInt(_0x49a13d(0x16a))/0xa)+-parseInt(_0x49a13d(0x157))/0xb*(parseInt(_0x49a13d(0x164))/0xc)+parseInt(_0x49a13d(0x14f))/0xd;if(_0x6b58e1===_0x4436cc)break;else _0x219a54['push'](_0x219a54['shift']());}catch(_0x3c8f2e){_0x219a54['push'](_0x219a54['shift']());}}}(_0x3dc0,0x37ef8));function _0x3dc0(){const _0x4ad534=['348Irawxo','Insert\x20below','extendTemplate','439193gEdnpq','toUpperCase','REPLACE','75220DmtxQY','2bRbhJb','stopButton','tryAgainButton','ck-ai-form__toolbar','270lvOBEO','insert','ck-hidden','mainAction','Try\x20again','35DVYvTr','locale','21498JIxIbl','20715968PutTYU','label','198CwDxfZ','replace','181084tahjwY','_CONTENT','replaceButton','_createButton','125851zoVJDl','ck-button-action','insertButton','bindTemplate','AI_','3TgXwpp','addMany','302728ROgWuv','set','bind','Stop','items','isVisible'];_0x3dc0=function(){return _0x4ad534;};return _0x3dc0();}import{ToolbarView as _0xa0c60,ButtonView as _0x1da361}from'ckeditor5/src/ui.js';import{getTranslation as _0x5ed62d}from'../../utils/common-translations.js';export const AIFormToolbarViewMainActionLabel={'REPLACE':_0x3c4f87(0x152),'INSERT':_0x3c4f87(0x170)};export default class Tt extends _0xa0c60{constructor(_0x91da89){const _0x542ef1=_0x3c4f87;super(_0x91da89),this[_0x542ef1(0x15f)](_0x542ef1(0x163),!0x1),this[_0x542ef1(0x15f)](_0x542ef1(0x14a),AIFormToolbarViewMainActionLabel[_0x542ef1(0x169)]),this[_0x542ef1(0x155)]=this[_0x542ef1(0x156)]('',_0x542ef1(0x158)),this[_0x542ef1(0x155)][_0x542ef1(0x160)](_0x542ef1(0x150))['to'](this,_0x542ef1(0x14a),_0x2f0c87=>_0x5ed62d(_0x91da89,_0x542ef1(0x15b)+_0x2f0c87[_0x542ef1(0x168)]()+_0x542ef1(0x154))),this[_0x542ef1(0x159)]=this[_0x542ef1(0x156)](_0x5ed62d(_0x91da89,_0x542ef1(0x165))),this[_0x542ef1(0x16d)]=this[_0x542ef1(0x156)](_0x5ed62d(_0x91da89,_0x542ef1(0x14b))),this[_0x542ef1(0x16c)]=this[_0x542ef1(0x156)](_0x5ed62d(_0x91da89,_0x542ef1(0x161)));const _0xd78165=this[_0x542ef1(0x15a)];this[_0x542ef1(0x166)]({'attributes':{'class':[_0x542ef1(0x16e),_0xd78165['if'](_0x542ef1(0x163),_0x542ef1(0x171),_0x1d5db4=>!_0x1d5db4)]}}),this[_0x542ef1(0x162)][_0x542ef1(0x15d)]([this[_0x542ef1(0x155)],this[_0x542ef1(0x159)],this[_0x542ef1(0x16d)],this[_0x542ef1(0x16c)]]);}[_0x3c4f87(0x156)](_0x1835f1,_0x5efb6a){const _0x583aad=_0x3c4f87,_0xc3b19=new _0x1da361(this[_0x583aad(0x14d)]);return _0xc3b19[_0x583aad(0x15f)]({'label':_0x1835f1,'class':_0x5efb6a||'','isVisible':!0x0,'withText':!0x0}),_0xc3b19;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x321b(_0x231982,_0x42537f){const _0x1969fa=_0x1969();return _0x321b=function(_0x321b98,_0x2fe0ed){_0x321b98=_0x321b98-0xa9;let _0x589477=_0x1969fa[_0x321b98];return _0x589477;},_0x321b(_0x231982,_0x42537f);}const _0x3ffec7=_0x321b;(function(_0x7936a,_0x589101){const _0x35fc8a=_0x321b,_0x4426f9=_0x7936a();while(!![]){try{const _0x458e99=-parseInt(_0x35fc8a(0xb8))/0x1*(parseInt(_0x35fc8a(0x100))/0x2)+parseInt(_0x35fc8a(0xd8))/0x3*(-parseInt(_0x35fc8a(0xf2))/0x4)+-parseInt(_0x35fc8a(0xaa))/0x5*(-parseInt(_0x35fc8a(0xc8))/0x6)+parseInt(_0x35fc8a(0xcf))/0x7+parseInt(_0x35fc8a(0xb4))/0x8+parseInt(_0x35fc8a(0xda))/0x9*(-parseInt(_0x35fc8a(0xc5))/0xa)+parseInt(_0x35fc8a(0x101))/0xb*(parseInt(_0x35fc8a(0xd7))/0xc);if(_0x458e99===_0x589101)break;else _0x4426f9['push'](_0x4426f9['shift']());}catch(_0xab353f){_0x4426f9['push'](_0x4426f9['shift']());}}}(_0x1969,0x2af28));import{FocusTracker as _0x4e8d99,KeystrokeHandler as _0x283b30}from'ckeditor5/src/utils.js';import{View as _0x13ce24,FocusCycler as _0xc77b44,createLabeledTextarea as _0x2b4671}from'ckeditor5/src/ui.js';function _0x1969(){const _0x10a924=['bindTemplate','items','bind','text','setTemplate','set','copyButtonView','finishProcessing','263920DiaRNA','Ask\x20AI\x20to\x20edit\x20or\x20generate','fieldView','6jkbUdl','contentArea','focusFirst','focusPrevious','render','ck-hidden','reset','2339554ISTaRW','listenTo','_focusables','replaceContent','handleError','isEnabled','insertButton','submit','191316zmLptT','373062RfZQQL','div','99eXRMUe','shift\x20+\x20tab','errorView','delegate','bindTo','stop','focusLast','_promptHistory','isProcessing','forwardCycle','submitPrompt','isVisible','focusCycler','promptView','createCollection','_createHistoryView','historyGroupView','stopButton','_createPromptView','locale','keystrokes','_createToolbar','backwardCycle','mainAction','8NOaund','queryView','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','trim','tab','value','clearHistory','add','label','Ask\x20AI\x20to\x20improve\x20generated\x20text','tryAgainEvent','focusTracker','ck-ai-form-content','REPLACE','6412uaqCvn','143BrdHHx','high','insertContentBelow','toolbar','545515hrEPJL','element','prompt','tryAgainButton','AI_ERROR_FAILED','startProcessing','ck-ai-form','Empty\x20history','focus','stopProcessing','976448sXynDE','execute','fire','clear','18MwRFyf','search','isError','replaceButton','focusNext'];_0x1969=function(){return _0x10a924;};return _0x1969();}import _0x507c09,{AIFormToolbarViewMainActionLabel as _0x3a47a0}from'./aiformtoolbarview.js';import _0x4f6257 from'./aiformcontentarea.js';import _0x34fd58 from'./aiformerrorview.js';import _0x40112c from'./aiformpromptview.js';import _0x570102 from'./aihistorylistview.js';import _0x205f9e from'./aihistorylistitemview.js';import _0x65c511 from'./prompthistory.js';import{getTranslation as _0x149c91}from'../../utils/common-translations.js';import{escape as _0x33d363}from'lodash-es';export default class x extends _0x13ce24{constructor(_0x3cef28,_0x5810d4,_0x29730e=''){const _0x53c984=_0x321b;super(_0x3cef28),this[_0x53c984(0xc2)](_0x53c984(0xd4),!0x0),this[_0x53c984(0xc2)](_0x53c984(0xe2),!0x1),this[_0x53c984(0xc2)](_0x53c984(0xac),''),this[_0x53c984(0xc2)](_0x53c984(0xf7),''),this[_0x53c984(0xc2)](_0x53c984(0xba),!0x1),this[_0x53c984(0xc2)](_0x53c984(0xf1),_0x3a47a0[_0x53c984(0xff)]),this[_0x53c984(0xe1)]=new _0x65c511(),this[_0x53c984(0xdc)]=new _0x34fd58(_0x3cef28),this[_0x53c984(0xc9)]=new _0x4f6257(_0x3cef28,_0x29730e),this[_0x53c984(0xc9)][_0x53c984(0xbf)](_0x53c984(0xe2))['to'](this),this[_0x53c984(0xc9)][_0x53c984(0xbf)](_0x53c984(0xf7))['to'](this),this[_0x53c984(0xa9)]=this[_0x53c984(0xef)](),this[_0x53c984(0xa9)][_0x53c984(0xbf)](_0x53c984(0xf1))['to'](this),this[_0x53c984(0xe7)]=this[_0x53c984(0xec)](),this[_0x53c984(0xfd)]=new _0x4e8d99(),this[_0x53c984(0xee)]=new _0x283b30(),this[_0x53c984(0xd1)]=this[_0x53c984(0xe8)]([this[_0x53c984(0xc9)],this[_0x53c984(0xc9)][_0x53c984(0xc3)],this[_0x53c984(0xa9)],this[_0x53c984(0xe7)]]),this[_0x53c984(0xe6)]=new _0xc77b44({'focusables':this[_0x53c984(0xd1)],'focusTracker':this[_0x53c984(0xfd)],'keystrokeHandler':this[_0x53c984(0xee)],'actions':{'focusPrevious':_0x53c984(0xdb),'focusNext':_0x53c984(0xf6)}}),this[_0x53c984(0xe7)][_0x53c984(0xe6)]['on'](_0x53c984(0xe3),_0x315b3b=>{const _0x140b83=_0x53c984;this[_0x140b83(0xe6)][_0x140b83(0xbc)](),_0x315b3b[_0x140b83(0xdf)]();}),this[_0x53c984(0xe7)][_0x53c984(0xe6)]['on'](_0x53c984(0xf0),_0x56af45=>{const _0x5f5468=_0x53c984;this[_0x5f5468(0xe6)][_0x5f5468(0xcb)](),_0x56af45[_0x5f5468(0xdf)]();}),this[_0x53c984(0xe7)][_0x53c984(0xf3)][_0x53c984(0xc7)][_0x53c984(0xbf)](_0x53c984(0xf7))['to'](this,_0x53c984(0xac));const _0x26277c=this[_0x53c984(0xbd)];this[_0x53c984(0xc1)]({'tag':_0x53c984(0xd9),'attributes':{'class':['ck',_0x53c984(0xb0),_0x5810d4],'tabindex':'-1'},'children':[{'tag':_0x53c984(0xd9),'attributes':{'class':['ck',_0x53c984(0xfe)]},'children':[{'tag':_0x53c984(0xd9),'attributes':{'class':[_0x26277c['if'](_0x53c984(0xba),_0x53c984(0xcd),_0x1618a3=>!_0x1618a3)]},'children':[this[_0x53c984(0xdc)]]},this[_0x53c984(0xc9)],this[_0x53c984(0xa9)],this[_0x53c984(0xe7)]]}]});}[_0x3ffec7(0xcc)](){const _0x8611d4=_0x3ffec7;super[_0x8611d4(0xcc)](),this[_0x8611d4(0xfd)][_0x8611d4(0xf9)](this[_0x8611d4(0xc9)][_0x8611d4(0xab)]),this[_0x8611d4(0xfd)][_0x8611d4(0xf9)](this[_0x8611d4(0xc9)][_0x8611d4(0xc3)][_0x8611d4(0xab)]),this[_0x8611d4(0xfd)][_0x8611d4(0xf9)](this[_0x8611d4(0xa9)][_0x8611d4(0xab)]),this[_0x8611d4(0xfd)][_0x8611d4(0xf9)](this[_0x8611d4(0xe7)][_0x8611d4(0xab)]),this[_0x8611d4(0xee)][_0x8611d4(0xd0)](this[_0x8611d4(0xab)]);}[_0x3ffec7(0xb2)](_0x5d094f=0x1){const _0x234785=_0x3ffec7;-0x1===_0x5d094f?this[_0x234785(0xe6)][_0x234785(0xe0)]():this[_0x234785(0xe6)][_0x234785(0xca)]();}[_0x3ffec7(0xce)](){const _0xb5fcc6=_0x3ffec7;this[_0xb5fcc6(0xac)]='',this[_0xb5fcc6(0xf7)]='',this[_0xb5fcc6(0xba)]=!0x1,this[_0xb5fcc6(0xe7)][_0xb5fcc6(0xce)](),this[_0xb5fcc6(0xc9)][_0xb5fcc6(0xe5)]=!0x1,this[_0xb5fcc6(0xa9)][_0xb5fcc6(0xe5)]=!0x1;}[_0x3ffec7(0xec)](){const _0x737698=_0x3ffec7,_0x22a26d=this[_0x737698(0xed)],_0x10aadf=new _0x40112c(_0x22a26d,{'queryView':{'label':_0x149c91(_0x22a26d,_0x737698(0xc6)),'creator':_0x2b4671,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x149c91(_0x22a26d,_0x737698(0xb1)),'secondary':_0x149c91(_0x22a26d,_0x737698(0xf4))}}},'filteredView':this[_0x737698(0xe9)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x10aadf[_0x737698(0xbf)](_0x737698(0xd4))['to'](this,_0x737698(0xd4),this,_0x737698(0xe2),(_0x3b5716,_0x367f01)=>_0x3b5716&&!_0x367f01),this[_0x737698(0xd0)](_0x10aadf,_0x737698(0xd6),(_0x947292,_0x178109)=>{const _0x189f80=_0x737698;this[_0x189f80(0xac)]=_0x178109;const _0x53ec28=_0x33d363(_0x178109);this[_0x189f80(0xb6)](_0x189f80(0xe4),_0x53ec28),_0x178109[_0x189f80(0xf5)]()&&this[_0x189f80(0xe1)][_0x189f80(0xf9)]({'prompt':_0x53ec28},0x0);},{'priority':_0x737698(0x102)}),_0x10aadf;}[_0x3ffec7(0xe9)](){const _0xbb2eea=_0x3ffec7,_0x1793a7=new _0x570102(this[_0xbb2eea(0xed)]);return _0x1793a7[_0xbb2eea(0xea)][_0xbb2eea(0xbe)][_0xbb2eea(0xde)](this[_0xbb2eea(0xe1)])['as'](_0x205f9e),_0x1793a7['on'](_0xbb2eea(0xf8),()=>{const _0x34c9ea=_0xbb2eea;this[_0x34c9ea(0xe1)][_0x34c9ea(0xb7)](),this[_0x34c9ea(0xe7)][_0x34c9ea(0xb9)](''),this[_0x34c9ea(0xe7)][_0x34c9ea(0xb2)]();}),_0x1793a7;}[_0x3ffec7(0xef)](){const _0x7df9b5=_0x3ffec7,_0x34c333=new _0x507c09(this[_0x7df9b5(0xed)]);return _0x34c333[_0x7df9b5(0xbb)][_0x7df9b5(0xbf)](_0x7df9b5(0xd4))['to'](this,_0x7df9b5(0xd4),this,_0x7df9b5(0xe2),this,_0x7df9b5(0xf7),(_0x3c8cc2,_0x1bcd56,_0xfc1377)=>_0x3c8cc2&&!_0x1bcd56&&!!_0xfc1377),_0x34c333[_0x7df9b5(0xbb)][_0x7df9b5(0xdd)](_0x7df9b5(0xb5))['to'](this,_0x7df9b5(0xd2)),_0x34c333[_0x7df9b5(0xd5)][_0x7df9b5(0xbf)](_0x7df9b5(0xd4))['to'](this,_0x7df9b5(0xd4),this,_0x7df9b5(0xe2),this,_0x7df9b5(0xf7),(_0x3200d9,_0x4d5e63,_0xa22f46)=>_0x3200d9&&!_0x4d5e63&&!!_0xa22f46),_0x34c333[_0x7df9b5(0xd5)][_0x7df9b5(0xdd)](_0x7df9b5(0xb5))['to'](this,_0x7df9b5(0x103)),_0x34c333[_0x7df9b5(0xad)][_0x7df9b5(0xbf)](_0x7df9b5(0xd4))['to'](this,_0x7df9b5(0xd4),this,_0x7df9b5(0xe2),(_0x9f5c87,_0x497aae)=>_0x9f5c87&&!_0x497aae),_0x34c333[_0x7df9b5(0xad)][_0x7df9b5(0xdd)](_0x7df9b5(0xb5))['to'](this,_0x7df9b5(0xfc)),_0x34c333[_0x7df9b5(0xeb)][_0x7df9b5(0xbf)](_0x7df9b5(0xd4))['to'](this,_0x7df9b5(0xe2)),_0x34c333[_0x7df9b5(0xeb)][_0x7df9b5(0xdd)](_0x7df9b5(0xb5))['to'](this,_0x7df9b5(0xb3)),_0x34c333;}[_0x3ffec7(0xaf)](){const _0x4726f5=_0x3ffec7;this[_0x4726f5(0xf7)]='',this[_0x4726f5(0xba)]=!0x1,this[_0x4726f5(0xe2)]=!0x0,this[_0x4726f5(0xc9)][_0x4726f5(0xe5)]=!0x0,this[_0x4726f5(0xa9)][_0x4726f5(0xe5)]=!0x0,this[_0x4726f5(0xc9)][_0x4726f5(0xb2)]();}[_0x3ffec7(0xc4)](){const _0x213a3b=_0x3ffec7,_0x235568=this[_0x213a3b(0xed)];this[_0x213a3b(0xe2)]=!0x1,this[_0x213a3b(0xac)]='',this[_0x213a3b(0xe7)][_0x213a3b(0xce)](),this[_0x213a3b(0xf7)]&&(this[_0x213a3b(0xe7)][_0x213a3b(0xf3)][_0x213a3b(0xfa)]=_0x149c91(_0x235568,_0x213a3b(0xfb)));}[_0x3ffec7(0xd3)](_0x3168c4){const _0x3de255=_0x3ffec7,_0x423bdf=this[_0x3de255(0xed)];this[_0x3de255(0xc4)](),this[_0x3de255(0xba)]=!0x0,this[_0x3de255(0xdc)][_0x3de255(0xc0)]=_0x3168c4||_0x149c91(_0x423bdf,_0x3de255(0xae)),this[_0x3de255(0xf7)]||(this[_0x3de255(0xc9)][_0x3de255(0xe5)]=!0x1);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x470daf,_0x398395){const _0xed7de8=_0x2af2,_0x482435=_0x470daf();while(!![]){try{const _0x147a5a=-parseInt(_0xed7de8(0x126))/0x1*(-parseInt(_0xed7de8(0x125))/0x2)+-parseInt(_0xed7de8(0x12e))/0x3*(-parseInt(_0xed7de8(0x130))/0x4)+parseInt(_0xed7de8(0x12d))/0x5+-parseInt(_0xed7de8(0x124))/0x6*(parseInt(_0xed7de8(0x12b))/0x7)+-parseInt(_0xed7de8(0x121))/0x8+-parseInt(_0xed7de8(0x120))/0x9*(-parseInt(_0xed7de8(0x128))/0xa)+-parseInt(_0xed7de8(0x11f))/0xb;if(_0x147a5a===_0x398395)break;else _0x482435['push'](_0x482435['shift']());}catch(_0x43373e){_0x482435['push'](_0x482435['shift']());}}}(_0x12dd,0x847b8));import{ListItemView as _0xe0d342,ButtonView as _0x19535a}from'ckeditor5/src/ui.js';import _0xec4e8f from'../dropdown/buttonlabelwithhighlightview.js';function _0x12dd(){const _0x4f1986=['set','execute','567icoCPR','children','2094680vjezuj','88683tQdSpH','fire','52KjIvwv','12005906aAAlev','63kdQDKk','8007672FtEGpO','prompt','add','8238AIYrqj','677944ssMHnl','3ZQMAXd','locale','1323030sUvmAj'];_0x12dd=function(){return _0x4f1986;};return _0x12dd();}function _0x2af2(_0x1fd296,_0x5bf0bd){const _0x12dd61=_0x12dd();return _0x2af2=function(_0x2af286,_0x450a94){_0x2af286=_0x2af286-0x11f;let _0x2c8070=_0x12dd61[_0x2af286];return _0x2c8070;},_0x2af2(_0x1fd296,_0x5bf0bd);}import{unescape as _0x31179c}from'lodash-es';export default class hs extends _0xe0d342{constructor(_0x14b823){const _0x47f558=_0x2af2;super();const _0x48bd05=new _0xec4e8f(),_0x5a924a=new _0x19535a(this[_0x47f558(0x127)],_0x48bd05);this[_0x47f558(0x12c)][_0x47f558(0x123)](_0x5a924a),_0x5a924a[_0x47f558(0x129)]({'label':_0x14b823[_0x47f558(0x122)],'withText':!0x0}),_0x5a924a['on'](_0x47f558(0x12a),()=>{const _0x3545da=_0x47f558;this[_0x3545da(0x12f)](_0x3545da(0x12a),{'value':_0x31179c(_0x14b823[_0x3545da(0x122)])});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x139e(_0x3e09e9,_0x8a1c5b){const _0x5c028a=_0x5c02();return _0x139e=function(_0x139ea4,_0x1d9e85){_0x139ea4=_0x139ea4-0x1ac;let _0x2e9150=_0x5c028a[_0x139ea4];return _0x2e9150;},_0x139e(_0x3e09e9,_0x8a1c5b);}const _0x93a3c5=_0x139e;function _0x5c02(){const _0x13c1e4=['1632813PNICdm','label','6948760cOiZeq','clearHistoryButton','historyGroupView','Clear','locale','Prompt\x20history','34375uWHHnE','length','delegate','4CTdSby','fire','644504QdnfoY','_createClearHistoryButton','execute','514071AZpwlM','add','children','2558087NBzqse','125522kYOSbJ','filter','clearHistory','items','6UvjmYJ','set'];_0x5c02=function(){return _0x13c1e4;};return _0x5c02();}(function(_0x5ed145,_0x5199ac){const _0x2cebf5=_0x139e,_0x7f2756=_0x5ed145();while(!![]){try{const _0x3ec30e=parseInt(_0x2cebf5(0x1c3))/0x1*(parseInt(_0x2cebf5(0x1b2))/0x2)+-parseInt(_0x2cebf5(0x1b8))/0x3+parseInt(_0x2cebf5(0x1c5))/0x4+parseInt(_0x2cebf5(0x1c0))/0x5+-parseInt(_0x2cebf5(0x1b6))/0x6*(parseInt(_0x2cebf5(0x1b1))/0x7)+parseInt(_0x2cebf5(0x1ba))/0x8+parseInt(_0x2cebf5(0x1ae))/0x9;if(_0x3ec30e===_0x5199ac)break;else _0x7f2756['push'](_0x7f2756['shift']());}catch(_0x487710){_0x7f2756['push'](_0x7f2756['shift']());}}}(_0x5c02,0x6a367));import{ListView as _0x316a1c,ListItemGroupView as _0x3e9368,ButtonView as _0x2907a1}from'ckeditor5/src/ui.js';import{getTranslation as _0x12968a}from'../../utils/common-translations.js';export default class rs extends _0x316a1c{constructor(_0x12f58a){const _0x8bea36=_0x139e;super(_0x12f58a),this[_0x8bea36(0x1bb)]=this[_0x8bea36(0x1ac)](),this[_0x8bea36(0x1bc)]=new _0x3e9368(),this[_0x8bea36(0x1bc)][_0x8bea36(0x1b0)][_0x8bea36(0x1af)](this[_0x8bea36(0x1bb)],0x1),this[_0x8bea36(0x1bc)][_0x8bea36(0x1b9)]=_0x12968a(_0x12f58a,_0x8bea36(0x1bf)),this[_0x8bea36(0x1bc)][_0x8bea36(0x1b5)][_0x8bea36(0x1c2)](_0x8bea36(0x1ad))['to'](this),this[_0x8bea36(0x1b5)][_0x8bea36(0x1af)](this[_0x8bea36(0x1bc)]);}[_0x93a3c5(0x1b3)](){const _0x146513=_0x93a3c5;let _0x2f4051=0x0;for(const _0x2dc5fd of this[_0x146513(0x1b5)])_0x2f4051+=_0x2dc5fd[_0x146513(0x1b5)][_0x146513(0x1c1)];return{'resultsCount':_0x2f4051,'totalItemsCount':_0x2f4051};}[_0x93a3c5(0x1ac)](){const _0x50230a=_0x93a3c5,_0x565e13=this[_0x50230a(0x1be)],_0x2fd2b1=new _0x2907a1(this[_0x50230a(0x1be)]);return _0x2fd2b1[_0x50230a(0x1b7)]({'label':'('+_0x12968a(_0x565e13,_0x50230a(0x1bd))+')','withText':!0x0}),_0x2fd2b1['on'](_0x50230a(0x1ad),()=>this[_0x50230a(0x1c4)](_0x50230a(0x1b4))),_0x2fd2b1;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4b76c3=_0x52c8;function _0x52c8(_0x1cb6e9,_0x53ea73){const _0x33a63a=_0x33a6();return _0x52c8=function(_0x52c8e9,_0x5ac65c){_0x52c8e9=_0x52c8e9-0x190;let _0x55e86d=_0x33a63a[_0x52c8e9];return _0x55e86d;},_0x52c8(_0x1cb6e9,_0x53ea73);}(function(_0x2c9571,_0x298508){const _0xd988b3=_0x52c8,_0x4e8f51=_0x2c9571();while(!![]){try{const _0x488587=parseInt(_0xd988b3(0x193))/0x1*(-parseInt(_0xd988b3(0x19c))/0x2)+-parseInt(_0xd988b3(0x1a0))/0x3+parseInt(_0xd988b3(0x198))/0x4*(-parseInt(_0xd988b3(0x1a2))/0x5)+-parseInt(_0xd988b3(0x1a6))/0x6+-parseInt(_0xd988b3(0x19d))/0x7+parseInt(_0xd988b3(0x195))/0x8*(-parseInt(_0xd988b3(0x19a))/0x9)+parseInt(_0xd988b3(0x190))/0xa*(parseInt(_0xd988b3(0x19e))/0xb);if(_0x488587===_0x298508)break;else _0x4e8f51['push'](_0x4e8f51['shift']());}catch(_0x4f958b){_0x4e8f51['push'](_0x4e8f51['shift']());}}}(_0x33a6,0xa7660));import{Collection as _0x12b1f7}from'ckeditor5/src/utils.js';const cs=_0x4b76c3(0x191);export default class os extends _0x12b1f7{constructor(){const _0x10e97f=_0x4b76c3;super(),this[_0x10e97f(0x1aa)](),this['on'](_0x10e97f(0x197),(_0x3f5a6a,_0x4d1f50)=>{const _0x4c3e5f=_0x10e97f,_0x55519c=Ss(_0x4d1f50[_0x4c3e5f(0x1a1)]);for(const _0x792c7 of this)if(_0x792c7!=_0x4d1f50&&Ss(_0x792c7[_0x4c3e5f(0x1a1)])===_0x55519c){this[_0x4c3e5f(0x19b)](_0x792c7);break;}this[_0x4c3e5f(0x1a4)]>0x14&&this[_0x4c3e5f(0x19b)](this[_0x4c3e5f(0x194)]),this[_0x4c3e5f(0x196)]();}),this['on'](_0x10e97f(0x19b),()=>{const _0x3e86e1=_0x10e97f;this[_0x3e86e1(0x196)]();});}[_0x4b76c3(0x1aa)](){const _0x387c39=_0x4b76c3,_0x5c8487=sessionStorage[_0x387c39(0x199)](cs)||'[]';this[_0x387c39(0x1a8)](JSON[_0x387c39(0x1a5)](_0x5c8487));}[_0x4b76c3(0x196)](){const _0x45b6fa=_0x4b76c3;sessionStorage[_0x45b6fa(0x1a3)](cs,JSON[_0x45b6fa(0x1a9)](this[_0x45b6fa(0x19f)](_0x243787=>_0x243787)));}}function _0x33a6(){const _0x2f986d=['stringify','_loadFromSessionStorage','39709380XLhoAn','CKEditor/AIFormView/PromptHistory','trim','145efJeJl','last','40QNiwWL','_saveToSessionStorage','add','1441012AZBpzN','getItem','1058301zpRNxW','remove','6048UXQDkR','5280156gXqQaW','11bqIirQ','map','1172862qgzhYP','prompt','10JXgTOu','setItem','length','parse','2358486GRgMln','toLowerCase','addMany'];_0x33a6=function(){return _0x2f986d;};return _0x33a6();}function Ss(_0x36e912){const _0x46b38c=_0x4b76c3;return _0x36e912[_0x46b38c(0x1a7)]()[_0x46b38c(0x192)]();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x11dde3=_0x31fa;(function(_0x22815a,_0x22a5d8){const _0x5f061b=_0x31fa,_0x404b4b=_0x22815a();while(!![]){try{const _0x7179e2=parseInt(_0x5f061b(0x1ac))/0x1+-parseInt(_0x5f061b(0x1ad))/0x2+-parseInt(_0x5f061b(0x1b3))/0x3+-parseInt(_0x5f061b(0x1a5))/0x4+parseInt(_0x5f061b(0x19b))/0x5+parseInt(_0x5f061b(0x1ab))/0x6*(-parseInt(_0x5f061b(0x19d))/0x7)+parseInt(_0x5f061b(0x19c))/0x8;if(_0x7179e2===_0x22a5d8)break;else _0x404b4b['push'](_0x404b4b['shift']());}catch(_0x5db45f){_0x404b4b['push'](_0x404b4b['shift']());}}}(_0x3d86,0xc65b8));import{Command as _0x4277a4}from'ckeditor5/src/core.js';import _0x13818d from'../aiassistantui.js';export default class j extends _0x4277a4{constructor(_0x244241,_0x2c6774){const _0x122c95=_0x31fa;super(_0x244241),this[_0x122c95(0x194)]=_0x2c6774?_0x2c6774[_0x122c95(0x18a)]((_0x16c9c7,_0x27e62f)=>_0x16c9c7[_0x122c95(0x197)](_0x27e62f[_0x122c95(0x1a7)]),new Array()):[],this[_0x122c95(0x19e)](_0x122c95(0x192),[]),this['on'](_0x122c95(0x18d),(_0x7d0555,_0x3d1ed5,_0x56f969)=>{const _0x3dd8df=_0x122c95;this[_0x3dd8df(0x196)]&&(this[_0x3dd8df(0x192)]=G(this[_0x3dd8df(0x194)],_0x56f969));}),this[_0x122c95(0x19e)](_0x122c95(0x195),!0x1),this['on'](_0x122c95(0x18b),(_0x35354e,_0x237bed,_0x2f6b3d)=>{const _0x3da830=_0x122c95;this[_0x3da830(0x192)]=_0x2f6b3d?G(this[_0x3da830(0x194)],this[_0x3da830(0x195)]):[];});}[_0x11dde3(0x198)](){const _0x4143c0=_0x11dde3,_0x266bdb=this[_0x4143c0(0x1a9)][_0x4143c0(0x1af)];this[_0x4143c0(0x195)]=function(_0x4d7b76){const _0x5443e8=_0x4143c0,_0x5d1028=_0x4d7b76[_0x5443e8(0x1a1)][_0x5443e8(0x18c)];return _0x5d1028[_0x5443e8(0x1aa)]?0x0!==[..._0x5d1028[_0x5443e8(0x188)]()][_0x5443e8(0x1a3)]&&![..._0x5d1028[_0x5443e8(0x188)]()][0x0][_0x5443e8(0x19f)]:!!_0x4d7b76[_0x5443e8(0x1b0)](_0x5d1028[_0x5443e8(0x18e)]());}(_0x266bdb);const _0x3968f7=_0x266bdb[_0x4143c0(0x1a1)][_0x4143c0(0x18c)],_0x5d31fe=this[_0x4143c0(0x1a9)][_0x4143c0(0x199)][_0x4143c0(0x1a0)](_0x4143c0(0x1ae));for(const _0x480ad0 of _0x3968f7[_0x4143c0(0x189)]())for(const _0x121ec5 of _0x480ad0[_0x4143c0(0x1a6)]())if(_0x121ec5['is'](_0x4143c0(0x1a2))&&_0x5d31fe[_0x4143c0(0x1b2)](_0x121ec5[_0x4143c0(0x19a)]))return void(this[_0x4143c0(0x196)]=!0x1);this[_0x4143c0(0x196)]=!0x0;}[_0x11dde3(0x190)](_0x590787='',_0x51aa95='',_0x488948=_0x11dde3(0x1b1)){const _0x48f220=_0x11dde3;this[_0x48f220(0x1a9)][_0x48f220(0x191)][_0x48f220(0x1a0)](_0x13818d)[_0x48f220(0x18f)](_0x590787,_0x51aa95,_0x488948);}}function _0x3d86(){const _0x4c1526=['2144724vsaFnk','getSelectedBlocks','getRanges','reduce','change:isEnabled','selection','change:_hasContext','getFirstRange','showUI','execute','plugins','enabledCommandsIds','requiresContent','_commandDefinitions','_hasContext','isEnabled','concat','refresh','config','name','6444845BNCtoE','1077392AOhblO','113253RnwYtX','set','isEmpty','get','document','element','length','add','2813076JiyWEp','getItems','commands','from','editor','isCollapsed','18FUwUtv','1089140cyFTlp','467194CMRTDr','ai.aiAssistant.disabledElements','model','hasContent','custom','includes'];_0x3d86=function(){return _0x4c1526;};return _0x3d86();}function _0x31fa(_0x2db28e,_0xa66aba){const _0x3d8600=_0x3d86();return _0x31fa=function(_0x31fa7e,_0x3ec497){_0x31fa7e=_0x31fa7e-0x188;let _0x1a049a=_0x3d8600[_0x31fa7e];return _0x1a049a;},_0x31fa(_0x2db28e,_0xa66aba);}function G(_0x2da32d,_0x2ed78b){const _0x5dd9d1=_0x11dde3,_0x4027f1=new Set();for(const _0x376c21 of _0x2da32d)(_0x2ed78b||!0x1===_0x376c21[_0x5dd9d1(0x193)])&&_0x4027f1[_0x5dd9d1(0x1a4)](_0x376c21['id']);return Array[_0x5dd9d1(0x1a8)](_0x4027f1);}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(
|
|
23
|
+
export function getTranslation(_0x2960d5,_0x28a62f,_0x31e5f5){const t=_0x2960d5['t'];switch(_0x28a62f){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',_0x31e5f5);case'English':return t('English');case'Spanish':return t('Spanish');case'German':return t('German');case'Portuguese':return t('Portuguese');case'French':return t('French');case'Simplified\x20Chinese':return t('Simplified\x20Chinese');case'Hindi':return t('Hindi');case'Arabic':return t('Arabic');case'AI\x20Assistant':return t('AI\x20Assistant');case'AI\x20Commands':return t('AI\x20Commands');case'Ask\x20AI\x20to\x20edit\x20or\x20generate':return t('Ask\x20AI\x20to\x20edit\x20or\x20generate');case'Ask\x20AI\x20to\x20improve\x20generated\x20text':return t('Ask\x20AI\x20to\x20improve\x20generated\x20text');case'Copy':return t('Copy');case'Submit':return t('Submit');case'Insert\x20below':return t('Insert\x20below');case'Try\x20again':return t('Try\x20again');case'Stop':return t('Stop');case'AI\x20is\x20writing...':return t('AI\x20is\x20writing...');case'History':return t('History');case'Empty\x20history':return t('Empty\x20history');case'Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.':return t('Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.');case'Prompt\x20history':return t('Prompt\x20history');case'Search\x20AI\x20command':return t('Search\x20AI\x20command');case'No\x20commands\x20found':return t('No\x20commands\x20found');case'No\x20commands\x20available':return t('No\x20commands\x20available');case'Clear':return t('Clear');case'AI_REPLACE_CONTENT':return t({'id':'AI_REPLACE_CONTENT','string':'Replace'});case'AI_INSERT_CONTENT':return t({'id':'AI_INSERT_CONTENT','string':'Insert'});case'AI_ERROR_GET_HEADERS':return t({'id':'AI_ERROR_GET_HEADERS','string':'Preparing\x20request\x20headers\x20failed'});case'AI_ERROR_GET_PARAMETERS':return t({'id':'AI_ERROR_GET_PARAMETERS','string':'Preparing\x20request\x20parameters\x20failed'});case'AI_ERROR_UNSUPPORTED_MODEL':return t({'id':'AI_ERROR_UNSUPPORTED_MODEL','string':'The\x20requested\x20AI\x20model\x20(\x22%0\x22)\x20is\x20not\x20supported'},_0x31e5f5);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 _0x28a62f;}}
|