@ckeditor/ckeditor5-ai 45.2.1 → 45.2.2
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 _0x573c0d=_0x252b;function _0x8ade(){const _0x1bd100=['ck-ai-form__toggle-history','locale','focusFirst','isEnabled','target','focusCycler','style','focus','isOn','742089jEpBvS','1812264VZoDvK','isEmpty','right','fieldView','render','49256kMcCYY','showHistoryButtonView','resultsView','requestAnimationFrame','8416062xczzNE','submit','focusableChildren','queryView','enter','maxRows','120720ouInKp','isVisible','focusLast','_createSubmitButton','68172bufkjr','update','fire','value','submitButtonView','set','Submit','width','uiLanguageDirection','children','execute','element','45jJLgNd','minRows','_createShowHistoryButton','left','excludeScrollbarsAndBorders','History','388092clqkRu','add','keystrokes','fieldWrapperChildren','ck-ai-form__submit','91Rylkfn','rtl','filteredView','bind','window'];_0x8ade=function(){return _0x1bd100;};return _0x8ade();}(function(_0x23579e,_0x259d04){const _0x408dea=_0x252b,_0x3d2138=_0x23579e();while(!![]){try{const _0x171668=parseInt(_0x408dea(0xec))/0x1+parseInt(_0x408dea(0xd3))/0x2+parseInt(_0x408dea(0xe6))/0x3+parseInt(_0x408dea(0xc1))/0x4*(parseInt(_0x408dea(0xcd))/0x5)+parseInt(_0x408dea(0xbd))/0x6*(parseInt(_0x408dea(0xd8))/0x7)+parseInt(_0x408dea(0xe7))/0x8+-parseInt(_0x408dea(0xb7))/0x9;if(_0x171668===_0x259d04)break;else _0x3d2138['push'](_0x3d2138['shift']());}catch(_0x3154d5){_0x3d2138['push'](_0x3d2138['shift']());}}}(_0x8ade,0x301a3));import{Rect as _0x35e138,global as _0x43e198,isVisible as _0x67747d}from'ckeditor5/src/utils.js';function _0x252b(_0x440c26,_0x349f56){const _0x8adee3=_0x8ade();return _0x252b=function(_0x252ba9,_0x5b7893){_0x252ba9=_0x252ba9-0xb7;let _0x569154=_0x8adee3[_0x252ba9];return _0x569154;},_0x252b(_0x440c26,_0x349f56);}import{IconHistory as _0x3ed980,IconSubmit as _0x392c12}from'ckeditor5/src/icons.js';import{AutocompleteView as _0x4a71aa,ButtonView as _0x46cb40}from'ckeditor5/src/ui.js';import{getTranslation as _0x548e41}from'../../utils/common-translations.js';export default class ct extends _0x4a71aa{[_0x573c0d(0xc5)];[_0x573c0d(0xed)];constructor(_0x259b3f,_0x14ee43){const _0x35709e=_0x573c0d;super(_0x259b3f,_0x14ee43),this[_0x35709e(0xba)][_0x35709e(0xea)][_0x35709e(0xce)]=0x1,this[_0x35709e(0xba)][_0x35709e(0xea)][_0x35709e(0xbc)]=0x3,this[_0x35709e(0xc5)]=this[_0x35709e(0xc0)](),this[_0x35709e(0xed)]=this[_0x35709e(0xcf)](),this[_0x35709e(0xb9)][_0x35709e(0xd4)](this[_0x35709e(0xed)],0x1),this[_0x35709e(0xb9)][_0x35709e(0xd4)](this[_0x35709e(0xc5)]);}[_0x573c0d(0xeb)](){const _0x128658=_0x573c0d;super[_0x128658(0xeb)](),this[_0x128658(0xba)][_0x128658(0xd6)][_0x128658(0xd4)](this[_0x128658(0xed)]),this[_0x128658(0xca)][_0x128658(0xd4)](this[_0x128658(0xc5)]),this[_0x128658(0xd5)][_0x128658(0xc6)](_0x128658(0xbb),(_0x51e578,_0x11c9cc)=>{const _0x420622=_0x128658;_0x51e578[_0x420622(0xe1)]==this[_0x420622(0xba)][_0x420622(0xea)][_0x420622(0xcc)]&&(this[_0x420622(0xb8)](),_0x11c9cc());});}[_0x573c0d(0xc0)](){const _0x2172b1=_0x573c0d,_0x3a7df6=new _0x46cb40(this[_0x2172b1(0xde)]),_0x258e9d=this[_0x2172b1(0xde)];return _0x3a7df6[_0x2172b1(0xc6)]({'icon':_0x392c12,'label':_0x548e41(_0x258e9d,_0x2172b1(0xc7)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x2172b1(0xd7)}),_0x3a7df6['on'](_0x2172b1(0xcb),()=>{const _0x2e9b36=_0x2172b1;this[_0x2e9b36(0xb8)]();}),_0x3a7df6[_0x2172b1(0xdb)](_0x2172b1(0xe0))['to'](this[_0x2172b1(0xba)][_0x2172b1(0xea)],_0x2172b1(0xe8),this,_0x2172b1(0xe0),(_0x55dd8f,_0x1f8213)=>!_0x55dd8f&&_0x1f8213),_0x3a7df6;}[_0x573c0d(0xcf)](){const _0x416391=_0x573c0d,_0x42eb6e=new _0x46cb40(this[_0x416391(0xde)]),_0x1c58f9=this[_0x416391(0xee)],_0x59462e=this[_0x416391(0xde)];_0x42eb6e[_0x416391(0xc6)]({'label':_0x548e41(_0x59462e,_0x416391(0xd2)),'withText':!0x1,'icon':_0x3ed980,'tooltip':!0x0,'tooltipPosition':'sw','class':_0x416391(0xdd)}),_0x42eb6e[_0x416391(0xdb)](_0x416391(0xe5))['to'](_0x1c58f9,_0x416391(0xbe)),_0x42eb6e[_0x416391(0xdb)](_0x416391(0xe0))['to'](this,_0x416391(0xe0)),_0x42eb6e['on'](_0x416391(0xcb),()=>{const _0x1431be=_0x416391;_0x1c58f9[_0x1431be(0xbe)]=!_0x1c58f9[_0x1431be(0xbe)],_0x1c58f9[_0x1431be(0xbe)]?this[_0x1431be(0xda)][_0x1431be(0xe4)]():this[_0x1431be(0xe4)]();});const _0x5eeec6=()=>{const _0x2ab941=_0x416391;_0x43e198[_0x2ab941(0xdc)][_0x2ab941(0xef)](()=>{const _0x2cbb90=_0x2ab941;if(_0x67747d(this[_0x2cbb90(0xcc)])){const _0x39a672=new _0x35e138(this[_0x2cbb90(0xba)][_0x2cbb90(0xea)][_0x2cbb90(0xcc)]),_0x15eda0=_0x39a672[_0x2cbb90(0xc8)],_0x34b36d=_0x2cbb90(0xd9)===_0x59462e[_0x2cbb90(0xc9)]?_0x2cbb90(0xd0):_0x2cbb90(0xe9);_0x39a672[_0x2cbb90(0xd1)](),_0x42eb6e[_0x2cbb90(0xcc)][_0x2cbb90(0xe3)][_0x34b36d]=_0x15eda0-_0x39a672[_0x2cbb90(0xc8)]+0x1+'px';}});};return this[_0x416391(0xba)][_0x416391(0xea)]['on'](_0x416391(0xc2),_0x5eeec6),this['on'](_0x416391(0xeb),_0x5eeec6),_0x42eb6e;}[_0x573c0d(0xb8)](){const _0x2646f0=_0x573c0d,_0x22c177=this[_0x2646f0(0xba)][_0x2646f0(0xea)][_0x2646f0(0xcc)][_0x2646f0(0xc4)];this[_0x2646f0(0xc3)](_0x2646f0(0xb8),_0x22c177);}[_0x573c0d(0xe4)](_0x51279d){const _0x394ded=_0x573c0d;-0x1===_0x51279d?this[_0x394ded(0xe2)][_0x394ded(0xbf)]():this[_0x394ded(0xe2)][_0x394ded(0xdf)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x143081=_0x2861;(function(_0x57f2c1,_0x1b8830){const _0x4f828e=_0x2861,_0x541f8a=_0x57f2c1();while(!![]){try{const _0x59364e=-parseInt(_0x4f828e(0x136))/0x1+-parseInt(_0x4f828e(0x121))/0x2+-parseInt(_0x4f828e(0x12e))/0x3*(parseInt(_0x4f828e(0x133))/0x4)+parseInt(_0x4f828e(0x11e))/0x5*(-parseInt(_0x4f828e(0x134))/0x6)+-parseInt(_0x4f828e(0x118))/0x7*(-parseInt(_0x4f828e(0x12f))/0x8)+parseInt(_0x4f828e(0x11f))/0x9*(parseInt(_0x4f828e(0x126))/0xa)+-parseInt(_0x4f828e(0x135))/0xb*(-parseInt(_0x4f828e(0x11a))/0xc);if(_0x59364e===_0x1b8830)break;else _0x541f8a['push'](_0x541f8a['shift']());}catch(_0xe99a4e){_0x541f8a['push'](_0x541f8a['shift']());}}}(_0x1698,0xa6766));import{ToolbarView as _0x35e571,ButtonView as _0x2ef18a}from'ckeditor5/src/ui.js';function _0x1698(){const _0x39c149=['label','Stop','insertButton','AI_','toUpperCase','stopButton','1531878tcSkoI','8xKCkbY','ck-ai-form__toolbar','bindTemplate','ck-button-action','8IRJSNh','6DNuAzU','33gMmHJO','332471wzXXma','set','replaceButton','addMany','items','mainAction','bind','extendTemplate','isVisible','4692814FHcRdz','Insert\x20below','4979412fjzpGn','_CONTENT','replace','ck-hidden','373995fKPSvA','9zHsDXR','tryAgainButton','1171020nuOTHg','insert','locale','_createButton','Try\x20again','7806070bejLoW','REPLACE'];_0x1698=function(){return _0x39c149;};return _0x1698();}import{getTranslation as _0x548aa1}from'../../utils/common-translations.js';function _0x2861(_0x29f658,_0x49c141){const _0x1698e3=_0x1698();return _0x2861=function(_0x286184,_0x1999c1){_0x286184=_0x286184-0x113;let _0x37fc25=_0x1698e3[_0x286184];return _0x37fc25;},_0x2861(_0x29f658,_0x49c141);}export const AIFormToolbarViewMainActionLabel={'REPLACE':_0x143081(0x11c),'INSERT':_0x143081(0x122)};export default class lt extends _0x35e571{constructor(_0x3b491a){const _0x43f20c=_0x143081;super(_0x3b491a),this[_0x43f20c(0x137)](_0x43f20c(0x117),!0x1),this[_0x43f20c(0x137)](_0x43f20c(0x114),AIFormToolbarViewMainActionLabel[_0x43f20c(0x127)]),this[_0x43f20c(0x138)]=this[_0x43f20c(0x124)]('',_0x43f20c(0x132)),this[_0x43f20c(0x138)][_0x43f20c(0x115)](_0x43f20c(0x128))['to'](this,_0x43f20c(0x114),_0x4dac59=>_0x548aa1(_0x3b491a,_0x43f20c(0x12b)+_0x4dac59[_0x43f20c(0x12c)]()+_0x43f20c(0x11b))),this[_0x43f20c(0x12a)]=this[_0x43f20c(0x124)](_0x548aa1(_0x3b491a,_0x43f20c(0x119))),this[_0x43f20c(0x120)]=this[_0x43f20c(0x124)](_0x548aa1(_0x3b491a,_0x43f20c(0x125))),this[_0x43f20c(0x12d)]=this[_0x43f20c(0x124)](_0x548aa1(_0x3b491a,_0x43f20c(0x129)));const _0x1db2e3=this[_0x43f20c(0x131)];this[_0x43f20c(0x116)]({'attributes':{'class':[_0x43f20c(0x130),_0x1db2e3['if'](_0x43f20c(0x117),_0x43f20c(0x11d),_0x103844=>!_0x103844)]}}),this[_0x43f20c(0x113)][_0x43f20c(0x139)]([this[_0x43f20c(0x138)],this[_0x43f20c(0x12a)],this[_0x43f20c(0x120)],this[_0x43f20c(0x12d)]]);}[_0x143081(0x124)](_0x46d7cb,_0x5cfa8a){const _0x20ba7d=_0x143081,_0x394036=new _0x2ef18a(this[_0x20ba7d(0x123)]);return _0x394036[_0x20ba7d(0x137)]({'label':_0x46d7cb,'class':_0x5cfa8a||'','isVisible':!0x0,'withText':!0x0}),_0x394036;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x547b(){const _0x52e49e=['focus','prompt','finishProcessing','isVisible','copyButtonView','isEnabled','value','fire','stopButton','set','1275540CwHkey','chain','REPLACE','search','3668808DEzhyI','_focusables','focusFirst','bindTo','text','historyGroupView','712089WFdrwt','fieldView','ck-hidden','insertButton','handleError','add','listenTo','_promptHistory','bindTemplate','focusLast','queryView','_createToolbar','ck-ai-form','startProcessing','locale','_createPromptView','submitPrompt','promptView','replaceContent','focusTracker','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','focusCycler','trim','50QbjKMO','5398tQMhuC','toolbar','clear','render','Ask\x20AI\x20to\x20improve\x20generated\x20text','shift\x20+\x20tab','Empty\x20history','bind','tryAgainButton','Ask\x20AI\x20to\x20edit\x20or\x20generate','div','label','keystrokes','isProcessing','setTemplate','mainAction','execute','reset','ck-ai-form-content','submit','243HpOXGo','stopProcessing','errorView','insertContentBelow','1108590pVdyFd','createCollection','5ymwaca','high','delegate','replaceButton','220012AGXrBa','isError','tryAgainEvent','_createHistoryView','AI_ERROR_FAILED','element','contentArea','clearHistory','tab','items','167208qEgMfI'];_0x547b=function(){return _0x52e49e;};return _0x547b();}const _0x14099d=_0x2456;(function(_0x113e29,_0x294df2){const _0x8adc5=_0x2456,_0x3ee680=_0x113e29();while(!![]){try{const _0xa572e2=parseInt(_0x8adc5(0x1c3))/0x1*(-parseInt(_0x8adc5(0x1c2))/0x2)+-parseInt(_0x8adc5(0x186))/0x3+-parseInt(_0x8adc5(0x18c))/0x4+parseInt(_0x8adc5(0x188))/0x5*(parseInt(_0x8adc5(0x1a5))/0x6)+-parseInt(_0x8adc5(0x1ab))/0x7+-parseInt(_0x8adc5(0x196))/0x8*(-parseInt(_0x8adc5(0x1d7))/0x9)+-parseInt(_0x8adc5(0x1a1))/0xa;if(_0xa572e2===_0x294df2)break;else _0x3ee680['push'](_0x3ee680['shift']());}catch(_0x223193){_0x3ee680['push'](_0x3ee680['shift']());}}}(_0x547b,0x5e7d7));import{FocusTracker as _0x861a4f,KeystrokeHandler as _0x21869c}from'ckeditor5/src/utils.js';import{View as _0x598d5a,FocusCycler as _0x4481c9,createLabeledTextarea as _0x4b307a}from'ckeditor5/src/ui.js';import _0x41777f,{AIFormToolbarViewMainActionLabel as _0x52a82e}from'./aiformtoolbarview.js';import _0x28a1c2 from'./aiformcontentarea.js';import _0x34ffc8 from'./aiformerrorview.js';import _0x42f842 from'./aiformpromptview.js';import _0x5afcc1 from'./aihistorylistview.js';import _0x73506e from'./aihistorylistitemview.js';function _0x2456(_0x32612a,_0x3a41b7){const _0x547b56=_0x547b();return _0x2456=function(_0x245615,_0x5ed05b){_0x245615=_0x245615-0x183;let _0x35e993=_0x547b56[_0x245615];return _0x35e993;},_0x2456(_0x32612a,_0x3a41b7);}import _0x23096f from'./prompthistory.js';import{getTranslation as _0x431830}from'../../utils/common-translations.js';import{escape as _0x35d358}from'es-toolkit/compat';export default class _ extends _0x598d5a{[_0x14099d(0x1be)];[_0x14099d(0x1cf)];[_0x14099d(0x192)];[_0x14099d(0x1c4)];[_0x14099d(0x1bc)];[_0x14099d(0x184)];[_0x14099d(0x1a6)];[_0x14099d(0x1c0)];[_0x14099d(0x1b2)];constructor(_0x140f04,_0x39b6f7,_0x9c9010=''){const _0x2d47a2=_0x14099d;super(_0x140f04),this[_0x2d47a2(0x1a0)](_0x2d47a2(0x19c),!0x0),this[_0x2d47a2(0x1a0)](_0x2d47a2(0x1d0),!0x1),this[_0x2d47a2(0x1a0)](_0x2d47a2(0x198),''),this[_0x2d47a2(0x1a0)](_0x2d47a2(0x19d),''),this[_0x2d47a2(0x1a0)](_0x2d47a2(0x18d),!0x1),this[_0x2d47a2(0x1a0)](_0x2d47a2(0x1d2),_0x52a82e[_0x2d47a2(0x1a3)]),this[_0x2d47a2(0x1b2)]=new _0x23096f(),this[_0x2d47a2(0x184)]=new _0x34ffc8(_0x140f04),this[_0x2d47a2(0x192)]=new _0x28a1c2(_0x140f04,_0x9c9010),this[_0x2d47a2(0x192)][_0x2d47a2(0x1ca)](_0x2d47a2(0x1d0))['to'](this),this[_0x2d47a2(0x192)][_0x2d47a2(0x1ca)](_0x2d47a2(0x19d))['to'](this),this[_0x2d47a2(0x1c4)]=this[_0x2d47a2(0x1b6)](),this[_0x2d47a2(0x1c4)][_0x2d47a2(0x1ca)](_0x2d47a2(0x1d2))['to'](this),this[_0x2d47a2(0x1bc)]=this[_0x2d47a2(0x1ba)](),this[_0x2d47a2(0x1be)]=new _0x861a4f(),this[_0x2d47a2(0x1cf)]=new _0x21869c(),this[_0x2d47a2(0x1a6)]=this[_0x2d47a2(0x187)]([this[_0x2d47a2(0x192)],this[_0x2d47a2(0x192)][_0x2d47a2(0x19b)],this[_0x2d47a2(0x1c4)],this[_0x2d47a2(0x1bc)]]),this[_0x2d47a2(0x1c0)]=new _0x4481c9({'focusables':this[_0x2d47a2(0x1a6)],'focusTracker':this[_0x2d47a2(0x1be)],'keystrokeHandler':this[_0x2d47a2(0x1cf)],'actions':{'focusPrevious':_0x2d47a2(0x1c8),'focusNext':_0x2d47a2(0x194)}}),this[_0x2d47a2(0x1c0)][_0x2d47a2(0x1a2)](this[_0x2d47a2(0x1bc)][_0x2d47a2(0x1c0)]),this[_0x2d47a2(0x1bc)][_0x2d47a2(0x1b5)][_0x2d47a2(0x1ac)][_0x2d47a2(0x1ca)](_0x2d47a2(0x19d))['to'](this,_0x2d47a2(0x198));const _0x39c250=this[_0x2d47a2(0x1b3)];this[_0x2d47a2(0x1d1)]({'tag':_0x2d47a2(0x1cd),'attributes':{'class':['ck',_0x2d47a2(0x1b7),_0x39b6f7],'tabindex':'-1'},'children':[{'tag':_0x2d47a2(0x1cd),'attributes':{'class':['ck',_0x2d47a2(0x1d5)]},'children':[{'tag':_0x2d47a2(0x1cd),'attributes':{'class':[_0x39c250['if'](_0x2d47a2(0x18d),_0x2d47a2(0x1ad),_0x487ce1=>!_0x487ce1)]},'children':[this[_0x2d47a2(0x184)]]},this[_0x2d47a2(0x192)],this[_0x2d47a2(0x1c4)],this[_0x2d47a2(0x1bc)]]}]});}[_0x14099d(0x1c6)](){const _0x1b93bd=_0x14099d;super[_0x1b93bd(0x1c6)](),this[_0x1b93bd(0x1be)][_0x1b93bd(0x1b0)](this[_0x1b93bd(0x192)][_0x1b93bd(0x191)]),this[_0x1b93bd(0x1be)][_0x1b93bd(0x1b0)](this[_0x1b93bd(0x192)][_0x1b93bd(0x19b)][_0x1b93bd(0x191)]),this[_0x1b93bd(0x1be)][_0x1b93bd(0x1b0)](this[_0x1b93bd(0x1c4)][_0x1b93bd(0x191)]),this[_0x1b93bd(0x1be)][_0x1b93bd(0x1b0)](this[_0x1b93bd(0x1bc)][_0x1b93bd(0x191)]),this[_0x1b93bd(0x1cf)][_0x1b93bd(0x1b1)](this[_0x1b93bd(0x191)]);}[_0x14099d(0x197)](_0x1e00dc=0x1){const _0x19d55e=_0x14099d;-0x1===_0x1e00dc?this[_0x19d55e(0x1c0)][_0x19d55e(0x1b4)]():this[_0x19d55e(0x1c0)][_0x19d55e(0x1a7)]();}[_0x14099d(0x1d4)](){const _0x5d3978=_0x14099d;this[_0x5d3978(0x198)]='',this[_0x5d3978(0x19d)]='',this[_0x5d3978(0x18d)]=!0x1,this[_0x5d3978(0x1bc)][_0x5d3978(0x1d4)](),this[_0x5d3978(0x192)][_0x5d3978(0x19a)]=!0x1,this[_0x5d3978(0x1c4)][_0x5d3978(0x19a)]=!0x1;}[_0x14099d(0x1ba)](){const _0x683bd5=_0x14099d,_0x5f307d=this[_0x683bd5(0x1b9)],_0x19ea8c=new _0x42f842(_0x5f307d,{'queryView':{'label':_0x431830(_0x5f307d,_0x683bd5(0x1cc)),'creator':_0x4b307a,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x431830(_0x5f307d,_0x683bd5(0x1c9)),'secondary':_0x431830(_0x5f307d,_0x683bd5(0x1bf))}}},'filteredView':this[_0x683bd5(0x18f)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x19ea8c[_0x683bd5(0x1ca)](_0x683bd5(0x19c))['to'](this,_0x683bd5(0x19c),this,_0x683bd5(0x1d0),(_0x7dca70,_0x351859)=>_0x7dca70&&!_0x351859),this[_0x683bd5(0x1b1)](_0x19ea8c,_0x683bd5(0x1d6),(_0x39be10,_0x303113)=>{const _0x499e1c=_0x683bd5;this[_0x499e1c(0x198)]=_0x303113;const _0x1b440c=_0x35d358(_0x303113);this[_0x499e1c(0x19e)](_0x499e1c(0x1bb),_0x1b440c),_0x303113[_0x499e1c(0x1c1)]()&&this[_0x499e1c(0x1b2)][_0x499e1c(0x1b0)]({'prompt':_0x1b440c},0x0);},{'priority':_0x683bd5(0x189)}),_0x19ea8c;}[_0x14099d(0x18f)](){const _0x1ffabe=_0x14099d,_0x5342da=new _0x5afcc1(this[_0x1ffabe(0x1b9)]);return _0x5342da[_0x1ffabe(0x1aa)][_0x1ffabe(0x195)][_0x1ffabe(0x1a8)](this[_0x1ffabe(0x1b2)])['as'](_0x73506e),_0x5342da['on'](_0x1ffabe(0x193),()=>{const _0x41969c=_0x1ffabe;this[_0x41969c(0x1b2)][_0x41969c(0x1c5)](),this[_0x41969c(0x1bc)][_0x41969c(0x1a4)](''),this[_0x41969c(0x1bc)][_0x41969c(0x197)]();}),_0x5342da;}[_0x14099d(0x1b6)](){const _0x50ad5e=_0x14099d,_0x337c57=new _0x41777f(this[_0x50ad5e(0x1b9)]);return _0x337c57[_0x50ad5e(0x18b)][_0x50ad5e(0x1ca)](_0x50ad5e(0x19c))['to'](this,_0x50ad5e(0x19c),this,_0x50ad5e(0x1d0),this,_0x50ad5e(0x19d),(_0x227c5c,_0x4d3898,_0x2e0b30)=>_0x227c5c&&!_0x4d3898&&!!_0x2e0b30),_0x337c57[_0x50ad5e(0x18b)][_0x50ad5e(0x18a)](_0x50ad5e(0x1d3))['to'](this,_0x50ad5e(0x1bd)),_0x337c57[_0x50ad5e(0x1ae)][_0x50ad5e(0x1ca)](_0x50ad5e(0x19c))['to'](this,_0x50ad5e(0x19c),this,_0x50ad5e(0x1d0),this,_0x50ad5e(0x19d),(_0x5dbcac,_0x509e8e,_0x343400)=>_0x5dbcac&&!_0x509e8e&&!!_0x343400),_0x337c57[_0x50ad5e(0x1ae)][_0x50ad5e(0x18a)](_0x50ad5e(0x1d3))['to'](this,_0x50ad5e(0x185)),_0x337c57[_0x50ad5e(0x1cb)][_0x50ad5e(0x1ca)](_0x50ad5e(0x19c))['to'](this,_0x50ad5e(0x19c),this,_0x50ad5e(0x1d0),(_0x444561,_0x34e7fa)=>_0x444561&&!_0x34e7fa),_0x337c57[_0x50ad5e(0x1cb)][_0x50ad5e(0x18a)](_0x50ad5e(0x1d3))['to'](this,_0x50ad5e(0x18e)),_0x337c57[_0x50ad5e(0x19f)][_0x50ad5e(0x1ca)](_0x50ad5e(0x19c))['to'](this,_0x50ad5e(0x1d0)),_0x337c57[_0x50ad5e(0x19f)][_0x50ad5e(0x18a)](_0x50ad5e(0x1d3))['to'](this,_0x50ad5e(0x183)),_0x337c57;}[_0x14099d(0x1b8)](){const _0x145da2=_0x14099d;this[_0x145da2(0x19d)]='',this[_0x145da2(0x18d)]=!0x1,this[_0x145da2(0x1d0)]=!0x0,this[_0x145da2(0x192)][_0x145da2(0x19a)]=!0x0,this[_0x145da2(0x1c4)][_0x145da2(0x19a)]=!0x0,this[_0x145da2(0x192)][_0x145da2(0x197)]();}[_0x14099d(0x199)](){const _0x38e251=_0x14099d,_0x4a78eb=this[_0x38e251(0x1b9)];this[_0x38e251(0x1d0)]=!0x1,this[_0x38e251(0x198)]='',this[_0x38e251(0x1bc)][_0x38e251(0x1d4)](),this[_0x38e251(0x19d)]&&(this[_0x38e251(0x1bc)][_0x38e251(0x1b5)][_0x38e251(0x1ce)]=_0x431830(_0x4a78eb,_0x38e251(0x1c7)));}[_0x14099d(0x1af)](_0x5b78ab){const _0x284e4b=_0x14099d,_0x466295=this[_0x284e4b(0x1b9)];this[_0x284e4b(0x199)](),this[_0x284e4b(0x18d)]=!0x0,this[_0x284e4b(0x184)][_0x284e4b(0x1a9)]=_0x5b78ab||_0x431830(_0x466295,_0x284e4b(0x190)),this[_0x284e4b(0x19d)]||(this[_0x284e4b(0x192)][_0x284e4b(0x19a)]=!0x1);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x3f9ca3,_0x5c79cc){const _0x39e273=_0x1632,_0x5b3f09=_0x3f9ca3();while(!![]){try{const _0x40f37=parseInt(_0x39e273(0x1e0))/0x1+-parseInt(_0x39e273(0x1e5))/0x2+parseInt(_0x39e273(0x1e9))/0x3*(parseInt(_0x39e273(0x1ea))/0x4)+parseInt(_0x39e273(0x1ed))/0x5+-parseInt(_0x39e273(0x1e6))/0x6+-parseInt(_0x39e273(0x1eb))/0x7*(-parseInt(_0x39e273(0x1e4))/0x8)+parseInt(_0x39e273(0x1df))/0x9;if(_0x40f37===_0x5c79cc)break;else _0x5b3f09['push'](_0x5b3f09['shift']());}catch(_0x368d39){_0x5b3f09['push'](_0x5b3f09['shift']());}}}(_0x51f8,0x35002));function _0x1632(_0x4e16c8,_0x58ce1d){const _0x51f844=_0x51f8();return _0x1632=function(_0x163208,_0x5b3bd5){_0x163208=_0x163208-0x1de;let _0x16375=_0x51f844[_0x163208];return _0x16375;},_0x1632(_0x4e16c8,_0x58ce1d);}import{ListItemView as _0x5c5dd5,ButtonView as _0x5622c2,ButtonLabelView as _0x145451}from'ckeditor5/src/ui.js';import{unescape as _0x59f8dc}from'es-toolkit/compat';function _0x51f8(){const _0x5115a9=['765875wVLprn','children','140733YKZsaV','203573AEiqnv','set','locale','prompt','44656ygvZNx','193004VLVTzJ','1698522bnhIKX','add','execute','501loIbxN','2832jKxBdp','133UjvbsM','fire'];_0x51f8=function(){return _0x5115a9;};return _0x51f8();}export default class bt extends _0x5c5dd5{constructor(_0x19e62b){const _0x30b694=_0x1632;super();const _0x3da311=new _0x145451(),_0x2cf94f=new _0x5622c2(this[_0x30b694(0x1e2)],_0x3da311);this[_0x30b694(0x1de)][_0x30b694(0x1e7)](_0x2cf94f),_0x2cf94f[_0x30b694(0x1e1)]({'label':_0x19e62b[_0x30b694(0x1e3)],'withText':!0x0}),_0x2cf94f['on'](_0x30b694(0x1e8),()=>{const _0x455faf=_0x30b694;this[_0x455faf(0x1ec)](_0x455faf(0x1e8),{'value':_0x59f8dc(_0x19e62b[_0x455faf(0x1e3)])});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x51ae(){const _0x5986e0=['items','2152lwpNsm','1257530WiQzcW','filter','12DZhWIU','historyGroupView','17864ZKXCFf','delegate','2799520BbwNHU','1167dCikNF','Prompt\x20history','label','add','execute','13790lNAMov','6099WVnRqb','children','clearHistory','1084NPelpo','locale','_createClearHistoryButton','set','436znHbBD','Clear','fire','clearHistoryButton','length','9294480yecEsK'];_0x51ae=function(){return _0x5986e0;};return _0x51ae();}const _0x3916b2=_0x514c;function _0x514c(_0x766e8,_0x38d507){const _0x51ae32=_0x51ae();return _0x514c=function(_0x514c31,_0x46436a){_0x514c31=_0x514c31-0x64;let _0x594ccd=_0x51ae32[_0x514c31];return _0x594ccd;},_0x514c(_0x766e8,_0x38d507);}(function(_0x118fd2,_0x4c6cce){const _0x468b4b=_0x514c,_0x5ad5a7=_0x118fd2();while(!![]){try{const _0x5715e1=parseInt(_0x468b4b(0x69))/0x1*(parseInt(_0x468b4b(0x76))/0x2)+parseInt(_0x468b4b(0x6f))/0x3*(parseInt(_0x468b4b(0x72))/0x4)+parseInt(_0x468b4b(0x7e))/0x5*(parseInt(_0x468b4b(0x64))/0x6)+parseInt(_0x468b4b(0x6e))/0x7*(parseInt(_0x468b4b(0x7d))/0x8)+-parseInt(_0x468b4b(0x7b))/0x9+-parseInt(_0x468b4b(0x68))/0xa+-parseInt(_0x468b4b(0x66))/0xb;if(_0x5715e1===_0x4c6cce)break;else _0x5ad5a7['push'](_0x5ad5a7['shift']());}catch(_0x221dad){_0x5ad5a7['push'](_0x5ad5a7['shift']());}}}(_0x51ae,0x7fedb));import{ListView as _0x492450,ListItemGroupView as _0x473b9f,ButtonView as _0x55509c}from'ckeditor5/src/ui.js';import{getTranslation as _0x55deba}from'../../utils/common-translations.js';export default class ft extends _0x492450{[_0x3916b2(0x65)];[_0x3916b2(0x79)];constructor(_0x3a5406){const _0xeb27a6=_0x3916b2;super(_0x3a5406),this[_0xeb27a6(0x79)]=this[_0xeb27a6(0x74)](),this[_0xeb27a6(0x65)]=new _0x473b9f(),this[_0xeb27a6(0x65)][_0xeb27a6(0x70)][_0xeb27a6(0x6c)](this[_0xeb27a6(0x79)],0x1),this[_0xeb27a6(0x65)][_0xeb27a6(0x6b)]=_0x55deba(_0x3a5406,_0xeb27a6(0x6a)),this[_0xeb27a6(0x65)][_0xeb27a6(0x7c)][_0xeb27a6(0x67)](_0xeb27a6(0x6d))['to'](this),this[_0xeb27a6(0x7c)][_0xeb27a6(0x6c)](this[_0xeb27a6(0x65)]);}[_0x3916b2(0x7f)](){const _0x135e1f=_0x3916b2;let _0x302908=0x0;for(const _0x5c2f18 of this[_0x135e1f(0x7c)])_0x302908+=_0x5c2f18[_0x135e1f(0x7c)][_0x135e1f(0x7a)];return{'resultsCount':_0x302908,'totalItemsCount':_0x302908};}[_0x3916b2(0x74)](){const _0x24092a=_0x3916b2,_0x237732=this[_0x24092a(0x73)],_0x455c98=new _0x55509c(this[_0x24092a(0x73)]);return _0x455c98[_0x24092a(0x75)]({'label':'('+_0x55deba(_0x237732,_0x24092a(0x77))+')','withText':!0x0}),_0x455c98['on'](_0x24092a(0x6d),()=>this[_0x24092a(0x78)](_0x24092a(0x71))),_0x455c98;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x21aa9f=_0x167d;(function(_0x22ef8e,_0x145a99){const _0x2ca0da=_0x167d,_0x4ee361=_0x22ef8e();while(!![]){try{const _0x3a5713=-parseInt(_0x2ca0da(0x163))/0x1*(parseInt(_0x2ca0da(0x16e))/0x2)+parseInt(_0x2ca0da(0x169))/0x3*(-parseInt(_0x2ca0da(0x161))/0x4)+parseInt(_0x2ca0da(0x164))/0x5+parseInt(_0x2ca0da(0x16f))/0x6*(-parseInt(_0x2ca0da(0x16b))/0x7)+-parseInt(_0x2ca0da(0x173))/0x8+-parseInt(_0x2ca0da(0x172))/0x9*(-parseInt(_0x2ca0da(0x168))/0xa)+-parseInt(_0x2ca0da(0x167))/0xb*(-parseInt(_0x2ca0da(0x17a))/0xc);if(_0x3a5713===_0x145a99)break;else _0x4ee361['push'](_0x4ee361['shift']());}catch(_0x3d5dbb){_0x4ee361['push'](_0x4ee361['shift']());}}}(_0x4f43,0x4b26e));import{Collection as _0x45a0ad}from'ckeditor5/src/utils.js';const ts=_0x21aa9f(0x16a);export default class wt extends _0x45a0ad{constructor(){const _0x20e4da=_0x21aa9f;super(),this[_0x20e4da(0x170)](),this['on'](_0x20e4da(0x166),(_0x2331b2,_0x169580)=>{const _0x31e8c9=_0x20e4da,_0x5e8d26=os(_0x169580[_0x31e8c9(0x17c)]);for(const _0x357a45 of this)if(_0x357a45!=_0x169580&&os(_0x357a45[_0x31e8c9(0x17c)])===_0x5e8d26){this[_0x31e8c9(0x165)](_0x357a45);break;}this[_0x31e8c9(0x171)]>0x14&&this[_0x31e8c9(0x165)](this[_0x31e8c9(0x176)]),this[_0x31e8c9(0x179)]();}),this['on'](_0x20e4da(0x165),()=>{const _0x4e25ae=_0x20e4da;this[_0x4e25ae(0x179)]();});}[_0x21aa9f(0x170)](){const _0x431dc3=_0x21aa9f,_0x4d72aa=sessionStorage[_0x431dc3(0x174)](ts)||'[]';this[_0x431dc3(0x16d)](JSON[_0x431dc3(0x175)](_0x4d72aa));}[_0x21aa9f(0x179)](){const _0x324614=_0x21aa9f;sessionStorage[_0x324614(0x178)](ts,JSON[_0x324614(0x162)](this[_0x324614(0x177)](_0x3a9d63=>_0x3a9d63)));}}function _0x167d(_0x31d4ac,_0x2858b6){const _0x4f43fc=_0x4f43();return _0x167d=function(_0x167d94,_0x3bbcd3){_0x167d94=_0x167d94-0x161;let _0x4c22c3=_0x4f43fc[_0x167d94];return _0x4c22c3;},_0x167d(_0x31d4ac,_0x2858b6);}function os(_0x269700){const _0x52175f=_0x21aa9f;return _0x269700[_0x52175f(0x16c)]()[_0x52175f(0x17b)]();}function _0x4f43(){const _0x247e39=['1903253qPmXCW','26570uIipHW','3210FkCQSq','CKEditor/AIFormView/PromptHistory','7stobgu','toLowerCase','addMany','776332LIQinf','417822oyEWar','_loadFromSessionStorage','length','351GplhAv','2054816KSWONv','getItem','parse','last','map','setItem','_saveToSessionStorage','60OpjKBK','trim','prompt','284gcmhfg','stringify','1UXwcIF','648545DVDTQO','remove','add'];_0x4f43=function(){return _0x247e39;};return _0x4f43();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3bb9cd=_0x30dd;function _0x30dd(_0x7879d1,_0x209a99){const _0x453bf5=_0x453b();return _0x30dd=function(_0x30dda5,_0x56585e){_0x30dda5=_0x30dda5-0x104;let _0x5f74f1=_0x453bf5[_0x30dda5];return _0x5f74f1;},_0x30dd(_0x7879d1,_0x209a99);}(function(_0x1d7125,_0x475dbb){const _0x481f28=_0x30dd,_0x30459c=_0x1d7125();while(!![]){try{const _0x54be65=-parseInt(_0x481f28(0x12c))/0x1*(parseInt(_0x481f28(0x12e))/0x2)+-parseInt(_0x481f28(0x108))/0x3+parseInt(_0x481f28(0x128))/0x4+-parseInt(_0x481f28(0x11e))/0x5*(parseInt(_0x481f28(0x11c))/0x6)+-parseInt(_0x481f28(0x12a))/0x7*(-parseInt(_0x481f28(0x121))/0x8)+parseInt(_0x481f28(0x124))/0x9*(parseInt(_0x481f28(0x122))/0xa)+-parseInt(_0x481f28(0x112))/0xb*(-parseInt(_0x481f28(0x11f))/0xc);if(_0x54be65===_0x475dbb)break;else _0x30459c['push'](_0x30459c['shift']());}catch(_0x58f369){_0x30459c['push'](_0x30459c['shift']());}}}(_0x453b,0xc6dab));import{Command as _0x3d58af}from'ckeditor5/src/core.js';import _0x5a7c8e from'../aiassistantui.js';function _0x453b(){const _0x15af0f=['refresh','element','from','ai.aiAssistant.disabledElements','add','get','2039088fGsmLE','getFirstRange','set','_hasContext','requiresContent','config','editor','enabledCommandsIds','isEmpty','isCollapsed','28806668UKKZSt','getRanges','values','model','_commandDefinitions','showUI','hasContent','change:_hasContext','change:isEnabled','name','574716ecfDlP','isEnabled','75ANoPox','12CQlDZY','getItems','1866952ERtXbW','111630adJCfY','plugins','36KZcYOW','execute','document','selection','2744452prwPMW','custom','14GLbhcf','length','2ldawLl','getSelectedBlocks','885298PrYwZD','includes'];_0x453b=function(){return _0x15af0f;};return _0x453b();}export default class j extends _0x3d58af{[_0x3bb9cd(0x116)];constructor(_0x25c714,_0x3d132e){const _0x2dc32d=_0x3bb9cd;super(_0x25c714),this[_0x2dc32d(0x116)]=_0x3d132e,this[_0x2dc32d(0x10a)](_0x2dc32d(0x10f),[]),this['on'](_0x2dc32d(0x119),(_0x3239b2,_0x4cc13c,_0x439eb3)=>{const _0x42840f=_0x2dc32d;this[_0x42840f(0x11d)]&&(this[_0x42840f(0x10f)]=G(this[_0x42840f(0x116)],_0x439eb3));}),this[_0x2dc32d(0x10a)](_0x2dc32d(0x10b),!0x1),this['on'](_0x2dc32d(0x11a),(_0x184fee,_0x3d3ce8,_0x2fa65a)=>{const _0x581278=_0x2dc32d;this[_0x581278(0x10f)]=_0x2fa65a?G(this[_0x581278(0x116)],this[_0x581278(0x10b)]):[];});}[_0x3bb9cd(0x130)](){const _0x260b1c=_0x3bb9cd,_0x4db73f=this[_0x260b1c(0x10e)][_0x260b1c(0x115)];this[_0x260b1c(0x10b)]=function(_0x25342a){const _0x4e6700=_0x260b1c,_0x29bb48=_0x25342a[_0x4e6700(0x126)][_0x4e6700(0x127)];return _0x29bb48[_0x4e6700(0x111)]?0x0!==[..._0x29bb48[_0x4e6700(0x12d)]()][_0x4e6700(0x12b)]&&![..._0x29bb48[_0x4e6700(0x12d)]()][0x0][_0x4e6700(0x110)]:!!_0x25342a[_0x4e6700(0x118)](_0x29bb48[_0x4e6700(0x109)]());}(_0x4db73f);const _0xe2c266=_0x4db73f[_0x260b1c(0x126)][_0x260b1c(0x127)],_0x66900e=this[_0x260b1c(0x10e)][_0x260b1c(0x10d)][_0x260b1c(0x107)](_0x260b1c(0x105));for(const _0x139ece of _0xe2c266[_0x260b1c(0x113)]())for(const _0x52d20d of _0x139ece[_0x260b1c(0x120)]())if(_0x52d20d['is'](_0x260b1c(0x131))&&_0x66900e[_0x260b1c(0x12f)](_0x52d20d[_0x260b1c(0x11b)]))return void(this[_0x260b1c(0x11d)]=!0x1);this[_0x260b1c(0x11d)]=!0x0;}[_0x3bb9cd(0x125)](_0x263bcc='',_0x2da6c7='',_0x189afc=_0x3bb9cd(0x129)){const _0x400aef=_0x3bb9cd;this[_0x400aef(0x10e)][_0x400aef(0x123)][_0x400aef(0x107)](_0x5a7c8e)[_0x400aef(0x117)](_0x263bcc,_0x2da6c7,_0x189afc);}}function G(_0x2dbc95,_0x4cc0d7){const _0x50338a=_0x3bb9cd,_0x1cae0b=new Set();for(const _0x42754a of _0x2dbc95[_0x50338a(0x114)]())(_0x4cc0d7||!0x1===_0x42754a[_0x50338a(0x10c)])&&_0x1cae0b[_0x50338a(0x106)](_0x42754a['id']);return Array[_0x50338a(0x104)](_0x1cae0b);}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(
|
|
23
|
+
export function getTranslation(_0x2a9c8b,_0x3d22ac,_0x8a2701){const t=_0x2a9c8b['t'];switch(_0x3d22ac){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',_0x8a2701);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x8a2701);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'},_0x8a2701);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 _0x3d22ac;}}
|
|
@@ -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(_0xf23dde,_0x560c75){const _0x212691=(0x0,_0x560c75['t'])('Other');return _0xf23dde['length']?'groupId'in _0xf23dde[0x0]?_0xf23dde:[{'groupId':'_ungrouppedCommands','groupLabel':_0x212691,'order':0x1/0x0,'commands':_0xf23dde}]:[{'groupId':'_ungrouppedCommands','groupLabel':_0x212691,'order':0x1/0x0,'commands':[]}];}
|