@ckeditor/ckeditor5-ai 42.0.0-alpha.22 → 42.0.0-alpha.24
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/build/translations/no.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/translations/no.po +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
|
-
|
|
24
|
-
|
|
23
|
+
function _0xadaf(_0x3e49c1,_0x31327b){const _0x2a4c70=_0x2a4c();return _0xadaf=function(_0xadafc0,_0x55ed60){_0xadafc0=_0xadafc0-0x177;let _0x230366=_0x2a4c70[_0xadafc0];return _0x230366;},_0xadaf(_0x3e49c1,_0x31327b);}const _0x4cd7e3=_0xadaf;(function(_0xdb565c,_0xf3b271){const _0x51d3bf=_0xadaf,_0x592e81=_0xdb565c();while(!![]){try{const _0x24eab5=-parseInt(_0x51d3bf(0x1bc))/0x1+parseInt(_0x51d3bf(0x1ae))/0x2+-parseInt(_0x51d3bf(0x1c4))/0x3+-parseInt(_0x51d3bf(0x194))/0x4+parseInt(_0x51d3bf(0x1ab))/0x5+-parseInt(_0x51d3bf(0x17e))/0x6+parseInt(_0x51d3bf(0x1d2))/0x7*(parseInt(_0x51d3bf(0x18b))/0x8);if(_0x24eab5===_0xf3b271)break;else _0x592e81['push'](_0x592e81['shift']());}catch(_0x563ce1){_0x592e81['push'](_0x592e81['shift']());}}}(_0x2a4c,0xd599c));import{ObservableMixin as _0x3ad95a}from'ckeditor5/src/utils.js';import{AIRequestError as _0x213773}from'../adapters/aiadapter.js';import{Matcher as _0x4fc33a,UpcastWriter as _0x3cfe7b}from'ckeditor5/src/engine.js';const X=new RegExp(/^(.*?)<[a-zA-Z][a-zA-Z0-9_\-.]*[ >]/,'is');function _0x2a4c(){const _0x3e8a2c=['substring','reset','set:currentContext','currentResponse','htmlProcessor','tryAgainEvent','27435224Efzuod','createElement','viewToDom','currentContext','exec','editor','abort','then','stopProcessing','3923932VrhzwB','_sanitizationContainer','setContentOf','custom','toView','```html','_stripMarkdownSyntax','stringify','message','isProcessing','document','stopListening','name','innerHTML','textAdapter','_handleQuery','childNodes','```','finishProcessing','previousQuery','view','initialContext','endsWith','3304570FlmTJo','set','_isH1TagSupportEnabled','1534264cdmOCO','serializeToString','finally','previousActionId','listenTo','makeRequest','_domParser','processor','rename','mainAction','reverse','body','text/html','previousLabel','662958NIZRsL','value','catch','handleError','startProcessing','isRendered','data','match','3956409qkwidi','length','destroy','element','div','querySelector','domConverter','submitPrompt','from','_normalizeResponseHeadings','once','_parseAndNormalizeContent','editing','startsWith','7rdlDFo','parseFromString','trim','updateView','push','toModel','remove','_sanitizeHTML','ELEMENT_NODE','6118782IWTLsu','nodeType','prompt','_xmlSerializer','render','<h1></h1>','previousContext'];_0x2a4c=function(){return _0x3e8a2c;};return _0x2a4c();}export default class k extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x3ad95a(){constructor(_0x50d7f0,_0x88a37,_0x4e0f20){const _0x6c7b58=_0xadaf;super(),this[_0x6c7b58(0x190)]=_0x50d7f0,this[_0x6c7b58(0x1a2)]=_0x88a37,this[_0x6c7b58(0x195)]=document[_0x6c7b58(0x18c)](_0x6c7b58(0x1c8)),this[_0x6c7b58(0x1b4)]=new DOMParser(),this[_0x6c7b58(0x181)]=new XMLSerializer(),this[_0x6c7b58(0x1a8)]=_0x4e0f20,this[_0x6c7b58(0x1ac)]({'initialContext':'','currentContext':'','currentResponse':'','previousContext':void 0x0,'previousQuery':void 0x0,'previousLabel':void 0x0,'isProcessing':!0x1}),this['on'](_0x6c7b58(0x187),(_0x2ee82a,_0x557533,_0x204c11)=>{const _0x405130=_0x6c7b58;this[_0x405130(0x1a8)][_0x405130(0x1bd)]=this[_0x405130(0x17c)](_0x204c11);}),this[_0x6c7b58(0x1b2)](this[_0x6c7b58(0x1a8)],_0x6c7b58(0x1cb),(_0x4f458a,_0x27af45)=>{const _0x2bf67c=_0x6c7b58,_0x151031=this[_0x2bf67c(0x18e)]||this[_0x2bf67c(0x1a9)];this[_0x2bf67c(0x1a3)](_0x27af45,_0x151031,_0x2bf67c(0x197));}),this[_0x6c7b58(0x1b2)](this[_0x6c7b58(0x1a8)],_0x6c7b58(0x18a),()=>{const _0x1c8608=_0x6c7b58;this[_0x1c8608(0x1a8)][_0x1c8608(0x180)]=this[_0x1c8608(0x1bb)],this[_0x1c8608(0x1a3)](this[_0x1c8608(0x1a7)],this[_0x1c8608(0x184)],this[_0x1c8608(0x1b1)],this[_0x1c8608(0x1bb)]);}),this[_0x6c7b58(0x1b2)](this[_0x6c7b58(0x1a8)],_0x6c7b58(0x193),()=>{const _0x4ccc41=_0x6c7b58;this[_0x4ccc41(0x193)]();});}[_0x4cd7e3(0x1c6)](){const _0x2eb85c=_0x4cd7e3;this[_0x2eb85c(0x19f)]();}async[_0x4cd7e3(0x178)]({actionId:_0x428142,query:_0x3a9efc,htmlContent:_0x9d6483,label:_0xb0914e,mainActionLabel:_0x46b900}){const _0x22a431=_0x4cd7e3;this[_0x22a431(0x1a8)][_0x22a431(0x180)]=_0xb0914e,this[_0x22a431(0x1a8)][_0x22a431(0x1b7)]=_0x46b900,this[_0x22a431(0x1a9)]=_0x9d6483,_0x3a9efc&&(this[_0x22a431(0x1a8)][_0x22a431(0x1c1)]?this[_0x22a431(0x1a3)](_0x3a9efc,_0x9d6483,_0x428142,_0xb0914e):this[_0x22a431(0x1a8)][_0x22a431(0x1ce)](_0x22a431(0x182),()=>{const _0xa1405c=_0x22a431;this[_0xa1405c(0x1a3)](_0x3a9efc,_0x9d6483,_0x428142,_0xb0914e);}));}[_0x4cd7e3(0x193)](){const _0x98af3c=_0x4cd7e3;this[_0x98af3c(0x19d)]&&(this[_0x98af3c(0x19d)]=!0x1,this[_0x98af3c(0x1a8)][_0x98af3c(0x1a6)](),this[_0x98af3c(0x1a2)][_0x98af3c(0x191)]());}[_0x4cd7e3(0x186)](){const _0x38f29c=_0x4cd7e3;this[_0x38f29c(0x1a9)]='',this[_0x38f29c(0x18e)]='',this[_0x38f29c(0x188)]='',this[_0x38f29c(0x184)]='',this[_0x38f29c(0x1a7)]='',this[_0x38f29c(0x1bb)]='',this[_0x38f29c(0x1b1)]=void 0x0,this[_0x38f29c(0x1a8)][_0x38f29c(0x186)](),this[_0x38f29c(0x193)]();}async[_0x4cd7e3(0x1a3)](_0x2477f6,_0x6e30fe,_0xf6daef,_0x1ec5ae){const _0x2d57da=_0x4cd7e3;return this[_0x2d57da(0x19d)]=!0x0,this[_0x2d57da(0x1a8)][_0x2d57da(0x1c0)](),this[_0x2d57da(0x184)]=_0x6e30fe,this[_0x2d57da(0x1a7)]=_0x2477f6,this[_0x2d57da(0x1bb)]=_0x1ec5ae||_0x2477f6,this[_0x2d57da(0x1b1)]=_0xf6daef,new Promise(_0x77983c=>{const _0x17bbe8=_0x2d57da;this[_0x17bbe8(0x1a2)][_0x17bbe8(0x1b3)]({'query':_0x2477f6,'context':_0x6e30fe,'onData':_0x143d50=>{const _0x3255dc=_0x17bbe8;this[_0x3255dc(0x188)]=_0x143d50,this[_0x3255dc(0x18e)]=this[_0x3255dc(0x1cf)](this[_0x3255dc(0x188)]);},'actionId':_0xf6daef})[_0x17bbe8(0x192)](()=>{const _0xaacc6d=_0x17bbe8;!this[_0xaacc6d(0x18e)]&&this[_0xaacc6d(0x188)]&&(this[_0xaacc6d(0x18e)]=this[_0xaacc6d(0x1cf)](this[_0xaacc6d(0x188)],!0x0));})[_0x17bbe8(0x1be)](_0x119c45=>{const _0x3be94a=_0x17bbe8;_0x119c45 instanceof _0x213773?this[_0x3be94a(0x1a8)][_0x3be94a(0x1bf)](_0x119c45[_0x3be94a(0x19c)]):this[_0x3be94a(0x1a8)][_0x3be94a(0x1bf)](),_0x77983c();})[_0x17bbe8(0x1b0)](()=>{const _0x50c594=_0x17bbe8;this[_0x50c594(0x193)](),_0x77983c();});});}[_0x4cd7e3(0x1cf)](_0xf7f3fe,_0x51fead=!0x1){const _0x27e928=_0x4cd7e3,_0x182aea=X[_0x27e928(0x18f)](_0xf7f3fe);_0xf7f3fe=_0x182aea?_0xf7f3fe[_0x27e928(0x185)](_0x182aea[0x1][_0x27e928(0x1c5)]):_0xf7f3fe[_0x27e928(0x1c5)]<0x64&&!_0x51fead?'':this[_0x27e928(0x19a)](_0xf7f3fe);const _0x48644a=this[_0x27e928(0x1b4)][_0x27e928(0x1d3)](_0xf7f3fe,_0x27e928(0x1ba));if(_0x182aea){const _0x22d38d=Array[_0x27e928(0x1cc)](_0x48644a[_0x27e928(0x1b9)][_0x27e928(0x1a4)]);_0x22d38d[_0x27e928(0x1b8)]();for(const _0x4ec2ca of _0x22d38d){if(_0x4ec2ca[_0x27e928(0x17f)]==Node[_0x27e928(0x17d)])break;_0x4ec2ca[_0x27e928(0x17b)]();}}const _0x3ce147=this[_0x27e928(0x190)][_0x27e928(0x1c2)][_0x27e928(0x1b5)][_0x27e928(0x198)](this[_0x27e928(0x181)][_0x27e928(0x1af)](_0x48644a[_0x27e928(0x1b9)]));return this[_0x27e928(0x1ad)]()||this[_0x27e928(0x1cd)](_0x3ce147),this[_0x27e928(0x190)][_0x27e928(0x1c2)][_0x27e928(0x19b)](this[_0x27e928(0x190)][_0x27e928(0x1c2)][_0x27e928(0x17a)](_0x3ce147));}[_0x4cd7e3(0x1cd)](_0x468a7b){const _0x291e16=_0x4cd7e3,_0x29f208=new _0x3cfe7b(this[_0x291e16(0x190)][_0x291e16(0x1d0)][_0x291e16(0x1a8)][_0x291e16(0x19e)]),_0x417237=new _0x4fc33a({'name':/^h[1-5]$/}),_0x32216e=[];let _0x1a6954=!0x1;for(const _0x5bbc4d of _0x468a7b)_0x5bbc4d['is'](_0x291e16(0x1c7))&&_0x417237[_0x291e16(0x1c3)](_0x5bbc4d)&&(_0x32216e[_0x291e16(0x179)](_0x5bbc4d),'h1'==_0x5bbc4d[_0x291e16(0x1a0)]&&(_0x1a6954=!0x0));if(_0x1a6954){for(const _0x1bc144 of _0x32216e)_0x29f208[_0x291e16(0x1b6)]('h'+(parseInt(_0x1bc144[_0x291e16(0x1a0)][0x1])+0x1),_0x1bc144);}}[_0x4cd7e3(0x1ad)](){const _0x41ab93=_0x4cd7e3,{data:_0x48c5b4,editing:_0x3369c9}=this[_0x41ab93(0x190)],_0x3739b5=_0x48c5b4[_0x41ab93(0x189)][_0x41ab93(0x198)](_0x41ab93(0x183)),_0x5eeff8=_0x48c5b4[_0x41ab93(0x198)](_0x48c5b4[_0x41ab93(0x17a)](_0x3739b5));return!!_0x3369c9[_0x41ab93(0x1a8)][_0x41ab93(0x1ca)][_0x41ab93(0x18d)](_0x5eeff8)[_0x41ab93(0x1c9)]('h1');}[_0x4cd7e3(0x17c)](_0x47ea2d){const _0x29e333=_0x4cd7e3;return this[_0x29e333(0x190)][_0x29e333(0x1d0)][_0x29e333(0x1a8)][_0x29e333(0x1ca)][_0x29e333(0x196)](this[_0x29e333(0x195)],_0x47ea2d),this[_0x29e333(0x195)][_0x29e333(0x1a1)];}[_0x4cd7e3(0x19a)](_0x4537ea){const _0x25117c=_0x4cd7e3,_0x499a73=_0x4537ea[_0x25117c(0x177)]();return _0x499a73[_0x25117c(0x1d1)](_0x25117c(0x199))?_0x499a73[_0x25117c(0x1aa)](_0x25117c(0x1a5))?_0x499a73[_0x25117c(0x185)](0x7,_0x499a73[_0x25117c(0x1c5)]-0x3):_0x499a73[_0x25117c(0x185)](0x7):_0x4537ea;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2d93b9=_0x4e01;function _0x4e01(_0x77c77d,_0x317cea){const _0x4baa90=_0x4baa();return _0x4e01=function(_0x4e0189,_0x5b1673){_0x4e0189=_0x4e0189-0x167;let _0x36d940=_0x4baa90[_0x4e0189];return _0x36d940;},_0x4e01(_0x77c77d,_0x317cea);}(function(_0x2aa2a8,_0x5c1fcc){const _0x52705a=_0x4e01,_0x1b539c=_0x2aa2a8();while(!![]){try{const _0x4b61c5=parseInt(_0x52705a(0x167))/0x1*(-parseInt(_0x52705a(0x177))/0x2)+parseInt(_0x52705a(0x17b))/0x3+parseInt(_0x52705a(0x16e))/0x4*(-parseInt(_0x52705a(0x170))/0x5)+parseInt(_0x52705a(0x181))/0x6*(parseInt(_0x52705a(0x168))/0x7)+-parseInt(_0x52705a(0x16a))/0x8*(parseInt(_0x52705a(0x174))/0x9)+parseInt(_0x52705a(0x16c))/0xa*(parseInt(_0x52705a(0x17c))/0xb)+parseInt(_0x52705a(0x17a))/0xc;if(_0x4b61c5===_0x5c1fcc)break;else _0x1b539c['push'](_0x1b539c['shift']());}catch(_0x892562){_0x1b539c['push'](_0x1b539c['shift']());}}}(_0x4baa,0xbba9a));import{ListView as _0x1b0bd4,ListItemGroupView as _0x53638e}from'ckeditor5/src/ui.js';import{AICommandsListItemView as _0x42d81b}from'../../aiassistantui.js';export default class U extends _0x1b0bd4{constructor(_0x229a5e){const _0x22d360=_0x4e01;super(_0x229a5e),this[_0x22d360(0x17e)]=_0x22d360(0x16d),this[_0x22d360(0x171)](_0x22d360(0x16f),[]),this['on'](_0x22d360(0x185),()=>{const _0x552b22=_0x22d360;for(const _0x1ec337 of this[_0x552b22(0x180)])if(_0x1ec337 instanceof _0x53638e){for(const _0x19ced1 of _0x1ec337[_0x552b22(0x180)])if(_0x19ced1 instanceof _0x42d81b){const _0xc4bfbd=_0x19ced1[_0x552b22(0x176)][_0x552b22(0x178)](0x0);this[_0x552b22(0x16f)][_0x552b22(0x16b)](_0x19ced1[_0x552b22(0x17d)]['id'])?_0xc4bfbd[_0x552b22(0x169)]=!0x0:_0xc4bfbd[_0x552b22(0x169)]=!0x1;}}});}[_0x2d93b9(0x172)](_0x448e1a){const _0x59e07c=_0x2d93b9;let _0xdad7f9=0x0,_0x483ba4=0x0;for(const _0x33f81d of this[_0x59e07c(0x180)]){const _0x35dd04=_0x33f81d,_0x1fb86a=_0x35dd04[_0x59e07c(0x180)],_0x3b8cd8=_0x448e1a&&!!_0x35dd04[_0x59e07c(0x173)][_0x59e07c(0x182)](_0x448e1a);_0x35dd04[_0x59e07c(0x184)][_0x59e07c(0x17f)](_0x3b8cd8?_0x448e1a:null);for(const _0x206b57 of _0x1fb86a){const _0x5472f5=_0x206b57[_0x59e07c(0x176)][_0x59e07c(0x183)],_0xadabc0=_0x5472f5[_0x59e07c(0x184)];if(_0x448e1a){const _0x1b3d0a=!!_0x5472f5[_0x59e07c(0x173)][_0x59e07c(0x182)](_0x448e1a);_0xadabc0[_0x59e07c(0x17f)](_0x1b3d0a?_0x448e1a:null),_0x206b57[_0x59e07c(0x179)]=_0x3b8cd8||_0x1b3d0a;}else _0x206b57[_0x59e07c(0x179)]=!0x0,_0xadabc0[_0x59e07c(0x17f)](null);}const _0x5c2695=_0x1fb86a[_0x59e07c(0x172)](_0x1fa737=>_0x1fa737[_0x59e07c(0x179)])[_0x59e07c(0x175)];_0xdad7f9+=_0x35dd04[_0x59e07c(0x180)][_0x59e07c(0x175)],_0x483ba4+=_0x3b8cd8?_0x35dd04[_0x59e07c(0x180)][_0x59e07c(0x175)]:_0x5c2695,_0x35dd04[_0x59e07c(0x179)]=_0x3b8cd8||!!_0x5c2695;}return{'resultsCount':_0x483ba4,'totalItemsCount':_0xdad7f9};}}function _0x4baa(){const _0x2b3581=['20CRTcQB','set','filter','label','135rcmgsL','length','children','4nspymC','get','isVisible','7769868punlsn','442929mSIBpW','22XthQNm','commandDefinition','role','highlightText','items','119742gtuNpo','match','first','labelView','change:enabledCommandsIds','400351mPXBwi','329uCUlfh','isEnabled','342296JlzyMP','includes','4644790yYxSFG','listbox','450896HIdZLz','enabledCommandsIds'];_0x4baa=function(){return _0x2b3581;};return _0x4baa();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x2d0e39,_0x301f57){const _0x382318=_0x143f,_0x28c761=_0x2d0e39();while(!![]){try{const _0x4c3afc=parseInt(_0x382318(0x1b1))/0x1*(-parseInt(_0x382318(0x1b6))/0x2)+-parseInt(_0x382318(0x1ae))/0x3+-parseInt(_0x382318(0x1af))/0x4+parseInt(_0x382318(0x1ac))/0x5*(parseInt(_0x382318(0x1b4))/0x6)+-parseInt(_0x382318(0x1b2))/0x7+-parseInt(_0x382318(0x1ab))/0x8+parseInt(_0x382318(0x1b7))/0x9;if(_0x4c3afc===_0x301f57)break;else _0x28c761['push'](_0x28c761['shift']());}catch(_0x19f732){_0x28c761['push'](_0x28c761['shift']());}}}(_0x2e8b,0x1c012));import{HighlightedTextView as _0x10c266}from'ckeditor5/src/ui.js';function _0x143f(_0x297d07,_0x271bd0){const _0x2e8b61=_0x2e8b();return _0x143f=function(_0x143fae,_0x15aad2){_0x143fae=_0x143fae-0x1aa;let _0x1ce4f9=_0x2e8b61[_0x143fae];return _0x1ce4f9;},_0x143f(_0x297d07,_0x271bd0);}export default class N extends _0x10c266{constructor(){const _0x1a3d9b=_0x143f;super(),this[_0x1a3d9b(0x1ad)]({'style':void 0x0,'text':void 0x0,'id':void 0x0});const _0x129835=this[_0x1a3d9b(0x1b5)];this[_0x1a3d9b(0x1b0)]({'attributes':{'class':[_0x1a3d9b(0x1b3)],'style':_0x129835['to'](_0x1a3d9b(0x1aa)),'id':_0x129835['to']('id')}});}}function _0x2e8b(){const _0x560121=['163960fSSCpE','set','445074gHFYoU','291024CDLGFr','extendTemplate','5SVXxst','152383qSIaRv','ck-button__label','12gLgsnx','bindTemplate','64726sVUaHJ','5466357jYpEtQ','style','1228424lYVWLJ'];_0x2e8b=function(){return _0x560121;};return _0x2e8b();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x1ec2e8,_0x282fdf){const _0x21267a=_0x221c,_0x4dce01=_0x1ec2e8();while(!![]){try{const _0xeba78d=parseInt(_0x21267a(0x140))/0x1*(parseInt(_0x21267a(0x136))/0x2)+-parseInt(_0x21267a(0x13b))/0x3*(-parseInt(_0x21267a(0x13e))/0x4)+-parseInt(_0x21267a(0x139))/0x5+parseInt(_0x21267a(0x13f))/0x6+-parseInt(_0x21267a(0x13d))/0x7+-parseInt(_0x21267a(0x142))/0x8+parseInt(_0x21267a(0x137))/0x9;if(_0xeba78d===_0x282fdf)break;else _0x4dce01['push'](_0x4dce01['shift']());}catch(_0x3d4413){_0x4dce01['push'](_0x4dce01['shift']());}}}(_0x4032,0xe26a6));function _0x221c(_0xbc7137,_0x243b4d){const _0x403236=_0x4032();return _0x221c=function(_0x221cca,_0x2362e4){_0x221cca=_0x221cca-0x136;let _0x1ea6d3=_0x403236[_0x221cca];return _0x1ea6d3;},_0x221c(_0xbc7137,_0x243b4d);}import{HighlightedTextView as _0x5f0d92}from'ckeditor5/src/ui.js';import{uid as _0x172b08}from'ckeditor5/src/utils.js';export default class S extends _0x5f0d92{constructor(){const _0x276982=_0x221c;super(),this[_0x276982(0x141)](_0x276982(0x13c),void 0x0);const _0x2b6911=this[_0x276982(0x143)];this['id']=_0x276982(0x13a)+_0x172b08(),this[_0x276982(0x144)]({'attributes':{'class':['ck',_0x276982(0x138)],'id':this['id'],'for':_0x2b6911['to'](_0x276982(0x13c))}});}}function _0x4032(){const _0x4e4870=['4764655pzPpQF','ck-editor__label_','1152273UOgnoV','for','4155032ylgIsa','8rdhaVL','8743146RDTEMC','291101rsIeJC','set','6407360lvtvqW','bindTemplate','extendTemplate','4oNDKUk','4205250sDAWKW','ck-label'];_0x4032=function(){return _0x4e4870;};return _0x4032();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3d741a=_0x3160;(function(_0x3309a9,_0xde514b){const _0x2b3687=_0x3160,_0x915b2f=_0x3309a9();while(!![]){try{const _0x1f6aec=parseInt(_0x2b3687(0x112))/0x1+-parseInt(_0x2b3687(0x107))/0x2*(-parseInt(_0x2b3687(0xfe))/0x3)+-parseInt(_0x2b3687(0x10a))/0x4+parseInt(_0x2b3687(0x101))/0x5+-parseInt(_0x2b3687(0x117))/0x6*(-parseInt(_0x2b3687(0x110))/0x7)+parseInt(_0x2b3687(0x13c))/0x8+-parseInt(_0x2b3687(0x11b))/0x9*(parseInt(_0x2b3687(0x144))/0xa);if(_0x1f6aec===_0xde514b)break;else _0x915b2f['push'](_0x915b2f['shift']());}catch(_0x5096dd){_0x915b2f['push'](_0x915b2f['shift']());}}}(_0x555a,0x99c5d));import{global as _0x138be5}from'ckeditor5/src/utils.js';function _0x555a(){const _0x2dfa84=['_createCopyButton','div','<span>]</span>','isProcessing','locale','scrollHeight','clipboard','isVisible','<span>[</span>','isEnabled','createRange','absolute','getSelection','ck-ai-form__content-area-wrapper','ck-ai-form__content-area--processing','setContent','write','4162344ksNJOb','position','element','setEndBefore','setTemplate','focus','ck-ai-form__loader','removeAllRanges','610AuxVle','innerHTML','mousedown','value','bindTemplate','remove','text/plain','style','render','ck-reset_all-excluded','lastElementChild','listenTo','setStartAfter','ck-ai-form__copy-button-wrapper','copy','icon','2497590rBVIxG','execCommand','createElement','4585285ZiYMfj','copyButtonView','check','scrollTo','contentFieldView','.ck-ai-form__loader','2gHzrrl','change:isProcessing','-9999px','2216372YGlnyN','change:value','ck-ai-form__content-area','left','set','_copyHTMLToClipboard','182odHyhX','loaderView','583775klXfFX','ClipboardItem','Copy','querySelector','ck-ai-form__content-field','71718Xieiao','addRange','ck-hidden','firstElementChild','292203XHRIjv','body','\x20ck-ai-form__copy-button--copied','appendChild','bind','AI\x20is\x20writing...','execute','wheel','textContent','appendLoader','smooth','_createLoader','ck-ai-form__copy-button','text/html','class','ck-content'];_0x555a=function(){return _0x2dfa84;};return _0x555a();}import{View as _0x43c04d,ButtonView as _0x187062,SpinnerView as _0xce2895}from'ckeditor5/src/ui.js';import _0x59adef from'../../../theme/icons/copy.svg';import{getTranslation as _0x434739}from'../../utils/common-translations.js';import{icons as _0x41dd60}from'ckeditor5/src/core.js';export default class nt extends _0x43c04d{constructor(_0x334bad,_0x39bced=''){const _0x3272b2=_0x3160;super(_0x334bad),this[_0x3272b2(0x10e)]({'value':null,'isVisible':!0x1,'isProcessing':!0x1});const _0x1618a6=this[_0x3272b2(0x148)];this[_0x3272b2(0x105)]=new ContentFieldView(_0x334bad,_0x39bced),this[_0x3272b2(0x102)]=this[_0x3272b2(0x12b)](),this[_0x3272b2(0x140)]({'tag':_0x3272b2(0x12c),'attributes':{'class':['ck',_0x3272b2(0x138),_0x1618a6['if'](_0x3272b2(0x132),_0x3272b2(0x119),_0x54ab29=>!_0x54ab29)],'tabindex':'-1'},'children':[{'tag':_0x3272b2(0x12c),'attributes':{'class':['ck',_0x3272b2(0x10c),_0x1618a6['if'](_0x3272b2(0x12e),_0x3272b2(0x139))]},'children':[this[_0x3272b2(0x105)],{'tag':_0x3272b2(0x12c),'attributes':{'class':['ck',_0x3272b2(0xfb)]},'children':[this[_0x3272b2(0x102)]]}]}]});}[_0x3d741a(0x14c)](){const _0x2c00b0=_0x3d741a;super[_0x2c00b0(0x14c)](),this[_0x2c00b0(0x147)]&&this[_0x2c00b0(0x105)][_0x2c00b0(0x13a)](this[_0x2c00b0(0x147)]);let _0x462272=!0x1;this['on'](_0x2c00b0(0x10b),(_0x58b629,_0x5ade1c,_0x190f02)=>{const _0x1e37f9=_0x2c00b0,_0x13ca59=!this[_0x1e37f9(0x105)][_0x1e37f9(0x13e)][_0x1e37f9(0x115)](_0x1e37f9(0x106));this[_0x1e37f9(0x105)][_0x1e37f9(0x13a)](_0x190f02),this[_0x1e37f9(0x12e)]&&_0x13ca59&&!_0x462272&&this[_0x1e37f9(0x13e)][_0x1e37f9(0x104)]({'top':this[_0x1e37f9(0x13e)][_0x1e37f9(0x130)],'behavior':_0x1e37f9(0x125)});}),this['on'](_0x2c00b0(0x108),(_0x24a476,_0x25d594,_0x346e7b)=>{const _0xe3ea17=_0x2c00b0;_0x462272=!0x1,_0x346e7b?(this[_0xe3ea17(0x147)]=null,this[_0xe3ea17(0x105)][_0xe3ea17(0x124)]()):this[_0xe3ea17(0x147)]||this[_0xe3ea17(0x105)][_0xe3ea17(0x13a)]('');}),this[_0x2c00b0(0x14f)](this[_0x2c00b0(0x13e)],_0x2c00b0(0x122),()=>{_0x462272=!0x0;}),this[_0x2c00b0(0x14f)](this[_0x2c00b0(0x13e)],_0x2c00b0(0x146),()=>{_0x462272=!0x0;});}[_0x3d741a(0x141)](){const _0x4447d8=_0x3d741a;this[_0x4447d8(0x13e)][_0x4447d8(0x141)]();}[_0x3d741a(0x12b)](){const _0xf0bdcf=_0x3d741a,_0x1cfc0a=this[_0xf0bdcf(0x12f)],_0x343c15=new _0x187062(this[_0xf0bdcf(0x12f)]),_0x31e721=_0xf0bdcf(0x127);return _0x343c15[_0xf0bdcf(0x10e)]({'label':_0x434739(_0x1cfc0a,_0xf0bdcf(0x114)),'icon':_0x59adef,'class':_0x31e721,'tooltip':!0x0}),_0x343c15[_0xf0bdcf(0x11f)](_0xf0bdcf(0x132))['to'](this,_0xf0bdcf(0x147),_0x46dfdd=>!!_0x46dfdd),_0x343c15[_0xf0bdcf(0x11f)](_0xf0bdcf(0x134))['to'](this,_0xf0bdcf(0x12e),_0x219967=>!_0x219967),_0x343c15['on'](_0xf0bdcf(0x121),()=>{const _0x5ad5cd=_0xf0bdcf;this[_0x5ad5cd(0x10f)](this[_0x5ad5cd(0x105)][_0x5ad5cd(0x13e)]),_0x343c15[_0x5ad5cd(0xfd)]=_0x41dd60[_0x5ad5cd(0x103)],_0x343c15[_0x5ad5cd(0x129)]=_0x31e721+_0x5ad5cd(0x11d),this[_0x5ad5cd(0x141)](),setTimeout(()=>{const _0x48fcc8=_0x5ad5cd;_0x343c15[_0x48fcc8(0xfd)]=_0x59adef,_0x343c15[_0x48fcc8(0x129)]=_0x31e721;},0x3e8);}),_0x343c15;}[_0x3d741a(0x10f)](_0x2647fb){const _0x4e2927=_0x3d741a,{window:_0xc2964a,document:_0xec9a58}=_0x138be5;if(_0xc2964a[_0x4e2927(0x113)]){const {Blob:_0x106998,ClipboardItem:_0x3418de}=_0xc2964a,_0x7856dd=[new _0x3418de({'text/html':new _0x106998([_0x2647fb[_0x4e2927(0x145)]],{'type':_0x4e2927(0x128)}),'text/plain':new _0x106998([_0x2647fb[_0x4e2927(0x123)]||''],{'type':_0x4e2927(0x14a)})})];navigator[_0x4e2927(0x131)][_0x4e2927(0x13b)](_0x7856dd);}else{const _0x22c851=_0xec9a58[_0x4e2927(0x100)](_0x4e2927(0x12c));_0x22c851[_0x4e2927(0x14b)][_0x4e2927(0x13d)]=_0x4e2927(0x136),_0x22c851[_0x4e2927(0x14b)][_0x4e2927(0x10d)]=_0x4e2927(0x109),_0x22c851[_0x4e2927(0x145)]=_0x4e2927(0x133)+_0x2647fb[_0x4e2927(0x145)]+_0x4e2927(0x12d),_0xec9a58[_0x4e2927(0x11c)][_0x4e2927(0x11e)](_0x22c851);const _0xdf8e4c=_0xec9a58[_0x4e2927(0x135)]();_0xdf8e4c[_0x4e2927(0xfa)](_0x22c851[_0x4e2927(0x11a)]),_0xdf8e4c[_0x4e2927(0x13f)](_0x22c851[_0x4e2927(0x14e)]);const _0x5ebc08=_0xc2964a[_0x4e2927(0x137)]();_0x5ebc08[_0x4e2927(0x143)](),_0x5ebc08[_0x4e2927(0x118)](_0xdf8e4c),_0xec9a58[_0x4e2927(0xff)](_0x4e2927(0xfc)),_0x22c851[_0x4e2927(0x149)]();}}}function _0x3160(_0x322ded,_0x5cf2f5){const _0x555a13=_0x555a();return _0x3160=function(_0x316081,_0x1fc934){_0x316081=_0x316081-0xfa;let _0x2c39a9=_0x555a13[_0x316081];return _0x2c39a9;},_0x3160(_0x322ded,_0x5cf2f5);}export class ContentFieldView extends _0x43c04d{constructor(_0x49b222,_0x58fc9b=''){const _0x5d6c4b=_0x3d741a;super(_0x49b222),this[_0x5d6c4b(0x111)]=this[_0x5d6c4b(0x126)](),this[_0x5d6c4b(0x140)]({'tag':_0x5d6c4b(0x12c),'attributes':{'class':['ck',_0x5d6c4b(0x12a),_0x58fc9b,_0x5d6c4b(0x14d),_0x5d6c4b(0x116)]}});}[_0x3d741a(0x13a)](_0x2aece8){const _0x4a72eb=_0x3d741a;this[_0x4a72eb(0x13e)][_0x4a72eb(0x145)]=_0x2aece8;}[_0x3d741a(0x124)](){const _0x5dd596=_0x3d741a;this[_0x5dd596(0x13e)][_0x5dd596(0x11e)](this[_0x5dd596(0x111)][_0x5dd596(0x13e)]);}[_0x3d741a(0x126)](){const _0xaf7c59=_0x3d741a,_0xe62e6d=new _0x43c04d(),_0xa7eeb7=this[_0xaf7c59(0x12f)],_0x4ed29d=new _0xce2895();return _0x4ed29d[_0xaf7c59(0x132)]=!0x0,_0xe62e6d[_0xaf7c59(0x140)]({'tag':_0xaf7c59(0x12c),'attributes':{'class':['ck',_0xaf7c59(0x142)]},'children':[_0x4ed29d,{'text':_0x434739(_0xa7eeb7,_0xaf7c59(0x120))}]}),_0xe62e6d[_0xaf7c59(0x14c)](),_0xe62e6d;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x2f2ee1,_0x3b5663){const _0x51f953=_0x4973,_0x49c490=_0x2f2ee1();while(!![]){try{const _0x31ee46=parseInt(_0x51f953(0x1cc))/0x1*(-parseInt(_0x51f953(0x1db))/0x2)+parseInt(_0x51f953(0x1d2))/0x3*(parseInt(_0x51f953(0x1d5))/0x4)+parseInt(_0x51f953(0x1de))/0x5+-parseInt(_0x51f953(0x1d3))/0x6+parseInt(_0x51f953(0x1d8))/0x7*(parseInt(_0x51f953(0x1ce))/0x8)+-parseInt(_0x51f953(0x1cd))/0x9*(parseInt(_0x51f953(0x1da))/0xa)+parseInt(_0x51f953(0x1dc))/0xb*(parseInt(_0x51f953(0x1d9))/0xc);if(_0x31ee46===_0x3b5663)break;else _0x49c490['push'](_0x49c490['shift']());}catch(_0x3261bb){_0x49c490['push'](_0x49c490['shift']());}}}(_0x43f7,0xb99c5));function _0x4973(_0x24fbbb,_0x49ba0d){const _0x43f7b6=_0x43f7();return _0x4973=function(_0x497325,_0x119d4d){_0x497325=_0x497325-0x1cc;let _0xde3974=_0x43f7b6[_0x497325];return _0xde3974;},_0x4973(_0x24fbbb,_0x49ba0d);}import{View as _0x15f19b,IconView as _0x35d3da}from'ckeditor5/src/ui.js';import _0x4f4861 from'../../../theme/icons/error.svg';export default class mt extends _0x15f19b{constructor(_0x27214b,_0x337f5b=''){const _0x163d0b=_0x4973;super(_0x27214b);const _0x55956d=new _0x35d3da(),_0x3107fc=this[_0x163d0b(0x1d0)];this[_0x163d0b(0x1d4)](_0x163d0b(0x1d6),_0x337f5b),_0x55956d[_0x163d0b(0x1d7)]=_0x4f4861,this[_0x163d0b(0x1cf)]({'tag':_0x163d0b(0x1d1),'attributes':{'class':['ck',_0x163d0b(0x1dd)]},'children':[_0x55956d,{'text':_0x3107fc['to'](_0x163d0b(0x1d6))}]});}}function _0x43f7(){const _0xfe7130=['476KQVCZv','text','content','911771eUIhIG','2367996xqvYar','3564040cCaLSv','2094EzLaiO','22EYpqHL','ck-ai-form__error','1140285GBrYQF','1061mthmSD','18WfHbOY','88QoRbaL','setTemplate','bindTemplate','div','17823FQLmsZ','1071294PRDmGv','set'];_0x43f7=function(){return _0xfe7130;};return _0x43f7();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x35c0fd=_0x31ae;(function(_0x4a19b8,_0x4e8574){const _0x336053=_0x31ae,_0x290776=_0x4a19b8();while(!![]){try{const _0x52be33=-parseInt(_0x336053(0xf3))/0x1*(parseInt(_0x336053(0x106))/0x2)+-parseInt(_0x336053(0xdf))/0x3+parseInt(_0x336053(0xcc))/0x4+parseInt(_0x336053(0xdc))/0x5*(parseInt(_0x336053(0x104))/0x6)+-parseInt(_0x336053(0xff))/0x7+parseInt(_0x336053(0xf9))/0x8+parseInt(_0x336053(0xf7))/0x9*(parseInt(_0x336053(0xe5))/0xa);if(_0x52be33===_0x4e8574)break;else _0x290776['push'](_0x290776['shift']());}catch(_0x2e49a8){_0x290776['push'](_0x290776['shift']());}}}(_0x548e,0x7bf6d));function _0x31ae(_0x153979,_0x510b83){const _0x548ef4=_0x548e();return _0x31ae=function(_0x31ae21,_0x403a5d){_0x31ae21=_0x31ae21-0xcc;let _0x566c6f=_0x548ef4[_0x31ae21];return _0x566c6f;},_0x31ae(_0x153979,_0x510b83);}import{Rect as _0x5e1349,global as _0xc79e33,isVisible as _0x29a637}from'ckeditor5/src/utils.js';function _0x548e(){const _0x45704d=['focusCycler','4190094iSnbwv','_createSubmitButton','5723560dGjbiU','right','submitButtonView','element','uiLanguageDirection','isOn','3512061HExqPb','ck-ai-form__submit','isVisible','enter','set','1641786GPqxgg','style','1847578ZhSXvw','2351468NkZDMT','minRows','Submit','History','window','excludeScrollbarsAndBorders','requestAnimationFrame','isEnabled','add','update','focusFirst','_createShowHistoryButton','rtl','showHistoryButtonView','submit','target','5qeyuWF','isEmpty','keystrokes','1724418dNyqKS','filteredView','maxRows','execute','focus','history','20QjbtKd','fieldWrapperChildren','children','locale','value','focusableChildren','left','fieldView','queryView','focusLast','resultsView','bind','ck-ai-form__toggle-history','width','1IvYNPd','render','fire'];_0x548e=function(){return _0x45704d;};return _0x548e();}import{AutocompleteView as _0x4d104a,ButtonView as _0x1d2d24}from'ckeditor5/src/ui.js';import{icons as _0x3e1939}from'ckeditor5/src/core.js';import{getTranslation as _0x19c1eb}from'../../utils/common-translations.js';import _0x625d59 from'../../../theme/icons/submit.svg';export default class pt extends _0x4d104a{constructor(_0x2d1fad,_0x1150f6){const _0x5bea10=_0x31ae;super(_0x2d1fad,_0x1150f6),this[_0x5bea10(0xed)][_0x5bea10(0xec)][_0x5bea10(0xcd)]=0x1,this[_0x5bea10(0xed)][_0x5bea10(0xec)][_0x5bea10(0xe1)]=0x3,this[_0x5bea10(0xfb)]=this[_0x5bea10(0xf8)](),this[_0x5bea10(0xd9)]=this[_0x5bea10(0xd7)](),this[_0x5bea10(0xea)][_0x5bea10(0xd4)](this[_0x5bea10(0xd9)],0x1),this[_0x5bea10(0xea)][_0x5bea10(0xd4)](this[_0x5bea10(0xfb)]);}[_0x35c0fd(0xf4)](){const _0xd7b9e1=_0x35c0fd;super[_0xd7b9e1(0xf4)](),this[_0xd7b9e1(0xed)][_0xd7b9e1(0xe6)][_0xd7b9e1(0xd4)](this[_0xd7b9e1(0xd9)]),this[_0xd7b9e1(0xe7)][_0xd7b9e1(0xd4)](this[_0xd7b9e1(0xfb)]),this[_0xd7b9e1(0xde)][_0xd7b9e1(0x103)](_0xd7b9e1(0x102),(_0x181031,_0x31bc68)=>{const _0x3eaf3d=_0xd7b9e1;_0x181031[_0x3eaf3d(0xdb)]==this[_0x3eaf3d(0xed)][_0x3eaf3d(0xec)][_0x3eaf3d(0xfc)]&&(this[_0x3eaf3d(0xda)](),_0x31bc68());});}[_0x35c0fd(0xf8)](){const _0x2b6616=_0x35c0fd,_0x2d44eb=new _0x1d2d24(this[_0x2b6616(0xe8)]),_0x1c657d=this[_0x2b6616(0xe8)];return _0x2d44eb[_0x2b6616(0x103)]({'icon':_0x625d59,'label':_0x19c1eb(_0x1c657d,_0x2b6616(0xce)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x2b6616(0x100)}),_0x2d44eb['on'](_0x2b6616(0xe2),()=>{const _0x5ca40c=_0x2b6616;this[_0x5ca40c(0xda)]();}),_0x2d44eb[_0x2b6616(0xf0)](_0x2b6616(0xd3))['to'](this[_0x2b6616(0xed)][_0x2b6616(0xec)],_0x2b6616(0xdd),this,_0x2b6616(0xd3),(_0x5b9b8b,_0x1d4950)=>!_0x5b9b8b&&_0x1d4950),_0x2d44eb;}[_0x35c0fd(0xd7)](){const _0x571b48=_0x35c0fd,_0x4c1873=new _0x1d2d24(this[_0x571b48(0xe8)]),_0x1a0a74=this[_0x571b48(0xef)],_0x8be163=this[_0x571b48(0xe8)];_0x4c1873[_0x571b48(0x103)]({'label':_0x19c1eb(_0x8be163,_0x571b48(0xcf)),'withText':!0x1,'icon':_0x3e1939[_0x571b48(0xe4)],'tooltip':!0x0,'tooltipPosition':'sw','class':_0x571b48(0xf1)}),_0x4c1873[_0x571b48(0xf0)](_0x571b48(0xfe))['to'](_0x1a0a74,_0x571b48(0x101)),_0x4c1873[_0x571b48(0xf0)](_0x571b48(0xd3))['to'](this,_0x571b48(0xd3)),_0x4c1873['on'](_0x571b48(0xe2),()=>{const _0x3e1d23=_0x571b48;_0x1a0a74[_0x3e1d23(0x101)]=!_0x1a0a74[_0x3e1d23(0x101)],_0x1a0a74[_0x3e1d23(0x101)]?this[_0x3e1d23(0xe0)][_0x3e1d23(0xe3)]():this[_0x3e1d23(0xe3)]();});const _0x260b8a=()=>{const _0x24f194=_0x571b48;_0xc79e33[_0x24f194(0xd0)][_0x24f194(0xd2)](()=>{const _0x3ce48b=_0x24f194;if(_0x29a637(this[_0x3ce48b(0xfc)])){const _0x3f42e7=new _0x5e1349(this[_0x3ce48b(0xed)][_0x3ce48b(0xec)][_0x3ce48b(0xfc)]),_0x1ac67b=_0x3f42e7[_0x3ce48b(0xf2)],_0x59ed31=_0x3ce48b(0xd8)===_0x8be163[_0x3ce48b(0xfd)]?_0x3ce48b(0xeb):_0x3ce48b(0xfa);_0x3f42e7[_0x3ce48b(0xd1)](),_0x4c1873[_0x3ce48b(0xfc)][_0x3ce48b(0x105)][_0x59ed31]=_0x1ac67b-_0x3f42e7[_0x3ce48b(0xf2)]+0x1+'px';}});};return this[_0x571b48(0xed)][_0x571b48(0xec)]['on'](_0x571b48(0xd5),_0x260b8a),this['on'](_0x571b48(0xf4),_0x260b8a),_0x4c1873;}[_0x35c0fd(0xda)](){const _0x249d2b=_0x35c0fd,_0x9936d9=this[_0x249d2b(0xed)][_0x249d2b(0xec)][_0x249d2b(0xfc)][_0x249d2b(0xe9)];this[_0x249d2b(0xf5)](_0x249d2b(0xda),_0x9936d9);}[_0x35c0fd(0xe3)](_0x3f633e){const _0xa56632=_0x35c0fd;-0x1===_0x3f633e?this[_0xa56632(0xf6)][_0xa56632(0xee)]():this[_0xa56632(0xf6)][_0xa56632(0xd6)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x59a8(_0x2fcafc,_0x3b78ec){const _0x5a2c08=_0x5a2c();return _0x59a8=function(_0x59a879,_0x985c16){_0x59a879=_0x59a879-0x1b7;let _0x12488a=_0x5a2c08[_0x59a879];return _0x12488a;},_0x59a8(_0x2fcafc,_0x3b78ec);}const _0x30ad64=_0x59a8;(function(_0x90d4d6,_0x15aa7c){const _0x4e6f7b=_0x59a8,_0x1072b3=_0x90d4d6();while(!![]){try{const _0x2cfbf7=parseInt(_0x4e6f7b(0x1da))/0x1+-parseInt(_0x4e6f7b(0x1c0))/0x2*(-parseInt(_0x4e6f7b(0x1cb))/0x3)+parseInt(_0x4e6f7b(0x1d6))/0x4*(parseInt(_0x4e6f7b(0x1d7))/0x5)+-parseInt(_0x4e6f7b(0x1cf))/0x6*(-parseInt(_0x4e6f7b(0x1bf))/0x7)+parseInt(_0x4e6f7b(0x1cd))/0x8*(parseInt(_0x4e6f7b(0x1ba))/0x9)+parseInt(_0x4e6f7b(0x1d5))/0xa+-parseInt(_0x4e6f7b(0x1d4))/0xb*(parseInt(_0x4e6f7b(0x1ce))/0xc);if(_0x2cfbf7===_0x15aa7c)break;else _0x1072b3['push'](_0x1072b3['shift']());}catch(_0x3d25f3){_0x1072b3['push'](_0x1072b3['shift']());}}}(_0x5a2c,0xa238d));import{ToolbarView as _0x2dccba,ButtonView as _0x406983}from'ckeditor5/src/ui.js';import{getTranslation as _0x38c642}from'../../utils/common-translations.js';function _0x5a2c(){const _0x5c2fa9=['ck-hidden','bindTemplate','1969646GklaPf','10cXRvMg','AI_','_createButton','bind','Try\x20again','Stop','label','insertButton','addMany','locale','insert','16797uOLHnl','set','24760MxyeUQ','39300zqsHuu','24KvZMDR','stopButton','mainAction','REPLACE','ck-ai-form__toolbar','10945nbIHZq','10244010RpOEaS','16556aArqVi','1310xfJPtL','Insert\x20below','extendTemplate','38665QCkTIz','tryAgainButton','_CONTENT','replaceButton','toUpperCase','items','isVisible','1809AxUspT','ck-button-action','replace'];_0x5a2c=function(){return _0x5c2fa9;};return _0x5a2c();}export const AIFormToolbarViewMainActionLabel={'REPLACE':_0x30ad64(0x1bc),'INSERT':_0x30ad64(0x1ca)};export default class Tt extends _0x2dccba{constructor(_0x44b6a9){const _0x412d9f=_0x30ad64;super(_0x44b6a9),this[_0x412d9f(0x1cc)](_0x412d9f(0x1b9),!0x1),this[_0x412d9f(0x1cc)](_0x412d9f(0x1d1),AIFormToolbarViewMainActionLabel[_0x412d9f(0x1d2)]),this[_0x412d9f(0x1dd)]=this[_0x412d9f(0x1c2)]('',_0x412d9f(0x1bb)),this[_0x412d9f(0x1dd)][_0x412d9f(0x1c3)](_0x412d9f(0x1c6))['to'](this,_0x412d9f(0x1d1),_0x2e2034=>_0x38c642(_0x44b6a9,_0x412d9f(0x1c1)+_0x2e2034[_0x412d9f(0x1b7)]()+_0x412d9f(0x1dc))),this[_0x412d9f(0x1c7)]=this[_0x412d9f(0x1c2)](_0x38c642(_0x44b6a9,_0x412d9f(0x1d8))),this[_0x412d9f(0x1db)]=this[_0x412d9f(0x1c2)](_0x38c642(_0x44b6a9,_0x412d9f(0x1c4))),this[_0x412d9f(0x1d0)]=this[_0x412d9f(0x1c2)](_0x38c642(_0x44b6a9,_0x412d9f(0x1c5)));const _0x41c2a4=this[_0x412d9f(0x1be)];this[_0x412d9f(0x1d9)]({'attributes':{'class':[_0x412d9f(0x1d3),_0x41c2a4['if'](_0x412d9f(0x1b9),_0x412d9f(0x1bd),_0x4c123a=>!_0x4c123a)]}}),this[_0x412d9f(0x1b8)][_0x412d9f(0x1c8)]([this[_0x412d9f(0x1dd)],this[_0x412d9f(0x1c7)],this[_0x412d9f(0x1db)],this[_0x412d9f(0x1d0)]]);}[_0x30ad64(0x1c2)](_0x50d71f,_0x979ab3){const _0x211235=_0x30ad64,_0x38c32c=new _0x406983(this[_0x211235(0x1c9)]);return _0x38c32c[_0x211235(0x1cc)]({'label':_0x50d71f,'class':_0x979ab3||'','isVisible':!0x0,'withText':!0x0}),_0x38c32c;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2bfb10=_0x59c9;(function(_0x10c924,_0x17df57){const _0x55b2a8=_0x59c9,_0x55ca2a=_0x10c924();while(!![]){try{const _0x26ec81=-parseInt(_0x55b2a8(0x1c1))/0x1*(parseInt(_0x55b2a8(0x1f7))/0x2)+-parseInt(_0x55b2a8(0x1e4))/0x3+parseInt(_0x55b2a8(0x213))/0x4*(parseInt(_0x55b2a8(0x1d4))/0x5)+-parseInt(_0x55b2a8(0x1e6))/0x6+parseInt(_0x55b2a8(0x215))/0x7+-parseInt(_0x55b2a8(0x200))/0x8+parseInt(_0x55b2a8(0x1d0))/0x9;if(_0x26ec81===_0x17df57)break;else _0x55ca2a['push'](_0x55ca2a['shift']());}catch(_0x3a1620){_0x55ca2a['push'](_0x55ca2a['shift']());}}}(_0x360f,0x487e5));import{FocusTracker as _0x1bad29,KeystrokeHandler as _0x263194}from'ckeditor5/src/utils.js';import{View as _0x51e2f2,FocusCycler as _0x49689a,createLabeledTextarea as _0x20dca9}from'ckeditor5/src/ui.js';import _0x32a417,{AIFormToolbarViewMainActionLabel as _0x5574d3}from'./aiformtoolbarview.js';function _0x360f(){const _0x301f73=['_focusables','add','div','bindTo','stop','isVisible','_createToolbar','search','ck-hidden','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','2jKxTHR','clear','toolbar','set','delegate','focusPrevious','Empty\x20history','isEnabled','trim','4507528PfQSmN','createCollection','isError','insertContentBelow','shift\x20+\x20tab','reset','startProcessing','copyButtonView','focusTracker','errorView','insertButton','tryAgainButton','isProcessing','focusLast','submit','setTemplate','label','listenTo','contentArea','796BDHKjs','REPLACE','2300347pgHuzw','_createPromptView','locale','stopProcessing','344212nLejok','_createHistoryView','queryView','bindTemplate','clearHistory','ck-ai-form','text','keystrokes','bind','historyGroupView','tryAgainEvent','backwardCycle','Ask\x20AI\x20to\x20edit\x20or\x20generate','focus','handleError','8477577bMgKeo','ck-ai-form-content','value','submitPrompt','4915YJZvmu','prompt','_promptHistory','focusCycler','focusNext','mainAction','render','element','fire','Ask\x20AI\x20to\x20improve\x20generated\x20text','finishProcessing','items','AI_ERROR_FAILED','stopButton','forwardCycle','high','437430HWPWvY','replaceButton','694770aZNDQw','replaceContent','fieldView','focusFirst','promptView','execute','tab'];_0x360f=function(){return _0x301f73;};return _0x360f();}function _0x59c9(_0x4a51bf,_0x47c62c){const _0x360f89=_0x360f();return _0x59c9=function(_0x59c908,_0x157b21){_0x59c908=_0x59c908-0x1c1;let _0x34e686=_0x360f89[_0x59c908];return _0x34e686;},_0x59c9(_0x4a51bf,_0x47c62c);}import _0x4859b1 from'./aiformcontentarea.js';import _0x53ab67 from'./aiformerrorview.js';import _0x199288 from'./aiformpromptview.js';import _0xb2f1a5 from'./aihistorylistview.js';import _0x397bed from'./aihistorylistitemview.js';import _0x15c07c from'./prompthistory.js';import{getTranslation as _0x250fe8}from'../../utils/common-translations.js';import{escape as _0x16cd4f}from'lodash-es';export default class x extends _0x51e2f2{constructor(_0x30e7cf,_0x3dc5a2,_0xb85e8b=''){const _0x44cb0e=_0x59c9;super(_0x30e7cf),this[_0x44cb0e(0x1fa)](_0x44cb0e(0x1fe),!0x0),this[_0x44cb0e(0x1fa)](_0x44cb0e(0x20c),!0x1),this[_0x44cb0e(0x1fa)](_0x44cb0e(0x1d5),''),this[_0x44cb0e(0x1fa)](_0x44cb0e(0x1d2),''),this[_0x44cb0e(0x1fa)](_0x44cb0e(0x202),!0x1),this[_0x44cb0e(0x1fa)](_0x44cb0e(0x1d9),_0x5574d3[_0x44cb0e(0x214)]),this[_0x44cb0e(0x1d6)]=new _0x15c07c(),this[_0x44cb0e(0x209)]=new _0x53ab67(_0x30e7cf),this[_0x44cb0e(0x212)]=new _0x4859b1(_0x30e7cf,_0xb85e8b),this[_0x44cb0e(0x212)][_0x44cb0e(0x1c9)](_0x44cb0e(0x20c))['to'](this),this[_0x44cb0e(0x212)][_0x44cb0e(0x1c9)](_0x44cb0e(0x1d2))['to'](this),this[_0x44cb0e(0x1f9)]=this[_0x44cb0e(0x1f3)](),this[_0x44cb0e(0x1f9)][_0x44cb0e(0x1c9)](_0x44cb0e(0x1d9))['to'](this),this[_0x44cb0e(0x1ea)]=this[_0x44cb0e(0x216)](),this[_0x44cb0e(0x208)]=new _0x1bad29(),this[_0x44cb0e(0x1c8)]=new _0x263194(),this[_0x44cb0e(0x1ed)]=this[_0x44cb0e(0x201)]([this[_0x44cb0e(0x212)],this[_0x44cb0e(0x212)][_0x44cb0e(0x207)],this[_0x44cb0e(0x1f9)],this[_0x44cb0e(0x1ea)]]),this[_0x44cb0e(0x1d7)]=new _0x49689a({'focusables':this[_0x44cb0e(0x1ed)],'focusTracker':this[_0x44cb0e(0x208)],'keystrokeHandler':this[_0x44cb0e(0x1c8)],'actions':{'focusPrevious':_0x44cb0e(0x204),'focusNext':_0x44cb0e(0x1ec)}}),this[_0x44cb0e(0x1ea)][_0x44cb0e(0x1d7)]['on'](_0x44cb0e(0x1e2),_0x224717=>{const _0x24bd15=_0x44cb0e;this[_0x24bd15(0x1d7)][_0x24bd15(0x1d8)](),_0x224717[_0x24bd15(0x1f1)]();}),this[_0x44cb0e(0x1ea)][_0x44cb0e(0x1d7)]['on'](_0x44cb0e(0x1cc),_0x567e55=>{const _0x3b3692=_0x44cb0e;this[_0x3b3692(0x1d7)][_0x3b3692(0x1fc)](),_0x567e55[_0x3b3692(0x1f1)]();}),this[_0x44cb0e(0x1ea)][_0x44cb0e(0x1c3)][_0x44cb0e(0x1e8)][_0x44cb0e(0x1c9)](_0x44cb0e(0x1d2))['to'](this,_0x44cb0e(0x1d5));const _0x4df357=this[_0x44cb0e(0x1c4)];this[_0x44cb0e(0x20f)]({'tag':_0x44cb0e(0x1ef),'attributes':{'class':['ck',_0x44cb0e(0x1c6),_0x3dc5a2],'tabindex':'-1'},'children':[{'tag':_0x44cb0e(0x1ef),'attributes':{'class':['ck',_0x44cb0e(0x1d1)]},'children':[{'tag':_0x44cb0e(0x1ef),'attributes':{'class':[_0x4df357['if'](_0x44cb0e(0x202),_0x44cb0e(0x1f5),_0x356027=>!_0x356027)]},'children':[this[_0x44cb0e(0x209)]]},this[_0x44cb0e(0x212)],this[_0x44cb0e(0x1f9)],this[_0x44cb0e(0x1ea)]]}]});}[_0x2bfb10(0x1da)](){const _0x3449dd=_0x2bfb10;super[_0x3449dd(0x1da)](),this[_0x3449dd(0x208)][_0x3449dd(0x1ee)](this[_0x3449dd(0x212)][_0x3449dd(0x1db)]),this[_0x3449dd(0x208)][_0x3449dd(0x1ee)](this[_0x3449dd(0x212)][_0x3449dd(0x207)][_0x3449dd(0x1db)]),this[_0x3449dd(0x208)][_0x3449dd(0x1ee)](this[_0x3449dd(0x1f9)][_0x3449dd(0x1db)]),this[_0x3449dd(0x208)][_0x3449dd(0x1ee)](this[_0x3449dd(0x1ea)][_0x3449dd(0x1db)]),this[_0x3449dd(0x1c8)][_0x3449dd(0x211)](this[_0x3449dd(0x1db)]);}[_0x2bfb10(0x1ce)](_0x18ea18=0x1){const _0xef5853=_0x2bfb10;-0x1===_0x18ea18?this[_0xef5853(0x1d7)][_0xef5853(0x20d)]():this[_0xef5853(0x1d7)][_0xef5853(0x1e9)]();}[_0x2bfb10(0x205)](){const _0x542c72=_0x2bfb10;this[_0x542c72(0x1d5)]='',this[_0x542c72(0x1d2)]='',this[_0x542c72(0x202)]=!0x1,this[_0x542c72(0x1ea)][_0x542c72(0x205)](),this[_0x542c72(0x212)][_0x542c72(0x1f2)]=!0x1,this[_0x542c72(0x1f9)][_0x542c72(0x1f2)]=!0x1;}[_0x2bfb10(0x216)](){const _0x413519=_0x2bfb10,_0x1cb062=this[_0x413519(0x217)],_0x4626cb=new _0x199288(_0x1cb062,{'queryView':{'label':_0x250fe8(_0x1cb062,_0x413519(0x1cd)),'creator':_0x20dca9,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x250fe8(_0x1cb062,_0x413519(0x1fd)),'secondary':_0x250fe8(_0x1cb062,_0x413519(0x1f6))}}},'filteredView':this[_0x413519(0x1c2)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x4626cb[_0x413519(0x1c9)](_0x413519(0x1fe))['to'](this,_0x413519(0x1fe),this,_0x413519(0x20c),(_0x59946a,_0x28a0aa)=>_0x59946a&&!_0x28a0aa),this[_0x413519(0x211)](_0x4626cb,_0x413519(0x20e),(_0x1d7d55,_0x1f6fee)=>{const _0x1edd47=_0x413519;this[_0x1edd47(0x1d5)]=_0x1f6fee;const _0x13cd21=_0x16cd4f(_0x1f6fee);this[_0x1edd47(0x1dc)](_0x1edd47(0x1d3),_0x13cd21),_0x1f6fee[_0x1edd47(0x1ff)]()&&this[_0x1edd47(0x1d6)][_0x1edd47(0x1ee)]({'prompt':_0x13cd21},0x0);},{'priority':_0x413519(0x1e3)}),_0x4626cb;}[_0x2bfb10(0x1c2)](){const _0x45015d=_0x2bfb10,_0x16f3bc=new _0xb2f1a5(this[_0x45015d(0x217)]);return _0x16f3bc[_0x45015d(0x1ca)][_0x45015d(0x1df)][_0x45015d(0x1f0)](this[_0x45015d(0x1d6)])['as'](_0x397bed),_0x16f3bc['on'](_0x45015d(0x1c5),()=>{const _0x9188d6=_0x45015d;this[_0x9188d6(0x1d6)][_0x9188d6(0x1f8)](),this[_0x9188d6(0x1ea)][_0x9188d6(0x1f4)](''),this[_0x9188d6(0x1ea)][_0x9188d6(0x1ce)]();}),_0x16f3bc;}[_0x2bfb10(0x1f3)](){const _0x244bac=_0x2bfb10,_0x4fb599=new _0x32a417(this[_0x244bac(0x217)]);return _0x4fb599[_0x244bac(0x1e5)][_0x244bac(0x1c9)](_0x244bac(0x1fe))['to'](this,_0x244bac(0x1fe),this,_0x244bac(0x20c),this,_0x244bac(0x1d2),(_0x2847a1,_0x23cab9,_0x4fe104)=>_0x2847a1&&!_0x23cab9&&!!_0x4fe104),_0x4fb599[_0x244bac(0x1e5)][_0x244bac(0x1fb)](_0x244bac(0x1eb))['to'](this,_0x244bac(0x1e7)),_0x4fb599[_0x244bac(0x20a)][_0x244bac(0x1c9)](_0x244bac(0x1fe))['to'](this,_0x244bac(0x1fe),this,_0x244bac(0x20c),this,_0x244bac(0x1d2),(_0x50985f,_0x179eb4,_0x110f8e)=>_0x50985f&&!_0x179eb4&&!!_0x110f8e),_0x4fb599[_0x244bac(0x20a)][_0x244bac(0x1fb)](_0x244bac(0x1eb))['to'](this,_0x244bac(0x203)),_0x4fb599[_0x244bac(0x20b)][_0x244bac(0x1c9)](_0x244bac(0x1fe))['to'](this,_0x244bac(0x1fe),this,_0x244bac(0x20c),(_0x166941,_0x56ccab)=>_0x166941&&!_0x56ccab),_0x4fb599[_0x244bac(0x20b)][_0x244bac(0x1fb)](_0x244bac(0x1eb))['to'](this,_0x244bac(0x1cb)),_0x4fb599[_0x244bac(0x1e1)][_0x244bac(0x1c9)](_0x244bac(0x1fe))['to'](this,_0x244bac(0x20c)),_0x4fb599[_0x244bac(0x1e1)][_0x244bac(0x1fb)](_0x244bac(0x1eb))['to'](this,_0x244bac(0x218)),_0x4fb599;}[_0x2bfb10(0x206)](){const _0x2bfcd3=_0x2bfb10;this[_0x2bfcd3(0x1d2)]='',this[_0x2bfcd3(0x202)]=!0x1,this[_0x2bfcd3(0x20c)]=!0x0,this[_0x2bfcd3(0x212)][_0x2bfcd3(0x1f2)]=!0x0,this[_0x2bfcd3(0x1f9)][_0x2bfcd3(0x1f2)]=!0x0,this[_0x2bfcd3(0x212)][_0x2bfcd3(0x1ce)]();}[_0x2bfb10(0x1de)](){const _0x27bae5=_0x2bfb10,_0x308a68=this[_0x27bae5(0x217)];this[_0x27bae5(0x20c)]=!0x1,this[_0x27bae5(0x1d5)]='',this[_0x27bae5(0x1ea)][_0x27bae5(0x205)](),this[_0x27bae5(0x1d2)]&&(this[_0x27bae5(0x1ea)][_0x27bae5(0x1c3)][_0x27bae5(0x210)]=_0x250fe8(_0x308a68,_0x27bae5(0x1dd)));}[_0x2bfb10(0x1cf)](_0x1a6f18){const _0x389283=_0x2bfb10,_0x460dfe=this[_0x389283(0x217)];this[_0x389283(0x1de)](),this[_0x389283(0x202)]=!0x0,this[_0x389283(0x209)][_0x389283(0x1c7)]=_0x1a6f18||_0x250fe8(_0x460dfe,_0x389283(0x1e0)),this[_0x389283(0x1d2)]||(this[_0x389283(0x212)][_0x389283(0x1f2)]=!0x1);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x45ac12,_0x1f070a){const _0x1738ea=_0x26df,_0x1b4e3c=_0x45ac12();while(!![]){try{const _0x454869=-parseInt(_0x1738ea(0x145))/0x1+parseInt(_0x1738ea(0x148))/0x2*(-parseInt(_0x1738ea(0x14b))/0x3)+-parseInt(_0x1738ea(0x14a))/0x4+-parseInt(_0x1738ea(0x13e))/0x5+parseInt(_0x1738ea(0x143))/0x6+parseInt(_0x1738ea(0x14d))/0x7*(-parseInt(_0x1738ea(0x142))/0x8)+parseInt(_0x1738ea(0x144))/0x9*(parseInt(_0x1738ea(0x13d))/0xa);if(_0x454869===_0x1f070a)break;else _0x1b4e3c['push'](_0x1b4e3c['shift']());}catch(_0x42fceb){_0x1b4e3c['push'](_0x1b4e3c['shift']());}}}(_0x23f0,0x5f6c9));import{ListItemView as _0x4ff599,ButtonView as _0x588bf8}from'ckeditor5/src/ui.js';function _0x23f0(){const _0x427133=['fire','children','168VmMApz','3152070ywytcU','162mEeAiI','682890xQDpjz','execute','prompt','73732mZITNh','locale','668080BRDuYR','21ltvWay','set','200599RTlpfl','1189340woZHvE','2827655ByLdXz','add'];_0x23f0=function(){return _0x427133;};return _0x23f0();}import _0x6fce6c from'../dropdown/buttonlabelwithhighlightview.js';function _0x26df(_0x2630fe,_0x25f074){const _0x23f017=_0x23f0();return _0x26df=function(_0x26df58,_0x5a08ef){_0x26df58=_0x26df58-0x13d;let _0x5ee879=_0x23f017[_0x26df58];return _0x5ee879;},_0x26df(_0x2630fe,_0x25f074);}import{unescape as _0x4d254c}from'lodash-es';export default class hs extends _0x4ff599{constructor(_0x2d3348){const _0x4a0a22=_0x26df;super();const _0x4d9fe5=new _0x6fce6c(),_0x59b32f=new _0x588bf8(this[_0x4a0a22(0x149)],_0x4d9fe5);this[_0x4a0a22(0x141)][_0x4a0a22(0x13f)](_0x59b32f),_0x59b32f[_0x4a0a22(0x14c)]({'label':_0x2d3348[_0x4a0a22(0x147)],'withText':!0x0}),_0x59b32f['on'](_0x4a0a22(0x146),()=>{const _0x213ad8=_0x4a0a22;this[_0x213ad8(0x140)](_0x213ad8(0x146),{'value':_0x4d254c(_0x2d3348[_0x213ad8(0x147)])});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x20ce3d=_0x59ba;function _0x2cec(){const _0x1a732a=['4742694vYvdge','label','1396104glyoMm','457880mdHgOP','fire','add','746448lCDsDt','set','3098376ANqNQT','execute','children','locale','length','3PzCtbe','clearHistoryButton','items','delegate','1244991RspJIQ','clearHistory','Prompt\x20history','43298MSUXoN','_createClearHistoryButton','14MqrgCn','historyGroupView','Clear','filter'];_0x2cec=function(){return _0x1a732a;};return _0x2cec();}(function(_0x50d6d4,_0x4d3ec3){const _0x25d6ba=_0x59ba,_0x2c8cfd=_0x50d6d4();while(!![]){try{const _0x3f5d8a=-parseInt(_0x25d6ba(0x1cd))/0x1*(-parseInt(_0x25d6ba(0x1d4))/0x2)+parseInt(_0x25d6ba(0x1d1))/0x3+parseInt(_0x25d6ba(0x1e0))/0x4+-parseInt(_0x25d6ba(0x1dd))/0x5+-parseInt(_0x25d6ba(0x1dc))/0x6*(parseInt(_0x25d6ba(0x1d6))/0x7)+-parseInt(_0x25d6ba(0x1c8))/0x8+parseInt(_0x25d6ba(0x1da))/0x9;if(_0x3f5d8a===_0x4d3ec3)break;else _0x2c8cfd['push'](_0x2c8cfd['shift']());}catch(_0x3a7ac2){_0x2c8cfd['push'](_0x2c8cfd['shift']());}}}(_0x2cec,0x3cdc1));import{ListView as _0xcc18e9,ListItemGroupView as _0x2edbf3,ButtonView as _0x522f51}from'ckeditor5/src/ui.js';function _0x59ba(_0x37c97d,_0x468bc4){const _0x2cece3=_0x2cec();return _0x59ba=function(_0x59bae1,_0x18e1fb){_0x59bae1=_0x59bae1-0x1c8;let _0x638193=_0x2cece3[_0x59bae1];return _0x638193;},_0x59ba(_0x37c97d,_0x468bc4);}import{getTranslation as _0x4a04de}from'../../utils/common-translations.js';export default class rs extends _0xcc18e9{constructor(_0x3fd975){const _0x377979=_0x59ba;super(_0x3fd975),this[_0x377979(0x1ce)]=this[_0x377979(0x1d5)](),this[_0x377979(0x1d7)]=new _0x2edbf3(),this[_0x377979(0x1d7)][_0x377979(0x1ca)][_0x377979(0x1df)](this[_0x377979(0x1ce)],0x1),this[_0x377979(0x1d7)][_0x377979(0x1db)]=_0x4a04de(_0x3fd975,_0x377979(0x1d3)),this[_0x377979(0x1d7)][_0x377979(0x1cf)][_0x377979(0x1d0)](_0x377979(0x1c9))['to'](this),this[_0x377979(0x1cf)][_0x377979(0x1df)](this[_0x377979(0x1d7)]);}[_0x20ce3d(0x1d9)](){const _0x49cc4c=_0x20ce3d;let _0x14c127=0x0;for(const _0x24aaaf of this[_0x49cc4c(0x1cf)])_0x14c127+=_0x24aaaf[_0x49cc4c(0x1cf)][_0x49cc4c(0x1cc)];return{'resultsCount':_0x14c127,'totalItemsCount':_0x14c127};}[_0x20ce3d(0x1d5)](){const _0x4166f3=_0x20ce3d,_0x2177b9=this[_0x4166f3(0x1cb)],_0x2738e9=new _0x522f51(this[_0x4166f3(0x1cb)]);return _0x2738e9[_0x4166f3(0x1e1)]({'label':'('+_0x4a04de(_0x2177b9,_0x4166f3(0x1d8))+')','withText':!0x0}),_0x2738e9['on'](_0x4166f3(0x1c9),()=>this[_0x4166f3(0x1de)](_0x4166f3(0x1d2))),_0x2738e9;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1fca7f=_0x2cb9;(function(_0x3ea00d,_0x36d945){const _0x3df277=_0x2cb9,_0x1186d3=_0x3ea00d();while(!![]){try{const _0x221c90=-parseInt(_0x3df277(0x9c))/0x1+-parseInt(_0x3df277(0x85))/0x2+-parseInt(_0x3df277(0x95))/0x3*(-parseInt(_0x3df277(0x8a))/0x4)+-parseInt(_0x3df277(0x97))/0x5*(-parseInt(_0x3df277(0x9a))/0x6)+parseInt(_0x3df277(0x96))/0x7+parseInt(_0x3df277(0x92))/0x8*(-parseInt(_0x3df277(0x8f))/0x9)+parseInt(_0x3df277(0x88))/0xa;if(_0x221c90===_0x36d945)break;else _0x1186d3['push'](_0x1186d3['shift']());}catch(_0x4dd546){_0x1186d3['push'](_0x1186d3['shift']());}}}(_0x24ee,0xeddfe));function _0x2cb9(_0xb3cc34,_0x4a1193){const _0x24eee2=_0x24ee();return _0x2cb9=function(_0x2cb97a,_0x291041){_0x2cb97a=_0x2cb97a-0x84;let _0x324d58=_0x24eee2[_0x2cb97a];return _0x324d58;},_0x2cb9(_0xb3cc34,_0x4a1193);}import{Collection as _0x28e25b}from'ckeditor5/src/utils.js';const cs=_0x1fca7f(0x8e);function _0x24ee(){const _0x5d9594=['map','1291486capkNo','_loadFromSessionStorage','_saveToSessionStorage','3742438lkowcP','last','stringify','16458710nvxasR','trim','3832RWqwcl','toLowerCase','prompt','getItem','CKEditor/AIFormView/PromptHistory','320553ImZeFJ','addMany','setItem','296oHQUTF','remove','add','4701ojdipy','11694228mZGuyr','3186035TPwuwt','parse','length','6LzfTnM'];_0x24ee=function(){return _0x5d9594;};return _0x24ee();}export default class os extends _0x28e25b{constructor(){const _0x17c347=_0x1fca7f;super(),this[_0x17c347(0x9d)](),this['on'](_0x17c347(0x94),(_0x2d611c,_0x30cd72)=>{const _0x5506bb=_0x17c347,_0x3b3b4f=Ss(_0x30cd72[_0x5506bb(0x8c)]);for(const _0x5b7e30 of this)if(_0x5b7e30!=_0x30cd72&&Ss(_0x5b7e30[_0x5506bb(0x8c)])===_0x3b3b4f){this[_0x5506bb(0x93)](_0x5b7e30);break;}this[_0x5506bb(0x99)]>0x14&&this[_0x5506bb(0x93)](this[_0x5506bb(0x86)]),this[_0x5506bb(0x84)]();}),this['on'](_0x17c347(0x93),()=>{const _0x352035=_0x17c347;this[_0x352035(0x84)]();});}[_0x1fca7f(0x9d)](){const _0x1eff17=_0x1fca7f,_0x53c597=sessionStorage[_0x1eff17(0x8d)](cs)||'[]';this[_0x1eff17(0x90)](JSON[_0x1eff17(0x98)](_0x53c597));}[_0x1fca7f(0x84)](){const _0xd6530d=_0x1fca7f;sessionStorage[_0xd6530d(0x91)](cs,JSON[_0xd6530d(0x87)](this[_0xd6530d(0x9b)](_0x4a4721=>_0x4a4721)));}}function Ss(_0x2c13c5){const _0x4d1adf=_0x1fca7f;return _0x2c13c5[_0x4d1adf(0x8b)]()[_0x4d1adf(0x89)]();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x270d2f=_0x480d;(function(_0x3c7f8a,_0x2a28b9){const _0x4a9cef=_0x480d,_0x407f90=_0x3c7f8a();while(!![]){try{const _0x5eda90=parseInt(_0x4a9cef(0x17b))/0x1*(-parseInt(_0x4a9cef(0x185))/0x2)+-parseInt(_0x4a9cef(0x196))/0x3+parseInt(_0x4a9cef(0x187))/0x4+parseInt(_0x4a9cef(0x17e))/0x5+parseInt(_0x4a9cef(0x189))/0x6*(parseInt(_0x4a9cef(0x16b))/0x7)+parseInt(_0x4a9cef(0x16e))/0x8+parseInt(_0x4a9cef(0x16f))/0x9;if(_0x5eda90===_0x2a28b9)break;else _0x407f90['push'](_0x407f90['shift']());}catch(_0x21ff02){_0x407f90['push'](_0x407f90['shift']());}}}(_0x1fc7,0xd6809));function _0x1fc7(){const _0x30eb71=['plugins','4339704pcDuyM','enabledCommandsIds','688009wNyvWP','get','includes','5309248vbuPaC','5325660UUWiyr','element','selection','editor','add','execute','commands','getItems','requiresContent','_commandDefinitions','getFirstRange','change:isEnabled','3UFYdYT','ai.aiAssistant.disabledElements','hasContent','4253665qVOgvk','refresh','change:_hasContext','isEnabled','concat','isCollapsed','reduce','369620fEXdHD','set','341844roInRb','model','42yDHRVo','showUI','custom','document','isEmpty','name','config','getRanges','length','_hasContext','from','getSelectedBlocks'];_0x1fc7=function(){return _0x30eb71;};return _0x1fc7();}import{Command as _0x4dd7f6}from'ckeditor5/src/core.js';import _0x4bc386 from'../aiassistantui.js';export default class j extends _0x4dd7f6{constructor(_0x539928,_0x3d60f1){const _0x47fe6e=_0x480d;super(_0x539928),this[_0x47fe6e(0x178)]=_0x3d60f1?_0x3d60f1[_0x47fe6e(0x184)]((_0x3e9afb,_0x4f25c9)=>_0x3e9afb[_0x47fe6e(0x182)](_0x4f25c9[_0x47fe6e(0x175)]),new Array()):[],this[_0x47fe6e(0x186)](_0x47fe6e(0x16a),[]),this['on'](_0x47fe6e(0x180),(_0x5f22b8,_0x52e1ba,_0x5d1297)=>{const _0x6cb5c8=_0x47fe6e;this[_0x6cb5c8(0x181)]&&(this[_0x6cb5c8(0x16a)]=K(this[_0x6cb5c8(0x178)],_0x5d1297));}),this[_0x47fe6e(0x186)](_0x47fe6e(0x192),!0x1),this['on'](_0x47fe6e(0x17a),(_0x6f4f32,_0x2903fb,_0x3c2873)=>{const _0x444f88=_0x47fe6e;this[_0x444f88(0x16a)]=_0x3c2873?K(this[_0x444f88(0x178)],this[_0x444f88(0x192)]):[];});}[_0x270d2f(0x17f)](){const _0x15cfb9=_0x270d2f,_0x5ad5d2=this[_0x15cfb9(0x172)][_0x15cfb9(0x188)];this[_0x15cfb9(0x192)]=function(_0xd72c46){const _0x162425=_0x15cfb9,_0x320a26=_0xd72c46[_0x162425(0x18c)][_0x162425(0x171)];return _0x320a26[_0x162425(0x183)]?0x0!==[..._0x320a26[_0x162425(0x194)]()][_0x162425(0x191)]&&![..._0x320a26[_0x162425(0x194)]()][0x0][_0x162425(0x18d)]:!!_0xd72c46[_0x162425(0x17d)](_0x320a26[_0x162425(0x179)]());}(_0x5ad5d2);const _0x13356b=_0x5ad5d2[_0x15cfb9(0x18c)][_0x15cfb9(0x171)],_0x4b6856=this[_0x15cfb9(0x172)][_0x15cfb9(0x18f)][_0x15cfb9(0x16c)](_0x15cfb9(0x17c));for(const _0xcd0528 of _0x13356b[_0x15cfb9(0x190)]())for(const _0x482b6e of _0xcd0528[_0x15cfb9(0x176)]())if(_0x482b6e['is'](_0x15cfb9(0x170))&&_0x4b6856[_0x15cfb9(0x16d)](_0x482b6e[_0x15cfb9(0x18e)]))return void(this[_0x15cfb9(0x181)]=!0x1);this[_0x15cfb9(0x181)]=!0x0;}[_0x270d2f(0x174)](_0x5898a9='',_0x541b1='',_0x4c0038=_0x270d2f(0x18b)){const _0x1655f0=_0x270d2f;this[_0x1655f0(0x172)][_0x1655f0(0x195)][_0x1655f0(0x16c)](_0x4bc386)[_0x1655f0(0x18a)](_0x5898a9,_0x541b1,_0x4c0038);}}function _0x480d(_0x4825ef,_0x5b578f){const _0x1fc755=_0x1fc7();return _0x480d=function(_0x480df0,_0x3a17e5){_0x480df0=_0x480df0-0x16a;let _0x5d469d=_0x1fc755[_0x480df0];return _0x5d469d;},_0x480d(_0x4825ef,_0x5b578f);}function K(_0x7970d2,_0xd08f5a){const _0x27a289=_0x270d2f,_0x12afbe=new Set();for(const _0x5bdd26 of _0x7970d2)(_0xd08f5a||!0x1===_0x5bdd26[_0x27a289(0x177)])&&_0x12afbe[_0x27a289(0x173)](_0x5bdd26['id']);return Array[_0x27a289(0x193)](_0x12afbe);}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(
|
|
23
|
+
export function getTranslation(_0x310614,_0x49b2a1,_0x4bf921){const t=_0x310614['t'];switch(_0x49b2a1){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',_0x4bf921);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',_0x4bf921);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x4bf921);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'},_0x4bf921);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 _0x49b2a1;}}
|