@ckeditor/ckeditor5-ai 45.1.0-alpha.1 → 45.1.0-alpha.3
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 _0x4735b0=_0x5c18;(function(_0x43383b,_0x54b75a){const _0x581133=_0x5c18,_0xcdcf18=_0x43383b();while(!![]){try{const _0x1692ee=parseInt(_0x581133(0x1f8))/0x1*(parseInt(_0x581133(0x212))/0x2)+-parseInt(_0x581133(0x200))/0x3+parseInt(_0x581133(0x1dd))/0x4*(-parseInt(_0x581133(0x1f9))/0x5)+parseInt(_0x581133(0x1f2))/0x6*(-parseInt(_0x581133(0x1f6))/0x7)+-parseInt(_0x581133(0x1e6))/0x8+-parseInt(_0x581133(0x1ef))/0x9*(-parseInt(_0x581133(0x208))/0xa)+parseInt(_0x581133(0x1e2))/0xb;if(_0x1692ee===_0x54b75a)break;else _0xcdcf18['push'](_0xcdcf18['shift']());}catch(_0x5a2732){_0xcdcf18['push'](_0xcdcf18['shift']());}}}(_0x90b6,0x22c8d));import{Rect as _0x3171c5,global as _0xd78b6,isVisible as _0x4d66cd}from'ckeditor5/src/utils.js';import{IconHistory as _0x335427,IconSubmit as _0x564721}from'ckeditor5/src/icons.js';function _0x5c18(_0xd9181d,_0x5c200a){const _0x90b6b1=_0x90b6();return _0x5c18=function(_0x5c1876,_0x39863a){_0x5c1876=_0x5c1876-0x1d9;let _0x7c27ca=_0x90b6b1[_0x5c1876];return _0x7c27ca;},_0x5c18(_0xd9181d,_0x5c200a);}import{AutocompleteView as _0x6d42d8,ButtonView as _0x205b6d}from'ckeditor5/src/ui.js';import{getTranslation as _0x544dd1}from'../../utils/common-translations.js';function _0x90b6(){const _0x2382fb=['bind','1125884RbpHNp','isEnabled','value','update','execute','5454636ZsSSZT','isVisible','resultsView','focusableChildren','2038920MJhgUT','render','isOn','right','element','requestAnimationFrame','window','filteredView','style','36PAidbu','queryView','fire','728802cBUaWq','showHistoryButtonView','fieldView','left','7qQUlZY','submit','11847tibKod','5iVvDMb','minRows','focus','width','isEmpty','uiLanguageDirection','focusLast','275430iioHYK','History','keystrokes','target','focusFirst','focusCycler','children','enter','457420WDJyxk','ck-ai-form__toggle-history','add','locale','rtl','ck-ai-form__submit','_createSubmitButton','fieldWrapperChildren','set','_createShowHistoryButton','36LZohEp','maxRows','submitButtonView','excludeScrollbarsAndBorders','Submit'];_0x90b6=function(){return _0x2382fb;};return _0x90b6();}export default class ct extends _0x6d42d8{[_0x4735b0(0x1d9)];[_0x4735b0(0x1f3)];constructor(_0x1ff7a4,_0x11a486){const _0x5dc665=_0x4735b0;super(_0x1ff7a4,_0x11a486),this[_0x5dc665(0x1f0)][_0x5dc665(0x1f4)][_0x5dc665(0x1fa)]=0x1,this[_0x5dc665(0x1f0)][_0x5dc665(0x1f4)][_0x5dc665(0x213)]=0x3,this[_0x5dc665(0x1d9)]=this[_0x5dc665(0x20e)](),this[_0x5dc665(0x1f3)]=this[_0x5dc665(0x211)](),this[_0x5dc665(0x1e5)][_0x5dc665(0x20a)](this[_0x5dc665(0x1f3)],0x1),this[_0x5dc665(0x1e5)][_0x5dc665(0x20a)](this[_0x5dc665(0x1d9)]);}[_0x4735b0(0x1e7)](){const _0x108d6a=_0x4735b0;super[_0x108d6a(0x1e7)](),this[_0x108d6a(0x1f0)][_0x108d6a(0x20f)][_0x108d6a(0x20a)](this[_0x108d6a(0x1f3)]),this[_0x108d6a(0x206)][_0x108d6a(0x20a)](this[_0x108d6a(0x1d9)]),this[_0x108d6a(0x202)][_0x108d6a(0x210)](_0x108d6a(0x207),(_0x35c02e,_0x3eb215)=>{const _0x11492a=_0x108d6a;_0x35c02e[_0x11492a(0x203)]==this[_0x11492a(0x1f0)][_0x11492a(0x1f4)][_0x11492a(0x1ea)]&&(this[_0x11492a(0x1f7)](),_0x3eb215());});}[_0x4735b0(0x20e)](){const _0x37db9c=_0x4735b0,_0x411724=new _0x205b6d(this[_0x37db9c(0x20b)]),_0x4c7348=this[_0x37db9c(0x20b)];return _0x411724[_0x37db9c(0x210)]({'icon':_0x564721,'label':_0x544dd1(_0x4c7348,_0x37db9c(0x1db)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x37db9c(0x20d)}),_0x411724['on'](_0x37db9c(0x1e1),()=>{const _0x20cb8c=_0x37db9c;this[_0x20cb8c(0x1f7)]();}),_0x411724[_0x37db9c(0x1dc)](_0x37db9c(0x1de))['to'](this[_0x37db9c(0x1f0)][_0x37db9c(0x1f4)],_0x37db9c(0x1fd),this,_0x37db9c(0x1de),(_0x1d0a1f,_0x341da8)=>!_0x1d0a1f&&_0x341da8),_0x411724;}[_0x4735b0(0x211)](){const _0x48f2df=_0x4735b0,_0x64666a=new _0x205b6d(this[_0x48f2df(0x20b)]),_0x5be6fa=this[_0x48f2df(0x1e4)],_0x78a58=this[_0x48f2df(0x20b)];_0x64666a[_0x48f2df(0x210)]({'label':_0x544dd1(_0x78a58,_0x48f2df(0x201)),'withText':!0x1,'icon':_0x335427,'tooltip':!0x0,'tooltipPosition':'sw','class':_0x48f2df(0x209)}),_0x64666a[_0x48f2df(0x1dc)](_0x48f2df(0x1e8))['to'](_0x5be6fa,_0x48f2df(0x1e3)),_0x64666a[_0x48f2df(0x1dc)](_0x48f2df(0x1de))['to'](this,_0x48f2df(0x1de)),_0x64666a['on'](_0x48f2df(0x1e1),()=>{const _0x3d1649=_0x48f2df;_0x5be6fa[_0x3d1649(0x1e3)]=!_0x5be6fa[_0x3d1649(0x1e3)],_0x5be6fa[_0x3d1649(0x1e3)]?this[_0x3d1649(0x1ed)][_0x3d1649(0x1fb)]():this[_0x3d1649(0x1fb)]();});const _0x270ee9=()=>{const _0x274a8b=_0x48f2df;_0xd78b6[_0x274a8b(0x1ec)][_0x274a8b(0x1eb)](()=>{const _0x1d4159=_0x274a8b;if(_0x4d66cd(this[_0x1d4159(0x1ea)])){const _0x53f11f=new _0x3171c5(this[_0x1d4159(0x1f0)][_0x1d4159(0x1f4)][_0x1d4159(0x1ea)]),_0x458e4e=_0x53f11f[_0x1d4159(0x1fc)],_0x1d39bf=_0x1d4159(0x20c)===_0x78a58[_0x1d4159(0x1fe)]?_0x1d4159(0x1f5):_0x1d4159(0x1e9);_0x53f11f[_0x1d4159(0x1da)](),_0x64666a[_0x1d4159(0x1ea)][_0x1d4159(0x1ee)][_0x1d39bf]=_0x458e4e-_0x53f11f[_0x1d4159(0x1fc)]+0x1+'px';}});};return this[_0x48f2df(0x1f0)][_0x48f2df(0x1f4)]['on'](_0x48f2df(0x1e0),_0x270ee9),this['on'](_0x48f2df(0x1e7),_0x270ee9),_0x64666a;}[_0x4735b0(0x1f7)](){const _0x59012d=_0x4735b0,_0x2140a0=this[_0x59012d(0x1f0)][_0x59012d(0x1f4)][_0x59012d(0x1ea)][_0x59012d(0x1df)];this[_0x59012d(0x1f1)](_0x59012d(0x1f7),_0x2140a0);}[_0x4735b0(0x1fb)](_0x1c42de){const _0x1344ac=_0x4735b0;-0x1===_0x1c42de?this[_0x1344ac(0x205)][_0x1344ac(0x1ff)]():this[_0x1344ac(0x205)][_0x1344ac(0x204)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x3f9f80=_0x5c81;(function(_0x3315ad,_0x526461){const _0x1d3d22=_0x5c81,_0x4b4f70=_0x3315ad();while(!![]){try{const _0x173e33=parseInt(_0x1d3d22(0x1b0))/0x1*(parseInt(_0x1d3d22(0x19e))/0x2)+-parseInt(_0x1d3d22(0x193))/0x3+parseInt(_0x1d3d22(0x1a1))/0x4+-parseInt(_0x1d3d22(0x190))/0x5*(parseInt(_0x1d3d22(0x1b3))/0x6)+parseInt(_0x1d3d22(0x1ad))/0x7+-parseInt(_0x1d3d22(0x196))/0x8*(parseInt(_0x1d3d22(0x1ae))/0x9)+parseInt(_0x1d3d22(0x1a5))/0xa*(parseInt(_0x1d3d22(0x191))/0xb);if(_0x173e33===_0x526461)break;else _0x4b4f70['push'](_0x4b4f70['shift']());}catch(_0x23dc47){_0x4b4f70['push'](_0x4b4f70['shift']());}}}(_0x3e75,0xb5350));function _0x3e75(){const _0x1ffa6c=['stopButton','65884LjSlNK','_createButton','replace','5307384KWnOUA','extendTemplate','REPLACE','_CONTENT','20wtWcOj','mainAction','ck-ai-form__toolbar','bind','ck-button-action','isVisible','insertButton','label','4256630OQIasT','148581qlDhIp','Stop','41ZUZtWW','ck-hidden','Try\x20again','984GkjIDS','replaceButton','tryAgainButton','19085DxPyNL','1661297RjuasN','Insert\x20below','3339891vaKDkb','addMany','locale','536OgKnGb','toUpperCase','bindTemplate','set','insert','AI_','items'];_0x3e75=function(){return _0x1ffa6c;};return _0x3e75();}import{ToolbarView as _0x4f985e,ButtonView as _0x504d39}from'ckeditor5/src/ui.js';import{getTranslation as _0x54516b}from'../../utils/common-translations.js';function _0x5c81(_0x50a221,_0xbc1fd5){const _0x3e7555=_0x3e75();return _0x5c81=function(_0x5c817f,_0x4e6885){_0x5c817f=_0x5c817f-0x190;let _0x2ea2c6=_0x3e7555[_0x5c817f];return _0x2ea2c6;},_0x5c81(_0x50a221,_0xbc1fd5);}export const AIFormToolbarViewMainActionLabel={'REPLACE':_0x3f9f80(0x1a0),'INSERT':_0x3f9f80(0x19a)};export default class lt extends _0x4f985e{constructor(_0x46963e){const _0x533f72=_0x3f9f80;super(_0x46963e),this[_0x533f72(0x199)](_0x533f72(0x1aa),!0x1),this[_0x533f72(0x199)](_0x533f72(0x1a6),AIFormToolbarViewMainActionLabel[_0x533f72(0x1a3)]),this[_0x533f72(0x1b4)]=this[_0x533f72(0x19f)]('',_0x533f72(0x1a9)),this[_0x533f72(0x1b4)][_0x533f72(0x1a8)](_0x533f72(0x1ac))['to'](this,_0x533f72(0x1a6),_0x411f9b=>_0x54516b(_0x46963e,_0x533f72(0x19b)+_0x411f9b[_0x533f72(0x197)]()+_0x533f72(0x1a4))),this[_0x533f72(0x1ab)]=this[_0x533f72(0x19f)](_0x54516b(_0x46963e,_0x533f72(0x192))),this[_0x533f72(0x1b5)]=this[_0x533f72(0x19f)](_0x54516b(_0x46963e,_0x533f72(0x1b2))),this[_0x533f72(0x19d)]=this[_0x533f72(0x19f)](_0x54516b(_0x46963e,_0x533f72(0x1af)));const _0x333333=this[_0x533f72(0x198)];this[_0x533f72(0x1a2)]({'attributes':{'class':[_0x533f72(0x1a7),_0x333333['if'](_0x533f72(0x1aa),_0x533f72(0x1b1),_0x35ea3b=>!_0x35ea3b)]}}),this[_0x533f72(0x19c)][_0x533f72(0x194)]([this[_0x533f72(0x1b4)],this[_0x533f72(0x1ab)],this[_0x533f72(0x1b5)],this[_0x533f72(0x19d)]]);}[_0x3f9f80(0x19f)](_0xed85e9,_0x369ad7){const _0x5749f2=_0x3f9f80,_0x28447b=new _0x504d39(this[_0x5749f2(0x195)]);return _0x28447b[_0x5749f2(0x199)]({'label':_0xed85e9,'class':_0x369ad7||'','isVisible':!0x0,'withText':!0x0}),_0x28447b;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x23ecc4=_0x452c;(function(_0x4836c9,_0x338649){const _0x157b83=_0x452c,_0x19594c=_0x4836c9();while(!![]){try{const _0x4ad277=parseInt(_0x157b83(0x22f))/0x1*(-parseInt(_0x157b83(0x208))/0x2)+-parseInt(_0x157b83(0x227))/0x3*(-parseInt(_0x157b83(0x222))/0x4)+parseInt(_0x157b83(0x235))/0x5+parseInt(_0x157b83(0x230))/0x6+parseInt(_0x157b83(0x1f6))/0x7+parseInt(_0x157b83(0x1fb))/0x8*(-parseInt(_0x157b83(0x218))/0x9)+parseInt(_0x157b83(0x233))/0xa*(-parseInt(_0x157b83(0x231))/0xb);if(_0x4ad277===_0x338649)break;else _0x19594c['push'](_0x19594c['shift']());}catch(_0x22cdd3){_0x19594c['push'](_0x19594c['shift']());}}}(_0x3e8c,0x9ce21));import{FocusTracker as _0x9027b2,KeystrokeHandler as _0x5ee9a5}from'ckeditor5/src/utils.js';import{View as _0x4172af,FocusCycler as _0x49ad62,createLabeledTextarea as _0x2e66b1}from'ckeditor5/src/ui.js';import _0x2df00f,{AIFormToolbarViewMainActionLabel as _0x24d7b1}from'./aiformtoolbarview.js';function _0x3e8c(){const _0x25fd84=['div','focusLast','focusTracker','replaceButton','focus','delegate','_focusables','1239556XQCqSZ','insertButton','insertContentBelow','ck-ai-form','ck-hidden','clear','fire','shift\x20+\x20tab','promptView','handleError','_createHistoryView','isProcessing','listenTo','bindTo','Ask\x20AI\x20to\x20improve\x20generated\x20text','copyButtonView','15102KCYtky','mainAction','prompt','tryAgainButton','startProcessing','_promptHistory','AI_ERROR_FAILED','element','tab','toolbar','377760vvQdRw','render','errorView','queryView','Ask\x20AI\x20to\x20edit\x20or\x20generate','9FDsWbM','fieldView','focusFirst','execute','REPLACE','high','items','chain','2lytJeI','6876894WLvFTY','357434focXpf','label','180fBFOZR','keystrokes','5382900HhvBkT','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','stopButton','createCollection','submit','clearHistory','set','historyGroupView','trim','contentArea','replaceContent','ck-ai-form-content','finishProcessing','text','tryAgainEvent','isError','setTemplate','bind','submitPrompt','add','value','reset','_createPromptView','2886618cVKTPD','_createToolbar','locale','isVisible','isEnabled','2152Ghizby','focusCycler','search','Empty\x20history','stopProcessing','bindTemplate'];_0x3e8c=function(){return _0x25fd84;};return _0x3e8c();}import _0x14d679 from'./aiformcontentarea.js';import _0x1e37a0 from'./aiformerrorview.js';import _0x40d1a3 from'./aiformpromptview.js';import _0x57325c from'./aihistorylistview.js';import _0x1d68e8 from'./aihistorylistitemview.js';import _0x4b8c8c from'./prompthistory.js';import{getTranslation as _0x59f039}from'../../utils/common-translations.js';function _0x452c(_0x575c97,_0x28d8c2){const _0x3e8c86=_0x3e8c();return _0x452c=function(_0x452c7d,_0x222b3e){_0x452c7d=_0x452c7d-0x1ec;let _0xc2d521=_0x3e8c86[_0x452c7d];return _0xc2d521;},_0x452c(_0x575c97,_0x28d8c2);}import{escape as _0xf104f5}from'es-toolkit/compat';export default class _ extends _0x4172af{[_0x23ecc4(0x203)];[_0x23ecc4(0x234)];[_0x23ecc4(0x23e)];[_0x23ecc4(0x221)];[_0x23ecc4(0x210)];[_0x23ecc4(0x224)];[_0x23ecc4(0x207)];[_0x23ecc4(0x1fc)];[_0x23ecc4(0x21d)];constructor(_0x5a605d,_0x76be46,_0x22d8e4=''){const _0x4866a7=_0x23ecc4;super(_0x5a605d),this[_0x4866a7(0x23b)](_0x4866a7(0x1fa),!0x0),this[_0x4866a7(0x23b)](_0x4866a7(0x213),!0x1),this[_0x4866a7(0x23b)](_0x4866a7(0x21a),''),this[_0x4866a7(0x23b)](_0x4866a7(0x1f3),''),this[_0x4866a7(0x23b)](_0x4866a7(0x1ee),!0x1),this[_0x4866a7(0x23b)](_0x4866a7(0x219),_0x24d7b1[_0x4866a7(0x22b)]),this[_0x4866a7(0x21d)]=new _0x4b8c8c(),this[_0x4866a7(0x224)]=new _0x1e37a0(_0x5a605d),this[_0x4866a7(0x23e)]=new _0x14d679(_0x5a605d,_0x22d8e4),this[_0x4866a7(0x23e)][_0x4866a7(0x1f0)](_0x4866a7(0x213))['to'](this),this[_0x4866a7(0x23e)][_0x4866a7(0x1f0)](_0x4866a7(0x1f3))['to'](this),this[_0x4866a7(0x221)]=this[_0x4866a7(0x1f7)](),this[_0x4866a7(0x221)][_0x4866a7(0x1f0)](_0x4866a7(0x219))['to'](this),this[_0x4866a7(0x210)]=this[_0x4866a7(0x1f5)](),this[_0x4866a7(0x203)]=new _0x9027b2(),this[_0x4866a7(0x234)]=new _0x5ee9a5(),this[_0x4866a7(0x207)]=this[_0x4866a7(0x238)]([this[_0x4866a7(0x23e)],this[_0x4866a7(0x23e)][_0x4866a7(0x217)],this[_0x4866a7(0x221)],this[_0x4866a7(0x210)]]),this[_0x4866a7(0x1fc)]=new _0x49ad62({'focusables':this[_0x4866a7(0x207)],'focusTracker':this[_0x4866a7(0x203)],'keystrokeHandler':this[_0x4866a7(0x234)],'actions':{'focusPrevious':_0x4866a7(0x20f),'focusNext':_0x4866a7(0x220)}}),this[_0x4866a7(0x1fc)][_0x4866a7(0x22e)](this[_0x4866a7(0x210)][_0x4866a7(0x1fc)]),this[_0x4866a7(0x210)][_0x4866a7(0x225)][_0x4866a7(0x228)][_0x4866a7(0x1f0)](_0x4866a7(0x1f3))['to'](this,_0x4866a7(0x21a));const _0x1d3693=this[_0x4866a7(0x200)];this[_0x4866a7(0x1ef)]({'tag':_0x4866a7(0x201),'attributes':{'class':['ck',_0x4866a7(0x20b),_0x76be46],'tabindex':'-1'},'children':[{'tag':_0x4866a7(0x201),'attributes':{'class':['ck',_0x4866a7(0x240)]},'children':[{'tag':_0x4866a7(0x201),'attributes':{'class':[_0x1d3693['if'](_0x4866a7(0x1ee),_0x4866a7(0x20c),_0x11256d=>!_0x11256d)]},'children':[this[_0x4866a7(0x224)]]},this[_0x4866a7(0x23e)],this[_0x4866a7(0x221)],this[_0x4866a7(0x210)]]}]});}[_0x23ecc4(0x223)](){const _0xe062c5=_0x23ecc4;super[_0xe062c5(0x223)](),this[_0xe062c5(0x203)][_0xe062c5(0x1f2)](this[_0xe062c5(0x23e)][_0xe062c5(0x21f)]),this[_0xe062c5(0x203)][_0xe062c5(0x1f2)](this[_0xe062c5(0x23e)][_0xe062c5(0x217)][_0xe062c5(0x21f)]),this[_0xe062c5(0x203)][_0xe062c5(0x1f2)](this[_0xe062c5(0x221)][_0xe062c5(0x21f)]),this[_0xe062c5(0x203)][_0xe062c5(0x1f2)](this[_0xe062c5(0x210)][_0xe062c5(0x21f)]),this[_0xe062c5(0x234)][_0xe062c5(0x214)](this[_0xe062c5(0x21f)]);}[_0x23ecc4(0x205)](_0x2a5580=0x1){const _0x1ab3b7=_0x23ecc4;-0x1===_0x2a5580?this[_0x1ab3b7(0x1fc)][_0x1ab3b7(0x202)]():this[_0x1ab3b7(0x1fc)][_0x1ab3b7(0x229)]();}[_0x23ecc4(0x1f4)](){const _0x54e24b=_0x23ecc4;this[_0x54e24b(0x21a)]='',this[_0x54e24b(0x1f3)]='',this[_0x54e24b(0x1ee)]=!0x1,this[_0x54e24b(0x210)][_0x54e24b(0x1f4)](),this[_0x54e24b(0x23e)][_0x54e24b(0x1f9)]=!0x1,this[_0x54e24b(0x221)][_0x54e24b(0x1f9)]=!0x1;}[_0x23ecc4(0x1f5)](){const _0x244b45=_0x23ecc4,_0x26d764=this[_0x244b45(0x1f8)],_0xec75be=new _0x40d1a3(_0x26d764,{'queryView':{'label':_0x59f039(_0x26d764,_0x244b45(0x226)),'creator':_0x2e66b1,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x59f039(_0x26d764,_0x244b45(0x1fe)),'secondary':_0x59f039(_0x26d764,_0x244b45(0x236))}}},'filteredView':this[_0x244b45(0x212)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0xec75be[_0x244b45(0x1f0)](_0x244b45(0x1fa))['to'](this,_0x244b45(0x1fa),this,_0x244b45(0x213),(_0xea6aae,_0x54fdb2)=>_0xea6aae&&!_0x54fdb2),this[_0x244b45(0x214)](_0xec75be,_0x244b45(0x239),(_0x754c8e,_0xe0aa63)=>{const _0x5f22bb=_0x244b45;this[_0x5f22bb(0x21a)]=_0xe0aa63;const _0x62ebf4=_0xf104f5(_0xe0aa63);this[_0x5f22bb(0x20e)](_0x5f22bb(0x1f1),_0x62ebf4),_0xe0aa63[_0x5f22bb(0x23d)]()&&this[_0x5f22bb(0x21d)][_0x5f22bb(0x1f2)]({'prompt':_0x62ebf4},0x0);},{'priority':_0x244b45(0x22c)}),_0xec75be;}[_0x23ecc4(0x212)](){const _0x2cdedd=_0x23ecc4,_0x3d46d0=new _0x57325c(this[_0x2cdedd(0x1f8)]);return _0x3d46d0[_0x2cdedd(0x23c)][_0x2cdedd(0x22d)][_0x2cdedd(0x215)](this[_0x2cdedd(0x21d)])['as'](_0x1d68e8),_0x3d46d0['on'](_0x2cdedd(0x23a),()=>{const _0x2e106d=_0x2cdedd;this[_0x2e106d(0x21d)][_0x2e106d(0x20d)](),this[_0x2e106d(0x210)][_0x2e106d(0x1fd)](''),this[_0x2e106d(0x210)][_0x2e106d(0x205)]();}),_0x3d46d0;}[_0x23ecc4(0x1f7)](){const _0x37fae2=_0x23ecc4,_0x1b12e=new _0x2df00f(this[_0x37fae2(0x1f8)]);return _0x1b12e[_0x37fae2(0x204)][_0x37fae2(0x1f0)](_0x37fae2(0x1fa))['to'](this,_0x37fae2(0x1fa),this,_0x37fae2(0x213),this,_0x37fae2(0x1f3),(_0x92d686,_0xe397ac,_0x122607)=>_0x92d686&&!_0xe397ac&&!!_0x122607),_0x1b12e[_0x37fae2(0x204)][_0x37fae2(0x206)](_0x37fae2(0x22a))['to'](this,_0x37fae2(0x23f)),_0x1b12e[_0x37fae2(0x209)][_0x37fae2(0x1f0)](_0x37fae2(0x1fa))['to'](this,_0x37fae2(0x1fa),this,_0x37fae2(0x213),this,_0x37fae2(0x1f3),(_0x40e042,_0x43aaf7,_0x349455)=>_0x40e042&&!_0x43aaf7&&!!_0x349455),_0x1b12e[_0x37fae2(0x209)][_0x37fae2(0x206)](_0x37fae2(0x22a))['to'](this,_0x37fae2(0x20a)),_0x1b12e[_0x37fae2(0x21b)][_0x37fae2(0x1f0)](_0x37fae2(0x1fa))['to'](this,_0x37fae2(0x1fa),this,_0x37fae2(0x213),(_0xa691cd,_0xbae0fb)=>_0xa691cd&&!_0xbae0fb),_0x1b12e[_0x37fae2(0x21b)][_0x37fae2(0x206)](_0x37fae2(0x22a))['to'](this,_0x37fae2(0x1ed)),_0x1b12e[_0x37fae2(0x237)][_0x37fae2(0x1f0)](_0x37fae2(0x1fa))['to'](this,_0x37fae2(0x213)),_0x1b12e[_0x37fae2(0x237)][_0x37fae2(0x206)](_0x37fae2(0x22a))['to'](this,_0x37fae2(0x1ff)),_0x1b12e;}[_0x23ecc4(0x21c)](){const _0x2b5489=_0x23ecc4;this[_0x2b5489(0x1f3)]='',this[_0x2b5489(0x1ee)]=!0x1,this[_0x2b5489(0x213)]=!0x0,this[_0x2b5489(0x23e)][_0x2b5489(0x1f9)]=!0x0,this[_0x2b5489(0x221)][_0x2b5489(0x1f9)]=!0x0,this[_0x2b5489(0x23e)][_0x2b5489(0x205)]();}[_0x23ecc4(0x241)](){const _0x10e648=_0x23ecc4,_0x4d78ae=this[_0x10e648(0x1f8)];this[_0x10e648(0x213)]=!0x1,this[_0x10e648(0x21a)]='',this[_0x10e648(0x210)][_0x10e648(0x1f4)](),this[_0x10e648(0x1f3)]&&(this[_0x10e648(0x210)][_0x10e648(0x225)][_0x10e648(0x232)]=_0x59f039(_0x4d78ae,_0x10e648(0x216)));}[_0x23ecc4(0x211)](_0x3b4736){const _0x38ddf6=_0x23ecc4,_0x8a4bd2=this[_0x38ddf6(0x1f8)];this[_0x38ddf6(0x241)](),this[_0x38ddf6(0x1ee)]=!0x0,this[_0x38ddf6(0x224)][_0x38ddf6(0x1ec)]=_0x3b4736||_0x59f039(_0x8a4bd2,_0x38ddf6(0x21e)),this[_0x38ddf6(0x1f3)]||(this[_0x38ddf6(0x23e)][_0x38ddf6(0x1f9)]=!0x1);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x50ce(){const _0x105a7c=['12330538XKZeSi','locale','set','27bsWzAY','338740HDujGL','add','3885472ZzmWff','3631150ooObJf','126033anJfZB','prompt','12bDdHtz','fire','7FivljH','execute','children','4269228biWUaA','106jGorbj','15658OehtrI'];_0x50ce=function(){return _0x105a7c;};return _0x50ce();}(function(_0xfdea07,_0x308c79){const _0x5afb56=_0x56e9,_0x22c39c=_0xfdea07();while(!![]){try{const _0x1bae5b=parseInt(_0x5afb56(0x17c))/0x1*(-parseInt(_0x5afb56(0x17d))/0x2)+parseInt(_0x5afb56(0x186))/0x3+parseInt(_0x5afb56(0x17b))/0x4+-parseInt(_0x5afb56(0x182))/0x5*(parseInt(_0x5afb56(0x188))/0x6)+parseInt(_0x5afb56(0x18a))/0x7*(parseInt(_0x5afb56(0x184))/0x8)+parseInt(_0x5afb56(0x181))/0x9*(-parseInt(_0x5afb56(0x185))/0xa)+parseInt(_0x5afb56(0x17e))/0xb;if(_0x1bae5b===_0x308c79)break;else _0x22c39c['push'](_0x22c39c['shift']());}catch(_0x4da38d){_0x22c39c['push'](_0x22c39c['shift']());}}}(_0x50ce,0xa16fd));import{ListItemView as _0x123bd9,ButtonView as _0x220b08,ButtonLabelView as _0x798644}from'ckeditor5/src/ui.js';function _0x56e9(_0x2d49a3,_0x4df652){const _0x50cec1=_0x50ce();return _0x56e9=function(_0x56e9db,_0x2982e9){_0x56e9db=_0x56e9db-0x179;let _0x4a8d6d=_0x50cec1[_0x56e9db];return _0x4a8d6d;},_0x56e9(_0x2d49a3,_0x4df652);}import{unescape as _0x4f5470}from'es-toolkit/compat';export default class bt extends _0x123bd9{constructor(_0x4b061a){const _0xec48a8=_0x56e9;super();const _0x5caeae=new _0x798644(),_0x2d93a0=new _0x220b08(this[_0xec48a8(0x17f)],_0x5caeae);this[_0xec48a8(0x17a)][_0xec48a8(0x183)](_0x2d93a0),_0x2d93a0[_0xec48a8(0x180)]({'label':_0x4b061a[_0xec48a8(0x187)],'withText':!0x0}),_0x2d93a0['on'](_0xec48a8(0x179),()=>{const _0x3e7ab3=_0xec48a8;this[_0x3e7ab3(0x189)](_0x3e7ab3(0x179),{'value':_0x4f5470(_0x4b061a[_0x3e7ab3(0x187)])});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3d9bf2=_0x20b9;(function(_0x412305,_0x39b387){const _0x1e3e2e=_0x20b9,_0x5f0238=_0x412305();while(!![]){try{const _0x4bba23=-parseInt(_0x1e3e2e(0x183))/0x1+-parseInt(_0x1e3e2e(0x187))/0x2+parseInt(_0x1e3e2e(0x174))/0x3+-parseInt(_0x1e3e2e(0x17e))/0x4+parseInt(_0x1e3e2e(0x172))/0x5*(-parseInt(_0x1e3e2e(0x188))/0x6)+parseInt(_0x1e3e2e(0x176))/0x7+parseInt(_0x1e3e2e(0x17b))/0x8*(parseInt(_0x1e3e2e(0x17d))/0x9);if(_0x4bba23===_0x39b387)break;else _0x5f0238['push'](_0x5f0238['shift']());}catch(_0x4af6bd){_0x5f0238['push'](_0x5f0238['shift']());}}}(_0x1890,0xda0f4));function _0x20b9(_0x1fd452,_0x5a6a5a){const _0x189078=_0x1890();return _0x20b9=function(_0x20b947,_0x4be586){_0x20b947=_0x20b947-0x172;let _0xdf9853=_0x189078[_0x20b947];return _0xdf9853;},_0x20b9(_0x1fd452,_0x5a6a5a);}function _0x1890(){const _0x5e92ca=['Prompt\x20history','Clear','historyGroupView','_createClearHistoryButton','163443YzIehI','label','clearHistory','locale','757112wQPYXT','1374mhlfPw','execute','items','length','23840PMWMnt','fire','3299877SJwuQI','children','7882RTGzKY','filter','set','clearHistoryButton','add','1096JGWFdV','delegate','179865KFpwjw','5247948ctoWLZ'];_0x1890=function(){return _0x5e92ca;};return _0x1890();}import{ListView as _0x5154de,ListItemGroupView as _0x32b3cb,ButtonView as _0x5afe31}from'ckeditor5/src/ui.js';import{getTranslation as _0x5850b8}from'../../utils/common-translations.js';export default class ft extends _0x5154de{[_0x3d9bf2(0x181)];[_0x3d9bf2(0x179)];constructor(_0x6cd4cf){const _0x424a55=_0x3d9bf2;super(_0x6cd4cf),this[_0x424a55(0x179)]=this[_0x424a55(0x182)](),this[_0x424a55(0x181)]=new _0x32b3cb(),this[_0x424a55(0x181)][_0x424a55(0x175)][_0x424a55(0x17a)](this[_0x424a55(0x179)],0x1),this[_0x424a55(0x181)][_0x424a55(0x184)]=_0x5850b8(_0x6cd4cf,_0x424a55(0x17f)),this[_0x424a55(0x181)][_0x424a55(0x18a)][_0x424a55(0x17c)](_0x424a55(0x189))['to'](this),this[_0x424a55(0x18a)][_0x424a55(0x17a)](this[_0x424a55(0x181)]);}[_0x3d9bf2(0x177)](){const _0x330056=_0x3d9bf2;let _0x41d0b1=0x0;for(const _0x288ebf of this[_0x330056(0x18a)])_0x41d0b1+=_0x288ebf[_0x330056(0x18a)][_0x330056(0x18b)];return{'resultsCount':_0x41d0b1,'totalItemsCount':_0x41d0b1};}[_0x3d9bf2(0x182)](){const _0x4edfd6=_0x3d9bf2,_0x4a0b3b=this[_0x4edfd6(0x186)],_0x42cd54=new _0x5afe31(this[_0x4edfd6(0x186)]);return _0x42cd54[_0x4edfd6(0x178)]({'label':'('+_0x5850b8(_0x4a0b3b,_0x4edfd6(0x180))+')','withText':!0x0}),_0x42cd54['on'](_0x4edfd6(0x189),()=>this[_0x4edfd6(0x173)](_0x4edfd6(0x185))),_0x42cd54;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x128b52=_0x1fd9;(function(_0x2a536b,_0x65cc50){const _0x2158bf=_0x1fd9,_0x2fa26d=_0x2a536b();while(!![]){try{const _0x6ef944=parseInt(_0x2158bf(0x163))/0x1*(parseInt(_0x2158bf(0x156))/0x2)+parseInt(_0x2158bf(0x14b))/0x3*(-parseInt(_0x2158bf(0x14d))/0x4)+-parseInt(_0x2158bf(0x162))/0x5*(parseInt(_0x2158bf(0x158))/0x6)+-parseInt(_0x2158bf(0x152))/0x7+parseInt(_0x2158bf(0x15a))/0x8+-parseInt(_0x2158bf(0x14c))/0x9*(parseInt(_0x2158bf(0x15f))/0xa)+parseInt(_0x2158bf(0x160))/0xb*(parseInt(_0x2158bf(0x14f))/0xc);if(_0x6ef944===_0x65cc50)break;else _0x2fa26d['push'](_0x2fa26d['shift']());}catch(_0x5a6f1a){_0x2fa26d['push'](_0x2fa26d['shift']());}}}(_0x14f8,0x27b2b));function _0x1fd9(_0xb4b926,_0x3fb853){const _0x14f8f6=_0x14f8();return _0x1fd9=function(_0x1fd94d,_0x3a5484){_0x1fd94d=_0x1fd94d-0x14a;let _0x25ccce=_0x14f8f6[_0x1fd94d];return _0x25ccce;},_0x1fd9(_0xb4b926,_0x3fb853);}import{Collection as _0x18cd4d}from'ckeditor5/src/utils.js';function _0x14f8(){const _0x222efa=['remove','_saveToSessionStorage','trim','60453zQtKbJ','27idXwoP','52qpbmAH','getItem','14532WQLSdb','map','stringify','1911469Himchw','toLowerCase','setItem','prompt','182212gkdttS','parse','6GEUihw','add','737712IHTRlM','addMany','length','CKEditor/AIFormView/PromptHistory','_loadFromSessionStorage','222890GQXEFV','5203bqpIMp','last','869175KRwBAn','3MQdqos'];_0x14f8=function(){return _0x222efa;};return _0x14f8();}const ts=_0x128b52(0x15d);export default class wt extends _0x18cd4d{constructor(){const _0x303350=_0x128b52;super(),this[_0x303350(0x15e)](),this['on'](_0x303350(0x159),(_0x1fbb25,_0x51ff72)=>{const _0xf9dc13=_0x303350,_0x29055a=os(_0x51ff72[_0xf9dc13(0x155)]);for(const _0x1d98e4 of this)if(_0x1d98e4!=_0x51ff72&&os(_0x1d98e4[_0xf9dc13(0x155)])===_0x29055a){this[_0xf9dc13(0x164)](_0x1d98e4);break;}this[_0xf9dc13(0x15c)]>0x14&&this[_0xf9dc13(0x164)](this[_0xf9dc13(0x161)]),this[_0xf9dc13(0x165)]();}),this['on'](_0x303350(0x164),()=>{const _0x1aa21f=_0x303350;this[_0x1aa21f(0x165)]();});}[_0x128b52(0x15e)](){const _0x4d9b52=_0x128b52,_0x5588ef=sessionStorage[_0x4d9b52(0x14e)](ts)||'[]';this[_0x4d9b52(0x15b)](JSON[_0x4d9b52(0x157)](_0x5588ef));}[_0x128b52(0x165)](){const _0x495419=_0x128b52;sessionStorage[_0x495419(0x154)](ts,JSON[_0x495419(0x151)](this[_0x495419(0x150)](_0x119e39=>_0x119e39)));}}function os(_0x485070){const _0x202892=_0x128b52;return _0x485070[_0x202892(0x153)]()[_0x202892(0x14a)]();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x36b114=_0x205c;(function(_0x5c1fb4,_0x186462){const _0x5915af=_0x205c,_0x4b1234=_0x5c1fb4();while(!![]){try{const _0x2aac3f=-parseInt(_0x5915af(0x18c))/0x1+-parseInt(_0x5915af(0x182))/0x2+parseInt(_0x5915af(0x19d))/0x3*(-parseInt(_0x5915af(0x196))/0x4)+parseInt(_0x5915af(0x1a6))/0x5+parseInt(_0x5915af(0x198))/0x6+parseInt(_0x5915af(0x197))/0x7*(-parseInt(_0x5915af(0x19e))/0x8)+parseInt(_0x5915af(0x194))/0x9*(parseInt(_0x5915af(0x1a4))/0xa);if(_0x2aac3f===_0x186462)break;else _0x4b1234['push'](_0x4b1234['shift']());}catch(_0x30d9aa){_0x4b1234['push'](_0x4b1234['shift']());}}}(_0x116f,0x41898));import{Command as _0x29725e}from'ckeditor5/src/core.js';import _0x330a43 from'../aiassistantui.js';export default class j extends _0x29725e{[_0x36b114(0x19f)];constructor(_0x57f55e,_0x15b683){const _0x2f9eef=_0x36b114;super(_0x57f55e),this[_0x2f9eef(0x19f)]=_0x15b683,this[_0x2f9eef(0x1a7)](_0x2f9eef(0x1a0),[]),this['on'](_0x2f9eef(0x181),(_0x3c5915,_0x2ef0fd,_0x5c84eb)=>{const _0x23f91a=_0x2f9eef;this[_0x23f91a(0x18d)]&&(this[_0x23f91a(0x1a0)]=G(this[_0x23f91a(0x19f)],_0x5c84eb));}),this[_0x2f9eef(0x1a7)](_0x2f9eef(0x18a),!0x1),this['on'](_0x2f9eef(0x18b),(_0x24dcc2,_0x3ae410,_0x267a6f)=>{const _0x59efc3=_0x2f9eef;this[_0x59efc3(0x1a0)]=_0x267a6f?G(this[_0x59efc3(0x19f)],this[_0x59efc3(0x18a)]):[];});}[_0x36b114(0x184)](){const _0x393b71=_0x36b114,_0xcb1169=this[_0x393b71(0x19b)][_0x393b71(0x195)];this[_0x393b71(0x18a)]=function(_0x49ece1){const _0x65b8b1=_0x393b71,_0x41cc97=_0x49ece1[_0x65b8b1(0x192)][_0x65b8b1(0x191)];return _0x41cc97[_0x65b8b1(0x186)]?0x0!==[..._0x41cc97[_0x65b8b1(0x1a1)]()][_0x65b8b1(0x19c)]&&![..._0x41cc97[_0x65b8b1(0x1a1)]()][0x0][_0x65b8b1(0x190)]:!!_0x49ece1[_0x65b8b1(0x1a9)](_0x41cc97[_0x65b8b1(0x193)]());}(_0xcb1169);const _0x57788b=_0xcb1169[_0x393b71(0x192)][_0x393b71(0x191)],_0x6d265=this[_0x393b71(0x19b)][_0x393b71(0x188)][_0x393b71(0x17f)](_0x393b71(0x189));for(const _0x372601 of _0x57788b[_0x393b71(0x187)]())for(const _0x2375a0 of _0x372601[_0x393b71(0x1a5)]())if(_0x2375a0['is'](_0x393b71(0x199))&&_0x6d265[_0x393b71(0x1a3)](_0x2375a0[_0x393b71(0x19a)]))return void(this[_0x393b71(0x18d)]=!0x1);this[_0x393b71(0x18d)]=!0x0;}[_0x36b114(0x185)](_0x5d2cdb='',_0xa1ccc='',_0x712602=_0x36b114(0x1a2)){const _0x1f2ce6=_0x36b114;this[_0x1f2ce6(0x19b)][_0x1f2ce6(0x18f)][_0x1f2ce6(0x17f)](_0x330a43)[_0x1f2ce6(0x183)](_0x5d2cdb,_0xa1ccc,_0x712602);}}function G(_0x42b91f,_0x1f16fa){const _0x25ca0a=_0x36b114,_0x48407b=new Set();for(const _0x2281e6 of _0x42b91f[_0x25ca0a(0x1a8)]())(_0x1f16fa||!0x1===_0x2281e6[_0x25ca0a(0x1aa)])&&_0x48407b[_0x25ca0a(0x18e)](_0x2281e6['id']);return Array[_0x25ca0a(0x180)](_0x48407b);}function _0x205c(_0x5b7342,_0x14ccd9){const _0x116f6a=_0x116f();return _0x205c=function(_0x205c11,_0x4f07fa){_0x205c11=_0x205c11-0x17f;let _0x190a7f=_0x116f6a[_0x205c11];return _0x190a7f;},_0x205c(_0x5b7342,_0x14ccd9);}function _0x116f(){const _0x3e3f92=['hasContent','requiresContent','get','from','change:_hasContext','145664vmhBuX','showUI','refresh','execute','isCollapsed','getRanges','config','ai.aiAssistant.disabledElements','_hasContext','change:isEnabled','103102DWoaqV','isEnabled','add','plugins','isEmpty','selection','document','getFirstRange','18qSplOg','model','1166084YqLiVy','7rZBppR','908832iSCuet','element','name','editor','length','3zvTqLl','1026448kPmwXt','_commandDefinitions','enabledCommandsIds','getSelectedBlocks','custom','includes','2108670uhiZVS','getItems','1454975fPqjjC','set','values'];_0x116f=function(){return _0x3e3f92;};return _0x116f();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(
|
|
23
|
+
export function getTranslation(_0x279555,_0x5edd3a,_0x544054){const t=_0x279555['t'];switch(_0x5edd3a){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',_0x544054);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x544054);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'},_0x544054);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 _0x5edd3a;}}
|
|
@@ -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(_0x465168,_0x3518b2){const _0x474826=(0x0,_0x3518b2['t'])('Other');return _0x465168['length']?'groupId'in _0x465168[0x0]?_0x465168:[{'groupId':'_ungrouppedCommands','groupLabel':_0x474826,'order':0x1/0x0,'commands':_0x465168}]:[{'groupId':'_ungrouppedCommands','groupLabel':_0x474826,'order':0x1/0x0,'commands':[]}];}
|