@ckeditor/ckeditor5-ai 45.2.0-alpha.7 → 45.2.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/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.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-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.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/eu.js +1 -1
- package/dist/translations/eu.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/gu.js +1 -1
- package/dist/translations/gu.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/hy.js +1 -1
- package/dist/translations/hy.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/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.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/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.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/oc.js +1 -1
- package/dist/translations/oc.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/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.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/tt.js +1 -1
- package/dist/translations/tt.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 +9 -9
- 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/legacyerrors.js +1 -1
- package/src/ui/aiassistantcontroller.js +2 -2
- 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
- package/src/utils/normalizecommandsconfig.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4c589c=_0x2d7c;(function(_0x64974,_0x419cd9){const _0x599d2f=_0x2d7c,_0xe4a9d8=_0x64974();while(!![]){try{const _0x2379b4=parseInt(_0x599d2f(0x16d))/0x1+parseInt(_0x599d2f(0x14d))/0x2+-parseInt(_0x599d2f(0x157))/0x3*(parseInt(_0x599d2f(0x177))/0x4)+-parseInt(_0x599d2f(0x144))/0x5+parseInt(_0x599d2f(0x15b))/0x6*(-parseInt(_0x599d2f(0x149))/0x7)+parseInt(_0x599d2f(0x14b))/0x8*(parseInt(_0x599d2f(0x153))/0x9)+parseInt(_0x599d2f(0x154))/0xa*(-parseInt(_0x599d2f(0x15d))/0xb);if(_0x2379b4===_0x419cd9)break;else _0xe4a9d8['push'](_0xe4a9d8['shift']());}catch(_0x2feb62){_0xe4a9d8['push'](_0xe4a9d8['shift']());}}}(_0x184e,0xbc226));import{Rect as _0x5b9ed2,global as _0x2c6ca6,isVisible as _0x8a69da}from'ckeditor5/src/utils.js';function _0x2d7c(_0x1ea46a,_0x2f6e2c){const _0x184ea7=_0x184e();return _0x2d7c=function(_0x2d7cae,_0x12c4b9){_0x2d7cae=_0x2d7cae-0x13f;let _0x19a804=_0x184ea7[_0x2d7cae];return _0x19a804;},_0x2d7c(_0x1ea46a,_0x2f6e2c);}import{IconHistory as _0x43741a,IconSubmit as _0x5a1bd2}from'ckeditor5/src/icons.js';import{AutocompleteView as _0x4d5618,ButtonView as _0x49c9a3}from'ckeditor5/src/ui.js';function _0x184e(){const _0x5956d0=['submitButtonView','2495025vmpVZf','minRows','queryView','submit','isEnabled','815773TSPcFf','resultsView','11028736TjiZxg','render','520752UwybPP','set','bind','ck-ai-form__submit','uiLanguageDirection','update','9uzKPzP','3542050uhYnIS','enter','_createShowHistoryButton','2523yqcQil','value','fieldWrapperChildren','_createSubmitButton','18HzGtiC','isEmpty','22EezZMt','width','filteredView','ck-ai-form__toggle-history','focusLast','focus','fire','left','excludeScrollbarsAndBorders','isOn','focusableChildren','locale','fieldView','showHistoryButtonView','add','target','1297546LgrlvT','keystrokes','children','isVisible','execute','style','window','History','focusCycler','element','2896GuDKqE','requestAnimationFrame','right','rtl','Submit','focusFirst','maxRows'];_0x184e=function(){return _0x5956d0;};return _0x184e();}import{getTranslation as _0x295413}from'../../utils/common-translations.js';export default class ct extends _0x4d5618{[_0x4c589c(0x143)];[_0x4c589c(0x16a)];constructor(_0x184c6d,_0x480ab3){const _0xb494e2=_0x4c589c;super(_0x184c6d,_0x480ab3),this[_0xb494e2(0x146)][_0xb494e2(0x169)][_0xb494e2(0x145)]=0x1,this[_0xb494e2(0x146)][_0xb494e2(0x169)][_0xb494e2(0x142)]=0x3,this[_0xb494e2(0x143)]=this[_0xb494e2(0x15a)](),this[_0xb494e2(0x16a)]=this[_0xb494e2(0x156)](),this[_0xb494e2(0x167)][_0xb494e2(0x16b)](this[_0xb494e2(0x16a)],0x1),this[_0xb494e2(0x167)][_0xb494e2(0x16b)](this[_0xb494e2(0x143)]);}[_0x4c589c(0x14c)](){const _0x39953c=_0x4c589c;super[_0x39953c(0x14c)](),this[_0x39953c(0x146)][_0x39953c(0x159)][_0x39953c(0x16b)](this[_0x39953c(0x16a)]),this[_0x39953c(0x16f)][_0x39953c(0x16b)](this[_0x39953c(0x143)]),this[_0x39953c(0x16e)][_0x39953c(0x14e)](_0x39953c(0x155),(_0x34bfb6,_0x19d775)=>{const _0x39f573=_0x39953c;_0x34bfb6[_0x39f573(0x16c)]==this[_0x39f573(0x146)][_0x39f573(0x169)][_0x39f573(0x176)]&&(this[_0x39f573(0x147)](),_0x19d775());});}[_0x4c589c(0x15a)](){const _0x417696=_0x4c589c,_0x4c3f72=new _0x49c9a3(this[_0x417696(0x168)]),_0x28fa35=this[_0x417696(0x168)];return _0x4c3f72[_0x417696(0x14e)]({'icon':_0x5a1bd2,'label':_0x295413(_0x28fa35,_0x417696(0x140)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x417696(0x150)}),_0x4c3f72['on'](_0x417696(0x171),()=>{const _0x1f4b97=_0x417696;this[_0x1f4b97(0x147)]();}),_0x4c3f72[_0x417696(0x14f)](_0x417696(0x148))['to'](this[_0x417696(0x146)][_0x417696(0x169)],_0x417696(0x15c),this,_0x417696(0x148),(_0x7a2d2d,_0x5e74b5)=>!_0x7a2d2d&&_0x5e74b5),_0x4c3f72;}[_0x4c589c(0x156)](){const _0xc3779f=_0x4c589c,_0x2730f7=new _0x49c9a3(this[_0xc3779f(0x168)]),_0x1a337a=this[_0xc3779f(0x14a)],_0x19df53=this[_0xc3779f(0x168)];_0x2730f7[_0xc3779f(0x14e)]({'label':_0x295413(_0x19df53,_0xc3779f(0x174)),'withText':!0x1,'icon':_0x43741a,'tooltip':!0x0,'tooltipPosition':'sw','class':_0xc3779f(0x160)}),_0x2730f7[_0xc3779f(0x14f)](_0xc3779f(0x166))['to'](_0x1a337a,_0xc3779f(0x170)),_0x2730f7[_0xc3779f(0x14f)](_0xc3779f(0x148))['to'](this,_0xc3779f(0x148)),_0x2730f7['on'](_0xc3779f(0x171),()=>{const _0x452049=_0xc3779f;_0x1a337a[_0x452049(0x170)]=!_0x1a337a[_0x452049(0x170)],_0x1a337a[_0x452049(0x170)]?this[_0x452049(0x15f)][_0x452049(0x162)]():this[_0x452049(0x162)]();});const _0x1f6a9e=()=>{const _0x2f425c=_0xc3779f;_0x2c6ca6[_0x2f425c(0x173)][_0x2f425c(0x178)](()=>{const _0x23779d=_0x2f425c;if(_0x8a69da(this[_0x23779d(0x176)])){const _0x37a536=new _0x5b9ed2(this[_0x23779d(0x146)][_0x23779d(0x169)][_0x23779d(0x176)]),_0x1909c2=_0x37a536[_0x23779d(0x15e)],_0x427cd8=_0x23779d(0x13f)===_0x19df53[_0x23779d(0x151)]?_0x23779d(0x164):_0x23779d(0x179);_0x37a536[_0x23779d(0x165)](),_0x2730f7[_0x23779d(0x176)][_0x23779d(0x172)][_0x427cd8]=_0x1909c2-_0x37a536[_0x23779d(0x15e)]+0x1+'px';}});};return this[_0xc3779f(0x146)][_0xc3779f(0x169)]['on'](_0xc3779f(0x152),_0x1f6a9e),this['on'](_0xc3779f(0x14c),_0x1f6a9e),_0x2730f7;}[_0x4c589c(0x147)](){const _0x226c04=_0x4c589c,_0x3393db=this[_0x226c04(0x146)][_0x226c04(0x169)][_0x226c04(0x176)][_0x226c04(0x158)];this[_0x226c04(0x163)](_0x226c04(0x147),_0x3393db);}[_0x4c589c(0x162)](_0x5bf24f){const _0x3378fc=_0x4c589c;-0x1===_0x5bf24f?this[_0x3378fc(0x175)][_0x3378fc(0x161)]():this[_0x3378fc(0x175)][_0x3378fc(0x141)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x87e046=_0x4f3e;(function(_0x519ab2,_0x3a9885){const _0x2cd5b6=_0x4f3e,_0x5f37d6=_0x519ab2();while(!![]){try{const _0x277457=-parseInt(_0x2cd5b6(0x127))/0x1+-parseInt(_0x2cd5b6(0x11c))/0x2*(parseInt(_0x2cd5b6(0x132))/0x3)+parseInt(_0x2cd5b6(0x123))/0x4*(parseInt(_0x2cd5b6(0x118))/0x5)+-parseInt(_0x2cd5b6(0x128))/0x6+-parseInt(_0x2cd5b6(0x115))/0x7*(-parseInt(_0x2cd5b6(0x126))/0x8)+-parseInt(_0x2cd5b6(0x130))/0x9+parseInt(_0x2cd5b6(0x110))/0xa;if(_0x277457===_0x3a9885)break;else _0x5f37d6['push'](_0x5f37d6['shift']());}catch(_0x5b6b59){_0x5f37d6['push'](_0x5f37d6['shift']());}}}(_0xe5b2,0x264b7));import{ToolbarView as _0x1cac23,ButtonView as _0x5ed8ab}from'ckeditor5/src/ui.js';function _0x4f3e(_0x518f66,_0x350d5c){const _0xe5b2be=_0xe5b2();return _0x4f3e=function(_0x4f3ea1,_0x3a8cd9){_0x4f3ea1=_0x4f3ea1-0x110;let _0x1c8256=_0xe5b2be[_0x4f3ea1];return _0x1c8256;},_0x4f3e(_0x518f66,_0x350d5c);}import{getTranslation as _0x4b3fb4}from'../../utils/common-translations.js';export const AIFormToolbarViewMainActionLabel={'REPLACE':_0x87e046(0x11d),'INSERT':_0x87e046(0x121)};function _0xe5b2(){const _0x20475c=['locale','Stop','872910nrjHHX','insertButton','138231oUeJik','bindTemplate','items','4477590MJACzG','set','extendTemplate','Insert\x20below','stopButton','357cVZTmk','AI_','REPLACE','148860CLjODj','tryAgainButton','replaceButton','Try\x20again','10UBxfVJ','replace','_CONTENT','_createButton','bind','insert','isVisible','32uJhMxm','label','ck-hidden','34696LcjloT','157996PnOGkv','1589376twsywL','ck-ai-form__toolbar','mainAction','addMany','ck-button-action','toUpperCase'];_0xe5b2=function(){return _0x20475c;};return _0xe5b2();}export default class lt extends _0x1cac23{constructor(_0x2d9d0a){const _0x57821f=_0x87e046;super(_0x2d9d0a),this[_0x57821f(0x111)](_0x57821f(0x122),!0x1),this[_0x57821f(0x111)](_0x57821f(0x12a),AIFormToolbarViewMainActionLabel[_0x57821f(0x117)]),this[_0x57821f(0x11a)]=this[_0x57821f(0x11f)]('',_0x57821f(0x12c)),this[_0x57821f(0x11a)][_0x57821f(0x120)](_0x57821f(0x124))['to'](this,_0x57821f(0x12a),_0x356594=>_0x4b3fb4(_0x2d9d0a,_0x57821f(0x116)+_0x356594[_0x57821f(0x12d)]()+_0x57821f(0x11e))),this[_0x57821f(0x131)]=this[_0x57821f(0x11f)](_0x4b3fb4(_0x2d9d0a,_0x57821f(0x113))),this[_0x57821f(0x119)]=this[_0x57821f(0x11f)](_0x4b3fb4(_0x2d9d0a,_0x57821f(0x11b))),this[_0x57821f(0x114)]=this[_0x57821f(0x11f)](_0x4b3fb4(_0x2d9d0a,_0x57821f(0x12f)));const _0x198909=this[_0x57821f(0x133)];this[_0x57821f(0x112)]({'attributes':{'class':[_0x57821f(0x129),_0x198909['if'](_0x57821f(0x122),_0x57821f(0x125),_0x428484=>!_0x428484)]}}),this[_0x57821f(0x134)][_0x57821f(0x12b)]([this[_0x57821f(0x11a)],this[_0x57821f(0x131)],this[_0x57821f(0x119)],this[_0x57821f(0x114)]]);}[_0x87e046(0x11f)](_0x232dd5,_0x1a20e7){const _0x5aba76=_0x87e046,_0x5d25d5=new _0x5ed8ab(this[_0x5aba76(0x12e)]);return _0x5d25d5[_0x5aba76(0x111)]({'label':_0x232dd5,'class':_0x1a20e7||'','isVisible':!0x0,'withText':!0x0}),_0x5d25d5;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1b95a8=_0x5325;(function(_0x231996,_0x3286fd){const _0x72a5f4=_0x5325,_0x45ea4a=_0x231996();while(!![]){try{const _0x494545=parseInt(_0x72a5f4(0x16b))/0x1*(-parseInt(_0x72a5f4(0x1b2))/0x2)+-parseInt(_0x72a5f4(0x184))/0x3*(parseInt(_0x72a5f4(0x18e))/0x4)+parseInt(_0x72a5f4(0x1b0))/0x5*(-parseInt(_0x72a5f4(0x185))/0x6)+parseInt(_0x72a5f4(0x166))/0x7*(parseInt(_0x72a5f4(0x1b4))/0x8)+-parseInt(_0x72a5f4(0x16e))/0x9*(parseInt(_0x72a5f4(0x191))/0xa)+parseInt(_0x72a5f4(0x17c))/0xb+parseInt(_0x72a5f4(0x1ab))/0xc;if(_0x494545===_0x3286fd)break;else _0x45ea4a['push'](_0x45ea4a['shift']());}catch(_0x5a68a1){_0x45ea4a['push'](_0x45ea4a['shift']());}}}(_0x4de0,0xecb27));import{FocusTracker as _0x10cfd3,KeystrokeHandler as _0x14313d}from'ckeditor5/src/utils.js';import{View as _0x4e2582,FocusCycler as _0x3a060c,createLabeledTextarea as _0x20dcdc}from'ckeditor5/src/ui.js';import _0x24931b,{AIFormToolbarViewMainActionLabel as _0x4a8fbf}from'./aiformtoolbarview.js';import _0x45fede from'./aiformcontentarea.js';import _0x3e6c58 from'./aiformerrorview.js';import _0x677fb9 from'./aiformpromptview.js';import _0x1049c4 from'./aihistorylistview.js';import _0x147b91 from'./aihistorylistitemview.js';function _0x4de0(){const _0x508489=['REPLACE','ck-hidden','copyButtonView','locale','trim','high','isVisible','bindTemplate','replaceContent','insertButton','bindTo','clear','startProcessing','focusCycler','18158760iNziRm','submit','delegate','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','shift\x20+\x20tab','29935VbnwXV','bind','2xhMktE','focusLast','14069032UdtEob','isEnabled','insertContentBelow','execute','text','focusTracker','_createToolbar','finishProcessing','listenTo','7xXrAdn','Ask\x20AI\x20to\x20improve\x20generated\x20text','render','isProcessing','stopProcessing','491966RPCcNT','_promptHistory','reset','171yrOKIn','isError','replaceButton','value','_createPromptView','chain','tryAgainEvent','search','_focusables','set','focus','Ask\x20AI\x20to\x20edit\x20or\x20generate','label','submitPrompt','7829998NFkDlg','tryAgainButton','handleError','stopButton','focusFirst','toolbar','fieldView','ck-ai-form-content','375PSqNKO','1062jKgiqH','errorView','prompt','div','items','createCollection','ck-ai-form','historyGroupView','AI_ERROR_FAILED','41128WzszPL','fire','element','93290mYwxPO','contentArea','add','queryView','setTemplate','tab','Empty\x20history','clearHistory','mainAction','keystrokes','_createHistoryView','promptView'];_0x4de0=function(){return _0x508489;};return _0x4de0();}import _0x24d438 from'./prompthistory.js';function _0x5325(_0x300bec,_0x3f3dff){const _0x4de08c=_0x4de0();return _0x5325=function(_0x53251d,_0x25a89e){_0x53251d=_0x53251d-0x166;let _0x45b90e=_0x4de08c[_0x53251d];return _0x45b90e;},_0x5325(_0x300bec,_0x3f3dff);}import{getTranslation as _0xc5f985}from'../../utils/common-translations.js';import{escape as _0x5cf036}from'es-toolkit/compat';export default class _ extends _0x4e2582{[_0x1b95a8(0x1b9)];[_0x1b95a8(0x19a)];[_0x1b95a8(0x192)];[_0x1b95a8(0x181)];[_0x1b95a8(0x19c)];[_0x1b95a8(0x186)];[_0x1b95a8(0x176)];[_0x1b95a8(0x1aa)];[_0x1b95a8(0x16c)];constructor(_0x1a2cb0,_0x5da6fe,_0x5303cd=''){const _0x311740=_0x1b95a8;super(_0x1a2cb0),this[_0x311740(0x177)](_0x311740(0x1b5),!0x0),this[_0x311740(0x177)](_0x311740(0x169),!0x1),this[_0x311740(0x177)](_0x311740(0x187),''),this[_0x311740(0x177)](_0x311740(0x171),''),this[_0x311740(0x177)](_0x311740(0x16f),!0x1),this[_0x311740(0x177)](_0x311740(0x199),_0x4a8fbf[_0x311740(0x19d)]),this[_0x311740(0x16c)]=new _0x24d438(),this[_0x311740(0x186)]=new _0x3e6c58(_0x1a2cb0),this[_0x311740(0x192)]=new _0x45fede(_0x1a2cb0,_0x5303cd),this[_0x311740(0x192)][_0x311740(0x1b1)](_0x311740(0x169))['to'](this),this[_0x311740(0x192)][_0x311740(0x1b1)](_0x311740(0x171))['to'](this),this[_0x311740(0x181)]=this[_0x311740(0x1ba)](),this[_0x311740(0x181)][_0x311740(0x1b1)](_0x311740(0x199))['to'](this),this[_0x311740(0x19c)]=this[_0x311740(0x172)](),this[_0x311740(0x1b9)]=new _0x10cfd3(),this[_0x311740(0x19a)]=new _0x14313d(),this[_0x311740(0x176)]=this[_0x311740(0x18a)]([this[_0x311740(0x192)],this[_0x311740(0x192)][_0x311740(0x19f)],this[_0x311740(0x181)],this[_0x311740(0x19c)]]),this[_0x311740(0x1aa)]=new _0x3a060c({'focusables':this[_0x311740(0x176)],'focusTracker':this[_0x311740(0x1b9)],'keystrokeHandler':this[_0x311740(0x19a)],'actions':{'focusPrevious':_0x311740(0x1af),'focusNext':_0x311740(0x196)}}),this[_0x311740(0x1aa)][_0x311740(0x173)](this[_0x311740(0x19c)][_0x311740(0x1aa)]),this[_0x311740(0x19c)][_0x311740(0x194)][_0x311740(0x182)][_0x311740(0x1b1)](_0x311740(0x171))['to'](this,_0x311740(0x187));const _0x2aab1e=this[_0x311740(0x1a4)];this[_0x311740(0x195)]({'tag':_0x311740(0x188),'attributes':{'class':['ck',_0x311740(0x18b),_0x5da6fe],'tabindex':'-1'},'children':[{'tag':_0x311740(0x188),'attributes':{'class':['ck',_0x311740(0x183)]},'children':[{'tag':_0x311740(0x188),'attributes':{'class':[_0x2aab1e['if'](_0x311740(0x16f),_0x311740(0x19e),_0x53e3dc=>!_0x53e3dc)]},'children':[this[_0x311740(0x186)]]},this[_0x311740(0x192)],this[_0x311740(0x181)],this[_0x311740(0x19c)]]}]});}[_0x1b95a8(0x168)](){const _0x1077f6=_0x1b95a8;super[_0x1077f6(0x168)](),this[_0x1077f6(0x1b9)][_0x1077f6(0x193)](this[_0x1077f6(0x192)][_0x1077f6(0x190)]),this[_0x1077f6(0x1b9)][_0x1077f6(0x193)](this[_0x1077f6(0x192)][_0x1077f6(0x19f)][_0x1077f6(0x190)]),this[_0x1077f6(0x1b9)][_0x1077f6(0x193)](this[_0x1077f6(0x181)][_0x1077f6(0x190)]),this[_0x1077f6(0x1b9)][_0x1077f6(0x193)](this[_0x1077f6(0x19c)][_0x1077f6(0x190)]),this[_0x1077f6(0x19a)][_0x1077f6(0x1bc)](this[_0x1077f6(0x190)]);}[_0x1b95a8(0x178)](_0x150751=0x1){const _0x195496=_0x1b95a8;-0x1===_0x150751?this[_0x195496(0x1aa)][_0x195496(0x1b3)]():this[_0x195496(0x1aa)][_0x195496(0x180)]();}[_0x1b95a8(0x16d)](){const _0x2d26d2=_0x1b95a8;this[_0x2d26d2(0x187)]='',this[_0x2d26d2(0x171)]='',this[_0x2d26d2(0x16f)]=!0x1,this[_0x2d26d2(0x19c)][_0x2d26d2(0x16d)](),this[_0x2d26d2(0x192)][_0x2d26d2(0x1a3)]=!0x1,this[_0x2d26d2(0x181)][_0x2d26d2(0x1a3)]=!0x1;}[_0x1b95a8(0x172)](){const _0x620785=_0x1b95a8,_0x3fc0dd=this[_0x620785(0x1a0)],_0x12abe6=new _0x677fb9(_0x3fc0dd,{'queryView':{'label':_0xc5f985(_0x3fc0dd,_0x620785(0x179)),'creator':_0x20dcdc,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0xc5f985(_0x3fc0dd,_0x620785(0x197)),'secondary':_0xc5f985(_0x3fc0dd,_0x620785(0x1ae))}}},'filteredView':this[_0x620785(0x19b)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x12abe6[_0x620785(0x1b1)](_0x620785(0x1b5))['to'](this,_0x620785(0x1b5),this,_0x620785(0x169),(_0x498a58,_0x972f00)=>_0x498a58&&!_0x972f00),this[_0x620785(0x1bc)](_0x12abe6,_0x620785(0x1ac),(_0x4b3be4,_0x15593d)=>{const _0x453e4f=_0x620785;this[_0x453e4f(0x187)]=_0x15593d;const _0x433bad=_0x5cf036(_0x15593d);this[_0x453e4f(0x18f)](_0x453e4f(0x17b),_0x433bad),_0x15593d[_0x453e4f(0x1a1)]()&&this[_0x453e4f(0x16c)][_0x453e4f(0x193)]({'prompt':_0x433bad},0x0);},{'priority':_0x620785(0x1a2)}),_0x12abe6;}[_0x1b95a8(0x19b)](){const _0x18fa7b=_0x1b95a8,_0x5aadbc=new _0x1049c4(this[_0x18fa7b(0x1a0)]);return _0x5aadbc[_0x18fa7b(0x18c)][_0x18fa7b(0x189)][_0x18fa7b(0x1a7)](this[_0x18fa7b(0x16c)])['as'](_0x147b91),_0x5aadbc['on'](_0x18fa7b(0x198),()=>{const _0x3535a7=_0x18fa7b;this[_0x3535a7(0x16c)][_0x3535a7(0x1a8)](),this[_0x3535a7(0x19c)][_0x3535a7(0x175)](''),this[_0x3535a7(0x19c)][_0x3535a7(0x178)]();}),_0x5aadbc;}[_0x1b95a8(0x1ba)](){const _0x63a3d8=_0x1b95a8,_0x2eafbd=new _0x24931b(this[_0x63a3d8(0x1a0)]);return _0x2eafbd[_0x63a3d8(0x170)][_0x63a3d8(0x1b1)](_0x63a3d8(0x1b5))['to'](this,_0x63a3d8(0x1b5),this,_0x63a3d8(0x169),this,_0x63a3d8(0x171),(_0x1bdeb0,_0x3e8c71,_0x1519af)=>_0x1bdeb0&&!_0x3e8c71&&!!_0x1519af),_0x2eafbd[_0x63a3d8(0x170)][_0x63a3d8(0x1ad)](_0x63a3d8(0x1b7))['to'](this,_0x63a3d8(0x1a5)),_0x2eafbd[_0x63a3d8(0x1a6)][_0x63a3d8(0x1b1)](_0x63a3d8(0x1b5))['to'](this,_0x63a3d8(0x1b5),this,_0x63a3d8(0x169),this,_0x63a3d8(0x171),(_0x5611a6,_0x314f20,_0x44794a)=>_0x5611a6&&!_0x314f20&&!!_0x44794a),_0x2eafbd[_0x63a3d8(0x1a6)][_0x63a3d8(0x1ad)](_0x63a3d8(0x1b7))['to'](this,_0x63a3d8(0x1b6)),_0x2eafbd[_0x63a3d8(0x17d)][_0x63a3d8(0x1b1)](_0x63a3d8(0x1b5))['to'](this,_0x63a3d8(0x1b5),this,_0x63a3d8(0x169),(_0x444b61,_0x99b090)=>_0x444b61&&!_0x99b090),_0x2eafbd[_0x63a3d8(0x17d)][_0x63a3d8(0x1ad)](_0x63a3d8(0x1b7))['to'](this,_0x63a3d8(0x174)),_0x2eafbd[_0x63a3d8(0x17f)][_0x63a3d8(0x1b1)](_0x63a3d8(0x1b5))['to'](this,_0x63a3d8(0x169)),_0x2eafbd[_0x63a3d8(0x17f)][_0x63a3d8(0x1ad)](_0x63a3d8(0x1b7))['to'](this,_0x63a3d8(0x16a)),_0x2eafbd;}[_0x1b95a8(0x1a9)](){const _0x332b65=_0x1b95a8;this[_0x332b65(0x171)]='',this[_0x332b65(0x16f)]=!0x1,this[_0x332b65(0x169)]=!0x0,this[_0x332b65(0x192)][_0x332b65(0x1a3)]=!0x0,this[_0x332b65(0x181)][_0x332b65(0x1a3)]=!0x0,this[_0x332b65(0x192)][_0x332b65(0x178)]();}[_0x1b95a8(0x1bb)](){const _0x1ba811=_0x1b95a8,_0x5eca23=this[_0x1ba811(0x1a0)];this[_0x1ba811(0x169)]=!0x1,this[_0x1ba811(0x187)]='',this[_0x1ba811(0x19c)][_0x1ba811(0x16d)](),this[_0x1ba811(0x171)]&&(this[_0x1ba811(0x19c)][_0x1ba811(0x194)][_0x1ba811(0x17a)]=_0xc5f985(_0x5eca23,_0x1ba811(0x167)));}[_0x1b95a8(0x17e)](_0x4264a2){const _0x44cfcb=_0x1b95a8,_0x4331ad=this[_0x44cfcb(0x1a0)];this[_0x44cfcb(0x1bb)](),this[_0x44cfcb(0x16f)]=!0x0,this[_0x44cfcb(0x186)][_0x44cfcb(0x1b8)]=_0x4264a2||_0xc5f985(_0x4331ad,_0x44cfcb(0x18d)),this[_0x44cfcb(0x171)]||(this[_0x44cfcb(0x192)][_0x44cfcb(0x1a3)]=!0x1);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x43c509,_0x279159){const _0x1c7e57=_0x4726,_0x119097=_0x43c509();while(!![]){try{const _0x2e3429=-parseInt(_0x1c7e57(0x172))/0x1*(-parseInt(_0x1c7e57(0x168))/0x2)+-parseInt(_0x1c7e57(0x171))/0x3+parseInt(_0x1c7e57(0x16c))/0x4*(parseInt(_0x1c7e57(0x164))/0x5)+parseInt(_0x1c7e57(0x170))/0x6*(-parseInt(_0x1c7e57(0x16a))/0x7)+parseInt(_0x1c7e57(0x169))/0x8*(-parseInt(_0x1c7e57(0x174))/0x9)+parseInt(_0x1c7e57(0x173))/0xa+parseInt(_0x1c7e57(0x165))/0xb*(parseInt(_0x1c7e57(0x16b))/0xc);if(_0x2e3429===_0x279159)break;else _0x119097['push'](_0x119097['shift']());}catch(_0x3b9ba5){_0x119097['push'](_0x119097['shift']());}}}(_0x421a,0x23176));import{ListItemView as _0x4cb4b9,ButtonView as _0x235d69,ButtonLabelView as _0x5abad3}from'ckeditor5/src/ui.js';function _0x4726(_0x4f9617,_0x1d7d67){const _0x421a92=_0x421a();return _0x4726=function(_0x4726ec,_0x321efd){_0x4726ec=_0x4726ec-0x162;let _0x4433ed=_0x421a92[_0x4726ec];return _0x4433ed;},_0x4726(_0x4f9617,_0x1d7d67);}import{unescape as _0x53a242}from'es-toolkit/compat';export default class bt extends _0x4cb4b9{constructor(_0x572227){const _0x3b344a=_0x4726;super();const _0x563f3c=new _0x5abad3(),_0x358a1a=new _0x235d69(this[_0x3b344a(0x163)],_0x563f3c);this[_0x3b344a(0x167)][_0x3b344a(0x16f)](_0x358a1a),_0x358a1a[_0x3b344a(0x162)]({'label':_0x572227[_0x3b344a(0x16d)],'withText':!0x0}),_0x358a1a['on'](_0x3b344a(0x16e),()=>{const _0x1e590c=_0x3b344a;this[_0x1e590c(0x166)](_0x1e590c(0x16e),{'value':_0x53a242(_0x572227[_0x1e590c(0x16d)])});});}}function _0x421a(){const _0x390216=['388WwFBBJ','712336OJcOXb','287vTxSrS','12PxbhUM','10412TYaWiM','prompt','execute','add','28236fXNyVQ','602889sUHCGY','116spgJna','393500EINnvM','18lDyVPd','set','locale','295DhtecK','5503256vzWKqp','fire','children'];_0x421a=function(){return _0x390216;};return _0x421a();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x4c8875=_0x3961;(function(_0xc36d55,_0x2868dd){const _0x4c2079=_0x3961,_0x1c9f41=_0xc36d55();while(!![]){try{const _0x1ea92f=parseInt(_0x4c2079(0x97))/0x1+parseInt(_0x4c2079(0x92))/0x2*(parseInt(_0x4c2079(0x9d))/0x3)+-parseInt(_0x4c2079(0x91))/0x4+parseInt(_0x4c2079(0x9e))/0x5+parseInt(_0x4c2079(0xa5))/0x6+parseInt(_0x4c2079(0x90))/0x7*(-parseInt(_0x4c2079(0x9b))/0x8)+-parseInt(_0x4c2079(0x8d))/0x9;if(_0x1ea92f===_0x2868dd)break;else _0x1c9f41['push'](_0x1c9f41['shift']());}catch(_0x5a8248){_0x1c9f41['push'](_0x1c9f41['shift']());}}}(_0x2637,0x377e5));function _0x3961(_0x18d6ec,_0x499466){const _0x2637f0=_0x2637();return _0x3961=function(_0x3961d1,_0x5ac428){_0x3961d1=_0x3961d1-0x8c;let _0x41debc=_0x2637f0[_0x3961d1];return _0x41debc;},_0x3961(_0x18d6ec,_0x499466);}import{ListView as _0x4460e4,ListItemGroupView as _0x8956cc,ButtonView as _0x4594a9}from'ckeditor5/src/ui.js';import{getTranslation as _0x43ce76}from'../../utils/common-translations.js';function _0x2637(){const _0x1aecbe=['Clear','delegate','250296itjQlH','add','children','clearHistoryButton','1600584xeFYXD','clearHistory','8547aRfcFh','2171935uftJTH','length','label','filter','set','execute','_createClearHistoryButton','642642ztZFho','Prompt\x20history','3074778avVKCY','items','historyGroupView','14BBImWa','168296ZMPiOC','154ojmTer','locale','fire'];_0x2637=function(){return _0x1aecbe;};return _0x2637();}export default class ft extends _0x4460e4{[_0x4c8875(0x8f)];[_0x4c8875(0x9a)];constructor(_0x110564){const _0x165eb2=_0x4c8875;super(_0x110564),this[_0x165eb2(0x9a)]=this[_0x165eb2(0xa4)](),this[_0x165eb2(0x8f)]=new _0x8956cc(),this[_0x165eb2(0x8f)][_0x165eb2(0x99)][_0x165eb2(0x98)](this[_0x165eb2(0x9a)],0x1),this[_0x165eb2(0x8f)][_0x165eb2(0xa0)]=_0x43ce76(_0x110564,_0x165eb2(0x8c)),this[_0x165eb2(0x8f)][_0x165eb2(0x8e)][_0x165eb2(0x96)](_0x165eb2(0xa3))['to'](this),this[_0x165eb2(0x8e)][_0x165eb2(0x98)](this[_0x165eb2(0x8f)]);}[_0x4c8875(0xa1)](){const _0x429d9b=_0x4c8875;let _0x3613b8=0x0;for(const _0x35ff1f of this[_0x429d9b(0x8e)])_0x3613b8+=_0x35ff1f[_0x429d9b(0x8e)][_0x429d9b(0x9f)];return{'resultsCount':_0x3613b8,'totalItemsCount':_0x3613b8};}[_0x4c8875(0xa4)](){const _0x152582=_0x4c8875,_0x4f3e74=this[_0x152582(0x93)],_0x386135=new _0x4594a9(this[_0x152582(0x93)]);return _0x386135[_0x152582(0xa2)]({'label':'('+_0x43ce76(_0x4f3e74,_0x152582(0x95))+')','withText':!0x0}),_0x386135['on'](_0x152582(0xa3),()=>this[_0x152582(0x94)](_0x152582(0x9c))),_0x386135;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x368b74=_0x27ea;function _0x27ea(_0x1de61a,_0x14e659){const _0x2fb9a3=_0x2fb9();return _0x27ea=function(_0x27ea83,_0x1b5d84){_0x27ea83=_0x27ea83-0x14e;let _0x2da7a6=_0x2fb9a3[_0x27ea83];return _0x2da7a6;},_0x27ea(_0x1de61a,_0x14e659);}(function(_0x3bb97b,_0x2dfa22){const _0x110d02=_0x27ea,_0x24a04e=_0x3bb97b();while(!![]){try{const _0x3554e2=parseInt(_0x110d02(0x150))/0x1+-parseInt(_0x110d02(0x164))/0x2+parseInt(_0x110d02(0x153))/0x3+-parseInt(_0x110d02(0x159))/0x4+parseInt(_0x110d02(0x160))/0x5+-parseInt(_0x110d02(0x161))/0x6*(-parseInt(_0x110d02(0x14e))/0x7)+-parseInt(_0x110d02(0x158))/0x8*(parseInt(_0x110d02(0x15f))/0x9);if(_0x3554e2===_0x2dfa22)break;else _0x24a04e['push'](_0x24a04e['shift']());}catch(_0x306086){_0x24a04e['push'](_0x24a04e['shift']());}}}(_0x2fb9,0x6fb91));import{Collection as _0x440088}from'ckeditor5/src/utils.js';const ts=_0x368b74(0x165);function _0x2fb9(){const _0x410434=['getItem','745132QLbbSa','stringify','_loadFromSessionStorage','2453799DlJYlF','addMany','map','last','length','14042776SWqdWn','1483428fnutsz','prompt','trim','setItem','_saveToSessionStorage','add','9zsVUwk','2626430qWAEbT','5307864AFIPwb','toLowerCase','parse','778348rTqxTo','CKEditor/AIFormView/PromptHistory','remove','7SgImpp'];_0x2fb9=function(){return _0x410434;};return _0x2fb9();}export default class wt extends _0x440088{constructor(){const _0x44a33c=_0x368b74;super(),this[_0x44a33c(0x152)](),this['on'](_0x44a33c(0x15e),(_0x19dc59,_0x4e4aab)=>{const _0x1cd115=_0x44a33c,_0x270f3e=os(_0x4e4aab[_0x1cd115(0x15a)]);for(const _0x37592f of this)if(_0x37592f!=_0x4e4aab&&os(_0x37592f[_0x1cd115(0x15a)])===_0x270f3e){this[_0x1cd115(0x166)](_0x37592f);break;}this[_0x1cd115(0x157)]>0x14&&this[_0x1cd115(0x166)](this[_0x1cd115(0x156)]),this[_0x1cd115(0x15d)]();}),this['on'](_0x44a33c(0x166),()=>{const _0x1499e9=_0x44a33c;this[_0x1499e9(0x15d)]();});}[_0x368b74(0x152)](){const _0x377a20=_0x368b74,_0x71cb2e=sessionStorage[_0x377a20(0x14f)](ts)||'[]';this[_0x377a20(0x154)](JSON[_0x377a20(0x163)](_0x71cb2e));}[_0x368b74(0x15d)](){const _0x555a47=_0x368b74;sessionStorage[_0x555a47(0x15c)](ts,JSON[_0x555a47(0x151)](this[_0x555a47(0x155)](_0x38bd0d=>_0x38bd0d)));}}function os(_0x17c5fc){const _0xfff305=_0x368b74;return _0x17c5fc[_0xfff305(0x162)]()[_0xfff305(0x15b)]();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x1ac4(){const _0x76a5a6=['config','getSelectedBlocks','getItems','isEmpty','498cMYlfw','from','set','getFirstRange','add','getRanges','isCollapsed','hasContent','selection','values','length','3yRDThe','model','250230nURElZ','name','85304uweiYe','change:isEnabled','get','131588Tgawep','_commandDefinitions','element','ai.aiAssistant.disabledElements','showUI','21000eLUswZ','18GzjEXw','editor','change:_hasContext','enabledCommandsIds','execute','2998732MdbFEG','refresh','document','1941680WJsUfE','requiresContent','_hasContext','isEnabled','custom','plugins','91vkxPEC','includes','485396XKUhEu'];_0x1ac4=function(){return _0x76a5a6;};return _0x1ac4();}function _0x1439(_0x221fb8,_0x5bacc0){const _0x1ac474=_0x1ac4();return _0x1439=function(_0x14396a,_0xf82414){_0x14396a=_0x14396a-0x18e;let _0x36dd10=_0x1ac474[_0x14396a];return _0x36dd10;},_0x1439(_0x221fb8,_0x5bacc0);}const _0x1d71f1=_0x1439;(function(_0x76cb62,_0xee9320){const _0x199668=_0x1439,_0x2b46c6=_0x76cb62();while(!![]){try{const _0x544e4a=parseInt(_0x199668(0x1aa))/0x1+parseInt(_0x199668(0x1af))/0x2*(-parseInt(_0x199668(0x1a8))/0x3)+-parseInt(_0x199668(0x198))/0x4+parseInt(_0x199668(0x1b4))/0x5*(-parseInt(_0x199668(0x19d))/0x6)+-parseInt(_0x199668(0x196))/0x7*(parseInt(_0x199668(0x1ac))/0x8)+parseInt(_0x199668(0x1b5))/0x9*(parseInt(_0x199668(0x190))/0xa)+parseInt(_0x199668(0x1ba))/0xb;if(_0x544e4a===_0xee9320)break;else _0x2b46c6['push'](_0x2b46c6['shift']());}catch(_0x1093a7){_0x2b46c6['push'](_0x2b46c6['shift']());}}}(_0x1ac4,0x39d10));import{Command as _0x5e52fc}from'ckeditor5/src/core.js';import _0x1ce84d from'../aiassistantui.js';export default class j extends _0x5e52fc{[_0x1d71f1(0x1b0)];constructor(_0x1aa610,_0xada239){const _0x159677=_0x1d71f1;super(_0x1aa610),this[_0x159677(0x1b0)]=_0xada239,this[_0x159677(0x19f)](_0x159677(0x1b8),[]),this['on'](_0x159677(0x1b7),(_0x35f419,_0x32c3a3,_0x1cd60e)=>{const _0x32572c=_0x159677;this[_0x32572c(0x193)]&&(this[_0x32572c(0x1b8)]=G(this[_0x32572c(0x1b0)],_0x1cd60e));}),this[_0x159677(0x19f)](_0x159677(0x192),!0x1),this['on'](_0x159677(0x1ad),(_0x2fc0c9,_0x552f28,_0x4e9783)=>{const _0x10965f=_0x159677;this[_0x10965f(0x1b8)]=_0x4e9783?G(this[_0x10965f(0x1b0)],this[_0x10965f(0x192)]):[];});}[_0x1d71f1(0x18e)](){const _0x329c51=_0x1d71f1,_0x41113e=this[_0x329c51(0x1b6)][_0x329c51(0x1a9)];this[_0x329c51(0x192)]=function(_0x410cd5){const _0x5f2695=_0x329c51,_0x1a480a=_0x410cd5[_0x5f2695(0x18f)][_0x5f2695(0x1a5)];return _0x1a480a[_0x5f2695(0x1a3)]?0x0!==[..._0x1a480a[_0x5f2695(0x19a)]()][_0x5f2695(0x1a7)]&&![..._0x1a480a[_0x5f2695(0x19a)]()][0x0][_0x5f2695(0x19c)]:!!_0x410cd5[_0x5f2695(0x1a4)](_0x1a480a[_0x5f2695(0x1a0)]());}(_0x41113e);const _0xf5ee96=_0x41113e[_0x329c51(0x18f)][_0x329c51(0x1a5)],_0x27627a=this[_0x329c51(0x1b6)][_0x329c51(0x199)][_0x329c51(0x1ae)](_0x329c51(0x1b2));for(const _0x20f248 of _0xf5ee96[_0x329c51(0x1a2)]())for(const _0x60e9b8 of _0x20f248[_0x329c51(0x19b)]())if(_0x60e9b8['is'](_0x329c51(0x1b1))&&_0x27627a[_0x329c51(0x197)](_0x60e9b8[_0x329c51(0x1ab)]))return void(this[_0x329c51(0x193)]=!0x1);this[_0x329c51(0x193)]=!0x0;}[_0x1d71f1(0x1b9)](_0x95cc9b='',_0x3ba44c='',_0x18c84d=_0x1d71f1(0x194)){const _0x29005c=_0x1d71f1;this[_0x29005c(0x1b6)][_0x29005c(0x195)][_0x29005c(0x1ae)](_0x1ce84d)[_0x29005c(0x1b3)](_0x95cc9b,_0x3ba44c,_0x18c84d);}}function G(_0x1f7767,_0x145629){const _0x181ce3=_0x1d71f1,_0x36cd57=new Set();for(const _0x363415 of _0x1f7767[_0x181ce3(0x1a6)]())(_0x145629||!0x1===_0x363415[_0x181ce3(0x191)])&&_0x36cd57[_0x181ce3(0x1a1)](_0x363415['id']);return Array[_0x181ce3(0x19e)](_0x36cd57);}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(
|
|
23
|
+
export function getTranslation(_0x3cd259,_0x517b3e,_0x4e3d2a){const t=_0x3cd259['t'];switch(_0x517b3e){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'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',_0x4e3d2a);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x4e3d2a);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'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'},_0x4e3d2a);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 _0x517b3e;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export const UNGROUPED_COMMANDS_GROUP_ID='_ungrouppedCommands';export function normalizeCommandsConfig(
|
|
23
|
+
export const UNGROUPED_COMMANDS_GROUP_ID='_ungrouppedCommands';export function normalizeCommandsConfig(_0x5919c1,_0x3d8499){const _0xc45931=(0x0,_0x3d8499['t'])('Other');return _0x5919c1['length']?'groupId'in _0x5919c1[0x0]?_0x5919c1:[{'groupId':'_ungrouppedCommands','groupLabel':_0xc45931,'order':0x1/0x0,'commands':_0x5919c1}]:[{'groupId':'_ungrouppedCommands','groupLabel':_0xc45931,'order':0x1/0x0,'commands':[]}];}
|