@ckeditor/ckeditor5-ai 43.3.0-alpha.0 → 43.3.0-alpha.3
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/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.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-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.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/eu.js +1 -1
- package/dist/translations/eu.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/gu.js +1 -1
- package/dist/translations/gu.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/hy.js +1 -1
- package/dist/translations/hy.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/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.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/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.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/oc.js +1 -1
- package/dist/translations/oc.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/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.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/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +8 -8
- package/src/adapters/aiadapter.js +1 -1
- package/src/adapters/aitextadapter.js +1 -1
- package/src/adapters/awstextadapter.js +1 -1
- package/src/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant.js +1 -1
- package/src/aiassistantediting.js +1 -1
- package/src/aiassistantui.js +1 -1
- package/src/index.js +1 -1
- package/src/ui/aiassistantcontroller.js +2 -2
- package/src/ui/form/aiformcontentarea.js +1 -1
- package/src/ui/form/aiformerrorview.js +1 -1
- package/src/ui/form/aiformpromptview.js +1 -1
- package/src/ui/form/aiformtoolbarview.js +1 -1
- package/src/ui/form/aiformview.js +1 -1
- package/src/ui/form/aihistorylistitemview.js +1 -1
- package/src/ui/form/aihistorylistview.js +1 -1
- package/src/ui/form/prompthistory.js +1 -1
- package/src/ui/showaiassistantcommand.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/normalizecommandsconfig.js +1 -1
package/src/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x344cbe,_0x4a78e0){var _0x23a2c9=_0x24b2,_0x9023cc=_0x344cbe();while(!![]){try{var _0x23c4cc=parseInt(_0x23a2c9(0xdd))/0x1+-parseInt(_0x23a2c9(0xdf))/0x2+-parseInt(_0x23a2c9(0xd8))/0x3*(-parseInt(_0x23a2c9(0xdb))/0x4)+parseInt(_0x23a2c9(0xd9))/0x5*(-parseInt(_0x23a2c9(0xde))/0x6)+parseInt(_0x23a2c9(0xe0))/0x7*(-parseInt(_0x23a2c9(0xdc))/0x8)+-parseInt(_0x23a2c9(0xda))/0x9+parseInt(_0x23a2c9(0xd7))/0xa*(parseInt(_0x23a2c9(0xe1))/0xb);if(_0x23c4cc===_0x4a78e0)break;else _0x9023cc['push'](_0x9023cc['shift']());}catch(_0x1fb97c){_0x9023cc['push'](_0x9023cc['shift']());}}}(_0x5dd3,0xeb404));export{default as AIAssistant}from'./aiassistant.js';function _0x5dd3(){var _0x2c2daf=['518wCOJzK','25083872FSJQYy','10FFKEEk','111czpikW','2388245iALjND','12260034MgfaAG','42248IjGWfT','112256sPbpRa','1835904Gqurgt','6PjgeGF','1330438TUxmZH'];_0x5dd3=function(){return _0x2c2daf;};return _0x5dd3();}export{default as AIAdapter,AIRequestError}from'./adapters/aiadapter.js';function _0x24b2(_0x1c9f1e,_0x4ff953){var _0x5dd3a4=_0x5dd3();return _0x24b2=function(_0x24b2a3,_0x899a94){_0x24b2a3=_0x24b2a3-0xd7;var _0x1dfc97=_0x5dd3a4[_0x24b2a3];return _0x1dfc97;},_0x24b2(_0x1c9f1e,_0x4ff953);}export{default as AITextAdapter}from'./adapters/aitextadapter.js';export{default as OpenAITextAdapter}from'./adapters/openaitextadapter.js';export{default as AWSTextAdapter}from'./adapters/awstextadapter.js';import'./augmentation.js';
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
|
|
23
|
+
const _0x9ea4be=_0x5263;(function(_0x5c0ba4,_0x5234db){const _0x4e8069=_0x5263,_0x4ab03d=_0x5c0ba4();while(!![]){try{const _0xd52d4=parseInt(_0x4e8069(0x139))/0x1+-parseInt(_0x4e8069(0x113))/0x2+parseInt(_0x4e8069(0x12e))/0x3*(parseInt(_0x4e8069(0x127))/0x4)+-parseInt(_0x4e8069(0x128))/0x5*(-parseInt(_0x4e8069(0x12d))/0x6)+-parseInt(_0x4e8069(0x11e))/0x7+parseInt(_0x4e8069(0x108))/0x8*(-parseInt(_0x4e8069(0x118))/0x9)+parseInt(_0x4e8069(0x149))/0xa;if(_0xd52d4===_0x5234db)break;else _0x4ab03d['push'](_0x4ab03d['shift']());}catch(_0x196d35){_0x4ab03d['push'](_0x4ab03d['shift']());}}}(_0x2a48,0x48d00));import{ObservableMixin as _0x13b91c}from'ckeditor5/src/utils.js';import{AIRequestError as _0x5de769}from'../adapters/aiadapter.js';function _0x2a48(){const _0x297b91=['catch','textAdapter','innerHTML','setContentOf','processor','finally','ELEMENT_NODE','remove','308004cahyDt','_stripMarkdownSyntax','value','render','substring','_xmlSerializer','editor','mainAction','toModel','name','text/html','document','once','element','serializeToString','set:currentContext','3696720hCZTYy','prompt','view','stopProcessing','startProcessing','previousLabel','then','push','<h1></h1>','previousQuery','exec','```html','htmlProcessor','rename','reset','div','body','trim','handleError','startsWith','```','endsWith','submitPrompt','editing','initialContext','updateView','createElement','currentContext','stringify','message','359864FbVSPf','parseFromString','_isH1TagSupportEnabled','set','finishProcessing','stopListening','previousActionId','querySelector','tryAgainEvent','toView','isRendered','398264eYvuVJ','viewToDom','from','_normalizeResponseHeadings','currentResponse','36LIOwCp','_sanitizationContainer','_handleQuery','_parseAndNormalizeContent','isProcessing','listenTo','1795297ZMCgAH','previousContext','domConverter','childNodes','match','makeRequest','custom','nodeType','_sanitizeHTML','4tGTBNx','95595kdwohL','abort','data','_domParser','destroy','24FlqBFO','538869blMGBQ','length','reverse'];_0x2a48=function(){return _0x297b91;};return _0x2a48();}function _0x5263(_0x24d49b,_0x3b4ed3){const _0x2a485c=_0x2a48();return _0x5263=function(_0x52639e,_0x2fb66e){_0x52639e=_0x52639e-0xf5;let _0x4b0c86=_0x2a485c[_0x52639e];return _0x4b0c86;},_0x5263(_0x24d49b,_0x3b4ed3);}import{Matcher as _0x2cfe1e,UpcastWriter as _0x22db9a}from'ckeditor5/src/engine.js';const Z=new RegExp(/^(.*?)<[a-zA-Z][a-zA-Z0-9_\-.]*[ >]/,'is');export default class v extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x13b91c(){constructor(_0x4db8e5,_0xd1cae3,_0x3eebd9){const _0x4df554=_0x5263;super(),this[_0x4df554(0x13f)]=_0x4db8e5,this[_0x4df554(0x132)]=_0xd1cae3,this[_0x4df554(0x119)]=document[_0x4df554(0x104)](_0x4df554(0xf9)),this[_0x4df554(0x12b)]=new DOMParser(),this[_0x4df554(0x13e)]=new XMLSerializer(),this[_0x4df554(0x14b)]=_0x3eebd9,this[_0x4df554(0x10b)]({'initialContext':'','currentContext':'','currentResponse':'','previousContext':void 0x0,'previousQuery':void 0x0,'previousLabel':void 0x0,'isProcessing':!0x1}),this['on'](_0x4df554(0x148),(_0x5b57e5,_0x78db28,_0x1cef4b)=>{const _0x335222=_0x4df554;this[_0x335222(0x14b)][_0x335222(0x13b)]=this[_0x335222(0x126)](_0x1cef4b);}),this[_0x4df554(0x11d)](this[_0x4df554(0x14b)],_0x4df554(0x100),(_0x3d2b14,_0x4304e8)=>{const _0x4b3e07=_0x4df554,_0x372704=this[_0x4b3e07(0x105)]||this[_0x4b3e07(0x102)];this[_0x4b3e07(0x11a)](_0x4304e8,_0x372704,_0x4b3e07(0x124));}),this[_0x4df554(0x11d)](this[_0x4df554(0x14b)],_0x4df554(0x110),()=>{const _0x53d773=_0x4df554;this[_0x53d773(0x14b)][_0x53d773(0x14a)]=this[_0x53d773(0x14e)],this[_0x53d773(0x11a)](this[_0x53d773(0x152)],this[_0x53d773(0x11f)],this[_0x53d773(0x10e)],this[_0x53d773(0x14e)]);}),this[_0x4df554(0x11d)](this[_0x4df554(0x14b)],_0x4df554(0x14c),()=>{const _0x3612e1=_0x4df554;this[_0x3612e1(0x14c)]();});}[_0x9ea4be(0x12c)](){const _0x4a6dba=_0x9ea4be;this[_0x4a6dba(0x10d)]();}async[_0x9ea4be(0x103)]({actionId:_0x5d3bfa,query:_0x46a203,htmlContent:_0x410214,label:_0x564a3b,mainActionLabel:_0x1581ce}){const _0x591ad6=_0x9ea4be;this[_0x591ad6(0x14b)][_0x591ad6(0x14a)]=_0x564a3b,this[_0x591ad6(0x14b)][_0x591ad6(0x140)]=_0x1581ce,this[_0x591ad6(0x102)]=_0x410214,_0x46a203&&(this[_0x591ad6(0x14b)][_0x591ad6(0x112)]?this[_0x591ad6(0x11a)](_0x46a203,_0x410214,_0x5d3bfa,_0x564a3b):this[_0x591ad6(0x14b)][_0x591ad6(0x145)](_0x591ad6(0x13c),()=>{const _0x278b95=_0x591ad6;this[_0x278b95(0x11a)](_0x46a203,_0x410214,_0x5d3bfa,_0x564a3b);}));}[_0x9ea4be(0x14c)](){const _0x3932e3=_0x9ea4be;this[_0x3932e3(0x11c)]&&(this[_0x3932e3(0x11c)]=!0x1,this[_0x3932e3(0x14b)][_0x3932e3(0x10c)](),this[_0x3932e3(0x132)][_0x3932e3(0x129)]());}[_0x9ea4be(0xf8)](){const _0x2e45df=_0x9ea4be;this[_0x2e45df(0x102)]='',this[_0x2e45df(0x105)]='',this[_0x2e45df(0x117)]='',this[_0x2e45df(0x11f)]='',this[_0x2e45df(0x152)]='',this[_0x2e45df(0x14e)]='',this[_0x2e45df(0x10e)]=void 0x0,this[_0x2e45df(0x14b)][_0x2e45df(0xf8)](),this[_0x2e45df(0x14c)]();}async[_0x9ea4be(0x11a)](_0x30d781,_0x423e5d,_0x519e62,_0x3b0d72){const _0x57cfbd=_0x9ea4be;return this[_0x57cfbd(0x11c)]=!0x0,this[_0x57cfbd(0x14b)][_0x57cfbd(0x14d)](),this[_0x57cfbd(0x11f)]=_0x423e5d,this[_0x57cfbd(0x152)]=_0x30d781,this[_0x57cfbd(0x14e)]=_0x3b0d72||_0x30d781,this[_0x57cfbd(0x10e)]=_0x519e62,new Promise(_0x2075b8=>{const _0x4586cc=_0x57cfbd;this[_0x4586cc(0x132)][_0x4586cc(0x123)]({'query':_0x30d781,'context':_0x423e5d,'onData':_0x2567a3=>{const _0x2339b9=_0x4586cc;this[_0x2339b9(0x117)]=_0x2567a3,this[_0x2339b9(0x105)]=this[_0x2339b9(0x11b)](this[_0x2339b9(0x117)]);},'actionId':_0x519e62})[_0x4586cc(0x14f)](()=>{const _0x2826dc=_0x4586cc;!this[_0x2826dc(0x105)]&&this[_0x2826dc(0x117)]&&(this[_0x2826dc(0x105)]=this[_0x2826dc(0x11b)](this[_0x2826dc(0x117)],!0x0));})[_0x4586cc(0x131)](_0x29fe73=>{const _0x169b15=_0x4586cc;_0x29fe73 instanceof _0x5de769?this[_0x169b15(0x14b)][_0x169b15(0xfc)](_0x29fe73[_0x169b15(0x107)]):this[_0x169b15(0x14b)][_0x169b15(0xfc)](),_0x2075b8();})[_0x4586cc(0x136)](()=>{const _0x230376=_0x4586cc;this[_0x230376(0x14c)](),_0x2075b8();});});}[_0x9ea4be(0x11b)](_0x464792,_0x8822cf=!0x1){const _0x5d4c05=_0x9ea4be,_0x53623f=Z[_0x5d4c05(0x153)](_0x464792);_0x464792=_0x53623f?_0x464792[_0x5d4c05(0x13d)](_0x53623f[0x1][_0x5d4c05(0x12f)]):_0x464792[_0x5d4c05(0x12f)]<0x64&&!_0x8822cf?'':this[_0x5d4c05(0x13a)](_0x464792);const _0x21786c=this[_0x5d4c05(0x12b)][_0x5d4c05(0x109)](_0x464792,_0x5d4c05(0x143));if(_0x53623f){const _0x499084=Array[_0x5d4c05(0x115)](_0x21786c[_0x5d4c05(0xfa)][_0x5d4c05(0x121)]);_0x499084[_0x5d4c05(0x130)]();for(const _0x548b8e of _0x499084){if(_0x548b8e[_0x5d4c05(0x125)]==Node[_0x5d4c05(0x137)])break;_0x548b8e[_0x5d4c05(0x138)]();}}const _0xa250f4=this[_0x5d4c05(0x13f)][_0x5d4c05(0x12a)][_0x5d4c05(0x135)][_0x5d4c05(0x111)](this[_0x5d4c05(0x13e)][_0x5d4c05(0x147)](_0x21786c[_0x5d4c05(0xfa)]));return this[_0x5d4c05(0x10a)]()||this[_0x5d4c05(0x116)](_0xa250f4),this[_0x5d4c05(0x13f)][_0x5d4c05(0x12a)][_0x5d4c05(0x106)](this[_0x5d4c05(0x13f)][_0x5d4c05(0x12a)][_0x5d4c05(0x141)](_0xa250f4));}[_0x9ea4be(0x116)](_0x4c59d6){const _0x1b6852=_0x9ea4be,_0x2c58c4=new _0x22db9a(this[_0x1b6852(0x13f)][_0x1b6852(0x101)][_0x1b6852(0x14b)][_0x1b6852(0x144)]),_0x26f89f=new _0x2cfe1e({'name':/^h[1-5]$/}),_0x448a3a=[];let _0x328df9=!0x1;for(const _0x5d75d3 of _0x4c59d6)_0x5d75d3['is'](_0x1b6852(0x146))&&_0x26f89f[_0x1b6852(0x122)](_0x5d75d3)&&(_0x448a3a[_0x1b6852(0x150)](_0x5d75d3),'h1'==_0x5d75d3[_0x1b6852(0x142)]&&(_0x328df9=!0x0));if(_0x328df9){for(const _0x2bb41e of _0x448a3a)_0x2c58c4[_0x1b6852(0xf7)]('h'+(parseInt(_0x2bb41e[_0x1b6852(0x142)][0x1])+0x1),_0x2bb41e);}}[_0x9ea4be(0x10a)](){const _0xf14cb=_0x9ea4be,{data:_0x29a709,editing:_0x18b625}=this[_0xf14cb(0x13f)],_0x5d89a3=_0x29a709[_0xf14cb(0xf6)][_0xf14cb(0x111)](_0xf14cb(0x151)),_0x23d187=_0x29a709[_0xf14cb(0x111)](_0x29a709[_0xf14cb(0x141)](_0x5d89a3));return!!_0x18b625[_0xf14cb(0x14b)][_0xf14cb(0x120)][_0xf14cb(0x114)](_0x23d187)[_0xf14cb(0x10f)]('h1');}[_0x9ea4be(0x126)](_0x4ca9d8){const _0x2e589c=_0x9ea4be;return this[_0x2e589c(0x13f)][_0x2e589c(0x101)][_0x2e589c(0x14b)][_0x2e589c(0x120)][_0x2e589c(0x134)](this[_0x2e589c(0x119)],_0x4ca9d8),this[_0x2e589c(0x119)][_0x2e589c(0x133)];}[_0x9ea4be(0x13a)](_0x1ab095){const _0x246e9d=_0x9ea4be,_0x1ca09d=_0x1ab095[_0x246e9d(0xfb)]();return _0x1ca09d[_0x246e9d(0xfd)](_0x246e9d(0xf5))?_0x1ca09d[_0x246e9d(0xff)](_0x246e9d(0xfe))?_0x1ca09d[_0x246e9d(0x13d)](0x7,_0x1ca09d[_0x246e9d(0x12f)]-0x3):_0x1ca09d[_0x246e9d(0x13d)](0x7):_0x1ab095;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x4509(){const _0x4eea0a=['_copyHTMLToClipboard','getSelection','ck-ai-form__content-area-wrapper','setTemplate','element','scrollTo','2842965JSGDhA','AI\x20is\x20writing...','ck-ai-form__content-area','textContent','left','ck-ai-form__copy-button','isEnabled','bindTemplate','setEndBefore','change:value','mousedown','ck-ai-form__loader','execCommand','render','<span>[</span>','check','\x20ck-ai-form__copy-button--copied','remove','isProcessing','loaderView','setContent','10pQEmFu','listenTo','_createLoader','clipboard','759468WhbPya','-9999px','lastElementChild','setStartAfter','appendLoader','absolute','ck-hidden','text/html','ck-ai-form__content-area--processing','copy','write','23693PSDSQw','ck-ai-form__copy-button-wrapper','_createCopyButton','.ck-ai-form__loader','icon','focus','smooth','2880310cUYGAx','Copy','scrollHeight','ck-content','innerHTML','881004xxqhLw','set','text/plain','createRange','<span>]</span>','ck-ai-form__content-field','class','bind','copyButtonView','position','appendChild','execute','isVisible','wheel','firstElementChild','style','locale','1304huJIhH','querySelector','371596wwGWbN','value','createElement','contentFieldView','removeAllRanges','9093rIOScy','div','ClipboardItem','ck-reset_all-excluded','change:isProcessing','addRange','10FEIrWW','body'];_0x4509=function(){return _0x4eea0a;};return _0x4509();}const _0x52bb30=_0x3556;function _0x3556(_0x49cb31,_0x1c5669){const _0x450925=_0x4509();return _0x3556=function(_0x355679,_0xe5d692){_0x355679=_0x355679-0xbd;let _0x4dd8ff=_0x450925[_0x355679];return _0x4dd8ff;},_0x3556(_0x49cb31,_0x1c5669);}(function(_0x838b4a,_0x53e633){const _0x20122a=_0x3556,_0xf492e7=_0x838b4a();while(!![]){try{const _0x45b73b=-parseInt(_0x20122a(0xde))/0x1*(-parseInt(_0x20122a(0x108))/0x2)+parseInt(_0x20122a(0xd3))/0x3+parseInt(_0x20122a(0xfd))/0x4*(parseInt(_0x20122a(0xcf))/0x5)+-parseInt(_0x20122a(0xea))/0x6+-parseInt(_0x20122a(0x102))/0x7*(parseInt(_0x20122a(0xfb))/0x8)+-parseInt(_0x20122a(0x110))/0x9+parseInt(_0x20122a(0xe5))/0xa;if(_0x45b73b===_0x53e633)break;else _0xf492e7['push'](_0xf492e7['shift']());}catch(_0x4c0e82){_0xf492e7['push'](_0xf492e7['shift']());}}}(_0x4509,0x29bf2));import{global as _0x436b4f}from'ckeditor5/src/utils.js';import{View as _0x14bce2,ButtonView as _0xaac873,SpinnerView as _0x4be190}from'ckeditor5/src/ui.js';import _0x266f82 from'../../../theme/icons/copy.svg';import{getTranslation as _0x3486c4}from'../../utils/common-translations.js';import{icons as _0x1860e3}from'ckeditor5/src/core.js';export default class W extends _0x14bce2{constructor(_0x12817d,_0x129435=''){const _0x851ee5=_0x3556;super(_0x12817d),this[_0x851ee5(0xeb)]({'value':null,'isVisible':!0x1,'isProcessing':!0x1});const _0x1d0890=this[_0x851ee5(0xc1)];this[_0x851ee5(0x100)]=new ContentFieldView(_0x12817d,_0x129435),this[_0x851ee5(0xf2)]=this[_0x851ee5(0xe0)](),this[_0x851ee5(0x10d)]({'tag':_0x851ee5(0x103),'attributes':{'class':['ck',_0x851ee5(0x10c),_0x1d0890['if'](_0x851ee5(0xf6),_0x851ee5(0xd9),_0x37f633=>!_0x37f633)],'tabindex':'-1'},'children':[{'tag':_0x851ee5(0x103),'attributes':{'class':['ck',_0x851ee5(0x112),_0x1d0890['if'](_0x851ee5(0xcc),_0x851ee5(0xdb))]},'children':[this[_0x851ee5(0x100)],{'tag':_0x851ee5(0x103),'attributes':{'class':['ck',_0x851ee5(0xdf)]},'children':[this[_0x851ee5(0xf2)]]}]}]});}[_0x52bb30(0xc7)](){const _0x1db97a=_0x52bb30;super[_0x1db97a(0xc7)](),this[_0x1db97a(0xfe)]&&this[_0x1db97a(0x100)][_0x1db97a(0xce)](this[_0x1db97a(0xfe)]);let _0x4272a9=!0x1;this['on'](_0x1db97a(0xc3),(_0x102106,_0x2fc554,_0x4070ba)=>{const _0x2edd36=_0x1db97a,_0x425ecc=!this[_0x2edd36(0x100)][_0x2edd36(0x10e)][_0x2edd36(0xfc)](_0x2edd36(0xe1));this[_0x2edd36(0x100)][_0x2edd36(0xce)](_0x4070ba),this[_0x2edd36(0xcc)]&&_0x425ecc&&!_0x4272a9&&this[_0x2edd36(0x10e)][_0x2edd36(0x10f)]({'top':this[_0x2edd36(0x10e)][_0x2edd36(0xe7)],'behavior':_0x2edd36(0xe4)});}),this['on'](_0x1db97a(0x106),(_0x3f7ac7,_0x8d1e4b,_0x37e914)=>{const _0x27f06c=_0x1db97a;_0x4272a9=!0x1,_0x37e914?(this[_0x27f06c(0xfe)]=null,this[_0x27f06c(0x100)][_0x27f06c(0xd7)]()):this[_0x27f06c(0xfe)]||this[_0x27f06c(0x100)][_0x27f06c(0xce)]('');}),this[_0x1db97a(0xd0)](this[_0x1db97a(0x10e)],_0x1db97a(0xf7),()=>{_0x4272a9=!0x0;}),this[_0x1db97a(0xd0)](this[_0x1db97a(0x10e)],_0x1db97a(0xc4),()=>{_0x4272a9=!0x0;});}[_0x52bb30(0xe3)](){const _0x5c2848=_0x52bb30;this[_0x5c2848(0x10e)][_0x5c2848(0xe3)]();}[_0x52bb30(0xe0)](){const _0x310914=_0x52bb30,_0x1a986d=this[_0x310914(0xfa)],_0x1b878f=new _0xaac873(this[_0x310914(0xfa)]),_0x1ea8c8=_0x310914(0xbf);return _0x1b878f[_0x310914(0xeb)]({'label':_0x3486c4(_0x1a986d,_0x310914(0xe6)),'icon':_0x266f82,'class':_0x1ea8c8,'tooltip':!0x0}),_0x1b878f[_0x310914(0xf1)](_0x310914(0xf6))['to'](this,_0x310914(0xfe),_0x3a7dab=>!!_0x3a7dab),_0x1b878f[_0x310914(0xf1)](_0x310914(0xc0))['to'](this,_0x310914(0xcc),_0x28e6c3=>!_0x28e6c3),_0x1b878f['on'](_0x310914(0xf5),()=>{const _0x3695d8=_0x310914;this[_0x3695d8(0x10a)](this[_0x3695d8(0x100)][_0x3695d8(0x10e)]),_0x1b878f[_0x3695d8(0xe2)]=_0x1860e3[_0x3695d8(0xc9)],_0x1b878f[_0x3695d8(0xf0)]=_0x1ea8c8+_0x3695d8(0xca),this[_0x3695d8(0xe3)](),setTimeout(()=>{const _0x5265d4=_0x3695d8;_0x1b878f[_0x5265d4(0xe2)]=_0x266f82,_0x1b878f[_0x5265d4(0xf0)]=_0x1ea8c8;},0x3e8);}),_0x1b878f;}[_0x52bb30(0x10a)](_0xd1fd28){const _0x3699c4=_0x52bb30,{window:_0x152f6d,document:_0x44d609}=_0x436b4f;if(_0x152f6d[_0x3699c4(0x104)]){const {Blob:_0x4099ad,ClipboardItem:_0x3f18b1}=_0x152f6d,_0xb5fafb=[new _0x3f18b1({'text/html':new _0x4099ad([_0xd1fd28[_0x3699c4(0xe9)]],{'type':_0x3699c4(0xda)}),'text/plain':new _0x4099ad([_0xd1fd28[_0x3699c4(0xbd)]||''],{'type':_0x3699c4(0xec)})})];navigator[_0x3699c4(0xd2)][_0x3699c4(0xdd)](_0xb5fafb);}else{const _0x110a06=_0x44d609[_0x3699c4(0xff)](_0x3699c4(0x103));_0x110a06[_0x3699c4(0xf9)][_0x3699c4(0xf3)]=_0x3699c4(0xd8),_0x110a06[_0x3699c4(0xf9)][_0x3699c4(0xbe)]=_0x3699c4(0xd4),_0x110a06[_0x3699c4(0xe9)]=_0x3699c4(0xc8)+_0xd1fd28[_0x3699c4(0xe9)]+_0x3699c4(0xee),_0x44d609[_0x3699c4(0x109)][_0x3699c4(0xf4)](_0x110a06);const _0x1c7242=_0x44d609[_0x3699c4(0xed)]();_0x1c7242[_0x3699c4(0xd6)](_0x110a06[_0x3699c4(0xf8)]),_0x1c7242[_0x3699c4(0xc2)](_0x110a06[_0x3699c4(0xd5)]);const _0x538a6b=_0x152f6d[_0x3699c4(0x10b)]();_0x538a6b[_0x3699c4(0x101)](),_0x538a6b[_0x3699c4(0x107)](_0x1c7242),_0x44d609[_0x3699c4(0xc6)](_0x3699c4(0xdc)),_0x110a06[_0x3699c4(0xcb)]();}}}export class ContentFieldView extends _0x14bce2{constructor(_0x36fc75,_0x116981=''){const _0x20c903=_0x52bb30;super(_0x36fc75),this[_0x20c903(0xcd)]=this[_0x20c903(0xd1)](),this[_0x20c903(0x10d)]({'tag':_0x20c903(0x103),'attributes':{'class':['ck',_0x20c903(0xe8),_0x116981,_0x20c903(0x105),_0x20c903(0xef)]}});}[_0x52bb30(0xce)](_0x382ba5){const _0x29b873=_0x52bb30;this[_0x29b873(0x10e)][_0x29b873(0xe9)]=_0x382ba5;}[_0x52bb30(0xd7)](){const _0x343eee=_0x52bb30;this[_0x343eee(0x10e)][_0x343eee(0xf4)](this[_0x343eee(0xcd)][_0x343eee(0x10e)]);}[_0x52bb30(0xd1)](){const _0xf9a6f4=_0x52bb30,_0x1de7e4=new _0x14bce2(),_0x31788c=this[_0xf9a6f4(0xfa)],_0x37168c=new _0x4be190();return _0x37168c[_0xf9a6f4(0xf6)]=!0x0,_0x1de7e4[_0xf9a6f4(0x10d)]({'tag':_0xf9a6f4(0x103),'attributes':{'class':['ck',_0xf9a6f4(0xc5)]},'children':[_0x37168c,{'text':_0x3486c4(_0x31788c,_0xf9a6f4(0x111))}]}),_0x1de7e4[_0xf9a6f4(0xc7)](),_0x1de7e4;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x598e(){const _0x537bc6=['set','21413400gzvNga','2735016gGHtsx','content','7651728vxWOfM','4071610aOLJEW','setTemplate','div','bindTemplate','6747jqKyQT','ck-ai-form__error','1848WedrVy','100275JIwbtM','text','2370770obhZNA'];_0x598e=function(){return _0x537bc6;};return _0x598e();}(function(_0x50a91c,_0x2c7016){const _0x4e3de1=_0x7f01,_0x59830e=_0x50a91c();while(!![]){try{const _0x207e5c=-parseInt(_0x4e3de1(0x80))/0x1+-parseInt(_0x4e3de1(0x82))/0x2+-parseInt(_0x4e3de1(0x7d))/0x3*(-parseInt(_0x4e3de1(0x7f))/0x4)+-parseInt(_0x4e3de1(0x79))/0x5+parseInt(_0x4e3de1(0x85))/0x6+-parseInt(_0x4e3de1(0x87))/0x7+parseInt(_0x4e3de1(0x84))/0x8;if(_0x207e5c===_0x2c7016)break;else _0x59830e['push'](_0x59830e['shift']());}catch(_0x163f46){_0x59830e['push'](_0x59830e['shift']());}}}(_0x598e,0xeee1f));function _0x7f01(_0x962ad5,_0x95123b){const _0x598e17=_0x598e();return _0x7f01=function(_0x7f01a4,_0x20faaf){_0x7f01a4=_0x7f01a4-0x79;let _0x552c8b=_0x598e17[_0x7f01a4];return _0x552c8b;},_0x7f01(_0x962ad5,_0x95123b);}import{View as _0x5e4845,IconView as _0x35336f}from'ckeditor5/src/ui.js';import _0x21c198 from'../../../theme/icons/error.svg';export default class tt extends _0x5e4845{constructor(_0x14fddf,_0x2ffcef=''){const _0x2c9310=_0x7f01;super(_0x14fddf);const _0x3d23a5=new _0x35336f(),_0x585373=this[_0x2c9310(0x7c)];this[_0x2c9310(0x83)](_0x2c9310(0x81),_0x2ffcef),_0x3d23a5[_0x2c9310(0x86)]=_0x21c198,this[_0x2c9310(0x7a)]({'tag':_0x2c9310(0x7b),'attributes':{'class':['ck',_0x2c9310(0x7e)]},'children':[_0x3d23a5,{'text':_0x585373['to'](_0x2c9310(0x81))}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2f02a0=_0x50ab;(function(_0x2b9bd7,_0x1db218){const _0x426dd1=_0x50ab,_0x437ea2=_0x2b9bd7();while(!![]){try{const _0x29e36f=parseInt(_0x426dd1(0x1b5))/0x1*(parseInt(_0x426dd1(0x1bb))/0x2)+-parseInt(_0x426dd1(0x1c0))/0x3*(parseInt(_0x426dd1(0x18e))/0x4)+parseInt(_0x426dd1(0x19c))/0x5*(parseInt(_0x426dd1(0x194))/0x6)+parseInt(_0x426dd1(0x18d))/0x7*(-parseInt(_0x426dd1(0x18c))/0x8)+parseInt(_0x426dd1(0x1ac))/0x9+-parseInt(_0x426dd1(0x18b))/0xa+-parseInt(_0x426dd1(0x1b9))/0xb;if(_0x29e36f===_0x1db218)break;else _0x437ea2['push'](_0x437ea2['shift']());}catch(_0x454a37){_0x437ea2['push'](_0x437ea2['shift']());}}}(_0x391f,0x95b8e));import{Rect as _0x40df20,global as _0x30dc9b,isVisible as _0x2f3fbc}from'ckeditor5/src/utils.js';import{AutocompleteView as _0x57c8b6,ButtonView as _0x279360}from'ckeditor5/src/ui.js';import{icons as _0x3582dd}from'ckeditor5/src/core.js';function _0x50ab(_0x3a12cf,_0xd4186c){const _0x391f13=_0x391f();return _0x50ab=function(_0x50ab07,_0x52271d){_0x50ab07=_0x50ab07-0x18b;let _0x3e0be0=_0x391f13[_0x50ab07];return _0x3e0be0;},_0x50ab(_0x3a12cf,_0xd4186c);}function _0x391f(){const _0x3d1d63=['rtl','1oaiIUY','window','isEmpty','maxRows','4400176Ilkfky','fieldWrapperChildren','1010182DDOpgU','_createShowHistoryButton','set','bind','locale','77493tFjpAu','uiLanguageDirection','showHistoryButtonView','excludeScrollbarsAndBorders','history','value','filteredView','879510yHNykr','8WfFNWx','1790432AAIKeO','68nsAKEv','right','focus','fieldView','width','_createSubmitButton','154506FoBONu','enter','render','Submit','ck-ai-form__toggle-history','fire','resultsView','focusableChildren','20ypSUFu','isVisible','children','submit','add','keystrokes','queryView','style','minRows','focusLast','update','target','ck-ai-form__submit','requestAnimationFrame','History','element','10692333EpPIiB','focusFirst','submitButtonView','execute','left','focusCycler','isEnabled','isOn'];_0x391f=function(){return _0x3d1d63;};return _0x391f();}import{getTranslation as _0x228fcc}from'../../utils/common-translations.js';import _0xb26cbf from'../../../theme/icons/submit.svg';export default class ht extends _0x57c8b6{constructor(_0x249ea8,_0x4af7e5){const _0x280c44=_0x50ab;super(_0x249ea8,_0x4af7e5),this[_0x280c44(0x1a2)][_0x280c44(0x191)][_0x280c44(0x1a4)]=0x1,this[_0x280c44(0x1a2)][_0x280c44(0x191)][_0x280c44(0x1b8)]=0x3,this[_0x280c44(0x1ae)]=this[_0x280c44(0x193)](),this[_0x280c44(0x1c2)]=this[_0x280c44(0x1bc)](),this[_0x280c44(0x19b)][_0x280c44(0x1a0)](this[_0x280c44(0x1c2)],0x1),this[_0x280c44(0x19b)][_0x280c44(0x1a0)](this[_0x280c44(0x1ae)]);}[_0x2f02a0(0x196)](){const _0x9e91b0=_0x2f02a0;super[_0x9e91b0(0x196)](),this[_0x9e91b0(0x1a2)][_0x9e91b0(0x1ba)][_0x9e91b0(0x1a0)](this[_0x9e91b0(0x1c2)]),this[_0x9e91b0(0x19e)][_0x9e91b0(0x1a0)](this[_0x9e91b0(0x1ae)]),this[_0x9e91b0(0x1a1)][_0x9e91b0(0x1bd)](_0x9e91b0(0x195),(_0x2987b2,_0x2b2dfe)=>{const _0x42b76a=_0x9e91b0;_0x2987b2[_0x42b76a(0x1a7)]==this[_0x42b76a(0x1a2)][_0x42b76a(0x191)][_0x42b76a(0x1ab)]&&(this[_0x42b76a(0x19f)](),_0x2b2dfe());});}[_0x2f02a0(0x193)](){const _0xc40114=_0x2f02a0,_0x7df096=new _0x279360(this[_0xc40114(0x1bf)]),_0x285dc7=this[_0xc40114(0x1bf)];return _0x7df096[_0xc40114(0x1bd)]({'icon':_0xb26cbf,'label':_0x228fcc(_0x285dc7,_0xc40114(0x197)),'isVisible':!0x0,'tooltip':!0x0,'class':_0xc40114(0x1a8)}),_0x7df096['on'](_0xc40114(0x1af),()=>{const _0x565d0b=_0xc40114;this[_0x565d0b(0x19f)]();}),_0x7df096[_0xc40114(0x1be)](_0xc40114(0x1b2))['to'](this[_0xc40114(0x1a2)][_0xc40114(0x191)],_0xc40114(0x1b7),this,_0xc40114(0x1b2),(_0x48ba8b,_0x493aea)=>!_0x48ba8b&&_0x493aea),_0x7df096;}[_0x2f02a0(0x1bc)](){const _0x452a22=_0x2f02a0,_0x1951f6=new _0x279360(this[_0x452a22(0x1bf)]),_0x483f2e=this[_0x452a22(0x19a)],_0x275f88=this[_0x452a22(0x1bf)];_0x1951f6[_0x452a22(0x1bd)]({'label':_0x228fcc(_0x275f88,_0x452a22(0x1aa)),'withText':!0x1,'icon':_0x3582dd[_0x452a22(0x1c4)],'tooltip':!0x0,'tooltipPosition':'sw','class':_0x452a22(0x198)}),_0x1951f6[_0x452a22(0x1be)](_0x452a22(0x1b3))['to'](_0x483f2e,_0x452a22(0x19d)),_0x1951f6[_0x452a22(0x1be)](_0x452a22(0x1b2))['to'](this,_0x452a22(0x1b2)),_0x1951f6['on'](_0x452a22(0x1af),()=>{const _0x28d41e=_0x452a22;_0x483f2e[_0x28d41e(0x19d)]=!_0x483f2e[_0x28d41e(0x19d)],_0x483f2e[_0x28d41e(0x19d)]?this[_0x28d41e(0x1c6)][_0x28d41e(0x190)]():this[_0x28d41e(0x190)]();});const _0x38ccb0=()=>{const _0x10d5a9=_0x452a22;_0x30dc9b[_0x10d5a9(0x1b6)][_0x10d5a9(0x1a9)](()=>{const _0x3cad98=_0x10d5a9;if(_0x2f3fbc(this[_0x3cad98(0x1ab)])){const _0x1f2d3e=new _0x40df20(this[_0x3cad98(0x1a2)][_0x3cad98(0x191)][_0x3cad98(0x1ab)]),_0x7453fc=_0x1f2d3e[_0x3cad98(0x192)],_0x3eafc9=_0x3cad98(0x1b4)===_0x275f88[_0x3cad98(0x1c1)]?_0x3cad98(0x1b0):_0x3cad98(0x18f);_0x1f2d3e[_0x3cad98(0x1c3)](),_0x1951f6[_0x3cad98(0x1ab)][_0x3cad98(0x1a3)][_0x3eafc9]=_0x7453fc-_0x1f2d3e[_0x3cad98(0x192)]+0x1+'px';}});};return this[_0x452a22(0x1a2)][_0x452a22(0x191)]['on'](_0x452a22(0x1a6),_0x38ccb0),this['on'](_0x452a22(0x196),_0x38ccb0),_0x1951f6;}[_0x2f02a0(0x19f)](){const _0x40e81d=_0x2f02a0,_0x249c30=this[_0x40e81d(0x1a2)][_0x40e81d(0x191)][_0x40e81d(0x1ab)][_0x40e81d(0x1c5)];this[_0x40e81d(0x199)](_0x40e81d(0x19f),_0x249c30);}[_0x2f02a0(0x190)](_0x2243a7){const _0x48f376=_0x2f02a0;-0x1===_0x2243a7?this[_0x48f376(0x1b1)][_0x48f376(0x1a5)]():this[_0x48f376(0x1b1)][_0x48f376(0x1ad)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3c2f0f=_0x591c;(function(_0x12613e,_0x2f1a4e){const _0x3dd59c=_0x591c,_0x1b4a9a=_0x12613e();while(!![]){try{const _0x295128=-parseInt(_0x3dd59c(0x10f))/0x1+parseInt(_0x3dd59c(0x108))/0x2+parseInt(_0x3dd59c(0x103))/0x3*(parseInt(_0x3dd59c(0x107))/0x4)+parseInt(_0x3dd59c(0xff))/0x5*(parseInt(_0x3dd59c(0xf4))/0x6)+-parseInt(_0x3dd59c(0xf6))/0x7+-parseInt(_0x3dd59c(0x111))/0x8+parseInt(_0x3dd59c(0xf1))/0x9;if(_0x295128===_0x2f1a4e)break;else _0x1b4a9a['push'](_0x1b4a9a['shift']());}catch(_0x92c19b){_0x1b4a9a['push'](_0x1b4a9a['shift']());}}}(_0x19d0,0x88c39));function _0x591c(_0x31595e,_0x47a896){const _0x19d0b6=_0x19d0();return _0x591c=function(_0x591cfa,_0x5bcee4){_0x591cfa=_0x591cfa-0xef;let _0x4ff931=_0x19d0b6[_0x591cfa];return _0x4ff931;},_0x591c(_0x31595e,_0x47a896);}import{ToolbarView as _0x570358,ButtonView as _0x344236}from'ckeditor5/src/ui.js';import{getTranslation as _0x5db50b}from'../../utils/common-translations.js';export const AIFormToolbarViewMainActionLabel={'REPLACE':_0x3c2f0f(0x10d),'INSERT':_0x3c2f0f(0xfd)};export default class nt extends _0x570358{constructor(_0x4642ed){const _0xda65b0=_0x3c2f0f;super(_0x4642ed),this[_0xda65b0(0xf7)](_0xda65b0(0xfa),!0x1),this[_0xda65b0(0xf7)](_0xda65b0(0xfe),AIFormToolbarViewMainActionLabel[_0xda65b0(0x112)]),this[_0xda65b0(0x10e)]=this[_0xda65b0(0xf2)]('',_0xda65b0(0x100)),this[_0xda65b0(0x10e)][_0xda65b0(0xf9)](_0xda65b0(0x110))['to'](this,_0xda65b0(0xfe),_0x66b522=>_0x5db50b(_0x4642ed,_0xda65b0(0xfb)+_0x66b522[_0xda65b0(0x106)]()+_0xda65b0(0x102))),this[_0xda65b0(0xef)]=this[_0xda65b0(0xf2)](_0x5db50b(_0x4642ed,_0xda65b0(0x10a))),this[_0xda65b0(0xf5)]=this[_0xda65b0(0xf2)](_0x5db50b(_0x4642ed,_0xda65b0(0x10b))),this[_0xda65b0(0xf0)]=this[_0xda65b0(0xf2)](_0x5db50b(_0x4642ed,_0xda65b0(0x104)));const _0xfa5d1c=this[_0xda65b0(0x10c)];this[_0xda65b0(0xf3)]({'attributes':{'class':[_0xda65b0(0xf8),_0xfa5d1c['if'](_0xda65b0(0xfa),_0xda65b0(0x101),_0x70f181=>!_0x70f181)]}}),this[_0xda65b0(0x109)][_0xda65b0(0x105)]([this[_0xda65b0(0x10e)],this[_0xda65b0(0xef)],this[_0xda65b0(0xf5)],this[_0xda65b0(0xf0)]]);}[_0x3c2f0f(0xf2)](_0x448301,_0x629f33){const _0x5ce581=_0x3c2f0f,_0x137cf8=new _0x344236(this[_0x5ce581(0xfc)]);return _0x137cf8[_0x5ce581(0xf7)]({'label':_0x448301,'class':_0x629f33||'','isVisible':!0x0,'withText':!0x0}),_0x137cf8;}}function _0x19d0(){const _0x5594c2=['4811328bhQpSa','_createButton','extendTemplate','5999586BJyGTu','tryAgainButton','1007055JrwgNJ','set','ck-ai-form__toolbar','bind','isVisible','AI_','locale','insert','mainAction','5FxJhoC','ck-button-action','ck-hidden','_CONTENT','27EzGClc','Stop','addMany','toUpperCase','3548esJRAU','1228846ulxDAZ','items','Insert\x20below','Try\x20again','bindTemplate','replace','replaceButton','803436iNxQsD','label','5195544SQtohM','REPLACE','insertButton','stopButton'];_0x19d0=function(){return _0x5594c2;};return _0x19d0();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x506733=_0x417b;function _0x417b(_0x1e1e2d,_0x558328){const _0x47848c=_0x4784();return _0x417b=function(_0x417ba2,_0x3f0f28){_0x417ba2=_0x417ba2-0x97;let _0x44ae4c=_0x47848c[_0x417ba2];return _0x44ae4c;},_0x417b(_0x1e1e2d,_0x558328);}function _0x4784(){const _0x3d303f=['isVisible','items','Empty\x20history','stopButton','mainAction','7617234DVdBgJ','keystrokes','2PhVrgt','_createHistoryView','_focusables','submitPrompt','clear','ck-ai-form','listenTo','tab','insertContentBelow','insertButton','text','execute','isEnabled','errorView','tryAgainEvent','REPLACE','setTemplate','handleError','fire','promptView','prompt','reset','focusCycler','_promptHistory','chain','21917005BTkVwB','fieldView','copyButtonView','bind','isProcessing','contentArea','createCollection','locale','tryAgainButton','focusLast','368917fsDQlf','1507833GsBymI','render','submit','Ask\x20AI\x20to\x20improve\x20generated\x20text','clearHistory','shift\x20+\x20tab','_createToolbar','10UiEzmv','queryView','940045BLuGaT','trim','label','div','add','historyGroupView','high','startProcessing','isError','stopProcessing','7uYEeUm','element','bindTemplate','focusFirst','_createPromptView','replaceButton','focusTracker','delegate','1566MiYdoa','2776jKayLY','search','ck-ai-form-content','AI_ERROR_FAILED','value','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','Ask\x20AI\x20to\x20edit\x20or\x20generate','focus','replaceContent','set','8682928wWCoux','bindTo','finishProcessing','ck-hidden','toolbar'];_0x4784=function(){return _0x3d303f;};return _0x4784();}(function(_0x197270,_0xd871f4){const _0x3c9833=_0x417b,_0x4f8c96=_0x197270();while(!![]){try{const _0x2fa666=parseInt(_0x3c9833(0xe3))/0x1*(-parseInt(_0x3c9833(0xc0))/0x2)+-parseInt(_0x3c9833(0xa9))/0x3*(-parseInt(_0x3c9833(0xaa))/0x4)+parseInt(_0x3c9833(0x97))/0x5+parseInt(_0x3c9833(0xbe))/0x6+-parseInt(_0x3c9833(0xa1))/0x7*(-parseInt(_0x3c9833(0xb4))/0x8)+parseInt(_0x3c9833(0xe4))/0x9+-parseInt(_0x3c9833(0xeb))/0xa*(parseInt(_0x3c9833(0xd9))/0xb);if(_0x2fa666===_0xd871f4)break;else _0x4f8c96['push'](_0x4f8c96['shift']());}catch(_0x29163e){_0x4f8c96['push'](_0x4f8c96['shift']());}}}(_0x4784,0xadab3));import{FocusTracker as _0x1d44f6,KeystrokeHandler as _0x3f8fd7}from'ckeditor5/src/utils.js';import{View as _0x29fc71,FocusCycler as _0x261f2d,createLabeledTextarea as _0x1d544b}from'ckeditor5/src/ui.js';import _0x15beec,{AIFormToolbarViewMainActionLabel as _0x207af3}from'./aiformtoolbarview.js';import _0x21d467 from'./aiformcontentarea.js';import _0x552ba3 from'./aiformerrorview.js';import _0x4e0ff9 from'./aiformpromptview.js';import _0x486b34 from'./aihistorylistview.js';import _0x3f60d0 from'./aihistorylistitemview.js';import _0x5cac35 from'./prompthistory.js';import{getTranslation as _0x34b73c}from'../../utils/common-translations.js';import{escape as _0xbe8f32}from'lodash-es';export default class k extends _0x29fc71{constructor(_0x4b0530,_0x346e8a,_0x16893b=''){const _0x2fcf32=_0x417b;super(_0x4b0530),this[_0x2fcf32(0xb3)](_0x2fcf32(0xcc),!0x0),this[_0x2fcf32(0xb3)](_0x2fcf32(0xdd),!0x1),this[_0x2fcf32(0xb3)](_0x2fcf32(0xd4),''),this[_0x2fcf32(0xb3)](_0x2fcf32(0xae),''),this[_0x2fcf32(0xb3)](_0x2fcf32(0x9f),!0x1),this[_0x2fcf32(0xb3)](_0x2fcf32(0xbd),_0x207af3[_0x2fcf32(0xcf)]),this[_0x2fcf32(0xd7)]=new _0x5cac35(),this[_0x2fcf32(0xcd)]=new _0x552ba3(_0x4b0530),this[_0x2fcf32(0xde)]=new _0x21d467(_0x4b0530,_0x16893b),this[_0x2fcf32(0xde)][_0x2fcf32(0xdc)](_0x2fcf32(0xdd))['to'](this),this[_0x2fcf32(0xde)][_0x2fcf32(0xdc)](_0x2fcf32(0xae))['to'](this),this[_0x2fcf32(0xb8)]=this[_0x2fcf32(0xea)](),this[_0x2fcf32(0xb8)][_0x2fcf32(0xdc)](_0x2fcf32(0xbd))['to'](this),this[_0x2fcf32(0xd3)]=this[_0x2fcf32(0xa5)](),this[_0x2fcf32(0xa7)]=new _0x1d44f6(),this[_0x2fcf32(0xbf)]=new _0x3f8fd7(),this[_0x2fcf32(0xc2)]=this[_0x2fcf32(0xdf)]([this[_0x2fcf32(0xde)],this[_0x2fcf32(0xde)][_0x2fcf32(0xdb)],this[_0x2fcf32(0xb8)],this[_0x2fcf32(0xd3)]]),this[_0x2fcf32(0xd6)]=new _0x261f2d({'focusables':this[_0x2fcf32(0xc2)],'focusTracker':this[_0x2fcf32(0xa7)],'keystrokeHandler':this[_0x2fcf32(0xbf)],'actions':{'focusPrevious':_0x2fcf32(0xe9),'focusNext':_0x2fcf32(0xc7)}}),this[_0x2fcf32(0xd6)][_0x2fcf32(0xd8)](this[_0x2fcf32(0xd3)][_0x2fcf32(0xd6)]),this[_0x2fcf32(0xd3)][_0x2fcf32(0xec)][_0x2fcf32(0xda)][_0x2fcf32(0xdc)](_0x2fcf32(0xae))['to'](this,_0x2fcf32(0xd4));const _0x25e15e=this[_0x2fcf32(0xa3)];this[_0x2fcf32(0xd0)]({'tag':_0x2fcf32(0x9a),'attributes':{'class':['ck',_0x2fcf32(0xc5),_0x346e8a],'tabindex':'-1'},'children':[{'tag':_0x2fcf32(0x9a),'attributes':{'class':['ck',_0x2fcf32(0xac)]},'children':[{'tag':_0x2fcf32(0x9a),'attributes':{'class':[_0x25e15e['if'](_0x2fcf32(0x9f),_0x2fcf32(0xb7),_0x50f3e7=>!_0x50f3e7)]},'children':[this[_0x2fcf32(0xcd)]]},this[_0x2fcf32(0xde)],this[_0x2fcf32(0xb8)],this[_0x2fcf32(0xd3)]]}]});}[_0x506733(0xe5)](){const _0x1b0215=_0x506733;super[_0x1b0215(0xe5)](),this[_0x1b0215(0xa7)][_0x1b0215(0x9b)](this[_0x1b0215(0xde)][_0x1b0215(0xa2)]),this[_0x1b0215(0xa7)][_0x1b0215(0x9b)](this[_0x1b0215(0xde)][_0x1b0215(0xdb)][_0x1b0215(0xa2)]),this[_0x1b0215(0xa7)][_0x1b0215(0x9b)](this[_0x1b0215(0xb8)][_0x1b0215(0xa2)]),this[_0x1b0215(0xa7)][_0x1b0215(0x9b)](this[_0x1b0215(0xd3)][_0x1b0215(0xa2)]),this[_0x1b0215(0xbf)][_0x1b0215(0xc6)](this[_0x1b0215(0xa2)]);}[_0x506733(0xb1)](_0x14dd51=0x1){const _0x5d2ca1=_0x506733;-0x1===_0x14dd51?this[_0x5d2ca1(0xd6)][_0x5d2ca1(0xe2)]():this[_0x5d2ca1(0xd6)][_0x5d2ca1(0xa4)]();}[_0x506733(0xd5)](){const _0x483dfc=_0x506733;this[_0x483dfc(0xd4)]='',this[_0x483dfc(0xae)]='',this[_0x483dfc(0x9f)]=!0x1,this[_0x483dfc(0xd3)][_0x483dfc(0xd5)](),this[_0x483dfc(0xde)][_0x483dfc(0xb9)]=!0x1,this[_0x483dfc(0xb8)][_0x483dfc(0xb9)]=!0x1;}[_0x506733(0xa5)](){const _0x3c2f58=_0x506733,_0x1f9553=this[_0x3c2f58(0xe0)],_0x28dd85=new _0x4e0ff9(_0x1f9553,{'queryView':{'label':_0x34b73c(_0x1f9553,_0x3c2f58(0xb0)),'creator':_0x1d544b,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x34b73c(_0x1f9553,_0x3c2f58(0xbb)),'secondary':_0x34b73c(_0x1f9553,_0x3c2f58(0xaf))}}},'filteredView':this[_0x3c2f58(0xc1)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x28dd85[_0x3c2f58(0xdc)](_0x3c2f58(0xcc))['to'](this,_0x3c2f58(0xcc),this,_0x3c2f58(0xdd),(_0x3a431f,_0x55f6fb)=>_0x3a431f&&!_0x55f6fb),this[_0x3c2f58(0xc6)](_0x28dd85,_0x3c2f58(0xe6),(_0x3a0df5,_0x17b7f9)=>{const _0x329bc3=_0x3c2f58;this[_0x329bc3(0xd4)]=_0x17b7f9;const _0x56662e=_0xbe8f32(_0x17b7f9);this[_0x329bc3(0xd2)](_0x329bc3(0xc3),_0x56662e),_0x17b7f9[_0x329bc3(0x98)]()&&this[_0x329bc3(0xd7)][_0x329bc3(0x9b)]({'prompt':_0x56662e},0x0);},{'priority':_0x3c2f58(0x9d)}),_0x28dd85;}[_0x506733(0xc1)](){const _0x96b264=_0x506733,_0x531ffa=new _0x486b34(this[_0x96b264(0xe0)]);return _0x531ffa[_0x96b264(0x9c)][_0x96b264(0xba)][_0x96b264(0xb5)](this[_0x96b264(0xd7)])['as'](_0x3f60d0),_0x531ffa['on'](_0x96b264(0xe8),()=>{const _0x3e3815=_0x96b264;this[_0x3e3815(0xd7)][_0x3e3815(0xc4)](),this[_0x3e3815(0xd3)][_0x3e3815(0xab)](''),this[_0x3e3815(0xd3)][_0x3e3815(0xb1)]();}),_0x531ffa;}[_0x506733(0xea)](){const _0x2c1ee9=_0x506733,_0x44ea39=new _0x15beec(this[_0x2c1ee9(0xe0)]);return _0x44ea39[_0x2c1ee9(0xa6)][_0x2c1ee9(0xdc)](_0x2c1ee9(0xcc))['to'](this,_0x2c1ee9(0xcc),this,_0x2c1ee9(0xdd),this,_0x2c1ee9(0xae),(_0x2d1ee8,_0x3ddcba,_0x5910c4)=>_0x2d1ee8&&!_0x3ddcba&&!!_0x5910c4),_0x44ea39[_0x2c1ee9(0xa6)][_0x2c1ee9(0xa8)](_0x2c1ee9(0xcb))['to'](this,_0x2c1ee9(0xb2)),_0x44ea39[_0x2c1ee9(0xc9)][_0x2c1ee9(0xdc)](_0x2c1ee9(0xcc))['to'](this,_0x2c1ee9(0xcc),this,_0x2c1ee9(0xdd),this,_0x2c1ee9(0xae),(_0x4c138d,_0x44b098,_0x528432)=>_0x4c138d&&!_0x44b098&&!!_0x528432),_0x44ea39[_0x2c1ee9(0xc9)][_0x2c1ee9(0xa8)](_0x2c1ee9(0xcb))['to'](this,_0x2c1ee9(0xc8)),_0x44ea39[_0x2c1ee9(0xe1)][_0x2c1ee9(0xdc)](_0x2c1ee9(0xcc))['to'](this,_0x2c1ee9(0xcc),this,_0x2c1ee9(0xdd),(_0x4b0170,_0x1e6671)=>_0x4b0170&&!_0x1e6671),_0x44ea39[_0x2c1ee9(0xe1)][_0x2c1ee9(0xa8)](_0x2c1ee9(0xcb))['to'](this,_0x2c1ee9(0xce)),_0x44ea39[_0x2c1ee9(0xbc)][_0x2c1ee9(0xdc)](_0x2c1ee9(0xcc))['to'](this,_0x2c1ee9(0xdd)),_0x44ea39[_0x2c1ee9(0xbc)][_0x2c1ee9(0xa8)](_0x2c1ee9(0xcb))['to'](this,_0x2c1ee9(0xa0)),_0x44ea39;}[_0x506733(0x9e)](){const _0x2d4ac0=_0x506733;this[_0x2d4ac0(0xae)]='',this[_0x2d4ac0(0x9f)]=!0x1,this[_0x2d4ac0(0xdd)]=!0x0,this[_0x2d4ac0(0xde)][_0x2d4ac0(0xb9)]=!0x0,this[_0x2d4ac0(0xb8)][_0x2d4ac0(0xb9)]=!0x0,this[_0x2d4ac0(0xde)][_0x2d4ac0(0xb1)]();}[_0x506733(0xb6)](){const _0x53e6c1=_0x506733,_0x19506d=this[_0x53e6c1(0xe0)];this[_0x53e6c1(0xdd)]=!0x1,this[_0x53e6c1(0xd4)]='',this[_0x53e6c1(0xd3)][_0x53e6c1(0xd5)](),this[_0x53e6c1(0xae)]&&(this[_0x53e6c1(0xd3)][_0x53e6c1(0xec)][_0x53e6c1(0x99)]=_0x34b73c(_0x19506d,_0x53e6c1(0xe7)));}[_0x506733(0xd1)](_0x1f1f12){const _0x4e6a58=_0x506733,_0x36b555=this[_0x4e6a58(0xe0)];this[_0x4e6a58(0xb6)](),this[_0x4e6a58(0x9f)]=!0x0,this[_0x4e6a58(0xcd)][_0x4e6a58(0xca)]=_0x1f1f12||_0x34b73c(_0x36b555,_0x4e6a58(0xad)),this[_0x4e6a58(0xae)]||(this[_0x4e6a58(0xde)][_0x4e6a58(0xb9)]=!0x1);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x1bb5(){const _0x415e71=['5870556WamOAr','4261108MxTQEo','fire','prompt','locale','10rPWGoY','children','28FChcwt','109464Bxbrad','1274aRhrtP','344nmKyrz','add','6XmBDiV','10470501HCfdcy','3glQmXW','4532435dQryOg','set','execute','4485514mCPEYd'];_0x1bb5=function(){return _0x415e71;};return _0x1bb5();}function _0x26b7(_0x512cf9,_0x5524fb){const _0x1bb5b6=_0x1bb5();return _0x26b7=function(_0x26b729,_0x57992f){_0x26b729=_0x26b729-0xaf;let _0x3e4aa7=_0x1bb5b6[_0x26b729];return _0x3e4aa7;},_0x26b7(_0x512cf9,_0x5524fb);}(function(_0x1e245b,_0x3239e5){const _0x2fca2e=_0x26b7,_0x32942e=_0x1e245b();while(!![]){try{const _0x1ba67b=parseInt(_0x2fca2e(0xba))/0x1*(parseInt(_0x2fca2e(0xb9))/0x2)+-parseInt(_0x2fca2e(0xbe))/0x3*(-parseInt(_0x2fca2e(0xb1))/0x4)+parseInt(_0x2fca2e(0xbf))/0x5*(-parseInt(_0x2fca2e(0xbc))/0x6)+parseInt(_0x2fca2e(0xb7))/0x7*(-parseInt(_0x2fca2e(0xb8))/0x8)+parseInt(_0x2fca2e(0xbd))/0x9+parseInt(_0x2fca2e(0xb5))/0xa*(-parseInt(_0x2fca2e(0xaf))/0xb)+-parseInt(_0x2fca2e(0xb0))/0xc;if(_0x1ba67b===_0x3239e5)break;else _0x32942e['push'](_0x32942e['shift']());}catch(_0x240ef9){_0x32942e['push'](_0x32942e['shift']());}}}(_0x1bb5,0x8ff14));import{ListItemView as _0x5b578c,ButtonView as _0x5875ff,ButtonLabelView as _0x222b38}from'ckeditor5/src/ui.js';import{unescape as _0xbc0f51}from'lodash-es';export default class hs extends _0x5b578c{constructor(_0x12d6f4){const _0x17cb7d=_0x26b7;super();const _0x15eb99=new _0x222b38(),_0x4a027e=new _0x5875ff(this[_0x17cb7d(0xb4)],_0x15eb99);this[_0x17cb7d(0xb6)][_0x17cb7d(0xbb)](_0x4a027e),_0x4a027e[_0x17cb7d(0xc0)]({'label':_0x12d6f4[_0x17cb7d(0xb3)],'withText':!0x0}),_0x4a027e['on'](_0x17cb7d(0xc1),()=>{const _0x4f8c55=_0x17cb7d;this[_0x4f8c55(0xb2)](_0x4f8c55(0xc1),{'value':_0xbc0f51(_0x12d6f4[_0x4f8c55(0xb3)])});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x263f1a=_0x195f;(function(_0x16ebb3,_0x5f1b3f){const _0x3c34a7=_0x195f,_0x32c04a=_0x16ebb3();while(!![]){try{const _0x4dcbba=-parseInt(_0x3c34a7(0x10d))/0x1+-parseInt(_0x3c34a7(0x105))/0x2+-parseInt(_0x3c34a7(0x10f))/0x3+parseInt(_0x3c34a7(0x11b))/0x4*(-parseInt(_0x3c34a7(0x11a))/0x5)+parseInt(_0x3c34a7(0x115))/0x6+-parseInt(_0x3c34a7(0x114))/0x7*(parseInt(_0x3c34a7(0x112))/0x8)+parseInt(_0x3c34a7(0x109))/0x9;if(_0x4dcbba===_0x5f1b3f)break;else _0x32c04a['push'](_0x32c04a['shift']());}catch(_0x9f3f7a){_0x32c04a['push'](_0x32c04a['shift']());}}}(_0x2459,0xacb72));import{ListView as _0x2144a1,ListItemGroupView as _0x1b3036,ButtonView as _0x3b7a58}from'ckeditor5/src/ui.js';import{getTranslation as _0x1c9dc8}from'../../utils/common-translations.js';export default class rs extends _0x2144a1{constructor(_0x50a837){const _0x189cdf=_0x195f;super(_0x50a837),this[_0x189cdf(0x10e)]=this[_0x189cdf(0x108)](),this[_0x189cdf(0x118)]=new _0x1b3036(),this[_0x189cdf(0x118)][_0x189cdf(0x107)][_0x189cdf(0x10a)](this[_0x189cdf(0x10e)],0x1),this[_0x189cdf(0x118)][_0x189cdf(0x111)]=_0x1c9dc8(_0x50a837,_0x189cdf(0x113)),this[_0x189cdf(0x118)][_0x189cdf(0x116)][_0x189cdf(0x110)](_0x189cdf(0x10b))['to'](this),this[_0x189cdf(0x116)][_0x189cdf(0x10a)](this[_0x189cdf(0x118)]);}[_0x263f1a(0x106)](){const _0x5c700a=_0x263f1a;let _0x2e48fe=0x0;for(const _0xe3851c of this[_0x5c700a(0x116)])_0x2e48fe+=_0xe3851c[_0x5c700a(0x116)][_0x5c700a(0x11d)];return{'resultsCount':_0x2e48fe,'totalItemsCount':_0x2e48fe};}[_0x263f1a(0x108)](){const _0x2aa0bb=_0x263f1a,_0x3287ab=this[_0x2aa0bb(0x11e)],_0x4ce711=new _0x3b7a58(this[_0x2aa0bb(0x11e)]);return _0x4ce711[_0x2aa0bb(0x119)]({'label':'('+_0x1c9dc8(_0x3287ab,_0x2aa0bb(0x10c))+')','withText':!0x0}),_0x4ce711['on'](_0x2aa0bb(0x10b),()=>this[_0x2aa0bb(0x11c)](_0x2aa0bb(0x117))),_0x4ce711;}}function _0x195f(_0x419ec0,_0x330d0d){const _0x24590e=_0x2459();return _0x195f=function(_0x195ff9,_0x1e133f){_0x195ff9=_0x195ff9-0x105;let _0x268068=_0x24590e[_0x195ff9];return _0x268068;},_0x195f(_0x419ec0,_0x330d0d);}function _0x2459(){const _0x13fc90=['fire','length','locale','2204246aLrpDQ','filter','children','_createClearHistoryButton','30166569CDkxbH','add','execute','Clear','569873HjpnIR','clearHistoryButton','3548685HNbnbc','delegate','label','2976112iQPVUm','Prompt\x20history','7ygHbES','5570628hDFQzc','items','clearHistory','historyGroupView','set','432415KbHIpe','16KnfbYp'];_0x2459=function(){return _0x13fc90;};return _0x2459();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x36a2dd=_0x400e;(function(_0x5ba80d,_0x4f20a6){const _0x19b8f9=_0x400e,_0x2e48c3=_0x5ba80d();while(!![]){try{const _0x5c29a0=parseInt(_0x19b8f9(0x191))/0x1+parseInt(_0x19b8f9(0x19c))/0x2*(-parseInt(_0x19b8f9(0x18f))/0x3)+-parseInt(_0x19b8f9(0x19a))/0x4+parseInt(_0x19b8f9(0x19f))/0x5+parseInt(_0x19b8f9(0x190))/0x6+-parseInt(_0x19b8f9(0x18c))/0x7*(-parseInt(_0x19b8f9(0x193))/0x8)+-parseInt(_0x19b8f9(0x197))/0x9*(parseInt(_0x19b8f9(0x198))/0xa);if(_0x5c29a0===_0x4f20a6)break;else _0x2e48c3['push'](_0x2e48c3['shift']());}catch(_0x1765e0){_0x2e48c3['push'](_0x2e48c3['shift']());}}}(_0x1610,0xc1fbf));function _0x400e(_0x333b55,_0x4da57d){const _0x161011=_0x1610();return _0x400e=function(_0x400e1a,_0x538b6f){_0x400e1a=_0x400e1a-0x18c;let _0xb7b183=_0x161011[_0x400e1a];return _0xb7b183;},_0x400e(_0x333b55,_0x4da57d);}import{Collection as _0x3873e4}from'ckeditor5/src/utils.js';const cs=_0x36a2dd(0x1a2);export default class os extends _0x3873e4{constructor(){const _0x2c42a7=_0x36a2dd;super(),this[_0x2c42a7(0x18e)](),this['on'](_0x2c42a7(0x199),(_0x10bcce,_0x5a39d6)=>{const _0x435906=_0x2c42a7,_0x5dbaa9=Ss(_0x5a39d6[_0x435906(0x1a5)]);for(const _0x1d1d2d of this)if(_0x1d1d2d!=_0x5a39d6&&Ss(_0x1d1d2d[_0x435906(0x1a5)])===_0x5dbaa9){this[_0x435906(0x194)](_0x1d1d2d);break;}this[_0x435906(0x192)]>0x14&&this[_0x435906(0x194)](this[_0x435906(0x1a1)]),this[_0x435906(0x195)]();}),this['on'](_0x2c42a7(0x194),()=>{const _0x11841c=_0x2c42a7;this[_0x11841c(0x195)]();});}[_0x36a2dd(0x18e)](){const _0x7f8d28=_0x36a2dd,_0x4c5fb7=sessionStorage[_0x7f8d28(0x196)](cs)||'[]';this[_0x7f8d28(0x1a4)](JSON[_0x7f8d28(0x1a3)](_0x4c5fb7));}[_0x36a2dd(0x195)](){const _0x383a6f=_0x36a2dd;sessionStorage[_0x383a6f(0x18d)](cs,JSON[_0x383a6f(0x1a0)](this[_0x383a6f(0x19d)](_0x699e5a=>_0x699e5a)));}}function _0x1610(){const _0x1d0378=['6017555Tnhhxo','stringify','last','CKEditor/AIFormView/PromptHistory','parse','addMany','prompt','620207QlOypP','setItem','_loadFromSessionStorage','478167RjMnYI','1775562enAoHN','160833jfzRcv','length','56SSkRCk','remove','_saveToSessionStorage','getItem','4113gWzqKv','2040uhUAEg','add','4933208GkQEZo','trim','2kebEdU','map','toLowerCase'];_0x1610=function(){return _0x1d0378;};return _0x1610();}function Ss(_0x4042cf){const _0x516d33=_0x36a2dd;return _0x4042cf[_0x516d33(0x19e)]()[_0x516d33(0x19b)]();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2a7b94=_0x3e51;(function(_0x4e5240,_0x5d9cbb){const _0x28aa1d=_0x3e51,_0x33c835=_0x4e5240();while(!![]){try{const _0x41386d=-parseInt(_0x28aa1d(0xfc))/0x1+-parseInt(_0x28aa1d(0xf2))/0x2+-parseInt(_0x28aa1d(0xe8))/0x3+parseInt(_0x28aa1d(0x100))/0x4*(parseInt(_0x28aa1d(0xf4))/0x5)+-parseInt(_0x28aa1d(0xfd))/0x6*(-parseInt(_0x28aa1d(0xf1))/0x7)+parseInt(_0x28aa1d(0xde))/0x8*(-parseInt(_0x28aa1d(0xe7))/0x9)+parseInt(_0x28aa1d(0xf8))/0xa;if(_0x41386d===_0x5d9cbb)break;else _0x33c835['push'](_0x33c835['shift']());}catch(_0x542b96){_0x33c835['push'](_0x33c835['shift']());}}}(_0x30f1,0xad8b0));function _0x30f1(){const _0x2bc487=['38943LLjfPC','custom','_hasContext','requiresContent','ai.aiAssistant.disabledElements','includes','values','document','getSelectedBlocks','119OvuPNv','2235556JBTeZr','hasContent','693205zWvRGE','showUI','plugins','set','23412090IWLTMn','getItems','model','length','935406UVhYjP','18126cpXidV','enabledCommandsIds','selection','20BohGOx','getRanges','isEmpty','from','config','change:isEnabled','element','execute','add','getFirstRange','1235096VQPkfi','_commandDefinitions','name','isCollapsed','refresh','get','change:_hasContext','editor','isEnabled','18AueTTp'];_0x30f1=function(){return _0x2bc487;};return _0x30f1();}import{Command as _0x13d990}from'ckeditor5/src/core.js';function _0x3e51(_0x3e2a42,_0x56115f){const _0x30f17d=_0x30f1();return _0x3e51=function(_0x3e5107,_0x106204){_0x3e5107=_0x3e5107-0xd5;let _0xa4d76d=_0x30f17d[_0x3e5107];return _0xa4d76d;},_0x3e51(_0x3e2a42,_0x56115f);}import _0x2bfedf from'../aiassistantui.js';export default class j extends _0x13d990{constructor(_0x31225b,_0x72ce21){const _0x784d7b=_0x3e51;super(_0x31225b),this[_0x784d7b(0xdf)]=_0x72ce21,this[_0x784d7b(0xf7)](_0x784d7b(0xfe),[]),this['on'](_0x784d7b(0xe4),(_0x12d775,_0x2df06e,_0x2b3c8f)=>{const _0x7b02d5=_0x784d7b;this[_0x7b02d5(0xe6)]&&(this[_0x7b02d5(0xfe)]=G(this[_0x7b02d5(0xdf)],_0x2b3c8f));}),this[_0x784d7b(0xf7)](_0x784d7b(0xea),!0x1),this['on'](_0x784d7b(0xd9),(_0x1004cc,_0x20ca07,_0x31d497)=>{const _0x1a3ed1=_0x784d7b;this[_0x1a3ed1(0xfe)]=_0x31d497?G(this[_0x1a3ed1(0xdf)],this[_0x1a3ed1(0xea)]):[];});}[_0x2a7b94(0xe2)](){const _0x2a55a2=_0x2a7b94,_0x48379c=this[_0x2a55a2(0xe5)][_0x2a55a2(0xfa)];this[_0x2a55a2(0xea)]=function(_0x30c77c){const _0x11db96=_0x2a55a2,_0x3a122f=_0x30c77c[_0x11db96(0xef)][_0x11db96(0xff)];return _0x3a122f[_0x11db96(0xe1)]?0x0!==[..._0x3a122f[_0x11db96(0xf0)]()][_0x11db96(0xfb)]&&![..._0x3a122f[_0x11db96(0xf0)]()][0x0][_0x11db96(0xd6)]:!!_0x30c77c[_0x11db96(0xf3)](_0x3a122f[_0x11db96(0xdd)]());}(_0x48379c);const _0x4a2c92=_0x48379c[_0x2a55a2(0xef)][_0x2a55a2(0xff)],_0x107068=this[_0x2a55a2(0xe5)][_0x2a55a2(0xd8)][_0x2a55a2(0xe3)](_0x2a55a2(0xec));for(const _0xb66ba0 of _0x4a2c92[_0x2a55a2(0xd5)]())for(const _0x1ad887 of _0xb66ba0[_0x2a55a2(0xf9)]())if(_0x1ad887['is'](_0x2a55a2(0xda))&&_0x107068[_0x2a55a2(0xed)](_0x1ad887[_0x2a55a2(0xe0)]))return void(this[_0x2a55a2(0xe6)]=!0x1);this[_0x2a55a2(0xe6)]=!0x0;}[_0x2a7b94(0xdb)](_0x35fd0a='',_0x1e7a5f='',_0x3877c8=_0x2a7b94(0xe9)){const _0x217917=_0x2a7b94;this[_0x217917(0xe5)][_0x217917(0xf6)][_0x217917(0xe3)](_0x2bfedf)[_0x217917(0xf5)](_0x35fd0a,_0x1e7a5f,_0x3877c8);}}function G(_0x5cbe09,_0x54d4a5){const _0x1aa980=_0x2a7b94,_0x58f7f8=new Set();for(const _0x2a9feb of _0x5cbe09[_0x1aa980(0xee)]())(_0x54d4a5||!0x1===_0x2a9feb[_0x1aa980(0xeb)])&&_0x58f7f8[_0x1aa980(0xdc)](_0x2a9feb['id']);return Array[_0x1aa980(0xd7)](_0x58f7f8);}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(
|
|
23
|
+
export function getTranslation(_0x122994,_0x537354,_0x1d471a){const t=_0x122994['t'];switch(_0x537354){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'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',_0x1d471a);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x1d471a);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'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'},_0x1d471a);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 _0x537354;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export const UNGROUPED_COMMANDS_GROUP_ID='_ungrouppedCommands';export function normalizeCommandsConfig(
|
|
23
|
+
export const UNGROUPED_COMMANDS_GROUP_ID='_ungrouppedCommands';export function normalizeCommandsConfig(_0x7466ae,_0x2a58ca){const _0x3a271a=(0x0,_0x2a58ca['t'])('Other');return _0x7466ae['length']?'groupId'in _0x7466ae[0x0]?_0x7466ae:[{'groupId':'_ungrouppedCommands','groupLabel':_0x3a271a,'order':0x1/0x0,'commands':_0x7466ae}]:[{'groupId':'_ungrouppedCommands','groupLabel':_0x3a271a,'order':0x1/0x0,'commands':[]}];}
|