@ckeditor/ckeditor5-ai 0.0.0-nightly-20240519.0 → 0.0.0-nightly-20240521.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +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/lang/contexts.json +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
|
+
function _0x581c(_0xf0c756,_0x2ad7b0){const _0xd543f3=_0xd543();return _0x581c=function(_0x581c18,_0x2e0f0e){_0x581c18=_0x581c18-0x13a;let _0x34b2ae=_0xd543f3[_0x581c18];return _0x34b2ae;},_0x581c(_0xf0c756,_0x2ad7b0);}const _0x2fb88d=_0x581c;(function(_0x1db0c3,_0x125354){const _0x39a7d4=_0x581c,_0x4be690=_0x1db0c3();while(!![]){try{const _0x3ef7d5=-parseInt(_0x39a7d4(0x179))/0x1*(parseInt(_0x39a7d4(0x141))/0x2)+-parseInt(_0x39a7d4(0x186))/0x3*(-parseInt(_0x39a7d4(0x144))/0x4)+-parseInt(_0x39a7d4(0x163))/0x5+-parseInt(_0x39a7d4(0x167))/0x6*(-parseInt(_0x39a7d4(0x146))/0x7)+-parseInt(_0x39a7d4(0x15a))/0x8*(-parseInt(_0x39a7d4(0x16a))/0x9)+-parseInt(_0x39a7d4(0x14b))/0xa*(-parseInt(_0x39a7d4(0x18e))/0xb)+-parseInt(_0x39a7d4(0x156))/0xc;if(_0x3ef7d5===_0x125354)break;else _0x4be690['push'](_0x4be690['shift']());}catch(_0x212809){_0x4be690['push'](_0x4be690['shift']());}}}(_0xd543,0x5665f));import{ObservableMixin as _0x5304c9}from'ckeditor5/src/utils.js';import{AIRequestError as _0x14a57a}from'../adapters/aiadapter.js';function _0xd543(){const _0x337b38=['exec','makeRequest','editor','currentResponse','updateView','stringify','render','setContentOf','rename','document','custom','stopProcessing','1188730SypcBW','_sanitizeHTML','set:currentContext','2091928DiOZPW','finally','7wDGgPh','element','_parseAndNormalizeContent','previousActionId','destroy','2246270XSueqC','ELEMENT_NODE','reset','_sanitizationContainer','handleError','abort','isRendered','body','div','view','domConverter','5715540pbGJOL','processor','once','catch','1592MbVZKb','data','value','previousQuery','_domParser','createElement','innerHTML','tryAgainEvent','nodeType','596985jtJdJf','from','reverse','_stripMarkdownSyntax','1789428BpnsUX','```html','substring','22527dIygyP','previousContext','initialContext','prompt','startsWith','submitPrompt','length','message','startProcessing','set','serializeToString','toView','mainAction','name','finishProcessing','1MkuKuh','endsWith','previousLabel','push','currentContext','text/html','editing','then','match','_xmlSerializer','remove','childNodes','listenTo','3MUWIjX','textAdapter','```','toModel','trim','isProcessing','_normalizeResponseHeadings','parseFromString','11Xnquet','_handleQuery','stopListening'];_0xd543=function(){return _0x337b38;};return _0xd543();}import{Matcher as _0x3e486f,UpcastWriter as _0x15235e}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
|
+
_0x5304c9(){constructor(_0xa74f0f,_0x3db145,_0x501a2e){const _0x3cb528=_0x581c;super(),this[_0x3cb528(0x193)]=_0xa74f0f,this[_0x3cb528(0x187)]=_0x3db145,this[_0x3cb528(0x14e)]=document[_0x3cb528(0x15f)](_0x3cb528(0x153)),this[_0x3cb528(0x15e)]=new DOMParser(),this[_0x3cb528(0x182)]=new XMLSerializer(),this[_0x3cb528(0x154)]=_0x501a2e,this[_0x3cb528(0x173)]({'initialContext':'','currentContext':'','currentResponse':'','previousContext':void 0x0,'previousQuery':void 0x0,'previousLabel':void 0x0,'isProcessing':!0x1}),this['on'](_0x3cb528(0x143),(_0x4950f6,_0x409a48,_0x26ca7d)=>{const _0x25b253=_0x3cb528;this[_0x25b253(0x154)][_0x25b253(0x15c)]=this[_0x25b253(0x142)](_0x26ca7d);}),this[_0x3cb528(0x185)](this[_0x3cb528(0x154)],_0x3cb528(0x16f),(_0x2e47bd,_0x6e330d)=>{const _0x17dca0=_0x3cb528,_0x84621=this[_0x17dca0(0x17d)]||this[_0x17dca0(0x16c)];this[_0x17dca0(0x18f)](_0x6e330d,_0x84621,_0x17dca0(0x13f));}),this[_0x3cb528(0x185)](this[_0x3cb528(0x154)],_0x3cb528(0x161),()=>{const _0x1088b7=_0x3cb528;this[_0x1088b7(0x154)][_0x1088b7(0x16d)]=this[_0x1088b7(0x17b)],this[_0x1088b7(0x18f)](this[_0x1088b7(0x15d)],this[_0x1088b7(0x16b)],this[_0x1088b7(0x149)],this[_0x1088b7(0x17b)]);}),this[_0x3cb528(0x185)](this[_0x3cb528(0x154)],_0x3cb528(0x140),()=>{const _0x1a4f70=_0x3cb528;this[_0x1a4f70(0x140)]();});}[_0x2fb88d(0x14a)](){const _0x265b36=_0x2fb88d;this[_0x265b36(0x190)]();}async[_0x2fb88d(0x195)]({actionId:_0x4e7ed1,query:_0x2f5ce6,htmlContent:_0x450c6,label:_0x212719,mainActionLabel:_0x35e20f}){const _0x240922=_0x2fb88d;this[_0x240922(0x154)][_0x240922(0x16d)]=_0x212719,this[_0x240922(0x154)][_0x240922(0x176)]=_0x35e20f,this[_0x240922(0x16c)]=_0x450c6,_0x2f5ce6&&(this[_0x240922(0x154)][_0x240922(0x151)]?this[_0x240922(0x18f)](_0x2f5ce6,_0x450c6,_0x4e7ed1,_0x212719):this[_0x240922(0x154)][_0x240922(0x158)](_0x240922(0x13b),()=>{const _0x22df77=_0x240922;this[_0x22df77(0x18f)](_0x2f5ce6,_0x450c6,_0x4e7ed1,_0x212719);}));}[_0x2fb88d(0x140)](){const _0xe9bb82=_0x2fb88d;this[_0xe9bb82(0x18b)]&&(this[_0xe9bb82(0x18b)]=!0x1,this[_0xe9bb82(0x154)][_0xe9bb82(0x178)](),this[_0xe9bb82(0x187)][_0xe9bb82(0x150)]());}[_0x2fb88d(0x14d)](){const _0x1eb4ed=_0x2fb88d;this[_0x1eb4ed(0x16c)]='',this[_0x1eb4ed(0x17d)]='',this[_0x1eb4ed(0x194)]='',this[_0x1eb4ed(0x16b)]='',this[_0x1eb4ed(0x15d)]='',this[_0x1eb4ed(0x17b)]='',this[_0x1eb4ed(0x149)]=void 0x0,this[_0x1eb4ed(0x154)][_0x1eb4ed(0x14d)](),this[_0x1eb4ed(0x140)]();}async[_0x2fb88d(0x18f)](_0x1b8c49,_0x4fdc21,_0x3c54a3,_0x4c1503){const _0x388639=_0x2fb88d;return this[_0x388639(0x18b)]=!0x0,this[_0x388639(0x154)][_0x388639(0x172)](),this[_0x388639(0x16b)]=_0x4fdc21,this[_0x388639(0x15d)]=_0x1b8c49,this[_0x388639(0x17b)]=_0x4c1503||_0x1b8c49,this[_0x388639(0x149)]=_0x3c54a3,new Promise(_0x144afe=>{const _0x370939=_0x388639;this[_0x370939(0x187)][_0x370939(0x192)]({'query':_0x1b8c49,'context':_0x4fdc21,'onData':_0x54d639=>{const _0x40f984=_0x370939;this[_0x40f984(0x194)]=_0x54d639,this[_0x40f984(0x17d)]=this[_0x40f984(0x148)](this[_0x40f984(0x194)]);},'actionId':_0x3c54a3})[_0x370939(0x180)](()=>{const _0x1d6420=_0x370939;!this[_0x1d6420(0x17d)]&&this[_0x1d6420(0x194)]&&(this[_0x1d6420(0x17d)]=this[_0x1d6420(0x148)](this[_0x1d6420(0x194)],!0x0));})[_0x370939(0x159)](_0x1856af=>{const _0x47aea4=_0x370939;_0x1856af instanceof _0x14a57a?this[_0x47aea4(0x154)][_0x47aea4(0x14f)](_0x1856af[_0x47aea4(0x171)]):this[_0x47aea4(0x154)][_0x47aea4(0x14f)](),_0x144afe();})[_0x370939(0x145)](()=>{const _0x31fea3=_0x370939;this[_0x31fea3(0x140)](),_0x144afe();});});}[_0x2fb88d(0x148)](_0x2140f7,_0xbebf1e=!0x1){const _0x5be0f8=_0x2fb88d,_0x34d2fc=X[_0x5be0f8(0x191)](_0x2140f7);_0x2140f7=_0x34d2fc?_0x2140f7[_0x5be0f8(0x169)](_0x34d2fc[0x1][_0x5be0f8(0x170)]):_0x2140f7[_0x5be0f8(0x170)]<0x64&&!_0xbebf1e?'':this[_0x5be0f8(0x166)](_0x2140f7);const _0x12c830=this[_0x5be0f8(0x15e)][_0x5be0f8(0x18d)](_0x2140f7,_0x5be0f8(0x17e));if(_0x34d2fc){const _0x128d66=Array[_0x5be0f8(0x164)](_0x12c830[_0x5be0f8(0x152)][_0x5be0f8(0x184)]);_0x128d66[_0x5be0f8(0x165)]();for(const _0x2a0e74 of _0x128d66){if(_0x2a0e74[_0x5be0f8(0x162)]==Node[_0x5be0f8(0x14c)])break;_0x2a0e74[_0x5be0f8(0x183)]();}}const _0x2c293a=this[_0x5be0f8(0x193)][_0x5be0f8(0x15b)][_0x5be0f8(0x157)][_0x5be0f8(0x175)](this[_0x5be0f8(0x182)][_0x5be0f8(0x174)](_0x12c830[_0x5be0f8(0x152)]));return this[_0x5be0f8(0x18c)](_0x2c293a),this[_0x5be0f8(0x193)][_0x5be0f8(0x15b)][_0x5be0f8(0x13a)](this[_0x5be0f8(0x193)][_0x5be0f8(0x15b)][_0x5be0f8(0x189)](_0x2c293a));}[_0x2fb88d(0x18c)](_0xb18149){const _0x132d26=_0x2fb88d,_0x54dc1f=new _0x15235e(this[_0x132d26(0x193)][_0x132d26(0x17f)][_0x132d26(0x154)][_0x132d26(0x13e)]),_0x3e0806=new _0x3e486f({'name':/^h[1-5]$/}),_0x342c66=[];let _0x313347=!0x1;for(const _0x3d4960 of _0xb18149)_0x3d4960['is'](_0x132d26(0x147))&&_0x3e0806[_0x132d26(0x181)](_0x3d4960)&&(_0x342c66[_0x132d26(0x17c)](_0x3d4960),'h1'==_0x3d4960[_0x132d26(0x177)]&&(_0x313347=!0x0));if(_0x313347){for(const _0x57a6d9 of _0x342c66)_0x54dc1f[_0x132d26(0x13d)]('h'+(parseInt(_0x57a6d9[_0x132d26(0x177)][0x1])+0x1),_0x57a6d9);}}[_0x2fb88d(0x142)](_0x5b237b){const _0x3f6db0=_0x2fb88d;return this[_0x3f6db0(0x193)][_0x3f6db0(0x17f)][_0x3f6db0(0x154)][_0x3f6db0(0x155)][_0x3f6db0(0x13c)](this[_0x3f6db0(0x14e)],_0x5b237b),this[_0x3f6db0(0x14e)][_0x3f6db0(0x160)];}[_0x2fb88d(0x166)](_0x4ca1ce){const _0x28ec6b=_0x2fb88d,_0x1cc2df=_0x4ca1ce[_0x28ec6b(0x18a)]();return _0x1cc2df[_0x28ec6b(0x16e)](_0x28ec6b(0x168))?_0x1cc2df[_0x28ec6b(0x17a)](_0x28ec6b(0x188))?_0x1cc2df[_0x28ec6b(0x169)](0x7,_0x1cc2df[_0x28ec6b(0x170)]-0x3):_0x1cc2df[_0x28ec6b(0x169)](0x7):_0x4ca1ce;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x5c3589=_0xdb8e;(function(_0xbe4fb,_0x2890e8){const _0x410277=_0xdb8e,_0x1a3546=_0xbe4fb();while(!![]){try{const _0x17c007=-parseInt(_0x410277(0x182))/0x1*(parseInt(_0x410277(0x171))/0x2)+-parseInt(_0x410277(0x173))/0x3*(parseInt(_0x410277(0x17d))/0x4)+-parseInt(_0x410277(0x170))/0x5+-parseInt(_0x410277(0x187))/0x6*(parseInt(_0x410277(0x184))/0x7)+parseInt(_0x410277(0x175))/0x8+-parseInt(_0x410277(0x17a))/0x9+-parseInt(_0x410277(0x17b))/0xa*(-parseInt(_0x410277(0x177))/0xb);if(_0x17c007===_0x2890e8)break;else _0x1a3546['push'](_0x1a3546['shift']());}catch(_0x22dcbe){_0x1a3546['push'](_0x1a3546['shift']());}}}(_0x1d59,0xda5eb));function _0xdb8e(_0xd6b6d5,_0x2a5cef){const _0x1d59d0=_0x1d59();return _0xdb8e=function(_0xdb8eed,_0x11172b){_0xdb8eed=_0xdb8eed-0x16a;let _0x5c2502=_0x1d59d0[_0xdb8eed];return _0x5c2502;},_0xdb8e(_0xd6b6d5,_0x2a5cef);}import{ListView as _0xd23ab,ListItemGroupView as _0x188486}from'ckeditor5/src/ui.js';function _0x1d59(){const _0x476c31=['change:enabledCommandsIds','listbox','match','19450EJzkJr','8YGSifE','items','84828tWpuHM','includes','7444304pJYgTN','labelView','1900547gjFfiW','label','get','12180159fKgBct','220CwlWCx','first','104DofSAU','set','highlightText','enabledCommandsIds','children','386959caaArC','commandDefinition','344638EzmmLc','length','isEnabled','24sbEtiM','filter','role','isVisible'];_0x1d59=function(){return _0x476c31;};return _0x1d59();}import{AICommandsListItemView as _0x2699bb}from'../../aiassistantui.js';export default class U extends _0xd23ab{constructor(_0x187b19){const _0x2aa56c=_0xdb8e;super(_0x187b19),this[_0x2aa56c(0x16b)]=_0x2aa56c(0x16e),this[_0x2aa56c(0x17e)](_0x2aa56c(0x180),[]),this['on'](_0x2aa56c(0x16d),()=>{const _0x4e4db9=_0x2aa56c;for(const _0x1ecd07 of this[_0x4e4db9(0x172)])if(_0x1ecd07 instanceof _0x188486){for(const _0x465495 of _0x1ecd07[_0x4e4db9(0x172)])if(_0x465495 instanceof _0x2699bb){const _0x179204=_0x465495[_0x4e4db9(0x181)][_0x4e4db9(0x179)](0x0);this[_0x4e4db9(0x180)][_0x4e4db9(0x174)](_0x465495[_0x4e4db9(0x183)]['id'])?_0x179204[_0x4e4db9(0x186)]=!0x0:_0x179204[_0x4e4db9(0x186)]=!0x1;}}});}[_0x5c3589(0x16a)](_0x4ffb43){const _0xda17bb=_0x5c3589;let _0x421d24=0x0,_0x1ffb02=0x0;for(const _0xada9c9 of this[_0xda17bb(0x172)]){const _0xdb6c71=_0xada9c9,_0x20b49a=_0xdb6c71[_0xda17bb(0x172)],_0x320e3f=_0x4ffb43&&!!_0xdb6c71[_0xda17bb(0x178)][_0xda17bb(0x16f)](_0x4ffb43);_0xdb6c71[_0xda17bb(0x176)][_0xda17bb(0x17f)](_0x320e3f?_0x4ffb43:null);for(const _0x208c1a of _0x20b49a){const _0x3a79c3=_0x208c1a[_0xda17bb(0x181)][_0xda17bb(0x17c)],_0x516460=_0x3a79c3[_0xda17bb(0x176)];if(_0x4ffb43){const _0x2b2671=!!_0x3a79c3[_0xda17bb(0x178)][_0xda17bb(0x16f)](_0x4ffb43);_0x516460[_0xda17bb(0x17f)](_0x2b2671?_0x4ffb43:null),_0x208c1a[_0xda17bb(0x16c)]=_0x320e3f||_0x2b2671;}else _0x208c1a[_0xda17bb(0x16c)]=!0x0,_0x516460[_0xda17bb(0x17f)](null);}const _0x5b73f5=_0x20b49a[_0xda17bb(0x16a)](_0x530e3f=>_0x530e3f[_0xda17bb(0x16c)])[_0xda17bb(0x185)];_0x421d24+=_0xdb6c71[_0xda17bb(0x172)][_0xda17bb(0x185)],_0x1ffb02+=_0x320e3f?_0xdb6c71[_0xda17bb(0x172)][_0xda17bb(0x185)]:_0x5b73f5,_0xdb6c71[_0xda17bb(0x16c)]=_0x320e3f||!!_0x5b73f5;}return{'resultsCount':_0x1ffb02,'totalItemsCount':_0x421d24};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x8f46(){const _0x40bc1c=['1okiKbk','style','extendTemplate','6weHfGW','46470yMZjfU','9772334EPbemS','bindTemplate','675624zUZEyR','27DWnVlw','1701042gjbqzE','670676EhvFDY','16zOMvgx','64365arGGbi','77vgjcqc','1014745IcblmT','set','12MjYyyp','ck-button__label'];_0x8f46=function(){return _0x40bc1c;};return _0x8f46();}(function(_0x2b0574,_0x31ad34){const _0x42fd56=_0x455a,_0x52ad15=_0x2b0574();while(!![]){try{const _0x2c29af=-parseInt(_0x42fd56(0x1ee))/0x1*(parseInt(_0x42fd56(0x1e6))/0x2)+-parseInt(_0x42fd56(0x1e8))/0x3*(parseInt(_0x42fd56(0x1e7))/0x4)+-parseInt(_0x42fd56(0x1ea))/0x5*(parseInt(_0x42fd56(0x1f1))/0x6)+-parseInt(_0x42fd56(0x1f7))/0x7+parseInt(_0x42fd56(0x1f5))/0x8*(parseInt(_0x42fd56(0x1f6))/0x9)+-parseInt(_0x42fd56(0x1f2))/0xa*(-parseInt(_0x42fd56(0x1e9))/0xb)+parseInt(_0x42fd56(0x1ec))/0xc*(parseInt(_0x42fd56(0x1f3))/0xd);if(_0x2c29af===_0x31ad34)break;else _0x52ad15['push'](_0x52ad15['shift']());}catch(_0x36f9b0){_0x52ad15['push'](_0x52ad15['shift']());}}}(_0x8f46,0x299fd));function _0x455a(_0x21352c,_0x54ec75){const _0x8f464b=_0x8f46();return _0x455a=function(_0x455abd,_0x3d5968){_0x455abd=_0x455abd-0x1e6;let _0x4b75c5=_0x8f464b[_0x455abd];return _0x4b75c5;},_0x455a(_0x21352c,_0x54ec75);}import{HighlightedTextView as _0xdbfb11}from'ckeditor5/src/ui.js';export default class N extends _0xdbfb11{constructor(){const _0x12f2bf=_0x455a;super(),this[_0x12f2bf(0x1eb)]({'style':void 0x0,'text':void 0x0,'id':void 0x0});const _0x513724=this[_0x12f2bf(0x1f4)];this[_0x12f2bf(0x1f0)]({'attributes':{'class':[_0x12f2bf(0x1ed)],'style':_0x513724['to'](_0x12f2bf(0x1ef)),'id':_0x513724['to']('id')}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0xb52d42,_0x54d1a5){const _0x3bc33b=_0x1de5,_0x44fc75=_0xb52d42();while(!![]){try{const _0x199299=-parseInt(_0x3bc33b(0x1d5))/0x1+parseInt(_0x3bc33b(0x1cc))/0x2+parseInt(_0x3bc33b(0x1d8))/0x3*(-parseInt(_0x3bc33b(0x1d0))/0x4)+parseInt(_0x3bc33b(0x1cd))/0x5*(-parseInt(_0x3bc33b(0x1d2))/0x6)+parseInt(_0x3bc33b(0x1d1))/0x7+parseInt(_0x3bc33b(0x1ce))/0x8+parseInt(_0x3bc33b(0x1cb))/0x9;if(_0x199299===_0x54d1a5)break;else _0x44fc75['push'](_0x44fc75['shift']());}catch(_0x2fb04b){_0x44fc75['push'](_0x44fc75['shift']());}}}(_0x3c32,0xdc767));import{HighlightedTextView as _0x642895}from'ckeditor5/src/ui.js';import{uid as _0xb51422}from'ckeditor5/src/utils.js';function _0x1de5(_0xa8492f,_0x2e3693){const _0x3c3243=_0x3c32();return _0x1de5=function(_0x1de5cc,_0x2513d7){_0x1de5cc=_0x1de5cc-0x1cb;let _0xa92a8f=_0x3c3243[_0x1de5cc];return _0xa92a8f;},_0x1de5(_0xa8492f,_0x2e3693);}export default class S extends _0x642895{constructor(){const _0x17f002=_0x1de5;super(),this[_0x17f002(0x1d9)](_0x17f002(0x1d6),void 0x0);const _0x2a5544=this[_0x17f002(0x1d3)];this['id']=_0x17f002(0x1cf)+_0xb51422(),this[_0x17f002(0x1d7)]({'attributes':{'class':['ck',_0x17f002(0x1d4)],'id':this['id'],'for':_0x2a5544['to'](_0x17f002(0x1d6))}});}}function _0x3c32(){const _0x122638=['extendTemplate','3vPpihO','set','10047402QfrrGI','2457586ovAkhk','2215eIUKYo','4795680ehWxbE','ck-editor__label_','5400632symypc','6045718BuwlNO','17310yKsmBR','bindTemplate','ck-label','277077gvdvup','for'];_0x3c32=function(){return _0x122638;};return _0x3c32();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x27e736=_0x3bf2;function _0x3bf2(_0x377a28,_0x4a821d){const _0x32d339=_0x32d3();return _0x3bf2=function(_0x3bf2f1,_0x84157b){_0x3bf2f1=_0x3bf2f1-0x1a7;let _0x477107=_0x32d339[_0x3bf2f1];return _0x477107;},_0x3bf2(_0x377a28,_0x4a821d);}(function(_0xd4143f,_0x5ec258){const _0x19d367=_0x3bf2,_0x2dd00b=_0xd4143f();while(!![]){try{const _0x3cec2d=parseInt(_0x19d367(0x1b3))/0x1+parseInt(_0x19d367(0x1ce))/0x2+parseInt(_0x19d367(0x1e1))/0x3+-parseInt(_0x19d367(0x1dc))/0x4*(parseInt(_0x19d367(0x1c0))/0x5)+-parseInt(_0x19d367(0x1e6))/0x6*(parseInt(_0x19d367(0x1af))/0x7)+parseInt(_0x19d367(0x1f6))/0x8+parseInt(_0x19d367(0x1c1))/0x9;if(_0x3cec2d===_0x5ec258)break;else _0x2dd00b['push'](_0x2dd00b['shift']());}catch(_0x1411a8){_0x2dd00b['push'](_0x2dd00b['shift']());}}}(_0x32d3,0x740d3));import{global as _0x4d685b}from'ckeditor5/src/utils.js';import{View as _0x4b4e30,ButtonView as _0x23adf2,SpinnerView as _0x59d8f0}from'ckeditor5/src/ui.js';import _0x179593 from'../../../theme/icons/copy.svg';function _0x32d3(){const _0x259837=['removeAllRanges','createElement','listenTo','69312cHezQB','ck-content','appendChild','ck-ai-form__copy-button','ck-hidden','_createCopyButton','copyButtonView','text/plain','scrollTo','bind','setStartAfter','remove','ck-ai-form__copy-button-wrapper','55IFJySD','9537921IcGPdx','mousedown','clipboard','div','<span>[</span>','absolute','ck-reset_all-excluded','value','bindTemplate','icon','ck-ai-form__content-area--processing','isProcessing','isEnabled','109524IPoUgI','set','ck-ai-form__content-field','addRange','setContent','ck-ai-form__content-area','_copyHTMLToClipboard','loaderView','focus','element','_createLoader','textContent','setEndBefore','wheel','301228pPMvDw','Copy','ck-ai-form__content-area-wrapper','write','change:isProcessing','540579WnrDBE','querySelector','left','scrollHeight','<span>]</span>','5934VYfOdx','execute','execCommand','-9999px','body','smooth','\x20ck-ai-form__copy-button--copied','check','copy','ck-ai-form__loader','position','createRange','class','AI\x20is\x20writing...','isVisible','style','1772424BbmHpr','render','firstElementChild','getSelection','appendLoader','contentFieldView','ClipboardItem','text/html','setTemplate','innerHTML','locale','.ck-ai-form__loader','change:value','lastElementChild','1995iocneW'];_0x32d3=function(){return _0x259837;};return _0x32d3();}import{getTranslation as _0x14b05c}from'../../utils/common-translations.js';import{icons as _0x4545c9}from'ckeditor5/src/core.js';export default class nt extends _0x4b4e30{constructor(_0x2056a6,_0x37ad04=''){const _0x2b4ab4=_0x3bf2;super(_0x2056a6),this[_0x2b4ab4(0x1cf)]({'value':null,'isVisible':!0x1,'isProcessing':!0x1});const _0x473d41=this[_0x2b4ab4(0x1c9)];this[_0x2b4ab4(0x1fb)]=new ContentFieldView(_0x2056a6,_0x37ad04),this[_0x2b4ab4(0x1b9)]=this[_0x2b4ab4(0x1b8)](),this[_0x2b4ab4(0x1a9)]({'tag':_0x2b4ab4(0x1c4),'attributes':{'class':['ck',_0x2b4ab4(0x1de),_0x473d41['if'](_0x2b4ab4(0x1f4),_0x2b4ab4(0x1b7),_0x49bc8a=>!_0x49bc8a)],'tabindex':'-1'},'children':[{'tag':_0x2b4ab4(0x1c4),'attributes':{'class':['ck',_0x2b4ab4(0x1d3),_0x473d41['if'](_0x2b4ab4(0x1cc),_0x2b4ab4(0x1cb))]},'children':[this[_0x2b4ab4(0x1fb)],{'tag':_0x2b4ab4(0x1c4),'attributes':{'class':['ck',_0x2b4ab4(0x1bf)]},'children':[this[_0x2b4ab4(0x1b9)]]}]}]});}[_0x27e736(0x1f7)](){const _0x13eafe=_0x27e736;super[_0x13eafe(0x1f7)](),this[_0x13eafe(0x1c8)]&&this[_0x13eafe(0x1fb)][_0x13eafe(0x1d2)](this[_0x13eafe(0x1c8)]);let _0x1f1c8a=!0x1;this['on'](_0x13eafe(0x1ad),(_0x28ec9c,_0x2e80c7,_0x1cfbd9)=>{const _0x1bb1bd=_0x13eafe,_0x2cacee=!this[_0x1bb1bd(0x1fb)][_0x1bb1bd(0x1d7)][_0x1bb1bd(0x1e2)](_0x1bb1bd(0x1ac));this[_0x1bb1bd(0x1fb)][_0x1bb1bd(0x1d2)](_0x1cfbd9),this[_0x1bb1bd(0x1cc)]&&_0x2cacee&&!_0x1f1c8a&&this[_0x1bb1bd(0x1d7)][_0x1bb1bd(0x1bb)]({'top':this[_0x1bb1bd(0x1d7)][_0x1bb1bd(0x1e4)],'behavior':_0x1bb1bd(0x1eb)});}),this['on'](_0x13eafe(0x1e0),(_0x53b4b2,_0x3d1407,_0x2c2acb)=>{const _0x56b058=_0x13eafe;_0x1f1c8a=!0x1,_0x2c2acb?(this[_0x56b058(0x1c8)]=null,this[_0x56b058(0x1fb)][_0x56b058(0x1fa)]()):this[_0x56b058(0x1c8)]||this[_0x56b058(0x1fb)][_0x56b058(0x1d2)]('');}),this[_0x13eafe(0x1b2)](this[_0x13eafe(0x1d7)],_0x13eafe(0x1db),()=>{_0x1f1c8a=!0x0;}),this[_0x13eafe(0x1b2)](this[_0x13eafe(0x1d7)],_0x13eafe(0x1c2),()=>{_0x1f1c8a=!0x0;});}[_0x27e736(0x1d6)](){const _0x42d010=_0x27e736;this[_0x42d010(0x1d7)][_0x42d010(0x1d6)]();}[_0x27e736(0x1b8)](){const _0xefc906=_0x27e736,_0x484911=this[_0xefc906(0x1ab)],_0x247f4e=new _0x23adf2(this[_0xefc906(0x1ab)]),_0x17848d=_0xefc906(0x1b6);return _0x247f4e[_0xefc906(0x1cf)]({'label':_0x14b05c(_0x484911,_0xefc906(0x1dd)),'icon':_0x179593,'class':_0x17848d,'tooltip':!0x0}),_0x247f4e[_0xefc906(0x1bc)](_0xefc906(0x1f4))['to'](this,_0xefc906(0x1c8),_0x664c7e=>!!_0x664c7e),_0x247f4e[_0xefc906(0x1bc)](_0xefc906(0x1cd))['to'](this,_0xefc906(0x1cc),_0x2bfce3=>!_0x2bfce3),_0x247f4e['on'](_0xefc906(0x1e7),()=>{const _0x2e418b=_0xefc906;this[_0x2e418b(0x1d4)](this[_0x2e418b(0x1fb)][_0x2e418b(0x1d7)]),_0x247f4e[_0x2e418b(0x1ca)]=_0x4545c9[_0x2e418b(0x1ed)],_0x247f4e[_0x2e418b(0x1f2)]=_0x17848d+_0x2e418b(0x1ec),this[_0x2e418b(0x1d6)](),setTimeout(()=>{const _0x3aef23=_0x2e418b;_0x247f4e[_0x3aef23(0x1ca)]=_0x179593,_0x247f4e[_0x3aef23(0x1f2)]=_0x17848d;},0x3e8);}),_0x247f4e;}[_0x27e736(0x1d4)](_0x225781){const _0x26c737=_0x27e736,{window:_0x4d7169,document:_0x2ff9b6}=_0x4d685b;if(_0x4d7169[_0x26c737(0x1a7)]){const {Blob:_0x543c35,ClipboardItem:_0x99c5ef}=_0x4d7169,_0x48e9ca=[new _0x99c5ef({'text/html':new _0x543c35([_0x225781[_0x26c737(0x1aa)]],{'type':_0x26c737(0x1a8)}),'text/plain':new _0x543c35([_0x225781[_0x26c737(0x1d9)]||''],{'type':_0x26c737(0x1ba)})})];navigator[_0x26c737(0x1c3)][_0x26c737(0x1df)](_0x48e9ca);}else{const _0x478089=_0x2ff9b6[_0x26c737(0x1b1)](_0x26c737(0x1c4));_0x478089[_0x26c737(0x1f5)][_0x26c737(0x1f0)]=_0x26c737(0x1c6),_0x478089[_0x26c737(0x1f5)][_0x26c737(0x1e3)]=_0x26c737(0x1e9),_0x478089[_0x26c737(0x1aa)]=_0x26c737(0x1c5)+_0x225781[_0x26c737(0x1aa)]+_0x26c737(0x1e5),_0x2ff9b6[_0x26c737(0x1ea)][_0x26c737(0x1b5)](_0x478089);const _0x55f0ec=_0x2ff9b6[_0x26c737(0x1f1)]();_0x55f0ec[_0x26c737(0x1bd)](_0x478089[_0x26c737(0x1f8)]),_0x55f0ec[_0x26c737(0x1da)](_0x478089[_0x26c737(0x1ae)]);const _0x598816=_0x4d7169[_0x26c737(0x1f9)]();_0x598816[_0x26c737(0x1b0)](),_0x598816[_0x26c737(0x1d1)](_0x55f0ec),_0x2ff9b6[_0x26c737(0x1e8)](_0x26c737(0x1ee)),_0x478089[_0x26c737(0x1be)]();}}}export class ContentFieldView extends _0x4b4e30{constructor(_0x42e852,_0x2baf84=''){const _0x41228e=_0x27e736;super(_0x42e852),this[_0x41228e(0x1d5)]=this[_0x41228e(0x1d8)](),this[_0x41228e(0x1a9)]({'tag':_0x41228e(0x1c4),'attributes':{'class':['ck',_0x41228e(0x1b4),_0x2baf84,_0x41228e(0x1c7),_0x41228e(0x1d0)]}});}[_0x27e736(0x1d2)](_0x120b3a){const _0x56bbc2=_0x27e736;this[_0x56bbc2(0x1d7)][_0x56bbc2(0x1aa)]=_0x120b3a;}[_0x27e736(0x1fa)](){const _0x19eaa3=_0x27e736;this[_0x19eaa3(0x1d7)][_0x19eaa3(0x1b5)](this[_0x19eaa3(0x1d5)][_0x19eaa3(0x1d7)]);}[_0x27e736(0x1d8)](){const _0x56a270=_0x27e736,_0x3fc3a5=new _0x4b4e30(),_0x1e83f6=this[_0x56a270(0x1ab)],_0x56ace9=new _0x59d8f0();return _0x56ace9[_0x56a270(0x1f4)]=!0x0,_0x3fc3a5[_0x56a270(0x1a9)]({'tag':_0x56a270(0x1c4),'attributes':{'class':['ck',_0x56a270(0x1ef)]},'children':[_0x56ace9,{'text':_0x14b05c(_0x1e83f6,_0x56a270(0x1f3))}]}),_0x3fc3a5[_0x56a270(0x1f7)](),_0x3fc3a5;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x5c51bb,_0xae6254){const _0x149d64=_0x32cb,_0x6ceb4f=_0x5c51bb();while(!![]){try{const _0x17ed5e=parseInt(_0x149d64(0xe1))/0x1*(-parseInt(_0x149d64(0xd2))/0x2)+-parseInt(_0x149d64(0xcf))/0x3*(parseInt(_0x149d64(0xd8))/0x4)+-parseInt(_0x149d64(0xdd))/0x5*(parseInt(_0x149d64(0xd3))/0x6)+parseInt(_0x149d64(0xe0))/0x7+-parseInt(_0x149d64(0xd7))/0x8+parseInt(_0x149d64(0xdc))/0x9*(parseInt(_0x149d64(0xda))/0xa)+parseInt(_0x149d64(0xdb))/0xb*(parseInt(_0x149d64(0xd4))/0xc);if(_0x17ed5e===_0xae6254)break;else _0x6ceb4f['push'](_0x6ceb4f['shift']());}catch(_0x36aa71){_0x6ceb4f['push'](_0x6ceb4f['shift']());}}}(_0x345d,0xa7e05));import{View as _0x138437,IconView as _0x5396cf}from'ckeditor5/src/ui.js';import _0x15a678 from'../../../theme/icons/error.svg';function _0x32cb(_0x368e7c,_0x3acf3f){const _0x345d80=_0x345d();return _0x32cb=function(_0x32cb6f,_0x454e64){_0x32cb6f=_0x32cb6f-0xcf;let _0x49ba56=_0x345d80[_0x32cb6f];return _0x49ba56;},_0x32cb(_0x368e7c,_0x3acf3f);}function _0x345d(){const _0x3d5048=['14254620QllNxM','bindTemplate','setTemplate','7049000VYQXqG','104RYJoQw','div','10SQLbri','33YCfEbP','4267143SelbdJ','349925NyfWml','ck-ai-form__error','text','6307980UFjxFX','1VKVZLh','126534mPWfCX','content','set','2447546zXhEQT','90XKWWrl'];_0x345d=function(){return _0x3d5048;};return _0x345d();}export default class mt extends _0x138437{constructor(_0xe4fc30,_0x4b7f1c=''){const _0x5c86a0=_0x32cb;super(_0xe4fc30);const _0x13ecc5=new _0x5396cf(),_0x335e5d=this[_0x5c86a0(0xd5)];this[_0x5c86a0(0xd1)](_0x5c86a0(0xdf),_0x4b7f1c),_0x13ecc5[_0x5c86a0(0xd0)]=_0x15a678,this[_0x5c86a0(0xd6)]({'tag':_0x5c86a0(0xd9),'attributes':{'class':['ck',_0x5c86a0(0xde)]},'children':[_0x13ecc5,{'text':_0x335e5d['to'](_0x5c86a0(0xdf))}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x237a3d=_0x2d1e;(function(_0x289362,_0x8055f4){const _0x3cd4b5=_0x2d1e,_0x5b37a7=_0x289362();while(!![]){try{const _0x1e3d7d=parseInt(_0x3cd4b5(0x12a))/0x1*(parseInt(_0x3cd4b5(0x125))/0x2)+-parseInt(_0x3cd4b5(0x137))/0x3+parseInt(_0x3cd4b5(0x10e))/0x4+-parseInt(_0x3cd4b5(0x11e))/0x5*(-parseInt(_0x3cd4b5(0x102))/0x6)+-parseInt(_0x3cd4b5(0x135))/0x7*(-parseInt(_0x3cd4b5(0x111))/0x8)+parseInt(_0x3cd4b5(0x10d))/0x9*(-parseInt(_0x3cd4b5(0x123))/0xa)+parseInt(_0x3cd4b5(0x116))/0xb*(parseInt(_0x3cd4b5(0x128))/0xc);if(_0x1e3d7d===_0x8055f4)break;else _0x5b37a7['push'](_0x5b37a7['shift']());}catch(_0x5e0aee){_0x5b37a7['push'](_0x5b37a7['shift']());}}}(_0x10f4,0xab577));import{Rect as _0x3ddced,global as _0x49e9ab,isVisible as _0x18e7ee}from'ckeditor5/src/utils.js';import{AutocompleteView as _0x3aaeed,ButtonView as _0x4bad9e}from'ckeditor5/src/ui.js';import{icons as _0x3bcf6b}from'ckeditor5/src/core.js';function _0x2d1e(_0x417741,_0x371e4b){const _0x10f46b=_0x10f4();return _0x2d1e=function(_0x2d1eb4,_0x51ff6a){_0x2d1eb4=_0x2d1eb4-0xfb;let _0x47397d=_0x10f46b[_0x2d1eb4];return _0x47397d;},_0x2d1e(_0x417741,_0x371e4b);}import{getTranslation as _0x30b3cc}from'../../utils/common-translations.js';function _0x10f4(){const _0x4d18ac=['7RAGHLb','ck-ai-form__submit','3708186xEGZTM','filteredView','focusableChildren','set','showHistoryButtonView','queryView','fire','execute','692814Vgcnpe','enter','width','render','minRows','element','locale','isOn','resultsView','fieldView','isVisible','423Tqkwco','5592060HoUoRv','submitButtonView','history','1057568PxyayJ','History','left','focusFirst','right','34353CwWqBE','fieldWrapperChildren','focusCycler','update','add','Submit','rtl','bind','50hRsLSX','uiLanguageDirection','window','keystrokes','focus','208840uOhFAq','isEmpty','181732nCnvMY','maxRows','style','552tlRNaO','focusLast','1OjMRiV','_createShowHistoryButton','value','target','_createSubmitButton','submit','excludeScrollbarsAndBorders','ck-ai-form__toggle-history','children','isEnabled','requestAnimationFrame'];_0x10f4=function(){return _0x4d18ac;};return _0x10f4();}import _0x303d18 from'../../../theme/icons/submit.svg';export default class pt extends _0x3aaeed{constructor(_0x56504a,_0x327daf){const _0x200d44=_0x2d1e;super(_0x56504a,_0x327daf),this[_0x200d44(0xff)][_0x200d44(0x10b)][_0x200d44(0x106)]=0x1,this[_0x200d44(0xff)][_0x200d44(0x10b)][_0x200d44(0x126)]=0x3,this[_0x200d44(0x10f)]=this[_0x200d44(0x12e)](),this[_0x200d44(0xfe)]=this[_0x200d44(0x12b)](),this[_0x200d44(0xfc)][_0x200d44(0x11a)](this[_0x200d44(0xfe)],0x1),this[_0x200d44(0xfc)][_0x200d44(0x11a)](this[_0x200d44(0x10f)]);}[_0x237a3d(0x105)](){const _0x32354c=_0x237a3d;super[_0x32354c(0x105)](),this[_0x32354c(0xff)][_0x32354c(0x117)][_0x32354c(0x11a)](this[_0x32354c(0xfe)]),this[_0x32354c(0x132)][_0x32354c(0x11a)](this[_0x32354c(0x10f)]),this[_0x32354c(0x121)][_0x32354c(0xfd)](_0x32354c(0x103),(_0x42ff98,_0x3e5ea8)=>{const _0x22ff93=_0x32354c;_0x42ff98[_0x22ff93(0x12d)]==this[_0x22ff93(0xff)][_0x22ff93(0x10b)][_0x22ff93(0x107)]&&(this[_0x22ff93(0x12f)](),_0x3e5ea8());});}[_0x237a3d(0x12e)](){const _0xc4055=_0x237a3d,_0xfbed32=new _0x4bad9e(this[_0xc4055(0x108)]),_0x29cc10=this[_0xc4055(0x108)];return _0xfbed32[_0xc4055(0xfd)]({'icon':_0x303d18,'label':_0x30b3cc(_0x29cc10,_0xc4055(0x11b)),'isVisible':!0x0,'tooltip':!0x0,'class':_0xc4055(0x136)}),_0xfbed32['on'](_0xc4055(0x101),()=>{const _0x263afc=_0xc4055;this[_0x263afc(0x12f)]();}),_0xfbed32[_0xc4055(0x11d)](_0xc4055(0x133))['to'](this[_0xc4055(0xff)][_0xc4055(0x10b)],_0xc4055(0x124),this,_0xc4055(0x133),(_0x238055,_0x222db5)=>!_0x238055&&_0x222db5),_0xfbed32;}[_0x237a3d(0x12b)](){const _0x5428a5=_0x237a3d,_0x4edcb3=new _0x4bad9e(this[_0x5428a5(0x108)]),_0x4ea63f=this[_0x5428a5(0x10a)],_0x3e1815=this[_0x5428a5(0x108)];_0x4edcb3[_0x5428a5(0xfd)]({'label':_0x30b3cc(_0x3e1815,_0x5428a5(0x112)),'withText':!0x1,'icon':_0x3bcf6b[_0x5428a5(0x110)],'tooltip':!0x0,'tooltipPosition':'sw','class':_0x5428a5(0x131)}),_0x4edcb3[_0x5428a5(0x11d)](_0x5428a5(0x109))['to'](_0x4ea63f,_0x5428a5(0x10c)),_0x4edcb3[_0x5428a5(0x11d)](_0x5428a5(0x133))['to'](this,_0x5428a5(0x133)),_0x4edcb3['on'](_0x5428a5(0x101),()=>{const _0x132547=_0x5428a5;_0x4ea63f[_0x132547(0x10c)]=!_0x4ea63f[_0x132547(0x10c)],_0x4ea63f[_0x132547(0x10c)]?this[_0x132547(0xfb)][_0x132547(0x122)]():this[_0x132547(0x122)]();});const _0x42ba74=()=>{const _0x583a64=_0x5428a5;_0x49e9ab[_0x583a64(0x120)][_0x583a64(0x134)](()=>{const _0xcad170=_0x583a64;if(_0x18e7ee(this[_0xcad170(0x107)])){const _0x16c0c4=new _0x3ddced(this[_0xcad170(0xff)][_0xcad170(0x10b)][_0xcad170(0x107)]),_0x23225f=_0x16c0c4[_0xcad170(0x104)],_0x45cf82=_0xcad170(0x11c)===_0x3e1815[_0xcad170(0x11f)]?_0xcad170(0x113):_0xcad170(0x115);_0x16c0c4[_0xcad170(0x130)](),_0x4edcb3[_0xcad170(0x107)][_0xcad170(0x127)][_0x45cf82]=_0x23225f-_0x16c0c4[_0xcad170(0x104)]+0x1+'px';}});};return this[_0x5428a5(0xff)][_0x5428a5(0x10b)]['on'](_0x5428a5(0x119),_0x42ba74),this['on'](_0x5428a5(0x105),_0x42ba74),_0x4edcb3;}[_0x237a3d(0x12f)](){const _0x609505=_0x237a3d,_0x522fd9=this[_0x609505(0xff)][_0x609505(0x10b)][_0x609505(0x107)][_0x609505(0x12c)];this[_0x609505(0x100)](_0x609505(0x12f),_0x522fd9);}[_0x237a3d(0x122)](_0x2516f2){const _0x4c2d0d=_0x237a3d;-0x1===_0x2516f2?this[_0x4c2d0d(0x118)][_0x4c2d0d(0x129)]():this[_0x4c2d0d(0x118)][_0x4c2d0d(0x114)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x42566f=_0x3455;function _0x37cb(){const _0x3a828c=['insert','Insert\x20below','55612GhYnjk','ck-button-action','set','_createButton','5sHpkSi','2QTrUAw','isVisible','1228976BCbkiS','toUpperCase','replace','121geykSw','3267528ErdyKN','insertButton','tryAgainButton','ck-ai-form__toolbar','2908190KTUquv','5896710jQdXNT','458009NeABSh','AI_','extendTemplate','bindTemplate','label','24PBMdrx','_CONTENT','items','1731750LHsCjn','ck-hidden','replaceButton','REPLACE','locale','Try\x20again','addMany','Stop','stopButton','bind','mainAction'];_0x37cb=function(){return _0x3a828c;};return _0x37cb();}(function(_0x4dc05d,_0x15e469){const _0x598092=_0x3455,_0x48b34b=_0x4dc05d();while(!![]){try{const _0x529dd2=parseInt(_0x598092(0xa0))/0x1*(-parseInt(_0x598092(0x94))/0x2)+-parseInt(_0x598092(0xa8))/0x3+parseInt(_0x598092(0x8f))/0x4*(parseInt(_0x598092(0x93))/0x5)+parseInt(_0x598092(0xa5))/0x6*(-parseInt(_0x598092(0x96))/0x7)+-parseInt(_0x598092(0x9a))/0x8+-parseInt(_0x598092(0x9f))/0x9+-parseInt(_0x598092(0x9e))/0xa*(-parseInt(_0x598092(0x99))/0xb);if(_0x529dd2===_0x15e469)break;else _0x48b34b['push'](_0x48b34b['shift']());}catch(_0x20e5d6){_0x48b34b['push'](_0x48b34b['shift']());}}}(_0x37cb,0x64866));import{ToolbarView as _0x4175ce,ButtonView as _0x61adc1}from'ckeditor5/src/ui.js';function _0x3455(_0x41cb21,_0x1d1a48){const _0x37cbbb=_0x37cb();return _0x3455=function(_0x345587,_0x15cc78){_0x345587=_0x345587-0x8f;let _0x145e47=_0x37cbbb[_0x345587];return _0x145e47;},_0x3455(_0x41cb21,_0x1d1a48);}import{getTranslation as _0x74af8}from'../../utils/common-translations.js';export const AIFormToolbarViewMainActionLabel={'REPLACE':_0x42566f(0x98),'INSERT':_0x42566f(0xb3)};export default class Tt extends _0x4175ce{constructor(_0x4a324e){const _0x76877c=_0x42566f;super(_0x4a324e),this[_0x76877c(0x91)](_0x76877c(0x95),!0x1),this[_0x76877c(0x91)](_0x76877c(0xb2),AIFormToolbarViewMainActionLabel[_0x76877c(0xab)]),this[_0x76877c(0xaa)]=this[_0x76877c(0x92)]('',_0x76877c(0x90)),this[_0x76877c(0xaa)][_0x76877c(0xb1)](_0x76877c(0xa4))['to'](this,_0x76877c(0xb2),_0x524bb2=>_0x74af8(_0x4a324e,_0x76877c(0xa1)+_0x524bb2[_0x76877c(0x97)]()+_0x76877c(0xa6))),this[_0x76877c(0x9b)]=this[_0x76877c(0x92)](_0x74af8(_0x4a324e,_0x76877c(0xb4))),this[_0x76877c(0x9c)]=this[_0x76877c(0x92)](_0x74af8(_0x4a324e,_0x76877c(0xad))),this[_0x76877c(0xb0)]=this[_0x76877c(0x92)](_0x74af8(_0x4a324e,_0x76877c(0xaf)));const _0x921b0d=this[_0x76877c(0xa3)];this[_0x76877c(0xa2)]({'attributes':{'class':[_0x76877c(0x9d),_0x921b0d['if'](_0x76877c(0x95),_0x76877c(0xa9),_0x13b118=>!_0x13b118)]}}),this[_0x76877c(0xa7)][_0x76877c(0xae)]([this[_0x76877c(0xaa)],this[_0x76877c(0x9b)],this[_0x76877c(0x9c)],this[_0x76877c(0xb0)]]);}[_0x42566f(0x92)](_0x1c2781,_0x2dfd75){const _0x1d2904=_0x42566f,_0x1cf588=new _0x61adc1(this[_0x1d2904(0xac)]);return _0x1cf588[_0x1d2904(0x91)]({'label':_0x1c2781,'class':_0x2dfd75||'','isVisible':!0x0,'withText':!0x0}),_0x1cf588;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4c109f=_0x1a38;function _0x1bcf(){const _0x247848=['handleError','ck-ai-form-content','33fIxpxY','bindTo','fieldView','focusFirst','focusPrevious','focusLast','clear','div','text','_focusables','insertContentBelow','_createToolbar','shift\x20+\x20tab','items','Ask\x20AI\x20to\x20edit\x20or\x20generate','focusNext','forwardCycle','add','focusCycler','15726ebzVWp','tryAgainButton','isVisible','render','set','locale','bindTemplate','309370DWKOLn','delegate','bind','trim','stopButton','isEnabled','createCollection','isProcessing','1478188CLQoMq','Empty\x20history','focus','element','high','startProcessing','replaceButton','stop','_promptHistory','focusTracker','_createPromptView','execute','959KdPHMY','value','56LykbAf','clearHistory','copyButtonView','setTemplate','13JHijWO','keystrokes','backwardCycle','Ask\x20AI\x20to\x20improve\x20generated\x20text','insertButton','prompt','submitPrompt','2182788STmXTt','566244VgbhVo','410013JCcIDu','REPLACE','fire','label','900706oXlrox','finishProcessing','isError','queryView','toolbar','5LZmiZi','reset','_createHistoryView','AI_ERROR_FAILED','errorView','submit','tryAgainEvent','historyGroupView','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','tab','stopProcessing','promptView','replaceContent','ck-hidden','contentArea','ck-ai-form','search','mainAction','listenTo','1GNYmYq'];_0x1bcf=function(){return _0x247848;};return _0x1bcf();}(function(_0x15d554,_0x4be807){const _0x35c077=_0x1a38,_0x59e987=_0x15d554();while(!![]){try{const _0x19be4f=-parseInt(_0x35c077(0x1b4))/0x1*(-parseInt(_0x35c077(0x19c))/0x2)+-parseInt(_0x35c077(0x197))/0x3+-parseInt(_0x35c077(0x17d))/0x4*(-parseInt(_0x35c077(0x1a1))/0x5)+parseInt(_0x35c077(0x16e))/0x6*(-parseInt(_0x35c077(0x189))/0x7)+parseInt(_0x35c077(0x18b))/0x8*(-parseInt(_0x35c077(0x198))/0x9)+-parseInt(_0x35c077(0x175))/0xa*(-parseInt(_0x35c077(0x1b7))/0xb)+parseInt(_0x35c077(0x196))/0xc*(parseInt(_0x35c077(0x18f))/0xd);if(_0x19be4f===_0x4be807)break;else _0x59e987['push'](_0x59e987['shift']());}catch(_0x4a6d43){_0x59e987['push'](_0x59e987['shift']());}}}(_0x1bcf,0x37a2e));import{FocusTracker as _0x4875e2,KeystrokeHandler as _0x11423f}from'ckeditor5/src/utils.js';import{View as _0x15e198,FocusCycler as _0x1e4aa3,createLabeledTextarea as _0x18c9e3}from'ckeditor5/src/ui.js';import _0x3a9e6f,{AIFormToolbarViewMainActionLabel as _0x4ce29f}from'./aiformtoolbarview.js';import _0x2c09a2 from'./aiformcontentarea.js';import _0x3ea611 from'./aiformerrorview.js';function _0x1a38(_0x235730,_0x56bc7e){const _0x1bcf04=_0x1bcf();return _0x1a38=function(_0x1a3873,_0x20480b){_0x1a3873=_0x1a3873-0x15d;let _0x30624b=_0x1bcf04[_0x1a3873];return _0x30624b;},_0x1a38(_0x235730,_0x56bc7e);}import _0x380dd5 from'./aiformpromptview.js';import _0xcf084a from'./aihistorylistview.js';import _0x331f57 from'./aihistorylistitemview.js';import _0x325ad4 from'./prompthistory.js';import{getTranslation as _0x8da01f}from'../../utils/common-translations.js';import{escape as _0x4c0f5f}from'lodash-es';export default class x extends _0x15e198{constructor(_0x238cf7,_0x168997,_0x5f187a=''){const _0x34ac14=_0x1a38;super(_0x238cf7),this[_0x34ac14(0x172)](_0x34ac14(0x17a),!0x0),this[_0x34ac14(0x172)](_0x34ac14(0x17c),!0x1),this[_0x34ac14(0x172)](_0x34ac14(0x194),''),this[_0x34ac14(0x172)](_0x34ac14(0x18a),''),this[_0x34ac14(0x172)](_0x34ac14(0x19e),!0x1),this[_0x34ac14(0x172)](_0x34ac14(0x1b2),_0x4ce29f[_0x34ac14(0x199)]),this[_0x34ac14(0x185)]=new _0x325ad4(),this[_0x34ac14(0x1a5)]=new _0x3ea611(_0x238cf7),this[_0x34ac14(0x1af)]=new _0x2c09a2(_0x238cf7,_0x5f187a),this[_0x34ac14(0x1af)][_0x34ac14(0x177)](_0x34ac14(0x17c))['to'](this),this[_0x34ac14(0x1af)][_0x34ac14(0x177)](_0x34ac14(0x18a))['to'](this),this[_0x34ac14(0x1a0)]=this[_0x34ac14(0x166)](),this[_0x34ac14(0x1a0)][_0x34ac14(0x177)](_0x34ac14(0x1b2))['to'](this),this[_0x34ac14(0x1ac)]=this[_0x34ac14(0x187)](),this[_0x34ac14(0x186)]=new _0x4875e2(),this[_0x34ac14(0x190)]=new _0x11423f(),this[_0x34ac14(0x164)]=this[_0x34ac14(0x17b)]([this[_0x34ac14(0x1af)],this[_0x34ac14(0x1af)][_0x34ac14(0x18d)],this[_0x34ac14(0x1a0)],this[_0x34ac14(0x1ac)]]),this[_0x34ac14(0x16d)]=new _0x1e4aa3({'focusables':this[_0x34ac14(0x164)],'focusTracker':this[_0x34ac14(0x186)],'keystrokeHandler':this[_0x34ac14(0x190)],'actions':{'focusPrevious':_0x34ac14(0x167),'focusNext':_0x34ac14(0x1aa)}}),this[_0x34ac14(0x1ac)][_0x34ac14(0x16d)]['on'](_0x34ac14(0x16b),_0x249122=>{const _0x5b476d=_0x34ac14;this[_0x5b476d(0x16d)][_0x5b476d(0x16a)](),_0x249122[_0x5b476d(0x184)]();}),this[_0x34ac14(0x1ac)][_0x34ac14(0x16d)]['on'](_0x34ac14(0x191),_0x5f08f1=>{const _0x155a22=_0x34ac14;this[_0x155a22(0x16d)][_0x155a22(0x15f)](),_0x5f08f1[_0x155a22(0x184)]();}),this[_0x34ac14(0x1ac)][_0x34ac14(0x19f)][_0x34ac14(0x15d)][_0x34ac14(0x177)](_0x34ac14(0x18a))['to'](this,_0x34ac14(0x194));const _0x21ccba=this[_0x34ac14(0x174)];this[_0x34ac14(0x18e)]({'tag':_0x34ac14(0x162),'attributes':{'class':['ck',_0x34ac14(0x1b0),_0x168997],'tabindex':'-1'},'children':[{'tag':_0x34ac14(0x162),'attributes':{'class':['ck',_0x34ac14(0x1b6)]},'children':[{'tag':_0x34ac14(0x162),'attributes':{'class':[_0x21ccba['if'](_0x34ac14(0x19e),_0x34ac14(0x1ae),_0x174db5=>!_0x174db5)]},'children':[this[_0x34ac14(0x1a5)]]},this[_0x34ac14(0x1af)],this[_0x34ac14(0x1a0)],this[_0x34ac14(0x1ac)]]}]});}[_0x4c109f(0x171)](){const _0xd848b=_0x4c109f;super[_0xd848b(0x171)](),this[_0xd848b(0x186)][_0xd848b(0x16c)](this[_0xd848b(0x1af)][_0xd848b(0x180)]),this[_0xd848b(0x186)][_0xd848b(0x16c)](this[_0xd848b(0x1af)][_0xd848b(0x18d)][_0xd848b(0x180)]),this[_0xd848b(0x186)][_0xd848b(0x16c)](this[_0xd848b(0x1a0)][_0xd848b(0x180)]),this[_0xd848b(0x186)][_0xd848b(0x16c)](this[_0xd848b(0x1ac)][_0xd848b(0x180)]),this[_0xd848b(0x190)][_0xd848b(0x1b3)](this[_0xd848b(0x180)]);}[_0x4c109f(0x17f)](_0x21b889=0x1){const _0x427d2e=_0x4c109f;-0x1===_0x21b889?this[_0x427d2e(0x16d)][_0x427d2e(0x160)]():this[_0x427d2e(0x16d)][_0x427d2e(0x15e)]();}[_0x4c109f(0x1a2)](){const _0x13b1e6=_0x4c109f;this[_0x13b1e6(0x194)]='',this[_0x13b1e6(0x18a)]='',this[_0x13b1e6(0x19e)]=!0x1,this[_0x13b1e6(0x1ac)][_0x13b1e6(0x1a2)](),this[_0x13b1e6(0x1af)][_0x13b1e6(0x170)]=!0x1,this[_0x13b1e6(0x1a0)][_0x13b1e6(0x170)]=!0x1;}[_0x4c109f(0x187)](){const _0x459902=_0x4c109f,_0x2af245=this[_0x459902(0x173)],_0x13267e=new _0x380dd5(_0x2af245,{'queryView':{'label':_0x8da01f(_0x2af245,_0x459902(0x169)),'creator':_0x18c9e3,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x8da01f(_0x2af245,_0x459902(0x17e)),'secondary':_0x8da01f(_0x2af245,_0x459902(0x1a9))}}},'filteredView':this[_0x459902(0x1a3)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x13267e[_0x459902(0x177)](_0x459902(0x17a))['to'](this,_0x459902(0x17a),this,_0x459902(0x17c),(_0x1a6d70,_0x47e08f)=>_0x1a6d70&&!_0x47e08f),this[_0x459902(0x1b3)](_0x13267e,_0x459902(0x1a6),(_0x10b946,_0x56bf45)=>{const _0x1f0742=_0x459902;this[_0x1f0742(0x194)]=_0x56bf45;const _0x4abcdc=_0x4c0f5f(_0x56bf45);this[_0x1f0742(0x19a)](_0x1f0742(0x195),_0x4abcdc),_0x56bf45[_0x1f0742(0x178)]()&&this[_0x1f0742(0x185)][_0x1f0742(0x16c)]({'prompt':_0x4abcdc},0x0);},{'priority':_0x459902(0x181)}),_0x13267e;}[_0x4c109f(0x1a3)](){const _0x398612=_0x4c109f,_0xc3a38f=new _0xcf084a(this[_0x398612(0x173)]);return _0xc3a38f[_0x398612(0x1a8)][_0x398612(0x168)][_0x398612(0x1b8)](this[_0x398612(0x185)])['as'](_0x331f57),_0xc3a38f['on'](_0x398612(0x18c),()=>{const _0x3b9469=_0x398612;this[_0x3b9469(0x185)][_0x3b9469(0x161)](),this[_0x3b9469(0x1ac)][_0x3b9469(0x1b1)](''),this[_0x3b9469(0x1ac)][_0x3b9469(0x17f)]();}),_0xc3a38f;}[_0x4c109f(0x166)](){const _0x407b51=_0x4c109f,_0x21f65b=new _0x3a9e6f(this[_0x407b51(0x173)]);return _0x21f65b[_0x407b51(0x183)][_0x407b51(0x177)](_0x407b51(0x17a))['to'](this,_0x407b51(0x17a),this,_0x407b51(0x17c),this,_0x407b51(0x18a),(_0x40cca6,_0x37cc50,_0x41f85a)=>_0x40cca6&&!_0x37cc50&&!!_0x41f85a),_0x21f65b[_0x407b51(0x183)][_0x407b51(0x176)](_0x407b51(0x188))['to'](this,_0x407b51(0x1ad)),_0x21f65b[_0x407b51(0x193)][_0x407b51(0x177)](_0x407b51(0x17a))['to'](this,_0x407b51(0x17a),this,_0x407b51(0x17c),this,_0x407b51(0x18a),(_0x1fc34c,_0x34d0ad,_0x1551b0)=>_0x1fc34c&&!_0x34d0ad&&!!_0x1551b0),_0x21f65b[_0x407b51(0x193)][_0x407b51(0x176)](_0x407b51(0x188))['to'](this,_0x407b51(0x165)),_0x21f65b[_0x407b51(0x16f)][_0x407b51(0x177)](_0x407b51(0x17a))['to'](this,_0x407b51(0x17a),this,_0x407b51(0x17c),(_0x1caf4b,_0x2aedeb)=>_0x1caf4b&&!_0x2aedeb),_0x21f65b[_0x407b51(0x16f)][_0x407b51(0x176)](_0x407b51(0x188))['to'](this,_0x407b51(0x1a7)),_0x21f65b[_0x407b51(0x179)][_0x407b51(0x177)](_0x407b51(0x17a))['to'](this,_0x407b51(0x17c)),_0x21f65b[_0x407b51(0x179)][_0x407b51(0x176)](_0x407b51(0x188))['to'](this,_0x407b51(0x1ab)),_0x21f65b;}[_0x4c109f(0x182)](){const _0x31568e=_0x4c109f;this[_0x31568e(0x18a)]='',this[_0x31568e(0x19e)]=!0x1,this[_0x31568e(0x17c)]=!0x0,this[_0x31568e(0x1af)][_0x31568e(0x170)]=!0x0,this[_0x31568e(0x1a0)][_0x31568e(0x170)]=!0x0,this[_0x31568e(0x1af)][_0x31568e(0x17f)]();}[_0x4c109f(0x19d)](){const _0x3f8782=_0x4c109f,_0x263c2d=this[_0x3f8782(0x173)];this[_0x3f8782(0x17c)]=!0x1,this[_0x3f8782(0x194)]='',this[_0x3f8782(0x1ac)][_0x3f8782(0x1a2)](),this[_0x3f8782(0x18a)]&&(this[_0x3f8782(0x1ac)][_0x3f8782(0x19f)][_0x3f8782(0x19b)]=_0x8da01f(_0x263c2d,_0x3f8782(0x192)));}[_0x4c109f(0x1b5)](_0xdb1929){const _0x42ad8f=_0x4c109f,_0x3c06dc=this[_0x42ad8f(0x173)];this[_0x42ad8f(0x19d)](),this[_0x42ad8f(0x19e)]=!0x0,this[_0x42ad8f(0x1a5)][_0x42ad8f(0x163)]=_0xdb1929||_0x8da01f(_0x3c06dc,_0x42ad8f(0x1a4)),this[_0x42ad8f(0x18a)]||(this[_0x42ad8f(0x1af)][_0x42ad8f(0x170)]=!0x1);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x2a574d,_0x1948c5){const _0x20ea41=_0x5c83,_0x40400b=_0x2a574d();while(!![]){try{const _0x36f0c4=parseInt(_0x20ea41(0x92))/0x1+-parseInt(_0x20ea41(0x9a))/0x2*(parseInt(_0x20ea41(0xa1))/0x3)+parseInt(_0x20ea41(0x93))/0x4+-parseInt(_0x20ea41(0x9b))/0x5*(parseInt(_0x20ea41(0x96))/0x6)+parseInt(_0x20ea41(0x98))/0x7*(parseInt(_0x20ea41(0x9e))/0x8)+-parseInt(_0x20ea41(0x91))/0x9+-parseInt(_0x20ea41(0x95))/0xa*(parseInt(_0x20ea41(0xa2))/0xb);if(_0x36f0c4===_0x1948c5)break;else _0x40400b['push'](_0x40400b['shift']());}catch(_0x569f05){_0x40400b['push'](_0x40400b['shift']());}}}(_0x57cd,0x34f6c));import{ListItemView as _0x39194e,ButtonView as _0x268fa9}from'ckeditor5/src/ui.js';import _0x3de70b from'../dropdown/buttonlabelwithhighlightview.js';function _0x57cd(){const _0x405309=['568746zHoRcY','287823LBRWtw','1197952pFljtd','prompt','1105710RAYLWH','6KOyDLZ','add','632646EjfXfi','execute','14uTJKwx','820795iRhArH','fire','set','24RDDrXk','locale','children','35331ADNCtL','33LyiRdd'];_0x57cd=function(){return _0x405309;};return _0x57cd();}function _0x5c83(_0x188497,_0x15ec70){const _0x57cd88=_0x57cd();return _0x5c83=function(_0x5c83fc,_0x4c6eba){_0x5c83fc=_0x5c83fc-0x91;let _0x425c6b=_0x57cd88[_0x5c83fc];return _0x425c6b;},_0x5c83(_0x188497,_0x15ec70);}import{unescape as _0x158772}from'lodash-es';export default class hs extends _0x39194e{constructor(_0x4da17e){const _0x29d269=_0x5c83;super();const _0xd95a8a=new _0x3de70b(),_0x4a8518=new _0x268fa9(this[_0x29d269(0x9f)],_0xd95a8a);this[_0x29d269(0xa0)][_0x29d269(0x97)](_0x4a8518),_0x4a8518[_0x29d269(0x9d)]({'label':_0x4da17e[_0x29d269(0x94)],'withText':!0x0}),_0x4a8518['on'](_0x29d269(0x99),()=>{const _0x5dc482=_0x29d269;this[_0x5dc482(0x9c)](_0x5dc482(0x99),{'value':_0x158772(_0x4da17e[_0x5dc482(0x94)])});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x52c434=_0x31b8;function _0x1773(){const _0x121e14=['4083606RgxWsz','clearHistoryButton','1714204qFzQEW','label','length','set','execute','children','5ICTMjJ','filter','3148500NjGopc','fire','items','delegate','historyGroupView','clearHistory','28JtahQv','1buElYR','Clear','4714512CwSuVN','1969432bEPPOa','Prompt\x20history','locale','_createClearHistoryButton','405471Jparff','1473936wyDzRz','add'];_0x1773=function(){return _0x121e14;};return _0x1773();}function _0x31b8(_0x1a46b6,_0x240dbd){const _0x1773b7=_0x1773();return _0x31b8=function(_0x31b863,_0x211b2d){_0x31b863=_0x31b863-0x142;let _0xc2746c=_0x1773b7[_0x31b863];return _0xc2746c;},_0x31b8(_0x1a46b6,_0x240dbd);}(function(_0x37a3aa,_0x13bcee){const _0x559e3d=_0x31b8,_0x3ec9d5=_0x37a3aa();while(!![]){try{const _0x453cc9=parseInt(_0x559e3d(0x15b))/0x1*(-parseInt(_0x559e3d(0x14c))/0x2)+-parseInt(_0x559e3d(0x147))/0x3+parseInt(_0x559e3d(0x142))/0x4+parseInt(_0x559e3d(0x152))/0x5*(parseInt(_0x559e3d(0x148))/0x6)+parseInt(_0x559e3d(0x15a))/0x7*(parseInt(_0x559e3d(0x143))/0x8)+-parseInt(_0x559e3d(0x14a))/0x9+-parseInt(_0x559e3d(0x154))/0xa;if(_0x453cc9===_0x13bcee)break;else _0x3ec9d5['push'](_0x3ec9d5['shift']());}catch(_0x1d107b){_0x3ec9d5['push'](_0x3ec9d5['shift']());}}}(_0x1773,0x9e3dd));import{ListView as _0x43052e,ListItemGroupView as _0x5f1e8b,ButtonView as _0x208017}from'ckeditor5/src/ui.js';import{getTranslation as _0x42af60}from'../../utils/common-translations.js';export default class rs extends _0x43052e{constructor(_0x7f185f){const _0x293102=_0x31b8;super(_0x7f185f),this[_0x293102(0x14b)]=this[_0x293102(0x146)](),this[_0x293102(0x158)]=new _0x5f1e8b(),this[_0x293102(0x158)][_0x293102(0x151)][_0x293102(0x149)](this[_0x293102(0x14b)],0x1),this[_0x293102(0x158)][_0x293102(0x14d)]=_0x42af60(_0x7f185f,_0x293102(0x144)),this[_0x293102(0x158)][_0x293102(0x156)][_0x293102(0x157)](_0x293102(0x150))['to'](this),this[_0x293102(0x156)][_0x293102(0x149)](this[_0x293102(0x158)]);}[_0x52c434(0x153)](){const _0x9aa0a1=_0x52c434;let _0xe8b2a9=0x0;for(const _0x59eff5 of this[_0x9aa0a1(0x156)])_0xe8b2a9+=_0x59eff5[_0x9aa0a1(0x156)][_0x9aa0a1(0x14e)];return{'resultsCount':_0xe8b2a9,'totalItemsCount':_0xe8b2a9};}[_0x52c434(0x146)](){const _0x3f5312=_0x52c434,_0x5e49fe=this[_0x3f5312(0x145)],_0x5daac4=new _0x208017(this[_0x3f5312(0x145)]);return _0x5daac4[_0x3f5312(0x14f)]({'label':'('+_0x42af60(_0x5e49fe,_0x3f5312(0x15c))+')','withText':!0x0}),_0x5daac4['on'](_0x3f5312(0x150),()=>this[_0x3f5312(0x155)](_0x3f5312(0x159))),_0x5daac4;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x282641=_0x33f0;(function(_0x2eb877,_0x12d53f){const _0x393d15=_0x33f0,_0x50cce1=_0x2eb877();while(!![]){try{const _0x5d1f9e=-parseInt(_0x393d15(0xc6))/0x1+parseInt(_0x393d15(0xca))/0x2*(parseInt(_0x393d15(0xc3))/0x3)+-parseInt(_0x393d15(0xc4))/0x4+parseInt(_0x393d15(0xd3))/0x5*(-parseInt(_0x393d15(0xc7))/0x6)+parseInt(_0x393d15(0xd6))/0x7+-parseInt(_0x393d15(0xc2))/0x8+-parseInt(_0x393d15(0xce))/0x9*(parseInt(_0x393d15(0xd1))/0xa);if(_0x5d1f9e===_0x12d53f)break;else _0x50cce1['push'](_0x50cce1['shift']());}catch(_0x2f7d19){_0x50cce1['push'](_0x50cce1['shift']());}}}(_0x170c,0x56d62));import{Collection as _0x272397}from'ckeditor5/src/utils.js';const cs=_0x282641(0xda);function _0x33f0(_0x3038bf,_0x3258e4){const _0x170cfb=_0x170c();return _0x33f0=function(_0x33f098,_0x329ed4){_0x33f098=_0x33f098-0xc1;let _0x254348=_0x170cfb[_0x33f098];return _0x254348;},_0x33f0(_0x3038bf,_0x3258e4);}export default class os extends _0x272397{constructor(){const _0x4a65c8=_0x282641;super(),this[_0x4a65c8(0xd7)](),this['on'](_0x4a65c8(0xc1),(_0x298afe,_0x887dfd)=>{const _0x24df32=_0x4a65c8,_0xd78764=Ss(_0x887dfd[_0x24df32(0xd8)]);for(const _0x130aeb of this)if(_0x130aeb!=_0x887dfd&&Ss(_0x130aeb[_0x24df32(0xd8)])===_0xd78764){this[_0x24df32(0xc9)](_0x130aeb);break;}this[_0x24df32(0xcf)]>0x14&&this[_0x24df32(0xc9)](this[_0x24df32(0xc5)]),this[_0x24df32(0xd5)]();}),this['on'](_0x4a65c8(0xc9),()=>{const _0x20315e=_0x4a65c8;this[_0x20315e(0xd5)]();});}[_0x282641(0xd7)](){const _0x2fcb30=_0x282641,_0xe11020=sessionStorage[_0x2fcb30(0xc8)](cs)||'[]';this[_0x2fcb30(0xcc)](JSON[_0x2fcb30(0xcb)](_0xe11020));}[_0x282641(0xd5)](){const _0x375dd2=_0x282641;sessionStorage[_0x375dd2(0xcd)](cs,JSON[_0x375dd2(0xd2)](this[_0x375dd2(0xd4)](_0x65568c=>_0x65568c)));}}function Ss(_0x5d84b5){const _0x3926ea=_0x282641;return _0x5d84b5[_0x3926ea(0xd0)]()[_0x3926ea(0xd9)]();}function _0x170c(){const _0x71abb5=['stringify','145ZHTwtI','map','_saveToSessionStorage','4363037cRpdPV','_loadFromSessionStorage','prompt','trim','CKEditor/AIFormView/PromptHistory','add','300112ODKBUj','101331irIeVi','149052GvhVcP','last','375609WNWyJM','44478dYMLPO','getItem','remove','28TBrAAs','parse','addMany','setItem','9ebvPvm','length','toLowerCase','751240OkfgVw'];_0x170c=function(){return _0x71abb5;};return _0x170c();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2fa523=_0x2158;(function(_0x5dceca,_0x460bab){const _0x370fd1=_0x2158,_0x3689c9=_0x5dceca();while(!![]){try{const _0x59e17b=parseInt(_0x370fd1(0x15f))/0x1+-parseInt(_0x370fd1(0x154))/0x2*(-parseInt(_0x370fd1(0x16e))/0x3)+parseInt(_0x370fd1(0x14f))/0x4+-parseInt(_0x370fd1(0x148))/0x5*(parseInt(_0x370fd1(0x150))/0x6)+parseInt(_0x370fd1(0x161))/0x7*(parseInt(_0x370fd1(0x157))/0x8)+-parseInt(_0x370fd1(0x151))/0x9*(-parseInt(_0x370fd1(0x14c))/0xa)+parseInt(_0x370fd1(0x167))/0xb*(-parseInt(_0x370fd1(0x15e))/0xc);if(_0x59e17b===_0x460bab)break;else _0x3689c9['push'](_0x3689c9['shift']());}catch(_0x49377e){_0x3689c9['push'](_0x3689c9['shift']());}}}(_0x55ed,0x5ec65));function _0x2158(_0x36a762,_0x1a2e17){const _0x55ed1b=_0x55ed();return _0x2158=function(_0x215899,_0x1b1a96){_0x215899=_0x215899-0x145;let _0xe57286=_0x55ed1b[_0x215899];return _0xe57286;},_0x2158(_0x36a762,_0x1a2e17);}function _0x55ed(){const _0x27efa9=['isCollapsed','selection','_commandDefinitions','hasContent','add','3JoceYJ','editor','execute','name','config','includes','change:_hasContext','getSelectedBlocks','getFirstRange','element','5aIUkFN','showUI','getRanges','requiresContent','30zIiQxa','length','set','1578884YEPpjR','1601574eCIAbk','148158LFRDne','commands','refresh','898324XmnfKx','change:isEnabled','_hasContext','4944tQYDIq','custom','enabledCommandsIds','isEmpty','get','getItems','from','12eFJqAM','179788zclFSM','isEnabled','8190lUiTqJ','reduce','plugins','ai.aiAssistant.disabledElements','model','concat','12550901RiCseq','document'];_0x55ed=function(){return _0x27efa9;};return _0x55ed();}import{Command as _0x1ac0d2}from'ckeditor5/src/core.js';import _0x376733 from'../aiassistantui.js';export default class j extends _0x1ac0d2{constructor(_0x4b35dd,_0x40d38b){const _0x57c517=_0x2158;super(_0x4b35dd),this[_0x57c517(0x16b)]=_0x40d38b?_0x40d38b[_0x57c517(0x162)]((_0x5e4b1c,_0x20f8a1)=>_0x5e4b1c[_0x57c517(0x166)](_0x20f8a1[_0x57c517(0x152)]),new Array()):[],this[_0x57c517(0x14e)](_0x57c517(0x159),[]),this['on'](_0x57c517(0x174),(_0xce9822,_0x19231c,_0xbbbd0a)=>{const _0x11a1eb=_0x57c517;this[_0x11a1eb(0x160)]&&(this[_0x11a1eb(0x159)]=K(this[_0x11a1eb(0x16b)],_0xbbbd0a));}),this[_0x57c517(0x14e)](_0x57c517(0x156),!0x1),this['on'](_0x57c517(0x155),(_0x939ec2,_0x5064b7,_0x48f0bd)=>{const _0x1ee39e=_0x57c517;this[_0x1ee39e(0x159)]=_0x48f0bd?K(this[_0x1ee39e(0x16b)],this[_0x1ee39e(0x156)]):[];});}[_0x2fa523(0x153)](){const _0x4f6bab=_0x2fa523,_0x1c265f=this[_0x4f6bab(0x16f)][_0x4f6bab(0x165)];this[_0x4f6bab(0x156)]=function(_0x56b346){const _0x4c38a4=_0x4f6bab,_0x4276ad=_0x56b346[_0x4c38a4(0x168)][_0x4c38a4(0x16a)];return _0x4276ad[_0x4c38a4(0x169)]?0x0!==[..._0x4276ad[_0x4c38a4(0x145)]()][_0x4c38a4(0x14d)]&&![..._0x4276ad[_0x4c38a4(0x145)]()][0x0][_0x4c38a4(0x15a)]:!!_0x56b346[_0x4c38a4(0x16c)](_0x4276ad[_0x4c38a4(0x146)]());}(_0x1c265f);const _0x393dee=_0x1c265f[_0x4f6bab(0x168)][_0x4f6bab(0x16a)],_0x1d02de=this[_0x4f6bab(0x16f)][_0x4f6bab(0x172)][_0x4f6bab(0x15b)](_0x4f6bab(0x164));for(const _0x5c91c9 of _0x393dee[_0x4f6bab(0x14a)]())for(const _0x2fade5 of _0x5c91c9[_0x4f6bab(0x15c)]())if(_0x2fade5['is'](_0x4f6bab(0x147))&&_0x1d02de[_0x4f6bab(0x173)](_0x2fade5[_0x4f6bab(0x171)]))return void(this[_0x4f6bab(0x160)]=!0x1);this[_0x4f6bab(0x160)]=!0x0;}[_0x2fa523(0x170)](_0x3dff65='',_0x1ee631='',_0x552166=_0x2fa523(0x158)){const _0x56482a=_0x2fa523;this[_0x56482a(0x16f)][_0x56482a(0x163)][_0x56482a(0x15b)](_0x376733)[_0x56482a(0x149)](_0x3dff65,_0x1ee631,_0x552166);}}function K(_0x324035,_0x498e5a){const _0x5d31eb=_0x2fa523,_0x543308=new Set();for(const _0x297c9f of _0x324035)(_0x498e5a||!0x1===_0x297c9f[_0x5d31eb(0x14b)])&&_0x543308[_0x5d31eb(0x16d)](_0x297c9f['id']);return Array[_0x5d31eb(0x15d)](_0x543308);}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(
|
|
23
|
+
export function getTranslation(_0x7b4a58,_0x22099b,_0x48acdd){const t=_0x7b4a58['t'];switch(_0x22099b){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',_0x48acdd);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',_0x48acdd);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x48acdd);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'},_0x48acdd);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 _0x22099b;}}
|