@ckeditor/ckeditor5-ai 42.0.0-alpha.10 → 42.0.0-alpha.12
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
|
+
function _0x2da6(_0x2c0ad4,_0x4194f3){const _0x5f16ba=_0x5f16();return _0x2da6=function(_0x2da6fc,_0x37eb6f){_0x2da6fc=_0x2da6fc-0x101;let _0x4c24e3=_0x5f16ba[_0x2da6fc];return _0x4c24e3;},_0x2da6(_0x2c0ad4,_0x4194f3);}const _0x1ef247=_0x2da6;function _0x5f16(){const _0xc18c1e=['prompt','render','htmlProcessor','name','currentResponse','endsWith','mainAction','_isH1TagSupportEnabled','setContentOf','toModel','isRendered','894025bXoAAl','body','stopListening','startProcessing','reverse','tryAgainEvent','9LiQNxa','329wxRooJ','value','previousContext','finally','_domParser','38262PSihWR','match','textAdapter','10860qpQvfM','exec','text/html','trim','set','78NvKZaY','<h1></h1>','createElement','domConverter','_stripMarkdownSyntax','startsWith','document','custom','element','data','editing','stringify','remove','_sanitizationContainer','nodeType','_handleQuery','processor','toView','finishProcessing','114888iGYFJD','push','12615370ALOVqb','reset','previousLabel','165156lyHSdc','childNodes','_xmlSerializer','from','```','abort','_sanitizeHTML','viewToDom','updateView','innerHTML','message','destroy','submitPrompt','handleError','previousActionId','listenTo','set:currentContext','stopProcessing','ELEMENT_NODE','currentContext','querySelector','once','2439464VQdGkU','_normalizeResponseHeadings','length','catch','initialContext','substring','```html','previousQuery','rename','div','serializeToString','makeRequest','view','_parseAndNormalizeContent','parseFromString','then','isProcessing','editor'];_0x5f16=function(){return _0xc18c1e;};return _0x5f16();}(function(_0x7d6342,_0x153e9c){const _0x533acd=_0x2da6,_0x2ecd3b=_0x7d6342();while(!![]){try{const _0xf7daa2=-parseInt(_0x533acd(0x104))/0x1+parseInt(_0x533acd(0x150))/0x2*(-parseInt(_0x533acd(0x14b))/0x3)+-parseInt(_0x533acd(0x109))/0x4+-parseInt(_0x533acd(0x13c))/0x5+parseInt(_0x533acd(0x148))/0x6*(-parseInt(_0x533acd(0x143))/0x7)+-parseInt(_0x533acd(0x11f))/0x8+parseInt(_0x533acd(0x142))/0x9*(parseInt(_0x533acd(0x106))/0xa);if(_0xf7daa2===_0x153e9c)break;else _0x2ecd3b['push'](_0x2ecd3b['shift']());}catch(_0xaec957){_0x2ecd3b['push'](_0x2ecd3b['shift']());}}}(_0x5f16,0x2c1f3));import{ObservableMixin as _0x592814}from'ckeditor5/src/utils.js';import{AIRequestError as _0x17c0fe}from'../adapters/aiadapter.js';import{Matcher as _0x400527,UpcastWriter as _0x345d39}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
|
+
_0x592814(){constructor(_0x339235,_0x448fd4,_0x8ff9d6){const _0x520c5f=_0x2da6;super(),this[_0x520c5f(0x130)]=_0x339235,this[_0x520c5f(0x14a)]=_0x448fd4,this[_0x520c5f(0x15d)]=document[_0x520c5f(0x152)](_0x520c5f(0x128)),this[_0x520c5f(0x147)]=new DOMParser(),this[_0x520c5f(0x10b)]=new XMLSerializer(),this[_0x520c5f(0x12b)]=_0x8ff9d6,this[_0x520c5f(0x14f)]({'initialContext':'','currentContext':'','currentResponse':'','previousContext':void 0x0,'previousQuery':void 0x0,'previousLabel':void 0x0,'isProcessing':!0x1}),this['on'](_0x520c5f(0x119),(_0x73b0c,_0x25bd6e,_0x35b6b3)=>{const _0x434c30=_0x520c5f;this[_0x434c30(0x12b)][_0x434c30(0x144)]=this[_0x434c30(0x10f)](_0x35b6b3);}),this[_0x520c5f(0x118)](this[_0x520c5f(0x12b)],_0x520c5f(0x115),(_0x592124,_0x4cd007)=>{const _0x2cfed3=_0x520c5f,_0x130288=this[_0x2cfed3(0x11c)]||this[_0x2cfed3(0x123)];this[_0x2cfed3(0x15f)](_0x4cd007,_0x130288,_0x2cfed3(0x157));}),this[_0x520c5f(0x118)](this[_0x520c5f(0x12b)],_0x520c5f(0x141),()=>{const _0x167906=_0x520c5f;this[_0x167906(0x12b)][_0x167906(0x131)]=this[_0x167906(0x108)],this[_0x167906(0x15f)](this[_0x167906(0x126)],this[_0x167906(0x145)],this[_0x167906(0x117)],this[_0x167906(0x108)]);}),this[_0x520c5f(0x118)](this[_0x520c5f(0x12b)],_0x520c5f(0x11a),()=>{const _0x576cd1=_0x520c5f;this[_0x576cd1(0x11a)]();});}[_0x1ef247(0x114)](){const _0x3169e6=_0x1ef247;this[_0x3169e6(0x13e)]();}async[_0x1ef247(0x111)]({actionId:_0x3b1d3c,query:_0x1b2179,htmlContent:_0xab096c,label:_0xd9354,mainActionLabel:_0x142750}){const _0xa2e2ce=_0x1ef247;this[_0xa2e2ce(0x12b)][_0xa2e2ce(0x131)]=_0xd9354,this[_0xa2e2ce(0x12b)][_0xa2e2ce(0x137)]=_0x142750,this[_0xa2e2ce(0x123)]=_0xab096c,_0x1b2179&&(this[_0xa2e2ce(0x12b)][_0xa2e2ce(0x13b)]?this[_0xa2e2ce(0x15f)](_0x1b2179,_0xab096c,_0x3b1d3c,_0xd9354):this[_0xa2e2ce(0x12b)][_0xa2e2ce(0x11e)](_0xa2e2ce(0x132),()=>{const _0x378ef4=_0xa2e2ce;this[_0x378ef4(0x15f)](_0x1b2179,_0xab096c,_0x3b1d3c,_0xd9354);}));}[_0x1ef247(0x11a)](){const _0x225d05=_0x1ef247;this[_0x225d05(0x12f)]&&(this[_0x225d05(0x12f)]=!0x1,this[_0x225d05(0x12b)][_0x225d05(0x103)](),this[_0x225d05(0x14a)][_0x225d05(0x10e)]());}[_0x1ef247(0x107)](){const _0x2182ee=_0x1ef247;this[_0x2182ee(0x123)]='',this[_0x2182ee(0x11c)]='',this[_0x2182ee(0x135)]='',this[_0x2182ee(0x145)]='',this[_0x2182ee(0x126)]='',this[_0x2182ee(0x108)]='',this[_0x2182ee(0x117)]=void 0x0,this[_0x2182ee(0x12b)][_0x2182ee(0x107)](),this[_0x2182ee(0x11a)]();}async[_0x1ef247(0x15f)](_0xadc52a,_0xa4cae0,_0x1af899,_0x426d8d){const _0x598cd1=_0x1ef247;return this[_0x598cd1(0x12f)]=!0x0,this[_0x598cd1(0x12b)][_0x598cd1(0x13f)](),this[_0x598cd1(0x145)]=_0xa4cae0,this[_0x598cd1(0x126)]=_0xadc52a,this[_0x598cd1(0x108)]=_0x426d8d||_0xadc52a,this[_0x598cd1(0x117)]=_0x1af899,new Promise(_0x525e1b=>{const _0x290538=_0x598cd1;this[_0x290538(0x14a)][_0x290538(0x12a)]({'query':_0xadc52a,'context':_0xa4cae0,'onData':_0x381a07=>{const _0x5294b2=_0x290538;this[_0x5294b2(0x135)]=_0x381a07,this[_0x5294b2(0x11c)]=this[_0x5294b2(0x12c)](this[_0x5294b2(0x135)]);},'actionId':_0x1af899})[_0x290538(0x12e)](()=>{const _0x485877=_0x290538;!this[_0x485877(0x11c)]&&this[_0x485877(0x135)]&&(this[_0x485877(0x11c)]=this[_0x485877(0x12c)](this[_0x485877(0x135)],!0x0));})[_0x290538(0x122)](_0x55d993=>{const _0x5652b5=_0x290538;_0x55d993 instanceof _0x17c0fe?this[_0x5652b5(0x12b)][_0x5652b5(0x116)](_0x55d993[_0x5652b5(0x113)]):this[_0x5652b5(0x12b)][_0x5652b5(0x116)](),_0x525e1b();})[_0x290538(0x146)](()=>{const _0x5ae812=_0x290538;this[_0x5ae812(0x11a)](),_0x525e1b();});});}[_0x1ef247(0x12c)](_0x25ad5c,_0x14fac9=!0x1){const _0x41b2b2=_0x1ef247,_0x194544=X[_0x41b2b2(0x14c)](_0x25ad5c);_0x25ad5c=_0x194544?_0x25ad5c[_0x41b2b2(0x124)](_0x194544[0x1][_0x41b2b2(0x121)]):_0x25ad5c[_0x41b2b2(0x121)]<0x64&&!_0x14fac9?'':this[_0x41b2b2(0x154)](_0x25ad5c);const _0x456e9a=this[_0x41b2b2(0x147)][_0x41b2b2(0x12d)](_0x25ad5c,_0x41b2b2(0x14d));if(_0x194544){const _0x480cce=Array[_0x41b2b2(0x10c)](_0x456e9a[_0x41b2b2(0x13d)][_0x41b2b2(0x10a)]);_0x480cce[_0x41b2b2(0x140)]();for(const _0x256604 of _0x480cce){if(_0x256604[_0x41b2b2(0x15e)]==Node[_0x41b2b2(0x11b)])break;_0x256604[_0x41b2b2(0x15c)]();}}const _0x29e95d=this[_0x41b2b2(0x130)][_0x41b2b2(0x159)][_0x41b2b2(0x101)][_0x41b2b2(0x102)](this[_0x41b2b2(0x10b)][_0x41b2b2(0x129)](_0x456e9a[_0x41b2b2(0x13d)]));return this[_0x41b2b2(0x138)]()||this[_0x41b2b2(0x120)](_0x29e95d),this[_0x41b2b2(0x130)][_0x41b2b2(0x159)][_0x41b2b2(0x15b)](this[_0x41b2b2(0x130)][_0x41b2b2(0x159)][_0x41b2b2(0x13a)](_0x29e95d));}[_0x1ef247(0x120)](_0x1b9b5a){const _0x2994ea=_0x1ef247,_0xbedf78=new _0x345d39(this[_0x2994ea(0x130)][_0x2994ea(0x15a)][_0x2994ea(0x12b)][_0x2994ea(0x156)]),_0x14c75c=new _0x400527({'name':/^h[1-5]$/}),_0x4ae163=[];let _0x1834fe=!0x1;for(const _0x2951e4 of _0x1b9b5a)_0x2951e4['is'](_0x2994ea(0x158))&&_0x14c75c[_0x2994ea(0x149)](_0x2951e4)&&(_0x4ae163[_0x2994ea(0x105)](_0x2951e4),'h1'==_0x2951e4[_0x2994ea(0x134)]&&(_0x1834fe=!0x0));if(_0x1834fe){for(const _0x206ff8 of _0x4ae163)_0xbedf78[_0x2994ea(0x127)]('h'+(parseInt(_0x206ff8[_0x2994ea(0x134)][0x1])+0x1),_0x206ff8);}}[_0x1ef247(0x138)](){const _0x166608=_0x1ef247,{data:_0x920ce1,editing:_0x34d4e7}=this[_0x166608(0x130)],_0x262063=_0x920ce1[_0x166608(0x133)][_0x166608(0x102)](_0x166608(0x151)),_0x59fe00=_0x920ce1[_0x166608(0x102)](_0x920ce1[_0x166608(0x13a)](_0x262063));return!!_0x34d4e7[_0x166608(0x12b)][_0x166608(0x153)][_0x166608(0x110)](_0x59fe00)[_0x166608(0x11d)]('h1');}[_0x1ef247(0x10f)](_0x5a1ccc){const _0x43200e=_0x1ef247;return this[_0x43200e(0x130)][_0x43200e(0x15a)][_0x43200e(0x12b)][_0x43200e(0x153)][_0x43200e(0x139)](this[_0x43200e(0x15d)],_0x5a1ccc),this[_0x43200e(0x15d)][_0x43200e(0x112)];}[_0x1ef247(0x154)](_0x2890de){const _0x885d28=_0x1ef247,_0x41134e=_0x2890de[_0x885d28(0x14e)]();return _0x41134e[_0x885d28(0x155)](_0x885d28(0x125))?_0x41134e[_0x885d28(0x136)](_0x885d28(0x10d))?_0x41134e[_0x885d28(0x124)](0x7,_0x41134e[_0x885d28(0x121)]-0x3):_0x41134e[_0x885d28(0x124)](0x7):_0x2890de;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x2507(_0x2125a0,_0x40ddc4){const _0x4cec27=_0x4cec();return _0x2507=function(_0x2507d4,_0x4120cc){_0x2507d4=_0x2507d4-0x1dc;let _0xe8cd6c=_0x4cec27[_0x2507d4];return _0xe8cd6c;},_0x2507(_0x2125a0,_0x40ddc4);}const _0x36f082=_0x2507;function _0x4cec(){const _0x56bbdd=['items','first','4382rpmJwL','3344436enxBGh','set','291511KGNrqt','isVisible','360qBQyNM','listbox','commandDefinition','match','length','labelView','425962tYPJDF','isEnabled','highlightText','enabledCommandsIds','7115970VCeLXJ','filter','children','label','role','2riqNyY','2563866XSDKSl','4110qMfMJY','7816WiKOVT','get','change:enabledCommandsIds','includes','652jNtxeg'];_0x4cec=function(){return _0x56bbdd;};return _0x4cec();}(function(_0x36961c,_0x570fa7){const _0x229466=_0x2507,_0x54f027=_0x36961c();while(!![]){try{const _0x4ffb6a=parseInt(_0x229466(0x1e6))/0x1*(parseInt(_0x229466(0x1dd))/0x2)+-parseInt(_0x229466(0x1e7))/0x3+parseInt(_0x229466(0x1ed))/0x4*(-parseInt(_0x229466(0x1e8))/0x5)+parseInt(_0x229466(0x1e1))/0x6+-parseInt(_0x229466(0x1f0))/0x7*(parseInt(_0x229466(0x1e9))/0x8)+-parseInt(_0x229466(0x1f1))/0x9+-parseInt(_0x229466(0x1f5))/0xa*(-parseInt(_0x229466(0x1f3))/0xb);if(_0x4ffb6a===_0x570fa7)break;else _0x54f027['push'](_0x54f027['shift']());}catch(_0x12d8e0){_0x54f027['push'](_0x54f027['shift']());}}}(_0x4cec,0x91103));import{ListView as _0x4a635d,ListItemGroupView as _0x310504}from'ckeditor5/src/ui.js';import{AICommandsListItemView as _0x3f99cc}from'../../aiassistantui.js';export default class U extends _0x4a635d{constructor(_0x498eb3){const _0x174000=_0x2507;super(_0x498eb3),this[_0x174000(0x1e5)]=_0x174000(0x1f6),this[_0x174000(0x1f2)](_0x174000(0x1e0),[]),this['on'](_0x174000(0x1eb),()=>{const _0x3403a3=_0x174000;for(const _0x37c881 of this[_0x3403a3(0x1ee)])if(_0x37c881 instanceof _0x310504){for(const _0x2b75b8 of _0x37c881[_0x3403a3(0x1ee)])if(_0x2b75b8 instanceof _0x3f99cc){const _0x459256=_0x2b75b8[_0x3403a3(0x1e3)][_0x3403a3(0x1ea)](0x0);this[_0x3403a3(0x1e0)][_0x3403a3(0x1ec)](_0x2b75b8[_0x3403a3(0x1f7)]['id'])?_0x459256[_0x3403a3(0x1de)]=!0x0:_0x459256[_0x3403a3(0x1de)]=!0x1;}}});}[_0x36f082(0x1e2)](_0x3e1b32){const _0x25b451=_0x36f082;let _0x3b1570=0x0,_0x1bb1c8=0x0;for(const _0x1cbd91 of this[_0x25b451(0x1ee)]){const _0xb03a97=_0x1cbd91,_0x4339bc=_0xb03a97[_0x25b451(0x1ee)],_0x5adb73=_0x3e1b32&&!!_0xb03a97[_0x25b451(0x1e4)][_0x25b451(0x1f8)](_0x3e1b32);_0xb03a97[_0x25b451(0x1dc)][_0x25b451(0x1df)](_0x5adb73?_0x3e1b32:null);for(const _0x511562 of _0x4339bc){const _0x52e301=_0x511562[_0x25b451(0x1e3)][_0x25b451(0x1ef)],_0x38aa1b=_0x52e301[_0x25b451(0x1dc)];if(_0x3e1b32){const _0x4013e9=!!_0x52e301[_0x25b451(0x1e4)][_0x25b451(0x1f8)](_0x3e1b32);_0x38aa1b[_0x25b451(0x1df)](_0x4013e9?_0x3e1b32:null),_0x511562[_0x25b451(0x1f4)]=_0x5adb73||_0x4013e9;}else _0x511562[_0x25b451(0x1f4)]=!0x0,_0x38aa1b[_0x25b451(0x1df)](null);}const _0x59efeb=_0x4339bc[_0x25b451(0x1e2)](_0x91f3de=>_0x91f3de[_0x25b451(0x1f4)])[_0x25b451(0x1f9)];_0x3b1570+=_0xb03a97[_0x25b451(0x1ee)][_0x25b451(0x1f9)],_0x1bb1c8+=_0x5adb73?_0xb03a97[_0x25b451(0x1ee)][_0x25b451(0x1f9)]:_0x59efeb,_0xb03a97[_0x25b451(0x1f4)]=_0x5adb73||!!_0x59efeb;}return{'resultsCount':_0x1bb1c8,'totalItemsCount':_0x3b1570};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x7ff4(){const _0x3cc903=['70pfLtym','6JiDqox','3559640BbvxqK','3176877EJNZMU','20159uTcTLV','set','ck-button__label','7534324DLEUCw','76wMVGwX','extendTemplate','969549QsewRO','bindTemplate','7007590GbijNQ','13336pTLYGv','style','2844agLNrA'];_0x7ff4=function(){return _0x3cc903;};return _0x7ff4();}(function(_0x448580,_0x3904ec){const _0x46bddf=_0x4d15,_0x412ac8=_0x448580();while(!![]){try{const _0xdcd386=parseInt(_0x46bddf(0x167))/0x1*(-parseInt(_0x46bddf(0x16b))/0x2)+-parseInt(_0x46bddf(0x16d))/0x3+-parseInt(_0x46bddf(0x165))/0x4+-parseInt(_0x46bddf(0x16f))/0x5*(-parseInt(_0x46bddf(0x164))/0x6)+-parseInt(_0x46bddf(0x16a))/0x7+-parseInt(_0x46bddf(0x170))/0x8*(-parseInt(_0x46bddf(0x172))/0x9)+parseInt(_0x46bddf(0x173))/0xa*(parseInt(_0x46bddf(0x166))/0xb);if(_0xdcd386===_0x3904ec)break;else _0x412ac8['push'](_0x412ac8['shift']());}catch(_0x29d869){_0x412ac8['push'](_0x412ac8['shift']());}}}(_0x7ff4,0xda608));import{HighlightedTextView as _0x564050}from'ckeditor5/src/ui.js';function _0x4d15(_0x57c0be,_0xc5d12a){const _0x7ff45d=_0x7ff4();return _0x4d15=function(_0x4d15b4,_0x119338){_0x4d15b4=_0x4d15b4-0x164;let _0x58b52b=_0x7ff45d[_0x4d15b4];return _0x58b52b;},_0x4d15(_0x57c0be,_0xc5d12a);}export default class N extends _0x564050{constructor(){const _0x51dc4a=_0x4d15;super(),this[_0x51dc4a(0x168)]({'style':void 0x0,'text':void 0x0,'id':void 0x0});const _0x12a5fd=this[_0x51dc4a(0x16e)];this[_0x51dc4a(0x16c)]({'attributes':{'class':[_0x51dc4a(0x169)],'style':_0x12a5fd['to'](_0x51dc4a(0x171)),'id':_0x12a5fd['to']('id')}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x2a6376,_0x15e011){const _0x3cfac0=_0x5c6d,_0x6205a7=_0x2a6376();while(!![]){try{const _0x4e7c8f=parseInt(_0x3cfac0(0x77))/0x1*(-parseInt(_0x3cfac0(0x80))/0x2)+-parseInt(_0x3cfac0(0x83))/0x3+parseInt(_0x3cfac0(0x78))/0x4*(parseInt(_0x3cfac0(0x85))/0x5)+parseInt(_0x3cfac0(0x7b))/0x6+parseInt(_0x3cfac0(0x7c))/0x7+parseInt(_0x3cfac0(0x7d))/0x8*(-parseInt(_0x3cfac0(0x7e))/0x9)+parseInt(_0x3cfac0(0x79))/0xa;if(_0x4e7c8f===_0x15e011)break;else _0x6205a7['push'](_0x6205a7['shift']());}catch(_0x432309){_0x6205a7['push'](_0x6205a7['shift']());}}}(_0x3c95,0xce098));import{HighlightedTextView as _0x32a066}from'ckeditor5/src/ui.js';function _0x3c95(){const _0x401275=['ck-editor__label_','8902194hmEFjr','5511716aCkqUY','2568omnDND','40671SQXQTU','extendTemplate','9236XtYbWJ','for','set','405249aKSRBX','bindTemplate','4393895whzaXn','ck-label','365cuwAbb','4jqYrMw','9653140wfdWPR'];_0x3c95=function(){return _0x401275;};return _0x3c95();}import{uid as _0x226a0a}from'ckeditor5/src/utils.js';function _0x5c6d(_0x32c053,_0x1336a6){const _0x3c954e=_0x3c95();return _0x5c6d=function(_0x5c6d79,_0x529361){_0x5c6d79=_0x5c6d79-0x76;let _0x15e344=_0x3c954e[_0x5c6d79];return _0x15e344;},_0x5c6d(_0x32c053,_0x1336a6);}export default class S extends _0x32a066{constructor(){const _0x20c3da=_0x5c6d;super(),this[_0x20c3da(0x82)](_0x20c3da(0x81),void 0x0);const _0x2da207=this[_0x20c3da(0x84)];this['id']=_0x20c3da(0x7a)+_0x226a0a(),this[_0x20c3da(0x7f)]({'attributes':{'class':['ck',_0x20c3da(0x76)],'id':this['id'],'for':_0x2da207['to'](_0x20c3da(0x81))}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1398cd=_0x144a;function _0x144a(_0x430bf6,_0x350a44){const _0x3b2a98=_0x3b2a();return _0x144a=function(_0x144aa0,_0xeea99c){_0x144aa0=_0x144aa0-0x68;let _0x30f5f8=_0x3b2a98[_0x144aa0];return _0x30f5f8;},_0x144a(_0x430bf6,_0x350a44);}(function(_0x2c72d6,_0x59b6ed){const _0x29dc48=_0x144a,_0x2c3621=_0x2c72d6();while(!![]){try{const _0x553dec=-parseInt(_0x29dc48(0x90))/0x1*(parseInt(_0x29dc48(0x79))/0x2)+-parseInt(_0x29dc48(0xa7))/0x3*(-parseInt(_0x29dc48(0x88))/0x4)+-parseInt(_0x29dc48(0xc1))/0x5*(parseInt(_0x29dc48(0x8f))/0x6)+parseInt(_0x29dc48(0x95))/0x7*(-parseInt(_0x29dc48(0x99))/0x8)+-parseInt(_0x29dc48(0x73))/0x9*(parseInt(_0x29dc48(0x8a))/0xa)+-parseInt(_0x29dc48(0xa8))/0xb*(-parseInt(_0x29dc48(0xa0))/0xc)+parseInt(_0x29dc48(0x74))/0xd*(parseInt(_0x29dc48(0xa6))/0xe);if(_0x553dec===_0x59b6ed)break;else _0x2c3621['push'](_0x2c3621['shift']());}catch(_0x1b0069){_0x2c3621['push'](_0x2c3621['shift']());}}}(_0x3b2a,0x4df51));import{global as _0xc084c7}from'ckeditor5/src/utils.js';import{View as _0x405195,ButtonView as _0x114193,SpinnerView as _0x335440}from'ckeditor5/src/ui.js';import _0x392c9b from'../../../theme/icons/copy.svg';function _0x3b2a(){const _0x84c5cb=['<span>[</span>','isProcessing','bind','appendLoader','5625747XTJVFP','13NsdUVh','check','smooth','ck-ai-form__content-area--processing','lastElementChild','479004oorrRu','remove','element','setContent','setTemplate','querySelector','div','change:isProcessing','ck-ai-form__content-area','AI\x20is\x20writing...','ClipboardItem','copyButtonView','focus','ck-ai-form__content-field','mousedown','768dUHzAM','.ck-ai-form__loader','10pwrXak','createElement','textContent','_copyHTMLToClipboard','change:value','402iMRDSS','2YuKTwD','render','addRange','locale','createRange','7wlqCpr','ck-reset_all-excluded','firstElementChild','contentFieldView','3935248DurdfZ','getSelection','copy','-9999px','style','isVisible','left','99948DDoBNe','ck-ai-form__content-area-wrapper','position','ck-ai-form__loader','isEnabled','listenTo','20108564eETTwR','3501kmTsEC','341vyrtUZ','value','clipboard','setStartAfter','text/plain','class','wheel','set','bindTemplate','ck-hidden','write','execCommand','ck-ai-form__copy-button-wrapper','Copy','scrollTo','_createLoader','innerHTML','ck-ai-form__copy-button','\x20ck-ai-form__copy-button--copied','icon','appendChild','text/html','_createCopyButton','body','removeAllRanges','245cbbZyr','ck-content','loaderView','setEndBefore','<span>]</span>','absolute','execute','scrollHeight'];_0x3b2a=function(){return _0x84c5cb;};return _0x3b2a();}import{getTranslation as _0xac435c}from'../../utils/common-translations.js';import{icons as _0x2093c1}from'ckeditor5/src/core.js';export default class nt extends _0x405195{constructor(_0x18e4d3,_0x1b3d2e=''){const _0x4f7b55=_0x144a;super(_0x18e4d3),this[_0x4f7b55(0xaf)]({'value':null,'isVisible':!0x1,'isProcessing':!0x1});const _0x56c035=this[_0x4f7b55(0xb0)];this[_0x4f7b55(0x98)]=new ContentFieldView(_0x18e4d3,_0x1b3d2e),this[_0x4f7b55(0x84)]=this[_0x4f7b55(0xbe)](),this[_0x4f7b55(0x7d)]({'tag':_0x4f7b55(0x7f),'attributes':{'class':['ck',_0x4f7b55(0xa1),_0x56c035['if'](_0x4f7b55(0x9e),_0x4f7b55(0xb1),_0x1571a7=>!_0x1571a7)],'tabindex':'-1'},'children':[{'tag':_0x4f7b55(0x7f),'attributes':{'class':['ck',_0x4f7b55(0x81),_0x56c035['if'](_0x4f7b55(0x70),_0x4f7b55(0x77))]},'children':[this[_0x4f7b55(0x98)],{'tag':_0x4f7b55(0x7f),'attributes':{'class':['ck',_0x4f7b55(0xb4)]},'children':[this[_0x4f7b55(0x84)]]}]}]});}[_0x1398cd(0x91)](){const _0x1e1b21=_0x1398cd;super[_0x1e1b21(0x91)](),this[_0x1e1b21(0xa9)]&&this[_0x1e1b21(0x98)][_0x1e1b21(0x7c)](this[_0x1e1b21(0xa9)]);let _0x4e6650=!0x1;this['on'](_0x1e1b21(0x8e),(_0x23cea0,_0x5cfd8a,_0x2af817)=>{const _0x34d8c9=_0x1e1b21,_0x313a58=!this[_0x34d8c9(0x98)][_0x34d8c9(0x7b)][_0x34d8c9(0x7e)](_0x34d8c9(0x89));this[_0x34d8c9(0x98)][_0x34d8c9(0x7c)](_0x2af817),this[_0x34d8c9(0x70)]&&_0x313a58&&!_0x4e6650&&this[_0x34d8c9(0x7b)][_0x34d8c9(0xb6)]({'top':this[_0x34d8c9(0x7b)][_0x34d8c9(0x6e)],'behavior':_0x34d8c9(0x76)});}),this['on'](_0x1e1b21(0x80),(_0x436128,_0x5f2a93,_0x1227b5)=>{const _0x37c1f4=_0x1e1b21;_0x4e6650=!0x1,_0x1227b5?(this[_0x37c1f4(0xa9)]=null,this[_0x37c1f4(0x98)][_0x37c1f4(0x72)]()):this[_0x37c1f4(0xa9)]||this[_0x37c1f4(0x98)][_0x37c1f4(0x7c)]('');}),this[_0x1e1b21(0xa5)](this[_0x1e1b21(0x7b)],_0x1e1b21(0xae),()=>{_0x4e6650=!0x0;}),this[_0x1e1b21(0xa5)](this[_0x1e1b21(0x7b)],_0x1e1b21(0x87),()=>{_0x4e6650=!0x0;});}[_0x1398cd(0x85)](){const _0x18855=_0x1398cd;this[_0x18855(0x7b)][_0x18855(0x85)]();}[_0x1398cd(0xbe)](){const _0x3c8595=_0x1398cd,_0x2b93a0=this[_0x3c8595(0x93)],_0x136da6=new _0x114193(this[_0x3c8595(0x93)]),_0x2b7bb3=_0x3c8595(0xb9);return _0x136da6[_0x3c8595(0xaf)]({'label':_0xac435c(_0x2b93a0,_0x3c8595(0xb5)),'icon':_0x392c9b,'class':_0x2b7bb3,'tooltip':!0x0}),_0x136da6[_0x3c8595(0x71)](_0x3c8595(0x9e))['to'](this,_0x3c8595(0xa9),_0x53ff3=>!!_0x53ff3),_0x136da6[_0x3c8595(0x71)](_0x3c8595(0xa4))['to'](this,_0x3c8595(0x70),_0x1e51e9=>!_0x1e51e9),_0x136da6['on'](_0x3c8595(0x6d),()=>{const _0x17316d=_0x3c8595;this[_0x17316d(0x8d)](this[_0x17316d(0x98)][_0x17316d(0x7b)]),_0x136da6[_0x17316d(0xbb)]=_0x2093c1[_0x17316d(0x75)],_0x136da6[_0x17316d(0xad)]=_0x2b7bb3+_0x17316d(0xba),this[_0x17316d(0x85)](),setTimeout(()=>{const _0x440a3a=_0x17316d;_0x136da6[_0x440a3a(0xbb)]=_0x392c9b,_0x136da6[_0x440a3a(0xad)]=_0x2b7bb3;},0x3e8);}),_0x136da6;}[_0x1398cd(0x8d)](_0x266740){const _0x167c20=_0x1398cd,{window:_0xdd40b8,document:_0x43410a}=_0xc084c7;if(_0xdd40b8[_0x167c20(0x83)]){const {Blob:_0x53a021,ClipboardItem:_0x51da85}=_0xdd40b8,_0x295c74=[new _0x51da85({'text/html':new _0x53a021([_0x266740[_0x167c20(0xb8)]],{'type':_0x167c20(0xbd)}),'text/plain':new _0x53a021([_0x266740[_0x167c20(0x8c)]||''],{'type':_0x167c20(0xac)})})];navigator[_0x167c20(0xaa)][_0x167c20(0xb2)](_0x295c74);}else{const _0x2fd1ee=_0x43410a[_0x167c20(0x8b)](_0x167c20(0x7f));_0x2fd1ee[_0x167c20(0x9d)][_0x167c20(0xa2)]=_0x167c20(0x6c),_0x2fd1ee[_0x167c20(0x9d)][_0x167c20(0x9f)]=_0x167c20(0x9c),_0x2fd1ee[_0x167c20(0xb8)]=_0x167c20(0x6f)+_0x266740[_0x167c20(0xb8)]+_0x167c20(0x6b),_0x43410a[_0x167c20(0xbf)][_0x167c20(0xbc)](_0x2fd1ee);const _0x6427c1=_0x43410a[_0x167c20(0x94)]();_0x6427c1[_0x167c20(0xab)](_0x2fd1ee[_0x167c20(0x97)]),_0x6427c1[_0x167c20(0x6a)](_0x2fd1ee[_0x167c20(0x78)]);const _0x1e41cc=_0xdd40b8[_0x167c20(0x9a)]();_0x1e41cc[_0x167c20(0xc0)](),_0x1e41cc[_0x167c20(0x92)](_0x6427c1),_0x43410a[_0x167c20(0xb3)](_0x167c20(0x9b)),_0x2fd1ee[_0x167c20(0x7a)]();}}}export class ContentFieldView extends _0x405195{constructor(_0x108c78,_0x1dec18=''){const _0x153e41=_0x1398cd;super(_0x108c78),this[_0x153e41(0x69)]=this[_0x153e41(0xb7)](),this[_0x153e41(0x7d)]({'tag':_0x153e41(0x7f),'attributes':{'class':['ck',_0x153e41(0x68),_0x1dec18,_0x153e41(0x96),_0x153e41(0x86)]}});}[_0x1398cd(0x7c)](_0x44e432){const _0x3d6dcb=_0x1398cd;this[_0x3d6dcb(0x7b)][_0x3d6dcb(0xb8)]=_0x44e432;}[_0x1398cd(0x72)](){const _0x22b53b=_0x1398cd;this[_0x22b53b(0x7b)][_0x22b53b(0xbc)](this[_0x22b53b(0x69)][_0x22b53b(0x7b)]);}[_0x1398cd(0xb7)](){const _0x15b70a=_0x1398cd,_0x154b7d=new _0x405195(),_0x288687=this[_0x15b70a(0x93)],_0x3ca612=new _0x335440();return _0x3ca612[_0x15b70a(0x9e)]=!0x0,_0x154b7d[_0x15b70a(0x7d)]({'tag':_0x15b70a(0x7f),'attributes':{'class':['ck',_0x15b70a(0xa3)]},'children':[_0x3ca612,{'text':_0xac435c(_0x288687,_0x15b70a(0x82))}]}),_0x154b7d[_0x15b70a(0x91)](),_0x154b7d;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0xa6a5a6,_0x467978){const _0x23af38=_0x2aae,_0x405cff=_0xa6a5a6();while(!![]){try{const _0x3fbc28=parseInt(_0x23af38(0xae))/0x1*(-parseInt(_0x23af38(0xa9))/0x2)+parseInt(_0x23af38(0xac))/0x3*(parseInt(_0x23af38(0xb7))/0x4)+parseInt(_0x23af38(0xaa))/0x5+-parseInt(_0x23af38(0xaf))/0x6*(-parseInt(_0x23af38(0xb8))/0x7)+parseInt(_0x23af38(0xa8))/0x8*(parseInt(_0x23af38(0xb6))/0x9)+-parseInt(_0x23af38(0xb0))/0xa+-parseInt(_0x23af38(0xb3))/0xb;if(_0x3fbc28===_0x467978)break;else _0x405cff['push'](_0x405cff['shift']());}catch(_0x3bc2cf){_0x405cff['push'](_0x405cff['shift']());}}}(_0xbd2c,0xd9d9c));function _0x2aae(_0x50d318,_0x37a953){const _0xbd2c10=_0xbd2c();return _0x2aae=function(_0x2aaeca,_0x1049b2){_0x2aaeca=_0x2aaeca-0xa7;let _0x429bce=_0xbd2c10[_0x2aaeca];return _0x429bce;},_0x2aae(_0x50d318,_0x37a953);}import{View as _0x7b8c8,IconView as _0x49ceca}from'ckeditor5/src/ui.js';function _0xbd2c(){const _0x45ad48=['695736NZnKlm','2hanXqB','918455BneJUh','text','3948339UlLSrB','div','863753NLCUsG','6uVsEQg','7142220HXyidd','setTemplate','ck-ai-form__error','12092707bDboKv','set','bindTemplate','135GiTRGO','4brWOjo','5357233ejXeHm','content'];_0xbd2c=function(){return _0x45ad48;};return _0xbd2c();}import _0x594440 from'../../../theme/icons/error.svg';export default class mt extends _0x7b8c8{constructor(_0x367fcb,_0x348f49=''){const _0xfb8093=_0x2aae;super(_0x367fcb);const _0x2327b7=new _0x49ceca(),_0x499fac=this[_0xfb8093(0xb5)];this[_0xfb8093(0xb4)](_0xfb8093(0xab),_0x348f49),_0x2327b7[_0xfb8093(0xa7)]=_0x594440,this[_0xfb8093(0xb1)]({'tag':_0xfb8093(0xad),'attributes':{'class':['ck',_0xfb8093(0xb2)]},'children':[_0x2327b7,{'text':_0x499fac['to'](_0xfb8093(0xab))}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x365bf0=_0x1ab5;(function(_0x8657b6,_0x535522){const _0xb39615=_0x1ab5,_0x41eaa5=_0x8657b6();while(!![]){try{const _0x4bff38=-parseInt(_0xb39615(0x1ff))/0x1+-parseInt(_0xb39615(0x1d4))/0x2+parseInt(_0xb39615(0x1d0))/0x3+-parseInt(_0xb39615(0x1e1))/0x4*(parseInt(_0xb39615(0x1d5))/0x5)+-parseInt(_0xb39615(0x1f1))/0x6*(parseInt(_0xb39615(0x1fb))/0x7)+parseInt(_0xb39615(0x205))/0x8*(-parseInt(_0xb39615(0x1cd))/0x9)+-parseInt(_0xb39615(0x1dc))/0xa*(-parseInt(_0xb39615(0x1cf))/0xb);if(_0x4bff38===_0x535522)break;else _0x41eaa5['push'](_0x41eaa5['shift']());}catch(_0x33ab3d){_0x41eaa5['push'](_0x41eaa5['shift']());}}}(_0x5e72,0xb1c12));import{Rect as _0x255518,global as _0x20dc33,isVisible as _0x23d63a}from'ckeditor5/src/utils.js';import{AutocompleteView as _0x161345,ButtonView as _0x48a421}from'ckeditor5/src/ui.js';import{icons as _0x1165b9}from'ckeditor5/src/core.js';import{getTranslation as _0x40679d}from'../../utils/common-translations.js';import _0x1660be from'../../../theme/icons/submit.svg';export default class pt extends _0x161345{constructor(_0x203f2a,_0x5d5ebb){const _0x12003c=_0x1ab5;super(_0x203f2a,_0x5d5ebb),this[_0x12003c(0x1d6)][_0x12003c(0x203)][_0x12003c(0x1e5)]=0x1,this[_0x12003c(0x1d6)][_0x12003c(0x203)][_0x12003c(0x1fa)]=0x3,this[_0x12003c(0x1d2)]=this[_0x12003c(0x1e4)](),this[_0x12003c(0x1e7)]=this[_0x12003c(0x201)](),this[_0x12003c(0x1f4)][_0x12003c(0x1fe)](this[_0x12003c(0x1e7)],0x1),this[_0x12003c(0x1f4)][_0x12003c(0x1fe)](this[_0x12003c(0x1d2)]);}[_0x365bf0(0x1fc)](){const _0x508a79=_0x365bf0;super[_0x508a79(0x1fc)](),this[_0x508a79(0x1d6)][_0x508a79(0x1ec)][_0x508a79(0x1fe)](this[_0x508a79(0x1e7)]),this[_0x508a79(0x1e0)][_0x508a79(0x1fe)](this[_0x508a79(0x1d2)]),this[_0x508a79(0x1d9)][_0x508a79(0x1f3)](_0x508a79(0x1fd),(_0x2aeb23,_0x456833)=>{const _0x46301b=_0x508a79;_0x2aeb23[_0x46301b(0x1f2)]==this[_0x46301b(0x1d6)][_0x46301b(0x203)][_0x46301b(0x1f6)]&&(this[_0x46301b(0x200)](),_0x456833());});}[_0x365bf0(0x1e4)](){const _0x4b64e5=_0x365bf0,_0x1f9885=new _0x48a421(this[_0x4b64e5(0x1e9)]),_0x83d3cc=this[_0x4b64e5(0x1e9)];return _0x1f9885[_0x4b64e5(0x1f3)]({'icon':_0x1660be,'label':_0x40679d(_0x83d3cc,_0x4b64e5(0x206)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x4b64e5(0x1df)}),_0x1f9885['on'](_0x4b64e5(0x204),()=>{const _0x5aab7=_0x4b64e5;this[_0x5aab7(0x200)]();}),_0x1f9885[_0x4b64e5(0x202)](_0x4b64e5(0x1eb))['to'](this[_0x4b64e5(0x1d6)][_0x4b64e5(0x203)],_0x4b64e5(0x1de),this,_0x4b64e5(0x1eb),(_0x4b91b3,_0x1de186)=>!_0x4b91b3&&_0x1de186),_0x1f9885;}[_0x365bf0(0x201)](){const _0x17d643=_0x365bf0,_0x472c18=new _0x48a421(this[_0x17d643(0x1e9)]),_0xad51da=this[_0x17d643(0x1f7)],_0x3e28ed=this[_0x17d643(0x1e9)];_0x472c18[_0x17d643(0x1f3)]({'label':_0x40679d(_0x3e28ed,_0x17d643(0x1e3)),'withText':!0x1,'icon':_0x1165b9[_0x17d643(0x1e8)],'tooltip':!0x0,'tooltipPosition':'sw','class':_0x17d643(0x1d3)}),_0x472c18[_0x17d643(0x202)](_0x17d643(0x1ef))['to'](_0xad51da,_0x17d643(0x1d1)),_0x472c18[_0x17d643(0x202)](_0x17d643(0x1eb))['to'](this,_0x17d643(0x1eb)),_0x472c18['on'](_0x17d643(0x204),()=>{const _0x136c1b=_0x17d643;_0xad51da[_0x136c1b(0x1d1)]=!_0xad51da[_0x136c1b(0x1d1)],_0xad51da[_0x136c1b(0x1d1)]?this[_0x136c1b(0x1e6)][_0x136c1b(0x1d7)]():this[_0x136c1b(0x1d7)]();});const _0x443c08=()=>{const _0x10bee4=_0x17d643;_0x20dc33[_0x10bee4(0x1f9)][_0x10bee4(0x1e2)](()=>{const _0x5b4848=_0x10bee4;if(_0x23d63a(this[_0x5b4848(0x1f6)])){const _0x3346a6=new _0x255518(this[_0x5b4848(0x1d6)][_0x5b4848(0x203)][_0x5b4848(0x1f6)]),_0x525087=_0x3346a6[_0x5b4848(0x1ea)],_0x321459=_0x5b4848(0x1f5)===_0x3e28ed[_0x5b4848(0x1d8)]?_0x5b4848(0x1ed):_0x5b4848(0x1dd);_0x3346a6[_0x5b4848(0x1cc)](),_0x472c18[_0x5b4848(0x1f6)][_0x5b4848(0x1f0)][_0x321459]=_0x525087-_0x3346a6[_0x5b4848(0x1ea)]+0x1+'px';}});};return this[_0x17d643(0x1d6)][_0x17d643(0x203)]['on'](_0x17d643(0x1cb),_0x443c08),this['on'](_0x17d643(0x1fc),_0x443c08),_0x472c18;}[_0x365bf0(0x200)](){const _0x398c2f=_0x365bf0,_0x295faa=this[_0x398c2f(0x1d6)][_0x398c2f(0x203)][_0x398c2f(0x1f6)][_0x398c2f(0x1db)];this[_0x398c2f(0x1da)](_0x398c2f(0x200),_0x295faa);}[_0x365bf0(0x1d7)](_0xf3f0f7){const _0x1fe4b6=_0x365bf0;-0x1===_0xf3f0f7?this[_0x1fe4b6(0x1ce)][_0x1fe4b6(0x1ee)]():this[_0x1fe4b6(0x1ce)][_0x1fe4b6(0x1f8)]();}}function _0x1ab5(_0x46957c,_0x5fe3aa){const _0x5e723a=_0x5e72();return _0x1ab5=function(_0x1ab511,_0x13b128){_0x1ab511=_0x1ab511-0x1cb;let _0x10368a=_0x5e723a[_0x1ab511];return _0x10368a;},_0x1ab5(_0x46957c,_0x5fe3aa);}function _0x5e72(){const _0xc3c56c=['5wsGGxA','queryView','focus','uiLanguageDirection','keystrokes','fire','value','10iPOcbG','right','isEmpty','ck-ai-form__submit','children','1737140ccAHCj','requestAnimationFrame','History','_createSubmitButton','minRows','filteredView','showHistoryButtonView','history','locale','width','isEnabled','fieldWrapperChildren','left','focusLast','isOn','style','914574KIWcNe','target','set','focusableChildren','rtl','element','resultsView','focusFirst','window','maxRows','35hiuDax','render','enter','add','1233843FcjFsT','submit','_createShowHistoryButton','bind','fieldView','execute','8aBEXfe','Submit','update','excludeScrollbarsAndBorders','5292234tyYREB','focusCycler','28531613lceyeR','4125105yjUytw','isVisible','submitButtonView','ck-ai-form__toggle-history','444874IxJTlb'];_0x5e72=function(){return _0xc3c56c;};return _0x5e72();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x10c1(_0x2a1bc1,_0x52a45e){const _0x48f6ea=_0x48f6();return _0x10c1=function(_0x10c154,_0x6ea4c0){_0x10c154=_0x10c154-0x19c;let _0x3f3d52=_0x48f6ea[_0x10c154];return _0x3f3d52;},_0x10c1(_0x2a1bc1,_0x52a45e);}const _0xa3bb56=_0x10c1;(function(_0x38f2c1,_0x489f96){const _0x27210c=_0x10c1,_0x38b64c=_0x38f2c1();while(!![]){try{const _0x525adc=-parseInt(_0x27210c(0x1ba))/0x1+parseInt(_0x27210c(0x1aa))/0x2*(-parseInt(_0x27210c(0x1a9))/0x3)+parseInt(_0x27210c(0x1ac))/0x4*(-parseInt(_0x27210c(0x1b7))/0x5)+parseInt(_0x27210c(0x1ae))/0x6+parseInt(_0x27210c(0x1a5))/0x7+parseInt(_0x27210c(0x19d))/0x8*(parseInt(_0x27210c(0x1b4))/0x9)+parseInt(_0x27210c(0x1af))/0xa;if(_0x525adc===_0x489f96)break;else _0x38b64c['push'](_0x38b64c['shift']());}catch(_0x5281bb){_0x38b64c['push'](_0x38b64c['shift']());}}}(_0x48f6,0xc5f6a));function _0x48f6(){const _0x84cdc9=['set','AI_','Stop','isVisible','ck-hidden','6963796qIhMdh','ck-button-action','extendTemplate','_CONTENT','3SqKvRR','1463866mtMmqZ','stopButton','4nWbfLD','insertButton','4655592aLBsDN','2504380yxtThC','ck-ai-form__toolbar','mainAction','replace','bind','56673shAQre','items','Try\x20again','2137805SbcyZj','locale','replaceButton','548309mRVPVu','_createButton','bindTemplate','REPLACE','label','Insert\x20below','tryAgainButton','insert','632SpgIlV','toUpperCase','addMany'];_0x48f6=function(){return _0x84cdc9;};return _0x48f6();}import{ToolbarView as _0x5a059a,ButtonView as _0x54d20e}from'ckeditor5/src/ui.js';import{getTranslation as _0x368626}from'../../utils/common-translations.js';export const AIFormToolbarViewMainActionLabel={'REPLACE':_0xa3bb56(0x1b2),'INSERT':_0xa3bb56(0x19c)};export default class Tt extends _0x5a059a{constructor(_0x3c602a){const _0x2a44cb=_0xa3bb56;super(_0x3c602a),this[_0x2a44cb(0x1a0)](_0x2a44cb(0x1a3),!0x1),this[_0x2a44cb(0x1a0)](_0x2a44cb(0x1b1),AIFormToolbarViewMainActionLabel[_0x2a44cb(0x1bd)]),this[_0x2a44cb(0x1b9)]=this[_0x2a44cb(0x1bb)]('',_0x2a44cb(0x1a6)),this[_0x2a44cb(0x1b9)][_0x2a44cb(0x1b3)](_0x2a44cb(0x1be))['to'](this,_0x2a44cb(0x1b1),_0x3037b7=>_0x368626(_0x3c602a,_0x2a44cb(0x1a1)+_0x3037b7[_0x2a44cb(0x19e)]()+_0x2a44cb(0x1a8))),this[_0x2a44cb(0x1ad)]=this[_0x2a44cb(0x1bb)](_0x368626(_0x3c602a,_0x2a44cb(0x1bf))),this[_0x2a44cb(0x1c0)]=this[_0x2a44cb(0x1bb)](_0x368626(_0x3c602a,_0x2a44cb(0x1b6))),this[_0x2a44cb(0x1ab)]=this[_0x2a44cb(0x1bb)](_0x368626(_0x3c602a,_0x2a44cb(0x1a2)));const _0x1efda8=this[_0x2a44cb(0x1bc)];this[_0x2a44cb(0x1a7)]({'attributes':{'class':[_0x2a44cb(0x1b0),_0x1efda8['if'](_0x2a44cb(0x1a3),_0x2a44cb(0x1a4),_0x49aa54=>!_0x49aa54)]}}),this[_0x2a44cb(0x1b5)][_0x2a44cb(0x19f)]([this[_0x2a44cb(0x1b9)],this[_0x2a44cb(0x1ad)],this[_0x2a44cb(0x1c0)],this[_0x2a44cb(0x1ab)]]);}[_0xa3bb56(0x1bb)](_0x52a265,_0x430bb0){const _0x399e37=_0xa3bb56,_0x29c0e3=new _0x54d20e(this[_0x399e37(0x1b8)]);return _0x29c0e3[_0x399e37(0x1a0)]({'label':_0x52a265,'class':_0x430bb0||'','isVisible':!0x0,'withText':!0x0}),_0x29c0e3;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x54134b=_0x1cdc;(function(_0x26ec23,_0xe7b7a0){const _0x2cf5ba=_0x1cdc,_0x6c451=_0x26ec23();while(!![]){try{const _0x26afe8=-parseInt(_0x2cf5ba(0x196))/0x1+-parseInt(_0x2cf5ba(0x19a))/0x2*(parseInt(_0x2cf5ba(0x1ab))/0x3)+parseInt(_0x2cf5ba(0x15e))/0x4+parseInt(_0x2cf5ba(0x167))/0x5*(parseInt(_0x2cf5ba(0x162))/0x6)+parseInt(_0x2cf5ba(0x1a6))/0x7*(-parseInt(_0x2cf5ba(0x165))/0x8)+-parseInt(_0x2cf5ba(0x168))/0x9+parseInt(_0x2cf5ba(0x164))/0xa;if(_0x26afe8===_0xe7b7a0)break;else _0x6c451['push'](_0x6c451['shift']());}catch(_0x17c9c4){_0x6c451['push'](_0x6c451['shift']());}}}(_0xb5d3,0x761a3));import{FocusTracker as _0x18e1d2,KeystrokeHandler as _0x206142}from'ckeditor5/src/utils.js';import{View as _0x1f4237,FocusCycler as _0xc28876,createLabeledTextarea as _0x5c40b6}from'ckeditor5/src/ui.js';import _0x22404b,{AIFormToolbarViewMainActionLabel as _0x162772}from'./aiformtoolbarview.js';import _0x297510 from'./aiformcontentarea.js';import _0xa5c759 from'./aiformerrorview.js';import _0xd16fe from'./aiformpromptview.js';import _0x2df2ad from'./aihistorylistview.js';import _0x2962f1 from'./aihistorylistitemview.js';import _0x2d3f8c from'./prompthistory.js';import{getTranslation as _0x4ecd2f}from'../../utils/common-translations.js';function _0x1cdc(_0x3bbf71,_0x18271a){const _0xb5d333=_0xb5d3();return _0x1cdc=function(_0x1cdca9,_0xf47001){_0x1cdca9=_0x1cdca9-0x15b;let _0x1d8a20=_0xb5d333[_0x1cdca9];return _0x1d8a20;},_0x1cdc(_0x3bbf71,_0x18271a);}function _0xb5d3(){const _0x2f56d4=['8310303SgdGbZ','render','ck-hidden','execute','insertContentBelow','replaceContent','forwardCycle','locale','queryView','fire','focusCycler','prompt','stopButton','setTemplate','isEnabled','mainAction','_createHistoryView','stopProcessing','focusTracker','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','promptView','createCollection','contentArea','bindTo','text','search','AI_ERROR_FAILED','_promptHistory','element','reset','copyButtonView','handleError','submitPrompt','isProcessing','high','delegate','errorView','bindTemplate','trim','listenTo','_createToolbar','Ask\x20AI\x20to\x20edit\x20or\x20generate','isError','finishProcessing','div','add','137384ReHPSb','REPLACE','Empty\x20history','bind','13142svmcZN','historyGroupView','items','focusPrevious','submit','focusLast','focusFirst','_focusables','stop','tab','toolbar','clear','575974UstbAd','ck-ai-form','replaceButton','value','_createPromptView','93KopeId','focus','tryAgainButton','Ask\x20AI\x20to\x20improve\x20generated\x20text','insertButton','tryAgainEvent','focusNext','clearHistory','label','fieldView','startProcessing','isVisible','3456476sDogaS','ck-ai-form-content','backwardCycle','set','6LvVUJx','keystrokes','9949440ZoiZPP','32WwPPyI','shift\x20+\x20tab','1091320tENvXV'];_0xb5d3=function(){return _0x2f56d4;};return _0xb5d3();}import{escape as _0x45a6b8}from'lodash-es';export default class x extends _0x1f4237{constructor(_0x51b628,_0x15752c,_0x5d2077=''){const _0x4a9455=_0x1cdc;super(_0x51b628),this[_0x4a9455(0x161)](_0x4a9455(0x176),!0x0),this[_0x4a9455(0x161)](_0x4a9455(0x189),!0x1),this[_0x4a9455(0x161)](_0x4a9455(0x173),''),this[_0x4a9455(0x161)](_0x4a9455(0x1a9),''),this[_0x4a9455(0x161)](_0x4a9455(0x192),!0x1),this[_0x4a9455(0x161)](_0x4a9455(0x177),_0x162772[_0x4a9455(0x197)]),this[_0x4a9455(0x183)]=new _0x2d3f8c(),this[_0x4a9455(0x18c)]=new _0xa5c759(_0x51b628),this[_0x4a9455(0x17e)]=new _0x297510(_0x51b628,_0x5d2077),this[_0x4a9455(0x17e)][_0x4a9455(0x199)](_0x4a9455(0x189))['to'](this),this[_0x4a9455(0x17e)][_0x4a9455(0x199)](_0x4a9455(0x1a9))['to'](this),this[_0x4a9455(0x1a4)]=this[_0x4a9455(0x190)](),this[_0x4a9455(0x1a4)][_0x4a9455(0x199)](_0x4a9455(0x177))['to'](this),this[_0x4a9455(0x17c)]=this[_0x4a9455(0x1aa)](),this[_0x4a9455(0x17a)]=new _0x18e1d2(),this[_0x4a9455(0x163)]=new _0x206142(),this[_0x4a9455(0x1a1)]=this[_0x4a9455(0x17d)]([this[_0x4a9455(0x17e)],this[_0x4a9455(0x17e)][_0x4a9455(0x186)],this[_0x4a9455(0x1a4)],this[_0x4a9455(0x17c)]]),this[_0x4a9455(0x172)]=new _0xc28876({'focusables':this[_0x4a9455(0x1a1)],'focusTracker':this[_0x4a9455(0x17a)],'keystrokeHandler':this[_0x4a9455(0x163)],'actions':{'focusPrevious':_0x4a9455(0x166),'focusNext':_0x4a9455(0x1a3)}}),this[_0x4a9455(0x17c)][_0x4a9455(0x172)]['on'](_0x4a9455(0x16e),_0x1b8987=>{const _0xea2a34=_0x4a9455;this[_0xea2a34(0x172)][_0xea2a34(0x1b1)](),_0x1b8987[_0xea2a34(0x1a2)]();}),this[_0x4a9455(0x17c)][_0x4a9455(0x172)]['on'](_0x4a9455(0x160),_0x1c5f59=>{const _0x2d40e9=_0x4a9455;this[_0x2d40e9(0x172)][_0x2d40e9(0x19d)](),_0x1c5f59[_0x2d40e9(0x1a2)]();}),this[_0x4a9455(0x17c)][_0x4a9455(0x170)][_0x4a9455(0x15b)][_0x4a9455(0x199)](_0x4a9455(0x1a9))['to'](this,_0x4a9455(0x173));const _0x1609d1=this[_0x4a9455(0x18d)];this[_0x4a9455(0x175)]({'tag':_0x4a9455(0x194),'attributes':{'class':['ck',_0x4a9455(0x1a7),_0x15752c],'tabindex':'-1'},'children':[{'tag':_0x4a9455(0x194),'attributes':{'class':['ck',_0x4a9455(0x15f)]},'children':[{'tag':_0x4a9455(0x194),'attributes':{'class':[_0x1609d1['if'](_0x4a9455(0x192),_0x4a9455(0x16a),_0x4e894e=>!_0x4e894e)]},'children':[this[_0x4a9455(0x18c)]]},this[_0x4a9455(0x17e)],this[_0x4a9455(0x1a4)],this[_0x4a9455(0x17c)]]}]});}[_0x54134b(0x169)](){const _0x274f6e=_0x54134b;super[_0x274f6e(0x169)](),this[_0x274f6e(0x17a)][_0x274f6e(0x195)](this[_0x274f6e(0x17e)][_0x274f6e(0x184)]),this[_0x274f6e(0x17a)][_0x274f6e(0x195)](this[_0x274f6e(0x17e)][_0x274f6e(0x186)][_0x274f6e(0x184)]),this[_0x274f6e(0x17a)][_0x274f6e(0x195)](this[_0x274f6e(0x1a4)][_0x274f6e(0x184)]),this[_0x274f6e(0x17a)][_0x274f6e(0x195)](this[_0x274f6e(0x17c)][_0x274f6e(0x184)]),this[_0x274f6e(0x163)][_0x274f6e(0x18f)](this[_0x274f6e(0x184)]);}[_0x54134b(0x1ac)](_0x420afd=0x1){const _0x53a26e=_0x54134b;-0x1===_0x420afd?this[_0x53a26e(0x172)][_0x53a26e(0x19f)]():this[_0x53a26e(0x172)][_0x53a26e(0x1a0)]();}[_0x54134b(0x185)](){const _0x11ee8e=_0x54134b;this[_0x11ee8e(0x173)]='',this[_0x11ee8e(0x1a9)]='',this[_0x11ee8e(0x192)]=!0x1,this[_0x11ee8e(0x17c)][_0x11ee8e(0x185)](),this[_0x11ee8e(0x17e)][_0x11ee8e(0x15d)]=!0x1,this[_0x11ee8e(0x1a4)][_0x11ee8e(0x15d)]=!0x1;}[_0x54134b(0x1aa)](){const _0x3ab71b=_0x54134b,_0x1563d9=this[_0x3ab71b(0x16f)],_0x28c6a6=new _0xd16fe(_0x1563d9,{'queryView':{'label':_0x4ecd2f(_0x1563d9,_0x3ab71b(0x191)),'creator':_0x5c40b6,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x4ecd2f(_0x1563d9,_0x3ab71b(0x198)),'secondary':_0x4ecd2f(_0x1563d9,_0x3ab71b(0x17b))}}},'filteredView':this[_0x3ab71b(0x178)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x28c6a6[_0x3ab71b(0x199)](_0x3ab71b(0x176))['to'](this,_0x3ab71b(0x176),this,_0x3ab71b(0x189),(_0x283fa2,_0x21bdb4)=>_0x283fa2&&!_0x21bdb4),this[_0x3ab71b(0x18f)](_0x28c6a6,_0x3ab71b(0x19e),(_0x2e0351,_0x5b463f)=>{const _0x17fd8b=_0x3ab71b;this[_0x17fd8b(0x173)]=_0x5b463f;const _0x2606ba=_0x45a6b8(_0x5b463f);this[_0x17fd8b(0x171)](_0x17fd8b(0x188),_0x2606ba),_0x5b463f[_0x17fd8b(0x18e)]()&&this[_0x17fd8b(0x183)][_0x17fd8b(0x195)]({'prompt':_0x2606ba},0x0);},{'priority':_0x3ab71b(0x18a)}),_0x28c6a6;}[_0x54134b(0x178)](){const _0x321045=_0x54134b,_0x5dc71d=new _0x2df2ad(this[_0x321045(0x16f)]);return _0x5dc71d[_0x321045(0x19b)][_0x321045(0x19c)][_0x321045(0x17f)](this[_0x321045(0x183)])['as'](_0x2962f1),_0x5dc71d['on'](_0x321045(0x1b2),()=>{const _0x3d9081=_0x321045;this[_0x3d9081(0x183)][_0x3d9081(0x1a5)](),this[_0x3d9081(0x17c)][_0x3d9081(0x181)](''),this[_0x3d9081(0x17c)][_0x3d9081(0x1ac)]();}),_0x5dc71d;}[_0x54134b(0x190)](){const _0x438207=_0x54134b,_0x244b9b=new _0x22404b(this[_0x438207(0x16f)]);return _0x244b9b[_0x438207(0x1a8)][_0x438207(0x199)](_0x438207(0x176))['to'](this,_0x438207(0x176),this,_0x438207(0x189),this,_0x438207(0x1a9),(_0x341425,_0x19640a,_0x4da0e8)=>_0x341425&&!_0x19640a&&!!_0x4da0e8),_0x244b9b[_0x438207(0x1a8)][_0x438207(0x18b)](_0x438207(0x16b))['to'](this,_0x438207(0x16d)),_0x244b9b[_0x438207(0x1af)][_0x438207(0x199)](_0x438207(0x176))['to'](this,_0x438207(0x176),this,_0x438207(0x189),this,_0x438207(0x1a9),(_0x14d6f9,_0x5892bf,_0x1284ee)=>_0x14d6f9&&!_0x5892bf&&!!_0x1284ee),_0x244b9b[_0x438207(0x1af)][_0x438207(0x18b)](_0x438207(0x16b))['to'](this,_0x438207(0x16c)),_0x244b9b[_0x438207(0x1ad)][_0x438207(0x199)](_0x438207(0x176))['to'](this,_0x438207(0x176),this,_0x438207(0x189),(_0x376776,_0x2a2056)=>_0x376776&&!_0x2a2056),_0x244b9b[_0x438207(0x1ad)][_0x438207(0x18b)](_0x438207(0x16b))['to'](this,_0x438207(0x1b0)),_0x244b9b[_0x438207(0x174)][_0x438207(0x199)](_0x438207(0x176))['to'](this,_0x438207(0x189)),_0x244b9b[_0x438207(0x174)][_0x438207(0x18b)](_0x438207(0x16b))['to'](this,_0x438207(0x179)),_0x244b9b;}[_0x54134b(0x15c)](){const _0x319124=_0x54134b;this[_0x319124(0x1a9)]='',this[_0x319124(0x192)]=!0x1,this[_0x319124(0x189)]=!0x0,this[_0x319124(0x17e)][_0x319124(0x15d)]=!0x0,this[_0x319124(0x1a4)][_0x319124(0x15d)]=!0x0,this[_0x319124(0x17e)][_0x319124(0x1ac)]();}[_0x54134b(0x193)](){const _0x3de4c4=_0x54134b,_0x28a201=this[_0x3de4c4(0x16f)];this[_0x3de4c4(0x189)]=!0x1,this[_0x3de4c4(0x173)]='',this[_0x3de4c4(0x17c)][_0x3de4c4(0x185)](),this[_0x3de4c4(0x1a9)]&&(this[_0x3de4c4(0x17c)][_0x3de4c4(0x170)][_0x3de4c4(0x1b3)]=_0x4ecd2f(_0x28a201,_0x3de4c4(0x1ae)));}[_0x54134b(0x187)](_0x1097b3){const _0x1e676b=_0x54134b,_0x31d1be=this[_0x1e676b(0x16f)];this[_0x1e676b(0x193)](),this[_0x1e676b(0x192)]=!0x0,this[_0x1e676b(0x18c)][_0x1e676b(0x180)]=_0x1097b3||_0x4ecd2f(_0x31d1be,_0x1e676b(0x182)),this[_0x1e676b(0x1a9)]||(this[_0x1e676b(0x17e)][_0x1e676b(0x15d)]=!0x1);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x1717dc,_0x3ce2dd){const _0x4682f7=_0x4a35,_0x17bfeb=_0x1717dc();while(!![]){try{const _0x2f2b7d=parseInt(_0x4682f7(0xd1))/0x1+-parseInt(_0x4682f7(0xde))/0x2*(-parseInt(_0x4682f7(0xd6))/0x3)+-parseInt(_0x4682f7(0xdd))/0x4+parseInt(_0x4682f7(0xe1))/0x5+-parseInt(_0x4682f7(0xd7))/0x6*(parseInt(_0x4682f7(0xdc))/0x7)+parseInt(_0x4682f7(0xe0))/0x8*(parseInt(_0x4682f7(0xd3))/0x9)+parseInt(_0x4682f7(0xd8))/0xa*(-parseInt(_0x4682f7(0xd9))/0xb);if(_0x2f2b7d===_0x3ce2dd)break;else _0x17bfeb['push'](_0x17bfeb['shift']());}catch(_0x4a27fe){_0x17bfeb['push'](_0x17bfeb['shift']());}}}(_0x51b8,0x9a8fe));import{ListItemView as _0x1de6d9,ButtonView as _0x4b098f}from'ckeditor5/src/ui.js';import _0x2cb0c7 from'../dropdown/buttonlabelwithhighlightview.js';import{unescape as _0x38baca}from'lodash-es';export default class hs extends _0x1de6d9{constructor(_0x12806b){const _0x5f0df3=_0x4a35;super();const _0x1f9aac=new _0x2cb0c7(),_0x175faf=new _0x4b098f(this[_0x5f0df3(0xd2)],_0x1f9aac);this[_0x5f0df3(0xdb)][_0x5f0df3(0xda)](_0x175faf),_0x175faf[_0x5f0df3(0xd5)]({'label':_0x12806b[_0x5f0df3(0xd4)],'withText':!0x0}),_0x175faf['on'](_0x5f0df3(0xe2),()=>{const _0x1ef41f=_0x5f0df3;this[_0x1ef41f(0xdf)](_0x1ef41f(0xe2),{'value':_0x38baca(_0x12806b[_0x1ef41f(0xd4)])});});}}function _0x4a35(_0x13bc97,_0x595478){const _0x51b8d3=_0x51b8();return _0x4a35=function(_0x4a353d,_0xe8cba8){_0x4a353d=_0x4a353d-0xd1;let _0x431845=_0x51b8d3[_0x4a353d];return _0x431845;},_0x4a35(_0x13bc97,_0x595478);}function _0x51b8(){const _0xa87873=['5934015arMflq','execute','733111zpXYfV','locale','18wlaooj','prompt','set','107637XFKihS','258cVWYuJ','263560tFgOih','605RgFXvy','add','children','41041lAUWtb','1892504IvFyIL','34QDqQCD','fire','1112176riBJEs'];_0x51b8=function(){return _0xa87873;};return _0x51b8();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1b1fff=_0x53f8;(function(_0x257e74,_0x5947fc){const _0x28f53f=_0x53f8,_0xdefb3e=_0x257e74();while(!![]){try{const _0x27b68c=-parseInt(_0x28f53f(0x102))/0x1*(-parseInt(_0x28f53f(0x107))/0x2)+-parseInt(_0x28f53f(0xef))/0x3+parseInt(_0x28f53f(0x104))/0x4*(parseInt(_0x28f53f(0x101))/0x5)+parseInt(_0x28f53f(0xf7))/0x6*(parseInt(_0x28f53f(0x106))/0x7)+-parseInt(_0x28f53f(0xee))/0x8*(-parseInt(_0x28f53f(0xec))/0x9)+parseInt(_0x28f53f(0xf1))/0xa*(parseInt(_0x28f53f(0xfd))/0xb)+-parseInt(_0x28f53f(0xf8))/0xc;if(_0x27b68c===_0x5947fc)break;else _0xdefb3e['push'](_0xdefb3e['shift']());}catch(_0x202c45){_0xdefb3e['push'](_0xdefb3e['shift']());}}}(_0x2396,0xb0b28));import{ListView as _0x1dc48c,ListItemGroupView as _0x411b0f,ButtonView as _0x4426a3}from'ckeditor5/src/ui.js';function _0x53f8(_0x28f295,_0x59e71e){const _0x23965c=_0x2396();return _0x53f8=function(_0x53f82f,_0x90c419){_0x53f82f=_0x53f82f-0xeb;let _0x553bf7=_0x23965c[_0x53f82f];return _0x553bf7;},_0x53f8(_0x28f295,_0x59e71e);}function _0x2396(){const _0x26fc1a=['clearHistory','4blnVWx','execute','3899FmAuPa','250870IvPofK','children','342nRscyZ','label','116184wIEoKr','3972390VOrDEV','_createClearHistoryButton','1780aVyTNb','clearHistoryButton','Clear','add','length','delegate','9426kleplQ','3547116ClXcEA','historyGroupView','items','set','Prompt\x20history','24464lVoFDt','locale','fire','filter','721885eYKINf','3scOYuu'];_0x2396=function(){return _0x26fc1a;};return _0x2396();}import{getTranslation as _0xf3a8cd}from'../../utils/common-translations.js';export default class rs extends _0x1dc48c{constructor(_0x58e0d0){const _0x493b9a=_0x53f8;super(_0x58e0d0),this[_0x493b9a(0xf2)]=this[_0x493b9a(0xf0)](),this[_0x493b9a(0xf9)]=new _0x411b0f(),this[_0x493b9a(0xf9)][_0x493b9a(0xeb)][_0x493b9a(0xf4)](this[_0x493b9a(0xf2)],0x1),this[_0x493b9a(0xf9)][_0x493b9a(0xed)]=_0xf3a8cd(_0x58e0d0,_0x493b9a(0xfc)),this[_0x493b9a(0xf9)][_0x493b9a(0xfa)][_0x493b9a(0xf6)](_0x493b9a(0x105))['to'](this),this[_0x493b9a(0xfa)][_0x493b9a(0xf4)](this[_0x493b9a(0xf9)]);}[_0x1b1fff(0x100)](){const _0x1e5ef4=_0x1b1fff;let _0x32de8b=0x0;for(const _0x2d7da3 of this[_0x1e5ef4(0xfa)])_0x32de8b+=_0x2d7da3[_0x1e5ef4(0xfa)][_0x1e5ef4(0xf5)];return{'resultsCount':_0x32de8b,'totalItemsCount':_0x32de8b};}[_0x1b1fff(0xf0)](){const _0x59ba0b=_0x1b1fff,_0x491d2e=this[_0x59ba0b(0xfe)],_0x435282=new _0x4426a3(this[_0x59ba0b(0xfe)]);return _0x435282[_0x59ba0b(0xfb)]({'label':'('+_0xf3a8cd(_0x491d2e,_0x59ba0b(0xf3))+')','withText':!0x0}),_0x435282['on'](_0x59ba0b(0x105),()=>this[_0x59ba0b(0xff)](_0x59ba0b(0x103))),_0x435282;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1954f9=_0x4363;(function(_0x441b4a,_0xfec4de){const _0x1a7b1e=_0x4363,_0x305c4b=_0x441b4a();while(!![]){try{const _0x560583=-parseInt(_0x1a7b1e(0x161))/0x1+parseInt(_0x1a7b1e(0x167))/0x2*(-parseInt(_0x1a7b1e(0x16b))/0x3)+-parseInt(_0x1a7b1e(0x15e))/0x4+parseInt(_0x1a7b1e(0x166))/0x5+parseInt(_0x1a7b1e(0x16c))/0x6+parseInt(_0x1a7b1e(0x16d))/0x7+-parseInt(_0x1a7b1e(0x163))/0x8*(-parseInt(_0x1a7b1e(0x164))/0x9);if(_0x560583===_0xfec4de)break;else _0x305c4b['push'](_0x305c4b['shift']());}catch(_0x3947a5){_0x305c4b['push'](_0x305c4b['shift']());}}}(_0x3f49,0x40713));import{Collection as _0x4d8db9}from'ckeditor5/src/utils.js';function _0x4363(_0x29c70d,_0x39f818){const _0x3f496b=_0x3f49();return _0x4363=function(_0x436323,_0x26ebbe){_0x436323=_0x436323-0x158;let _0x1faff2=_0x3f496b[_0x436323];return _0x1faff2;},_0x4363(_0x29c70d,_0x39f818);}const cs=_0x1954f9(0x16f);function _0x3f49(){const _0xa8e29d=['268811ACMXmi','stringify','24672bJaAZR','2529laDYsn','toLowerCase','309630hoSScF','6sjyUyp','_saveToSessionStorage','getItem','setItem','507534MNVPCL','2123304hJFxfc','616595ZuItkk','map','CKEditor/AIFormView/PromptHistory','addMany','trim','parse','prompt','remove','add','length','1320796zlpdMc','last','_loadFromSessionStorage'];_0x3f49=function(){return _0xa8e29d;};return _0x3f49();}export default class os extends _0x4d8db9{constructor(){const _0x3dc4ea=_0x1954f9;super(),this[_0x3dc4ea(0x160)](),this['on'](_0x3dc4ea(0x15c),(_0x3094cf,_0x24b446)=>{const _0x273c47=_0x3dc4ea,_0x5e986a=Ss(_0x24b446[_0x273c47(0x15a)]);for(const _0xfb727c of this)if(_0xfb727c!=_0x24b446&&Ss(_0xfb727c[_0x273c47(0x15a)])===_0x5e986a){this[_0x273c47(0x15b)](_0xfb727c);break;}this[_0x273c47(0x15d)]>0x14&&this[_0x273c47(0x15b)](this[_0x273c47(0x15f)]),this[_0x273c47(0x168)]();}),this['on'](_0x3dc4ea(0x15b),()=>{const _0x203a86=_0x3dc4ea;this[_0x203a86(0x168)]();});}[_0x1954f9(0x160)](){const _0x23f5c0=_0x1954f9,_0x402347=sessionStorage[_0x23f5c0(0x169)](cs)||'[]';this[_0x23f5c0(0x170)](JSON[_0x23f5c0(0x159)](_0x402347));}[_0x1954f9(0x168)](){const _0x384a44=_0x1954f9;sessionStorage[_0x384a44(0x16a)](cs,JSON[_0x384a44(0x162)](this[_0x384a44(0x16e)](_0xb9957c=>_0xb9957c)));}}function Ss(_0x16cc11){const _0x114f43=_0x1954f9;return _0x16cc11[_0x114f43(0x165)]()[_0x114f43(0x158)]();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x11e70b=_0x289a;function _0x289a(_0x37ffe6,_0x209821){const _0x3214c7=_0x3214();return _0x289a=function(_0x289a23,_0x40c16a){_0x289a23=_0x289a23-0x184;let _0x52d7fc=_0x3214c7[_0x289a23];return _0x52d7fc;},_0x289a(_0x37ffe6,_0x209821);}(function(_0x55b238,_0x16f2d5){const _0x4fb392=_0x289a,_0x3f9270=_0x55b238();while(!![]){try{const _0x42602e=-parseInt(_0x4fb392(0x196))/0x1+-parseInt(_0x4fb392(0x19b))/0x2*(parseInt(_0x4fb392(0x1af))/0x3)+-parseInt(_0x4fb392(0x19a))/0x4+-parseInt(_0x4fb392(0x185))/0x5+-parseInt(_0x4fb392(0x1a6))/0x6*(-parseInt(_0x4fb392(0x1a0))/0x7)+parseInt(_0x4fb392(0x18a))/0x8+parseInt(_0x4fb392(0x197))/0x9;if(_0x42602e===_0x16f2d5)break;else _0x3f9270['push'](_0x3f9270['shift']());}catch(_0x338ed6){_0x3f9270['push'](_0x3f9270['shift']());}}}(_0x3214,0x56c45));import{Command as _0x29b0f3}from'ckeditor5/src/core.js';import _0x8bc3d7 from'../aiassistantui.js';function _0x3214(){const _0x50a51c=['concat','7gxDrgw','set','model','element','isEnabled','_commandDefinitions','2799726LivjdB','selection','config','commands','getSelectedBlocks','name','_hasContext','reduce','change:_hasContext','1176666AIoWXH','document','showUI','3008440pOtQUc','includes','getFirstRange','from','editor','2294248IxEstq','isEmpty','get','plugins','getRanges','ai.aiAssistant.disabledElements','getItems','hasContent','refresh','add','requiresContent','execute','241379jkxJxe','8324973cUMOLz','enabledCommandsIds','custom','350852wSTOrc','2flCshR','length','change:isEnabled','isCollapsed'];_0x3214=function(){return _0x50a51c;};return _0x3214();}export default class j extends _0x29b0f3{constructor(_0x316414,_0x55b24c){const _0x3bbfe7=_0x289a;super(_0x316414),this[_0x3bbfe7(0x1a5)]=_0x55b24c?_0x55b24c[_0x3bbfe7(0x1ad)]((_0x42d173,_0xf26886)=>_0x42d173[_0x3bbfe7(0x19f)](_0xf26886[_0x3bbfe7(0x1a9)]),new Array()):[],this[_0x3bbfe7(0x1a1)](_0x3bbfe7(0x198),[]),this['on'](_0x3bbfe7(0x1ae),(_0x57aa72,_0x166d53,_0x539338)=>{const _0x4d63a3=_0x3bbfe7;this[_0x4d63a3(0x1a4)]&&(this[_0x4d63a3(0x198)]=K(this[_0x4d63a3(0x1a5)],_0x539338));}),this[_0x3bbfe7(0x1a1)](_0x3bbfe7(0x1ac),!0x1),this['on'](_0x3bbfe7(0x19d),(_0xa9e415,_0x4d161a,_0x126cd8)=>{const _0x10d80c=_0x3bbfe7;this[_0x10d80c(0x198)]=_0x126cd8?K(this[_0x10d80c(0x1a5)],this[_0x10d80c(0x1ac)]):[];});}[_0x11e70b(0x192)](){const _0x27320d=_0x11e70b,_0x53182c=this[_0x27320d(0x189)][_0x27320d(0x1a2)];this[_0x27320d(0x1ac)]=function(_0x229245){const _0x2c1b0b=_0x27320d,_0x297406=_0x229245[_0x2c1b0b(0x1b0)][_0x2c1b0b(0x1a7)];return _0x297406[_0x2c1b0b(0x19e)]?0x0!==[..._0x297406[_0x2c1b0b(0x1aa)]()][_0x2c1b0b(0x19c)]&&![..._0x297406[_0x2c1b0b(0x1aa)]()][0x0][_0x2c1b0b(0x18b)]:!!_0x229245[_0x2c1b0b(0x191)](_0x297406[_0x2c1b0b(0x187)]());}(_0x53182c);const _0x1ec846=_0x53182c[_0x27320d(0x1b0)][_0x27320d(0x1a7)],_0xbf9b7d=this[_0x27320d(0x189)][_0x27320d(0x1a8)][_0x27320d(0x18c)](_0x27320d(0x18f));for(const _0x252656 of _0x1ec846[_0x27320d(0x18e)]())for(const _0x162b16 of _0x252656[_0x27320d(0x190)]())if(_0x162b16['is'](_0x27320d(0x1a3))&&_0xbf9b7d[_0x27320d(0x186)](_0x162b16[_0x27320d(0x1ab)]))return void(this[_0x27320d(0x1a4)]=!0x1);this[_0x27320d(0x1a4)]=!0x0;}[_0x11e70b(0x195)](_0x34f1fb='',_0x2fc09c='',_0x13d33c=_0x11e70b(0x199)){const _0x5afab5=_0x11e70b;this[_0x5afab5(0x189)][_0x5afab5(0x18d)][_0x5afab5(0x18c)](_0x8bc3d7)[_0x5afab5(0x184)](_0x34f1fb,_0x2fc09c,_0x13d33c);}}function K(_0x544926,_0x49590a){const _0x47e5e8=_0x11e70b,_0x1cbdc8=new Set();for(const _0xb09229 of _0x544926)(_0x49590a||!0x1===_0xb09229[_0x47e5e8(0x194)])&&_0x1cbdc8[_0x47e5e8(0x193)](_0xb09229['id']);return Array[_0x47e5e8(0x188)](_0x1cbdc8);}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(
|
|
23
|
+
export function getTranslation(_0x504340,_0x336573,_0x132b34){const t=_0x504340['t'];switch(_0x336573){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',_0x132b34);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',_0x132b34);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x132b34);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'},_0x132b34);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 _0x336573;}}
|