@ckeditor/ckeditor5-ai 42.0.0-alpha.6 → 42.0.0-alpha.7
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 +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
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
|
|
23
|
+
const _0x50059c=_0x2ab5;(function(_0x226189,_0x48299f){const _0x2761c6=_0x2ab5,_0x59f61c=_0x226189();while(!![]){try{const _0x565af1=parseInt(_0x2761c6(0x1fb))/0x1+-parseInt(_0x2761c6(0x1db))/0x2*(-parseInt(_0x2761c6(0x1ef))/0x3)+parseInt(_0x2761c6(0x1f9))/0x4+parseInt(_0x2761c6(0x21c))/0x5+parseInt(_0x2761c6(0x220))/0x6*(-parseInt(_0x2761c6(0x20c))/0x7)+parseInt(_0x2761c6(0x216))/0x8+-parseInt(_0x2761c6(0x1fd))/0x9;if(_0x565af1===_0x48299f)break;else _0x59f61c['push'](_0x59f61c['shift']());}catch(_0x1b00f9){_0x59f61c['push'](_0x59f61c['shift']());}}}(_0x5d21,0x53229));import{ObservableMixin as _0x18971e}from'ckeditor5/src/utils.js';import{AIRequestError as _0x5d746a}from'../adapters/aiadapter.js';function _0x2ab5(_0x459cb0,_0xba387b){const _0x5d21fc=_0x5d21();return _0x2ab5=function(_0x2ab57e,_0x155bd0){_0x2ab57e=_0x2ab57e-0x1d2;let _0x5d4836=_0x5d21fc[_0x2ab57e];return _0x5d4836;},_0x2ab5(_0x459cb0,_0xba387b);}import{Matcher as _0x89520b,UpcastWriter as _0x489499}from'ckeditor5/src/engine.js';function _0x5d21(){const _0x3086fa=['from','mainAction','value','name','_normalizeResponseHeadings','_sanitizeHTML','childNodes','document','set:currentContext','listenTo','_handleQuery','stringify','catch','_parseAndNormalizeContent','735YSwvGf','finishProcessing','submitPrompt','reverse','toView','startProcessing','previousActionId','destroy','_isH1TagSupportEnabled','length','1231272GLQJgT','htmlProcessor','29635VDXvvZ','reset','2113191bFeYEE','view','then','initialContext','updateView','custom','processor','endsWith','stopListening','stopProcessing','message','_xmlSerializer','handleError','rename','viewToDom','7XPGBBa','exec','remove','editing','once','parseFromString','innerHTML','previousLabel','match','_sanitizationContainer','1122960JOgNIO','isRendered','```','_domParser','previousContext','```html','199375fXZHsT','createElement','render','makeRequest','273138iQPCVQ','startsWith','abort','data','finally','trim','prompt','editor','_stripMarkdownSyntax','tryAgainEvent','domConverter','nodeType','<h1></h1>','currentContext','ELEMENT_NODE','serializeToString','currentResponse','push','toModel','previousQuery','textAdapter','element','substring','div','isProcessing','842QGHgTW','setContentOf','body','text/html','set','querySelector'];_0x5d21=function(){return _0x3086fa;};return _0x5d21();}const X=new RegExp(/^(.*?)<[a-zA-Z][a-zA-Z0-9_\-.]*[ >]/,'is');export default class k extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x18971e(){constructor(_0x14be0f,_0x6fc38d,_0x2a8faa){const _0x5cd0cf=_0x2ab5;super(),this[_0x5cd0cf(0x227)]=_0x14be0f,this[_0x5cd0cf(0x1d6)]=_0x6fc38d,this[_0x5cd0cf(0x215)]=document[_0x5cd0cf(0x21d)](_0x5cd0cf(0x1d9)),this[_0x5cd0cf(0x219)]=new DOMParser(),this[_0x5cd0cf(0x208)]=new XMLSerializer(),this[_0x5cd0cf(0x1fe)]=_0x2a8faa,this[_0x5cd0cf(0x1df)]({'initialContext':'','currentContext':'','currentResponse':'','previousContext':void 0x0,'previousQuery':void 0x0,'previousLabel':void 0x0,'isProcessing':!0x1}),this['on'](_0x5cd0cf(0x1e9),(_0x4d3bdc,_0x558b13,_0x32efbc)=>{const _0x56e40a=_0x5cd0cf;this[_0x56e40a(0x1fe)][_0x56e40a(0x1e3)]=this[_0x56e40a(0x1e6)](_0x32efbc);}),this[_0x5cd0cf(0x1ea)](this[_0x5cd0cf(0x1fe)],_0x5cd0cf(0x1f1),(_0x1d2b1a,_0x56b6b1)=>{const _0x153cc6=_0x5cd0cf,_0x53d950=this[_0x153cc6(0x22d)]||this[_0x153cc6(0x200)];this[_0x153cc6(0x1eb)](_0x56b6b1,_0x53d950,_0x153cc6(0x202));}),this[_0x5cd0cf(0x1ea)](this[_0x5cd0cf(0x1fe)],_0x5cd0cf(0x229),()=>{const _0x2be2b7=_0x5cd0cf;this[_0x2be2b7(0x1fe)][_0x2be2b7(0x226)]=this[_0x2be2b7(0x213)],this[_0x2be2b7(0x1eb)](this[_0x2be2b7(0x1d5)],this[_0x2be2b7(0x21a)],this[_0x2be2b7(0x1f5)],this[_0x2be2b7(0x213)]);}),this[_0x5cd0cf(0x1ea)](this[_0x5cd0cf(0x1fe)],_0x5cd0cf(0x206),()=>{const _0x37cf88=_0x5cd0cf;this[_0x37cf88(0x206)]();});}[_0x50059c(0x1f6)](){const _0xb5d394=_0x50059c;this[_0xb5d394(0x205)]();}async[_0x50059c(0x201)]({actionId:_0x433fe6,query:_0x3da524,htmlContent:_0x185403,label:_0x5f57ac,mainActionLabel:_0x58957f}){const _0x56f3ee=_0x50059c;this[_0x56f3ee(0x1fe)][_0x56f3ee(0x226)]=_0x5f57ac,this[_0x56f3ee(0x1fe)][_0x56f3ee(0x1e2)]=_0x58957f,this[_0x56f3ee(0x200)]=_0x185403,_0x3da524&&(this[_0x56f3ee(0x1fe)][_0x56f3ee(0x217)]?this[_0x56f3ee(0x1eb)](_0x3da524,_0x185403,_0x433fe6,_0x5f57ac):this[_0x56f3ee(0x1fe)][_0x56f3ee(0x210)](_0x56f3ee(0x21e),()=>{const _0x26e7c1=_0x56f3ee;this[_0x26e7c1(0x1eb)](_0x3da524,_0x185403,_0x433fe6,_0x5f57ac);}));}[_0x50059c(0x206)](){const _0x55e14a=_0x50059c;this[_0x55e14a(0x1da)]&&(this[_0x55e14a(0x1da)]=!0x1,this[_0x55e14a(0x1fe)][_0x55e14a(0x1f0)](),this[_0x55e14a(0x1d6)][_0x55e14a(0x222)]());}[_0x50059c(0x1fc)](){const _0x131108=_0x50059c;this[_0x131108(0x200)]='',this[_0x131108(0x22d)]='',this[_0x131108(0x1d2)]='',this[_0x131108(0x21a)]='',this[_0x131108(0x1d5)]='',this[_0x131108(0x213)]='',this[_0x131108(0x1f5)]=void 0x0,this[_0x131108(0x1fe)][_0x131108(0x1fc)](),this[_0x131108(0x206)]();}async[_0x50059c(0x1eb)](_0x3cf317,_0xa2813b,_0x18c086,_0x650701){const _0x3f6516=_0x50059c;return this[_0x3f6516(0x1da)]=!0x0,this[_0x3f6516(0x1fe)][_0x3f6516(0x1f4)](),this[_0x3f6516(0x21a)]=_0xa2813b,this[_0x3f6516(0x1d5)]=_0x3cf317,this[_0x3f6516(0x213)]=_0x650701||_0x3cf317,this[_0x3f6516(0x1f5)]=_0x18c086,new Promise(_0x380c66=>{const _0x5af55e=_0x3f6516;this[_0x5af55e(0x1d6)][_0x5af55e(0x21f)]({'query':_0x3cf317,'context':_0xa2813b,'onData':_0x3da1c3=>{const _0x21b16a=_0x5af55e;this[_0x21b16a(0x1d2)]=_0x3da1c3,this[_0x21b16a(0x22d)]=this[_0x21b16a(0x1ee)](this[_0x21b16a(0x1d2)]);},'actionId':_0x18c086})[_0x5af55e(0x1ff)](()=>{const _0x57286e=_0x5af55e;!this[_0x57286e(0x22d)]&&this[_0x57286e(0x1d2)]&&(this[_0x57286e(0x22d)]=this[_0x57286e(0x1ee)](this[_0x57286e(0x1d2)],!0x0));})[_0x5af55e(0x1ed)](_0xac75bc=>{const _0x47329c=_0x5af55e;_0xac75bc instanceof _0x5d746a?this[_0x47329c(0x1fe)][_0x47329c(0x209)](_0xac75bc[_0x47329c(0x207)]):this[_0x47329c(0x1fe)][_0x47329c(0x209)](),_0x380c66();})[_0x5af55e(0x224)](()=>{const _0x100e95=_0x5af55e;this[_0x100e95(0x206)](),_0x380c66();});});}[_0x50059c(0x1ee)](_0x10053f,_0x4d7df4=!0x1){const _0x44dbdb=_0x50059c,_0x1e2da6=X[_0x44dbdb(0x20d)](_0x10053f);_0x10053f=_0x1e2da6?_0x10053f[_0x44dbdb(0x1d8)](_0x1e2da6[0x1][_0x44dbdb(0x1f8)]):_0x10053f[_0x44dbdb(0x1f8)]<0x64&&!_0x4d7df4?'':this[_0x44dbdb(0x228)](_0x10053f);const _0x1c3afe=this[_0x44dbdb(0x219)][_0x44dbdb(0x211)](_0x10053f,_0x44dbdb(0x1de));if(_0x1e2da6){const _0x45dba4=Array[_0x44dbdb(0x1e1)](_0x1c3afe[_0x44dbdb(0x1dd)][_0x44dbdb(0x1e7)]);_0x45dba4[_0x44dbdb(0x1f2)]();for(const _0x2a16b1 of _0x45dba4){if(_0x2a16b1[_0x44dbdb(0x22b)]==Node[_0x44dbdb(0x22e)])break;_0x2a16b1[_0x44dbdb(0x20e)]();}}const _0x389fb4=this[_0x44dbdb(0x227)][_0x44dbdb(0x223)][_0x44dbdb(0x203)][_0x44dbdb(0x1f3)](this[_0x44dbdb(0x208)][_0x44dbdb(0x22f)](_0x1c3afe[_0x44dbdb(0x1dd)]));return this[_0x44dbdb(0x1f7)]()||this[_0x44dbdb(0x1e5)](_0x389fb4),this[_0x44dbdb(0x227)][_0x44dbdb(0x223)][_0x44dbdb(0x1ec)](this[_0x44dbdb(0x227)][_0x44dbdb(0x223)][_0x44dbdb(0x1d4)](_0x389fb4));}[_0x50059c(0x1e5)](_0x4733d9){const _0x5accb3=_0x50059c,_0x2e95d2=new _0x489499(this[_0x5accb3(0x227)][_0x5accb3(0x20f)][_0x5accb3(0x1fe)][_0x5accb3(0x1e8)]),_0x57b172=new _0x89520b({'name':/^h[1-5]$/}),_0x101e86=[];let _0x57edde=!0x1;for(const _0x2d3d6e of _0x4733d9)_0x2d3d6e['is'](_0x5accb3(0x1d7))&&_0x57b172[_0x5accb3(0x214)](_0x2d3d6e)&&(_0x101e86[_0x5accb3(0x1d3)](_0x2d3d6e),'h1'==_0x2d3d6e[_0x5accb3(0x1e4)]&&(_0x57edde=!0x0));if(_0x57edde){for(const _0x3bec6e of _0x101e86)_0x2e95d2[_0x5accb3(0x20a)]('h'+(parseInt(_0x3bec6e[_0x5accb3(0x1e4)][0x1])+0x1),_0x3bec6e);}}[_0x50059c(0x1f7)](){const _0x542fb8=_0x50059c,{data:_0x1e37f6,editing:_0x124259}=this[_0x542fb8(0x227)],_0x53b832=_0x1e37f6[_0x542fb8(0x1fa)][_0x542fb8(0x1f3)](_0x542fb8(0x22c)),_0x36873d=_0x1e37f6[_0x542fb8(0x1f3)](_0x1e37f6[_0x542fb8(0x1d4)](_0x53b832));return!!_0x124259[_0x542fb8(0x1fe)][_0x542fb8(0x22a)][_0x542fb8(0x20b)](_0x36873d)[_0x542fb8(0x1e0)]('h1');}[_0x50059c(0x1e6)](_0x5ecd4b){const _0x3ce233=_0x50059c;return this[_0x3ce233(0x227)][_0x3ce233(0x20f)][_0x3ce233(0x1fe)][_0x3ce233(0x22a)][_0x3ce233(0x1dc)](this[_0x3ce233(0x215)],_0x5ecd4b),this[_0x3ce233(0x215)][_0x3ce233(0x212)];}[_0x50059c(0x228)](_0x1cdae9){const _0x4d3385=_0x50059c,_0xf6266e=_0x1cdae9[_0x4d3385(0x225)]();return _0xf6266e[_0x4d3385(0x221)](_0x4d3385(0x21b))?_0xf6266e[_0x4d3385(0x204)](_0x4d3385(0x218))?_0xf6266e[_0x4d3385(0x1d8)](0x7,_0xf6266e[_0x4d3385(0x1f8)]-0x3):_0xf6266e[_0x4d3385(0x1d8)](0x7):_0x1cdae9;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x598d(){const _0x5d5492=['318940NYtLEN','2115dtEGjT','filter','set','role','children','115588qLhsar','1815640XbMsxW','length','isEnabled','match','192KtLyDb','label','74838xGkQad','3Bpxwii','483224QLFpDx','includes','get','highlightText','isVisible','1367758oDJPme','labelView','enabledCommandsIds','change:enabledCommandsIds','8IevTaU','items','listbox','first','commandDefinition'];_0x598d=function(){return _0x5d5492;};return _0x598d();}const _0x78f370=_0x32af;(function(_0x14d0d3,_0x2a3a1b){const _0x5bc147=_0x32af,_0x235726=_0x14d0d3();while(!![]){try{const _0x2487ae=-parseInt(_0x5bc147(0x148))/0x1+-parseInt(_0x5bc147(0x151))/0x2*(parseInt(_0x5bc147(0x150))/0x3)+-parseInt(_0x5bc147(0x15a))/0x4*(-parseInt(_0x5bc147(0x142))/0x5)+-parseInt(_0x5bc147(0x14f))/0x6+parseInt(_0x5bc147(0x156))/0x7+parseInt(_0x5bc147(0x14d))/0x8*(-parseInt(_0x5bc147(0x143))/0x9)+parseInt(_0x5bc147(0x149))/0xa;if(_0x2487ae===_0x2a3a1b)break;else _0x235726['push'](_0x235726['shift']());}catch(_0x456f24){_0x235726['push'](_0x235726['shift']());}}}(_0x598d,0x1f8c5));function _0x32af(_0x1032c7,_0x501cd5){const _0x598d7c=_0x598d();return _0x32af=function(_0x32af56,_0x56c5fb){_0x32af56=_0x32af56-0x141;let _0x4db689=_0x598d7c[_0x32af56];return _0x4db689;},_0x32af(_0x1032c7,_0x501cd5);}import{ListView as _0x2130b9,ListItemGroupView as _0x23a7d7}from'ckeditor5/src/ui.js';import{AICommandsListItemView as _0xb27512}from'../../aiassistantui.js';export default class U extends _0x2130b9{constructor(_0x4be8ae){const _0x47a7d3=_0x32af;super(_0x4be8ae),this[_0x47a7d3(0x146)]=_0x47a7d3(0x15c),this[_0x47a7d3(0x145)](_0x47a7d3(0x158),[]),this['on'](_0x47a7d3(0x159),()=>{const _0x5578e1=_0x47a7d3;for(const _0x17d406 of this[_0x5578e1(0x15b)])if(_0x17d406 instanceof _0x23a7d7){for(const _0x3984f5 of _0x17d406[_0x5578e1(0x15b)])if(_0x3984f5 instanceof _0xb27512){const _0x1d9e46=_0x3984f5[_0x5578e1(0x147)][_0x5578e1(0x153)](0x0);this[_0x5578e1(0x158)][_0x5578e1(0x152)](_0x3984f5[_0x5578e1(0x141)]['id'])?_0x1d9e46[_0x5578e1(0x14b)]=!0x0:_0x1d9e46[_0x5578e1(0x14b)]=!0x1;}}});}[_0x78f370(0x144)](_0x33d389){const _0x11a628=_0x78f370;let _0x4fafcd=0x0,_0x4c9c4c=0x0;for(const _0x3fc837 of this[_0x11a628(0x15b)]){const _0x2a9582=_0x3fc837,_0x1a373d=_0x2a9582[_0x11a628(0x15b)],_0x18b44b=_0x33d389&&!!_0x2a9582[_0x11a628(0x14e)][_0x11a628(0x14c)](_0x33d389);_0x2a9582[_0x11a628(0x157)][_0x11a628(0x154)](_0x18b44b?_0x33d389:null);for(const _0xc93ed7 of _0x1a373d){const _0x6fcbfc=_0xc93ed7[_0x11a628(0x147)][_0x11a628(0x15d)],_0x980fd8=_0x6fcbfc[_0x11a628(0x157)];if(_0x33d389){const _0x535e80=!!_0x6fcbfc[_0x11a628(0x14e)][_0x11a628(0x14c)](_0x33d389);_0x980fd8[_0x11a628(0x154)](_0x535e80?_0x33d389:null),_0xc93ed7[_0x11a628(0x155)]=_0x18b44b||_0x535e80;}else _0xc93ed7[_0x11a628(0x155)]=!0x0,_0x980fd8[_0x11a628(0x154)](null);}const _0x755476=_0x1a373d[_0x11a628(0x144)](_0x5d7fe9=>_0x5d7fe9[_0x11a628(0x155)])[_0x11a628(0x14a)];_0x4fafcd+=_0x2a9582[_0x11a628(0x15b)][_0x11a628(0x14a)],_0x4c9c4c+=_0x18b44b?_0x2a9582[_0x11a628(0x15b)][_0x11a628(0x14a)]:_0x755476,_0x2a9582[_0x11a628(0x155)]=_0x18b44b||!!_0x755476;}return{'resultsCount':_0x4c9c4c,'totalItemsCount':_0x4fafcd};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x16f0a1,_0xd189ca){const _0x52267d=_0x320f,_0x529b9c=_0x16f0a1();while(!![]){try{const _0xf1ff23=parseInt(_0x52267d(0x1e6))/0x1+-parseInt(_0x52267d(0x1f0))/0x2*(parseInt(_0x52267d(0x1e8))/0x3)+-parseInt(_0x52267d(0x1e3))/0x4+parseInt(_0x52267d(0x1ea))/0x5+-parseInt(_0x52267d(0x1e9))/0x6+-parseInt(_0x52267d(0x1eb))/0x7*(parseInt(_0x52267d(0x1ec))/0x8)+parseInt(_0x52267d(0x1ee))/0x9*(parseInt(_0x52267d(0x1f1))/0xa);if(_0xf1ff23===_0xd189ca)break;else _0x529b9c['push'](_0x529b9c['shift']());}catch(_0x1c4272){_0x529b9c['push'](_0x529b9c['shift']());}}}(_0x3cc6,0xa0f26));function _0x3cc6(){const _0x5bc2bd=['extendTemplate','18lxWrWE','ck-button__label','6pwmMUr','5888430xomkRL','3751996lOOypS','bindTemplate','set','1201471bBtRbe','style','46536MfaExm','3716700VcsjNQ','2079685rXmCAL','7fyuUms','4254968jEBqOy'];_0x3cc6=function(){return _0x5bc2bd;};return _0x3cc6();}function _0x320f(_0x3dbfd7,_0x1d39e9){const _0x3cc68b=_0x3cc6();return _0x320f=function(_0x320fad,_0x3de41d){_0x320fad=_0x320fad-0x1e3;let _0x19d09d=_0x3cc68b[_0x320fad];return _0x19d09d;},_0x320f(_0x3dbfd7,_0x1d39e9);}import{HighlightedTextView as _0x527a52}from'ckeditor5/src/ui.js';export default class N extends _0x527a52{constructor(){const _0x209a16=_0x320f;super(),this[_0x209a16(0x1e5)]({'style':void 0x0,'text':void 0x0,'id':void 0x0});const _0x563fbe=this[_0x209a16(0x1e4)];this[_0x209a16(0x1ed)]({'attributes':{'class':[_0x209a16(0x1ef)],'style':_0x563fbe['to'](_0x209a16(0x1e7)),'id':_0x563fbe['to']('id')}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x3255(_0xda4b02,_0x4e38a3){const _0x4413ac=_0x4413();return _0x3255=function(_0x325518,_0x246f08){_0x325518=_0x325518-0x1c4;let _0x354fae=_0x4413ac[_0x325518];return _0x354fae;},_0x3255(_0xda4b02,_0x4e38a3);}(function(_0x3ebb95,_0x38f45d){const _0x2bf4d9=_0x3255,_0x4ffa03=_0x3ebb95();while(!![]){try{const _0x56f387=parseInt(_0x2bf4d9(0x1d1))/0x1*(-parseInt(_0x2bf4d9(0x1d4))/0x2)+-parseInt(_0x2bf4d9(0x1cf))/0x3+-parseInt(_0x2bf4d9(0x1c4))/0x4+parseInt(_0x2bf4d9(0x1ce))/0x5*(parseInt(_0x2bf4d9(0x1cb))/0x6)+-parseInt(_0x2bf4d9(0x1c6))/0x7*(-parseInt(_0x2bf4d9(0x1ca))/0x8)+-parseInt(_0x2bf4d9(0x1d2))/0x9+parseInt(_0x2bf4d9(0x1c7))/0xa*(parseInt(_0x2bf4d9(0x1c5))/0xb);if(_0x56f387===_0x38f45d)break;else _0x4ffa03['push'](_0x4ffa03['shift']());}catch(_0x5afc97){_0x4ffa03['push'](_0x4ffa03['shift']());}}}(_0x4413,0x51ea4));import{HighlightedTextView as _0x40a795}from'ckeditor5/src/ui.js';import{uid as _0x26557f}from'ckeditor5/src/utils.js';function _0x4413(){const _0x4b3511=['102702TViplR','ck-label','128NJqEIU','1655703QNCFTo','for','5314uVLYbh','2193676ZvxmFa','22fXDyXn','305298Yzubjq','5059730ipwdJe','extendTemplate','ck-editor__label_','40bKQsIG','1273344WLrgHL','set','bindTemplate','5lqLwJS'];_0x4413=function(){return _0x4b3511;};return _0x4413();}export default class S extends _0x40a795{constructor(){const _0x185e84=_0x3255;super(),this[_0x185e84(0x1cc)](_0x185e84(0x1d3),void 0x0);const _0x1e55db=this[_0x185e84(0x1cd)];this['id']=_0x185e84(0x1c9)+_0x26557f(),this[_0x185e84(0x1c8)]({'attributes':{'class':['ck',_0x185e84(0x1d0)],'id':this['id'],'for':_0x1e55db['to'](_0x185e84(0x1d3))}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x19fb(_0x433e18,_0x3c5f20){const _0x25a6fe=_0x25a6();return _0x19fb=function(_0x19fb8e,_0x209ebb){_0x19fb8e=_0x19fb8e-0x13f;let _0x2da754=_0x25a6fe[_0x19fb8e];return _0x2da754;},_0x19fb(_0x433e18,_0x3c5f20);}const _0x5ad13a=_0x19fb;(function(_0x11b7df,_0x33a677){const _0x337c48=_0x19fb,_0x265b5c=_0x11b7df();while(!![]){try{const _0x4c65d2=parseInt(_0x337c48(0x17e))/0x1*(-parseInt(_0x337c48(0x146))/0x2)+parseInt(_0x337c48(0x17a))/0x3+-parseInt(_0x337c48(0x186))/0x4+parseInt(_0x337c48(0x181))/0x5*(parseInt(_0x337c48(0x14d))/0x6)+parseInt(_0x337c48(0x191))/0x7*(-parseInt(_0x337c48(0x163))/0x8)+-parseInt(_0x337c48(0x177))/0x9*(-parseInt(_0x337c48(0x148))/0xa)+parseInt(_0x337c48(0x195))/0xb;if(_0x4c65d2===_0x33a677)break;else _0x265b5c['push'](_0x265b5c['shift']());}catch(_0x409b31){_0x265b5c['push'](_0x265b5c['shift']());}}}(_0x25a6,0xcee18));function _0x25a6(){const _0x3a107f=['ck-ai-form__content-field','isProcessing','ClipboardItem','change:value','2FRgfyE','setStartAfter','10YfKkpb','check','.ck-ai-form__loader','appendLoader','ck-hidden','6AGIfho','change:isProcessing','bind','text/html','execCommand','icon','ck-ai-form__content-area--processing','-9999px','text/plain','AI\x20is\x20writing...','render','scrollHeight','isVisible','div','value','ck-ai-form__copy-button','smooth','createRange','bindTemplate','ck-ai-form__content-area-wrapper','_copyHTMLToClipboard','clipboard','248qkwmyL','firstElementChild','copy','_createCopyButton','mousedown','absolute','lastElementChild','ck-reset_all-excluded','wheel','querySelector','innerHTML','body','copyButtonView','locale','setTemplate','appendChild','<span>[</span>','addRange','position','style','11366379heOTzE','removeAllRanges','write','4456674FbdBFE','ck-content','ck-ai-form__copy-button-wrapper','contentFieldView','1112101tlQGYS','createElement','\x20ck-ai-form__copy-button--copied','4064345KIMIxe','getSelection','textContent','remove','left','1253256TUquWE','loaderView','ck-ai-form__loader','_createLoader','class','focus','execute','<span>]</span>','element','isEnabled','ck-ai-form__content-area','299411XOQBQX','listenTo','Copy','setEndBefore','411444XgAUtu','set','setContent','scrollTo'];_0x25a6=function(){return _0x3a107f;};return _0x25a6();}import{global as _0x217932}from'ckeditor5/src/utils.js';import{View as _0x27d7b9,ButtonView as _0x3602e4,SpinnerView as _0x11cd39}from'ckeditor5/src/ui.js';import _0x331cdb from'../../../theme/icons/copy.svg';import{getTranslation as _0x415662}from'../../utils/common-translations.js';import{icons as _0x19ba16}from'ckeditor5/src/core.js';export default class nt extends _0x27d7b9{constructor(_0x3d11e0,_0xaabf99=''){const _0x14e5c3=_0x19fb;super(_0x3d11e0),this[_0x14e5c3(0x13f)]({'value':null,'isVisible':!0x1,'isProcessing':!0x1});const _0x1cd750=this[_0x14e5c3(0x15f)];this[_0x14e5c3(0x17d)]=new ContentFieldView(_0x3d11e0,_0xaabf99),this[_0x14e5c3(0x16f)]=this[_0x14e5c3(0x166)](),this[_0x14e5c3(0x171)]({'tag':_0x14e5c3(0x15a),'attributes':{'class':['ck',_0x14e5c3(0x160),_0x1cd750['if'](_0x14e5c3(0x159),_0x14e5c3(0x14c),_0x356bb0=>!_0x356bb0)],'tabindex':'-1'},'children':[{'tag':_0x14e5c3(0x15a),'attributes':{'class':['ck',_0x14e5c3(0x190),_0x1cd750['if'](_0x14e5c3(0x143),_0x14e5c3(0x153))]},'children':[this[_0x14e5c3(0x17d)],{'tag':_0x14e5c3(0x15a),'attributes':{'class':['ck',_0x14e5c3(0x17c)]},'children':[this[_0x14e5c3(0x16f)]]}]}]});}[_0x5ad13a(0x157)](){const _0x2d80f2=_0x5ad13a;super[_0x2d80f2(0x157)](),this[_0x2d80f2(0x15b)]&&this[_0x2d80f2(0x17d)][_0x2d80f2(0x140)](this[_0x2d80f2(0x15b)]);let _0x54f797=!0x1;this['on'](_0x2d80f2(0x145),(_0x21140f,_0x481131,_0x3e8753)=>{const _0x53def5=_0x2d80f2,_0x2cc0e5=!this[_0x53def5(0x17d)][_0x53def5(0x18e)][_0x53def5(0x16c)](_0x53def5(0x14a));this[_0x53def5(0x17d)][_0x53def5(0x140)](_0x3e8753),this[_0x53def5(0x143)]&&_0x2cc0e5&&!_0x54f797&&this[_0x53def5(0x18e)][_0x53def5(0x141)]({'top':this[_0x53def5(0x18e)][_0x53def5(0x158)],'behavior':_0x53def5(0x15d)});}),this['on'](_0x2d80f2(0x14e),(_0x1e2070,_0x479e6f,_0x12cece)=>{const _0x257042=_0x2d80f2;_0x54f797=!0x1,_0x12cece?(this[_0x257042(0x15b)]=null,this[_0x257042(0x17d)][_0x257042(0x14b)]()):this[_0x257042(0x15b)]||this[_0x257042(0x17d)][_0x257042(0x140)]('');}),this[_0x2d80f2(0x192)](this[_0x2d80f2(0x18e)],_0x2d80f2(0x16b),()=>{_0x54f797=!0x0;}),this[_0x2d80f2(0x192)](this[_0x2d80f2(0x18e)],_0x2d80f2(0x167),()=>{_0x54f797=!0x0;});}[_0x5ad13a(0x18b)](){const _0x2ccc2a=_0x5ad13a;this[_0x2ccc2a(0x18e)][_0x2ccc2a(0x18b)]();}[_0x5ad13a(0x166)](){const _0xbc8fa8=_0x5ad13a,_0x46d5f7=this[_0xbc8fa8(0x170)],_0x2ede18=new _0x3602e4(this[_0xbc8fa8(0x170)]),_0x4ccaaa=_0xbc8fa8(0x15c);return _0x2ede18[_0xbc8fa8(0x13f)]({'label':_0x415662(_0x46d5f7,_0xbc8fa8(0x193)),'icon':_0x331cdb,'class':_0x4ccaaa,'tooltip':!0x0}),_0x2ede18[_0xbc8fa8(0x14f)](_0xbc8fa8(0x159))['to'](this,_0xbc8fa8(0x15b),_0x35627c=>!!_0x35627c),_0x2ede18[_0xbc8fa8(0x14f)](_0xbc8fa8(0x18f))['to'](this,_0xbc8fa8(0x143),_0x2bfe3b=>!_0x2bfe3b),_0x2ede18['on'](_0xbc8fa8(0x18c),()=>{const _0x1a33e5=_0xbc8fa8;this[_0x1a33e5(0x161)](this[_0x1a33e5(0x17d)][_0x1a33e5(0x18e)]),_0x2ede18[_0x1a33e5(0x152)]=_0x19ba16[_0x1a33e5(0x149)],_0x2ede18[_0x1a33e5(0x18a)]=_0x4ccaaa+_0x1a33e5(0x180),this[_0x1a33e5(0x18b)](),setTimeout(()=>{const _0x27651b=_0x1a33e5;_0x2ede18[_0x27651b(0x152)]=_0x331cdb,_0x2ede18[_0x27651b(0x18a)]=_0x4ccaaa;},0x3e8);}),_0x2ede18;}[_0x5ad13a(0x161)](_0xd6119f){const _0x3415dc=_0x5ad13a,{window:_0x518779,document:_0x3aea44}=_0x217932;if(_0x518779[_0x3415dc(0x144)]){const {Blob:_0x664617,ClipboardItem:_0x26e89b}=_0x518779,_0x2b0dfc=[new _0x26e89b({'text/html':new _0x664617([_0xd6119f[_0x3415dc(0x16d)]],{'type':_0x3415dc(0x150)}),'text/plain':new _0x664617([_0xd6119f[_0x3415dc(0x183)]||''],{'type':_0x3415dc(0x155)})})];navigator[_0x3415dc(0x162)][_0x3415dc(0x179)](_0x2b0dfc);}else{const _0x2f6bc6=_0x3aea44[_0x3415dc(0x17f)](_0x3415dc(0x15a));_0x2f6bc6[_0x3415dc(0x176)][_0x3415dc(0x175)]=_0x3415dc(0x168),_0x2f6bc6[_0x3415dc(0x176)][_0x3415dc(0x185)]=_0x3415dc(0x154),_0x2f6bc6[_0x3415dc(0x16d)]=_0x3415dc(0x173)+_0xd6119f[_0x3415dc(0x16d)]+_0x3415dc(0x18d),_0x3aea44[_0x3415dc(0x16e)][_0x3415dc(0x172)](_0x2f6bc6);const _0x4584b9=_0x3aea44[_0x3415dc(0x15e)]();_0x4584b9[_0x3415dc(0x147)](_0x2f6bc6[_0x3415dc(0x164)]),_0x4584b9[_0x3415dc(0x194)](_0x2f6bc6[_0x3415dc(0x169)]);const _0x1e3a95=_0x518779[_0x3415dc(0x182)]();_0x1e3a95[_0x3415dc(0x178)](),_0x1e3a95[_0x3415dc(0x174)](_0x4584b9),_0x3aea44[_0x3415dc(0x151)](_0x3415dc(0x165)),_0x2f6bc6[_0x3415dc(0x184)]();}}}export class ContentFieldView extends _0x27d7b9{constructor(_0x22fa8e,_0x636003=''){const _0x7945c5=_0x5ad13a;super(_0x22fa8e),this[_0x7945c5(0x187)]=this[_0x7945c5(0x189)](),this[_0x7945c5(0x171)]({'tag':_0x7945c5(0x15a),'attributes':{'class':['ck',_0x7945c5(0x17b),_0x636003,_0x7945c5(0x16a),_0x7945c5(0x142)]}});}[_0x5ad13a(0x140)](_0x574b98){const _0x476d4=_0x5ad13a;this[_0x476d4(0x18e)][_0x476d4(0x16d)]=_0x574b98;}[_0x5ad13a(0x14b)](){const _0x165ce6=_0x5ad13a;this[_0x165ce6(0x18e)][_0x165ce6(0x172)](this[_0x165ce6(0x187)][_0x165ce6(0x18e)]);}[_0x5ad13a(0x189)](){const _0x229a1b=_0x5ad13a,_0x69ce1e=new _0x27d7b9(),_0x146ded=this[_0x229a1b(0x170)],_0x45f203=new _0x11cd39();return _0x45f203[_0x229a1b(0x159)]=!0x0,_0x69ce1e[_0x229a1b(0x171)]({'tag':_0x229a1b(0x15a),'attributes':{'class':['ck',_0x229a1b(0x188)]},'children':[_0x45f203,{'text':_0x415662(_0x146ded,_0x229a1b(0x156))}]}),_0x69ce1e[_0x229a1b(0x157)](),_0x69ce1e;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x218c42,_0x2a1145){const _0x3cd096=_0x2300,_0x5e227f=_0x218c42();while(!![]){try{const _0x2a5f60=-parseInt(_0x3cd096(0x1e0))/0x1*(-parseInt(_0x3cd096(0x1e9))/0x2)+parseInt(_0x3cd096(0x1d8))/0x3*(-parseInt(_0x3cd096(0x1dd))/0x4)+parseInt(_0x3cd096(0x1e1))/0x5*(parseInt(_0x3cd096(0x1e8))/0x6)+-parseInt(_0x3cd096(0x1e6))/0x7*(parseInt(_0x3cd096(0x1dc))/0x8)+-parseInt(_0x3cd096(0x1ea))/0x9+parseInt(_0x3cd096(0x1e4))/0xa*(-parseInt(_0x3cd096(0x1da))/0xb)+parseInt(_0x3cd096(0x1e3))/0xc;if(_0x2a5f60===_0x2a1145)break;else _0x5e227f['push'](_0x5e227f['shift']());}catch(_0x1df300){_0x5e227f['push'](_0x5e227f['shift']());}}}(_0x2376,0x33c17));function _0x2376(){const _0x53137e=['8887080zaiQoF','410EIqxmI','set','77987sWXWpY','content','42dFKZCv','2uhfUUn','2606751OtOpRq','99669JzsCcA','ck-ai-form__error','93291EzhSTB','div','304CsdVVk','8IDEZSy','bindTemplate','text','334602hFDvIS','188545SJccSL','setTemplate'];_0x2376=function(){return _0x53137e;};return _0x2376();}import{View as _0x47e47b,IconView as _0x3d0b3c}from'ckeditor5/src/ui.js';function _0x2300(_0x54065d,_0x39ba64){const _0x2376d1=_0x2376();return _0x2300=function(_0x23007a,_0xf3d6a9){_0x23007a=_0x23007a-0x1d8;let _0x375a4f=_0x2376d1[_0x23007a];return _0x375a4f;},_0x2300(_0x54065d,_0x39ba64);}import _0x449622 from'../../../theme/icons/error.svg';export default class mt extends _0x47e47b{constructor(_0x291396,_0x41b1d3=''){const _0x770999=_0x2300;super(_0x291396);const _0x7c5e8=new _0x3d0b3c(),_0x510941=this[_0x770999(0x1de)];this[_0x770999(0x1e5)](_0x770999(0x1df),_0x41b1d3),_0x7c5e8[_0x770999(0x1e7)]=_0x449622,this[_0x770999(0x1e2)]({'tag':_0x770999(0x1db),'attributes':{'class':['ck',_0x770999(0x1d9)]},'children':[_0x7c5e8,{'text':_0x510941['to'](_0x770999(0x1df))}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1d9fee=_0x4e7a;(function(_0x54ba43,_0x94a323){const _0x1b2817=_0x4e7a,_0x1db2a2=_0x54ba43();while(!![]){try{const _0x37a91f=-parseInt(_0x1b2817(0xe0))/0x1*(-parseInt(_0x1b2817(0xcb))/0x2)+parseInt(_0x1b2817(0xf6))/0x3+parseInt(_0x1b2817(0xbe))/0x4*(parseInt(_0x1b2817(0xde))/0x5)+parseInt(_0x1b2817(0xf0))/0x6*(parseInt(_0x1b2817(0xe7))/0x7)+-parseInt(_0x1b2817(0xd8))/0x8+-parseInt(_0x1b2817(0xec))/0x9+-parseInt(_0x1b2817(0xbc))/0xa;if(_0x37a91f===_0x94a323)break;else _0x1db2a2['push'](_0x1db2a2['shift']());}catch(_0x10c0d5){_0x1db2a2['push'](_0x1db2a2['shift']());}}}(_0x2b5f,0x740f9));function _0x2b5f(){const _0x1c10ba=['isEmpty','475307xSZkMM','maxRows','_createSubmitButton','Submit','showHistoryButtonView','3503448knFgjE','left','queryView','target','78oRhqsZ','focusCycler','filteredView','uiLanguageDirection','value','submitButtonView','1241805IpmGTi','6276190WJqhGn','focusFirst','196468IPQwoM','excludeScrollbarsAndBorders','locale','children','isOn','width','isVisible','set','right','execute','ck-ai-form__toggle-history','style','isEnabled','104204mAxZrv','minRows','ck-ai-form__submit','focus','focusLast','element','window','bind','enter','fieldWrapperChildren','fire','keystrokes','rtl','1328808nJcXrO','submit','update','History','render','history','5FrYZdB','focusableChildren','6SzjazU','fieldView','add','requestAnimationFrame','resultsView','_createShowHistoryButton'];_0x2b5f=function(){return _0x1c10ba;};return _0x2b5f();}function _0x4e7a(_0x57497f,_0x339b54){const _0x2b5fb2=_0x2b5f();return _0x4e7a=function(_0x4e7a4f,_0xc20ff2){_0x4e7a4f=_0x4e7a4f-0xbc;let _0x17b9a8=_0x2b5fb2[_0x4e7a4f];return _0x17b9a8;},_0x4e7a(_0x57497f,_0x339b54);}import{Rect as _0xce13f6,global as _0x42bad8,isVisible as _0x2884f1}from'ckeditor5/src/utils.js';import{AutocompleteView as _0x463c19,ButtonView as _0x56e04a}from'ckeditor5/src/ui.js';import{icons as _0x1212cb}from'ckeditor5/src/core.js';import{getTranslation as _0x110037}from'../../utils/common-translations.js';import _0x4e68fc from'../../../theme/icons/submit.svg';export default class pt extends _0x463c19{constructor(_0x47a20e,_0x47e51d){const _0xea49b1=_0x4e7a;super(_0x47a20e,_0x47e51d),this[_0xea49b1(0xee)][_0xea49b1(0xe1)][_0xea49b1(0xcc)]=0x1,this[_0xea49b1(0xee)][_0xea49b1(0xe1)][_0xea49b1(0xe8)]=0x3,this[_0xea49b1(0xf5)]=this[_0xea49b1(0xe9)](),this[_0xea49b1(0xeb)]=this[_0xea49b1(0xe5)](),this[_0xea49b1(0xdf)][_0xea49b1(0xe2)](this[_0xea49b1(0xeb)],0x1),this[_0xea49b1(0xdf)][_0xea49b1(0xe2)](this[_0xea49b1(0xf5)]);}[_0x1d9fee(0xdc)](){const _0x1c34f7=_0x1d9fee;super[_0x1c34f7(0xdc)](),this[_0x1c34f7(0xee)][_0x1c34f7(0xd4)][_0x1c34f7(0xe2)](this[_0x1c34f7(0xeb)]),this[_0x1c34f7(0xc1)][_0x1c34f7(0xe2)](this[_0x1c34f7(0xf5)]),this[_0x1c34f7(0xd6)][_0x1c34f7(0xc5)](_0x1c34f7(0xd3),(_0xd59fa9,_0xd1f62c)=>{const _0xa3fd1b=_0x1c34f7;_0xd59fa9[_0xa3fd1b(0xef)]==this[_0xa3fd1b(0xee)][_0xa3fd1b(0xe1)][_0xa3fd1b(0xd0)]&&(this[_0xa3fd1b(0xd9)](),_0xd1f62c());});}[_0x1d9fee(0xe9)](){const _0x3e518f=_0x1d9fee,_0x190e74=new _0x56e04a(this[_0x3e518f(0xc0)]),_0x388d8c=this[_0x3e518f(0xc0)];return _0x190e74[_0x3e518f(0xc5)]({'icon':_0x4e68fc,'label':_0x110037(_0x388d8c,_0x3e518f(0xea)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x3e518f(0xcd)}),_0x190e74['on'](_0x3e518f(0xc7),()=>{const _0x1ae234=_0x3e518f;this[_0x1ae234(0xd9)]();}),_0x190e74[_0x3e518f(0xd2)](_0x3e518f(0xca))['to'](this[_0x3e518f(0xee)][_0x3e518f(0xe1)],_0x3e518f(0xe6),this,_0x3e518f(0xca),(_0x9587a9,_0x5e3c3c)=>!_0x9587a9&&_0x5e3c3c),_0x190e74;}[_0x1d9fee(0xe5)](){const _0xb64e4f=_0x1d9fee,_0x291fa9=new _0x56e04a(this[_0xb64e4f(0xc0)]),_0xc87c6f=this[_0xb64e4f(0xe4)],_0x303a2e=this[_0xb64e4f(0xc0)];_0x291fa9[_0xb64e4f(0xc5)]({'label':_0x110037(_0x303a2e,_0xb64e4f(0xdb)),'withText':!0x1,'icon':_0x1212cb[_0xb64e4f(0xdd)],'tooltip':!0x0,'tooltipPosition':'sw','class':_0xb64e4f(0xc8)}),_0x291fa9[_0xb64e4f(0xd2)](_0xb64e4f(0xc2))['to'](_0xc87c6f,_0xb64e4f(0xc4)),_0x291fa9[_0xb64e4f(0xd2)](_0xb64e4f(0xca))['to'](this,_0xb64e4f(0xca)),_0x291fa9['on'](_0xb64e4f(0xc7),()=>{const _0x4e1095=_0xb64e4f;_0xc87c6f[_0x4e1095(0xc4)]=!_0xc87c6f[_0x4e1095(0xc4)],_0xc87c6f[_0x4e1095(0xc4)]?this[_0x4e1095(0xf2)][_0x4e1095(0xce)]():this[_0x4e1095(0xce)]();});const _0x1191b3=()=>{const _0x2b8455=_0xb64e4f;_0x42bad8[_0x2b8455(0xd1)][_0x2b8455(0xe3)](()=>{const _0x2d9f69=_0x2b8455;if(_0x2884f1(this[_0x2d9f69(0xd0)])){const _0x3e66d4=new _0xce13f6(this[_0x2d9f69(0xee)][_0x2d9f69(0xe1)][_0x2d9f69(0xd0)]),_0x5d6b58=_0x3e66d4[_0x2d9f69(0xc3)],_0xbfd601=_0x2d9f69(0xd7)===_0x303a2e[_0x2d9f69(0xf3)]?_0x2d9f69(0xed):_0x2d9f69(0xc6);_0x3e66d4[_0x2d9f69(0xbf)](),_0x291fa9[_0x2d9f69(0xd0)][_0x2d9f69(0xc9)][_0xbfd601]=_0x5d6b58-_0x3e66d4[_0x2d9f69(0xc3)]+0x1+'px';}});};return this[_0xb64e4f(0xee)][_0xb64e4f(0xe1)]['on'](_0xb64e4f(0xda),_0x1191b3),this['on'](_0xb64e4f(0xdc),_0x1191b3),_0x291fa9;}[_0x1d9fee(0xd9)](){const _0x536c5b=_0x1d9fee,_0x2debc6=this[_0x536c5b(0xee)][_0x536c5b(0xe1)][_0x536c5b(0xd0)][_0x536c5b(0xf4)];this[_0x536c5b(0xd5)](_0x536c5b(0xd9),_0x2debc6);}[_0x1d9fee(0xce)](_0x3489d3){const _0x1a38cf=_0x1d9fee;-0x1===_0x3489d3?this[_0x1a38cf(0xf1)][_0x1a38cf(0xcf)]():this[_0x1a38cf(0xf1)][_0x1a38cf(0xbd)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4c1e0a=_0x85ce;(function(_0x58f971,_0x168be3){const _0x298ee5=_0x85ce,_0x11e4aa=_0x58f971();while(!![]){try{const _0x1f21b2=-parseInt(_0x298ee5(0x14e))/0x1+parseInt(_0x298ee5(0x157))/0x2+parseInt(_0x298ee5(0x159))/0x3+parseInt(_0x298ee5(0x145))/0x4*(-parseInt(_0x298ee5(0x14d))/0x5)+parseInt(_0x298ee5(0x144))/0x6+parseInt(_0x298ee5(0x158))/0x7+-parseInt(_0x298ee5(0x13f))/0x8;if(_0x1f21b2===_0x168be3)break;else _0x11e4aa['push'](_0x11e4aa['shift']());}catch(_0x407a2f){_0x11e4aa['push'](_0x11e4aa['shift']());}}}(_0x5886,0x6f839));function _0x5886(){const _0x55dc47=['ck-button-action','12952760eeKknY','items','Try\x20again','addMany','replaceButton','3394080oRcgDl','137420RIxWRb','mainAction','stopButton','toUpperCase','insertButton','bind','replace','locale','15RbgTIW','479339pHexLO','set','Stop','insert','bindTemplate','extendTemplate','label','REPLACE','AI_','1282446TnmjSg','5266968Opqrza','2096799AWAxgf','_CONTENT','isVisible','_createButton','ck-hidden','ck-ai-form__toolbar','tryAgainButton','Insert\x20below'];_0x5886=function(){return _0x55dc47;};return _0x5886();}import{ToolbarView as _0x388689,ButtonView as _0x1f69e1}from'ckeditor5/src/ui.js';import{getTranslation as _0x1d7425}from'../../utils/common-translations.js';function _0x85ce(_0x504aaa,_0x3f8ad1){const _0x5886d6=_0x5886();return _0x85ce=function(_0x85ce93,_0x155227){_0x85ce93=_0x85ce93-0x137;let _0x22c1f1=_0x5886d6[_0x85ce93];return _0x22c1f1;},_0x85ce(_0x504aaa,_0x3f8ad1);}export const AIFormToolbarViewMainActionLabel={'REPLACE':_0x4c1e0a(0x14b),'INSERT':_0x4c1e0a(0x151)};export default class Tt extends _0x388689{constructor(_0x3c41a5){const _0x106622=_0x4c1e0a;super(_0x3c41a5),this[_0x106622(0x14f)](_0x106622(0x138),!0x1),this[_0x106622(0x14f)](_0x106622(0x146),AIFormToolbarViewMainActionLabel[_0x106622(0x155)]),this[_0x106622(0x143)]=this[_0x106622(0x139)]('',_0x106622(0x13e)),this[_0x106622(0x143)][_0x106622(0x14a)](_0x106622(0x154))['to'](this,_0x106622(0x146),_0x220f87=>_0x1d7425(_0x3c41a5,_0x106622(0x156)+_0x220f87[_0x106622(0x148)]()+_0x106622(0x137))),this[_0x106622(0x149)]=this[_0x106622(0x139)](_0x1d7425(_0x3c41a5,_0x106622(0x13d))),this[_0x106622(0x13c)]=this[_0x106622(0x139)](_0x1d7425(_0x3c41a5,_0x106622(0x141))),this[_0x106622(0x147)]=this[_0x106622(0x139)](_0x1d7425(_0x3c41a5,_0x106622(0x150)));const _0x2bf989=this[_0x106622(0x152)];this[_0x106622(0x153)]({'attributes':{'class':[_0x106622(0x13b),_0x2bf989['if'](_0x106622(0x138),_0x106622(0x13a),_0x2730f3=>!_0x2730f3)]}}),this[_0x106622(0x140)][_0x106622(0x142)]([this[_0x106622(0x143)],this[_0x106622(0x149)],this[_0x106622(0x13c)],this[_0x106622(0x147)]]);}[_0x4c1e0a(0x139)](_0x1f3d12,_0x156787){const _0x2fddee=_0x4c1e0a,_0xef947f=new _0x1f69e1(this[_0x2fddee(0x14c)]);return _0xef947f[_0x2fddee(0x14f)]({'label':_0x1f3d12,'class':_0x156787||'','isVisible':!0x0,'withText':!0x0}),_0xef947f;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x53f84b=_0x13af;(function(_0x21f677,_0x5a41f8){const _0x15061c=_0x13af,_0x1bf4d4=_0x21f677();while(!![]){try{const _0x15c8c6=parseInt(_0x15061c(0x205))/0x1*(-parseInt(_0x15061c(0x20d))/0x2)+-parseInt(_0x15061c(0x215))/0x3*(-parseInt(_0x15061c(0x20a))/0x4)+-parseInt(_0x15061c(0x228))/0x5*(-parseInt(_0x15061c(0x238))/0x6)+parseInt(_0x15061c(0x1ee))/0x7*(parseInt(_0x15061c(0x20f))/0x8)+-parseInt(_0x15061c(0x217))/0x9*(parseInt(_0x15061c(0x1ff))/0xa)+parseInt(_0x15061c(0x242))/0xb*(parseInt(_0x15061c(0x1fa))/0xc)+-parseInt(_0x15061c(0x1fc))/0xd;if(_0x15c8c6===_0x5a41f8)break;else _0x1bf4d4['push'](_0x1bf4d4['shift']());}catch(_0x2b4561){_0x1bf4d4['push'](_0x1bf4d4['shift']());}}}(_0x1c00,0xf26c2));import{FocusTracker as _0x40ad21,KeystrokeHandler as _0x193e7b}from'ckeditor5/src/utils.js';function _0x1c00(){const _0x2a0784=['16JoCIoG','bindTo','promptView','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','submit','search','2798892xRVQeO','contentArea','279hkiVwi','set','submitPrompt','_createPromptView','_promptHistory','startProcessing','value','historyGroupView','clearHistory','tryAgainButton','items','stop','stopProcessing','isVisible','_createHistoryView','add','toolbar','5EMnzOW','isError','clear','_createToolbar','copyButtonView','focusNext','high','Empty\x20history','focusPrevious','prompt','bindTemplate','tab','element','render','isProcessing','createCollection','6388638hsnYKo','shift\x20+\x20tab','fieldView','focusLast','Ask\x20AI\x20to\x20improve\x20generated\x20text','forwardCycle','handleError','bind','trim','focusTracker','173107gpjaIw','ck-ai-form','focusFirst','text','REPLACE','queryView','insertContentBelow','isEnabled','3335031sueJwl','replaceContent','AI_ERROR_FAILED','_focusables','errorView','label','replaceButton','insertButton','backwardCycle','div','reset','ck-hidden','828BXekgW','setTemplate','13518596HUFjJA','finishProcessing','tryAgainEvent','442750MzYajn','Ask\x20AI\x20to\x20edit\x20or\x20generate','focusCycler','delegate','keystrokes','listenTo','631077XKknCs','stopButton','ck-ai-form-content','fire','execute','4nlmPXS','locale','focus','2QVvWqy','mainAction'];_0x1c00=function(){return _0x2a0784;};return _0x1c00();}import{View as _0x27e8d3,FocusCycler as _0x4104f1,createLabeledTextarea as _0x446fa6}from'ckeditor5/src/ui.js';import _0x7f196b,{AIFormToolbarViewMainActionLabel as _0x6940dd}from'./aiformtoolbarview.js';import _0xe4ec4f from'./aiformcontentarea.js';import _0x2aff45 from'./aiformerrorview.js';function _0x13af(_0x285f70,_0x5bf00f){const _0x1c00bf=_0x1c00();return _0x13af=function(_0x13af67,_0x54b7e0){_0x13af67=_0x13af67-0x1ec;let _0x40a6c7=_0x1c00bf[_0x13af67];return _0x40a6c7;},_0x13af(_0x285f70,_0x5bf00f);}import _0xccbcff from'./aiformpromptview.js';import _0x28fa20 from'./aihistorylistview.js';import _0x173f94 from'./aihistorylistitemview.js';import _0x110a56 from'./prompthistory.js';import{getTranslation as _0x557f72}from'../../utils/common-translations.js';import{escape as _0x26041b}from'lodash-es';export default class x extends _0x27e8d3{constructor(_0x4a6de2,_0x34d3f4,_0x57b0c8=''){const _0x44710e=_0x13af;super(_0x4a6de2),this[_0x44710e(0x218)](_0x44710e(0x1ed),!0x0),this[_0x44710e(0x218)](_0x44710e(0x236),!0x1),this[_0x44710e(0x218)](_0x44710e(0x231),''),this[_0x44710e(0x218)](_0x44710e(0x21d),''),this[_0x44710e(0x218)](_0x44710e(0x229),!0x1),this[_0x44710e(0x218)](_0x44710e(0x20e),_0x6940dd[_0x44710e(0x246)]),this[_0x44710e(0x21b)]=new _0x110a56(),this[_0x44710e(0x1f2)]=new _0x2aff45(_0x4a6de2),this[_0x44710e(0x216)]=new _0xe4ec4f(_0x4a6de2,_0x57b0c8),this[_0x44710e(0x216)][_0x44710e(0x23f)](_0x44710e(0x236))['to'](this),this[_0x44710e(0x216)][_0x44710e(0x23f)](_0x44710e(0x21d))['to'](this),this[_0x44710e(0x227)]=this[_0x44710e(0x22b)](),this[_0x44710e(0x227)][_0x44710e(0x23f)](_0x44710e(0x20e))['to'](this),this[_0x44710e(0x211)]=this[_0x44710e(0x21a)](),this[_0x44710e(0x241)]=new _0x40ad21(),this[_0x44710e(0x203)]=new _0x193e7b(),this[_0x44710e(0x1f1)]=this[_0x44710e(0x237)]([this[_0x44710e(0x216)],this[_0x44710e(0x216)][_0x44710e(0x22c)],this[_0x44710e(0x227)],this[_0x44710e(0x211)]]),this[_0x44710e(0x201)]=new _0x4104f1({'focusables':this[_0x44710e(0x1f1)],'focusTracker':this[_0x44710e(0x241)],'keystrokeHandler':this[_0x44710e(0x203)],'actions':{'focusPrevious':_0x44710e(0x239),'focusNext':_0x44710e(0x233)}}),this[_0x44710e(0x211)][_0x44710e(0x201)]['on'](_0x44710e(0x23d),_0xe21e34=>{const _0x3e7ab8=_0x44710e;this[_0x3e7ab8(0x201)][_0x3e7ab8(0x22d)](),_0xe21e34[_0x3e7ab8(0x222)]();}),this[_0x44710e(0x211)][_0x44710e(0x201)]['on'](_0x44710e(0x1f6),_0x239f2e=>{const _0x325611=_0x44710e;this[_0x325611(0x201)][_0x325611(0x230)](),_0x239f2e[_0x325611(0x222)]();}),this[_0x44710e(0x211)][_0x44710e(0x247)][_0x44710e(0x23a)][_0x44710e(0x23f)](_0x44710e(0x21d))['to'](this,_0x44710e(0x231));const _0x40bb66=this[_0x44710e(0x232)];this[_0x44710e(0x1fb)]({'tag':_0x44710e(0x1f7),'attributes':{'class':['ck',_0x44710e(0x243),_0x34d3f4],'tabindex':'-1'},'children':[{'tag':_0x44710e(0x1f7),'attributes':{'class':['ck',_0x44710e(0x207)]},'children':[{'tag':_0x44710e(0x1f7),'attributes':{'class':[_0x40bb66['if'](_0x44710e(0x229),_0x44710e(0x1f9),_0x17259e=>!_0x17259e)]},'children':[this[_0x44710e(0x1f2)]]},this[_0x44710e(0x216)],this[_0x44710e(0x227)],this[_0x44710e(0x211)]]}]});}[_0x53f84b(0x235)](){const _0x254d71=_0x53f84b;super[_0x254d71(0x235)](),this[_0x254d71(0x241)][_0x254d71(0x226)](this[_0x254d71(0x216)][_0x254d71(0x234)]),this[_0x254d71(0x241)][_0x254d71(0x226)](this[_0x254d71(0x216)][_0x254d71(0x22c)][_0x254d71(0x234)]),this[_0x254d71(0x241)][_0x254d71(0x226)](this[_0x254d71(0x227)][_0x254d71(0x234)]),this[_0x254d71(0x241)][_0x254d71(0x226)](this[_0x254d71(0x211)][_0x254d71(0x234)]),this[_0x254d71(0x203)][_0x254d71(0x204)](this[_0x254d71(0x234)]);}[_0x53f84b(0x20c)](_0x46042c=0x1){const _0x491999=_0x53f84b;-0x1===_0x46042c?this[_0x491999(0x201)][_0x491999(0x23b)]():this[_0x491999(0x201)][_0x491999(0x244)]();}[_0x53f84b(0x1f8)](){const _0x56d47b=_0x53f84b;this[_0x56d47b(0x231)]='',this[_0x56d47b(0x21d)]='',this[_0x56d47b(0x229)]=!0x1,this[_0x56d47b(0x211)][_0x56d47b(0x1f8)](),this[_0x56d47b(0x216)][_0x56d47b(0x224)]=!0x1,this[_0x56d47b(0x227)][_0x56d47b(0x224)]=!0x1;}[_0x53f84b(0x21a)](){const _0x5d34b1=_0x53f84b,_0x4ec287=this[_0x5d34b1(0x20b)],_0x176a35=new _0xccbcff(_0x4ec287,{'queryView':{'label':_0x557f72(_0x4ec287,_0x5d34b1(0x200)),'creator':_0x446fa6,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x557f72(_0x4ec287,_0x5d34b1(0x22f)),'secondary':_0x557f72(_0x4ec287,_0x5d34b1(0x212))}}},'filteredView':this[_0x5d34b1(0x225)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x176a35[_0x5d34b1(0x23f)](_0x5d34b1(0x1ed))['to'](this,_0x5d34b1(0x1ed),this,_0x5d34b1(0x236),(_0x1fe855,_0x3666e6)=>_0x1fe855&&!_0x3666e6),this[_0x5d34b1(0x204)](_0x176a35,_0x5d34b1(0x213),(_0x101520,_0x387462)=>{const _0x57e2b4=_0x5d34b1;this[_0x57e2b4(0x231)]=_0x387462;const _0x1b446b=_0x26041b(_0x387462);this[_0x57e2b4(0x208)](_0x57e2b4(0x219),_0x1b446b),_0x387462[_0x57e2b4(0x240)]()&&this[_0x57e2b4(0x21b)][_0x57e2b4(0x226)]({'prompt':_0x1b446b},0x0);},{'priority':_0x5d34b1(0x22e)}),_0x176a35;}[_0x53f84b(0x225)](){const _0x4f76bf=_0x53f84b,_0x86cc0b=new _0x28fa20(this[_0x4f76bf(0x20b)]);return _0x86cc0b[_0x4f76bf(0x21e)][_0x4f76bf(0x221)][_0x4f76bf(0x210)](this[_0x4f76bf(0x21b)])['as'](_0x173f94),_0x86cc0b['on'](_0x4f76bf(0x21f),()=>{const _0x3f6e82=_0x4f76bf;this[_0x3f6e82(0x21b)][_0x3f6e82(0x22a)](),this[_0x3f6e82(0x211)][_0x3f6e82(0x214)](''),this[_0x3f6e82(0x211)][_0x3f6e82(0x20c)]();}),_0x86cc0b;}[_0x53f84b(0x22b)](){const _0xa41fb7=_0x53f84b,_0x7160f0=new _0x7f196b(this[_0xa41fb7(0x20b)]);return _0x7160f0[_0xa41fb7(0x1f4)][_0xa41fb7(0x23f)](_0xa41fb7(0x1ed))['to'](this,_0xa41fb7(0x1ed),this,_0xa41fb7(0x236),this,_0xa41fb7(0x21d),(_0x1916d9,_0x165fed,_0x35f760)=>_0x1916d9&&!_0x165fed&&!!_0x35f760),_0x7160f0[_0xa41fb7(0x1f4)][_0xa41fb7(0x202)](_0xa41fb7(0x209))['to'](this,_0xa41fb7(0x1ef)),_0x7160f0[_0xa41fb7(0x1f5)][_0xa41fb7(0x23f)](_0xa41fb7(0x1ed))['to'](this,_0xa41fb7(0x1ed),this,_0xa41fb7(0x236),this,_0xa41fb7(0x21d),(_0x3f0c6c,_0xf40908,_0x570075)=>_0x3f0c6c&&!_0xf40908&&!!_0x570075),_0x7160f0[_0xa41fb7(0x1f5)][_0xa41fb7(0x202)](_0xa41fb7(0x209))['to'](this,_0xa41fb7(0x1ec)),_0x7160f0[_0xa41fb7(0x220)][_0xa41fb7(0x23f)](_0xa41fb7(0x1ed))['to'](this,_0xa41fb7(0x1ed),this,_0xa41fb7(0x236),(_0x34e826,_0x48dd89)=>_0x34e826&&!_0x48dd89),_0x7160f0[_0xa41fb7(0x220)][_0xa41fb7(0x202)](_0xa41fb7(0x209))['to'](this,_0xa41fb7(0x1fe)),_0x7160f0[_0xa41fb7(0x206)][_0xa41fb7(0x23f)](_0xa41fb7(0x1ed))['to'](this,_0xa41fb7(0x236)),_0x7160f0[_0xa41fb7(0x206)][_0xa41fb7(0x202)](_0xa41fb7(0x209))['to'](this,_0xa41fb7(0x223)),_0x7160f0;}[_0x53f84b(0x21c)](){const _0x47b583=_0x53f84b;this[_0x47b583(0x21d)]='',this[_0x47b583(0x229)]=!0x1,this[_0x47b583(0x236)]=!0x0,this[_0x47b583(0x216)][_0x47b583(0x224)]=!0x0,this[_0x47b583(0x227)][_0x47b583(0x224)]=!0x0,this[_0x47b583(0x216)][_0x47b583(0x20c)]();}[_0x53f84b(0x1fd)](){const _0x1805b9=_0x53f84b,_0x552bc2=this[_0x1805b9(0x20b)];this[_0x1805b9(0x236)]=!0x1,this[_0x1805b9(0x231)]='',this[_0x1805b9(0x211)][_0x1805b9(0x1f8)](),this[_0x1805b9(0x21d)]&&(this[_0x1805b9(0x211)][_0x1805b9(0x247)][_0x1805b9(0x1f3)]=_0x557f72(_0x552bc2,_0x1805b9(0x23c)));}[_0x53f84b(0x23e)](_0x2db27c){const _0x5ce764=_0x53f84b,_0x300baa=this[_0x5ce764(0x20b)];this[_0x5ce764(0x1fd)](),this[_0x5ce764(0x229)]=!0x0,this[_0x5ce764(0x1f2)][_0x5ce764(0x245)]=_0x2db27c||_0x557f72(_0x300baa,_0x5ce764(0x1f0)),this[_0x5ce764(0x21d)]||(this[_0x5ce764(0x216)][_0x5ce764(0x224)]=!0x1);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x117e97,_0x141bed){const _0x2c5b31=_0x47ab,_0x2083f1=_0x117e97();while(!![]){try{const _0xcf6f8e=-parseInt(_0x2c5b31(0x135))/0x1*(parseInt(_0x2c5b31(0x136))/0x2)+-parseInt(_0x2c5b31(0x131))/0x3*(parseInt(_0x2c5b31(0x13c))/0x4)+-parseInt(_0x2c5b31(0x133))/0x5*(-parseInt(_0x2c5b31(0x130))/0x6)+parseInt(_0x2c5b31(0x138))/0x7*(parseInt(_0x2c5b31(0x13a))/0x8)+-parseInt(_0x2c5b31(0x12d))/0x9+parseInt(_0x2c5b31(0x12b))/0xa+parseInt(_0x2c5b31(0x137))/0xb;if(_0xcf6f8e===_0x141bed)break;else _0x2083f1['push'](_0x2083f1['shift']());}catch(_0x2940ca){_0x2083f1['push'](_0x2083f1['shift']());}}}(_0x2971,0xbf734));function _0x2971(){const _0x1aeab5=['set','40OhjBOY','execute','1012ypCNpK','8970600VUPlyp','locale','12327291shCWsV','add','prompt','77442bJCvRv','16098nftzwZ','children','5IUEBrh','fire','240769QSrBaj','8cuHdDo','34602436aXYpXu','586474ZbLsiw'];_0x2971=function(){return _0x1aeab5;};return _0x2971();}function _0x47ab(_0x85eda,_0x411d85){const _0x29713f=_0x2971();return _0x47ab=function(_0x47ab42,_0x461302){_0x47ab42=_0x47ab42-0x12b;let _0xb53b81=_0x29713f[_0x47ab42];return _0xb53b81;},_0x47ab(_0x85eda,_0x411d85);}import{ListItemView as _0xf4d31a,ButtonView as _0x36bbdf}from'ckeditor5/src/ui.js';import _0xa3e924 from'../dropdown/buttonlabelwithhighlightview.js';import{unescape as _0x3f4764}from'lodash-es';export default class hs extends _0xf4d31a{constructor(_0x4dd7fa){const _0x1a119a=_0x47ab;super();const _0x87d402=new _0xa3e924(),_0x35bd02=new _0x36bbdf(this[_0x1a119a(0x12c)],_0x87d402);this[_0x1a119a(0x132)][_0x1a119a(0x12e)](_0x35bd02),_0x35bd02[_0x1a119a(0x139)]({'label':_0x4dd7fa[_0x1a119a(0x12f)],'withText':!0x0}),_0x35bd02['on'](_0x1a119a(0x13b),()=>{const _0x456769=_0x1a119a;this[_0x456769(0x134)](_0x456769(0x13b),{'value':_0x3f4764(_0x4dd7fa[_0x456769(0x12f)])});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x211e98=_0x338c;(function(_0x588294,_0x1b0f22){const _0xb3e611=_0x338c,_0x5e1152=_0x588294();while(!![]){try{const _0x49b4e0=-parseInt(_0xb3e611(0x18c))/0x1*(-parseInt(_0xb3e611(0x18a))/0x2)+-parseInt(_0xb3e611(0x17f))/0x3+-parseInt(_0xb3e611(0x191))/0x4+parseInt(_0xb3e611(0x18f))/0x5+parseInt(_0xb3e611(0x18e))/0x6+parseInt(_0xb3e611(0x190))/0x7*(-parseInt(_0xb3e611(0x184))/0x8)+parseInt(_0xb3e611(0x193))/0x9*(-parseInt(_0xb3e611(0x197))/0xa);if(_0x49b4e0===_0x1b0f22)break;else _0x5e1152['push'](_0x5e1152['shift']());}catch(_0x1d175a){_0x5e1152['push'](_0x5e1152['shift']());}}}(_0x34d8,0x39845));function _0x34d8(){const _0x2123c7=['label','execute','items','locale','104EQYvVV','filter','add','set','Clear','length','1094yhwFiW','delegate','464CNXPJk','fire','2294262lKDQhB','1235150ONvKic','73507sMKBnI','861732cYjgWj','children','672453EjGieH','_createClearHistoryButton','clearHistoryButton','historyGroupView','10mjyzZp','clearHistory','Prompt\x20history','662889hYQQlp'];_0x34d8=function(){return _0x2123c7;};return _0x34d8();}import{ListView as _0xf428a2,ListItemGroupView as _0x433f6b,ButtonView as _0x5a9a8d}from'ckeditor5/src/ui.js';function _0x338c(_0x4aa5d6,_0x10c2c1){const _0x34d864=_0x34d8();return _0x338c=function(_0x338c58,_0x2690c7){_0x338c58=_0x338c58-0x17f;let _0x5a189c=_0x34d864[_0x338c58];return _0x5a189c;},_0x338c(_0x4aa5d6,_0x10c2c1);}import{getTranslation as _0x9f5e78}from'../../utils/common-translations.js';export default class rs extends _0xf428a2{constructor(_0x3555ce){const _0x57cd25=_0x338c;super(_0x3555ce),this[_0x57cd25(0x195)]=this[_0x57cd25(0x194)](),this[_0x57cd25(0x196)]=new _0x433f6b(),this[_0x57cd25(0x196)][_0x57cd25(0x192)][_0x57cd25(0x186)](this[_0x57cd25(0x195)],0x1),this[_0x57cd25(0x196)][_0x57cd25(0x180)]=_0x9f5e78(_0x3555ce,_0x57cd25(0x199)),this[_0x57cd25(0x196)][_0x57cd25(0x182)][_0x57cd25(0x18b)](_0x57cd25(0x181))['to'](this),this[_0x57cd25(0x182)][_0x57cd25(0x186)](this[_0x57cd25(0x196)]);}[_0x211e98(0x185)](){const _0x3ba78d=_0x211e98;let _0x3bb735=0x0;for(const _0x39b2b1 of this[_0x3ba78d(0x182)])_0x3bb735+=_0x39b2b1[_0x3ba78d(0x182)][_0x3ba78d(0x189)];return{'resultsCount':_0x3bb735,'totalItemsCount':_0x3bb735};}[_0x211e98(0x194)](){const _0xa80e6a=_0x211e98,_0x54f422=this[_0xa80e6a(0x183)],_0x1255a7=new _0x5a9a8d(this[_0xa80e6a(0x183)]);return _0x1255a7[_0xa80e6a(0x187)]({'label':'('+_0x9f5e78(_0x54f422,_0xa80e6a(0x188))+')','withText':!0x0}),_0x1255a7['on'](_0xa80e6a(0x181),()=>this[_0xa80e6a(0x18d)](_0xa80e6a(0x198))),_0x1255a7;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x5b0d(){const _0x4ef7af=['CKEditor/AIFormView/PromptHistory','_loadFromSessionStorage','18InsUAj','toLowerCase','addMany','175179knBWCe','prompt','3498gJXUAI','trim','last','8YzABNf','map','setItem','3860647pPPRIe','length','6KjUhKj','_saveToSessionStorage','9132wUFKoL','7369595mBczRV','parse','add','remove','getItem','350440woldsI','1458042lIwetK','12bGluwI','stringify','3659616bCPGZQ'];_0x5b0d=function(){return _0x4ef7af;};return _0x5b0d();}const _0x1da31a=_0x5594;(function(_0x4f6e63,_0xe512e){const _0x40844e=_0x5594,_0x18d13a=_0x4f6e63();while(!![]){try{const _0x40bb30=parseInt(_0x40844e(0x80))/0x1*(parseInt(_0x40844e(0x85))/0x2)+parseInt(_0x40844e(0x77))/0x3*(-parseInt(_0x40844e(0x78))/0x4)+parseInt(_0x40844e(0x71))/0x5*(parseInt(_0x40844e(0x6e))/0x6)+-parseInt(_0x40844e(0x88))/0x7+parseInt(_0x40844e(0x7a))/0x8+parseInt(_0x40844e(0x7d))/0x9*(parseInt(_0x40844e(0x76))/0xa)+-parseInt(_0x40844e(0x82))/0xb*(-parseInt(_0x40844e(0x70))/0xc);if(_0x40bb30===_0xe512e)break;else _0x18d13a['push'](_0x18d13a['shift']());}catch(_0x237f83){_0x18d13a['push'](_0x18d13a['shift']());}}}(_0x5b0d,0xe42d2));import{Collection as _0x190496}from'ckeditor5/src/utils.js';const cs=_0x1da31a(0x7b);export default class os extends _0x190496{constructor(){const _0x4315b0=_0x1da31a;super(),this[_0x4315b0(0x7c)](),this['on'](_0x4315b0(0x73),(_0x59f8d6,_0x1c497f)=>{const _0x3f7b48=_0x4315b0,_0x7dba33=Ss(_0x1c497f[_0x3f7b48(0x81)]);for(const _0x288d51 of this)if(_0x288d51!=_0x1c497f&&Ss(_0x288d51[_0x3f7b48(0x81)])===_0x7dba33){this[_0x3f7b48(0x74)](_0x288d51);break;}this[_0x3f7b48(0x6d)]>0x14&&this[_0x3f7b48(0x74)](this[_0x3f7b48(0x84)]),this[_0x3f7b48(0x6f)]();}),this['on'](_0x4315b0(0x74),()=>{const _0x30a7e8=_0x4315b0;this[_0x30a7e8(0x6f)]();});}[_0x1da31a(0x7c)](){const _0xaa5fa6=_0x1da31a,_0x576d51=sessionStorage[_0xaa5fa6(0x75)](cs)||'[]';this[_0xaa5fa6(0x7f)](JSON[_0xaa5fa6(0x72)](_0x576d51));}[_0x1da31a(0x6f)](){const _0x220469=_0x1da31a;sessionStorage[_0x220469(0x87)](cs,JSON[_0x220469(0x79)](this[_0x220469(0x86)](_0x1e160f=>_0x1e160f)));}}function _0x5594(_0x25c15f,_0x57df2c){const _0x5b0d1e=_0x5b0d();return _0x5594=function(_0x559495,_0x541837){_0x559495=_0x559495-0x6d;let _0x18c9cb=_0x5b0d1e[_0x559495];return _0x18c9cb;},_0x5594(_0x25c15f,_0x57df2c);}function Ss(_0xb9ab85){const _0xf1cd1a=_0x1da31a;return _0xb9ab85[_0xf1cd1a(0x7e)]()[_0xf1cd1a(0x83)]();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2cc990=_0x24da;(function(_0x26791b,_0x1be124){const _0x1dc932=_0x24da,_0x34ec2b=_0x26791b();while(!![]){try{const _0x475b80=parseInt(_0x1dc932(0xb0))/0x1+-parseInt(_0x1dc932(0xb6))/0x2+-parseInt(_0x1dc932(0xba))/0x3*(-parseInt(_0x1dc932(0xc6))/0x4)+parseInt(_0x1dc932(0xbc))/0x5*(-parseInt(_0x1dc932(0xaf))/0x6)+parseInt(_0x1dc932(0xc2))/0x7*(parseInt(_0x1dc932(0xb8))/0x8)+-parseInt(_0x1dc932(0xb2))/0x9+parseInt(_0x1dc932(0xd4))/0xa*(parseInt(_0x1dc932(0xcd))/0xb);if(_0x475b80===_0x1be124)break;else _0x34ec2b['push'](_0x34ec2b['shift']());}catch(_0x200ffd){_0x34ec2b['push'](_0x34ec2b['shift']());}}}(_0x3826,0x9e866));function _0x3826(){const _0x328721=['length','22FHgwtE','ai.aiAssistant.disabledElements','isEnabled','from','requiresContent','custom','getSelectedBlocks','4589290SddjSy','getItems','config','_hasContext','getRanges','get','editor','concat','plugins','change:isEnabled','3018hsWwJt','756459XgqEGc','add','7460100vjUiPj','reduce','change:_hasContext','name','1736216UTysxz','selection','171360qDFfng','isEmpty','24UZiiuY','enabledCommandsIds','9305ynOCdj','isCollapsed','commands','refresh','element','hasContent','147uPhkwu','showUI','_commandDefinitions','includes','579136PiuBgT','execute','set','document','model','getFirstRange'];_0x3826=function(){return _0x328721;};return _0x3826();}function _0x24da(_0xbff7bd,_0x912b38){const _0x3826fc=_0x3826();return _0x24da=function(_0x24da11,_0x844fc){_0x24da11=_0x24da11-0xad;let _0x49ca8d=_0x3826fc[_0x24da11];return _0x49ca8d;},_0x24da(_0xbff7bd,_0x912b38);}import{Command as _0xbe62ed}from'ckeditor5/src/core.js';import _0x19ab4c from'../aiassistantui.js';export default class j extends _0xbe62ed{constructor(_0x477d5e,_0x3f0f98){const _0x2c30c9=_0x24da;super(_0x477d5e),this[_0x2c30c9(0xc4)]=_0x3f0f98?_0x3f0f98[_0x2c30c9(0xb3)]((_0x53bae6,_0x327b66)=>_0x53bae6[_0x2c30c9(0xdb)](_0x327b66[_0x2c30c9(0xbe)]),new Array()):[],this[_0x2c30c9(0xc8)](_0x2c30c9(0xbb),[]),this['on'](_0x2c30c9(0xb4),(_0x1ee8c5,_0x309f16,_0x416b83)=>{const _0xa56db=_0x2c30c9;this[_0xa56db(0xcf)]&&(this[_0xa56db(0xbb)]=K(this[_0xa56db(0xc4)],_0x416b83));}),this[_0x2c30c9(0xc8)](_0x2c30c9(0xd7),!0x1),this['on'](_0x2c30c9(0xae),(_0x613d43,_0x51b494,_0x91a629)=>{const _0x3a6410=_0x2c30c9;this[_0x3a6410(0xbb)]=_0x91a629?K(this[_0x3a6410(0xc4)],this[_0x3a6410(0xd7)]):[];});}[_0x2cc990(0xbf)](){const _0x5ea12c=_0x2cc990,_0x133a2e=this[_0x5ea12c(0xda)][_0x5ea12c(0xca)];this[_0x5ea12c(0xd7)]=function(_0x5daa3c){const _0x464a5a=_0x5ea12c,_0x29d3bb=_0x5daa3c[_0x464a5a(0xc9)][_0x464a5a(0xb7)];return _0x29d3bb[_0x464a5a(0xbd)]?0x0!==[..._0x29d3bb[_0x464a5a(0xd3)]()][_0x464a5a(0xcc)]&&![..._0x29d3bb[_0x464a5a(0xd3)]()][0x0][_0x464a5a(0xb9)]:!!_0x5daa3c[_0x464a5a(0xc1)](_0x29d3bb[_0x464a5a(0xcb)]());}(_0x133a2e);const _0x62349a=_0x133a2e[_0x5ea12c(0xc9)][_0x5ea12c(0xb7)],_0x2f581e=this[_0x5ea12c(0xda)][_0x5ea12c(0xd6)][_0x5ea12c(0xd9)](_0x5ea12c(0xce));for(const _0x19df8f of _0x62349a[_0x5ea12c(0xd8)]())for(const _0x32b2e0 of _0x19df8f[_0x5ea12c(0xd5)]())if(_0x32b2e0['is'](_0x5ea12c(0xc0))&&_0x2f581e[_0x5ea12c(0xc5)](_0x32b2e0[_0x5ea12c(0xb5)]))return void(this[_0x5ea12c(0xcf)]=!0x1);this[_0x5ea12c(0xcf)]=!0x0;}[_0x2cc990(0xc7)](_0x41831b='',_0x5b6f2a='',_0x41db68=_0x2cc990(0xd2)){const _0x22ccfe=_0x2cc990;this[_0x22ccfe(0xda)][_0x22ccfe(0xad)][_0x22ccfe(0xd9)](_0x19ab4c)[_0x22ccfe(0xc3)](_0x41831b,_0x5b6f2a,_0x41db68);}}function K(_0x212f9c,_0x54437f){const _0x2c2d77=_0x2cc990,_0x2fbee9=new Set();for(const _0x14c7cf of _0x212f9c)(_0x54437f||!0x1===_0x14c7cf[_0x2c2d77(0xd1)])&&_0x2fbee9[_0x2c2d77(0xb1)](_0x14c7cf['id']);return Array[_0x2c2d77(0xd0)](_0x2fbee9);}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(
|
|
23
|
+
export function getTranslation(_0xa1b0c1,_0x10d37d,_0x41d9a2){const t=_0xa1b0c1['t'];switch(_0x10d37d){case'Edit\x20or\x20review':return t('Edit\x20or\x20review');case'Improve\x20writing':return t('Improve\x20writing');case'Make\x20shorter':return t('Make\x20shorter');case'Make\x20longer':return t('Make\x20longer');case'Simplify\x20language':return t('Simplify\x20language');case'Generate\x20from\x20selection':return t('Generate\x20from\x20selection');case'Summarize':return t('Summarize');case'Continue':return t('Continue');case'Change\x20tone':return t('Change\x20tone');case'Professional':return t('Professional');case'Casual':return t('Casual');case'Direct':return t('Direct');case'Confident':return t('Confident');case'Friendly':return t('Friendly');case'Change\x20style':return t('Change\x20style');case'Business':return t('Business');case'Legal':return t('Legal');case'Journalism':return t('Journalism');case'Poetic':return t('Poetic');case'Translate':return t('Translate');case'Translate\x20to\x20%0':return t('Translate\x20to\x20%0',_0x41d9a2);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',_0x41d9a2);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x41d9a2);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'},_0x41d9a2);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 _0x10d37d;}}
|