@ckeditor/ckeditor5-ai 42.0.0-alpha.0 → 42.0.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/dist/index.js +2 -2
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +4 -4
- package/src/adapters/aiadapter.js +1 -1
- package/src/adapters/aitextadapter.js +1 -1
- package/src/adapters/awstextadapter.js +1 -1
- package/src/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant.js +1 -1
- package/src/aiassistantediting.js +1 -1
- package/src/aiassistantui.js +1 -1
- package/src/index.js +1 -1
- package/src/ui/aiassistantcontroller.js +2 -2
- package/src/ui/dropdown/aicommandslistview.js +1 -1
- package/src/ui/dropdown/buttonlabelwithhighlightview.js +1 -1
- package/src/ui/dropdown/labelwithhighlightview.js +1 -1
- package/src/ui/form/aiformcontentarea.js +1 -1
- package/src/ui/form/aiformerrorview.js +1 -1
- package/src/ui/form/aiformpromptview.js +1 -1
- package/src/ui/form/aiformtoolbarview.js +1 -1
- package/src/ui/form/aiformview.js +1 -1
- package/src/ui/form/aihistorylistitemview.js +1 -1
- package/src/ui/form/aihistorylistview.js +1 -1
- package/src/ui/form/prompthistory.js +1 -1
- package/src/ui/showaiassistantcommand.js +1 -1
- package/src/utils/common-translations.js +1 -1
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
|
|
23
|
+
const _0x2a480a=_0x5daa;(function(_0x4bb5c5,_0x469e84){const _0x51142d=_0x5daa,_0x595b92=_0x4bb5c5();while(!![]){try{const _0x25c022=-parseInt(_0x51142d(0x1e7))/0x1+parseInt(_0x51142d(0x212))/0x2*(-parseInt(_0x51142d(0x1c5))/0x3)+-parseInt(_0x51142d(0x1fa))/0x4+-parseInt(_0x51142d(0x203))/0x5+parseInt(_0x51142d(0x1d4))/0x6+-parseInt(_0x51142d(0x1e8))/0x7+parseInt(_0x51142d(0x1c7))/0x8;if(_0x25c022===_0x469e84)break;else _0x595b92['push'](_0x595b92['shift']());}catch(_0x2651ea){_0x595b92['push'](_0x595b92['shift']());}}}(_0xbd70,0xbf081));import{ObservableMixin as _0x4ec939}from'ckeditor5/src/utils.js';function _0xbd70(){const _0x5ef3fa=['div','_domParser','_handleQuery','view','document','prompt','startsWith','domConverter','htmlProcessor','mainAction','toModel','listenTo','from','isProcessing','2CInalP','value','serializeToString','_xmlSerializer','isRendered','previousQuery','once','stopProcessing','rename','ELEMENT_NODE','previousContext','handleError','textAdapter','catch','name','stopListening','2419791ONfGaW','stringify','24364184sTXdDs','initialContext','<h1></h1>','remove','length','innerHTML','then','destroy','createElement','substring','```html','editor','element','8665674CeMdEh','parseFromString','text/html','_sanitizationContainer','processor','makeRequest','message','toView','trim','exec','reverse','querySelector','render','finally','setContentOf','previousActionId','_sanitizeHTML','_normalizeResponseHeadings','editing','780033CiObhh','499968MwsPfD','submitPrompt','data','_stripMarkdownSyntax','updateView','childNodes','nodeType','set','startProcessing','currentResponse','endsWith','reset','_parseAndNormalizeContent','finishProcessing','custom','tryAgainEvent','match','abort','3418108YROOnh','```','set:currentContext','viewToDom','previousLabel','body','push','_isH1TagSupportEnabled','currentContext','5973780rWaBNb'];_0xbd70=function(){return _0x5ef3fa;};return _0xbd70();}import{AIRequestError as _0x5d23f3}from'../adapters/aiadapter.js';import{Matcher as _0x5af578,UpcastWriter as _0x501349}from'ckeditor5/src/engine.js';const X=new RegExp(/^(.*?)<[a-zA-Z][a-zA-Z0-9_\-.]*[ >]/,'is');function _0x5daa(_0x3c47f9,_0x51ef53){const _0xbd70e0=_0xbd70();return _0x5daa=function(_0x5daa28,_0x2694de){_0x5daa28=_0x5daa28-0x1b7;let _0x42e0cc=_0xbd70e0[_0x5daa28];return _0x42e0cc;},_0x5daa(_0x3c47f9,_0x51ef53);}export default class k extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x4ec939(){constructor(_0x3f8263,_0x3c5862,_0x224622){const _0x2a2efd=_0x5daa;super(),this[_0x2a2efd(0x1d2)]=_0x3f8263,this[_0x2a2efd(0x1c1)]=_0x3c5862,this[_0x2a2efd(0x1d7)]=document[_0x2a2efd(0x1cf)](_0x2a2efd(0x204)),this[_0x2a2efd(0x205)]=new DOMParser(),this[_0x2a2efd(0x1b8)]=new XMLSerializer(),this[_0x2a2efd(0x207)]=_0x224622,this[_0x2a2efd(0x1ef)]({'initialContext':'','currentContext':'','currentResponse':'','previousContext':void 0x0,'previousQuery':void 0x0,'previousLabel':void 0x0,'isProcessing':!0x1}),this['on'](_0x2a2efd(0x1fc),(_0x165fc5,_0x41a2bd,_0x53bcfc)=>{const _0x5aadc2=_0x2a2efd;this[_0x5aadc2(0x207)][_0x5aadc2(0x213)]=this[_0x5aadc2(0x1e4)](_0x53bcfc);}),this[_0x2a2efd(0x20f)](this[_0x2a2efd(0x207)],_0x2a2efd(0x1e9),(_0x3088cf,_0x5b64ff)=>{const _0x5cb4cb=_0x2a2efd,_0x4beeab=this[_0x5cb4cb(0x202)]||this[_0x5cb4cb(0x1c8)];this[_0x5cb4cb(0x206)](_0x5b64ff,_0x4beeab,_0x5cb4cb(0x1f6));}),this[_0x2a2efd(0x20f)](this[_0x2a2efd(0x207)],_0x2a2efd(0x1f7),()=>{const _0x5919c2=_0x2a2efd;this[_0x5919c2(0x207)][_0x5919c2(0x209)]=this[_0x5919c2(0x1fe)],this[_0x5919c2(0x206)](this[_0x5919c2(0x1ba)],this[_0x5919c2(0x1bf)],this[_0x5919c2(0x1e3)],this[_0x5919c2(0x1fe)]);}),this[_0x2a2efd(0x20f)](this[_0x2a2efd(0x207)],_0x2a2efd(0x1bc),()=>{const _0x573faf=_0x2a2efd;this[_0x573faf(0x1bc)]();});}[_0x2a480a(0x1ce)](){const _0x4c6808=_0x2a480a;this[_0x4c6808(0x1c4)]();}async[_0x2a480a(0x1ec)]({actionId:_0x2afbb7,query:_0x422f24,htmlContent:_0xec0694,label:_0x2bf9d2,mainActionLabel:_0x3d2828}){const _0x56c21d=_0x2a480a;this[_0x56c21d(0x207)][_0x56c21d(0x209)]=_0x2bf9d2,this[_0x56c21d(0x207)][_0x56c21d(0x20d)]=_0x3d2828,this[_0x56c21d(0x1c8)]=_0xec0694,_0x422f24&&(this[_0x56c21d(0x207)][_0x56c21d(0x1b9)]?this[_0x56c21d(0x206)](_0x422f24,_0xec0694,_0x2afbb7,_0x2bf9d2):this[_0x56c21d(0x207)][_0x56c21d(0x1bb)](_0x56c21d(0x1e0),()=>{const _0xc61fa9=_0x56c21d;this[_0xc61fa9(0x206)](_0x422f24,_0xec0694,_0x2afbb7,_0x2bf9d2);}));}[_0x2a480a(0x1bc)](){const _0x1c58a9=_0x2a480a;this[_0x1c58a9(0x211)]&&(this[_0x1c58a9(0x211)]=!0x1,this[_0x1c58a9(0x207)][_0x1c58a9(0x1f5)](),this[_0x1c58a9(0x1c1)][_0x1c58a9(0x1f9)]());}[_0x2a480a(0x1f3)](){const _0x1b37e0=_0x2a480a;this[_0x1b37e0(0x1c8)]='',this[_0x1b37e0(0x202)]='',this[_0x1b37e0(0x1f1)]='',this[_0x1b37e0(0x1bf)]='',this[_0x1b37e0(0x1ba)]='',this[_0x1b37e0(0x1fe)]='',this[_0x1b37e0(0x1e3)]=void 0x0,this[_0x1b37e0(0x207)][_0x1b37e0(0x1f3)](),this[_0x1b37e0(0x1bc)]();}async[_0x2a480a(0x206)](_0x5a8236,_0x5636a9,_0x5b1f26,_0x18c9d2){const _0x4ca62c=_0x2a480a;return this[_0x4ca62c(0x211)]=!0x0,this[_0x4ca62c(0x207)][_0x4ca62c(0x1f0)](),this[_0x4ca62c(0x1bf)]=_0x5636a9,this[_0x4ca62c(0x1ba)]=_0x5a8236,this[_0x4ca62c(0x1fe)]=_0x18c9d2||_0x5a8236,this[_0x4ca62c(0x1e3)]=_0x5b1f26,new Promise(_0x2960ed=>{const _0x1863bf=_0x4ca62c;this[_0x1863bf(0x1c1)][_0x1863bf(0x1d9)]({'query':_0x5a8236,'context':_0x5636a9,'onData':_0x13b867=>{const _0x10340b=_0x1863bf;this[_0x10340b(0x1f1)]=_0x13b867,this[_0x10340b(0x202)]=this[_0x10340b(0x1f4)](this[_0x10340b(0x1f1)]);},'actionId':_0x5b1f26})[_0x1863bf(0x1cd)](()=>{const _0x4371b4=_0x1863bf;!this[_0x4371b4(0x202)]&&this[_0x4371b4(0x1f1)]&&(this[_0x4371b4(0x202)]=this[_0x4371b4(0x1f4)](this[_0x4371b4(0x1f1)],!0x0));})[_0x1863bf(0x1c2)](_0x527816=>{const _0x2e3448=_0x1863bf;_0x527816 instanceof _0x5d23f3?this[_0x2e3448(0x207)][_0x2e3448(0x1c0)](_0x527816[_0x2e3448(0x1da)]):this[_0x2e3448(0x207)][_0x2e3448(0x1c0)](),_0x2960ed();})[_0x1863bf(0x1e1)](()=>{const _0x72e8fd=_0x1863bf;this[_0x72e8fd(0x1bc)](),_0x2960ed();});});}[_0x2a480a(0x1f4)](_0x2a32d0,_0x15ec9a=!0x1){const _0x553bae=_0x2a480a,_0x321c75=X[_0x553bae(0x1dd)](_0x2a32d0);_0x2a32d0=_0x321c75?_0x2a32d0[_0x553bae(0x1d0)](_0x321c75[0x1][_0x553bae(0x1cb)]):_0x2a32d0[_0x553bae(0x1cb)]<0x64&&!_0x15ec9a?'':this[_0x553bae(0x1eb)](_0x2a32d0);const _0xa54cab=this[_0x553bae(0x205)][_0x553bae(0x1d5)](_0x2a32d0,_0x553bae(0x1d6));if(_0x321c75){const _0x2f6d50=Array[_0x553bae(0x210)](_0xa54cab[_0x553bae(0x1ff)][_0x553bae(0x1ed)]);_0x2f6d50[_0x553bae(0x1de)]();for(const _0x4e819a of _0x2f6d50){if(_0x4e819a[_0x553bae(0x1ee)]==Node[_0x553bae(0x1be)])break;_0x4e819a[_0x553bae(0x1ca)]();}}const _0x52a373=this[_0x553bae(0x1d2)][_0x553bae(0x1ea)][_0x553bae(0x1d8)][_0x553bae(0x1db)](this[_0x553bae(0x1b8)][_0x553bae(0x1b7)](_0xa54cab[_0x553bae(0x1ff)]));return this[_0x553bae(0x201)]()||this[_0x553bae(0x1e5)](_0x52a373),this[_0x553bae(0x1d2)][_0x553bae(0x1ea)][_0x553bae(0x1c6)](this[_0x553bae(0x1d2)][_0x553bae(0x1ea)][_0x553bae(0x20e)](_0x52a373));}[_0x2a480a(0x1e5)](_0xf6a307){const _0x5c5aa8=_0x2a480a,_0x5643ce=new _0x501349(this[_0x5c5aa8(0x1d2)][_0x5c5aa8(0x1e6)][_0x5c5aa8(0x207)][_0x5c5aa8(0x208)]),_0x4931b5=new _0x5af578({'name':/^h[1-5]$/}),_0x5cf1a5=[];let _0x123b11=!0x1;for(const _0x28591b of _0xf6a307)_0x28591b['is'](_0x5c5aa8(0x1d3))&&_0x4931b5[_0x5c5aa8(0x1f8)](_0x28591b)&&(_0x5cf1a5[_0x5c5aa8(0x200)](_0x28591b),'h1'==_0x28591b[_0x5c5aa8(0x1c3)]&&(_0x123b11=!0x0));if(_0x123b11){for(const _0xb08843 of _0x5cf1a5)_0x5643ce[_0x5c5aa8(0x1bd)]('h'+(parseInt(_0xb08843[_0x5c5aa8(0x1c3)][0x1])+0x1),_0xb08843);}}[_0x2a480a(0x201)](){const _0x419811=_0x2a480a,{data:_0x5bcedf,editing:_0x3bde98}=this[_0x419811(0x1d2)],_0x530607=_0x5bcedf[_0x419811(0x20c)][_0x419811(0x1db)](_0x419811(0x1c9)),_0x38d22a=_0x5bcedf[_0x419811(0x1db)](_0x5bcedf[_0x419811(0x20e)](_0x530607));return!!_0x3bde98[_0x419811(0x207)][_0x419811(0x20b)][_0x419811(0x1fd)](_0x38d22a)[_0x419811(0x1df)]('h1');}[_0x2a480a(0x1e4)](_0x3823df){const _0x41ba5b=_0x2a480a;return this[_0x41ba5b(0x1d2)][_0x41ba5b(0x1e6)][_0x41ba5b(0x207)][_0x41ba5b(0x20b)][_0x41ba5b(0x1e2)](this[_0x41ba5b(0x1d7)],_0x3823df),this[_0x41ba5b(0x1d7)][_0x41ba5b(0x1cc)];}[_0x2a480a(0x1eb)](_0x4c56ce){const _0x24cfa5=_0x2a480a,_0x4f98ef=_0x4c56ce[_0x24cfa5(0x1dc)]();return _0x4f98ef[_0x24cfa5(0x20a)](_0x24cfa5(0x1d1))?_0x4f98ef[_0x24cfa5(0x1f2)](_0x24cfa5(0x1fb))?_0x4f98ef[_0x24cfa5(0x1d0)](0x7,_0x4f98ef[_0x24cfa5(0x1cb)]-0x3):_0x4f98ef[_0x24cfa5(0x1d0)](0x7):_0x4c56ce;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x1f67(){const _0x13bef5=['labelView','3149336wYeuVi','items','listbox','commandDefinition','7232032BGEfok','change:enabledCommandsIds','2150267ZOFXtw','get','set','632568UnTHuz','7929985bPsSDs','role','children','includes','isVisible','match','10842612XPtVXA','first','9zWWsXR','label','1008302FXSXkI','99YXFVGL','filter','highlightText','enabledCommandsIds','length','isEnabled'];_0x1f67=function(){return _0x13bef5;};return _0x1f67();}const _0x11f4bd=_0x392b;function _0x392b(_0x5bb4b2,_0x184d69){const _0x1f67d5=_0x1f67();return _0x392b=function(_0x392beb,_0x455240){_0x392beb=_0x392beb-0x15a;let _0xb233d9=_0x1f67d5[_0x392beb];return _0xb233d9;},_0x392b(_0x5bb4b2,_0x184d69);}(function(_0x291976,_0x188b8d){const _0x13b8ad=_0x392b,_0x221ae5=_0x291976();while(!![]){try{const _0xc2e9f1=parseInt(_0x13b8ad(0x16e))/0x1+parseInt(_0x13b8ad(0x15d))/0x2*(parseInt(_0x13b8ad(0x15b))/0x3)+-parseInt(_0x13b8ad(0x169))/0x4+-parseInt(_0x13b8ad(0x16f))/0x5+-parseInt(_0x13b8ad(0x175))/0x6+-parseInt(_0x13b8ad(0x16b))/0x7+-parseInt(_0x13b8ad(0x165))/0x8*(-parseInt(_0x13b8ad(0x15e))/0x9);if(_0xc2e9f1===_0x188b8d)break;else _0x221ae5['push'](_0x221ae5['shift']());}catch(_0x4b687b){_0x221ae5['push'](_0x221ae5['shift']());}}}(_0x1f67,0xec19e));import{ListView as _0x2e2c26,ListItemGroupView as _0x52ca8a}from'ckeditor5/src/ui.js';import{AICommandsListItemView as _0xd21ebd}from'../../aiassistantui.js';export default class U extends _0x2e2c26{constructor(_0x420f0c){const _0x40759b=_0x392b;super(_0x420f0c),this[_0x40759b(0x170)]=_0x40759b(0x167),this[_0x40759b(0x16d)](_0x40759b(0x161),[]),this['on'](_0x40759b(0x16a),()=>{const _0x3f9bd8=_0x40759b;for(const _0xacaf5e of this[_0x3f9bd8(0x166)])if(_0xacaf5e instanceof _0x52ca8a){for(const _0x46167e of _0xacaf5e[_0x3f9bd8(0x166)])if(_0x46167e instanceof _0xd21ebd){const _0x4ed846=_0x46167e[_0x3f9bd8(0x171)][_0x3f9bd8(0x16c)](0x0);this[_0x3f9bd8(0x161)][_0x3f9bd8(0x172)](_0x46167e[_0x3f9bd8(0x168)]['id'])?_0x4ed846[_0x3f9bd8(0x163)]=!0x0:_0x4ed846[_0x3f9bd8(0x163)]=!0x1;}}});}[_0x11f4bd(0x15f)](_0x31d46c){const _0x166317=_0x11f4bd;let _0xba99e7=0x0,_0x1157cb=0x0;for(const _0x5ee13b of this[_0x166317(0x166)]){const _0x56fdd3=_0x5ee13b,_0x4f50f6=_0x56fdd3[_0x166317(0x166)],_0x70e292=_0x31d46c&&!!_0x56fdd3[_0x166317(0x15c)][_0x166317(0x174)](_0x31d46c);_0x56fdd3[_0x166317(0x164)][_0x166317(0x160)](_0x70e292?_0x31d46c:null);for(const _0x205c7c of _0x4f50f6){const _0x1270ab=_0x205c7c[_0x166317(0x171)][_0x166317(0x15a)],_0x43e9f8=_0x1270ab[_0x166317(0x164)];if(_0x31d46c){const _0x49830a=!!_0x1270ab[_0x166317(0x15c)][_0x166317(0x174)](_0x31d46c);_0x43e9f8[_0x166317(0x160)](_0x49830a?_0x31d46c:null),_0x205c7c[_0x166317(0x173)]=_0x70e292||_0x49830a;}else _0x205c7c[_0x166317(0x173)]=!0x0,_0x43e9f8[_0x166317(0x160)](null);}const _0x4f9c18=_0x4f50f6[_0x166317(0x15f)](_0x23bda4=>_0x23bda4[_0x166317(0x173)])[_0x166317(0x162)];_0xba99e7+=_0x56fdd3[_0x166317(0x166)][_0x166317(0x162)],_0x1157cb+=_0x70e292?_0x56fdd3[_0x166317(0x166)][_0x166317(0x162)]:_0x4f9c18,_0x56fdd3[_0x166317(0x173)]=_0x70e292||!!_0x4f9c18;}return{'resultsCount':_0x1157cb,'totalItemsCount':_0xba99e7};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x3934(){const _0x538ead=['ck-button__label','style','7980XRcWrm','984SnsjHP','108ZSvifF','bindTemplate','458572IcOmQg','2648118RyOmpH','976627tmfUPg','set','5202018aHKyRa','10bgqHpE','853835jZeVJb','extendTemplate','2oCvHwd','30CcgjJH','2812968gJtSHu'];_0x3934=function(){return _0x538ead;};return _0x3934();}function _0x1d2e(_0xd04496,_0x56aa21){const _0x393409=_0x3934();return _0x1d2e=function(_0x1d2ed2,_0x2b9b0a){_0x1d2ed2=_0x1d2ed2-0x1ea;let _0x14c852=_0x393409[_0x1d2ed2];return _0x14c852;},_0x1d2e(_0xd04496,_0x56aa21);}(function(_0x505707,_0x31b5d6){const _0x5c9c04=_0x1d2e,_0x1dc067=_0x505707();while(!![]){try{const _0xdf3af2=-parseInt(_0x5c9c04(0x1ee))/0x1*(-parseInt(_0x5c9c04(0x1f4))/0x2)+-parseInt(_0x5c9c04(0x1f5))/0x3*(parseInt(_0x5c9c04(0x1ec))/0x4)+-parseInt(_0x5c9c04(0x1f2))/0x5+-parseInt(_0x5c9c04(0x1f6))/0x6+-parseInt(_0x5c9c04(0x1f9))/0x7*(parseInt(_0x5c9c04(0x1fa))/0x8)+parseInt(_0x5c9c04(0x1f0))/0x9*(-parseInt(_0x5c9c04(0x1f1))/0xa)+parseInt(_0x5c9c04(0x1ed))/0xb*(parseInt(_0x5c9c04(0x1ea))/0xc);if(_0xdf3af2===_0x31b5d6)break;else _0x1dc067['push'](_0x1dc067['shift']());}catch(_0xb13a6d){_0x1dc067['push'](_0x1dc067['shift']());}}}(_0x3934,0x9c02e));import{HighlightedTextView as _0x3d36ad}from'ckeditor5/src/ui.js';export default class N extends _0x3d36ad{constructor(){const _0x13a11b=_0x1d2e;super(),this[_0x13a11b(0x1ef)]({'style':void 0x0,'text':void 0x0,'id':void 0x0});const _0x3c21d6=this[_0x13a11b(0x1eb)];this[_0x13a11b(0x1f3)]({'attributes':{'class':[_0x13a11b(0x1f7)],'style':_0x3c21d6['to'](_0x13a11b(0x1f8)),'id':_0x3c21d6['to']('id')}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x25f4(_0x3574e2,_0x16868b){const _0x582094=_0x5820();return _0x25f4=function(_0x25f41a,_0x1bc84f){_0x25f41a=_0x25f41a-0xae;let _0x135d80=_0x582094[_0x25f41a];return _0x135d80;},_0x25f4(_0x3574e2,_0x16868b);}(function(_0x5cdd46,_0x474b13){const _0xf0adf6=_0x25f4,_0x280001=_0x5cdd46();while(!![]){try{const _0x269589=parseInt(_0xf0adf6(0xbd))/0x1*(-parseInt(_0xf0adf6(0xaf))/0x2)+parseInt(_0xf0adf6(0xb9))/0x3*(-parseInt(_0xf0adf6(0xba))/0x4)+-parseInt(_0xf0adf6(0xbc))/0x5*(parseInt(_0xf0adf6(0xb6))/0x6)+parseInt(_0xf0adf6(0xb0))/0x7+-parseInt(_0xf0adf6(0xb4))/0x8+-parseInt(_0xf0adf6(0xb8))/0x9+parseInt(_0xf0adf6(0xae))/0xa;if(_0x269589===_0x474b13)break;else _0x280001['push'](_0x280001['shift']());}catch(_0x13f62c){_0x280001['push'](_0x280001['shift']());}}}(_0x5820,0x3808d));import{HighlightedTextView as _0x476a7a}from'ckeditor5/src/ui.js';import{uid as _0x228196}from'ckeditor5/src/utils.js';export default class S extends _0x476a7a{constructor(){const _0x2d6827=_0x25f4;super(),this[_0x2d6827(0xb3)](_0x2d6827(0xbb),void 0x0);const _0x1ac475=this[_0x2d6827(0xb5)];this['id']=_0x2d6827(0xb1)+_0x228196(),this[_0x2d6827(0xb2)]({'attributes':{'class':['ck',_0x2d6827(0xb7)],'id':this['id'],'for':_0x1ac475['to'](_0x2d6827(0xbb))}});}}function _0x5820(){const _0x34dbe4=['ck-editor__label_','extendTemplate','set','1399808OktdHG','bindTemplate','24nSOyse','ck-label','1297143aWCiEf','916815JsBBLp','4IZBTRT','for','518215lJGfUo','71wpFeFR','11648030siwXAe','8578UXuVwv','2859591DuNNZm'];_0x5820=function(){return _0x34dbe4;};return _0x5820();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4a1c6d=_0x2c7e;(function(_0x23d249,_0x1d3d4a){const _0x2ca5de=_0x2c7e,_0x35c988=_0x23d249();while(!![]){try{const _0x33d9d9=parseInt(_0x2ca5de(0x10b))/0x1+-parseInt(_0x2ca5de(0xf5))/0x2+parseInt(_0x2ca5de(0x114))/0x3+parseInt(_0x2ca5de(0xef))/0x4+parseInt(_0x2ca5de(0xdd))/0x5+parseInt(_0x2ca5de(0xff))/0x6+-parseInt(_0x2ca5de(0x122))/0x7;if(_0x33d9d9===_0x1d3d4a)break;else _0x35c988['push'](_0x35c988['shift']());}catch(_0x2809c0){_0x35c988['push'](_0x35c988['shift']());}}}(_0x9fa1,0x58339));import{global as _0xfe9215}from'ckeditor5/src/utils.js';function _0x9fa1(){const _0x216bca=['_copyHTMLToClipboard','ck-reset_all-excluded','lastElementChild','493304EhxWLI','isProcessing','ck-ai-form__loader','clipboard','Copy','ck-ai-form__content-area--processing','setContent','scrollHeight','setTemplate','ck-ai-form__content-area-wrapper','3421800kubrtE','execute','appendChild','scrollTo','change:value','appendLoader','div','absolute','ck-ai-form__copy-button','_createLoader','contentFieldView','removeAllRanges','490204zvTwMn','text/html','loaderView','addRange','ck-hidden','write','copy','\x20ck-ai-form__copy-button--copied','innerHTML','223644TyLeLW','querySelector','set','ck-ai-form__copy-button-wrapper','ck-ai-form__content-field','createElement','firstElementChild','getSelection','<span>[</span>','left','remove','bind','-9999px','ClipboardItem','9412431fqxRqT','.ck-ai-form__loader','mousedown','textContent','text/plain','icon','copyButtonView','isEnabled','wheel','_createCopyButton','style','value','execCommand','change:isProcessing','1091685DxcHZU','smooth','position','isVisible','focus','ck-ai-form__content-area','bindTemplate','render','listenTo','locale','ck-content','check','setStartAfter','AI\x20is\x20writing...','setEndBefore','createRange','body','<span>]</span>','2396676tfswfO','element','class'];_0x9fa1=function(){return _0x216bca;};return _0x9fa1();}function _0x2c7e(_0xf77744,_0x4860a0){const _0x9fa1c9=_0x9fa1();return _0x2c7e=function(_0x2c7e1b,_0x78897b){_0x2c7e1b=_0x2c7e1b-0xd3;let _0x115b69=_0x9fa1c9[_0x2c7e1b];return _0x115b69;},_0x2c7e(_0xf77744,_0x4860a0);}import{View as _0x514ca9,ButtonView as _0xf39184,SpinnerView as _0x528426}from'ckeditor5/src/ui.js';import _0x408c5c from'../../../theme/icons/copy.svg';import{getTranslation as _0x100b6c}from'../../utils/common-translations.js';import{icons as _0x211ef6}from'ckeditor5/src/core.js';export default class nt extends _0x514ca9{constructor(_0x464630,_0xfa3b1c=''){const _0x1b8fd4=_0x2c7e;super(_0x464630),this[_0x1b8fd4(0x116)]({'value':null,'isVisible':!0x1,'isProcessing':!0x1});const _0x19859d=this[_0x1b8fd4(0xe3)];this[_0x1b8fd4(0x109)]=new ContentFieldView(_0x464630,_0xfa3b1c),this[_0x1b8fd4(0xd5)]=this[_0x1b8fd4(0xd8)](),this[_0x1b8fd4(0xfd)]({'tag':_0x1b8fd4(0x105),'attributes':{'class':['ck',_0x1b8fd4(0xfe),_0x19859d['if'](_0x1b8fd4(0xe0),_0x1b8fd4(0x10f),_0x2a69ac=>!_0x2a69ac)],'tabindex':'-1'},'children':[{'tag':_0x1b8fd4(0x105),'attributes':{'class':['ck',_0x1b8fd4(0xe2),_0x19859d['if'](_0x1b8fd4(0xf6),_0x1b8fd4(0xfa))]},'children':[this[_0x1b8fd4(0x109)],{'tag':_0x1b8fd4(0x105),'attributes':{'class':['ck',_0x1b8fd4(0x117)]},'children':[this[_0x1b8fd4(0xd5)]]}]}]});}[_0x4a1c6d(0xe4)](){const _0x4e112f=_0x4a1c6d;super[_0x4e112f(0xe4)](),this[_0x4e112f(0xda)]&&this[_0x4e112f(0x109)][_0x4e112f(0xfb)](this[_0x4e112f(0xda)]);let _0x1144ac=!0x1;this['on'](_0x4e112f(0x103),(_0x4792ee,_0x16c4b5,_0x4ff6c7)=>{const _0x4e2902=_0x4e112f,_0x1167bb=!this[_0x4e2902(0x109)][_0x4e2902(0xf0)][_0x4e2902(0x115)](_0x4e2902(0x123));this[_0x4e2902(0x109)][_0x4e2902(0xfb)](_0x4ff6c7),this[_0x4e2902(0xf6)]&&_0x1167bb&&!_0x1144ac&&this[_0x4e2902(0xf0)][_0x4e2902(0x102)]({'top':this[_0x4e2902(0xf0)][_0x4e2902(0xfc)],'behavior':_0x4e2902(0xde)});}),this['on'](_0x4e112f(0xdc),(_0x541911,_0x2178fb,_0x7ea633)=>{const _0x39f994=_0x4e112f;_0x1144ac=!0x1,_0x7ea633?(this[_0x39f994(0xda)]=null,this[_0x39f994(0x109)][_0x39f994(0x104)]()):this[_0x39f994(0xda)]||this[_0x39f994(0x109)][_0x39f994(0xfb)]('');}),this[_0x4e112f(0xe5)](this[_0x4e112f(0xf0)],_0x4e112f(0xd7),()=>{_0x1144ac=!0x0;}),this[_0x4e112f(0xe5)](this[_0x4e112f(0xf0)],_0x4e112f(0x124),()=>{_0x1144ac=!0x0;});}[_0x4a1c6d(0xe1)](){const _0x42dcc6=_0x4a1c6d;this[_0x42dcc6(0xf0)][_0x42dcc6(0xe1)]();}[_0x4a1c6d(0xd8)](){const _0x5a5d61=_0x4a1c6d,_0x59dbd1=this[_0x5a5d61(0xe6)],_0x64e7cd=new _0xf39184(this[_0x5a5d61(0xe6)]),_0xd6f032=_0x5a5d61(0x107);return _0x64e7cd[_0x5a5d61(0x116)]({'label':_0x100b6c(_0x59dbd1,_0x5a5d61(0xf9)),'icon':_0x408c5c,'class':_0xd6f032,'tooltip':!0x0}),_0x64e7cd[_0x5a5d61(0x11f)](_0x5a5d61(0xe0))['to'](this,_0x5a5d61(0xda),_0x41c586=>!!_0x41c586),_0x64e7cd[_0x5a5d61(0x11f)](_0x5a5d61(0xd6))['to'](this,_0x5a5d61(0xf6),_0x478e0d=>!_0x478e0d),_0x64e7cd['on'](_0x5a5d61(0x100),()=>{const _0x1b30eb=_0x5a5d61;this[_0x1b30eb(0xf2)](this[_0x1b30eb(0x109)][_0x1b30eb(0xf0)]),_0x64e7cd[_0x1b30eb(0xd4)]=_0x211ef6[_0x1b30eb(0xe8)],_0x64e7cd[_0x1b30eb(0xf1)]=_0xd6f032+_0x1b30eb(0x112),this[_0x1b30eb(0xe1)](),setTimeout(()=>{const _0x2b9ebf=_0x1b30eb;_0x64e7cd[_0x2b9ebf(0xd4)]=_0x408c5c,_0x64e7cd[_0x2b9ebf(0xf1)]=_0xd6f032;},0x3e8);}),_0x64e7cd;}[_0x4a1c6d(0xf2)](_0x23502a){const _0x1a04ad=_0x4a1c6d,{window:_0x194dc3,document:_0x184c77}=_0xfe9215;if(_0x194dc3[_0x1a04ad(0x121)]){const {Blob:_0x30f57e,ClipboardItem:_0x2c6ea5}=_0x194dc3,_0x5d8547=[new _0x2c6ea5({'text/html':new _0x30f57e([_0x23502a[_0x1a04ad(0x113)]],{'type':_0x1a04ad(0x10c)}),'text/plain':new _0x30f57e([_0x23502a[_0x1a04ad(0x125)]||''],{'type':_0x1a04ad(0xd3)})})];navigator[_0x1a04ad(0xf8)][_0x1a04ad(0x110)](_0x5d8547);}else{const _0x2fd51e=_0x184c77[_0x1a04ad(0x119)](_0x1a04ad(0x105));_0x2fd51e[_0x1a04ad(0xd9)][_0x1a04ad(0xdf)]=_0x1a04ad(0x106),_0x2fd51e[_0x1a04ad(0xd9)][_0x1a04ad(0x11d)]=_0x1a04ad(0x120),_0x2fd51e[_0x1a04ad(0x113)]=_0x1a04ad(0x11c)+_0x23502a[_0x1a04ad(0x113)]+_0x1a04ad(0xee),_0x184c77[_0x1a04ad(0xed)][_0x1a04ad(0x101)](_0x2fd51e);const _0x5c89f7=_0x184c77[_0x1a04ad(0xec)]();_0x5c89f7[_0x1a04ad(0xe9)](_0x2fd51e[_0x1a04ad(0x11a)]),_0x5c89f7[_0x1a04ad(0xeb)](_0x2fd51e[_0x1a04ad(0xf4)]);const _0x985b66=_0x194dc3[_0x1a04ad(0x11b)]();_0x985b66[_0x1a04ad(0x10a)](),_0x985b66[_0x1a04ad(0x10e)](_0x5c89f7),_0x184c77[_0x1a04ad(0xdb)](_0x1a04ad(0x111)),_0x2fd51e[_0x1a04ad(0x11e)]();}}}export class ContentFieldView extends _0x514ca9{constructor(_0x165a9f,_0x2dd6b5=''){const _0x2ab079=_0x4a1c6d;super(_0x165a9f),this[_0x2ab079(0x10d)]=this[_0x2ab079(0x108)](),this[_0x2ab079(0xfd)]({'tag':_0x2ab079(0x105),'attributes':{'class':['ck',_0x2ab079(0xe7),_0x2dd6b5,_0x2ab079(0xf3),_0x2ab079(0x118)]}});}[_0x4a1c6d(0xfb)](_0x1f02f6){const _0x2175bc=_0x4a1c6d;this[_0x2175bc(0xf0)][_0x2175bc(0x113)]=_0x1f02f6;}[_0x4a1c6d(0x104)](){const _0x50d1bc=_0x4a1c6d;this[_0x50d1bc(0xf0)][_0x50d1bc(0x101)](this[_0x50d1bc(0x10d)][_0x50d1bc(0xf0)]);}[_0x4a1c6d(0x108)](){const _0x1ed0cd=_0x4a1c6d,_0x37cf83=new _0x514ca9(),_0x38b043=this[_0x1ed0cd(0xe6)],_0x554a8b=new _0x528426();return _0x554a8b[_0x1ed0cd(0xe0)]=!0x0,_0x37cf83[_0x1ed0cd(0xfd)]({'tag':_0x1ed0cd(0x105),'attributes':{'class':['ck',_0x1ed0cd(0xf7)]},'children':[_0x554a8b,{'text':_0x100b6c(_0x38b043,_0x1ed0cd(0xea))}]}),_0x37cf83[_0x1ed0cd(0xe4)](),_0x37cf83;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0xe7c924,_0x34a395){const _0x18209d=_0x18a6,_0x2b8ec6=_0xe7c924();while(!![]){try{const _0x5ae267=-parseInt(_0x18209d(0x154))/0x1*(-parseInt(_0x18209d(0x146))/0x2)+parseInt(_0x18209d(0x14f))/0x3+-parseInt(_0x18209d(0x152))/0x4*(-parseInt(_0x18209d(0x155))/0x5)+-parseInt(_0x18209d(0x147))/0x6+-parseInt(_0x18209d(0x148))/0x7*(-parseInt(_0x18209d(0x14b))/0x8)+parseInt(_0x18209d(0x14a))/0x9+parseInt(_0x18209d(0x153))/0xa*(-parseInt(_0x18209d(0x149))/0xb);if(_0x5ae267===_0x34a395)break;else _0x2b8ec6['push'](_0x2b8ec6['shift']());}catch(_0x16b416){_0x2b8ec6['push'](_0x2b8ec6['shift']());}}}(_0x2f99,0x29b02));function _0x18a6(_0x14d0ec,_0x500b5f){const _0x2f9966=_0x2f99();return _0x18a6=function(_0x18a62b,_0xcdc3b3){_0x18a62b=_0x18a62b-0x144;let _0x3dad04=_0x2f9966[_0x18a62b];return _0x3dad04;},_0x18a6(_0x14d0ec,_0x500b5f);}function _0x2f99(){const _0x194794=['1279962hyFoOS','7sFOlTX','11ViVbqR','1337238tmdcRc','2509576SeKDFT','setTemplate','bindTemplate','set','855966UDaEbC','content','ck-ai-form__error','163964moMNjV','6941020sLxZTC','1ybcsYV','25CHtBOX','div','text','251254qxQDkq'];_0x2f99=function(){return _0x194794;};return _0x2f99();}import{View as _0x22d788,IconView as _0x1b8528}from'ckeditor5/src/ui.js';import _0x3e42a9 from'../../../theme/icons/error.svg';export default class mt extends _0x22d788{constructor(_0x503056,_0x457eab=''){const _0x3141e5=_0x18a6;super(_0x503056);const _0x48e064=new _0x1b8528(),_0x2d99c8=this[_0x3141e5(0x14d)];this[_0x3141e5(0x14e)](_0x3141e5(0x145),_0x457eab),_0x48e064[_0x3141e5(0x150)]=_0x3e42a9,this[_0x3141e5(0x14c)]({'tag':_0x3141e5(0x144),'attributes':{'class':['ck',_0x3141e5(0x151)]},'children':[_0x48e064,{'text':_0x2d99c8['to'](_0x3141e5(0x145))}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x343d(_0x6c1149,_0x17eb97){const _0x507965=_0x5079();return _0x343d=function(_0x343d52,_0x23c6a2){_0x343d52=_0x343d52-0xa4;let _0x184b16=_0x507965[_0x343d52];return _0x184b16;},_0x343d(_0x6c1149,_0x17eb97);}const _0x56dca7=_0x343d;(function(_0xd5a140,_0x238a6f){const _0x39c47e=_0x343d,_0x1ca6c6=_0xd5a140();while(!![]){try{const _0x2714a0=-parseInt(_0x39c47e(0xc7))/0x1+parseInt(_0x39c47e(0xc0))/0x2*(parseInt(_0x39c47e(0xb7))/0x3)+-parseInt(_0x39c47e(0xd5))/0x4+parseInt(_0x39c47e(0xa4))/0x5+-parseInt(_0x39c47e(0xd7))/0x6*(parseInt(_0x39c47e(0xda))/0x7)+-parseInt(_0x39c47e(0xc8))/0x8+-parseInt(_0x39c47e(0xb1))/0x9*(-parseInt(_0x39c47e(0xd9))/0xa);if(_0x2714a0===_0x238a6f)break;else _0x1ca6c6['push'](_0x1ca6c6['shift']());}catch(_0x29add9){_0x1ca6c6['push'](_0x1ca6c6['shift']());}}}(_0x5079,0x70ec7));import{Rect as _0x5b0a31,global as _0xf07c9b,isVisible as _0x31883e}from'ckeditor5/src/utils.js';import{AutocompleteView as _0x554e7d,ButtonView as _0x5220b7}from'ckeditor5/src/ui.js';function _0x5079(){const _0x2a4c7e=['focus','submit','349166jLOIgL','ck-ai-form__submit','keystrokes','filteredView','uiLanguageDirection','focusFirst','isEmpty','628622MpBUdU','1183832qXiHdL','width','focusCycler','window','requestAnimationFrame','locale','focusLast','showHistoryButtonView','fire','execute','queryView','rtl','ck-ai-form__toggle-history','1830584BRvRcr','isVisible','15822Jagdfa','maxRows','280vlldlj','770uaaoPF','render','submitButtonView','History','bind','1852575bFqvSo','target','minRows','fieldWrapperChildren','element','_createShowHistoryButton','enter','isEnabled','focusableChildren','Submit','children','resultsView','isOn','351189OJmTBN','set','_createSubmitButton','value','style','update','9dQfmeK','right','history','excludeScrollbarsAndBorders','add','left','fieldView'];_0x5079=function(){return _0x2a4c7e;};return _0x5079();}import{icons as _0x33ebfb}from'ckeditor5/src/core.js';import{getTranslation as _0x364f6f}from'../../utils/common-translations.js';import _0x1ad0b5 from'../../../theme/icons/submit.svg';export default class pt extends _0x554e7d{constructor(_0x86757a,_0x1e7b08){const _0x1b1455=_0x343d;super(_0x86757a,_0x1e7b08),this[_0x1b1455(0xd2)][_0x1b1455(0xbd)][_0x1b1455(0xa6)]=0x1,this[_0x1b1455(0xd2)][_0x1b1455(0xbd)][_0x1b1455(0xd8)]=0x3,this[_0x1b1455(0xdc)]=this[_0x1b1455(0xb3)](),this[_0x1b1455(0xcf)]=this[_0x1b1455(0xa9)](),this[_0x1b1455(0xac)][_0x1b1455(0xbb)](this[_0x1b1455(0xcf)],0x1),this[_0x1b1455(0xac)][_0x1b1455(0xbb)](this[_0x1b1455(0xdc)]);}[_0x56dca7(0xdb)](){const _0x67aaea=_0x56dca7;super[_0x67aaea(0xdb)](),this[_0x67aaea(0xd2)][_0x67aaea(0xa7)][_0x67aaea(0xbb)](this[_0x67aaea(0xcf)]),this[_0x67aaea(0xae)][_0x67aaea(0xbb)](this[_0x67aaea(0xdc)]),this[_0x67aaea(0xc2)][_0x67aaea(0xb2)](_0x67aaea(0xaa),(_0x46eb8e,_0x2cf9b9)=>{const _0xb3005e=_0x67aaea;_0x46eb8e[_0xb3005e(0xa5)]==this[_0xb3005e(0xd2)][_0xb3005e(0xbd)][_0xb3005e(0xa8)]&&(this[_0xb3005e(0xbf)](),_0x2cf9b9());});}[_0x56dca7(0xb3)](){const _0x3f17a5=_0x56dca7,_0x3f563c=new _0x5220b7(this[_0x3f17a5(0xcd)]),_0x208433=this[_0x3f17a5(0xcd)];return _0x3f563c[_0x3f17a5(0xb2)]({'icon':_0x1ad0b5,'label':_0x364f6f(_0x208433,_0x3f17a5(0xad)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x3f17a5(0xc1)}),_0x3f563c['on'](_0x3f17a5(0xd1),()=>{const _0x3e19b6=_0x3f17a5;this[_0x3e19b6(0xbf)]();}),_0x3f563c[_0x3f17a5(0xde)](_0x3f17a5(0xab))['to'](this[_0x3f17a5(0xd2)][_0x3f17a5(0xbd)],_0x3f17a5(0xc6),this,_0x3f17a5(0xab),(_0x1d35e9,_0x53c486)=>!_0x1d35e9&&_0x53c486),_0x3f563c;}[_0x56dca7(0xa9)](){const _0x5254b8=_0x56dca7,_0x271dc7=new _0x5220b7(this[_0x5254b8(0xcd)]),_0x39aa23=this[_0x5254b8(0xaf)],_0xe9b36b=this[_0x5254b8(0xcd)];_0x271dc7[_0x5254b8(0xb2)]({'label':_0x364f6f(_0xe9b36b,_0x5254b8(0xdd)),'withText':!0x1,'icon':_0x33ebfb[_0x5254b8(0xb9)],'tooltip':!0x0,'tooltipPosition':'sw','class':_0x5254b8(0xd4)}),_0x271dc7[_0x5254b8(0xde)](_0x5254b8(0xb0))['to'](_0x39aa23,_0x5254b8(0xd6)),_0x271dc7[_0x5254b8(0xde)](_0x5254b8(0xab))['to'](this,_0x5254b8(0xab)),_0x271dc7['on'](_0x5254b8(0xd1),()=>{const _0x40bc7b=_0x5254b8;_0x39aa23[_0x40bc7b(0xd6)]=!_0x39aa23[_0x40bc7b(0xd6)],_0x39aa23[_0x40bc7b(0xd6)]?this[_0x40bc7b(0xc3)][_0x40bc7b(0xbe)]():this[_0x40bc7b(0xbe)]();});const _0x6ef772=()=>{const _0x326dc4=_0x5254b8;_0xf07c9b[_0x326dc4(0xcb)][_0x326dc4(0xcc)](()=>{const _0x348164=_0x326dc4;if(_0x31883e(this[_0x348164(0xa8)])){const _0x25704c=new _0x5b0a31(this[_0x348164(0xd2)][_0x348164(0xbd)][_0x348164(0xa8)]),_0x52c108=_0x25704c[_0x348164(0xc9)],_0x4bec0f=_0x348164(0xd3)===_0xe9b36b[_0x348164(0xc4)]?_0x348164(0xbc):_0x348164(0xb8);_0x25704c[_0x348164(0xba)](),_0x271dc7[_0x348164(0xa8)][_0x348164(0xb5)][_0x4bec0f]=_0x52c108-_0x25704c[_0x348164(0xc9)]+0x1+'px';}});};return this[_0x5254b8(0xd2)][_0x5254b8(0xbd)]['on'](_0x5254b8(0xb6),_0x6ef772),this['on'](_0x5254b8(0xdb),_0x6ef772),_0x271dc7;}[_0x56dca7(0xbf)](){const _0x3ec345=_0x56dca7,_0x3c6640=this[_0x3ec345(0xd2)][_0x3ec345(0xbd)][_0x3ec345(0xa8)][_0x3ec345(0xb4)];this[_0x3ec345(0xd0)](_0x3ec345(0xbf),_0x3c6640);}[_0x56dca7(0xbe)](_0x36b300){const _0x5358d0=_0x56dca7;-0x1===_0x36b300?this[_0x5358d0(0xca)][_0x5358d0(0xce)]():this[_0x5358d0(0xca)][_0x5358d0(0xc5)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0xba2b(){const _0x52ec66=['AI_','replaceButton','extendTemplate','stopButton','_CONTENT','9006392cRnvIa','items','insertButton','957083TQDIug','2051852inemsT','9bGYKab','_createButton','ck-button-action','REPLACE','16584060jCwNJu','toUpperCase','mainAction','191166ThRrma','locale','228576CcbAUl','Stop','insert','label','ck-hidden','tryAgainButton','77ABCeFA','ck-ai-form__toolbar','set','bindTemplate','9IvJIwO','Try\x20again','addMany','bind','replace','Insert\x20below','3791675YZaejL','isVisible'];_0xba2b=function(){return _0x52ec66;};return _0xba2b();}function _0x1f9a(_0x1e41f6,_0x1772e1){const _0xba2b15=_0xba2b();return _0x1f9a=function(_0x1f9aba,_0xc4de8e){_0x1f9aba=_0x1f9aba-0x136;let _0x2439d8=_0xba2b15[_0x1f9aba];return _0x2439d8;},_0x1f9a(_0x1e41f6,_0x1772e1);}const _0x129270=_0x1f9a;(function(_0x1d8f9f,_0x20ff0e){const _0x5ab398=_0x1f9a,_0x15cf34=_0x1d8f9f();while(!![]){try{const _0x273dd0=-parseInt(_0x5ab398(0x156))/0x1+-parseInt(_0x5ab398(0x157))/0x2+-parseInt(_0x5ab398(0x146))/0x3*(-parseInt(_0x5ab398(0x13c))/0x4)+-parseInt(_0x5ab398(0x14c))/0x5+-parseInt(_0x5ab398(0x13a))/0x6*(-parseInt(_0x5ab398(0x142))/0x7)+parseInt(_0x5ab398(0x153))/0x8*(parseInt(_0x5ab398(0x158))/0x9)+parseInt(_0x5ab398(0x137))/0xa;if(_0x273dd0===_0x20ff0e)break;else _0x15cf34['push'](_0x15cf34['shift']());}catch(_0x4ad1f7){_0x15cf34['push'](_0x15cf34['shift']());}}}(_0xba2b,0x89e1c));import{ToolbarView as _0x437ca1,ButtonView as _0xaf4f63}from'ckeditor5/src/ui.js';import{getTranslation as _0x2a6b34}from'../../utils/common-translations.js';export const AIFormToolbarViewMainActionLabel={'REPLACE':_0x129270(0x14a),'INSERT':_0x129270(0x13e)};export default class Tt extends _0x437ca1{constructor(_0x1a5f60){const _0x309648=_0x129270;super(_0x1a5f60),this[_0x309648(0x144)](_0x309648(0x14d),!0x1),this[_0x309648(0x144)](_0x309648(0x139),AIFormToolbarViewMainActionLabel[_0x309648(0x136)]),this[_0x309648(0x14f)]=this[_0x309648(0x159)]('',_0x309648(0x15a)),this[_0x309648(0x14f)][_0x309648(0x149)](_0x309648(0x13f))['to'](this,_0x309648(0x139),_0x550017=>_0x2a6b34(_0x1a5f60,_0x309648(0x14e)+_0x550017[_0x309648(0x138)]()+_0x309648(0x152))),this[_0x309648(0x155)]=this[_0x309648(0x159)](_0x2a6b34(_0x1a5f60,_0x309648(0x14b))),this[_0x309648(0x141)]=this[_0x309648(0x159)](_0x2a6b34(_0x1a5f60,_0x309648(0x147))),this[_0x309648(0x151)]=this[_0x309648(0x159)](_0x2a6b34(_0x1a5f60,_0x309648(0x13d)));const _0x38777a=this[_0x309648(0x145)];this[_0x309648(0x150)]({'attributes':{'class':[_0x309648(0x143),_0x38777a['if'](_0x309648(0x14d),_0x309648(0x140),_0x56e0bb=>!_0x56e0bb)]}}),this[_0x309648(0x154)][_0x309648(0x148)]([this[_0x309648(0x14f)],this[_0x309648(0x155)],this[_0x309648(0x141)],this[_0x309648(0x151)]]);}[_0x129270(0x159)](_0x517433,_0x455248){const _0x35e46f=_0x129270,_0x5ba3fa=new _0xaf4f63(this[_0x35e46f(0x13b)]);return _0x5ba3fa[_0x35e46f(0x144)]({'label':_0x517433,'class':_0x455248||'','isVisible':!0x0,'withText':!0x0}),_0x5ba3fa;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x287637=_0x3a10;function _0x30c4(){const _0x759c27=['tab','value','search','errorView','6767814QavCrt','tryAgainEvent','focusPrevious','ck-hidden','stop','finishProcessing','stopProcessing','7082EeqWiJ','prompt','setTemplate','text','replaceButton','AI_ERROR_FAILED','Ask\x20AI\x20to\x20improve\x20generated\x20text','replaceContent','delegate','locale','startProcessing','queryView','Empty\x20history','keystrokes','3380997FPRnSl','7MmynwA','ck-ai-form','5654344iiUrfH','124jvucIa','Ask\x20AI\x20to\x20edit\x20or\x20generate','10732056KffBbi','isProcessing','focusNext','focus','9HIirZS','3426210GbgGcK','_createPromptView','focusLast','stopButton','ck-ai-form-content','bindTemplate','handleError','backwardCycle','set','copyButtonView','4lNAORs','submit','createCollection','_createHistoryView','bind','REPLACE','add','high','clear','items','element','insertButton','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','execute','listenTo','17688MUQMuz','contentArea','submitPrompt','isError','tryAgainButton','clearHistory','_promptHistory','shift\x20+\x20tab','_focusables','div','4310kDUuJV','forwardCycle','focusCycler','_createToolbar','fieldView','focusFirst','isVisible','mainAction','trim','focusTracker','insertContentBelow','promptView','isEnabled','historyGroupView','toolbar','bindTo','label','render','reset','fire'];_0x30c4=function(){return _0x759c27;};return _0x30c4();}(function(_0x448ce2,_0x18a5fa){const _0x4a125d=_0x3a10,_0x58409d=_0x448ce2();while(!![]){try{const _0x289bcc=-parseInt(_0x4a125d(0x20f))/0x1*(-parseInt(_0x4a125d(0x221))/0x2)+-parseInt(_0x4a125d(0x21d))/0x3*(parseInt(_0x4a125d(0x232))/0x4)+parseInt(_0x4a125d(0x228))/0x5+-parseInt(_0x4a125d(0x208))/0x6*(-parseInt(_0x4a125d(0x21e))/0x7)+parseInt(_0x4a125d(0x220))/0x8*(-parseInt(_0x4a125d(0x227))/0x9)+parseInt(_0x4a125d(0x1f0))/0xa*(-parseInt(_0x4a125d(0x241))/0xb)+parseInt(_0x4a125d(0x223))/0xc;if(_0x289bcc===_0x18a5fa)break;else _0x58409d['push'](_0x58409d['shift']());}catch(_0x5408d9){_0x58409d['push'](_0x58409d['shift']());}}}(_0x30c4,0x97511));import{FocusTracker as _0x90638c,KeystrokeHandler as _0x35cf3a}from'ckeditor5/src/utils.js';import{View as _0x322360,FocusCycler as _0xc915f5,createLabeledTextarea as _0x1a36b1}from'ckeditor5/src/ui.js';import _0x4dfa06,{AIFormToolbarViewMainActionLabel as _0x10e262}from'./aiformtoolbarview.js';import _0x4ba88c from'./aiformcontentarea.js';function _0x3a10(_0x3bb875,_0x5da389){const _0x30c45f=_0x30c4();return _0x3a10=function(_0x3a1067,_0x1f7195){_0x3a1067=_0x3a1067-0x1e8;let _0x4b69c2=_0x30c45f[_0x3a1067];return _0x4b69c2;},_0x3a10(_0x3bb875,_0x5da389);}import _0x4774e8 from'./aiformerrorview.js';import _0x17e370 from'./aiformpromptview.js';import _0x238a79 from'./aihistorylistview.js';import _0x3352b4 from'./aihistorylistitemview.js';import _0x10f244 from'./prompthistory.js';import{getTranslation as _0x3c7bb9}from'../../utils/common-translations.js';import{escape as _0x2de40d}from'lodash-es';export default class x extends _0x322360{constructor(_0x40b535,_0x47839d,_0x4a1f57=''){const _0x11a72e=_0x3a10;super(_0x40b535),this[_0x11a72e(0x230)](_0x11a72e(0x1fc),!0x0),this[_0x11a72e(0x230)](_0x11a72e(0x224),!0x1),this[_0x11a72e(0x230)](_0x11a72e(0x210),''),this[_0x11a72e(0x230)](_0x11a72e(0x205),''),this[_0x11a72e(0x230)](_0x11a72e(0x1e9),!0x1),this[_0x11a72e(0x230)](_0x11a72e(0x1f7),_0x10e262[_0x11a72e(0x237)]),this[_0x11a72e(0x1ec)]=new _0x10f244(),this[_0x11a72e(0x207)]=new _0x4774e8(_0x40b535),this[_0x11a72e(0x242)]=new _0x4ba88c(_0x40b535,_0x4a1f57),this[_0x11a72e(0x242)][_0x11a72e(0x236)](_0x11a72e(0x224))['to'](this),this[_0x11a72e(0x242)][_0x11a72e(0x236)](_0x11a72e(0x205))['to'](this),this[_0x11a72e(0x1fe)]=this[_0x11a72e(0x1f3)](),this[_0x11a72e(0x1fe)][_0x11a72e(0x236)](_0x11a72e(0x1f7))['to'](this),this[_0x11a72e(0x1fb)]=this[_0x11a72e(0x229)](),this[_0x11a72e(0x1f9)]=new _0x90638c(),this[_0x11a72e(0x21c)]=new _0x35cf3a(),this[_0x11a72e(0x1ee)]=this[_0x11a72e(0x234)]([this[_0x11a72e(0x242)],this[_0x11a72e(0x242)][_0x11a72e(0x231)],this[_0x11a72e(0x1fe)],this[_0x11a72e(0x1fb)]]),this[_0x11a72e(0x1f2)]=new _0xc915f5({'focusables':this[_0x11a72e(0x1ee)],'focusTracker':this[_0x11a72e(0x1f9)],'keystrokeHandler':this[_0x11a72e(0x21c)],'actions':{'focusPrevious':_0x11a72e(0x1ed),'focusNext':_0x11a72e(0x204)}}),this[_0x11a72e(0x1fb)][_0x11a72e(0x1f2)]['on'](_0x11a72e(0x1f1),_0xc5d1ee=>{const _0xe8588d=_0x11a72e;this[_0xe8588d(0x1f2)][_0xe8588d(0x225)](),_0xc5d1ee[_0xe8588d(0x20c)]();}),this[_0x11a72e(0x1fb)][_0x11a72e(0x1f2)]['on'](_0x11a72e(0x22f),_0x1a1608=>{const _0x464ac6=_0x11a72e;this[_0x464ac6(0x1f2)][_0x464ac6(0x20a)](),_0x1a1608[_0x464ac6(0x20c)]();}),this[_0x11a72e(0x1fb)][_0x11a72e(0x21a)][_0x11a72e(0x1f4)][_0x11a72e(0x236)](_0x11a72e(0x205))['to'](this,_0x11a72e(0x210));const _0x1318b9=this[_0x11a72e(0x22d)];this[_0x11a72e(0x211)]({'tag':_0x11a72e(0x1ef),'attributes':{'class':['ck',_0x11a72e(0x21f),_0x47839d],'tabindex':'-1'},'children':[{'tag':_0x11a72e(0x1ef),'attributes':{'class':['ck',_0x11a72e(0x22c)]},'children':[{'tag':_0x11a72e(0x1ef),'attributes':{'class':[_0x1318b9['if'](_0x11a72e(0x1e9),_0x11a72e(0x20b),_0x2780ff=>!_0x2780ff)]},'children':[this[_0x11a72e(0x207)]]},this[_0x11a72e(0x242)],this[_0x11a72e(0x1fe)],this[_0x11a72e(0x1fb)]]}]});}[_0x287637(0x201)](){const _0x5b6552=_0x287637;super[_0x5b6552(0x201)](),this[_0x5b6552(0x1f9)][_0x5b6552(0x238)](this[_0x5b6552(0x242)][_0x5b6552(0x23c)]),this[_0x5b6552(0x1f9)][_0x5b6552(0x238)](this[_0x5b6552(0x242)][_0x5b6552(0x231)][_0x5b6552(0x23c)]),this[_0x5b6552(0x1f9)][_0x5b6552(0x238)](this[_0x5b6552(0x1fe)][_0x5b6552(0x23c)]),this[_0x5b6552(0x1f9)][_0x5b6552(0x238)](this[_0x5b6552(0x1fb)][_0x5b6552(0x23c)]),this[_0x5b6552(0x21c)][_0x5b6552(0x240)](this[_0x5b6552(0x23c)]);}[_0x287637(0x226)](_0x1519c9=0x1){const _0x443eec=_0x287637;-0x1===_0x1519c9?this[_0x443eec(0x1f2)][_0x443eec(0x22a)]():this[_0x443eec(0x1f2)][_0x443eec(0x1f5)]();}[_0x287637(0x202)](){const _0x2b6ea2=_0x287637;this[_0x2b6ea2(0x210)]='',this[_0x2b6ea2(0x205)]='',this[_0x2b6ea2(0x1e9)]=!0x1,this[_0x2b6ea2(0x1fb)][_0x2b6ea2(0x202)](),this[_0x2b6ea2(0x242)][_0x2b6ea2(0x1f6)]=!0x1,this[_0x2b6ea2(0x1fe)][_0x2b6ea2(0x1f6)]=!0x1;}[_0x287637(0x229)](){const _0x23fbd2=_0x287637,_0x3df611=this[_0x23fbd2(0x218)],_0x4d2cff=new _0x17e370(_0x3df611,{'queryView':{'label':_0x3c7bb9(_0x3df611,_0x23fbd2(0x222)),'creator':_0x1a36b1,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x3c7bb9(_0x3df611,_0x23fbd2(0x21b)),'secondary':_0x3c7bb9(_0x3df611,_0x23fbd2(0x23e))}}},'filteredView':this[_0x23fbd2(0x235)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x4d2cff[_0x23fbd2(0x236)](_0x23fbd2(0x1fc))['to'](this,_0x23fbd2(0x1fc),this,_0x23fbd2(0x224),(_0x16a34b,_0x3eacc9)=>_0x16a34b&&!_0x3eacc9),this[_0x23fbd2(0x240)](_0x4d2cff,_0x23fbd2(0x233),(_0x44a9a0,_0x22fb9f)=>{const _0x28ddd8=_0x23fbd2;this[_0x28ddd8(0x210)]=_0x22fb9f;const _0x5867be=_0x2de40d(_0x22fb9f);this[_0x28ddd8(0x203)](_0x28ddd8(0x1e8),_0x5867be),_0x22fb9f[_0x28ddd8(0x1f8)]()&&this[_0x28ddd8(0x1ec)][_0x28ddd8(0x238)]({'prompt':_0x5867be},0x0);},{'priority':_0x23fbd2(0x239)}),_0x4d2cff;}[_0x287637(0x235)](){const _0xcb5cfe=_0x287637,_0x2fdb4a=new _0x238a79(this[_0xcb5cfe(0x218)]);return _0x2fdb4a[_0xcb5cfe(0x1fd)][_0xcb5cfe(0x23b)][_0xcb5cfe(0x1ff)](this[_0xcb5cfe(0x1ec)])['as'](_0x3352b4),_0x2fdb4a['on'](_0xcb5cfe(0x1eb),()=>{const _0x29bee5=_0xcb5cfe;this[_0x29bee5(0x1ec)][_0x29bee5(0x23a)](),this[_0x29bee5(0x1fb)][_0x29bee5(0x206)](''),this[_0x29bee5(0x1fb)][_0x29bee5(0x226)]();}),_0x2fdb4a;}[_0x287637(0x1f3)](){const _0xa85832=_0x287637,_0x87626e=new _0x4dfa06(this[_0xa85832(0x218)]);return _0x87626e[_0xa85832(0x213)][_0xa85832(0x236)](_0xa85832(0x1fc))['to'](this,_0xa85832(0x1fc),this,_0xa85832(0x224),this,_0xa85832(0x205),(_0x599987,_0x348af9,_0x242185)=>_0x599987&&!_0x348af9&&!!_0x242185),_0x87626e[_0xa85832(0x213)][_0xa85832(0x217)](_0xa85832(0x23f))['to'](this,_0xa85832(0x216)),_0x87626e[_0xa85832(0x23d)][_0xa85832(0x236)](_0xa85832(0x1fc))['to'](this,_0xa85832(0x1fc),this,_0xa85832(0x224),this,_0xa85832(0x205),(_0x21fb65,_0x3d197b,_0xd76b4a)=>_0x21fb65&&!_0x3d197b&&!!_0xd76b4a),_0x87626e[_0xa85832(0x23d)][_0xa85832(0x217)](_0xa85832(0x23f))['to'](this,_0xa85832(0x1fa)),_0x87626e[_0xa85832(0x1ea)][_0xa85832(0x236)](_0xa85832(0x1fc))['to'](this,_0xa85832(0x1fc),this,_0xa85832(0x224),(_0x530165,_0x536e11)=>_0x530165&&!_0x536e11),_0x87626e[_0xa85832(0x1ea)][_0xa85832(0x217)](_0xa85832(0x23f))['to'](this,_0xa85832(0x209)),_0x87626e[_0xa85832(0x22b)][_0xa85832(0x236)](_0xa85832(0x1fc))['to'](this,_0xa85832(0x224)),_0x87626e[_0xa85832(0x22b)][_0xa85832(0x217)](_0xa85832(0x23f))['to'](this,_0xa85832(0x20e)),_0x87626e;}[_0x287637(0x219)](){const _0x2ef0d0=_0x287637;this[_0x2ef0d0(0x205)]='',this[_0x2ef0d0(0x1e9)]=!0x1,this[_0x2ef0d0(0x224)]=!0x0,this[_0x2ef0d0(0x242)][_0x2ef0d0(0x1f6)]=!0x0,this[_0x2ef0d0(0x1fe)][_0x2ef0d0(0x1f6)]=!0x0,this[_0x2ef0d0(0x242)][_0x2ef0d0(0x226)]();}[_0x287637(0x20d)](){const _0x40b28a=_0x287637,_0x2c691c=this[_0x40b28a(0x218)];this[_0x40b28a(0x224)]=!0x1,this[_0x40b28a(0x210)]='',this[_0x40b28a(0x1fb)][_0x40b28a(0x202)](),this[_0x40b28a(0x205)]&&(this[_0x40b28a(0x1fb)][_0x40b28a(0x21a)][_0x40b28a(0x200)]=_0x3c7bb9(_0x2c691c,_0x40b28a(0x215)));}[_0x287637(0x22e)](_0x3a7568){const _0x4f9a5b=_0x287637,_0xf3c799=this[_0x4f9a5b(0x218)];this[_0x4f9a5b(0x20d)](),this[_0x4f9a5b(0x1e9)]=!0x0,this[_0x4f9a5b(0x207)][_0x4f9a5b(0x212)]=_0x3a7568||_0x3c7bb9(_0xf3c799,_0x4f9a5b(0x214)),this[_0x4f9a5b(0x205)]||(this[_0x4f9a5b(0x242)][_0x4f9a5b(0x1f6)]=!0x1);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x45a5(_0x53653a,_0x5ef869){const _0x458219=_0x4582();return _0x45a5=function(_0x45a5fb,_0x185475){_0x45a5fb=_0x45a5fb-0xee;let _0x9e7c42=_0x458219[_0x45a5fb];return _0x9e7c42;},_0x45a5(_0x53653a,_0x5ef869);}(function(_0x2650d1,_0x161315){const _0x515f04=_0x45a5,_0x1779ec=_0x2650d1();while(!![]){try{const _0x47c570=parseInt(_0x515f04(0xf1))/0x1*(-parseInt(_0x515f04(0xfc))/0x2)+-parseInt(_0x515f04(0xf5))/0x3+parseInt(_0x515f04(0xf3))/0x4*(-parseInt(_0x515f04(0xf2))/0x5)+parseInt(_0x515f04(0xef))/0x6+-parseInt(_0x515f04(0xee))/0x7+-parseInt(_0x515f04(0xfb))/0x8+parseInt(_0x515f04(0xf7))/0x9;if(_0x47c570===_0x161315)break;else _0x1779ec['push'](_0x1779ec['shift']());}catch(_0x3ed1fc){_0x1779ec['push'](_0x1779ec['shift']());}}}(_0x4582,0x64299));import{ListItemView as _0x3a1d8d,ButtonView as _0x13633e}from'ckeditor5/src/ui.js';function _0x4582(){const _0x58956b=['set','26006TfFOop','5eVmvGS','1706772rTvXcQ','children','205509rJwkmY','fire','14831847fSXiPF','execute','prompt','locale','3760272Dcryxz','2uPJbxE','add','1830367wWwXut','89994SMcZFm'];_0x4582=function(){return _0x58956b;};return _0x4582();}import _0x5c1366 from'../dropdown/buttonlabelwithhighlightview.js';import{unescape as _0x56ce12}from'lodash-es';export default class hs extends _0x3a1d8d{constructor(_0x1ea7cf){const _0x51e6df=_0x45a5;super();const _0x52808e=new _0x5c1366(),_0x2d7515=new _0x13633e(this[_0x51e6df(0xfa)],_0x52808e);this[_0x51e6df(0xf4)][_0x51e6df(0xfd)](_0x2d7515),_0x2d7515[_0x51e6df(0xf0)]({'label':_0x1ea7cf[_0x51e6df(0xf9)],'withText':!0x0}),_0x2d7515['on'](_0x51e6df(0xf8),()=>{const _0x212610=_0x51e6df;this[_0x212610(0xf6)](_0x212610(0xf8),{'value':_0x56ce12(_0x1ea7cf[_0x212610(0xf9)])});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2aa765=_0x5a42;(function(_0x2ea8c9,_0x2ff019){const _0x1b62ba=_0x5a42,_0x3f64dd=_0x2ea8c9();while(!![]){try{const _0x474abd=-parseInt(_0x1b62ba(0x1ee))/0x1*(-parseInt(_0x1b62ba(0x1e3))/0x2)+-parseInt(_0x1b62ba(0x1f8))/0x3*(-parseInt(_0x1b62ba(0x1fb))/0x4)+parseInt(_0x1b62ba(0x1e2))/0x5+-parseInt(_0x1b62ba(0x1eb))/0x6*(parseInt(_0x1b62ba(0x1ed))/0x7)+parseInt(_0x1b62ba(0x1f7))/0x8*(parseInt(_0x1b62ba(0x1e5))/0x9)+-parseInt(_0x1b62ba(0x1f6))/0xa+-parseInt(_0x1b62ba(0x1e6))/0xb;if(_0x474abd===_0x2ff019)break;else _0x3f64dd['push'](_0x3f64dd['shift']());}catch(_0x17a2ab){_0x3f64dd['push'](_0x3f64dd['shift']());}}}(_0x3e27,0x85c30));import{ListView as _0x3bc228,ListItemGroupView as _0x2701bd,ButtonView as _0x54e427}from'ckeditor5/src/ui.js';function _0x5a42(_0x3e284d,_0xae230d){const _0x3e27de=_0x3e27();return _0x5a42=function(_0x5a424a,_0x5edeb7){_0x5a424a=_0x5a424a-0x1e2;let _0x1e2991=_0x3e27de[_0x5a424a];return _0x1e2991;},_0x5a42(_0x3e284d,_0xae230d);}import{getTranslation as _0x40d694}from'../../utils/common-translations.js';function _0x3e27(){const _0x276cd1=['items','3609475PBtEUo','2msoJUj','clearHistoryButton','1912923cKNrfj','11588852AIFCzS','set','delegate','length','fire','48lGMvob','_createClearHistoryButton','2527SRAlkg','339553AXSLVz','execute','locale','label','historyGroupView','clearHistory','children','Clear','5833800QNHFyB','40WMEunY','39JDaUut','Prompt\x20history','filter','19540kdNbZt','add'];_0x3e27=function(){return _0x276cd1;};return _0x3e27();}export default class rs extends _0x3bc228{constructor(_0x1202bb){const _0x4f6900=_0x5a42;super(_0x1202bb),this[_0x4f6900(0x1e4)]=this[_0x4f6900(0x1ec)](),this[_0x4f6900(0x1f2)]=new _0x2701bd(),this[_0x4f6900(0x1f2)][_0x4f6900(0x1f4)][_0x4f6900(0x1fc)](this[_0x4f6900(0x1e4)],0x1),this[_0x4f6900(0x1f2)][_0x4f6900(0x1f1)]=_0x40d694(_0x1202bb,_0x4f6900(0x1f9)),this[_0x4f6900(0x1f2)][_0x4f6900(0x1fd)][_0x4f6900(0x1e8)](_0x4f6900(0x1ef))['to'](this),this[_0x4f6900(0x1fd)][_0x4f6900(0x1fc)](this[_0x4f6900(0x1f2)]);}[_0x2aa765(0x1fa)](){const _0x2457dc=_0x2aa765;let _0x40336b=0x0;for(const _0x395234 of this[_0x2457dc(0x1fd)])_0x40336b+=_0x395234[_0x2457dc(0x1fd)][_0x2457dc(0x1e9)];return{'resultsCount':_0x40336b,'totalItemsCount':_0x40336b};}[_0x2aa765(0x1ec)](){const _0x5df5f6=_0x2aa765,_0x2b8010=this[_0x5df5f6(0x1f0)],_0x4f718c=new _0x54e427(this[_0x5df5f6(0x1f0)]);return _0x4f718c[_0x5df5f6(0x1e7)]({'label':'('+_0x40d694(_0x2b8010,_0x5df5f6(0x1f5))+')','withText':!0x0}),_0x4f718c['on'](_0x5df5f6(0x1ef),()=>this[_0x5df5f6(0x1ea)](_0x5df5f6(0x1f3))),_0x4f718c;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x186a8f=_0x46cb;function _0x46cb(_0x5f1d43,_0x87c21c){const _0xf8e827=_0xf8e8();return _0x46cb=function(_0x46cb93,_0x529046){_0x46cb93=_0x46cb93-0x11a;let _0x250a6d=_0xf8e827[_0x46cb93];return _0x250a6d;},_0x46cb(_0x5f1d43,_0x87c21c);}(function(_0x5899e7,_0x5af582){const _0x23dc56=_0x46cb,_0xdf3c27=_0x5899e7();while(!![]){try{const _0x30a210=-parseInt(_0x23dc56(0x125))/0x1+-parseInt(_0x23dc56(0x132))/0x2*(-parseInt(_0x23dc56(0x12a))/0x3)+parseInt(_0x23dc56(0x11c))/0x4*(-parseInt(_0x23dc56(0x12b))/0x5)+parseInt(_0x23dc56(0x11d))/0x6+-parseInt(_0x23dc56(0x120))/0x7+parseInt(_0x23dc56(0x127))/0x8*(-parseInt(_0x23dc56(0x12c))/0x9)+parseInt(_0x23dc56(0x129))/0xa;if(_0x30a210===_0x5af582)break;else _0xdf3c27['push'](_0xdf3c27['shift']());}catch(_0x2a323a){_0xdf3c27['push'](_0xdf3c27['shift']());}}}(_0xf8e8,0x8cd2c));function _0xf8e8(){const _0x391fa7=['110FxWWYh','4691187ojtVEy','setItem','map','parse','stringify','toLowerCase','866EXbQkg','last','getItem','add','56280dyqEKy','1790292CrMVeA','length','addMany','5799220oEeYRv','prompt','trim','_loadFromSessionStorage','remove','87349CytBsI','_saveToSessionStorage','16QTxaLc','CKEditor/AIFormView/PromptHistory','24904080yjQfLi','387usMOho'];_0xf8e8=function(){return _0x391fa7;};return _0xf8e8();}import{Collection as _0x5a36c0}from'ckeditor5/src/utils.js';const cs=_0x186a8f(0x128);export default class os extends _0x5a36c0{constructor(){const _0x170ab2=_0x186a8f;super(),this[_0x170ab2(0x123)](),this['on'](_0x170ab2(0x11b),(_0x472e43,_0x37d009)=>{const _0x7c694c=_0x170ab2,_0x2e2d11=Ss(_0x37d009[_0x7c694c(0x121)]);for(const _0x26ab30 of this)if(_0x26ab30!=_0x37d009&&Ss(_0x26ab30[_0x7c694c(0x121)])===_0x2e2d11){this[_0x7c694c(0x124)](_0x26ab30);break;}this[_0x7c694c(0x11e)]>0x14&&this[_0x7c694c(0x124)](this[_0x7c694c(0x133)]),this[_0x7c694c(0x126)]();}),this['on'](_0x170ab2(0x124),()=>{const _0x496c22=_0x170ab2;this[_0x496c22(0x126)]();});}[_0x186a8f(0x123)](){const _0x18f6cd=_0x186a8f,_0x25a398=sessionStorage[_0x18f6cd(0x11a)](cs)||'[]';this[_0x18f6cd(0x11f)](JSON[_0x18f6cd(0x12f)](_0x25a398));}[_0x186a8f(0x126)](){const _0x480804=_0x186a8f;sessionStorage[_0x480804(0x12d)](cs,JSON[_0x480804(0x130)](this[_0x480804(0x12e)](_0x38b8e7=>_0x38b8e7)));}}function Ss(_0x519f4e){const _0x373d01=_0x186a8f;return _0x519f4e[_0x373d01(0x131)]()[_0x373d01(0x122)]();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x898a(_0x11ab1b,_0x12e65c){const _0x3282ca=_0x3282();return _0x898a=function(_0x898ad4,_0x2e6a43){_0x898ad4=_0x898ad4-0x18b;let _0x29ac2a=_0x3282ca[_0x898ad4];return _0x29ac2a;},_0x898a(_0x11ab1b,_0x12e65c);}const _0x5685d8=_0x898a;(function(_0x3e9719,_0xe15cf4){const _0x227228=_0x898a,_0x5323d3=_0x3e9719();while(!![]){try{const _0xe51791=-parseInt(_0x227228(0x1ac))/0x1*(-parseInt(_0x227228(0x192))/0x2)+parseInt(_0x227228(0x1b1))/0x3*(-parseInt(_0x227228(0x1a2))/0x4)+parseInt(_0x227228(0x19a))/0x5*(parseInt(_0x227228(0x190))/0x6)+parseInt(_0x227228(0x1b5))/0x7+-parseInt(_0x227228(0x19d))/0x8*(-parseInt(_0x227228(0x1b4))/0x9)+parseInt(_0x227228(0x1a1))/0xa+parseInt(_0x227228(0x198))/0xb*(-parseInt(_0x227228(0x18e))/0xc);if(_0xe51791===_0xe15cf4)break;else _0x5323d3['push'](_0x5323d3['shift']());}catch(_0x550604){_0x5323d3['push'](_0x5323d3['shift']());}}}(_0x3282,0x23ccb));import{Command as _0x235723}from'ckeditor5/src/core.js';import _0x205d86 from'../aiassistantui.js';export default class j extends _0x235723{constructor(_0x220ee9,_0x2a9654){const _0x52e892=_0x898a;super(_0x220ee9),this[_0x52e892(0x1ad)]=_0x2a9654?_0x2a9654[_0x52e892(0x19e)]((_0x4a9bb0,_0x562d0c)=>_0x4a9bb0[_0x52e892(0x1b6)](_0x562d0c[_0x52e892(0x19c)]),new Array()):[],this[_0x52e892(0x18f)](_0x52e892(0x1a8),[]),this['on'](_0x52e892(0x1a9),(_0x4f0026,_0x3e4aec,_0x3b15ae)=>{const _0x4e580b=_0x52e892;this[_0x4e580b(0x193)]&&(this[_0x4e580b(0x1a8)]=K(this[_0x4e580b(0x1ad)],_0x3b15ae));}),this[_0x52e892(0x18f)](_0x52e892(0x1b8),!0x1),this['on'](_0x52e892(0x1a0),(_0x213850,_0xb583d2,_0x5d0058)=>{const _0x47a641=_0x52e892;this[_0x47a641(0x1a8)]=_0x5d0058?K(this[_0x47a641(0x1ad)],this[_0x47a641(0x1b8)]):[];});}[_0x5685d8(0x19f)](){const _0x37b73b=_0x5685d8,_0x4f7589=this[_0x37b73b(0x196)][_0x37b73b(0x1a6)];this[_0x37b73b(0x1b8)]=function(_0x411381){const _0x3cd09f=_0x37b73b,_0x3c5587=_0x411381[_0x3cd09f(0x1b9)][_0x3cd09f(0x1ae)];return _0x3c5587[_0x3cd09f(0x1ba)]?0x0!==[..._0x3c5587[_0x3cd09f(0x1aa)]()][_0x3cd09f(0x199)]&&![..._0x3c5587[_0x3cd09f(0x1aa)]()][0x0][_0x3cd09f(0x18d)]:!!_0x411381[_0x3cd09f(0x18c)](_0x3c5587[_0x3cd09f(0x1a4)]());}(_0x4f7589);const _0x16b197=_0x4f7589[_0x37b73b(0x1b9)][_0x37b73b(0x1ae)],_0x35e63f=this[_0x37b73b(0x196)][_0x37b73b(0x194)][_0x37b73b(0x19b)](_0x37b73b(0x197));for(const _0x42bbaf of _0x16b197[_0x37b73b(0x1af)]())for(const _0x2b8961 of _0x42bbaf[_0x37b73b(0x1b3)]())if(_0x2b8961['is'](_0x37b73b(0x1b2))&&_0x35e63f[_0x37b73b(0x191)](_0x2b8961[_0x37b73b(0x18b)]))return void(this[_0x37b73b(0x193)]=!0x1);this[_0x37b73b(0x193)]=!0x0;}[_0x5685d8(0x1a7)](_0x26dc63='',_0x52b394='',_0x3b3f4f=_0x5685d8(0x1a5)){const _0x2290a9=_0x5685d8;this[_0x2290a9(0x196)][_0x2290a9(0x1a3)][_0x2290a9(0x19b)](_0x205d86)[_0x2290a9(0x1b7)](_0x26dc63,_0x52b394,_0x3b3f4f);}}function K(_0x4e99aa,_0x298eca){const _0x1367ca=_0x5685d8,_0x5d47c8=new Set();for(const _0x4bc718 of _0x4e99aa)(_0x298eca||!0x1===_0x4bc718[_0x1367ca(0x195)])&&_0x5d47c8[_0x1367ca(0x1b0)](_0x4bc718['id']);return Array[_0x1367ca(0x1ab)](_0x5d47c8);}function _0x3282(){const _0x14bed5=['refresh','change:isEnabled','2630810aEemIq','4tPJzTc','plugins','getFirstRange','custom','model','execute','enabledCommandsIds','change:_hasContext','getSelectedBlocks','from','130687ANexhS','_commandDefinitions','selection','getRanges','add','313353DpZeya','element','getItems','63qkZogx','915754kDSnAe','concat','showUI','_hasContext','document','isCollapsed','name','hasContent','isEmpty','540BgfEgt','set','12oirzBD','includes','2KlBbnV','isEnabled','config','requiresContent','editor','ai.aiAssistant.disabledElements','183227vMnpji','length','579665EvXsHH','get','commands','279080aiGxGk','reduce'];_0x3282=function(){return _0x14bed5;};return _0x3282();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(
|
|
23
|
+
export function getTranslation(_0x4e448d,_0x572f91,_0x150f88){const t=_0x4e448d['t'];switch(_0x572f91){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',_0x150f88);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',_0x150f88);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x150f88);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'},_0x150f88);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 _0x572f91;}}
|