@ckeditor/ckeditor5-ai 46.0.1-alpha.1 → 46.0.1-alpha.11
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.css +2 -2
- 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
- package/theme/ai-form.css +2 -2
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x2741(_0x55058d,_0x156d9d){const _0x268234=_0x2682();return _0x2741=function(_0x27418a,_0x5de684){_0x27418a=_0x27418a-0x1ce;let _0x2d099c=_0x268234[_0x27418a];return _0x2d099c;},_0x2741(_0x55058d,_0x156d9d);}(function(_0x321832,_0x4831b0){const _0x38f3ee=_0x2741,_0x496531=_0x321832();while(!![]){try{const _0x423946=-parseInt(_0x38f3ee(0x1ce))/0x1+-parseInt(_0x38f3ee(0x1dc))/0x2*(-parseInt(_0x38f3ee(0x1d7))/0x3)+parseInt(_0x38f3ee(0x1d9))/0x4*(-parseInt(_0x38f3ee(0x1d1))/0x5)+parseInt(_0x38f3ee(0x1db))/0x6*(parseInt(_0x38f3ee(0x1d8))/0x7)+-parseInt(_0x38f3ee(0x1d5))/0x8+parseInt(_0x38f3ee(0x1d0))/0x9+parseInt(_0x38f3ee(0x1da))/0xa;if(_0x423946===_0x4831b0)break;else _0x496531['push'](_0x496531['shift']());}catch(_0x30710b){_0x496531['push'](_0x496531['shift']());}}}(_0x2682,0xe01ed));function _0x2682(){const _0x594dea=['bindTemplate','71220HwcNvT','7gYlOGY','2334764KCQqPc','6716370awuxHu','10103286kUNxWo','144Fbdmtc','div','set','1521421AcuSLU','setTemplate','2460069XSzJNY','10djlnSp','ck-ai-form__error','text','content','5850712MSgNUN'];_0x2682=function(){return _0x594dea;};return _0x2682();}import{IconError as _0x33ec60}from'ckeditor5/src/icons.js';import{View as _0x54329a,IconView as _0x746594}from'ckeditor5/src/ui.js';export class AIFormErrorView extends _0x54329a{constructor(_0x50f299,_0x295c2a=''){const _0xe69661=_0x2741;super(_0x50f299);const _0x2088d8=new _0x746594(),_0x135155=this[_0xe69661(0x1d6)];this[_0xe69661(0x1de)](_0xe69661(0x1d3),_0x295c2a),_0x2088d8[_0xe69661(0x1d4)]=_0x33ec60,this[_0xe69661(0x1cf)]({'tag':_0xe69661(0x1dd),'attributes':{'class':['ck',_0xe69661(0x1d2)]},'children':[_0x2088d8,{'text':_0x135155['to'](_0xe69661(0x1d3))}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x6ca4(){const _0x2f81bc=['window','maxRows','isEnabled','minRows','2148IxEVFe','9vREhfu','fieldView','_createSubmitButton','element','13196dPsOcr','20RwfYNT','rtl','bind','queryView','keystrokes','History','requestAnimationFrame','render','showHistoryButtonView','2193aQspMJ','isVisible','children','update','right','329315NJxbTP','value','focusFirst','ck-ai-form__submit','focus','submit','950XkprCy','ck-ai-form__toggle-history','isOn','target','focusLast','isEmpty','focusCycler','focusableChildren','excludeScrollbarsAndBorders','60VDxuTk','left','fieldWrapperChildren','add','Submit','128713RKPinw','execute','style','resultsView','fire','620933zNTQoL','locale','1822zZJSQV','width','filteredView','uiLanguageDirection','1685596SDeBfz','_createShowHistoryButton','set','submitButtonView','4636024qVMWio','enter'];_0x6ca4=function(){return _0x2f81bc;};return _0x6ca4();}const _0x198abc=_0x531c;(function(_0x465a74,_0xab1ee2){const _0x3d2271=_0x531c,_0x4b6ed5=_0x465a74();while(!![]){try{const _0x137ae6=parseInt(_0x3d2271(0x213))/0x1+-parseInt(_0x3d2271(0x215))/0x2*(-parseInt(_0x3d2271(0x1f5))/0x3)+parseInt(_0x3d2271(0x228))/0x4*(parseInt(_0x3d2271(0x200))/0x5)+-parseInt(_0x3d2271(0x209))/0x6*(-parseInt(_0x3d2271(0x1fa))/0x7)+-parseInt(_0x3d2271(0x21d))/0x8*(parseInt(_0x3d2271(0x224))/0x9)+parseInt(_0x3d2271(0x229))/0xa*(parseInt(_0x3d2271(0x219))/0xb)+-parseInt(_0x3d2271(0x223))/0xc*(parseInt(_0x3d2271(0x20e))/0xd);if(_0x137ae6===_0xab1ee2)break;else _0x4b6ed5['push'](_0x4b6ed5['shift']());}catch(_0x8c01b){_0x4b6ed5['push'](_0x4b6ed5['shift']());}}}(_0x6ca4,0x52b88));import{Rect as _0x3db01d,global as _0x1903ec,isVisible as _0x2fc624}from'ckeditor5/src/utils.js';import{IconHistory as _0x5d529c,IconSubmit as _0x3ea1ce}from'ckeditor5/src/icons.js';function _0x531c(_0x4e29d6,_0x2038ae){const _0x6ca442=_0x6ca4();return _0x531c=function(_0x531cc6,_0x1abe8c){_0x531cc6=_0x531cc6-0x1ed;let _0x41ac66=_0x6ca442[_0x531cc6];return _0x41ac66;},_0x531c(_0x4e29d6,_0x2038ae);}import{AutocompleteView as _0x389b87,ButtonView as _0x3dba8f}from'ckeditor5/src/ui.js';import{getTranslation as _0x54e3dd}from'../../utils/common-translations.js';export class AIFormPromptView extends _0x389b87{[_0x198abc(0x21c)];[_0x198abc(0x1f4)];constructor(_0x2e5aa6,_0x1c996b){const _0x3b30f1=_0x198abc;super(_0x2e5aa6,_0x1c996b),this[_0x3b30f1(0x1ef)][_0x3b30f1(0x225)][_0x3b30f1(0x222)]=0x1,this[_0x3b30f1(0x1ef)][_0x3b30f1(0x225)][_0x3b30f1(0x220)]=0x3,this[_0x3b30f1(0x21c)]=this[_0x3b30f1(0x226)](),this[_0x3b30f1(0x1f4)]=this[_0x3b30f1(0x21a)](),this[_0x3b30f1(0x207)][_0x3b30f1(0x20c)](this[_0x3b30f1(0x1f4)],0x1),this[_0x3b30f1(0x207)][_0x3b30f1(0x20c)](this[_0x3b30f1(0x21c)]);}[_0x198abc(0x1f3)](){const _0x56ec91=_0x198abc;super[_0x56ec91(0x1f3)](),this[_0x56ec91(0x1ef)][_0x56ec91(0x20b)][_0x56ec91(0x20c)](this[_0x56ec91(0x1f4)]),this[_0x56ec91(0x1f7)][_0x56ec91(0x20c)](this[_0x56ec91(0x21c)]),this[_0x56ec91(0x1f0)][_0x56ec91(0x21b)](_0x56ec91(0x21e),(_0x3df318,_0x11b229)=>{const _0xcc104f=_0x56ec91;_0x3df318[_0xcc104f(0x203)]==this[_0xcc104f(0x1ef)][_0xcc104f(0x225)][_0xcc104f(0x227)]&&(this[_0xcc104f(0x1ff)](),_0x11b229());});}[_0x198abc(0x226)](){const _0x21fa7d=_0x198abc,_0xcdcdc7=new _0x3dba8f(this[_0x21fa7d(0x214)]),_0x1d34a3=this[_0x21fa7d(0x214)];return _0xcdcdc7[_0x21fa7d(0x21b)]({'icon':_0x3ea1ce,'label':_0x54e3dd(_0x1d34a3,_0x21fa7d(0x20d)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x21fa7d(0x1fd)}),_0xcdcdc7['on'](_0x21fa7d(0x20f),()=>{const _0x1ea925=_0x21fa7d;this[_0x1ea925(0x1ff)]();}),_0xcdcdc7[_0x21fa7d(0x1ee)](_0x21fa7d(0x221))['to'](this[_0x21fa7d(0x1ef)][_0x21fa7d(0x225)],_0x21fa7d(0x205),this,_0x21fa7d(0x221),(_0x7fc146,_0x46de01)=>!_0x7fc146&&_0x46de01),_0xcdcdc7;}[_0x198abc(0x21a)](){const _0x246666=_0x198abc,_0x249c6a=new _0x3dba8f(this[_0x246666(0x214)]),_0x33a5c6=this[_0x246666(0x211)],_0x2fe6a1=this[_0x246666(0x214)];_0x249c6a[_0x246666(0x21b)]({'label':_0x54e3dd(_0x2fe6a1,_0x246666(0x1f1)),'withText':!0x1,'icon':_0x5d529c,'tooltip':!0x0,'tooltipPosition':'sw','class':_0x246666(0x201)}),_0x249c6a[_0x246666(0x1ee)](_0x246666(0x202))['to'](_0x33a5c6,_0x246666(0x1f6)),_0x249c6a[_0x246666(0x1ee)](_0x246666(0x221))['to'](this,_0x246666(0x221)),_0x249c6a['on'](_0x246666(0x20f),()=>{const _0x393cbd=_0x246666;_0x33a5c6[_0x393cbd(0x1f6)]=!_0x33a5c6[_0x393cbd(0x1f6)],_0x33a5c6[_0x393cbd(0x1f6)]?this[_0x393cbd(0x217)][_0x393cbd(0x1fe)]():this[_0x393cbd(0x1fe)]();});const _0x551109=()=>{const _0x8afdab=_0x246666;_0x1903ec[_0x8afdab(0x21f)][_0x8afdab(0x1f2)](()=>{const _0x14e98e=_0x8afdab;if(_0x2fc624(this[_0x14e98e(0x227)])){const _0xb98767=new _0x3db01d(this[_0x14e98e(0x1ef)][_0x14e98e(0x225)][_0x14e98e(0x227)]),_0x5de40e=_0xb98767[_0x14e98e(0x216)],_0x4158bf=_0x14e98e(0x1ed)===_0x2fe6a1[_0x14e98e(0x218)]?_0x14e98e(0x20a):_0x14e98e(0x1f9);_0xb98767[_0x14e98e(0x208)](),_0x249c6a[_0x14e98e(0x227)][_0x14e98e(0x210)][_0x4158bf]=_0x5de40e-_0xb98767[_0x14e98e(0x216)]+0x1+'px';}});};return this[_0x246666(0x1ef)][_0x246666(0x225)]['on'](_0x246666(0x1f8),_0x551109),this['on'](_0x246666(0x1f3),_0x551109),_0x249c6a;}[_0x198abc(0x1ff)](){const _0x1ccf33=_0x198abc,_0x16db0e=this[_0x1ccf33(0x1ef)][_0x1ccf33(0x225)][_0x1ccf33(0x227)][_0x1ccf33(0x1fb)];this[_0x1ccf33(0x212)](_0x1ccf33(0x1ff),_0x16db0e);}[_0x198abc(0x1fe)](_0x22ab19){const _0x3c03e2=_0x198abc;-0x1===_0x22ab19?this[_0x3c03e2(0x206)][_0x3c03e2(0x204)]():this[_0x3c03e2(0x206)][_0x3c03e2(0x1fc)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1222d8=_0x3487;function _0x3487(_0x30737f,_0x83f95d){const _0x3e19e2=_0x3e19();return _0x3487=function(_0x34879a,_0x393505){_0x34879a=_0x34879a-0x9b;let _0x219d0e=_0x3e19e2[_0x34879a];return _0x219d0e;},_0x3487(_0x30737f,_0x83f95d);}(function(_0x3f14b4,_0x2d3e45){const _0x4b8b4d=_0x3487,_0x30adcc=_0x3f14b4();while(!![]){try{const _0x3fb639=-parseInt(_0x4b8b4d(0xb6))/0x1*(-parseInt(_0x4b8b4d(0x9d))/0x2)+parseInt(_0x4b8b4d(0xaa))/0x3*(parseInt(_0x4b8b4d(0xa1))/0x4)+parseInt(_0x4b8b4d(0xc0))/0x5+-parseInt(_0x4b8b4d(0xa2))/0x6*(-parseInt(_0x4b8b4d(0xaf))/0x7)+-parseInt(_0x4b8b4d(0xb0))/0x8+parseInt(_0x4b8b4d(0x9b))/0x9*(-parseInt(_0x4b8b4d(0xb7))/0xa)+parseInt(_0x4b8b4d(0xba))/0xb;if(_0x3fb639===_0x2d3e45)break;else _0x30adcc['push'](_0x30adcc['shift']());}catch(_0x23a0de){_0x30adcc['push'](_0x30adcc['shift']());}}}(_0x3e19,0xddfc2));import{ToolbarView as _0x572fd0,ButtonView as _0x52a094}from'ckeditor5/src/ui.js';import{getTranslation as _0x5be31a}from'../../utils/common-translations.js';function _0x3e19(){const _0x15bc0c=['toUpperCase','REPLACE','items','ck-hidden','5492675KERiSU','81IcNAuO','ck-ai-form__toolbar','948818pDVNPn','replaceButton','bindTemplate','Try\x20again','1364jtnCKz','6NImQgZ','tryAgainButton','_CONTENT','set','replace','bind','extendTemplate','mainAction','3624hJPXwP','locale','ck-button-action','_createButton','Insert\x20below','3068303ejEEAA','13791904fVCEEJ','label','Stop','insert','isVisible','stopButton','2DrnKzZ','1185130QlBXNb','AI_','insertButton','8824695xmJAZL','addMany'];_0x3e19=function(){return _0x15bc0c;};return _0x3e19();}export const AIFormToolbarViewMainActionLabel={'REPLACE':_0x1222d8(0xa6),'INSERT':_0x1222d8(0xb3)};export class AIFormToolbarView extends _0x572fd0{constructor(_0x25ade2){const _0xe142f7=_0x1222d8;super(_0x25ade2),this[_0xe142f7(0xa5)](_0xe142f7(0xb4),!0x1),this[_0xe142f7(0xa5)](_0xe142f7(0xa9),AIFormToolbarViewMainActionLabel[_0xe142f7(0xbd)]),this[_0xe142f7(0x9e)]=this[_0xe142f7(0xad)]('',_0xe142f7(0xac)),this[_0xe142f7(0x9e)][_0xe142f7(0xa7)](_0xe142f7(0xb1))['to'](this,_0xe142f7(0xa9),_0xdb2c1a=>_0x5be31a(_0x25ade2,_0xe142f7(0xb8)+_0xdb2c1a[_0xe142f7(0xbc)]()+_0xe142f7(0xa4))),this[_0xe142f7(0xb9)]=this[_0xe142f7(0xad)](_0x5be31a(_0x25ade2,_0xe142f7(0xae))),this[_0xe142f7(0xa3)]=this[_0xe142f7(0xad)](_0x5be31a(_0x25ade2,_0xe142f7(0xa0))),this[_0xe142f7(0xb5)]=this[_0xe142f7(0xad)](_0x5be31a(_0x25ade2,_0xe142f7(0xb2)));const _0x446cb5=this[_0xe142f7(0x9f)];this[_0xe142f7(0xa8)]({'attributes':{'class':[_0xe142f7(0x9c),_0x446cb5['if'](_0xe142f7(0xb4),_0xe142f7(0xbf),_0x4dc513=>!_0x4dc513)]}}),this[_0xe142f7(0xbe)][_0xe142f7(0xbb)]([this[_0xe142f7(0x9e)],this[_0xe142f7(0xb9)],this[_0xe142f7(0xa3)],this[_0xe142f7(0xb5)]]);}[_0x1222d8(0xad)](_0xf1d90,_0x538b73){const _0x2caa1f=_0x1222d8,_0x266390=new _0x52a094(this[_0x2caa1f(0xab)]);return _0x266390[_0x2caa1f(0xa5)]({'label':_0xf1d90,'class':_0x538b73||'','isVisible':!0x0,'withText':!0x0}),_0x266390;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x53f389=_0x1a9b;function _0x3ccd(){const _0x287be1=['insertButton','focusTracker','4332525DECxgd','isProcessing','prompt','bindTo','items','div','locale','startProcessing','AI_ERROR_FAILED','ck-ai-form-content','38643KflfEu','finishProcessing','label','focusFirst','13666626AoaCyb','listenTo','high','add','tryAgainEvent','373460OSpmpC','stopButton','5226872MDYicM','clearHistory','focus','_promptHistory','submitPrompt','keystrokes','replaceButton','execute','_createToolbar','_focusables','553221BuLMtl','9200946clxTJZ','_createPromptView','search','shift\x20+\x20tab','toolbar','render','chain','setTemplate','tryAgainButton','_createHistoryView','value','7pcADnf','element','handleError','historyGroupView','text','Empty\x20history','copyButtonView','createCollection','isEnabled','mainAction','tab','replaceContent','queryView','delegate','isVisible','focusCycler','20YXCYLP','bind','clear','errorView','Ask\x20AI\x20to\x20improve\x20generated\x20text','fire','stopProcessing','ck-ai-form','focusLast','reset','trim','promptView','ck-hidden','contentArea','submit','isError','fieldView','REPLACE','set','Ask\x20AI\x20to\x20edit\x20or\x20generate','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','insertContentBelow','4HCTPcK','bindTemplate'];_0x3ccd=function(){return _0x287be1;};return _0x3ccd();}(function(_0x398e96,_0x2b1320){const _0x35ad59=_0x1a9b,_0x210665=_0x398e96();while(!![]){try{const _0x5df207=-parseInt(_0x35ad59(0x1c1))/0x1+-parseInt(_0x35ad59(0x175))/0x2+-parseInt(_0x35ad59(0x181))/0x3*(parseInt(_0x35ad59(0x1b3))/0x4)+-parseInt(_0x35ad59(0x1b7))/0x5+parseInt(_0x35ad59(0x182))/0x6*(-parseInt(_0x35ad59(0x18d))/0x7)+parseInt(_0x35ad59(0x177))/0x8+parseInt(_0x35ad59(0x1c5))/0x9*(parseInt(_0x35ad59(0x19d))/0xa);if(_0x5df207===_0x2b1320)break;else _0x210665['push'](_0x210665['shift']());}catch(_0x39b493){_0x210665['push'](_0x210665['shift']());}}}(_0x3ccd,0xd6fe3));import{FocusTracker as _0x4d1ddb,KeystrokeHandler as _0x5e956e}from'ckeditor5/src/utils.js';import{View as _0x52304d,FocusCycler as _0xe97cad,createLabeledTextarea as _0x35cd01}from'ckeditor5/src/ui.js';import{AIFormToolbarView as _0x53f21f,AIFormToolbarViewMainActionLabel as _0x380811}from'./aiformtoolbarview.js';import{AIFormContentArea as _0xfcff3d}from'./aiformcontentarea.js';import{AIFormErrorView as _0x5914dd}from'./aiformerrorview.js';import{AIFormPromptView as _0x11f780}from'./aiformpromptview.js';import{AIHistoryListView as _0x1bfcef}from'./aihistorylistview.js';function _0x1a9b(_0x5d7d5f,_0x49a650){const _0x3ccd33=_0x3ccd();return _0x1a9b=function(_0x1a9b55,_0x248673){_0x1a9b55=_0x1a9b55-0x172;let _0x1776fd=_0x3ccd33[_0x1a9b55];return _0x1776fd;},_0x1a9b(_0x5d7d5f,_0x49a650);}import{AIHistoryListItemView as _0x518720}from'./aihistorylistitemview.js';import{PromptHistory as _0x17f3ae}from'./prompthistory.js';import{getTranslation as _0x405067}from'../../utils/common-translations.js';import{escape as _0x21f2ca}from'es-toolkit/compat';export class AIFormView extends _0x52304d{[_0x53f389(0x1b6)];[_0x53f389(0x17c)];[_0x53f389(0x1aa)];[_0x53f389(0x186)];[_0x53f389(0x1a8)];[_0x53f389(0x1a0)];[_0x53f389(0x180)];[_0x53f389(0x19c)];[_0x53f389(0x17a)];constructor(_0x18ae21,_0x369ee0,_0x483357=''){const _0x51eb5a=_0x53f389;super(_0x18ae21),this[_0x51eb5a(0x1af)](_0x51eb5a(0x195),!0x0),this[_0x51eb5a(0x1af)](_0x51eb5a(0x1b8),!0x1),this[_0x51eb5a(0x1af)](_0x51eb5a(0x1b9),''),this[_0x51eb5a(0x1af)](_0x51eb5a(0x18c),''),this[_0x51eb5a(0x1af)](_0x51eb5a(0x1ac),!0x1),this[_0x51eb5a(0x1af)](_0x51eb5a(0x196),_0x380811[_0x51eb5a(0x1ae)]),this[_0x51eb5a(0x17a)]=new _0x17f3ae(),this[_0x51eb5a(0x1a0)]=new _0x5914dd(_0x18ae21),this[_0x51eb5a(0x1aa)]=new _0xfcff3d(_0x18ae21,_0x483357),this[_0x51eb5a(0x1aa)][_0x51eb5a(0x19e)](_0x51eb5a(0x1b8))['to'](this),this[_0x51eb5a(0x1aa)][_0x51eb5a(0x19e)](_0x51eb5a(0x18c))['to'](this),this[_0x51eb5a(0x186)]=this[_0x51eb5a(0x17f)](),this[_0x51eb5a(0x186)][_0x51eb5a(0x19e)](_0x51eb5a(0x196))['to'](this),this[_0x51eb5a(0x1a8)]=this[_0x51eb5a(0x183)](),this[_0x51eb5a(0x1b6)]=new _0x4d1ddb(),this[_0x51eb5a(0x17c)]=new _0x5e956e(),this[_0x51eb5a(0x180)]=this[_0x51eb5a(0x194)]([this[_0x51eb5a(0x1aa)],this[_0x51eb5a(0x1aa)][_0x51eb5a(0x193)],this[_0x51eb5a(0x186)],this[_0x51eb5a(0x1a8)]]),this[_0x51eb5a(0x19c)]=new _0xe97cad({'focusables':this[_0x51eb5a(0x180)],'focusTracker':this[_0x51eb5a(0x1b6)],'keystrokeHandler':this[_0x51eb5a(0x17c)],'actions':{'focusPrevious':_0x51eb5a(0x185),'focusNext':_0x51eb5a(0x197)}}),this[_0x51eb5a(0x19c)][_0x51eb5a(0x188)](this[_0x51eb5a(0x1a8)][_0x51eb5a(0x19c)]),this[_0x51eb5a(0x1a8)][_0x51eb5a(0x199)][_0x51eb5a(0x1ad)][_0x51eb5a(0x19e)](_0x51eb5a(0x18c))['to'](this,_0x51eb5a(0x1b9));const _0x7f3ef4=this[_0x51eb5a(0x1b4)];this[_0x51eb5a(0x189)]({'tag':_0x51eb5a(0x1bc),'attributes':{'class':['ck',_0x51eb5a(0x1a4),_0x369ee0],'tabindex':'-1'},'children':[{'tag':_0x51eb5a(0x1bc),'attributes':{'class':['ck',_0x51eb5a(0x1c0)]},'children':[{'tag':_0x51eb5a(0x1bc),'attributes':{'class':[_0x7f3ef4['if'](_0x51eb5a(0x1ac),_0x51eb5a(0x1a9),_0x2ced17=>!_0x2ced17)]},'children':[this[_0x51eb5a(0x1a0)]]},this[_0x51eb5a(0x1aa)],this[_0x51eb5a(0x186)],this[_0x51eb5a(0x1a8)]]}]});}[_0x53f389(0x187)](){const _0x306b9c=_0x53f389;super[_0x306b9c(0x187)](),this[_0x306b9c(0x1b6)][_0x306b9c(0x173)](this[_0x306b9c(0x1aa)][_0x306b9c(0x18e)]),this[_0x306b9c(0x1b6)][_0x306b9c(0x173)](this[_0x306b9c(0x1aa)][_0x306b9c(0x193)][_0x306b9c(0x18e)]),this[_0x306b9c(0x1b6)][_0x306b9c(0x173)](this[_0x306b9c(0x186)][_0x306b9c(0x18e)]),this[_0x306b9c(0x1b6)][_0x306b9c(0x173)](this[_0x306b9c(0x1a8)][_0x306b9c(0x18e)]),this[_0x306b9c(0x17c)][_0x306b9c(0x1c6)](this[_0x306b9c(0x18e)]);}[_0x53f389(0x179)](_0x77bc86=0x1){const _0x371dcc=_0x53f389;-0x1===_0x77bc86?this[_0x371dcc(0x19c)][_0x371dcc(0x1a5)]():this[_0x371dcc(0x19c)][_0x371dcc(0x1c4)]();}[_0x53f389(0x1a6)](){const _0x937f57=_0x53f389;this[_0x937f57(0x1b9)]='',this[_0x937f57(0x18c)]='',this[_0x937f57(0x1ac)]=!0x1,this[_0x937f57(0x1a8)][_0x937f57(0x1a6)](),this[_0x937f57(0x1aa)][_0x937f57(0x19b)]=!0x1,this[_0x937f57(0x186)][_0x937f57(0x19b)]=!0x1;}[_0x53f389(0x183)](){const _0x152f0c=_0x53f389,_0x5376bd=this[_0x152f0c(0x1bd)],_0x1a1798=new _0x11f780(_0x5376bd,{'queryView':{'label':_0x405067(_0x5376bd,_0x152f0c(0x1b0)),'creator':_0x35cd01,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x405067(_0x5376bd,_0x152f0c(0x192)),'secondary':_0x405067(_0x5376bd,_0x152f0c(0x1b1))}}},'filteredView':this[_0x152f0c(0x18b)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x1a1798[_0x152f0c(0x19e)](_0x152f0c(0x195))['to'](this,_0x152f0c(0x195),this,_0x152f0c(0x1b8),(_0x10b304,_0x50505b)=>_0x10b304&&!_0x50505b),this[_0x152f0c(0x1c6)](_0x1a1798,_0x152f0c(0x1ab),(_0x488d25,_0x236118)=>{const _0x10dba7=_0x152f0c;this[_0x10dba7(0x1b9)]=_0x236118;const _0x5824dd=_0x21f2ca(_0x236118);this[_0x10dba7(0x1a2)](_0x10dba7(0x17b),_0x5824dd),_0x236118[_0x10dba7(0x1a7)]()&&this[_0x10dba7(0x17a)][_0x10dba7(0x173)]({'prompt':_0x5824dd},0x0);},{'priority':_0x152f0c(0x172)}),_0x1a1798;}[_0x53f389(0x18b)](){const _0x41493e=_0x53f389,_0x2cdc39=new _0x1bfcef(this[_0x41493e(0x1bd)]);return _0x2cdc39[_0x41493e(0x190)][_0x41493e(0x1bb)][_0x41493e(0x1ba)](this[_0x41493e(0x17a)])['as'](_0x518720),_0x2cdc39['on'](_0x41493e(0x178),()=>{const _0x102c57=_0x41493e;this[_0x102c57(0x17a)][_0x102c57(0x19f)](),this[_0x102c57(0x1a8)][_0x102c57(0x184)](''),this[_0x102c57(0x1a8)][_0x102c57(0x179)]();}),_0x2cdc39;}[_0x53f389(0x17f)](){const _0x30c2a8=_0x53f389,_0x2f4073=new _0x53f21f(this[_0x30c2a8(0x1bd)]);return _0x2f4073[_0x30c2a8(0x17d)][_0x30c2a8(0x19e)](_0x30c2a8(0x195))['to'](this,_0x30c2a8(0x195),this,_0x30c2a8(0x1b8),this,_0x30c2a8(0x18c),(_0x26db78,_0x14efea,_0x2e92de)=>_0x26db78&&!_0x14efea&&!!_0x2e92de),_0x2f4073[_0x30c2a8(0x17d)][_0x30c2a8(0x19a)](_0x30c2a8(0x17e))['to'](this,_0x30c2a8(0x198)),_0x2f4073[_0x30c2a8(0x1b5)][_0x30c2a8(0x19e)](_0x30c2a8(0x195))['to'](this,_0x30c2a8(0x195),this,_0x30c2a8(0x1b8),this,_0x30c2a8(0x18c),(_0xe263fa,_0x55cdfa,_0x17e687)=>_0xe263fa&&!_0x55cdfa&&!!_0x17e687),_0x2f4073[_0x30c2a8(0x1b5)][_0x30c2a8(0x19a)](_0x30c2a8(0x17e))['to'](this,_0x30c2a8(0x1b2)),_0x2f4073[_0x30c2a8(0x18a)][_0x30c2a8(0x19e)](_0x30c2a8(0x195))['to'](this,_0x30c2a8(0x195),this,_0x30c2a8(0x1b8),(_0x2cccff,_0x5a8421)=>_0x2cccff&&!_0x5a8421),_0x2f4073[_0x30c2a8(0x18a)][_0x30c2a8(0x19a)](_0x30c2a8(0x17e))['to'](this,_0x30c2a8(0x174)),_0x2f4073[_0x30c2a8(0x176)][_0x30c2a8(0x19e)](_0x30c2a8(0x195))['to'](this,_0x30c2a8(0x1b8)),_0x2f4073[_0x30c2a8(0x176)][_0x30c2a8(0x19a)](_0x30c2a8(0x17e))['to'](this,_0x30c2a8(0x1a3)),_0x2f4073;}[_0x53f389(0x1be)](){const _0x1cf302=_0x53f389;this[_0x1cf302(0x18c)]='',this[_0x1cf302(0x1ac)]=!0x1,this[_0x1cf302(0x1b8)]=!0x0,this[_0x1cf302(0x1aa)][_0x1cf302(0x19b)]=!0x0,this[_0x1cf302(0x186)][_0x1cf302(0x19b)]=!0x0,this[_0x1cf302(0x1aa)][_0x1cf302(0x179)]();}[_0x53f389(0x1c2)](){const _0x27cd84=_0x53f389,_0x406e07=this[_0x27cd84(0x1bd)];this[_0x27cd84(0x1b8)]=!0x1,this[_0x27cd84(0x1b9)]='',this[_0x27cd84(0x1a8)][_0x27cd84(0x1a6)](),this[_0x27cd84(0x18c)]&&(this[_0x27cd84(0x1a8)][_0x27cd84(0x199)][_0x27cd84(0x1c3)]=_0x405067(_0x406e07,_0x27cd84(0x1a1)));}[_0x53f389(0x18f)](_0x1e113f){const _0x18d5ba=_0x53f389,_0x20e022=this[_0x18d5ba(0x1bd)];this[_0x18d5ba(0x1c2)](),this[_0x18d5ba(0x1ac)]=!0x0,this[_0x18d5ba(0x1a0)][_0x18d5ba(0x191)]=_0x1e113f||_0x405067(_0x20e022,_0x18d5ba(0x1bf)),this[_0x18d5ba(0x18c)]||(this[_0x18d5ba(0x1aa)][_0x18d5ba(0x19b)]=!0x1);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x16a16b,_0x5ec8b6){const _0x77a8fb=_0x2829,_0x1f68c9=_0x16a16b();while(!![]){try{const _0x115c5a=-parseInt(_0x77a8fb(0x1f5))/0x1+-parseInt(_0x77a8fb(0x1fc))/0x2*(parseInt(_0x77a8fb(0x1f2))/0x3)+-parseInt(_0x77a8fb(0x1fb))/0x4*(parseInt(_0x77a8fb(0x1f7))/0x5)+parseInt(_0x77a8fb(0x1fd))/0x6+parseInt(_0x77a8fb(0x1ff))/0x7*(-parseInt(_0x77a8fb(0x1f0))/0x8)+-parseInt(_0x77a8fb(0x1fe))/0x9*(parseInt(_0x77a8fb(0x1f1))/0xa)+parseInt(_0x77a8fb(0x1f4))/0xb;if(_0x115c5a===_0x5ec8b6)break;else _0x1f68c9['push'](_0x1f68c9['shift']());}catch(_0x36d7e8){_0x1f68c9['push'](_0x1f68c9['shift']());}}}(_0x5812,0xa630a));function _0x2829(_0x1e3435,_0x3bb55b){const _0x581237=_0x5812();return _0x2829=function(_0x2829cf,_0x2cd1d8){_0x2829cf=_0x2829cf-0x1ee;let _0x26345d=_0x581237[_0x2829cf];return _0x26345d;},_0x2829(_0x1e3435,_0x3bb55b);}import{ListItemView as _0x5c9cb1,ButtonView as _0x46e41a,ButtonLabelView as _0x4d985e}from'ckeditor5/src/ui.js';import{unescape as _0x5706a5}from'es-toolkit/compat';function _0x5812(){const _0x2b867e=['add','8kVqhEd','2290tlkSjC','3827082STYVXS','fire','29684655riAyXI','26052hJMZik','prompt','443995hpaGDc','locale','children','set','36sbzSRi','2GqcnEC','7784466GGFlfW','37458OnlEZW','1828869haFIhT','execute'];_0x5812=function(){return _0x2b867e;};return _0x5812();}export class AIHistoryListItemView extends _0x5c9cb1{constructor(_0x422175){const _0xccb339=_0x2829;super();const _0x2d75c2=new _0x4d985e(),_0x49f0cf=new _0x46e41a(this[_0xccb339(0x1f8)],_0x2d75c2);this[_0xccb339(0x1f9)][_0xccb339(0x1ef)](_0x49f0cf),_0x49f0cf[_0xccb339(0x1fa)]({'label':_0x422175[_0xccb339(0x1f6)],'withText':!0x0}),_0x49f0cf['on'](_0xccb339(0x1ee),()=>{const _0x5da933=_0xccb339;this[_0x5da933(0x1f3)](_0x5da933(0x1ee),{'value':_0x5706a5(_0x422175[_0x5da933(0x1f6)])});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x24a110=_0x1925;(function(_0x4b1111,_0x1ff777){const _0xfaa194=_0x1925,_0xa4cd1e=_0x4b1111();while(!![]){try{const _0x27d3e2=-parseInt(_0xfaa194(0x1ee))/0x1+-parseInt(_0xfaa194(0x1f0))/0x2+-parseInt(_0xfaa194(0x1dc))/0x3+parseInt(_0xfaa194(0x1e4))/0x4*(-parseInt(_0xfaa194(0x1da))/0x5)+-parseInt(_0xfaa194(0x1e2))/0x6*(-parseInt(_0xfaa194(0x1d7))/0x7)+-parseInt(_0xfaa194(0x1dd))/0x8+parseInt(_0xfaa194(0x1ec))/0x9*(parseInt(_0xfaa194(0x1df))/0xa);if(_0x27d3e2===_0x1ff777)break;else _0xa4cd1e['push'](_0xa4cd1e['shift']());}catch(_0x1871de){_0xa4cd1e['push'](_0xa4cd1e['shift']());}}}(_0x29f2,0xefeb4));function _0x1925(_0x1bd24e,_0x582c03){const _0x29f292=_0x29f2();return _0x1925=function(_0x19251c,_0x201275){_0x19251c=_0x19251c-0x1d6;let _0x4f4000=_0x29f292[_0x19251c];return _0x4f4000;},_0x1925(_0x1bd24e,_0x582c03);}import{ListView as _0x34785d,ListItemGroupView as _0x36dadb,ButtonView as _0x331901}from'ckeditor5/src/ui.js';import{getTranslation as _0x2cdc0b}from'../../utils/common-translations.js';function _0x29f2(){const _0x4ad7bd=['historyGroupView','Prompt\x20history','6597ZZUPEd','_createClearHistoryButton','803505RagxTu','items','2850300gKqOsa','set','2152822MFquzf','Clear','filter','380JDHltH','children','471903qPZzvt','13182768zJhdWk','clearHistory','57880RfacCh','fire','add','18vgByxF','delegate','7828DleACX','clearHistoryButton','locale','execute','label','length'];_0x29f2=function(){return _0x4ad7bd;};return _0x29f2();}export class AIHistoryListView extends _0x34785d{[_0x24a110(0x1ea)];[_0x24a110(0x1e5)];constructor(_0x318cdf){const _0x2e5a4e=_0x24a110;super(_0x318cdf),this[_0x2e5a4e(0x1e5)]=this[_0x2e5a4e(0x1ed)](),this[_0x2e5a4e(0x1ea)]=new _0x36dadb(),this[_0x2e5a4e(0x1ea)][_0x2e5a4e(0x1db)][_0x2e5a4e(0x1e1)](this[_0x2e5a4e(0x1e5)],0x1),this[_0x2e5a4e(0x1ea)][_0x2e5a4e(0x1e8)]=_0x2cdc0b(_0x318cdf,_0x2e5a4e(0x1eb)),this[_0x2e5a4e(0x1ea)][_0x2e5a4e(0x1ef)][_0x2e5a4e(0x1e3)](_0x2e5a4e(0x1e7))['to'](this),this[_0x2e5a4e(0x1ef)][_0x2e5a4e(0x1e1)](this[_0x2e5a4e(0x1ea)]);}[_0x24a110(0x1d9)](){const _0x35468d=_0x24a110;let _0x461bc3=0x0;for(const _0xc0b88 of this[_0x35468d(0x1ef)])_0x461bc3+=_0xc0b88[_0x35468d(0x1ef)][_0x35468d(0x1e9)];return{'resultsCount':_0x461bc3,'totalItemsCount':_0x461bc3};}[_0x24a110(0x1ed)](){const _0xf87ec9=_0x24a110,_0x5b19fa=this[_0xf87ec9(0x1e6)],_0x3872b2=new _0x331901(this[_0xf87ec9(0x1e6)]);return _0x3872b2[_0xf87ec9(0x1d6)]({'label':'('+_0x2cdc0b(_0x5b19fa,_0xf87ec9(0x1d8))+')','withText':!0x0}),_0x3872b2['on'](_0xf87ec9(0x1e7),()=>this[_0xf87ec9(0x1e0)](_0xf87ec9(0x1de))),_0x3872b2;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x1b5c46=_0x8a41;function _0x8a41(_0x1aa979,_0x2abb5f){const _0x3749f3=_0x3749();return _0x8a41=function(_0x8a41f5,_0x1972bc){_0x8a41f5=_0x8a41f5-0x134;let _0xb83531=_0x3749f3[_0x8a41f5];return _0xb83531;},_0x8a41(_0x1aa979,_0x2abb5f);}(function(_0x2b90d0,_0x5e822b){const _0x1e8d8b=_0x8a41,_0x1d1c38=_0x2b90d0();while(!![]){try{const _0x5ae3f0=-parseInt(_0x1e8d8b(0x147))/0x1*(-parseInt(_0x1e8d8b(0x14b))/0x2)+parseInt(_0x1e8d8b(0x149))/0x3+parseInt(_0x1e8d8b(0x139))/0x4*(-parseInt(_0x1e8d8b(0x13b))/0x5)+-parseInt(_0x1e8d8b(0x13e))/0x6+parseInt(_0x1e8d8b(0x144))/0x7+-parseInt(_0x1e8d8b(0x140))/0x8*(-parseInt(_0x1e8d8b(0x134))/0x9)+-parseInt(_0x1e8d8b(0x137))/0xa*(-parseInt(_0x1e8d8b(0x135))/0xb);if(_0x5ae3f0===_0x5e822b)break;else _0x1d1c38['push'](_0x1d1c38['shift']());}catch(_0x188dfd){_0x1d1c38['push'](_0x1d1c38['shift']());}}}(_0x3749,0x2804d));import{Collection as _0xb37f2e}from'ckeditor5/src/utils.js';const ts=_0x1b5c46(0x13c);export class PromptHistory extends _0xb37f2e{constructor(){const _0x47326e=_0x1b5c46;super(),this[_0x47326e(0x14d)](),this['on'](_0x47326e(0x14c),(_0x25f35a,_0x5cdd27)=>{const _0xffd1f3=_0x47326e,_0x4f86fb=os(_0x5cdd27[_0xffd1f3(0x148)]);for(const _0x45d720 of this)if(_0x45d720!=_0x5cdd27&&os(_0x45d720[_0xffd1f3(0x148)])===_0x4f86fb){this[_0xffd1f3(0x142)](_0x45d720);break;}this[_0xffd1f3(0x141)]>0x14&&this[_0xffd1f3(0x142)](this[_0xffd1f3(0x13d)]),this[_0xffd1f3(0x14e)]();}),this['on'](_0x47326e(0x142),()=>{const _0x30768e=_0x47326e;this[_0x30768e(0x14e)]();});}[_0x1b5c46(0x14d)](){const _0x599b42=_0x1b5c46,_0x514c27=sessionStorage[_0x599b42(0x138)](ts)||'[]';this[_0x599b42(0x13f)](JSON[_0x599b42(0x14a)](_0x514c27));}[_0x1b5c46(0x14e)](){const _0x59a499=_0x1b5c46;sessionStorage[_0x59a499(0x145)](ts,JSON[_0x59a499(0x13a)](this[_0x59a499(0x136)](_0x1f3bae=>_0x1f3bae)));}}function _0x3749(){const _0x550d06=['955968ewGNsR','parse','104DRqUqJ','add','_loadFromSessionStorage','_saveToSessionStorage','11205ISacyp','257939kgnQbr','map','20yYAKOL','getItem','929468TpMTAq','stringify','5MlTKey','CKEditor/AIFormView/PromptHistory','last','1320516SzMzGc','addMany','16bOwbKr','length','remove','trim','444626rcDJvU','setItem','toLowerCase','3554MJEBSQ','prompt'];_0x3749=function(){return _0x550d06;};return _0x3749();}function os(_0x3f4368){const _0x186f7a=_0x1b5c46;return _0x3f4368[_0x186f7a(0x146)]()[_0x186f7a(0x143)]();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x52b0(_0x11a083,_0x37f64a){const _0x164381=_0x1643();return _0x52b0=function(_0x52b060,_0x18cbfc){_0x52b060=_0x52b060-0xeb;let _0x32b938=_0x164381[_0x52b060];return _0x32b938;},_0x52b0(_0x11a083,_0x37f64a);}const _0x15ea53=_0x52b0;(function(_0x26c2d7,_0x10a934){const _0x1d4b3c=_0x52b0,_0x1ba637=_0x26c2d7();while(!![]){try{const _0x41411e=-parseInt(_0x1d4b3c(0x110))/0x1+parseInt(_0x1d4b3c(0x106))/0x2*(parseInt(_0x1d4b3c(0xed))/0x3)+parseInt(_0x1d4b3c(0xfd))/0x4+-parseInt(_0x1d4b3c(0x10c))/0x5*(parseInt(_0x1d4b3c(0xf4))/0x6)+-parseInt(_0x1d4b3c(0x116))/0x7+parseInt(_0x1d4b3c(0x103))/0x8*(-parseInt(_0x1d4b3c(0x115))/0x9)+-parseInt(_0x1d4b3c(0x113))/0xa*(-parseInt(_0x1d4b3c(0x108))/0xb);if(_0x41411e===_0x10a934)break;else _0x1ba637['push'](_0x1ba637['shift']());}catch(_0xfd58bc){_0x1ba637['push'](_0x1ba637['shift']());}}}(_0x1643,0x8c930));import{Command as _0x435476}from'ckeditor5/src/core.js';import{AIAssistantUI as _0x34903b}from'../aiassistantui.js';export class ShowAIAssistantCommand extends _0x435476{[_0x15ea53(0xfc)];constructor(_0x307a8e,_0x5aa201){const _0xc28022=_0x15ea53;super(_0x307a8e),this[_0xc28022(0xfc)]=_0x5aa201,this[_0xc28022(0xeb)](_0xc28022(0xf7),[]),this['on'](_0xc28022(0x104),(_0x39d8e2,_0x4a8549,_0x4638dc)=>{const _0x4eb1f9=_0xc28022;this[_0x4eb1f9(0x102)]&&(this[_0x4eb1f9(0xf7)]=F(this[_0x4eb1f9(0xfc)],_0x4638dc));}),this[_0xc28022(0xeb)](_0xc28022(0xef),!0x1),this['on'](_0xc28022(0xf5),(_0x415893,_0x36ed83,_0x4a771a)=>{const _0x4da2db=_0xc28022;this[_0x4da2db(0xf7)]=_0x4a771a?F(this[_0x4da2db(0xfc)],this[_0x4da2db(0xef)]):[];});}[_0x15ea53(0x10a)](){const _0xb4f9e2=_0x15ea53,_0x1081c7=this[_0xb4f9e2(0x10e)][_0xb4f9e2(0xec)];this[_0xb4f9e2(0xef)]=function(_0x3c895e){const _0x3562d8=_0xb4f9e2,_0x16137b=_0x3c895e[_0x3562d8(0x101)][_0x3562d8(0xf0)];return _0x16137b[_0x3562d8(0x107)]?0x0!==[..._0x16137b[_0x3562d8(0x105)]()][_0x3562d8(0x10b)]&&![..._0x16137b[_0x3562d8(0x105)]()][0x0][_0x3562d8(0x10d)]:!!_0x3c895e[_0x3562d8(0xfb)](_0x16137b[_0x3562d8(0xf1)]());}(_0x1081c7);const _0xccedaa=_0x1081c7[_0xb4f9e2(0x101)][_0xb4f9e2(0xf0)],_0x1c509f=this[_0xb4f9e2(0x10e)][_0xb4f9e2(0x10f)][_0xb4f9e2(0x114)](_0xb4f9e2(0x109));for(const _0x321657 of _0xccedaa[_0xb4f9e2(0xfe)]())for(const _0x426846 of _0x321657[_0xb4f9e2(0xf8)]())if(_0x426846['is'](_0xb4f9e2(0xf9))&&_0x1c509f[_0xb4f9e2(0x100)](_0x426846[_0xb4f9e2(0xee)]))return void(this[_0xb4f9e2(0x102)]=!0x1);this[_0xb4f9e2(0x102)]=!0x0;}[_0x15ea53(0xf3)](_0x539acd='',_0x1004e9='',_0x5e07e8=_0x15ea53(0xfa)){const _0x57565f=_0x15ea53;this[_0x57565f(0x10e)][_0x57565f(0x111)][_0x57565f(0x114)](_0x34903b)[_0x57565f(0xf2)](_0x539acd,_0x1004e9,_0x5e07e8);}}function _0x1643(){const _0x3ddf10=['document','isEnabled','7704InxAQv','change:_hasContext','getSelectedBlocks','46SOeGZj','isCollapsed','11xeBzjd','ai.aiAssistant.disabledElements','refresh','length','5PRbkCY','isEmpty','editor','config','823231sHGrtX','plugins','requiresContent','15489130wOYPDm','get','5967WvzbYq','4375462qocwwI','from','set','model','145989tzkezn','name','_hasContext','selection','getFirstRange','showUI','execute','4698294KEpnkm','change:isEnabled','add','enabledCommandsIds','getItems','element','custom','hasContent','_commandDefinitions','3109780ClWgMd','getRanges','values','includes'];_0x1643=function(){return _0x3ddf10;};return _0x1643();}function F(_0x4922ce,_0x40f66b){const _0x7740a0=_0x15ea53,_0x2e76a8=new Set();for(const _0x344ba9 of _0x4922ce[_0x7740a0(0xff)]())(_0x40f66b||!0x1===_0x344ba9[_0x7740a0(0x112)])&&_0x2e76a8[_0x7740a0(0xf6)](_0x344ba9['id']);return Array[_0x7740a0(0x117)](_0x2e76a8);}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(
|
|
23
|
+
export function getTranslation(_0x4bb1d7,_0x280700,_0x46bc38){const t=_0x4bb1d7['t'];switch(_0x280700){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',_0x46bc38);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x46bc38);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'},_0x46bc38);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 _0x280700;}}
|
|
@@ -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(_0x412ebc,_0x58295a){const _0x283d74=(0x0,_0x58295a['t'])('Other');return _0x412ebc['length']?'groupId'in _0x412ebc[0x0]?_0x412ebc:[{'groupId':'_ungrouppedCommands','groupLabel':_0x283d74,'order':0x1/0x0,'commands':_0x412ebc}]:[{'groupId':'_ungrouppedCommands','groupLabel':_0x283d74,'order':0x1/0x0,'commands':[]}];}
|
package/theme/ai-form.css
CHANGED
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
|
|
29
29
|
@mixin ck-media-phone {
|
|
30
30
|
/* Allow the for the layout to be fluid in narrow viewports to avoid breaking it due to limited
|
|
31
|
-
* horizontal space (https://github.com/
|
|
31
|
+
* horizontal space (https://github.com/ckeditor/ckeditor5-commercial/issues/5913). */
|
|
32
32
|
--ck-ai-form-view-width: 100vw;
|
|
33
33
|
}
|
|
34
34
|
|
|
@@ -193,7 +193,7 @@
|
|
|
193
193
|
|
|
194
194
|
/* Squash the textarea horizontally if necessary on narrow layouts
|
|
195
195
|
* to avoid breaking the layout even at the cost of the placeholder
|
|
196
|
-
* being cut off (https://github.com/
|
|
196
|
+
* being cut off (https://github.com/ckeditor/ckeditor5-commercial/issues/5913). */
|
|
197
197
|
@mixin ck-media-phone {
|
|
198
198
|
--ck-input-width: auto;
|
|
199
199
|
}
|