@ckeditor/ckeditor5-ai 43.0.0-alpha.1 → 43.0.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/dist/index.js +2 -2
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +8 -8
- package/src/adapters/aiadapter.js +1 -1
- package/src/adapters/aitextadapter.js +1 -1
- package/src/adapters/awstextadapter.js +1 -1
- package/src/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant.js +1 -1
- package/src/aiassistantediting.js +1 -1
- package/src/aiassistantui.js +1 -1
- package/src/index.js +1 -1
- package/src/ui/aiassistantcontroller.js +2 -2
- package/src/ui/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
|
-
|
|
23
|
+
(function(_0x423293,_0x132216){var _0x298265=_0x16de,_0x5ab6a8=_0x423293();while(!![]){try{var _0x1fed1b=parseInt(_0x298265(0xc2))/0x1*(parseInt(_0x298265(0xbf))/0x2)+parseInt(_0x298265(0xc7))/0x3*(-parseInt(_0x298265(0xc8))/0x4)+-parseInt(_0x298265(0xc4))/0x5+parseInt(_0x298265(0xc3))/0x6+parseInt(_0x298265(0xbe))/0x7*(-parseInt(_0x298265(0xc6))/0x8)+-parseInt(_0x298265(0xc9))/0x9*(parseInt(_0x298265(0xc1))/0xa)+-parseInt(_0x298265(0xc0))/0xb*(-parseInt(_0x298265(0xc5))/0xc);if(_0x1fed1b===_0x132216)break;else _0x5ab6a8['push'](_0x5ab6a8['shift']());}catch(_0x4d965b){_0x5ab6a8['push'](_0x5ab6a8['shift']());}}}(_0x3b88,0x527da));function _0x16de(_0x47ddc5,_0xc505c8){var _0x3b8866=_0x3b88();return _0x16de=function(_0x16deca,_0xbfda40){_0x16deca=_0x16deca-0xbe;var _0x43d9e0=_0x3b8866[_0x16deca];return _0x43d9e0;},_0x16de(_0x47ddc5,_0xc505c8);}export{default as AIAssistant}from'./aiassistant.js';function _0x3b88(){var _0x2f11f8=['201332qJOoNd','15983glwiKF','1018330QmlCBn','2NEKXpL','1318452kpbVAD','1957495MGAMxq','9396fZkIow','623496XMzRqG','12jxoTxX','469852mHgkef','18WfeIfy','14fvxoeD'];_0x3b88=function(){return _0x2f11f8;};return _0x3b88();}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
|
-
const
|
|
24
|
-
|
|
23
|
+
function _0xf8f2(_0x523172,_0x137adf){const _0x43c0a7=_0x43c0();return _0xf8f2=function(_0xf8f26a,_0x2750c9){_0xf8f26a=_0xf8f26a-0xf3;let _0x4f9ed0=_0x43c0a7[_0xf8f26a];return _0x4f9ed0;},_0xf8f2(_0x523172,_0x137adf);}const _0x26bad9=_0xf8f2;(function(_0x45346b,_0x2526e1){const _0x1f7e41=_0xf8f2,_0x3c420e=_0x45346b();while(!![]){try{const _0x3133f1=parseInt(_0x1f7e41(0x106))/0x1+-parseInt(_0x1f7e41(0x102))/0x2*(-parseInt(_0x1f7e41(0x103))/0x3)+parseInt(_0x1f7e41(0x136))/0x4+-parseInt(_0x1f7e41(0x129))/0x5+parseInt(_0x1f7e41(0x146))/0x6+-parseInt(_0x1f7e41(0xf7))/0x7+-parseInt(_0x1f7e41(0x137))/0x8*(parseInt(_0x1f7e41(0x107))/0x9);if(_0x3133f1===_0x2526e1)break;else _0x3c420e['push'](_0x3c420e['shift']());}catch(_0x480584){_0x3c420e['push'](_0x3c420e['shift']());}}}(_0x43c0,0xef95b));import{ObservableMixin as _0x28c539}from'ckeditor5/src/utils.js';import{AIRequestError as _0x3011df}from'../adapters/aiadapter.js';import{Matcher as _0x5ba2ac,UpcastWriter as _0x37fc88}from'ckeditor5/src/engine.js';const X=new RegExp(/^(.*?)<[a-zA-Z][a-zA-Z0-9_\-.]*[ >]/,'is');function _0x43c0(){const _0x3df24e=['_handleQuery','body','innerHTML','previousActionId','rename','data','toModel','_domParser','set','stringify','_sanitizationContainer','ELEMENT_NODE','12434520IfJWlc','reset','isProcessing','finally','isRendered','once','previousQuery','catch','handleError','remove','tryAgainEvent','2452EcfuLe','3057VOzTpZ','set:currentContext','_parseAndNormalizeContent','1676223LfpHxD','4031901tQHRHs','view','from','currentResponse','message','editing','match','domConverter','stopListening','<h1></h1>','length','abort','serializeToString','endsWith','element','currentContext','name','querySelector','htmlProcessor','startProcessing','render','value','updateView','destroy','processor','reverse','substring','parseFromString','submitPrompt','document','finishProcessing','setContentOf','stopProcessing','div','6330780odejKE','_stripMarkdownSyntax','textAdapter','custom','makeRequest','then','_normalizeResponseHeadings','prompt','initialContext','toView','listenTo','childNodes','_isH1TagSupportEnabled','6820440AdhNQh','24karLjF','startsWith','```html','nodeType','_xmlSerializer','exec','text/html','previousLabel','createElement','_sanitizeHTML','push','viewToDom','```','mainAction','editor','4423170qpqUGe','trim','previousContext'];_0x43c0=function(){return _0x3df24e;};return _0x43c0();}export default class U extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x28c539(){constructor(_0x46a01f,_0xb92a7b,_0x271e0b){const _0x107d56=_0xf8f2;super(),this[_0x107d56(0x145)]=_0x46a01f,this[_0x107d56(0x12b)]=_0xb92a7b,this[_0x107d56(0xf5)]=document[_0x107d56(0x13f)](_0x107d56(0x128)),this[_0x107d56(0x150)]=new DOMParser(),this[_0x107d56(0x13b)]=new XMLSerializer(),this[_0x107d56(0x108)]=_0x271e0b,this[_0x107d56(0xf3)]({'initialContext':'','currentContext':'','currentResponse':'','previousContext':void 0x0,'previousQuery':void 0x0,'previousLabel':void 0x0,'isProcessing':!0x1}),this['on'](_0x107d56(0x104),(_0x15ab76,_0x3bc662,_0x411551)=>{const _0x593345=_0x107d56;this[_0x593345(0x108)][_0x593345(0x11c)]=this[_0x593345(0x140)](_0x411551);}),this[_0x107d56(0x133)](this[_0x107d56(0x108)],_0x107d56(0x123),(_0x2b5095,_0x2ef1d9)=>{const _0x1a863c=_0x107d56,_0x4d3bd3=this[_0x1a863c(0x116)]||this[_0x1a863c(0x131)];this[_0x1a863c(0x149)](_0x2ef1d9,_0x4d3bd3,_0x1a863c(0x12c));}),this[_0x107d56(0x133)](this[_0x107d56(0x108)],_0x107d56(0x101),()=>{const _0x22723d=_0x107d56;this[_0x22723d(0x108)][_0x22723d(0x130)]=this[_0x22723d(0x13e)],this[_0x22723d(0x149)](this[_0x22723d(0xfd)],this[_0x22723d(0x148)],this[_0x22723d(0x14c)],this[_0x22723d(0x13e)]);}),this[_0x107d56(0x133)](this[_0x107d56(0x108)],_0x107d56(0x127),()=>{const _0x468fc7=_0x107d56;this[_0x468fc7(0x127)]();});}[_0x26bad9(0x11e)](){const _0x1ee6d0=_0x26bad9;this[_0x1ee6d0(0x10f)]();}async[_0x26bad9(0x11d)]({actionId:_0x5f0ab5,query:_0x410b80,htmlContent:_0x2311b3,label:_0x579035,mainActionLabel:_0x4067a9}){const _0x385830=_0x26bad9;this[_0x385830(0x108)][_0x385830(0x130)]=_0x579035,this[_0x385830(0x108)][_0x385830(0x144)]=_0x4067a9,this[_0x385830(0x131)]=_0x2311b3,_0x410b80&&(this[_0x385830(0x108)][_0x385830(0xfb)]?this[_0x385830(0x149)](_0x410b80,_0x2311b3,_0x5f0ab5,_0x579035):this[_0x385830(0x108)][_0x385830(0xfc)](_0x385830(0x11b),()=>{const _0x3fdb7d=_0x385830;this[_0x3fdb7d(0x149)](_0x410b80,_0x2311b3,_0x5f0ab5,_0x579035);}));}[_0x26bad9(0x127)](){const _0x152f72=_0x26bad9;this[_0x152f72(0xf9)]&&(this[_0x152f72(0xf9)]=!0x1,this[_0x152f72(0x108)][_0x152f72(0x125)](),this[_0x152f72(0x12b)][_0x152f72(0x112)]());}[_0x26bad9(0xf8)](){const _0x17fc07=_0x26bad9;this[_0x17fc07(0x131)]='',this[_0x17fc07(0x116)]='',this[_0x17fc07(0x10a)]='',this[_0x17fc07(0x148)]='',this[_0x17fc07(0xfd)]='',this[_0x17fc07(0x13e)]='',this[_0x17fc07(0x14c)]=void 0x0,this[_0x17fc07(0x108)][_0x17fc07(0xf8)](),this[_0x17fc07(0x127)]();}async[_0x26bad9(0x149)](_0x50c992,_0x358a43,_0x3b1652,_0x11d02e){const _0x331b97=_0x26bad9;return this[_0x331b97(0xf9)]=!0x0,this[_0x331b97(0x108)][_0x331b97(0x11a)](),this[_0x331b97(0x148)]=_0x358a43,this[_0x331b97(0xfd)]=_0x50c992,this[_0x331b97(0x13e)]=_0x11d02e||_0x50c992,this[_0x331b97(0x14c)]=_0x3b1652,new Promise(_0x4f322a=>{const _0x33cda2=_0x331b97;this[_0x33cda2(0x12b)][_0x33cda2(0x12d)]({'query':_0x50c992,'context':_0x358a43,'onData':_0x6d0c1a=>{const _0x4a83e5=_0x33cda2;this[_0x4a83e5(0x10a)]=_0x6d0c1a,this[_0x4a83e5(0x116)]=this[_0x4a83e5(0x105)](this[_0x4a83e5(0x10a)]);},'actionId':_0x3b1652})[_0x33cda2(0x12e)](()=>{const _0x3a3057=_0x33cda2;!this[_0x3a3057(0x116)]&&this[_0x3a3057(0x10a)]&&(this[_0x3a3057(0x116)]=this[_0x3a3057(0x105)](this[_0x3a3057(0x10a)],!0x0));})[_0x33cda2(0xfe)](_0x531fef=>{const _0x453270=_0x33cda2;_0x531fef instanceof _0x3011df?this[_0x453270(0x108)][_0x453270(0xff)](_0x531fef[_0x453270(0x10b)]):this[_0x453270(0x108)][_0x453270(0xff)](),_0x4f322a();})[_0x33cda2(0xfa)](()=>{const _0x838d26=_0x33cda2;this[_0x838d26(0x127)](),_0x4f322a();});});}[_0x26bad9(0x105)](_0x172083,_0x2e95db=!0x1){const _0x420804=_0x26bad9,_0x33fc70=X[_0x420804(0x13c)](_0x172083);_0x172083=_0x33fc70?_0x172083[_0x420804(0x121)](_0x33fc70[0x1][_0x420804(0x111)]):_0x172083[_0x420804(0x111)]<0x64&&!_0x2e95db?'':this[_0x420804(0x12a)](_0x172083);const _0x5528b3=this[_0x420804(0x150)][_0x420804(0x122)](_0x172083,_0x420804(0x13d));if(_0x33fc70){const _0x5508ad=Array[_0x420804(0x109)](_0x5528b3[_0x420804(0x14a)][_0x420804(0x134)]);_0x5508ad[_0x420804(0x120)]();for(const _0x328c8d of _0x5508ad){if(_0x328c8d[_0x420804(0x13a)]==Node[_0x420804(0xf6)])break;_0x328c8d[_0x420804(0x100)]();}}const _0x1d2f1e=this[_0x420804(0x145)][_0x420804(0x14e)][_0x420804(0x11f)][_0x420804(0x132)](this[_0x420804(0x13b)][_0x420804(0x113)](_0x5528b3[_0x420804(0x14a)]));return this[_0x420804(0x135)]()||this[_0x420804(0x12f)](_0x1d2f1e),this[_0x420804(0x145)][_0x420804(0x14e)][_0x420804(0xf4)](this[_0x420804(0x145)][_0x420804(0x14e)][_0x420804(0x14f)](_0x1d2f1e));}[_0x26bad9(0x12f)](_0x382ee7){const _0x1dd378=_0x26bad9,_0x5be5f6=new _0x37fc88(this[_0x1dd378(0x145)][_0x1dd378(0x10c)][_0x1dd378(0x108)][_0x1dd378(0x124)]),_0x426b64=new _0x5ba2ac({'name':/^h[1-5]$/}),_0x247f95=[];let _0x15377a=!0x1;for(const _0x2b25df of _0x382ee7)_0x2b25df['is'](_0x1dd378(0x115))&&_0x426b64[_0x1dd378(0x10d)](_0x2b25df)&&(_0x247f95[_0x1dd378(0x141)](_0x2b25df),'h1'==_0x2b25df[_0x1dd378(0x117)]&&(_0x15377a=!0x0));if(_0x15377a){for(const _0x3cc263 of _0x247f95)_0x5be5f6[_0x1dd378(0x14d)]('h'+(parseInt(_0x3cc263[_0x1dd378(0x117)][0x1])+0x1),_0x3cc263);}}[_0x26bad9(0x135)](){const _0x19ecaa=_0x26bad9,{data:_0xe4ff6a,editing:_0x282fb1}=this[_0x19ecaa(0x145)],_0x374d95=_0xe4ff6a[_0x19ecaa(0x119)][_0x19ecaa(0x132)](_0x19ecaa(0x110)),_0x26aab2=_0xe4ff6a[_0x19ecaa(0x132)](_0xe4ff6a[_0x19ecaa(0x14f)](_0x374d95));return!!_0x282fb1[_0x19ecaa(0x108)][_0x19ecaa(0x10e)][_0x19ecaa(0x142)](_0x26aab2)[_0x19ecaa(0x118)]('h1');}[_0x26bad9(0x140)](_0x43fe8d){const _0x9e11c0=_0x26bad9;return this[_0x9e11c0(0x145)][_0x9e11c0(0x10c)][_0x9e11c0(0x108)][_0x9e11c0(0x10e)][_0x9e11c0(0x126)](this[_0x9e11c0(0xf5)],_0x43fe8d),this[_0x9e11c0(0xf5)][_0x9e11c0(0x14b)];}[_0x26bad9(0x12a)](_0x4c0c61){const _0x4e30d7=_0x26bad9,_0x29a992=_0x4c0c61[_0x4e30d7(0x147)]();return _0x29a992[_0x4e30d7(0x138)](_0x4e30d7(0x139))?_0x29a992[_0x4e30d7(0x114)](_0x4e30d7(0x143))?_0x29a992[_0x4e30d7(0x121)](0x7,_0x29a992[_0x4e30d7(0x111)]-0x3):_0x29a992[_0x4e30d7(0x121)](0x7):_0x4c0c61;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3437b2=_0x3ace;(function(_0x505220,_0x4d6b9d){const _0x574d52=_0x3ace,_0x379170=_0x505220();while(!![]){try{const _0x38ecef=-parseInt(_0x574d52(0x1db))/0x1+parseInt(_0x574d52(0x1cd))/0x2*(-parseInt(_0x574d52(0x1d3))/0x3)+parseInt(_0x574d52(0x1ce))/0x4*(parseInt(_0x574d52(0x1d1))/0x5)+parseInt(_0x574d52(0x1da))/0x6*(-parseInt(_0x574d52(0x1d8))/0x7)+-parseInt(_0x574d52(0x1cf))/0x8+parseInt(_0x574d52(0x1d7))/0x9+-parseInt(_0x574d52(0x1dc))/0xa*(-parseInt(_0x574d52(0x1d5))/0xb);if(_0x38ecef===_0x4d6b9d)break;else _0x379170['push'](_0x379170['shift']());}catch(_0x19252a){_0x379170['push'](_0x379170['shift']());}}}(_0x3b81,0x2b987));import{ListView as _0x3db219,ListItemGroupView as _0x495e05,filterGroupAndItemNames as _0x273272}from'ckeditor5/src/ui.js';function _0x3ace(_0x1e5a95,_0x122f88){const _0x3b8133=_0x3b81();return _0x3ace=function(_0x3acea2,_0x19cd90){_0x3acea2=_0x3acea2-0x1cb;let _0x28063e=_0x3b8133[_0x3acea2];return _0x28063e;},_0x3ace(_0x1e5a95,_0x122f88);}import{AICommandsListItemView as _0xc74fc7}from'../../aiassistantui.js';export default class S extends _0x3db219{constructor(_0x4d02fb){const _0x42cb4e=_0x3ace;super(_0x4d02fb),this[_0x42cb4e(0x1d4)]=_0x42cb4e(0x1d2),this[_0x42cb4e(0x1de)](_0x42cb4e(0x1cc),[]),this['on'](_0x42cb4e(0x1dd),()=>{const _0x17d3ac=_0x42cb4e;for(const _0x2bcd6c of this[_0x17d3ac(0x1d9)])if(_0x2bcd6c instanceof _0x495e05){for(const _0x479f59 of _0x2bcd6c[_0x17d3ac(0x1d9)])if(_0x479f59 instanceof _0xc74fc7){const _0x951f67=_0x479f59[_0x17d3ac(0x1df)][_0x17d3ac(0x1e1)](0x0);this[_0x17d3ac(0x1cc)][_0x17d3ac(0x1d6)](_0x479f59[_0x17d3ac(0x1e0)]['id'])?_0x951f67[_0x17d3ac(0x1cb)]=!0x0:_0x951f67[_0x17d3ac(0x1cb)]=!0x1;}}});}[_0x3437b2(0x1d0)](_0x1ac73b){const _0x1442ad=_0x3437b2;return _0x273272(_0x1ac73b,this[_0x1442ad(0x1d9)]);}}function _0x3b81(){const _0x3ed551=['isEnabled','enabledCommandsIds','8234TMRwrU','716336fOEOcU','1353864iNlEqq','filter','5LEiHfQ','listbox','249eFsCYz','role','1740563FLXeeT','includes','2203137ePtnwx','40782dguDEy','items','234pSguJh','298317jdURBU','50fwTqjD','change:enabledCommandsIds','set','children','commandDefinition','get'];_0x3b81=function(){return _0x3ed551;};return _0x3b81();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x16de5d=_0x5bbe;(function(_0x51fb11,_0x2387a9){const _0x2e323e=_0x5bbe,_0x2ca7c3=_0x51fb11();while(!![]){try{const _0x17ee3d=-parseInt(_0x2e323e(0x102))/0x1*(-parseInt(_0x2e323e(0xe5))/0x2)+parseInt(_0x2e323e(0xda))/0x3*(parseInt(_0x2e323e(0xe3))/0x4)+-parseInt(_0x2e323e(0xf1))/0x5*(parseInt(_0x2e323e(0x100))/0x6)+parseInt(_0x2e323e(0xe4))/0x7+parseInt(_0x2e323e(0x107))/0x8+parseInt(_0x2e323e(0x10a))/0x9+-parseInt(_0x2e323e(0xdc))/0xa*(parseInt(_0x2e323e(0xf9))/0xb);if(_0x17ee3d===_0x2387a9)break;else _0x2ca7c3['push'](_0x2ca7c3['shift']());}catch(_0x3081a3){_0x2ca7c3['push'](_0x2ca7c3['shift']());}}}(_0x1153,0x7c26e));import{global as _0x2d91c3}from'ckeditor5/src/utils.js';import{View as _0x2264f6,ButtonView as _0x1b6235,SpinnerView as _0x4a7322}from'ckeditor5/src/ui.js';import _0x2a6a27 from'../../../theme/icons/copy.svg';function _0x1153(){const _0x4c1d2f=['copyButtonView','clipboard','setStartAfter','locale','<span>]</span>','\x20ck-ai-form__copy-button--copied','div','createElement','Copy','check','wheel','ClipboardItem','contentFieldView','change:value','ck-ai-form__copy-button','ck-ai-form__content-area-wrapper','scrollHeight','appendChild','copy','removeAllRanges','bindTemplate','set','value','smooth','setEndBefore','259809jSCURm','ck-ai-form__copy-button-wrapper','170JIGAbs','firstElementChild','isEnabled','icon','write','querySelector','focus','12ACqLmr','1054655ziFyEO','2TcPDwE','text/plain','change:isProcessing','getSelection','.ck-ai-form__loader','element','ck-ai-form__content-field','execute','lastElementChild','<span>[</span>','class','isProcessing','183025LyjvAZ','addRange','bind','ck-ai-form__content-area--processing','ck-ai-form__loader','remove','createRange','listenTo','621599mZTzQL','scrollTo','_copyHTMLToClipboard','execCommand','left','body','_createLoader','84tsnuJJ','style','534559WwWVTx','isVisible','position','render','textContent','6115256XopnxF','absolute','_createCopyButton','2449881NoEHFf','loaderView','ck-ai-form__content-area','mousedown','-9999px','innerHTML','ck-content','text/html','appendLoader','setContent','ck-reset_all-excluded','setTemplate','ck-hidden','AI\x20is\x20writing...'];_0x1153=function(){return _0x4c1d2f;};return _0x1153();}import{getTranslation as _0x28e748}from'../../utils/common-translations.js';function _0x5bbe(_0x4c8c92,_0x4197c7){const _0x1153be=_0x1153();return _0x5bbe=function(_0x5bbe10,_0x161ecc){_0x5bbe10=_0x5bbe10-0xd0;let _0x40f770=_0x1153be[_0x5bbe10];return _0x40f770;},_0x5bbe(_0x4c8c92,_0x4197c7);}import{icons as _0x264835}from'ckeditor5/src/core.js';export default class ot extends _0x2264f6{constructor(_0x4af8a9,_0x3fb56f=''){const _0x240c8d=_0x5bbe;super(_0x4af8a9),this[_0x240c8d(0xd6)]({'value':null,'isVisible':!0x1,'isProcessing':!0x1});const _0x670058=this[_0x240c8d(0xd5)];this[_0x240c8d(0x124)]=new ContentFieldView(_0x4af8a9,_0x3fb56f),this[_0x240c8d(0x118)]=this[_0x240c8d(0x109)](),this[_0x240c8d(0x115)]({'tag':_0x240c8d(0x11e),'attributes':{'class':['ck',_0x240c8d(0xd0),_0x670058['if'](_0x240c8d(0x103),_0x240c8d(0x116),_0xcdf0b4=>!_0xcdf0b4)],'tabindex':'-1'},'children':[{'tag':_0x240c8d(0x11e),'attributes':{'class':['ck',_0x240c8d(0x10c),_0x670058['if'](_0x240c8d(0xf0),_0x240c8d(0xf4))]},'children':[this[_0x240c8d(0x124)],{'tag':_0x240c8d(0x11e),'attributes':{'class':['ck',_0x240c8d(0xdb)]},'children':[this[_0x240c8d(0x118)]]}]}]});}[_0x16de5d(0x105)](){const _0x2f86b3=_0x16de5d;super[_0x2f86b3(0x105)](),this[_0x2f86b3(0xd7)]&&this[_0x2f86b3(0x124)][_0x2f86b3(0x113)](this[_0x2f86b3(0xd7)]);let _0x2b8bdf=!0x1;this['on'](_0x2f86b3(0x125),(_0x549c5e,_0x6376a0,_0x574ca4)=>{const _0x113a77=_0x2f86b3,_0x5d5c45=!this[_0x113a77(0x124)][_0x113a77(0xea)][_0x113a77(0xe1)](_0x113a77(0xe9));this[_0x113a77(0x124)][_0x113a77(0x113)](_0x574ca4),this[_0x113a77(0xf0)]&&_0x5d5c45&&!_0x2b8bdf&&this[_0x113a77(0xea)][_0x113a77(0xfa)]({'top':this[_0x113a77(0xea)][_0x113a77(0xd1)],'behavior':_0x113a77(0xd8)});}),this['on'](_0x2f86b3(0xe7),(_0x1b8fff,_0x1b5771,_0x20c5c9)=>{const _0x57edd1=_0x2f86b3;_0x2b8bdf=!0x1,_0x20c5c9?(this[_0x57edd1(0xd7)]=null,this[_0x57edd1(0x124)][_0x57edd1(0x112)]()):this[_0x57edd1(0xd7)]||this[_0x57edd1(0x124)][_0x57edd1(0x113)]('');}),this[_0x2f86b3(0xf8)](this[_0x2f86b3(0xea)],_0x2f86b3(0x122),()=>{_0x2b8bdf=!0x0;}),this[_0x2f86b3(0xf8)](this[_0x2f86b3(0xea)],_0x2f86b3(0x10d),()=>{_0x2b8bdf=!0x0;});}[_0x16de5d(0xe2)](){const _0x40051c=_0x16de5d;this[_0x40051c(0xea)][_0x40051c(0xe2)]();}[_0x16de5d(0x109)](){const _0x442282=_0x16de5d,_0x5a5bb2=this[_0x442282(0x11b)],_0x38f4f0=new _0x1b6235(this[_0x442282(0x11b)]),_0x226bbf=_0x442282(0x126);return _0x38f4f0[_0x442282(0xd6)]({'label':_0x28e748(_0x5a5bb2,_0x442282(0x120)),'icon':_0x2a6a27,'class':_0x226bbf,'tooltip':!0x0}),_0x38f4f0[_0x442282(0xf3)](_0x442282(0x103))['to'](this,_0x442282(0xd7),_0x5bd2b1=>!!_0x5bd2b1),_0x38f4f0[_0x442282(0xf3)](_0x442282(0xde))['to'](this,_0x442282(0xf0),_0xf708a4=>!_0xf708a4),_0x38f4f0['on'](_0x442282(0xec),()=>{const _0x142eab=_0x442282;this[_0x142eab(0xfb)](this[_0x142eab(0x124)][_0x142eab(0xea)]),_0x38f4f0[_0x142eab(0xdf)]=_0x264835[_0x142eab(0x121)],_0x38f4f0[_0x142eab(0xef)]=_0x226bbf+_0x142eab(0x11d),this[_0x142eab(0xe2)](),setTimeout(()=>{const _0x297941=_0x142eab;_0x38f4f0[_0x297941(0xdf)]=_0x2a6a27,_0x38f4f0[_0x297941(0xef)]=_0x226bbf;},0x3e8);}),_0x38f4f0;}[_0x16de5d(0xfb)](_0x12c54f){const _0x4df532=_0x16de5d,{window:_0xd029e9,document:_0x518c30}=_0x2d91c3;if(_0xd029e9[_0x4df532(0x123)]){const {Blob:_0x34e6bf,ClipboardItem:_0x26962a}=_0xd029e9,_0x58b44e=[new _0x26962a({'text/html':new _0x34e6bf([_0x12c54f[_0x4df532(0x10f)]],{'type':_0x4df532(0x111)}),'text/plain':new _0x34e6bf([_0x12c54f[_0x4df532(0x106)]||''],{'type':_0x4df532(0xe6)})})];navigator[_0x4df532(0x119)][_0x4df532(0xe0)](_0x58b44e);}else{const _0x9b8498=_0x518c30[_0x4df532(0x11f)](_0x4df532(0x11e));_0x9b8498[_0x4df532(0x101)][_0x4df532(0x104)]=_0x4df532(0x108),_0x9b8498[_0x4df532(0x101)][_0x4df532(0xfd)]=_0x4df532(0x10e),_0x9b8498[_0x4df532(0x10f)]=_0x4df532(0xee)+_0x12c54f[_0x4df532(0x10f)]+_0x4df532(0x11c),_0x518c30[_0x4df532(0xfe)][_0x4df532(0xd2)](_0x9b8498);const _0x331a3e=_0x518c30[_0x4df532(0xf7)]();_0x331a3e[_0x4df532(0x11a)](_0x9b8498[_0x4df532(0xdd)]),_0x331a3e[_0x4df532(0xd9)](_0x9b8498[_0x4df532(0xed)]);const _0x34d9a8=_0xd029e9[_0x4df532(0xe8)]();_0x34d9a8[_0x4df532(0xd4)](),_0x34d9a8[_0x4df532(0xf2)](_0x331a3e),_0x518c30[_0x4df532(0xfc)](_0x4df532(0xd3)),_0x9b8498[_0x4df532(0xf6)]();}}}export class ContentFieldView extends _0x2264f6{constructor(_0x324546,_0x47e2df=''){const _0x58ca16=_0x16de5d;super(_0x324546),this[_0x58ca16(0x10b)]=this[_0x58ca16(0xff)](),this[_0x58ca16(0x115)]({'tag':_0x58ca16(0x11e),'attributes':{'class':['ck',_0x58ca16(0x110),_0x47e2df,_0x58ca16(0x114),_0x58ca16(0xeb)]}});}[_0x16de5d(0x113)](_0x3b81bb){const _0x44c0b8=_0x16de5d;this[_0x44c0b8(0xea)][_0x44c0b8(0x10f)]=_0x3b81bb;}[_0x16de5d(0x112)](){const _0x241a27=_0x16de5d;this[_0x241a27(0xea)][_0x241a27(0xd2)](this[_0x241a27(0x10b)][_0x241a27(0xea)]);}[_0x16de5d(0xff)](){const _0x5f4233=_0x16de5d,_0x3307e9=new _0x2264f6(),_0x44ac3f=this[_0x5f4233(0x11b)],_0x23f8c4=new _0x4a7322();return _0x23f8c4[_0x5f4233(0x103)]=!0x0,_0x3307e9[_0x5f4233(0x115)]({'tag':_0x5f4233(0x11e),'attributes':{'class':['ck',_0x5f4233(0xf5)]},'children':[_0x23f8c4,{'text':_0x28e748(_0x44ac3f,_0x5f4233(0x117))}]}),_0x3307e9[_0x5f4233(0x105)](),_0x3307e9;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x5e35fb,_0x313432){const _0x5100ce=_0x59eb,_0xf1217e=_0x5e35fb();while(!![]){try{const _0x250de5=-parseInt(_0x5100ce(0x157))/0x1*(-parseInt(_0x5100ce(0x152))/0x2)+-parseInt(_0x5100ce(0x149))/0x3*(-parseInt(_0x5100ce(0x151))/0x4)+parseInt(_0x5100ce(0x14e))/0x5+parseInt(_0x5100ce(0x14b))/0x6+-parseInt(_0x5100ce(0x146))/0x7*(parseInt(_0x5100ce(0x154))/0x8)+parseInt(_0x5100ce(0x14d))/0x9*(parseInt(_0x5100ce(0x155))/0xa)+-parseInt(_0x5100ce(0x14f))/0xb;if(_0x250de5===_0x313432)break;else _0xf1217e['push'](_0xf1217e['shift']());}catch(_0xce867b){_0xf1217e['push'](_0xf1217e['shift']());}}}(_0x5a7b,0xc0dbd));function _0x59eb(_0x192e10,_0x49933b){const _0x5a7be0=_0x5a7b();return _0x59eb=function(_0x59eb0c,_0x7e3b16){_0x59eb0c=_0x59eb0c-0x146;let _0x16ab9d=_0x5a7be0[_0x59eb0c];return _0x16ab9d;},_0x59eb(_0x192e10,_0x49933b);}import{View as _0x12da69,IconView as _0x5f4334}from'ckeditor5/src/ui.js';import _0x58b8db from'../../../theme/icons/error.svg';export default class at extends _0x12da69{constructor(_0x11f1a9,_0x1521a9=''){const _0x1cb32f=_0x59eb;super(_0x11f1a9);const _0x3d503f=new _0x5f4334(),_0x79a927=this[_0x1cb32f(0x148)];this[_0x1cb32f(0x14a)](_0x1cb32f(0x156),_0x1521a9),_0x3d503f[_0x1cb32f(0x150)]=_0x58b8db,this[_0x1cb32f(0x153)]({'tag':_0x1cb32f(0x14c),'attributes':{'class':['ck',_0x1cb32f(0x147)]},'children':[_0x3d503f,{'text':_0x79a927['to'](_0x1cb32f(0x156))}]});}}function _0x5a7b(){const _0x2f17a6=['16649116nhObSl','content','16KsbbBd','2LVkbGS','setTemplate','3466536PAZDaw','10itPjbp','text','162451kGFXPA','7TXdZLa','ck-ai-form__error','bindTemplate','663813hMyPZk','set','2922048QYgbJo','div','135972jQcuoo','5935855yDIGag'];_0x5a7b=function(){return _0x2f17a6;};return _0x5a7b();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3a748d=_0x5408;(function(_0x5537fb,_0x39fb18){const _0x23ff1e=_0x5408,_0x2957ce=_0x5537fb();while(!![]){try{const _0x58de22=parseInt(_0x23ff1e(0xad))/0x1*(-parseInt(_0x23ff1e(0xae))/0x2)+-parseInt(_0x23ff1e(0x7d))/0x3+parseInt(_0x23ff1e(0x85))/0x4+parseInt(_0x23ff1e(0x99))/0x5*(parseInt(_0x23ff1e(0xab))/0x6)+-parseInt(_0x23ff1e(0xb4))/0x7*(parseInt(_0x23ff1e(0x88))/0x8)+-parseInt(_0x23ff1e(0x9a))/0x9+parseInt(_0x23ff1e(0x9f))/0xa;if(_0x58de22===_0x39fb18)break;else _0x2957ce['push'](_0x2957ce['shift']());}catch(_0x493182){_0x2957ce['push'](_0x2957ce['shift']());}}}(_0x5c4c,0x941ae));function _0x5c4c(){const _0x50a90c=['render','focusableChildren','ck-ai-form__toggle-history','3193983quQNTj','children','rtl','fire','isEmpty','resultsView','history','focusFirst','1403444Eoztxu','value','filteredView','16WiwTre','isEnabled','target','excludeScrollbarsAndBorders','ck-ai-form__submit','_createSubmitButton','focusCycler','History','focusLast','right','maxRows','isVisible','isOn','submit','window','bind','requestAnimationFrame','379935zSOgUJ','5136750IbRHRS','execute','focus','width','add','21749800OekoYK','minRows','fieldView','enter','submitButtonView','queryView','_createShowHistoryButton','showHistoryButtonView','Submit','update','keystrokes','element','30bilELW','set','1GUdvvZ','97514nZKLCu','locale','left','style','uiLanguageDirection','fieldWrapperChildren','2152395JHBPba'];_0x5c4c=function(){return _0x50a90c;};return _0x5c4c();}import{Rect as _0x3ff53a,global as _0x1d8947,isVisible as _0x329629}from'ckeditor5/src/utils.js';import{AutocompleteView as _0x37fd9d,ButtonView as _0x17bdb9}from'ckeditor5/src/ui.js';function _0x5408(_0x21d139,_0x3d780d){const _0x5c4c5a=_0x5c4c();return _0x5408=function(_0x5408f4,_0xf54614){_0x5408f4=_0x5408f4-0x7b;let _0x431a6a=_0x5c4c5a[_0x5408f4];return _0x431a6a;},_0x5408(_0x21d139,_0x3d780d);}import{icons as _0x47efeb}from'ckeditor5/src/core.js';import{getTranslation as _0x40968d}from'../../utils/common-translations.js';import _0xf55e28 from'../../../theme/icons/submit.svg';export default class ut extends _0x37fd9d{constructor(_0x570c99,_0x3d4302){const _0x1f74b5=_0x5408;super(_0x570c99,_0x3d4302),this[_0x1f74b5(0xa4)][_0x1f74b5(0xa1)][_0x1f74b5(0xa0)]=0x1,this[_0x1f74b5(0xa4)][_0x1f74b5(0xa1)][_0x1f74b5(0x92)]=0x3,this[_0x1f74b5(0xa3)]=this[_0x1f74b5(0x8d)](),this[_0x1f74b5(0xa6)]=this[_0x1f74b5(0xa5)](),this[_0x1f74b5(0x7b)][_0x1f74b5(0x9e)](this[_0x1f74b5(0xa6)],0x1),this[_0x1f74b5(0x7b)][_0x1f74b5(0x9e)](this[_0x1f74b5(0xa3)]);}[_0x3a748d(0xb5)](){const _0x1f765f=_0x3a748d;super[_0x1f765f(0xb5)](),this[_0x1f765f(0xa4)][_0x1f765f(0xb3)][_0x1f765f(0x9e)](this[_0x1f765f(0xa6)]),this[_0x1f765f(0x7e)][_0x1f765f(0x9e)](this[_0x1f765f(0xa3)]),this[_0x1f765f(0xa9)][_0x1f765f(0xac)](_0x1f765f(0xa2),(_0x4e63da,_0x8641ea)=>{const _0x129c0c=_0x1f765f;_0x4e63da[_0x129c0c(0x8a)]==this[_0x129c0c(0xa4)][_0x129c0c(0xa1)][_0x129c0c(0xaa)]&&(this[_0x129c0c(0x95)](),_0x8641ea());});}[_0x3a748d(0x8d)](){const _0x3b49fe=_0x3a748d,_0x2314ba=new _0x17bdb9(this[_0x3b49fe(0xaf)]),_0x506e8c=this[_0x3b49fe(0xaf)];return _0x2314ba[_0x3b49fe(0xac)]({'icon':_0xf55e28,'label':_0x40968d(_0x506e8c,_0x3b49fe(0xa7)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x3b49fe(0x8c)}),_0x2314ba['on'](_0x3b49fe(0x9b),()=>{const _0x1dce69=_0x3b49fe;this[_0x1dce69(0x95)]();}),_0x2314ba[_0x3b49fe(0x97)](_0x3b49fe(0x89))['to'](this[_0x3b49fe(0xa4)][_0x3b49fe(0xa1)],_0x3b49fe(0x81),this,_0x3b49fe(0x89),(_0x5503e0,_0x5a336e)=>!_0x5503e0&&_0x5a336e),_0x2314ba;}[_0x3a748d(0xa5)](){const _0x521776=_0x3a748d,_0x3097ce=new _0x17bdb9(this[_0x521776(0xaf)]),_0x1d19e7=this[_0x521776(0x82)],_0x44ac54=this[_0x521776(0xaf)];_0x3097ce[_0x521776(0xac)]({'label':_0x40968d(_0x44ac54,_0x521776(0x8f)),'withText':!0x1,'icon':_0x47efeb[_0x521776(0x83)],'tooltip':!0x0,'tooltipPosition':'sw','class':_0x521776(0x7c)}),_0x3097ce[_0x521776(0x97)](_0x521776(0x94))['to'](_0x1d19e7,_0x521776(0x93)),_0x3097ce[_0x521776(0x97)](_0x521776(0x89))['to'](this,_0x521776(0x89)),_0x3097ce['on'](_0x521776(0x9b),()=>{const _0x3c599b=_0x521776;_0x1d19e7[_0x3c599b(0x93)]=!_0x1d19e7[_0x3c599b(0x93)],_0x1d19e7[_0x3c599b(0x93)]?this[_0x3c599b(0x87)][_0x3c599b(0x9c)]():this[_0x3c599b(0x9c)]();});const _0x3da0e8=()=>{const _0x4885c1=_0x521776;_0x1d8947[_0x4885c1(0x96)][_0x4885c1(0x98)](()=>{const _0x529b1e=_0x4885c1;if(_0x329629(this[_0x529b1e(0xaa)])){const _0x4139fc=new _0x3ff53a(this[_0x529b1e(0xa4)][_0x529b1e(0xa1)][_0x529b1e(0xaa)]),_0x2c96b1=_0x4139fc[_0x529b1e(0x9d)],_0x5608a3=_0x529b1e(0x7f)===_0x44ac54[_0x529b1e(0xb2)]?_0x529b1e(0xb0):_0x529b1e(0x91);_0x4139fc[_0x529b1e(0x8b)](),_0x3097ce[_0x529b1e(0xaa)][_0x529b1e(0xb1)][_0x5608a3]=_0x2c96b1-_0x4139fc[_0x529b1e(0x9d)]+0x1+'px';}});};return this[_0x521776(0xa4)][_0x521776(0xa1)]['on'](_0x521776(0xa8),_0x3da0e8),this['on'](_0x521776(0xb5),_0x3da0e8),_0x3097ce;}[_0x3a748d(0x95)](){const _0x53b280=_0x3a748d,_0x764221=this[_0x53b280(0xa4)][_0x53b280(0xa1)][_0x53b280(0xaa)][_0x53b280(0x86)];this[_0x53b280(0x80)](_0x53b280(0x95),_0x764221);}[_0x3a748d(0x9c)](_0x3f1439){const _0x3b5fff=_0x3a748d;-0x1===_0x3f1439?this[_0x3b5fff(0x8e)][_0x3b5fff(0x90)]():this[_0x3b5fff(0x8e)][_0x3b5fff(0x84)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x19e7(_0x2b2c4c,_0x9ba733){const _0x43bc96=_0x43bc();return _0x19e7=function(_0x19e7c0,_0x4efbf4){_0x19e7c0=_0x19e7c0-0xdd;let _0x24d953=_0x43bc96[_0x19e7c0];return _0x24d953;},_0x19e7(_0x2b2c4c,_0x9ba733);}const _0x2def6f=_0x19e7;(function(_0x17fe8d,_0x16e4c6){const _0x3e40f8=_0x19e7,_0x50838c=_0x17fe8d();while(!![]){try{const _0x750c1a=-parseInt(_0x3e40f8(0xdf))/0x1*(-parseInt(_0x3e40f8(0xea))/0x2)+-parseInt(_0x3e40f8(0xf6))/0x3*(parseInt(_0x3e40f8(0xe6))/0x4)+parseInt(_0x3e40f8(0xfb))/0x5+parseInt(_0x3e40f8(0xf2))/0x6*(parseInt(_0x3e40f8(0xf4))/0x7)+parseInt(_0x3e40f8(0xeb))/0x8+-parseInt(_0x3e40f8(0xf5))/0x9+-parseInt(_0x3e40f8(0x100))/0xa*(parseInt(_0x3e40f8(0xfa))/0xb);if(_0x750c1a===_0x16e4c6)break;else _0x50838c['push'](_0x50838c['shift']());}catch(_0x122839){_0x50838c['push'](_0x50838c['shift']());}}}(_0x43bc,0x538cb));import{ToolbarView as _0x1571e8,ButtonView as _0x54cb30}from'ckeditor5/src/ui.js';import{getTranslation as _0xb69ccc}from'../../utils/common-translations.js';function _0x43bc(){const _0x335d30=['Stop','isVisible','ck-hidden','316lljATM','stopButton','bindTemplate','toUpperCase','163222BwBBFp','4413280dwiAHU','insert','ck-button-action','bind','Try\x20again','ck-ai-form__toolbar','items','510jyWTPd','locale','46270BlWLQa','319527jBtRdx','8421Trykpf','insertButton','label','addMany','113069timMWY','2748350NkWwSG','set','Insert\x20below','AI_','replace','1670uqeDGE','tryAgainButton','_CONTENT','mainAction','extendTemplate','8lnBSca','_createButton','replaceButton','REPLACE'];_0x43bc=function(){return _0x335d30;};return _0x43bc();}export const AIFormToolbarViewMainActionLabel={'REPLACE':_0x2def6f(0xff),'INSERT':_0x2def6f(0xec)};export default class At extends _0x1571e8{constructor(_0x1a8ea5){const _0x5265bd=_0x2def6f;super(_0x1a8ea5),this[_0x5265bd(0xfc)](_0x5265bd(0xe4),!0x1),this[_0x5265bd(0xfc)](_0x5265bd(0xdd),AIFormToolbarViewMainActionLabel[_0x5265bd(0xe2)]),this[_0x5265bd(0xe1)]=this[_0x5265bd(0xe0)]('',_0x5265bd(0xed)),this[_0x5265bd(0xe1)][_0x5265bd(0xee)](_0x5265bd(0xf8))['to'](this,_0x5265bd(0xdd),_0x452cb2=>_0xb69ccc(_0x1a8ea5,_0x5265bd(0xfe)+_0x452cb2[_0x5265bd(0xe9)]()+_0x5265bd(0x102))),this[_0x5265bd(0xf7)]=this[_0x5265bd(0xe0)](_0xb69ccc(_0x1a8ea5,_0x5265bd(0xfd))),this[_0x5265bd(0x101)]=this[_0x5265bd(0xe0)](_0xb69ccc(_0x1a8ea5,_0x5265bd(0xef))),this[_0x5265bd(0xe7)]=this[_0x5265bd(0xe0)](_0xb69ccc(_0x1a8ea5,_0x5265bd(0xe3)));const _0x5ed967=this[_0x5265bd(0xe8)];this[_0x5265bd(0xde)]({'attributes':{'class':[_0x5265bd(0xf0),_0x5ed967['if'](_0x5265bd(0xe4),_0x5265bd(0xe5),_0x3afbac=>!_0x3afbac)]}}),this[_0x5265bd(0xf1)][_0x5265bd(0xf9)]([this[_0x5265bd(0xe1)],this[_0x5265bd(0xf7)],this[_0x5265bd(0x101)],this[_0x5265bd(0xe7)]]);}[_0x2def6f(0xe0)](_0x5e1d85,_0x561e5d){const _0x1cb423=_0x2def6f,_0x3c6afb=new _0x54cb30(this[_0x1cb423(0xf3)]);return _0x3c6afb[_0x1cb423(0xfc)]({'label':_0x5e1d85,'class':_0x561e5d||'','isVisible':!0x0,'withText':!0x0}),_0x3c6afb;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3ebaed=_0x324b;(function(_0x50ab24,_0xc13b78){const _0x70130b=_0x324b,_0x3ce89d=_0x50ab24();while(!![]){try{const _0x41622e=-parseInt(_0x70130b(0x21a))/0x1+parseInt(_0x70130b(0x204))/0x2+parseInt(_0x70130b(0x207))/0x3+-parseInt(_0x70130b(0x235))/0x4+parseInt(_0x70130b(0x20b))/0x5*(-parseInt(_0x70130b(0x23c))/0x6)+-parseInt(_0x70130b(0x1fe))/0x7*(parseInt(_0x70130b(0x1f8))/0x8)+parseInt(_0x70130b(0x22c))/0x9*(parseInt(_0x70130b(0x21f))/0xa);if(_0x41622e===_0xc13b78)break;else _0x3ce89d['push'](_0x3ce89d['shift']());}catch(_0x589544){_0x3ce89d['push'](_0x3ce89d['shift']());}}}(_0x5179,0x3005f));import{FocusTracker as _0x248048,KeystrokeHandler as _0x1e14cb}from'ckeditor5/src/utils.js';import{View as _0x22ea84,FocusCycler as _0x3b4b6f,createLabeledTextarea as _0x29e963}from'ckeditor5/src/ui.js';import _0x536586,{AIFormToolbarViewMainActionLabel as _0x2c53f9}from'./aiformtoolbarview.js';function _0x324b(_0x56fcff,_0x18cd30){const _0x517934=_0x5179();return _0x324b=function(_0x324baf,_0x23f1b7){_0x324baf=_0x324baf-0x1ea;let _0x32673a=_0x517934[_0x324baf];return _0x32673a;},_0x324b(_0x56fcff,_0x18cd30);}import _0x37f68a from'./aiformcontentarea.js';import _0x5ca251 from'./aiformerrorview.js';function _0x5179(){const _0xf8358d=['1571164EwwtRv','clearHistory','mainAction','render','insertContentBelow','bindTo','585546HqtBXT','_createPromptView','high','1040232KONiFf','Ask\x20AI\x20to\x20edit\x20or\x20generate','submit','text','44805mNyFgP','focusLast','Ask\x20AI\x20to\x20improve\x20generated\x20text','copyButtonView','value','set','errorView','historyGroupView','focusTracker','createCollection','_createToolbar','replaceContent','delegate','_promptHistory','isProcessing','316514ohZgUr','execute','isVisible','focusFirst','REPLACE','5267090nFSYcP','clear','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','toolbar','finishProcessing','element','Empty\x20history','ck-hidden','stopButton','div','queryView','search','isEnabled','9kpAswA','replaceButton','promptView','contentArea','listenTo','tab','bind','focus','startProcessing','1427476RTMaPf','reset','_createHistoryView','fieldView','tryAgainButton','items','_focusables','48NlzxuP','handleError','bindTemplate','submitPrompt','ck-ai-form','keystrokes','setTemplate','isError','shift\x20+\x20tab','focusCycler','locale','label','trim','AI_ERROR_FAILED','ck-ai-form-content','insertButton','chain','8IZEkay','prompt','fire','tryAgainEvent','stopProcessing','add'];_0x5179=function(){return _0xf8358d;};return _0x5179();}import _0x2e9996 from'./aiformpromptview.js';import _0x1acfdc from'./aihistorylistview.js';import _0x38b0f4 from'./aihistorylistitemview.js';import _0x11263a from'./prompthistory.js';import{getTranslation as _0xbbed5e}from'../../utils/common-translations.js';import{escape as _0x4c19cb}from'lodash-es';export default class N extends _0x22ea84{constructor(_0x18309c,_0x3358f8,_0x32de67=''){const _0x140512=_0x324b;super(_0x18309c),this[_0x140512(0x210)](_0x140512(0x22b),!0x0),this[_0x140512(0x210)](_0x140512(0x219),!0x1),this[_0x140512(0x210)](_0x140512(0x1f9),''),this[_0x140512(0x210)](_0x140512(0x20f),''),this[_0x140512(0x210)](_0x140512(0x1ee),!0x1),this[_0x140512(0x210)](_0x140512(0x200),_0x2c53f9[_0x140512(0x21e)]),this[_0x140512(0x218)]=new _0x11263a(),this[_0x140512(0x211)]=new _0x5ca251(_0x18309c),this[_0x140512(0x22f)]=new _0x37f68a(_0x18309c,_0x32de67),this[_0x140512(0x22f)][_0x140512(0x232)](_0x140512(0x219))['to'](this),this[_0x140512(0x22f)][_0x140512(0x232)](_0x140512(0x20f))['to'](this),this[_0x140512(0x222)]=this[_0x140512(0x215)](),this[_0x140512(0x222)][_0x140512(0x232)](_0x140512(0x200))['to'](this),this[_0x140512(0x22e)]=this[_0x140512(0x205)](),this[_0x140512(0x213)]=new _0x248048(),this[_0x140512(0x1ec)]=new _0x1e14cb(),this[_0x140512(0x23b)]=this[_0x140512(0x214)]([this[_0x140512(0x22f)],this[_0x140512(0x22f)][_0x140512(0x20e)],this[_0x140512(0x222)],this[_0x140512(0x22e)]]),this[_0x140512(0x1f0)]=new _0x3b4b6f({'focusables':this[_0x140512(0x23b)],'focusTracker':this[_0x140512(0x213)],'keystrokeHandler':this[_0x140512(0x1ec)],'actions':{'focusPrevious':_0x140512(0x1ef),'focusNext':_0x140512(0x231)}}),this[_0x140512(0x1f0)][_0x140512(0x1f7)](this[_0x140512(0x22e)][_0x140512(0x1f0)]),this[_0x140512(0x22e)][_0x140512(0x229)][_0x140512(0x238)][_0x140512(0x232)](_0x140512(0x20f))['to'](this,_0x140512(0x1f9));const _0x340b88=this[_0x140512(0x23e)];this[_0x140512(0x1ed)]({'tag':_0x140512(0x228),'attributes':{'class':['ck',_0x140512(0x1eb),_0x3358f8],'tabindex':'-1'},'children':[{'tag':_0x140512(0x228),'attributes':{'class':['ck',_0x140512(0x1f5)]},'children':[{'tag':_0x140512(0x228),'attributes':{'class':[_0x340b88['if'](_0x140512(0x1ee),_0x140512(0x226),_0x3dccb6=>!_0x3dccb6)]},'children':[this[_0x140512(0x211)]]},this[_0x140512(0x22f)],this[_0x140512(0x222)],this[_0x140512(0x22e)]]}]});}[_0x3ebaed(0x201)](){const _0x3cdff3=_0x3ebaed;super[_0x3cdff3(0x201)](),this[_0x3cdff3(0x213)][_0x3cdff3(0x1fd)](this[_0x3cdff3(0x22f)][_0x3cdff3(0x224)]),this[_0x3cdff3(0x213)][_0x3cdff3(0x1fd)](this[_0x3cdff3(0x22f)][_0x3cdff3(0x20e)][_0x3cdff3(0x224)]),this[_0x3cdff3(0x213)][_0x3cdff3(0x1fd)](this[_0x3cdff3(0x222)][_0x3cdff3(0x224)]),this[_0x3cdff3(0x213)][_0x3cdff3(0x1fd)](this[_0x3cdff3(0x22e)][_0x3cdff3(0x224)]),this[_0x3cdff3(0x1ec)][_0x3cdff3(0x230)](this[_0x3cdff3(0x224)]);}[_0x3ebaed(0x233)](_0x54b66d=0x1){const _0x3fca59=_0x3ebaed;-0x1===_0x54b66d?this[_0x3fca59(0x1f0)][_0x3fca59(0x20c)]():this[_0x3fca59(0x1f0)][_0x3fca59(0x21d)]();}[_0x3ebaed(0x236)](){const _0x457996=_0x3ebaed;this[_0x457996(0x1f9)]='',this[_0x457996(0x20f)]='',this[_0x457996(0x1ee)]=!0x1,this[_0x457996(0x22e)][_0x457996(0x236)](),this[_0x457996(0x22f)][_0x457996(0x21c)]=!0x1,this[_0x457996(0x222)][_0x457996(0x21c)]=!0x1;}[_0x3ebaed(0x205)](){const _0xecf490=_0x3ebaed,_0x32914b=this[_0xecf490(0x1f1)],_0x34c4d0=new _0x2e9996(_0x32914b,{'queryView':{'label':_0xbbed5e(_0x32914b,_0xecf490(0x208)),'creator':_0x29e963,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0xbbed5e(_0x32914b,_0xecf490(0x225)),'secondary':_0xbbed5e(_0x32914b,_0xecf490(0x221))}}},'filteredView':this[_0xecf490(0x237)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x34c4d0[_0xecf490(0x232)](_0xecf490(0x22b))['to'](this,_0xecf490(0x22b),this,_0xecf490(0x219),(_0x56023b,_0x555c6a)=>_0x56023b&&!_0x555c6a),this[_0xecf490(0x230)](_0x34c4d0,_0xecf490(0x209),(_0x620982,_0x51ec3e)=>{const _0x1393e5=_0xecf490;this[_0x1393e5(0x1f9)]=_0x51ec3e;const _0x2ec402=_0x4c19cb(_0x51ec3e);this[_0x1393e5(0x1fa)](_0x1393e5(0x1ea),_0x2ec402),_0x51ec3e[_0x1393e5(0x1f3)]()&&this[_0x1393e5(0x218)][_0x1393e5(0x1fd)]({'prompt':_0x2ec402},0x0);},{'priority':_0xecf490(0x206)}),_0x34c4d0;}[_0x3ebaed(0x237)](){const _0x252441=_0x3ebaed,_0x48f962=new _0x1acfdc(this[_0x252441(0x1f1)]);return _0x48f962[_0x252441(0x212)][_0x252441(0x23a)][_0x252441(0x203)](this[_0x252441(0x218)])['as'](_0x38b0f4),_0x48f962['on'](_0x252441(0x1ff),()=>{const _0x436843=_0x252441;this[_0x436843(0x218)][_0x436843(0x220)](),this[_0x436843(0x22e)][_0x436843(0x22a)](''),this[_0x436843(0x22e)][_0x436843(0x233)]();}),_0x48f962;}[_0x3ebaed(0x215)](){const _0x41f0b5=_0x3ebaed,_0x4e31d4=new _0x536586(this[_0x41f0b5(0x1f1)]);return _0x4e31d4[_0x41f0b5(0x22d)][_0x41f0b5(0x232)](_0x41f0b5(0x22b))['to'](this,_0x41f0b5(0x22b),this,_0x41f0b5(0x219),this,_0x41f0b5(0x20f),(_0x5d066b,_0x466adb,_0x54d2e1)=>_0x5d066b&&!_0x466adb&&!!_0x54d2e1),_0x4e31d4[_0x41f0b5(0x22d)][_0x41f0b5(0x217)](_0x41f0b5(0x21b))['to'](this,_0x41f0b5(0x216)),_0x4e31d4[_0x41f0b5(0x1f6)][_0x41f0b5(0x232)](_0x41f0b5(0x22b))['to'](this,_0x41f0b5(0x22b),this,_0x41f0b5(0x219),this,_0x41f0b5(0x20f),(_0xcca14d,_0x548273,_0x140154)=>_0xcca14d&&!_0x548273&&!!_0x140154),_0x4e31d4[_0x41f0b5(0x1f6)][_0x41f0b5(0x217)](_0x41f0b5(0x21b))['to'](this,_0x41f0b5(0x202)),_0x4e31d4[_0x41f0b5(0x239)][_0x41f0b5(0x232)](_0x41f0b5(0x22b))['to'](this,_0x41f0b5(0x22b),this,_0x41f0b5(0x219),(_0x2a5243,_0x2f45ea)=>_0x2a5243&&!_0x2f45ea),_0x4e31d4[_0x41f0b5(0x239)][_0x41f0b5(0x217)](_0x41f0b5(0x21b))['to'](this,_0x41f0b5(0x1fb)),_0x4e31d4[_0x41f0b5(0x227)][_0x41f0b5(0x232)](_0x41f0b5(0x22b))['to'](this,_0x41f0b5(0x219)),_0x4e31d4[_0x41f0b5(0x227)][_0x41f0b5(0x217)](_0x41f0b5(0x21b))['to'](this,_0x41f0b5(0x1fc)),_0x4e31d4;}[_0x3ebaed(0x234)](){const _0x4f0a4f=_0x3ebaed;this[_0x4f0a4f(0x20f)]='',this[_0x4f0a4f(0x1ee)]=!0x1,this[_0x4f0a4f(0x219)]=!0x0,this[_0x4f0a4f(0x22f)][_0x4f0a4f(0x21c)]=!0x0,this[_0x4f0a4f(0x222)][_0x4f0a4f(0x21c)]=!0x0,this[_0x4f0a4f(0x22f)][_0x4f0a4f(0x233)]();}[_0x3ebaed(0x223)](){const _0x32ddce=_0x3ebaed,_0x1fe34e=this[_0x32ddce(0x1f1)];this[_0x32ddce(0x219)]=!0x1,this[_0x32ddce(0x1f9)]='',this[_0x32ddce(0x22e)][_0x32ddce(0x236)](),this[_0x32ddce(0x20f)]&&(this[_0x32ddce(0x22e)][_0x32ddce(0x229)][_0x32ddce(0x1f2)]=_0xbbed5e(_0x1fe34e,_0x32ddce(0x20d)));}[_0x3ebaed(0x23d)](_0x494ab8){const _0x2109fb=_0x3ebaed,_0x2d9804=this[_0x2109fb(0x1f1)];this[_0x2109fb(0x223)](),this[_0x2109fb(0x1ee)]=!0x0,this[_0x2109fb(0x211)][_0x2109fb(0x20a)]=_0x494ab8||_0xbbed5e(_0x2d9804,_0x2109fb(0x1f4)),this[_0x2109fb(0x20f)]||(this[_0x2109fb(0x22f)][_0x2109fb(0x21c)]=!0x1);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x5b5f(){const _0x4e2a29=['locale','execute','set','7cdssrC','add','6080145cIAmmu','245286CMelRv','1259057BAzjYK','541600XHTxKP','422000KlICRQ','708PqTOUR','3570816BgihMp','45hAbtPr','prompt','fire','8478rdFfoY','children'];_0x5b5f=function(){return _0x4e2a29;};return _0x5b5f();}function _0x5938(_0x205625,_0xcc5277){const _0x5b5fab=_0x5b5f();return _0x5938=function(_0x5938bb,_0xe85f0b){_0x5938bb=_0x5938bb-0x67;let _0x112586=_0x5b5fab[_0x5938bb];return _0x112586;},_0x5938(_0x205625,_0xcc5277);}(function(_0x29fed4,_0x30cf38){const _0x2ba142=_0x5938,_0x322166=_0x29fed4();while(!![]){try{const _0x3bd205=parseInt(_0x2ba142(0x72))/0x1+parseInt(_0x2ba142(0x69))/0x2*(-parseInt(_0x2ba142(0x75))/0x3)+-parseInt(_0x2ba142(0x76))/0x4+parseInt(_0x2ba142(0x70))/0x5+-parseInt(_0x2ba142(0x71))/0x6*(parseInt(_0x2ba142(0x6e))/0x7)+-parseInt(_0x2ba142(0x74))/0x8+parseInt(_0x2ba142(0x77))/0x9*(parseInt(_0x2ba142(0x73))/0xa);if(_0x3bd205===_0x30cf38)break;else _0x322166['push'](_0x322166['shift']());}catch(_0x468e53){_0x322166['push'](_0x322166['shift']());}}}(_0x5b5f,0xb956b));import{ListItemView as _0x37515d,ButtonView as _0x211dbc,ButtonLabelWithHighlightView as _0x58f170}from'ckeditor5/src/ui.js';import{unescape as _0x5b2b38}from'lodash-es';export default class os extends _0x37515d{constructor(_0x47768a){const _0x585ea8=_0x5938;super();const _0x597b8f=new _0x58f170(),_0x12f7e9=new _0x211dbc(this[_0x585ea8(0x6b)],_0x597b8f);this[_0x585ea8(0x6a)][_0x585ea8(0x6f)](_0x12f7e9),_0x12f7e9[_0x585ea8(0x6d)]({'label':_0x47768a[_0x585ea8(0x67)],'withText':!0x0}),_0x12f7e9['on'](_0x585ea8(0x6c),()=>{const _0x52bc34=_0x585ea8;this[_0x52bc34(0x68)](_0x52bc34(0x6c),{'value':_0x5b2b38(_0x47768a[_0x52bc34(0x67)])});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x1766(){const _0x22ae2c=['5938339SwiMXa','length','12qHnSim','10bVnHwS','105767fNsDlj','clearHistory','execute','items','children','clearHistoryButton','fire','2775897myfPYB','Prompt\x20history','historyGroupView','4NLixvP','84882jqFgKA','add','set','label','4040135yXluSG','Clear','filter','locale','383532fMjEfI','2151018aCqMhd','delegate','_createClearHistoryButton','352mnpMyC'];_0x1766=function(){return _0x22ae2c;};return _0x1766();}const _0x272c34=_0x35f7;function _0x35f7(_0x2e6f33,_0x35e7ec){const _0x1766d0=_0x1766();return _0x35f7=function(_0x35f733,_0x136dd5){_0x35f733=_0x35f733-0x95;let _0x40880b=_0x1766d0[_0x35f733];return _0x40880b;},_0x35f7(_0x2e6f33,_0x35e7ec);}(function(_0x131ebf,_0x3bc883){const _0x42935e=_0x35f7,_0x343e56=_0x131ebf();while(!![]){try{const _0x935395=-parseInt(_0x42935e(0x9e))/0x1*(parseInt(_0x42935e(0x9c))/0x2)+parseInt(_0x42935e(0x95))/0x3*(parseInt(_0x42935e(0xa8))/0x4)+-parseInt(_0x42935e(0xad))/0x5+parseInt(_0x42935e(0x96))/0x6+-parseInt(_0x42935e(0xa9))/0x7*(-parseInt(_0x42935e(0x99))/0x8)+parseInt(_0x42935e(0xa5))/0x9+-parseInt(_0x42935e(0x9d))/0xa*(-parseInt(_0x42935e(0x9a))/0xb);if(_0x935395===_0x3bc883)break;else _0x343e56['push'](_0x343e56['shift']());}catch(_0x229524){_0x343e56['push'](_0x343e56['shift']());}}}(_0x1766,0x67e48));import{ListView as _0x4e0556,ListItemGroupView as _0x163f01,ButtonView as _0x459803}from'ckeditor5/src/ui.js';import{getTranslation as _0x4a5a28}from'../../utils/common-translations.js';export default class hs extends _0x4e0556{constructor(_0x3cf8f7){const _0x5b8b48=_0x35f7;super(_0x3cf8f7),this[_0x5b8b48(0xa3)]=this[_0x5b8b48(0x98)](),this[_0x5b8b48(0xa7)]=new _0x163f01(),this[_0x5b8b48(0xa7)][_0x5b8b48(0xa2)][_0x5b8b48(0xaa)](this[_0x5b8b48(0xa3)],0x1),this[_0x5b8b48(0xa7)][_0x5b8b48(0xac)]=_0x4a5a28(_0x3cf8f7,_0x5b8b48(0xa6)),this[_0x5b8b48(0xa7)][_0x5b8b48(0xa1)][_0x5b8b48(0x97)](_0x5b8b48(0xa0))['to'](this),this[_0x5b8b48(0xa1)][_0x5b8b48(0xaa)](this[_0x5b8b48(0xa7)]);}[_0x272c34(0xaf)](){const _0x446986=_0x272c34;let _0x466cda=0x0;for(const _0x4e1961 of this[_0x446986(0xa1)])_0x466cda+=_0x4e1961[_0x446986(0xa1)][_0x446986(0x9b)];return{'resultsCount':_0x466cda,'totalItemsCount':_0x466cda};}[_0x272c34(0x98)](){const _0xf7506a=_0x272c34,_0x8f0acb=this[_0xf7506a(0xb0)],_0x33845d=new _0x459803(this[_0xf7506a(0xb0)]);return _0x33845d[_0xf7506a(0xab)]({'label':'('+_0x4a5a28(_0x8f0acb,_0xf7506a(0xae))+')','withText':!0x0}),_0x33845d['on'](_0xf7506a(0xa0),()=>this[_0xf7506a(0xa4)](_0xf7506a(0x9f))),_0x33845d;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x3406(){const _0x31f91b=['getItem','_loadFromSessionStorage','251214ooyvSW','length','map','toLowerCase','add','830309IFTHGB','1495840TYZsPY','4991798DYyOlw','18pidlUT','_saveToSessionStorage','16476350qVMKcU','parse','1491894YUQWaN','last','addMany','20rsIctf','trim','15ODzOLZ','prompt','stringify','remove','12104lMnmbY','CKEditor/AIFormView/PromptHistory','setItem'];_0x3406=function(){return _0x31f91b;};return _0x3406();}const _0x362944=_0x5c8f;(function(_0x50ba99,_0x3a5ac5){const _0x37740a=_0x5c8f,_0x24a20d=_0x50ba99();while(!![]){try{const _0x329d72=parseInt(_0x37740a(0x1bb))/0x1+-parseInt(_0x37740a(0x1c5))/0x2*(-parseInt(_0x37740a(0x1d0))/0x3)+-parseInt(_0x37740a(0x1cb))/0x4+-parseInt(_0x37740a(0x1c7))/0x5*(-parseInt(_0x37740a(0x1c2))/0x6)+-parseInt(_0x37740a(0x1bd))/0x7+parseInt(_0x37740a(0x1bc))/0x8*(parseInt(_0x37740a(0x1be))/0x9)+-parseInt(_0x37740a(0x1c0))/0xa;if(_0x329d72===_0x3a5ac5)break;else _0x24a20d['push'](_0x24a20d['shift']());}catch(_0x3ada48){_0x24a20d['push'](_0x24a20d['shift']());}}}(_0x3406,0x6778d));import{Collection as _0x584a08}from'ckeditor5/src/utils.js';const Ss=_0x362944(0x1cc);function _0x5c8f(_0x24a9ee,_0x3f44ac){const _0x340653=_0x3406();return _0x5c8f=function(_0x5c8fdc,_0x1a726e){_0x5c8fdc=_0x5c8fdc-0x1bb;let _0x50a4ae=_0x340653[_0x5c8fdc];return _0x50a4ae;},_0x5c8f(_0x24a9ee,_0x3f44ac);}export default class ns extends _0x584a08{constructor(){const _0x18ccb2=_0x362944;super(),this[_0x18ccb2(0x1cf)](),this['on'](_0x18ccb2(0x1d4),(_0x15ca9b,_0x39c39e)=>{const _0x53c7c6=_0x18ccb2,_0x487a5b=ds(_0x39c39e[_0x53c7c6(0x1c8)]);for(const _0x2e4a27 of this)if(_0x2e4a27!=_0x39c39e&&ds(_0x2e4a27[_0x53c7c6(0x1c8)])===_0x487a5b){this[_0x53c7c6(0x1ca)](_0x2e4a27);break;}this[_0x53c7c6(0x1d1)]>0x14&&this[_0x53c7c6(0x1ca)](this[_0x53c7c6(0x1c3)]),this[_0x53c7c6(0x1bf)]();}),this['on'](_0x18ccb2(0x1ca),()=>{const _0x1f61e0=_0x18ccb2;this[_0x1f61e0(0x1bf)]();});}[_0x362944(0x1cf)](){const _0x346380=_0x362944,_0x31327a=sessionStorage[_0x346380(0x1ce)](Ss)||'[]';this[_0x346380(0x1c4)](JSON[_0x346380(0x1c1)](_0x31327a));}[_0x362944(0x1bf)](){const _0x500601=_0x362944;sessionStorage[_0x500601(0x1cd)](Ss,JSON[_0x500601(0x1c9)](this[_0x500601(0x1d2)](_0x472284=>_0x472284)));}}function ds(_0x18b85f){const _0x631206=_0x362944;return _0x18b85f[_0x631206(0x1d3)]()[_0x631206(0x1c6)]();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x1739(){const _0x3f5fd3=['3nHLOmt','isEnabled','config','hasContent','add','name','element','5578290scQKma','includes','7ZlGynA','set','344308MIiyGA','plugins','isEmpty','document','change:_hasContext','change:isEnabled','commands','ai.aiAssistant.disabledElements','7KmMNEL','reduce','selection','11jBCuwY','length','refresh','execute','85472ftKuwo','showUI','getFirstRange','from','isCollapsed','42662NPWMaq','getSelectedBlocks','custom','getItems','getRanges','editor','_commandDefinitions','get','1018500jNSfLf','629928bmoipX','model','requiresContent','_hasContext','concat','enabledCommandsIds','662100iOBmkk'];_0x1739=function(){return _0x3f5fd3;};return _0x1739();}const _0x602bba=_0x10ba;(function(_0x5cc3a3,_0x13d336){const _0x322b2e=_0x10ba,_0x24dd9f=_0x5cc3a3();while(!![]){try{const _0x80ff6a=-parseInt(_0x322b2e(0x1a5))/0x1*(parseInt(_0x322b2e(0x1bb))/0x2)+parseInt(_0x322b2e(0x1cb))/0x3*(parseInt(_0x322b2e(0x1a7))/0x4)+-parseInt(_0x322b2e(0x1ca))/0x5+-parseInt(_0x322b2e(0x1c3))/0x6+parseInt(_0x322b2e(0x1af))/0x7*(parseInt(_0x322b2e(0x1b6))/0x8)+-parseInt(_0x322b2e(0x1c4))/0x9+-parseInt(_0x322b2e(0x1a3))/0xa*(-parseInt(_0x322b2e(0x1b2))/0xb);if(_0x80ff6a===_0x13d336)break;else _0x24dd9f['push'](_0x24dd9f['shift']());}catch(_0x5dbc0b){_0x24dd9f['push'](_0x24dd9f['shift']());}}}(_0x1739,0x207f7));import{Command as _0x584ed0}from'ckeditor5/src/core.js';import _0x3a45ca from'../aiassistantui.js';export default class x extends _0x584ed0{constructor(_0x2af94a,_0x1c01f8){const _0x2697da=_0x10ba;super(_0x2af94a),this[_0x2697da(0x1c1)]=_0x1c01f8?_0x1c01f8[_0x2697da(0x1b0)]((_0x2a4166,_0x5cc3d0)=>_0x2a4166[_0x2697da(0x1c8)](_0x5cc3d0[_0x2697da(0x1ad)]),new Array()):[],this[_0x2697da(0x1a6)](_0x2697da(0x1c9),[]),this['on'](_0x2697da(0x1ab),(_0x5a5b45,_0x7e7595,_0x1b791b)=>{const _0x948918=_0x2697da;this[_0x948918(0x1cc)]&&(this[_0x948918(0x1c9)]=K(this[_0x948918(0x1c1)],_0x1b791b));}),this[_0x2697da(0x1a6)](_0x2697da(0x1c7),!0x1),this['on'](_0x2697da(0x1ac),(_0x52c73a,_0x2e22a1,_0x3e583c)=>{const _0x271d0e=_0x2697da;this[_0x271d0e(0x1c9)]=_0x3e583c?K(this[_0x271d0e(0x1c1)],this[_0x271d0e(0x1c7)]):[];});}[_0x602bba(0x1b4)](){const _0x2b3fe5=_0x602bba,_0x12bcaa=this[_0x2b3fe5(0x1c0)][_0x2b3fe5(0x1c5)];this[_0x2b3fe5(0x1c7)]=function(_0xb8ec82){const _0x47e6ad=_0x2b3fe5,_0x563ddb=_0xb8ec82[_0x47e6ad(0x1aa)][_0x47e6ad(0x1b1)];return _0x563ddb[_0x47e6ad(0x1ba)]?0x0!==[..._0x563ddb[_0x47e6ad(0x1bc)]()][_0x47e6ad(0x1b3)]&&![..._0x563ddb[_0x47e6ad(0x1bc)]()][0x0][_0x47e6ad(0x1a9)]:!!_0xb8ec82[_0x47e6ad(0x1ce)](_0x563ddb[_0x47e6ad(0x1b8)]());}(_0x12bcaa);const _0x453155=_0x12bcaa[_0x2b3fe5(0x1aa)][_0x2b3fe5(0x1b1)],_0x1eee56=this[_0x2b3fe5(0x1c0)][_0x2b3fe5(0x1cd)][_0x2b3fe5(0x1c2)](_0x2b3fe5(0x1ae));for(const _0x261fc1 of _0x453155[_0x2b3fe5(0x1bf)]())for(const _0x52b694 of _0x261fc1[_0x2b3fe5(0x1be)]())if(_0x52b694['is'](_0x2b3fe5(0x1d1))&&_0x1eee56[_0x2b3fe5(0x1a4)](_0x52b694[_0x2b3fe5(0x1d0)]))return void(this[_0x2b3fe5(0x1cc)]=!0x1);this[_0x2b3fe5(0x1cc)]=!0x0;}[_0x602bba(0x1b5)](_0x421811='',_0x1995f1='',_0x4acd0e=_0x602bba(0x1bd)){const _0xa2d71a=_0x602bba;this[_0xa2d71a(0x1c0)][_0xa2d71a(0x1a8)][_0xa2d71a(0x1c2)](_0x3a45ca)[_0xa2d71a(0x1b7)](_0x421811,_0x1995f1,_0x4acd0e);}}function _0x10ba(_0x219bda,_0x14e0a){const _0x173920=_0x1739();return _0x10ba=function(_0x10baba,_0x1bf4a6){_0x10baba=_0x10baba-0x1a3;let _0x12d76b=_0x173920[_0x10baba];return _0x12d76b;},_0x10ba(_0x219bda,_0x14e0a);}function K(_0x1e8c93,_0x2604da){const _0x18e505=_0x602bba,_0x1550ec=new Set();for(const _0x13a72d of _0x1e8c93)(_0x2604da||!0x1===_0x13a72d[_0x18e505(0x1c6)])&&_0x1550ec[_0x18e505(0x1cf)](_0x13a72d['id']);return Array[_0x18e505(0x1b9)](_0x1550ec);}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(
|
|
23
|
+
export function getTranslation(_0x3a9497,_0x485950,_0x1b9c59){const t=_0x3a9497['t'];switch(_0x485950){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',_0x1b9c59);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',_0x1b9c59);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',_0x1b9c59);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x1b9c59);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'},_0x1b9c59);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 _0x485950;}}
|