@ckeditor/ckeditor5-ai 0.0.0-nightly-20240517.0 → 0.0.0-nightly-20240518.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/dist/index.js +2 -2
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +4 -4
- package/src/adapters/aiadapter.js +1 -1
- package/src/adapters/aitextadapter.js +1 -1
- package/src/adapters/awstextadapter.js +1 -1
- package/src/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant.js +1 -1
- package/src/aiassistantediting.js +1 -1
- package/src/aiassistantui.js +1 -1
- package/src/index.js +1 -1
- package/src/ui/aiassistantcontroller.js +2 -2
- package/src/ui/dropdown/aicommandslistview.js +1 -1
- package/src/ui/dropdown/buttonlabelwithhighlightview.js +1 -1
- package/src/ui/dropdown/labelwithhighlightview.js +1 -1
- package/src/ui/form/aiformcontentarea.js +1 -1
- package/src/ui/form/aiformerrorview.js +1 -1
- package/src/ui/form/aiformpromptview.js +1 -1
- package/src/ui/form/aiformtoolbarview.js +1 -1
- package/src/ui/form/aiformview.js +1 -1
- package/src/ui/form/aihistorylistitemview.js +1 -1
- package/src/ui/form/aihistorylistview.js +1 -1
- package/src/ui/form/prompthistory.js +1 -1
- package/src/ui/showaiassistantcommand.js +1 -1
- package/src/utils/common-translations.js +1 -1
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
const _0x45eab1=_0x3f10;(function(_0x5bccc7,_0x2cf069){const _0x4392e8=_0x3f10,_0x35d065=_0x5bccc7();while(!![]){try{const _0x1281e9=-parseInt(_0x4392e8(0x1bf))/0x1*(-parseInt(_0x4392e8(0x1e4))/0x2)+parseInt(_0x4392e8(0x1c2))/0x3*(-parseInt(_0x4392e8(0x1e7))/0x4)+-parseInt(_0x4392e8(0x1ba))/0x5*(-parseInt(_0x4392e8(0x201))/0x6)+-parseInt(_0x4392e8(0x1bb))/0x7+parseInt(_0x4392e8(0x206))/0x8+parseInt(_0x4392e8(0x1c1))/0x9+parseInt(_0x4392e8(0x1b4))/0xa*(-parseInt(_0x4392e8(0x1f4))/0xb);if(_0x1281e9===_0x2cf069)break;else _0x35d065['push'](_0x35d065['shift']());}catch(_0x331a3e){_0x35d065['push'](_0x35d065['shift']());}}}(_0x5ad6,0x9d23b));function _0x3f10(_0x138874,_0x3947f4){const _0x5ad63b=_0x5ad6();return _0x3f10=function(_0x3f10d0,_0x59adcf){_0x3f10d0=_0x3f10d0-0x1ac;let _0x10cd33=_0x5ad63b[_0x3f10d0];return _0x10cd33;},_0x3f10(_0x138874,_0x3947f4);}import{ObservableMixin as _0xf1cda1}from'ckeditor5/src/utils.js';function _0x5ad6(){const _0x3e9020=['49584RjOOhw','reverse','currentResponse','length','processor','stopListening','name','mainAction','toView','stopProcessing','view','handleError','_xmlSerializer','submitPrompt','nodeType','previousContext','reset','set','custom','document','push','render','serializeToString','set:currentContext','```html','stringify','remove','ELEMENT_NODE','finally','exec','currentContext','```','finishProcessing','previousQuery','14xlZeZw','toModel','message','276ESRkGd','setContentOf','tryAgainEvent','div','parseFromString','abort','initialContext','catch','match','isRendered','editing','startsWith','endsWith','223949MIIepf','previousLabel','rename','element','value','_domParser','editor','isProcessing','data','body','_sanitizationContainer','_parseAndNormalizeContent','text/html','305934lekUyx','then','trim','makeRequest','domConverter','361320GbLRSQ','_handleQuery','childNodes','innerHTML','prompt','from','once','_normalizeResponseHeadings','previousActionId','230NpCEJn','listenTo','substring','destroy','textAdapter','startProcessing','110KjuMVk','1231412PBUpBw','_sanitizeHTML','_stripMarkdownSyntax','createElement','176921QzWzmt','updateView','205902CNAWDI'];_0x5ad6=function(){return _0x3e9020;};return _0x5ad6();}import{AIRequestError as _0xcfb8e4}from'../adapters/aiadapter.js';import{Matcher as _0x408565,UpcastWriter as _0xb62ec2}from'ckeditor5/src/engine.js';const X=new RegExp(/^(.*?)<[a-zA-Z][a-zA-Z0-9_\-.]*[ >]/,'is');export default class k extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0xf1cda1(){constructor(_0x21d7ec,_0x559eca,_0x3dd276){const _0x19626f=_0x3f10;super(),this[_0x19626f(0x1fa)]=_0x21d7ec,this[_0x19626f(0x1b8)]=_0x559eca,this[_0x19626f(0x1fe)]=document[_0x19626f(0x1be)](_0x19626f(0x1ea)),this[_0x19626f(0x1f9)]=new DOMParser(),this[_0x19626f(0x1ce)]=new XMLSerializer(),this[_0x19626f(0x1cc)]=_0x3dd276,this[_0x19626f(0x1d3)]({'initialContext':'','currentContext':'','currentResponse':'','previousContext':void 0x0,'previousQuery':void 0x0,'previousLabel':void 0x0,'isProcessing':!0x1}),this['on'](_0x19626f(0x1d9),(_0x1af028,_0x1219ff,_0x37f871)=>{const _0x1e4084=_0x19626f;this[_0x1e4084(0x1cc)][_0x1e4084(0x1f8)]=this[_0x1e4084(0x1bc)](_0x37f871);}),this[_0x19626f(0x1b5)](this[_0x19626f(0x1cc)],_0x19626f(0x1cf),(_0x50a52a,_0x704ea6)=>{const _0x31e16c=_0x19626f,_0x78e9c9=this[_0x31e16c(0x1e0)]||this[_0x31e16c(0x1ed)];this[_0x31e16c(0x1ac)](_0x704ea6,_0x78e9c9,_0x31e16c(0x1d4));}),this[_0x19626f(0x1b5)](this[_0x19626f(0x1cc)],_0x19626f(0x1e9),()=>{const _0x2176ff=_0x19626f;this[_0x2176ff(0x1cc)][_0x2176ff(0x1af)]=this[_0x2176ff(0x1f5)],this[_0x2176ff(0x1ac)](this[_0x2176ff(0x1e3)],this[_0x2176ff(0x1d1)],this[_0x2176ff(0x1b3)],this[_0x2176ff(0x1f5)]);}),this[_0x19626f(0x1b5)](this[_0x19626f(0x1cc)],_0x19626f(0x1cb),()=>{const _0x5d3250=_0x19626f;this[_0x5d3250(0x1cb)]();});}[_0x45eab1(0x1b7)](){const _0x1ac2f2=_0x45eab1;this[_0x1ac2f2(0x1c7)]();}async[_0x45eab1(0x1c0)]({actionId:_0x1a5a35,query:_0x1b38e8,htmlContent:_0x5a7cd7,label:_0x3befdc,mainActionLabel:_0x1cdaed}){const _0x14f1ae=_0x45eab1;this[_0x14f1ae(0x1cc)][_0x14f1ae(0x1af)]=_0x3befdc,this[_0x14f1ae(0x1cc)][_0x14f1ae(0x1c9)]=_0x1cdaed,this[_0x14f1ae(0x1ed)]=_0x5a7cd7,_0x1b38e8&&(this[_0x14f1ae(0x1cc)][_0x14f1ae(0x1f0)]?this[_0x14f1ae(0x1ac)](_0x1b38e8,_0x5a7cd7,_0x1a5a35,_0x3befdc):this[_0x14f1ae(0x1cc)][_0x14f1ae(0x1b1)](_0x14f1ae(0x1d7),()=>{const _0x2c40a9=_0x14f1ae;this[_0x2c40a9(0x1ac)](_0x1b38e8,_0x5a7cd7,_0x1a5a35,_0x3befdc);}));}[_0x45eab1(0x1cb)](){const _0x1e47e7=_0x45eab1;this[_0x1e47e7(0x1fb)]&&(this[_0x1e47e7(0x1fb)]=!0x1,this[_0x1e47e7(0x1cc)][_0x1e47e7(0x1e2)](),this[_0x1e47e7(0x1b8)][_0x1e47e7(0x1ec)]());}[_0x45eab1(0x1d2)](){const _0x26b949=_0x45eab1;this[_0x26b949(0x1ed)]='',this[_0x26b949(0x1e0)]='',this[_0x26b949(0x1c4)]='',this[_0x26b949(0x1d1)]='',this[_0x26b949(0x1e3)]='',this[_0x26b949(0x1f5)]='',this[_0x26b949(0x1b3)]=void 0x0,this[_0x26b949(0x1cc)][_0x26b949(0x1d2)](),this[_0x26b949(0x1cb)]();}async[_0x45eab1(0x1ac)](_0xd5c162,_0x353244,_0x12453a,_0x38fc95){const _0x3be508=_0x45eab1;return this[_0x3be508(0x1fb)]=!0x0,this[_0x3be508(0x1cc)][_0x3be508(0x1b9)](),this[_0x3be508(0x1d1)]=_0x353244,this[_0x3be508(0x1e3)]=_0xd5c162,this[_0x3be508(0x1f5)]=_0x38fc95||_0xd5c162,this[_0x3be508(0x1b3)]=_0x12453a,new Promise(_0x5322e9=>{const _0x171cb6=_0x3be508;this[_0x171cb6(0x1b8)][_0x171cb6(0x204)]({'query':_0xd5c162,'context':_0x353244,'onData':_0x2abe70=>{const _0x4d7916=_0x171cb6;this[_0x4d7916(0x1c4)]=_0x2abe70,this[_0x4d7916(0x1e0)]=this[_0x4d7916(0x1ff)](this[_0x4d7916(0x1c4)]);},'actionId':_0x12453a})[_0x171cb6(0x202)](()=>{const _0x239e2c=_0x171cb6;!this[_0x239e2c(0x1e0)]&&this[_0x239e2c(0x1c4)]&&(this[_0x239e2c(0x1e0)]=this[_0x239e2c(0x1ff)](this[_0x239e2c(0x1c4)],!0x0));})[_0x171cb6(0x1ee)](_0x136d3e=>{const _0x7d7705=_0x171cb6;_0x136d3e instanceof _0xcfb8e4?this[_0x7d7705(0x1cc)][_0x7d7705(0x1cd)](_0x136d3e[_0x7d7705(0x1e6)]):this[_0x7d7705(0x1cc)][_0x7d7705(0x1cd)](),_0x5322e9();})[_0x171cb6(0x1de)](()=>{const _0x273e68=_0x171cb6;this[_0x273e68(0x1cb)](),_0x5322e9();});});}[_0x45eab1(0x1ff)](_0x19758b,_0x2a54c1=!0x1){const _0x59c85e=_0x45eab1,_0x56ee85=X[_0x59c85e(0x1df)](_0x19758b);_0x19758b=_0x56ee85?_0x19758b[_0x59c85e(0x1b6)](_0x56ee85[0x1][_0x59c85e(0x1c5)]):_0x19758b[_0x59c85e(0x1c5)]<0x64&&!_0x2a54c1?'':this[_0x59c85e(0x1bd)](_0x19758b);const _0x238bce=this[_0x59c85e(0x1f9)][_0x59c85e(0x1eb)](_0x19758b,_0x59c85e(0x200));if(_0x56ee85){const _0x5b4703=Array[_0x59c85e(0x1b0)](_0x238bce[_0x59c85e(0x1fd)][_0x59c85e(0x1ad)]);_0x5b4703[_0x59c85e(0x1c3)]();for(const _0x27faab of _0x5b4703){if(_0x27faab[_0x59c85e(0x1d0)]==Node[_0x59c85e(0x1dd)])break;_0x27faab[_0x59c85e(0x1dc)]();}}const _0x21721b=this[_0x59c85e(0x1fa)][_0x59c85e(0x1fc)][_0x59c85e(0x1c6)][_0x59c85e(0x1ca)](this[_0x59c85e(0x1ce)][_0x59c85e(0x1d8)](_0x238bce[_0x59c85e(0x1fd)]));return this[_0x59c85e(0x1b2)](_0x21721b),this[_0x59c85e(0x1fa)][_0x59c85e(0x1fc)][_0x59c85e(0x1db)](this[_0x59c85e(0x1fa)][_0x59c85e(0x1fc)][_0x59c85e(0x1e5)](_0x21721b));}[_0x45eab1(0x1b2)](_0x350c9c){const _0x236b64=_0x45eab1,_0x45945a=new _0xb62ec2(this[_0x236b64(0x1fa)][_0x236b64(0x1f1)][_0x236b64(0x1cc)][_0x236b64(0x1d5)]),_0x57480a=new _0x408565({'name':/^h[1-5]$/}),_0x2de3cd=[];let _0x19d9df=!0x1;for(const _0x5bea78 of _0x350c9c)_0x5bea78['is'](_0x236b64(0x1f7))&&_0x57480a[_0x236b64(0x1ef)](_0x5bea78)&&(_0x2de3cd[_0x236b64(0x1d6)](_0x5bea78),'h1'==_0x5bea78[_0x236b64(0x1c8)]&&(_0x19d9df=!0x0));if(_0x19d9df){for(const _0x2d12c3 of _0x2de3cd)_0x45945a[_0x236b64(0x1f6)]('h'+(parseInt(_0x2d12c3[_0x236b64(0x1c8)][0x1])+0x1),_0x2d12c3);}}[_0x45eab1(0x1bc)](_0xb3aa59){const _0x3acda9=_0x45eab1;return this[_0x3acda9(0x1fa)][_0x3acda9(0x1f1)][_0x3acda9(0x1cc)][_0x3acda9(0x205)][_0x3acda9(0x1e8)](this[_0x3acda9(0x1fe)],_0xb3aa59),this[_0x3acda9(0x1fe)][_0x3acda9(0x1ae)];}[_0x45eab1(0x1bd)](_0x4a9e43){const _0xf68350=_0x45eab1,_0x5b7dc8=_0x4a9e43[_0xf68350(0x203)]();return _0x5b7dc8[_0xf68350(0x1f2)](_0xf68350(0x1da))?_0x5b7dc8[_0xf68350(0x1f3)](_0xf68350(0x1e1))?_0x5b7dc8[_0xf68350(0x1b6)](0x7,_0x5b7dc8[_0xf68350(0x1c5)]-0x3):_0x5b7dc8[_0xf68350(0x1b6)](0x7):_0x4a9e43;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x34b6(_0x5de7f5,_0x3f417a){const _0x1999a9=_0x1999();return _0x34b6=function(_0x34b6b2,_0x26daab){_0x34b6b2=_0x34b6b2-0x1cf;let _0x1316af=_0x1999a9[_0x34b6b2];return _0x1316af;},_0x34b6(_0x5de7f5,_0x3f417a);}const _0x4fd0e9=_0x34b6;(function(_0x1eff6a,_0x199e85){const _0x2e296f=_0x34b6,_0x1356e4=_0x1eff6a();while(!![]){try{const _0x9536e8=parseInt(_0x2e296f(0x1d5))/0x1+parseInt(_0x2e296f(0x1cf))/0x2*(-parseInt(_0x2e296f(0x1e8))/0x3)+-parseInt(_0x2e296f(0x1e1))/0x4*(-parseInt(_0x2e296f(0x1d8))/0x5)+-parseInt(_0x2e296f(0x1e3))/0x6*(parseInt(_0x2e296f(0x1d4))/0x7)+-parseInt(_0x2e296f(0x1e7))/0x8+-parseInt(_0x2e296f(0x1ea))/0x9+-parseInt(_0x2e296f(0x1d1))/0xa*(-parseInt(_0x2e296f(0x1e0))/0xb);if(_0x9536e8===_0x199e85)break;else _0x1356e4['push'](_0x1356e4['shift']());}catch(_0x14e165){_0x1356e4['push'](_0x1356e4['shift']());}}}(_0x1999,0xc3cbe));import{ListView as _0x466801,ListItemGroupView as _0x1e4faa}from'ckeditor5/src/ui.js';import{AICommandsListItemView as _0x2c02a4}from'../../aiassistantui.js';function _0x1999(){const _0x21daef=['1174691oWMTsv','set','isEnabled','60XDLQye','length','listbox','commandDefinition','match','change:enabledCommandsIds','label','role','17283541gbtRcr','110956lydtiX','labelView','6762ESsyzo','first','items','highlightText','12112496veiRmE','111GiVqbq','enabledCommandsIds','10744173iprFmR','isVisible','get','27334mLIOti','includes','20VzVSfk','filter','children','3941KndmYL'];_0x1999=function(){return _0x21daef;};return _0x1999();}export default class U extends _0x466801{constructor(_0x465bd1){const _0x24f1e6=_0x34b6;super(_0x465bd1),this[_0x24f1e6(0x1df)]=_0x24f1e6(0x1da),this[_0x24f1e6(0x1d6)](_0x24f1e6(0x1e9),[]),this['on'](_0x24f1e6(0x1dd),()=>{const _0xaed14b=_0x24f1e6;for(const _0x1266c9 of this[_0xaed14b(0x1e5)])if(_0x1266c9 instanceof _0x1e4faa){for(const _0x46a048 of _0x1266c9[_0xaed14b(0x1e5)])if(_0x46a048 instanceof _0x2c02a4){const _0x373034=_0x46a048[_0xaed14b(0x1d3)][_0xaed14b(0x1ec)](0x0);this[_0xaed14b(0x1e9)][_0xaed14b(0x1d0)](_0x46a048[_0xaed14b(0x1db)]['id'])?_0x373034[_0xaed14b(0x1d7)]=!0x0:_0x373034[_0xaed14b(0x1d7)]=!0x1;}}});}[_0x4fd0e9(0x1d2)](_0x5c742f){const _0x31a174=_0x4fd0e9;let _0x493fc0=0x0,_0x35b33f=0x0;for(const _0x1ac16e of this[_0x31a174(0x1e5)]){const _0x1d7bb8=_0x1ac16e,_0x3a0b14=_0x1d7bb8[_0x31a174(0x1e5)],_0x262945=_0x5c742f&&!!_0x1d7bb8[_0x31a174(0x1de)][_0x31a174(0x1dc)](_0x5c742f);_0x1d7bb8[_0x31a174(0x1e2)][_0x31a174(0x1e6)](_0x262945?_0x5c742f:null);for(const _0x3f5738 of _0x3a0b14){const _0x25a8da=_0x3f5738[_0x31a174(0x1d3)][_0x31a174(0x1e4)],_0x472a9a=_0x25a8da[_0x31a174(0x1e2)];if(_0x5c742f){const _0x3fa0ef=!!_0x25a8da[_0x31a174(0x1de)][_0x31a174(0x1dc)](_0x5c742f);_0x472a9a[_0x31a174(0x1e6)](_0x3fa0ef?_0x5c742f:null),_0x3f5738[_0x31a174(0x1eb)]=_0x262945||_0x3fa0ef;}else _0x3f5738[_0x31a174(0x1eb)]=!0x0,_0x472a9a[_0x31a174(0x1e6)](null);}const _0x1be0ff=_0x3a0b14[_0x31a174(0x1d2)](_0x56d722=>_0x56d722[_0x31a174(0x1eb)])[_0x31a174(0x1d9)];_0x493fc0+=_0x1d7bb8[_0x31a174(0x1e5)][_0x31a174(0x1d9)],_0x35b33f+=_0x262945?_0x1d7bb8[_0x31a174(0x1e5)][_0x31a174(0x1d9)]:_0x1be0ff,_0x1d7bb8[_0x31a174(0x1eb)]=_0x262945||!!_0x1be0ff;}return{'resultsCount':_0x35b33f,'totalItemsCount':_0x493fc0};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x1e78(){const _0x63ef95=['extendTemplate','2814FVpFWL','12705444UPimWD','1210698rRJspV','bindTemplate','1847700RCALaf','431jiJeox','ck-button__label','1118IwrMXs','5415520GgAzSI','set','style','3737511mGoYjw','22128cLcvvs'];_0x1e78=function(){return _0x63ef95;};return _0x1e78();}(function(_0x565101,_0x22532f){const _0x4f574a=_0x4e34,_0x2c6c5b=_0x565101();while(!![]){try{const _0xb35136=-parseInt(_0x4f574a(0xd0))/0x1*(-parseInt(_0x4f574a(0xd2))/0x2)+-parseInt(_0x4f574a(0xd6))/0x3+-parseInt(_0x4f574a(0xd3))/0x4+parseInt(_0x4f574a(0xcf))/0x5+parseInt(_0x4f574a(0xcd))/0x6+-parseInt(_0x4f574a(0xcb))/0x7*(-parseInt(_0x4f574a(0xd7))/0x8)+parseInt(_0x4f574a(0xcc))/0x9;if(_0xb35136===_0x22532f)break;else _0x2c6c5b['push'](_0x2c6c5b['shift']());}catch(_0x5d1303){_0x2c6c5b['push'](_0x2c6c5b['shift']());}}}(_0x1e78,0xb3bb7));import{HighlightedTextView as _0xb5cc89}from'ckeditor5/src/ui.js';function _0x4e34(_0x48a3c5,_0x31a8ef){const _0x1e7862=_0x1e78();return _0x4e34=function(_0x4e34cc,_0x15006e){_0x4e34cc=_0x4e34cc-0xca;let _0x3a1ed1=_0x1e7862[_0x4e34cc];return _0x3a1ed1;},_0x4e34(_0x48a3c5,_0x31a8ef);}export default class N extends _0xb5cc89{constructor(){const _0x41135d=_0x4e34;super(),this[_0x41135d(0xd4)]({'style':void 0x0,'text':void 0x0,'id':void 0x0});const _0x5827bb=this[_0x41135d(0xce)];this[_0x41135d(0xca)]({'attributes':{'class':[_0x41135d(0xd1)],'style':_0x5827bb['to'](_0x41135d(0xd5)),'id':_0x5827bb['to']('id')}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x2642f6,_0xb45ba7){const _0x1f7e9f=_0x4d4d,_0x2948ae=_0x2642f6();while(!![]){try{const _0x469a83=-parseInt(_0x1f7e9f(0x94))/0x1+-parseInt(_0x1f7e9f(0x9c))/0x2+parseInt(_0x1f7e9f(0x92))/0x3*(parseInt(_0x1f7e9f(0x9b))/0x4)+parseInt(_0x1f7e9f(0x99))/0x5+parseInt(_0x1f7e9f(0x9a))/0x6*(-parseInt(_0x1f7e9f(0x95))/0x7)+parseInt(_0x1f7e9f(0x93))/0x8+-parseInt(_0x1f7e9f(0x9f))/0x9*(-parseInt(_0x1f7e9f(0x91))/0xa);if(_0x469a83===_0xb45ba7)break;else _0x2948ae['push'](_0x2948ae['shift']());}catch(_0x21439a){_0x2948ae['push'](_0x2948ae['shift']());}}}(_0x505e,0xa3e10));function _0x505e(){const _0x4ba375=['ck-label','5881625XrRwns','6Pugaun','16zSORMc','355828GolvHo','ck-editor__label_','extendTemplate','135igmoLd','set','119270SIKVtn','221775QVrXub','4253104muufYW','19519IPQDeu','9197209iEIBnD','for','bindTemplate'];_0x505e=function(){return _0x4ba375;};return _0x505e();}function _0x4d4d(_0x4a01b6,_0x42c62c){const _0x505ec8=_0x505e();return _0x4d4d=function(_0x4d4d3d,_0x1a780e){_0x4d4d3d=_0x4d4d3d-0x91;let _0x4e0286=_0x505ec8[_0x4d4d3d];return _0x4e0286;},_0x4d4d(_0x4a01b6,_0x42c62c);}import{HighlightedTextView as _0x151097}from'ckeditor5/src/ui.js';import{uid as _0x38264e}from'ckeditor5/src/utils.js';export default class S extends _0x151097{constructor(){const _0x2ee4ad=_0x4d4d;super(),this[_0x2ee4ad(0xa0)](_0x2ee4ad(0x96),void 0x0);const _0xc23e62=this[_0x2ee4ad(0x97)];this['id']=_0x2ee4ad(0x9d)+_0x38264e(),this[_0x2ee4ad(0x9e)]({'attributes':{'class':['ck',_0x2ee4ad(0x98)],'id':this['id'],'for':_0xc23e62['to'](_0x2ee4ad(0x96))}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x2a89be=_0xcc19;(function(_0x2a6a5d,_0x2ea6ad){const _0x272843=_0xcc19,_0x2079f8=_0x2a6a5d();while(!![]){try{const _0x240db3=parseInt(_0x272843(0x197))/0x1+-parseInt(_0x272843(0x195))/0x2+parseInt(_0x272843(0x1bd))/0x3+-parseInt(_0x272843(0x1d1))/0x4+parseInt(_0x272843(0x1bc))/0x5*(parseInt(_0x272843(0x1c6))/0x6)+parseInt(_0x272843(0x1aa))/0x7*(-parseInt(_0x272843(0x19a))/0x8)+parseInt(_0x272843(0x1af))/0x9*(-parseInt(_0x272843(0x1b6))/0xa);if(_0x240db3===_0x2ea6ad)break;else _0x2079f8['push'](_0x2079f8['shift']());}catch(_0xb995dc){_0x2079f8['push'](_0x2079f8['shift']());}}}(_0x4f41,0x49971));import{global as _0x22efba}from'ckeditor5/src/utils.js';import{View as _0x47df8d,ButtonView as _0x4f2db6,SpinnerView as _0x50ba77}from'ckeditor5/src/ui.js';import _0xf1cd3d from'../../../theme/icons/copy.svg';function _0x4f41(){const _0x305140=['set','absolute','<span>[</span>','scrollHeight','scrollTo','execCommand','ck-ai-form__content-area','bind','textContent','copy','isEnabled','ck-ai-form__copy-button','ck-ai-form__loader','84960scdbxH','style','496142jTiSpp','_copyHTMLToClipboard','wheel','6344KkSTdC','body','change:value','.ck-ai-form__loader','ck-ai-form__content-field','icon','getSelection','_createLoader','appendChild','setTemplate','ClipboardItem','copyButtonView','firstElementChild','clipboard','mousedown','innerHTML','1141oNwIQa','contentFieldView','isVisible','-9999px','addRange','1557mCZSHM','ck-reset_all-excluded','value','isProcessing','position','createElement','execute','26330DYwzVJ','element','createRange','write','remove','removeAllRanges','1576670OifUCa','746061zifxvc','focus','<span>]</span>','ck-hidden','smooth','Copy','setContent','div','class','6lxqCdQ','listenTo','ck-ai-form__copy-button-wrapper','ck-ai-form__content-area--processing','change:isProcessing','setStartAfter','bindTemplate','querySelector','_createCopyButton','render','check','525960EoKHAf','lastElementChild','\x20ck-ai-form__copy-button--copied','left','appendLoader','ck-ai-form__content-area-wrapper','loaderView','text/plain','text/html','locale','AI\x20is\x20writing...','setEndBefore','ck-content'];_0x4f41=function(){return _0x305140;};return _0x4f41();}function _0xcc19(_0xb87332,_0x454232){const _0x4f413e=_0x4f41();return _0xcc19=function(_0xcc1984,_0x2f8a64){_0xcc1984=_0xcc1984-0x186;let _0x138abc=_0x4f413e[_0xcc1984];return _0x138abc;},_0xcc19(_0xb87332,_0x454232);}import{getTranslation as _0x4154c1}from'../../utils/common-translations.js';import{icons as _0x24ee61}from'ckeditor5/src/core.js';export default class nt extends _0x47df8d{constructor(_0x465776,_0x308581=''){const _0x8ff1fc=_0xcc19;super(_0x465776),this[_0x8ff1fc(0x188)]({'value':null,'isVisible':!0x1,'isProcessing':!0x1});const _0x7f64bb=this[_0x8ff1fc(0x1cc)];this[_0x8ff1fc(0x1ab)]=new ContentFieldView(_0x465776,_0x308581),this[_0x8ff1fc(0x1a5)]=this[_0x8ff1fc(0x1ce)](),this[_0x8ff1fc(0x1a3)]({'tag':_0x8ff1fc(0x1c4),'attributes':{'class':['ck',_0x8ff1fc(0x1d6),_0x7f64bb['if'](_0x8ff1fc(0x1ac),_0x8ff1fc(0x1c0),_0x307f74=>!_0x307f74)],'tabindex':'-1'},'children':[{'tag':_0x8ff1fc(0x1c4),'attributes':{'class':['ck',_0x8ff1fc(0x18e),_0x7f64bb['if'](_0x8ff1fc(0x1b2),_0x8ff1fc(0x1c9))]},'children':[this[_0x8ff1fc(0x1ab)],{'tag':_0x8ff1fc(0x1c4),'attributes':{'class':['ck',_0x8ff1fc(0x1c8)]},'children':[this[_0x8ff1fc(0x1a5)]]}]}]});}[_0x2a89be(0x1cf)](){const _0x661dad=_0x2a89be;super[_0x661dad(0x1cf)](),this[_0x661dad(0x1b1)]&&this[_0x661dad(0x1ab)][_0x661dad(0x1c3)](this[_0x661dad(0x1b1)]);let _0x98ae7=!0x1;this['on'](_0x661dad(0x19c),(_0xb5a79e,_0x562e8c,_0x53840e)=>{const _0x349f08=_0x661dad,_0x4afaa8=!this[_0x349f08(0x1ab)][_0x349f08(0x1b7)][_0x349f08(0x1cd)](_0x349f08(0x19d));this[_0x349f08(0x1ab)][_0x349f08(0x1c3)](_0x53840e),this[_0x349f08(0x1b2)]&&_0x4afaa8&&!_0x98ae7&&this[_0x349f08(0x1b7)][_0x349f08(0x18c)]({'top':this[_0x349f08(0x1b7)][_0x349f08(0x18b)],'behavior':_0x349f08(0x1c1)});}),this['on'](_0x661dad(0x1ca),(_0x565607,_0x22db39,_0x3c0734)=>{const _0x1b1ae5=_0x661dad;_0x98ae7=!0x1,_0x3c0734?(this[_0x1b1ae5(0x1b1)]=null,this[_0x1b1ae5(0x1ab)][_0x1b1ae5(0x1d5)]()):this[_0x1b1ae5(0x1b1)]||this[_0x1b1ae5(0x1ab)][_0x1b1ae5(0x1c3)]('');}),this[_0x661dad(0x1c7)](this[_0x661dad(0x1b7)],_0x661dad(0x199),()=>{_0x98ae7=!0x0;}),this[_0x661dad(0x1c7)](this[_0x661dad(0x1b7)],_0x661dad(0x1a8),()=>{_0x98ae7=!0x0;});}[_0x2a89be(0x1be)](){const _0x2c57e3=_0x2a89be;this[_0x2c57e3(0x1b7)][_0x2c57e3(0x1be)]();}[_0x2a89be(0x1ce)](){const _0x5a8bba=_0x2a89be,_0x5dc4d4=this[_0x5a8bba(0x1da)],_0x3b6036=new _0x4f2db6(this[_0x5a8bba(0x1da)]),_0x489de9=_0x5a8bba(0x193);return _0x3b6036[_0x5a8bba(0x188)]({'label':_0x4154c1(_0x5dc4d4,_0x5a8bba(0x1c2)),'icon':_0xf1cd3d,'class':_0x489de9,'tooltip':!0x0}),_0x3b6036[_0x5a8bba(0x18f)](_0x5a8bba(0x1ac))['to'](this,_0x5a8bba(0x1b1),_0x1957fc=>!!_0x1957fc),_0x3b6036[_0x5a8bba(0x18f)](_0x5a8bba(0x192))['to'](this,_0x5a8bba(0x1b2),_0x166d50=>!_0x166d50),_0x3b6036['on'](_0x5a8bba(0x1b5),()=>{const _0x570eb4=_0x5a8bba;this[_0x570eb4(0x198)](this[_0x570eb4(0x1ab)][_0x570eb4(0x1b7)]),_0x3b6036[_0x570eb4(0x19f)]=_0x24ee61[_0x570eb4(0x1d0)],_0x3b6036[_0x570eb4(0x1c5)]=_0x489de9+_0x570eb4(0x1d3),this[_0x570eb4(0x1be)](),setTimeout(()=>{const _0x11101e=_0x570eb4;_0x3b6036[_0x11101e(0x19f)]=_0xf1cd3d,_0x3b6036[_0x11101e(0x1c5)]=_0x489de9;},0x3e8);}),_0x3b6036;}[_0x2a89be(0x198)](_0x43291c){const _0x5db48e=_0x2a89be,{window:_0x456378,document:_0x410cc1}=_0x22efba;if(_0x456378[_0x5db48e(0x1a4)]){const {Blob:_0x410b6c,ClipboardItem:_0x2e4284}=_0x456378,_0x66179d=[new _0x2e4284({'text/html':new _0x410b6c([_0x43291c[_0x5db48e(0x1a9)]],{'type':_0x5db48e(0x1d9)}),'text/plain':new _0x410b6c([_0x43291c[_0x5db48e(0x190)]||''],{'type':_0x5db48e(0x1d8)})})];navigator[_0x5db48e(0x1a7)][_0x5db48e(0x1b9)](_0x66179d);}else{const _0xf9f867=_0x410cc1[_0x5db48e(0x1b4)](_0x5db48e(0x1c4));_0xf9f867[_0x5db48e(0x196)][_0x5db48e(0x1b3)]=_0x5db48e(0x189),_0xf9f867[_0x5db48e(0x196)][_0x5db48e(0x1d4)]=_0x5db48e(0x1ad),_0xf9f867[_0x5db48e(0x1a9)]=_0x5db48e(0x18a)+_0x43291c[_0x5db48e(0x1a9)]+_0x5db48e(0x1bf),_0x410cc1[_0x5db48e(0x19b)][_0x5db48e(0x1a2)](_0xf9f867);const _0x294cef=_0x410cc1[_0x5db48e(0x1b8)]();_0x294cef[_0x5db48e(0x1cb)](_0xf9f867[_0x5db48e(0x1a6)]),_0x294cef[_0x5db48e(0x186)](_0xf9f867[_0x5db48e(0x1d2)]);const _0x26683c=_0x456378[_0x5db48e(0x1a0)]();_0x26683c[_0x5db48e(0x1bb)](),_0x26683c[_0x5db48e(0x1ae)](_0x294cef),_0x410cc1[_0x5db48e(0x18d)](_0x5db48e(0x191)),_0xf9f867[_0x5db48e(0x1ba)]();}}}export class ContentFieldView extends _0x47df8d{constructor(_0x9a91af,_0x13766b=''){const _0x262629=_0x2a89be;super(_0x9a91af),this[_0x262629(0x1d7)]=this[_0x262629(0x1a1)](),this[_0x262629(0x1a3)]({'tag':_0x262629(0x1c4),'attributes':{'class':['ck',_0x262629(0x187),_0x13766b,_0x262629(0x1b0),_0x262629(0x19e)]}});}[_0x2a89be(0x1c3)](_0x342572){const _0x5c71c2=_0x2a89be;this[_0x5c71c2(0x1b7)][_0x5c71c2(0x1a9)]=_0x342572;}[_0x2a89be(0x1d5)](){const _0x1ab33a=_0x2a89be;this[_0x1ab33a(0x1b7)][_0x1ab33a(0x1a2)](this[_0x1ab33a(0x1d7)][_0x1ab33a(0x1b7)]);}[_0x2a89be(0x1a1)](){const _0xafb5ed=_0x2a89be,_0x49ba86=new _0x47df8d(),_0x299ccc=this[_0xafb5ed(0x1da)],_0x34b4d6=new _0x50ba77();return _0x34b4d6[_0xafb5ed(0x1ac)]=!0x0,_0x49ba86[_0xafb5ed(0x1a3)]({'tag':_0xafb5ed(0x1c4),'attributes':{'class':['ck',_0xafb5ed(0x194)]},'children':[_0x34b4d6,{'text':_0x4154c1(_0x299ccc,_0xafb5ed(0x1db))}]}),_0x49ba86[_0xafb5ed(0x1cf)](),_0x49ba86;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x1a3a2e,_0x3cda3a){const _0x50a219=_0x2bd6,_0x58f2d3=_0x1a3a2e();while(!![]){try{const _0x36ca18=-parseInt(_0x50a219(0x157))/0x1+-parseInt(_0x50a219(0x155))/0x2*(-parseInt(_0x50a219(0x15a))/0x3)+parseInt(_0x50a219(0x153))/0x4*(parseInt(_0x50a219(0x159))/0x5)+-parseInt(_0x50a219(0x156))/0x6*(parseInt(_0x50a219(0x162))/0x7)+parseInt(_0x50a219(0x15b))/0x8+parseInt(_0x50a219(0x158))/0x9+-parseInt(_0x50a219(0x15f))/0xa*(parseInt(_0x50a219(0x161))/0xb);if(_0x36ca18===_0x3cda3a)break;else _0x58f2d3['push'](_0x58f2d3['shift']());}catch(_0x1dbbca){_0x58f2d3['push'](_0x58f2d3['shift']());}}}(_0x5ce6,0x9cb7e));function _0x2bd6(_0x2bf322,_0x43cdeb){const _0x5ce614=_0x5ce6();return _0x2bd6=function(_0x2bd67e,_0x501b47){_0x2bd67e=_0x2bd67e-0x153;let _0x1ba0b3=_0x5ce614[_0x2bd67e];return _0x1ba0b3;},_0x2bd6(_0x2bf322,_0x43cdeb);}import{View as _0x305f42,IconView as _0x1200d2}from'ckeditor5/src/ui.js';import _0x4d2958 from'../../../theme/icons/error.svg';function _0x5ce6(){const _0x35815d=['332oUVQOX','set','74SgLVPG','12OsLiTL','680620BiUNyu','8298369ofnrLr','75610pQTHUF','18243qBhkyC','5601064qiIXPF','bindTemplate','text','ck-ai-form__error','3422410XmQnPb','content','33civGGb','2635626OWKwHf','setTemplate','div'];_0x5ce6=function(){return _0x35815d;};return _0x5ce6();}export default class mt extends _0x305f42{constructor(_0x21173b,_0x4a1eeb=''){const _0x4c6c83=_0x2bd6;super(_0x21173b);const _0x34cad1=new _0x1200d2(),_0x101493=this[_0x4c6c83(0x15c)];this[_0x4c6c83(0x154)](_0x4c6c83(0x15d),_0x4a1eeb),_0x34cad1[_0x4c6c83(0x160)]=_0x4d2958,this[_0x4c6c83(0x163)]({'tag':_0x4c6c83(0x164),'attributes':{'class':['ck',_0x4c6c83(0x15e)]},'children':[_0x34cad1,{'text':_0x101493['to'](_0x4c6c83(0x15d))}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x294fd3=_0xb6ac;(function(_0x49e67f,_0x10a008){const _0x85247b=_0xb6ac,_0x2d3cf1=_0x49e67f();while(!![]){try{const _0xdeb6a=-parseInt(_0x85247b(0xd4))/0x1+-parseInt(_0x85247b(0xdb))/0x2+-parseInt(_0x85247b(0xcc))/0x3*(parseInt(_0x85247b(0xdd))/0x4)+-parseInt(_0x85247b(0xd0))/0x5+parseInt(_0x85247b(0xf1))/0x6*(parseInt(_0x85247b(0xd1))/0x7)+parseInt(_0x85247b(0xde))/0x8*(-parseInt(_0x85247b(0xcd))/0x9)+parseInt(_0x85247b(0xe6))/0xa;if(_0xdeb6a===_0x10a008)break;else _0x2d3cf1['push'](_0x2d3cf1['shift']());}catch(_0x52bab5){_0x2d3cf1['push'](_0x2d3cf1['shift']());}}}(_0x4c54,0x2a052));import{Rect as _0x3fa1c5,global as _0x52e8b0,isVisible as _0x1f4044}from'ckeditor5/src/utils.js';import{AutocompleteView as _0x20cac5,ButtonView as _0x1ce31a}from'ckeditor5/src/ui.js';import{icons as _0x4474dc}from'ckeditor5/src/core.js';import{getTranslation as _0x17f5da}from'../../utils/common-translations.js';import _0x405a8e from'../../../theme/icons/submit.svg';function _0xb6ac(_0x19ccf3,_0x3f19ad){const _0x4c5474=_0x4c54();return _0xb6ac=function(_0xb6ac93,_0x1d9d90){_0xb6ac93=_0xb6ac93-0xc0;let _0x50775c=_0x4c5474[_0xb6ac93];return _0x50775c;},_0xb6ac(_0x19ccf3,_0x3f19ad);}export default class pt extends _0x20cac5{constructor(_0x1eb662,_0x316f72){const _0x44ecd2=_0xb6ac;super(_0x1eb662,_0x316f72),this[_0x44ecd2(0xca)][_0x44ecd2(0xc8)][_0x44ecd2(0xf9)]=0x1,this[_0x44ecd2(0xca)][_0x44ecd2(0xc8)][_0x44ecd2(0xc2)]=0x3,this[_0x44ecd2(0xcb)]=this[_0x44ecd2(0xed)](),this[_0x44ecd2(0xf2)]=this[_0x44ecd2(0xf5)](),this[_0x44ecd2(0xf4)][_0x44ecd2(0xcf)](this[_0x44ecd2(0xf2)],0x1),this[_0x44ecd2(0xf4)][_0x44ecd2(0xcf)](this[_0x44ecd2(0xcb)]);}[_0x294fd3(0xc1)](){const _0x591f64=_0x294fd3;super[_0x591f64(0xc1)](),this[_0x591f64(0xca)][_0x591f64(0xc6)][_0x591f64(0xcf)](this[_0x591f64(0xf2)]),this[_0x591f64(0xef)][_0x591f64(0xcf)](this[_0x591f64(0xcb)]),this[_0x591f64(0xd7)][_0x591f64(0xe9)](_0x591f64(0xc9),(_0x2dd8f5,_0x104f75)=>{const _0x4af05e=_0x591f64;_0x2dd8f5[_0x4af05e(0xec)]==this[_0x4af05e(0xca)][_0x4af05e(0xc8)][_0x4af05e(0xd8)]&&(this[_0x4af05e(0xd9)](),_0x104f75());});}[_0x294fd3(0xed)](){const _0x5acbb3=_0x294fd3,_0x171e34=new _0x1ce31a(this[_0x5acbb3(0xda)]),_0x3abdfd=this[_0x5acbb3(0xda)];return _0x171e34[_0x5acbb3(0xe9)]({'icon':_0x405a8e,'label':_0x17f5da(_0x3abdfd,_0x5acbb3(0xc5)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x5acbb3(0xfa)}),_0x171e34['on'](_0x5acbb3(0xe0),()=>{const _0x2d0d2d=_0x5acbb3;this[_0x2d0d2d(0xd9)]();}),_0x171e34[_0x5acbb3(0xc0)](_0x5acbb3(0xd6))['to'](this[_0x5acbb3(0xca)][_0x5acbb3(0xc8)],_0x5acbb3(0xe5),this,_0x5acbb3(0xd6),(_0x314e88,_0x337731)=>!_0x314e88&&_0x337731),_0x171e34;}[_0x294fd3(0xf5)](){const _0x89d464=_0x294fd3,_0xf11694=new _0x1ce31a(this[_0x89d464(0xda)]),_0x32367b=this[_0x89d464(0xea)],_0x1b1fe3=this[_0x89d464(0xda)];_0xf11694[_0x89d464(0xe9)]({'label':_0x17f5da(_0x1b1fe3,_0x89d464(0xc7)),'withText':!0x1,'icon':_0x4474dc[_0x89d464(0xd2)],'tooltip':!0x0,'tooltipPosition':'sw','class':_0x89d464(0xe4)}),_0xf11694[_0x89d464(0xc0)](_0x89d464(0xdc))['to'](_0x32367b,_0x89d464(0xf6)),_0xf11694[_0x89d464(0xc0)](_0x89d464(0xd6))['to'](this,_0x89d464(0xd6)),_0xf11694['on'](_0x89d464(0xe0),()=>{const _0x573a7e=_0x89d464;_0x32367b[_0x573a7e(0xf6)]=!_0x32367b[_0x573a7e(0xf6)],_0x32367b[_0x573a7e(0xf6)]?this[_0x573a7e(0xc3)][_0x573a7e(0xf0)]():this[_0x573a7e(0xf0)]();});const _0xdbbc48=()=>{const _0x4862fc=_0x89d464;_0x52e8b0[_0x4862fc(0xe1)][_0x4862fc(0xce)](()=>{const _0x91e393=_0x4862fc;if(_0x1f4044(this[_0x91e393(0xd8)])){const _0x2f7d2b=new _0x3fa1c5(this[_0x91e393(0xca)][_0x91e393(0xc8)][_0x91e393(0xd8)]),_0x1deca6=_0x2f7d2b[_0x91e393(0xc4)],_0x52c26c=_0x91e393(0xf7)===_0x1b1fe3[_0x91e393(0xf3)]?_0x91e393(0xdf):_0x91e393(0xe8);_0x2f7d2b[_0x91e393(0xee)](),_0xf11694[_0x91e393(0xd8)][_0x91e393(0xeb)][_0x52c26c]=_0x1deca6-_0x2f7d2b[_0x91e393(0xc4)]+0x1+'px';}});};return this[_0x89d464(0xca)][_0x89d464(0xc8)]['on'](_0x89d464(0xd5),_0xdbbc48),this['on'](_0x89d464(0xc1),_0xdbbc48),_0xf11694;}[_0x294fd3(0xd9)](){const _0x386009=_0x294fd3,_0x19563f=this[_0x386009(0xca)][_0x386009(0xc8)][_0x386009(0xd8)][_0x386009(0xe7)];this[_0x386009(0xd3)](_0x386009(0xd9),_0x19563f);}[_0x294fd3(0xf0)](_0x56ed71){const _0xb9154c=_0x294fd3;-0x1===_0x56ed71?this[_0xb9154c(0xe2)][_0xb9154c(0xf8)]():this[_0xb9154c(0xe2)][_0xb9154c(0xe3)]();}}function _0x4c54(){const _0x287c71=['element','submit','locale','225266CgUmSX','isOn','539492uDgYnp','8HbMeSy','left','execute','window','focusCycler','focusFirst','ck-ai-form__toggle-history','isEmpty','7510050MYicka','value','right','set','resultsView','style','target','_createSubmitButton','excludeScrollbarsAndBorders','children','focus','456dkYPdP','showHistoryButtonView','uiLanguageDirection','focusableChildren','_createShowHistoryButton','isVisible','rtl','focusLast','minRows','ck-ai-form__submit','bind','render','maxRows','filteredView','width','Submit','fieldWrapperChildren','History','fieldView','enter','queryView','submitButtonView','3uwXDnq','935838JeddxB','requestAnimationFrame','add','1283425NCYPzq','7049ddzDWX','history','fire','47250ohqgFW','update','isEnabled','keystrokes'];_0x4c54=function(){return _0x287c71;};return _0x4c54();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5f2375=_0x44b4;(function(_0x1c7103,_0x54eacc){const _0x16e0ca=_0x44b4,_0x5ec77c=_0x1c7103();while(!![]){try{const _0x21d975=parseInt(_0x16e0ca(0x92))/0x1*(-parseInt(_0x16e0ca(0x82))/0x2)+-parseInt(_0x16e0ca(0x8e))/0x3*(-parseInt(_0x16e0ca(0x9d))/0x4)+parseInt(_0x16e0ca(0x9f))/0x5+-parseInt(_0x16e0ca(0x87))/0x6*(-parseInt(_0x16e0ca(0x95))/0x7)+parseInt(_0x16e0ca(0x8b))/0x8+-parseInt(_0x16e0ca(0x88))/0x9+parseInt(_0x16e0ca(0x98))/0xa*(-parseInt(_0x16e0ca(0xa1))/0xb);if(_0x21d975===_0x54eacc)break;else _0x5ec77c['push'](_0x5ec77c['shift']());}catch(_0x4ab883){_0x5ec77c['push'](_0x5ec77c['shift']());}}}(_0x4cc8,0xd1d84));import{ToolbarView as _0x4c82fe,ButtonView as _0x226290}from'ckeditor5/src/ui.js';import{getTranslation as _0x4850e6}from'../../utils/common-translations.js';export const AIFormToolbarViewMainActionLabel={'REPLACE':_0x5f2375(0x90),'INSERT':_0x5f2375(0x8c)};function _0x4cc8(){const _0x5d3509=['addMany','REPLACE','extendTemplate','1344UbrrMA','5992632nGZTQK','tryAgainButton','label','11593568xGinZl','insert','Try\x20again','41274foUJpu','ck-button-action','replace','locale','1RCvELY','bindTemplate','toUpperCase','7oWBAPI','isVisible','insertButton','2987650BBVeCm','set','_createButton','bind','ck-hidden','24ipaONC','stopButton','8530795SOBWQT','mainAction','33zugAjb','ck-ai-form__toolbar','Stop','AI_','replaceButton','Insert\x20below','items','1632920nzqWrt','_CONTENT'];_0x4cc8=function(){return _0x5d3509;};return _0x4cc8();}function _0x44b4(_0x35c31c,_0x4e2a78){const _0x4cc863=_0x4cc8();return _0x44b4=function(_0x44b4f3,_0x242197){_0x44b4f3=_0x44b4f3-0x7c;let _0x465523=_0x4cc863[_0x44b4f3];return _0x465523;},_0x44b4(_0x35c31c,_0x4e2a78);}export default class Tt extends _0x4c82fe{constructor(_0x57266c){const _0x27fe9c=_0x5f2375;super(_0x57266c),this[_0x27fe9c(0x99)](_0x27fe9c(0x96),!0x1),this[_0x27fe9c(0x99)](_0x27fe9c(0xa0),AIFormToolbarViewMainActionLabel[_0x27fe9c(0x85)]),this[_0x27fe9c(0x7f)]=this[_0x27fe9c(0x9a)]('',_0x27fe9c(0x8f)),this[_0x27fe9c(0x7f)][_0x27fe9c(0x9b)](_0x27fe9c(0x8a))['to'](this,_0x27fe9c(0xa0),_0x5c42e8=>_0x4850e6(_0x57266c,_0x27fe9c(0x7e)+_0x5c42e8[_0x27fe9c(0x94)]()+_0x27fe9c(0x83))),this[_0x27fe9c(0x97)]=this[_0x27fe9c(0x9a)](_0x4850e6(_0x57266c,_0x27fe9c(0x80))),this[_0x27fe9c(0x89)]=this[_0x27fe9c(0x9a)](_0x4850e6(_0x57266c,_0x27fe9c(0x8d))),this[_0x27fe9c(0x9e)]=this[_0x27fe9c(0x9a)](_0x4850e6(_0x57266c,_0x27fe9c(0x7d)));const _0x21f54f=this[_0x27fe9c(0x93)];this[_0x27fe9c(0x86)]({'attributes':{'class':[_0x27fe9c(0x7c),_0x21f54f['if'](_0x27fe9c(0x96),_0x27fe9c(0x9c),_0x1e890c=>!_0x1e890c)]}}),this[_0x27fe9c(0x81)][_0x27fe9c(0x84)]([this[_0x27fe9c(0x7f)],this[_0x27fe9c(0x97)],this[_0x27fe9c(0x89)],this[_0x27fe9c(0x9e)]]);}[_0x5f2375(0x9a)](_0x189c93,_0x35cbf4){const _0x2f9861=_0x5f2375,_0x565db4=new _0x226290(this[_0x2f9861(0x91)]);return _0x565db4[_0x2f9861(0x99)]({'label':_0x189c93,'class':_0x35cbf4||'','isVisible':!0x0,'withText':!0x0}),_0x565db4;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2a7cc9=_0x141a;(function(_0x11a98a,_0x1e89b1){const _0x325b8d=_0x141a,_0x2f67d0=_0x11a98a();while(!![]){try{const _0x1a72f8=parseInt(_0x325b8d(0x9c))/0x1+-parseInt(_0x325b8d(0xaa))/0x2+parseInt(_0x325b8d(0xd9))/0x3+-parseInt(_0x325b8d(0xe3))/0x4+-parseInt(_0x325b8d(0xda))/0x5+-parseInt(_0x325b8d(0xe9))/0x6+parseInt(_0x325b8d(0xab))/0x7;if(_0x1a72f8===_0x1e89b1)break;else _0x2f67d0['push'](_0x2f67d0['shift']());}catch(_0x4fec79){_0x2f67d0['push'](_0x2f67d0['shift']());}}}(_0x41a7,0x1c6cc));import{FocusTracker as _0xb4284a,KeystrokeHandler as _0x356b48}from'ckeditor5/src/utils.js';import{View as _0x5d8d2a,FocusCycler as _0x275ed5,createLabeledTextarea as _0x593723}from'ckeditor5/src/ui.js';function _0x141a(_0x4fb187,_0x1a5f26){const _0x41a7c4=_0x41a7();return _0x141a=function(_0x141a78,_0x8f7b68){_0x141a78=_0x141a78-0x9c;let _0x1d745f=_0x41a7c4[_0x141a78];return _0x1d745f;},_0x141a(_0x4fb187,_0x1a5f26);}function _0x41a7(){const _0x4e8078=['execute','render','_createHistoryView','573246gLaahD','859480EutaPg','Ask\x20AI\x20to\x20edit\x20or\x20generate','bindTo','replaceContent','stopButton','_createToolbar','insertButton','stopProcessing','historyGroupView','318724lnWKlG','div','ck-ai-form-content','value','Ask\x20AI\x20to\x20improve\x20generated\x20text','ck-ai-form','544830zNXtmX','label','bindTemplate','text','prompt','setTemplate','focusTracker','focusCycler','focus','6478OjfhRK','shift\x20+\x20tab','submit','_promptHistory','handleError','tab','_focusables','forwardCycle','tryAgainEvent','Empty\x20history','isVisible','bind','mainAction','locale','240256PfWHuq','2669646tkEVJA','fire','tryAgainButton','focusFirst','isProcessing','focusNext','items','trim','ck-hidden','copyButtonView','search','_createPromptView','listenTo','replaceButton','clearHistory','clear','delegate','toolbar','REPLACE','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','isError','fieldView','focusPrevious','backwardCycle','element','add','keystrokes','focusLast','stop','promptView','createCollection','reset','isEnabled','submitPrompt','startProcessing','queryView','high','errorView','insertContentBelow','set','finishProcessing','contentArea','AI_ERROR_FAILED'];_0x41a7=function(){return _0x4e8078;};return _0x41a7();}import _0x5b9beb,{AIFormToolbarViewMainActionLabel as _0x75c4a7}from'./aiformtoolbarview.js';import _0xdfc64e from'./aiformcontentarea.js';import _0x44ea57 from'./aiformerrorview.js';import _0x5d65d8 from'./aiformpromptview.js';import _0x5a231e from'./aihistorylistview.js';import _0x355821 from'./aihistorylistitemview.js';import _0x50d3b3 from'./prompthistory.js';import{getTranslation as _0x322120}from'../../utils/common-translations.js';import{escape as _0x179a93}from'lodash-es';export default class x extends _0x5d8d2a{constructor(_0x119fe5,_0x3e2891,_0x16f714=''){const _0x284477=_0x141a;super(_0x119fe5),this[_0x284477(0xd2)](_0x284477(0xcb),!0x0),this[_0x284477(0xd2)](_0x284477(0xaf),!0x1),this[_0x284477(0xd2)](_0x284477(0xed),''),this[_0x284477(0xd2)](_0x284477(0xe6),''),this[_0x284477(0xd2)](_0x284477(0xbf),!0x1),this[_0x284477(0xd2)](_0x284477(0xa8),_0x75c4a7[_0x284477(0xbd)]),this[_0x284477(0x9f)]=new _0x50d3b3(),this[_0x284477(0xd0)]=new _0x44ea57(_0x119fe5),this[_0x284477(0xd4)]=new _0xdfc64e(_0x119fe5,_0x16f714),this[_0x284477(0xd4)][_0x284477(0xa7)](_0x284477(0xaf))['to'](this),this[_0x284477(0xd4)][_0x284477(0xa7)](_0x284477(0xe6))['to'](this),this[_0x284477(0xbc)]=this[_0x284477(0xdf)](),this[_0x284477(0xbc)][_0x284477(0xa7)](_0x284477(0xa8))['to'](this),this[_0x284477(0xc8)]=this[_0x284477(0xb6)](),this[_0x284477(0xef)]=new _0xb4284a(),this[_0x284477(0xc5)]=new _0x356b48(),this[_0x284477(0xa2)]=this[_0x284477(0xc9)]([this[_0x284477(0xd4)],this[_0x284477(0xd4)][_0x284477(0xb4)],this[_0x284477(0xbc)],this[_0x284477(0xc8)]]),this[_0x284477(0xf0)]=new _0x275ed5({'focusables':this[_0x284477(0xa2)],'focusTracker':this[_0x284477(0xef)],'keystrokeHandler':this[_0x284477(0xc5)],'actions':{'focusPrevious':_0x284477(0x9d),'focusNext':_0x284477(0xa1)}}),this[_0x284477(0xc8)][_0x284477(0xf0)]['on'](_0x284477(0xa3),_0x2199e3=>{const _0x1b637c=_0x284477;this[_0x1b637c(0xf0)][_0x1b637c(0xb0)](),_0x2199e3[_0x1b637c(0xc7)]();}),this[_0x284477(0xc8)][_0x284477(0xf0)]['on'](_0x284477(0xc2),_0xe88fff=>{const _0x3b92a0=_0x284477;this[_0x3b92a0(0xf0)][_0x3b92a0(0xc1)](),_0xe88fff[_0x3b92a0(0xc7)]();}),this[_0x284477(0xc8)][_0x284477(0xce)][_0x284477(0xc0)][_0x284477(0xa7)](_0x284477(0xe6))['to'](this,_0x284477(0xed));const _0xacffd=this[_0x284477(0xeb)];this[_0x284477(0xee)]({'tag':_0x284477(0xe4),'attributes':{'class':['ck',_0x284477(0xe8),_0x3e2891],'tabindex':'-1'},'children':[{'tag':_0x284477(0xe4),'attributes':{'class':['ck',_0x284477(0xe5)]},'children':[{'tag':_0x284477(0xe4),'attributes':{'class':[_0xacffd['if'](_0x284477(0xbf),_0x284477(0xb3),_0x28eeaf=>!_0x28eeaf)]},'children':[this[_0x284477(0xd0)]]},this[_0x284477(0xd4)],this[_0x284477(0xbc)],this[_0x284477(0xc8)]]}]});}[_0x2a7cc9(0xd7)](){const _0x1d9c3c=_0x2a7cc9;super[_0x1d9c3c(0xd7)](),this[_0x1d9c3c(0xef)][_0x1d9c3c(0xc4)](this[_0x1d9c3c(0xd4)][_0x1d9c3c(0xc3)]),this[_0x1d9c3c(0xef)][_0x1d9c3c(0xc4)](this[_0x1d9c3c(0xd4)][_0x1d9c3c(0xb4)][_0x1d9c3c(0xc3)]),this[_0x1d9c3c(0xef)][_0x1d9c3c(0xc4)](this[_0x1d9c3c(0xbc)][_0x1d9c3c(0xc3)]),this[_0x1d9c3c(0xef)][_0x1d9c3c(0xc4)](this[_0x1d9c3c(0xc8)][_0x1d9c3c(0xc3)]),this[_0x1d9c3c(0xc5)][_0x1d9c3c(0xb7)](this[_0x1d9c3c(0xc3)]);}[_0x2a7cc9(0xf1)](_0x31d5b8=0x1){const _0x2d735a=_0x2a7cc9;-0x1===_0x31d5b8?this[_0x2d735a(0xf0)][_0x2d735a(0xc6)]():this[_0x2d735a(0xf0)][_0x2d735a(0xae)]();}[_0x2a7cc9(0xca)](){const _0x4da683=_0x2a7cc9;this[_0x4da683(0xed)]='',this[_0x4da683(0xe6)]='',this[_0x4da683(0xbf)]=!0x1,this[_0x4da683(0xc8)][_0x4da683(0xca)](),this[_0x4da683(0xd4)][_0x4da683(0xa6)]=!0x1,this[_0x4da683(0xbc)][_0x4da683(0xa6)]=!0x1;}[_0x2a7cc9(0xb6)](){const _0x386656=_0x2a7cc9,_0x5b33ee=this[_0x386656(0xa9)],_0x3a5ca0=new _0x5d65d8(_0x5b33ee,{'queryView':{'label':_0x322120(_0x5b33ee,_0x386656(0xdb)),'creator':_0x593723,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x322120(_0x5b33ee,_0x386656(0xa5)),'secondary':_0x322120(_0x5b33ee,_0x386656(0xbe))}}},'filteredView':this[_0x386656(0xd8)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x3a5ca0[_0x386656(0xa7)](_0x386656(0xcb))['to'](this,_0x386656(0xcb),this,_0x386656(0xaf),(_0x400232,_0x505c3b)=>_0x400232&&!_0x505c3b),this[_0x386656(0xb7)](_0x3a5ca0,_0x386656(0x9e),(_0xe0f24d,_0x53a590)=>{const _0x3795a7=_0x386656;this[_0x3795a7(0xed)]=_0x53a590;const _0x107e2c=_0x179a93(_0x53a590);this[_0x3795a7(0xac)](_0x3795a7(0xcc),_0x107e2c),_0x53a590[_0x3795a7(0xb2)]()&&this[_0x3795a7(0x9f)][_0x3795a7(0xc4)]({'prompt':_0x107e2c},0x0);},{'priority':_0x386656(0xcf)}),_0x3a5ca0;}[_0x2a7cc9(0xd8)](){const _0x23df32=_0x2a7cc9,_0x1ccaf0=new _0x5a231e(this[_0x23df32(0xa9)]);return _0x1ccaf0[_0x23df32(0xe2)][_0x23df32(0xb1)][_0x23df32(0xdc)](this[_0x23df32(0x9f)])['as'](_0x355821),_0x1ccaf0['on'](_0x23df32(0xb9),()=>{const _0x9e195d=_0x23df32;this[_0x9e195d(0x9f)][_0x9e195d(0xba)](),this[_0x9e195d(0xc8)][_0x9e195d(0xb5)](''),this[_0x9e195d(0xc8)][_0x9e195d(0xf1)]();}),_0x1ccaf0;}[_0x2a7cc9(0xdf)](){const _0x5c72dc=_0x2a7cc9,_0x2dfc73=new _0x5b9beb(this[_0x5c72dc(0xa9)]);return _0x2dfc73[_0x5c72dc(0xb8)][_0x5c72dc(0xa7)](_0x5c72dc(0xcb))['to'](this,_0x5c72dc(0xcb),this,_0x5c72dc(0xaf),this,_0x5c72dc(0xe6),(_0x3a4663,_0x15b183,_0x13690d)=>_0x3a4663&&!_0x15b183&&!!_0x13690d),_0x2dfc73[_0x5c72dc(0xb8)][_0x5c72dc(0xbb)](_0x5c72dc(0xd6))['to'](this,_0x5c72dc(0xdd)),_0x2dfc73[_0x5c72dc(0xe0)][_0x5c72dc(0xa7)](_0x5c72dc(0xcb))['to'](this,_0x5c72dc(0xcb),this,_0x5c72dc(0xaf),this,_0x5c72dc(0xe6),(_0x2cdbb3,_0x320b13,_0x3f8a3a)=>_0x2cdbb3&&!_0x320b13&&!!_0x3f8a3a),_0x2dfc73[_0x5c72dc(0xe0)][_0x5c72dc(0xbb)](_0x5c72dc(0xd6))['to'](this,_0x5c72dc(0xd1)),_0x2dfc73[_0x5c72dc(0xad)][_0x5c72dc(0xa7)](_0x5c72dc(0xcb))['to'](this,_0x5c72dc(0xcb),this,_0x5c72dc(0xaf),(_0x37b335,_0x54be1a)=>_0x37b335&&!_0x54be1a),_0x2dfc73[_0x5c72dc(0xad)][_0x5c72dc(0xbb)](_0x5c72dc(0xd6))['to'](this,_0x5c72dc(0xa4)),_0x2dfc73[_0x5c72dc(0xde)][_0x5c72dc(0xa7)](_0x5c72dc(0xcb))['to'](this,_0x5c72dc(0xaf)),_0x2dfc73[_0x5c72dc(0xde)][_0x5c72dc(0xbb)](_0x5c72dc(0xd6))['to'](this,_0x5c72dc(0xe1)),_0x2dfc73;}[_0x2a7cc9(0xcd)](){const _0x4760bb=_0x2a7cc9;this[_0x4760bb(0xe6)]='',this[_0x4760bb(0xbf)]=!0x1,this[_0x4760bb(0xaf)]=!0x0,this[_0x4760bb(0xd4)][_0x4760bb(0xa6)]=!0x0,this[_0x4760bb(0xbc)][_0x4760bb(0xa6)]=!0x0,this[_0x4760bb(0xd4)][_0x4760bb(0xf1)]();}[_0x2a7cc9(0xd3)](){const _0x230d61=_0x2a7cc9,_0x4b7be6=this[_0x230d61(0xa9)];this[_0x230d61(0xaf)]=!0x1,this[_0x230d61(0xed)]='',this[_0x230d61(0xc8)][_0x230d61(0xca)](),this[_0x230d61(0xe6)]&&(this[_0x230d61(0xc8)][_0x230d61(0xce)][_0x230d61(0xea)]=_0x322120(_0x4b7be6,_0x230d61(0xe7)));}[_0x2a7cc9(0xa0)](_0x5932ee){const _0x48f73c=_0x2a7cc9,_0x7b4e6c=this[_0x48f73c(0xa9)];this[_0x48f73c(0xd3)](),this[_0x48f73c(0xbf)]=!0x0,this[_0x48f73c(0xd0)][_0x48f73c(0xec)]=_0x5932ee||_0x322120(_0x7b4e6c,_0x48f73c(0xd5)),this[_0x48f73c(0xe6)]||(this[_0x48f73c(0xd4)][_0x48f73c(0xa6)]=!0x1);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x5ca441,_0x1cdb9e){const _0x49e0ac=_0x355a,_0x54d0da=_0x5ca441();while(!![]){try{const _0x23a11e=-parseInt(_0x49e0ac(0x91))/0x1+parseInt(_0x49e0ac(0x90))/0x2+parseInt(_0x49e0ac(0x86))/0x3*(-parseInt(_0x49e0ac(0x83))/0x4)+-parseInt(_0x49e0ac(0x89))/0x5*(-parseInt(_0x49e0ac(0x84))/0x6)+-parseInt(_0x49e0ac(0x93))/0x7+parseInt(_0x49e0ac(0x88))/0x8+-parseInt(_0x49e0ac(0x8d))/0x9*(-parseInt(_0x49e0ac(0x92))/0xa);if(_0x23a11e===_0x1cdb9e)break;else _0x54d0da['push'](_0x54d0da['shift']());}catch(_0x3c85ce){_0x54d0da['push'](_0x54d0da['shift']());}}}(_0x4ec5,0x72598));import{ListItemView as _0x1afdd0,ButtonView as _0x128571}from'ckeditor5/src/ui.js';function _0x355a(_0x5488a1,_0x35bb33){const _0x4ec56c=_0x4ec5();return _0x355a=function(_0x355a2e,_0x3095c7){_0x355a2e=_0x355a2e-0x83;let _0x5804aa=_0x4ec56c[_0x355a2e];return _0x5804aa;},_0x355a(_0x5488a1,_0x35bb33);}import _0x4a5078 from'../dropdown/buttonlabelwithhighlightview.js';import{unescape as _0x2733a0}from'lodash-es';function _0x4ec5(){const _0x3d5fd9=['955952wteRvt','1010525uKWFZD','add','prompt','set','2643291EUKSqM','children','locale','811416WdpcBN','179685qpVyvO','10BIgVGe','1523445Achyga','40todqDC','6FDghfd','execute','46593YykiZY','fire'];_0x4ec5=function(){return _0x3d5fd9;};return _0x4ec5();}export default class hs extends _0x1afdd0{constructor(_0x22700e){const _0x2d28ab=_0x355a;super();const _0x4867e4=new _0x4a5078(),_0x13a347=new _0x128571(this[_0x2d28ab(0x8f)],_0x4867e4);this[_0x2d28ab(0x8e)][_0x2d28ab(0x8a)](_0x13a347),_0x13a347[_0x2d28ab(0x8c)]({'label':_0x22700e[_0x2d28ab(0x8b)],'withText':!0x0}),_0x13a347['on'](_0x2d28ab(0x85),()=>{const _0x2835ce=_0x2d28ab;this[_0x2835ce(0x87)](_0x2835ce(0x85),{'value':_0x2733a0(_0x22700e[_0x2835ce(0x8b)])});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2a2992=_0x1347;(function(_0x491c8b,_0x5abc3f){const _0x492ab8=_0x1347,_0x152eb8=_0x491c8b();while(!![]){try{const _0x4f66d2=-parseInt(_0x492ab8(0x85))/0x1*(-parseInt(_0x492ab8(0x98))/0x2)+parseInt(_0x492ab8(0x83))/0x3+-parseInt(_0x492ab8(0x90))/0x4+-parseInt(_0x492ab8(0x96))/0x5+parseInt(_0x492ab8(0x99))/0x6*(-parseInt(_0x492ab8(0x94))/0x7)+-parseInt(_0x492ab8(0x91))/0x8+parseInt(_0x492ab8(0x95))/0x9;if(_0x4f66d2===_0x5abc3f)break;else _0x152eb8['push'](_0x152eb8['shift']());}catch(_0x3d93ab){_0x152eb8['push'](_0x152eb8['shift']());}}}(_0xe2ca,0x2c797));import{ListView as _0x551413,ListItemGroupView as _0x17ad80,ButtonView as _0x15bd7e}from'ckeditor5/src/ui.js';function _0x1347(_0x38b61f,_0x260484){const _0xe2cacb=_0xe2ca();return _0x1347=function(_0x1347f5,_0x155e74){_0x1347f5=_0x1347f5-0x83;let _0x2b1c40=_0xe2cacb[_0x1347f5];return _0x2b1c40;},_0x1347(_0x38b61f,_0x260484);}import{getTranslation as _0x30c887}from'../../utils/common-translations.js';export default class rs extends _0x551413{constructor(_0x2681df){const _0x4f7223=_0x1347;super(_0x2681df),this[_0x4f7223(0x86)]=this[_0x4f7223(0x93)](),this[_0x4f7223(0x8b)]=new _0x17ad80(),this[_0x4f7223(0x8b)][_0x4f7223(0x8f)][_0x4f7223(0x92)](this[_0x4f7223(0x86)],0x1),this[_0x4f7223(0x8b)][_0x4f7223(0x89)]=_0x30c887(_0x2681df,_0x4f7223(0x8e)),this[_0x4f7223(0x8b)][_0x4f7223(0x8d)][_0x4f7223(0x8c)](_0x4f7223(0x8a))['to'](this),this[_0x4f7223(0x8d)][_0x4f7223(0x92)](this[_0x4f7223(0x8b)]);}[_0x2a2992(0x97)](){const _0x6574a9=_0x2a2992;let _0x1ed7df=0x0;for(const _0x38c63b of this[_0x6574a9(0x8d)])_0x1ed7df+=_0x38c63b[_0x6574a9(0x8d)][_0x6574a9(0x84)];return{'resultsCount':_0x1ed7df,'totalItemsCount':_0x1ed7df};}[_0x2a2992(0x93)](){const _0x2d6546=_0x2a2992,_0x5b1f6e=this[_0x2d6546(0x88)],_0x15615b=new _0x15bd7e(this[_0x2d6546(0x88)]);return _0x15615b[_0x2d6546(0x9a)]({'label':'('+_0x30c887(_0x5b1f6e,_0x2d6546(0x87))+')','withText':!0x0}),_0x15615b['on'](_0x2d6546(0x8a),()=>this[_0x2d6546(0x9c)](_0x2d6546(0x9b))),_0x15615b;}}function _0xe2ca(){const _0x3c9c0d=['add','_createClearHistoryButton','120337oYkeqB','2254887RqRUZn','1450415sQlqPO','filter','466NUTCTV','12fkPNbD','set','clearHistory','fire','865605zVhGsr','length','673vFRQlj','clearHistoryButton','Clear','locale','label','execute','historyGroupView','delegate','items','Prompt\x20history','children','465688UAoAYG','582664lZaJNY'];_0xe2ca=function(){return _0x3c9c0d;};return _0xe2ca();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xbecb71=_0x11d5;function _0x1183(){const _0x3433d5=['2137816LAHNxH','6JWKxIk','124014ZaaSnW','toLowerCase','add','_saveToSessionStorage','trim','prompt','last','1318779IATRAN','stringify','CKEditor/AIFormView/PromptHistory','2520174utahTJ','length','_loadFromSessionStorage','getItem','15424029qHnmMV','parse','setItem','3262021ILADMP','remove','110028nmXiib','50PzNMVg','map','addMany'];_0x1183=function(){return _0x3433d5;};return _0x1183();}function _0x11d5(_0x41c7d7,_0x18aad6){const _0x118355=_0x1183();return _0x11d5=function(_0x11d538,_0x40a947){_0x11d538=_0x11d538-0x64;let _0x59cc69=_0x118355[_0x11d538];return _0x59cc69;},_0x11d5(_0x41c7d7,_0x18aad6);}(function(_0x788c4d,_0x23b9df){const _0x3e366e=_0x11d5,_0x2ac088=_0x788c4d();while(!![]){try{const _0x34df1f=parseInt(_0x3e366e(0x75))/0x1+parseInt(_0x3e366e(0x6e))/0x2+parseInt(_0x3e366e(0x78))/0x3+-parseInt(_0x3e366e(0x68))/0x4*(parseInt(_0x3e366e(0x69))/0x5)+parseInt(_0x3e366e(0x6d))/0x6*(parseInt(_0x3e366e(0x66))/0x7)+parseInt(_0x3e366e(0x6c))/0x8+-parseInt(_0x3e366e(0x7c))/0x9;if(_0x34df1f===_0x23b9df)break;else _0x2ac088['push'](_0x2ac088['shift']());}catch(_0xcb72d0){_0x2ac088['push'](_0x2ac088['shift']());}}}(_0x1183,0xeba67));import{Collection as _0x461754}from'ckeditor5/src/utils.js';const cs=_0xbecb71(0x77);export default class os extends _0x461754{constructor(){const _0x3fedfa=_0xbecb71;super(),this[_0x3fedfa(0x7a)](),this['on'](_0x3fedfa(0x70),(_0x264a9d,_0x245acc)=>{const _0x302b58=_0x3fedfa,_0x180456=Ss(_0x245acc[_0x302b58(0x73)]);for(const _0x20123f of this)if(_0x20123f!=_0x245acc&&Ss(_0x20123f[_0x302b58(0x73)])===_0x180456){this[_0x302b58(0x67)](_0x20123f);break;}this[_0x302b58(0x79)]>0x14&&this[_0x302b58(0x67)](this[_0x302b58(0x74)]),this[_0x302b58(0x71)]();}),this['on'](_0x3fedfa(0x67),()=>{const _0x1ad1ae=_0x3fedfa;this[_0x1ad1ae(0x71)]();});}[_0xbecb71(0x7a)](){const _0x2e2b0f=_0xbecb71,_0x5ac0ee=sessionStorage[_0x2e2b0f(0x7b)](cs)||'[]';this[_0x2e2b0f(0x6b)](JSON[_0x2e2b0f(0x64)](_0x5ac0ee));}[_0xbecb71(0x71)](){const _0x548e25=_0xbecb71;sessionStorage[_0x548e25(0x65)](cs,JSON[_0x548e25(0x76)](this[_0x548e25(0x6a)](_0x2233f4=>_0x2233f4)));}}function Ss(_0x4ad911){const _0x40e2f5=_0xbecb71;return _0x4ad911[_0x40e2f5(0x6f)]()[_0x40e2f5(0x72)]();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3cd593=_0x2db9;(function(_0x3cf4c3,_0x451fb7){const _0x3ac8f6=_0x2db9,_0x1f24df=_0x3cf4c3();while(!![]){try{const _0x1adedc=parseInt(_0x3ac8f6(0x1c5))/0x1+-parseInt(_0x3ac8f6(0x1be))/0x2+parseInt(_0x3ac8f6(0x1a1))/0x3*(parseInt(_0x3ac8f6(0x1a9))/0x4)+-parseInt(_0x3ac8f6(0x1b5))/0x5*(parseInt(_0x3ac8f6(0x1b8))/0x6)+-parseInt(_0x3ac8f6(0x19e))/0x7*(parseInt(_0x3ac8f6(0x1b1))/0x8)+-parseInt(_0x3ac8f6(0x1bb))/0x9+parseInt(_0x3ac8f6(0x1c6))/0xa*(parseInt(_0x3ac8f6(0x1c7))/0xb);if(_0x1adedc===_0x451fb7)break;else _0x1f24df['push'](_0x1f24df['shift']());}catch(_0xc1e576){_0x1f24df['push'](_0x1f24df['shift']());}}}(_0xdc22,0x9144e));import{Command as _0x50bf20}from'ckeditor5/src/core.js';import _0x27df04 from'../aiassistantui.js';export default class j extends _0x50bf20{constructor(_0x50bcd3,_0xd3625d){const _0xc1da4d=_0x2db9;super(_0x50bcd3),this[_0xc1da4d(0x1a8)]=_0xd3625d?_0xd3625d[_0xc1da4d(0x19d)]((_0x557b6d,_0x4f7027)=>_0x557b6d[_0xc1da4d(0x1ba)](_0x4f7027[_0xc1da4d(0x199)]),new Array()):[],this[_0xc1da4d(0x1a5)](_0xc1da4d(0x1b2),[]),this['on'](_0xc1da4d(0x1a0),(_0x1fed4a,_0x7eb064,_0x25697b)=>{const _0x45c5f2=_0xc1da4d;this[_0x45c5f2(0x1ac)]&&(this[_0x45c5f2(0x1b2)]=K(this[_0x45c5f2(0x1a8)],_0x25697b));}),this[_0xc1da4d(0x1a5)](_0xc1da4d(0x1ab),!0x1),this['on'](_0xc1da4d(0x1aa),(_0x473ac1,_0x5bf061,_0x17c510)=>{const _0x1535bf=_0xc1da4d;this[_0x1535bf(0x1b2)]=_0x17c510?K(this[_0x1535bf(0x1a8)],this[_0x1535bf(0x1ab)]):[];});}[_0x3cd593(0x1bd)](){const _0x319699=_0x3cd593,_0x230780=this[_0x319699(0x1a6)][_0x319699(0x1a7)];this[_0x319699(0x1ab)]=function(_0x5f320e){const _0x56cd60=_0x319699,_0x1df383=_0x5f320e[_0x56cd60(0x1a3)][_0x56cd60(0x1a4)];return _0x1df383[_0x56cd60(0x1c0)]?0x0!==[..._0x1df383[_0x56cd60(0x1ae)]()][_0x56cd60(0x1b0)]&&![..._0x1df383[_0x56cd60(0x1ae)]()][0x0][_0x56cd60(0x1c2)]:!!_0x5f320e[_0x56cd60(0x1bc)](_0x1df383[_0x56cd60(0x1b6)]());}(_0x230780);const _0x198d63=_0x230780[_0x319699(0x1a3)][_0x319699(0x1a4)],_0x1f12a9=this[_0x319699(0x1a6)][_0x319699(0x1b7)][_0x319699(0x19f)](_0x319699(0x1b9));for(const _0x2e9efc of _0x198d63[_0x319699(0x1c4)]())for(const _0x142859 of _0x2e9efc[_0x319699(0x1c1)]())if(_0x142859['is'](_0x319699(0x19b))&&_0x1f12a9[_0x319699(0x1ad)](_0x142859[_0x319699(0x1a2)]))return void(this[_0x319699(0x1ac)]=!0x1);this[_0x319699(0x1ac)]=!0x0;}[_0x3cd593(0x1bf)](_0x1f6001='',_0x3e749='',_0x311112=_0x3cd593(0x1b3)){const _0x3e9a6b=_0x3cd593;this[_0x3e9a6b(0x1a6)][_0x3e9a6b(0x1af)][_0x3e9a6b(0x19f)](_0x27df04)[_0x3e9a6b(0x19a)](_0x1f6001,_0x3e749,_0x311112);}}function _0x2db9(_0xf2e12c,_0x2fe3ae){const _0xdc225=_0xdc22();return _0x2db9=function(_0x2db92d,_0x259dd2){_0x2db92d=_0x2db92d-0x199;let _0x1521b0=_0xdc225[_0x2db92d];return _0x1521b0;},_0x2db9(_0xf2e12c,_0x2fe3ae);}function _0xdc22(){const _0x416b22=['requiresContent','5UtmLmn','getFirstRange','config','7133814JRpzDn','ai.aiAssistant.disabledElements','concat','9308736cZJeZT','hasContent','refresh','261642knmWaM','execute','isCollapsed','getItems','isEmpty','from','getRanges','1092323RUhSye','1060twtAmx','201311bKKJAo','commands','showUI','element','add','reduce','2162489SmJqqv','get','change:_hasContext','14727mRLMfV','name','document','selection','set','editor','model','_commandDefinitions','184XfJHQP','change:isEnabled','_hasContext','isEnabled','includes','getSelectedBlocks','plugins','length','8CMqkjk','enabledCommandsIds','custom'];_0xdc22=function(){return _0x416b22;};return _0xdc22();}function K(_0xe6d87d,_0x17651b){const _0xd53c44=_0x3cd593,_0x5c9720=new Set();for(const _0x214cd5 of _0xe6d87d)(_0x17651b||!0x1===_0x214cd5[_0xd53c44(0x1b4)])&&_0x5c9720[_0xd53c44(0x19c)](_0x214cd5['id']);return Array[_0xd53c44(0x1c3)](_0x5c9720);}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(
|
|
23
|
+
export function getTranslation(_0x1a6cee,_0x50194d,_0x213fd4){const t=_0x1a6cee['t'];switch(_0x50194d){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',_0x213fd4);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',_0x213fd4);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x213fd4);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'},_0x213fd4);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 _0x50194d;}}
|