@ckeditor/ckeditor5-ai 0.0.0-nightly-20240628.0 → 0.0.0-nightly-20240630.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +6 -6
- 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 +4 -4
- package/src/adapters/aiadapter.js +1 -1
- package/src/adapters/aitextadapter.js +1 -1
- package/src/adapters/awstextadapter.js +1 -1
- package/src/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant.js +1 -1
- package/src/aiassistantediting.js +1 -1
- package/src/aiassistantui.js +1 -1
- package/src/index.js +1 -1
- package/src/ui/aiassistantcontroller.js +2 -2
- package/src/ui/dropdown/aicommandslistview.js +1 -1
- package/src/ui/dropdown/buttonlabelwithhighlightview.js +1 -1
- package/src/ui/dropdown/labelwithhighlightview.js +1 -1
- package/src/ui/form/aiformcontentarea.js +1 -1
- package/src/ui/form/aiformerrorview.js +1 -1
- package/src/ui/form/aiformpromptview.js +1 -1
- package/src/ui/form/aiformtoolbarview.js +1 -1
- package/src/ui/form/aiformview.js +1 -1
- package/src/ui/form/aihistorylistitemview.js +1 -1
- package/src/ui/form/aihistorylistview.js +1 -1
- package/src/ui/form/prompthistory.js +1 -1
- package/src/ui/showaiassistantcommand.js +1 -1
- package/src/utils/common-translations.js +1 -1
package/src/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x10e9e1,_0x4baf39){var _0x25425f=_0x28d3,_0x559961=_0x10e9e1();while(!![]){try{var _0x28bff8=parseInt(_0x25425f(0xd1))/0x1*(parseInt(_0x25425f(0xce))/0x2)+-parseInt(_0x25425f(0xd3))/0x3+-parseInt(_0x25425f(0xcf))/0x4*(-parseInt(_0x25425f(0xd0))/0x5)+parseInt(_0x25425f(0xd4))/0x6+-parseInt(_0x25425f(0xd2))/0x7+-parseInt(_0x25425f(0xd5))/0x8+-parseInt(_0x25425f(0xcd))/0x9;if(_0x28bff8===_0x4baf39)break;else _0x559961['push'](_0x559961['shift']());}catch(_0x55c80c){_0x559961['push'](_0x559961['shift']());}}}(_0x2b90,0x9e18d));export{default as AIAssistant}from'./aiassistant.js';function _0x2b90(){var _0x58aa0f=['1597040zATnCN','7789581EJGMaI','2504804UjTBGb','1396716OWaQTC','10GHmawZ','1utDxGS','3853465vBzenH','1382109YwIFTg','4638852Kexers'];_0x2b90=function(){return _0x58aa0f;};return _0x2b90();}export{default as AIAdapter,AIRequestError}from'./adapters/aiadapter.js';export{default as AITextAdapter}from'./adapters/aitextadapter.js';function _0x28d3(_0x47b311,_0x5dec72){var _0x2b90ff=_0x2b90();return _0x28d3=function(_0x28d39d,_0x290654){_0x28d39d=_0x28d39d-0xcd;var _0x419b97=_0x2b90ff[_0x28d39d];return _0x419b97;},_0x28d3(_0x47b311,_0x5dec72);}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
|
+
const _0x5f1001=_0x1cf3;function _0x4453(){const _0xabb5e0=['previousActionId','1931812HYREfV','length','childNodes','3664577EWtfAq','push','rename','2394580YhgBLC','handleError','473402WpCOOt','text/html','serializeToString','view','_isH1TagSupportEnabled','custom','nodeType','destroy','createElement','currentContext','startsWith','innerHTML','ELEMENT_NODE','querySelector','editor','2gTRVis','_normalizeResponseHeadings','2841336lxiRHJ','_parseAndNormalizeContent','editing','value','_stripMarkdownSyntax','mainAction','data','tryAgainEvent','6AnTqyx','stopProcessing','domConverter','abort','remove','```html','setContentOf','5859984yAWcSn','htmlProcessor','message','body','```','stopListening','element','submitPrompt','toView','set','viewToDom','previousLabel','previousContext','_sanitizationContainer','prompt','then','_xmlSerializer','toModel','makeRequest','set:currentContext','currentResponse','match','processor','render','finally','once','name','isProcessing','exec','reset','_handleQuery','from','startProcessing','updateView','<h1></h1>','finishProcessing','1566696YlRSzM','previousQuery','substring','isRendered','reverse','catch','document','endsWith','_sanitizeHTML','initialContext','_domParser','div','parseFromString','listenTo','trim','textAdapter','stringify'];_0x4453=function(){return _0xabb5e0;};return _0x4453();}(function(_0x38d8bc,_0x57e387){const _0x5539ed=_0x1cf3,_0x3e223c=_0x38d8bc();while(!![]){try{const _0x5dfea0=-parseInt(_0x5539ed(0x204))/0x1*(-parseInt(_0x5539ed(0x1b5))/0x2)+parseInt(_0x5539ed(0x1ea))/0x3+parseInt(_0x5539ed(0x1fc))/0x4+parseInt(_0x5539ed(0x202))/0x5+parseInt(_0x5539ed(0x1bf))/0x6*(-parseInt(_0x5539ed(0x1ff))/0x7)+-parseInt(_0x5539ed(0x1c6))/0x8+-parseInt(_0x5539ed(0x1b7))/0x9;if(_0x5dfea0===_0x57e387)break;else _0x3e223c['push'](_0x3e223c['shift']());}catch(_0x1f91a0){_0x3e223c['push'](_0x3e223c['shift']());}}}(_0x4453,0x5e2fe));function _0x1cf3(_0x3937bc,_0x252c5e){const _0x445336=_0x4453();return _0x1cf3=function(_0x1cf3ab,_0x119cdd){_0x1cf3ab=_0x1cf3ab-0x1ad;let _0x5d98e4=_0x445336[_0x1cf3ab];return _0x5d98e4;},_0x1cf3(_0x3937bc,_0x252c5e);}import{ObservableMixin as _0x1a9874}from'ckeditor5/src/utils.js';import{AIRequestError as _0x420f6d}from'../adapters/aiadapter.js';import{Matcher as _0x121dc8,UpcastWriter as _0x2f2a24}from'ckeditor5/src/engine.js';const X=new RegExp(/^(.*?)<[a-zA-Z][a-zA-Z0-9_\-.]*[ >]/,'is');export default class k extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x1a9874(){constructor(_0x2b020f,_0x20b138,_0x1b1008){const _0x5f40f4=_0x1cf3;super(),this[_0x5f40f4(0x1b4)]=_0x2b020f,this[_0x5f40f4(0x1f9)]=_0x20b138,this[_0x5f40f4(0x1d3)]=document[_0x5f40f4(0x1ae)](_0x5f40f4(0x1f5)),this[_0x5f40f4(0x1f4)]=new DOMParser(),this[_0x5f40f4(0x1d6)]=new XMLSerializer(),this[_0x5f40f4(0x207)]=_0x1b1008,this[_0x5f40f4(0x1cf)]({'initialContext':'','currentContext':'','currentResponse':'','previousContext':void 0x0,'previousQuery':void 0x0,'previousLabel':void 0x0,'isProcessing':!0x1}),this['on'](_0x5f40f4(0x1d9),(_0x3e772a,_0x18693d,_0x926f4e)=>{const _0x3087b4=_0x5f40f4;this[_0x3087b4(0x207)][_0x3087b4(0x1ba)]=this[_0x3087b4(0x1f2)](_0x926f4e);}),this[_0x5f40f4(0x1f7)](this[_0x5f40f4(0x207)],_0x5f40f4(0x1cd),(_0x40f0ee,_0x2665a2)=>{const _0x396fba=_0x5f40f4,_0x3679c9=this[_0x396fba(0x1af)]||this[_0x396fba(0x1f3)];this[_0x396fba(0x1e4)](_0x2665a2,_0x3679c9,_0x396fba(0x209));}),this[_0x5f40f4(0x1f7)](this[_0x5f40f4(0x207)],_0x5f40f4(0x1be),()=>{const _0x1d81f4=_0x5f40f4;this[_0x1d81f4(0x207)][_0x1d81f4(0x1d4)]=this[_0x1d81f4(0x1d1)],this[_0x1d81f4(0x1e4)](this[_0x1d81f4(0x1eb)],this[_0x1d81f4(0x1d2)],this[_0x1d81f4(0x1fb)],this[_0x1d81f4(0x1d1)]);}),this[_0x5f40f4(0x1f7)](this[_0x5f40f4(0x207)],_0x5f40f4(0x1c0),()=>{const _0x598768=_0x5f40f4;this[_0x598768(0x1c0)]();});}[_0x5f1001(0x1ad)](){const _0x31d7ed=_0x5f1001;this[_0x31d7ed(0x1cb)]();}async[_0x5f1001(0x1e7)]({actionId:_0x421118,query:_0x4d6946,htmlContent:_0x1d3e9f,label:_0x3a65d2,mainActionLabel:_0xdcb68a}){const _0x9fb2a0=_0x5f1001;this[_0x9fb2a0(0x207)][_0x9fb2a0(0x1d4)]=_0x3a65d2,this[_0x9fb2a0(0x207)][_0x9fb2a0(0x1bc)]=_0xdcb68a,this[_0x9fb2a0(0x1f3)]=_0x1d3e9f,_0x4d6946&&(this[_0x9fb2a0(0x207)][_0x9fb2a0(0x1ed)]?this[_0x9fb2a0(0x1e4)](_0x4d6946,_0x1d3e9f,_0x421118,_0x3a65d2):this[_0x9fb2a0(0x207)][_0x9fb2a0(0x1df)](_0x9fb2a0(0x1dd),()=>{const _0x360c3d=_0x9fb2a0;this[_0x360c3d(0x1e4)](_0x4d6946,_0x1d3e9f,_0x421118,_0x3a65d2);}));}[_0x5f1001(0x1c0)](){const _0xef229d=_0x5f1001;this[_0xef229d(0x1e1)]&&(this[_0xef229d(0x1e1)]=!0x1,this[_0xef229d(0x207)][_0xef229d(0x1e9)](),this[_0xef229d(0x1f9)][_0xef229d(0x1c2)]());}[_0x5f1001(0x1e3)](){const _0x8086bc=_0x5f1001;this[_0x8086bc(0x1f3)]='',this[_0x8086bc(0x1af)]='',this[_0x8086bc(0x1da)]='',this[_0x8086bc(0x1d2)]='',this[_0x8086bc(0x1eb)]='',this[_0x8086bc(0x1d1)]='',this[_0x8086bc(0x1fb)]=void 0x0,this[_0x8086bc(0x207)][_0x8086bc(0x1e3)](),this[_0x8086bc(0x1c0)]();}async[_0x5f1001(0x1e4)](_0x26e931,_0x227754,_0x955ce,_0x4069a1){const _0x14b8d3=_0x5f1001;return this[_0x14b8d3(0x1e1)]=!0x0,this[_0x14b8d3(0x207)][_0x14b8d3(0x1e6)](),this[_0x14b8d3(0x1d2)]=_0x227754,this[_0x14b8d3(0x1eb)]=_0x26e931,this[_0x14b8d3(0x1d1)]=_0x4069a1||_0x26e931,this[_0x14b8d3(0x1fb)]=_0x955ce,new Promise(_0x5adb08=>{const _0x7b90c6=_0x14b8d3;this[_0x7b90c6(0x1f9)][_0x7b90c6(0x1d8)]({'query':_0x26e931,'context':_0x227754,'onData':_0x4daae3=>{const _0x4ce0a6=_0x7b90c6;this[_0x4ce0a6(0x1da)]=_0x4daae3,this[_0x4ce0a6(0x1af)]=this[_0x4ce0a6(0x1b8)](this[_0x4ce0a6(0x1da)]);},'actionId':_0x955ce})[_0x7b90c6(0x1d5)](()=>{const _0x4374f2=_0x7b90c6;!this[_0x4374f2(0x1af)]&&this[_0x4374f2(0x1da)]&&(this[_0x4374f2(0x1af)]=this[_0x4374f2(0x1b8)](this[_0x4374f2(0x1da)],!0x0));})[_0x7b90c6(0x1ef)](_0x269292=>{const _0x2ad188=_0x7b90c6;_0x269292 instanceof _0x420f6d?this[_0x2ad188(0x207)][_0x2ad188(0x203)](_0x269292[_0x2ad188(0x1c8)]):this[_0x2ad188(0x207)][_0x2ad188(0x203)](),_0x5adb08();})[_0x7b90c6(0x1de)](()=>{const _0xbc920d=_0x7b90c6;this[_0xbc920d(0x1c0)](),_0x5adb08();});});}[_0x5f1001(0x1b8)](_0x2bafd5,_0x32923f=!0x1){const _0x1ef7ae=_0x5f1001,_0x2a3853=X[_0x1ef7ae(0x1e2)](_0x2bafd5);_0x2bafd5=_0x2a3853?_0x2bafd5[_0x1ef7ae(0x1ec)](_0x2a3853[0x1][_0x1ef7ae(0x1fd)]):_0x2bafd5[_0x1ef7ae(0x1fd)]<0x64&&!_0x32923f?'':this[_0x1ef7ae(0x1bb)](_0x2bafd5);const _0x15c337=this[_0x1ef7ae(0x1f4)][_0x1ef7ae(0x1f6)](_0x2bafd5,_0x1ef7ae(0x205));if(_0x2a3853){const _0x280c3f=Array[_0x1ef7ae(0x1e5)](_0x15c337[_0x1ef7ae(0x1c9)][_0x1ef7ae(0x1fe)]);_0x280c3f[_0x1ef7ae(0x1ee)]();for(const _0x2530f2 of _0x280c3f){if(_0x2530f2[_0x1ef7ae(0x20a)]==Node[_0x1ef7ae(0x1b2)])break;_0x2530f2[_0x1ef7ae(0x1c3)]();}}const _0x59e324=this[_0x1ef7ae(0x1b4)][_0x1ef7ae(0x1bd)][_0x1ef7ae(0x1dc)][_0x1ef7ae(0x1ce)](this[_0x1ef7ae(0x1d6)][_0x1ef7ae(0x206)](_0x15c337[_0x1ef7ae(0x1c9)]));return this[_0x1ef7ae(0x208)]()||this[_0x1ef7ae(0x1b6)](_0x59e324),this[_0x1ef7ae(0x1b4)][_0x1ef7ae(0x1bd)][_0x1ef7ae(0x1fa)](this[_0x1ef7ae(0x1b4)][_0x1ef7ae(0x1bd)][_0x1ef7ae(0x1d7)](_0x59e324));}[_0x5f1001(0x1b6)](_0x40b6db){const _0x369c5f=_0x5f1001,_0x466693=new _0x2f2a24(this[_0x369c5f(0x1b4)][_0x369c5f(0x1b9)][_0x369c5f(0x207)][_0x369c5f(0x1f0)]),_0x2f48f0=new _0x121dc8({'name':/^h[1-5]$/}),_0x43645f=[];let _0x4c0559=!0x1;for(const _0x1f74c2 of _0x40b6db)_0x1f74c2['is'](_0x369c5f(0x1cc))&&_0x2f48f0[_0x369c5f(0x1db)](_0x1f74c2)&&(_0x43645f[_0x369c5f(0x200)](_0x1f74c2),'h1'==_0x1f74c2[_0x369c5f(0x1e0)]&&(_0x4c0559=!0x0));if(_0x4c0559){for(const _0x141154 of _0x43645f)_0x466693[_0x369c5f(0x201)]('h'+(parseInt(_0x141154[_0x369c5f(0x1e0)][0x1])+0x1),_0x141154);}}[_0x5f1001(0x208)](){const _0x27b5d7=_0x5f1001,{data:_0x222a7b,editing:_0x4f1726}=this[_0x27b5d7(0x1b4)],_0x2c2bc1=_0x222a7b[_0x27b5d7(0x1c7)][_0x27b5d7(0x1ce)](_0x27b5d7(0x1e8)),_0x348b62=_0x222a7b[_0x27b5d7(0x1ce)](_0x222a7b[_0x27b5d7(0x1d7)](_0x2c2bc1));return!!_0x4f1726[_0x27b5d7(0x207)][_0x27b5d7(0x1c1)][_0x27b5d7(0x1d0)](_0x348b62)[_0x27b5d7(0x1b3)]('h1');}[_0x5f1001(0x1f2)](_0xf2bc59){const _0x4f4cb9=_0x5f1001;return this[_0x4f4cb9(0x1b4)][_0x4f4cb9(0x1b9)][_0x4f4cb9(0x207)][_0x4f4cb9(0x1c1)][_0x4f4cb9(0x1c5)](this[_0x4f4cb9(0x1d3)],_0xf2bc59),this[_0x4f4cb9(0x1d3)][_0x4f4cb9(0x1b1)];}[_0x5f1001(0x1bb)](_0x59a2a0){const _0x59b23a=_0x5f1001,_0x511c1e=_0x59a2a0[_0x59b23a(0x1f8)]();return _0x511c1e[_0x59b23a(0x1b0)](_0x59b23a(0x1c4))?_0x511c1e[_0x59b23a(0x1f1)](_0x59b23a(0x1ca))?_0x511c1e[_0x59b23a(0x1ec)](0x7,_0x511c1e[_0x59b23a(0x1fd)]-0x3):_0x511c1e[_0x59b23a(0x1ec)](0x7):_0x59a2a0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x402a50=_0x1125;function _0x173f(){const _0x48a361=['highlightText','32TnuPZD','items','isVisible','isEnabled','commandDefinition','4JTXwKs','label','7kUVPFE','listbox','role','enabledCommandsIds','match','filter','3397911NgreuR','first','6792350guUOfU','change:enabledCommandsIds','1968564tCWbqZ','includes','children','6138256LdyqKV','labelView','1327815hKncgL','349570ySQkcX','38526BCALfy','946qNuprF','get','set','length'];_0x173f=function(){return _0x48a361;};return _0x173f();}(function(_0x99f282,_0x1fb136){const _0x357000=_0x1125,_0x31934c=_0x99f282();while(!![]){try{const _0x54433a=parseInt(_0x357000(0x16f))/0x1*(parseInt(_0x357000(0x175))/0x2)+-parseInt(_0x357000(0x164))/0x3*(-parseInt(_0x357000(0x17a))/0x4)+parseInt(_0x357000(0x166))/0x5+-parseInt(_0x357000(0x168))/0x6+-parseInt(_0x357000(0x17c))/0x7*(-parseInt(_0x357000(0x16b))/0x8)+parseInt(_0x357000(0x16d))/0x9+parseInt(_0x357000(0x16e))/0xa*(-parseInt(_0x357000(0x170))/0xb);if(_0x54433a===_0x1fb136)break;else _0x31934c['push'](_0x31934c['shift']());}catch(_0x19f3fd){_0x31934c['push'](_0x31934c['shift']());}}}(_0x173f,0xa7f48));function _0x1125(_0x336035,_0x3eb844){const _0x173f54=_0x173f();return _0x1125=function(_0x11256d,_0x511ef7){_0x11256d=_0x11256d-0x163;let _0x312053=_0x173f54[_0x11256d];return _0x312053;},_0x1125(_0x336035,_0x3eb844);}import{ListView as _0x2dc71e,ListItemGroupView as _0x57edd7}from'ckeditor5/src/ui.js';import{AICommandsListItemView as _0x1dcd74}from'../../aiassistantui.js';export default class U extends _0x2dc71e{constructor(_0x78c9bd){const _0x385398=_0x1125;super(_0x78c9bd),this[_0x385398(0x17e)]=_0x385398(0x17d),this[_0x385398(0x172)](_0x385398(0x17f),[]),this['on'](_0x385398(0x167),()=>{const _0x4f3212=_0x385398;for(const _0x309912 of this[_0x4f3212(0x176)])if(_0x309912 instanceof _0x57edd7){for(const _0x3ae1c2 of _0x309912[_0x4f3212(0x176)])if(_0x3ae1c2 instanceof _0x1dcd74){const _0x59ce77=_0x3ae1c2[_0x4f3212(0x16a)][_0x4f3212(0x171)](0x0);this[_0x4f3212(0x17f)][_0x4f3212(0x169)](_0x3ae1c2[_0x4f3212(0x179)]['id'])?_0x59ce77[_0x4f3212(0x178)]=!0x0:_0x59ce77[_0x4f3212(0x178)]=!0x1;}}});}[_0x402a50(0x163)](_0x2575b4){const _0x50c43b=_0x402a50;let _0x58a725=0x0,_0x5ed3a1=0x0;for(const _0x976da4 of this[_0x50c43b(0x176)]){const _0x37af21=_0x976da4,_0x20d799=_0x37af21[_0x50c43b(0x176)],_0x13a6ad=_0x2575b4&&!!_0x37af21[_0x50c43b(0x17b)][_0x50c43b(0x180)](_0x2575b4);_0x37af21[_0x50c43b(0x16c)][_0x50c43b(0x174)](_0x13a6ad?_0x2575b4:null);for(const _0x1a61fe of _0x20d799){const _0x6f1d15=_0x1a61fe[_0x50c43b(0x16a)][_0x50c43b(0x165)],_0x5ba561=_0x6f1d15[_0x50c43b(0x16c)];if(_0x2575b4){const _0x37e6ef=!!_0x6f1d15[_0x50c43b(0x17b)][_0x50c43b(0x180)](_0x2575b4);_0x5ba561[_0x50c43b(0x174)](_0x37e6ef?_0x2575b4:null),_0x1a61fe[_0x50c43b(0x177)]=_0x13a6ad||_0x37e6ef;}else _0x1a61fe[_0x50c43b(0x177)]=!0x0,_0x5ba561[_0x50c43b(0x174)](null);}const _0x2665a7=_0x20d799[_0x50c43b(0x163)](_0x55955a=>_0x55955a[_0x50c43b(0x177)])[_0x50c43b(0x173)];_0x58a725+=_0x37af21[_0x50c43b(0x176)][_0x50c43b(0x173)],_0x5ed3a1+=_0x13a6ad?_0x37af21[_0x50c43b(0x176)][_0x50c43b(0x173)]:_0x2665a7,_0x37af21[_0x50c43b(0x177)]=_0x13a6ad||!!_0x2665a7;}return{'resultsCount':_0x5ed3a1,'totalItemsCount':_0x58a725};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x3c2c25,_0x428f7d){const _0x45afc1=_0x8e56,_0x96aa1b=_0x3c2c25();while(!![]){try{const _0x31861b=-parseInt(_0x45afc1(0x194))/0x1*(-parseInt(_0x45afc1(0x19e))/0x2)+parseInt(_0x45afc1(0x19d))/0x3+parseInt(_0x45afc1(0x199))/0x4+parseInt(_0x45afc1(0x193))/0x5*(-parseInt(_0x45afc1(0x197))/0x6)+-parseInt(_0x45afc1(0x190))/0x7+parseInt(_0x45afc1(0x19c))/0x8*(-parseInt(_0x45afc1(0x192))/0x9)+parseInt(_0x45afc1(0x19a))/0xa;if(_0x31861b===_0x428f7d)break;else _0x96aa1b['push'](_0x96aa1b['shift']());}catch(_0x1268e1){_0x96aa1b['push'](_0x96aa1b['shift']());}}}(_0x4cdf,0x9724a));function _0x8e56(_0x54c1d6,_0x122745){const _0x4cdf7d=_0x4cdf();return _0x8e56=function(_0x8e56ba,_0xb621e){_0x8e56ba=_0x8e56ba-0x190;let _0x1638bc=_0x4cdf7d[_0x8e56ba];return _0x1638bc;},_0x8e56(_0x54c1d6,_0x122745);}import{HighlightedTextView as _0x4e7ff2}from'ckeditor5/src/ui.js';function _0x4cdf(){const _0x24e6a8=['3183360NZoVBC','10297580QhCimk','set','24efhcEV','308019LJnBZH','1244aNqROq','4104310gdFMvc','style','483066reflVA','36805TWuxvr','292vPzoYp','ck-button__label','bindTemplate','606cgPsvq','extendTemplate'];_0x4cdf=function(){return _0x24e6a8;};return _0x4cdf();}export default class N extends _0x4e7ff2{constructor(){const _0x5ae72c=_0x8e56;super(),this[_0x5ae72c(0x19b)]({'style':void 0x0,'text':void 0x0,'id':void 0x0});const _0x2faa4b=this[_0x5ae72c(0x196)];this[_0x5ae72c(0x198)]({'attributes':{'class':[_0x5ae72c(0x195)],'style':_0x2faa4b['to'](_0x5ae72c(0x191)),'id':_0x2faa4b['to']('id')}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x594a(){const _0x1d02d1=['38KAMhGI','899291IYBkyc','942648rHeBFa','6928306IDCpjx','extendTemplate','103140WSzoQN','6061810bXxwhn','ck-editor__label_','8YTpNyP','ck-label','5618036yGPqzr','set','for','bindTemplate','217689tFuXyi'];_0x594a=function(){return _0x1d02d1;};return _0x594a();}(function(_0x3bfcf8,_0x5889de){const _0x2b12cc=_0x4dc1,_0x6f7f98=_0x3bfcf8();while(!![]){try{const _0x165bc2=parseInt(_0x2b12cc(0x1f8))/0x1+parseInt(_0x2b12cc(0x1f7))/0x2*(parseInt(_0x2b12cc(0x1f6))/0x3)+-parseInt(_0x2b12cc(0x201))/0x4+-parseInt(_0x2b12cc(0x1fd))/0x5+parseInt(_0x2b12cc(0x1f9))/0x6+parseInt(_0x2b12cc(0x1fa))/0x7+-parseInt(_0x2b12cc(0x1ff))/0x8*(parseInt(_0x2b12cc(0x1fc))/0x9);if(_0x165bc2===_0x5889de)break;else _0x6f7f98['push'](_0x6f7f98['shift']());}catch(_0x396dc1){_0x6f7f98['push'](_0x6f7f98['shift']());}}}(_0x594a,0xc276b));import{HighlightedTextView as _0x590023}from'ckeditor5/src/ui.js';function _0x4dc1(_0x81b666,_0x14a67b){const _0x594a47=_0x594a();return _0x4dc1=function(_0x4dc1c6,_0x4ff088){_0x4dc1c6=_0x4dc1c6-0x1f4;let _0xd607d7=_0x594a47[_0x4dc1c6];return _0xd607d7;},_0x4dc1(_0x81b666,_0x14a67b);}import{uid as _0x594c84}from'ckeditor5/src/utils.js';export default class S extends _0x590023{constructor(){const _0x2482b6=_0x4dc1;super(),this[_0x2482b6(0x202)](_0x2482b6(0x1f4),void 0x0);const _0x10ff0a=this[_0x2482b6(0x1f5)];this['id']=_0x2482b6(0x1fe)+_0x594c84(),this[_0x2482b6(0x1fb)]({'attributes':{'class':['ck',_0x2482b6(0x200)],'id':this['id'],'for':_0x10ff0a['to'](_0x2482b6(0x1f4))}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x252c3d=_0x2c5f;(function(_0x7236d0,_0x3e43b0){const _0x511d51=_0x2c5f,_0x4c5710=_0x7236d0();while(!![]){try{const _0xa0bdda=-parseInt(_0x511d51(0x17e))/0x1*(parseInt(_0x511d51(0x171))/0x2)+parseInt(_0x511d51(0x175))/0x3+-parseInt(_0x511d51(0x1af))/0x4*(parseInt(_0x511d51(0x1ab))/0x5)+parseInt(_0x511d51(0x1bd))/0x6*(parseInt(_0x511d51(0x1c1))/0x7)+-parseInt(_0x511d51(0x1a8))/0x8*(parseInt(_0x511d51(0x1c3))/0x9)+parseInt(_0x511d51(0x183))/0xa*(-parseInt(_0x511d51(0x1ad))/0xb)+-parseInt(_0x511d51(0x187))/0xc*(-parseInt(_0x511d51(0x18e))/0xd);if(_0xa0bdda===_0x3e43b0)break;else _0x4c5710['push'](_0x4c5710['shift']());}catch(_0x1dc8f1){_0x4c5710['push'](_0x4c5710['shift']());}}}(_0x2b86,0x9bce8));import{global as _0x351af3}from'ckeditor5/src/utils.js';import{View as _0x52fd77,ButtonView as _0x1eb1d4,SpinnerView as _0x49c7d0}from'ckeditor5/src/ui.js';import _0x292680 from'../../../theme/icons/copy.svg';import{getTranslation as _0x27d9f5}from'../../utils/common-translations.js';import{icons as _0x3c5596}from'ckeditor5/src/core.js';function _0x2c5f(_0x34a5ef,_0x4744b3){const _0x2b8693=_0x2b86();return _0x2c5f=function(_0x2c5f5b,_0x3bbdfd){_0x2c5f5b=_0x2c5f5b-0x16c;let _0x27b5aa=_0x2b8693[_0x2c5f5b];return _0x27b5aa;},_0x2c5f(_0x34a5ef,_0x4744b3);}export default class nt extends _0x52fd77{constructor(_0x10b254,_0x7a0a0b=''){const _0x186367=_0x2c5f;super(_0x10b254),this[_0x186367(0x189)]({'value':null,'isVisible':!0x1,'isProcessing':!0x1});const _0x164d29=this[_0x186367(0x1c2)];this[_0x186367(0x1b7)]=new ContentFieldView(_0x10b254,_0x7a0a0b),this[_0x186367(0x199)]=this[_0x186367(0x191)](),this[_0x186367(0x1a2)]({'tag':_0x186367(0x198),'attributes':{'class':['ck',_0x186367(0x19b),_0x164d29['if'](_0x186367(0x1ac),_0x186367(0x1aa),_0x5e7783=>!_0x5e7783)],'tabindex':'-1'},'children':[{'tag':_0x186367(0x198),'attributes':{'class':['ck',_0x186367(0x195),_0x164d29['if'](_0x186367(0x16f),_0x186367(0x1a9))]},'children':[this[_0x186367(0x1b7)],{'tag':_0x186367(0x198),'attributes':{'class':['ck',_0x186367(0x1b3)]},'children':[this[_0x186367(0x199)]]}]}]});}[_0x252c3d(0x1a5)](){const _0x2dff33=_0x252c3d;super[_0x2dff33(0x1a5)](),this[_0x2dff33(0x197)]&&this[_0x2dff33(0x1b7)][_0x2dff33(0x18a)](this[_0x2dff33(0x197)]);let _0x3ced58=!0x1;this['on'](_0x2dff33(0x173),(_0x4916dd,_0xe29353,_0x2653d9)=>{const _0x3a5b6d=_0x2dff33,_0x45fddc=!this[_0x3a5b6d(0x1b7)][_0x3a5b6d(0x1bc)][_0x3a5b6d(0x19f)](_0x3a5b6d(0x18d));this[_0x3a5b6d(0x1b7)][_0x3a5b6d(0x18a)](_0x2653d9),this[_0x3a5b6d(0x16f)]&&_0x45fddc&&!_0x3ced58&&this[_0x3a5b6d(0x1bc)][_0x3a5b6d(0x178)]({'top':this[_0x3a5b6d(0x1bc)][_0x3a5b6d(0x184)],'behavior':_0x3a5b6d(0x17b)});}),this['on'](_0x2dff33(0x17a),(_0x4cd567,_0x457c64,_0x36c1e2)=>{const _0x456dd0=_0x2dff33;_0x3ced58=!0x1,_0x36c1e2?(this[_0x456dd0(0x197)]=null,this[_0x456dd0(0x1b7)][_0x456dd0(0x16e)]()):this[_0x456dd0(0x197)]||this[_0x456dd0(0x1b7)][_0x456dd0(0x18a)]('');}),this[_0x2dff33(0x174)](this[_0x2dff33(0x1bc)],_0x2dff33(0x19c),()=>{_0x3ced58=!0x0;}),this[_0x2dff33(0x174)](this[_0x2dff33(0x1bc)],_0x2dff33(0x1b8),()=>{_0x3ced58=!0x0;});}[_0x252c3d(0x17d)](){const _0x25ef9b=_0x252c3d;this[_0x25ef9b(0x1bc)][_0x25ef9b(0x17d)]();}[_0x252c3d(0x191)](){const _0x2a87f5=_0x252c3d,_0x2f0d4e=this[_0x2a87f5(0x194)],_0x158a68=new _0x1eb1d4(this[_0x2a87f5(0x194)]),_0x4b0cc7=_0x2a87f5(0x1b6);return _0x158a68[_0x2a87f5(0x189)]({'label':_0x27d9f5(_0x2f0d4e,_0x2a87f5(0x1c0)),'icon':_0x292680,'class':_0x4b0cc7,'tooltip':!0x0}),_0x158a68[_0x2a87f5(0x186)](_0x2a87f5(0x1ac))['to'](this,_0x2a87f5(0x197),_0x6ee994=>!!_0x6ee994),_0x158a68[_0x2a87f5(0x186)](_0x2a87f5(0x19a))['to'](this,_0x2a87f5(0x16f),_0x2fa951=>!_0x2fa951),_0x158a68['on'](_0x2a87f5(0x185),()=>{const _0x11e171=_0x2a87f5;this[_0x11e171(0x1be)](this[_0x11e171(0x1b7)][_0x11e171(0x1bc)]),_0x158a68[_0x11e171(0x177)]=_0x3c5596[_0x11e171(0x1ba)],_0x158a68[_0x11e171(0x172)]=_0x4b0cc7+_0x11e171(0x170),this[_0x11e171(0x17d)](),setTimeout(()=>{const _0x47f8be=_0x11e171;_0x158a68[_0x47f8be(0x177)]=_0x292680,_0x158a68[_0x47f8be(0x172)]=_0x4b0cc7;},0x3e8);}),_0x158a68;}[_0x252c3d(0x1be)](_0xdca0b5){const _0x14d177=_0x252c3d,{window:_0x24a590,document:_0x22e6ab}=_0x351af3;if(_0x24a590[_0x14d177(0x16c)]){const {Blob:_0x2b9e13,ClipboardItem:_0x3d02be}=_0x24a590,_0xfeb247=[new _0x3d02be({'text/html':new _0x2b9e13([_0xdca0b5[_0x14d177(0x1a4)]],{'type':_0x14d177(0x188)}),'text/plain':new _0x2b9e13([_0xdca0b5[_0x14d177(0x181)]||''],{'type':_0x14d177(0x1b9)})})];navigator[_0x14d177(0x18f)][_0x14d177(0x1b5)](_0xfeb247);}else{const _0x4b44b7=_0x22e6ab[_0x14d177(0x17f)](_0x14d177(0x198));_0x4b44b7[_0x14d177(0x1bf)][_0x14d177(0x193)]=_0x14d177(0x1b2),_0x4b44b7[_0x14d177(0x1bf)][_0x14d177(0x1b0)]=_0x14d177(0x196),_0x4b44b7[_0x14d177(0x1a4)]=_0x14d177(0x1c4)+_0xdca0b5[_0x14d177(0x1a4)]+_0x14d177(0x1ae),_0x22e6ab[_0x14d177(0x176)][_0x14d177(0x179)](_0x4b44b7);const _0xf2d49a=_0x22e6ab[_0x14d177(0x190)]();_0xf2d49a[_0x14d177(0x1a3)](_0x4b44b7[_0x14d177(0x18b)]),_0xf2d49a[_0x14d177(0x1a0)](_0x4b44b7[_0x14d177(0x180)]);const _0x5d19a8=_0x24a590[_0x14d177(0x1a7)]();_0x5d19a8[_0x14d177(0x18c)](),_0x5d19a8[_0x14d177(0x1b1)](_0xf2d49a),_0x22e6ab[_0x14d177(0x182)](_0x14d177(0x192)),_0x4b44b7[_0x14d177(0x19e)]();}}}export class ContentFieldView extends _0x52fd77{constructor(_0x2c5f3e,_0x2f5de1=''){const _0x40a7ea=_0x252c3d;super(_0x2c5f3e),this[_0x40a7ea(0x1b4)]=this[_0x40a7ea(0x1a1)](),this[_0x40a7ea(0x1a2)]({'tag':_0x40a7ea(0x198),'attributes':{'class':['ck',_0x40a7ea(0x1a6),_0x2f5de1,_0x40a7ea(0x16d),_0x40a7ea(0x17c)]}});}[_0x252c3d(0x18a)](_0x4207c3){const _0x3ad6db=_0x252c3d;this[_0x3ad6db(0x1bc)][_0x3ad6db(0x1a4)]=_0x4207c3;}[_0x252c3d(0x16e)](){const _0x364cb9=_0x252c3d;this[_0x364cb9(0x1bc)][_0x364cb9(0x179)](this[_0x364cb9(0x1b4)][_0x364cb9(0x1bc)]);}[_0x252c3d(0x1a1)](){const _0x35e6f8=_0x252c3d,_0x34aa92=new _0x52fd77(),_0x3cfaf4=this[_0x35e6f8(0x194)],_0xf7e7a3=new _0x49c7d0();return _0xf7e7a3[_0x35e6f8(0x1ac)]=!0x0,_0x34aa92[_0x35e6f8(0x1a2)]({'tag':_0x35e6f8(0x198),'attributes':{'class':['ck',_0x35e6f8(0x1bb)]},'children':[_0xf7e7a3,{'text':_0x27d9f5(_0x3cfaf4,_0x35e6f8(0x19d))}]}),_0x34aa92[_0x35e6f8(0x1a5)](),_0x34aa92;}}function _0x2b86(){const _0x153ead=['querySelector','setEndBefore','_createLoader','setTemplate','setStartAfter','innerHTML','render','ck-content','getSelection','8pwWeaZ','ck-ai-form__content-area--processing','ck-hidden','25VgpnaE','isVisible','473zciutF','<span>]</span>','863364nhJArr','left','addRange','absolute','ck-ai-form__copy-button-wrapper','loaderView','write','ck-ai-form__copy-button','contentFieldView','mousedown','text/plain','check','ck-ai-form__loader','element','48vKnEJS','_copyHTMLToClipboard','style','Copy','1295XRATSH','bindTemplate','1438326NOmMQc','<span>[</span>','ClipboardItem','ck-reset_all-excluded','appendLoader','isProcessing','\x20ck-ai-form__copy-button--copied','344870XiSqjw','class','change:value','listenTo','1278636sBqeov','body','icon','scrollTo','appendChild','change:isProcessing','smooth','ck-ai-form__content-field','focus','1xNUSBy','createElement','lastElementChild','textContent','execCommand','249030ITnLss','scrollHeight','execute','bind','32313300BQIcTQ','text/html','set','setContent','firstElementChild','removeAllRanges','.ck-ai-form__loader','13pgLUio','clipboard','createRange','_createCopyButton','copy','position','locale','ck-ai-form__content-area','-9999px','value','div','copyButtonView','isEnabled','ck-ai-form__content-area-wrapper','wheel','AI\x20is\x20writing...','remove'];_0x2b86=function(){return _0x153ead;};return _0x2b86();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x28aa(_0x33f520,_0x5631e0){const _0x1ac97b=_0x1ac9();return _0x28aa=function(_0x28aa82,_0x3cde14){_0x28aa82=_0x28aa82-0x1ec;let _0x1c2b07=_0x1ac97b[_0x28aa82];return _0x1c2b07;},_0x28aa(_0x33f520,_0x5631e0);}(function(_0x2c558c,_0x55569a){const _0x1e1069=_0x28aa,_0x47ff88=_0x2c558c();while(!![]){try{const _0x240f1f=-parseInt(_0x1e1069(0x1f5))/0x1*(parseInt(_0x1e1069(0x1ec))/0x2)+-parseInt(_0x1e1069(0x1f8))/0x3+-parseInt(_0x1e1069(0x1f1))/0x4*(parseInt(_0x1e1069(0x1fb))/0x5)+-parseInt(_0x1e1069(0x1f3))/0x6+-parseInt(_0x1e1069(0x1f9))/0x7*(parseInt(_0x1e1069(0x1fa))/0x8)+-parseInt(_0x1e1069(0x1fc))/0x9+parseInt(_0x1e1069(0x1f2))/0xa;if(_0x240f1f===_0x55569a)break;else _0x47ff88['push'](_0x47ff88['shift']());}catch(_0x134a84){_0x47ff88['push'](_0x47ff88['shift']());}}}(_0x1ac9,0x6f036));import{View as _0x4b3d76,IconView as _0x2dbca2}from'ckeditor5/src/ui.js';function _0x1ac9(){const _0xfb7ef0=['2805796OglsTX','36840140DvZApW','5396820aEkaVO','bindTemplate','5ZKsDVt','ck-ai-form__error','content','1693662NekqgQ','14GoFFZO','1683960nbYsqf','5UzKDei','5554134nLnDVU','10286vwXsRo','div','set','setTemplate','text'];_0x1ac9=function(){return _0xfb7ef0;};return _0x1ac9();}import _0x3e2d08 from'../../../theme/icons/error.svg';export default class mt extends _0x4b3d76{constructor(_0x1cff5e,_0x1c330d=''){const _0x45c5ce=_0x28aa;super(_0x1cff5e);const _0x301fc8=new _0x2dbca2(),_0x113219=this[_0x45c5ce(0x1f4)];this[_0x45c5ce(0x1ee)](_0x45c5ce(0x1f0),_0x1c330d),_0x301fc8[_0x45c5ce(0x1f7)]=_0x3e2d08,this[_0x45c5ce(0x1ef)]({'tag':_0x45c5ce(0x1ed),'attributes':{'class':['ck',_0x45c5ce(0x1f6)]},'children':[_0x301fc8,{'text':_0x113219['to'](_0x45c5ce(0x1f0))}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5901b7=_0x24c0;function _0x24c0(_0x2765f4,_0x1cefc1){const _0x25b476=_0x25b4();return _0x24c0=function(_0x24c05f,_0x1fadf8){_0x24c05f=_0x24c05f-0x9e;let _0x4f1177=_0x25b476[_0x24c05f];return _0x4f1177;},_0x24c0(_0x2765f4,_0x1cefc1);}(function(_0xd19de6,_0x2eecf3){const _0x33003d=_0x24c0,_0x3436c5=_0xd19de6();while(!![]){try{const _0x12f59d=-parseInt(_0x33003d(0xc6))/0x1+-parseInt(_0x33003d(0xb9))/0x2+parseInt(_0x33003d(0xc5))/0x3*(-parseInt(_0x33003d(0xc2))/0x4)+parseInt(_0x33003d(0xbb))/0x5+parseInt(_0x33003d(0xae))/0x6+-parseInt(_0x33003d(0xa8))/0x7+parseInt(_0x33003d(0xaa))/0x8*(parseInt(_0x33003d(0xa3))/0x9);if(_0x12f59d===_0x2eecf3)break;else _0x3436c5['push'](_0x3436c5['shift']());}catch(_0x42241d){_0x3436c5['push'](_0x3436c5['shift']());}}}(_0x25b4,0x5f834));import{Rect as _0x248885,global as _0x451e4c,isVisible as _0x281b33}from'ckeditor5/src/utils.js';function _0x25b4(){const _0x301377=['set','217854pREXcJ','queryView','submit','maxRows','focus','1706208zqVvkp','isEmpty','304AfCwzY','value','excludeScrollbarsAndBorders','minRows','820608ILvBoD','fieldView','bind','history','children','uiLanguageDirection','style','requestAnimationFrame','focusCycler','element','focusFirst','582906AzPpxT','ck-ai-form__toggle-history','3820440giRKaK','add','isEnabled','target','showHistoryButtonView','render','fire','108IvglUa','filteredView','update','25971lRNWDh','660528qpcjcp','submitButtonView','focusableChildren','focusLast','right','_createShowHistoryButton','window','resultsView','isVisible','execute','locale','fieldWrapperChildren','Submit','width','isOn','left','rtl','_createSubmitButton','keystrokes','enter','ck-ai-form__submit','History'];_0x25b4=function(){return _0x301377;};return _0x25b4();}import{AutocompleteView as _0x470986,ButtonView as _0x2cc919}from'ckeditor5/src/ui.js';import{icons as _0xebe99f}from'ckeditor5/src/core.js';import{getTranslation as _0x149158}from'../../utils/common-translations.js';import _0x32f020 from'../../../theme/icons/submit.svg';export default class pt extends _0x470986{constructor(_0x1da8a5,_0x3142d4){const _0x5f1372=_0x24c0;super(_0x1da8a5,_0x3142d4),this[_0x5f1372(0xa4)][_0x5f1372(0xaf)][_0x5f1372(0xad)]=0x1,this[_0x5f1372(0xa4)][_0x5f1372(0xaf)][_0x5f1372(0xa6)]=0x3,this[_0x5f1372(0xc7)]=this[_0x5f1372(0xd7)](),this[_0x5f1372(0xbf)]=this[_0x5f1372(0xcb)](),this[_0x5f1372(0xc8)][_0x5f1372(0xbc)](this[_0x5f1372(0xbf)],0x1),this[_0x5f1372(0xc8)][_0x5f1372(0xbc)](this[_0x5f1372(0xc7)]);}[_0x5901b7(0xc0)](){const _0x4c61ac=_0x5901b7;super[_0x4c61ac(0xc0)](),this[_0x4c61ac(0xa4)][_0x4c61ac(0xd1)][_0x4c61ac(0xbc)](this[_0x4c61ac(0xbf)]),this[_0x4c61ac(0xb2)][_0x4c61ac(0xbc)](this[_0x4c61ac(0xc7)]),this[_0x4c61ac(0x9e)][_0x4c61ac(0xa2)](_0x4c61ac(0x9f),(_0xdfb898,_0xfbe63a)=>{const _0x1e0495=_0x4c61ac;_0xdfb898[_0x1e0495(0xbe)]==this[_0x1e0495(0xa4)][_0x1e0495(0xaf)][_0x1e0495(0xb7)]&&(this[_0x1e0495(0xa5)](),_0xfbe63a());});}[_0x5901b7(0xd7)](){const _0x33ccd5=_0x5901b7,_0xed1fed=new _0x2cc919(this[_0x33ccd5(0xd0)]),_0x1bb015=this[_0x33ccd5(0xd0)];return _0xed1fed[_0x33ccd5(0xa2)]({'icon':_0x32f020,'label':_0x149158(_0x1bb015,_0x33ccd5(0xd2)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x33ccd5(0xa0)}),_0xed1fed['on'](_0x33ccd5(0xcf),()=>{const _0x59d975=_0x33ccd5;this[_0x59d975(0xa5)]();}),_0xed1fed[_0x33ccd5(0xb0)](_0x33ccd5(0xbd))['to'](this[_0x33ccd5(0xa4)][_0x33ccd5(0xaf)],_0x33ccd5(0xa9),this,_0x33ccd5(0xbd),(_0x212744,_0x477a79)=>!_0x212744&&_0x477a79),_0xed1fed;}[_0x5901b7(0xcb)](){const _0x1c9c9f=_0x5901b7,_0x33d726=new _0x2cc919(this[_0x1c9c9f(0xd0)]),_0x511ccf=this[_0x1c9c9f(0xcd)],_0x2509b2=this[_0x1c9c9f(0xd0)];_0x33d726[_0x1c9c9f(0xa2)]({'label':_0x149158(_0x2509b2,_0x1c9c9f(0xa1)),'withText':!0x1,'icon':_0xebe99f[_0x1c9c9f(0xb1)],'tooltip':!0x0,'tooltipPosition':'sw','class':_0x1c9c9f(0xba)}),_0x33d726[_0x1c9c9f(0xb0)](_0x1c9c9f(0xd4))['to'](_0x511ccf,_0x1c9c9f(0xce)),_0x33d726[_0x1c9c9f(0xb0)](_0x1c9c9f(0xbd))['to'](this,_0x1c9c9f(0xbd)),_0x33d726['on'](_0x1c9c9f(0xcf),()=>{const _0x9e86c4=_0x1c9c9f;_0x511ccf[_0x9e86c4(0xce)]=!_0x511ccf[_0x9e86c4(0xce)],_0x511ccf[_0x9e86c4(0xce)]?this[_0x9e86c4(0xc3)][_0x9e86c4(0xa7)]():this[_0x9e86c4(0xa7)]();});const _0x52444c=()=>{const _0x8226b8=_0x1c9c9f;_0x451e4c[_0x8226b8(0xcc)][_0x8226b8(0xb5)](()=>{const _0x4bbe6d=_0x8226b8;if(_0x281b33(this[_0x4bbe6d(0xb7)])){const _0x228ce6=new _0x248885(this[_0x4bbe6d(0xa4)][_0x4bbe6d(0xaf)][_0x4bbe6d(0xb7)]),_0x40f582=_0x228ce6[_0x4bbe6d(0xd3)],_0x4d4679=_0x4bbe6d(0xd6)===_0x2509b2[_0x4bbe6d(0xb3)]?_0x4bbe6d(0xd5):_0x4bbe6d(0xca);_0x228ce6[_0x4bbe6d(0xac)](),_0x33d726[_0x4bbe6d(0xb7)][_0x4bbe6d(0xb4)][_0x4d4679]=_0x40f582-_0x228ce6[_0x4bbe6d(0xd3)]+0x1+'px';}});};return this[_0x1c9c9f(0xa4)][_0x1c9c9f(0xaf)]['on'](_0x1c9c9f(0xc4),_0x52444c),this['on'](_0x1c9c9f(0xc0),_0x52444c),_0x33d726;}[_0x5901b7(0xa5)](){const _0x2185ef=_0x5901b7,_0x148ba6=this[_0x2185ef(0xa4)][_0x2185ef(0xaf)][_0x2185ef(0xb7)][_0x2185ef(0xab)];this[_0x2185ef(0xc1)](_0x2185ef(0xa5),_0x148ba6);}[_0x5901b7(0xa7)](_0x40d7f3){const _0x2770b9=_0x5901b7;-0x1===_0x40d7f3?this[_0x2770b9(0xb6)][_0x2770b9(0xc9)]():this[_0x2770b9(0xb6)][_0x2770b9(0xb8)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x52b85e=_0x482f;(function(_0xccd168,_0x48ab92){const _0x2185bd=_0x482f,_0x1aff9b=_0xccd168();while(!![]){try{const _0x2bf733=-parseInt(_0x2185bd(0xa1))/0x1+parseInt(_0x2185bd(0xb1))/0x2+-parseInt(_0x2185bd(0xac))/0x3*(parseInt(_0x2185bd(0xb5))/0x4)+parseInt(_0x2185bd(0xba))/0x5*(parseInt(_0x2185bd(0xb4))/0x6)+-parseInt(_0x2185bd(0xb0))/0x7*(-parseInt(_0x2185bd(0xa5))/0x8)+parseInt(_0x2185bd(0xaf))/0x9+-parseInt(_0x2185bd(0xbf))/0xa;if(_0x2bf733===_0x48ab92)break;else _0x1aff9b['push'](_0x1aff9b['shift']());}catch(_0x357437){_0x1aff9b['push'](_0x1aff9b['shift']());}}}(_0x2086,0xd37b4));import{ToolbarView as _0x2a2742,ButtonView as _0x19b5b2}from'ckeditor5/src/ui.js';import{getTranslation as _0x315e99}from'../../utils/common-translations.js';function _0x2086(){const _0x356a46=['stopButton','label','20320BJklhi','insert','_createButton','Insert\x20below','bind','3149940LjxntM','items','set','Stop','isVisible','Try\x20again','tryAgainButton','1050667ukvqzA','extendTemplate','toUpperCase','replace','277168skocfg','_CONTENT','ck-ai-form__toolbar','locale','insertButton','AI_','mainAction','9czRQEL','ck-button-action','bindTemplate','359721THaKBQ','182XVHZUp','209196lSnNTB','ck-hidden','replaceButton','2166SapjFT','374104Eoltqr','addMany','REPLACE'];_0x2086=function(){return _0x356a46;};return _0x2086();}export const AIFormToolbarViewMainActionLabel={'REPLACE':_0x52b85e(0xa4),'INSERT':_0x52b85e(0xbb)};function _0x482f(_0x2d1800,_0x379420){const _0x20863d=_0x2086();return _0x482f=function(_0x482f30,_0x80415c){_0x482f30=_0x482f30-0x9f;let _0x36e493=_0x20863d[_0x482f30];return _0x36e493;},_0x482f(_0x2d1800,_0x379420);}export default class Tt extends _0x2a2742{constructor(_0x2fa459){const _0x42cf39=_0x52b85e;super(_0x2fa459),this[_0x42cf39(0xc1)](_0x42cf39(0xc3),!0x1),this[_0x42cf39(0xc1)](_0x42cf39(0xab),AIFormToolbarViewMainActionLabel[_0x42cf39(0xb7)]),this[_0x42cf39(0xb3)]=this[_0x42cf39(0xbc)]('',_0x42cf39(0xad)),this[_0x42cf39(0xb3)][_0x42cf39(0xbe)](_0x42cf39(0xb9))['to'](this,_0x42cf39(0xab),_0x311b34=>_0x315e99(_0x2fa459,_0x42cf39(0xaa)+_0x311b34[_0x42cf39(0xa3)]()+_0x42cf39(0xa6))),this[_0x42cf39(0xa9)]=this[_0x42cf39(0xbc)](_0x315e99(_0x2fa459,_0x42cf39(0xbd))),this[_0x42cf39(0xa0)]=this[_0x42cf39(0xbc)](_0x315e99(_0x2fa459,_0x42cf39(0x9f))),this[_0x42cf39(0xb8)]=this[_0x42cf39(0xbc)](_0x315e99(_0x2fa459,_0x42cf39(0xc2)));const _0x13c6cb=this[_0x42cf39(0xae)];this[_0x42cf39(0xa2)]({'attributes':{'class':[_0x42cf39(0xa7),_0x13c6cb['if'](_0x42cf39(0xc3),_0x42cf39(0xb2),_0x12e9b4=>!_0x12e9b4)]}}),this[_0x42cf39(0xc0)][_0x42cf39(0xb6)]([this[_0x42cf39(0xb3)],this[_0x42cf39(0xa9)],this[_0x42cf39(0xa0)],this[_0x42cf39(0xb8)]]);}[_0x52b85e(0xbc)](_0x3427ef,_0x514b2e){const _0x18ea00=_0x52b85e,_0x3bb1b6=new _0x19b5b2(this[_0x18ea00(0xa8)]);return _0x3bb1b6[_0x18ea00(0xc1)]({'label':_0x3427ef,'class':_0x514b2e||'','isVisible':!0x0,'withText':!0x0}),_0x3bb1b6;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x3ea8e6=_0x479a;(function(_0x38045a,_0x13ed26){const _0x4f2ea5=_0x479a,_0xcdb740=_0x38045a();while(!![]){try{const _0x5be99b=parseInt(_0x4f2ea5(0x110))/0x1+-parseInt(_0x4f2ea5(0x121))/0x2*(parseInt(_0x4f2ea5(0x161))/0x3)+-parseInt(_0x4f2ea5(0x148))/0x4*(parseInt(_0x4f2ea5(0x129))/0x5)+parseInt(_0x4f2ea5(0x167))/0x6+-parseInt(_0x4f2ea5(0x130))/0x7*(parseInt(_0x4f2ea5(0x150))/0x8)+-parseInt(_0x4f2ea5(0x144))/0x9+parseInt(_0x4f2ea5(0x156))/0xa*(parseInt(_0x4f2ea5(0x14a))/0xb);if(_0x5be99b===_0x13ed26)break;else _0xcdb740['push'](_0xcdb740['shift']());}catch(_0x165670){_0xcdb740['push'](_0xcdb740['shift']());}}}(_0x39d8,0x713f6));function _0x39d8(){const _0x1b4afb=['18602903VodRDu','listenTo','trim','text','ck-ai-form','stop','120eOpTZR','reset','fire','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','Empty\x20history','render','10JXtqHH','bind','focusLast','isProcessing','insertContentBelow','execute','bindTemplate','handleError','REPLACE','value','replaceContent','2622YwCsAA','_createToolbar','_focusables','submit','focusCycler','_promptHistory','223608jFdTsY','focusNext','delegate','629198PRWioa','replaceButton','contentArea','focusPrevious','focus','toolbar','ck-hidden','copyButtonView','tryAgainEvent','fieldView','finishProcessing','Ask\x20AI\x20to\x20edit\x20or\x20generate','label','isEnabled','clearHistory','isVisible','tab','1486XHhRJp','createCollection','set','stopProcessing','add','Ask\x20AI\x20to\x20improve\x20generated\x20text','AI_ERROR_FAILED','prompt','13645VRyOHa','historyGroupView','mainAction','insertButton','search','items','high','173131QcMDJU','_createHistoryView','startProcessing','ck-ai-form-content','_createPromptView','element','focusFirst','setTemplate','forwardCycle','isError','clear','promptView','locale','stopButton','focusTracker','keystrokes','div','queryView','shift\x20+\x20tab','submitPrompt','5478183gZaWsf','errorView','tryAgainButton','bindTo','388CzlFpu','backwardCycle'];_0x39d8=function(){return _0x1b4afb;};return _0x39d8();}import{FocusTracker as _0x553917,KeystrokeHandler as _0x29841f}from'ckeditor5/src/utils.js';function _0x479a(_0x58300e,_0x1e1382){const _0x39d825=_0x39d8();return _0x479a=function(_0x479ac1,_0x4b4515){_0x479ac1=_0x479ac1-0x10f;let _0x19c57f=_0x39d825[_0x479ac1];return _0x19c57f;},_0x479a(_0x58300e,_0x1e1382);}import{View as _0x4d5d12,FocusCycler as _0x323f49,createLabeledTextarea as _0x99db74}from'ckeditor5/src/ui.js';import _0x162620,{AIFormToolbarViewMainActionLabel as _0x7b7d53}from'./aiformtoolbarview.js';import _0x591ac9 from'./aiformcontentarea.js';import _0x2b68cb from'./aiformerrorview.js';import _0x47a8ca from'./aiformpromptview.js';import _0x1beac7 from'./aihistorylistview.js';import _0x2e9fe0 from'./aihistorylistitemview.js';import _0x2ae2a9 from'./prompthistory.js';import{getTranslation as _0x249314}from'../../utils/common-translations.js';import{escape as _0x13f944}from'lodash-es';export default class x extends _0x4d5d12{constructor(_0x555106,_0x371c78,_0x53e764=''){const _0x52083f=_0x479a;super(_0x555106),this[_0x52083f(0x123)](_0x52083f(0x11d),!0x0),this[_0x52083f(0x123)](_0x52083f(0x159),!0x1),this[_0x52083f(0x123)](_0x52083f(0x128),''),this[_0x52083f(0x123)](_0x52083f(0x15f),''),this[_0x52083f(0x123)](_0x52083f(0x139),!0x1),this[_0x52083f(0x123)](_0x52083f(0x12b),_0x7b7d53[_0x52083f(0x15e)]),this[_0x52083f(0x166)]=new _0x2ae2a9(),this[_0x52083f(0x145)]=new _0x2b68cb(_0x555106),this[_0x52083f(0x112)]=new _0x591ac9(_0x555106,_0x53e764),this[_0x52083f(0x112)][_0x52083f(0x157)](_0x52083f(0x159))['to'](this),this[_0x52083f(0x112)][_0x52083f(0x157)](_0x52083f(0x15f))['to'](this),this[_0x52083f(0x115)]=this[_0x52083f(0x162)](),this[_0x52083f(0x115)][_0x52083f(0x157)](_0x52083f(0x12b))['to'](this),this[_0x52083f(0x13b)]=this[_0x52083f(0x134)](),this[_0x52083f(0x13e)]=new _0x553917(),this[_0x52083f(0x13f)]=new _0x29841f(),this[_0x52083f(0x163)]=this[_0x52083f(0x122)]([this[_0x52083f(0x112)],this[_0x52083f(0x112)][_0x52083f(0x117)],this[_0x52083f(0x115)],this[_0x52083f(0x13b)]]),this[_0x52083f(0x165)]=new _0x323f49({'focusables':this[_0x52083f(0x163)],'focusTracker':this[_0x52083f(0x13e)],'keystrokeHandler':this[_0x52083f(0x13f)],'actions':{'focusPrevious':_0x52083f(0x142),'focusNext':_0x52083f(0x120)}}),this[_0x52083f(0x13b)][_0x52083f(0x165)]['on'](_0x52083f(0x138),_0x3c00e2=>{const _0x53b1d5=_0x52083f;this[_0x53b1d5(0x165)][_0x53b1d5(0x168)](),_0x3c00e2[_0x53b1d5(0x14f)]();}),this[_0x52083f(0x13b)][_0x52083f(0x165)]['on'](_0x52083f(0x149),_0x4962ab=>{const _0x2819c9=_0x52083f;this[_0x2819c9(0x165)][_0x2819c9(0x113)](),_0x4962ab[_0x2819c9(0x14f)]();}),this[_0x52083f(0x13b)][_0x52083f(0x141)][_0x52083f(0x119)][_0x52083f(0x157)](_0x52083f(0x15f))['to'](this,_0x52083f(0x128));const _0x1ebff6=this[_0x52083f(0x15c)];this[_0x52083f(0x137)]({'tag':_0x52083f(0x140),'attributes':{'class':['ck',_0x52083f(0x14e),_0x371c78],'tabindex':'-1'},'children':[{'tag':_0x52083f(0x140),'attributes':{'class':['ck',_0x52083f(0x133)]},'children':[{'tag':_0x52083f(0x140),'attributes':{'class':[_0x1ebff6['if'](_0x52083f(0x139),_0x52083f(0x116),_0x12752a=>!_0x12752a)]},'children':[this[_0x52083f(0x145)]]},this[_0x52083f(0x112)],this[_0x52083f(0x115)],this[_0x52083f(0x13b)]]}]});}[_0x3ea8e6(0x155)](){const _0x12c623=_0x3ea8e6;super[_0x12c623(0x155)](),this[_0x12c623(0x13e)][_0x12c623(0x125)](this[_0x12c623(0x112)][_0x12c623(0x135)]),this[_0x12c623(0x13e)][_0x12c623(0x125)](this[_0x12c623(0x112)][_0x12c623(0x117)][_0x12c623(0x135)]),this[_0x12c623(0x13e)][_0x12c623(0x125)](this[_0x12c623(0x115)][_0x12c623(0x135)]),this[_0x12c623(0x13e)][_0x12c623(0x125)](this[_0x12c623(0x13b)][_0x12c623(0x135)]),this[_0x12c623(0x13f)][_0x12c623(0x14b)](this[_0x12c623(0x135)]);}[_0x3ea8e6(0x114)](_0x8c9795=0x1){const _0x154759=_0x3ea8e6;-0x1===_0x8c9795?this[_0x154759(0x165)][_0x154759(0x158)]():this[_0x154759(0x165)][_0x154759(0x136)]();}[_0x3ea8e6(0x151)](){const _0x5735a7=_0x3ea8e6;this[_0x5735a7(0x128)]='',this[_0x5735a7(0x15f)]='',this[_0x5735a7(0x139)]=!0x1,this[_0x5735a7(0x13b)][_0x5735a7(0x151)](),this[_0x5735a7(0x112)][_0x5735a7(0x11f)]=!0x1,this[_0x5735a7(0x115)][_0x5735a7(0x11f)]=!0x1;}[_0x3ea8e6(0x134)](){const _0x19aaee=_0x3ea8e6,_0x39c5ec=this[_0x19aaee(0x13c)],_0x28e5d4=new _0x47a8ca(_0x39c5ec,{'queryView':{'label':_0x249314(_0x39c5ec,_0x19aaee(0x11b)),'creator':_0x99db74,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x249314(_0x39c5ec,_0x19aaee(0x154)),'secondary':_0x249314(_0x39c5ec,_0x19aaee(0x153))}}},'filteredView':this[_0x19aaee(0x131)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x28e5d4[_0x19aaee(0x157)](_0x19aaee(0x11d))['to'](this,_0x19aaee(0x11d),this,_0x19aaee(0x159),(_0x645ed3,_0x3827ce)=>_0x645ed3&&!_0x3827ce),this[_0x19aaee(0x14b)](_0x28e5d4,_0x19aaee(0x164),(_0x20dcbb,_0x5aebab)=>{const _0x3feffe=_0x19aaee;this[_0x3feffe(0x128)]=_0x5aebab;const _0x42515f=_0x13f944(_0x5aebab);this[_0x3feffe(0x152)](_0x3feffe(0x143),_0x42515f),_0x5aebab[_0x3feffe(0x14c)]()&&this[_0x3feffe(0x166)][_0x3feffe(0x125)]({'prompt':_0x42515f},0x0);},{'priority':_0x19aaee(0x12f)}),_0x28e5d4;}[_0x3ea8e6(0x131)](){const _0x1d10c9=_0x3ea8e6,_0x376ae1=new _0x1beac7(this[_0x1d10c9(0x13c)]);return _0x376ae1[_0x1d10c9(0x12a)][_0x1d10c9(0x12e)][_0x1d10c9(0x147)](this[_0x1d10c9(0x166)])['as'](_0x2e9fe0),_0x376ae1['on'](_0x1d10c9(0x11e),()=>{const _0x126e13=_0x1d10c9;this[_0x126e13(0x166)][_0x126e13(0x13a)](),this[_0x126e13(0x13b)][_0x126e13(0x12d)](''),this[_0x126e13(0x13b)][_0x126e13(0x114)]();}),_0x376ae1;}[_0x3ea8e6(0x162)](){const _0x2a1ba3=_0x3ea8e6,_0x5416ba=new _0x162620(this[_0x2a1ba3(0x13c)]);return _0x5416ba[_0x2a1ba3(0x111)][_0x2a1ba3(0x157)](_0x2a1ba3(0x11d))['to'](this,_0x2a1ba3(0x11d),this,_0x2a1ba3(0x159),this,_0x2a1ba3(0x15f),(_0x25c12f,_0x49abf4,_0x4bf472)=>_0x25c12f&&!_0x49abf4&&!!_0x4bf472),_0x5416ba[_0x2a1ba3(0x111)][_0x2a1ba3(0x10f)](_0x2a1ba3(0x15b))['to'](this,_0x2a1ba3(0x160)),_0x5416ba[_0x2a1ba3(0x12c)][_0x2a1ba3(0x157)](_0x2a1ba3(0x11d))['to'](this,_0x2a1ba3(0x11d),this,_0x2a1ba3(0x159),this,_0x2a1ba3(0x15f),(_0x1e372e,_0x38dbcf,_0x1820c5)=>_0x1e372e&&!_0x38dbcf&&!!_0x1820c5),_0x5416ba[_0x2a1ba3(0x12c)][_0x2a1ba3(0x10f)](_0x2a1ba3(0x15b))['to'](this,_0x2a1ba3(0x15a)),_0x5416ba[_0x2a1ba3(0x146)][_0x2a1ba3(0x157)](_0x2a1ba3(0x11d))['to'](this,_0x2a1ba3(0x11d),this,_0x2a1ba3(0x159),(_0x1720c4,_0x1701e5)=>_0x1720c4&&!_0x1701e5),_0x5416ba[_0x2a1ba3(0x146)][_0x2a1ba3(0x10f)](_0x2a1ba3(0x15b))['to'](this,_0x2a1ba3(0x118)),_0x5416ba[_0x2a1ba3(0x13d)][_0x2a1ba3(0x157)](_0x2a1ba3(0x11d))['to'](this,_0x2a1ba3(0x159)),_0x5416ba[_0x2a1ba3(0x13d)][_0x2a1ba3(0x10f)](_0x2a1ba3(0x15b))['to'](this,_0x2a1ba3(0x124)),_0x5416ba;}[_0x3ea8e6(0x132)](){const _0x5267a4=_0x3ea8e6;this[_0x5267a4(0x15f)]='',this[_0x5267a4(0x139)]=!0x1,this[_0x5267a4(0x159)]=!0x0,this[_0x5267a4(0x112)][_0x5267a4(0x11f)]=!0x0,this[_0x5267a4(0x115)][_0x5267a4(0x11f)]=!0x0,this[_0x5267a4(0x112)][_0x5267a4(0x114)]();}[_0x3ea8e6(0x11a)](){const _0x2cc380=_0x3ea8e6,_0x55eecb=this[_0x2cc380(0x13c)];this[_0x2cc380(0x159)]=!0x1,this[_0x2cc380(0x128)]='',this[_0x2cc380(0x13b)][_0x2cc380(0x151)](),this[_0x2cc380(0x15f)]&&(this[_0x2cc380(0x13b)][_0x2cc380(0x141)][_0x2cc380(0x11c)]=_0x249314(_0x55eecb,_0x2cc380(0x126)));}[_0x3ea8e6(0x15d)](_0x1a6988){const _0x5e0f80=_0x3ea8e6,_0x391f95=this[_0x5e0f80(0x13c)];this[_0x5e0f80(0x11a)](),this[_0x5e0f80(0x139)]=!0x0,this[_0x5e0f80(0x145)][_0x5e0f80(0x14d)]=_0x1a6988||_0x249314(_0x391f95,_0x5e0f80(0x127)),this[_0x5e0f80(0x15f)]||(this[_0x5e0f80(0x112)][_0x5e0f80(0x11f)]=!0x1);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x4f71(_0x1a26a0,_0x8d0095){const _0x215652=_0x2156();return _0x4f71=function(_0x4f715d,_0x279e21){_0x4f715d=_0x4f715d-0x116;let _0x46a630=_0x215652[_0x4f715d];return _0x46a630;},_0x4f71(_0x1a26a0,_0x8d0095);}function _0x2156(){const _0x2039e6=['children','2116276OwOGBM','prompt','set','193025IiyXFf','1529985XQLTjk','72etQayv','add','817968JiZGQv','locale','3RKsZBS','1480164xqsQJa','execute','fire','3515748zdaXMC','197433wZBcIT'];_0x2156=function(){return _0x2039e6;};return _0x2156();}(function(_0x3670ad,_0x2b9a4f){const _0x30ad2f=_0x4f71,_0x553c85=_0x3670ad();while(!![]){try{const _0x12a076=parseInt(_0x30ad2f(0x11b))/0x1+parseInt(_0x30ad2f(0x11f))/0x2*(parseInt(_0x30ad2f(0x121))/0x3)+-parseInt(_0x30ad2f(0x118))/0x4+-parseInt(_0x30ad2f(0x11c))/0x5+parseInt(_0x30ad2f(0x125))/0x6+-parseInt(_0x30ad2f(0x122))/0x7+-parseInt(_0x30ad2f(0x11d))/0x8*(-parseInt(_0x30ad2f(0x116))/0x9);if(_0x12a076===_0x2b9a4f)break;else _0x553c85['push'](_0x553c85['shift']());}catch(_0x81b667){_0x553c85['push'](_0x553c85['shift']());}}}(_0x2156,0x52bc2));import{ListItemView as _0x46b59d,ButtonView as _0x1549ce}from'ckeditor5/src/ui.js';import _0x4b62f7 from'../dropdown/buttonlabelwithhighlightview.js';import{unescape as _0x9bc52b}from'lodash-es';export default class hs extends _0x46b59d{constructor(_0x4653bd){const _0x2ec90f=_0x4f71;super();const _0x19059d=new _0x4b62f7(),_0x52a9e8=new _0x1549ce(this[_0x2ec90f(0x120)],_0x19059d);this[_0x2ec90f(0x117)][_0x2ec90f(0x11e)](_0x52a9e8),_0x52a9e8[_0x2ec90f(0x11a)]({'label':_0x4653bd[_0x2ec90f(0x119)],'withText':!0x0}),_0x52a9e8['on'](_0x2ec90f(0x123),()=>{const _0x5ad740=_0x2ec90f;this[_0x5ad740(0x124)](_0x5ad740(0x123),{'value':_0x9bc52b(_0x4653bd[_0x5ad740(0x119)])});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x55bded=_0x5967;(function(_0x29156f,_0x45138a){const _0x4ec284=_0x5967,_0x35fb89=_0x29156f();while(!![]){try{const _0x563404=parseInt(_0x4ec284(0x1fb))/0x1*(parseInt(_0x4ec284(0x1fa))/0x2)+parseInt(_0x4ec284(0x1f0))/0x3*(parseInt(_0x4ec284(0x1ff))/0x4)+-parseInt(_0x4ec284(0x1f6))/0x5+-parseInt(_0x4ec284(0x205))/0x6+parseInt(_0x4ec284(0x206))/0x7*(parseInt(_0x4ec284(0x1fd))/0x8)+parseInt(_0x4ec284(0x20a))/0x9+-parseInt(_0x4ec284(0x1f4))/0xa;if(_0x563404===_0x45138a)break;else _0x35fb89['push'](_0x35fb89['shift']());}catch(_0x1d7679){_0x35fb89['push'](_0x35fb89['shift']());}}}(_0x31c1,0x63f08));import{ListView as _0x98ce50,ListItemGroupView as _0x108d80,ButtonView as _0x1c206b}from'ckeditor5/src/ui.js';import{getTranslation as _0x5eb05a}from'../../utils/common-translations.js';export default class rs extends _0x98ce50{constructor(_0x5c8429){const _0x1902f9=_0x5967;super(_0x5c8429),this[_0x1902f9(0x1f1)]=this[_0x1902f9(0x204)](),this[_0x1902f9(0x209)]=new _0x108d80(),this[_0x1902f9(0x209)][_0x1902f9(0x200)][_0x1902f9(0x1fe)](this[_0x1902f9(0x1f1)],0x1),this[_0x1902f9(0x209)][_0x1902f9(0x1f2)]=_0x5eb05a(_0x5c8429,_0x1902f9(0x201)),this[_0x1902f9(0x209)][_0x1902f9(0x207)][_0x1902f9(0x1f9)](_0x1902f9(0x1f8))['to'](this),this[_0x1902f9(0x207)][_0x1902f9(0x1fe)](this[_0x1902f9(0x209)]);}[_0x55bded(0x1f7)](){const _0x385653=_0x55bded;let _0x57b0f7=0x0;for(const _0x402a88 of this[_0x385653(0x207)])_0x57b0f7+=_0x402a88[_0x385653(0x207)][_0x385653(0x202)];return{'resultsCount':_0x57b0f7,'totalItemsCount':_0x57b0f7};}[_0x55bded(0x204)](){const _0x3439a2=_0x55bded,_0x483a9b=this[_0x3439a2(0x1fc)],_0x110b14=new _0x1c206b(this[_0x3439a2(0x1fc)]);return _0x110b14[_0x3439a2(0x203)]({'label':'('+_0x5eb05a(_0x483a9b,_0x3439a2(0x1f5))+')','withText':!0x0}),_0x110b14['on'](_0x3439a2(0x1f8),()=>this[_0x3439a2(0x208)](_0x3439a2(0x1f3))),_0x110b14;}}function _0x5967(_0x263d86,_0x423e70){const _0x31c171=_0x31c1();return _0x5967=function(_0x59676f,_0x45fde9){_0x59676f=_0x59676f-0x1f0;let _0x4d9393=_0x31c171[_0x59676f];return _0x4d9393;},_0x5967(_0x263d86,_0x423e70);}function _0x31c1(){const _0x302a4f=['clearHistoryButton','label','clearHistory','1510NJnzXj','Clear','2600490lFbLOG','filter','execute','delegate','25706gFNMdv','59YfsAYZ','locale','360hLiDFV','add','28QXxLDc','children','Prompt\x20history','length','set','_createClearHistoryButton','3271530QNiXxH','19299KLCaVL','items','fire','historyGroupView','3953358KrtLXs','65658nPKzAI'];_0x31c1=function(){return _0x302a4f;};return _0x31c1();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x4e61(_0x2065ed,_0x15f4dc){const _0x3c4b6b=_0x3c4b();return _0x4e61=function(_0x4e616d,_0xd48b00){_0x4e616d=_0x4e616d-0xf3;let _0x20b70c=_0x3c4b6b[_0x4e616d];return _0x20b70c;},_0x4e61(_0x2065ed,_0x15f4dc);}function _0x3c4b(){const _0x4e6487=['add','parse','toLowerCase','15999510sQcgYF','795882ZadWdz','remove','length','4tFztMu','getItem','addMany','_loadFromSessionStorage','setItem','stringify','4ywNqNF','map','156526znUgfk','120zDZZUY','7130690fVTUZP','CKEditor/AIFormView/PromptHistory','6135792tIdHJi','546810ePFcXU','538632jQqgbi','prompt','last','trim','_saveToSessionStorage'];_0x3c4b=function(){return _0x4e6487;};return _0x3c4b();}const _0x548444=_0x4e61;(function(_0x35f2c9,_0x100336){const _0x188380=_0x4e61,_0x1a9fd3=_0x35f2c9();while(!![]){try{const _0x427ac6=-parseInt(_0x188380(0x106))/0x1*(parseInt(_0x188380(0xf4))/0x2)+parseInt(_0x188380(0x103))/0x3*(parseInt(_0x188380(0x10c))/0x4)+-parseInt(_0x188380(0xf9))/0x5+parseInt(_0x188380(0xf8))/0x6+-parseInt(_0x188380(0xf6))/0x7+-parseInt(_0x188380(0xf5))/0x8*(parseInt(_0x188380(0xfa))/0x9)+parseInt(_0x188380(0x102))/0xa;if(_0x427ac6===_0x100336)break;else _0x1a9fd3['push'](_0x1a9fd3['shift']());}catch(_0x5da4af){_0x1a9fd3['push'](_0x1a9fd3['shift']());}}}(_0x3c4b,0x860d1));import{Collection as _0x488686}from'ckeditor5/src/utils.js';const cs=_0x548444(0xf7);export default class os extends _0x488686{constructor(){const _0x25ca61=_0x548444;super(),this[_0x25ca61(0x109)](),this['on'](_0x25ca61(0xff),(_0x2b4da3,_0x25bf20)=>{const _0x5f35ca=_0x25ca61,_0x2f0fd4=Ss(_0x25bf20[_0x5f35ca(0xfb)]);for(const _0x13f05f of this)if(_0x13f05f!=_0x25bf20&&Ss(_0x13f05f[_0x5f35ca(0xfb)])===_0x2f0fd4){this[_0x5f35ca(0x104)](_0x13f05f);break;}this[_0x5f35ca(0x105)]>0x14&&this[_0x5f35ca(0x104)](this[_0x5f35ca(0xfc)]),this[_0x5f35ca(0xfe)]();}),this['on'](_0x25ca61(0x104),()=>{const _0x523fdb=_0x25ca61;this[_0x523fdb(0xfe)]();});}[_0x548444(0x109)](){const _0x4b6b76=_0x548444,_0x4b1711=sessionStorage[_0x4b6b76(0x107)](cs)||'[]';this[_0x4b6b76(0x108)](JSON[_0x4b6b76(0x100)](_0x4b1711));}[_0x548444(0xfe)](){const _0x48df55=_0x548444;sessionStorage[_0x48df55(0x10a)](cs,JSON[_0x48df55(0x10b)](this[_0x48df55(0xf3)](_0x459c12=>_0x459c12)));}}function Ss(_0x31aee7){const _0x512b08=_0x548444;return _0x31aee7[_0x512b08(0x101)]()[_0x512b08(0xfd)]();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x1aaecf=_0x1963;(function(_0x2fb65c,_0x2191ea){const _0x394b78=_0x1963,_0x31a751=_0x2fb65c();while(!![]){try{const _0x2bb13f=parseInt(_0x394b78(0x98))/0x1*(parseInt(_0x394b78(0x97))/0x2)+parseInt(_0x394b78(0x89))/0x3*(-parseInt(_0x394b78(0x86))/0x4)+-parseInt(_0x394b78(0x8c))/0x5*(parseInt(_0x394b78(0x7b))/0x6)+parseInt(_0x394b78(0x87))/0x7+parseInt(_0x394b78(0x8a))/0x8*(parseInt(_0x394b78(0x8d))/0x9)+-parseInt(_0x394b78(0x85))/0xa+parseInt(_0x394b78(0x9e))/0xb*(-parseInt(_0x394b78(0x8b))/0xc);if(_0x2bb13f===_0x2191ea)break;else _0x31a751['push'](_0x31a751['shift']());}catch(_0x55b892){_0x31a751['push'](_0x31a751['shift']());}}}(_0x17d1,0x39e83));import{Command as _0x924aae}from'ckeditor5/src/core.js';import _0x7496c3 from'../aiassistantui.js';export default class j extends _0x924aae{constructor(_0x265d76,_0x30f8ba){const _0x2c9008=_0x1963;super(_0x265d76),this[_0x2c9008(0x8f)]=_0x30f8ba?_0x30f8ba[_0x2c9008(0x92)]((_0xbde40b,_0x562a0a)=>_0xbde40b[_0x2c9008(0x82)](_0x562a0a[_0x2c9008(0x9d)]),new Array()):[],this[_0x2c9008(0x70)](_0x2c9008(0x71),[]),this['on'](_0x2c9008(0x7c),(_0xc4bbd7,_0x35d703,_0x36be31)=>{const _0x1bf5a8=_0x2c9008;this[_0x1bf5a8(0x94)]&&(this[_0x1bf5a8(0x71)]=K(this[_0x1bf5a8(0x8f)],_0x36be31));}),this[_0x2c9008(0x70)](_0x2c9008(0x7f),!0x1),this['on'](_0x2c9008(0x6f),(_0x2625bc,_0x4da3a9,_0x29ff8b)=>{const _0x13e1e3=_0x2c9008;this[_0x13e1e3(0x71)]=_0x29ff8b?K(this[_0x13e1e3(0x8f)],this[_0x13e1e3(0x7f)]):[];});}[_0x1aaecf(0x9c)](){const _0x2943f5=_0x1aaecf,_0x12143b=this[_0x2943f5(0x8e)][_0x2943f5(0x9b)];this[_0x2943f5(0x7f)]=function(_0x2938fe){const _0x402a07=_0x2943f5,_0x24d9af=_0x2938fe[_0x402a07(0x7d)][_0x402a07(0x88)];return _0x24d9af[_0x402a07(0x90)]?0x0!==[..._0x24d9af[_0x402a07(0x9a)]()][_0x402a07(0x72)]&&![..._0x24d9af[_0x402a07(0x9a)]()][0x0][_0x402a07(0x91)]:!!_0x2938fe[_0x402a07(0x80)](_0x24d9af[_0x402a07(0x83)]());}(_0x12143b);const _0x57832c=_0x12143b[_0x2943f5(0x7d)][_0x2943f5(0x88)],_0x1ff23d=this[_0x2943f5(0x8e)][_0x2943f5(0x81)][_0x2943f5(0x99)](_0x2943f5(0x96));for(const _0x5da3fb of _0x57832c[_0x2943f5(0x79)]())for(const _0x25d387 of _0x5da3fb[_0x2943f5(0x78)]())if(_0x25d387['is'](_0x2943f5(0x84))&&_0x1ff23d[_0x2943f5(0x95)](_0x25d387[_0x2943f5(0x73)]))return void(this[_0x2943f5(0x94)]=!0x1);this[_0x2943f5(0x94)]=!0x0;}[_0x1aaecf(0x7a)](_0x25878d='',_0x46c12c='',_0x3310b6=_0x1aaecf(0x75)){const _0x5d17bc=_0x1aaecf;this[_0x5d17bc(0x8e)][_0x5d17bc(0x74)][_0x5d17bc(0x99)](_0x7496c3)[_0x5d17bc(0x76)](_0x25878d,_0x46c12c,_0x3310b6);}}function K(_0x52d95e,_0x5ec151){const _0x1ed44b=_0x1aaecf,_0x5d46a2=new Set();for(const _0x4e5b8f of _0x52d95e)(_0x5ec151||!0x1===_0x4e5b8f[_0x1ed44b(0x77)])&&_0x5d46a2[_0x1ed44b(0x93)](_0x4e5b8f['id']);return Array[_0x1ed44b(0x7e)](_0x5d46a2);}function _0x1963(_0x338429,_0x5f33c6){const _0x17d169=_0x17d1();return _0x1963=function(_0x19630b,_0x4bc68c){_0x19630b=_0x19630b-0x6f;let _0x275a1b=_0x17d169[_0x19630b];return _0x275a1b;},_0x1963(_0x338429,_0x5f33c6);}function _0x17d1(){const _0x2b8c51=['isEnabled','includes','ai.aiAssistant.disabledElements','10514qgDpah','30ZdbBFy','get','getSelectedBlocks','model','refresh','commands','129811jsbkRo','change:isEnabled','set','enabledCommandsIds','length','name','plugins','custom','showUI','requiresContent','getItems','getRanges','execute','24OLwPlm','change:_hasContext','document','from','_hasContext','hasContent','config','concat','getFirstRange','element','701520uteqgM','134452qlvIYB','2558066ORvheC','selection','3IfweRo','56FwvKND','156gFAXKG','126235YBJNCq','92835tAqaMR','editor','_commandDefinitions','isCollapsed','isEmpty','reduce','add'];_0x17d1=function(){return _0x2b8c51;};return _0x17d1();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(
|
|
23
|
+
export function getTranslation(_0x5487b1,_0x5bb6a6,_0x2c3e17){const t=_0x5487b1['t'];switch(_0x5bb6a6){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',_0x2c3e17);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',_0x2c3e17);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',_0x2c3e17);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x2c3e17);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'},_0x2c3e17);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 _0x5bb6a6;}}
|