@ckeditor/ckeditor5-ai 43.0.0-alpha.3 → 43.0.0-alpha.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/dist/index.js +2 -2
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +8 -8
- package/src/adapters/aiadapter.js +1 -1
- package/src/adapters/aitextadapter.js +1 -1
- package/src/adapters/awstextadapter.js +1 -1
- package/src/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant.js +1 -1
- package/src/aiassistantediting.js +1 -1
- package/src/aiassistantui.js +1 -1
- package/src/index.js +1 -1
- package/src/ui/aiassistantcontroller.js +2 -2
- package/src/ui/dropdown/aicommandslistview.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
package/src/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x13f912,_0x2ebacf){var _0x49fec2=_0x47da,_0x5152c5=_0x13f912();while(!![]){try{var _0xa1d422=-parseInt(_0x49fec2(0xbf))/0x1*(-parseInt(_0x49fec2(0xc6))/0x2)+-parseInt(_0x49fec2(0xbd))/0x3+-parseInt(_0x49fec2(0xba))/0x4*(-parseInt(_0x49fec2(0xbc))/0x5)+-parseInt(_0x49fec2(0xc0))/0x6*(parseInt(_0x49fec2(0xc1))/0x7)+parseInt(_0x49fec2(0xc5))/0x8*(parseInt(_0x49fec2(0xc2))/0x9)+parseInt(_0x49fec2(0xc3))/0xa*(-parseInt(_0x49fec2(0xbb))/0xb)+parseInt(_0x49fec2(0xc4))/0xc*(-parseInt(_0x49fec2(0xbe))/0xd);if(_0xa1d422===_0x2ebacf)break;else _0x5152c5['push'](_0x5152c5['shift']());}catch(_0x2ee8ea){_0x5152c5['push'](_0x5152c5['shift']());}}}(_0x58ba,0x52668));export{default as AIAssistant}from'./aiassistant.js';function _0x58ba(){var _0x18ba87=['39HaBerp','1HzoFna','6ArpgVd','2964409nbJuwZ','4941oeEoam','60WakLUE','227628yEserY','4256fGYfDc','1180180IPdqJT','712CJQzAN','561517bcbgJR','12710ykMtNA','631338PvjkBk'];_0x58ba=function(){return _0x18ba87;};return _0x58ba();}function _0x47da(_0x5bae61,_0x5a2977){var _0x58ba4d=_0x58ba();return _0x47da=function(_0x47da0f,_0x4abe94){_0x47da0f=_0x47da0f-0xba;var _0x585332=_0x58ba4d[_0x47da0f];return _0x585332;},_0x47da(_0x5bae61,_0x5a2977);}export{default as AIAdapter,AIRequestError}from'./adapters/aiadapter.js';export{default as AITextAdapter}from'./adapters/aitextadapter.js';export{default as OpenAITextAdapter}from'./adapters/openaitextadapter.js';export{default as AWSTextAdapter}from'./adapters/awstextadapter.js';import'./augmentation.js';
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
24
|
-
|
|
23
|
+
const _0x50830c=_0x5594;function _0x5594(_0x148380,_0x219f5b){const _0x3c51b6=_0x3c51();return _0x5594=function(_0x55940e,_0x3884f1){_0x55940e=_0x55940e-0x16c;let _0x22d990=_0x3c51b6[_0x55940e];return _0x22d990;},_0x5594(_0x148380,_0x219f5b);}(function(_0x40da7b,_0x82eb4b){const _0xa3354d=_0x5594,_0x33db73=_0x40da7b();while(!![]){try{const _0x2f3140=parseInt(_0xa3354d(0x183))/0x1+parseInt(_0xa3354d(0x18c))/0x2*(-parseInt(_0xa3354d(0x1ab))/0x3)+-parseInt(_0xa3354d(0x194))/0x4+parseInt(_0xa3354d(0x1b5))/0x5*(-parseInt(_0xa3354d(0x1c5))/0x6)+parseInt(_0xa3354d(0x1bc))/0x7*(parseInt(_0xa3354d(0x185))/0x8)+-parseInt(_0xa3354d(0x176))/0x9+parseInt(_0xa3354d(0x1c9))/0xa;if(_0x2f3140===_0x82eb4b)break;else _0x33db73['push'](_0x33db73['shift']());}catch(_0x2a1b3d){_0x33db73['push'](_0x33db73['shift']());}}}(_0x3c51,0xa4178));import{ObservableMixin as _0x313fa0}from'ckeditor5/src/utils.js';import{AIRequestError as _0x1aa7f6}from'../adapters/aiadapter.js';function _0x3c51(){const _0x3a0fd5=['document','message','render','306694SbvOsf','startProcessing','text/html','data','startsWith','nodeType','_sanitizationContainer','finishProcessing','2310280FCdlYV','querySelector','previousContext','```html','textAdapter','then','div','once','initialContext','destroy','reverse','_sanitizeHTML','ELEMENT_NODE','_stripMarkdownSyntax','match','updateView','_parseAndNormalizeContent','body','viewToDom','childNodes','stopListening','isProcessing','stopProcessing','21DUVdrb','previousActionId','endsWith','handleError','createElement','submitPrompt','trim','catch','abort','previousQuery','5qhrdKB','editor','mainAction','tryAgainEvent','remove','editing','makeRequest','4996502zdnQfv','previousLabel','isRendered','domConverter','currentContext','_domParser','custom','push','value','7564686lFuZYH','length','set','stringify','28188180RFMyWk','_handleQuery','<h1></h1>','listenTo','view','_normalizeResponseHeadings','processor','rename','reset','serializeToString','exec','finally','4955040NGlXzV','set:currentContext','name','toModel','element','prompt','parseFromString','setContentOf','_xmlSerializer','htmlProcessor','_isH1TagSupportEnabled','```','from','601856MYCMdr','toView','8vlBnty','innerHTML','substring','currentResponse'];_0x3c51=function(){return _0x3a0fd5;};return _0x3c51();}import{Matcher as _0x44ef35,UpcastWriter as _0xe9eff3}from'ckeditor5/src/engine.js';const X=new RegExp(/^(.*?)<[a-zA-Z][a-zA-Z0-9_\-.]*[ >]/,'is');export default class U extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x313fa0(){constructor(_0x1654c3,_0x3b78a8,_0x285a98){const _0x58e5ef=_0x5594;super(),this[_0x58e5ef(0x1b6)]=_0x1654c3,this[_0x58e5ef(0x198)]=_0x3b78a8,this[_0x58e5ef(0x192)]=document[_0x58e5ef(0x1af)](_0x58e5ef(0x19a)),this[_0x58e5ef(0x1c1)]=new DOMParser(),this[_0x58e5ef(0x17e)]=new XMLSerializer(),this[_0x58e5ef(0x16e)]=_0x285a98,this[_0x58e5ef(0x1c7)]({'initialContext':'','currentContext':'','currentResponse':'','previousContext':void 0x0,'previousQuery':void 0x0,'previousLabel':void 0x0,'isProcessing':!0x1}),this['on'](_0x58e5ef(0x177),(_0x2e9f9f,_0x381998,_0x1f62e6)=>{const _0x501f14=_0x58e5ef;this[_0x501f14(0x16e)][_0x501f14(0x1c4)]=this[_0x501f14(0x19f)](_0x1f62e6);}),this[_0x58e5ef(0x16d)](this[_0x58e5ef(0x16e)],_0x58e5ef(0x1b0),(_0x594cb3,_0x943ec0)=>{const _0x4ac9de=_0x58e5ef,_0x2bfc6e=this[_0x4ac9de(0x1c0)]||this[_0x4ac9de(0x19c)];this[_0x4ac9de(0x1ca)](_0x943ec0,_0x2bfc6e,_0x4ac9de(0x1c2));}),this[_0x58e5ef(0x16d)](this[_0x58e5ef(0x16e)],_0x58e5ef(0x1b8),()=>{const _0xd28aaa=_0x58e5ef;this[_0xd28aaa(0x16e)][_0xd28aaa(0x17b)]=this[_0xd28aaa(0x1bd)],this[_0xd28aaa(0x1ca)](this[_0xd28aaa(0x1b4)],this[_0xd28aaa(0x196)],this[_0xd28aaa(0x1ac)],this[_0xd28aaa(0x1bd)]);}),this[_0x58e5ef(0x16d)](this[_0x58e5ef(0x16e)],_0x58e5ef(0x1aa),()=>{const _0x3426d1=_0x58e5ef;this[_0x3426d1(0x1aa)]();});}[_0x50830c(0x19d)](){const _0x4eb186=_0x50830c;this[_0x4eb186(0x1a8)]();}async[_0x50830c(0x1a3)]({actionId:_0x2d514a,query:_0x57c14d,htmlContent:_0x1b6ce1,label:_0x5dd84b,mainActionLabel:_0x1d118a}){const _0x21bfec=_0x50830c;this[_0x21bfec(0x16e)][_0x21bfec(0x17b)]=_0x5dd84b,this[_0x21bfec(0x16e)][_0x21bfec(0x1b7)]=_0x1d118a,this[_0x21bfec(0x19c)]=_0x1b6ce1,_0x57c14d&&(this[_0x21bfec(0x16e)][_0x21bfec(0x1be)]?this[_0x21bfec(0x1ca)](_0x57c14d,_0x1b6ce1,_0x2d514a,_0x5dd84b):this[_0x21bfec(0x16e)][_0x21bfec(0x19b)](_0x21bfec(0x18b),()=>{const _0x90e02=_0x21bfec;this[_0x90e02(0x1ca)](_0x57c14d,_0x1b6ce1,_0x2d514a,_0x5dd84b);}));}[_0x50830c(0x1aa)](){const _0x50b101=_0x50830c;this[_0x50b101(0x1a9)]&&(this[_0x50b101(0x1a9)]=!0x1,this[_0x50b101(0x16e)][_0x50b101(0x193)](),this[_0x50b101(0x198)][_0x50b101(0x1b3)]());}[_0x50830c(0x172)](){const _0x2813fb=_0x50830c;this[_0x2813fb(0x19c)]='',this[_0x2813fb(0x1c0)]='',this[_0x2813fb(0x188)]='',this[_0x2813fb(0x196)]='',this[_0x2813fb(0x1b4)]='',this[_0x2813fb(0x1bd)]='',this[_0x2813fb(0x1ac)]=void 0x0,this[_0x2813fb(0x16e)][_0x2813fb(0x172)](),this[_0x2813fb(0x1aa)]();}async[_0x50830c(0x1ca)](_0x59d253,_0x47fffc,_0x30ddeb,_0x3a8440){const _0xcd104d=_0x50830c;return this[_0xcd104d(0x1a9)]=!0x0,this[_0xcd104d(0x16e)][_0xcd104d(0x18d)](),this[_0xcd104d(0x196)]=_0x47fffc,this[_0xcd104d(0x1b4)]=_0x59d253,this[_0xcd104d(0x1bd)]=_0x3a8440||_0x59d253,this[_0xcd104d(0x1ac)]=_0x30ddeb,new Promise(_0x5ef230=>{const _0x1173f0=_0xcd104d;this[_0x1173f0(0x198)][_0x1173f0(0x1bb)]({'query':_0x59d253,'context':_0x47fffc,'onData':_0x1a0ebb=>{const _0x3456e4=_0x1173f0;this[_0x3456e4(0x188)]=_0x1a0ebb,this[_0x3456e4(0x1c0)]=this[_0x3456e4(0x1a4)](this[_0x3456e4(0x188)]);},'actionId':_0x30ddeb})[_0x1173f0(0x199)](()=>{const _0x5900a5=_0x1173f0;!this[_0x5900a5(0x1c0)]&&this[_0x5900a5(0x188)]&&(this[_0x5900a5(0x1c0)]=this[_0x5900a5(0x1a4)](this[_0x5900a5(0x188)],!0x0));})[_0x1173f0(0x1b2)](_0x487a25=>{const _0x40c61f=_0x1173f0;_0x487a25 instanceof _0x1aa7f6?this[_0x40c61f(0x16e)][_0x40c61f(0x1ae)](_0x487a25[_0x40c61f(0x18a)]):this[_0x40c61f(0x16e)][_0x40c61f(0x1ae)](),_0x5ef230();})[_0x1173f0(0x175)](()=>{const _0x1faaa1=_0x1173f0;this[_0x1faaa1(0x1aa)](),_0x5ef230();});});}[_0x50830c(0x1a4)](_0x4fa770,_0x4d6e02=!0x1){const _0x39955b=_0x50830c,_0x4a86da=X[_0x39955b(0x174)](_0x4fa770);_0x4fa770=_0x4a86da?_0x4fa770[_0x39955b(0x187)](_0x4a86da[0x1][_0x39955b(0x1c6)]):_0x4fa770[_0x39955b(0x1c6)]<0x64&&!_0x4d6e02?'':this[_0x39955b(0x1a1)](_0x4fa770);const _0x374d78=this[_0x39955b(0x1c1)][_0x39955b(0x17c)](_0x4fa770,_0x39955b(0x18e));if(_0x4a86da){const _0x3e17e0=Array[_0x39955b(0x182)](_0x374d78[_0x39955b(0x1a5)][_0x39955b(0x1a7)]);_0x3e17e0[_0x39955b(0x19e)]();for(const _0x46c101 of _0x3e17e0){if(_0x46c101[_0x39955b(0x191)]==Node[_0x39955b(0x1a0)])break;_0x46c101[_0x39955b(0x1b9)]();}}const _0x305061=this[_0x39955b(0x1b6)][_0x39955b(0x18f)][_0x39955b(0x170)][_0x39955b(0x184)](this[_0x39955b(0x17e)][_0x39955b(0x173)](_0x374d78[_0x39955b(0x1a5)]));return this[_0x39955b(0x180)]()||this[_0x39955b(0x16f)](_0x305061),this[_0x39955b(0x1b6)][_0x39955b(0x18f)][_0x39955b(0x1c8)](this[_0x39955b(0x1b6)][_0x39955b(0x18f)][_0x39955b(0x179)](_0x305061));}[_0x50830c(0x16f)](_0x5f1c96){const _0x4c9f55=_0x50830c,_0x1b0235=new _0xe9eff3(this[_0x4c9f55(0x1b6)][_0x4c9f55(0x1ba)][_0x4c9f55(0x16e)][_0x4c9f55(0x189)]),_0x3fd631=new _0x44ef35({'name':/^h[1-5]$/}),_0x1ea32a=[];let _0x5875a4=!0x1;for(const _0x2de96b of _0x5f1c96)_0x2de96b['is'](_0x4c9f55(0x17a))&&_0x3fd631[_0x4c9f55(0x1a2)](_0x2de96b)&&(_0x1ea32a[_0x4c9f55(0x1c3)](_0x2de96b),'h1'==_0x2de96b[_0x4c9f55(0x178)]&&(_0x5875a4=!0x0));if(_0x5875a4){for(const _0x56216d of _0x1ea32a)_0x1b0235[_0x4c9f55(0x171)]('h'+(parseInt(_0x56216d[_0x4c9f55(0x178)][0x1])+0x1),_0x56216d);}}[_0x50830c(0x180)](){const _0x4ae37b=_0x50830c,{data:_0x528997,editing:_0xa077ba}=this[_0x4ae37b(0x1b6)],_0x1eb7bc=_0x528997[_0x4ae37b(0x17f)][_0x4ae37b(0x184)](_0x4ae37b(0x16c)),_0x3008f7=_0x528997[_0x4ae37b(0x184)](_0x528997[_0x4ae37b(0x179)](_0x1eb7bc));return!!_0xa077ba[_0x4ae37b(0x16e)][_0x4ae37b(0x1bf)][_0x4ae37b(0x1a6)](_0x3008f7)[_0x4ae37b(0x195)]('h1');}[_0x50830c(0x19f)](_0x111bf1){const _0x11599d=_0x50830c;return this[_0x11599d(0x1b6)][_0x11599d(0x1ba)][_0x11599d(0x16e)][_0x11599d(0x1bf)][_0x11599d(0x17d)](this[_0x11599d(0x192)],_0x111bf1),this[_0x11599d(0x192)][_0x11599d(0x186)];}[_0x50830c(0x1a1)](_0x4d3a7e){const _0x1de014=_0x50830c,_0x2fbf38=_0x4d3a7e[_0x1de014(0x1b1)]();return _0x2fbf38[_0x1de014(0x190)](_0x1de014(0x197))?_0x2fbf38[_0x1de014(0x1ad)](_0x1de014(0x181))?_0x2fbf38[_0x1de014(0x187)](0x7,_0x2fbf38[_0x1de014(0x1c6)]-0x3):_0x2fbf38[_0x1de014(0x187)](0x7):_0x4d3a7e;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x40e3c0=_0xd6c8;(function(_0x32c5c9,_0x151852){const _0x3bb17a=_0xd6c8,_0x3ab084=_0x32c5c9();while(!![]){try{const _0x36414f=parseInt(_0x3bb17a(0x8e))/0x1+-parseInt(_0x3bb17a(0x81))/0x2+-parseInt(_0x3bb17a(0x90))/0x3+parseInt(_0x3bb17a(0x89))/0x4+-parseInt(_0x3bb17a(0x86))/0x5+-parseInt(_0x3bb17a(0x8d))/0x6+parseInt(_0x3bb17a(0x8c))/0x7*(parseInt(_0x3bb17a(0x8b))/0x8);if(_0x36414f===_0x151852)break;else _0x3ab084['push'](_0x3ab084['shift']());}catch(_0x4ad710){_0x3ab084['push'](_0x3ab084['shift']());}}}(_0x4c56,0x85675));function _0xd6c8(_0x4fd4d5,_0x2fe447){const _0x4c5661=_0x4c56();return _0xd6c8=function(_0xd6c889,_0x65ac53){_0xd6c889=_0xd6c889-0x81;let _0x3d6d86=_0x4c5661[_0xd6c889];return _0x3d6d86;},_0xd6c8(_0x4fd4d5,_0x2fe447);}import{ListView as _0x393d83,ListItemGroupView as _0x4299da,filterGroupAndItemNames as _0x467fdd}from'ckeditor5/src/ui.js';import{AICommandsListItemView as _0x52933e}from'../../aiassistantui.js';export default class S extends _0x393d83{constructor(_0x50c619){const _0x452dcd=_0xd6c8;super(_0x50c619),this[_0x452dcd(0x83)]=_0x452dcd(0x87),this[_0x452dcd(0x85)](_0x452dcd(0x8f),[]),this['on'](_0x452dcd(0x82),()=>{const _0x3674b9=_0x452dcd;for(const _0x19b7a6 of this[_0x3674b9(0x8a)])if(_0x19b7a6 instanceof _0x4299da){for(const _0xc0d4ad of _0x19b7a6[_0x3674b9(0x8a)])if(_0xc0d4ad instanceof _0x52933e){const _0x53da82=_0xc0d4ad[_0x3674b9(0x88)][_0x3674b9(0x92)](0x0);this[_0x3674b9(0x8f)][_0x3674b9(0x91)](_0xc0d4ad[_0x3674b9(0x84)]['id'])?_0x53da82[_0x3674b9(0x94)]=!0x0:_0x53da82[_0x3674b9(0x94)]=!0x1;}}});}[_0x40e3c0(0x93)](_0x249d3e){const _0x2e1f5a=_0x40e3c0;return _0x467fdd(_0x249d3e,this[_0x2e1f5a(0x8a)]);}}function _0x4c56(){const _0x384f8f=['get','filter','isEnabled','302922WGPUkE','change:enabledCommandsIds','role','commandDefinition','set','2314425inETvZ','listbox','children','1859052hiFgQC','items','8ZsbJbl','7567784pNOelB','4028106mgBMmc','365842cOVYYp','enabledCommandsIds','238797kHBtBZ','includes'];_0x4c56=function(){return _0x384f8f;};return _0x4c56();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x1c38(_0x25b161,_0x143583){const _0x87e9d8=_0x87e9();return _0x1c38=function(_0x1c38ae,_0x421b8c){_0x1c38ae=_0x1c38ae-0x104;let _0x184e9f=_0x87e9d8[_0x1c38ae];return _0x184e9f;},_0x1c38(_0x25b161,_0x143583);}function _0x87e9(){const _0x53eeb8=['lastElementChild','_createLoader','appendLoader','wheel','write','text/html','copy','copyButtonView','mousedown','remove','setTemplate','innerHTML','clipboard','ck-ai-form__loader','_copyHTMLToClipboard','set','firstElementChild','ck-ai-form__content-area--processing','9556832WpNjkJ','change:isProcessing','listenTo','textContent','appendChild','ck-hidden','.ck-ai-form__loader','createElement','check','scrollTo','114355ofRbTt','execCommand','538165XZWqOm','render','removeAllRanges','body','icon','left','setContent','AI\x20is\x20writing...','scrollHeight','value','<span>[</span>','Copy','style','text/plain','execute','-9999px','isProcessing','<span>]</span>','addRange','258GfoCrD','setEndBefore','smooth','1536448rhGSDU','isEnabled','div','ck-ai-form__content-field','position','isVisible','querySelector','class','createRange','\x20ck-ai-form__copy-button--copied','ck-ai-form__content-area','ck-ai-form__copy-button','contentFieldView','ck-content','3057948CtwYkx','focus','bind','element','ck-reset_all-excluded','ClipboardItem','loaderView','change:value','6877213YeSZjg','ck-ai-form__content-area-wrapper','bindTemplate','_createCopyButton','absolute','setStartAfter','locale','getSelection','ck-ai-form__copy-button-wrapper','1831290IFdquI'];_0x87e9=function(){return _0x53eeb8;};return _0x87e9();}const _0x595f14=_0x1c38;(function(_0x2c5f31,_0x3d13b8){const _0x3d28cc=_0x1c38,_0x366df1=_0x2c5f31();while(!![]){try{const _0x235f63=-parseInt(_0x3d28cc(0x136))/0x1+parseInt(_0x3d28cc(0x117))/0x2+-parseInt(_0x3d28cc(0x106))/0x3+parseInt(_0x3d28cc(0x14c))/0x4+parseInt(_0x3d28cc(0x134))/0x5*(parseInt(_0x3d28cc(0x149))/0x6)+parseInt(_0x3d28cc(0x10e))/0x7+-parseInt(_0x3d28cc(0x12a))/0x8;if(_0x235f63===_0x3d13b8)break;else _0x366df1['push'](_0x366df1['shift']());}catch(_0x15c637){_0x366df1['push'](_0x366df1['shift']());}}}(_0x87e9,0x7d630));import{global as _0x32170c}from'ckeditor5/src/utils.js';import{View as _0x22a039,ButtonView as _0x5eaee0,SpinnerView as _0x4eaf87}from'ckeditor5/src/ui.js';import _0x56e29b from'../../../theme/icons/copy.svg';import{getTranslation as _0x69381b}from'../../utils/common-translations.js';import{icons as _0xdff570}from'ckeditor5/src/core.js';export default class ot extends _0x22a039{constructor(_0x988536,_0x14eb8f=''){const _0x126a5f=_0x1c38;super(_0x988536),this[_0x126a5f(0x127)]({'value':null,'isVisible':!0x1,'isProcessing':!0x1});const _0x418da5=this[_0x126a5f(0x110)];this[_0x126a5f(0x104)]=new ContentFieldView(_0x988536,_0x14eb8f),this[_0x126a5f(0x11f)]=this[_0x126a5f(0x111)](),this[_0x126a5f(0x122)]({'tag':_0x126a5f(0x14e),'attributes':{'class':['ck',_0x126a5f(0x10f),_0x418da5['if'](_0x126a5f(0x151),_0x126a5f(0x12f),_0x151a49=>!_0x151a49)],'tabindex':'-1'},'children':[{'tag':_0x126a5f(0x14e),'attributes':{'class':['ck',_0x126a5f(0x156),_0x418da5['if'](_0x126a5f(0x146),_0x126a5f(0x129))]},'children':[this[_0x126a5f(0x104)],{'tag':_0x126a5f(0x14e),'attributes':{'class':['ck',_0x126a5f(0x116)]},'children':[this[_0x126a5f(0x11f)]]}]}]});}[_0x595f14(0x137)](){const _0xfcb5bd=_0x595f14;super[_0xfcb5bd(0x137)](),this[_0xfcb5bd(0x13f)]&&this[_0xfcb5bd(0x104)][_0xfcb5bd(0x13c)](this[_0xfcb5bd(0x13f)]);let _0x27383f=!0x1;this['on'](_0xfcb5bd(0x10d),(_0x2439d6,_0x234574,_0x448821)=>{const _0x4c8d9a=_0xfcb5bd,_0x45312a=!this[_0x4c8d9a(0x104)][_0x4c8d9a(0x109)][_0x4c8d9a(0x152)](_0x4c8d9a(0x130));this[_0x4c8d9a(0x104)][_0x4c8d9a(0x13c)](_0x448821),this[_0x4c8d9a(0x146)]&&_0x45312a&&!_0x27383f&&this[_0x4c8d9a(0x109)][_0x4c8d9a(0x133)]({'top':this[_0x4c8d9a(0x109)][_0x4c8d9a(0x13e)],'behavior':_0x4c8d9a(0x14b)});}),this['on'](_0xfcb5bd(0x12b),(_0x1d7021,_0x571561,_0xfe669e)=>{const _0x2a0ca1=_0xfcb5bd;_0x27383f=!0x1,_0xfe669e?(this[_0x2a0ca1(0x13f)]=null,this[_0x2a0ca1(0x104)][_0x2a0ca1(0x11a)]()):this[_0x2a0ca1(0x13f)]||this[_0x2a0ca1(0x104)][_0x2a0ca1(0x13c)]('');}),this[_0xfcb5bd(0x12c)](this[_0xfcb5bd(0x109)],_0xfcb5bd(0x11b),()=>{_0x27383f=!0x0;}),this[_0xfcb5bd(0x12c)](this[_0xfcb5bd(0x109)],_0xfcb5bd(0x120),()=>{_0x27383f=!0x0;});}[_0x595f14(0x107)](){const _0x25c89c=_0x595f14;this[_0x25c89c(0x109)][_0x25c89c(0x107)]();}[_0x595f14(0x111)](){const _0x54cbac=_0x595f14,_0x58d0d9=this[_0x54cbac(0x114)],_0x25ccfc=new _0x5eaee0(this[_0x54cbac(0x114)]),_0x2528e2=_0x54cbac(0x157);return _0x25ccfc[_0x54cbac(0x127)]({'label':_0x69381b(_0x58d0d9,_0x54cbac(0x141)),'icon':_0x56e29b,'class':_0x2528e2,'tooltip':!0x0}),_0x25ccfc[_0x54cbac(0x108)](_0x54cbac(0x151))['to'](this,_0x54cbac(0x13f),_0x8b14fe=>!!_0x8b14fe),_0x25ccfc[_0x54cbac(0x108)](_0x54cbac(0x14d))['to'](this,_0x54cbac(0x146),_0x17dc1c=>!_0x17dc1c),_0x25ccfc['on'](_0x54cbac(0x144),()=>{const _0x59d3fc=_0x54cbac;this[_0x59d3fc(0x126)](this[_0x59d3fc(0x104)][_0x59d3fc(0x109)]),_0x25ccfc[_0x59d3fc(0x13a)]=_0xdff570[_0x59d3fc(0x132)],_0x25ccfc[_0x59d3fc(0x153)]=_0x2528e2+_0x59d3fc(0x155),this[_0x59d3fc(0x107)](),setTimeout(()=>{const _0x26f843=_0x59d3fc;_0x25ccfc[_0x26f843(0x13a)]=_0x56e29b,_0x25ccfc[_0x26f843(0x153)]=_0x2528e2;},0x3e8);}),_0x25ccfc;}[_0x595f14(0x126)](_0x31476c){const _0x562dc5=_0x595f14,{window:_0x428259,document:_0x1d74e2}=_0x32170c;if(_0x428259[_0x562dc5(0x10b)]){const {Blob:_0x3ac136,ClipboardItem:_0x1289f5}=_0x428259,_0x45997a=[new _0x1289f5({'text/html':new _0x3ac136([_0x31476c[_0x562dc5(0x123)]],{'type':_0x562dc5(0x11d)}),'text/plain':new _0x3ac136([_0x31476c[_0x562dc5(0x12d)]||''],{'type':_0x562dc5(0x143)})})];navigator[_0x562dc5(0x124)][_0x562dc5(0x11c)](_0x45997a);}else{const _0x482910=_0x1d74e2[_0x562dc5(0x131)](_0x562dc5(0x14e));_0x482910[_0x562dc5(0x142)][_0x562dc5(0x150)]=_0x562dc5(0x112),_0x482910[_0x562dc5(0x142)][_0x562dc5(0x13b)]=_0x562dc5(0x145),_0x482910[_0x562dc5(0x123)]=_0x562dc5(0x140)+_0x31476c[_0x562dc5(0x123)]+_0x562dc5(0x147),_0x1d74e2[_0x562dc5(0x139)][_0x562dc5(0x12e)](_0x482910);const _0x1cf622=_0x1d74e2[_0x562dc5(0x154)]();_0x1cf622[_0x562dc5(0x113)](_0x482910[_0x562dc5(0x128)]),_0x1cf622[_0x562dc5(0x14a)](_0x482910[_0x562dc5(0x118)]);const _0x469bf0=_0x428259[_0x562dc5(0x115)]();_0x469bf0[_0x562dc5(0x138)](),_0x469bf0[_0x562dc5(0x148)](_0x1cf622),_0x1d74e2[_0x562dc5(0x135)](_0x562dc5(0x11e)),_0x482910[_0x562dc5(0x121)]();}}}export class ContentFieldView extends _0x22a039{constructor(_0x3e1b06,_0x368dcd=''){const _0x5f2bde=_0x595f14;super(_0x3e1b06),this[_0x5f2bde(0x10c)]=this[_0x5f2bde(0x119)](),this[_0x5f2bde(0x122)]({'tag':_0x5f2bde(0x14e),'attributes':{'class':['ck',_0x5f2bde(0x105),_0x368dcd,_0x5f2bde(0x10a),_0x5f2bde(0x14f)]}});}[_0x595f14(0x13c)](_0x6c33bc){const _0x267a4d=_0x595f14;this[_0x267a4d(0x109)][_0x267a4d(0x123)]=_0x6c33bc;}[_0x595f14(0x11a)](){const _0x4a8c80=_0x595f14;this[_0x4a8c80(0x109)][_0x4a8c80(0x12e)](this[_0x4a8c80(0x10c)][_0x4a8c80(0x109)]);}[_0x595f14(0x119)](){const _0x300a67=_0x595f14,_0x4655ff=new _0x22a039(),_0x3409fa=this[_0x300a67(0x114)],_0x2ebf98=new _0x4eaf87();return _0x2ebf98[_0x300a67(0x151)]=!0x0,_0x4655ff[_0x300a67(0x122)]({'tag':_0x300a67(0x14e),'attributes':{'class':['ck',_0x300a67(0x125)]},'children':[_0x2ebf98,{'text':_0x69381b(_0x3409fa,_0x300a67(0x13d))}]}),_0x4655ff[_0x300a67(0x137)](),_0x4655ff;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x4b963f,_0x13bb5e){const _0x5d364d=_0x57db,_0xf1a6d1=_0x4b963f();while(!![]){try{const _0x2017d8=-parseInt(_0x5d364d(0x201))/0x1*(-parseInt(_0x5d364d(0x1f4))/0x2)+parseInt(_0x5d364d(0x202))/0x3*(-parseInt(_0x5d364d(0x1fa))/0x4)+-parseInt(_0x5d364d(0x1fc))/0x5*(parseInt(_0x5d364d(0x1f8))/0x6)+parseInt(_0x5d364d(0x1f5))/0x7*(parseInt(_0x5d364d(0x205))/0x8)+-parseInt(_0x5d364d(0x1f6))/0x9*(parseInt(_0x5d364d(0x1f7))/0xa)+parseInt(_0x5d364d(0x200))/0xb+-parseInt(_0x5d364d(0x1f9))/0xc*(-parseInt(_0x5d364d(0x204))/0xd);if(_0x2017d8===_0x13bb5e)break;else _0xf1a6d1['push'](_0xf1a6d1['shift']());}catch(_0x4996c2){_0xf1a6d1['push'](_0xf1a6d1['shift']());}}}(_0x49dd,0x25528));import{View as _0x5b60de,IconView as _0x402c2d}from'ckeditor5/src/ui.js';import _0x58ecca from'../../../theme/icons/error.svg';function _0x49dd(){const _0x44b13d=['1656EXuyJr','14780NtQzTe','1494714vKSekn','6588ttHadz','20yJkdMZ','setTemplate','5LIlSgk','set','div','ck-ai-form__error','235576SBpMXt','107rixySk','121101FsTXyA','text','11882vzaFLd','3672GxZyea','bindTemplate','content','1168gxTwGT','4424RYIipK'];_0x49dd=function(){return _0x44b13d;};return _0x49dd();}function _0x57db(_0x45af64,_0x384c62){const _0x49dd2a=_0x49dd();return _0x57db=function(_0x57db8d,_0x3ce17c){_0x57db8d=_0x57db8d-0x1f4;let _0x2be7fb=_0x49dd2a[_0x57db8d];return _0x2be7fb;},_0x57db(_0x45af64,_0x384c62);}export default class at extends _0x5b60de{constructor(_0x22c2e9,_0x50ba3a=''){const _0x1ef075=_0x57db;super(_0x22c2e9);const _0x4b4318=new _0x402c2d(),_0x437d42=this[_0x1ef075(0x206)];this[_0x1ef075(0x1fd)](_0x1ef075(0x203),_0x50ba3a),_0x4b4318[_0x1ef075(0x207)]=_0x58ecca,this[_0x1ef075(0x1fb)]({'tag':_0x1ef075(0x1fe),'attributes':{'class':['ck',_0x1ef075(0x1ff)]},'children':[_0x4b4318,{'text':_0x437d42['to'](_0x1ef075(0x203))}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x218d47=_0x96b9;(function(_0x2e611e,_0x4c94cd){const _0x4b3a45=_0x96b9,_0x4ff744=_0x2e611e();while(!![]){try{const _0x33d308=parseInt(_0x4b3a45(0xf2))/0x1+parseInt(_0x4b3a45(0xe9))/0x2+parseInt(_0x4b3a45(0x111))/0x3+-parseInt(_0x4b3a45(0xf4))/0x4+parseInt(_0x4b3a45(0xf1))/0x5+parseInt(_0x4b3a45(0xfc))/0x6+-parseInt(_0x4b3a45(0xf6))/0x7*(parseInt(_0x4b3a45(0xfe))/0x8);if(_0x33d308===_0x4c94cd)break;else _0x4ff744['push'](_0x4ff744['shift']());}catch(_0x12ac23){_0x4ff744['push'](_0x4ff744['shift']());}}}(_0xb068,0x81272));import{Rect as _0x5061db,global as _0x4b4833,isVisible as _0x335b15}from'ckeditor5/src/utils.js';import{AutocompleteView as _0x26123a,ButtonView as _0x22677f}from'ckeditor5/src/ui.js';function _0x96b9(_0x5efbc8,_0x4e88fe){const _0xb06892=_0xb068();return _0x96b9=function(_0x96b9c2,_0x1a6eb9){_0x96b9c2=_0x96b9c2-0xda;let _0x8bc549=_0xb06892[_0x96b9c2];return _0x8bc549;},_0x96b9(_0x5efbc8,_0x4e88fe);}import{icons as _0x4cc2df}from'ckeditor5/src/core.js';import{getTranslation as _0x3c942b}from'../../utils/common-translations.js';import _0x5cbf00 from'../../../theme/icons/submit.svg';export default class ut extends _0x26123a{constructor(_0x120c7f,_0x5e2dbc){const _0x5403bd=_0x96b9;super(_0x120c7f,_0x5e2dbc),this[_0x5403bd(0xe7)][_0x5403bd(0xef)][_0x5403bd(0x10e)]=0x1,this[_0x5403bd(0xe7)][_0x5403bd(0xef)][_0x5403bd(0xdf)]=0x3,this[_0x5403bd(0x112)]=this[_0x5403bd(0xfb)](),this[_0x5403bd(0xea)]=this[_0x5403bd(0x104)](),this[_0x5403bd(0xe6)][_0x5403bd(0xfd)](this[_0x5403bd(0xea)],0x1),this[_0x5403bd(0xe6)][_0x5403bd(0xfd)](this[_0x5403bd(0x112)]);}[_0x218d47(0xf7)](){const _0x5d0cc4=_0x218d47;super[_0x5d0cc4(0xf7)](),this[_0x5d0cc4(0xe7)][_0x5d0cc4(0x106)][_0x5d0cc4(0xfd)](this[_0x5d0cc4(0xea)]),this[_0x5d0cc4(0x10d)][_0x5d0cc4(0xfd)](this[_0x5d0cc4(0x112)]),this[_0x5d0cc4(0xf8)][_0x5d0cc4(0xda)](_0x5d0cc4(0xe4),(_0xb2c421,_0x42bfdc)=>{const _0x557315=_0x5d0cc4;_0xb2c421[_0x557315(0xf9)]==this[_0x557315(0xe7)][_0x557315(0xef)][_0x557315(0x100)]&&(this[_0x557315(0xf5)](),_0x42bfdc());});}[_0x218d47(0xfb)](){const _0x131963=_0x218d47,_0x155e8f=new _0x22677f(this[_0x131963(0xed)]),_0x4e7038=this[_0x131963(0xed)];return _0x155e8f[_0x131963(0xda)]({'icon':_0x5cbf00,'label':_0x3c942b(_0x4e7038,_0x131963(0xee)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x131963(0x102)}),_0x155e8f['on'](_0x131963(0xdb),()=>{const _0x376ed5=_0x131963;this[_0x376ed5(0xf5)]();}),_0x155e8f[_0x131963(0xec)](_0x131963(0xff))['to'](this[_0x131963(0xe7)][_0x131963(0xef)],_0x131963(0x105),this,_0x131963(0xff),(_0x1561c6,_0x3a701c)=>!_0x1561c6&&_0x3a701c),_0x155e8f;}[_0x218d47(0x104)](){const _0x5310f1=_0x218d47,_0x2bd82f=new _0x22677f(this[_0x5310f1(0xed)]),_0x681a0c=this[_0x5310f1(0xfa)],_0x1ffeb4=this[_0x5310f1(0xed)];_0x2bd82f[_0x5310f1(0xda)]({'label':_0x3c942b(_0x1ffeb4,_0x5310f1(0x10f)),'withText':!0x1,'icon':_0x4cc2df[_0x5310f1(0xeb)],'tooltip':!0x0,'tooltipPosition':'sw','class':_0x5310f1(0x108)}),_0x2bd82f[_0x5310f1(0xec)](_0x5310f1(0x103))['to'](_0x681a0c,_0x5310f1(0xe3)),_0x2bd82f[_0x5310f1(0xec)](_0x5310f1(0xff))['to'](this,_0x5310f1(0xff)),_0x2bd82f['on'](_0x5310f1(0xdb),()=>{const _0x58cffb=_0x5310f1;_0x681a0c[_0x58cffb(0xe3)]=!_0x681a0c[_0x58cffb(0xe3)],_0x681a0c[_0x58cffb(0xe3)]?this[_0x58cffb(0xde)][_0x58cffb(0x10c)]():this[_0x58cffb(0x10c)]();});const _0x5d68f4=()=>{const _0x104991=_0x5310f1;_0x4b4833[_0x104991(0x109)][_0x104991(0x110)](()=>{const _0xbc8f60=_0x104991;if(_0x335b15(this[_0xbc8f60(0x100)])){const _0x125d02=new _0x5061db(this[_0xbc8f60(0xe7)][_0xbc8f60(0xef)][_0xbc8f60(0x100)]),_0x2af8b6=_0x125d02[_0xbc8f60(0x10a)],_0x3b494f=_0xbc8f60(0xdc)===_0x1ffeb4[_0xbc8f60(0x101)]?_0xbc8f60(0xe8):_0xbc8f60(0xe5);_0x125d02[_0xbc8f60(0x10b)](),_0x2bd82f[_0xbc8f60(0x100)][_0xbc8f60(0xf0)][_0x3b494f]=_0x2af8b6-_0x125d02[_0xbc8f60(0x10a)]+0x1+'px';}});};return this[_0x5310f1(0xe7)][_0x5310f1(0xef)]['on'](_0x5310f1(0xe2),_0x5d68f4),this['on'](_0x5310f1(0xf7),_0x5d68f4),_0x2bd82f;}[_0x218d47(0xf5)](){const _0x1b55fa=_0x218d47,_0xc3bffd=this[_0x1b55fa(0xe7)][_0x1b55fa(0xef)][_0x1b55fa(0x100)][_0x1b55fa(0xdd)];this[_0x1b55fa(0x107)](_0x1b55fa(0xf5),_0xc3bffd);}[_0x218d47(0x10c)](_0x547a8c){const _0x2cc09f=_0x218d47;-0x1===_0x547a8c?this[_0x2cc09f(0xf3)][_0x2cc09f(0xe1)]():this[_0x2cc09f(0xf3)][_0x2cc09f(0xe0)]();}}function _0xb068(){const _0x5d224c=['fire','ck-ai-form__toggle-history','window','width','excludeScrollbarsAndBorders','focus','children','minRows','History','requestAnimationFrame','2831871RHTBVP','submitButtonView','set','execute','rtl','value','filteredView','maxRows','focusFirst','focusLast','update','isVisible','enter','right','focusableChildren','queryView','left','1532538kWQQsN','showHistoryButtonView','history','bind','locale','Submit','fieldView','style','118380sWnlzx','946333oVxafe','focusCycler','1191968TjjeTM','submit','4924136hrtVQu','render','keystrokes','target','resultsView','_createSubmitButton','1542666qhBwxk','add','24zkvoDK','isEnabled','element','uiLanguageDirection','ck-ai-form__submit','isOn','_createShowHistoryButton','isEmpty','fieldWrapperChildren'];_0xb068=function(){return _0x5d224c;};return _0xb068();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x3cc64e=_0x15d5;(function(_0x2ee8c5,_0x168550){const _0x2d231e=_0x15d5,_0x13f66c=_0x2ee8c5();while(!![]){try{const _0x1b053e=-parseInt(_0x2d231e(0x138))/0x1*(parseInt(_0x2d231e(0x122))/0x2)+parseInt(_0x2d231e(0x12f))/0x3*(parseInt(_0x2d231e(0x127))/0x4)+-parseInt(_0x2d231e(0x12d))/0x5*(-parseInt(_0x2d231e(0x11d))/0x6)+-parseInt(_0x2d231e(0x126))/0x7+-parseInt(_0x2d231e(0x13a))/0x8*(parseInt(_0x2d231e(0x12c))/0x9)+-parseInt(_0x2d231e(0x11c))/0xa+parseInt(_0x2d231e(0x134))/0xb;if(_0x1b053e===_0x168550)break;else _0x13f66c['push'](_0x13f66c['shift']());}catch(_0x45d9c6){_0x13f66c['push'](_0x13f66c['shift']());}}}(_0x2d37,0xafb24));import{ToolbarView as _0x5a00a0,ButtonView as _0x532c65}from'ckeditor5/src/ui.js';import{getTranslation as _0x48b6c7}from'../../utils/common-translations.js';export const AIFormToolbarViewMainActionLabel={'REPLACE':_0x3cc64e(0x136),'INSERT':_0x3cc64e(0x13f)};export default class At extends _0x5a00a0{constructor(_0x2b0d17){const _0x11ad40=_0x3cc64e;super(_0x2b0d17),this[_0x11ad40(0x121)](_0x11ad40(0x13e),!0x1),this[_0x11ad40(0x121)](_0x11ad40(0x131),AIFormToolbarViewMainActionLabel[_0x11ad40(0x120)]),this[_0x11ad40(0x13d)]=this[_0x11ad40(0x11f)]('',_0x11ad40(0x130)),this[_0x11ad40(0x13d)][_0x11ad40(0x11e)](_0x11ad40(0x128))['to'](this,_0x11ad40(0x131),_0x125272=>_0x48b6c7(_0x2b0d17,_0x11ad40(0x11b)+_0x125272[_0x11ad40(0x11a)]()+_0x11ad40(0x12b))),this[_0x11ad40(0x123)]=this[_0x11ad40(0x11f)](_0x48b6c7(_0x2b0d17,_0x11ad40(0x124))),this[_0x11ad40(0x137)]=this[_0x11ad40(0x11f)](_0x48b6c7(_0x2b0d17,_0x11ad40(0x129))),this[_0x11ad40(0x132)]=this[_0x11ad40(0x11f)](_0x48b6c7(_0x2b0d17,_0x11ad40(0x12a)));const _0x493f0d=this[_0x11ad40(0x133)];this[_0x11ad40(0x12e)]({'attributes':{'class':[_0x11ad40(0x13b),_0x493f0d['if'](_0x11ad40(0x13e),_0x11ad40(0x135),_0x21f836=>!_0x21f836)]}}),this[_0x11ad40(0x13c)][_0x11ad40(0x125)]([this[_0x11ad40(0x13d)],this[_0x11ad40(0x123)],this[_0x11ad40(0x137)],this[_0x11ad40(0x132)]]);}[_0x3cc64e(0x11f)](_0x10197a,_0x3d1696){const _0x48b126=_0x3cc64e,_0x3d30a3=new _0x532c65(this[_0x48b126(0x139)]);return _0x3d30a3[_0x48b126(0x121)]({'label':_0x10197a,'class':_0x3d1696||'','isVisible':!0x0,'withText':!0x0}),_0x3d30a3;}}function _0x15d5(_0x126ab7,_0x511ed7){const _0x2d37b9=_0x2d37();return _0x15d5=function(_0x15d5e1,_0x238ee6){_0x15d5e1=_0x15d5e1-0x11a;let _0x35ef39=_0x2d37b9[_0x15d5e1];return _0x35ef39;},_0x15d5(_0x126ab7,_0x511ed7);}function _0x2d37(){const _0x32eb35=['items','replaceButton','isVisible','insert','toUpperCase','AI_','6044190wljvCR','286236Szqsdw','bind','_createButton','REPLACE','set','632XvVufm','insertButton','Insert\x20below','addMany','9452856YnTdRt','28284VLPDib','label','Try\x20again','Stop','_CONTENT','243sxutKp','75oguCTo','extendTemplate','381bVYigi','ck-button-action','mainAction','stopButton','bindTemplate','30967244sbEPQF','ck-hidden','replace','tryAgainButton','2959pWmbeF','locale','242752zkllHC','ck-ai-form__toolbar'];_0x2d37=function(){return _0x32eb35;};return _0x2d37();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2bb1ad=_0x7242;(function(_0x580ca7,_0x2a403e){const _0x24ed7d=_0x7242,_0x406d36=_0x580ca7();while(!![]){try{const _0x56798b=parseInt(_0x24ed7d(0xb2))/0x1+parseInt(_0x24ed7d(0xc5))/0x2*(parseInt(_0x24ed7d(0xd2))/0x3)+parseInt(_0x24ed7d(0xa2))/0x4+parseInt(_0x24ed7d(0xce))/0x5*(parseInt(_0x24ed7d(0xd1))/0x6)+parseInt(_0x24ed7d(0x96))/0x7+parseInt(_0x24ed7d(0x9c))/0x8*(parseInt(_0x24ed7d(0xcb))/0x9)+-parseInt(_0x24ed7d(0xb5))/0xa;if(_0x56798b===_0x2a403e)break;else _0x406d36['push'](_0x406d36['shift']());}catch(_0x1027e8){_0x406d36['push'](_0x406d36['shift']());}}}(_0x42d3,0x412a9));function _0x42d3(){const _0x384009=['Ask\x20AI\x20to\x20edit\x20or\x20generate','prompt','clear','locale','_createHistoryView','Empty\x20history','execute','tryAgainButton','tab','focus','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','promptView','isEnabled','div','replaceButton','Ask\x20AI\x20to\x20improve\x20generated\x20text','isProcessing','label','2415322hWYnCH','createCollection','insertButton','_promptHistory','insertContentBelow','mainAction','323512ijwxXJ','add','delegate','AI_ERROR_FAILED','shift\x20+\x20tab','items','387292WMUvSw','handleError','focusTracker','contentArea','trim','high','isError','_createPromptView','value','tryAgainEvent','submitPrompt','_createToolbar','render','errorView','element','submit','120672zYaGcE','clearHistory','queryView','11451500fgOjjI','fieldView','reset','ck-ai-form','historyGroupView','keystrokes','stopButton','bindTemplate','fire','startProcessing','isVisible','chain','replaceContent','toolbar','search','focusFirst','97342kgxWIk','listenTo','REPLACE','setTemplate','text','focusCycler','108hdJhlv','ck-ai-form-content','bind','885iGeDTV','bindTo','_focusables','10698MHkGrc','3JgmJnG','ck-hidden','focusLast','copyButtonView','set','stopProcessing','finishProcessing'];_0x42d3=function(){return _0x384009;};return _0x42d3();}import{FocusTracker as _0x213387,KeystrokeHandler as _0x23af68}from'ckeditor5/src/utils.js';import{View as _0x4ffd94,FocusCycler as _0x55a92d,createLabeledTextarea as _0x163f64}from'ckeditor5/src/ui.js';import _0x191648,{AIFormToolbarViewMainActionLabel as _0x451961}from'./aiformtoolbarview.js';import _0x27044c from'./aiformcontentarea.js';import _0x12c4b8 from'./aiformerrorview.js';import _0xf28c60 from'./aiformpromptview.js';import _0x3fd726 from'./aihistorylistview.js';import _0x5cd470 from'./aihistorylistitemview.js';import _0x3d1820 from'./prompthistory.js';import{getTranslation as _0x3fac18}from'../../utils/common-translations.js';import{escape as _0x52e1b8}from'lodash-es';function _0x7242(_0x40a1b3,_0x1d33b8){const _0x42d390=_0x42d3();return _0x7242=function(_0x7242c9,_0x9f858f){_0x7242c9=_0x7242c9-0x8d;let _0x421514=_0x42d390[_0x7242c9];return _0x421514;},_0x7242(_0x40a1b3,_0x1d33b8);}export default class N extends _0x4ffd94{constructor(_0x5c16b7,_0x5d8a3d,_0x1a5ad0=''){const _0x445131=_0x7242;super(_0x5c16b7),this[_0x445131(0xd6)](_0x445131(0x90),!0x0),this[_0x445131(0xd6)](_0x445131(0x94),!0x1),this[_0x445131(0xd6)](_0x445131(0xda),''),this[_0x445131(0xd6)](_0x445131(0xaa),''),this[_0x445131(0xd6)](_0x445131(0xa8),!0x1),this[_0x445131(0xd6)](_0x445131(0x9b),_0x451961[_0x445131(0xc7)]),this[_0x445131(0x99)]=new _0x3d1820(),this[_0x445131(0xaf)]=new _0x12c4b8(_0x5c16b7),this[_0x445131(0xa5)]=new _0x27044c(_0x5c16b7,_0x1a5ad0),this[_0x445131(0xa5)][_0x445131(0xcd)](_0x445131(0x94))['to'](this),this[_0x445131(0xa5)][_0x445131(0xcd)](_0x445131(0xaa))['to'](this),this[_0x445131(0xc2)]=this[_0x445131(0xad)](),this[_0x445131(0xc2)][_0x445131(0xcd)](_0x445131(0x9b))['to'](this),this[_0x445131(0x8f)]=this[_0x445131(0xa9)](),this[_0x445131(0xa4)]=new _0x213387(),this[_0x445131(0xba)]=new _0x23af68(),this[_0x445131(0xd0)]=this[_0x445131(0x97)]([this[_0x445131(0xa5)],this[_0x445131(0xa5)][_0x445131(0xd5)],this[_0x445131(0xc2)],this[_0x445131(0x8f)]]),this[_0x445131(0xca)]=new _0x55a92d({'focusables':this[_0x445131(0xd0)],'focusTracker':this[_0x445131(0xa4)],'keystrokeHandler':this[_0x445131(0xba)],'actions':{'focusPrevious':_0x445131(0xa0),'focusNext':_0x445131(0xe1)}}),this[_0x445131(0xca)][_0x445131(0xc0)](this[_0x445131(0x8f)][_0x445131(0xca)]),this[_0x445131(0x8f)][_0x445131(0xb4)][_0x445131(0xb6)][_0x445131(0xcd)](_0x445131(0xaa))['to'](this,_0x445131(0xda));const _0x5566ed=this[_0x445131(0xbc)];this[_0x445131(0xc8)]({'tag':_0x445131(0x91),'attributes':{'class':['ck',_0x445131(0xb8),_0x5d8a3d],'tabindex':'-1'},'children':[{'tag':_0x445131(0x91),'attributes':{'class':['ck',_0x445131(0xcc)]},'children':[{'tag':_0x445131(0x91),'attributes':{'class':[_0x5566ed['if'](_0x445131(0xa8),_0x445131(0xd3),_0x15415b=>!_0x15415b)]},'children':[this[_0x445131(0xaf)]]},this[_0x445131(0xa5)],this[_0x445131(0xc2)],this[_0x445131(0x8f)]]}]});}[_0x2bb1ad(0xae)](){const _0x126c92=_0x2bb1ad;super[_0x126c92(0xae)](),this[_0x126c92(0xa4)][_0x126c92(0x9d)](this[_0x126c92(0xa5)][_0x126c92(0xb0)]),this[_0x126c92(0xa4)][_0x126c92(0x9d)](this[_0x126c92(0xa5)][_0x126c92(0xd5)][_0x126c92(0xb0)]),this[_0x126c92(0xa4)][_0x126c92(0x9d)](this[_0x126c92(0xc2)][_0x126c92(0xb0)]),this[_0x126c92(0xa4)][_0x126c92(0x9d)](this[_0x126c92(0x8f)][_0x126c92(0xb0)]),this[_0x126c92(0xba)][_0x126c92(0xc6)](this[_0x126c92(0xb0)]);}[_0x2bb1ad(0x8d)](_0x327fa5=0x1){const _0x2e2a0e=_0x2bb1ad;-0x1===_0x327fa5?this[_0x2e2a0e(0xca)][_0x2e2a0e(0xd4)]():this[_0x2e2a0e(0xca)][_0x2e2a0e(0xc4)]();}[_0x2bb1ad(0xb7)](){const _0x49c4d4=_0x2bb1ad;this[_0x49c4d4(0xda)]='',this[_0x49c4d4(0xaa)]='',this[_0x49c4d4(0xa8)]=!0x1,this[_0x49c4d4(0x8f)][_0x49c4d4(0xb7)](),this[_0x49c4d4(0xa5)][_0x49c4d4(0xbf)]=!0x1,this[_0x49c4d4(0xc2)][_0x49c4d4(0xbf)]=!0x1;}[_0x2bb1ad(0xa9)](){const _0x3bef3=_0x2bb1ad,_0x448a9d=this[_0x3bef3(0xdc)],_0x417216=new _0xf28c60(_0x448a9d,{'queryView':{'label':_0x3fac18(_0x448a9d,_0x3bef3(0xd9)),'creator':_0x163f64,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x3fac18(_0x448a9d,_0x3bef3(0xde)),'secondary':_0x3fac18(_0x448a9d,_0x3bef3(0x8e))}}},'filteredView':this[_0x3bef3(0xdd)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x417216[_0x3bef3(0xcd)](_0x3bef3(0x90))['to'](this,_0x3bef3(0x90),this,_0x3bef3(0x94),(_0x4710cc,_0x344308)=>_0x4710cc&&!_0x344308),this[_0x3bef3(0xc6)](_0x417216,_0x3bef3(0xb1),(_0x5f48a0,_0x2061ab)=>{const _0x1bedde=_0x3bef3;this[_0x1bedde(0xda)]=_0x2061ab;const _0x74fb03=_0x52e1b8(_0x2061ab);this[_0x1bedde(0xbd)](_0x1bedde(0xac),_0x74fb03),_0x2061ab[_0x1bedde(0xa6)]()&&this[_0x1bedde(0x99)][_0x1bedde(0x9d)]({'prompt':_0x74fb03},0x0);},{'priority':_0x3bef3(0xa7)}),_0x417216;}[_0x2bb1ad(0xdd)](){const _0x54a165=_0x2bb1ad,_0x251724=new _0x3fd726(this[_0x54a165(0xdc)]);return _0x251724[_0x54a165(0xb9)][_0x54a165(0xa1)][_0x54a165(0xcf)](this[_0x54a165(0x99)])['as'](_0x5cd470),_0x251724['on'](_0x54a165(0xb3),()=>{const _0x5f404d=_0x54a165;this[_0x5f404d(0x99)][_0x5f404d(0xdb)](),this[_0x5f404d(0x8f)][_0x5f404d(0xc3)](''),this[_0x5f404d(0x8f)][_0x5f404d(0x8d)]();}),_0x251724;}[_0x2bb1ad(0xad)](){const _0x106802=_0x2bb1ad,_0x128bee=new _0x191648(this[_0x106802(0xdc)]);return _0x128bee[_0x106802(0x92)][_0x106802(0xcd)](_0x106802(0x90))['to'](this,_0x106802(0x90),this,_0x106802(0x94),this,_0x106802(0xaa),(_0x3b3e86,_0x4f7f83,_0x2a96c0)=>_0x3b3e86&&!_0x4f7f83&&!!_0x2a96c0),_0x128bee[_0x106802(0x92)][_0x106802(0x9e)](_0x106802(0xdf))['to'](this,_0x106802(0xc1)),_0x128bee[_0x106802(0x98)][_0x106802(0xcd)](_0x106802(0x90))['to'](this,_0x106802(0x90),this,_0x106802(0x94),this,_0x106802(0xaa),(_0x5a9ebd,_0x75d226,_0x2c05d2)=>_0x5a9ebd&&!_0x75d226&&!!_0x2c05d2),_0x128bee[_0x106802(0x98)][_0x106802(0x9e)](_0x106802(0xdf))['to'](this,_0x106802(0x9a)),_0x128bee[_0x106802(0xe0)][_0x106802(0xcd)](_0x106802(0x90))['to'](this,_0x106802(0x90),this,_0x106802(0x94),(_0x58584c,_0x4fe68c)=>_0x58584c&&!_0x4fe68c),_0x128bee[_0x106802(0xe0)][_0x106802(0x9e)](_0x106802(0xdf))['to'](this,_0x106802(0xab)),_0x128bee[_0x106802(0xbb)][_0x106802(0xcd)](_0x106802(0x90))['to'](this,_0x106802(0x94)),_0x128bee[_0x106802(0xbb)][_0x106802(0x9e)](_0x106802(0xdf))['to'](this,_0x106802(0xd7)),_0x128bee;}[_0x2bb1ad(0xbe)](){const _0x1cb492=_0x2bb1ad;this[_0x1cb492(0xaa)]='',this[_0x1cb492(0xa8)]=!0x1,this[_0x1cb492(0x94)]=!0x0,this[_0x1cb492(0xa5)][_0x1cb492(0xbf)]=!0x0,this[_0x1cb492(0xc2)][_0x1cb492(0xbf)]=!0x0,this[_0x1cb492(0xa5)][_0x1cb492(0x8d)]();}[_0x2bb1ad(0xd8)](){const _0x5eceee=_0x2bb1ad,_0x530f32=this[_0x5eceee(0xdc)];this[_0x5eceee(0x94)]=!0x1,this[_0x5eceee(0xda)]='',this[_0x5eceee(0x8f)][_0x5eceee(0xb7)](),this[_0x5eceee(0xaa)]&&(this[_0x5eceee(0x8f)][_0x5eceee(0xb4)][_0x5eceee(0x95)]=_0x3fac18(_0x530f32,_0x5eceee(0x93)));}[_0x2bb1ad(0xa3)](_0x5dc073){const _0x4885d6=_0x2bb1ad,_0x5b6a79=this[_0x4885d6(0xdc)];this[_0x4885d6(0xd8)](),this[_0x4885d6(0xa8)]=!0x0,this[_0x4885d6(0xaf)][_0x4885d6(0xc9)]=_0x5dc073||_0x3fac18(_0x5b6a79,_0x4885d6(0x9f)),this[_0x4885d6(0xaa)]||(this[_0x4885d6(0xa5)][_0x4885d6(0xbf)]=!0x1);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x239308,_0x4f0f36){const _0x1f5e0e=_0x5965,_0x2c906e=_0x239308();while(!![]){try{const _0x30362f=-parseInt(_0x1f5e0e(0xf2))/0x1+parseInt(_0x1f5e0e(0xf8))/0x2*(-parseInt(_0x1f5e0e(0xef))/0x3)+-parseInt(_0x1f5e0e(0xf9))/0x4+-parseInt(_0x1f5e0e(0xfa))/0x5*(-parseInt(_0x1f5e0e(0xec))/0x6)+parseInt(_0x1f5e0e(0xf6))/0x7+-parseInt(_0x1f5e0e(0xfc))/0x8*(-parseInt(_0x1f5e0e(0xf1))/0x9)+-parseInt(_0x1f5e0e(0xfb))/0xa;if(_0x30362f===_0x4f0f36)break;else _0x2c906e['push'](_0x2c906e['shift']());}catch(_0x207e14){_0x2c906e['push'](_0x2c906e['shift']());}}}(_0xbc2e,0x64910));function _0x5965(_0x103b64,_0x1d1f8d){const _0xbc2e82=_0xbc2e();return _0x5965=function(_0x596559,_0x4b8ae1){_0x596559=_0x596559-0xec;let _0x1f02c4=_0xbc2e82[_0x596559];return _0x1f02c4;},_0x5965(_0x103b64,_0x1d1f8d);}function _0xbc2e(){const _0x3fa075=['2597460SjcbTR','2622170IsDcTR','39152VUqXNc','6IlPghx','children','prompt','6nvAYTf','execute','954yIyUEp','451621biDxNO','fire','set','add','2835644NwhDwu','locale','306518AhqzgM','44288OwNLBr'];_0xbc2e=function(){return _0x3fa075;};return _0xbc2e();}import{ListItemView as _0x355634,ButtonView as _0x407d0e,ButtonLabelWithHighlightView as _0x53b9de}from'ckeditor5/src/ui.js';import{unescape as _0x10908a}from'lodash-es';export default class os extends _0x355634{constructor(_0x2bc81a){const _0x54b02a=_0x5965;super();const _0x2f4967=new _0x53b9de(),_0x4e2994=new _0x407d0e(this[_0x54b02a(0xf7)],_0x2f4967);this[_0x54b02a(0xed)][_0x54b02a(0xf5)](_0x4e2994),_0x4e2994[_0x54b02a(0xf4)]({'label':_0x2bc81a[_0x54b02a(0xee)],'withText':!0x0}),_0x4e2994['on'](_0x54b02a(0xf0),()=>{const _0x5cf2ae=_0x54b02a;this[_0x5cf2ae(0xf3)](_0x5cf2ae(0xf0),{'value':_0x10908a(_0x2bc81a[_0x5cf2ae(0xee)])});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x3499(){const _0x43d65f=['3767598PkYhcP','1250330icHlSk','3112zBoQIb','192540JUXJrh','18340IbRnpm','fire','Prompt\x20history','clearHistory','246591CjNhmI','set','label','clearHistoryButton','25341BwNwDI','_createClearHistoryButton','delegate','74ECoqqr','11uiHQSd','length','5159664tEwuiA','Clear','historyGroupView','locale','add','children','filter','execute','items','36rJBppK'];_0x3499=function(){return _0x43d65f;};return _0x3499();}function _0x559e(_0x46ad61,_0x433bf9){const _0x3499e5=_0x3499();return _0x559e=function(_0x559e6c,_0x78567a){_0x559e6c=_0x559e6c-0xe3;let _0x1d8a71=_0x3499e5[_0x559e6c];return _0x1d8a71;},_0x559e(_0x46ad61,_0x433bf9);}const _0x4e8b2a=_0x559e;(function(_0x5186bc,_0x1e07a6){const _0x552400=_0x559e,_0x7fe178=_0x5186bc();while(!![]){try{const _0x2877cc=-parseInt(_0x552400(0xf0))/0x1*(-parseInt(_0x552400(0xf3))/0x2)+parseInt(_0x552400(0xec))/0x3*(parseInt(_0x552400(0xe3))/0x4)+-parseInt(_0x552400(0xe7))/0x5+parseInt(_0x552400(0xe4))/0x6+-parseInt(_0x552400(0xe8))/0x7*(parseInt(_0x552400(0xe6))/0x8)+-parseInt(_0x552400(0xf6))/0x9+-parseInt(_0x552400(0xe5))/0xa*(parseInt(_0x552400(0xf4))/0xb);if(_0x2877cc===_0x1e07a6)break;else _0x7fe178['push'](_0x7fe178['shift']());}catch(_0x54fa88){_0x7fe178['push'](_0x7fe178['shift']());}}}(_0x3499,0x861ba));import{ListView as _0x3c4454,ListItemGroupView as _0x57f8fc,ButtonView as _0x17413f}from'ckeditor5/src/ui.js';import{getTranslation as _0x3dfa83}from'../../utils/common-translations.js';export default class hs extends _0x3c4454{constructor(_0x5e3182){const _0x153c52=_0x559e;super(_0x5e3182),this[_0x153c52(0xef)]=this[_0x153c52(0xf1)](),this[_0x153c52(0xf8)]=new _0x57f8fc(),this[_0x153c52(0xf8)][_0x153c52(0xfb)][_0x153c52(0xfa)](this[_0x153c52(0xef)],0x1),this[_0x153c52(0xf8)][_0x153c52(0xee)]=_0x3dfa83(_0x5e3182,_0x153c52(0xea)),this[_0x153c52(0xf8)][_0x153c52(0xfe)][_0x153c52(0xf2)](_0x153c52(0xfd))['to'](this),this[_0x153c52(0xfe)][_0x153c52(0xfa)](this[_0x153c52(0xf8)]);}[_0x4e8b2a(0xfc)](){const _0x40762f=_0x4e8b2a;let _0x3b923e=0x0;for(const _0x8e48f7 of this[_0x40762f(0xfe)])_0x3b923e+=_0x8e48f7[_0x40762f(0xfe)][_0x40762f(0xf5)];return{'resultsCount':_0x3b923e,'totalItemsCount':_0x3b923e};}[_0x4e8b2a(0xf1)](){const _0x15245b=_0x4e8b2a,_0x40d37a=this[_0x15245b(0xf9)],_0x5c9b13=new _0x17413f(this[_0x15245b(0xf9)]);return _0x5c9b13[_0x15245b(0xed)]({'label':'('+_0x3dfa83(_0x40d37a,_0x15245b(0xf7))+')','withText':!0x0}),_0x5c9b13['on'](_0x15245b(0xfd),()=>this[_0x15245b(0xe9)](_0x15245b(0xeb))),_0x5c9b13;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x2e98(){const _0x4589cb=['length','45765onlgyj','prompt','trim','852950SwcHup','6egtUwE','14487QNzooe','CKEditor/AIFormView/PromptHistory','1248065WuvEBf','_saveToSessionStorage','last','25392852IDlIHN','remove','toLowerCase','7470QoTWsP','stringify','_loadFromSessionStorage','18oKUrtO','setItem','map','175384rjLfsn','getItem','addMany','584uWgVjA','parse','18325mMxETE','add','81ocXedh'];_0x2e98=function(){return _0x4589cb;};return _0x2e98();}const _0x4a1694=_0x3308;function _0x3308(_0x25f443,_0x5871c1){const _0x2e983b=_0x2e98();return _0x3308=function(_0x33085d,_0x27318c){_0x33085d=_0x33085d-0x1af;let _0x530452=_0x2e983b[_0x33085d];return _0x530452;},_0x3308(_0x25f443,_0x5871c1);}(function(_0x5ff36,_0x2580c3){const _0x4b2800=_0x3308,_0x3e2c66=_0x5ff36();while(!![]){try{const _0x5ee2b0=-parseInt(_0x4b2800(0x1bd))/0x1+-parseInt(_0x4b2800(0x1be))/0x2*(-parseInt(_0x4b2800(0x1ba))/0x3)+parseInt(_0x4b2800(0x1b4))/0x4*(parseInt(_0x4b2800(0x1b6))/0x5)+-parseInt(_0x4b2800(0x1ca))/0x6*(parseInt(_0x4b2800(0x1c1))/0x7)+-parseInt(_0x4b2800(0x1b1))/0x8*(-parseInt(_0x4b2800(0x1b8))/0x9)+-parseInt(_0x4b2800(0x1c7))/0xa*(parseInt(_0x4b2800(0x1bf))/0xb)+parseInt(_0x4b2800(0x1c4))/0xc;if(_0x5ee2b0===_0x2580c3)break;else _0x3e2c66['push'](_0x3e2c66['shift']());}catch(_0x3df44e){_0x3e2c66['push'](_0x3e2c66['shift']());}}}(_0x2e98,0x7f967));import{Collection as _0x324d97}from'ckeditor5/src/utils.js';const Ss=_0x4a1694(0x1c0);export default class ns extends _0x324d97{constructor(){const _0x6dee60=_0x4a1694;super(),this[_0x6dee60(0x1c9)](),this['on'](_0x6dee60(0x1b7),(_0x4ccfda,_0xf4a344)=>{const _0x45e301=_0x6dee60,_0x36aa0d=ds(_0xf4a344[_0x45e301(0x1bb)]);for(const _0x359302 of this)if(_0x359302!=_0xf4a344&&ds(_0x359302[_0x45e301(0x1bb)])===_0x36aa0d){this[_0x45e301(0x1c5)](_0x359302);break;}this[_0x45e301(0x1b9)]>0x14&&this[_0x45e301(0x1c5)](this[_0x45e301(0x1c3)]),this[_0x45e301(0x1c2)]();}),this['on'](_0x6dee60(0x1c5),()=>{const _0x25bee7=_0x6dee60;this[_0x25bee7(0x1c2)]();});}[_0x4a1694(0x1c9)](){const _0x16ec2c=_0x4a1694,_0x48ab53=sessionStorage[_0x16ec2c(0x1b2)](Ss)||'[]';this[_0x16ec2c(0x1b3)](JSON[_0x16ec2c(0x1b5)](_0x48ab53));}[_0x4a1694(0x1c2)](){const _0x4a8017=_0x4a1694;sessionStorage[_0x4a8017(0x1af)](Ss,JSON[_0x4a8017(0x1c8)](this[_0x4a8017(0x1b0)](_0x39cf2c=>_0x39cf2c)));}}function ds(_0xc08f6b){const _0x1c82c4=_0x4a1694;return _0xc08f6b[_0x1c82c4(0x1c6)]()[_0x1c82c4(0x1bc)]();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x4df3(){const _0x44043e=['hasContent','getItems','reduce','selection','enabledCommandsIds','includes','from','712CEnCte','_commandDefinitions','change:isEnabled','getSelectedBlocks','requiresContent','5315870rjnuCp','refresh','concat','62919lSYEoz','isEnabled','config','model','name','978828CeMnwJ','_hasContext','plugins','custom','document','2825515qtDxFO','4920528CQwZcn','188nVZWri','execute','editor','change:_hasContext','element','add','isCollapsed','showUI','ai.aiAssistant.disabledElements','commands','7782nsbGJa','isEmpty','1692150OdqPNd','length','get','getFirstRange','getRanges','set'];_0x4df3=function(){return _0x44043e;};return _0x4df3();}const _0x30528d=_0x396a;(function(_0x305158,_0x305136){const _0x467aaf=_0x396a,_0xc313e0=_0x305158();while(!![]){try{const _0x3a2ddd=parseInt(_0x467aaf(0xcd))/0x1*(-parseInt(_0x467aaf(0xd7))/0x2)+parseInt(_0x467aaf(0xac))/0x3+-parseInt(_0x467aaf(0xc6))/0x4+parseInt(_0x467aaf(0xcb))/0x5+-parseInt(_0x467aaf(0xcc))/0x6+parseInt(_0x467aaf(0xbe))/0x7+parseInt(_0x467aaf(0xb9))/0x8*(parseInt(_0x467aaf(0xc1))/0x9);if(_0x3a2ddd===_0x305136)break;else _0xc313e0['push'](_0xc313e0['shift']());}catch(_0x618812){_0xc313e0['push'](_0xc313e0['shift']());}}}(_0x4df3,0xae6db));import{Command as _0x2a22ad}from'ckeditor5/src/core.js';import _0xdddcc4 from'../aiassistantui.js';function _0x396a(_0x20bbc6,_0xa91a3d){const _0x4df3cd=_0x4df3();return _0x396a=function(_0x396ab2,_0x52f9c0){_0x396ab2=_0x396ab2-0xac;let _0x2121e8=_0x4df3cd[_0x396ab2];return _0x2121e8;},_0x396a(_0x20bbc6,_0xa91a3d);}export default class x extends _0x2a22ad{constructor(_0x294f11,_0x597a8f){const _0x57a22d=_0x396a;super(_0x294f11),this[_0x57a22d(0xba)]=_0x597a8f?_0x597a8f[_0x57a22d(0xb4)]((_0x158341,_0xb6bfb6)=>_0x158341[_0x57a22d(0xc0)](_0xb6bfb6[_0x57a22d(0xd6)]),new Array()):[],this[_0x57a22d(0xb1)](_0x57a22d(0xb6),[]),this['on'](_0x57a22d(0xd0),(_0x7c2115,_0x58fafe,_0x3641f1)=>{const _0x491556=_0x57a22d;this[_0x491556(0xc2)]&&(this[_0x491556(0xb6)]=K(this[_0x491556(0xba)],_0x3641f1));}),this[_0x57a22d(0xb1)](_0x57a22d(0xc7),!0x1),this['on'](_0x57a22d(0xbb),(_0x9b9a86,_0x34e766,_0x3d7e80)=>{const _0x46bccf=_0x57a22d;this[_0x46bccf(0xb6)]=_0x3d7e80?K(this[_0x46bccf(0xba)],this[_0x46bccf(0xc7)]):[];});}[_0x30528d(0xbf)](){const _0x6f4c51=_0x30528d,_0x2a50c1=this[_0x6f4c51(0xcf)][_0x6f4c51(0xc4)];this[_0x6f4c51(0xc7)]=function(_0xd6ac97){const _0x26849f=_0x6f4c51,_0x2caff2=_0xd6ac97[_0x26849f(0xca)][_0x26849f(0xb5)];return _0x2caff2[_0x26849f(0xd3)]?0x0!==[..._0x2caff2[_0x26849f(0xbc)]()][_0x26849f(0xad)]&&![..._0x2caff2[_0x26849f(0xbc)]()][0x0][_0x26849f(0xd8)]:!!_0xd6ac97[_0x26849f(0xb2)](_0x2caff2[_0x26849f(0xaf)]());}(_0x2a50c1);const _0x24e542=_0x2a50c1[_0x6f4c51(0xca)][_0x6f4c51(0xb5)],_0x278d6d=this[_0x6f4c51(0xcf)][_0x6f4c51(0xc3)][_0x6f4c51(0xae)](_0x6f4c51(0xd5));for(const _0x30b0c7 of _0x24e542[_0x6f4c51(0xb0)]())for(const _0x5eda9e of _0x30b0c7[_0x6f4c51(0xb3)]())if(_0x5eda9e['is'](_0x6f4c51(0xd1))&&_0x278d6d[_0x6f4c51(0xb7)](_0x5eda9e[_0x6f4c51(0xc5)]))return void(this[_0x6f4c51(0xc2)]=!0x1);this[_0x6f4c51(0xc2)]=!0x0;}[_0x30528d(0xce)](_0x19a555='',_0x7a64bc='',_0x518eba=_0x30528d(0xc9)){const _0x285754=_0x30528d;this[_0x285754(0xcf)][_0x285754(0xc8)][_0x285754(0xae)](_0xdddcc4)[_0x285754(0xd4)](_0x19a555,_0x7a64bc,_0x518eba);}}function K(_0x46b844,_0x184092){const _0x3d1e39=_0x30528d,_0x11b9d9=new Set();for(const _0x9a0ba4 of _0x46b844)(_0x184092||!0x1===_0x9a0ba4[_0x3d1e39(0xbd)])&&_0x11b9d9[_0x3d1e39(0xd2)](_0x9a0ba4['id']);return Array[_0x3d1e39(0xb8)](_0x11b9d9);}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(
|
|
23
|
+
export function getTranslation(_0x4dd5e9,_0x88f23f,_0x132971){const t=_0x4dd5e9['t'];switch(_0x88f23f){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'%0\x20commands\x20found':return t('%0\x20commands\x20found',_0x132971);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',_0x132971);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',_0x132971);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x132971);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'},_0x132971);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 _0x88f23f;}}
|