@ckeditor/ckeditor5-ai 46.0.0-alpha.0 → 46.0.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/dist/index.js +2 -2
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +9 -9
- package/src/adapters/aiadapter.js +1 -1
- package/src/adapters/aitextadapter.js +1 -1
- package/src/adapters/awstextadapter.js +1 -1
- package/src/adapters/openaitextadapter.d.ts +1 -2
- 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 _0x5450(_0x121989,_0xf943d2){const _0x5a67e8=_0x5a67();return _0x5450=function(_0x5450e2,_0x4c53a4){_0x5450e2=_0x5450e2-0x77;let _0x4e1ba8=_0x5a67e8[_0x5450e2];return _0x4e1ba8;},_0x5450(_0x121989,_0xf943d2);}function _0x5a67(){const _0x508e2d=['ck-ai-form__content-area-wrapper','ck-ai-form__content-area','render','-9999px','isProcessing','ck-hidden','AI\x20is\x20writing...','setEndBefore','text/html','setTemplate','copyButtonView','smooth','text/plain','_copyHTMLToClipboard','execute','body','querySelector','removeAllRanges','<span>]</span>','\x20ck-ai-form__copy-button--copied','ck-ai-form__loader','createRange','icon','_createLoader','element','mousedown','bindTemplate','getSelection','ck-content','clipboard','locale','wheel','class','contentFieldView','ck-ai-form__content-area--processing','innerHTML','6388agHrgU','.ck-ai-form__loader','set','12IUlCEe','523620qRyNZV','listenTo','div','isVisible','ck-ai-form__content-field','createElement','copy','firstElementChild','1166221vxeQSs','appendLoader','4311890WPgvEB','74578aBvXqu','appendChild','scrollTo','left','2161750eAYVuu','change:isProcessing','change:value','position','22KevChm','absolute','Copy','isEnabled','execCommand','style','loaderView','scrollHeight','remove','ck-reset_all-excluded','setStartAfter','value','bind','focus','textContent','lastElementChild','<span>[</span>','write','363vYMAFX','23589hnukcg','setContent','_createCopyButton','1056yhpxrc','ClipboardItem','ck-ai-form__copy-button','addRange','ck-ai-form__copy-button-wrapper'];_0x5a67=function(){return _0x508e2d;};return _0x5a67();}const _0x119fa0=_0x5450;(function(_0x49891f,_0x457472){const _0x45270c=_0x5450,_0x451a75=_0x49891f();while(!![]){try{const _0x334a2a=parseInt(_0x45270c(0x8d))/0x1+-parseInt(_0x45270c(0x82))/0x2+-parseInt(_0x45270c(0xa7))/0x3*(parseInt(_0x45270c(0x7e))/0x4)+parseInt(_0x45270c(0x91))/0x5+parseInt(_0x45270c(0x81))/0x6*(-parseInt(_0x45270c(0x8a))/0x7)+parseInt(_0x45270c(0xab))/0x8*(-parseInt(_0x45270c(0xa8))/0x9)+parseInt(_0x45270c(0x8c))/0xa*(parseInt(_0x45270c(0x95))/0xb);if(_0x334a2a===_0x457472)break;else _0x451a75['push'](_0x451a75['shift']());}catch(_0x48f111){_0x451a75['push'](_0x451a75['shift']());}}}(_0x5a67,0x39649));import{global as _0x3f6d91}from'ckeditor5/src/utils.js';import{View as _0x2df446,ButtonView as _0x122df5,SpinnerView as _0x1ee570}from'ckeditor5/src/ui.js';import{IconCheck as _0x20043c,IconCopy as _0x2a67f8}from'ckeditor5/src/icons.js';import{getTranslation as _0x256597}from'../../utils/common-translations.js';export class AIFormContentArea extends _0x2df446{[_0x119fa0(0x7b)];[_0x119fa0(0xba)];constructor(_0x1ff734,_0x2d1a2c=''){const _0x26b119=_0x119fa0;super(_0x1ff734),this[_0x26b119(0x80)]({'value':null,'isVisible':!0x1,'isProcessing':!0x1});const _0x4904a1=this[_0x26b119(0xca)];this[_0x26b119(0x7b)]=new ContentFieldView(_0x1ff734,_0x2d1a2c),this[_0x26b119(0xba)]=this[_0x26b119(0xaa)](),this[_0x26b119(0xb9)]({'tag':_0x26b119(0x84),'attributes':{'class':['ck',_0x26b119(0xb0),_0x4904a1['if'](_0x26b119(0x85),_0x26b119(0xb5),_0x563319=>!_0x563319)],'tabindex':'-1'},'children':[{'tag':_0x26b119(0x84),'attributes':{'class':['ck',_0x26b119(0xb1),_0x4904a1['if'](_0x26b119(0xb4),_0x26b119(0x7c))]},'children':[this[_0x26b119(0x7b)],{'tag':_0x26b119(0x84),'attributes':{'class':['ck',_0x26b119(0xaf)]},'children':[this[_0x26b119(0xba)]]}]}]});}[_0x119fa0(0xb2)](){const _0x279ffc=_0x119fa0;super[_0x279ffc(0xb2)](),this[_0x279ffc(0xa0)]&&this[_0x279ffc(0x7b)][_0x279ffc(0xa9)](this[_0x279ffc(0xa0)]);let _0x1c0daf=!0x1;this['on'](_0x279ffc(0x93),(_0x24a564,_0x14572c,_0x5695af)=>{const _0x44bf8b=_0x279ffc,_0x67c2e8=!this[_0x44bf8b(0x7b)][_0x44bf8b(0xc8)][_0x44bf8b(0xc0)](_0x44bf8b(0x7f));this[_0x44bf8b(0x7b)][_0x44bf8b(0xa9)](_0x5695af),this[_0x44bf8b(0xb4)]&&_0x67c2e8&&!_0x1c0daf&&this[_0x44bf8b(0xc8)][_0x44bf8b(0x8f)]({'top':this[_0x44bf8b(0xc8)][_0x44bf8b(0x9c)],'behavior':_0x44bf8b(0xbb)});}),this['on'](_0x279ffc(0x92),(_0x19fb48,_0xa39409,_0x415f55)=>{const _0x36e734=_0x279ffc;_0x1c0daf=!0x1,_0x415f55?(this[_0x36e734(0xa0)]=null,this[_0x36e734(0x7b)][_0x36e734(0x8b)]()):this[_0x36e734(0xa0)]||this[_0x36e734(0x7b)][_0x36e734(0xa9)]('');}),this[_0x279ffc(0x83)](this[_0x279ffc(0xc8)],_0x279ffc(0x79),()=>{_0x1c0daf=!0x0;}),this[_0x279ffc(0x83)](this[_0x279ffc(0xc8)],_0x279ffc(0xc9),()=>{_0x1c0daf=!0x0;});}[_0x119fa0(0xa2)](){const _0x5d36aa=_0x119fa0;this[_0x5d36aa(0xc8)][_0x5d36aa(0xa2)]();}[_0x119fa0(0xaa)](){const _0x4fc074=_0x119fa0,_0x19e4f2=this[_0x4fc074(0x78)],_0x22be83=new _0x122df5(this[_0x4fc074(0x78)]),_0x39b590=_0x4fc074(0xad);return _0x22be83[_0x4fc074(0x80)]({'label':_0x256597(_0x19e4f2,_0x4fc074(0x97)),'icon':_0x2a67f8,'class':_0x39b590,'tooltip':!0x0}),_0x22be83[_0x4fc074(0xa1)](_0x4fc074(0x85))['to'](this,_0x4fc074(0xa0),_0x36d5be=>!!_0x36d5be),_0x22be83[_0x4fc074(0xa1)](_0x4fc074(0x98))['to'](this,_0x4fc074(0xb4),_0x2ef1e5=>!_0x2ef1e5),_0x22be83['on'](_0x4fc074(0xbe),()=>{const _0x22c065=_0x4fc074;this[_0x22c065(0xbd)](this[_0x22c065(0x7b)][_0x22c065(0xc8)]),_0x22be83[_0x22c065(0xc6)]=_0x20043c,_0x22be83[_0x22c065(0x7a)]=_0x39b590+_0x22c065(0xc3),this[_0x22c065(0xa2)](),setTimeout(()=>{const _0x4160a3=_0x22c065;_0x22be83[_0x4160a3(0xc6)]=_0x2a67f8,_0x22be83[_0x4160a3(0x7a)]=_0x39b590;},0x3e8);}),_0x22be83;}[_0x119fa0(0xbd)](_0x10927c){const _0x41b38f=_0x119fa0,{window:_0xde0709,document:_0x5eadca}=_0x3f6d91;if(_0xde0709[_0x41b38f(0xac)]){const {Blob:_0x28c71d,ClipboardItem:_0x3ff263}=_0xde0709,_0x1b2d5a=[new _0x3ff263({'text/html':new _0x28c71d([_0x10927c[_0x41b38f(0x7d)]],{'type':_0x41b38f(0xb8)}),'text/plain':new _0x28c71d([_0x10927c[_0x41b38f(0xa3)]||''],{'type':_0x41b38f(0xbc)})})];navigator[_0x41b38f(0x77)][_0x41b38f(0xa6)](_0x1b2d5a);}else{const _0x412a4c=_0x5eadca[_0x41b38f(0x87)](_0x41b38f(0x84));_0x412a4c[_0x41b38f(0x9a)][_0x41b38f(0x94)]=_0x41b38f(0x96),_0x412a4c[_0x41b38f(0x9a)][_0x41b38f(0x90)]=_0x41b38f(0xb3),_0x412a4c[_0x41b38f(0x7d)]=_0x41b38f(0xa5)+_0x10927c[_0x41b38f(0x7d)]+_0x41b38f(0xc2),_0x5eadca[_0x41b38f(0xbf)][_0x41b38f(0x8e)](_0x412a4c);const _0x4aeabc=_0x5eadca[_0x41b38f(0xc5)]();_0x4aeabc[_0x41b38f(0x9f)](_0x412a4c[_0x41b38f(0x89)]),_0x4aeabc[_0x41b38f(0xb7)](_0x412a4c[_0x41b38f(0xa4)]);const _0x5a3b2a=_0xde0709[_0x41b38f(0xcb)]();_0x5a3b2a[_0x41b38f(0xc1)](),_0x5a3b2a[_0x41b38f(0xae)](_0x4aeabc),_0x5eadca[_0x41b38f(0x99)](_0x41b38f(0x88)),_0x412a4c[_0x41b38f(0x9d)]();}}}export class ContentFieldView extends _0x2df446{constructor(_0x49be65,_0xe14fdc=''){const _0xf73bcf=_0x119fa0;super(_0x49be65),this[_0xf73bcf(0x9b)]=this[_0xf73bcf(0xc7)](),this[_0xf73bcf(0xb9)]({'tag':_0xf73bcf(0x84),'attributes':{'class':['ck',_0xf73bcf(0xcc),_0xe14fdc,_0xf73bcf(0x9e),_0xf73bcf(0x86)]}});}[_0x119fa0(0xa9)](_0xa2f203){const _0x265b86=_0x119fa0;this[_0x265b86(0xc8)][_0x265b86(0x7d)]=_0xa2f203;}[_0x119fa0(0x8b)](){const _0x36dae3=_0x119fa0;this[_0x36dae3(0xc8)][_0x36dae3(0x8e)](this[_0x36dae3(0x9b)][_0x36dae3(0xc8)]);}[_0x119fa0(0xc7)](){const _0x43f4dd=_0x119fa0,_0x3aa458=new _0x2df446(),_0x45242d=this[_0x43f4dd(0x78)],_0x2ad71=new _0x1ee570();return _0x2ad71[_0x43f4dd(0x85)]=!0x0,_0x3aa458[_0x43f4dd(0xb9)]({'tag':_0x43f4dd(0x84),'attributes':{'class':['ck',_0x43f4dd(0xc4)]},'children':[_0x2ad71,{'text':_0x256597(_0x45242d,_0x43f4dd(0xb6))}]}),_0x3aa458[_0x43f4dd(0xb2)](),_0x3aa458;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0xcb4333,_0x3ee3b4){const _0x156cca=_0x105a,_0x35eb71=_0xcb4333();while(!![]){try{const _0x3a5009=-parseInt(_0x156cca(0x189))/0x1+parseInt(_0x156cca(0x18e))/0x2*(-parseInt(_0x156cca(0x188))/0x3)+-parseInt(_0x156cca(0x18f))/0x4+-parseInt(_0x156cca(0x184))/0x5*(-parseInt(_0x156cca(0x191))/0x6)+-parseInt(_0x156cca(0x18a))/0x7*(parseInt(_0x156cca(0x18d))/0x8)+parseInt(_0x156cca(0x185))/0x9+parseInt(_0x156cca(0x192))/0xa;if(_0x3a5009===_0x3ee3b4)break;else _0x35eb71['push'](_0x35eb71['shift']());}catch(_0x45f2ab){_0x35eb71['push'](_0x35eb71['shift']());}}}(_0x5c79,0x5a93e));import{IconError as _0x2146dc}from'ckeditor5/src/icons.js';import{View as _0x304ed4,IconView as _0x293ca0}from'ckeditor5/src/ui.js';function _0x105a(_0x4f1f81,_0x524e04){const _0x5c7957=_0x5c79();return _0x105a=function(_0x105a1b,_0x3529f4){_0x105a1b=_0x105a1b-0x182;let _0x3dcc13=_0x5c7957[_0x105a1b];return _0x3dcc13;},_0x105a(_0x4f1f81,_0x524e04);}export class AIFormErrorView extends _0x304ed4{constructor(_0x15890a,_0x5f5441=''){const _0x3845a8=_0x105a;super(_0x15890a);const _0x150c42=new _0x293ca0(),_0xac49db=this[_0x3845a8(0x183)];this[_0x3845a8(0x18c)](_0x3845a8(0x187),_0x5f5441),_0x150c42[_0x3845a8(0x18b)]=_0x2146dc,this[_0x3845a8(0x186)]({'tag':_0x3845a8(0x190),'attributes':{'class':['ck',_0x3845a8(0x182)]},'children':[_0x150c42,{'text':_0xac49db['to'](_0x3845a8(0x187))}]});}}function _0x5c79(){const _0x259623=['content','set','1944mOpdpf','664148jIXRbo','706696edzCXu','div','209796dsQZXu','9601060zwhZNH','ck-ai-form__error','bindTemplate','35IvwokV','1580958IrWmSk','setTemplate','text','3cflLnv','257533NXIayV','7007EjxQsG'];_0x5c79=function(){return _0x259623;};return _0x5c79();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x37c142=_0x5f28;(function(_0x4e8049,_0xf8dac){const _0xb2242e=_0x5f28,_0x125d89=_0x4e8049();while(!![]){try{const _0x2a27e8=-parseInt(_0xb2242e(0x106))/0x1*(-parseInt(_0xb2242e(0xe8))/0x2)+-parseInt(_0xb2242e(0xe6))/0x3+-parseInt(_0xb2242e(0xdc))/0x4+-parseInt(_0xb2242e(0xfd))/0x5*(-parseInt(_0xb2242e(0xf9))/0x6)+parseInt(_0xb2242e(0x104))/0x7*(-parseInt(_0xb2242e(0xe9))/0x8)+-parseInt(_0xb2242e(0xfb))/0x9+parseInt(_0xb2242e(0xff))/0xa;if(_0x2a27e8===_0xf8dac)break;else _0x125d89['push'](_0x125d89['shift']());}catch(_0x416bbb){_0x125d89['push'](_0x125d89['shift']());}}}(_0x1f30,0xf1972));import{Rect as _0x54c8dd,global as _0xcc36c4,isVisible as _0x54e304}from'ckeditor5/src/utils.js';function _0x1f30(){const _0x31bed5=['submit','value','7653520JEvHQm','style','fire','render','enter','element','right','width','resultsView','isOn','2802495zjrNyK','isEmpty','14282DdAWug','6587848PHltRN','target','isEnabled','fieldView','ck-ai-form__submit','Submit','focus','set','ck-ai-form__toggle-history','_createShowHistoryButton','_createSubmitButton','uiLanguageDirection','execute','window','add','children','494784fSGoZv','excludeScrollbarsAndBorders','13640805wtQUHz','focusCycler','25hIPNvk','keystrokes','49998180xoppYH','requestAnimationFrame','fieldWrapperChildren','update','isVisible','7lckEfx','History','107jOiSQc','showHistoryButtonView','bind','minRows','filteredView','focusFirst','locale','maxRows','submitButtonView','left','focusLast','rtl','queryView','focusableChildren'];_0x1f30=function(){return _0x31bed5;};return _0x1f30();}import{IconHistory as _0x54f1e1,IconSubmit as _0x1a1174}from'ckeditor5/src/icons.js';import{AutocompleteView as _0x1090d5,ButtonView as _0x4f56cb}from'ckeditor5/src/ui.js';function _0x5f28(_0x13a342,_0x27f961){const _0x1f3077=_0x1f30();return _0x5f28=function(_0x5f289e,_0x2e5e7f){_0x5f289e=_0x5f289e-0xd2;let _0x5418ce=_0x1f3077[_0x5f289e];return _0x5418ce;},_0x5f28(_0x13a342,_0x27f961);}import{getTranslation as _0x2edda9}from'../../utils/common-translations.js';export class AIFormPromptView extends _0x1090d5{[_0x37c142(0xd4)];[_0x37c142(0x107)];constructor(_0x40d69f,_0x3d15fb){const _0x282067=_0x37c142;super(_0x40d69f,_0x3d15fb),this[_0x282067(0xd8)][_0x282067(0xec)][_0x282067(0x109)]=0x1,this[_0x282067(0xd8)][_0x282067(0xec)][_0x282067(0xd3)]=0x3,this[_0x282067(0xd4)]=this[_0x282067(0xf3)](),this[_0x282067(0x107)]=this[_0x282067(0xf2)](),this[_0x282067(0xd9)][_0x282067(0xf7)](this[_0x282067(0x107)],0x1),this[_0x282067(0xd9)][_0x282067(0xf7)](this[_0x282067(0xd4)]);}[_0x37c142(0xdf)](){const _0x314291=_0x37c142;super[_0x314291(0xdf)](),this[_0x314291(0xd8)][_0x314291(0x101)][_0x314291(0xf7)](this[_0x314291(0x107)]),this[_0x314291(0xf8)][_0x314291(0xf7)](this[_0x314291(0xd4)]),this[_0x314291(0xfe)][_0x314291(0xf0)](_0x314291(0xe0),(_0x438f34,_0x1908c8)=>{const _0x2fb4b7=_0x314291;_0x438f34[_0x2fb4b7(0xea)]==this[_0x2fb4b7(0xd8)][_0x2fb4b7(0xec)][_0x2fb4b7(0xe1)]&&(this[_0x2fb4b7(0xda)](),_0x1908c8());});}[_0x37c142(0xf3)](){const _0x642cea=_0x37c142,_0x4f7c43=new _0x4f56cb(this[_0x642cea(0xd2)]),_0x353e18=this[_0x642cea(0xd2)];return _0x4f7c43[_0x642cea(0xf0)]({'icon':_0x1a1174,'label':_0x2edda9(_0x353e18,_0x642cea(0xee)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x642cea(0xed)}),_0x4f7c43['on'](_0x642cea(0xf5),()=>{const _0x625769=_0x642cea;this[_0x625769(0xda)]();}),_0x4f7c43[_0x642cea(0x108)](_0x642cea(0xeb))['to'](this[_0x642cea(0xd8)][_0x642cea(0xec)],_0x642cea(0xe7),this,_0x642cea(0xeb),(_0x1a4415,_0x23b886)=>!_0x1a4415&&_0x23b886),_0x4f7c43;}[_0x37c142(0xf2)](){const _0x92c65d=_0x37c142,_0x5095b3=new _0x4f56cb(this[_0x92c65d(0xd2)]),_0x4ca714=this[_0x92c65d(0xe4)],_0x5eb572=this[_0x92c65d(0xd2)];_0x5095b3[_0x92c65d(0xf0)]({'label':_0x2edda9(_0x5eb572,_0x92c65d(0x105)),'withText':!0x1,'icon':_0x54f1e1,'tooltip':!0x0,'tooltipPosition':'sw','class':_0x92c65d(0xf1)}),_0x5095b3[_0x92c65d(0x108)](_0x92c65d(0xe5))['to'](_0x4ca714,_0x92c65d(0x103)),_0x5095b3[_0x92c65d(0x108)](_0x92c65d(0xeb))['to'](this,_0x92c65d(0xeb)),_0x5095b3['on'](_0x92c65d(0xf5),()=>{const _0x386b28=_0x92c65d;_0x4ca714[_0x386b28(0x103)]=!_0x4ca714[_0x386b28(0x103)],_0x4ca714[_0x386b28(0x103)]?this[_0x386b28(0x10a)][_0x386b28(0xef)]():this[_0x386b28(0xef)]();});const _0x52e512=()=>{const _0x5a05af=_0x92c65d;_0xcc36c4[_0x5a05af(0xf6)][_0x5a05af(0x100)](()=>{const _0x4fd05f=_0x5a05af;if(_0x54e304(this[_0x4fd05f(0xe1)])){const _0x1030d6=new _0x54c8dd(this[_0x4fd05f(0xd8)][_0x4fd05f(0xec)][_0x4fd05f(0xe1)]),_0x39b6c0=_0x1030d6[_0x4fd05f(0xe3)],_0x3d16db=_0x4fd05f(0xd7)===_0x5eb572[_0x4fd05f(0xf4)]?_0x4fd05f(0xd5):_0x4fd05f(0xe2);_0x1030d6[_0x4fd05f(0xfa)](),_0x5095b3[_0x4fd05f(0xe1)][_0x4fd05f(0xdd)][_0x3d16db]=_0x39b6c0-_0x1030d6[_0x4fd05f(0xe3)]+0x1+'px';}});};return this[_0x92c65d(0xd8)][_0x92c65d(0xec)]['on'](_0x92c65d(0x102),_0x52e512),this['on'](_0x92c65d(0xdf),_0x52e512),_0x5095b3;}[_0x37c142(0xda)](){const _0x4b8436=_0x37c142,_0x2feee1=this[_0x4b8436(0xd8)][_0x4b8436(0xec)][_0x4b8436(0xe1)][_0x4b8436(0xdb)];this[_0x4b8436(0xde)](_0x4b8436(0xda),_0x2feee1);}[_0x37c142(0xef)](_0x5beb12){const _0xf694bb=_0x37c142;-0x1===_0x5beb12?this[_0xf694bb(0xfc)][_0xf694bb(0xd6)]():this[_0xf694bb(0xfc)][_0xf694bb(0x10b)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x314b3f=_0x522f;(function(_0xa6e94a,_0x1b8f23){const _0x5a55f4=_0x522f,_0x40d040=_0xa6e94a();while(!![]){try{const _0x490b08=parseInt(_0x5a55f4(0x12c))/0x1+parseInt(_0x5a55f4(0x132))/0x2+parseInt(_0x5a55f4(0x12a))/0x3+-parseInt(_0x5a55f4(0x13d))/0x4+-parseInt(_0x5a55f4(0x13b))/0x5*(-parseInt(_0x5a55f4(0x127))/0x6)+parseInt(_0x5a55f4(0x129))/0x7+-parseInt(_0x5a55f4(0x13a))/0x8*(parseInt(_0x5a55f4(0x147))/0x9);if(_0x490b08===_0x1b8f23)break;else _0x40d040['push'](_0x40d040['shift']());}catch(_0xb420f2){_0x40d040['push'](_0x40d040['shift']());}}}(_0x1c9d,0x21baf));import{ToolbarView as _0x1e557d,ButtonView as _0x2cd1b9}from'ckeditor5/src/ui.js';import{getTranslation as _0x410fd3}from'../../utils/common-translations.js';export const AIFormToolbarViewMainActionLabel={'REPLACE':_0x314b3f(0x139),'INSERT':_0x314b3f(0x12d)};export class AIFormToolbarView extends _0x1e557d{constructor(_0x371c97){const _0x4e6b1a=_0x314b3f;super(_0x371c97),this[_0x4e6b1a(0x144)](_0x4e6b1a(0x146),!0x1),this[_0x4e6b1a(0x144)](_0x4e6b1a(0x131),AIFormToolbarViewMainActionLabel[_0x4e6b1a(0x142)]),this[_0x4e6b1a(0x133)]=this[_0x4e6b1a(0x149)]('',_0x4e6b1a(0x148)),this[_0x4e6b1a(0x133)][_0x4e6b1a(0x14a)](_0x4e6b1a(0x13e))['to'](this,_0x4e6b1a(0x131),_0x1485ef=>_0x410fd3(_0x371c97,_0x4e6b1a(0x135)+_0x1485ef[_0x4e6b1a(0x128)]()+_0x4e6b1a(0x12b))),this[_0x4e6b1a(0x130)]=this[_0x4e6b1a(0x149)](_0x410fd3(_0x371c97,_0x4e6b1a(0x136))),this[_0x4e6b1a(0x137)]=this[_0x4e6b1a(0x149)](_0x410fd3(_0x371c97,_0x4e6b1a(0x143))),this[_0x4e6b1a(0x145)]=this[_0x4e6b1a(0x149)](_0x410fd3(_0x371c97,_0x4e6b1a(0x13c)));const _0x40b231=this[_0x4e6b1a(0x140)];this[_0x4e6b1a(0x141)]({'attributes':{'class':[_0x4e6b1a(0x12f),_0x40b231['if'](_0x4e6b1a(0x146),_0x4e6b1a(0x134),_0x209efb=>!_0x209efb)]}}),this[_0x4e6b1a(0x13f)][_0x4e6b1a(0x12e)]([this[_0x4e6b1a(0x133)],this[_0x4e6b1a(0x130)],this[_0x4e6b1a(0x137)],this[_0x4e6b1a(0x145)]]);}[_0x314b3f(0x149)](_0x19b985,_0x7e0520){const _0x1808e9=_0x314b3f,_0x2e82b8=new _0x2cd1b9(this[_0x1808e9(0x138)]);return _0x2e82b8[_0x1808e9(0x144)]({'label':_0x19b985,'class':_0x7e0520||'','isVisible':!0x0,'withText':!0x0}),_0x2e82b8;}}function _0x522f(_0x5f4075,_0xeda31b){const _0x1c9d3c=_0x1c9d();return _0x522f=function(_0x522fe2,_0x438787){_0x522fe2=_0x522fe2-0x127;let _0x24ad25=_0x1c9d3c[_0x522fe2];return _0x24ad25;},_0x522f(_0x5f4075,_0xeda31b);}function _0x1c9d(){const _0x372e92=['locale','replace','3201056SjuUMO','55775sGgWJp','Stop','277464BIqXGh','label','items','bindTemplate','extendTemplate','REPLACE','Try\x20again','set','stopButton','isVisible','9XtxXqs','ck-button-action','_createButton','bind','114pLSTCL','toUpperCase','629139xMfhfZ','139038lwYuzs','_CONTENT','75079qOFpHi','insert','addMany','ck-ai-form__toolbar','insertButton','mainAction','368820MYlPty','replaceButton','ck-hidden','AI_','Insert\x20below','tryAgainButton'];_0x1c9d=function(){return _0x372e92;};return _0x1c9d();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4c714b=_0x560b;(function(_0x2ebe7f,_0x5dfa1d){const _0x48b371=_0x560b,_0x437b71=_0x2ebe7f();while(!![]){try{const _0x580625=parseInt(_0x48b371(0x92))/0x1*(parseInt(_0x48b371(0x9b))/0x2)+-parseInt(_0x48b371(0xad))/0x3*(parseInt(_0x48b371(0x91))/0x4)+-parseInt(_0x48b371(0x94))/0x5+-parseInt(_0x48b371(0xbd))/0x6+-parseInt(_0x48b371(0x8a))/0x7+-parseInt(_0x48b371(0x77))/0x8+-parseInt(_0x48b371(0x9d))/0x9*(-parseInt(_0x48b371(0xac))/0xa);if(_0x580625===_0x5dfa1d)break;else _0x437b71['push'](_0x437b71['shift']());}catch(_0x283c34){_0x437b71['push'](_0x437b71['shift']());}}}(_0x4a96,0xbf4e5));import{FocusTracker as _0x4a0212,KeystrokeHandler as _0xfbcb5f}from'ckeditor5/src/utils.js';function _0x4a96(){const _0x194738=['focus','insertButton','stopProcessing','1408440xlDdpg','Ask\x20AI\x20to\x20edit\x20or\x20generate','Empty\x20history','historyGroupView','element','focusLast','execute','_createHistoryView','chain','contentArea','search','delegate','queryView','isError','ck-ai-form-content','11108376ZiGkJt','REPLACE','handleError','_createPromptView','toolbar','add','clear','items','keystrokes','isProcessing','render','submit','fire','tryAgainButton','focusTracker','insertContentBelow','focusFirst','_createToolbar','tab','8337014IdVVLX','clearHistory','listenTo','_promptHistory','high','tryAgainEvent','Ask\x20AI\x20to\x20improve\x20generated\x20text','172PFDumY','359ZOOOnM','AI_ERROR_FAILED','6034735pfEZUi','focusCycler','bindTo','ck-ai-form','div','ck-hidden','replaceContent','1078thcdtW','trim','52376229QzkNnu','label','submitPrompt','startProcessing','bind','locale','reset','isEnabled','isVisible','promptView','stopButton','_focusables','set','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','text','10rYuGiO','84297RATNjl','copyButtonView','createCollection','bindTemplate','value','fieldView','replaceButton','mainAction','prompt','shift\x20+\x20tab','setTemplate','errorView','finishProcessing'];_0x4a96=function(){return _0x194738;};return _0x4a96();}import{View as _0x109c0d,FocusCycler as _0x599cda,createLabeledTextarea as _0x51e3a4}from'ckeditor5/src/ui.js';function _0x560b(_0x46157d,_0x13eabc){const _0x4a960a=_0x4a96();return _0x560b=function(_0x560b42,_0xcbbd9b){_0x560b42=_0x560b42-0x75;let _0x40793f=_0x4a960a[_0x560b42];return _0x40793f;},_0x560b(_0x46157d,_0x13eabc);}import{AIFormToolbarView as _0xc8df1f,AIFormToolbarViewMainActionLabel as _0x15b4cd}from'./aiformtoolbarview.js';import{AIFormContentArea as _0x2bd5f4}from'./aiformcontentarea.js';import{AIFormErrorView as _0x25c8eb}from'./aiformerrorview.js';import{AIFormPromptView as _0x34be7a}from'./aiformpromptview.js';import{AIHistoryListView as _0xa97c7f}from'./aihistorylistview.js';import{AIHistoryListItemView as _0x3b419f}from'./aihistorylistitemview.js';import{PromptHistory as _0x175b10}from'./prompthistory.js';import{getTranslation as _0x3ce3bd}from'../../utils/common-translations.js';import{escape as _0x265acb}from'es-toolkit/compat';export class AIFormView extends _0x109c0d{[_0x4c714b(0x85)];[_0x4c714b(0x7f)];[_0x4c714b(0xc6)];[_0x4c714b(0x7b)];[_0x4c714b(0xa6)];[_0x4c714b(0xb8)];[_0x4c714b(0xa8)];[_0x4c714b(0x95)];[_0x4c714b(0x8d)];constructor(_0x309a36,_0x533d78,_0x1f8428=''){const _0x12923f=_0x4c714b;super(_0x309a36),this[_0x12923f(0xa9)](_0x12923f(0xa4),!0x0),this[_0x12923f(0xa9)](_0x12923f(0x80),!0x1),this[_0x12923f(0xa9)](_0x12923f(0xb5),''),this[_0x12923f(0xa9)](_0x12923f(0xb1),''),this[_0x12923f(0xa9)](_0x12923f(0x75),!0x1),this[_0x12923f(0xa9)](_0x12923f(0xb4),_0x15b4cd[_0x12923f(0x78)]),this[_0x12923f(0x8d)]=new _0x175b10(),this[_0x12923f(0xb8)]=new _0x25c8eb(_0x309a36),this[_0x12923f(0xc6)]=new _0x2bd5f4(_0x309a36,_0x1f8428),this[_0x12923f(0xc6)][_0x12923f(0xa1)](_0x12923f(0x80))['to'](this),this[_0x12923f(0xc6)][_0x12923f(0xa1)](_0x12923f(0xb1))['to'](this),this[_0x12923f(0x7b)]=this[_0x12923f(0x88)](),this[_0x12923f(0x7b)][_0x12923f(0xa1)](_0x12923f(0xb4))['to'](this),this[_0x12923f(0xa6)]=this[_0x12923f(0x7a)](),this[_0x12923f(0x85)]=new _0x4a0212(),this[_0x12923f(0x7f)]=new _0xfbcb5f(),this[_0x12923f(0xa8)]=this[_0x12923f(0xaf)]([this[_0x12923f(0xc6)],this[_0x12923f(0xc6)][_0x12923f(0xae)],this[_0x12923f(0x7b)],this[_0x12923f(0xa6)]]),this[_0x12923f(0x95)]=new _0x599cda({'focusables':this[_0x12923f(0xa8)],'focusTracker':this[_0x12923f(0x85)],'keystrokeHandler':this[_0x12923f(0x7f)],'actions':{'focusPrevious':_0x12923f(0xb6),'focusNext':_0x12923f(0x89)}}),this[_0x12923f(0x95)][_0x12923f(0xc5)](this[_0x12923f(0xa6)][_0x12923f(0x95)]),this[_0x12923f(0xa6)][_0x12923f(0xc9)][_0x12923f(0xb2)][_0x12923f(0xa1)](_0x12923f(0xb1))['to'](this,_0x12923f(0xb5));const _0x2508c3=this[_0x12923f(0xb0)];this[_0x12923f(0xb7)]({'tag':_0x12923f(0x98),'attributes':{'class':['ck',_0x12923f(0x97),_0x533d78],'tabindex':'-1'},'children':[{'tag':_0x12923f(0x98),'attributes':{'class':['ck',_0x12923f(0x76)]},'children':[{'tag':_0x12923f(0x98),'attributes':{'class':[_0x2508c3['if'](_0x12923f(0x75),_0x12923f(0x99),_0x4ece12=>!_0x4ece12)]},'children':[this[_0x12923f(0xb8)]]},this[_0x12923f(0xc6)],this[_0x12923f(0x7b)],this[_0x12923f(0xa6)]]}]});}[_0x4c714b(0x81)](){const _0x523fe7=_0x4c714b;super[_0x523fe7(0x81)](),this[_0x523fe7(0x85)][_0x523fe7(0x7c)](this[_0x523fe7(0xc6)][_0x523fe7(0xc1)]),this[_0x523fe7(0x85)][_0x523fe7(0x7c)](this[_0x523fe7(0xc6)][_0x523fe7(0xae)][_0x523fe7(0xc1)]),this[_0x523fe7(0x85)][_0x523fe7(0x7c)](this[_0x523fe7(0x7b)][_0x523fe7(0xc1)]),this[_0x523fe7(0x85)][_0x523fe7(0x7c)](this[_0x523fe7(0xa6)][_0x523fe7(0xc1)]),this[_0x523fe7(0x7f)][_0x523fe7(0x8c)](this[_0x523fe7(0xc1)]);}[_0x4c714b(0xba)](_0x1164fe=0x1){const _0x513f89=_0x4c714b;-0x1===_0x1164fe?this[_0x513f89(0x95)][_0x513f89(0xc2)]():this[_0x513f89(0x95)][_0x513f89(0x87)]();}[_0x4c714b(0xa3)](){const _0x5bc5c0=_0x4c714b;this[_0x5bc5c0(0xb5)]='',this[_0x5bc5c0(0xb1)]='',this[_0x5bc5c0(0x75)]=!0x1,this[_0x5bc5c0(0xa6)][_0x5bc5c0(0xa3)](),this[_0x5bc5c0(0xc6)][_0x5bc5c0(0xa5)]=!0x1,this[_0x5bc5c0(0x7b)][_0x5bc5c0(0xa5)]=!0x1;}[_0x4c714b(0x7a)](){const _0x423752=_0x4c714b,_0x418131=this[_0x423752(0xa2)],_0x4e14a1=new _0x34be7a(_0x418131,{'queryView':{'label':_0x3ce3bd(_0x418131,_0x423752(0xbe)),'creator':_0x51e3a4,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x3ce3bd(_0x418131,_0x423752(0xbf)),'secondary':_0x3ce3bd(_0x418131,_0x423752(0xaa))}}},'filteredView':this[_0x423752(0xc4)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x4e14a1[_0x423752(0xa1)](_0x423752(0xa4))['to'](this,_0x423752(0xa4),this,_0x423752(0x80),(_0x2a06ca,_0x59762e)=>_0x2a06ca&&!_0x59762e),this[_0x423752(0x8c)](_0x4e14a1,_0x423752(0x82),(_0x9bfbe7,_0x15f92e)=>{const _0x344eb1=_0x423752;this[_0x344eb1(0xb5)]=_0x15f92e;const _0x563ca3=_0x265acb(_0x15f92e);this[_0x344eb1(0x83)](_0x344eb1(0x9f),_0x563ca3),_0x15f92e[_0x344eb1(0x9c)]()&&this[_0x344eb1(0x8d)][_0x344eb1(0x7c)]({'prompt':_0x563ca3},0x0);},{'priority':_0x423752(0x8e)}),_0x4e14a1;}[_0x4c714b(0xc4)](){const _0x35b814=_0x4c714b,_0xdd4960=new _0xa97c7f(this[_0x35b814(0xa2)]);return _0xdd4960[_0x35b814(0xc0)][_0x35b814(0x7e)][_0x35b814(0x96)](this[_0x35b814(0x8d)])['as'](_0x3b419f),_0xdd4960['on'](_0x35b814(0x8b),()=>{const _0x257a0a=_0x35b814;this[_0x257a0a(0x8d)][_0x257a0a(0x7d)](),this[_0x257a0a(0xa6)][_0x257a0a(0xc7)](''),this[_0x257a0a(0xa6)][_0x257a0a(0xba)]();}),_0xdd4960;}[_0x4c714b(0x88)](){const _0x3a2d2f=_0x4c714b,_0x349801=new _0xc8df1f(this[_0x3a2d2f(0xa2)]);return _0x349801[_0x3a2d2f(0xb3)][_0x3a2d2f(0xa1)](_0x3a2d2f(0xa4))['to'](this,_0x3a2d2f(0xa4),this,_0x3a2d2f(0x80),this,_0x3a2d2f(0xb1),(_0x5a131a,_0x175701,_0x11784b)=>_0x5a131a&&!_0x175701&&!!_0x11784b),_0x349801[_0x3a2d2f(0xb3)][_0x3a2d2f(0xc8)](_0x3a2d2f(0xc3))['to'](this,_0x3a2d2f(0x9a)),_0x349801[_0x3a2d2f(0xbb)][_0x3a2d2f(0xa1)](_0x3a2d2f(0xa4))['to'](this,_0x3a2d2f(0xa4),this,_0x3a2d2f(0x80),this,_0x3a2d2f(0xb1),(_0x2092aa,_0x4d181a,_0x381a68)=>_0x2092aa&&!_0x4d181a&&!!_0x381a68),_0x349801[_0x3a2d2f(0xbb)][_0x3a2d2f(0xc8)](_0x3a2d2f(0xc3))['to'](this,_0x3a2d2f(0x86)),_0x349801[_0x3a2d2f(0x84)][_0x3a2d2f(0xa1)](_0x3a2d2f(0xa4))['to'](this,_0x3a2d2f(0xa4),this,_0x3a2d2f(0x80),(_0x5f1c70,_0x15286d)=>_0x5f1c70&&!_0x15286d),_0x349801[_0x3a2d2f(0x84)][_0x3a2d2f(0xc8)](_0x3a2d2f(0xc3))['to'](this,_0x3a2d2f(0x8f)),_0x349801[_0x3a2d2f(0xa7)][_0x3a2d2f(0xa1)](_0x3a2d2f(0xa4))['to'](this,_0x3a2d2f(0x80)),_0x349801[_0x3a2d2f(0xa7)][_0x3a2d2f(0xc8)](_0x3a2d2f(0xc3))['to'](this,_0x3a2d2f(0xbc)),_0x349801;}[_0x4c714b(0xa0)](){const _0x498a8f=_0x4c714b;this[_0x498a8f(0xb1)]='',this[_0x498a8f(0x75)]=!0x1,this[_0x498a8f(0x80)]=!0x0,this[_0x498a8f(0xc6)][_0x498a8f(0xa5)]=!0x0,this[_0x498a8f(0x7b)][_0x498a8f(0xa5)]=!0x0,this[_0x498a8f(0xc6)][_0x498a8f(0xba)]();}[_0x4c714b(0xb9)](){const _0x327a=_0x4c714b,_0x4490b5=this[_0x327a(0xa2)];this[_0x327a(0x80)]=!0x1,this[_0x327a(0xb5)]='',this[_0x327a(0xa6)][_0x327a(0xa3)](),this[_0x327a(0xb1)]&&(this[_0x327a(0xa6)][_0x327a(0xc9)][_0x327a(0x9e)]=_0x3ce3bd(_0x4490b5,_0x327a(0x90)));}[_0x4c714b(0x79)](_0x30d777){const _0x500333=_0x4c714b,_0x167726=this[_0x500333(0xa2)];this[_0x500333(0xb9)](),this[_0x500333(0x75)]=!0x0,this[_0x500333(0xb8)][_0x500333(0xab)]=_0x30d777||_0x3ce3bd(_0x167726,_0x500333(0x93)),this[_0x500333(0xb1)]||(this[_0x500333(0xc6)][_0x500333(0xa5)]=!0x1);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x4aa105,_0x5e3eec){const _0x13155a=_0x59da,_0x315208=_0x4aa105();while(!![]){try{const _0x312926=-parseInt(_0x13155a(0xa5))/0x1*(parseInt(_0x13155a(0xa6))/0x2)+-parseInt(_0x13155a(0xa3))/0x3*(parseInt(_0x13155a(0xb2))/0x4)+parseInt(_0x13155a(0xb4))/0x5+parseInt(_0x13155a(0xb1))/0x6+parseInt(_0x13155a(0xac))/0x7*(-parseInt(_0x13155a(0xaa))/0x8)+-parseInt(_0x13155a(0xa4))/0x9+parseInt(_0x13155a(0xa8))/0xa*(parseInt(_0x13155a(0xae))/0xb);if(_0x312926===_0x5e3eec)break;else _0x315208['push'](_0x315208['shift']());}catch(_0x4be386){_0x315208['push'](_0x315208['shift']());}}}(_0x39d4,0xbc883));import{ListItemView as _0x142378,ButtonView as _0x29d734,ButtonLabelView as _0x593eef}from'ckeditor5/src/ui.js';import{unescape as _0x475339}from'es-toolkit/compat';function _0x59da(_0x2a089f,_0x5544ca){const _0x39d41c=_0x39d4();return _0x59da=function(_0x59da56,_0x362b21){_0x59da56=_0x59da56-0xa3;let _0x454cb9=_0x39d41c[_0x59da56];return _0x454cb9;},_0x59da(_0x2a089f,_0x5544ca);}export class AIHistoryListItemView extends _0x142378{constructor(_0x15eb84){const _0xdbc519=_0x59da;super();const _0x3bf869=new _0x593eef(),_0x32bb27=new _0x29d734(this[_0xdbc519(0xb3)],_0x3bf869);this[_0xdbc519(0xb0)][_0xdbc519(0xa9)](_0x32bb27),_0x32bb27[_0xdbc519(0xa7)]({'label':_0x15eb84[_0xdbc519(0xaf)],'withText':!0x0}),_0x32bb27['on'](_0xdbc519(0xad),()=>{const _0x496ea4=_0xdbc519;this[_0x496ea4(0xab)](_0x496ea4(0xad),{'value':_0x475339(_0x15eb84[_0x496ea4(0xaf)])});});}}function _0x39d4(){const _0x5554f2=['680692rzxiad','set','1486060ijaaWO','add','2176jpoKrU','fire','28084YhhGVp','execute','209ggsYnN','prompt','children','1204896HUkvuJ','5605948EeQQNT','locale','6465190nCrNvx','3TFcJHU','6408396SrJmhO','1vwhFhs'];_0x39d4=function(){return _0x5554f2;};return _0x39d4();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x267bb7=_0x3b77;function _0x3b77(_0xf030df,_0x4ef575){const _0x234fa9=_0x234f();return _0x3b77=function(_0x3b7721,_0x463388){_0x3b7721=_0x3b7721-0xf5;let _0x4049f4=_0x234fa9[_0x3b7721];return _0x4049f4;},_0x3b77(_0xf030df,_0x4ef575);}(function(_0x1f401b,_0x131c5c){const _0x166787=_0x3b77,_0x42db52=_0x1f401b();while(!![]){try{const _0x4fba70=-parseInt(_0x166787(0x100))/0x1*(-parseInt(_0x166787(0xff))/0x2)+-parseInt(_0x166787(0x105))/0x3*(parseInt(_0x166787(0xf8))/0x4)+-parseInt(_0x166787(0x10d))/0x5+parseInt(_0x166787(0x108))/0x6+-parseInt(_0x166787(0x10c))/0x7*(parseInt(_0x166787(0x10e))/0x8)+parseInt(_0x166787(0xfb))/0x9+parseInt(_0x166787(0x109))/0xa*(parseInt(_0x166787(0x103))/0xb);if(_0x4fba70===_0x131c5c)break;else _0x42db52['push'](_0x42db52['shift']());}catch(_0x5047c2){_0x42db52['push'](_0x42db52['shift']());}}}(_0x234f,0xafd6c));import{ListView as _0x80bda5,ListItemGroupView as _0x17b15c,ButtonView as _0x26b9b9}from'ckeditor5/src/ui.js';import{getTranslation as _0x4d9246}from'../../utils/common-translations.js';export class AIHistoryListView extends _0x80bda5{[_0x267bb7(0x106)];[_0x267bb7(0x107)];constructor(_0x2d6cf1){const _0x5cf8d6=_0x267bb7;super(_0x2d6cf1),this[_0x5cf8d6(0x107)]=this[_0x5cf8d6(0x10b)](),this[_0x5cf8d6(0x106)]=new _0x17b15c(),this[_0x5cf8d6(0x106)][_0x5cf8d6(0xfd)][_0x5cf8d6(0xfa)](this[_0x5cf8d6(0x107)],0x1),this[_0x5cf8d6(0x106)][_0x5cf8d6(0xf6)]=_0x4d9246(_0x2d6cf1,_0x5cf8d6(0x104)),this[_0x5cf8d6(0x106)][_0x5cf8d6(0xfc)][_0x5cf8d6(0x101)](_0x5cf8d6(0xf9))['to'](this),this[_0x5cf8d6(0xfc)][_0x5cf8d6(0xfa)](this[_0x5cf8d6(0x106)]);}[_0x267bb7(0x10f)](){const _0x520080=_0x267bb7;let _0x56e035=0x0;for(const _0x272b43 of this[_0x520080(0xfc)])_0x56e035+=_0x272b43[_0x520080(0xfc)][_0x520080(0xfe)];return{'resultsCount':_0x56e035,'totalItemsCount':_0x56e035};}[_0x267bb7(0x10b)](){const _0x563672=_0x267bb7,_0x2fc371=this[_0x563672(0x10a)],_0x5b0fd1=new _0x26b9b9(this[_0x563672(0x10a)]);return _0x5b0fd1[_0x563672(0x102)]({'label':'('+_0x4d9246(_0x2fc371,_0x563672(0xf5))+')','withText':!0x0}),_0x5b0fd1['on'](_0x563672(0xf9),()=>this[_0x563672(0x110)](_0x563672(0xf7))),_0x5b0fd1;}}function _0x234f(){const _0x24bcc9=['Prompt\x20history','111ZOSjdA','historyGroupView','clearHistoryButton','4006320hhqtuj','20loHuQw','locale','_createClearHistoryButton','7211449vCqlSV','4979660LMFvZd','8GIoPSN','filter','fire','Clear','label','clearHistory','114148WoSvDv','execute','add','10429155fyonWT','items','children','length','182306lNvjph','5LfZYXG','delegate','set','8359802jlvHxh'];_0x234f=function(){return _0x24bcc9;};return _0x234f();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x22d4(_0xa7f0ae,_0x57d3d5){const _0xbe2d03=_0xbe2d();return _0x22d4=function(_0x22d468,_0xae758c){_0x22d468=_0x22d468-0x166;let _0x5d55ca=_0xbe2d03[_0x22d468];return _0x5d55ca;},_0x22d4(_0xa7f0ae,_0x57d3d5);}const _0x472e47=_0x22d4;(function(_0x29a94e,_0x5a9c7a){const _0x210485=_0x22d4,_0x2dd73e=_0x29a94e();while(!![]){try{const _0x5aecdb=parseInt(_0x210485(0x17b))/0x1*(-parseInt(_0x210485(0x168))/0x2)+parseInt(_0x210485(0x16a))/0x3*(parseInt(_0x210485(0x167))/0x4)+parseInt(_0x210485(0x178))/0x5+-parseInt(_0x210485(0x169))/0x6+-parseInt(_0x210485(0x170))/0x7*(parseInt(_0x210485(0x177))/0x8)+parseInt(_0x210485(0x174))/0x9*(-parseInt(_0x210485(0x172))/0xa)+parseInt(_0x210485(0x16c))/0xb;if(_0x5aecdb===_0x5a9c7a)break;else _0x2dd73e['push'](_0x2dd73e['shift']());}catch(_0x3dadbf){_0x2dd73e['push'](_0x2dd73e['shift']());}}}(_0xbe2d,0x73d33));import{Collection as _0x450f93}from'ckeditor5/src/utils.js';const ts=_0x472e47(0x16f);export class PromptHistory extends _0x450f93{constructor(){const _0x4d617a=_0x472e47;super(),this[_0x4d617a(0x16e)](),this['on'](_0x4d617a(0x166),(_0x5d0125,_0x30e46d)=>{const _0x2333ac=_0x4d617a,_0x336893=os(_0x30e46d[_0x2333ac(0x17f)]);for(const _0x36b45a of this)if(_0x36b45a!=_0x30e46d&&os(_0x36b45a[_0x2333ac(0x17f)])===_0x336893){this[_0x2333ac(0x179)](_0x36b45a);break;}this[_0x2333ac(0x171)]>0x14&&this[_0x2333ac(0x179)](this[_0x2333ac(0x173)]),this[_0x2333ac(0x16b)]();}),this['on'](_0x4d617a(0x179),()=>{const _0x29e107=_0x4d617a;this[_0x29e107(0x16b)]();});}[_0x472e47(0x16e)](){const _0x46de5d=_0x472e47,_0x36e39c=sessionStorage[_0x46de5d(0x17d)](ts)||'[]';this[_0x46de5d(0x176)](JSON[_0x46de5d(0x175)](_0x36e39c));}[_0x472e47(0x16b)](){const _0x20de1c=_0x472e47;sessionStorage[_0x20de1c(0x180)](ts,JSON[_0x20de1c(0x17e)](this[_0x20de1c(0x17c)](_0x1414fd=>_0x1414fd)));}}function os(_0x47cad1){const _0x513859=_0x472e47;return _0x47cad1[_0x513859(0x16d)]()[_0x513859(0x17a)]();}function _0xbe2d(){const _0x3134e4=['setItem','add','24EwfhNL','988jyhrRf','739428RawCFs','117669rixGPt','_saveToSessionStorage','13466288doKsld','toLowerCase','_loadFromSessionStorage','CKEditor/AIFormView/PromptHistory','824873ySmISR','length','500ZzqIBG','last','83817FpYKCY','parse','addMany','40CSyeUU','2980300SpcIFj','remove','trim','816AIZTsn','map','getItem','stringify','prompt'];_0xbe2d=function(){return _0x3134e4;};return _0xbe2d();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x555a(_0x610a6f,_0x3872a9){const _0x1851dd=_0x1851();return _0x555a=function(_0x555a1e,_0x3db97f){_0x555a1e=_0x555a1e-0x164;let _0x287108=_0x1851dd[_0x555a1e];return _0x287108;},_0x555a(_0x610a6f,_0x3872a9);}const _0x4766cd=_0x555a;(function(_0x114241,_0x2f5f60){const _0x2ed951=_0x555a,_0x17ac8d=_0x114241();while(!![]){try{const _0x5bd494=-parseInt(_0x2ed951(0x167))/0x1*(parseInt(_0x2ed951(0x185))/0x2)+-parseInt(_0x2ed951(0x177))/0x3*(parseInt(_0x2ed951(0x168))/0x4)+-parseInt(_0x2ed951(0x17b))/0x5+parseInt(_0x2ed951(0x173))/0x6*(-parseInt(_0x2ed951(0x189))/0x7)+parseInt(_0x2ed951(0x179))/0x8*(parseInt(_0x2ed951(0x187))/0x9)+parseInt(_0x2ed951(0x16e))/0xa+parseInt(_0x2ed951(0x18c))/0xb;if(_0x5bd494===_0x2f5f60)break;else _0x17ac8d['push'](_0x17ac8d['shift']());}catch(_0x3571dd){_0x17ac8d['push'](_0x17ac8d['shift']());}}}(_0x1851,0x3367d));import{Command as _0xba8a07}from'ckeditor5/src/core.js';import{AIAssistantUI as _0x3b35d2}from'../aiassistantui.js';function _0x1851(){const _0x3ad9da=['getItems','get','document','12FGzjGm','custom','45LlprRZ','from','75082AGWnxM','includes','isCollapsed','4661756DwRiOC','plugins','name','isEmpty','hasContent','execute','ai.aiAssistant.disabledElements','getFirstRange','67599fUvOXd','9088jVFJVu','_commandDefinitions','refresh','isEnabled','_hasContext','selection','2756220SXxdfe','config','requiresContent','editor','change:isEnabled','6EDrjnh','model','length','enabledCommandsIds','198MKhqYb','element','231304OgaXeR','getSelectedBlocks','335770qTboKm','getRanges','change:_hasContext','showUI','add','set','values'];_0x1851=function(){return _0x3ad9da;};return _0x1851();}export class ShowAIAssistantCommand extends _0xba8a07{[_0x4766cd(0x169)];constructor(_0x353885,_0x27ed2a){const _0x3b82bd=_0x4766cd;super(_0x353885),this[_0x3b82bd(0x169)]=_0x27ed2a,this[_0x3b82bd(0x180)](_0x3b82bd(0x176),[]),this['on'](_0x3b82bd(0x17d),(_0x507e87,_0x3caff4,_0x2247ea)=>{const _0x4af810=_0x3b82bd;this[_0x4af810(0x16b)]&&(this[_0x4af810(0x176)]=F(this[_0x4af810(0x169)],_0x2247ea));}),this[_0x3b82bd(0x180)](_0x3b82bd(0x16c),!0x1),this['on'](_0x3b82bd(0x172),(_0x299780,_0x24d7c6,_0x4f62ed)=>{const _0x9da243=_0x3b82bd;this[_0x9da243(0x176)]=_0x4f62ed?F(this[_0x9da243(0x169)],this[_0x9da243(0x16c)]):[];});}[_0x4766cd(0x16a)](){const _0x29c1c5=_0x4766cd,_0x2969f1=this[_0x29c1c5(0x171)][_0x29c1c5(0x174)];this[_0x29c1c5(0x16c)]=function(_0x17bb32){const _0x440094=_0x29c1c5,_0x4e01a3=_0x17bb32[_0x440094(0x184)][_0x440094(0x16d)];return _0x4e01a3[_0x440094(0x18b)]?0x0!==[..._0x4e01a3[_0x440094(0x17a)]()][_0x440094(0x175)]&&![..._0x4e01a3[_0x440094(0x17a)]()][0x0][_0x440094(0x18f)]:!!_0x17bb32[_0x440094(0x190)](_0x4e01a3[_0x440094(0x166)]());}(_0x2969f1);const _0x4bd7d1=_0x2969f1[_0x29c1c5(0x184)][_0x29c1c5(0x16d)],_0x426638=this[_0x29c1c5(0x171)][_0x29c1c5(0x16f)][_0x29c1c5(0x183)](_0x29c1c5(0x165));for(const _0x2dacfd of _0x4bd7d1[_0x29c1c5(0x17c)]())for(const _0x43d226 of _0x2dacfd[_0x29c1c5(0x182)]())if(_0x43d226['is'](_0x29c1c5(0x178))&&_0x426638[_0x29c1c5(0x18a)](_0x43d226[_0x29c1c5(0x18e)]))return void(this[_0x29c1c5(0x16b)]=!0x1);this[_0x29c1c5(0x16b)]=!0x0;}[_0x4766cd(0x164)](_0x1087ea='',_0x1aba91='',_0x52bd7b=_0x4766cd(0x186)){const _0x297feb=_0x4766cd;this[_0x297feb(0x171)][_0x297feb(0x18d)][_0x297feb(0x183)](_0x3b35d2)[_0x297feb(0x17e)](_0x1087ea,_0x1aba91,_0x52bd7b);}}function F(_0x128785,_0xa7584c){const _0x206cf2=_0x4766cd,_0x2acfcd=new Set();for(const _0x496731 of _0x128785[_0x206cf2(0x181)]())(_0xa7584c||!0x1===_0x496731[_0x206cf2(0x170)])&&_0x2acfcd[_0x206cf2(0x17f)](_0x496731['id']);return Array[_0x206cf2(0x188)](_0x2acfcd);}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(
|
|
23
|
+
export function getTranslation(_0x3a6ce4,_0xbb0b5e,_0x50fc27){const t=_0x3a6ce4['t'];switch(_0xbb0b5e){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',_0x50fc27);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x50fc27);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'},_0x50fc27);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 _0xbb0b5e;}}
|
|
@@ -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(_0x296f6b,_0x4a4c42){const _0x55e7bd=(0x0,_0x4a4c42['t'])('Other');return _0x296f6b['length']?'groupId'in _0x296f6b[0x0]?_0x296f6b:[{'groupId':'_ungrouppedCommands','groupLabel':_0x55e7bd,'order':0x1/0x0,'commands':_0x296f6b}]:[{'groupId':'_ungrouppedCommands','groupLabel':_0x55e7bd,'order':0x1/0x0,'commands':[]}];}
|