@ckeditor/ckeditor5-ai 42.0.0-alpha.22 → 42.0.0-alpha.23
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 _0x31f7d5=_0x110d;(function(_0x2e02ee,_0x36ddf3){const _0x4e6c34=_0x110d,_0x573c4a=_0x2e02ee();while(!![]){try{const _0x1e9a24=-parseInt(_0x4e6c34(0x198))/0x1*(parseInt(_0x4e6c34(0x1aa))/0x2)+parseInt(_0x4e6c34(0x1af))/0x3+parseInt(_0x4e6c34(0x184))/0x4+-parseInt(_0x4e6c34(0x1df))/0x5+-parseInt(_0x4e6c34(0x19f))/0x6*(-parseInt(_0x4e6c34(0x19d))/0x7)+parseInt(_0x4e6c34(0x1b9))/0x8*(-parseInt(_0x4e6c34(0x1a7))/0x9)+parseInt(_0x4e6c34(0x1cd))/0xa*(parseInt(_0x4e6c34(0x1ab))/0xb);if(_0x1e9a24===_0x36ddf3)break;else _0x573c4a['push'](_0x573c4a['shift']());}catch(_0x4c8b87){_0x573c4a['push'](_0x573c4a['shift']());}}}(_0x4876,0xf2d84));import{ObservableMixin as _0x3e08d6}from'ckeditor5/src/utils.js';import{AIRequestError as _0x3aaea6}from'../adapters/aiadapter.js';function _0x110d(_0x2fa5ee,_0x40d2ad){const _0x487618=_0x4876();return _0x110d=function(_0x110de8,_0x548ce5){_0x110de8=_0x110de8-0x182;let _0x1728cd=_0x487618[_0x110de8];return _0x1728cd;},_0x110d(_0x2fa5ee,_0x40d2ad);}import{Matcher as _0x4bd937,UpcastWriter as _0x3e33ba}from'ckeditor5/src/engine.js';function _0x4876(){const _0x44294f=['startsWith','element','_sanitizationContainer','render','isProcessing','18jamRrF','trim','startProcessing','4YtNKEB','297lSZaXy','finally','push','editor','2519349cvgtGW','initialContext','innerHTML','childNodes','serializeToString','_xmlSerializer','finishProcessing','stringify','mainAction','div','4397432SvUQLR','isRendered','previousLabel','previousActionId','reset','listenTo','substring','processor','set:currentContext','parseFromString','stopListening','then','prompt','htmlProcessor','remove','value','currentResponse','updateView','match','endsWith','682270oZMRpX','editing','set','viewToDom','message','toModel','handleError','createElement','custom','submitPrompt','text/html','previousQuery','once','_isH1TagSupportEnabled','destroy','ELEMENT_NODE','view','rename','5218825lUEpkG','_domParser','catch','nodeType','_handleQuery','4986272fyBksI','domConverter','makeRequest','<h1></h1>','length','textAdapter','name','from','stopProcessing','querySelector','data','reverse','document','tryAgainEvent','_stripMarkdownSyntax','_sanitizeHTML','exec','toView','abort','setContentOf','844844yTilwB','body','```html','previousContext','_parseAndNormalizeContent','6293161qFAfgz','```','6tEEIfq','currentContext','_normalizeResponseHeadings'];_0x4876=function(){return _0x44294f;};return _0x4876();}const X=new RegExp(/^(.*?)<[a-zA-Z][a-zA-Z0-9_\-.]*[ >]/,'is');export default class k extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x3e08d6(){constructor(_0x18046d,_0x5302ff,_0x47bc49){const _0x53386a=_0x110d;super(),this[_0x53386a(0x1ae)]=_0x18046d,this[_0x53386a(0x189)]=_0x5302ff,this[_0x53386a(0x1a4)]=document[_0x53386a(0x1d4)](_0x53386a(0x1b8)),this[_0x53386a(0x1e0)]=new DOMParser(),this[_0x53386a(0x1b4)]=new XMLSerializer(),this[_0x53386a(0x1dd)]=_0x47bc49,this[_0x53386a(0x1cf)]({'initialContext':'','currentContext':'','currentResponse':'','previousContext':void 0x0,'previousQuery':void 0x0,'previousLabel':void 0x0,'isProcessing':!0x1}),this['on'](_0x53386a(0x1c1),(_0x2f136a,_0x1f8fef,_0x13c2bb)=>{const _0x1d86f7=_0x53386a;this[_0x1d86f7(0x1dd)][_0x1d86f7(0x1c8)]=this[_0x1d86f7(0x193)](_0x13c2bb);}),this[_0x53386a(0x1be)](this[_0x53386a(0x1dd)],_0x53386a(0x1d6),(_0x20bb1c,_0xb983f8)=>{const _0x2562f0=_0x53386a,_0x244dfa=this[_0x2562f0(0x1a0)]||this[_0x2562f0(0x1b0)];this[_0x2562f0(0x183)](_0xb983f8,_0x244dfa,_0x2562f0(0x1d5));}),this[_0x53386a(0x1be)](this[_0x53386a(0x1dd)],_0x53386a(0x191),()=>{const _0x28869b=_0x53386a;this[_0x28869b(0x1dd)][_0x28869b(0x1c5)]=this[_0x28869b(0x1bb)],this[_0x28869b(0x183)](this[_0x28869b(0x1d8)],this[_0x28869b(0x19b)],this[_0x28869b(0x1bc)],this[_0x28869b(0x1bb)]);}),this[_0x53386a(0x1be)](this[_0x53386a(0x1dd)],_0x53386a(0x18c),()=>{const _0x2bb784=_0x53386a;this[_0x2bb784(0x18c)]();});}[_0x31f7d5(0x1db)](){const _0x16f667=_0x31f7d5;this[_0x16f667(0x1c3)]();}async[_0x31f7d5(0x1ca)]({actionId:_0x493962,query:_0x11fb64,htmlContent:_0x53c3e5,label:_0x219eb5,mainActionLabel:_0x2d863b}){const _0x22c5b0=_0x31f7d5;this[_0x22c5b0(0x1dd)][_0x22c5b0(0x1c5)]=_0x219eb5,this[_0x22c5b0(0x1dd)][_0x22c5b0(0x1b7)]=_0x2d863b,this[_0x22c5b0(0x1b0)]=_0x53c3e5,_0x11fb64&&(this[_0x22c5b0(0x1dd)][_0x22c5b0(0x1ba)]?this[_0x22c5b0(0x183)](_0x11fb64,_0x53c3e5,_0x493962,_0x219eb5):this[_0x22c5b0(0x1dd)][_0x22c5b0(0x1d9)](_0x22c5b0(0x1a5),()=>{const _0x4b7d09=_0x22c5b0;this[_0x4b7d09(0x183)](_0x11fb64,_0x53c3e5,_0x493962,_0x219eb5);}));}[_0x31f7d5(0x18c)](){const _0x3c88ce=_0x31f7d5;this[_0x3c88ce(0x1a6)]&&(this[_0x3c88ce(0x1a6)]=!0x1,this[_0x3c88ce(0x1dd)][_0x3c88ce(0x1b5)](),this[_0x3c88ce(0x189)][_0x3c88ce(0x196)]());}[_0x31f7d5(0x1bd)](){const _0x14028c=_0x31f7d5;this[_0x14028c(0x1b0)]='',this[_0x14028c(0x1a0)]='',this[_0x14028c(0x1c9)]='',this[_0x14028c(0x19b)]='',this[_0x14028c(0x1d8)]='',this[_0x14028c(0x1bb)]='',this[_0x14028c(0x1bc)]=void 0x0,this[_0x14028c(0x1dd)][_0x14028c(0x1bd)](),this[_0x14028c(0x18c)]();}async[_0x31f7d5(0x183)](_0x159320,_0x258bb4,_0x4d801b,_0xc042c7){const _0x430cb0=_0x31f7d5;return this[_0x430cb0(0x1a6)]=!0x0,this[_0x430cb0(0x1dd)][_0x430cb0(0x1a9)](),this[_0x430cb0(0x19b)]=_0x258bb4,this[_0x430cb0(0x1d8)]=_0x159320,this[_0x430cb0(0x1bb)]=_0xc042c7||_0x159320,this[_0x430cb0(0x1bc)]=_0x4d801b,new Promise(_0x9f52c=>{const _0x21be06=_0x430cb0;this[_0x21be06(0x189)][_0x21be06(0x186)]({'query':_0x159320,'context':_0x258bb4,'onData':_0x1287fe=>{const _0x1828b6=_0x21be06;this[_0x1828b6(0x1c9)]=_0x1287fe,this[_0x1828b6(0x1a0)]=this[_0x1828b6(0x19c)](this[_0x1828b6(0x1c9)]);},'actionId':_0x4d801b})[_0x21be06(0x1c4)](()=>{const _0x57fc74=_0x21be06;!this[_0x57fc74(0x1a0)]&&this[_0x57fc74(0x1c9)]&&(this[_0x57fc74(0x1a0)]=this[_0x57fc74(0x19c)](this[_0x57fc74(0x1c9)],!0x0));})[_0x21be06(0x1e1)](_0x185d95=>{const _0x1db11c=_0x21be06;_0x185d95 instanceof _0x3aaea6?this[_0x1db11c(0x1dd)][_0x1db11c(0x1d3)](_0x185d95[_0x1db11c(0x1d1)]):this[_0x1db11c(0x1dd)][_0x1db11c(0x1d3)](),_0x9f52c();})[_0x21be06(0x1ac)](()=>{const _0x3069e3=_0x21be06;this[_0x3069e3(0x18c)](),_0x9f52c();});});}[_0x31f7d5(0x19c)](_0x22839c,_0xdc54ee=!0x1){const _0x12964b=_0x31f7d5,_0x128004=X[_0x12964b(0x194)](_0x22839c);_0x22839c=_0x128004?_0x22839c[_0x12964b(0x1bf)](_0x128004[0x1][_0x12964b(0x188)]):_0x22839c[_0x12964b(0x188)]<0x64&&!_0xdc54ee?'':this[_0x12964b(0x192)](_0x22839c);const _0x542892=this[_0x12964b(0x1e0)][_0x12964b(0x1c2)](_0x22839c,_0x12964b(0x1d7));if(_0x128004){const _0x3f4864=Array[_0x12964b(0x18b)](_0x542892[_0x12964b(0x199)][_0x12964b(0x1b2)]);_0x3f4864[_0x12964b(0x18f)]();for(const _0x309203 of _0x3f4864){if(_0x309203[_0x12964b(0x182)]==Node[_0x12964b(0x1dc)])break;_0x309203[_0x12964b(0x1c7)]();}}const _0x55aac2=this[_0x12964b(0x1ae)][_0x12964b(0x18e)][_0x12964b(0x1c0)][_0x12964b(0x195)](this[_0x12964b(0x1b4)][_0x12964b(0x1b3)](_0x542892[_0x12964b(0x199)]));return this[_0x12964b(0x1da)]()||this[_0x12964b(0x1a1)](_0x55aac2),this[_0x12964b(0x1ae)][_0x12964b(0x18e)][_0x12964b(0x1b6)](this[_0x12964b(0x1ae)][_0x12964b(0x18e)][_0x12964b(0x1d2)](_0x55aac2));}[_0x31f7d5(0x1a1)](_0x288df1){const _0x3c5d42=_0x31f7d5,_0x2d5616=new _0x3e33ba(this[_0x3c5d42(0x1ae)][_0x3c5d42(0x1ce)][_0x3c5d42(0x1dd)][_0x3c5d42(0x190)]),_0x1dd9a1=new _0x4bd937({'name':/^h[1-5]$/}),_0x50d8b6=[];let _0xe8d2f8=!0x1;for(const _0x2911fd of _0x288df1)_0x2911fd['is'](_0x3c5d42(0x1a3))&&_0x1dd9a1[_0x3c5d42(0x1cb)](_0x2911fd)&&(_0x50d8b6[_0x3c5d42(0x1ad)](_0x2911fd),'h1'==_0x2911fd[_0x3c5d42(0x18a)]&&(_0xe8d2f8=!0x0));if(_0xe8d2f8){for(const _0x2200d6 of _0x50d8b6)_0x2d5616[_0x3c5d42(0x1de)]('h'+(parseInt(_0x2200d6[_0x3c5d42(0x18a)][0x1])+0x1),_0x2200d6);}}[_0x31f7d5(0x1da)](){const _0x19e004=_0x31f7d5,{data:_0x2d6840,editing:_0x261c93}=this[_0x19e004(0x1ae)],_0x4c46c3=_0x2d6840[_0x19e004(0x1c6)][_0x19e004(0x195)](_0x19e004(0x187)),_0x176875=_0x2d6840[_0x19e004(0x195)](_0x2d6840[_0x19e004(0x1d2)](_0x4c46c3));return!!_0x261c93[_0x19e004(0x1dd)][_0x19e004(0x185)][_0x19e004(0x1d0)](_0x176875)[_0x19e004(0x18d)]('h1');}[_0x31f7d5(0x193)](_0xd33aa5){const _0x1a414a=_0x31f7d5;return this[_0x1a414a(0x1ae)][_0x1a414a(0x1ce)][_0x1a414a(0x1dd)][_0x1a414a(0x185)][_0x1a414a(0x197)](this[_0x1a414a(0x1a4)],_0xd33aa5),this[_0x1a414a(0x1a4)][_0x1a414a(0x1b1)];}[_0x31f7d5(0x192)](_0x198c38){const _0x5c982d=_0x31f7d5,_0xd5c297=_0x198c38[_0x5c982d(0x1a8)]();return _0xd5c297[_0x5c982d(0x1a2)](_0x5c982d(0x19a))?_0xd5c297[_0x5c982d(0x1cc)](_0x5c982d(0x19e))?_0xd5c297[_0x5c982d(0x1bf)](0x7,_0xd5c297[_0x5c982d(0x188)]-0x3):_0xd5c297[_0x5c982d(0x1bf)](0x7):_0x198c38;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x55c72e=_0x102e;(function(_0x3ffe91,_0x399a6c){const _0x58cb06=_0x102e,_0x528781=_0x3ffe91();while(!![]){try{const _0x75c3c1=-parseInt(_0x58cb06(0x98))/0x1*(-parseInt(_0x58cb06(0x9c))/0x2)+parseInt(_0x58cb06(0x87))/0x3*(-parseInt(_0x58cb06(0x96))/0x4)+-parseInt(_0x58cb06(0x84))/0x5*(-parseInt(_0x58cb06(0x9d))/0x6)+-parseInt(_0x58cb06(0x95))/0x7+-parseInt(_0x58cb06(0x99))/0x8*(parseInt(_0x58cb06(0x9a))/0x9)+-parseInt(_0x58cb06(0x8c))/0xa+parseInt(_0x58cb06(0x8b))/0xb;if(_0x75c3c1===_0x399a6c)break;else _0x528781['push'](_0x528781['shift']());}catch(_0x802ac8){_0x528781['push'](_0x528781['shift']());}}}(_0x2b7e,0x51153));import{ListView as _0x40129c,ListItemGroupView as _0x43e235}from'ckeditor5/src/ui.js';function _0x102e(_0x3400c5,_0x545557){const _0x2b7efd=_0x2b7e();return _0x102e=function(_0x102ec3,_0x2ac3ec){_0x102ec3=_0x102ec3-0x81;let _0x1811f3=_0x2b7efd[_0x102ec3];return _0x1811f3;},_0x102e(_0x3400c5,_0x545557);}import{AICommandsListItemView as _0x5f628c}from'../../aiassistantui.js';function _0x2b7e(){const _0x193f85=['includes','labelView','2128427ZDVSvP','92BicjOr','first','3223dorIzQ','8GGZreg','3758148yTpPPy','length','118iBVsis','402NEGzzu','listbox','isVisible','items','children','48215wKDRSM','highlightText','change:enabledCommandsIds','56073SZmxNi','set','isEnabled','match','9489161DPaWbx','2152480exTcVx','get','role','enabledCommandsIds','commandDefinition','filter','label'];_0x2b7e=function(){return _0x193f85;};return _0x2b7e();}export default class U extends _0x40129c{constructor(_0x196d45){const _0x2a3de6=_0x102e;super(_0x196d45),this[_0x2a3de6(0x8e)]=_0x2a3de6(0x9e),this[_0x2a3de6(0x88)](_0x2a3de6(0x8f),[]),this['on'](_0x2a3de6(0x86),()=>{const _0xa7dfb5=_0x2a3de6;for(const _0xe8ce8f of this[_0xa7dfb5(0x82)])if(_0xe8ce8f instanceof _0x43e235){for(const _0x427182 of _0xe8ce8f[_0xa7dfb5(0x82)])if(_0x427182 instanceof _0x5f628c){const _0xb42632=_0x427182[_0xa7dfb5(0x83)][_0xa7dfb5(0x8d)](0x0);this[_0xa7dfb5(0x8f)][_0xa7dfb5(0x93)](_0x427182[_0xa7dfb5(0x90)]['id'])?_0xb42632[_0xa7dfb5(0x89)]=!0x0:_0xb42632[_0xa7dfb5(0x89)]=!0x1;}}});}[_0x55c72e(0x91)](_0x548d92){const _0x2b9f9f=_0x55c72e;let _0x358a1a=0x0,_0x98eb1a=0x0;for(const _0x33b407 of this[_0x2b9f9f(0x82)]){const _0x1362ba=_0x33b407,_0x1f186f=_0x1362ba[_0x2b9f9f(0x82)],_0x7782d2=_0x548d92&&!!_0x1362ba[_0x2b9f9f(0x92)][_0x2b9f9f(0x8a)](_0x548d92);_0x1362ba[_0x2b9f9f(0x94)][_0x2b9f9f(0x85)](_0x7782d2?_0x548d92:null);for(const _0x4e02b6 of _0x1f186f){const _0x12f4f2=_0x4e02b6[_0x2b9f9f(0x83)][_0x2b9f9f(0x97)],_0xc15af3=_0x12f4f2[_0x2b9f9f(0x94)];if(_0x548d92){const _0x27c242=!!_0x12f4f2[_0x2b9f9f(0x92)][_0x2b9f9f(0x8a)](_0x548d92);_0xc15af3[_0x2b9f9f(0x85)](_0x27c242?_0x548d92:null),_0x4e02b6[_0x2b9f9f(0x81)]=_0x7782d2||_0x27c242;}else _0x4e02b6[_0x2b9f9f(0x81)]=!0x0,_0xc15af3[_0x2b9f9f(0x85)](null);}const _0x211cad=_0x1f186f[_0x2b9f9f(0x91)](_0xee6131=>_0xee6131[_0x2b9f9f(0x81)])[_0x2b9f9f(0x9b)];_0x358a1a+=_0x1362ba[_0x2b9f9f(0x82)][_0x2b9f9f(0x9b)],_0x98eb1a+=_0x7782d2?_0x1362ba[_0x2b9f9f(0x82)][_0x2b9f9f(0x9b)]:_0x211cad,_0x1362ba[_0x2b9f9f(0x81)]=_0x7782d2||!!_0x211cad;}return{'resultsCount':_0x98eb1a,'totalItemsCount':_0x358a1a};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x3b8f4d,_0x5527e2){const _0xb91005=_0x20e8,_0x34ff2b=_0x3b8f4d();while(!![]){try{const _0x24884e=-parseInt(_0xb91005(0x118))/0x1*(-parseInt(_0xb91005(0x112))/0x2)+parseInt(_0xb91005(0x116))/0x3*(-parseInt(_0xb91005(0x11b))/0x4)+-parseInt(_0xb91005(0x10f))/0x5*(-parseInt(_0xb91005(0x115))/0x6)+parseInt(_0xb91005(0x111))/0x7*(-parseInt(_0xb91005(0x113))/0x8)+-parseInt(_0xb91005(0x11e))/0x9+parseInt(_0xb91005(0x117))/0xa+-parseInt(_0xb91005(0x11a))/0xb;if(_0x24884e===_0x5527e2)break;else _0x34ff2b['push'](_0x34ff2b['shift']());}catch(_0x2d20a3){_0x34ff2b['push'](_0x34ff2b['shift']());}}}(_0x4774,0x50480));function _0x4774(){const _0x252e5e=['5612520QMyCpJ','6EfCFqp','bindTemplate','1404975mOgjNN','24452uHqWCS','set','ck-button__label','5543478upGOUs','2095GjbyFX','extendTemplate','1211BEqNDx','189666DWWbmy','18752QOLkOT','style','6468uaNoSV','51izEfsi'];_0x4774=function(){return _0x252e5e;};return _0x4774();}function _0x20e8(_0x453fc2,_0x36dfc5){const _0x4774ee=_0x4774();return _0x20e8=function(_0x20e868,_0x6ce8a7){_0x20e868=_0x20e868-0x10f;let _0x5346ba=_0x4774ee[_0x20e868];return _0x5346ba;},_0x20e8(_0x453fc2,_0x36dfc5);}import{HighlightedTextView as _0x5d7b0b}from'ckeditor5/src/ui.js';export default class N extends _0x5d7b0b{constructor(){const _0x3d65f7=_0x20e8;super(),this[_0x3d65f7(0x11c)]({'style':void 0x0,'text':void 0x0,'id':void 0x0});const _0x4477fa=this[_0x3d65f7(0x119)];this[_0x3d65f7(0x110)]({'attributes':{'class':[_0x3d65f7(0x11d)],'style':_0x4477fa['to'](_0x3d65f7(0x114)),'id':_0x4477fa['to']('id')}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x49635a,_0x4bb3c9){const _0x1331ae=_0x4ecd,_0x48035a=_0x49635a();while(!![]){try{const _0x1e3543=parseInt(_0x1331ae(0x1cc))/0x1*(parseInt(_0x1331ae(0x1cd))/0x2)+parseInt(_0x1331ae(0x1d2))/0x3+-parseInt(_0x1331ae(0x1c8))/0x4+-parseInt(_0x1331ae(0x1d0))/0x5+parseInt(_0x1331ae(0x1ce))/0x6+parseInt(_0x1331ae(0x1c5))/0x7+-parseInt(_0x1331ae(0x1cb))/0x8*(parseInt(_0x1331ae(0x1d1))/0x9);if(_0x1e3543===_0x4bb3c9)break;else _0x48035a['push'](_0x48035a['shift']());}catch(_0x3c2ceb){_0x48035a['push'](_0x48035a['shift']());}}}(_0x4029,0x418a1));import{HighlightedTextView as _0x3654a1}from'ckeditor5/src/ui.js';import{uid as _0x280886}from'ckeditor5/src/utils.js';function _0x4029(){const _0x1b5f49=['337512uGqTvI','for','3383051GIyvvX','extendTemplate','set','100140BiENGM','ck-label','ck-editor__label_','8OzjKsQ','67183qnqrOe','14cNuyGb','3049824EqcErI','bindTemplate','372700LtOfnw','10857222jLiQuv'];_0x4029=function(){return _0x1b5f49;};return _0x4029();}function _0x4ecd(_0xcb359a,_0x490714){const _0x402918=_0x4029();return _0x4ecd=function(_0x4ecd24,_0x478200){_0x4ecd24=_0x4ecd24-0x1c5;let _0x146cf5=_0x402918[_0x4ecd24];return _0x146cf5;},_0x4ecd(_0xcb359a,_0x490714);}export default class S extends _0x3654a1{constructor(){const _0x1d2487=_0x4ecd;super(),this[_0x1d2487(0x1c7)](_0x1d2487(0x1d3),void 0x0);const _0x1e6ffb=this[_0x1d2487(0x1cf)];this['id']=_0x1d2487(0x1ca)+_0x280886(),this[_0x1d2487(0x1c6)]({'attributes':{'class':['ck',_0x1d2487(0x1c9)],'id':this['id'],'for':_0x1e6ffb['to'](_0x1d2487(0x1d3))}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x51c2c3=_0x1e69;function _0x1e69(_0x30e7ed,_0x48bb17){const _0x158f67=_0x158f();return _0x1e69=function(_0x1e698f,_0x537250){_0x1e698f=_0x1e698f-0xc5;let _0x297115=_0x158f67[_0x1e698f];return _0x297115;},_0x1e69(_0x30e7ed,_0x48bb17);}(function(_0x53c6d4,_0x320abc){const _0x18e8aa=_0x1e69,_0x175521=_0x53c6d4();while(!![]){try{const _0x366e79=-parseInt(_0x18e8aa(0xc7))/0x1*(-parseInt(_0x18e8aa(0x107))/0x2)+-parseInt(_0x18e8aa(0xd8))/0x3+parseInt(_0x18e8aa(0x10a))/0x4+parseInt(_0x18e8aa(0xe0))/0x5+parseInt(_0x18e8aa(0xc5))/0x6+-parseInt(_0x18e8aa(0xca))/0x7+-parseInt(_0x18e8aa(0xda))/0x8;if(_0x366e79===_0x320abc)break;else _0x175521['push'](_0x175521['shift']());}catch(_0x333bea){_0x175521['push'](_0x175521['shift']());}}}(_0x158f,0x91e60));import{global as _0x2998aa}from'ckeditor5/src/utils.js';import{View as _0x13ca3f,ButtonView as _0x2586a0,SpinnerView as _0x1de1a4}from'ckeditor5/src/ui.js';import _0x230723 from'../../../theme/icons/copy.svg';function _0x158f(){const _0x35e247=['addRange','2035676xYIQCU','locale','bindTemplate','appendChild','<span>]</span>','innerHTML','loaderView','isVisible','copy','textContent','bind','set','\x20ck-ai-form__copy-button--copied','ck-ai-form__copy-button-wrapper','position','945738yFxzmi','write','11fovpVS','ClipboardItem','setEndBefore','3867318SeldHa','text/html','focus','copyButtonView','_createCopyButton','body','render','ck-ai-form__content-area-wrapper','value','div','scrollTo','wheel','icon','mousedown','2541615nnfgaG','remove','4009040uuzKfz','isEnabled','contentFieldView','check','execCommand','element','3692005ZuAJiB','change:value','_copyHTMLToClipboard','text/plain','smooth','listenTo','ck-reset_all-excluded','ck-ai-form__content-field','createRange','ck-ai-form__loader','setTemplate','absolute','AI\x20is\x20writing...','change:isProcessing','class','ck-hidden','removeAllRanges','left','Copy','querySelector','createElement','<span>[</span>','setContent','scrollHeight','style','isProcessing','firstElementChild','ck-ai-form__copy-button','clipboard','setStartAfter','ck-content','execute','appendLoader','ck-ai-form__content-area--processing','_createLoader','ck-ai-form__content-area','lastElementChild','.ck-ai-form__loader','-9999px','198812sJggaF','getSelection'];_0x158f=function(){return _0x35e247;};return _0x158f();}import{getTranslation as _0x490428}from'../../utils/common-translations.js';import{icons as _0x36b8cd}from'ckeditor5/src/core.js';export default class nt extends _0x13ca3f{constructor(_0x61e92c,_0x23a3db=''){const _0x388023=_0x1e69;super(_0x61e92c),this[_0x388023(0x115)]({'value':null,'isVisible':!0x1,'isProcessing':!0x1});const _0x9bfb0c=this[_0x388023(0x10c)];this[_0x388023(0xdc)]=new ContentFieldView(_0x61e92c,_0x23a3db),this[_0x388023(0xcd)]=this[_0x388023(0xce)](),this[_0x388023(0xea)]({'tag':_0x388023(0xd3),'attributes':{'class':['ck',_0x388023(0xd1),_0x9bfb0c['if'](_0x388023(0x111),_0x388023(0xef),_0x4eca62=>!_0x4eca62)],'tabindex':'-1'},'children':[{'tag':_0x388023(0xd3),'attributes':{'class':['ck',_0x388023(0x103),_0x9bfb0c['if'](_0x388023(0xf9),_0x388023(0x101))]},'children':[this[_0x388023(0xdc)],{'tag':_0x388023(0xd3),'attributes':{'class':['ck',_0x388023(0x117)]},'children':[this[_0x388023(0xcd)]]}]}]});}[_0x51c2c3(0xd0)](){const _0x3b25e9=_0x51c2c3;super[_0x3b25e9(0xd0)](),this[_0x3b25e9(0xd2)]&&this[_0x3b25e9(0xdc)][_0x3b25e9(0xf6)](this[_0x3b25e9(0xd2)]);let _0x16789a=!0x1;this['on'](_0x3b25e9(0xe1),(_0x59739a,_0x11619e,_0x17a072)=>{const _0x14d3f3=_0x3b25e9,_0x5c88f0=!this[_0x14d3f3(0xdc)][_0x14d3f3(0xdf)][_0x14d3f3(0xf3)](_0x14d3f3(0x105));this[_0x14d3f3(0xdc)][_0x14d3f3(0xf6)](_0x17a072),this[_0x14d3f3(0xf9)]&&_0x5c88f0&&!_0x16789a&&this[_0x14d3f3(0xdf)][_0x14d3f3(0xd4)]({'top':this[_0x14d3f3(0xdf)][_0x14d3f3(0xf7)],'behavior':_0x14d3f3(0xe4)});}),this['on'](_0x3b25e9(0xed),(_0x4c7149,_0x1a5751,_0x3c3e3b)=>{const _0x467d56=_0x3b25e9;_0x16789a=!0x1,_0x3c3e3b?(this[_0x467d56(0xd2)]=null,this[_0x467d56(0xdc)][_0x467d56(0x100)]()):this[_0x467d56(0xd2)]||this[_0x467d56(0xdc)][_0x467d56(0xf6)]('');}),this[_0x3b25e9(0xe5)](this[_0x3b25e9(0xdf)],_0x3b25e9(0xd5),()=>{_0x16789a=!0x0;}),this[_0x3b25e9(0xe5)](this[_0x3b25e9(0xdf)],_0x3b25e9(0xd7),()=>{_0x16789a=!0x0;});}[_0x51c2c3(0xcc)](){const _0x2ed7c1=_0x51c2c3;this[_0x2ed7c1(0xdf)][_0x2ed7c1(0xcc)]();}[_0x51c2c3(0xce)](){const _0xf5dd4d=_0x51c2c3,_0x2268bb=this[_0xf5dd4d(0x10b)],_0x1cfebd=new _0x2586a0(this[_0xf5dd4d(0x10b)]),_0x54e7ff=_0xf5dd4d(0xfb);return _0x1cfebd[_0xf5dd4d(0x115)]({'label':_0x490428(_0x2268bb,_0xf5dd4d(0xf2)),'icon':_0x230723,'class':_0x54e7ff,'tooltip':!0x0}),_0x1cfebd[_0xf5dd4d(0x114)](_0xf5dd4d(0x111))['to'](this,_0xf5dd4d(0xd2),_0x45d695=>!!_0x45d695),_0x1cfebd[_0xf5dd4d(0x114)](_0xf5dd4d(0xdb))['to'](this,_0xf5dd4d(0xf9),_0x491da3=>!_0x491da3),_0x1cfebd['on'](_0xf5dd4d(0xff),()=>{const _0x44ca60=_0xf5dd4d;this[_0x44ca60(0xe2)](this[_0x44ca60(0xdc)][_0x44ca60(0xdf)]),_0x1cfebd[_0x44ca60(0xd6)]=_0x36b8cd[_0x44ca60(0xdd)],_0x1cfebd[_0x44ca60(0xee)]=_0x54e7ff+_0x44ca60(0x116),this[_0x44ca60(0xcc)](),setTimeout(()=>{const _0x29ba88=_0x44ca60;_0x1cfebd[_0x29ba88(0xd6)]=_0x230723,_0x1cfebd[_0x29ba88(0xee)]=_0x54e7ff;},0x3e8);}),_0x1cfebd;}[_0x51c2c3(0xe2)](_0x1f7b4d){const _0x4a02aa=_0x51c2c3,{window:_0x295715,document:_0xb8b9f5}=_0x2998aa;if(_0x295715[_0x4a02aa(0xc8)]){const {Blob:_0x3d741e,ClipboardItem:_0x35eef1}=_0x295715,_0x4bb88b=[new _0x35eef1({'text/html':new _0x3d741e([_0x1f7b4d[_0x4a02aa(0x10f)]],{'type':_0x4a02aa(0xcb)}),'text/plain':new _0x3d741e([_0x1f7b4d[_0x4a02aa(0x113)]||''],{'type':_0x4a02aa(0xe3)})})];navigator[_0x4a02aa(0xfc)][_0x4a02aa(0xc6)](_0x4bb88b);}else{const _0x319efd=_0xb8b9f5[_0x4a02aa(0xf4)](_0x4a02aa(0xd3));_0x319efd[_0x4a02aa(0xf8)][_0x4a02aa(0x118)]=_0x4a02aa(0xeb),_0x319efd[_0x4a02aa(0xf8)][_0x4a02aa(0xf1)]=_0x4a02aa(0x106),_0x319efd[_0x4a02aa(0x10f)]=_0x4a02aa(0xf5)+_0x1f7b4d[_0x4a02aa(0x10f)]+_0x4a02aa(0x10e),_0xb8b9f5[_0x4a02aa(0xcf)][_0x4a02aa(0x10d)](_0x319efd);const _0x1a01c2=_0xb8b9f5[_0x4a02aa(0xe8)]();_0x1a01c2[_0x4a02aa(0xfd)](_0x319efd[_0x4a02aa(0xfa)]),_0x1a01c2[_0x4a02aa(0xc9)](_0x319efd[_0x4a02aa(0x104)]);const _0x314b38=_0x295715[_0x4a02aa(0x108)]();_0x314b38[_0x4a02aa(0xf0)](),_0x314b38[_0x4a02aa(0x109)](_0x1a01c2),_0xb8b9f5[_0x4a02aa(0xde)](_0x4a02aa(0x112)),_0x319efd[_0x4a02aa(0xd9)]();}}}export class ContentFieldView extends _0x13ca3f{constructor(_0x5b76b3,_0x477422=''){const _0x3a3515=_0x51c2c3;super(_0x5b76b3),this[_0x3a3515(0x110)]=this[_0x3a3515(0x102)](),this[_0x3a3515(0xea)]({'tag':_0x3a3515(0xd3),'attributes':{'class':['ck',_0x3a3515(0xfe),_0x477422,_0x3a3515(0xe6),_0x3a3515(0xe7)]}});}[_0x51c2c3(0xf6)](_0x2e7527){const _0x4d3ca9=_0x51c2c3;this[_0x4d3ca9(0xdf)][_0x4d3ca9(0x10f)]=_0x2e7527;}[_0x51c2c3(0x100)](){const _0x41e384=_0x51c2c3;this[_0x41e384(0xdf)][_0x41e384(0x10d)](this[_0x41e384(0x110)][_0x41e384(0xdf)]);}[_0x51c2c3(0x102)](){const _0x2722c6=_0x51c2c3,_0x421a96=new _0x13ca3f(),_0x4e71dc=this[_0x2722c6(0x10b)],_0x5d0b9a=new _0x1de1a4();return _0x5d0b9a[_0x2722c6(0x111)]=!0x0,_0x421a96[_0x2722c6(0xea)]({'tag':_0x2722c6(0xd3),'attributes':{'class':['ck',_0x2722c6(0xe9)]},'children':[_0x5d0b9a,{'text':_0x490428(_0x4e71dc,_0x2722c6(0xec))}]}),_0x421a96[_0x2722c6(0xd0)](),_0x421a96;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x30d4a3,_0x248979){const _0x454e4d=_0x2731,_0x2f8bed=_0x30d4a3();while(!![]){try{const _0x28e62d=-parseInt(_0x454e4d(0x9b))/0x1+parseInt(_0x454e4d(0x91))/0x2*(parseInt(_0x454e4d(0x97))/0x3)+parseInt(_0x454e4d(0x95))/0x4*(parseInt(_0x454e4d(0x8d))/0x5)+parseInt(_0x454e4d(0x96))/0x6*(parseInt(_0x454e4d(0x8f))/0x7)+-parseInt(_0x454e4d(0x93))/0x8+-parseInt(_0x454e4d(0x98))/0x9+-parseInt(_0x454e4d(0x9c))/0xa;if(_0x28e62d===_0x248979)break;else _0x2f8bed['push'](_0x2f8bed['shift']());}catch(_0x118b06){_0x2f8bed['push'](_0x2f8bed['shift']());}}}(_0xb45a,0x795bc));function _0x2731(_0x160ef2,_0x347183){const _0xb45ac2=_0xb45a();return _0x2731=function(_0x273168,_0xda95b3){_0x273168=_0x273168-0x8d;let _0x3586f1=_0xb45ac2[_0x273168];return _0x3586f1;},_0x2731(_0x160ef2,_0x347183);}import{View as _0x272d3f,IconView as _0x9074b0}from'ckeditor5/src/ui.js';function _0xb45a(){const _0xe1f91a=['1371470kCRzaY','content','7vVdDkb','set','4LGIvTL','bindTemplate','2695592RJCZuU','div','8eZXlEg','5837178cppwQZ','1357404ryZXWo','1631556ztIeBk','ck-ai-form__error','setTemplate','308637gffsto','11024330rSEXvw','text'];_0xb45a=function(){return _0xe1f91a;};return _0xb45a();}import _0x56ff24 from'../../../theme/icons/error.svg';export default class mt extends _0x272d3f{constructor(_0x576ca7,_0x51a272=''){const _0x51db0b=_0x2731;super(_0x576ca7);const _0x27ff3d=new _0x9074b0(),_0x4f29da=this[_0x51db0b(0x92)];this[_0x51db0b(0x90)](_0x51db0b(0x9d),_0x51a272),_0x27ff3d[_0x51db0b(0x8e)]=_0x56ff24,this[_0x51db0b(0x9a)]({'tag':_0x51db0b(0x94),'attributes':{'class':['ck',_0x51db0b(0x99)]},'children':[_0x27ff3d,{'text':_0x4f29da['to'](_0x51db0b(0x9d))}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x5bb79c=_0x4436;(function(_0x50c219,_0x4fc0e3){const _0x14ef69=_0x4436,_0x6e4555=_0x50c219();while(!![]){try{const _0x1ffcd1=-parseInt(_0x14ef69(0xc3))/0x1+-parseInt(_0x14ef69(0x9d))/0x2+-parseInt(_0x14ef69(0xc2))/0x3+-parseInt(_0x14ef69(0xb7))/0x4+-parseInt(_0x14ef69(0x9c))/0x5*(parseInt(_0x14ef69(0xb8))/0x6)+parseInt(_0x14ef69(0x9b))/0x7*(-parseInt(_0x14ef69(0xa2))/0x8)+parseInt(_0x14ef69(0xc1))/0x9;if(_0x1ffcd1===_0x4fc0e3)break;else _0x6e4555['push'](_0x6e4555['shift']());}catch(_0x1c2070){_0x6e4555['push'](_0x6e4555['shift']());}}}(_0x20ff,0x563aa));import{Rect as _0x198c9d,global as _0x5197d2,isVisible as _0x595c33}from'ckeditor5/src/utils.js';import{AutocompleteView as _0x3b0ae2,ButtonView as _0x33aef4}from'ckeditor5/src/ui.js';import{icons as _0x49a79c}from'ckeditor5/src/core.js';function _0x4436(_0x32fa04,_0x5beb7a){const _0x20fff6=_0x20ff();return _0x4436=function(_0x443613,_0x124419){_0x443613=_0x443613-0x8f;let _0x15ea25=_0x20fff6[_0x443613];return _0x15ea25;},_0x4436(_0x32fa04,_0x5beb7a);}import{getTranslation as _0x4c30d9}from'../../utils/common-translations.js';import _0x505477 from'../../../theme/icons/submit.svg';export default class pt extends _0x3b0ae2{constructor(_0x8fe3a7,_0xa49a05){const _0x275a32=_0x4436;super(_0x8fe3a7,_0xa49a05),this[_0x275a32(0xc8)][_0x275a32(0x9f)][_0x275a32(0xa3)]=0x1,this[_0x275a32(0xc8)][_0x275a32(0x9f)][_0x275a32(0x9e)]=0x3,this[_0x275a32(0x97)]=this[_0x275a32(0x93)](),this[_0x275a32(0xc6)]=this[_0x275a32(0xb9)](),this[_0x275a32(0xa1)][_0x275a32(0xa5)](this[_0x275a32(0xc6)],0x1),this[_0x275a32(0xa1)][_0x275a32(0xa5)](this[_0x275a32(0x97)]);}[_0x5bb79c(0xb1)](){const _0x30f47f=_0x5bb79c;super[_0x30f47f(0xb1)](),this[_0x30f47f(0xc8)][_0x30f47f(0xb0)][_0x30f47f(0xa5)](this[_0x30f47f(0xc6)]),this[_0x30f47f(0xa8)][_0x30f47f(0xa5)](this[_0x30f47f(0x97)]),this[_0x30f47f(0xb5)][_0x30f47f(0x91)](_0x30f47f(0x94),(_0xf769a1,_0x491f48)=>{const _0x2d20ee=_0x30f47f;_0xf769a1[_0x2d20ee(0xbb)]==this[_0x2d20ee(0xc8)][_0x2d20ee(0x9f)][_0x2d20ee(0xa9)]&&(this[_0x2d20ee(0xaa)](),_0x491f48());});}[_0x5bb79c(0x93)](){const _0x542cda=_0x5bb79c,_0x7d6bb8=new _0x33aef4(this[_0x542cda(0xba)]),_0xb67ee=this[_0x542cda(0xba)];return _0x7d6bb8[_0x542cda(0x91)]({'icon':_0x505477,'label':_0x4c30d9(_0xb67ee,_0x542cda(0xbc)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x542cda(0xaf)}),_0x7d6bb8['on'](_0x542cda(0xb3),()=>{const _0x4da6b3=_0x542cda;this[_0x4da6b3(0xaa)]();}),_0x7d6bb8[_0x542cda(0xb6)](_0x542cda(0xa4))['to'](this[_0x542cda(0xc8)][_0x542cda(0x9f)],_0x542cda(0xbe),this,_0x542cda(0xa4),(_0x5b1804,_0x11bbe1)=>!_0x5b1804&&_0x11bbe1),_0x7d6bb8;}[_0x5bb79c(0xb9)](){const _0x1b7c83=_0x5bb79c,_0x3ac380=new _0x33aef4(this[_0x1b7c83(0xba)]),_0x5e34b4=this[_0x1b7c83(0x9a)],_0x1eb394=this[_0x1b7c83(0xba)];_0x3ac380[_0x1b7c83(0x91)]({'label':_0x4c30d9(_0x1eb394,_0x1b7c83(0xad)),'withText':!0x1,'icon':_0x49a79c[_0x1b7c83(0x96)],'tooltip':!0x0,'tooltipPosition':'sw','class':_0x1b7c83(0x8f)}),_0x3ac380[_0x1b7c83(0xb6)](_0x1b7c83(0xab))['to'](_0x5e34b4,_0x1b7c83(0xae)),_0x3ac380[_0x1b7c83(0xb6)](_0x1b7c83(0xa4))['to'](this,_0x1b7c83(0xa4)),_0x3ac380['on'](_0x1b7c83(0xb3),()=>{const _0xb6e799=_0x1b7c83;_0x5e34b4[_0xb6e799(0xae)]=!_0x5e34b4[_0xb6e799(0xae)],_0x5e34b4[_0xb6e799(0xae)]?this[_0xb6e799(0xb4)][_0xb6e799(0xc5)]():this[_0xb6e799(0xc5)]();});const _0x3dd224=()=>{const _0x5dc19e=_0x1b7c83;_0x5197d2[_0x5dc19e(0xc4)][_0x5dc19e(0x98)](()=>{const _0x36049c=_0x5dc19e;if(_0x595c33(this[_0x36049c(0xa9)])){const _0x29c59f=new _0x198c9d(this[_0x36049c(0xc8)][_0x36049c(0x9f)][_0x36049c(0xa9)]),_0x1ebaeb=_0x29c59f[_0x36049c(0x92)],_0x1235c4=_0x36049c(0x95)===_0x1eb394[_0x36049c(0x99)]?_0x36049c(0xbf):_0x36049c(0xac);_0x29c59f[_0x36049c(0xc7)](),_0x3ac380[_0x36049c(0xa9)][_0x36049c(0xa6)][_0x1235c4]=_0x1ebaeb-_0x29c59f[_0x36049c(0x92)]+0x1+'px';}});};return this[_0x1b7c83(0xc8)][_0x1b7c83(0x9f)]['on'](_0x1b7c83(0xb2),_0x3dd224),this['on'](_0x1b7c83(0xb1),_0x3dd224),_0x3ac380;}[_0x5bb79c(0xaa)](){const _0x461f2d=_0x5bb79c,_0x3f654c=this[_0x461f2d(0xc8)][_0x461f2d(0x9f)][_0x461f2d(0xa9)][_0x461f2d(0x90)];this[_0x461f2d(0xa7)](_0x461f2d(0xaa),_0x3f654c);}[_0x5bb79c(0xc5)](_0x1a6be3){const _0x444560=_0x5bb79c;-0x1===_0x1a6be3?this[_0x444560(0xbd)][_0x444560(0xc0)]():this[_0x444560(0xbd)][_0x444560(0xa0)]();}}function _0x20ff(){const _0x52e3f7=['fieldView','focusFirst','focusableChildren','24DhvNAQ','minRows','isEnabled','add','style','fire','children','element','submit','isOn','right','History','isVisible','ck-ai-form__submit','fieldWrapperChildren','render','update','execute','filteredView','keystrokes','bind','2574460qodSIG','65088TAobnp','_createShowHistoryButton','locale','target','Submit','focusCycler','isEmpty','left','focusLast','26220555wSQPID','1222530YdFaRz','387088EQHdee','window','focus','showHistoryButtonView','excludeScrollbarsAndBorders','queryView','ck-ai-form__toggle-history','value','set','width','_createSubmitButton','enter','rtl','history','submitButtonView','requestAnimationFrame','uiLanguageDirection','resultsView','705411PpTQmE','240Borhha','597930LXKXli','maxRows'];_0x20ff=function(){return _0x52e3f7;};return _0x20ff();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x553a1d=_0x5bac;(function(_0x23ae94,_0x526353){const _0x21d4b2=_0x5bac,_0x31b11f=_0x23ae94();while(!![]){try{const _0x51e7ef=parseInt(_0x21d4b2(0x1ea))/0x1+parseInt(_0x21d4b2(0x1eb))/0x2+parseInt(_0x21d4b2(0x202))/0x3+parseInt(_0x21d4b2(0x1fc))/0x4+parseInt(_0x21d4b2(0x20b))/0x5+parseInt(_0x21d4b2(0x1ff))/0x6*(-parseInt(_0x21d4b2(0x1f8))/0x7)+-parseInt(_0x21d4b2(0x201))/0x8;if(_0x51e7ef===_0x526353)break;else _0x31b11f['push'](_0x31b11f['shift']());}catch(_0x172ff2){_0x31b11f['push'](_0x31b11f['shift']());}}}(_0x2bf3,0x6f6fc));import{ToolbarView as _0x3f2ebc,ButtonView as _0x1e7b94}from'ckeditor5/src/ui.js';import{getTranslation as _0x4b54c9}from'../../utils/common-translations.js';function _0x5bac(_0x9724fd,_0x3af9a8){const _0x2bf3a3=_0x2bf3();return _0x5bac=function(_0x5bac66,_0x17b4f1){_0x5bac66=_0x5bac66-0x1ea;let _0x5dc9cc=_0x2bf3a3[_0x5bac66];return _0x5dc9cc;},_0x5bac(_0x9724fd,_0x3af9a8);}function _0x2bf3(){const _0x572e7d=['items','_createButton','replaceButton','920297SoZbTk','insertButton','addMany','AI_','2200488SilHsZ','Try\x20again','insert','24ilTYhy','set','10142232sLSSTA','2686008UTHQZq','mainAction','toUpperCase','label','replace','bindTemplate','Stop','ck-hidden','Insert\x20below','430765mlnLcp','locale','233951kTQloC','969090ZDmUaV','ck-button-action','_CONTENT','bind','tryAgainButton','isVisible','extendTemplate','stopButton','REPLACE','ck-ai-form__toolbar'];_0x2bf3=function(){return _0x572e7d;};return _0x2bf3();}export const AIFormToolbarViewMainActionLabel={'REPLACE':_0x553a1d(0x206),'INSERT':_0x553a1d(0x1fe)};export default class Tt extends _0x3f2ebc{constructor(_0x2f1669){const _0x1ed7e8=_0x553a1d;super(_0x2f1669),this[_0x1ed7e8(0x200)](_0x1ed7e8(0x1f0),!0x1),this[_0x1ed7e8(0x200)](_0x1ed7e8(0x203),AIFormToolbarViewMainActionLabel[_0x1ed7e8(0x1f3)]),this[_0x1ed7e8(0x1f7)]=this[_0x1ed7e8(0x1f6)]('',_0x1ed7e8(0x1ec)),this[_0x1ed7e8(0x1f7)][_0x1ed7e8(0x1ee)](_0x1ed7e8(0x205))['to'](this,_0x1ed7e8(0x203),_0x23c407=>_0x4b54c9(_0x2f1669,_0x1ed7e8(0x1fb)+_0x23c407[_0x1ed7e8(0x204)]()+_0x1ed7e8(0x1ed))),this[_0x1ed7e8(0x1f9)]=this[_0x1ed7e8(0x1f6)](_0x4b54c9(_0x2f1669,_0x1ed7e8(0x20a))),this[_0x1ed7e8(0x1ef)]=this[_0x1ed7e8(0x1f6)](_0x4b54c9(_0x2f1669,_0x1ed7e8(0x1fd))),this[_0x1ed7e8(0x1f2)]=this[_0x1ed7e8(0x1f6)](_0x4b54c9(_0x2f1669,_0x1ed7e8(0x208)));const _0x18c1d6=this[_0x1ed7e8(0x207)];this[_0x1ed7e8(0x1f1)]({'attributes':{'class':[_0x1ed7e8(0x1f4),_0x18c1d6['if'](_0x1ed7e8(0x1f0),_0x1ed7e8(0x209),_0x2bdbf3=>!_0x2bdbf3)]}}),this[_0x1ed7e8(0x1f5)][_0x1ed7e8(0x1fa)]([this[_0x1ed7e8(0x1f7)],this[_0x1ed7e8(0x1f9)],this[_0x1ed7e8(0x1ef)],this[_0x1ed7e8(0x1f2)]]);}[_0x553a1d(0x1f6)](_0x360108,_0x22ebef){const _0x52bdde=_0x553a1d,_0x4c0c7e=new _0x1e7b94(this[_0x52bdde(0x20c)]);return _0x4c0c7e[_0x52bdde(0x200)]({'label':_0x360108,'class':_0x22ebef||'','isVisible':!0x0,'withText':!0x0}),_0x4c0c7e;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x245d59=_0x2525;(function(_0x4d4b79,_0x427c94){const _0x5c665e=_0x2525,_0x23edc8=_0x4d4b79();while(!![]){try{const _0x131d4c=-parseInt(_0x5c665e(0x1bb))/0x1*(parseInt(_0x5c665e(0x1c2))/0x2)+-parseInt(_0x5c665e(0x18a))/0x3+-parseInt(_0x5c665e(0x18e))/0x4+-parseInt(_0x5c665e(0x1a5))/0x5+parseInt(_0x5c665e(0x182))/0x6+parseInt(_0x5c665e(0x1b1))/0x7*(parseInt(_0x5c665e(0x185))/0x8)+parseInt(_0x5c665e(0x1b2))/0x9;if(_0x131d4c===_0x427c94)break;else _0x23edc8['push'](_0x23edc8['shift']());}catch(_0x480f8e){_0x23edc8['push'](_0x23edc8['shift']());}}}(_0x4ab3,0x98231));import{FocusTracker as _0x98794e,KeystrokeHandler as _0x31c1c9}from'ckeditor5/src/utils.js';function _0x4ab3(){const _0x26a42f=['forwardCycle','keystrokes','4030182oymcdc','isVisible','stopButton','85216LPbeSg','finishProcessing','promptView','_promptHistory','clearHistory','3327426wgEKEP','locale','add','backwardCycle','1249776UThaga','insertButton','mainAction','AI_ERROR_FAILED','isError','Ask\x20AI\x20to\x20improve\x20generated\x20text','clear','bindTo','focusNext','fire','fieldView','queryView','shift\x20+\x20tab','focusFirst','replaceButton','isEnabled','_createPromptView','reset','label','bind','value','trim','replaceContent','5609750oTbRZi','items','prompt','element','search','stop','startProcessing','div','set','REPLACE','focusLast','tab','189VtewSR','25471449CDTqUx','execute','Empty\x20history','high','stopProcessing','render','setTemplate','text','delegate','69197lIoenF','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','listenTo','copyButtonView','historyGroupView','ck-ai-form','handleError','18QDvmHw','insertContentBelow','tryAgainButton','focusTracker','_createHistoryView','submit','isProcessing','toolbar','focusPrevious','createCollection','Ask\x20AI\x20to\x20edit\x20or\x20generate','errorView','focusCycler','submitPrompt','tryAgainEvent','ck-hidden','focus','bindTemplate','contentArea','_focusables','_createToolbar','ck-ai-form-content'];_0x4ab3=function(){return _0x26a42f;};return _0x4ab3();}import{View as _0x254f32,FocusCycler as _0x5b4191,createLabeledTextarea as _0x1b03b9}from'ckeditor5/src/ui.js';import _0x523d40,{AIFormToolbarViewMainActionLabel as _0x4875bb}from'./aiformtoolbarview.js';import _0x2cc8d4 from'./aiformcontentarea.js';function _0x2525(_0x146623,_0xa3e86){const _0x4ab37e=_0x4ab3();return _0x2525=function(_0x252561,_0x40f403){_0x252561=_0x252561-0x177;let _0x5ca291=_0x4ab37e[_0x252561];return _0x5ca291;},_0x2525(_0x146623,_0xa3e86);}import _0x1067a3 from'./aiformerrorview.js';import _0x59e9ce from'./aiformpromptview.js';import _0x2e0614 from'./aihistorylistview.js';import _0xa17488 from'./aihistorylistitemview.js';import _0x7678e2 from'./prompthistory.js';import{getTranslation as _0xa771a1}from'../../utils/common-translations.js';import{escape as _0x99b96}from'lodash-es';export default class x extends _0x254f32{constructor(_0x2e8cf4,_0x466865,_0x97acfe=''){const _0x2a0316=_0x2525;super(_0x2e8cf4),this[_0x2a0316(0x1ad)](_0x2a0316(0x19d),!0x0),this[_0x2a0316(0x1ad)](_0x2a0316(0x1c8),!0x1),this[_0x2a0316(0x1ad)](_0x2a0316(0x1a7),''),this[_0x2a0316(0x1ad)](_0x2a0316(0x1a2),''),this[_0x2a0316(0x1ad)](_0x2a0316(0x192),!0x1),this[_0x2a0316(0x1ad)](_0x2a0316(0x190),_0x4875bb[_0x2a0316(0x1ae)]),this[_0x2a0316(0x188)]=new _0x7678e2(),this[_0x2a0316(0x1cd)]=new _0x1067a3(_0x2e8cf4),this[_0x2a0316(0x17c)]=new _0x2cc8d4(_0x2e8cf4,_0x97acfe),this[_0x2a0316(0x17c)][_0x2a0316(0x1a1)](_0x2a0316(0x1c8))['to'](this),this[_0x2a0316(0x17c)][_0x2a0316(0x1a1)](_0x2a0316(0x1a2))['to'](this),this[_0x2a0316(0x1c9)]=this[_0x2a0316(0x17e)](),this[_0x2a0316(0x1c9)][_0x2a0316(0x1a1)](_0x2a0316(0x190))['to'](this),this[_0x2a0316(0x187)]=this[_0x2a0316(0x19e)](),this[_0x2a0316(0x1c5)]=new _0x98794e(),this[_0x2a0316(0x181)]=new _0x31c1c9(),this[_0x2a0316(0x17d)]=this[_0x2a0316(0x1cb)]([this[_0x2a0316(0x17c)],this[_0x2a0316(0x17c)][_0x2a0316(0x1be)],this[_0x2a0316(0x1c9)],this[_0x2a0316(0x187)]]),this[_0x2a0316(0x1ce)]=new _0x5b4191({'focusables':this[_0x2a0316(0x17d)],'focusTracker':this[_0x2a0316(0x1c5)],'keystrokeHandler':this[_0x2a0316(0x181)],'actions':{'focusPrevious':_0x2a0316(0x19a),'focusNext':_0x2a0316(0x1b0)}}),this[_0x2a0316(0x187)][_0x2a0316(0x1ce)]['on'](_0x2a0316(0x180),_0x272354=>{const _0x4043a5=_0x2a0316;this[_0x4043a5(0x1ce)][_0x4043a5(0x196)](),_0x272354[_0x4043a5(0x1aa)]();}),this[_0x2a0316(0x187)][_0x2a0316(0x1ce)]['on'](_0x2a0316(0x18d),_0x1ffbcf=>{const _0x55a2b1=_0x2a0316;this[_0x55a2b1(0x1ce)][_0x55a2b1(0x1ca)](),_0x1ffbcf[_0x55a2b1(0x1aa)]();}),this[_0x2a0316(0x187)][_0x2a0316(0x199)][_0x2a0316(0x198)][_0x2a0316(0x1a1)](_0x2a0316(0x1a2))['to'](this,_0x2a0316(0x1a7));const _0x5094ad=this[_0x2a0316(0x17b)];this[_0x2a0316(0x1b8)]({'tag':_0x2a0316(0x1ac),'attributes':{'class':['ck',_0x2a0316(0x1c0),_0x466865],'tabindex':'-1'},'children':[{'tag':_0x2a0316(0x1ac),'attributes':{'class':['ck',_0x2a0316(0x17f)]},'children':[{'tag':_0x2a0316(0x1ac),'attributes':{'class':[_0x5094ad['if'](_0x2a0316(0x192),_0x2a0316(0x179),_0x8e5afa=>!_0x8e5afa)]},'children':[this[_0x2a0316(0x1cd)]]},this[_0x2a0316(0x17c)],this[_0x2a0316(0x1c9)],this[_0x2a0316(0x187)]]}]});}[_0x245d59(0x1b7)](){const _0x367f05=_0x245d59;super[_0x367f05(0x1b7)](),this[_0x367f05(0x1c5)][_0x367f05(0x18c)](this[_0x367f05(0x17c)][_0x367f05(0x1a8)]),this[_0x367f05(0x1c5)][_0x367f05(0x18c)](this[_0x367f05(0x17c)][_0x367f05(0x1be)][_0x367f05(0x1a8)]),this[_0x367f05(0x1c5)][_0x367f05(0x18c)](this[_0x367f05(0x1c9)][_0x367f05(0x1a8)]),this[_0x367f05(0x1c5)][_0x367f05(0x18c)](this[_0x367f05(0x187)][_0x367f05(0x1a8)]),this[_0x367f05(0x181)][_0x367f05(0x1bd)](this[_0x367f05(0x1a8)]);}[_0x245d59(0x17a)](_0x23fdcb=0x1){const _0x59f5cd=_0x245d59;-0x1===_0x23fdcb?this[_0x59f5cd(0x1ce)][_0x59f5cd(0x1af)]():this[_0x59f5cd(0x1ce)][_0x59f5cd(0x19b)]();}[_0x245d59(0x19f)](){const _0x123ab4=_0x245d59;this[_0x123ab4(0x1a7)]='',this[_0x123ab4(0x1a2)]='',this[_0x123ab4(0x192)]=!0x1,this[_0x123ab4(0x187)][_0x123ab4(0x19f)](),this[_0x123ab4(0x17c)][_0x123ab4(0x183)]=!0x1,this[_0x123ab4(0x1c9)][_0x123ab4(0x183)]=!0x1;}[_0x245d59(0x19e)](){const _0x31ed37=_0x245d59,_0x4c4be4=this[_0x31ed37(0x18b)],_0x4625b9=new _0x59e9ce(_0x4c4be4,{'queryView':{'label':_0xa771a1(_0x4c4be4,_0x31ed37(0x1cc)),'creator':_0x1b03b9,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0xa771a1(_0x4c4be4,_0x31ed37(0x1b4)),'secondary':_0xa771a1(_0x4c4be4,_0x31ed37(0x1bc))}}},'filteredView':this[_0x31ed37(0x1c6)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x4625b9[_0x31ed37(0x1a1)](_0x31ed37(0x19d))['to'](this,_0x31ed37(0x19d),this,_0x31ed37(0x1c8),(_0x5648ab,_0x29a780)=>_0x5648ab&&!_0x29a780),this[_0x31ed37(0x1bd)](_0x4625b9,_0x31ed37(0x1c7),(_0x5d7a8c,_0x1e93f4)=>{const _0x4684dc=_0x31ed37;this[_0x4684dc(0x1a7)]=_0x1e93f4;const _0x44af32=_0x99b96(_0x1e93f4);this[_0x4684dc(0x197)](_0x4684dc(0x177),_0x44af32),_0x1e93f4[_0x4684dc(0x1a3)]()&&this[_0x4684dc(0x188)][_0x4684dc(0x18c)]({'prompt':_0x44af32},0x0);},{'priority':_0x31ed37(0x1b5)}),_0x4625b9;}[_0x245d59(0x1c6)](){const _0x3e1fb0=_0x245d59,_0x474e5a=new _0x2e0614(this[_0x3e1fb0(0x18b)]);return _0x474e5a[_0x3e1fb0(0x1bf)][_0x3e1fb0(0x1a6)][_0x3e1fb0(0x195)](this[_0x3e1fb0(0x188)])['as'](_0xa17488),_0x474e5a['on'](_0x3e1fb0(0x189),()=>{const _0x49b6cd=_0x3e1fb0;this[_0x49b6cd(0x188)][_0x49b6cd(0x194)](),this[_0x49b6cd(0x187)][_0x49b6cd(0x1a9)](''),this[_0x49b6cd(0x187)][_0x49b6cd(0x17a)]();}),_0x474e5a;}[_0x245d59(0x17e)](){const _0x523891=_0x245d59,_0xab9f0a=new _0x523d40(this[_0x523891(0x18b)]);return _0xab9f0a[_0x523891(0x19c)][_0x523891(0x1a1)](_0x523891(0x19d))['to'](this,_0x523891(0x19d),this,_0x523891(0x1c8),this,_0x523891(0x1a2),(_0x3924d0,_0x1934be,_0x524359)=>_0x3924d0&&!_0x1934be&&!!_0x524359),_0xab9f0a[_0x523891(0x19c)][_0x523891(0x1ba)](_0x523891(0x1b3))['to'](this,_0x523891(0x1a4)),_0xab9f0a[_0x523891(0x18f)][_0x523891(0x1a1)](_0x523891(0x19d))['to'](this,_0x523891(0x19d),this,_0x523891(0x1c8),this,_0x523891(0x1a2),(_0x4c803f,_0x21a4c4,_0x242f97)=>_0x4c803f&&!_0x21a4c4&&!!_0x242f97),_0xab9f0a[_0x523891(0x18f)][_0x523891(0x1ba)](_0x523891(0x1b3))['to'](this,_0x523891(0x1c3)),_0xab9f0a[_0x523891(0x1c4)][_0x523891(0x1a1)](_0x523891(0x19d))['to'](this,_0x523891(0x19d),this,_0x523891(0x1c8),(_0x442919,_0x33d948)=>_0x442919&&!_0x33d948),_0xab9f0a[_0x523891(0x1c4)][_0x523891(0x1ba)](_0x523891(0x1b3))['to'](this,_0x523891(0x178)),_0xab9f0a[_0x523891(0x184)][_0x523891(0x1a1)](_0x523891(0x19d))['to'](this,_0x523891(0x1c8)),_0xab9f0a[_0x523891(0x184)][_0x523891(0x1ba)](_0x523891(0x1b3))['to'](this,_0x523891(0x1b6)),_0xab9f0a;}[_0x245d59(0x1ab)](){const _0x1d3ef8=_0x245d59;this[_0x1d3ef8(0x1a2)]='',this[_0x1d3ef8(0x192)]=!0x1,this[_0x1d3ef8(0x1c8)]=!0x0,this[_0x1d3ef8(0x17c)][_0x1d3ef8(0x183)]=!0x0,this[_0x1d3ef8(0x1c9)][_0x1d3ef8(0x183)]=!0x0,this[_0x1d3ef8(0x17c)][_0x1d3ef8(0x17a)]();}[_0x245d59(0x186)](){const _0x48a649=_0x245d59,_0x41c28c=this[_0x48a649(0x18b)];this[_0x48a649(0x1c8)]=!0x1,this[_0x48a649(0x1a7)]='',this[_0x48a649(0x187)][_0x48a649(0x19f)](),this[_0x48a649(0x1a2)]&&(this[_0x48a649(0x187)][_0x48a649(0x199)][_0x48a649(0x1a0)]=_0xa771a1(_0x41c28c,_0x48a649(0x193)));}[_0x245d59(0x1c1)](_0x38d948){const _0x5b6342=_0x245d59,_0x3f6113=this[_0x5b6342(0x18b)];this[_0x5b6342(0x186)](),this[_0x5b6342(0x192)]=!0x0,this[_0x5b6342(0x1cd)][_0x5b6342(0x1b9)]=_0x38d948||_0xa771a1(_0x3f6113,_0x5b6342(0x191)),this[_0x5b6342(0x1a2)]||(this[_0x5b6342(0x17c)][_0x5b6342(0x183)]=!0x1);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x4341(_0x574f34,_0x53dd48){const _0xf8322c=_0xf832();return _0x4341=function(_0x4341ea,_0x5acb43){_0x4341ea=_0x4341ea-0xf2;let _0x585d0a=_0xf8322c[_0x4341ea];return _0x585d0a;},_0x4341(_0x574f34,_0x53dd48);}(function(_0x36750e,_0x40d8c7){const _0x36b5fa=_0x4341,_0x4f8e7a=_0x36750e();while(!![]){try{const _0x1a44b2=-parseInt(_0x36b5fa(0xf4))/0x1*(parseInt(_0x36b5fa(0xf6))/0x2)+-parseInt(_0x36b5fa(0xfd))/0x3*(parseInt(_0x36b5fa(0xfe))/0x4)+-parseInt(_0x36b5fa(0x104))/0x5*(-parseInt(_0x36b5fa(0xf8))/0x6)+parseInt(_0x36b5fa(0xfc))/0x7+parseInt(_0x36b5fa(0xfb))/0x8*(parseInt(_0x36b5fa(0x100))/0x9)+parseInt(_0x36b5fa(0x102))/0xa+parseInt(_0x36b5fa(0x103))/0xb*(-parseInt(_0x36b5fa(0x101))/0xc);if(_0x1a44b2===_0x40d8c7)break;else _0x4f8e7a['push'](_0x4f8e7a['shift']());}catch(_0x5167ba){_0x4f8e7a['push'](_0x4f8e7a['shift']());}}}(_0xf832,0xe7f40));function _0xf832(){const _0x342a94=['set','fire','1VBIQif','children','1304702WwTwIt','locale','6IlxtGH','prompt','execute','48368QCsFZv','4104800KNchqD','1554411OSOvbg','8lktRlW','add','1179BgYsdE','580248xTwcgr','7073480LNLFgF','143zrfjbF','5907665zEcTKG'];_0xf832=function(){return _0x342a94;};return _0xf832();}import{ListItemView as _0x225605,ButtonView as _0x300dbd}from'ckeditor5/src/ui.js';import _0x4c80a8 from'../dropdown/buttonlabelwithhighlightview.js';import{unescape as _0x504c92}from'lodash-es';export default class hs extends _0x225605{constructor(_0x50a5f9){const _0x3420f9=_0x4341;super();const _0x1945d4=new _0x4c80a8(),_0x48a1f4=new _0x300dbd(this[_0x3420f9(0xf7)],_0x1945d4);this[_0x3420f9(0xf5)][_0x3420f9(0xff)](_0x48a1f4),_0x48a1f4[_0x3420f9(0xf2)]({'label':_0x50a5f9[_0x3420f9(0xf9)],'withText':!0x0}),_0x48a1f4['on'](_0x3420f9(0xfa),()=>{const _0x5bfbf3=_0x3420f9;this[_0x5bfbf3(0xf3)](_0x5bfbf3(0xfa),{'value':_0x504c92(_0x50a5f9[_0x5bfbf3(0xf9)])});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x30b6(){const _0x1e76d4=['4025ggMEcW','Clear','clearHistory','items','351081qxGbgO','historyGroupView','length','1033686hoscsD','set','clearHistoryButton','3147777jHIrPz','Prompt\x20history','fire','2GRkwSv','931240IQwGgc','children','locale','add','_createClearHistoryButton','execute','label','1043IlfAsI','filter','12424NyXqDf','delegate','381153olUcuR','1112qqKrtX'];_0x30b6=function(){return _0x1e76d4;};return _0x30b6();}const _0x517b2a=_0x1d39;(function(_0x4f38d7,_0x441c56){const _0x48eb13=_0x1d39,_0x136a9f=_0x4f38d7();while(!![]){try{const _0x2f97c3=-parseInt(_0x48eb13(0xb0))/0x1*(-parseInt(_0x48eb13(0x9e))/0x2)+-parseInt(_0x48eb13(0xaa))/0x3+-parseInt(_0x48eb13(0xab))/0x4*(-parseInt(_0x48eb13(0xac))/0x5)+-parseInt(_0x48eb13(0xb3))/0x6+parseInt(_0x48eb13(0xa6))/0x7*(parseInt(_0x48eb13(0xa8))/0x8)+-parseInt(_0x48eb13(0x9b))/0x9+parseInt(_0x48eb13(0x9f))/0xa;if(_0x2f97c3===_0x441c56)break;else _0x136a9f['push'](_0x136a9f['shift']());}catch(_0x49bd2f){_0x136a9f['push'](_0x136a9f['shift']());}}}(_0x30b6,0x3d1c3));import{ListView as _0x46af1b,ListItemGroupView as _0x20080a,ButtonView as _0x10a2a6}from'ckeditor5/src/ui.js';function _0x1d39(_0x1bd191,_0x233e33){const _0x30b6c7=_0x30b6();return _0x1d39=function(_0x1d39b1,_0x9abb73){_0x1d39b1=_0x1d39b1-0x99;let _0x450117=_0x30b6c7[_0x1d39b1];return _0x450117;},_0x1d39(_0x1bd191,_0x233e33);}import{getTranslation as _0x41793f}from'../../utils/common-translations.js';export default class rs extends _0x46af1b{constructor(_0xbfb353){const _0x4ee21e=_0x1d39;super(_0xbfb353),this[_0x4ee21e(0x9a)]=this[_0x4ee21e(0xa3)](),this[_0x4ee21e(0xb1)]=new _0x20080a(),this[_0x4ee21e(0xb1)][_0x4ee21e(0xa0)][_0x4ee21e(0xa2)](this[_0x4ee21e(0x9a)],0x1),this[_0x4ee21e(0xb1)][_0x4ee21e(0xa5)]=_0x41793f(_0xbfb353,_0x4ee21e(0x9c)),this[_0x4ee21e(0xb1)][_0x4ee21e(0xaf)][_0x4ee21e(0xa9)](_0x4ee21e(0xa4))['to'](this),this[_0x4ee21e(0xaf)][_0x4ee21e(0xa2)](this[_0x4ee21e(0xb1)]);}[_0x517b2a(0xa7)](){const _0x5ac9ff=_0x517b2a;let _0x4bbe39=0x0;for(const _0x86c624 of this[_0x5ac9ff(0xaf)])_0x4bbe39+=_0x86c624[_0x5ac9ff(0xaf)][_0x5ac9ff(0xb2)];return{'resultsCount':_0x4bbe39,'totalItemsCount':_0x4bbe39};}[_0x517b2a(0xa3)](){const _0x53b1fc=_0x517b2a,_0x234a7=this[_0x53b1fc(0xa1)],_0x21dbe5=new _0x10a2a6(this[_0x53b1fc(0xa1)]);return _0x21dbe5[_0x53b1fc(0x99)]({'label':'('+_0x41793f(_0x234a7,_0x53b1fc(0xad))+')','withText':!0x0}),_0x21dbe5['on'](_0x53b1fc(0xa4),()=>this[_0x53b1fc(0x9d)](_0x53b1fc(0xae))),_0x21dbe5;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x241fa5=_0x709e;(function(_0x570c9e,_0x2b62f3){const _0x441f78=_0x709e,_0x1c4230=_0x570c9e();while(!![]){try{const _0x8e64d3=-parseInt(_0x441f78(0x1a9))/0x1+parseInt(_0x441f78(0x1a3))/0x2+-parseInt(_0x441f78(0x1b5))/0x3+-parseInt(_0x441f78(0x1a4))/0x4*(-parseInt(_0x441f78(0x1b9))/0x5)+parseInt(_0x441f78(0x1b3))/0x6+-parseInt(_0x441f78(0x1b8))/0x7+parseInt(_0x441f78(0x1af))/0x8*(parseInt(_0x441f78(0x1b6))/0x9);if(_0x8e64d3===_0x2b62f3)break;else _0x1c4230['push'](_0x1c4230['shift']());}catch(_0x2f6d68){_0x1c4230['push'](_0x1c4230['shift']());}}}(_0x40c4,0xc3ed3));import{Collection as _0x556149}from'ckeditor5/src/utils.js';function _0x40c4(){const _0x420fa0=['add','472164nUBCXa','length','4235181uExudl','54ThCNBb','trim','4958569osuEgf','57625HQdiPR','map','getItem','827056iUZrDi','344kdwoiR','prompt','remove','addMany','toLowerCase','1156225ybBlHG','_loadFromSessionStorage','CKEditor/AIFormView/PromptHistory','_saveToSessionStorage','last','setItem','3460616wonrBN','stringify','parse'];_0x40c4=function(){return _0x420fa0;};return _0x40c4();}function _0x709e(_0x1c8b6b,_0x39164e){const _0x40c42d=_0x40c4();return _0x709e=function(_0x709edd,_0x71e93d){_0x709edd=_0x709edd-0x1a1;let _0x3bf180=_0x40c42d[_0x709edd];return _0x3bf180;},_0x709e(_0x1c8b6b,_0x39164e);}const cs=_0x241fa5(0x1ab);export default class os extends _0x556149{constructor(){const _0x46a5a8=_0x241fa5;super(),this[_0x46a5a8(0x1aa)](),this['on'](_0x46a5a8(0x1b2),(_0x1ca42e,_0x975359)=>{const _0x39d015=_0x46a5a8,_0x265d3e=Ss(_0x975359[_0x39d015(0x1a5)]);for(const _0x495762 of this)if(_0x495762!=_0x975359&&Ss(_0x495762[_0x39d015(0x1a5)])===_0x265d3e){this[_0x39d015(0x1a6)](_0x495762);break;}this[_0x39d015(0x1b4)]>0x14&&this[_0x39d015(0x1a6)](this[_0x39d015(0x1ad)]),this[_0x39d015(0x1ac)]();}),this['on'](_0x46a5a8(0x1a6),()=>{const _0x42be2a=_0x46a5a8;this[_0x42be2a(0x1ac)]();});}[_0x241fa5(0x1aa)](){const _0x54d629=_0x241fa5,_0x295aaa=sessionStorage[_0x54d629(0x1a2)](cs)||'[]';this[_0x54d629(0x1a7)](JSON[_0x54d629(0x1b1)](_0x295aaa));}[_0x241fa5(0x1ac)](){const _0x1f3d6a=_0x241fa5;sessionStorage[_0x1f3d6a(0x1ae)](cs,JSON[_0x1f3d6a(0x1b0)](this[_0x1f3d6a(0x1a1)](_0xc94f38=>_0xc94f38)));}}function Ss(_0x379b7e){const _0x154add=_0x241fa5;return _0x379b7e[_0x154add(0x1a8)]()[_0x154add(0x1b7)]();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2fb42f=_0x1c8f;(function(_0x3861e8,_0x40ea8b){const _0x354e6d=_0x1c8f,_0x4f8021=_0x3861e8();while(!![]){try{const _0x517468=-parseInt(_0x354e6d(0x16d))/0x1+-parseInt(_0x354e6d(0x192))/0x2*(parseInt(_0x354e6d(0x16e))/0x3)+-parseInt(_0x354e6d(0x16c))/0x4*(-parseInt(_0x354e6d(0x175))/0x5)+parseInt(_0x354e6d(0x18d))/0x6+parseInt(_0x354e6d(0x195))/0x7*(parseInt(_0x354e6d(0x176))/0x8)+parseInt(_0x354e6d(0x18b))/0x9+parseInt(_0x354e6d(0x17f))/0xa*(-parseInt(_0x354e6d(0x178))/0xb);if(_0x517468===_0x40ea8b)break;else _0x4f8021['push'](_0x4f8021['shift']());}catch(_0x25d91f){_0x4f8021['push'](_0x4f8021['shift']());}}}(_0xed36,0xd5fee));function _0x1c8f(_0x28a29d,_0x28a463){const _0xed3679=_0xed36();return _0x1c8f=function(_0x1c8f6b,_0x2a1055){_0x1c8f6b=_0x1c8f6b-0x16a;let _0x4dd579=_0xed3679[_0x1c8f6b];return _0x4dd579;},_0x1c8f(_0x28a29d,_0x28a463);}function _0xed36(){const _0x3a522b=['getFirstRange','selection','1075djudlP','30904hdMRFO','custom','308pcawho','execute','commands','length','name','_hasContext','change:isEnabled','617120jhtNRY','_commandDefinitions','isEmpty','document','editor','add','getRanges','change:_hasContext','get','hasContent','isCollapsed','from','2588346pbiQyv','plugins','6654288igSySe','refresh','getSelectedBlocks','getItems','ai.aiAssistant.disabledElements','16zpHihW','reduce','element','777UQDAeF','includes','config','enabledCommandsIds','model','concat','26108abcsgK','171342EKnZIJ','169851gYbtrX','set','isEnabled','requiresContent','showUI'];_0xed36=function(){return _0x3a522b;};return _0xed36();}import{Command as _0xdae6e5}from'ckeditor5/src/core.js';import _0x3dee0e from'../aiassistantui.js';export default class j extends _0xdae6e5{constructor(_0x337b0d,_0x19ba55){const _0x389169=_0x1c8f;super(_0x337b0d),this[_0x389169(0x180)]=_0x19ba55?_0x19ba55[_0x389169(0x193)]((_0xe58925,_0x42cccf)=>_0xe58925[_0x389169(0x16b)](_0x42cccf[_0x389169(0x17a)]),new Array()):[],this[_0x389169(0x16f)](_0x389169(0x198),[]),this['on'](_0x389169(0x186),(_0x2f7970,_0x5a4b55,_0xfbbe77)=>{const _0x283cad=_0x389169;this[_0x283cad(0x170)]&&(this[_0x283cad(0x198)]=K(this[_0x283cad(0x180)],_0xfbbe77));}),this[_0x389169(0x16f)](_0x389169(0x17d),!0x1),this['on'](_0x389169(0x17e),(_0x10ed16,_0x16729f,_0x5d2a07)=>{const _0x28640c=_0x389169;this[_0x28640c(0x198)]=_0x5d2a07?K(this[_0x28640c(0x180)],this[_0x28640c(0x17d)]):[];});}[_0x2fb42f(0x18e)](){const _0x3042e1=_0x2fb42f,_0x3f6b7=this[_0x3042e1(0x183)][_0x3042e1(0x16a)];this[_0x3042e1(0x17d)]=function(_0x4b83fc){const _0x583d70=_0x3042e1,_0x522331=_0x4b83fc[_0x583d70(0x182)][_0x583d70(0x174)];return _0x522331[_0x583d70(0x189)]?0x0!==[..._0x522331[_0x583d70(0x18f)]()][_0x583d70(0x17b)]&&![..._0x522331[_0x583d70(0x18f)]()][0x0][_0x583d70(0x181)]:!!_0x4b83fc[_0x583d70(0x188)](_0x522331[_0x583d70(0x173)]());}(_0x3f6b7);const _0x210588=_0x3f6b7[_0x3042e1(0x182)][_0x3042e1(0x174)],_0xb8533=this[_0x3042e1(0x183)][_0x3042e1(0x197)][_0x3042e1(0x187)](_0x3042e1(0x191));for(const _0x4ba73f of _0x210588[_0x3042e1(0x185)]())for(const _0x194333 of _0x4ba73f[_0x3042e1(0x190)]())if(_0x194333['is'](_0x3042e1(0x194))&&_0xb8533[_0x3042e1(0x196)](_0x194333[_0x3042e1(0x17c)]))return void(this[_0x3042e1(0x170)]=!0x1);this[_0x3042e1(0x170)]=!0x0;}[_0x2fb42f(0x179)](_0x1aada3='',_0x5ef1ad='',_0x52442c=_0x2fb42f(0x177)){const _0x216fe2=_0x2fb42f;this[_0x216fe2(0x183)][_0x216fe2(0x18c)][_0x216fe2(0x187)](_0x3dee0e)[_0x216fe2(0x172)](_0x1aada3,_0x5ef1ad,_0x52442c);}}function K(_0x31b315,_0x465274){const _0x26060b=_0x2fb42f,_0x5c0b02=new Set();for(const _0x5bbc15 of _0x31b315)(_0x465274||!0x1===_0x5bbc15[_0x26060b(0x171)])&&_0x5c0b02[_0x26060b(0x184)](_0x5bbc15['id']);return Array[_0x26060b(0x18a)](_0x5c0b02);}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(
|
|
23
|
+
export function getTranslation(_0x4a189e,_0x18b4d3,_0x2e59b9){const t=_0x4a189e['t'];switch(_0x18b4d3){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',_0x2e59b9);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',_0x2e59b9);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x2e59b9);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'},_0x2e59b9);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 _0x18b4d3;}}
|