@ckeditor/ckeditor5-ai 46.0.3 → 46.1.0-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
|
-
const
|
|
23
|
+
const _0x2482c=_0x3888;function _0x3888(_0x8e0d93,_0x5e83a8){const _0x57f37a=_0x57f3();return _0x3888=function(_0x388838,_0xd633d1){_0x388838=_0x388838-0x97;let _0x2a29c8=_0x57f37a[_0x388838];return _0x2a29c8;},_0x3888(_0x8e0d93,_0x5e83a8);}function _0x57f3(){const _0xc4c27b=['isOn','children','submit','609420yayQyO','ck-ai-form__submit','focusableChildren','rtl','render','fire','minRows','window','_createSubmitButton','focusCycler','element','isEmpty','67189WnVyWL','submitButtonView','execute','showHistoryButtonView','fieldWrapperChildren','locale','2916738myyimV','left','keystrokes','6ljHJvw','enter','ck-ai-form__toggle-history','isEnabled','uiLanguageDirection','fieldView','queryView','requestAnimationFrame','27060uBpDce','value','add','filteredView','focusLast','style','History','focus','target','1619288MqBPJj','isVisible','bind','resultsView','13413ZWAvFb','maxRows','set','1136420QrhAqO','excludeScrollbarsAndBorders','Submit','right','300ETngRb','focusFirst','update','_createShowHistoryButton','width'];_0x57f3=function(){return _0xc4c27b;};return _0x57f3();}(function(_0x125cec,_0x1ebf3f){const _0x105d16=_0x3888,_0x2c3b4c=_0x125cec();while(!![]){try{const _0xd13573=-parseInt(_0x105d16(0x99))/0x1*(-parseInt(_0x105d16(0xa2))/0x2)+-parseInt(_0x105d16(0xb7))/0x3+parseInt(_0x105d16(0xba))/0x4+parseInt(_0x105d16(0xbe))/0x5*(-parseInt(_0x105d16(0xaa))/0x6)+parseInt(_0x105d16(0xc6))/0x7+parseInt(_0x105d16(0xb3))/0x8+-parseInt(_0x105d16(0x9f))/0x9;if(_0xd13573===_0x1ebf3f)break;else _0x2c3b4c['push'](_0x2c3b4c['shift']());}catch(_0x26c812){_0x2c3b4c['push'](_0x2c3b4c['shift']());}}}(_0x57f3,0x2af76));import{Rect as _0x5e8ea1,global as _0x30d82b,isVisible as _0x4b6869}from'ckeditor5/src/utils.js';import{IconHistory as _0x31e187,IconSubmit as _0x28172b}from'ckeditor5/src/icons.js';import{AutocompleteView as _0x3ae2af,ButtonView as _0xdfa0a8}from'ckeditor5/src/ui.js';import{getTranslation as _0x51ca1c}from'../../utils/common-translations.js';export class AIFormPromptView extends _0x3ae2af{[_0x2482c(0x9a)];[_0x2482c(0x9c)];constructor(_0x1ccdd7,_0x16dabb){const _0x3b2e08=_0x2482c;super(_0x1ccdd7,_0x16dabb),this[_0x3b2e08(0xa8)][_0x3b2e08(0xa7)][_0x3b2e08(0xcc)]=0x1,this[_0x3b2e08(0xa8)][_0x3b2e08(0xa7)][_0x3b2e08(0xb8)]=0x3,this[_0x3b2e08(0x9a)]=this[_0x3b2e08(0xce)](),this[_0x3b2e08(0x9c)]=this[_0x3b2e08(0xc1)](),this[_0x3b2e08(0xc8)][_0x3b2e08(0xac)](this[_0x3b2e08(0x9c)],0x1),this[_0x3b2e08(0xc8)][_0x3b2e08(0xac)](this[_0x3b2e08(0x9a)]);}[_0x2482c(0xca)](){const _0x52d5b6=_0x2482c;super[_0x52d5b6(0xca)](),this[_0x52d5b6(0xa8)][_0x52d5b6(0x9d)][_0x52d5b6(0xac)](this[_0x52d5b6(0x9c)]),this[_0x52d5b6(0xc4)][_0x52d5b6(0xac)](this[_0x52d5b6(0x9a)]),this[_0x52d5b6(0xa1)][_0x52d5b6(0xb9)](_0x52d5b6(0xa3),(_0x33ee83,_0x1b1f9f)=>{const _0x1b7fdf=_0x52d5b6;_0x33ee83[_0x1b7fdf(0xb2)]==this[_0x1b7fdf(0xa8)][_0x1b7fdf(0xa7)][_0x1b7fdf(0x97)]&&(this[_0x1b7fdf(0xc5)](),_0x1b1f9f());});}[_0x2482c(0xce)](){const _0x17efbb=_0x2482c,_0x27b3cb=new _0xdfa0a8(this[_0x17efbb(0x9e)]),_0x5af9bc=this[_0x17efbb(0x9e)];return _0x27b3cb[_0x17efbb(0xb9)]({'icon':_0x28172b,'label':_0x51ca1c(_0x5af9bc,_0x17efbb(0xbc)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x17efbb(0xc7)}),_0x27b3cb['on'](_0x17efbb(0x9b),()=>{const _0x1e5809=_0x17efbb;this[_0x1e5809(0xc5)]();}),_0x27b3cb[_0x17efbb(0xb5)](_0x17efbb(0xa5))['to'](this[_0x17efbb(0xa8)][_0x17efbb(0xa7)],_0x17efbb(0x98),this,_0x17efbb(0xa5),(_0x168e9a,_0x1029a8)=>!_0x168e9a&&_0x1029a8),_0x27b3cb;}[_0x2482c(0xc1)](){const _0x26b6da=_0x2482c,_0x53d280=new _0xdfa0a8(this[_0x26b6da(0x9e)]),_0x1dc32c=this[_0x26b6da(0xb6)],_0xcbdbff=this[_0x26b6da(0x9e)];_0x53d280[_0x26b6da(0xb9)]({'label':_0x51ca1c(_0xcbdbff,_0x26b6da(0xb0)),'withText':!0x1,'icon':_0x31e187,'tooltip':!0x0,'tooltipPosition':'sw','class':_0x26b6da(0xa4)}),_0x53d280[_0x26b6da(0xb5)](_0x26b6da(0xc3))['to'](_0x1dc32c,_0x26b6da(0xb4)),_0x53d280[_0x26b6da(0xb5)](_0x26b6da(0xa5))['to'](this,_0x26b6da(0xa5)),_0x53d280['on'](_0x26b6da(0x9b),()=>{const _0x1d27c7=_0x26b6da;_0x1dc32c[_0x1d27c7(0xb4)]=!_0x1dc32c[_0x1d27c7(0xb4)],_0x1dc32c[_0x1d27c7(0xb4)]?this[_0x1d27c7(0xad)][_0x1d27c7(0xb1)]():this[_0x1d27c7(0xb1)]();});const _0x5d15db=()=>{const _0x2a4896=_0x26b6da;_0x30d82b[_0x2a4896(0xcd)][_0x2a4896(0xa9)](()=>{const _0x1f1c78=_0x2a4896;if(_0x4b6869(this[_0x1f1c78(0x97)])){const _0x16eaaf=new _0x5e8ea1(this[_0x1f1c78(0xa8)][_0x1f1c78(0xa7)][_0x1f1c78(0x97)]),_0x7f8e86=_0x16eaaf[_0x1f1c78(0xc2)],_0x2e3f30=_0x1f1c78(0xc9)===_0xcbdbff[_0x1f1c78(0xa6)]?_0x1f1c78(0xa0):_0x1f1c78(0xbd);_0x16eaaf[_0x1f1c78(0xbb)](),_0x53d280[_0x1f1c78(0x97)][_0x1f1c78(0xaf)][_0x2e3f30]=_0x7f8e86-_0x16eaaf[_0x1f1c78(0xc2)]+0x1+'px';}});};return this[_0x26b6da(0xa8)][_0x26b6da(0xa7)]['on'](_0x26b6da(0xc0),_0x5d15db),this['on'](_0x26b6da(0xca),_0x5d15db),_0x53d280;}[_0x2482c(0xc5)](){const _0x565adf=_0x2482c,_0x4c7e05=this[_0x565adf(0xa8)][_0x565adf(0xa7)][_0x565adf(0x97)][_0x565adf(0xab)];this[_0x565adf(0xcb)](_0x565adf(0xc5),_0x4c7e05);}[_0x2482c(0xb1)](_0x5aefd1){const _0x203edd=_0x2482c;-0x1===_0x5aefd1?this[_0x203edd(0xcf)][_0x203edd(0xae)]():this[_0x203edd(0xcf)][_0x203edd(0xbf)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2263a3=_0x51d0;(function(_0x4de387,_0x2d4c06){const _0x57b5fc=_0x51d0,_0x238211=_0x4de387();while(!![]){try{const _0x2ab316=-parseInt(_0x57b5fc(0x75))/0x1+-parseInt(_0x57b5fc(0x73))/0x2*(parseInt(_0x57b5fc(0x83))/0x3)+-parseInt(_0x57b5fc(0x81))/0x4*(-parseInt(_0x57b5fc(0x87))/0x5)+parseInt(_0x57b5fc(0x74))/0x6+-parseInt(_0x57b5fc(0x92))/0x7+parseInt(_0x57b5fc(0x93))/0x8*(parseInt(_0x57b5fc(0x78))/0x9)+parseInt(_0x57b5fc(0x79))/0xa;if(_0x2ab316===_0x2d4c06)break;else _0x238211['push'](_0x238211['shift']());}catch(_0x102da9){_0x238211['push'](_0x238211['shift']());}}}(_0x148e,0x58b6f));import{ToolbarView as _0x278378,ButtonView as _0x3afc30}from'ckeditor5/src/ui.js';import{getTranslation as _0x27eb65}from'../../utils/common-translations.js';function _0x148e(){const _0x54cdd7=['_CONTENT','ck-hidden','extendTemplate','isVisible','set','ck-ai-form__toolbar','stopButton','_createButton','1859074PCupma','65768EQkARG','locale','AI_','mainAction','label','2hYwsQW','3432378QWLygC','102717VghwaA','addMany','replaceButton','234xFCSWq','542890ZmSJcw','toUpperCase','insert','Stop','items','tryAgainButton','bind','REPLACE','1457684AswvAj','replace','1418535WPjiYC','Try\x20again','ck-button-action','insertButton','5BElOha','Insert\x20below','bindTemplate'];_0x148e=function(){return _0x54cdd7;};return _0x148e();}function _0x51d0(_0xe132b6,_0x2fa2be){const _0x148e2d=_0x148e();return _0x51d0=function(_0x51d00b,_0x2ab6bc){_0x51d00b=_0x51d00b-0x71;let _0x516820=_0x148e2d[_0x51d00b];return _0x516820;},_0x51d0(_0xe132b6,_0x2fa2be);}export const AIFormToolbarViewMainActionLabel={'REPLACE':_0x2263a3(0x82),'INSERT':_0x2263a3(0x7b)};export class AIFormToolbarView extends _0x278378{constructor(_0x2fccaf){const _0x559451=_0x2263a3;super(_0x2fccaf),this[_0x559451(0x8e)](_0x559451(0x8d),!0x1),this[_0x559451(0x8e)](_0x559451(0x71),AIFormToolbarViewMainActionLabel[_0x559451(0x80)]),this[_0x559451(0x77)]=this[_0x559451(0x91)]('',_0x559451(0x85)),this[_0x559451(0x77)][_0x559451(0x7f)](_0x559451(0x72))['to'](this,_0x559451(0x71),_0x326a6b=>_0x27eb65(_0x2fccaf,_0x559451(0x95)+_0x326a6b[_0x559451(0x7a)]()+_0x559451(0x8a))),this[_0x559451(0x86)]=this[_0x559451(0x91)](_0x27eb65(_0x2fccaf,_0x559451(0x88))),this[_0x559451(0x7e)]=this[_0x559451(0x91)](_0x27eb65(_0x2fccaf,_0x559451(0x84))),this[_0x559451(0x90)]=this[_0x559451(0x91)](_0x27eb65(_0x2fccaf,_0x559451(0x7c)));const _0x2f60b9=this[_0x559451(0x89)];this[_0x559451(0x8c)]({'attributes':{'class':[_0x559451(0x8f),_0x2f60b9['if'](_0x559451(0x8d),_0x559451(0x8b),_0x4118d9=>!_0x4118d9)]}}),this[_0x559451(0x7d)][_0x559451(0x76)]([this[_0x559451(0x77)],this[_0x559451(0x86)],this[_0x559451(0x7e)],this[_0x559451(0x90)]]);}[_0x2263a3(0x91)](_0x1e63c4,_0x51cbcd){const _0x4a8a35=_0x2263a3,_0x132cfd=new _0x3afc30(this[_0x4a8a35(0x94)]);return _0x132cfd[_0x4a8a35(0x8e)]({'label':_0x1e63c4,'class':_0x51cbcd||'','isVisible':!0x0,'withText':!0x0}),_0x132cfd;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x16436c=_0x3fd3;(function(_0x3cd5b1,_0x1e29c3){const _0x7920f0=_0x3fd3,_0x38310c=_0x3cd5b1();while(!![]){try{const _0x1fc725=parseInt(_0x7920f0(0x153))/0x1+-parseInt(_0x7920f0(0x147))/0x2+parseInt(_0x7920f0(0x145))/0x3+parseInt(_0x7920f0(0x16a))/0x4+-parseInt(_0x7920f0(0x14a))/0x5*(-parseInt(_0x7920f0(0x167))/0x6)+-parseInt(_0x7920f0(0x148))/0x7*(parseInt(_0x7920f0(0x15f))/0x8)+-parseInt(_0x7920f0(0x16e))/0x9*(parseInt(_0x7920f0(0x175))/0xa);if(_0x1fc725===_0x1e29c3)break;else _0x38310c['push'](_0x38310c['shift']());}catch(_0x5d547c){_0x38310c['push'](_0x38310c['shift']());}}}(_0x4fa7,0xedaff));import{FocusTracker as _0x1f9024,KeystrokeHandler as _0x2edfb2}from'ckeditor5/src/utils.js';import{View as _0x1f589b,FocusCycler as _0x1a717d,createLabeledTextarea as _0x4612b4}from'ckeditor5/src/ui.js';import{AIFormToolbarView as _0x589c1a,AIFormToolbarViewMainActionLabel as _0x1f089b}from'./aiformtoolbarview.js';import{AIFormContentArea as _0x417658}from'./aiformcontentarea.js';import{AIFormErrorView as _0x59af7b}from'./aiformerrorview.js';import{AIFormPromptView as _0x2e92ee}from'./aiformpromptview.js';import{AIHistoryListView as _0x5b9820}from'./aihistorylistview.js';function _0x4fa7(){const _0x57299a=['ck-hidden','prompt','isEnabled','clearHistory','fieldView','reset','clear','isVisible','Ask\x20AI\x20to\x20improve\x20generated\x20text','12478304UuCSZq','execute','listenTo','items','tryAgainButton','insertContentBelow','value','_createToolbar','6cyRXJB','add','ck-ai-form-content','7269344yDvevh','element','stopButton','set','118296RTOAOc','toolbar','tab','insertButton','div','focusCycler','text','950bjegVE','bindTemplate','focusFirst','render','createCollection','startProcessing','bindTo','stopProcessing','queryView','shift\x20+\x20tab','focus','AI_ERROR_FAILED','replaceContent','submitPrompt','isError','Empty\x20history','promptView','search','_createHistoryView','errorView','focusTracker','tryAgainEvent','keystrokes','label','focusLast','handleError','_promptHistory','copyButtonView','fire','delegate','contentArea','REPLACE','trim','isProcessing','bind','submit','mainAction','4888599kqfWWU','replaceButton','1832896vyFIss','7HPpHKo','high','5326190pnOOiL','historyGroupView','Ask\x20AI\x20to\x20edit\x20or\x20generate','finishProcessing','setTemplate','locale','_createPromptView','_focusables','chain','186376MhyvEt','ck-ai-form','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.'];_0x4fa7=function(){return _0x57299a;};return _0x4fa7();}import{AIHistoryListItemView as _0x1d1411}from'./aihistorylistitemview.js';import{PromptHistory as _0x98d8f8}from'./prompthistory.js';function _0x3fd3(_0x216516,_0x1fc764){const _0x4fa788=_0x4fa7();return _0x3fd3=function(_0x3fd369,_0x4a2965){_0x3fd369=_0x3fd369-0x130;let _0x526534=_0x4fa788[_0x3fd369];return _0x526534;},_0x3fd3(_0x216516,_0x1fc764);}import{getTranslation as _0x42e560}from'../../utils/common-translations.js';import{escape as _0x2f893d}from'es-toolkit/compat';export class AIFormView extends _0x1f589b{[_0x16436c(0x134)];[_0x16436c(0x136)];[_0x16436c(0x13e)];[_0x16436c(0x16f)];[_0x16436c(0x130)];[_0x16436c(0x133)];[_0x16436c(0x151)];[_0x16436c(0x173)];[_0x16436c(0x13a)];constructor(_0x38b8d1,_0x93f1d1,_0x77284b=''){const _0x5a95ff=_0x16436c;super(_0x38b8d1),this[_0x5a95ff(0x16d)](_0x5a95ff(0x158),!0x0),this[_0x5a95ff(0x16d)](_0x5a95ff(0x141),!0x1),this[_0x5a95ff(0x16d)](_0x5a95ff(0x157),''),this[_0x5a95ff(0x16d)](_0x5a95ff(0x165),''),this[_0x5a95ff(0x16d)](_0x5a95ff(0x183),!0x1),this[_0x5a95ff(0x16d)](_0x5a95ff(0x144),_0x1f089b[_0x5a95ff(0x13f)]),this[_0x5a95ff(0x13a)]=new _0x98d8f8(),this[_0x5a95ff(0x133)]=new _0x59af7b(_0x38b8d1),this[_0x5a95ff(0x13e)]=new _0x417658(_0x38b8d1,_0x77284b),this[_0x5a95ff(0x13e)][_0x5a95ff(0x142)](_0x5a95ff(0x141))['to'](this),this[_0x5a95ff(0x13e)][_0x5a95ff(0x142)](_0x5a95ff(0x165))['to'](this),this[_0x5a95ff(0x16f)]=this[_0x5a95ff(0x166)](),this[_0x5a95ff(0x16f)][_0x5a95ff(0x142)](_0x5a95ff(0x144))['to'](this),this[_0x5a95ff(0x130)]=this[_0x5a95ff(0x150)](),this[_0x5a95ff(0x134)]=new _0x1f9024(),this[_0x5a95ff(0x136)]=new _0x2edfb2(),this[_0x5a95ff(0x151)]=this[_0x5a95ff(0x179)]([this[_0x5a95ff(0x13e)],this[_0x5a95ff(0x13e)][_0x5a95ff(0x13b)],this[_0x5a95ff(0x16f)],this[_0x5a95ff(0x130)]]),this[_0x5a95ff(0x173)]=new _0x1a717d({'focusables':this[_0x5a95ff(0x151)],'focusTracker':this[_0x5a95ff(0x134)],'keystrokeHandler':this[_0x5a95ff(0x136)],'actions':{'focusPrevious':_0x5a95ff(0x17e),'focusNext':_0x5a95ff(0x170)}}),this[_0x5a95ff(0x173)][_0x5a95ff(0x152)](this[_0x5a95ff(0x130)][_0x5a95ff(0x173)]),this[_0x5a95ff(0x130)][_0x5a95ff(0x17d)][_0x5a95ff(0x15a)][_0x5a95ff(0x142)](_0x5a95ff(0x165))['to'](this,_0x5a95ff(0x157));const _0x193b64=this[_0x5a95ff(0x176)];this[_0x5a95ff(0x14e)]({'tag':_0x5a95ff(0x172),'attributes':{'class':['ck',_0x5a95ff(0x154),_0x93f1d1],'tabindex':'-1'},'children':[{'tag':_0x5a95ff(0x172),'attributes':{'class':['ck',_0x5a95ff(0x169)]},'children':[{'tag':_0x5a95ff(0x172),'attributes':{'class':[_0x193b64['if'](_0x5a95ff(0x183),_0x5a95ff(0x156),_0x5ae5f1=>!_0x5ae5f1)]},'children':[this[_0x5a95ff(0x133)]]},this[_0x5a95ff(0x13e)],this[_0x5a95ff(0x16f)],this[_0x5a95ff(0x130)]]}]});}[_0x16436c(0x178)](){const _0xebeea2=_0x16436c;super[_0xebeea2(0x178)](),this[_0xebeea2(0x134)][_0xebeea2(0x168)](this[_0xebeea2(0x13e)][_0xebeea2(0x16b)]),this[_0xebeea2(0x134)][_0xebeea2(0x168)](this[_0xebeea2(0x13e)][_0xebeea2(0x13b)][_0xebeea2(0x16b)]),this[_0xebeea2(0x134)][_0xebeea2(0x168)](this[_0xebeea2(0x16f)][_0xebeea2(0x16b)]),this[_0xebeea2(0x134)][_0xebeea2(0x168)](this[_0xebeea2(0x130)][_0xebeea2(0x16b)]),this[_0xebeea2(0x136)][_0xebeea2(0x161)](this[_0xebeea2(0x16b)]);}[_0x16436c(0x17f)](_0x29c0e7=0x1){const _0x5ed722=_0x16436c;-0x1===_0x29c0e7?this[_0x5ed722(0x173)][_0x5ed722(0x138)]():this[_0x5ed722(0x173)][_0x5ed722(0x177)]();}[_0x16436c(0x15b)](){const _0x11d31c=_0x16436c;this[_0x11d31c(0x157)]='',this[_0x11d31c(0x165)]='',this[_0x11d31c(0x183)]=!0x1,this[_0x11d31c(0x130)][_0x11d31c(0x15b)](),this[_0x11d31c(0x13e)][_0x11d31c(0x15d)]=!0x1,this[_0x11d31c(0x16f)][_0x11d31c(0x15d)]=!0x1;}[_0x16436c(0x150)](){const _0x98ffe8=_0x16436c,_0x248148=this[_0x98ffe8(0x14f)],_0x53061b=new _0x2e92ee(_0x248148,{'queryView':{'label':_0x42e560(_0x248148,_0x98ffe8(0x14c)),'creator':_0x4612b4,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x42e560(_0x248148,_0x98ffe8(0x184)),'secondary':_0x42e560(_0x248148,_0x98ffe8(0x155))}}},'filteredView':this[_0x98ffe8(0x132)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x53061b[_0x98ffe8(0x142)](_0x98ffe8(0x158))['to'](this,_0x98ffe8(0x158),this,_0x98ffe8(0x141),(_0x170462,_0x2c1a00)=>_0x170462&&!_0x2c1a00),this[_0x98ffe8(0x161)](_0x53061b,_0x98ffe8(0x143),(_0x55856d,_0x11ea62)=>{const _0x3d25d2=_0x98ffe8;this[_0x3d25d2(0x157)]=_0x11ea62;const _0x2aa347=_0x2f893d(_0x11ea62);this[_0x3d25d2(0x13c)](_0x3d25d2(0x182),_0x2aa347),_0x11ea62[_0x3d25d2(0x140)]()&&this[_0x3d25d2(0x13a)][_0x3d25d2(0x168)]({'prompt':_0x2aa347},0x0);},{'priority':_0x98ffe8(0x149)}),_0x53061b;}[_0x16436c(0x132)](){const _0x20ab08=_0x16436c,_0x375130=new _0x5b9820(this[_0x20ab08(0x14f)]);return _0x375130[_0x20ab08(0x14b)][_0x20ab08(0x162)][_0x20ab08(0x17b)](this[_0x20ab08(0x13a)])['as'](_0x1d1411),_0x375130['on'](_0x20ab08(0x159),()=>{const _0x31600d=_0x20ab08;this[_0x31600d(0x13a)][_0x31600d(0x15c)](),this[_0x31600d(0x130)][_0x31600d(0x131)](''),this[_0x31600d(0x130)][_0x31600d(0x17f)]();}),_0x375130;}[_0x16436c(0x166)](){const _0xbc7908=_0x16436c,_0x5a19a2=new _0x589c1a(this[_0xbc7908(0x14f)]);return _0x5a19a2[_0xbc7908(0x146)][_0xbc7908(0x142)](_0xbc7908(0x158))['to'](this,_0xbc7908(0x158),this,_0xbc7908(0x141),this,_0xbc7908(0x165),(_0x7e8931,_0xe175a6,_0x23a48f)=>_0x7e8931&&!_0xe175a6&&!!_0x23a48f),_0x5a19a2[_0xbc7908(0x146)][_0xbc7908(0x13d)](_0xbc7908(0x160))['to'](this,_0xbc7908(0x181)),_0x5a19a2[_0xbc7908(0x171)][_0xbc7908(0x142)](_0xbc7908(0x158))['to'](this,_0xbc7908(0x158),this,_0xbc7908(0x141),this,_0xbc7908(0x165),(_0x1d8cf1,_0x142208,_0x20d651)=>_0x1d8cf1&&!_0x142208&&!!_0x20d651),_0x5a19a2[_0xbc7908(0x171)][_0xbc7908(0x13d)](_0xbc7908(0x160))['to'](this,_0xbc7908(0x164)),_0x5a19a2[_0xbc7908(0x163)][_0xbc7908(0x142)](_0xbc7908(0x158))['to'](this,_0xbc7908(0x158),this,_0xbc7908(0x141),(_0xdad58b,_0x352c95)=>_0xdad58b&&!_0x352c95),_0x5a19a2[_0xbc7908(0x163)][_0xbc7908(0x13d)](_0xbc7908(0x160))['to'](this,_0xbc7908(0x135)),_0x5a19a2[_0xbc7908(0x16c)][_0xbc7908(0x142)](_0xbc7908(0x158))['to'](this,_0xbc7908(0x141)),_0x5a19a2[_0xbc7908(0x16c)][_0xbc7908(0x13d)](_0xbc7908(0x160))['to'](this,_0xbc7908(0x17c)),_0x5a19a2;}[_0x16436c(0x17a)](){const _0xbe6109=_0x16436c;this[_0xbe6109(0x165)]='',this[_0xbe6109(0x183)]=!0x1,this[_0xbe6109(0x141)]=!0x0,this[_0xbe6109(0x13e)][_0xbe6109(0x15d)]=!0x0,this[_0xbe6109(0x16f)][_0xbe6109(0x15d)]=!0x0,this[_0xbe6109(0x13e)][_0xbe6109(0x17f)]();}[_0x16436c(0x14d)](){const _0x53e378=_0x16436c,_0x516e9d=this[_0x53e378(0x14f)];this[_0x53e378(0x141)]=!0x1,this[_0x53e378(0x157)]='',this[_0x53e378(0x130)][_0x53e378(0x15b)](),this[_0x53e378(0x165)]&&(this[_0x53e378(0x130)][_0x53e378(0x17d)][_0x53e378(0x137)]=_0x42e560(_0x516e9d,_0x53e378(0x15e)));}[_0x16436c(0x139)](_0x1de952){const _0x5b8e7f=_0x16436c,_0x339186=this[_0x5b8e7f(0x14f)];this[_0x5b8e7f(0x14d)](),this[_0x5b8e7f(0x183)]=!0x0,this[_0x5b8e7f(0x133)][_0x5b8e7f(0x174)]=_0x1de952||_0x42e560(_0x339186,_0x5b8e7f(0x180)),this[_0x5b8e7f(0x165)]||(this[_0x5b8e7f(0x13e)][_0x5b8e7f(0x15d)]=!0x1);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x17a7ec,_0xa9a2e3){const _0x987f2b=_0x5787,_0x8247a5=_0x17a7ec();while(!![]){try{const _0xeef550=-parseInt(_0x987f2b(0x134))/0x1*(parseInt(_0x987f2b(0x12e))/0x2)+-parseInt(_0x987f2b(0x130))/0x3+parseInt(_0x987f2b(0x12a))/0x4+parseInt(_0x987f2b(0x132))/0x5+-parseInt(_0x987f2b(0x12f))/0x6*(parseInt(_0x987f2b(0x131))/0x7)+parseInt(_0x987f2b(0x135))/0x8*(parseInt(_0x987f2b(0x12c))/0x9)+parseInt(_0x987f2b(0x136))/0xa;if(_0xeef550===_0xa9a2e3)break;else _0x8247a5['push'](_0x8247a5['shift']());}catch(_0x3b463c){_0x8247a5['push'](_0x8247a5['shift']());}}}(_0x3660,0xe4076));function _0x5787(_0x52999a,_0x15eff1){const _0x3660df=_0x3660();return _0x5787=function(_0x578791,_0x46bc69){_0x578791=_0x578791-0x126;let _0x4b6996=_0x3660df[_0x578791];return _0x4b6996;},_0x5787(_0x52999a,_0x15eff1);}import{ListItemView as _0x19cb37,ButtonView as _0x902611,ButtonLabelView as _0x3df6c1}from'ckeditor5/src/ui.js';function _0x3660(){const _0x2c717e=['children','229cYAQaA','7233608wpTIfl','13458960lGkCqp','fire','set','add','execute','367056tepite','prompt','9mnVpfz','locale','374dQLyhA','6hodclr','3896496tiltYt','9464700jluDMv','6429500TitENQ'];_0x3660=function(){return _0x2c717e;};return _0x3660();}import{unescape as _0x44ae19}from'es-toolkit/compat';export class AIHistoryListItemView extends _0x19cb37{constructor(_0x2a6c44){const _0x3636d3=_0x5787;super();const _0x1e8d20=new _0x3df6c1(),_0x4477f5=new _0x902611(this[_0x3636d3(0x12d)],_0x1e8d20);this[_0x3636d3(0x133)][_0x3636d3(0x128)](_0x4477f5),_0x4477f5[_0x3636d3(0x127)]({'label':_0x2a6c44[_0x3636d3(0x12b)],'withText':!0x0}),_0x4477f5['on'](_0x3636d3(0x129),()=>{const _0x19a66f=_0x3636d3;this[_0x19a66f(0x126)](_0x19a66f(0x129),{'value':_0x44ae19(_0x2a6c44[_0x19a66f(0x12b)])});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x4bab7f=_0x288d;(function(_0x400a50,_0x1b0cbf){const _0x348010=_0x288d,_0x53d171=_0x400a50();while(!![]){try{const _0x3ee730=parseInt(_0x348010(0x1d4))/0x1+-parseInt(_0x348010(0x1d1))/0x2*(-parseInt(_0x348010(0x1cd))/0x3)+-parseInt(_0x348010(0x1d2))/0x4*(-parseInt(_0x348010(0x1ca))/0x5)+parseInt(_0x348010(0x1bf))/0x6+-parseInt(_0x348010(0x1cb))/0x7+-parseInt(_0x348010(0x1c7))/0x8*(-parseInt(_0x348010(0x1c6))/0x9)+parseInt(_0x348010(0x1d3))/0xa*(-parseInt(_0x348010(0x1c1))/0xb);if(_0x3ee730===_0x1b0cbf)break;else _0x53d171['push'](_0x53d171['shift']());}catch(_0x53f3d5){_0x53d171['push'](_0x53d171['shift']());}}}(_0x3430,0x4f849));import{ListView as _0x3d5907,ListItemGroupView as _0x1fb72c,ButtonView as _0x4a2994}from'ckeditor5/src/ui.js';function _0x288d(_0x45dad8,_0x23c6a5){const _0x343085=_0x3430();return _0x288d=function(_0x288d61,_0x415d15){_0x288d61=_0x288d61-0x1ba;let _0x616f0c=_0x343085[_0x288d61];return _0x616f0c;},_0x288d(_0x45dad8,_0x23c6a5);}import{getTranslation as _0x2b9213}from'../../utils/common-translations.js';export class AIHistoryListView extends _0x3d5907{[_0x4bab7f(0x1c9)];[_0x4bab7f(0x1bd)];constructor(_0x28c210){const _0x37131c=_0x4bab7f;super(_0x28c210),this[_0x37131c(0x1bd)]=this[_0x37131c(0x1ce)](),this[_0x37131c(0x1c9)]=new _0x1fb72c(),this[_0x37131c(0x1c9)][_0x37131c(0x1c4)][_0x37131c(0x1be)](this[_0x37131c(0x1bd)],0x1),this[_0x37131c(0x1c9)][_0x37131c(0x1d0)]=_0x2b9213(_0x28c210,_0x37131c(0x1bb)),this[_0x37131c(0x1c9)][_0x37131c(0x1c2)][_0x37131c(0x1bc)](_0x37131c(0x1cf))['to'](this),this[_0x37131c(0x1c2)][_0x37131c(0x1be)](this[_0x37131c(0x1c9)]);}[_0x4bab7f(0x1c3)](){const _0x157485=_0x4bab7f;let _0x40d616=0x0;for(const _0x42f722 of this[_0x157485(0x1c2)])_0x40d616+=_0x42f722[_0x157485(0x1c2)][_0x157485(0x1c5)];return{'resultsCount':_0x40d616,'totalItemsCount':_0x40d616};}[_0x4bab7f(0x1ce)](){const _0x23bd05=_0x4bab7f,_0x3469fb=this[_0x23bd05(0x1ba)],_0x1cf42b=new _0x4a2994(this[_0x23bd05(0x1ba)]);return _0x1cf42b[_0x23bd05(0x1c0)]({'label':'('+_0x2b9213(_0x3469fb,_0x23bd05(0x1cc))+')','withText':!0x0}),_0x1cf42b['on'](_0x23bd05(0x1cf),()=>this[_0x23bd05(0x1d5)](_0x23bd05(0x1c8))),_0x1cf42b;}}function _0x3430(){const _0x4227b2=['22XveWol','items','filter','children','length','36NvDHbo','77432mmPLZh','clearHistory','historyGroupView','2150665iYsOso','3253369jxTDoT','Clear','745407TRukMC','_createClearHistoryButton','execute','label','2nvqbYM','4cFfBjz','3737050gXuUaY','312698lwlUEp','fire','locale','Prompt\x20history','delegate','clearHistoryButton','add','3047196lrjgFO','set'];_0x3430=function(){return _0x4227b2;};return _0x3430();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3d6c9c=_0x18c4;(function(_0x56a1f8,_0x1250ea){const _0x5586f6=_0x18c4,_0x3e3e17=_0x56a1f8();while(!![]){try{const _0x134eb0=-parseInt(_0x5586f6(0x15d))/0x1+-parseInt(_0x5586f6(0x172))/0x2*(parseInt(_0x5586f6(0x166))/0x3)+parseInt(_0x5586f6(0x16f))/0x4+-parseInt(_0x5586f6(0x169))/0x5+parseInt(_0x5586f6(0x165))/0x6+-parseInt(_0x5586f6(0x167))/0x7+parseInt(_0x5586f6(0x16e))/0x8;if(_0x134eb0===_0x1250ea)break;else _0x3e3e17['push'](_0x3e3e17['shift']());}catch(_0x393d40){_0x3e3e17['push'](_0x3e3e17['shift']());}}}(_0x92e8,0x5c1b3));import{Collection as _0x271ed5}from'ckeditor5/src/utils.js';const ts=_0x3d6c9c(0x15c);function _0x92e8(){const _0x2878ed=['prompt','parse','getItem','_loadFromSessionStorage','trim','492054ueLwwU','39aUgOXj','3502058lLzhKC','add','191290UxRDEc','_saveToSessionStorage','setItem','stringify','map','11279160nrMPEG','2482556MCfpIt','last','remove','101240VfGXYz','length','CKEditor/AIFormView/PromptHistory','538664sjouBQ','toLowerCase','addMany'];_0x92e8=function(){return _0x2878ed;};return _0x92e8();}export class PromptHistory extends _0x271ed5{constructor(){const _0x2fd5bd=_0x3d6c9c;super(),this[_0x2fd5bd(0x163)](),this['on'](_0x2fd5bd(0x168),(_0x518bd7,_0x43fc85)=>{const _0x4c9e6d=_0x2fd5bd,_0x2d4b3b=os(_0x43fc85[_0x4c9e6d(0x160)]);for(const _0x5b2ac8 of this)if(_0x5b2ac8!=_0x43fc85&&os(_0x5b2ac8[_0x4c9e6d(0x160)])===_0x2d4b3b){this[_0x4c9e6d(0x171)](_0x5b2ac8);break;}this[_0x4c9e6d(0x173)]>0x14&&this[_0x4c9e6d(0x171)](this[_0x4c9e6d(0x170)]),this[_0x4c9e6d(0x16a)]();}),this['on'](_0x2fd5bd(0x171),()=>{const _0x4de54c=_0x2fd5bd;this[_0x4de54c(0x16a)]();});}[_0x3d6c9c(0x163)](){const _0x55d27c=_0x3d6c9c,_0x235e32=sessionStorage[_0x55d27c(0x162)](ts)||'[]';this[_0x55d27c(0x15f)](JSON[_0x55d27c(0x161)](_0x235e32));}[_0x3d6c9c(0x16a)](){const _0xca80b8=_0x3d6c9c;sessionStorage[_0xca80b8(0x16b)](ts,JSON[_0xca80b8(0x16c)](this[_0xca80b8(0x16d)](_0x19c07e=>_0x19c07e)));}}function _0x18c4(_0x131081,_0x17bbad){const _0x92e86a=_0x92e8();return _0x18c4=function(_0x18c4de,_0x2e8ce0){_0x18c4de=_0x18c4de-0x15c;let _0x43e91c=_0x92e86a[_0x18c4de];return _0x43e91c;},_0x18c4(_0x131081,_0x17bbad);}function os(_0x4a9e5d){const _0x368854=_0x3d6c9c;return _0x4a9e5d[_0x368854(0x15e)]()[_0x368854(0x164)]();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4723e8=_0x2faa;(function(_0x39bbdb,_0x252d18){const _0x21b298=_0x2faa,_0x35edfb=_0x39bbdb();while(!![]){try{const _0x205cae=parseInt(_0x21b298(0x83))/0x1+parseInt(_0x21b298(0xae))/0x2*(-parseInt(_0x21b298(0xa7))/0x3)+parseInt(_0x21b298(0xa9))/0x4*(parseInt(_0x21b298(0x84))/0x5)+parseInt(_0x21b298(0x8e))/0x6+-parseInt(_0x21b298(0x8f))/0x7*(-parseInt(_0x21b298(0x96))/0x8)+parseInt(_0x21b298(0x86))/0x9*(parseInt(_0x21b298(0x82))/0xa)+-parseInt(_0x21b298(0x91))/0xb*(parseInt(_0x21b298(0x95))/0xc);if(_0x205cae===_0x252d18)break;else _0x35edfb['push'](_0x35edfb['shift']());}catch(_0x5f4ed1){_0x35edfb['push'](_0x35edfb['shift']());}}}(_0x2c5f,0x9d3fd));import{Command as _0x582622}from'ckeditor5/src/core.js';function _0x2faa(_0x2487f1,_0x5b6b4d){const _0x2c5f5f=_0x2c5f();return _0x2faa=function(_0x2faae1,_0x4c34a8){_0x2faae1=_0x2faae1-0x81;let _0x4573be=_0x2c5f5f[_0x2faae1];return _0x4573be;},_0x2faa(_0x2487f1,_0x5b6b4d);}import{AIAssistantUI as _0x2c1440}from'../aiassistantui.js';function _0x2c5f(){const _0x39b51e=['length','getSelectedBlocks','8133QuZbzR','getFirstRange','263512yFpfjn','model','change:isEnabled','_hasContext','plugins','560TSFkGV','hasContent','16800IVxoHP','3644sxoJEY','5tipyda','set','4509yhYUUY','add','name','values','getRanges','custom','_commandDefinitions','from','569724HrwcbK','3947461hyOSvP','includes','917983JlZzco','isCollapsed','refresh','getItems','24KVIUaK','8LvYrbQ','element','config','change:_hasContext','editor','document','ai.aiAssistant.disabledElements','execute','enabledCommandsIds','isEmpty','showUI','requiresContent','selection','get','isEnabled'];_0x2c5f=function(){return _0x39b51e;};return _0x2c5f();}export class ShowAIAssistantCommand extends _0x582622{[_0x4723e8(0x8c)];constructor(_0x53256b,_0x108257){const _0x446fdf=_0x4723e8;super(_0x53256b),this[_0x446fdf(0x8c)]=_0x108257,this[_0x446fdf(0x85)](_0x446fdf(0x9e),[]),this['on'](_0x446fdf(0x99),(_0x23acb6,_0x41b66,_0x1079fe)=>{const _0x55e578=_0x446fdf;this[_0x55e578(0xa4)]&&(this[_0x55e578(0x9e)]=F(this[_0x55e578(0x8c)],_0x1079fe));}),this[_0x446fdf(0x85)](_0x446fdf(0xac),!0x1),this['on'](_0x446fdf(0xab),(_0x6dc7ad,_0x271f85,_0x452ecb)=>{const _0x5b6681=_0x446fdf;this[_0x5b6681(0x9e)]=_0x452ecb?F(this[_0x5b6681(0x8c)],this[_0x5b6681(0xac)]):[];});}[_0x4723e8(0x93)](){const _0x53a50f=_0x4723e8,_0x319c21=this[_0x53a50f(0x9a)][_0x53a50f(0xaa)];this[_0x53a50f(0xac)]=function(_0x9fde32){const _0x3c3961=_0x53a50f,_0x24dbff=_0x9fde32[_0x3c3961(0x9b)][_0x3c3961(0xa2)];return _0x24dbff[_0x3c3961(0x92)]?0x0!==[..._0x24dbff[_0x3c3961(0xa6)]()][_0x3c3961(0xa5)]&&![..._0x24dbff[_0x3c3961(0xa6)]()][0x0][_0x3c3961(0x9f)]:!!_0x9fde32[_0x3c3961(0x81)](_0x24dbff[_0x3c3961(0xa8)]());}(_0x319c21);const _0x1a6919=_0x319c21[_0x53a50f(0x9b)][_0x53a50f(0xa2)],_0x4a259e=this[_0x53a50f(0x9a)][_0x53a50f(0x98)][_0x53a50f(0xa3)](_0x53a50f(0x9c));for(const _0x5cd37a of _0x1a6919[_0x53a50f(0x8a)]())for(const _0x11a9e8 of _0x5cd37a[_0x53a50f(0x94)]())if(_0x11a9e8['is'](_0x53a50f(0x97))&&_0x4a259e[_0x53a50f(0x90)](_0x11a9e8[_0x53a50f(0x88)]))return void(this[_0x53a50f(0xa4)]=!0x1);this[_0x53a50f(0xa4)]=!0x0;}[_0x4723e8(0x9d)](_0x493a4c='',_0x15282c='',_0x3cf247=_0x4723e8(0x8b)){const _0x336b5c=_0x4723e8;this[_0x336b5c(0x9a)][_0x336b5c(0xad)][_0x336b5c(0xa3)](_0x2c1440)[_0x336b5c(0xa0)](_0x493a4c,_0x15282c,_0x3cf247);}}function F(_0x1484e7,_0x2ef4f9){const _0x26c77d=_0x4723e8,_0x1eb0b3=new Set();for(const _0x2b2f7d of _0x1484e7[_0x26c77d(0x89)]())(_0x2ef4f9||!0x1===_0x2b2f7d[_0x26c77d(0xa1)])&&_0x1eb0b3[_0x26c77d(0x87)](_0x2b2f7d['id']);return Array[_0x26c77d(0x8d)](_0x1eb0b3);}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(
|
|
23
|
+
export function getTranslation(_0x38a129,_0x406d53,_0x127916){const t=_0x38a129['t'];switch(_0x406d53){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',_0x127916);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x127916);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'},_0x127916);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 _0x406d53;}}
|
|
@@ -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(_0x4779a3,_0x1b408d){const _0x2d62b4=(0x0,_0x1b408d['t'])('Other');return _0x4779a3['length']?'groupId'in _0x4779a3[0x0]?_0x4779a3:[{'groupId':'_ungrouppedCommands','groupLabel':_0x2d62b4,'order':0x1/0x0,'commands':_0x4779a3}]:[{'groupId':'_ungrouppedCommands','groupLabel':_0x2d62b4,'order':0x1/0x0,'commands':[]}];}
|