@ckeditor/ckeditor5-ai 42.0.0-alpha.4 → 42.0.0-alpha.6
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 _0x407698=_0x426a;function _0x5abd(){const _0x2a8501=['name','prompt','stopListening','previousContext','substring','_handleQuery','htmlProcessor','createElement','initialContext','_parseAndNormalizeContent','endsWith','toView','startProcessing','editor','```','isRendered','_normalizeResponseHeadings','serializeToString','div','finally','destroy','match','updateView','605324TgMMix','ELEMENT_NODE','abort','querySelector','from','181698IiUisJ','reset','then','stopProcessing','element','exec','toModel','currentResponse','reverse','render','24NihLGu','_sanitizationContainer','previousLabel','isProcessing','stringify','rename','editing','value','set','previousActionId','custom','makeRequest','remove','_domParser','tryAgainEvent','catch','message','processor','view','nodeType','1532010QiBljA','childNodes','_sanitizeHTML','once','_stripMarkdownSyntax','startsWith','domConverter','text/html','_isH1TagSupportEnabled','126462Icgplx','809649qhcBjJ','submitPrompt','data','8233030unxdvO','trim','8AIyrKP','listenTo','102956PjavZw','document','viewToDom','<h1></h1>','setContentOf','parseFromString','3CKBTdS','push','body','handleError','set:currentContext','previousQuery','```html','length','textAdapter','_xmlSerializer','innerHTML','finishProcessing','currentContext','mainAction'];_0x5abd=function(){return _0x2a8501;};return _0x5abd();}(function(_0x13dabf,_0x35bb86){const _0x32d4fe=_0x426a,_0x83c350=_0x13dabf();while(!![]){try{const _0x588ab9=-parseInt(_0x32d4fe(0x198))/0x1+-parseInt(_0x32d4fe(0x169))/0x2+parseInt(_0x32d4fe(0x19e))/0x3*(-parseInt(_0x32d4fe(0x164))/0x4)+-parseInt(_0x32d4fe(0x187))/0x5+-parseInt(_0x32d4fe(0x173))/0x6*(-parseInt(_0x32d4fe(0x190))/0x7)+-parseInt(_0x32d4fe(0x196))/0x8*(parseInt(_0x32d4fe(0x191))/0x9)+parseInt(_0x32d4fe(0x194))/0xa;if(_0x588ab9===_0x35bb86)break;else _0x83c350['push'](_0x83c350['shift']());}catch(_0x3734d0){_0x83c350['push'](_0x83c350['shift']());}}}(_0x5abd,0x259d4));import{ObservableMixin as _0x5c8c50}from'ckeditor5/src/utils.js';function _0x426a(_0x691e73,_0x53b060){const _0x5abdf1=_0x5abd();return _0x426a=function(_0x426a15,_0x1d1ed8){_0x426a15=_0x426a15-0x157;let _0x1832ca=_0x5abdf1[_0x426a15];return _0x1832ca;},_0x426a(_0x691e73,_0x53b060);}import{AIRequestError as _0x33b91f}from'../adapters/aiadapter.js';import{Matcher as _0x1b159a,UpcastWriter as _0x8d9430}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
|
+
_0x5c8c50(){constructor(_0x21df82,_0x5b3f53,_0x4d47d8){const _0x45d656=_0x426a;super(),this[_0x45d656(0x15a)]=_0x21df82,this[_0x45d656(0x1a6)]=_0x5b3f53,this[_0x45d656(0x174)]=document[_0x45d656(0x1b3)](_0x45d656(0x15f)),this[_0x45d656(0x180)]=new DOMParser(),this[_0x45d656(0x1a7)]=new XMLSerializer(),this[_0x45d656(0x185)]=_0x4d47d8,this[_0x45d656(0x17b)]({'initialContext':'','currentContext':'','currentResponse':'','previousContext':void 0x0,'previousQuery':void 0x0,'previousLabel':void 0x0,'isProcessing':!0x1}),this['on'](_0x45d656(0x1a2),(_0x13aeb1,_0x574c21,_0x3f288d)=>{const _0x5f1717=_0x45d656;this[_0x5f1717(0x185)][_0x5f1717(0x17a)]=this[_0x5f1717(0x189)](_0x3f288d);}),this[_0x45d656(0x197)](this[_0x45d656(0x185)],_0x45d656(0x192),(_0x42e185,_0x3005b9)=>{const _0x33e6be=_0x45d656,_0x46bcf5=this[_0x33e6be(0x1aa)]||this[_0x33e6be(0x1b4)];this[_0x33e6be(0x1b1)](_0x3005b9,_0x46bcf5,_0x33e6be(0x17d));}),this[_0x45d656(0x197)](this[_0x45d656(0x185)],_0x45d656(0x181),()=>{const _0x1085fc=_0x45d656;this[_0x1085fc(0x185)][_0x1085fc(0x1ad)]=this[_0x1085fc(0x175)],this[_0x1085fc(0x1b1)](this[_0x1085fc(0x1a3)],this[_0x1085fc(0x1af)],this[_0x1085fc(0x17c)],this[_0x1085fc(0x175)]);}),this[_0x45d656(0x197)](this[_0x45d656(0x185)],_0x45d656(0x16c),()=>{const _0xc7e91c=_0x45d656;this[_0xc7e91c(0x16c)]();});}[_0x407698(0x161)](){const _0x45ba19=_0x407698;this[_0x45ba19(0x1ae)]();}async[_0x407698(0x163)]({actionId:_0x43254f,query:_0x189d8a,htmlContent:_0x3c13b4,label:_0x5adb68,mainActionLabel:_0x74aac8}){const _0x57abb9=_0x407698;this[_0x57abb9(0x185)][_0x57abb9(0x1ad)]=_0x5adb68,this[_0x57abb9(0x185)][_0x57abb9(0x1ab)]=_0x74aac8,this[_0x57abb9(0x1b4)]=_0x3c13b4,_0x189d8a&&(this[_0x57abb9(0x185)][_0x57abb9(0x15c)]?this[_0x57abb9(0x1b1)](_0x189d8a,_0x3c13b4,_0x43254f,_0x5adb68):this[_0x57abb9(0x185)][_0x57abb9(0x18a)](_0x57abb9(0x172),()=>{const _0x14bc05=_0x57abb9;this[_0x14bc05(0x1b1)](_0x189d8a,_0x3c13b4,_0x43254f,_0x5adb68);}));}[_0x407698(0x16c)](){const _0x3ada4d=_0x407698;this[_0x3ada4d(0x176)]&&(this[_0x3ada4d(0x176)]=!0x1,this[_0x3ada4d(0x185)][_0x3ada4d(0x1a9)](),this[_0x3ada4d(0x1a6)][_0x3ada4d(0x166)]());}[_0x407698(0x16a)](){const _0x217a38=_0x407698;this[_0x217a38(0x1b4)]='',this[_0x217a38(0x1aa)]='',this[_0x217a38(0x170)]='',this[_0x217a38(0x1af)]='',this[_0x217a38(0x1a3)]='',this[_0x217a38(0x175)]='',this[_0x217a38(0x17c)]=void 0x0,this[_0x217a38(0x185)][_0x217a38(0x16a)](),this[_0x217a38(0x16c)]();}async[_0x407698(0x1b1)](_0x59a436,_0x19eaea,_0x28d175,_0x3fa506){const _0x1ece56=_0x407698;return this[_0x1ece56(0x176)]=!0x0,this[_0x1ece56(0x185)][_0x1ece56(0x159)](),this[_0x1ece56(0x1af)]=_0x19eaea,this[_0x1ece56(0x1a3)]=_0x59a436,this[_0x1ece56(0x175)]=_0x3fa506||_0x59a436,this[_0x1ece56(0x17c)]=_0x28d175,new Promise(_0xa364a8=>{const _0xcfd22f=_0x1ece56;this[_0xcfd22f(0x1a6)][_0xcfd22f(0x17e)]({'query':_0x59a436,'context':_0x19eaea,'onData':_0x598d7a=>{const _0x4fe53f=_0xcfd22f;this[_0x4fe53f(0x170)]=_0x598d7a,this[_0x4fe53f(0x1aa)]=this[_0x4fe53f(0x1b5)](this[_0x4fe53f(0x170)]);},'actionId':_0x28d175})[_0xcfd22f(0x16b)](()=>{const _0x4b4c77=_0xcfd22f;!this[_0x4b4c77(0x1aa)]&&this[_0x4b4c77(0x170)]&&(this[_0x4b4c77(0x1aa)]=this[_0x4b4c77(0x1b5)](this[_0x4b4c77(0x170)],!0x0));})[_0xcfd22f(0x182)](_0x49e75c=>{const _0x483d70=_0xcfd22f;_0x49e75c instanceof _0x33b91f?this[_0x483d70(0x185)][_0x483d70(0x1a1)](_0x49e75c[_0x483d70(0x183)]):this[_0x483d70(0x185)][_0x483d70(0x1a1)](),_0xa364a8();})[_0xcfd22f(0x160)](()=>{const _0x21ec47=_0xcfd22f;this[_0x21ec47(0x16c)](),_0xa364a8();});});}[_0x407698(0x1b5)](_0x3053cb,_0x598a0b=!0x1){const _0x22e26b=_0x407698,_0xa96150=X[_0x22e26b(0x16e)](_0x3053cb);_0x3053cb=_0xa96150?_0x3053cb[_0x22e26b(0x1b0)](_0xa96150[0x1][_0x22e26b(0x1a5)]):_0x3053cb[_0x22e26b(0x1a5)]<0x64&&!_0x598a0b?'':this[_0x22e26b(0x18b)](_0x3053cb);const _0x440847=this[_0x22e26b(0x180)][_0x22e26b(0x19d)](_0x3053cb,_0x22e26b(0x18e));if(_0xa96150){const _0x545f02=Array[_0x22e26b(0x168)](_0x440847[_0x22e26b(0x1a0)][_0x22e26b(0x188)]);_0x545f02[_0x22e26b(0x171)]();for(const _0x98bfca of _0x545f02){if(_0x98bfca[_0x22e26b(0x186)]==Node[_0x22e26b(0x165)])break;_0x98bfca[_0x22e26b(0x17f)]();}}const _0x495483=this[_0x22e26b(0x15a)][_0x22e26b(0x193)][_0x22e26b(0x184)][_0x22e26b(0x158)](this[_0x22e26b(0x1a7)][_0x22e26b(0x15e)](_0x440847[_0x22e26b(0x1a0)]));return this[_0x22e26b(0x18f)]()||this[_0x22e26b(0x15d)](_0x495483),this[_0x22e26b(0x15a)][_0x22e26b(0x193)][_0x22e26b(0x177)](this[_0x22e26b(0x15a)][_0x22e26b(0x193)][_0x22e26b(0x16f)](_0x495483));}[_0x407698(0x15d)](_0x9032e6){const _0x48dcda=_0x407698,_0x439b5a=new _0x8d9430(this[_0x48dcda(0x15a)][_0x48dcda(0x179)][_0x48dcda(0x185)][_0x48dcda(0x199)]),_0x35338f=new _0x1b159a({'name':/^h[1-5]$/}),_0x50ecb3=[];let _0x482298=!0x1;for(const _0x3815ce of _0x9032e6)_0x3815ce['is'](_0x48dcda(0x16d))&&_0x35338f[_0x48dcda(0x162)](_0x3815ce)&&(_0x50ecb3[_0x48dcda(0x19f)](_0x3815ce),'h1'==_0x3815ce[_0x48dcda(0x1ac)]&&(_0x482298=!0x0));if(_0x482298){for(const _0x1cac9a of _0x50ecb3)_0x439b5a[_0x48dcda(0x178)]('h'+(parseInt(_0x1cac9a[_0x48dcda(0x1ac)][0x1])+0x1),_0x1cac9a);}}[_0x407698(0x18f)](){const _0x239283=_0x407698,{data:_0x2e8643,editing:_0x5e28c6}=this[_0x239283(0x15a)],_0x167cdf=_0x2e8643[_0x239283(0x1b2)][_0x239283(0x158)](_0x239283(0x19b)),_0x31e813=_0x2e8643[_0x239283(0x158)](_0x2e8643[_0x239283(0x16f)](_0x167cdf));return!!_0x5e28c6[_0x239283(0x185)][_0x239283(0x18d)][_0x239283(0x19a)](_0x31e813)[_0x239283(0x167)]('h1');}[_0x407698(0x189)](_0x28b504){const _0x316934=_0x407698;return this[_0x316934(0x15a)][_0x316934(0x179)][_0x316934(0x185)][_0x316934(0x18d)][_0x316934(0x19c)](this[_0x316934(0x174)],_0x28b504),this[_0x316934(0x174)][_0x316934(0x1a8)];}[_0x407698(0x18b)](_0x16a335){const _0x9cca93=_0x407698,_0x540257=_0x16a335[_0x9cca93(0x195)]();return _0x540257[_0x9cca93(0x18c)](_0x9cca93(0x1a4))?_0x540257[_0x9cca93(0x157)](_0x9cca93(0x15b))?_0x540257[_0x9cca93(0x1b0)](0x7,_0x540257[_0x9cca93(0x1a5)]-0x3):_0x540257[_0x9cca93(0x1b0)](0x7):_0x16a335;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x1fbf2d=_0x23ba;function _0x23ba(_0x178f7b,_0xbcb79e){const _0x56353b=_0x5635();return _0x23ba=function(_0x23ba90,_0x4bb9fd){_0x23ba90=_0x23ba90-0xda;let _0x2a1f0e=_0x56353b[_0x23ba90];return _0x2a1f0e;},_0x23ba(_0x178f7b,_0xbcb79e);}(function(_0x216f12,_0xc65c7a){const _0x2afbde=_0x23ba,_0x18aada=_0x216f12();while(!![]){try{const _0x25de90=-parseInt(_0x2afbde(0xea))/0x1*(-parseInt(_0x2afbde(0xdf))/0x2)+parseInt(_0x2afbde(0xdb))/0x3*(-parseInt(_0x2afbde(0xe1))/0x4)+-parseInt(_0x2afbde(0xef))/0x5+parseInt(_0x2afbde(0xda))/0x6*(-parseInt(_0x2afbde(0xe6))/0x7)+-parseInt(_0x2afbde(0xec))/0x8+-parseInt(_0x2afbde(0xf2))/0x9+parseInt(_0x2afbde(0xee))/0xa;if(_0x25de90===_0xc65c7a)break;else _0x18aada['push'](_0x18aada['shift']());}catch(_0x3592fe){_0x18aada['push'](_0x18aada['shift']());}}}(_0x5635,0xce676));import{ListView as _0x4556ac,ListItemGroupView as _0x52ec1c}from'ckeditor5/src/ui.js';import{AICommandsListItemView as _0x1eea84}from'../../aiassistantui.js';function _0x5635(){const _0x282b03=['1gyStrE','label','2501176hWsBLK','items','28999890sygmmX','6180285ihbmpn','listbox','get','11621529WxQwbE','highlightText','isEnabled','change:enabledCommandsIds','role','432dTneWN','3xtVUza','set','match','first','3020042njfbDx','labelView','2897804CwpCsW','length','includes','commandDefinition','children','14qJAiEX','isVisible','filter','enabledCommandsIds'];_0x5635=function(){return _0x282b03;};return _0x5635();}export default class U extends _0x4556ac{constructor(_0x5104eb){const _0x2a3061=_0x23ba;super(_0x5104eb),this[_0x2a3061(0xf6)]=_0x2a3061(0xf0),this[_0x2a3061(0xdc)](_0x2a3061(0xe9),[]),this['on'](_0x2a3061(0xf5),()=>{const _0x5708ab=_0x2a3061;for(const _0x5a3583 of this[_0x5708ab(0xed)])if(_0x5a3583 instanceof _0x52ec1c){for(const _0x1ef258 of _0x5a3583[_0x5708ab(0xed)])if(_0x1ef258 instanceof _0x1eea84){const _0x352fd2=_0x1ef258[_0x5708ab(0xe5)][_0x5708ab(0xf1)](0x0);this[_0x5708ab(0xe9)][_0x5708ab(0xe3)](_0x1ef258[_0x5708ab(0xe4)]['id'])?_0x352fd2[_0x5708ab(0xf4)]=!0x0:_0x352fd2[_0x5708ab(0xf4)]=!0x1;}}});}[_0x1fbf2d(0xe8)](_0x3a4ffd){const _0x19d290=_0x1fbf2d;let _0x2989b9=0x0,_0x4669a5=0x0;for(const _0x5e7adc of this[_0x19d290(0xed)]){const _0x479456=_0x5e7adc,_0x42b1b5=_0x479456[_0x19d290(0xed)],_0x30d548=_0x3a4ffd&&!!_0x479456[_0x19d290(0xeb)][_0x19d290(0xdd)](_0x3a4ffd);_0x479456[_0x19d290(0xe0)][_0x19d290(0xf3)](_0x30d548?_0x3a4ffd:null);for(const _0x3f5c68 of _0x42b1b5){const _0x447744=_0x3f5c68[_0x19d290(0xe5)][_0x19d290(0xde)],_0x478e96=_0x447744[_0x19d290(0xe0)];if(_0x3a4ffd){const _0xc2a029=!!_0x447744[_0x19d290(0xeb)][_0x19d290(0xdd)](_0x3a4ffd);_0x478e96[_0x19d290(0xf3)](_0xc2a029?_0x3a4ffd:null),_0x3f5c68[_0x19d290(0xe7)]=_0x30d548||_0xc2a029;}else _0x3f5c68[_0x19d290(0xe7)]=!0x0,_0x478e96[_0x19d290(0xf3)](null);}const _0x222c48=_0x42b1b5[_0x19d290(0xe8)](_0x21a52b=>_0x21a52b[_0x19d290(0xe7)])[_0x19d290(0xe2)];_0x2989b9+=_0x479456[_0x19d290(0xed)][_0x19d290(0xe2)],_0x4669a5+=_0x30d548?_0x479456[_0x19d290(0xed)][_0x19d290(0xe2)]:_0x222c48,_0x479456[_0x19d290(0xe7)]=_0x30d548||!!_0x222c48;}return{'resultsCount':_0x4669a5,'totalItemsCount':_0x2989b9};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x4568(){const _0x916815=['34IFfunZ','ck-button__label','839598pNQIzn','48EpRgXu','2296heYsqw','53120dyOeGh','set','36naPqWJ','2262681rmzdDB','bindTemplate','10697JjQksg','5937734uHqksD','19061wHoXHj','style','extendTemplate','27GTzPJS','1164770yacxZI'];_0x4568=function(){return _0x916815;};return _0x4568();}function _0x3503(_0x13058f,_0x372501){const _0x4568a2=_0x4568();return _0x3503=function(_0x3503b4,_0x10e058){_0x3503b4=_0x3503b4-0x10d;let _0x549594=_0x4568a2[_0x3503b4];return _0x549594;},_0x3503(_0x13058f,_0x372501);}(function(_0x1ca187,_0x33dcd5){const _0x28ef0a=_0x3503,_0x46904a=_0x1ca187();while(!![]){try{const _0x3aadcc=parseInt(_0x28ef0a(0x11b))/0x1*(parseInt(_0x28ef0a(0x111))/0x2)+-parseInt(_0x28ef0a(0x119))/0x3+-parseInt(_0x28ef0a(0x118))/0x4*(-parseInt(_0x28ef0a(0x116))/0x5)+-parseInt(_0x28ef0a(0x113))/0x6+parseInt(_0x28ef0a(0x11d))/0x7*(-parseInt(_0x28ef0a(0x115))/0x8)+parseInt(_0x28ef0a(0x10f))/0x9*(-parseInt(_0x28ef0a(0x110))/0xa)+parseInt(_0x28ef0a(0x11c))/0xb*(parseInt(_0x28ef0a(0x114))/0xc);if(_0x3aadcc===_0x33dcd5)break;else _0x46904a['push'](_0x46904a['shift']());}catch(_0x28a99b){_0x46904a['push'](_0x46904a['shift']());}}}(_0x4568,0x6479d));import{HighlightedTextView as _0x54c358}from'ckeditor5/src/ui.js';export default class N extends _0x54c358{constructor(){const _0x404cce=_0x3503;super(),this[_0x404cce(0x117)]({'style':void 0x0,'text':void 0x0,'id':void 0x0});const _0x260170=this[_0x404cce(0x11a)];this[_0x404cce(0x10e)]({'attributes':{'class':[_0x404cce(0x112)],'style':_0x260170['to'](_0x404cce(0x10d)),'id':_0x260170['to']('id')}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x2c1423,_0x1b5b94){const _0x5d4b50=_0x34c5,_0x39437d=_0x2c1423();while(!![]){try{const _0x593087=-parseInt(_0x5d4b50(0xc9))/0x1+-parseInt(_0x5d4b50(0xcb))/0x2+parseInt(_0x5d4b50(0xbc))/0x3*(parseInt(_0x5d4b50(0xc6))/0x4)+parseInt(_0x5d4b50(0xc0))/0x5+-parseInt(_0x5d4b50(0xbb))/0x6*(-parseInt(_0x5d4b50(0xc1))/0x7)+-parseInt(_0x5d4b50(0xc4))/0x8*(-parseInt(_0x5d4b50(0xca))/0x9)+-parseInt(_0x5d4b50(0xbd))/0xa*(parseInt(_0x5d4b50(0xc5))/0xb);if(_0x593087===_0x1b5b94)break;else _0x39437d['push'](_0x39437d['shift']());}catch(_0xd824ed){_0x39437d['push'](_0x39437d['shift']());}}}(_0xe058,0x66db0));import{HighlightedTextView as _0x35d28a}from'ckeditor5/src/ui.js';function _0x34c5(_0x208ee3,_0x4f238b){const _0xe05854=_0xe058();return _0x34c5=function(_0x34c53e,_0x9d71b2){_0x34c53e=_0x34c53e-0xbb;let _0xbaaab=_0xe05854[_0x34c53e];return _0xbaaab;},_0x34c5(_0x208ee3,_0x4f238b);}import{uid as _0x4d1110}from'ckeditor5/src/utils.js';export default class S extends _0x35d28a{constructor(){const _0x560fcf=_0x34c5;super(),this[_0x560fcf(0xbf)](_0x560fcf(0xc8),void 0x0);const _0x1eb81f=this[_0x560fcf(0xc7)];this['id']=_0x560fcf(0xc2)+_0x4d1110(),this[_0x560fcf(0xbe)]({'attributes':{'class':['ck',_0x560fcf(0xc3)],'id':this['id'],'for':_0x1eb81f['to'](_0x560fcf(0xc8))}});}}function _0xe058(){const _0x16f254=['5453459PeQKXN','268pINaYz','bindTemplate','for','34680WhirWJ','505107ZoEROT','926874mpkwke','128736djKUqT','35418ILdpyl','20QZQxlU','extendTemplate','set','1902565hpimae','168aFIjLW','ck-editor__label_','ck-label','32syDxnm'];_0xe058=function(){return _0x16f254;};return _0xe058();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x52689a=_0x3668;(function(_0x1979b0,_0x38c947){const _0x4ade86=_0x3668,_0x4c879e=_0x1979b0();while(!![]){try{const _0x44111f=parseInt(_0x4ade86(0xa5))/0x1+-parseInt(_0x4ade86(0xd5))/0x2*(-parseInt(_0x4ade86(0xd8))/0x3)+-parseInt(_0x4ade86(0xf2))/0x4*(parseInt(_0x4ade86(0xee))/0x5)+-parseInt(_0x4ade86(0xca))/0x6*(-parseInt(_0x4ade86(0xc2))/0x7)+parseInt(_0x4ade86(0xb4))/0x8*(-parseInt(_0x4ade86(0xe6))/0x9)+parseInt(_0x4ade86(0xb0))/0xa+parseInt(_0x4ade86(0xdd))/0xb*(-parseInt(_0x4ade86(0xd3))/0xc);if(_0x44111f===_0x38c947)break;else _0x4c879e['push'](_0x4c879e['shift']());}catch(_0x26881c){_0x4c879e['push'](_0x4c879e['shift']());}}}(_0x2626,0xafd69));import{global as _0x4f1ee4}from'ckeditor5/src/utils.js';function _0x3668(_0x123c0c,_0x30dba5){const _0x262611=_0x2626();return _0x3668=function(_0x366851,_0x1efba){_0x366851=_0x366851-0xa3;let _0x758120=_0x262611[_0x366851];return _0x758120;},_0x3668(_0x123c0c,_0x30dba5);}import{View as _0xf41cce,ButtonView as _0x44fd4e,SpinnerView as _0x1c7471}from'ckeditor5/src/ui.js';import _0x1a673b from'../../../theme/icons/copy.svg';import{getTranslation as _0x496c4c}from'../../utils/common-translations.js';import{icons as _0x1301dd}from'ckeditor5/src/core.js';export default class nt extends _0xf41cce{constructor(_0x37f14f,_0x276621=''){const _0x11e9b5=_0x3668;super(_0x37f14f),this[_0x11e9b5(0xf8)]({'value':null,'isVisible':!0x1,'isProcessing':!0x1});const _0x1346c7=this[_0x11e9b5(0xb6)];this[_0x11e9b5(0xf4)]=new ContentFieldView(_0x37f14f,_0x276621),this[_0x11e9b5(0xe1)]=this[_0x11e9b5(0xcf)](),this[_0x11e9b5(0xc3)]({'tag':_0x11e9b5(0xd4),'attributes':{'class':['ck',_0x11e9b5(0xd6),_0x1346c7['if'](_0x11e9b5(0xcb),_0x11e9b5(0xc6),_0x53d06e=>!_0x53d06e)],'tabindex':'-1'},'children':[{'tag':_0x11e9b5(0xd4),'attributes':{'class':['ck',_0x11e9b5(0xf0),_0x1346c7['if'](_0x11e9b5(0xe3),_0x11e9b5(0xf1))]},'children':[this[_0x11e9b5(0xf4)],{'tag':_0x11e9b5(0xd4),'attributes':{'class':['ck',_0x11e9b5(0xa7)]},'children':[this[_0x11e9b5(0xe1)]]}]}]});}[_0x52689a(0xb8)](){const _0x22d155=_0x52689a;super[_0x22d155(0xb8)](),this[_0x22d155(0xa8)]&&this[_0x22d155(0xf4)][_0x22d155(0xb2)](this[_0x22d155(0xa8)]);let _0x43e865=!0x1;this['on'](_0x22d155(0xb1),(_0x32d784,_0x1d2f6f,_0x5696e6)=>{const _0x238e49=_0x22d155,_0x540162=!this[_0x238e49(0xf4)][_0x238e49(0xb3)][_0x238e49(0xd9)](_0x238e49(0xf3));this[_0x238e49(0xf4)][_0x238e49(0xb2)](_0x5696e6),this[_0x238e49(0xe3)]&&_0x540162&&!_0x43e865&&this[_0x238e49(0xb3)][_0x238e49(0xc8)]({'top':this[_0x238e49(0xb3)][_0x238e49(0xe7)],'behavior':_0x238e49(0xbd)});}),this['on'](_0x22d155(0xd7),(_0x5e2ec3,_0x319493,_0x3cb221)=>{const _0xd23fca=_0x22d155;_0x43e865=!0x1,_0x3cb221?(this[_0xd23fca(0xa8)]=null,this[_0xd23fca(0xf4)][_0xd23fca(0xa4)]()):this[_0xd23fca(0xa8)]||this[_0xd23fca(0xf4)][_0xd23fca(0xb2)]('');}),this[_0x22d155(0xc0)](this[_0x22d155(0xb3)],_0x22d155(0xa3),()=>{_0x43e865=!0x0;}),this[_0x22d155(0xc0)](this[_0x22d155(0xb3)],_0x22d155(0xbc),()=>{_0x43e865=!0x0;});}[_0x52689a(0xf9)](){const _0x33b04c=_0x52689a;this[_0x33b04c(0xb3)][_0x33b04c(0xf9)]();}[_0x52689a(0xcf)](){const _0x883155=_0x52689a,_0x34c296=this[_0x883155(0xf7)],_0x50ae06=new _0x44fd4e(this[_0x883155(0xf7)]),_0x3cbada=_0x883155(0xc1);return _0x50ae06[_0x883155(0xf8)]({'label':_0x496c4c(_0x34c296,_0x883155(0xe4)),'icon':_0x1a673b,'class':_0x3cbada,'tooltip':!0x0}),_0x50ae06[_0x883155(0xd1)](_0x883155(0xcb))['to'](this,_0x883155(0xa8),_0x32d099=>!!_0x32d099),_0x50ae06[_0x883155(0xd1)](_0x883155(0xbe))['to'](this,_0x883155(0xe3),_0x2cf03e=>!_0x2cf03e),_0x50ae06['on'](_0x883155(0xfa),()=>{const _0x2bd3e1=_0x883155;this[_0x2bd3e1(0xe8)](this[_0x2bd3e1(0xf4)][_0x2bd3e1(0xb3)]),_0x50ae06[_0x2bd3e1(0xeb)]=_0x1301dd[_0x2bd3e1(0xc9)],_0x50ae06[_0x2bd3e1(0xb7)]=_0x3cbada+_0x2bd3e1(0xdb),this[_0x2bd3e1(0xf9)](),setTimeout(()=>{const _0x136f46=_0x2bd3e1;_0x50ae06[_0x136f46(0xeb)]=_0x1a673b,_0x50ae06[_0x136f46(0xb7)]=_0x3cbada;},0x3e8);}),_0x50ae06;}[_0x52689a(0xe8)](_0x1ba570){const _0xbe8c15=_0x52689a,{window:_0x138c4c,document:_0x461787}=_0x4f1ee4;if(_0x138c4c[_0xbe8c15(0xab)]){const {Blob:_0x19cf1a,ClipboardItem:_0xc7e5d8}=_0x138c4c,_0x1352d6=[new _0xc7e5d8({'text/html':new _0x19cf1a([_0x1ba570[_0xbe8c15(0xc4)]],{'type':_0xbe8c15(0xbf)}),'text/plain':new _0x19cf1a([_0x1ba570[_0xbe8c15(0xea)]||''],{'type':_0xbe8c15(0xf5)})})];navigator[_0xbe8c15(0xdc)][_0xbe8c15(0xbb)](_0x1352d6);}else{const _0x4facc2=_0x461787[_0xbe8c15(0xcd)](_0xbe8c15(0xd4));_0x4facc2[_0xbe8c15(0xb5)][_0xbe8c15(0xed)]=_0xbe8c15(0xae),_0x4facc2[_0xbe8c15(0xb5)][_0xbe8c15(0xe5)]=_0xbe8c15(0xef),_0x4facc2[_0xbe8c15(0xc4)]=_0xbe8c15(0xaf)+_0x1ba570[_0xbe8c15(0xc4)]+_0xbe8c15(0xde),_0x461787[_0xbe8c15(0xe2)][_0xbe8c15(0xd0)](_0x4facc2);const _0x2ff659=_0x461787[_0xbe8c15(0xa6)]();_0x2ff659[_0xbe8c15(0xcc)](_0x4facc2[_0xbe8c15(0xba)]),_0x2ff659[_0xbe8c15(0xad)](_0x4facc2[_0xbe8c15(0xb9)]);const _0x4c770c=_0x138c4c[_0xbe8c15(0xec)]();_0x4c770c[_0xbe8c15(0xd2)](),_0x4c770c[_0xbe8c15(0xf6)](_0x2ff659),_0x461787[_0xbe8c15(0xc7)](_0xbe8c15(0xe9)),_0x4facc2[_0xbe8c15(0xc5)]();}}}function _0x2626(){const _0x1bdfc3=['<span>]</span>','_createLoader','ck-ai-form__loader','copyButtonView','body','isProcessing','Copy','left','114714PaiqAa','scrollHeight','_copyHTMLToClipboard','copy','textContent','icon','getSelection','position','30NFCMIQ','-9999px','ck-ai-form__content-area','ck-ai-form__content-area--processing','219376sgdyzM','.ck-ai-form__loader','contentFieldView','text/plain','addRange','locale','set','focus','execute','wheel','appendLoader','943479hPephq','createRange','ck-ai-form__copy-button-wrapper','value','ck-content','loaderView','ClipboardItem','ck-ai-form__content-field','setEndBefore','absolute','<span>[</span>','14402810qwrzUN','change:value','setContent','element','808cyiWdg','style','bindTemplate','class','render','lastElementChild','firstElementChild','write','mousedown','smooth','isEnabled','text/html','listenTo','ck-ai-form__copy-button','28133uKtmBp','setTemplate','innerHTML','remove','ck-hidden','execCommand','scrollTo','check','258ulSZiT','isVisible','setStartAfter','createElement','ck-reset_all-excluded','_createCopyButton','appendChild','bind','removeAllRanges','15641364mJgAiI','div','38018btFbZn','ck-ai-form__content-area-wrapper','change:isProcessing','171eDnHLi','querySelector','AI\x20is\x20writing...','\x20ck-ai-form__copy-button--copied','clipboard','11ybBiSX'];_0x2626=function(){return _0x1bdfc3;};return _0x2626();}export class ContentFieldView extends _0xf41cce{constructor(_0x5ec505,_0x1d7876=''){const _0x1454f3=_0x52689a;super(_0x5ec505),this[_0x1454f3(0xaa)]=this[_0x1454f3(0xdf)](),this[_0x1454f3(0xc3)]({'tag':_0x1454f3(0xd4),'attributes':{'class':['ck',_0x1454f3(0xa9),_0x1d7876,_0x1454f3(0xce),_0x1454f3(0xac)]}});}[_0x52689a(0xb2)](_0x38e462){const _0x98362f=_0x52689a;this[_0x98362f(0xb3)][_0x98362f(0xc4)]=_0x38e462;}[_0x52689a(0xa4)](){const _0x1df33f=_0x52689a;this[_0x1df33f(0xb3)][_0x1df33f(0xd0)](this[_0x1df33f(0xaa)][_0x1df33f(0xb3)]);}[_0x52689a(0xdf)](){const _0x20f3a3=_0x52689a,_0x315daf=new _0xf41cce(),_0x49d998=this[_0x20f3a3(0xf7)],_0x18ab67=new _0x1c7471();return _0x18ab67[_0x20f3a3(0xcb)]=!0x0,_0x315daf[_0x20f3a3(0xc3)]({'tag':_0x20f3a3(0xd4),'attributes':{'class':['ck',_0x20f3a3(0xe0)]},'children':[_0x18ab67,{'text':_0x496c4c(_0x49d998,_0x20f3a3(0xda))}]}),_0x315daf[_0x20f3a3(0xb8)](),_0x315daf;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x5cf0(_0x402fc2,_0x11ea54){const _0x3cdf3d=_0x3cdf();return _0x5cf0=function(_0x5cf06d,_0x48d3ba){_0x5cf06d=_0x5cf06d-0x1ec;let _0x80ecd4=_0x3cdf3d[_0x5cf06d];return _0x80ecd4;},_0x5cf0(_0x402fc2,_0x11ea54);}function _0x3cdf(){const _0x2cd138=['bindTemplate','180rZNtDB','590562yEiism','content','768728kEIGLT','set','div','setTemplate','30RxGgPx','81WuMBGL','335nSPGWF','410151JvnJyk','580568HOjfjm','2BTxkVW','3661860bKxdpt','1450493TLFxkR','text','42348GlmYCR','ck-ai-form__error'];_0x3cdf=function(){return _0x2cd138;};return _0x3cdf();}(function(_0x43b524,_0x62ebe1){const _0x42fde2=_0x5cf0,_0x3f1b6c=_0x43b524();while(!![]){try{const _0x5290f7=parseInt(_0x42fde2(0x1ed))/0x1*(parseInt(_0x42fde2(0x1ec))/0x2)+parseInt(_0x42fde2(0x1f5))/0x3+-parseInt(_0x42fde2(0x1f1))/0x4*(-parseInt(_0x42fde2(0x1fd))/0x5)+parseInt(_0x42fde2(0x1fb))/0x6*(-parseInt(_0x42fde2(0x1fe))/0x7)+-parseInt(_0x42fde2(0x1f7))/0x8*(-parseInt(_0x42fde2(0x1fc))/0x9)+parseInt(_0x42fde2(0x1ee))/0xa+parseInt(_0x42fde2(0x1ef))/0xb*(-parseInt(_0x42fde2(0x1f4))/0xc);if(_0x5290f7===_0x62ebe1)break;else _0x3f1b6c['push'](_0x3f1b6c['shift']());}catch(_0x182d6e){_0x3f1b6c['push'](_0x3f1b6c['shift']());}}}(_0x3cdf,0x6d17e));import{View as _0x218ec9,IconView as _0x425157}from'ckeditor5/src/ui.js';import _0x429518 from'../../../theme/icons/error.svg';export default class mt extends _0x218ec9{constructor(_0x161c45,_0xd8e2a3=''){const _0x1ea514=_0x5cf0;super(_0x161c45);const _0x1a0c4f=new _0x425157(),_0x51ef7a=this[_0x1ea514(0x1f3)];this[_0x1ea514(0x1f8)](_0x1ea514(0x1f0),_0xd8e2a3),_0x1a0c4f[_0x1ea514(0x1f6)]=_0x429518,this[_0x1ea514(0x1fa)]({'tag':_0x1ea514(0x1f9),'attributes':{'class':['ck',_0x1ea514(0x1f2)]},'children':[_0x1a0c4f,{'text':_0x51ef7a['to'](_0x1ea514(0x1f0))}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x209b26=_0x1b27;function _0x1b27(_0x2003af,_0x10837a){const _0x38d79d=_0x38d7();return _0x1b27=function(_0x1b2737,_0x2492b0){_0x1b2737=_0x1b2737-0x12c;let _0x456741=_0x38d79d[_0x1b2737];return _0x456741;},_0x1b27(_0x2003af,_0x10837a);}(function(_0x57c7ff,_0x41e4d9){const _0x3f96c6=_0x1b27,_0x520d65=_0x57c7ff();while(!![]){try{const _0x437fac=parseInt(_0x3f96c6(0x165))/0x1+-parseInt(_0x3f96c6(0x15c))/0x2+-parseInt(_0x3f96c6(0x136))/0x3+-parseInt(_0x3f96c6(0x146))/0x4+-parseInt(_0x3f96c6(0x156))/0x5*(parseInt(_0x3f96c6(0x137))/0x6)+-parseInt(_0x3f96c6(0x161))/0x7+-parseInt(_0x3f96c6(0x13a))/0x8*(-parseInt(_0x3f96c6(0x155))/0x9);if(_0x437fac===_0x41e4d9)break;else _0x520d65['push'](_0x520d65['shift']());}catch(_0x1f728b){_0x520d65['push'](_0x520d65['shift']());}}}(_0x38d7,0xccd6d));import{Rect as _0x11c65b,global as _0x451829,isVisible as _0x2e50c9}from'ckeditor5/src/utils.js';import{AutocompleteView as _0x26e535,ButtonView as _0x5426bb}from'ckeditor5/src/ui.js';import{icons as _0x30e0f9}from'ckeditor5/src/core.js';function _0x38d7(){const _0x44b241=['6dUQtkJ','queryView','keystrokes','16pVmpZu','left','isOn','ck-ai-form__submit','isVisible','maxRows','History','focusLast','fire','update','add','value','6694696IiKUIc','locale','submitButtonView','filteredView','fieldView','focusableChildren','minRows','style','history','window','_createSubmitButton','target','excludeScrollbarsAndBorders','right','focusCycler','17313228gYiBHO','2945645QUcTlv','set','rtl','element','submit','_createShowHistoryButton','2270532qzCkUo','width','bind','focus','isEnabled','84427XTucDy','isEmpty','children','uiLanguageDirection','1599768cZPegB','execute','showHistoryButtonView','render','fieldWrapperChildren','requestAnimationFrame','focusFirst','ck-ai-form__toggle-history','enter','Submit','resultsView','3594003jHNjwC'];_0x38d7=function(){return _0x44b241;};return _0x38d7();}import{getTranslation as _0x587551}from'../../utils/common-translations.js';import _0x5ee040 from'../../../theme/icons/submit.svg';export default class pt extends _0x26e535{constructor(_0x3ae330,_0x49d34e){const _0x370383=_0x1b27;super(_0x3ae330,_0x49d34e),this[_0x370383(0x138)][_0x370383(0x14a)][_0x370383(0x14c)]=0x1,this[_0x370383(0x138)][_0x370383(0x14a)][_0x370383(0x13f)]=0x3,this[_0x370383(0x148)]=this[_0x370383(0x150)](),this[_0x370383(0x12d)]=this[_0x370383(0x15b)](),this[_0x370383(0x14b)][_0x370383(0x144)](this[_0x370383(0x12d)],0x1),this[_0x370383(0x14b)][_0x370383(0x144)](this[_0x370383(0x148)]);}[_0x209b26(0x12e)](){const _0x4c43a8=_0x209b26;super[_0x4c43a8(0x12e)](),this[_0x4c43a8(0x138)][_0x4c43a8(0x12f)][_0x4c43a8(0x144)](this[_0x4c43a8(0x12d)]),this[_0x4c43a8(0x163)][_0x4c43a8(0x144)](this[_0x4c43a8(0x148)]),this[_0x4c43a8(0x139)][_0x4c43a8(0x157)](_0x4c43a8(0x133),(_0x39c329,_0xfecb8a)=>{const _0x29293c=_0x4c43a8;_0x39c329[_0x29293c(0x151)]==this[_0x29293c(0x138)][_0x29293c(0x14a)][_0x29293c(0x159)]&&(this[_0x29293c(0x15a)](),_0xfecb8a());});}[_0x209b26(0x150)](){const _0x492573=_0x209b26,_0x2419ef=new _0x5426bb(this[_0x492573(0x147)]),_0x53912c=this[_0x492573(0x147)];return _0x2419ef[_0x492573(0x157)]({'icon':_0x5ee040,'label':_0x587551(_0x53912c,_0x492573(0x134)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x492573(0x13d)}),_0x2419ef['on'](_0x492573(0x12c),()=>{const _0x153a66=_0x492573;this[_0x153a66(0x15a)]();}),_0x2419ef[_0x492573(0x15e)](_0x492573(0x160))['to'](this[_0x492573(0x138)][_0x492573(0x14a)],_0x492573(0x162),this,_0x492573(0x160),(_0x4a1262,_0x335c96)=>!_0x4a1262&&_0x335c96),_0x2419ef;}[_0x209b26(0x15b)](){const _0x9413e2=_0x209b26,_0x14c157=new _0x5426bb(this[_0x9413e2(0x147)]),_0x41975f=this[_0x9413e2(0x135)],_0xe9d6db=this[_0x9413e2(0x147)];_0x14c157[_0x9413e2(0x157)]({'label':_0x587551(_0xe9d6db,_0x9413e2(0x140)),'withText':!0x1,'icon':_0x30e0f9[_0x9413e2(0x14e)],'tooltip':!0x0,'tooltipPosition':'sw','class':_0x9413e2(0x132)}),_0x14c157[_0x9413e2(0x15e)](_0x9413e2(0x13c))['to'](_0x41975f,_0x9413e2(0x13e)),_0x14c157[_0x9413e2(0x15e)](_0x9413e2(0x160))['to'](this,_0x9413e2(0x160)),_0x14c157['on'](_0x9413e2(0x12c),()=>{const _0x4336b8=_0x9413e2;_0x41975f[_0x4336b8(0x13e)]=!_0x41975f[_0x4336b8(0x13e)],_0x41975f[_0x4336b8(0x13e)]?this[_0x4336b8(0x149)][_0x4336b8(0x15f)]():this[_0x4336b8(0x15f)]();});const _0x4e3577=()=>{const _0x45e9e8=_0x9413e2;_0x451829[_0x45e9e8(0x14f)][_0x45e9e8(0x130)](()=>{const _0x48142a=_0x45e9e8;if(_0x2e50c9(this[_0x48142a(0x159)])){const _0x4dfc11=new _0x11c65b(this[_0x48142a(0x138)][_0x48142a(0x14a)][_0x48142a(0x159)]),_0xd87b4d=_0x4dfc11[_0x48142a(0x15d)],_0x360378=_0x48142a(0x158)===_0xe9d6db[_0x48142a(0x164)]?_0x48142a(0x13b):_0x48142a(0x153);_0x4dfc11[_0x48142a(0x152)](),_0x14c157[_0x48142a(0x159)][_0x48142a(0x14d)][_0x360378]=_0xd87b4d-_0x4dfc11[_0x48142a(0x15d)]+0x1+'px';}});};return this[_0x9413e2(0x138)][_0x9413e2(0x14a)]['on'](_0x9413e2(0x143),_0x4e3577),this['on'](_0x9413e2(0x12e),_0x4e3577),_0x14c157;}[_0x209b26(0x15a)](){const _0xa49ea5=_0x209b26,_0x53f56a=this[_0xa49ea5(0x138)][_0xa49ea5(0x14a)][_0xa49ea5(0x159)][_0xa49ea5(0x145)];this[_0xa49ea5(0x142)](_0xa49ea5(0x15a),_0x53f56a);}[_0x209b26(0x15f)](_0x4725f8){const _0x127063=_0x209b26;-0x1===_0x4725f8?this[_0x127063(0x154)][_0x127063(0x141)]():this[_0x127063(0x154)][_0x127063(0x131)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x539418=_0x177e;(function(_0x12ba2a,_0x39fa82){const _0x27ad66=_0x177e,_0x4cee7a=_0x12ba2a();while(!![]){try{const _0x41c2fb=-parseInt(_0x27ad66(0x172))/0x1*(parseInt(_0x27ad66(0x168))/0x2)+-parseInt(_0x27ad66(0x15e))/0x3+parseInt(_0x27ad66(0x162))/0x4+parseInt(_0x27ad66(0x160))/0x5+-parseInt(_0x27ad66(0x159))/0x6+parseInt(_0x27ad66(0x16f))/0x7+parseInt(_0x27ad66(0x157))/0x8;if(_0x41c2fb===_0x39fa82)break;else _0x4cee7a['push'](_0x4cee7a['shift']());}catch(_0x22ef74){_0x4cee7a['push'](_0x4cee7a['shift']());}}}(_0x5f5a,0xce90e));import{ToolbarView as _0x290c61,ButtonView as _0x4ed947}from'ckeditor5/src/ui.js';import{getTranslation as _0x101fcb}from'../../utils/common-translations.js';export const AIFormToolbarViewMainActionLabel={'REPLACE':_0x539418(0x175),'INSERT':_0x539418(0x171)};function _0x177e(_0x5c7139,_0x3b435a){const _0x5f5aa1=_0x5f5a();return _0x177e=function(_0x177e09,_0x30fb94){_0x177e09=_0x177e09-0x155;let _0x1764b6=_0x5f5aa1[_0x177e09];return _0x1764b6;},_0x177e(_0x5c7139,_0x3b435a);}export default class Tt extends _0x290c61{constructor(_0x41ceec){const _0x327389=_0x539418;super(_0x41ceec),this[_0x327389(0x173)](_0x327389(0x167),!0x1),this[_0x327389(0x173)](_0x327389(0x158),AIFormToolbarViewMainActionLabel[_0x327389(0x161)]),this[_0x327389(0x15b)]=this[_0x327389(0x15c)]('',_0x327389(0x16d)),this[_0x327389(0x15b)][_0x327389(0x174)](_0x327389(0x156))['to'](this,_0x327389(0x158),_0x3e6422=>_0x101fcb(_0x41ceec,_0x327389(0x177)+_0x3e6422[_0x327389(0x16c)]()+_0x327389(0x15d))),this[_0x327389(0x163)]=this[_0x327389(0x15c)](_0x101fcb(_0x41ceec,_0x327389(0x169))),this[_0x327389(0x15a)]=this[_0x327389(0x15c)](_0x101fcb(_0x41ceec,_0x327389(0x16a))),this[_0x327389(0x165)]=this[_0x327389(0x15c)](_0x101fcb(_0x41ceec,_0x327389(0x16e)));const _0x4358bc=this[_0x327389(0x166)];this[_0x327389(0x170)]({'attributes':{'class':[_0x327389(0x164),_0x4358bc['if'](_0x327389(0x167),_0x327389(0x16b),_0x3486af=>!_0x3486af)]}}),this[_0x327389(0x155)][_0x327389(0x176)]([this[_0x327389(0x15b)],this[_0x327389(0x163)],this[_0x327389(0x15a)],this[_0x327389(0x165)]]);}[_0x539418(0x15c)](_0x2f5bae,_0x2fd9db){const _0x538864=_0x539418,_0x293562=new _0x4ed947(this[_0x538864(0x15f)]);return _0x293562[_0x538864(0x173)]({'label':_0x2f5bae,'class':_0x2fd9db||'','isVisible':!0x0,'withText':!0x0}),_0x293562;}}function _0x5f5a(){const _0x3b7520=['REPLACE','5917768EuWnBq','insertButton','ck-ai-form__toolbar','stopButton','bindTemplate','isVisible','15602ffuoqW','Insert\x20below','Try\x20again','ck-hidden','toUpperCase','ck-button-action','Stop','324177jCSoTK','extendTemplate','insert','17OUYOeJ','set','bind','replace','addMany','AI_','items','label','3517464qgkzuH','mainAction','2248080gxYxEW','tryAgainButton','replaceButton','_createButton','_CONTENT','2226450PbQyrU','locale','650525aCRiWW'];_0x5f5a=function(){return _0x3b7520;};return _0x5f5a();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x5a67(){const _0x58b856=['Ask\x20AI\x20to\x20edit\x20or\x20generate','Ask\x20AI\x20to\x20improve\x20generated\x20text','focusFirst','errorView','bindTo','forwardCycle','focusCycler','bindTemplate','delegate','bind','copyButtonView','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','execute','setTemplate','search','createCollection','253cUEhDF','replaceContent','promptView','startProcessing','value','locale','Empty\x20history','_promptHistory','high','351JyYBHY','fieldView','element','finishProcessing','_focusables','queryView','1109946vznaYq','add','submitPrompt','contentArea','61082LibrRN','items','text','submit','4019FfCYCL','isError','112sXKSRN','fire','insertContentBelow','reset','shift\x20+\x20tab','focusTracker','_createToolbar','stopButton','322812VVKPvc','clearHistory','92VTgxpC','ck-ai-form','_createHistoryView','label','isEnabled','tryAgainEvent','set','focusLast','isProcessing','backwardCycle','trim','ck-hidden','handleError','145272rZaFyi','isVisible','REPLACE','55570yjkWMT','43047CkXqir','stopProcessing','focusNext','ck-ai-form-content','toolbar','AI_ERROR_FAILED','stop','focus','focusPrevious','insertButton','replaceButton','div','historyGroupView','keystrokes','listenTo','prompt','tryAgainButton','render','5setfmp','tab','mainAction','_createPromptView','clear'];_0x5a67=function(){return _0x58b856;};return _0x5a67();}const _0x371595=_0x3bb8;(function(_0x1bf937,_0x176203){const _0x256157=_0x3bb8,_0x4c356c=_0x1bf937();while(!![]){try{const _0x31eca9=-parseInt(_0x256157(0x97))/0x1+-parseInt(_0x256157(0xa1))/0x2+parseInt(_0x256157(0xb4))/0x3*(parseInt(_0x256157(0xa3))/0x4)+-parseInt(_0x256157(0xc6))/0x5*(-parseInt(_0x256157(0x8f))/0x6)+parseInt(_0x256157(0x93))/0x7*(-parseInt(_0x256157(0x99))/0x8)+-parseInt(_0x256157(0x89))/0x9*(-parseInt(_0x256157(0xb3))/0xa)+-parseInt(_0x256157(0x80))/0xb*(parseInt(_0x256157(0xb0))/0xc);if(_0x31eca9===_0x176203)break;else _0x4c356c['push'](_0x4c356c['shift']());}catch(_0x23a076){_0x4c356c['push'](_0x4c356c['shift']());}}}(_0x5a67,0x28752));import{FocusTracker as _0x3c03eb,KeystrokeHandler as _0x513faa}from'ckeditor5/src/utils.js';function _0x3bb8(_0x4756c6,_0x5e8287){const _0x5a67f6=_0x5a67();return _0x3bb8=function(_0x3bb8c7,_0x4ed866){_0x3bb8c7=_0x3bb8c7-0x80;let _0x3a47cb=_0x5a67f6[_0x3bb8c7];return _0x3a47cb;},_0x3bb8(_0x4756c6,_0x5e8287);}import{View as _0x1a736e,FocusCycler as _0x29b635,createLabeledTextarea as _0x3dd305}from'ckeditor5/src/ui.js';import _0x840328,{AIFormToolbarViewMainActionLabel as _0x32c31}from'./aiformtoolbarview.js';import _0x2e0bee from'./aiformcontentarea.js';import _0x22ab90 from'./aiformerrorview.js';import _0x2a01dd from'./aiformpromptview.js';import _0x4b78a7 from'./aihistorylistview.js';import _0x1d6afa from'./aihistorylistitemview.js';import _0x39712e from'./prompthistory.js';import{getTranslation as _0x3fb9ed}from'../../utils/common-translations.js';import{escape as _0x155715}from'lodash-es';export default class x extends _0x1a736e{constructor(_0x19d0ff,_0xec230c,_0x10547d=''){const _0x541e25=_0x3bb8;super(_0x19d0ff),this[_0x541e25(0xa9)](_0x541e25(0xa7),!0x0),this[_0x541e25(0xa9)](_0x541e25(0xab),!0x1),this[_0x541e25(0xa9)](_0x541e25(0xc3),''),this[_0x541e25(0xa9)](_0x541e25(0x84),''),this[_0x541e25(0xa9)](_0x541e25(0x98),!0x1),this[_0x541e25(0xa9)](_0x541e25(0xc8),_0x32c31[_0x541e25(0xb2)]),this[_0x541e25(0x87)]=new _0x39712e(),this[_0x541e25(0xce)]=new _0x22ab90(_0x19d0ff),this[_0x541e25(0x92)]=new _0x2e0bee(_0x19d0ff,_0x10547d),this[_0x541e25(0x92)][_0x541e25(0xd4)](_0x541e25(0xab))['to'](this),this[_0x541e25(0x92)][_0x541e25(0xd4)](_0x541e25(0x84))['to'](this),this[_0x541e25(0xb8)]=this[_0x541e25(0x9f)](),this[_0x541e25(0xb8)][_0x541e25(0xd4)](_0x541e25(0xc8))['to'](this),this[_0x541e25(0x82)]=this[_0x541e25(0xc9)](),this[_0x541e25(0x9e)]=new _0x3c03eb(),this[_0x541e25(0xc1)]=new _0x513faa(),this[_0x541e25(0x8d)]=this[_0x541e25(0xda)]([this[_0x541e25(0x92)],this[_0x541e25(0x92)][_0x541e25(0xd5)],this[_0x541e25(0xb8)],this[_0x541e25(0x82)]]),this[_0x541e25(0xd1)]=new _0x29b635({'focusables':this[_0x541e25(0x8d)],'focusTracker':this[_0x541e25(0x9e)],'keystrokeHandler':this[_0x541e25(0xc1)],'actions':{'focusPrevious':_0x541e25(0x9d),'focusNext':_0x541e25(0xc7)}}),this[_0x541e25(0x82)][_0x541e25(0xd1)]['on'](_0x541e25(0xd0),_0x176238=>{const _0x24682a=_0x541e25;this[_0x24682a(0xd1)][_0x24682a(0xb6)](),_0x176238[_0x24682a(0xba)]();}),this[_0x541e25(0x82)][_0x541e25(0xd1)]['on'](_0x541e25(0xac),_0x433e07=>{const _0x190088=_0x541e25;this[_0x190088(0xd1)][_0x190088(0xbc)](),_0x433e07[_0x190088(0xba)]();}),this[_0x541e25(0x82)][_0x541e25(0x8e)][_0x541e25(0x8a)][_0x541e25(0xd4)](_0x541e25(0x84))['to'](this,_0x541e25(0xc3));const _0x11c014=this[_0x541e25(0xd2)];this[_0x541e25(0xd8)]({'tag':_0x541e25(0xbf),'attributes':{'class':['ck',_0x541e25(0xa4),_0xec230c],'tabindex':'-1'},'children':[{'tag':_0x541e25(0xbf),'attributes':{'class':['ck',_0x541e25(0xb7)]},'children':[{'tag':_0x541e25(0xbf),'attributes':{'class':[_0x11c014['if'](_0x541e25(0x98),_0x541e25(0xae),_0x2165b1=>!_0x2165b1)]},'children':[this[_0x541e25(0xce)]]},this[_0x541e25(0x92)],this[_0x541e25(0xb8)],this[_0x541e25(0x82)]]}]});}[_0x371595(0xc5)](){const _0x4dd1d6=_0x371595;super[_0x4dd1d6(0xc5)](),this[_0x4dd1d6(0x9e)][_0x4dd1d6(0x90)](this[_0x4dd1d6(0x92)][_0x4dd1d6(0x8b)]),this[_0x4dd1d6(0x9e)][_0x4dd1d6(0x90)](this[_0x4dd1d6(0x92)][_0x4dd1d6(0xd5)][_0x4dd1d6(0x8b)]),this[_0x4dd1d6(0x9e)][_0x4dd1d6(0x90)](this[_0x4dd1d6(0xb8)][_0x4dd1d6(0x8b)]),this[_0x4dd1d6(0x9e)][_0x4dd1d6(0x90)](this[_0x4dd1d6(0x82)][_0x4dd1d6(0x8b)]),this[_0x4dd1d6(0xc1)][_0x4dd1d6(0xc2)](this[_0x4dd1d6(0x8b)]);}[_0x371595(0xbb)](_0x13ac54=0x1){const _0x1158ae=_0x371595;-0x1===_0x13ac54?this[_0x1158ae(0xd1)][_0x1158ae(0xaa)]():this[_0x1158ae(0xd1)][_0x1158ae(0xcd)]();}[_0x371595(0x9c)](){const _0x9b83ad=_0x371595;this[_0x9b83ad(0xc3)]='',this[_0x9b83ad(0x84)]='',this[_0x9b83ad(0x98)]=!0x1,this[_0x9b83ad(0x82)][_0x9b83ad(0x9c)](),this[_0x9b83ad(0x92)][_0x9b83ad(0xb1)]=!0x1,this[_0x9b83ad(0xb8)][_0x9b83ad(0xb1)]=!0x1;}[_0x371595(0xc9)](){const _0x2b3906=_0x371595,_0x2680f=this[_0x2b3906(0x85)],_0x492c63=new _0x2a01dd(_0x2680f,{'queryView':{'label':_0x3fb9ed(_0x2680f,_0x2b3906(0xcb)),'creator':_0x3dd305,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x3fb9ed(_0x2680f,_0x2b3906(0x86)),'secondary':_0x3fb9ed(_0x2680f,_0x2b3906(0xd6))}}},'filteredView':this[_0x2b3906(0xa5)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x492c63[_0x2b3906(0xd4)](_0x2b3906(0xa7))['to'](this,_0x2b3906(0xa7),this,_0x2b3906(0xab),(_0x1b92f6,_0x28085c)=>_0x1b92f6&&!_0x28085c),this[_0x2b3906(0xc2)](_0x492c63,_0x2b3906(0x96),(_0x1a21ba,_0x3ca9df)=>{const _0x269103=_0x2b3906;this[_0x269103(0xc3)]=_0x3ca9df;const _0x11cfcf=_0x155715(_0x3ca9df);this[_0x269103(0x9a)](_0x269103(0x91),_0x11cfcf),_0x3ca9df[_0x269103(0xad)]()&&this[_0x269103(0x87)][_0x269103(0x90)]({'prompt':_0x11cfcf},0x0);},{'priority':_0x2b3906(0x88)}),_0x492c63;}[_0x371595(0xa5)](){const _0x2e6288=_0x371595,_0x182cd6=new _0x4b78a7(this[_0x2e6288(0x85)]);return _0x182cd6[_0x2e6288(0xc0)][_0x2e6288(0x94)][_0x2e6288(0xcf)](this[_0x2e6288(0x87)])['as'](_0x1d6afa),_0x182cd6['on'](_0x2e6288(0xa2),()=>{const _0x50c789=_0x2e6288;this[_0x50c789(0x87)][_0x50c789(0xca)](),this[_0x50c789(0x82)][_0x50c789(0xd9)](''),this[_0x50c789(0x82)][_0x50c789(0xbb)]();}),_0x182cd6;}[_0x371595(0x9f)](){const _0x4c5a3a=_0x371595,_0x2f71ec=new _0x840328(this[_0x4c5a3a(0x85)]);return _0x2f71ec[_0x4c5a3a(0xbe)][_0x4c5a3a(0xd4)](_0x4c5a3a(0xa7))['to'](this,_0x4c5a3a(0xa7),this,_0x4c5a3a(0xab),this,_0x4c5a3a(0x84),(_0x9c2c45,_0x2f8108,_0x5ea6b1)=>_0x9c2c45&&!_0x2f8108&&!!_0x5ea6b1),_0x2f71ec[_0x4c5a3a(0xbe)][_0x4c5a3a(0xd3)](_0x4c5a3a(0xd7))['to'](this,_0x4c5a3a(0x81)),_0x2f71ec[_0x4c5a3a(0xbd)][_0x4c5a3a(0xd4)](_0x4c5a3a(0xa7))['to'](this,_0x4c5a3a(0xa7),this,_0x4c5a3a(0xab),this,_0x4c5a3a(0x84),(_0x386384,_0x7d3310,_0x1fa403)=>_0x386384&&!_0x7d3310&&!!_0x1fa403),_0x2f71ec[_0x4c5a3a(0xbd)][_0x4c5a3a(0xd3)](_0x4c5a3a(0xd7))['to'](this,_0x4c5a3a(0x9b)),_0x2f71ec[_0x4c5a3a(0xc4)][_0x4c5a3a(0xd4)](_0x4c5a3a(0xa7))['to'](this,_0x4c5a3a(0xa7),this,_0x4c5a3a(0xab),(_0x4d0d1e,_0x22c317)=>_0x4d0d1e&&!_0x22c317),_0x2f71ec[_0x4c5a3a(0xc4)][_0x4c5a3a(0xd3)](_0x4c5a3a(0xd7))['to'](this,_0x4c5a3a(0xa8)),_0x2f71ec[_0x4c5a3a(0xa0)][_0x4c5a3a(0xd4)](_0x4c5a3a(0xa7))['to'](this,_0x4c5a3a(0xab)),_0x2f71ec[_0x4c5a3a(0xa0)][_0x4c5a3a(0xd3)](_0x4c5a3a(0xd7))['to'](this,_0x4c5a3a(0xb5)),_0x2f71ec;}[_0x371595(0x83)](){const _0x477378=_0x371595;this[_0x477378(0x84)]='',this[_0x477378(0x98)]=!0x1,this[_0x477378(0xab)]=!0x0,this[_0x477378(0x92)][_0x477378(0xb1)]=!0x0,this[_0x477378(0xb8)][_0x477378(0xb1)]=!0x0,this[_0x477378(0x92)][_0x477378(0xbb)]();}[_0x371595(0x8c)](){const _0x5b30ea=_0x371595,_0x28a2ef=this[_0x5b30ea(0x85)];this[_0x5b30ea(0xab)]=!0x1,this[_0x5b30ea(0xc3)]='',this[_0x5b30ea(0x82)][_0x5b30ea(0x9c)](),this[_0x5b30ea(0x84)]&&(this[_0x5b30ea(0x82)][_0x5b30ea(0x8e)][_0x5b30ea(0xa6)]=_0x3fb9ed(_0x28a2ef,_0x5b30ea(0xcc)));}[_0x371595(0xaf)](_0x5ca1ee){const _0x3a4d95=_0x371595,_0x5e2ec7=this[_0x3a4d95(0x85)];this[_0x3a4d95(0x8c)](),this[_0x3a4d95(0x98)]=!0x0,this[_0x3a4d95(0xce)][_0x3a4d95(0x95)]=_0x5ca1ee||_0x3fb9ed(_0x5e2ec7,_0x3a4d95(0xb9)),this[_0x3a4d95(0x84)]||(this[_0x3a4d95(0x92)][_0x3a4d95(0xb1)]=!0x1);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x548380,_0x6c0c1a){const _0x40cf2c=_0xf2c7,_0x1b0891=_0x548380();while(!![]){try{const _0x1eb730=-parseInt(_0x40cf2c(0x1a3))/0x1*(-parseInt(_0x40cf2c(0x1a6))/0x2)+parseInt(_0x40cf2c(0x1af))/0x3+-parseInt(_0x40cf2c(0x1ac))/0x4*(parseInt(_0x40cf2c(0x1a1))/0x5)+parseInt(_0x40cf2c(0x1ab))/0x6+-parseInt(_0x40cf2c(0x19e))/0x7*(-parseInt(_0x40cf2c(0x1a7))/0x8)+parseInt(_0x40cf2c(0x1a2))/0x9+parseInt(_0x40cf2c(0x1a5))/0xa*(-parseInt(_0x40cf2c(0x1a0))/0xb);if(_0x1eb730===_0x6c0c1a)break;else _0x1b0891['push'](_0x1b0891['shift']());}catch(_0x1467a0){_0x1b0891['push'](_0x1b0891['shift']());}}}(_0x59a5,0xbef43));import{ListItemView as _0x39b86f,ButtonView as _0x2978a0}from'ckeditor5/src/ui.js';function _0x59a5(){const _0x1419d6=['fire','4471737GDSGNI','7411047qlznUK','set','282139aeIvTT','5RFseSV','13876677qIETma','408914YtEyZr','prompt','1330GdoXRg','2nLKLeo','8hlURHB','children','execute','locale','4261080Stylgn','4067132FJRJdQ','add'];_0x59a5=function(){return _0x1419d6;};return _0x59a5();}function _0xf2c7(_0x5c0341,_0x15258f){const _0x59a527=_0x59a5();return _0xf2c7=function(_0xf2c72a,_0x190e3b){_0xf2c72a=_0xf2c72a-0x19e;let _0x122165=_0x59a527[_0xf2c72a];return _0x122165;},_0xf2c7(_0x5c0341,_0x15258f);}import _0x3121eb from'../dropdown/buttonlabelwithhighlightview.js';import{unescape as _0x587a39}from'lodash-es';export default class hs extends _0x39b86f{constructor(_0x512b6f){const _0x24c394=_0xf2c7;super();const _0x35126e=new _0x3121eb(),_0x161db4=new _0x2978a0(this[_0x24c394(0x1aa)],_0x35126e);this[_0x24c394(0x1a8)][_0x24c394(0x1ad)](_0x161db4),_0x161db4[_0x24c394(0x19f)]({'label':_0x512b6f[_0x24c394(0x1a4)],'withText':!0x0}),_0x161db4['on'](_0x24c394(0x1a9),()=>{const _0x447f6c=_0x24c394;this[_0x447f6c(0x1ae)](_0x447f6c(0x1a9),{'value':_0x587a39(_0x512b6f[_0x447f6c(0x1a4)])});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x19f6c9=_0x1651;function _0x1651(_0x476c2b,_0x313313){const _0x186c87=_0x186c();return _0x1651=function(_0x1651cf,_0x49fd44){_0x1651cf=_0x1651cf-0x171;let _0x148b06=_0x186c87[_0x1651cf];return _0x148b06;},_0x1651(_0x476c2b,_0x313313);}(function(_0x58c3f4,_0x324879){const _0x32ac90=_0x1651,_0x1c016c=_0x58c3f4();while(!![]){try{const _0x2cd1f1=-parseInt(_0x32ac90(0x180))/0x1+-parseInt(_0x32ac90(0x183))/0x2*(parseInt(_0x32ac90(0x18a))/0x3)+parseInt(_0x32ac90(0x173))/0x4*(parseInt(_0x32ac90(0x171))/0x5)+parseInt(_0x32ac90(0x187))/0x6*(parseInt(_0x32ac90(0x17a))/0x7)+-parseInt(_0x32ac90(0x175))/0x8*(parseInt(_0x32ac90(0x177))/0x9)+-parseInt(_0x32ac90(0x184))/0xa+parseInt(_0x32ac90(0x172))/0xb;if(_0x2cd1f1===_0x324879)break;else _0x1c016c['push'](_0x1c016c['shift']());}catch(_0x1ba07){_0x1c016c['push'](_0x1c016c['shift']());}}}(_0x186c,0xb4b19));import{ListView as _0xf4785a,ListItemGroupView as _0x3bfc48,ButtonView as _0x1c4c0b}from'ckeditor5/src/ui.js';import{getTranslation as _0x106060}from'../../utils/common-translations.js';export default class rs extends _0xf4785a{constructor(_0x5236e9){const _0x9e3d21=_0x1651;super(_0x5236e9),this[_0x9e3d21(0x181)]=this[_0x9e3d21(0x18c)](),this[_0x9e3d21(0x17b)]=new _0x3bfc48(),this[_0x9e3d21(0x17b)][_0x9e3d21(0x182)][_0x9e3d21(0x17e)](this[_0x9e3d21(0x181)],0x1),this[_0x9e3d21(0x17b)][_0x9e3d21(0x188)]=_0x106060(_0x5236e9,_0x9e3d21(0x185)),this[_0x9e3d21(0x17b)][_0x9e3d21(0x17c)][_0x9e3d21(0x18b)](_0x9e3d21(0x179))['to'](this),this[_0x9e3d21(0x17c)][_0x9e3d21(0x17e)](this[_0x9e3d21(0x17b)]);}[_0x19f6c9(0x17d)](){const _0x495ae1=_0x19f6c9;let _0x388c3a=0x0;for(const _0x26aaad of this[_0x495ae1(0x17c)])_0x388c3a+=_0x26aaad[_0x495ae1(0x17c)][_0x495ae1(0x186)];return{'resultsCount':_0x388c3a,'totalItemsCount':_0x388c3a};}[_0x19f6c9(0x18c)](){const _0x5eafe1=_0x19f6c9,_0x4c6307=this[_0x5eafe1(0x178)],_0x3cc442=new _0x1c4c0b(this[_0x5eafe1(0x178)]);return _0x3cc442[_0x5eafe1(0x176)]({'label':'('+_0x106060(_0x4c6307,_0x5eafe1(0x189))+')','withText':!0x0}),_0x3cc442['on'](_0x5eafe1(0x179),()=>this[_0x5eafe1(0x17f)](_0x5eafe1(0x174))),_0x3cc442;}}function _0x186c(){const _0x4f3d92=['_createClearHistoryButton','5nSEgHB','21582275dijVzC','2476628LEIitP','clearHistory','27616ePJIiZ','set','1710szTJxq','locale','execute','76321RqDJfV','historyGroupView','items','filter','add','fire','1065309UuNtTa','clearHistoryButton','children','2670rCMhFI','286940Licbbu','Prompt\x20history','length','564oaaXGB','label','Clear','2508kDjotx','delegate'];_0x186c=function(){return _0x4f3d92;};return _0x186c();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x21cb8a=_0x2872;(function(_0x6b8616,_0x1264c8){const _0x45d1ed=_0x2872,_0x10738b=_0x6b8616();while(!![]){try{const _0x4f3f8c=-parseInt(_0x45d1ed(0x128))/0x1+parseInt(_0x45d1ed(0x11a))/0x2+parseInt(_0x45d1ed(0x11f))/0x3+-parseInt(_0x45d1ed(0x12c))/0x4*(-parseInt(_0x45d1ed(0x11d))/0x5)+-parseInt(_0x45d1ed(0x127))/0x6*(parseInt(_0x45d1ed(0x122))/0x7)+-parseInt(_0x45d1ed(0x120))/0x8+parseInt(_0x45d1ed(0x125))/0x9*(parseInt(_0x45d1ed(0x12a))/0xa);if(_0x4f3f8c===_0x1264c8)break;else _0x10738b['push'](_0x10738b['shift']());}catch(_0x3c5f03){_0x10738b['push'](_0x10738b['shift']());}}}(_0x5684,0x4ba89));function _0x2872(_0x17bd5e,_0x48af9f){const _0x5684dd=_0x5684();return _0x2872=function(_0x287292,_0x522c06){_0x287292=_0x287292-0x113;let _0xf48777=_0x5684dd[_0x287292];return _0xf48777;},_0x2872(_0x17bd5e,_0x48af9f);}import{Collection as _0x6a0245}from'ckeditor5/src/utils.js';const cs=_0x21cb8a(0x126);function _0x5684(){const _0x1e4239=['111492vziHou','addMany','getItem','5eBfJrO','prompt','1842855lchtBz','4659800NksBIb','trim','7lnpplL','map','remove','1068759dvWnSX','CKEditor/AIFormView/PromptHistory','1112946xZrAiC','482334fVzBCZ','length','70XctRar','_saveToSessionStorage','235636TQwCSq','stringify','last','parse','add','_loadFromSessionStorage','setItem','toLowerCase'];_0x5684=function(){return _0x1e4239;};return _0x5684();}export default class os extends _0x6a0245{constructor(){const _0x16e409=_0x21cb8a;super(),this[_0x16e409(0x117)](),this['on'](_0x16e409(0x116),(_0x5345da,_0x322197)=>{const _0x3d29fa=_0x16e409,_0x247e57=Ss(_0x322197[_0x3d29fa(0x11e)]);for(const _0x5ed58a of this)if(_0x5ed58a!=_0x322197&&Ss(_0x5ed58a[_0x3d29fa(0x11e)])===_0x247e57){this[_0x3d29fa(0x124)](_0x5ed58a);break;}this[_0x3d29fa(0x129)]>0x14&&this[_0x3d29fa(0x124)](this[_0x3d29fa(0x114)]),this[_0x3d29fa(0x12b)]();}),this['on'](_0x16e409(0x124),()=>{const _0x203562=_0x16e409;this[_0x203562(0x12b)]();});}[_0x21cb8a(0x117)](){const _0x148248=_0x21cb8a,_0x51ee2b=sessionStorage[_0x148248(0x11c)](cs)||'[]';this[_0x148248(0x11b)](JSON[_0x148248(0x115)](_0x51ee2b));}[_0x21cb8a(0x12b)](){const _0x1afb3e=_0x21cb8a;sessionStorage[_0x1afb3e(0x118)](cs,JSON[_0x1afb3e(0x113)](this[_0x1afb3e(0x123)](_0x140d97=>_0x140d97)));}}function Ss(_0x9d26c4){const _0x244ad8=_0x21cb8a;return _0x9d26c4[_0x244ad8(0x119)]()[_0x244ad8(0x121)]();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x3298dd=_0x412c;(function(_0x37cd25,_0x41e993){const _0x1e0da8=_0x412c,_0x29d1c8=_0x37cd25();while(!![]){try{const _0x2d5ef4=-parseInt(_0x1e0da8(0x112))/0x1*(parseInt(_0x1e0da8(0x111))/0x2)+parseInt(_0x1e0da8(0x139))/0x3+parseInt(_0x1e0da8(0x130))/0x4*(parseInt(_0x1e0da8(0x129))/0x5)+-parseInt(_0x1e0da8(0x11e))/0x6*(-parseInt(_0x1e0da8(0x12c))/0x7)+parseInt(_0x1e0da8(0x123))/0x8+parseInt(_0x1e0da8(0x127))/0x9+-parseInt(_0x1e0da8(0x121))/0xa;if(_0x2d5ef4===_0x41e993)break;else _0x29d1c8['push'](_0x29d1c8['shift']());}catch(_0x3f065e){_0x29d1c8['push'](_0x29d1c8['shift']());}}}(_0x360b,0x57083));import{Command as _0x3bf3fa}from'ckeditor5/src/core.js';function _0x360b(){const _0x215ce5=['getSelectedBlocks','custom','length','3205935hEXOBJ','model','5mOWqYQ','from','includes','7MZsSKZ','reduce','editor','plugins','1757580NULThJ','isEnabled','_hasContext','execute','refresh','get','isCollapsed','document','ai.aiAssistant.disabledElements','977301sdeDxI','showUI','isEmpty','_commandDefinitions','selection','set','180062yQgIFw','7ltmdWN','enabledCommandsIds','getItems','hasContent','getFirstRange','change:isEnabled','getRanges','requiresContent','add','config','element','change:_hasContext','172764RzMPQn','commands','concat','4044570TjAaNE','name','1927888acwWpb'];_0x360b=function(){return _0x215ce5;};return _0x360b();}import _0x56c2d2 from'../aiassistantui.js';function _0x412c(_0x314a59,_0x30a55e){const _0x360b3d=_0x360b();return _0x412c=function(_0x412c0d,_0x2a683f){_0x412c0d=_0x412c0d-0x110;let _0x4d53be=_0x360b3d[_0x412c0d];return _0x4d53be;},_0x412c(_0x314a59,_0x30a55e);}export default class j extends _0x3bf3fa{constructor(_0x88fb83,_0x56401e){const _0x4b8fea=_0x412c;super(_0x88fb83),this[_0x4b8fea(0x13c)]=_0x56401e?_0x56401e[_0x4b8fea(0x12d)]((_0xb9f162,_0x1ff6d3)=>_0xb9f162[_0x4b8fea(0x120)](_0x1ff6d3[_0x4b8fea(0x11f)]),new Array()):[],this[_0x4b8fea(0x110)](_0x4b8fea(0x113),[]),this['on'](_0x4b8fea(0x11d),(_0x448054,_0x44b0bd,_0x4da1ed)=>{const _0x20ab26=_0x4b8fea;this[_0x20ab26(0x131)]&&(this[_0x20ab26(0x113)]=K(this[_0x20ab26(0x13c)],_0x4da1ed));}),this[_0x4b8fea(0x110)](_0x4b8fea(0x132),!0x1),this['on'](_0x4b8fea(0x117),(_0x4ec468,_0x1199fb,_0x28de1f)=>{const _0x24351e=_0x4b8fea;this[_0x24351e(0x113)]=_0x28de1f?K(this[_0x24351e(0x13c)],this[_0x24351e(0x132)]):[];});}[_0x3298dd(0x134)](){const _0x49438f=_0x3298dd,_0x529a3a=this[_0x49438f(0x12e)][_0x49438f(0x128)];this[_0x49438f(0x132)]=function(_0x4c42eb){const _0x479f87=_0x49438f,_0x5d79d5=_0x4c42eb[_0x479f87(0x137)][_0x479f87(0x13d)];return _0x5d79d5[_0x479f87(0x136)]?0x0!==[..._0x5d79d5[_0x479f87(0x124)]()][_0x479f87(0x126)]&&![..._0x5d79d5[_0x479f87(0x124)]()][0x0][_0x479f87(0x13b)]:!!_0x4c42eb[_0x479f87(0x115)](_0x5d79d5[_0x479f87(0x116)]());}(_0x529a3a);const _0x7d8c6=_0x529a3a[_0x49438f(0x137)][_0x49438f(0x13d)],_0x3fcf98=this[_0x49438f(0x12e)][_0x49438f(0x11b)][_0x49438f(0x135)](_0x49438f(0x138));for(const _0x997750 of _0x7d8c6[_0x49438f(0x118)]())for(const _0x21fe7c of _0x997750[_0x49438f(0x114)]())if(_0x21fe7c['is'](_0x49438f(0x11c))&&_0x3fcf98[_0x49438f(0x12b)](_0x21fe7c[_0x49438f(0x122)]))return void(this[_0x49438f(0x131)]=!0x1);this[_0x49438f(0x131)]=!0x0;}[_0x3298dd(0x133)](_0x15aba4='',_0x241aa8='',_0x38f31e=_0x3298dd(0x125)){const _0x265f70=_0x3298dd;this[_0x265f70(0x12e)][_0x265f70(0x12f)][_0x265f70(0x135)](_0x56c2d2)[_0x265f70(0x13a)](_0x15aba4,_0x241aa8,_0x38f31e);}}function K(_0x33177c,_0x5ded0b){const _0x2910af=_0x3298dd,_0xa6845c=new Set();for(const _0x34240c of _0x33177c)(_0x5ded0b||!0x1===_0x34240c[_0x2910af(0x119)])&&_0xa6845c[_0x2910af(0x11a)](_0x34240c['id']);return Array[_0x2910af(0x12a)](_0xa6845c);}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(
|
|
23
|
+
export function getTranslation(_0x56b816,_0x266446,_0xf532f0){const t=_0x56b816['t'];switch(_0x266446){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',_0xf532f0);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',_0xf532f0);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0xf532f0);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'},_0xf532f0);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 _0x266446;}}
|