@ckeditor/ckeditor5-ai 44.0.0-alpha.9 → 44.1.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/dist/adapters/aiadapter.d.ts +1 -1
- package/dist/adapters/aitextadapter.d.ts +1 -1
- package/dist/adapters/awstextadapter.d.ts +1 -1
- package/dist/adapters/openaitextadapter.d.ts +1 -1
- package/dist/aiassistant.d.ts +1 -1
- package/dist/aiassistantediting.d.ts +1 -1
- package/dist/aiassistantui.d.ts +1 -1
- package/dist/aiconfig.d.ts +1 -1
- package/dist/augmentation.d.ts +1 -1
- package/dist/index.css +7 -7
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/legacyerrors.d.ts +1 -1
- 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/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/dist/ui/aiassistantcontroller.d.ts +1 -1
- package/dist/ui/form/aiformcontentarea.d.ts +1 -1
- package/dist/ui/form/aiformerrorview.d.ts +1 -1
- package/dist/ui/form/aiformpromptview.d.ts +1 -1
- package/dist/ui/form/aiformtoolbarview.d.ts +1 -1
- package/dist/ui/form/aiformview.d.ts +1 -1
- package/dist/ui/form/aihistorylistitemview.d.ts +1 -1
- package/dist/ui/form/aihistorylistview.d.ts +1 -1
- package/dist/ui/form/prompthistory.d.ts +1 -1
- package/dist/ui/showaiassistantcommand.d.ts +1 -1
- package/dist/utils/common-translations.d.ts +1 -1
- package/dist/utils/normalizecommandsconfig.d.ts +1 -1
- package/package.json +8 -8
- package/src/adapters/aiadapter.d.ts +1 -1
- package/src/adapters/aiadapter.js +1 -1
- package/src/adapters/aitextadapter.d.ts +1 -1
- package/src/adapters/aitextadapter.js +1 -1
- package/src/adapters/awstextadapter.d.ts +1 -1
- package/src/adapters/awstextadapter.js +1 -1
- package/src/adapters/openaitextadapter.d.ts +1 -1
- package/src/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant.d.ts +1 -1
- package/src/aiassistant.js +1 -1
- package/src/aiassistantediting.d.ts +1 -1
- package/src/aiassistantediting.js +1 -1
- package/src/aiassistantui.d.ts +1 -1
- package/src/aiassistantui.js +1 -1
- package/src/aiconfig.d.ts +1 -1
- package/src/augmentation.d.ts +1 -1
- package/src/index.d.ts +1 -1
- package/src/index.js +1 -1
- package/src/legacyerrors.d.ts +1 -1
- package/src/legacyerrors.js +1 -1
- package/src/ui/aiassistantcontroller.d.ts +1 -1
- package/src/ui/aiassistantcontroller.js +2 -2
- package/src/ui/form/aiformcontentarea.d.ts +1 -1
- package/src/ui/form/aiformcontentarea.js +1 -1
- package/src/ui/form/aiformerrorview.d.ts +1 -1
- package/src/ui/form/aiformerrorview.js +1 -1
- package/src/ui/form/aiformpromptview.d.ts +1 -1
- package/src/ui/form/aiformpromptview.js +1 -1
- package/src/ui/form/aiformtoolbarview.d.ts +1 -1
- package/src/ui/form/aiformtoolbarview.js +1 -1
- package/src/ui/form/aiformview.d.ts +1 -1
- package/src/ui/form/aiformview.js +1 -1
- package/src/ui/form/aihistorylistitemview.d.ts +1 -1
- package/src/ui/form/aihistorylistitemview.js +1 -1
- package/src/ui/form/aihistorylistview.d.ts +1 -1
- package/src/ui/form/aihistorylistview.js +1 -1
- package/src/ui/form/prompthistory.d.ts +1 -1
- package/src/ui/form/prompthistory.js +1 -1
- package/src/ui/showaiassistantcommand.d.ts +1 -1
- package/src/ui/showaiassistantcommand.js +1 -1
- package/src/utils/common-translations.d.ts +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/normalizecommandsconfig.d.ts +1 -1
- package/src/utils/normalizecommandsconfig.js +1 -1
- package/theme/ai-dropdown.css +1 -1
- package/theme/ai-form.css +1 -1
- package/theme/ai.css +1 -1
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
|
|
23
|
+
const _0x1808aa=_0x4bc4;(function(_0x1b08fa,_0x28c0d8){const _0x49dac0=_0x4bc4,_0x127f80=_0x1b08fa();while(!![]){try{const _0x2afb5a=parseInt(_0x49dac0(0x1df))/0x1+parseInt(_0x49dac0(0x1b9))/0x2*(parseInt(_0x49dac0(0x1d1))/0x3)+-parseInt(_0x49dac0(0x1ef))/0x4+-parseInt(_0x49dac0(0x1e7))/0x5*(-parseInt(_0x49dac0(0x1b5))/0x6)+-parseInt(_0x49dac0(0x1c4))/0x7*(parseInt(_0x49dac0(0x1e8))/0x8)+parseInt(_0x49dac0(0x1e6))/0x9+parseInt(_0x49dac0(0x1d6))/0xa*(parseInt(_0x49dac0(0x1c9))/0xb);if(_0x2afb5a===_0x28c0d8)break;else _0x127f80['push'](_0x127f80['shift']());}catch(_0x4e2792){_0x127f80['push'](_0x127f80['shift']());}}}(_0x5b5e,0x5f1d5));function _0x5b5e(){const _0x266768=['setContentOf','stringify','element','handleError','previousLabel','listenTo','endsWith','viewToDom','21qcEBFv','_sanitizationContainer','_stripMarkdownSyntax','editor','initialContext','11hPdPEP','_domParser','reverse','trim','then','mainAction','custom','view','105783BAOIni','processor','ELEMENT_NODE','domConverter','childNodes','213530VDHUZG','message','remove','toModel','submitPrompt','value','substring','abort','push','369840kwVzJl','_isH1TagSupportEnabled','serializeToString','previousActionId','div','destroy','startProcessing','6248439znYGPk','15oayVes','1315400TzHnld','makeRequest','```','```html','<h1></h1>','rename','innerHTML','2484720pBDFEQ','stopListening','currentResponse','previousQuery','set:currentContext','render','toView','startsWith','nodeType','_normalizeResponseHeadings','previousContext','length','document','tryAgainEvent','editing','htmlProcessor','finishProcessing','data','_sanitizeHTML','match','createElement','stopProcessing','parseFromString','prompt','name','textAdapter','finally','text/html','updateView','catch','_parseAndNormalizeContent','isRendered','from','_xmlSerializer','querySelector','currentContext','body','once','766638zpdqJd','reset','isProcessing','exec','2Adthxs','_handleQuery','set'];_0x5b5e=function(){return _0x266768;};return _0x5b5e();}function _0x4bc4(_0x5936b3,_0x4462ac){const _0x5b5e37=_0x5b5e();return _0x4bc4=function(_0x4bc4d9,_0x50c99e){_0x4bc4d9=_0x4bc4d9-0x1b3;let _0x228b82=_0x5b5e37[_0x4bc4d9];return _0x228b82;},_0x4bc4(_0x5936b3,_0x4462ac);}import{ObservableMixin as _0x1b795c}from'ckeditor5/src/utils.js';import{AIRequestError as _0x3ddeb7}from'../adapters/aiadapter.js';import{Matcher as _0x5a6abd,UpcastWriter as _0x321944}from'ckeditor5/src/engine.js';const Z=new RegExp(/^(.*?)<[a-zA-Z][a-zA-Z0-9_\-.]*[ >]/,'is');export default class C extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x1b795c(){constructor(_0x6f6708,_0x21cb9f,_0x2dca67){const _0x41acbf=_0x4bc4;super(),this[_0x41acbf(0x1c7)]=_0x6f6708,this[_0x41acbf(0x208)]=_0x21cb9f,this[_0x41acbf(0x1c5)]=document[_0x41acbf(0x203)](_0x41acbf(0x1e3)),this[_0x41acbf(0x1ca)]=new DOMParser(),this[_0x41acbf(0x210)]=new XMLSerializer(),this[_0x41acbf(0x1d0)]=_0x2dca67,this[_0x41acbf(0x1bb)]({'initialContext':'','currentContext':'','currentResponse':'','previousContext':void 0x0,'previousQuery':void 0x0,'previousLabel':void 0x0,'isProcessing':!0x1}),this['on'](_0x41acbf(0x1f3),(_0x3cff5d,_0x4d86fd,_0x26640c)=>{const _0x1fb685=_0x41acbf;this[_0x1fb685(0x1d0)][_0x1fb685(0x1db)]=this[_0x1fb685(0x201)](_0x26640c);}),this[_0x41acbf(0x1c1)](this[_0x41acbf(0x1d0)],_0x41acbf(0x1da),(_0x221dc3,_0x417a9f)=>{const _0x134f11=_0x41acbf,_0x801b00=this[_0x134f11(0x212)]||this[_0x134f11(0x1c8)];this[_0x134f11(0x1ba)](_0x417a9f,_0x801b00,_0x134f11(0x1cf));}),this[_0x41acbf(0x1c1)](this[_0x41acbf(0x1d0)],_0x41acbf(0x1fc),()=>{const _0x3979a1=_0x41acbf;this[_0x3979a1(0x1d0)][_0x3979a1(0x206)]=this[_0x3979a1(0x1c0)],this[_0x3979a1(0x1ba)](this[_0x3979a1(0x1f2)],this[_0x3979a1(0x1f9)],this[_0x3979a1(0x1e2)],this[_0x3979a1(0x1c0)]);}),this[_0x41acbf(0x1c1)](this[_0x41acbf(0x1d0)],_0x41acbf(0x204),()=>{const _0x2927d0=_0x41acbf;this[_0x2927d0(0x204)]();});}[_0x1808aa(0x1e4)](){const _0x2cee2b=_0x1808aa;this[_0x2cee2b(0x1f0)]();}async[_0x1808aa(0x20b)]({actionId:_0xbc2c1c,query:_0x6bf29a,htmlContent:_0x402386,label:_0x26fb89,mainActionLabel:_0x249e35}){const _0x3cef2f=_0x1808aa;this[_0x3cef2f(0x1d0)][_0x3cef2f(0x206)]=_0x26fb89,this[_0x3cef2f(0x1d0)][_0x3cef2f(0x1ce)]=_0x249e35,this[_0x3cef2f(0x1c8)]=_0x402386,_0x6bf29a&&(this[_0x3cef2f(0x1d0)][_0x3cef2f(0x20e)]?this[_0x3cef2f(0x1ba)](_0x6bf29a,_0x402386,_0xbc2c1c,_0x26fb89):this[_0x3cef2f(0x1d0)][_0x3cef2f(0x1b4)](_0x3cef2f(0x1f4),()=>{const _0x3220fa=_0x3cef2f;this[_0x3220fa(0x1ba)](_0x6bf29a,_0x402386,_0xbc2c1c,_0x26fb89);}));}[_0x1808aa(0x204)](){const _0x25335b=_0x1808aa;this[_0x25335b(0x1b7)]&&(this[_0x25335b(0x1b7)]=!0x1,this[_0x25335b(0x1d0)][_0x25335b(0x1ff)](),this[_0x25335b(0x208)][_0x25335b(0x1dd)]());}[_0x1808aa(0x1b6)](){const _0x2fbb4b=_0x1808aa;this[_0x2fbb4b(0x1c8)]='',this[_0x2fbb4b(0x212)]='',this[_0x2fbb4b(0x1f1)]='',this[_0x2fbb4b(0x1f9)]='',this[_0x2fbb4b(0x1f2)]='',this[_0x2fbb4b(0x1c0)]='',this[_0x2fbb4b(0x1e2)]=void 0x0,this[_0x2fbb4b(0x1d0)][_0x2fbb4b(0x1b6)](),this[_0x2fbb4b(0x204)]();}async[_0x1808aa(0x1ba)](_0x56f120,_0x2fc277,_0x5ba13b,_0x461450){const _0xbb93d4=_0x1808aa;return this[_0xbb93d4(0x1b7)]=!0x0,this[_0xbb93d4(0x1d0)][_0xbb93d4(0x1e5)](),this[_0xbb93d4(0x1f9)]=_0x2fc277,this[_0xbb93d4(0x1f2)]=_0x56f120,this[_0xbb93d4(0x1c0)]=_0x461450||_0x56f120,this[_0xbb93d4(0x1e2)]=_0x5ba13b,new Promise(_0x48b1a3=>{const _0x558d77=_0xbb93d4;this[_0x558d77(0x208)][_0x558d77(0x1e9)]({'query':_0x56f120,'context':_0x2fc277,'onData':_0x38ca9f=>{const _0x18c7e7=_0x558d77;this[_0x18c7e7(0x1f1)]=_0x38ca9f,this[_0x18c7e7(0x212)]=this[_0x18c7e7(0x20d)](this[_0x18c7e7(0x1f1)]);},'actionId':_0x5ba13b})[_0x558d77(0x1cd)](()=>{const _0x4d0299=_0x558d77;!this[_0x4d0299(0x212)]&&this[_0x4d0299(0x1f1)]&&(this[_0x4d0299(0x212)]=this[_0x4d0299(0x20d)](this[_0x4d0299(0x1f1)],!0x0));})[_0x558d77(0x20c)](_0x4e8194=>{const _0x434265=_0x558d77;_0x4e8194 instanceof _0x3ddeb7?this[_0x434265(0x1d0)][_0x434265(0x1bf)](_0x4e8194[_0x434265(0x1d7)]):this[_0x434265(0x1d0)][_0x434265(0x1bf)](),_0x48b1a3();})[_0x558d77(0x209)](()=>{const _0x43b2c3=_0x558d77;this[_0x43b2c3(0x204)](),_0x48b1a3();});});}[_0x1808aa(0x20d)](_0x38c1dd,_0x55e946=!0x1){const _0x37c710=_0x1808aa,_0x37ef6c=Z[_0x37c710(0x1b8)](_0x38c1dd);_0x38c1dd=_0x37ef6c?_0x38c1dd[_0x37c710(0x1dc)](_0x37ef6c[0x1][_0x37c710(0x1fa)]):_0x38c1dd[_0x37c710(0x1fa)]<0x64&&!_0x55e946?'':this[_0x37c710(0x1c6)](_0x38c1dd);const _0x6c205c=this[_0x37c710(0x1ca)][_0x37c710(0x205)](_0x38c1dd,_0x37c710(0x20a));if(_0x37ef6c){const _0x29d8ae=Array[_0x37c710(0x20f)](_0x6c205c[_0x37c710(0x1b3)][_0x37c710(0x1d5)]);_0x29d8ae[_0x37c710(0x1cb)]();for(const _0xd26ae9 of _0x29d8ae){if(_0xd26ae9[_0x37c710(0x1f7)]==Node[_0x37c710(0x1d3)])break;_0xd26ae9[_0x37c710(0x1d8)]();}}const _0x25946b=this[_0x37c710(0x1c7)][_0x37c710(0x200)][_0x37c710(0x1d2)][_0x37c710(0x1f5)](this[_0x37c710(0x210)][_0x37c710(0x1e1)](_0x6c205c[_0x37c710(0x1b3)]));return this[_0x37c710(0x1e0)]()||this[_0x37c710(0x1f8)](_0x25946b),this[_0x37c710(0x1c7)][_0x37c710(0x200)][_0x37c710(0x1bd)](this[_0x37c710(0x1c7)][_0x37c710(0x200)][_0x37c710(0x1d9)](_0x25946b));}[_0x1808aa(0x1f8)](_0x5c500a){const _0xac0b4b=_0x1808aa,_0x2b762c=new _0x321944(this[_0xac0b4b(0x1c7)][_0xac0b4b(0x1fd)][_0xac0b4b(0x1d0)][_0xac0b4b(0x1fb)]),_0x3208c4=new _0x5a6abd({'name':/^h[1-5]$/}),_0x1d3a94=[];let _0x341ea4=!0x1;for(const _0x1b39ba of _0x5c500a)_0x1b39ba['is'](_0xac0b4b(0x1be))&&_0x3208c4[_0xac0b4b(0x202)](_0x1b39ba)&&(_0x1d3a94[_0xac0b4b(0x1de)](_0x1b39ba),'h1'==_0x1b39ba[_0xac0b4b(0x207)]&&(_0x341ea4=!0x0));if(_0x341ea4){for(const _0x1a45e8 of _0x1d3a94)_0x2b762c[_0xac0b4b(0x1ed)]('h'+(parseInt(_0x1a45e8[_0xac0b4b(0x207)][0x1])+0x1),_0x1a45e8);}}[_0x1808aa(0x1e0)](){const _0x59ee21=_0x1808aa,{data:_0x24cfe2,editing:_0x52149b}=this[_0x59ee21(0x1c7)],_0x2e23c0=_0x24cfe2[_0x59ee21(0x1fe)][_0x59ee21(0x1f5)](_0x59ee21(0x1ec)),_0x3160fc=_0x24cfe2[_0x59ee21(0x1f5)](_0x24cfe2[_0x59ee21(0x1d9)](_0x2e23c0));return!!_0x52149b[_0x59ee21(0x1d0)][_0x59ee21(0x1d4)][_0x59ee21(0x1c3)](_0x3160fc)[_0x59ee21(0x211)]('h1');}[_0x1808aa(0x201)](_0x2ef940){const _0x26b962=_0x1808aa;return this[_0x26b962(0x1c7)][_0x26b962(0x1fd)][_0x26b962(0x1d0)][_0x26b962(0x1d4)][_0x26b962(0x1bc)](this[_0x26b962(0x1c5)],_0x2ef940),this[_0x26b962(0x1c5)][_0x26b962(0x1ee)];}[_0x1808aa(0x1c6)](_0x30acff){const _0x51f084=_0x1808aa,_0x11432c=_0x30acff[_0x51f084(0x1cc)]();return _0x11432c[_0x51f084(0x1f6)](_0x51f084(0x1eb))?_0x11432c[_0x51f084(0x1c2)](_0x51f084(0x1ea))?_0x11432c[_0x51f084(0x1dc)](0x7,_0x11432c[_0x51f084(0x1fa)]-0x3):_0x11432c[_0x51f084(0x1dc)](0x7):_0x30acff;}}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module ai/ui/aiformcontentarea
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x323e59=_0x4b77;function _0x4b77(_0x3d23dd,_0x4dddef){const _0x5e0802=_0x5e08();return _0x4b77=function(_0x4b779b,_0x27b991){_0x4b779b=_0x4b779b-0x6c;let _0x4ce942=_0x5e0802[_0x4b779b];return _0x4ce942;},_0x4b77(_0x3d23dd,_0x4dddef);}function _0x5e08(){const _0x5ef036=['isEnabled','locale','wheel','<span>[</span>','class','removeAllRanges','innerHTML','execute','ClipboardItem','ck-ai-form__content-area','746901RwUfiU','ck-hidden','copyButtonView','setEndBefore','getSelection','bindTemplate','651546tdFFXh','\x20ck-ai-form__copy-button--copied','-9999px','<span>]</span>','absolute','_createCopyButton','position','write','164778OPfmzj','setStartAfter','632xjkaEz','left','text/plain','change:isProcessing','check','ck-ai-form__copy-button','ck-ai-form__loader','ck-reset_all-excluded','appendLoader','Copy','ck-content','set','4dwMmBv','contentFieldView','mousedown','render','copy','7050645JTSvwV','createElement','textContent','firstElementChild','bind','smooth','loaderView','icon','isVisible','createRange','lastElementChild','ck-ai-form__content-field','AI\x20is\x20writing...','element','value','.ck-ai-form__loader','ck-ai-form__content-area--processing','appendChild','querySelector','div','listenTo','isProcessing','execCommand','focus','style','_copyHTMLToClipboard','_createLoader','clipboard','setContent','text/html','1461865JmAQDu','1246aCyJBC','remove','ck-ai-form__content-area-wrapper','body','setTemplate','addRange','change:value','1753566gbdbIo','ck-ai-form__copy-button-wrapper','scrollHeight','scrollTo'];_0x5e08=function(){return _0x5ef036;};return _0x5e08();}(function(_0x21457d,_0x1d28f6){const _0x164a39=_0x4b77,_0x1f4d08=_0x21457d();while(!![]){try{const _0x16314f=-parseInt(_0x164a39(0xa9))/0x1+parseInt(_0x164a39(0xa1))/0x2+parseInt(_0x164a39(0x9b))/0x3*(parseInt(_0x164a39(0xb7))/0x4)+parseInt(_0x164a39(0x85))/0x5+parseInt(_0x164a39(0x8d))/0x6+-parseInt(_0x164a39(0x86))/0x7*(-parseInt(_0x164a39(0xab))/0x8)+-parseInt(_0x164a39(0xbc))/0x9;if(_0x16314f===_0x1d28f6)break;else _0x1f4d08['push'](_0x1f4d08['shift']());}catch(_0x384fff){_0x1f4d08['push'](_0x1f4d08['shift']());}}}(_0x5e08,0x36fe5));import{global as _0x49535d}from'ckeditor5/src/utils.js';import{View as _0x22254a,ButtonView as _0x1a7cf2,SpinnerView as _0x40dd1d}from'ckeditor5/src/ui.js';import _0x2c0533 from'../../../theme/icons/copy.svg';import{getTranslation as _0x11795f}from'../../utils/common-translations.js';import{icons as _0xb826c5}from'ckeditor5/src/core.js';export default class W extends _0x22254a{constructor(_0x37fb25,_0x2edff3=''){const _0x5a4022=_0x4b77;super(_0x37fb25),this[_0x5a4022(0xb6)]({'value':null,'isVisible':!0x1,'isProcessing':!0x1});const _0x220c3b=this[_0x5a4022(0xa0)];this[_0x5a4022(0xb8)]=new ContentFieldView(_0x37fb25,_0x2edff3),this[_0x5a4022(0x9d)]=this[_0x5a4022(0xa6)](),this[_0x5a4022(0x8a)]({'tag':_0x5a4022(0x7a),'attributes':{'class':['ck',_0x5a4022(0x88),_0x220c3b['if'](_0x5a4022(0x6f),_0x5a4022(0x9c),_0xbc92b5=>!_0xbc92b5)],'tabindex':'-1'},'children':[{'tag':_0x5a4022(0x7a),'attributes':{'class':['ck',_0x5a4022(0x9a),_0x220c3b['if'](_0x5a4022(0x7c),_0x5a4022(0x77))]},'children':[this[_0x5a4022(0xb8)],{'tag':_0x5a4022(0x7a),'attributes':{'class':['ck',_0x5a4022(0x8e)]},'children':[this[_0x5a4022(0x9d)]]}]}]});}[_0x323e59(0xba)](){const _0x3d12be=_0x323e59;super[_0x3d12be(0xba)](),this[_0x3d12be(0x75)]&&this[_0x3d12be(0xb8)][_0x3d12be(0x83)](this[_0x3d12be(0x75)]);let _0x1e5b1c=!0x1;this['on'](_0x3d12be(0x8c),(_0x5ac3ed,_0x457361,_0x3189a3)=>{const _0x5a4815=_0x3d12be,_0xf41c2b=!this[_0x5a4815(0xb8)][_0x5a4815(0x74)][_0x5a4815(0x79)](_0x5a4815(0x76));this[_0x5a4815(0xb8)][_0x5a4815(0x83)](_0x3189a3),this[_0x5a4815(0x7c)]&&_0xf41c2b&&!_0x1e5b1c&&this[_0x5a4815(0x74)][_0x5a4815(0x90)]({'top':this[_0x5a4815(0x74)][_0x5a4815(0x8f)],'behavior':_0x5a4815(0x6c)});}),this['on'](_0x3d12be(0xae),(_0x49002f,_0x76c302,_0x1ae226)=>{const _0x3df3c9=_0x3d12be;_0x1e5b1c=!0x1,_0x1ae226?(this[_0x3df3c9(0x75)]=null,this[_0x3df3c9(0xb8)][_0x3df3c9(0xb3)]()):this[_0x3df3c9(0x75)]||this[_0x3df3c9(0xb8)][_0x3df3c9(0x83)]('');}),this[_0x3d12be(0x7b)](this[_0x3d12be(0x74)],_0x3d12be(0x93),()=>{_0x1e5b1c=!0x0;}),this[_0x3d12be(0x7b)](this[_0x3d12be(0x74)],_0x3d12be(0xb9),()=>{_0x1e5b1c=!0x0;});}[_0x323e59(0x7e)](){const _0x5a8bb0=_0x323e59;this[_0x5a8bb0(0x74)][_0x5a8bb0(0x7e)]();}[_0x323e59(0xa6)](){const _0x4edd65=_0x323e59,_0x417579=this[_0x4edd65(0x92)],_0xfeda3e=new _0x1a7cf2(this[_0x4edd65(0x92)]),_0x33fdeb=_0x4edd65(0xb0);return _0xfeda3e[_0x4edd65(0xb6)]({'label':_0x11795f(_0x417579,_0x4edd65(0xb4)),'icon':_0x2c0533,'class':_0x33fdeb,'tooltip':!0x0}),_0xfeda3e[_0x4edd65(0xc0)](_0x4edd65(0x6f))['to'](this,_0x4edd65(0x75),_0x3666eb=>!!_0x3666eb),_0xfeda3e[_0x4edd65(0xc0)](_0x4edd65(0x91))['to'](this,_0x4edd65(0x7c),_0x218a4a=>!_0x218a4a),_0xfeda3e['on'](_0x4edd65(0x98),()=>{const _0x53dcfb=_0x4edd65;this[_0x53dcfb(0x80)](this[_0x53dcfb(0xb8)][_0x53dcfb(0x74)]),_0xfeda3e[_0x53dcfb(0x6e)]=_0xb826c5[_0x53dcfb(0xaf)],_0xfeda3e[_0x53dcfb(0x95)]=_0x33fdeb+_0x53dcfb(0xa2),this[_0x53dcfb(0x7e)](),setTimeout(()=>{const _0x4ec90a=_0x53dcfb;_0xfeda3e[_0x4ec90a(0x6e)]=_0x2c0533,_0xfeda3e[_0x4ec90a(0x95)]=_0x33fdeb;},0x3e8);}),_0xfeda3e;}[_0x323e59(0x80)](_0x3181bd){const _0x27639e=_0x323e59,{window:_0x2f3fa7,document:_0x1ad2f2}=_0x49535d;if(_0x2f3fa7[_0x27639e(0x99)]){const {Blob:_0x1a557f,ClipboardItem:_0x34ca9c}=_0x2f3fa7,_0x513f29=[new _0x34ca9c({'text/html':new _0x1a557f([_0x3181bd[_0x27639e(0x97)]],{'type':_0x27639e(0x84)}),'text/plain':new _0x1a557f([_0x3181bd[_0x27639e(0xbe)]||''],{'type':_0x27639e(0xad)})})];navigator[_0x27639e(0x82)][_0x27639e(0xa8)](_0x513f29);}else{const _0x56bc56=_0x1ad2f2[_0x27639e(0xbd)](_0x27639e(0x7a));_0x56bc56[_0x27639e(0x7f)][_0x27639e(0xa7)]=_0x27639e(0xa5),_0x56bc56[_0x27639e(0x7f)][_0x27639e(0xac)]=_0x27639e(0xa3),_0x56bc56[_0x27639e(0x97)]=_0x27639e(0x94)+_0x3181bd[_0x27639e(0x97)]+_0x27639e(0xa4),_0x1ad2f2[_0x27639e(0x89)][_0x27639e(0x78)](_0x56bc56);const _0x3f1a3c=_0x1ad2f2[_0x27639e(0x70)]();_0x3f1a3c[_0x27639e(0xaa)](_0x56bc56[_0x27639e(0xbf)]),_0x3f1a3c[_0x27639e(0x9e)](_0x56bc56[_0x27639e(0x71)]);const _0x184524=_0x2f3fa7[_0x27639e(0x9f)]();_0x184524[_0x27639e(0x96)](),_0x184524[_0x27639e(0x8b)](_0x3f1a3c),_0x1ad2f2[_0x27639e(0x7d)](_0x27639e(0xbb)),_0x56bc56[_0x27639e(0x87)]();}}}export class ContentFieldView extends _0x22254a{constructor(_0xe909bc,_0x4a4296=''){const _0x399983=_0x323e59;super(_0xe909bc),this[_0x399983(0x6d)]=this[_0x399983(0x81)](),this[_0x399983(0x8a)]({'tag':_0x399983(0x7a),'attributes':{'class':['ck',_0x399983(0xb5),_0x4a4296,_0x399983(0xb2),_0x399983(0x72)]}});}[_0x323e59(0x83)](_0x36d9f6){const _0x54a9f9=_0x323e59;this[_0x54a9f9(0x74)][_0x54a9f9(0x97)]=_0x36d9f6;}[_0x323e59(0xb3)](){const _0x20eebb=_0x323e59;this[_0x20eebb(0x74)][_0x20eebb(0x78)](this[_0x20eebb(0x6d)][_0x20eebb(0x74)]);}[_0x323e59(0x81)](){const _0x491d38=_0x323e59,_0x466eea=new _0x22254a(),_0x52a10d=this[_0x491d38(0x92)],_0x9bb301=new _0x40dd1d();return _0x9bb301[_0x491d38(0x6f)]=!0x0,_0x466eea[_0x491d38(0x8a)]({'tag':_0x491d38(0x7a),'attributes':{'class':['ck',_0x491d38(0xb1)]},'children':[_0x9bb301,{'text':_0x11795f(_0x52a10d,_0x491d38(0x73))}]}),_0x466eea[_0x491d38(0xba)](),_0x466eea;}}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module ai/ui/aiformerrorview
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x3ee84c,_0x195274){const _0x31b770=_0x25d4,_0x3c78e7=_0x3ee84c();while(!![]){try{const _0x183af9=parseInt(_0x31b770(0x85))/0x1*(parseInt(_0x31b770(0x8d))/0x2)+-parseInt(_0x31b770(0x8f))/0x3+-parseInt(_0x31b770(0x89))/0x4+parseInt(_0x31b770(0x87))/0x5+parseInt(_0x31b770(0x8c))/0x6+-parseInt(_0x31b770(0x95))/0x7*(parseInt(_0x31b770(0x8b))/0x8)+parseInt(_0x31b770(0x86))/0x9*(-parseInt(_0x31b770(0x91))/0xa);if(_0x183af9===_0x195274)break;else _0x3c78e7['push'](_0x3c78e7['shift']());}catch(_0x1e6aea){_0x3c78e7['push'](_0x3c78e7['shift']());}}}(_0x3aa3,0x1d6cb));function _0x25d4(_0x27c74e,_0x707c02){const _0x3aa3b8=_0x3aa3();return _0x25d4=function(_0x25d4f7,_0x34e224){_0x25d4f7=_0x25d4f7-0x85;let _0x21c833=_0x3aa3b8[_0x25d4f7];return _0x21c833;},_0x25d4(_0x27c74e,_0x707c02);}import{View as _0x1b2625,IconView as _0x1710b5}from'ckeditor5/src/ui.js';import _0x425f5a from'../../../theme/icons/error.svg';export default class tt extends _0x1b2625{constructor(_0x392d1b,_0x542fb7=''){const _0x411398=_0x25d4;super(_0x392d1b);const _0x116af1=new _0x1710b5(),_0x16d547=this[_0x411398(0x90)];this[_0x411398(0x88)](_0x411398(0x92),_0x542fb7),_0x116af1[_0x411398(0x8a)]=_0x425f5a,this[_0x411398(0x8e)]({'tag':_0x411398(0x94),'attributes':{'class':['ck',_0x411398(0x93)]},'children':[_0x116af1,{'text':_0x16d547['to'](_0x411398(0x92))}]});}}function _0x3aa3(){const _0x398296=['bindTemplate','411490phAzZW','text','ck-ai-form__error','div','196wNlgTc','1GheZRb','9otfCoR','806935sWdcUH','set','255388JghwPH','content','43592LHFdZt','1126158WQJXav','225016HgWIpd','setTemplate','250491QOBRGL'];_0x3aa3=function(){return _0x398296;};return _0x3aa3();}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module ai/ui/aiformpromptview
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0xf681(){const _0x450171=['focusFirst','element','8032668efAitj','2744424MevrYE','_createShowHistoryButton','12959230luuzYm','width','6umhFIE','isVisible','focusableChildren','requestAnimationFrame','2612223ulcNfz','699498bQwEMb','focusLast','target','update','excludeScrollbarsAndBorders','isEnabled','uiLanguageDirection','_createSubmitButton','isOn','queryView','279022FgqpEM','History','history','minRows','submit','keystrokes','fire','add','style','showHistoryButtonView','focus','locale','rtl','enter','ck-ai-form__toggle-history','focusCycler','1295450dmnufC','execute','ck-ai-form__submit','filteredView','Submit','fieldView','children','11PSyzjY','fieldWrapperChildren','isEmpty','render','bind','window','maxRows','resultsView','3gclINM','left','set','12sXqNsD','right','submitButtonView','value'];_0xf681=function(){return _0x450171;};return _0xf681();}const _0xe9c0f2=_0x2c24;(function(_0x412633,_0x58b938){const _0x3210f8=_0x2c24,_0xa3e2d9=_0x412633();while(!![]){try{const _0x5ca5cd=parseInt(_0x3210f8(0x21e))/0x1*(parseInt(_0x3210f8(0x1ff))/0x2)+parseInt(_0x3210f8(0x1f5))/0x3*(parseInt(_0x3210f8(0x221))/0x4)+parseInt(_0x3210f8(0x20f))/0x5*(parseInt(_0x3210f8(0x1f0))/0x6)+parseInt(_0x3210f8(0x227))/0x7+-parseInt(_0x3210f8(0x228))/0x8+-parseInt(_0x3210f8(0x1f4))/0x9+parseInt(_0x3210f8(0x1ee))/0xa*(-parseInt(_0x3210f8(0x216))/0xb);if(_0x5ca5cd===_0x58b938)break;else _0xa3e2d9['push'](_0xa3e2d9['shift']());}catch(_0xab53d8){_0xa3e2d9['push'](_0xa3e2d9['shift']());}}}(_0xf681,0x915de));function _0x2c24(_0x57da95,_0x452a74){const _0xf681fd=_0xf681();return _0x2c24=function(_0x2c2467,_0x11c1a4){_0x2c2467=_0x2c2467-0x1ee;let _0x1941f3=_0xf681fd[_0x2c2467];return _0x1941f3;},_0x2c24(_0x57da95,_0x452a74);}import{Rect as _0x22d267,global as _0x1fb69c,isVisible as _0x46f14d}from'ckeditor5/src/utils.js';import{AutocompleteView as _0x354c8d,ButtonView as _0x1a4a23}from'ckeditor5/src/ui.js';import{icons as _0x3cd714}from'ckeditor5/src/core.js';import{getTranslation as _0xe8269c}from'../../utils/common-translations.js';import _0x5a938a from'../../../theme/icons/submit.svg';export default class ht extends _0x354c8d{constructor(_0x2694e0,_0x3f5d00){const _0xbec1af=_0x2c24;super(_0x2694e0,_0x3f5d00),this[_0xbec1af(0x1fe)][_0xbec1af(0x214)][_0xbec1af(0x202)]=0x1,this[_0xbec1af(0x1fe)][_0xbec1af(0x214)][_0xbec1af(0x21c)]=0x3,this[_0xbec1af(0x223)]=this[_0xbec1af(0x1fc)](),this[_0xbec1af(0x208)]=this[_0xbec1af(0x229)](),this[_0xbec1af(0x1f2)][_0xbec1af(0x206)](this[_0xbec1af(0x208)],0x1),this[_0xbec1af(0x1f2)][_0xbec1af(0x206)](this[_0xbec1af(0x223)]);}[_0xe9c0f2(0x219)](){const _0x3dfab0=_0xe9c0f2;super[_0x3dfab0(0x219)](),this[_0x3dfab0(0x1fe)][_0x3dfab0(0x217)][_0x3dfab0(0x206)](this[_0x3dfab0(0x208)]),this[_0x3dfab0(0x215)][_0x3dfab0(0x206)](this[_0x3dfab0(0x223)]),this[_0x3dfab0(0x204)][_0x3dfab0(0x220)](_0x3dfab0(0x20c),(_0xc324de,_0x57df57)=>{const _0x363aa7=_0x3dfab0;_0xc324de[_0x363aa7(0x1f7)]==this[_0x363aa7(0x1fe)][_0x363aa7(0x214)][_0x363aa7(0x226)]&&(this[_0x363aa7(0x203)](),_0x57df57());});}[_0xe9c0f2(0x1fc)](){const _0x3fb8d4=_0xe9c0f2,_0x2cb0d1=new _0x1a4a23(this[_0x3fb8d4(0x20a)]),_0x46b6ee=this[_0x3fb8d4(0x20a)];return _0x2cb0d1[_0x3fb8d4(0x220)]({'icon':_0x5a938a,'label':_0xe8269c(_0x46b6ee,_0x3fb8d4(0x213)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x3fb8d4(0x211)}),_0x2cb0d1['on'](_0x3fb8d4(0x210),()=>{const _0x7c346e=_0x3fb8d4;this[_0x7c346e(0x203)]();}),_0x2cb0d1[_0x3fb8d4(0x21a)](_0x3fb8d4(0x1fa))['to'](this[_0x3fb8d4(0x1fe)][_0x3fb8d4(0x214)],_0x3fb8d4(0x218),this,_0x3fb8d4(0x1fa),(_0x20245e,_0x262f6a)=>!_0x20245e&&_0x262f6a),_0x2cb0d1;}[_0xe9c0f2(0x229)](){const _0x46efd7=_0xe9c0f2,_0x53e2e6=new _0x1a4a23(this[_0x46efd7(0x20a)]),_0x1d483b=this[_0x46efd7(0x21d)],_0x38cc01=this[_0x46efd7(0x20a)];_0x53e2e6[_0x46efd7(0x220)]({'label':_0xe8269c(_0x38cc01,_0x46efd7(0x200)),'withText':!0x1,'icon':_0x3cd714[_0x46efd7(0x201)],'tooltip':!0x0,'tooltipPosition':'sw','class':_0x46efd7(0x20d)}),_0x53e2e6[_0x46efd7(0x21a)](_0x46efd7(0x1fd))['to'](_0x1d483b,_0x46efd7(0x1f1)),_0x53e2e6[_0x46efd7(0x21a)](_0x46efd7(0x1fa))['to'](this,_0x46efd7(0x1fa)),_0x53e2e6['on'](_0x46efd7(0x210),()=>{const _0x2ac650=_0x46efd7;_0x1d483b[_0x2ac650(0x1f1)]=!_0x1d483b[_0x2ac650(0x1f1)],_0x1d483b[_0x2ac650(0x1f1)]?this[_0x2ac650(0x212)][_0x2ac650(0x209)]():this[_0x2ac650(0x209)]();});const _0x244a34=()=>{const _0x2673d7=_0x46efd7;_0x1fb69c[_0x2673d7(0x21b)][_0x2673d7(0x1f3)](()=>{const _0x455104=_0x2673d7;if(_0x46f14d(this[_0x455104(0x226)])){const _0x5b7c55=new _0x22d267(this[_0x455104(0x1fe)][_0x455104(0x214)][_0x455104(0x226)]),_0x509ab1=_0x5b7c55[_0x455104(0x1ef)],_0x572e3a=_0x455104(0x20b)===_0x38cc01[_0x455104(0x1fb)]?_0x455104(0x21f):_0x455104(0x222);_0x5b7c55[_0x455104(0x1f9)](),_0x53e2e6[_0x455104(0x226)][_0x455104(0x207)][_0x572e3a]=_0x509ab1-_0x5b7c55[_0x455104(0x1ef)]+0x1+'px';}});};return this[_0x46efd7(0x1fe)][_0x46efd7(0x214)]['on'](_0x46efd7(0x1f8),_0x244a34),this['on'](_0x46efd7(0x219),_0x244a34),_0x53e2e6;}[_0xe9c0f2(0x203)](){const _0x29f18c=_0xe9c0f2,_0x2cf3de=this[_0x29f18c(0x1fe)][_0x29f18c(0x214)][_0x29f18c(0x226)][_0x29f18c(0x224)];this[_0x29f18c(0x205)](_0x29f18c(0x203),_0x2cf3de);}[_0xe9c0f2(0x209)](_0x42ac34){const _0x3840a2=_0xe9c0f2;-0x1===_0x42ac34?this[_0x3840a2(0x20e)][_0x3840a2(0x1f6)]():this[_0x3840a2(0x20e)][_0x3840a2(0x225)]();}}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module ai/ui/aiformtoolbarview
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x37dd1a=_0xc9e9;(function(_0x4c7af2,_0x5ecea6){const _0x51c68a=_0xc9e9,_0x5dbfe9=_0x4c7af2();while(!![]){try{const _0x5bdfc1=-parseInt(_0x51c68a(0x1e3))/0x1+-parseInt(_0x51c68a(0x1f4))/0x2+-parseInt(_0x51c68a(0x1d8))/0x3*(parseInt(_0x51c68a(0x1e5))/0x4)+parseInt(_0x51c68a(0x1e0))/0x5+parseInt(_0x51c68a(0x1e9))/0x6+parseInt(_0x51c68a(0x1ea))/0x7+-parseInt(_0x51c68a(0x1e8))/0x8;if(_0x5bdfc1===_0x5ecea6)break;else _0x5dbfe9['push'](_0x5dbfe9['shift']());}catch(_0x48133c){_0x5dbfe9['push'](_0x5dbfe9['shift']());}}}(_0x4937,0x57f30));function _0xc9e9(_0x6013c2,_0xcc6071){const _0x493706=_0x4937();return _0xc9e9=function(_0xc9e987,_0x37548d){_0xc9e987=_0xc9e987-0x1d7;let _0x1c40f7=_0x493706[_0xc9e987];return _0x1c40f7;},_0xc9e9(_0x6013c2,_0xcc6071);}import{ToolbarView as _0x23fa8b,ButtonView as _0x4499b8}from'ckeditor5/src/ui.js';function _0x4937(){const _0x25cdb2=['set','insert','190268ZjuTQI','bindTemplate','32NpIsfh','ck-ai-form__toolbar','addMany','768552xsuraE','3562584OeIFQH','4296761xIyyxc','label','toUpperCase','locale','stopButton','extendTemplate','replace','Stop','bind','ck-hidden','817240meTaGK','isVisible','insertButton','_createButton','ck-button-action','replaceButton','mainAction','125691kgdeTp','_CONTENT','Try\x20again','REPLACE','AI_','tryAgainButton','Insert\x20below','items','913930iwUmQb'];_0x4937=function(){return _0x25cdb2;};return _0x4937();}import{getTranslation as _0x2dfc89}from'../../utils/common-translations.js';export const AIFormToolbarViewMainActionLabel={'REPLACE':_0x37dd1a(0x1f0),'INSERT':_0x37dd1a(0x1e2)};export default class nt extends _0x23fa8b{constructor(_0x55c618){const _0x3bf9d3=_0x37dd1a;super(_0x55c618),this[_0x3bf9d3(0x1e1)](_0x3bf9d3(0x1f5),!0x1),this[_0x3bf9d3(0x1e1)](_0x3bf9d3(0x1d7),AIFormToolbarViewMainActionLabel[_0x3bf9d3(0x1db)]),this[_0x3bf9d3(0x1f9)]=this[_0x3bf9d3(0x1f7)]('',_0x3bf9d3(0x1f8)),this[_0x3bf9d3(0x1f9)][_0x3bf9d3(0x1f2)](_0x3bf9d3(0x1eb))['to'](this,_0x3bf9d3(0x1d7),_0x43f8f7=>_0x2dfc89(_0x55c618,_0x3bf9d3(0x1dc)+_0x43f8f7[_0x3bf9d3(0x1ec)]()+_0x3bf9d3(0x1d9))),this[_0x3bf9d3(0x1f6)]=this[_0x3bf9d3(0x1f7)](_0x2dfc89(_0x55c618,_0x3bf9d3(0x1de))),this[_0x3bf9d3(0x1dd)]=this[_0x3bf9d3(0x1f7)](_0x2dfc89(_0x55c618,_0x3bf9d3(0x1da))),this[_0x3bf9d3(0x1ee)]=this[_0x3bf9d3(0x1f7)](_0x2dfc89(_0x55c618,_0x3bf9d3(0x1f1)));const _0x533be0=this[_0x3bf9d3(0x1e4)];this[_0x3bf9d3(0x1ef)]({'attributes':{'class':[_0x3bf9d3(0x1e6),_0x533be0['if'](_0x3bf9d3(0x1f5),_0x3bf9d3(0x1f3),_0x46e549=>!_0x46e549)]}}),this[_0x3bf9d3(0x1df)][_0x3bf9d3(0x1e7)]([this[_0x3bf9d3(0x1f9)],this[_0x3bf9d3(0x1f6)],this[_0x3bf9d3(0x1dd)],this[_0x3bf9d3(0x1ee)]]);}[_0x37dd1a(0x1f7)](_0x26b287,_0x3ac503){const _0x3e0319=_0x37dd1a,_0x45be60=new _0x4499b8(this[_0x3e0319(0x1ed)]);return _0x45be60[_0x3e0319(0x1e1)]({'label':_0x26b287,'class':_0x3ac503||'','isVisible':!0x0,'withText':!0x0}),_0x45be60;}}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module ai/ui/aiformview
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4f5468=_0x2be5;(function(_0x3b9561,_0x3ee40e){const _0x286411=_0x2be5,_0x41f553=_0x3b9561();while(!![]){try{const _0x203c1c=parseInt(_0x286411(0x203))/0x1*(parseInt(_0x286411(0x231))/0x2)+-parseInt(_0x286411(0x210))/0x3*(parseInt(_0x286411(0x214))/0x4)+parseInt(_0x286411(0x1e9))/0x5+parseInt(_0x286411(0x218))/0x6*(parseInt(_0x286411(0x228))/0x7)+-parseInt(_0x286411(0x22c))/0x8*(-parseInt(_0x286411(0x237))/0x9)+-parseInt(_0x286411(0x1f4))/0xa*(-parseInt(_0x286411(0x1fc))/0xb)+-parseInt(_0x286411(0x204))/0xc;if(_0x203c1c===_0x3ee40e)break;else _0x41f553['push'](_0x41f553['shift']());}catch(_0x1ab2c){_0x41f553['push'](_0x41f553['shift']());}}}(_0x2fd1,0x5a581));import{FocusTracker as _0x46ef73,KeystrokeHandler as _0xc319d5}from'ckeditor5/src/utils.js';import{View as _0x194caf,FocusCycler as _0x1512fe,createLabeledTextarea as _0x4ee9a4}from'ckeditor5/src/ui.js';import _0xe7a25e,{AIFormToolbarViewMainActionLabel as _0x405837}from'./aiformtoolbarview.js';import _0x501a4b from'./aiformcontentarea.js';import _0x190a14 from'./aiformerrorview.js';import _0xa1e850 from'./aiformpromptview.js';import _0x50f7b2 from'./aihistorylistview.js';import _0x3f2848 from'./aihistorylistitemview.js';import _0x44658a from'./prompthistory.js';function _0x2be5(_0x15a44b,_0x4780aa){const _0x2fd178=_0x2fd1();return _0x2be5=function(_0x2be5f2,_0x2a9a7d){_0x2be5f2=_0x2be5f2-0x1e8;let _0x38270d=_0x2fd178[_0x2be5f2];return _0x38270d;},_0x2be5(_0x15a44b,_0x4780aa);}function _0x2fd1(){const _0x2fcd8c=['delegate','insertButton','handleError','keystrokes','ck-hidden','execute','2786695EjWylL','focusLast','focusCycler','promptView','finishProcessing','clearHistory','Ask\x20AI\x20to\x20improve\x20generated\x20text','trim','clear','focusTracker','render','3010tsmgDg','bindTemplate','insertContentBelow','setTemplate','text','add','_createHistoryView','high','21362xSJfyy','bindTo','startProcessing','_createToolbar','Ask\x20AI\x20to\x20edit\x20or\x20generate','shift\x20+\x20tab','label','2tbeTcB','24037860EluhBR','errorView','fire','bind','copyButtonView','isEnabled','fieldView','ck-ai-form','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','replaceButton','stopButton','items','3JzUJHm','focusFirst','toolbar','chain','703540ANdDdz','stopProcessing','tab','_focusables','18DpWASi','value','createCollection','_promptHistory','focus','prompt','search','mainAction','AI_ERROR_FAILED','ck-ai-form-content','isVisible','queryView','replaceContent','isError','isProcessing','_createPromptView','1358644oXHmhZ','submitPrompt','historyGroupView','element','487624rCBRwF','div','tryAgainEvent','listenTo','submit','581120wXUawH','reset','REPLACE','contentArea','locale','Empty\x20history','36zBCjTs','tryAgainButton','set'];_0x2fd1=function(){return _0x2fcd8c;};return _0x2fd1();}import{getTranslation as _0x48ebb6}from'../../utils/common-translations.js';import{escape as _0x4eb046}from'lodash-es';export default class K extends _0x194caf{constructor(_0x581d7d,_0x48faed,_0x4258d3=''){const _0x21c336=_0x2be5;super(_0x581d7d),this[_0x21c336(0x239)](_0x21c336(0x209),!0x0),this[_0x21c336(0x239)](_0x21c336(0x226),!0x1),this[_0x21c336(0x239)](_0x21c336(0x21d),''),this[_0x21c336(0x239)](_0x21c336(0x219),''),this[_0x21c336(0x239)](_0x21c336(0x225),!0x1),this[_0x21c336(0x239)](_0x21c336(0x21f),_0x405837[_0x21c336(0x233)]),this[_0x21c336(0x21b)]=new _0x44658a(),this[_0x21c336(0x205)]=new _0x190a14(_0x581d7d),this[_0x21c336(0x234)]=new _0x501a4b(_0x581d7d,_0x4258d3),this[_0x21c336(0x234)][_0x21c336(0x207)](_0x21c336(0x226))['to'](this),this[_0x21c336(0x234)][_0x21c336(0x207)](_0x21c336(0x219))['to'](this),this[_0x21c336(0x212)]=this[_0x21c336(0x1ff)](),this[_0x21c336(0x212)][_0x21c336(0x207)](_0x21c336(0x21f))['to'](this),this[_0x21c336(0x1ec)]=this[_0x21c336(0x227)](),this[_0x21c336(0x1f2)]=new _0x46ef73(),this[_0x21c336(0x23d)]=new _0xc319d5(),this[_0x21c336(0x217)]=this[_0x21c336(0x21a)]([this[_0x21c336(0x234)],this[_0x21c336(0x234)][_0x21c336(0x208)],this[_0x21c336(0x212)],this[_0x21c336(0x1ec)]]),this[_0x21c336(0x1eb)]=new _0x1512fe({'focusables':this[_0x21c336(0x217)],'focusTracker':this[_0x21c336(0x1f2)],'keystrokeHandler':this[_0x21c336(0x23d)],'actions':{'focusPrevious':_0x21c336(0x201),'focusNext':_0x21c336(0x216)}}),this[_0x21c336(0x1eb)][_0x21c336(0x213)](this[_0x21c336(0x1ec)][_0x21c336(0x1eb)]),this[_0x21c336(0x1ec)][_0x21c336(0x223)][_0x21c336(0x20a)][_0x21c336(0x207)](_0x21c336(0x219))['to'](this,_0x21c336(0x21d));const _0x2415aa=this[_0x21c336(0x1f5)];this[_0x21c336(0x1f7)]({'tag':_0x21c336(0x22d),'attributes':{'class':['ck',_0x21c336(0x20b),_0x48faed],'tabindex':'-1'},'children':[{'tag':_0x21c336(0x22d),'attributes':{'class':['ck',_0x21c336(0x221)]},'children':[{'tag':_0x21c336(0x22d),'attributes':{'class':[_0x2415aa['if'](_0x21c336(0x225),_0x21c336(0x23e),_0xbe5062=>!_0xbe5062)]},'children':[this[_0x21c336(0x205)]]},this[_0x21c336(0x234)],this[_0x21c336(0x212)],this[_0x21c336(0x1ec)]]}]});}[_0x4f5468(0x1f3)](){const _0x513854=_0x4f5468;super[_0x513854(0x1f3)](),this[_0x513854(0x1f2)][_0x513854(0x1f9)](this[_0x513854(0x234)][_0x513854(0x22b)]),this[_0x513854(0x1f2)][_0x513854(0x1f9)](this[_0x513854(0x234)][_0x513854(0x208)][_0x513854(0x22b)]),this[_0x513854(0x1f2)][_0x513854(0x1f9)](this[_0x513854(0x212)][_0x513854(0x22b)]),this[_0x513854(0x1f2)][_0x513854(0x1f9)](this[_0x513854(0x1ec)][_0x513854(0x22b)]),this[_0x513854(0x23d)][_0x513854(0x22f)](this[_0x513854(0x22b)]);}[_0x4f5468(0x21c)](_0x33261a=0x1){const _0x493b54=_0x4f5468;-0x1===_0x33261a?this[_0x493b54(0x1eb)][_0x493b54(0x1ea)]():this[_0x493b54(0x1eb)][_0x493b54(0x211)]();}[_0x4f5468(0x232)](){const _0x1a5b8d=_0x4f5468;this[_0x1a5b8d(0x21d)]='',this[_0x1a5b8d(0x219)]='',this[_0x1a5b8d(0x225)]=!0x1,this[_0x1a5b8d(0x1ec)][_0x1a5b8d(0x232)](),this[_0x1a5b8d(0x234)][_0x1a5b8d(0x222)]=!0x1,this[_0x1a5b8d(0x212)][_0x1a5b8d(0x222)]=!0x1;}[_0x4f5468(0x227)](){const _0x533ad4=_0x4f5468,_0x19b673=this[_0x533ad4(0x235)],_0x1c1c1d=new _0xa1e850(_0x19b673,{'queryView':{'label':_0x48ebb6(_0x19b673,_0x533ad4(0x200)),'creator':_0x4ee9a4,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x48ebb6(_0x19b673,_0x533ad4(0x236)),'secondary':_0x48ebb6(_0x19b673,_0x533ad4(0x20c))}}},'filteredView':this[_0x533ad4(0x1fa)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x1c1c1d[_0x533ad4(0x207)](_0x533ad4(0x209))['to'](this,_0x533ad4(0x209),this,_0x533ad4(0x226),(_0xa5ddcc,_0x789922)=>_0xa5ddcc&&!_0x789922),this[_0x533ad4(0x22f)](_0x1c1c1d,_0x533ad4(0x230),(_0x46ba04,_0x4b5a47)=>{const _0x34fe12=_0x533ad4;this[_0x34fe12(0x21d)]=_0x4b5a47;const _0x516b41=_0x4eb046(_0x4b5a47);this[_0x34fe12(0x206)](_0x34fe12(0x229),_0x516b41),_0x4b5a47[_0x34fe12(0x1f0)]()&&this[_0x34fe12(0x21b)][_0x34fe12(0x1f9)]({'prompt':_0x516b41},0x0);},{'priority':_0x533ad4(0x1fb)}),_0x1c1c1d;}[_0x4f5468(0x1fa)](){const _0x3c30d0=_0x4f5468,_0x2d90a6=new _0x50f7b2(this[_0x3c30d0(0x235)]);return _0x2d90a6[_0x3c30d0(0x22a)][_0x3c30d0(0x20f)][_0x3c30d0(0x1fd)](this[_0x3c30d0(0x21b)])['as'](_0x3f2848),_0x2d90a6['on'](_0x3c30d0(0x1ee),()=>{const _0xe6f5f3=_0x3c30d0;this[_0xe6f5f3(0x21b)][_0xe6f5f3(0x1f1)](),this[_0xe6f5f3(0x1ec)][_0xe6f5f3(0x21e)](''),this[_0xe6f5f3(0x1ec)][_0xe6f5f3(0x21c)]();}),_0x2d90a6;}[_0x4f5468(0x1ff)](){const _0x198ecc=_0x4f5468,_0x2767f9=new _0xe7a25e(this[_0x198ecc(0x235)]);return _0x2767f9[_0x198ecc(0x20d)][_0x198ecc(0x207)](_0x198ecc(0x209))['to'](this,_0x198ecc(0x209),this,_0x198ecc(0x226),this,_0x198ecc(0x219),(_0x4ed597,_0x1a4b2b,_0x2be9f1)=>_0x4ed597&&!_0x1a4b2b&&!!_0x2be9f1),_0x2767f9[_0x198ecc(0x20d)][_0x198ecc(0x23a)](_0x198ecc(0x1e8))['to'](this,_0x198ecc(0x224)),_0x2767f9[_0x198ecc(0x23b)][_0x198ecc(0x207)](_0x198ecc(0x209))['to'](this,_0x198ecc(0x209),this,_0x198ecc(0x226),this,_0x198ecc(0x219),(_0x31cc12,_0x4297e3,_0x3cc6d5)=>_0x31cc12&&!_0x4297e3&&!!_0x3cc6d5),_0x2767f9[_0x198ecc(0x23b)][_0x198ecc(0x23a)](_0x198ecc(0x1e8))['to'](this,_0x198ecc(0x1f6)),_0x2767f9[_0x198ecc(0x238)][_0x198ecc(0x207)](_0x198ecc(0x209))['to'](this,_0x198ecc(0x209),this,_0x198ecc(0x226),(_0x53806b,_0x542993)=>_0x53806b&&!_0x542993),_0x2767f9[_0x198ecc(0x238)][_0x198ecc(0x23a)](_0x198ecc(0x1e8))['to'](this,_0x198ecc(0x22e)),_0x2767f9[_0x198ecc(0x20e)][_0x198ecc(0x207)](_0x198ecc(0x209))['to'](this,_0x198ecc(0x226)),_0x2767f9[_0x198ecc(0x20e)][_0x198ecc(0x23a)](_0x198ecc(0x1e8))['to'](this,_0x198ecc(0x215)),_0x2767f9;}[_0x4f5468(0x1fe)](){const _0xa5b045=_0x4f5468;this[_0xa5b045(0x219)]='',this[_0xa5b045(0x225)]=!0x1,this[_0xa5b045(0x226)]=!0x0,this[_0xa5b045(0x234)][_0xa5b045(0x222)]=!0x0,this[_0xa5b045(0x212)][_0xa5b045(0x222)]=!0x0,this[_0xa5b045(0x234)][_0xa5b045(0x21c)]();}[_0x4f5468(0x1ed)](){const _0x4f531c=_0x4f5468,_0x1ea323=this[_0x4f531c(0x235)];this[_0x4f531c(0x226)]=!0x1,this[_0x4f531c(0x21d)]='',this[_0x4f531c(0x1ec)][_0x4f531c(0x232)](),this[_0x4f531c(0x219)]&&(this[_0x4f531c(0x1ec)][_0x4f531c(0x223)][_0x4f531c(0x202)]=_0x48ebb6(_0x1ea323,_0x4f531c(0x1ef)));}[_0x4f5468(0x23c)](_0x27073e){const _0xcf2357=_0x4f5468,_0x3f5238=this[_0xcf2357(0x235)];this[_0xcf2357(0x1ed)](),this[_0xcf2357(0x225)]=!0x0,this[_0xcf2357(0x205)][_0xcf2357(0x1f8)]=_0x27073e||_0x48ebb6(_0x3f5238,_0xcf2357(0x220)),this[_0xcf2357(0x219)]||(this[_0xcf2357(0x234)][_0xcf2357(0x222)]=!0x1);}}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module ai/ui/aihistorylistitemview
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x2f57b5,_0x34a828){const _0x1c6e92=_0x553c,_0x54ec30=_0x2f57b5();while(!![]){try{const _0x33b44d=-parseInt(_0x1c6e92(0x117))/0x1+-parseInt(_0x1c6e92(0x114))/0x2+parseInt(_0x1c6e92(0x11d))/0x3*(-parseInt(_0x1c6e92(0x11c))/0x4)+parseInt(_0x1c6e92(0x111))/0x5+-parseInt(_0x1c6e92(0x118))/0x6*(-parseInt(_0x1c6e92(0x113))/0x7)+parseInt(_0x1c6e92(0x11e))/0x8*(parseInt(_0x1c6e92(0x11b))/0x9)+-parseInt(_0x1c6e92(0x11a))/0xa;if(_0x33b44d===_0x34a828)break;else _0x54ec30['push'](_0x54ec30['shift']());}catch(_0x456664){_0x54ec30['push'](_0x54ec30['shift']());}}}(_0x1e26,0x363fb));import{ListItemView as _0x65065b,ButtonView as _0xad43e8,ButtonLabelView as _0x2ec9e5}from'ckeditor5/src/ui.js';import{unescape as _0x806cd9}from'lodash-es';function _0x553c(_0x246174,_0x1b090c){const _0x1e2681=_0x1e26();return _0x553c=function(_0x553c7b,_0x1060d7){_0x553c7b=_0x553c7b-0x10e;let _0x4ade0d=_0x1e2681[_0x553c7b];return _0x4ade0d;},_0x553c(_0x246174,_0x1b090c);}function _0x1e26(){const _0x30c263=['18OyuvcG','add','2276570xKmAZi','501948lhckgR','12660olhfsj','69mnWODR','40oaKOYH','execute','locale','prompt','786385QhpvVn','set','438487eRCrfd','190554NCIHlF','children','fire','6128bTfSEA'];_0x1e26=function(){return _0x30c263;};return _0x1e26();}export default class hs extends _0x65065b{constructor(_0x24f3e3){const _0x5bb2da=_0x553c;super();const _0x21b1f9=new _0x2ec9e5(),_0x308988=new _0xad43e8(this[_0x5bb2da(0x10f)],_0x21b1f9);this[_0x5bb2da(0x115)][_0x5bb2da(0x119)](_0x308988),_0x308988[_0x5bb2da(0x112)]({'label':_0x24f3e3[_0x5bb2da(0x110)],'withText':!0x0}),_0x308988['on'](_0x5bb2da(0x10e),()=>{const _0x1b21e8=_0x5bb2da;this[_0x1b21e8(0x116)](_0x1b21e8(0x10e),{'value':_0x806cd9(_0x24f3e3[_0x1b21e8(0x110)])});});}}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module ai/ui/aihistorylistview
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0xd2765d=_0x1e1d;(function(_0x4f8b89,_0x21a8b3){const _0x23d692=_0x1e1d,_0x394d15=_0x4f8b89();while(!![]){try{const _0x32821f=-parseInt(_0x23d692(0xfa))/0x1+parseInt(_0x23d692(0xf8))/0x2+-parseInt(_0x23d692(0xe9))/0x3+parseInt(_0x23d692(0xea))/0x4+parseInt(_0x23d692(0xf3))/0x5*(parseInt(_0x23d692(0xfc))/0x6)+-parseInt(_0x23d692(0x101))/0x7*(-parseInt(_0x23d692(0xf4))/0x8)+-parseInt(_0x23d692(0xfb))/0x9*(parseInt(_0x23d692(0xf1))/0xa);if(_0x32821f===_0x21a8b3)break;else _0x394d15['push'](_0x394d15['shift']());}catch(_0x1d0cde){_0x394d15['push'](_0x394d15['shift']());}}}(_0x326e,0xbd852));function _0x326e(){const _0x11e67d=['1843194jLNqeg','children','Prompt\x20history','locale','filter','105308LDbASR','clearHistoryButton','fire','3183714vyWHvE','2808776nHcZRJ','historyGroupView','delegate','label','items','add','length','12170OTYuly','_createClearHistoryButton','15aJTmfh','8KcBTZB','execute','Clear','set','2920198nSLSTM','clearHistory','1043579oBMIzG','1611pzPWCF'];_0x326e=function(){return _0x11e67d;};return _0x326e();}function _0x1e1d(_0x111891,_0x42c4f7){const _0x326eca=_0x326e();return _0x1e1d=function(_0x1e1dbe,_0x4bde34){_0x1e1dbe=_0x1e1dbe-0xe7;let _0x59e397=_0x326eca[_0x1e1dbe];return _0x59e397;},_0x1e1d(_0x111891,_0x42c4f7);}import{ListView as _0x45c426,ListItemGroupView as _0x2fdf37,ButtonView as _0x3438b2}from'ckeditor5/src/ui.js';import{getTranslation as _0x1c2b7c}from'../../utils/common-translations.js';export default class rs extends _0x45c426{constructor(_0xfdab9f){const _0x442c2d=_0x1e1d;super(_0xfdab9f),this[_0x442c2d(0xe7)]=this[_0x442c2d(0xf2)](),this[_0x442c2d(0xeb)]=new _0x2fdf37(),this[_0x442c2d(0xeb)][_0x442c2d(0xfd)][_0x442c2d(0xef)](this[_0x442c2d(0xe7)],0x1),this[_0x442c2d(0xeb)][_0x442c2d(0xed)]=_0x1c2b7c(_0xfdab9f,_0x442c2d(0xfe)),this[_0x442c2d(0xeb)][_0x442c2d(0xee)][_0x442c2d(0xec)](_0x442c2d(0xf5))['to'](this),this[_0x442c2d(0xee)][_0x442c2d(0xef)](this[_0x442c2d(0xeb)]);}[_0xd2765d(0x100)](){const _0x58f0c5=_0xd2765d;let _0x515c1f=0x0;for(const _0x24d184 of this[_0x58f0c5(0xee)])_0x515c1f+=_0x24d184[_0x58f0c5(0xee)][_0x58f0c5(0xf0)];return{'resultsCount':_0x515c1f,'totalItemsCount':_0x515c1f};}[_0xd2765d(0xf2)](){const _0x165d2e=_0xd2765d,_0x4068fc=this[_0x165d2e(0xff)],_0x35c22f=new _0x3438b2(this[_0x165d2e(0xff)]);return _0x35c22f[_0x165d2e(0xf7)]({'label':'('+_0x1c2b7c(_0x4068fc,_0x165d2e(0xf6))+')','withText':!0x0}),_0x35c22f['on'](_0x165d2e(0xf5),()=>this[_0x165d2e(0xe8)](_0x165d2e(0xf9))),_0x35c22f;}}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
import { Collection } from 'ckeditor5/src/utils.js';
|
|
6
6
|
/**
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4f5e0b=_0x5bfb;(function(_0x1cb687,_0x2985dd){const _0x481935=_0x5bfb,_0x5338d1=_0x1cb687();while(!![]){try{const _0x3b9ba2=-parseInt(_0x481935(0x7c))/0x1+-parseInt(_0x481935(0x8d))/0x2+parseInt(_0x481935(0x87))/0x3+parseInt(_0x481935(0x82))/0x4+parseInt(_0x481935(0x80))/0x5+parseInt(_0x481935(0x8a))/0x6*(parseInt(_0x481935(0x83))/0x7)+-parseInt(_0x481935(0x7d))/0x8*(-parseInt(_0x481935(0x88))/0x9);if(_0x3b9ba2===_0x2985dd)break;else _0x5338d1['push'](_0x5338d1['shift']());}catch(_0x4b0c6a){_0x5338d1['push'](_0x5338d1['shift']());}}}(_0x2f96,0x44588));import{Collection as _0x48da2d}from'ckeditor5/src/utils.js';const cs=_0x4f5e0b(0x7a);function _0x5bfb(_0x4ca688,_0x58abe2){const _0x2f968e=_0x2f96();return _0x5bfb=function(_0x5bfb2d,_0x19ef8b){_0x5bfb2d=_0x5bfb2d-0x78;let _0x3104d7=_0x2f968e[_0x5bfb2d];return _0x3104d7;},_0x5bfb(_0x4ca688,_0x58abe2);}export default class os extends _0x48da2d{constructor(){const _0x55c81f=_0x4f5e0b;super(),this[_0x55c81f(0x81)](),this['on'](_0x55c81f(0x8c),(_0x12a05,_0xdc9c92)=>{const _0x1f83f4=_0x55c81f,_0xe20b9b=Ss(_0xdc9c92[_0x1f83f4(0x86)]);for(const _0x6bda2b of this)if(_0x6bda2b!=_0xdc9c92&&Ss(_0x6bda2b[_0x1f83f4(0x86)])===_0xe20b9b){this[_0x1f83f4(0x8e)](_0x6bda2b);break;}this[_0x1f83f4(0x79)]>0x14&&this[_0x1f83f4(0x8e)](this[_0x1f83f4(0x7e)]),this[_0x1f83f4(0x78)]();}),this['on'](_0x55c81f(0x8e),()=>{const _0x2ae9df=_0x55c81f;this[_0x2ae9df(0x78)]();});}[_0x4f5e0b(0x81)](){const _0x3f1ddf=_0x4f5e0b,_0x246782=sessionStorage[_0x3f1ddf(0x7f)](cs)||'[]';this[_0x3f1ddf(0x89)](JSON[_0x3f1ddf(0x85)](_0x246782));}[_0x4f5e0b(0x78)](){const _0x36483d=_0x4f5e0b;sessionStorage[_0x36483d(0x8f)](cs,JSON[_0x36483d(0x7b)](this[_0x36483d(0x8b)](_0x5c0a6a=>_0x5c0a6a)));}}function _0x2f96(){const _0x11e8a8=['777594MgsqFT','12375ByThQC','addMany','233250nwxnFH','map','add','654316PRtyVg','remove','setItem','toLowerCase','_saveToSessionStorage','length','CKEditor/AIFormView/PromptHistory','stringify','543084JfqUhe','1864iQHzCB','last','getItem','749690TvdpYS','_loadFromSessionStorage','1060700FjffAJ','28cYkANf','trim','parse','prompt'];_0x2f96=function(){return _0x11e8a8;};return _0x2f96();}function Ss(_0x18d8e3){const _0x3bf472=_0x4f5e0b;return _0x18d8e3[_0x3bf472(0x90)]()[_0x3bf472(0x84)]();}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module ai/ui/showaiassistantcommand
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x6a3f(){const _0x592235=['180lFToEC','_hasContext','name','document','getRanges','length','includes','custom','set','enabledCommandsIds','values','execute','change:_hasContext','showUI','getItems','9thllGp','2542818UrRRsg','model','config','plugins','getSelectedBlocks','250996JUvaGN','isEnabled','refresh','447862mIkALR','isEmpty','from','requiresContent','add','7273090CgcKPL','ai.aiAssistant.disabledElements','8408TCCHSE','_commandDefinitions','get','hasContent','4591573CKzWfy','8yOKHgh','change:isEnabled','2016759KKimGj','isCollapsed','getFirstRange','element','selection','editor'];_0x6a3f=function(){return _0x592235;};return _0x6a3f();}const _0x55a405=_0x49e9;function _0x49e9(_0x56d205,_0x17c0c7){const _0x6a3f7f=_0x6a3f();return _0x49e9=function(_0x49e9c1,_0x3e99ac){_0x49e9c1=_0x49e9c1-0x17e;let _0x623daa=_0x6a3f7f[_0x49e9c1];return _0x623daa;},_0x49e9(_0x56d205,_0x17c0c7);}(function(_0x5bc975,_0x2e3cbf){const _0x43e601=_0x49e9,_0x382d8c=_0x5bc975();while(!![]){try{const _0x47665a=parseInt(_0x43e601(0x184))/0x1+parseInt(_0x43e601(0x181))/0x2+parseInt(_0x43e601(0x192))/0x3+parseInt(_0x43e601(0x18b))/0x4*(parseInt(_0x43e601(0x198))/0x5)+-parseInt(_0x43e601(0x1a8))/0x6+-parseInt(_0x43e601(0x18f))/0x7*(-parseInt(_0x43e601(0x190))/0x8)+-parseInt(_0x43e601(0x1a7))/0x9*(parseInt(_0x43e601(0x189))/0xa);if(_0x47665a===_0x2e3cbf)break;else _0x382d8c['push'](_0x382d8c['shift']());}catch(_0x3b93d2){_0x382d8c['push'](_0x382d8c['shift']());}}}(_0x6a3f,0xc9b00));import{Command as _0x12487b}from'ckeditor5/src/core.js';import _0x525420 from'../aiassistantui.js';export default class y extends _0x12487b{constructor(_0x55bda6,_0x1653e7){const _0x54c8e9=_0x49e9;super(_0x55bda6),this[_0x54c8e9(0x18c)]=_0x1653e7,this[_0x54c8e9(0x1a0)](_0x54c8e9(0x1a1),[]),this['on'](_0x54c8e9(0x1a4),(_0xb239bb,_0x7410a,_0x4ab420)=>{const _0x3d9833=_0x54c8e9;this[_0x3d9833(0x182)]&&(this[_0x3d9833(0x1a1)]=G(this[_0x3d9833(0x18c)],_0x4ab420));}),this[_0x54c8e9(0x1a0)](_0x54c8e9(0x199),!0x1),this['on'](_0x54c8e9(0x191),(_0x535cd1,_0xa7102c,_0x10cf48)=>{const _0x230ebd=_0x54c8e9;this[_0x230ebd(0x1a1)]=_0x10cf48?G(this[_0x230ebd(0x18c)],this[_0x230ebd(0x199)]):[];});}[_0x55a405(0x183)](){const _0x56143d=_0x55a405,_0x5a66b4=this[_0x56143d(0x197)][_0x56143d(0x1a9)];this[_0x56143d(0x199)]=function(_0x4b4b1a){const _0x518bf5=_0x56143d,_0x16e7f6=_0x4b4b1a[_0x518bf5(0x19b)][_0x518bf5(0x196)];return _0x16e7f6[_0x518bf5(0x193)]?0x0!==[..._0x16e7f6[_0x518bf5(0x180)]()][_0x518bf5(0x19d)]&&![..._0x16e7f6[_0x518bf5(0x180)]()][0x0][_0x518bf5(0x185)]:!!_0x4b4b1a[_0x518bf5(0x18e)](_0x16e7f6[_0x518bf5(0x194)]());}(_0x5a66b4);const _0xf9de85=_0x5a66b4[_0x56143d(0x19b)][_0x56143d(0x196)],_0x27e0e9=this[_0x56143d(0x197)][_0x56143d(0x17e)][_0x56143d(0x18d)](_0x56143d(0x18a));for(const _0x5cbc34 of _0xf9de85[_0x56143d(0x19c)]())for(const _0x27aece of _0x5cbc34[_0x56143d(0x1a6)]())if(_0x27aece['is'](_0x56143d(0x195))&&_0x27e0e9[_0x56143d(0x19e)](_0x27aece[_0x56143d(0x19a)]))return void(this[_0x56143d(0x182)]=!0x1);this[_0x56143d(0x182)]=!0x0;}[_0x55a405(0x1a3)](_0x5c43e6='',_0x1606a7='',_0x559b11=_0x55a405(0x19f)){const _0x191e11=_0x55a405;this[_0x191e11(0x197)][_0x191e11(0x17f)][_0x191e11(0x18d)](_0x525420)[_0x191e11(0x1a5)](_0x5c43e6,_0x1606a7,_0x559b11);}}function G(_0x3a0ce5,_0x4d16e9){const _0x45428a=_0x55a405,_0x2de3fd=new Set();for(const _0x11f33c of _0x3a0ce5[_0x45428a(0x1a2)]())(_0x4d16e9||!0x1===_0x11f33c[_0x45428a(0x187)])&&_0x2de3fd[_0x45428a(0x188)](_0x11f33c['id']);return Array[_0x45428a(0x186)](_0x2de3fd);}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module ai/utils/common-translations
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(
|
|
23
|
+
export function getTranslation(_0x3ce17f,_0x12f306,_0x24ec0d){const t=_0x3ce17f['t'];switch(_0x12f306){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',_0x24ec0d);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x24ec0d);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'},_0x24ec0d);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 _0x12f306;}}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module ai/utils/normalizecommandsconfig
|