@ckeditor/ckeditor5-ai 46.1.0-alpha.2 → 46.1.1-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 _0x28d1(){const _0x24275e=['focus','_createShowHistoryButton','queryView','fieldView','children','4824kZiIZb','isEmpty','execute','showHistoryButtonView','bind','ck-ai-form__toggle-history','9493BboiWp','minRows','render','376PEUiXV','keystrokes','left','_createSubmitButton','locale','14hidPaH','enter','right','target','window','rtl','827qvwFHC','maxRows','19275frwsTA','33759401uwZzYY','fieldWrapperChildren','Submit','resultsView','uiLanguageDirection','History','12utjGfV','fire','2742BDnDXn','1070304YmhwRl','update','value','isOn','excludeScrollbarsAndBorders','4721065gjFhgg','submit','focusCycler','focusLast','isVisible','style','isEnabled','set','focusableChildren','5470rUXnTy','focusFirst','8088MNHJPo','requestAnimationFrame','add','element','submitButtonView','filteredView','width','ck-ai-form__submit'];_0x28d1=function(){return _0x24275e;};return _0x28d1();}const _0x13dea2=_0x59b7;(function(_0x120e38,_0x305972){const _0x535609=_0x59b7,_0x5aebc0=_0x120e38();while(!![]){try{const _0x174505=-parseInt(_0x535609(0x175))/0x1*(parseInt(_0x535609(0x180))/0x2)+parseInt(_0x535609(0x177))/0x3*(-parseInt(_0x535609(0x1a7))/0x4)+-parseInt(_0x535609(0x186))/0x5+parseInt(_0x535609(0x181))/0x6*(-parseInt(_0x535609(0x1ac))/0x7)+parseInt(_0x535609(0x191))/0x8*(parseInt(_0x535609(0x19e))/0x9)+parseInt(_0x535609(0x18f))/0xa*(parseInt(_0x535609(0x1a4))/0xb)+parseInt(_0x535609(0x17e))/0xc*(parseInt(_0x535609(0x178))/0xd);if(_0x174505===_0x305972)break;else _0x5aebc0['push'](_0x5aebc0['shift']());}catch(_0x56369f){_0x5aebc0['push'](_0x5aebc0['shift']());}}}(_0x28d1,0x8bab6));import{Rect as _0x3e57cb,global as _0x2ae9c6,isVisible as _0x46a84d}from'ckeditor5/src/utils.js';import{IconHistory as _0x30ae07,IconSubmit as _0xd75f8c}from'ckeditor5/src/icons.js';import{AutocompleteView as _0x419736,ButtonView as _0x4b9f30}from'ckeditor5/src/ui.js';import{getTranslation as _0x3ccced}from'../../utils/common-translations.js';function _0x59b7(_0x5759d8,_0x2407d2){const _0x28d122=_0x28d1();return _0x59b7=function(_0x59b7f8,_0x20c4c9){_0x59b7f8=_0x59b7f8-0x170;let _0x98b41d=_0x28d122[_0x59b7f8];return _0x98b41d;},_0x59b7(_0x5759d8,_0x2407d2);}export class AIFormPromptView extends _0x419736{[_0x13dea2(0x195)];[_0x13dea2(0x1a1)];constructor(_0x12e0af,_0x511a6a){const _0x48460b=_0x13dea2;super(_0x12e0af,_0x511a6a),this[_0x48460b(0x19b)][_0x48460b(0x19c)][_0x48460b(0x1a5)]=0x1,this[_0x48460b(0x19b)][_0x48460b(0x19c)][_0x48460b(0x176)]=0x3,this[_0x48460b(0x195)]=this[_0x48460b(0x1aa)](),this[_0x48460b(0x1a1)]=this[_0x48460b(0x19a)](),this[_0x48460b(0x18e)][_0x48460b(0x193)](this[_0x48460b(0x1a1)],0x1),this[_0x48460b(0x18e)][_0x48460b(0x193)](this[_0x48460b(0x195)]);}[_0x13dea2(0x1a6)](){const _0x6b95fc=_0x13dea2;super[_0x6b95fc(0x1a6)](),this[_0x6b95fc(0x19b)][_0x6b95fc(0x179)][_0x6b95fc(0x193)](this[_0x6b95fc(0x1a1)]),this[_0x6b95fc(0x19d)][_0x6b95fc(0x193)](this[_0x6b95fc(0x195)]),this[_0x6b95fc(0x1a8)][_0x6b95fc(0x18d)](_0x6b95fc(0x170),(_0x20cd10,_0x36cf89)=>{const _0x734029=_0x6b95fc;_0x20cd10[_0x734029(0x172)]==this[_0x734029(0x19b)][_0x734029(0x19c)][_0x734029(0x194)]&&(this[_0x734029(0x187)](),_0x36cf89());});}[_0x13dea2(0x1aa)](){const _0x36a6a3=_0x13dea2,_0x4598be=new _0x4b9f30(this[_0x36a6a3(0x1ab)]),_0x3e372c=this[_0x36a6a3(0x1ab)];return _0x4598be[_0x36a6a3(0x18d)]({'icon':_0xd75f8c,'label':_0x3ccced(_0x3e372c,_0x36a6a3(0x17a)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x36a6a3(0x198)}),_0x4598be['on'](_0x36a6a3(0x1a0),()=>{const _0x255725=_0x36a6a3;this[_0x255725(0x187)]();}),_0x4598be[_0x36a6a3(0x1a2)](_0x36a6a3(0x18c))['to'](this[_0x36a6a3(0x19b)][_0x36a6a3(0x19c)],_0x36a6a3(0x19f),this,_0x36a6a3(0x18c),(_0x503de2,_0x13ff88)=>!_0x503de2&&_0x13ff88),_0x4598be;}[_0x13dea2(0x19a)](){const _0x320ad3=_0x13dea2,_0x1161ee=new _0x4b9f30(this[_0x320ad3(0x1ab)]),_0x229c17=this[_0x320ad3(0x17b)],_0x50cc6d=this[_0x320ad3(0x1ab)];_0x1161ee[_0x320ad3(0x18d)]({'label':_0x3ccced(_0x50cc6d,_0x320ad3(0x17d)),'withText':!0x1,'icon':_0x30ae07,'tooltip':!0x0,'tooltipPosition':'sw','class':_0x320ad3(0x1a3)}),_0x1161ee[_0x320ad3(0x1a2)](_0x320ad3(0x184))['to'](_0x229c17,_0x320ad3(0x18a)),_0x1161ee[_0x320ad3(0x1a2)](_0x320ad3(0x18c))['to'](this,_0x320ad3(0x18c)),_0x1161ee['on'](_0x320ad3(0x1a0),()=>{const _0x4bac93=_0x320ad3;_0x229c17[_0x4bac93(0x18a)]=!_0x229c17[_0x4bac93(0x18a)],_0x229c17[_0x4bac93(0x18a)]?this[_0x4bac93(0x196)][_0x4bac93(0x199)]():this[_0x4bac93(0x199)]();});const _0x5c3f37=()=>{const _0x5f0889=_0x320ad3;_0x2ae9c6[_0x5f0889(0x173)][_0x5f0889(0x192)](()=>{const _0x286a88=_0x5f0889;if(_0x46a84d(this[_0x286a88(0x194)])){const _0x503190=new _0x3e57cb(this[_0x286a88(0x19b)][_0x286a88(0x19c)][_0x286a88(0x194)]),_0x1971f6=_0x503190[_0x286a88(0x197)],_0x3337a7=_0x286a88(0x174)===_0x50cc6d[_0x286a88(0x17c)]?_0x286a88(0x1a9):_0x286a88(0x171);_0x503190[_0x286a88(0x185)](),_0x1161ee[_0x286a88(0x194)][_0x286a88(0x18b)][_0x3337a7]=_0x1971f6-_0x503190[_0x286a88(0x197)]+0x1+'px';}});};return this[_0x320ad3(0x19b)][_0x320ad3(0x19c)]['on'](_0x320ad3(0x182),_0x5c3f37),this['on'](_0x320ad3(0x1a6),_0x5c3f37),_0x1161ee;}[_0x13dea2(0x187)](){const _0xc4ced5=_0x13dea2,_0x2d0c5a=this[_0xc4ced5(0x19b)][_0xc4ced5(0x19c)][_0xc4ced5(0x194)][_0xc4ced5(0x183)];this[_0xc4ced5(0x17f)](_0xc4ced5(0x187),_0x2d0c5a);}[_0x13dea2(0x199)](_0x3ad2e5){const _0x5ef083=_0x13dea2;-0x1===_0x3ad2e5?this[_0x5ef083(0x188)][_0x5ef083(0x189)]():this[_0x5ef083(0x188)][_0x5ef083(0x190)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x4350(){const _0x2bfd93=['bindTemplate','extendTemplate','ck-ai-form__toolbar','bind','13ZFJSAI','label','replace','1746KwjuYm','342ddVyGl','_createButton','mainAction','replaceButton','isVisible','24408CARttF','stopButton','15ZASDuu','75121AKYBtk','1125xmgkQm','insert','set','_CONTENT','REPLACE','2792WPyZRo','ck-hidden','190036nMBFQQ','126924LyrBva','Stop','addMany','ck-button-action','55110rppIiZ','insertButton','locale','517pCkiux','Try\x20again','Insert\x20below','toUpperCase','322rQCYGr','AI_','tryAgainButton','items'];_0x4350=function(){return _0x2bfd93;};return _0x4350();}const _0xce70e4=_0x91a2;(function(_0x58698a,_0x28faa9){const _0x39a62d=_0x91a2,_0x5ee79a=_0x58698a();while(!![]){try{const _0x38d736=-parseInt(_0x39a62d(0xf4))/0x1+-parseInt(_0x39a62d(0xeb))/0x2*(-parseInt(_0x39a62d(0xec))/0x3)+-parseInt(_0x39a62d(0xfc))/0x4*(-parseInt(_0x39a62d(0xf3))/0x5)+parseInt(_0x39a62d(0xf1))/0x6*(parseInt(_0x39a62d(0xe0))/0x7)+parseInt(_0x39a62d(0xfa))/0x8*(parseInt(_0x39a62d(0xf5))/0x9)+parseInt(_0x39a62d(0x101))/0xa*(-parseInt(_0x39a62d(0xdc))/0xb)+-parseInt(_0x39a62d(0xfd))/0xc*(-parseInt(_0x39a62d(0xe8))/0xd);if(_0x38d736===_0x28faa9)break;else _0x5ee79a['push'](_0x5ee79a['shift']());}catch(_0x26f8e9){_0x5ee79a['push'](_0x5ee79a['shift']());}}}(_0x4350,0x246f9));import{ToolbarView as _0x211ec9,ButtonView as _0x41fa22}from'ckeditor5/src/ui.js';function _0x91a2(_0x44d626,_0x2398c2){const _0x4350f9=_0x4350();return _0x91a2=function(_0x91a274,_0x2cfc4c){_0x91a274=_0x91a274-0xdc;let _0x5f53ba=_0x4350f9[_0x91a274];return _0x5f53ba;},_0x91a2(_0x44d626,_0x2398c2);}import{getTranslation as _0x297507}from'../../utils/common-translations.js';export const AIFormToolbarViewMainActionLabel={'REPLACE':_0xce70e4(0xea),'INSERT':_0xce70e4(0xf6)};export class AIFormToolbarView extends _0x211ec9{constructor(_0x2dda8c){const _0x44f3ec=_0xce70e4;super(_0x2dda8c),this[_0x44f3ec(0xf7)](_0x44f3ec(0xf0),!0x1),this[_0x44f3ec(0xf7)](_0x44f3ec(0xee),AIFormToolbarViewMainActionLabel[_0x44f3ec(0xf9)]),this[_0x44f3ec(0xef)]=this[_0x44f3ec(0xed)]('',_0x44f3ec(0x100)),this[_0x44f3ec(0xef)][_0x44f3ec(0xe7)](_0x44f3ec(0xe9))['to'](this,_0x44f3ec(0xee),_0x8e981a=>_0x297507(_0x2dda8c,_0x44f3ec(0xe1)+_0x8e981a[_0x44f3ec(0xdf)]()+_0x44f3ec(0xf8))),this[_0x44f3ec(0x102)]=this[_0x44f3ec(0xed)](_0x297507(_0x2dda8c,_0x44f3ec(0xde))),this[_0x44f3ec(0xe2)]=this[_0x44f3ec(0xed)](_0x297507(_0x2dda8c,_0x44f3ec(0xdd))),this[_0x44f3ec(0xf2)]=this[_0x44f3ec(0xed)](_0x297507(_0x2dda8c,_0x44f3ec(0xfe)));const _0x31620b=this[_0x44f3ec(0xe4)];this[_0x44f3ec(0xe5)]({'attributes':{'class':[_0x44f3ec(0xe6),_0x31620b['if'](_0x44f3ec(0xf0),_0x44f3ec(0xfb),_0x2bf75c=>!_0x2bf75c)]}}),this[_0x44f3ec(0xe3)][_0x44f3ec(0xff)]([this[_0x44f3ec(0xef)],this[_0x44f3ec(0x102)],this[_0x44f3ec(0xe2)],this[_0x44f3ec(0xf2)]]);}[_0xce70e4(0xed)](_0x1e212c,_0x5fb03c){const _0x39b34c=_0xce70e4,_0x1c57f5=new _0x41fa22(this[_0x39b34c(0x103)]);return _0x1c57f5[_0x39b34c(0xf7)]({'label':_0x1e212c,'class':_0x5fb03c||'','isVisible':!0x0,'withText':!0x0}),_0x1c57f5;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x224a87=_0x5e8f;(function(_0x17ecd5,_0x4c6c01){const _0x29f246=_0x5e8f,_0x2fde22=_0x17ecd5();while(!![]){try{const _0x455ffb=-parseInt(_0x29f246(0x21c))/0x1+parseInt(_0x29f246(0x229))/0x2+parseInt(_0x29f246(0x21e))/0x3+parseInt(_0x29f246(0x201))/0x4+parseInt(_0x29f246(0x220))/0x5+parseInt(_0x29f246(0x211))/0x6*(-parseInt(_0x29f246(0x21a))/0x7)+parseInt(_0x29f246(0x227))/0x8*(-parseInt(_0x29f246(0x207))/0x9);if(_0x455ffb===_0x4c6c01)break;else _0x2fde22['push'](_0x2fde22['shift']());}catch(_0x3ec9e1){_0x2fde22['push'](_0x2fde22['shift']());}}}(_0x26e7,0x472c5));import{FocusTracker as _0x348dfd,KeystrokeHandler as _0x37ed65}from'ckeditor5/src/utils.js';import{View as _0x50610e,FocusCycler as _0x1097af,createLabeledTextarea as _0x5cea3d}from'ckeditor5/src/ui.js';function _0x5e8f(_0x59fac4,_0x5916ca){const _0x26e7f6=_0x26e7();return _0x5e8f=function(_0x5e8f70,_0x251c82){_0x5e8f70=_0x5e8f70-0x1dc;let _0x116792=_0x26e7f6[_0x5e8f70];return _0x116792;},_0x5e8f(_0x59fac4,_0x5916ca);}function _0x26e7(){const _0x2a7269=['focusFirst','trim','chain','fieldView','mainAction','submitPrompt','ck-ai-form','historyGroupView','focusTracker','createCollection','insertButton','bind','finishProcessing','locale','_createPromptView','isError','focusLast','promptView','insertContentBelow','execute','tryAgainButton','stopButton','tryAgainEvent','value','ck-hidden','high','_createToolbar','clearHistory','toolbar','focusCycler','text','_focusables','submit','tab','div','items','render','contentArea','REPLACE','Empty\x20history','replaceContent','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','2108356JXpOFh','isVisible','replaceButton','_createHistoryView','bindTemplate','fire','99uvapGl','add','prompt','bindTo','label','copyButtonView','startProcessing','setTemplate','search','errorView','1579518ViUOmQ','reset','_promptHistory','queryView','set','keystrokes','ck-ai-form-content','isEnabled','isProcessing','14qFoCMP','stopProcessing','244018qdXHSC','AI_ERROR_FAILED','725952SqCfYf','Ask\x20AI\x20to\x20edit\x20or\x20generate','2884375pcGaPG','listenTo','handleError','delegate','Ask\x20AI\x20to\x20improve\x20generated\x20text','shift\x20+\x20tab','focus','360304eDdFKO','clear','423038zJznTC','element'];_0x26e7=function(){return _0x2a7269;};return _0x26e7();}import{AIFormToolbarView as _0x45bb95,AIFormToolbarViewMainActionLabel as _0x59631d}from'./aiformtoolbarview.js';import{AIFormContentArea as _0x581669}from'./aiformcontentarea.js';import{AIFormErrorView as _0x3aec5f}from'./aiformerrorview.js';import{AIFormPromptView as _0x1b9e45}from'./aiformpromptview.js';import{AIHistoryListView as _0x2b9cd0}from'./aihistorylistview.js';import{AIHistoryListItemView as _0x317731}from'./aihistorylistitemview.js';import{PromptHistory as _0x3b371c}from'./prompthistory.js';import{getTranslation as _0x5e3506}from'../../utils/common-translations.js';import{escape as _0x3666f4}from'es-toolkit/compat';export class AIFormView extends _0x50610e{[_0x224a87(0x1df)];[_0x224a87(0x216)];[_0x224a87(0x1fc)];[_0x224a87(0x1f3)];[_0x224a87(0x1e8)];[_0x224a87(0x210)];[_0x224a87(0x1f6)];[_0x224a87(0x1f4)];[_0x224a87(0x213)];constructor(_0x38a566,_0x39e0c4,_0x3ce6e7=''){const _0xe1a6f9=_0x224a87;super(_0x38a566),this[_0xe1a6f9(0x215)](_0xe1a6f9(0x218),!0x0),this[_0xe1a6f9(0x215)](_0xe1a6f9(0x219),!0x1),this[_0xe1a6f9(0x215)](_0xe1a6f9(0x209),''),this[_0xe1a6f9(0x215)](_0xe1a6f9(0x1ee),''),this[_0xe1a6f9(0x215)](_0xe1a6f9(0x1e6),!0x1),this[_0xe1a6f9(0x215)](_0xe1a6f9(0x22f),_0x59631d[_0xe1a6f9(0x1fd)]),this[_0xe1a6f9(0x213)]=new _0x3b371c(),this[_0xe1a6f9(0x210)]=new _0x3aec5f(_0x38a566),this[_0xe1a6f9(0x1fc)]=new _0x581669(_0x38a566,_0x3ce6e7),this[_0xe1a6f9(0x1fc)][_0xe1a6f9(0x1e2)](_0xe1a6f9(0x219))['to'](this),this[_0xe1a6f9(0x1fc)][_0xe1a6f9(0x1e2)](_0xe1a6f9(0x1ee))['to'](this),this[_0xe1a6f9(0x1f3)]=this[_0xe1a6f9(0x1f1)](),this[_0xe1a6f9(0x1f3)][_0xe1a6f9(0x1e2)](_0xe1a6f9(0x22f))['to'](this),this[_0xe1a6f9(0x1e8)]=this[_0xe1a6f9(0x1e5)](),this[_0xe1a6f9(0x1df)]=new _0x348dfd(),this[_0xe1a6f9(0x216)]=new _0x37ed65(),this[_0xe1a6f9(0x1f6)]=this[_0xe1a6f9(0x1e0)]([this[_0xe1a6f9(0x1fc)],this[_0xe1a6f9(0x1fc)][_0xe1a6f9(0x20c)],this[_0xe1a6f9(0x1f3)],this[_0xe1a6f9(0x1e8)]]),this[_0xe1a6f9(0x1f4)]=new _0x1097af({'focusables':this[_0xe1a6f9(0x1f6)],'focusTracker':this[_0xe1a6f9(0x1df)],'keystrokeHandler':this[_0xe1a6f9(0x216)],'actions':{'focusPrevious':_0xe1a6f9(0x225),'focusNext':_0xe1a6f9(0x1f8)}}),this[_0xe1a6f9(0x1f4)][_0xe1a6f9(0x22d)](this[_0xe1a6f9(0x1e8)][_0xe1a6f9(0x1f4)]),this[_0xe1a6f9(0x1e8)][_0xe1a6f9(0x214)][_0xe1a6f9(0x22e)][_0xe1a6f9(0x1e2)](_0xe1a6f9(0x1ee))['to'](this,_0xe1a6f9(0x209));const _0x2ba46d=this[_0xe1a6f9(0x205)];this[_0xe1a6f9(0x20e)]({'tag':_0xe1a6f9(0x1f9),'attributes':{'class':['ck',_0xe1a6f9(0x1dd),_0x39e0c4],'tabindex':'-1'},'children':[{'tag':_0xe1a6f9(0x1f9),'attributes':{'class':['ck',_0xe1a6f9(0x217)]},'children':[{'tag':_0xe1a6f9(0x1f9),'attributes':{'class':[_0x2ba46d['if'](_0xe1a6f9(0x1e6),_0xe1a6f9(0x1ef),_0x4ecf31=>!_0x4ecf31)]},'children':[this[_0xe1a6f9(0x210)]]},this[_0xe1a6f9(0x1fc)],this[_0xe1a6f9(0x1f3)],this[_0xe1a6f9(0x1e8)]]}]});}[_0x224a87(0x1fb)](){const _0x4e6845=_0x224a87;super[_0x4e6845(0x1fb)](),this[_0x4e6845(0x1df)][_0x4e6845(0x208)](this[_0x4e6845(0x1fc)][_0x4e6845(0x22a)]),this[_0x4e6845(0x1df)][_0x4e6845(0x208)](this[_0x4e6845(0x1fc)][_0x4e6845(0x20c)][_0x4e6845(0x22a)]),this[_0x4e6845(0x1df)][_0x4e6845(0x208)](this[_0x4e6845(0x1f3)][_0x4e6845(0x22a)]),this[_0x4e6845(0x1df)][_0x4e6845(0x208)](this[_0x4e6845(0x1e8)][_0x4e6845(0x22a)]),this[_0x4e6845(0x216)][_0x4e6845(0x221)](this[_0x4e6845(0x22a)]);}[_0x224a87(0x226)](_0x4b51b0=0x1){const _0xf0ab43=_0x224a87;-0x1===_0x4b51b0?this[_0xf0ab43(0x1f4)][_0xf0ab43(0x1e7)]():this[_0xf0ab43(0x1f4)][_0xf0ab43(0x22b)]();}[_0x224a87(0x212)](){const _0x251226=_0x224a87;this[_0x251226(0x209)]='',this[_0x251226(0x1ee)]='',this[_0x251226(0x1e6)]=!0x1,this[_0x251226(0x1e8)][_0x251226(0x212)](),this[_0x251226(0x1fc)][_0x251226(0x202)]=!0x1,this[_0x251226(0x1f3)][_0x251226(0x202)]=!0x1;}[_0x224a87(0x1e5)](){const _0x41bf43=_0x224a87,_0xbba6f3=this[_0x41bf43(0x1e4)],_0x348391=new _0x1b9e45(_0xbba6f3,{'queryView':{'label':_0x5e3506(_0xbba6f3,_0x41bf43(0x21f)),'creator':_0x5cea3d,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x5e3506(_0xbba6f3,_0x41bf43(0x1fe)),'secondary':_0x5e3506(_0xbba6f3,_0x41bf43(0x200))}}},'filteredView':this[_0x41bf43(0x204)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x348391[_0x41bf43(0x1e2)](_0x41bf43(0x218))['to'](this,_0x41bf43(0x218),this,_0x41bf43(0x219),(_0x501cea,_0x272e49)=>_0x501cea&&!_0x272e49),this[_0x41bf43(0x221)](_0x348391,_0x41bf43(0x1f7),(_0x16ca10,_0x3bfe98)=>{const _0x5f0304=_0x41bf43;this[_0x5f0304(0x209)]=_0x3bfe98;const _0x1755cb=_0x3666f4(_0x3bfe98);this[_0x5f0304(0x206)](_0x5f0304(0x1dc),_0x1755cb),_0x3bfe98[_0x5f0304(0x22c)]()&&this[_0x5f0304(0x213)][_0x5f0304(0x208)]({'prompt':_0x1755cb},0x0);},{'priority':_0x41bf43(0x1f0)}),_0x348391;}[_0x224a87(0x204)](){const _0x9cc33e=_0x224a87,_0x5f4a71=new _0x2b9cd0(this[_0x9cc33e(0x1e4)]);return _0x5f4a71[_0x9cc33e(0x1de)][_0x9cc33e(0x1fa)][_0x9cc33e(0x20a)](this[_0x9cc33e(0x213)])['as'](_0x317731),_0x5f4a71['on'](_0x9cc33e(0x1f2),()=>{const _0x1528cb=_0x9cc33e;this[_0x1528cb(0x213)][_0x1528cb(0x228)](),this[_0x1528cb(0x1e8)][_0x1528cb(0x20f)](''),this[_0x1528cb(0x1e8)][_0x1528cb(0x226)]();}),_0x5f4a71;}[_0x224a87(0x1f1)](){const _0x1e0a04=_0x224a87,_0x4e9a8a=new _0x45bb95(this[_0x1e0a04(0x1e4)]);return _0x4e9a8a[_0x1e0a04(0x203)][_0x1e0a04(0x1e2)](_0x1e0a04(0x218))['to'](this,_0x1e0a04(0x218),this,_0x1e0a04(0x219),this,_0x1e0a04(0x1ee),(_0x2343b3,_0x10fecf,_0x150efd)=>_0x2343b3&&!_0x10fecf&&!!_0x150efd),_0x4e9a8a[_0x1e0a04(0x203)][_0x1e0a04(0x223)](_0x1e0a04(0x1ea))['to'](this,_0x1e0a04(0x1ff)),_0x4e9a8a[_0x1e0a04(0x1e1)][_0x1e0a04(0x1e2)](_0x1e0a04(0x218))['to'](this,_0x1e0a04(0x218),this,_0x1e0a04(0x219),this,_0x1e0a04(0x1ee),(_0x3fd424,_0x3dacf4,_0x1982f8)=>_0x3fd424&&!_0x3dacf4&&!!_0x1982f8),_0x4e9a8a[_0x1e0a04(0x1e1)][_0x1e0a04(0x223)](_0x1e0a04(0x1ea))['to'](this,_0x1e0a04(0x1e9)),_0x4e9a8a[_0x1e0a04(0x1eb)][_0x1e0a04(0x1e2)](_0x1e0a04(0x218))['to'](this,_0x1e0a04(0x218),this,_0x1e0a04(0x219),(_0x1ee10b,_0x3f7e34)=>_0x1ee10b&&!_0x3f7e34),_0x4e9a8a[_0x1e0a04(0x1eb)][_0x1e0a04(0x223)](_0x1e0a04(0x1ea))['to'](this,_0x1e0a04(0x1ed)),_0x4e9a8a[_0x1e0a04(0x1ec)][_0x1e0a04(0x1e2)](_0x1e0a04(0x218))['to'](this,_0x1e0a04(0x219)),_0x4e9a8a[_0x1e0a04(0x1ec)][_0x1e0a04(0x223)](_0x1e0a04(0x1ea))['to'](this,_0x1e0a04(0x21b)),_0x4e9a8a;}[_0x224a87(0x20d)](){const _0x430492=_0x224a87;this[_0x430492(0x1ee)]='',this[_0x430492(0x1e6)]=!0x1,this[_0x430492(0x219)]=!0x0,this[_0x430492(0x1fc)][_0x430492(0x202)]=!0x0,this[_0x430492(0x1f3)][_0x430492(0x202)]=!0x0,this[_0x430492(0x1fc)][_0x430492(0x226)]();}[_0x224a87(0x1e3)](){const _0x2f11d3=_0x224a87,_0x238fa5=this[_0x2f11d3(0x1e4)];this[_0x2f11d3(0x219)]=!0x1,this[_0x2f11d3(0x209)]='',this[_0x2f11d3(0x1e8)][_0x2f11d3(0x212)](),this[_0x2f11d3(0x1ee)]&&(this[_0x2f11d3(0x1e8)][_0x2f11d3(0x214)][_0x2f11d3(0x20b)]=_0x5e3506(_0x238fa5,_0x2f11d3(0x224)));}[_0x224a87(0x222)](_0x3a52eb){const _0x4b6ab1=_0x224a87,_0x4efb54=this[_0x4b6ab1(0x1e4)];this[_0x4b6ab1(0x1e3)](),this[_0x4b6ab1(0x1e6)]=!0x0,this[_0x4b6ab1(0x210)][_0x4b6ab1(0x1f5)]=_0x3a52eb||_0x5e3506(_0x4efb54,_0x4b6ab1(0x21d)),this[_0x4b6ab1(0x1ee)]||(this[_0x4b6ab1(0x1fc)][_0x4b6ab1(0x202)]=!0x1);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x5c7c9c,_0x52d62b){const _0xaef8e6=_0x42f0,_0x3f5bc0=_0x5c7c9c();while(!![]){try{const _0x1ab529=-parseInt(_0xaef8e6(0x163))/0x1*(-parseInt(_0xaef8e6(0x158))/0x2)+-parseInt(_0xaef8e6(0x157))/0x3*(-parseInt(_0xaef8e6(0x162))/0x4)+parseInt(_0xaef8e6(0x15a))/0x5+-parseInt(_0xaef8e6(0x156))/0x6+-parseInt(_0xaef8e6(0x15b))/0x7*(parseInt(_0xaef8e6(0x155))/0x8)+-parseInt(_0xaef8e6(0x160))/0x9+-parseInt(_0xaef8e6(0x15e))/0xa;if(_0x1ab529===_0x52d62b)break;else _0x3f5bc0['push'](_0x3f5bc0['shift']());}catch(_0x4b2d9e){_0x3f5bc0['push'](_0x3f5bc0['shift']());}}}(_0x52d8,0x8736e));import{ListItemView as _0x3fd858,ButtonView as _0x5860d7,ButtonLabelView as _0x52f662}from'ckeditor5/src/ui.js';import{unescape as _0x422d15}from'es-toolkit/compat';function _0x42f0(_0x25a783,_0x2aa982){const _0x52d816=_0x52d8();return _0x42f0=function(_0x42f07c,_0x5ee2c4){_0x42f07c=_0x42f07c-0x153;let _0x15f71=_0x52d816[_0x42f07c];return _0x15f71;},_0x42f0(_0x25a783,_0x2aa982);}function _0x52d8(){const _0x146e00=['set','fire','8NRqQWK','1715118EZmmaR','16299hfQckR','52jykVcP','prompt','4069820OxXJiR','5815593yoBcQB','execute','locale','3009790HWxMvG','add','2603754WWKBUu','children','356acJGko','37049gwmFkz'];_0x52d8=function(){return _0x146e00;};return _0x52d8();}export class AIHistoryListItemView extends _0x3fd858{constructor(_0x2a4266){const _0x3cf9fc=_0x42f0;super();const _0x53588d=new _0x52f662(),_0x3a65d9=new _0x5860d7(this[_0x3cf9fc(0x15d)],_0x53588d);this[_0x3cf9fc(0x161)][_0x3cf9fc(0x15f)](_0x3a65d9),_0x3a65d9[_0x3cf9fc(0x153)]({'label':_0x2a4266[_0x3cf9fc(0x159)],'withText':!0x0}),_0x3a65d9['on'](_0x3cf9fc(0x15c),()=>{const _0x3e2d5e=_0x3cf9fc;this[_0x3e2d5e(0x154)](_0x3e2d5e(0x15c),{'value':_0x422d15(_0x2a4266[_0x3e2d5e(0x159)])});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x18a2b4=_0x3f91;(function(_0x25b672,_0x1b49e3){const _0x372804=_0x3f91,_0x675528=_0x25b672();while(!![]){try{const _0x248299=parseInt(_0x372804(0x7d))/0x1+parseInt(_0x372804(0x84))/0x2+-parseInt(_0x372804(0x7e))/0x3+parseInt(_0x372804(0x88))/0x4*(parseInt(_0x372804(0x93))/0x5)+-parseInt(_0x372804(0x82))/0x6+-parseInt(_0x372804(0x7c))/0x7*(-parseInt(_0x372804(0x86))/0x8)+parseInt(_0x372804(0x8a))/0x9*(-parseInt(_0x372804(0x89))/0xa);if(_0x248299===_0x1b49e3)break;else _0x675528['push'](_0x675528['shift']());}catch(_0x43a988){_0x675528['push'](_0x675528['shift']());}}}(_0x43a1,0x4755b));import{ListView as _0x4d0ab2,ListItemGroupView as _0x30555d,ButtonView as _0xb18ab2}from'ckeditor5/src/ui.js';function _0x3f91(_0x3575f3,_0x444010){const _0x43a160=_0x43a1();return _0x3f91=function(_0x3f918b,_0x1af080){_0x3f918b=_0x3f918b-0x79;let _0x3eb198=_0x43a160[_0x3f918b];return _0x3eb198;},_0x3f91(_0x3575f3,_0x444010);}function _0x43a1(){const _0xf35556=['children','items','clearHistory','locale','182565JuFFpo','clearHistoryButton','historyGroupView','label','203OGdgHS','534922IZtvsi','1279497uvdymd','fire','delegate','length','3134262OErHKX','Prompt\x20history','837258IqrzGP','filter','122008XiqwrV','add','64LfuOkr','150SAvrPv','443385MrgxSH','Clear','execute','_createClearHistoryButton','set'];_0x43a1=function(){return _0xf35556;};return _0x43a1();}import{getTranslation as _0x5c9a56}from'../../utils/common-translations.js';export class AIHistoryListView extends _0x4d0ab2{[_0x18a2b4(0x7a)];[_0x18a2b4(0x79)];constructor(_0x533557){const _0x593674=_0x18a2b4;super(_0x533557),this[_0x593674(0x79)]=this[_0x593674(0x8d)](),this[_0x593674(0x7a)]=new _0x30555d(),this[_0x593674(0x7a)][_0x593674(0x8f)][_0x593674(0x87)](this[_0x593674(0x79)],0x1),this[_0x593674(0x7a)][_0x593674(0x7b)]=_0x5c9a56(_0x533557,_0x593674(0x83)),this[_0x593674(0x7a)][_0x593674(0x90)][_0x593674(0x80)](_0x593674(0x8c))['to'](this),this[_0x593674(0x90)][_0x593674(0x87)](this[_0x593674(0x7a)]);}[_0x18a2b4(0x85)](){const _0x4a7b8c=_0x18a2b4;let _0x17e1ab=0x0;for(const _0x41bf5 of this[_0x4a7b8c(0x90)])_0x17e1ab+=_0x41bf5[_0x4a7b8c(0x90)][_0x4a7b8c(0x81)];return{'resultsCount':_0x17e1ab,'totalItemsCount':_0x17e1ab};}[_0x18a2b4(0x8d)](){const _0x166468=_0x18a2b4,_0x13ce6a=this[_0x166468(0x92)],_0x23209b=new _0xb18ab2(this[_0x166468(0x92)]);return _0x23209b[_0x166468(0x8e)]({'label':'('+_0x5c9a56(_0x13ce6a,_0x166468(0x8b))+')','withText':!0x0}),_0x23209b['on'](_0x166468(0x8c),()=>this[_0x166468(0x7f)](_0x166468(0x91))),_0x23209b;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x192324=_0x2784;function _0x5613(){const _0x3f3cf4=['length','prompt','8peNjlC','setItem','remove','93558QkHZvm','6486065lGAcmL','trim','_loadFromSessionStorage','1744039JkFygq','6FEnenq','stringify','6zuyQPv','12URWfaZ','13832901yYsJCC','addMany','map','558061hJVwLy','getItem','188UWNCoo','toLowerCase','14086hWjOCg','add','1579770uXeMlr','_saveToSessionStorage','CKEditor/AIFormView/PromptHistory','last','parse'];_0x5613=function(){return _0x3f3cf4;};return _0x5613();}(function(_0x56a6a7,_0x1835ea){const _0x87d115=_0x2784,_0x4ed2e3=_0x56a6a7();while(!![]){try{const _0x35456b=parseInt(_0x87d115(0x1fb))/0x1*(-parseInt(_0x87d115(0x204))/0x2)+-parseInt(_0x87d115(0x1f4))/0x3*(-parseInt(_0x87d115(0x202))/0x4)+parseInt(_0x87d115(0x1f5))/0x5+-parseInt(_0x87d115(0x1f9))/0x6*(-parseInt(_0x87d115(0x200))/0x7)+parseInt(_0x87d115(0x1f1))/0x8*(-parseInt(_0x87d115(0x1fd))/0x9)+-parseInt(_0x87d115(0x206))/0xa+-parseInt(_0x87d115(0x1f8))/0xb*(parseInt(_0x87d115(0x1fc))/0xc);if(_0x35456b===_0x1835ea)break;else _0x4ed2e3['push'](_0x4ed2e3['shift']());}catch(_0x451221){_0x4ed2e3['push'](_0x4ed2e3['shift']());}}}(_0x5613,0xe72d9));import{Collection as _0xcbac14}from'ckeditor5/src/utils.js';const ts=_0x192324(0x208);export class PromptHistory extends _0xcbac14{constructor(){const _0x4405fc=_0x192324;super(),this[_0x4405fc(0x1f7)](),this['on'](_0x4405fc(0x205),(_0x36ac14,_0x3ea6bf)=>{const _0x1f43d8=_0x4405fc,_0xefdac2=os(_0x3ea6bf[_0x1f43d8(0x1f0)]);for(const _0x5a6a6b of this)if(_0x5a6a6b!=_0x3ea6bf&&os(_0x5a6a6b[_0x1f43d8(0x1f0)])===_0xefdac2){this[_0x1f43d8(0x1f3)](_0x5a6a6b);break;}this[_0x1f43d8(0x1ef)]>0x14&&this[_0x1f43d8(0x1f3)](this[_0x1f43d8(0x1ed)]),this[_0x1f43d8(0x207)]();}),this['on'](_0x4405fc(0x1f3),()=>{const _0x23dba0=_0x4405fc;this[_0x23dba0(0x207)]();});}[_0x192324(0x1f7)](){const _0x29bc0b=_0x192324,_0x1ea125=sessionStorage[_0x29bc0b(0x201)](ts)||'[]';this[_0x29bc0b(0x1fe)](JSON[_0x29bc0b(0x1ee)](_0x1ea125));}[_0x192324(0x207)](){const _0x1b082c=_0x192324;sessionStorage[_0x1b082c(0x1f2)](ts,JSON[_0x1b082c(0x1fa)](this[_0x1b082c(0x1ff)](_0x46e90a=>_0x46e90a)));}}function _0x2784(_0x4ba9da,_0x24af10){const _0x5613a9=_0x5613();return _0x2784=function(_0x278462,_0x275247){_0x278462=_0x278462-0x1ed;let _0x2d5190=_0x5613a9[_0x278462];return _0x2d5190;},_0x2784(_0x4ba9da,_0x24af10);}function os(_0x6c45b7){const _0xc7cf0d=_0x192324;return _0x6c45b7[_0xc7cf0d(0x203)]()[_0xc7cf0d(0x1f6)]();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x26e2dd=_0xb33d;(function(_0x106ead,_0xeccee2){const _0x543e3c=_0xb33d,_0x167caa=_0x106ead();while(!![]){try{const _0x22c366=parseInt(_0x543e3c(0xda))/0x1*(-parseInt(_0x543e3c(0xc3))/0x2)+parseInt(_0x543e3c(0xb7))/0x3+-parseInt(_0x543e3c(0xb4))/0x4+parseInt(_0x543e3c(0xce))/0x5+-parseInt(_0x543e3c(0xba))/0x6*(parseInt(_0x543e3c(0xd4))/0x7)+parseInt(_0x543e3c(0xd6))/0x8+-parseInt(_0x543e3c(0xcc))/0x9*(-parseInt(_0x543e3c(0xc4))/0xa);if(_0x22c366===_0xeccee2)break;else _0x167caa['push'](_0x167caa['shift']());}catch(_0x12f68b){_0x167caa['push'](_0x167caa['shift']());}}}(_0xcc9a,0x75653));import{Command as _0x31faa5}from'ckeditor5/src/core.js';function _0xb33d(_0x39526b,_0x341cfb){const _0xcc9a2f=_0xcc9a();return _0xb33d=function(_0xb33d5,_0x25bcd8){_0xb33d5=_0xb33d5-0xb2;let _0x11b91d=_0xcc9a2f[_0xb33d5];return _0x11b91d;},_0xb33d(_0x39526b,_0x341cfb);}import{AIAssistantUI as _0x3a9880}from'../aiassistantui.js';export class ShowAIAssistantCommand extends _0x31faa5{[_0x26e2dd(0xca)];constructor(_0x51773a,_0x32c2b7){const _0x470a0a=_0x26e2dd;super(_0x51773a),this[_0x470a0a(0xca)]=_0x32c2b7,this[_0x470a0a(0xcf)](_0x470a0a(0xc9),[]),this['on'](_0x470a0a(0xc6),(_0x2d79dd,_0x50abaf,_0x17b472)=>{const _0x1198a3=_0x470a0a;this[_0x1198a3(0xd7)]&&(this[_0x1198a3(0xc9)]=F(this[_0x1198a3(0xca)],_0x17b472));}),this[_0x470a0a(0xcf)](_0x470a0a(0xd1),!0x1),this['on'](_0x470a0a(0xcb),(_0x4fe3fa,_0x433c08,_0x368fa6)=>{const _0x379698=_0x470a0a;this[_0x379698(0xc9)]=_0x368fa6?F(this[_0x379698(0xca)],this[_0x379698(0xd1)]):[];});}[_0x26e2dd(0xd8)](){const _0x49eacc=_0x26e2dd,_0x125a6c=this[_0x49eacc(0xbf)][_0x49eacc(0xc2)];this[_0x49eacc(0xd1)]=function(_0x3aa765){const _0x75fa47=_0x49eacc,_0x28bae7=_0x3aa765[_0x75fa47(0xc1)][_0x75fa47(0xdb)];return _0x28bae7[_0x75fa47(0xd9)]?0x0!==[..._0x28bae7[_0x75fa47(0xbe)]()][_0x75fa47(0xd3)]&&![..._0x28bae7[_0x75fa47(0xbe)]()][0x0][_0x75fa47(0xd0)]:!!_0x3aa765[_0x75fa47(0xb5)](_0x28bae7[_0x75fa47(0xbc)]());}(_0x125a6c);const _0x5d66be=_0x125a6c[_0x49eacc(0xc1)][_0x49eacc(0xdb)],_0x4dee69=this[_0x49eacc(0xbf)][_0x49eacc(0xb8)][_0x49eacc(0xd2)](_0x49eacc(0xdd));for(const _0x47c642 of _0x5d66be[_0x49eacc(0xb2)]())for(const _0x1539a7 of _0x47c642[_0x49eacc(0xc5)]())if(_0x1539a7['is'](_0x49eacc(0xbd))&&_0x4dee69[_0x49eacc(0xc7)](_0x1539a7[_0x49eacc(0xb9)]))return void(this[_0x49eacc(0xd7)]=!0x1);this[_0x49eacc(0xd7)]=!0x0;}[_0x26e2dd(0xbb)](_0x7ad809='',_0x463214='',_0x506f0c=_0x26e2dd(0xdc)){const _0x5ba9e1=_0x26e2dd;this[_0x5ba9e1(0xbf)][_0x5ba9e1(0xb3)][_0x5ba9e1(0xd2)](_0x3a9880)[_0x5ba9e1(0xb6)](_0x7ad809,_0x463214,_0x506f0c);}}function _0xcc9a(){const _0x59cc04=['36ZivZHa','from','3716685RGxSvP','set','isEmpty','_hasContext','get','length','14NxgmJu','values','4876872bMBwOA','isEnabled','refresh','isCollapsed','1DlkpzK','selection','custom','ai.aiAssistant.disabledElements','getRanges','plugins','2560724fyylsZ','hasContent','showUI','1059471wOJSCg','config','name','699042bltCTR','execute','getFirstRange','element','getSelectedBlocks','editor','add','document','model','1174690EPBhyW','588220udCANp','getItems','change:_hasContext','includes','requiresContent','enabledCommandsIds','_commandDefinitions','change:isEnabled'];_0xcc9a=function(){return _0x59cc04;};return _0xcc9a();}function F(_0x209da9,_0x53e293){const _0x2a8f75=_0x26e2dd,_0x127beb=new Set();for(const _0x22c889 of _0x209da9[_0x2a8f75(0xd5)]())(_0x53e293||!0x1===_0x22c889[_0x2a8f75(0xc8)])&&_0x127beb[_0x2a8f75(0xc0)](_0x22c889['id']);return Array[_0x2a8f75(0xcd)](_0x127beb);}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(
|
|
23
|
+
export function getTranslation(_0xab07bf,_0x111bc9,_0xae353a){const t=_0xab07bf['t'];switch(_0x111bc9){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',_0xae353a);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0xae353a);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'},_0xae353a);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 _0x111bc9;}}
|
|
@@ -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(_0x11e472,_0x321b5a){const _0x54542e=(0x0,_0x321b5a['t'])('Other');return _0x11e472['length']?'groupId'in _0x11e472[0x0]?_0x11e472:[{'groupId':'_ungrouppedCommands','groupLabel':_0x54542e,'order':0x1/0x0,'commands':_0x11e472}]:[{'groupId':'_ungrouppedCommands','groupLabel':_0x54542e,'order':0x1/0x0,'commands':[]}];}
|