@ckeditor/ckeditor5-ai 46.0.1-alpha.9 → 46.0.2-alpha.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
|
-
|
|
23
|
+
function _0x5463(){const _0xc717f=['showHistoryButtonView','focusLast','children','_createSubmitButton','focusableChildren','isEmpty','Submit','2871355YwbVvZ','18515BFmAQt','window','bind','left','ck-ai-form__toggle-history','History','1935807fEIDiB','fieldWrapperChildren','target','element','keystrokes','enter','update','isOn','320672SotIKC','fieldView','add','_createShowHistoryButton','7084512hAiOLY','render','uiLanguageDirection','submit','queryView','filteredView','resultsView','style','set','1363474ajNYeR','ck-ai-form__submit','3275200nbhycA','isEnabled','focusCycler','submitButtonView','rtl','execute','excludeScrollbarsAndBorders','maxRows','width','isVisible','2648ETWgfZ','locale','minRows','value','requestAnimationFrame','focus','focusFirst','fire','right'];_0x5463=function(){return _0xc717f;};return _0x5463();}const _0x17a1b6=_0x1042;(function(_0x1c40de,_0x2d55c9){const _0x4ba955=_0x1042,_0xecdc7d=_0x1c40de();while(!![]){try{const _0x186361=parseInt(_0x4ba955(0x102))/0x1+-parseInt(_0x4ba955(0x10f))/0x2+parseInt(_0x4ba955(0xfa))/0x3+parseInt(_0x4ba955(0x111))/0x4+-parseInt(_0x4ba955(0xf3))/0x5+parseInt(_0x4ba955(0x106))/0x6+parseInt(_0x4ba955(0xf4))/0x7*(-parseInt(_0x4ba955(0xe3))/0x8);if(_0x186361===_0x2d55c9)break;else _0xecdc7d['push'](_0xecdc7d['shift']());}catch(_0xa32b46){_0xecdc7d['push'](_0xecdc7d['shift']());}}}(_0x5463,0xcb9c6));import{Rect as _0x56af66,global as _0x192e66,isVisible as _0x2c8574}from'ckeditor5/src/utils.js';import{IconHistory as _0x57255e,IconSubmit as _0x4e7dd9}from'ckeditor5/src/icons.js';import{AutocompleteView as _0x254e39,ButtonView as _0x16138e}from'ckeditor5/src/ui.js';import{getTranslation as _0x5b6dcf}from'../../utils/common-translations.js';function _0x1042(_0x5b6ebf,_0x1dbbea){const _0x5463f6=_0x5463();return _0x1042=function(_0x1042f9,_0x2c81af){_0x1042f9=_0x1042f9-0xdb;let _0x9315b9=_0x5463f6[_0x1042f9];return _0x9315b9;},_0x1042(_0x5b6ebf,_0x1dbbea);}export class AIFormPromptView extends _0x254e39{[_0x17a1b6(0xdc)];[_0x17a1b6(0xec)];constructor(_0x216737,_0x58bcd2){const _0x5a8e55=_0x17a1b6;super(_0x216737,_0x58bcd2),this[_0x5a8e55(0x10a)][_0x5a8e55(0x103)][_0x5a8e55(0xe5)]=0x1,this[_0x5a8e55(0x10a)][_0x5a8e55(0x103)][_0x5a8e55(0xe0)]=0x3,this[_0x5a8e55(0xdc)]=this[_0x5a8e55(0xef)](),this[_0x5a8e55(0xec)]=this[_0x5a8e55(0x105)](),this[_0x5a8e55(0xf0)][_0x5a8e55(0x104)](this[_0x5a8e55(0xec)],0x1),this[_0x5a8e55(0xf0)][_0x5a8e55(0x104)](this[_0x5a8e55(0xdc)]);}[_0x17a1b6(0x107)](){const _0x3c35a9=_0x17a1b6;super[_0x3c35a9(0x107)](),this[_0x3c35a9(0x10a)][_0x3c35a9(0xfb)][_0x3c35a9(0x104)](this[_0x3c35a9(0xec)]),this[_0x3c35a9(0xee)][_0x3c35a9(0x104)](this[_0x3c35a9(0xdc)]),this[_0x3c35a9(0xfe)][_0x3c35a9(0x10e)](_0x3c35a9(0xff),(_0xa7cdb7,_0x3349d5)=>{const _0x2a6c51=_0x3c35a9;_0xa7cdb7[_0x2a6c51(0xfc)]==this[_0x2a6c51(0x10a)][_0x2a6c51(0x103)][_0x2a6c51(0xfd)]&&(this[_0x2a6c51(0x109)](),_0x3349d5());});}[_0x17a1b6(0xef)](){const _0x141f0c=_0x17a1b6,_0x271e87=new _0x16138e(this[_0x141f0c(0xe4)]),_0x9f0700=this[_0x141f0c(0xe4)];return _0x271e87[_0x141f0c(0x10e)]({'icon':_0x4e7dd9,'label':_0x5b6dcf(_0x9f0700,_0x141f0c(0xf2)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x141f0c(0x110)}),_0x271e87['on'](_0x141f0c(0xde),()=>{const _0x31ec7d=_0x141f0c;this[_0x31ec7d(0x109)]();}),_0x271e87[_0x141f0c(0xf6)](_0x141f0c(0x112))['to'](this[_0x141f0c(0x10a)][_0x141f0c(0x103)],_0x141f0c(0xf1),this,_0x141f0c(0x112),(_0x4f2be1,_0x28e8db)=>!_0x4f2be1&&_0x28e8db),_0x271e87;}[_0x17a1b6(0x105)](){const _0xab2cd1=_0x17a1b6,_0xa1b774=new _0x16138e(this[_0xab2cd1(0xe4)]),_0x162020=this[_0xab2cd1(0x10c)],_0x4e2473=this[_0xab2cd1(0xe4)];_0xa1b774[_0xab2cd1(0x10e)]({'label':_0x5b6dcf(_0x4e2473,_0xab2cd1(0xf9)),'withText':!0x1,'icon':_0x57255e,'tooltip':!0x0,'tooltipPosition':'sw','class':_0xab2cd1(0xf8)}),_0xa1b774[_0xab2cd1(0xf6)](_0xab2cd1(0x101))['to'](_0x162020,_0xab2cd1(0xe2)),_0xa1b774[_0xab2cd1(0xf6)](_0xab2cd1(0x112))['to'](this,_0xab2cd1(0x112)),_0xa1b774['on'](_0xab2cd1(0xde),()=>{const _0x4fc7c8=_0xab2cd1;_0x162020[_0x4fc7c8(0xe2)]=!_0x162020[_0x4fc7c8(0xe2)],_0x162020[_0x4fc7c8(0xe2)]?this[_0x4fc7c8(0x10b)][_0x4fc7c8(0xe8)]():this[_0x4fc7c8(0xe8)]();});const _0x266d65=()=>{const _0x2aa2eb=_0xab2cd1;_0x192e66[_0x2aa2eb(0xf5)][_0x2aa2eb(0xe7)](()=>{const _0x34ee2d=_0x2aa2eb;if(_0x2c8574(this[_0x34ee2d(0xfd)])){const _0x5451a6=new _0x56af66(this[_0x34ee2d(0x10a)][_0x34ee2d(0x103)][_0x34ee2d(0xfd)]),_0x12b7ff=_0x5451a6[_0x34ee2d(0xe1)],_0x196f0d=_0x34ee2d(0xdd)===_0x4e2473[_0x34ee2d(0x108)]?_0x34ee2d(0xf7):_0x34ee2d(0xeb);_0x5451a6[_0x34ee2d(0xdf)](),_0xa1b774[_0x34ee2d(0xfd)][_0x34ee2d(0x10d)][_0x196f0d]=_0x12b7ff-_0x5451a6[_0x34ee2d(0xe1)]+0x1+'px';}});};return this[_0xab2cd1(0x10a)][_0xab2cd1(0x103)]['on'](_0xab2cd1(0x100),_0x266d65),this['on'](_0xab2cd1(0x107),_0x266d65),_0xa1b774;}[_0x17a1b6(0x109)](){const _0x4bd90b=_0x17a1b6,_0xd8f793=this[_0x4bd90b(0x10a)][_0x4bd90b(0x103)][_0x4bd90b(0xfd)][_0x4bd90b(0xe6)];this[_0x4bd90b(0xea)](_0x4bd90b(0x109),_0xd8f793);}[_0x17a1b6(0xe8)](_0x514189){const _0x2928d0=_0x17a1b6;-0x1===_0x514189?this[_0x2928d0(0xdb)][_0x2928d0(0xed)]():this[_0x2928d0(0xdb)][_0x2928d0(0xe9)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x4803(_0x24eff3,_0x5dee35){const _0x45e03c=_0x45e0();return _0x4803=function(_0x4803b7,_0x511db0){_0x4803b7=_0x4803b7-0x14c;let _0x1a21ea=_0x45e03c[_0x4803b7];return _0x1a21ea;},_0x4803(_0x24eff3,_0x5dee35);}const _0x483554=_0x4803;(function(_0x3bb28f,_0x2e7177){const _0x411523=_0x4803,_0x423b39=_0x3bb28f();while(!![]){try{const _0x244f17=-parseInt(_0x411523(0x14d))/0x1+parseInt(_0x411523(0x16a))/0x2*(-parseInt(_0x411523(0x165))/0x3)+parseInt(_0x411523(0x169))/0x4+parseInt(_0x411523(0x16d))/0x5+-parseInt(_0x411523(0x15c))/0x6*(-parseInt(_0x411523(0x166))/0x7)+-parseInt(_0x411523(0x167))/0x8+parseInt(_0x411523(0x160))/0x9*(parseInt(_0x411523(0x156))/0xa);if(_0x244f17===_0x2e7177)break;else _0x423b39['push'](_0x423b39['shift']());}catch(_0x3aa7c8){_0x423b39['push'](_0x423b39['shift']());}}}(_0x45e0,0x96602));function _0x45e0(){const _0x3708a7=['ck-button-action','16890460ZQRFNg','bind','stopButton','Try\x20again','replace','locale','6iTzZhp','bindTemplate','isVisible','_CONTENT','9rpiFrV','toUpperCase','_createButton','tryAgainButton','mainAction','9114BpAkSo','557221EJLIeY','7031320JbMFyG','label','1575036sUDFpb','46EvJiRd','ck-ai-form__toolbar','set','1093645dXYQlf','insertButton','Insert\x20below','addMany','items','816410CBGgkR','Stop','replaceButton','REPLACE','AI_','extendTemplate','insert','ck-hidden'];_0x45e0=function(){return _0x3708a7;};return _0x45e0();}import{ToolbarView as _0x225153,ButtonView as _0x31662}from'ckeditor5/src/ui.js';import{getTranslation as _0xf5fc28}from'../../utils/common-translations.js';export const AIFormToolbarViewMainActionLabel={'REPLACE':_0x483554(0x15a),'INSERT':_0x483554(0x153)};export class AIFormToolbarView extends _0x225153{constructor(_0x890ac1){const _0x3c713a=_0x483554;super(_0x890ac1),this[_0x3c713a(0x16c)](_0x3c713a(0x15e),!0x1),this[_0x3c713a(0x16c)](_0x3c713a(0x164),AIFormToolbarViewMainActionLabel[_0x3c713a(0x150)]),this[_0x3c713a(0x14f)]=this[_0x3c713a(0x162)]('',_0x3c713a(0x155)),this[_0x3c713a(0x14f)][_0x3c713a(0x157)](_0x3c713a(0x168))['to'](this,_0x3c713a(0x164),_0x492662=>_0xf5fc28(_0x890ac1,_0x3c713a(0x151)+_0x492662[_0x3c713a(0x161)]()+_0x3c713a(0x15f))),this[_0x3c713a(0x16e)]=this[_0x3c713a(0x162)](_0xf5fc28(_0x890ac1,_0x3c713a(0x16f))),this[_0x3c713a(0x163)]=this[_0x3c713a(0x162)](_0xf5fc28(_0x890ac1,_0x3c713a(0x159))),this[_0x3c713a(0x158)]=this[_0x3c713a(0x162)](_0xf5fc28(_0x890ac1,_0x3c713a(0x14e)));const _0x4bb08a=this[_0x3c713a(0x15d)];this[_0x3c713a(0x152)]({'attributes':{'class':[_0x3c713a(0x16b),_0x4bb08a['if'](_0x3c713a(0x15e),_0x3c713a(0x154),_0x247607=>!_0x247607)]}}),this[_0x3c713a(0x14c)][_0x3c713a(0x170)]([this[_0x3c713a(0x14f)],this[_0x3c713a(0x16e)],this[_0x3c713a(0x163)],this[_0x3c713a(0x158)]]);}[_0x483554(0x162)](_0x374f28,_0x3aab30){const _0x3ce737=_0x483554,_0x44d31b=new _0x31662(this[_0x3ce737(0x15b)]);return _0x44d31b[_0x3ce737(0x16c)]({'label':_0x374f28,'class':_0x3aab30||'','isVisible':!0x0,'withText':!0x0}),_0x44d31b;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x41d1(){const _0x2bf94b=['clearHistory','59288IBewOs','promptView','stopButton','Empty\x20history','focusTracker','createCollection','queryView','delegate','28348nwPsiA','add','Ask\x20AI\x20to\x20improve\x20generated\x20text','keystrokes','21594681eJNuWQ','Ask\x20AI\x20to\x20edit\x20or\x20generate','submitPrompt','chain','trim','bindTo','finishProcessing','tryAgainButton','9909464KIIAdp','1160526kYegHK','focusLast','insertContentBelow','4977275ovcKVf','bind','isError','tab','listenTo','isProcessing','_createPromptView','7ywvoIy','REPLACE','AI_ERROR_FAILED','ck-hidden','setTemplate','label','startProcessing','execute','render','focusCycler','historyGroupView','ck-ai-form-content','_promptHistory','high','toolbar','replaceButton','shift\x20+\x20tab','text','focusFirst','submit','copyButtonView','set','228sjFGYk','isEnabled','value','fieldView','items','tryAgainEvent','insertButton','search','bindTemplate','focus','handleError','stopProcessing','errorView','isVisible','prompt','locale','element','div','reset','ck-ai-form','_focusables','_createHistoryView','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','_createToolbar','3075438sjzbJm','replaceContent','clear','contentArea','fire','mainAction'];_0x41d1=function(){return _0x2bf94b;};return _0x41d1();}const _0x50200e=_0x3168;(function(_0x219878,_0x309e7f){const _0xe9a369=_0x3168,_0x2d283f=_0x219878();while(!![]){try{const _0x35579c=parseInt(_0xe9a369(0xdf))/0x1+-parseInt(_0xe9a369(0xd2))/0x2+-parseInt(_0xe9a369(0xab))/0x3*(parseInt(_0xe9a369(0xca))/0x4)+-parseInt(_0xe9a369(0xe2))/0x5+parseInt(_0xe9a369(0xc3))/0x6*(parseInt(_0xe9a369(0xe9))/0x7)+-parseInt(_0xe9a369(0xde))/0x8+parseInt(_0xe9a369(0xd6))/0x9;if(_0x35579c===_0x309e7f)break;else _0x2d283f['push'](_0x2d283f['shift']());}catch(_0xd06ee2){_0x2d283f['push'](_0x2d283f['shift']());}}}(_0x41d1,0xaa57c));import{FocusTracker as _0x58d51a,KeystrokeHandler as _0x56b1df}from'ckeditor5/src/utils.js';import{View as _0x595ad5,FocusCycler as _0x4529dd,createLabeledTextarea as _0x297fa8}from'ckeditor5/src/ui.js';import{AIFormToolbarView as _0xb36485,AIFormToolbarViewMainActionLabel as _0xdf540e}from'./aiformtoolbarview.js';import{AIFormContentArea as _0x40379f}from'./aiformcontentarea.js';import{AIFormErrorView as _0x4b7338}from'./aiformerrorview.js';import{AIFormPromptView as _0x7cc286}from'./aiformpromptview.js';import{AIHistoryListView as _0x30e6e5}from'./aihistorylistview.js';import{AIHistoryListItemView as _0x545f44}from'./aihistorylistitemview.js';import{PromptHistory as _0x327feb}from'./prompthistory.js';import{getTranslation as _0x333441}from'../../utils/common-translations.js';import{escape as _0x4bc92d}from'es-toolkit/compat';function _0x3168(_0x2934ba,_0x12408b){const _0x41d1d4=_0x41d1();return _0x3168=function(_0x31684d,_0xaa3458){_0x31684d=_0x31684d-0x9b;let _0x3fda1a=_0x41d1d4[_0x31684d];return _0x3fda1a;},_0x3168(_0x2934ba,_0x12408b);}export class AIFormView extends _0x595ad5{[_0x50200e(0xce)];[_0x50200e(0xd5)];[_0x50200e(0xc6)];[_0x50200e(0xa3)];[_0x50200e(0xcb)];[_0x50200e(0xb7)];[_0x50200e(0xbf)];[_0x50200e(0x9e)];[_0x50200e(0xa1)];constructor(_0x9f7380,_0x43790f,_0x249d9c=''){const _0x4fb850=_0x50200e;super(_0x9f7380),this[_0x4fb850(0xaa)](_0x4fb850(0xac),!0x0),this[_0x4fb850(0xaa)](_0x4fb850(0xe7),!0x1),this[_0x4fb850(0xaa)](_0x4fb850(0xb9),''),this[_0x4fb850(0xaa)](_0x4fb850(0xad),''),this[_0x4fb850(0xaa)](_0x4fb850(0xe4),!0x1),this[_0x4fb850(0xaa)](_0x4fb850(0xc8),_0xdf540e[_0x4fb850(0xea)]),this[_0x4fb850(0xa1)]=new _0x327feb(),this[_0x4fb850(0xb7)]=new _0x4b7338(_0x9f7380),this[_0x4fb850(0xc6)]=new _0x40379f(_0x9f7380,_0x249d9c),this[_0x4fb850(0xc6)][_0x4fb850(0xe3)](_0x4fb850(0xe7))['to'](this),this[_0x4fb850(0xc6)][_0x4fb850(0xe3)](_0x4fb850(0xad))['to'](this),this[_0x4fb850(0xa3)]=this[_0x4fb850(0xc2)](),this[_0x4fb850(0xa3)][_0x4fb850(0xe3)](_0x4fb850(0xc8))['to'](this),this[_0x4fb850(0xcb)]=this[_0x4fb850(0xe8)](),this[_0x4fb850(0xce)]=new _0x58d51a(),this[_0x4fb850(0xd5)]=new _0x56b1df(),this[_0x4fb850(0xbf)]=this[_0x4fb850(0xcf)]([this[_0x4fb850(0xc6)],this[_0x4fb850(0xc6)][_0x4fb850(0xa9)],this[_0x4fb850(0xa3)],this[_0x4fb850(0xcb)]]),this[_0x4fb850(0x9e)]=new _0x4529dd({'focusables':this[_0x4fb850(0xbf)],'focusTracker':this[_0x4fb850(0xce)],'keystrokeHandler':this[_0x4fb850(0xd5)],'actions':{'focusPrevious':_0x4fb850(0xa5),'focusNext':_0x4fb850(0xe5)}}),this[_0x4fb850(0x9e)][_0x4fb850(0xd9)](this[_0x4fb850(0xcb)][_0x4fb850(0x9e)]),this[_0x4fb850(0xcb)][_0x4fb850(0xd0)][_0x4fb850(0xae)][_0x4fb850(0xe3)](_0x4fb850(0xad))['to'](this,_0x4fb850(0xb9));const _0x163915=this[_0x4fb850(0xb3)];this[_0x4fb850(0xed)]({'tag':_0x4fb850(0xbc),'attributes':{'class':['ck',_0x4fb850(0xbe),_0x43790f],'tabindex':'-1'},'children':[{'tag':_0x4fb850(0xbc),'attributes':{'class':['ck',_0x4fb850(0xa0)]},'children':[{'tag':_0x4fb850(0xbc),'attributes':{'class':[_0x163915['if'](_0x4fb850(0xe4),_0x4fb850(0xec),_0x1ada6f=>!_0x1ada6f)]},'children':[this[_0x4fb850(0xb7)]]},this[_0x4fb850(0xc6)],this[_0x4fb850(0xa3)],this[_0x4fb850(0xcb)]]}]});}[_0x50200e(0x9d)](){const _0x1218ce=_0x50200e;super[_0x1218ce(0x9d)](),this[_0x1218ce(0xce)][_0x1218ce(0xd3)](this[_0x1218ce(0xc6)][_0x1218ce(0xbb)]),this[_0x1218ce(0xce)][_0x1218ce(0xd3)](this[_0x1218ce(0xc6)][_0x1218ce(0xa9)][_0x1218ce(0xbb)]),this[_0x1218ce(0xce)][_0x1218ce(0xd3)](this[_0x1218ce(0xa3)][_0x1218ce(0xbb)]),this[_0x1218ce(0xce)][_0x1218ce(0xd3)](this[_0x1218ce(0xcb)][_0x1218ce(0xbb)]),this[_0x1218ce(0xd5)][_0x1218ce(0xe6)](this[_0x1218ce(0xbb)]);}[_0x50200e(0xb4)](_0x1b0889=0x1){const _0x349a79=_0x50200e;-0x1===_0x1b0889?this[_0x349a79(0x9e)][_0x349a79(0xe0)]():this[_0x349a79(0x9e)][_0x349a79(0xa7)]();}[_0x50200e(0xbd)](){const _0x173727=_0x50200e;this[_0x173727(0xb9)]='',this[_0x173727(0xad)]='',this[_0x173727(0xe4)]=!0x1,this[_0x173727(0xcb)][_0x173727(0xbd)](),this[_0x173727(0xc6)][_0x173727(0xb8)]=!0x1,this[_0x173727(0xa3)][_0x173727(0xb8)]=!0x1;}[_0x50200e(0xe8)](){const _0x356ca5=_0x50200e,_0x6fe049=this[_0x356ca5(0xba)],_0x516252=new _0x7cc286(_0x6fe049,{'queryView':{'label':_0x333441(_0x6fe049,_0x356ca5(0xd7)),'creator':_0x297fa8,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x333441(_0x6fe049,_0x356ca5(0xcd)),'secondary':_0x333441(_0x6fe049,_0x356ca5(0xc1))}}},'filteredView':this[_0x356ca5(0xc0)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x516252[_0x356ca5(0xe3)](_0x356ca5(0xac))['to'](this,_0x356ca5(0xac),this,_0x356ca5(0xe7),(_0x353add,_0x5a1886)=>_0x353add&&!_0x5a1886),this[_0x356ca5(0xe6)](_0x516252,_0x356ca5(0xa8),(_0x47fde3,_0x93e258)=>{const _0x296707=_0x356ca5;this[_0x296707(0xb9)]=_0x93e258;const _0x1c3b38=_0x4bc92d(_0x93e258);this[_0x296707(0xc7)](_0x296707(0xd8),_0x1c3b38),_0x93e258[_0x296707(0xda)]()&&this[_0x296707(0xa1)][_0x296707(0xd3)]({'prompt':_0x1c3b38},0x0);},{'priority':_0x356ca5(0xa2)}),_0x516252;}[_0x50200e(0xc0)](){const _0x46d2d6=_0x50200e,_0x11bcfc=new _0x30e6e5(this[_0x46d2d6(0xba)]);return _0x11bcfc[_0x46d2d6(0x9f)][_0x46d2d6(0xaf)][_0x46d2d6(0xdb)](this[_0x46d2d6(0xa1)])['as'](_0x545f44),_0x11bcfc['on'](_0x46d2d6(0xc9),()=>{const _0x578878=_0x46d2d6;this[_0x578878(0xa1)][_0x578878(0xc5)](),this[_0x578878(0xcb)][_0x578878(0xb2)](''),this[_0x578878(0xcb)][_0x578878(0xb4)]();}),_0x11bcfc;}[_0x50200e(0xc2)](){const _0x25a225=_0x50200e,_0x6fa004=new _0xb36485(this[_0x25a225(0xba)]);return _0x6fa004[_0x25a225(0xa4)][_0x25a225(0xe3)](_0x25a225(0xac))['to'](this,_0x25a225(0xac),this,_0x25a225(0xe7),this,_0x25a225(0xad),(_0x205a95,_0x3f3393,_0x19a0a8)=>_0x205a95&&!_0x3f3393&&!!_0x19a0a8),_0x6fa004[_0x25a225(0xa4)][_0x25a225(0xd1)](_0x25a225(0x9c))['to'](this,_0x25a225(0xc4)),_0x6fa004[_0x25a225(0xb1)][_0x25a225(0xe3)](_0x25a225(0xac))['to'](this,_0x25a225(0xac),this,_0x25a225(0xe7),this,_0x25a225(0xad),(_0x36b286,_0x4fe5f3,_0x278e7e)=>_0x36b286&&!_0x4fe5f3&&!!_0x278e7e),_0x6fa004[_0x25a225(0xb1)][_0x25a225(0xd1)](_0x25a225(0x9c))['to'](this,_0x25a225(0xe1)),_0x6fa004[_0x25a225(0xdd)][_0x25a225(0xe3)](_0x25a225(0xac))['to'](this,_0x25a225(0xac),this,_0x25a225(0xe7),(_0x23ca30,_0x4a2554)=>_0x23ca30&&!_0x4a2554),_0x6fa004[_0x25a225(0xdd)][_0x25a225(0xd1)](_0x25a225(0x9c))['to'](this,_0x25a225(0xb0)),_0x6fa004[_0x25a225(0xcc)][_0x25a225(0xe3)](_0x25a225(0xac))['to'](this,_0x25a225(0xe7)),_0x6fa004[_0x25a225(0xcc)][_0x25a225(0xd1)](_0x25a225(0x9c))['to'](this,_0x25a225(0xb6)),_0x6fa004;}[_0x50200e(0x9b)](){const _0x54db67=_0x50200e;this[_0x54db67(0xad)]='',this[_0x54db67(0xe4)]=!0x1,this[_0x54db67(0xe7)]=!0x0,this[_0x54db67(0xc6)][_0x54db67(0xb8)]=!0x0,this[_0x54db67(0xa3)][_0x54db67(0xb8)]=!0x0,this[_0x54db67(0xc6)][_0x54db67(0xb4)]();}[_0x50200e(0xdc)](){const _0xc5bf2c=_0x50200e,_0x38cf4f=this[_0xc5bf2c(0xba)];this[_0xc5bf2c(0xe7)]=!0x1,this[_0xc5bf2c(0xb9)]='',this[_0xc5bf2c(0xcb)][_0xc5bf2c(0xbd)](),this[_0xc5bf2c(0xad)]&&(this[_0xc5bf2c(0xcb)][_0xc5bf2c(0xd0)][_0xc5bf2c(0xee)]=_0x333441(_0x38cf4f,_0xc5bf2c(0xd4)));}[_0x50200e(0xb5)](_0x13c0c7){const _0xa91845=_0x50200e,_0x2bb160=this[_0xa91845(0xba)];this[_0xa91845(0xdc)](),this[_0xa91845(0xe4)]=!0x0,this[_0xa91845(0xb7)][_0xa91845(0xa6)]=_0x13c0c7||_0x333441(_0x2bb160,_0xa91845(0xeb)),this[_0xa91845(0xad)]||(this[_0xa91845(0xc6)][_0xa91845(0xb8)]=!0x1);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x2735b3,_0x20dc22){const _0x2a950e=_0x1488,_0x5695c8=_0x2735b3();while(!![]){try{const _0x45a48a=-parseInt(_0x2a950e(0x149))/0x1+parseInt(_0x2a950e(0x14a))/0x2+-parseInt(_0x2a950e(0x144))/0x3+parseInt(_0x2a950e(0x141))/0x4+parseInt(_0x2a950e(0x145))/0x5+parseInt(_0x2a950e(0x147))/0x6*(parseInt(_0x2a950e(0x142))/0x7)+-parseInt(_0x2a950e(0x14e))/0x8;if(_0x45a48a===_0x20dc22)break;else _0x5695c8['push'](_0x5695c8['shift']());}catch(_0x5931e6){_0x5695c8['push'](_0x5695c8['shift']());}}}(_0x1db5,0x853ac));function _0x1488(_0x3c719d,_0xacf119){const _0x1db5f3=_0x1db5();return _0x1488=function(_0x14883b,_0x3336c5){_0x14883b=_0x14883b-0x141;let _0x532320=_0x1db5f3[_0x14883b];return _0x532320;},_0x1488(_0x3c719d,_0xacf119);}function _0x1db5(){const _0x564dad=['4777920qLhnXr','fire','3855076paPsSe','3563CEjbdJ','add','867810ocTduT','3611730VxYLzQ','prompt','1062PMwAKZ','execute','346056fVOXJZ','4132OhtKZm','locale','children','set'];_0x1db5=function(){return _0x564dad;};return _0x1db5();}import{ListItemView as _0x56151a,ButtonView as _0x49cd7c,ButtonLabelView as _0x510125}from'ckeditor5/src/ui.js';import{unescape as _0xcf2afe}from'es-toolkit/compat';export class AIHistoryListItemView extends _0x56151a{constructor(_0xf3a05b){const _0x521a3a=_0x1488;super();const _0x14ae82=new _0x510125(),_0x479b61=new _0x49cd7c(this[_0x521a3a(0x14b)],_0x14ae82);this[_0x521a3a(0x14c)][_0x521a3a(0x143)](_0x479b61),_0x479b61[_0x521a3a(0x14d)]({'label':_0xf3a05b[_0x521a3a(0x146)],'withText':!0x0}),_0x479b61['on'](_0x521a3a(0x148),()=>{const _0xfde253=_0x521a3a;this[_0xfde253(0x14f)](_0xfde253(0x148),{'value':_0xcf2afe(_0xf3a05b[_0xfde253(0x146)])});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5ccbb3=_0x29fb;(function(_0x1d99b3,_0x5b0e48){const _0x3d680e=_0x29fb,_0x371a0a=_0x1d99b3();while(!![]){try{const _0x4108fe=-parseInt(_0x3d680e(0xdf))/0x1+-parseInt(_0x3d680e(0xe5))/0x2*(parseInt(_0x3d680e(0xe7))/0x3)+-parseInt(_0x3d680e(0xeb))/0x4*(parseInt(_0x3d680e(0xed))/0x5)+-parseInt(_0x3d680e(0xf3))/0x6+parseInt(_0x3d680e(0xe8))/0x7+-parseInt(_0x3d680e(0xe0))/0x8*(parseInt(_0x3d680e(0xf2))/0x9)+parseInt(_0x3d680e(0xec))/0xa;if(_0x4108fe===_0x5b0e48)break;else _0x371a0a['push'](_0x371a0a['shift']());}catch(_0x20ca19){_0x371a0a['push'](_0x371a0a['shift']());}}}(_0xf439,0x5d33f));import{ListView as _0x387150,ListItemGroupView as _0x590a6d,ButtonView as _0x1f452d}from'ckeditor5/src/ui.js';function _0x29fb(_0x4d02d7,_0x2c5d42){const _0xf4397c=_0xf439();return _0x29fb=function(_0x29fbcf,_0x451e99){_0x29fbcf=_0x29fbcf-0xdc;let _0x4738fa=_0xf4397c[_0x29fbcf];return _0x4738fa;},_0x29fb(_0x4d02d7,_0x2c5d42);}function _0xf439(){const _0x41051f=['12160340qqvdQf','7625hjsmsD','_createClearHistoryButton','filter','clearHistory','fire','111987tsuDzn','147330sWwFoi','clearHistoryButton','length','set','delegate','label','Clear','192048WXrLFY','88GSynYU','items','Prompt\x20history','add','historyGroupView','10swQZET','locale','373938RPHyOS','2886492lWauJE','children','execute','708gvVRyP'];_0xf439=function(){return _0x41051f;};return _0xf439();}import{getTranslation as _0xd74f0e}from'../../utils/common-translations.js';export class AIHistoryListView extends _0x387150{[_0x5ccbb3(0xe4)];[_0x5ccbb3(0xf4)];constructor(_0x2ef99d){const _0x511c89=_0x5ccbb3;super(_0x2ef99d),this[_0x511c89(0xf4)]=this[_0x511c89(0xee)](),this[_0x511c89(0xe4)]=new _0x590a6d(),this[_0x511c89(0xe4)][_0x511c89(0xe9)][_0x511c89(0xe3)](this[_0x511c89(0xf4)],0x1),this[_0x511c89(0xe4)][_0x511c89(0xdd)]=_0xd74f0e(_0x2ef99d,_0x511c89(0xe2)),this[_0x511c89(0xe4)][_0x511c89(0xe1)][_0x511c89(0xdc)](_0x511c89(0xea))['to'](this),this[_0x511c89(0xe1)][_0x511c89(0xe3)](this[_0x511c89(0xe4)]);}[_0x5ccbb3(0xef)](){const _0x2f063e=_0x5ccbb3;let _0xd613e6=0x0;for(const _0x599318 of this[_0x2f063e(0xe1)])_0xd613e6+=_0x599318[_0x2f063e(0xe1)][_0x2f063e(0xf5)];return{'resultsCount':_0xd613e6,'totalItemsCount':_0xd613e6};}[_0x5ccbb3(0xee)](){const _0x2c918e=_0x5ccbb3,_0xade55e=this[_0x2c918e(0xe6)],_0x2489b1=new _0x1f452d(this[_0x2c918e(0xe6)]);return _0x2489b1[_0x2c918e(0xf6)]({'label':'('+_0xd74f0e(_0xade55e,_0x2c918e(0xde))+')','withText':!0x0}),_0x2489b1['on'](_0x2c918e(0xea),()=>this[_0x2c918e(0xf1)](_0x2c918e(0xf0))),_0x2489b1;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x4e08(_0x39f553,_0x25aea1){const _0x4918d3=_0x4918();return _0x4e08=function(_0x4e083c,_0x24fd1f){_0x4e083c=_0x4e083c-0x164;let _0x27e7f0=_0x4918d3[_0x4e083c];return _0x27e7f0;},_0x4e08(_0x39f553,_0x25aea1);}const _0x3c8f09=_0x4e08;(function(_0x2167eb,_0x15fe99){const _0x34acd0=_0x4e08,_0x3e2afb=_0x2167eb();while(!![]){try{const _0x299957=parseInt(_0x34acd0(0x167))/0x1+parseInt(_0x34acd0(0x169))/0x2*(-parseInt(_0x34acd0(0x16a))/0x3)+parseInt(_0x34acd0(0x178))/0x4*(-parseInt(_0x34acd0(0x17c))/0x5)+parseInt(_0x34acd0(0x164))/0x6*(-parseInt(_0x34acd0(0x180))/0x7)+parseInt(_0x34acd0(0x16b))/0x8*(-parseInt(_0x34acd0(0x166))/0x9)+-parseInt(_0x34acd0(0x171))/0xa*(-parseInt(_0x34acd0(0x173))/0xb)+parseInt(_0x34acd0(0x175))/0xc*(parseInt(_0x34acd0(0x17d))/0xd);if(_0x299957===_0x15fe99)break;else _0x3e2afb['push'](_0x3e2afb['shift']());}catch(_0x176f11){_0x3e2afb['push'](_0x3e2afb['shift']());}}}(_0x4918,0xc3973));import{Collection as _0x5d3ae9}from'ckeditor5/src/utils.js';const ts=_0x3c8f09(0x17e);export class PromptHistory extends _0x5d3ae9{constructor(){const _0x57409b=_0x3c8f09;super(),this[_0x57409b(0x168)](),this['on'](_0x57409b(0x17f),(_0x47248b,_0x4f4131)=>{const _0x48aff1=_0x57409b,_0x409847=os(_0x4f4131[_0x48aff1(0x176)]);for(const _0x433b9e of this)if(_0x433b9e!=_0x4f4131&&os(_0x433b9e[_0x48aff1(0x176)])===_0x409847){this[_0x48aff1(0x177)](_0x433b9e);break;}this[_0x48aff1(0x16c)]>0x14&&this[_0x48aff1(0x177)](this[_0x48aff1(0x165)]),this[_0x48aff1(0x170)]();}),this['on'](_0x57409b(0x177),()=>{const _0x32bea5=_0x57409b;this[_0x32bea5(0x170)]();});}[_0x3c8f09(0x168)](){const _0x12d02b=_0x3c8f09,_0x1cccba=sessionStorage[_0x12d02b(0x16e)](ts)||'[]';this[_0x12d02b(0x17a)](JSON[_0x12d02b(0x16d)](_0x1cccba));}[_0x3c8f09(0x170)](){const _0x26c365=_0x3c8f09;sessionStorage[_0x26c365(0x17b)](ts,JSON[_0x26c365(0x179)](this[_0x26c365(0x172)](_0xe85b74=>_0xe85b74)));}}function _0x4918(){const _0x216352=['last','9nOUjhj','1303504bxLflZ','_loadFromSessionStorage','196gedifu','7962LKARFg','4028344SnFVzQ','length','parse','getItem','trim','_saveToSessionStorage','380pbIYdM','map','169807mcHLVv','toLowerCase','564dFXsmB','prompt','remove','11588mbmYBq','stringify','addMany','setItem','1965pogveP','484042usfoKS','CKEditor/AIFormView/PromptHistory','add','6557691guQJGP','6jGscVN'];_0x4918=function(){return _0x216352;};return _0x4918();}function os(_0x10b983){const _0x4d9fcf=_0x3c8f09;return _0x10b983[_0x4d9fcf(0x174)]()[_0x4d9fcf(0x16f)]();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3bd5f1=_0xe8bc;(function(_0x203f6e,_0xba64e3){const _0x3c5150=_0xe8bc,_0x3e20c7=_0x203f6e();while(!![]){try{const _0x3869b1=-parseInt(_0x3c5150(0x10f))/0x1*(-parseInt(_0x3c5150(0x112))/0x2)+-parseInt(_0x3c5150(0xfd))/0x3*(-parseInt(_0x3c5150(0x121))/0x4)+parseInt(_0x3c5150(0x10d))/0x5+parseInt(_0x3c5150(0x117))/0x6+-parseInt(_0x3c5150(0x126))/0x7*(-parseInt(_0x3c5150(0x124))/0x8)+-parseInt(_0x3c5150(0x11e))/0x9*(-parseInt(_0x3c5150(0x10b))/0xa)+-parseInt(_0x3c5150(0x11b))/0xb;if(_0x3869b1===_0xba64e3)break;else _0x3e20c7['push'](_0x3e20c7['shift']());}catch(_0x3463a1){_0x3e20c7['push'](_0x3e20c7['shift']());}}}(_0x4cac,0x72fcb));import{Command as _0x18a7ad}from'ckeditor5/src/core.js';function _0xe8bc(_0x57e147,_0x43e996){const _0x4cac65=_0x4cac();return _0xe8bc=function(_0xe8bc44,_0x205534){_0xe8bc44=_0xe8bc44-0xfd;let _0x23e277=_0x4cac65[_0xe8bc44];return _0x23e277;},_0xe8bc(_0x57e147,_0x43e996);}function _0x4cac(){const _0x433770=['1658152nymqad','length','7blmNPu','custom','includes','enabledCommandsIds','334101okQmaU','from','change:isEnabled','config','getFirstRange','getRanges','document','get','requiresContent','name','selection','editor','isCollapsed','set','10jplAoZ','isEmpty','3142815hAOmeD','model','20101pPPNFI','execute','getSelectedBlocks','82ugDzPZ','hasContent','_commandDefinitions','values','getItems','1128762dkQhBb','ai.aiAssistant.disabledElements','_hasContext','change:_hasContext','27085212ifvYUR','refresh','plugins','4755096fBHHtx','isEnabled','element','20iOJubF','showUI','add'];_0x4cac=function(){return _0x433770;};return _0x4cac();}import{AIAssistantUI as _0x576d75}from'../aiassistantui.js';export class ShowAIAssistantCommand extends _0x18a7ad{[_0x3bd5f1(0x114)];constructor(_0x2647df,_0x269356){const _0x56a64d=_0x3bd5f1;super(_0x2647df),this[_0x56a64d(0x114)]=_0x269356,this[_0x56a64d(0x10a)](_0x56a64d(0x129),[]),this['on'](_0x56a64d(0x11a),(_0xf50610,_0x42d4c6,_0x51c9ba)=>{const _0x19974f=_0x56a64d;this[_0x19974f(0x11f)]&&(this[_0x19974f(0x129)]=F(this[_0x19974f(0x114)],_0x51c9ba));}),this[_0x56a64d(0x10a)](_0x56a64d(0x119),!0x1),this['on'](_0x56a64d(0xff),(_0x307235,_0x9d5696,_0x4f3452)=>{const _0x4f4693=_0x56a64d;this[_0x4f4693(0x129)]=_0x4f3452?F(this[_0x4f4693(0x114)],this[_0x4f4693(0x119)]):[];});}[_0x3bd5f1(0x11c)](){const _0x977474=_0x3bd5f1,_0x254cae=this[_0x977474(0x108)][_0x977474(0x10e)];this[_0x977474(0x119)]=function(_0x6cb9bf){const _0x52714b=_0x977474,_0x3318aa=_0x6cb9bf[_0x52714b(0x103)][_0x52714b(0x107)];return _0x3318aa[_0x52714b(0x109)]?0x0!==[..._0x3318aa[_0x52714b(0x111)]()][_0x52714b(0x125)]&&![..._0x3318aa[_0x52714b(0x111)]()][0x0][_0x52714b(0x10c)]:!!_0x6cb9bf[_0x52714b(0x113)](_0x3318aa[_0x52714b(0x101)]());}(_0x254cae);const _0x152560=_0x254cae[_0x977474(0x103)][_0x977474(0x107)],_0x30624b=this[_0x977474(0x108)][_0x977474(0x100)][_0x977474(0x104)](_0x977474(0x118));for(const _0x1219f2 of _0x152560[_0x977474(0x102)]())for(const _0x119be7 of _0x1219f2[_0x977474(0x116)]())if(_0x119be7['is'](_0x977474(0x120))&&_0x30624b[_0x977474(0x128)](_0x119be7[_0x977474(0x106)]))return void(this[_0x977474(0x11f)]=!0x1);this[_0x977474(0x11f)]=!0x0;}[_0x3bd5f1(0x110)](_0xa9d468='',_0x27a47d='',_0x38c4df=_0x3bd5f1(0x127)){const _0x507ea9=_0x3bd5f1;this[_0x507ea9(0x108)][_0x507ea9(0x11d)][_0x507ea9(0x104)](_0x576d75)[_0x507ea9(0x122)](_0xa9d468,_0x27a47d,_0x38c4df);}}function F(_0x1b6c5b,_0x35d820){const _0x4f4475=_0x3bd5f1,_0x24c26e=new Set();for(const _0x29fe75 of _0x1b6c5b[_0x4f4475(0x115)]())(_0x35d820||!0x1===_0x29fe75[_0x4f4475(0x105)])&&_0x24c26e[_0x4f4475(0x123)](_0x29fe75['id']);return Array[_0x4f4475(0xfe)](_0x24c26e);}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(
|
|
23
|
+
export function getTranslation(_0x1c1ce3,_0x54839a,_0x514148){const t=_0x1c1ce3['t'];switch(_0x54839a){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',_0x514148);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x514148);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'},_0x514148);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 _0x54839a;}}
|
|
@@ -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(_0x4214df,_0x41cfb1){const _0x5a3fd0=(0x0,_0x41cfb1['t'])('Other');return _0x4214df['length']?'groupId'in _0x4214df[0x0]?_0x4214df:[{'groupId':'_ungrouppedCommands','groupLabel':_0x5a3fd0,'order':0x1/0x0,'commands':_0x4214df}]:[{'groupId':'_ungrouppedCommands','groupLabel':_0x5a3fd0,'order':0x1/0x0,'commands':[]}];}
|