@ckeditor/ckeditor5-ai 47.0.0-alpha.3 → 47.0.0-alpha.5
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-editor.css +10 -1
- package/dist/index.css +10 -1
- package/dist/index.js +4 -4
- 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 +15 -15
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiactions/model/aiactionsinteraction.js +1 -1
- package/src/aiactions/model/aiactionsreply.js +1 -1
- package/src/aiassistant/adapters/aiadapter.js +1 -1
- package/src/aiassistant/adapters/aitextadapter.js +1 -1
- package/src/aiassistant/adapters/awstextadapter.js +1 -1
- package/src/aiassistant/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant/aiassistant.js +1 -1
- package/src/aiassistant/aiassistantediting.js +1 -1
- package/src/aiassistant/aiassistantui.js +1 -1
- package/src/aiassistant/legacyerrors.js +1 -1
- package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
- package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
- package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
- package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
- package/src/aiassistant/ui/form/aiformview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
- package/src/aiassistant/ui/form/prompthistory.js +1 -1
- package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
- package/src/aiassistant/utils/common-translations.js +1 -1
- package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
- package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
- package/src/aiballoon/ui/aiballoonview.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/model/aichatmodels.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
- package/src/aichat/utils/eventnames.js +1 -1
- package/src/aichat/utils/promisequeue.js +1 -1
- package/src/aichat/utils/scrollmanager.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +1 -1
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aicapabilities.js +1 -1
- package/src/aicore/model/aicontext.js +1 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/aireply.js +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +2 -2
- package/src/aicore/pipeline/airesponseparser.js +2 -2
- package/src/aicore/ui/aidisclaimerview.js +1 -1
- package/src/aicore/ui/aiskeleton.js +1 -1
- package/src/aicore/ui/aispinner.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/utils/common-translations.js +1 -1
- package/src/aicore/utils/createresizebutton.js +1 -1
- package/src/aicore/utils/documentposition.js +1 -1
- package/src/aicore/utils/documentrange.js +1 -1
- package/src/aicore/utils/eventnames.js +1 -1
- package/src/aicore/utils/geteditorfromcontext.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aicore/utils/htmlparser.js +1 -1
- package/src/aicore/utils/htmlstreamer.js +1 -1
- package/src/aiquickactions/aiquickactions.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsediting.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aiquickactions/utils/common-translations.js +1 -1
- package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeediting.js +1 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheck.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewchecklist.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
- package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewmodels.js +1 -1
- package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformamanager.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/aitabsmainview.js +1 -1
- package/src/aitabs/tabs/aitabsview.js +1 -1
- package/src/aitabs/tabs/tabbuttonview.js +1 -1
- package/src/aitabs/tabs/tabpanelview.js +1 -1
- package/src/index.js +1 -1
- package/theme/aireviewmode/aireviewmode-check-list.css +10 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3f4e46=_0x3b7a;(function(_0x2fe0cd,_0x286a2d){const _0x4a2a98=_0x3b7a,_0x3dc935=_0x2fe0cd();while(!![]){try{const _0x4c115a=parseInt(_0x4a2a98(0x95))/0x1+parseInt(_0x4a2a98(0xab))/0x2*(parseInt(_0x4a2a98(0x9b))/0x3)+-parseInt(_0x4a2a98(0xc9))/0x4*(parseInt(_0x4a2a98(0xb9))/0x5)+-parseInt(_0x4a2a98(0xb1))/0x6+-parseInt(_0x4a2a98(0x8d))/0x7*(-parseInt(_0x4a2a98(0x94))/0x8)+parseInt(_0x4a2a98(0xc4))/0x9+-parseInt(_0x4a2a98(0xb7))/0xa;if(_0x4c115a===_0x286a2d)break;else _0x3dc935['push'](_0x3dc935['shift']());}catch(_0x491b7d){_0x3dc935['push'](_0x3dc935['shift']());}}}(_0xc36f,0x4ab18));function _0xc36f(){const _0x51213c=['locale','set','clear','_promptHistory','isProcessing','145176ryRDvx','178400YDkQxf','delegate','high','submitPrompt','keystrokes','startProcessing','9393RQhpVD','focusLast','focusTracker','focusCycler','setTemplate','finishProcessing','ck-ai-form','Empty\x20history','isEnabled','text','fieldView','prompt','trim','isVisible','ck-ai-form-content','replaceContent','186riyjNj','focus','toolbar','tryAgainEvent','reset','div','3046902TWbMfB','bindTo','render','bindTemplate','tryAgainButton','listenTo','270190uOQedS','replaceButton','5EUKvgV','ck-hidden','fire','label','Ask\x20AI\x20to\x20edit\x20or\x20generate','stopProcessing','errorView','value','mainAction','stopButton','insertContentBelow','2888442zkzsPJ','items','contentArea','execute','bind','1976604CXNNfn','handleError','Ask\x20AI\x20to\x20improve\x20generated\x20text','promptView','_createHistoryView','_createPromptView','AI_ERROR_FAILED','add','element','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','chain','clearHistory','search','submit','tab','_focusables','_createToolbar','historyGroupView','insertButton','copyButtonView','queryView','focusFirst','createCollection','REPLACE','shift\x20+\x20tab','210Anuhab','isError'];_0xc36f=function(){return _0x51213c;};return _0xc36f();}import{FocusTracker as _0x2e66a9,KeystrokeHandler as _0x1977e2}from'ckeditor5/src/utils.js';import{View as _0x1f4034,FocusCycler as _0x4ed635,createLabeledTextarea as _0x327137}from'ckeditor5/src/ui.js';import{AIFormToolbarView as _0x345ef8,AIFormToolbarViewMainActionLabel as _0x3c7c64}from'./aiformtoolbarview.js';import{AIFormContentArea as _0x42b794}from'./aiformcontentarea.js';import{AIFormErrorView as _0x3f693c}from'./aiformerrorview.js';import{AIFormPromptView as _0x1b4955}from'./aiformpromptview.js';import{AIHistoryListView as _0x4c3fde}from'./aihistorylistview.js';import{AIHistoryListItemView as _0x2f5f59}from'./aihistorylistitemview.js';function _0x3b7a(_0x5df2cc,_0x2c184a){const _0xc36fbc=_0xc36f();return _0x3b7a=function(_0x3b7adf,_0x201ce0){_0x3b7adf=_0x3b7adf-0x8b;let _0x1b2abe=_0xc36fbc[_0x3b7adf];return _0x1b2abe;},_0x3b7a(_0x5df2cc,_0x2c184a);}import{PromptHistory as _0x563f69}from'./prompthistory.js';import{getTranslation as _0x4d68d1}from'../../utils/common-translations.js';import{escape as _0x45a6e7}from'es-toolkit/compat';export class AIFormView extends _0x1f4034{[_0x3f4e46(0x9d)];[_0x3f4e46(0x99)];[_0x3f4e46(0xc6)];[_0x3f4e46(0xad)];[_0x3f4e46(0xcc)];[_0x3f4e46(0xbf)];[_0x3f4e46(0xd8)];[_0x3f4e46(0x9e)];[_0x3f4e46(0x92)];constructor(_0x2d450b,_0x15d7ee,_0x136897=''){const _0x1629bf=_0x3f4e46;super(_0x2d450b),this[_0x1629bf(0x90)](_0x1629bf(0xa3),!0x0),this[_0x1629bf(0x90)](_0x1629bf(0x93),!0x1),this[_0x1629bf(0x90)](_0x1629bf(0xa6),''),this[_0x1629bf(0x90)](_0x1629bf(0xc0),''),this[_0x1629bf(0x90)](_0x1629bf(0x8e),!0x1),this[_0x1629bf(0x90)](_0x1629bf(0xc1),_0x3c7c64[_0x1629bf(0x8b)]),this[_0x1629bf(0x92)]=new _0x563f69(),this[_0x1629bf(0xbf)]=new _0x3f693c(_0x2d450b),this[_0x1629bf(0xc6)]=new _0x42b794(_0x2d450b,_0x136897),this[_0x1629bf(0xc6)][_0x1629bf(0xc8)](_0x1629bf(0x93))['to'](this),this[_0x1629bf(0xc6)][_0x1629bf(0xc8)](_0x1629bf(0xc0))['to'](this),this[_0x1629bf(0xad)]=this[_0x1629bf(0xd9)](),this[_0x1629bf(0xad)][_0x1629bf(0xc8)](_0x1629bf(0xc1))['to'](this),this[_0x1629bf(0xcc)]=this[_0x1629bf(0xce)](),this[_0x1629bf(0x9d)]=new _0x2e66a9(),this[_0x1629bf(0x99)]=new _0x1977e2(),this[_0x1629bf(0xd8)]=this[_0x1629bf(0xdf)]([this[_0x1629bf(0xc6)],this[_0x1629bf(0xc6)][_0x1629bf(0xdc)],this[_0x1629bf(0xad)],this[_0x1629bf(0xcc)]]),this[_0x1629bf(0x9e)]=new _0x4ed635({'focusables':this[_0x1629bf(0xd8)],'focusTracker':this[_0x1629bf(0x9d)],'keystrokeHandler':this[_0x1629bf(0x99)],'actions':{'focusPrevious':_0x1629bf(0x8c),'focusNext':_0x1629bf(0xd7)}}),this[_0x1629bf(0x9e)][_0x1629bf(0xd3)](this[_0x1629bf(0xcc)][_0x1629bf(0x9e)]),this[_0x1629bf(0xcc)][_0x1629bf(0xdd)][_0x1629bf(0xa5)][_0x1629bf(0xc8)](_0x1629bf(0xc0))['to'](this,_0x1629bf(0xa6));const _0x941b0b=this[_0x1629bf(0xb4)];this[_0x1629bf(0x9f)]({'tag':_0x1629bf(0xb0),'attributes':{'class':['ck',_0x1629bf(0xa1),_0x15d7ee],'tabindex':'-1'},'children':[{'tag':_0x1629bf(0xb0),'attributes':{'class':['ck',_0x1629bf(0xa9)]},'children':[{'tag':_0x1629bf(0xb0),'attributes':{'class':[_0x941b0b['if'](_0x1629bf(0x8e),_0x1629bf(0xba),_0x54e5fe=>!_0x54e5fe)]},'children':[this[_0x1629bf(0xbf)]]},this[_0x1629bf(0xc6)],this[_0x1629bf(0xad)],this[_0x1629bf(0xcc)]]}]});}[_0x3f4e46(0xb3)](){const _0x5f72ed=_0x3f4e46;super[_0x5f72ed(0xb3)](),this[_0x5f72ed(0x9d)][_0x5f72ed(0xd0)](this[_0x5f72ed(0xc6)][_0x5f72ed(0xd1)]),this[_0x5f72ed(0x9d)][_0x5f72ed(0xd0)](this[_0x5f72ed(0xc6)][_0x5f72ed(0xdc)][_0x5f72ed(0xd1)]),this[_0x5f72ed(0x9d)][_0x5f72ed(0xd0)](this[_0x5f72ed(0xad)][_0x5f72ed(0xd1)]),this[_0x5f72ed(0x9d)][_0x5f72ed(0xd0)](this[_0x5f72ed(0xcc)][_0x5f72ed(0xd1)]),this[_0x5f72ed(0x99)][_0x5f72ed(0xb6)](this[_0x5f72ed(0xd1)]);}[_0x3f4e46(0xac)](_0x872e74=0x1){const _0x109699=_0x3f4e46;-0x1===_0x872e74?this[_0x109699(0x9e)][_0x109699(0x9c)]():this[_0x109699(0x9e)][_0x109699(0xde)]();}[_0x3f4e46(0xaf)](){const _0x29fb97=_0x3f4e46;this[_0x29fb97(0xa6)]='',this[_0x29fb97(0xc0)]='',this[_0x29fb97(0x8e)]=!0x1,this[_0x29fb97(0xcc)][_0x29fb97(0xaf)](),this[_0x29fb97(0xc6)][_0x29fb97(0xa8)]=!0x1,this[_0x29fb97(0xad)][_0x29fb97(0xa8)]=!0x1;}[_0x3f4e46(0xce)](){const _0x63c771=_0x3f4e46,_0x23579f=this[_0x63c771(0x8f)],_0x55881d=new _0x1b4955(_0x23579f,{'queryView':{'label':_0x4d68d1(_0x23579f,_0x63c771(0xbd)),'creator':_0x327137,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x4d68d1(_0x23579f,_0x63c771(0xa2)),'secondary':_0x4d68d1(_0x23579f,_0x63c771(0xd2))}}},'filteredView':this[_0x63c771(0xcd)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x55881d[_0x63c771(0xc8)](_0x63c771(0xa3))['to'](this,_0x63c771(0xa3),this,_0x63c771(0x93),(_0x255006,_0x2f93bb)=>_0x255006&&!_0x2f93bb),this[_0x63c771(0xb6)](_0x55881d,_0x63c771(0xd6),(_0x1de43a,_0x524c67)=>{const _0x3a20c9=_0x63c771;this[_0x3a20c9(0xa6)]=_0x524c67;const _0xef7e56=_0x45a6e7(_0x524c67);this[_0x3a20c9(0xbb)](_0x3a20c9(0x98),_0xef7e56),_0x524c67[_0x3a20c9(0xa7)]()&&this[_0x3a20c9(0x92)][_0x3a20c9(0xd0)]({'prompt':_0xef7e56},0x0);},{'priority':_0x63c771(0x97)}),_0x55881d;}[_0x3f4e46(0xcd)](){const _0x547132=_0x3f4e46,_0x48f35d=new _0x4c3fde(this[_0x547132(0x8f)]);return _0x48f35d[_0x547132(0xda)][_0x547132(0xc5)][_0x547132(0xb2)](this[_0x547132(0x92)])['as'](_0x2f5f59),_0x48f35d['on'](_0x547132(0xd4),()=>{const _0x43e6a1=_0x547132;this[_0x43e6a1(0x92)][_0x43e6a1(0x91)](),this[_0x43e6a1(0xcc)][_0x43e6a1(0xd5)](''),this[_0x43e6a1(0xcc)][_0x43e6a1(0xac)]();}),_0x48f35d;}[_0x3f4e46(0xd9)](){const _0x48f9ea=_0x3f4e46,_0x420b64=new _0x345ef8(this[_0x48f9ea(0x8f)]);return _0x420b64[_0x48f9ea(0xb8)][_0x48f9ea(0xc8)](_0x48f9ea(0xa3))['to'](this,_0x48f9ea(0xa3),this,_0x48f9ea(0x93),this,_0x48f9ea(0xc0),(_0x50d774,_0x480772,_0x42b91a)=>_0x50d774&&!_0x480772&&!!_0x42b91a),_0x420b64[_0x48f9ea(0xb8)][_0x48f9ea(0x96)](_0x48f9ea(0xc7))['to'](this,_0x48f9ea(0xaa)),_0x420b64[_0x48f9ea(0xdb)][_0x48f9ea(0xc8)](_0x48f9ea(0xa3))['to'](this,_0x48f9ea(0xa3),this,_0x48f9ea(0x93),this,_0x48f9ea(0xc0),(_0x5b095e,_0x5d9822,_0x53a35d)=>_0x5b095e&&!_0x5d9822&&!!_0x53a35d),_0x420b64[_0x48f9ea(0xdb)][_0x48f9ea(0x96)](_0x48f9ea(0xc7))['to'](this,_0x48f9ea(0xc3)),_0x420b64[_0x48f9ea(0xb5)][_0x48f9ea(0xc8)](_0x48f9ea(0xa3))['to'](this,_0x48f9ea(0xa3),this,_0x48f9ea(0x93),(_0x4099ec,_0x2b2c84)=>_0x4099ec&&!_0x2b2c84),_0x420b64[_0x48f9ea(0xb5)][_0x48f9ea(0x96)](_0x48f9ea(0xc7))['to'](this,_0x48f9ea(0xae)),_0x420b64[_0x48f9ea(0xc2)][_0x48f9ea(0xc8)](_0x48f9ea(0xa3))['to'](this,_0x48f9ea(0x93)),_0x420b64[_0x48f9ea(0xc2)][_0x48f9ea(0x96)](_0x48f9ea(0xc7))['to'](this,_0x48f9ea(0xbe)),_0x420b64;}[_0x3f4e46(0x9a)](){const _0x2294e6=_0x3f4e46;this[_0x2294e6(0xc0)]='',this[_0x2294e6(0x8e)]=!0x1,this[_0x2294e6(0x93)]=!0x0,this[_0x2294e6(0xc6)][_0x2294e6(0xa8)]=!0x0,this[_0x2294e6(0xad)][_0x2294e6(0xa8)]=!0x0,this[_0x2294e6(0xc6)][_0x2294e6(0xac)]();}[_0x3f4e46(0xa0)](){const _0x20116b=_0x3f4e46,_0x2abb45=this[_0x20116b(0x8f)];this[_0x20116b(0x93)]=!0x1,this[_0x20116b(0xa6)]='',this[_0x20116b(0xcc)][_0x20116b(0xaf)](),this[_0x20116b(0xc0)]&&(this[_0x20116b(0xcc)][_0x20116b(0xdd)][_0x20116b(0xbc)]=_0x4d68d1(_0x2abb45,_0x20116b(0xcb)));}[_0x3f4e46(0xca)](_0x59f89c){const _0x1f5a1a=_0x3f4e46,_0x473f35=this[_0x1f5a1a(0x8f)];this[_0x1f5a1a(0xa0)](),this[_0x1f5a1a(0x8e)]=!0x0,this[_0x1f5a1a(0xbf)][_0x1f5a1a(0xa4)]=_0x59f89c||_0x4d68d1(_0x473f35,_0x1f5a1a(0xcf)),this[_0x1f5a1a(0xc0)]||(this[_0x1f5a1a(0xc6)][_0x1f5a1a(0xa8)]=!0x1);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0xfbb414,_0x3af3be){const _0x124738=_0x18f7,_0x403cdf=_0xfbb414();while(!![]){try{const _0x30e9f1=parseInt(_0x124738(0xef))/0x1*(-parseInt(_0x124738(0xe5))/0x2)+parseInt(_0x124738(0xe2))/0x3*(-parseInt(_0x124738(0xe8))/0x4)+parseInt(_0x124738(0xe3))/0x5*(parseInt(_0x124738(0xea))/0x6)+-parseInt(_0x124738(0xed))/0x7+-parseInt(_0x124738(0xe6))/0x8*(-parseInt(_0x124738(0xe1))/0x9)+-parseInt(_0x124738(0xec))/0xa*(parseInt(_0x124738(0xe4))/0xb)+parseInt(_0x124738(0xeb))/0xc*(parseInt(_0x124738(0xf4))/0xd);if(_0x30e9f1===_0x3af3be)break;else _0x403cdf['push'](_0x403cdf['shift']());}catch(_0x4a277e){_0x403cdf['push'](_0x403cdf['shift']());}}}(_0x4c8f,0x28323));function _0x18f7(_0x51e893,_0x4010ac){const _0x4c8f58=_0x4c8f();return _0x18f7=function(_0x18f7f3,_0x28b2ae){_0x18f7f3=_0x18f7f3-0xe1;let _0x168f89=_0x4c8f58[_0x18f7f3];return _0x168f89;},_0x18f7(_0x51e893,_0x4010ac);}import{ListItemView as _0x45708e,ButtonView as _0x188fc3,ButtonLabelView as _0xd9530b}from'ckeditor5/src/ui.js';import{unescape as _0x2a64f1}from'es-toolkit/compat';function _0x4c8f(){const _0x314d3f=['833200iXupJe','children','43664SLVsPV','add','12OljyuC','1624728JFDwDc','2260990FFrhbO','1510880XpbOKL','fire','3SfWYiq','prompt','locale','set','execute','65ihTzrr','18bSmNBp','57jEthWJ','136805aFKuBE','11bGLDEl','84004INJjqx'];_0x4c8f=function(){return _0x314d3f;};return _0x4c8f();}export class AIHistoryListItemView extends _0x45708e{constructor(_0x3187e6){const _0x33afbe=_0x18f7;super();const _0x74d0d7=new _0xd9530b(),_0x50fc40=new _0x188fc3(this[_0x33afbe(0xf1)],_0x74d0d7);this[_0x33afbe(0xe7)][_0x33afbe(0xe9)](_0x50fc40),_0x50fc40[_0x33afbe(0xf2)]({'label':_0x3187e6[_0x33afbe(0xf0)],'withText':!0x0}),_0x50fc40['on'](_0x33afbe(0xf3),()=>{const _0x157845=_0x33afbe;this[_0x157845(0xee)](_0x157845(0xf3),{'value':_0x2a64f1(_0x3187e6[_0x157845(0xf0)])});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x3e9a0d=_0x37b2;function _0x37b2(_0x2e9e74,_0x3a7616){const _0x21d3c2=_0x21d3();return _0x37b2=function(_0x37b2b1,_0xba2ac){_0x37b2b1=_0x37b2b1-0xfa;let _0x1e4ea8=_0x21d3c2[_0x37b2b1];return _0x1e4ea8;},_0x37b2(_0x2e9e74,_0x3a7616);}(function(_0x4febc0,_0x54b518){const _0x2f8629=_0x37b2,_0x2f5964=_0x4febc0();while(!![]){try{const _0x9fef71=-parseInt(_0x2f8629(0x104))/0x1*(parseInt(_0x2f8629(0x10d))/0x2)+parseInt(_0x2f8629(0x109))/0x3+parseInt(_0x2f8629(0x114))/0x4+-parseInt(_0x2f8629(0x108))/0x5*(-parseInt(_0x2f8629(0x113))/0x6)+-parseInt(_0x2f8629(0x10f))/0x7+-parseInt(_0x2f8629(0x101))/0x8*(-parseInt(_0x2f8629(0xfb))/0x9)+-parseInt(_0x2f8629(0x10c))/0xa;if(_0x9fef71===_0x54b518)break;else _0x2f5964['push'](_0x2f5964['shift']());}catch(_0x3537a2){_0x2f5964['push'](_0x2f5964['shift']());}}}(_0x21d3,0x3bbb9));import{ListView as _0x5f3f8c,ListItemGroupView as _0x1fab9e,ButtonView as _0x58b49f}from'ckeditor5/src/ui.js';import{getTranslation as _0x5851bd}from'../../utils/common-translations.js';function _0x21d3(){const _0x3ccc61=['delegate','8108390zwFuSl','55116VpMKNb','set','225673zNmyyF','locale','length','add','120nQbdVu','1104516CnacIJ','_createClearHistoryButton','171fgXYbL','execute','children','Prompt\x20history','fire','label','18856qixNrb','items','historyGroupView','3bbaMZW','clearHistory','clearHistoryButton','Clear','106385kSHPwo','1271895zvnklX','filter'];_0x21d3=function(){return _0x3ccc61;};return _0x21d3();}export class AIHistoryListView extends _0x5f3f8c{[_0x3e9a0d(0x103)];[_0x3e9a0d(0x106)];constructor(_0xc77a07){const _0x4b4753=_0x3e9a0d;super(_0xc77a07),this[_0x4b4753(0x106)]=this[_0x4b4753(0xfa)](),this[_0x4b4753(0x103)]=new _0x1fab9e(),this[_0x4b4753(0x103)][_0x4b4753(0xfd)][_0x4b4753(0x112)](this[_0x4b4753(0x106)],0x1),this[_0x4b4753(0x103)][_0x4b4753(0x100)]=_0x5851bd(_0xc77a07,_0x4b4753(0xfe)),this[_0x4b4753(0x103)][_0x4b4753(0x102)][_0x4b4753(0x10b)](_0x4b4753(0xfc))['to'](this),this[_0x4b4753(0x102)][_0x4b4753(0x112)](this[_0x4b4753(0x103)]);}[_0x3e9a0d(0x10a)](){const _0x307d9b=_0x3e9a0d;let _0x206ec4=0x0;for(const _0x28b1d9 of this[_0x307d9b(0x102)])_0x206ec4+=_0x28b1d9[_0x307d9b(0x102)][_0x307d9b(0x111)];return{'resultsCount':_0x206ec4,'totalItemsCount':_0x206ec4};}[_0x3e9a0d(0xfa)](){const _0x349b6a=_0x3e9a0d,_0x2460c2=this[_0x349b6a(0x110)],_0x9dd890=new _0x58b49f(this[_0x349b6a(0x110)]);return _0x9dd890[_0x349b6a(0x10e)]({'label':'('+_0x5851bd(_0x2460c2,_0x349b6a(0x107))+')','withText':!0x0}),_0x9dd890['on'](_0x349b6a(0xfc),()=>this[_0x349b6a(0xff)](_0x349b6a(0x105))),_0x9dd890;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x1f3a(_0x4d1343,_0x3c972e){const _0x4ff215=_0x4ff2();return _0x1f3a=function(_0x1f3a53,_0x5b3eca){_0x1f3a53=_0x1f3a53-0x139;let _0x4be375=_0x4ff215[_0x1f3a53];return _0x4be375;},_0x1f3a(_0x4d1343,_0x3c972e);}const _0x363416=_0x1f3a;(function(_0x29cdc6,_0x24b2b1){const _0x2b5307=_0x1f3a,_0x235d4c=_0x29cdc6();while(!![]){try{const _0x261d68=-parseInt(_0x2b5307(0x139))/0x1+parseInt(_0x2b5307(0x149))/0x2*(parseInt(_0x2b5307(0x14d))/0x3)+-parseInt(_0x2b5307(0x14b))/0x4*(-parseInt(_0x2b5307(0x14a))/0x5)+-parseInt(_0x2b5307(0x142))/0x6+-parseInt(_0x2b5307(0x152))/0x7*(-parseInt(_0x2b5307(0x14e))/0x8)+parseInt(_0x2b5307(0x13f))/0x9+-parseInt(_0x2b5307(0x143))/0xa*(-parseInt(_0x2b5307(0x13b))/0xb);if(_0x261d68===_0x24b2b1)break;else _0x235d4c['push'](_0x235d4c['shift']());}catch(_0x9da206){_0x235d4c['push'](_0x235d4c['shift']());}}}(_0x4ff2,0x49754));import{Collection as _0x51b0cb}from'ckeditor5/src/utils.js';function _0x4ff2(){const _0x4170e3=['69399jBTgwT','_loadFromSessionStorage','prompt','add','873846wuiFvF','getItem','stringify','582606fhsRqR','210PUYULp','_saveToSessionStorage','trim','CKEditor/AIFormView/PromptHistory','last','toLowerCase','10438YrjQqY','988105LyUbdR','8MsVWeB','remove','21qrmoEd','72ocXNQG','parse','map','addMany','175000SsyCpt','length','488373RgBFuB','setItem'];_0x4ff2=function(){return _0x4170e3;};return _0x4ff2();}const so=_0x363416(0x146);export class PromptHistory extends _0x51b0cb{constructor(){const _0x5b082a=_0x363416;super(),this[_0x5b082a(0x13c)](),this['on'](_0x5b082a(0x13e),(_0x5dd273,_0x4c83de)=>{const _0x35bd64=_0x5b082a,_0x2d6ef3=no(_0x4c83de[_0x35bd64(0x13d)]);for(const _0x126771 of this)if(_0x126771!=_0x4c83de&&no(_0x126771[_0x35bd64(0x13d)])===_0x2d6ef3){this[_0x35bd64(0x14c)](_0x126771);break;}this[_0x35bd64(0x153)]>0x14&&this[_0x35bd64(0x14c)](this[_0x35bd64(0x147)]),this[_0x35bd64(0x144)]();}),this['on'](_0x5b082a(0x14c),()=>{const _0x53f8a7=_0x5b082a;this[_0x53f8a7(0x144)]();});}[_0x363416(0x13c)](){const _0x240cf5=_0x363416,_0x330759=sessionStorage[_0x240cf5(0x140)](so)||'[]';this[_0x240cf5(0x151)](JSON[_0x240cf5(0x14f)](_0x330759));}[_0x363416(0x144)](){const _0x3735a6=_0x363416;sessionStorage[_0x3735a6(0x13a)](so,JSON[_0x3735a6(0x141)](this[_0x3735a6(0x150)](_0x1b84b1=>_0x1b84b1)));}}function no(_0x35b70e){const _0x1bc65f=_0x363416;return _0x35b70e[_0x1bc65f(0x148)]()[_0x1bc65f(0x145)]();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xa0f08=_0x43ec;(function(_0x276ff0,_0x4f6677){const _0x531924=_0x43ec,_0x2a441b=_0x276ff0();while(!![]){try{const _0x501d64=-parseInt(_0x531924(0x185))/0x1+parseInt(_0x531924(0x15b))/0x2+-parseInt(_0x531924(0x163))/0x3*(-parseInt(_0x531924(0x16b))/0x4)+-parseInt(_0x531924(0x160))/0x5*(parseInt(_0x531924(0x173))/0x6)+parseInt(_0x531924(0x170))/0x7*(parseInt(_0x531924(0x15e))/0x8)+parseInt(_0x531924(0x168))/0x9*(-parseInt(_0x531924(0x177))/0xa)+parseInt(_0x531924(0x161))/0xb;if(_0x501d64===_0x4f6677)break;else _0x2a441b['push'](_0x2a441b['shift']());}catch(_0x2c926f){_0x2a441b['push'](_0x2a441b['shift']());}}}(_0x2d2f,0xaf7d7));function _0x2d2f(){const _0x227087=['model','_commandDefinitions','744265kbTiKr','getRanges','isEnabled','1871616zwNAxA','plugins','change:_hasContext','928hsGFbb','includes','2054275aNOCwp','11267773ehHVCC','getSelectedBlocks','164922wUKWap','name','refresh','getFirstRange','requiresContent','72UICJzP','length','isEmpty','20KYTamt','ai.assistant.disabledElements','execute','showUI','get','76160bAYhyp','hasContent','isCollapsed','18phwQVL','values','editor','document','1001830YpQCgn','change:isEnabled','custom','element','config','set','getItems','from','selection','_hasContext','add','enabledCommandsIds'];_0x2d2f=function(){return _0x227087;};return _0x2d2f();}import{Command as _0x19fae8}from'ckeditor5/src/core.js';import{AIAssistantUI as _0x1b0586}from'../aiassistantui.js';export class ShowAIAssistantCommand extends _0x19fae8{[_0xa0f08(0x184)];constructor(_0x27b8e7,_0x2adf82){const _0x4e2822=_0xa0f08;super(_0x27b8e7),this[_0x4e2822(0x184)]=_0x2adf82,this[_0x4e2822(0x17c)](_0x4e2822(0x182),[]),this['on'](_0x4e2822(0x15d),(_0xac87d7,_0x5d4f2a,_0x196019)=>{const _0x3d4413=_0x4e2822;this[_0x3d4413(0x15a)]&&(this[_0x3d4413(0x182)]=ns(this[_0x3d4413(0x184)],_0x196019));}),this[_0x4e2822(0x17c)](_0x4e2822(0x180),!0x1),this['on'](_0x4e2822(0x178),(_0x1414f7,_0x108c2b,_0x4a2389)=>{const _0x4871e3=_0x4e2822;this[_0x4871e3(0x182)]=_0x4a2389?ns(this[_0x4871e3(0x184)],this[_0x4871e3(0x180)]):[];});}[_0xa0f08(0x165)](){const _0x33f397=_0xa0f08,_0x33691b=this[_0x33f397(0x175)][_0x33f397(0x183)];this[_0x33f397(0x180)]=function(_0x44b4e4){const _0x429c62=_0x33f397,_0x209fc1=_0x44b4e4[_0x429c62(0x176)][_0x429c62(0x17f)];return _0x209fc1[_0x429c62(0x172)]?0x0!==[..._0x209fc1[_0x429c62(0x162)]()][_0x429c62(0x169)]&&![..._0x209fc1[_0x429c62(0x162)]()][0x0][_0x429c62(0x16a)]:!!_0x44b4e4[_0x429c62(0x171)](_0x209fc1[_0x429c62(0x166)]());}(_0x33691b);const _0x2be29a=_0x33691b[_0x33f397(0x176)][_0x33f397(0x17f)],_0x3f57bd=this[_0x33f397(0x175)][_0x33f397(0x17b)][_0x33f397(0x16f)](_0x33f397(0x16c));for(const _0x52c934 of _0x2be29a[_0x33f397(0x186)]())for(const _0x4afea4 of _0x52c934[_0x33f397(0x17d)]())if(_0x4afea4['is'](_0x33f397(0x17a))&&_0x3f57bd[_0x33f397(0x15f)](_0x4afea4[_0x33f397(0x164)]))return void(this[_0x33f397(0x15a)]=!0x1);this[_0x33f397(0x15a)]=!0x0;}[_0xa0f08(0x16d)](_0x2b68d5='',_0x2f6793='',_0x8a603a=_0xa0f08(0x179)){const _0x3fa212=_0xa0f08;this[_0x3fa212(0x175)][_0x3fa212(0x15c)][_0x3fa212(0x16f)](_0x1b0586)[_0x3fa212(0x16e)](_0x2b68d5,_0x2f6793,_0x8a603a);}}function _0x43ec(_0x4bd7da,_0x4a628d){const _0x2d2f82=_0x2d2f();return _0x43ec=function(_0x43ec97,_0x380ea7){_0x43ec97=_0x43ec97-0x15a;let _0x487f86=_0x2d2f82[_0x43ec97];return _0x487f86;},_0x43ec(_0x4bd7da,_0x4a628d);}function ns(_0x5d9ff4,_0x454124){const _0x5cb4df=_0xa0f08,_0x192b3c=new Set();for(const _0x4ea54b of _0x5d9ff4[_0x5cb4df(0x174)]())(_0x454124||!0x1===_0x4ea54b[_0x5cb4df(0x167)])&&_0x192b3c[_0x5cb4df(0x181)](_0x4ea54b['id']);return Array[_0x5cb4df(0x17e)](_0x192b3c);}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(
|
|
23
|
+
export function getTranslation(_0x518f1a,_0x2521e5,_0x384a3d){const t=_0x518f1a['t'];switch(_0x2521e5){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',_0x384a3d);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x384a3d);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'},_0x384a3d);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 _0x2521e5;}}
|
|
@@ -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(_0xc5d790,_0x5653f7){const _0x3e8b3c=(0x0,_0x5653f7['t'])('Other');return _0xc5d790['length']?'groupId'in _0xc5d790[0x0]?_0xc5d790:[{'groupId':'_ungrouppedCommands','groupLabel':_0x3e8b3c,'order':0x1/0x0,'commands':_0xc5d790}]:[{'groupId':'_ungrouppedCommands','groupLabel':_0x3e8b3c,'order':0x1/0x0,'commands':[]}];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1bd1f4=_0x38e0;(function(_0x279fe1,_0x5e6cb0){const _0x543fa2=_0x38e0,_0x55cb8e=_0x279fe1();while(!![]){try{const _0x5ee4a3=-parseInt(_0x543fa2(0xde))/0x1+-parseInt(_0x543fa2(0xbd))/0x2+parseInt(_0x543fa2(0xc2))/0x3*(parseInt(_0x543fa2(0xe6))/0x4)+-parseInt(_0x543fa2(0xe3))/0x5+-parseInt(_0x543fa2(0xd7))/0x6*(-parseInt(_0x543fa2(0xd0))/0x7)+parseInt(_0x543fa2(0xec))/0x8*(-parseInt(_0x543fa2(0xba))/0x9)+parseInt(_0x543fa2(0xb4))/0xa*(parseInt(_0x543fa2(0xbe))/0xb);if(_0x5ee4a3===_0x5e6cb0)break;else _0x55cb8e['push'](_0x55cb8e['shift']());}catch(_0x49e881){_0x55cb8e['push'](_0x55cb8e['shift']());}}}(_0xfa9b,0x6952c));import{ContextPlugin as _0x30b2bf}from'ckeditor5/src/core.js';function _0xfa9b(){const _0x1f8c4e=['index','showRotator','innerHeight','markers','AIBalloon','572155GwHFiS','_showDialog','title','ai-selection','ai-balloon-selection','1622975FmncXj','_calculateDialogPosition','isOpen','157268KRHBLe','showFakeVisualSelection','hideFakeVisualSelection','height','_setupVisualSelection','ranges','2543368PEvRqD','getBoundingClientRect','AIEditing','fire','bind','get','locale','22878550CFTLJv','round','getMarkersGroup','left','plugins','_calculateOptimalTopPosition','18FoRVYH','requires','Dialog','1520686ITcGYC','11HqaZsY','show','editing','dialogClosed','21oBmeBQ','ai-balloon','length','setupRotator','isOfficialPlugin','width','open','close','balloonView','top','ai-balloon-','\x20ai-balloon-rotator','_config','context','28945RRqNNB','model','icon','isPremiumPlugin','hide','delegate','pluginName','234DhkTIv','aiBalloon'];_0xfa9b=function(){return _0x1f8c4e;};return _0xfa9b();}function _0x38e0(_0x477d1b,_0x4d9320){const _0xfa9b5b=_0xfa9b();return _0x38e0=function(_0x38e0a6,_0x172da9){_0x38e0a6=_0x38e0a6-0xb0;let _0x1a1d79=_0xfa9b5b[_0x38e0a6];return _0x1a1d79;},_0x38e0(_0x477d1b,_0x4d9320);}import{AIConnector as _0x4b66e7}from'../aicore/aiconnector.js';import{AIEditing as _0xb247ae}from'../aicore/aiediting.js';import{AI_BALLOON_VIEW_EVENT_NAMES as _0x364720,AIBalloonView as _0x13c8db}from'./ui/aiballoonview.js';import'../../theme/aiballoon/aiballoon.css';import{getAllMarkersDomElementsSorted as _0x3816f3}from'@ckeditor/ckeditor5-collaboration-core';import{getEditorFromContext as _0x1073b8}from'../aicore/utils/geteditorfromcontext.js';export const AI_BALLOON_EVENT_NAMES=[..._0x364720,_0x1bd1f4(0xc1)];export class AIBalloon extends _0x30b2bf{static get[_0x1bd1f4(0xbb)](){return[_0x4b66e7,_0xb247ae];}static get[_0x1bd1f4(0xd6)](){const _0x1e6014=_0x1bd1f4;return _0x1e6014(0xdd);}static get[_0x1bd1f4(0xc6)](){return!0x0;}static get[_0x1bd1f4(0xd3)](){return!0x0;}[_0x1bd1f4(0xe5)]=!0x1;[_0x1bd1f4(0xce)];[_0x1bd1f4(0xc8)](_0x2860bf){const _0x387600=_0x1bd1f4,_0x12ac44=_0x1073b8(this[_0x387600(0xcf)]);this[_0x387600(0xce)]=_0x2860bf,this[_0x387600(0xca)]=new _0x13c8db(_0x12ac44[_0x387600(0xb3)],_0x2860bf),this[_0x387600(0xca)][_0x387600(0xd5)](..._0x364720)['to'](this),this[_0x387600(0xdf)](_0x2860bf);}[_0x1bd1f4(0xc9)](){const _0x242dee=_0x1bd1f4;_0x1073b8(this[_0x242dee(0xcf)])[_0x242dee(0xb8)][_0x242dee(0xb2)](_0x242dee(0xbc))[_0x242dee(0xd4)]();}[_0x1bd1f4(0xea)](_0x445087,_0x5c15f4){const _0x4604a2=_0x1bd1f4;this[_0x4604a2(0xcf)][_0x4604a2(0xb8)][_0x4604a2(0xb2)](_0xb247ae)[_0x4604a2(0xe7)](_0x445087,_0x4604a2(0xcc)+_0x5c15f4,!0x0,!0x0);}[_0x1bd1f4(0xdf)](_0xdd5fe1){const _0x703562=_0x1bd1f4,_0x23e771=_0x1073b8(this[_0x703562(0xcf)]);this[_0x703562(0xea)](_0xdd5fe1[_0x703562(0xeb)],_0xdd5fe1[_0x703562(0xd9)]),_0x23e771[_0x703562(0xb8)][_0x703562(0xb2)](_0x703562(0xbc))[_0x703562(0xbf)]({'title':_0xdd5fe1[_0x703562(0xe0)],'icon':_0xdd5fe1[_0x703562(0xd2)],'hasCloseButton':!0x0,'id':_0x703562(0xd8),'position':this[_0x703562(0xe4)][_0x703562(0xb1)](this),'className':_0x703562(0xc3)+(_0xdd5fe1[_0x703562(0xda)]?_0x703562(0xcd):''),'content':this[_0x703562(0xca)],'onShow':_0x55548f=>{const _0x4ae34e=_0x703562;_0xdd5fe1[_0x4ae34e(0xda)]&&this[_0x4ae34e(0xca)][_0x4ae34e(0xc5)](_0x55548f),this[_0x4ae34e(0xe5)]=!0x0;},'onHide':()=>{const _0x5d67b4=_0x703562;this[_0x5d67b4(0xcf)][_0x5d67b4(0xb8)][_0x5d67b4(0xb2)](_0x5d67b4(0xee))[_0x5d67b4(0xe8)](_0x5d67b4(0xcc)+_0xdd5fe1[_0x5d67b4(0xd9)]),this[_0x5d67b4(0xb0)](_0x5d67b4(0xc1)),this[_0x5d67b4(0xe5)]=!0x1;}});}[_0x1bd1f4(0xe4)](_0x4cc11c,_0x5964fb){const _0xee4f5c=_0x1bd1f4,_0xd00140=_0x1073b8(this[_0xee4f5c(0xcf)]);if(!_0x5964fb)return null;const _0x2d125e=_0x3816f3(_0xd00140[_0xee4f5c(0xc0)],[..._0xd00140[_0xee4f5c(0xd1)][_0xee4f5c(0xdc)][_0xee4f5c(0xb6)](_0xee4f5c(0xe1)),..._0xd00140[_0xee4f5c(0xd1)][_0xee4f5c(0xdc)][_0xee4f5c(0xb6)](_0xee4f5c(0xe2))]);if(!_0x2d125e||0x0===_0x2d125e[_0xee4f5c(0xc4)])return{'left':Math[_0xee4f5c(0xb5)](_0x5964fb[_0xee4f5c(0xb7)]+_0x5964fb[_0xee4f5c(0xc7)]/0x2-_0x4cc11c[_0xee4f5c(0xc7)]/0x2),'top':Math[_0xee4f5c(0xb5)](_0x5964fb[_0xee4f5c(0xcb)]+_0x5964fb[_0xee4f5c(0xe9)]/0x2-_0x4cc11c[_0xee4f5c(0xe9)]/0x2)};const _0x46dd27=Math[_0xee4f5c(0xb5)](_0x5964fb[_0xee4f5c(0xb7)]+_0x5964fb[_0xee4f5c(0xc7)]/0x2-_0x4cc11c[_0xee4f5c(0xc7)]/0x2),_0x3ea2a4=_0x2d125e[0x0][_0xee4f5c(0xed)](),_0x520b99=_0x2d125e[_0x2d125e[_0xee4f5c(0xc4)]-0x1][_0xee4f5c(0xed)](),_0x5c9d08=_0x4cc11c[_0xee4f5c(0xe9)],_0x195305=this[_0xee4f5c(0xce)][_0xee4f5c(0xda)]?0x8:0x0;return{'left':_0x46dd27,'top':this[_0xee4f5c(0xb9)](_0x3ea2a4,_0x520b99,_0x5c9d08,_0x195305)};}[_0x1bd1f4(0xb9)](_0x3d9495,_0x99f889,_0x4f3594,_0x442db6=0x0){const _0x16d57f=_0x1bd1f4,_0x2bdea1=_0x99f889[_0x16d57f(0xcb)]+_0x99f889[_0x16d57f(0xe9)],_0x46be20=_0x3d9495[_0x16d57f(0xcb)]-_0x4f3594-_0x442db6,_0x2a1f7e=window[_0x16d57f(0xdb)]-_0x2bdea1-0xa,_0x18c30d=_0x3d9495[_0x16d57f(0xcb)]-_0x442db6-0xa;let _0x4ca5b6;if(_0x2a1f7e>=_0x4f3594)_0x4ca5b6=_0x2bdea1+0xa;else{if(_0x18c30d>=_0x4f3594)_0x4ca5b6=_0x46be20-0xa;else _0x4ca5b6=_0x3d9495[_0x16d57f(0xcb)]+(_0x99f889[_0x16d57f(0xcb)]+_0x99f889[_0x16d57f(0xe9)])/0x2-(_0x4f3594+_0x442db6)/0x2;}return _0x4ca5b6;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x172acc,_0x12a0e0){var _0x14bc79=_0x4ed4,_0xf24d6c=_0x172acc();while(!![]){try{var _0x2ba5fd=-parseInt(_0x14bc79(0x182))/0x1+parseInt(_0x14bc79(0x188))/0x2+parseInt(_0x14bc79(0x17f))/0x3*(parseInt(_0x14bc79(0x17a))/0x4)+-parseInt(_0x14bc79(0x181))/0x5*(-parseInt(_0x14bc79(0x185))/0x6)+parseInt(_0x14bc79(0x17b))/0x7+-parseInt(_0x14bc79(0x187))/0x8*(-parseInt(_0x14bc79(0x183))/0x9)+parseInt(_0x14bc79(0x17e))/0xa*(-parseInt(_0x14bc79(0x186))/0xb);if(_0x2ba5fd===_0x12a0e0)break;else _0xf24d6c['push'](_0xf24d6c['shift']());}catch(_0x4787c6){_0xf24d6c['push'](_0xf24d6c['shift']());}}}(_0xdabc,0x83536));import{View as _0x3c6d59}from'ckeditor5/src/ui.js';import{getTranslation as _0x1510a0}from'../../aicore/utils/common-translations.js';function _0x4ed4(_0x39f954,_0x2dd031){var _0xdabcb8=_0xdabc();return _0x4ed4=function(_0x4ed426,_0x15a905){_0x4ed426=_0x4ed426-0x17a;var _0x31b589=_0xdabcb8[_0x4ed426];return _0x31b589;},_0x4ed4(_0x39f954,_0x2dd031);}function _0xdabc(){var _0xafe5bf=['ck-ai-balloon__disclaimer-content','10EyFlka','9HtXhir','setTemplate','4688680MVaaUF','786176HXcyzm','42597NeyoUp','AI_DISCLAIMER_TEXT','6SuChhS','19469263uMoaAQ','472ErIUmF','1923690ihbMJc','ck-ai-balloon__disclaimer','148132vCfccE','5628644gmTShi','div'];_0xdabc=function(){return _0xafe5bf;};return _0xdabc();}export class AIBalloonDisclaimerView extends _0x3c6d59{constructor(_0x69b92f){var _0xe5a13d=_0x4ed4;super(_0x69b92f),this[_0xe5a13d(0x180)]({'tag':_0xe5a13d(0x17c),'attributes':{'class':['ck',_0xe5a13d(0x189)]},'children':[{'tag':'p','attributes':{'class':['ck',_0xe5a13d(0x17d)]},'children':[{'text':_0x1510a0(_0x69b92f,_0xe5a13d(0x184))}]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x507e(_0x20cc50,_0x3a4e60){const _0x140941=_0x1409();return _0x507e=function(_0x507e53,_0x30e082){_0x507e53=_0x507e53-0x146;let _0xa3708b=_0x140941[_0x507e53];return _0xa3708b;},_0x507e(_0x20cc50,_0x3a4e60);}function _0x1409(){const _0x123290=['bind','AI_BALLOON_SUGGEST_BUTTON','suggestButton','1070325HYAgJU','extendTemplate','items','isLoading','set','1490vmsRrr','42dTJzXB','AI_BALLOON_APPLY_BUTTON','ck-ai-button-secondary','44GREXzB','isEnabled','187319oePUVF','add','169101LfwzUT','ck-ai-balloon__toolbar','applyButton','504940FLYuHv','300286OEOLUx','ck-ai-button-primary','3694856ChXUQF','locale','_createButton','2LdoXXa','7433343dqtGbq'];_0x1409=function(){return _0x123290;};return _0x1409();}const _0x57fb6e=_0x507e;(function(_0x50ee2b,_0x3ec826){const _0x442ef5=_0x507e,_0xe8dad7=_0x50ee2b();while(!![]){try{const _0x36e3ab=parseInt(_0x442ef5(0x146))/0x1+parseInt(_0x442ef5(0x15c))/0x2*(-parseInt(_0x442ef5(0x153))/0x3)+-parseInt(_0x442ef5(0x14f))/0x4*(-parseInt(_0x442ef5(0x156))/0x5)+-parseInt(_0x442ef5(0x14c))/0x6*(parseInt(_0x442ef5(0x157))/0x7)+parseInt(_0x442ef5(0x159))/0x8+parseInt(_0x442ef5(0x15d))/0x9+-parseInt(_0x442ef5(0x14b))/0xa*(parseInt(_0x442ef5(0x151))/0xb);if(_0x36e3ab===_0x3ec826)break;else _0xe8dad7['push'](_0xe8dad7['shift']());}catch(_0x1ce2c8){_0xe8dad7['push'](_0xe8dad7['shift']());}}}(_0x1409,0x8c61b));import{ToolbarView as _0x3a7955,ButtonView as _0x5442ee}from'ckeditor5/src/ui.js';import{getTranslation as _0xa0e69b}from'../../aicore/utils/common-translations.js';export class AIBalloonToolbarView extends _0x3a7955{constructor(_0x1b8507,_0xba477=!0x0,_0x3fcbe0=!0x0){const _0x3cddae=_0x507e;super(_0x1b8507),this[_0x3cddae(0x14a)](_0x3cddae(0x149),!0x1),_0xba477&&(this[_0x3cddae(0x155)]=this[_0x3cddae(0x15b)](_0xa0e69b(_0x1b8507,_0x3cddae(0x14d)),_0x3cddae(0x158)),this[_0x3cddae(0x155)][_0x3cddae(0x15e)](_0x3cddae(0x150))['to'](this,_0x3cddae(0x149),_0x218f52=>!_0x218f52),this[_0x3cddae(0x148)][_0x3cddae(0x152)](this[_0x3cddae(0x155)])),_0x3fcbe0&&(this[_0x3cddae(0x160)]=this[_0x3cddae(0x15b)](_0xa0e69b(_0x1b8507,_0x3cddae(0x15f)),_0x3cddae(0x14e)),this[_0x3cddae(0x160)][_0x3cddae(0x15e)](_0x3cddae(0x150))['to'](this,_0x3cddae(0x149),_0x1f3fe0=>!_0x1f3fe0),this[_0x3cddae(0x148)][_0x3cddae(0x152)](this[_0x3cddae(0x160)])),this[_0x3cddae(0x147)]({'attributes':{'class':[_0x3cddae(0x154)]}});}[_0x57fb6e(0x15b)](_0x5860ac,_0x1812f3){const _0x200a61=_0x57fb6e,_0xc4730a=new _0x5442ee(this[_0x200a61(0x15a)]);return _0xc4730a[_0x200a61(0x14a)]({'label':_0x5860ac,'class':_0x1812f3||'','isVisible':!0x0,'withText':!0x0}),_0xc4730a;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3c52fe=_0xfa48;(function(_0x4b9e3d,_0x55fb88){const _0x1c6629=_0xfa48,_0x440f0b=_0x4b9e3d();while(!![]){try{const _0x172e0d=parseInt(_0x1c6629(0x118))/0x1+parseInt(_0x1c6629(0x136))/0x2+-parseInt(_0x1c6629(0x110))/0x3*(-parseInt(_0x1c6629(0x142))/0x4)+-parseInt(_0x1c6629(0x127))/0x5+-parseInt(_0x1c6629(0x11e))/0x6*(-parseInt(_0x1c6629(0x111))/0x7)+parseInt(_0x1c6629(0x130))/0x8+-parseInt(_0x1c6629(0x116))/0x9*(parseInt(_0x1c6629(0x121))/0xa);if(_0x172e0d===_0x55fb88)break;else _0x440f0b['push'](_0x440f0b['shift']());}catch(_0x2b9de1){_0x440f0b['push'](_0x440f0b['shift']());}}}(_0x1c4f,0xd69e8));import{ButtonView as _0x4db7ab,View as _0x484d36,ViewCollection as _0x102659,FocusCycler as _0x3dc69d}from'ckeditor5/src/ui.js';import{FocusTracker as _0x10665f,KeystrokeHandler as _0x3a0baa}from'ckeditor5/src/utils.js';import{IconNextArrow as _0x56de8f,IconPreviousArrow as _0x5b00c4}from'@ckeditor/ckeditor5-icons';import{AIBalloonToolbarView as _0x510e9e}from'./aiballoontoolbarview.js';import{AIBalloonDisclaimerView as _0x24e7c0}from'./aiballoondisclaimerview.js';function _0x1c4f(){const _0x442a9d=['7310275LCDfPa','showApplyButton','setupRotator','execute','showSuggestButton','showNext','_dialogContent','focusLast','focusTracker','9079336fMAlej','add','bind','disclaimerView','view','_focusables','2513056spiJAM','applyButton','mainView','toolbar','setTemplate','keystrokes','tab','_mainView','isLoading','addMany','suggestButton','_createPreviousButtonView','7018364RytjxV','locale','render','insertSuggestion','clear','clearLoading','fire','createCollection','children','set','setLoading','3WwMiXe','77455jjLoTc','_addDisclaimerView','shift\x20+\x20tab','_createNextButtonView','_addToolbar','9694683QYIpZc','focusCycler','1415595pgYkuc','ai-balloon-content','headerView','_addContentView','applySuggestion','focusFirst','6QNcAgN','focus','listenTo','30KXGPQs','showPrevious','AI_BALLOON_NEXT_TOOLTIP','element','AI_BALLOON_PREVIOUS_TOOLTIP','div'];_0x1c4f=function(){return _0x442a9d;};return _0x1c4f();}import{getTranslation as _0x3d37f4}from'../../aicore/utils/common-translations.js';function _0xfa48(_0x11662d,_0xedc87d){const _0x1c4fc5=_0x1c4f();return _0xfa48=function(_0xfa486e,_0x356f95){_0xfa486e=_0xfa486e-0x109;let _0x48dd24=_0x1c4fc5[_0xfa486e];return _0x48dd24;},_0xfa48(_0x11662d,_0xedc87d);}export const AI_BALLOON_VIEW_EVENT_NAMES=[_0x3c52fe(0x11c),_0x3c52fe(0x145),_0x3c52fe(0x12c),_0x3c52fe(0x122)];export class AIBalloonView extends _0x484d36{[_0x3c52fe(0x12f)];[_0x3c52fe(0x13b)];[_0x3c52fe(0x117)];[_0x3c52fe(0x135)];constructor(_0x2f4821,_0x5a1abb){const _0x2555a0=_0x3c52fe;super(_0x2f4821),this[_0x2555a0(0x10e)](_0x2555a0(0x13e),!0x1),this[_0x2555a0(0x12f)]=new _0x10665f(),this[_0x2555a0(0x13b)]=new _0x3a0baa(),this[_0x2555a0(0x135)]=this[_0x2555a0(0x10c)](),this[_0x2555a0(0x117)]=new _0x3dc69d({'focusables':this[_0x2555a0(0x135)],'focusTracker':this[_0x2555a0(0x12f)],'keystrokeHandler':this[_0x2555a0(0x13b)],'actions':{'focusPrevious':_0x2555a0(0x113),'focusNext':_0x2555a0(0x13c)}}),this[_0x2555a0(0x12d)]=new _0x102659(),this[_0x2555a0(0x11b)](_0x5a1abb[_0x2555a0(0x138)]),this[_0x2555a0(0x112)](),this[_0x2555a0(0x115)](_0x5a1abb[_0x2555a0(0x128)],_0x5a1abb[_0x2555a0(0x12b)]),this[_0x2555a0(0x139)][_0x2555a0(0x132)](_0x2555a0(0x13e))['to'](this),this[_0x2555a0(0x135)][_0x2555a0(0x109)](),this[_0x2555a0(0x135)][_0x2555a0(0x13f)]([this[_0x2555a0(0x139)]]),this[_0x2555a0(0x13a)]({'tag':_0x2555a0(0x126),'attributes':{'class':_0x2555a0(0x119)},'children':this[_0x2555a0(0x12d)]});}[_0x3c52fe(0x144)](){const _0x15d800=_0x3c52fe;super[_0x15d800(0x144)]();for(const _0x57b8b4 of this[_0x15d800(0x135)])this[_0x15d800(0x12f)][_0x15d800(0x131)](_0x57b8b4[_0x15d800(0x124)]);this[_0x15d800(0x13b)][_0x15d800(0x120)](this[_0x15d800(0x124)]);}[_0x3c52fe(0x11f)](_0x562c0f){const _0x32c261=_0x3c52fe;-0x1===_0x562c0f?this[_0x32c261(0x117)][_0x32c261(0x12e)]():this[_0x32c261(0x117)][_0x32c261(0x11d)]();}[_0x3c52fe(0x10f)](){const _0x1fd93a=_0x3c52fe;this[_0x1fd93a(0x13e)]=!0x0;}[_0x3c52fe(0x10a)](){const _0x318e4f=_0x3c52fe;this[_0x318e4f(0x13e)]=!0x1;}[_0x3c52fe(0x129)](_0x5bfc00){const _0x3b138c=_0x3c52fe,_0xf08534=this[_0x3b138c(0x114)](),_0x38abe4=this[_0x3b138c(0x141)]();_0x5bfc00[_0x3b138c(0x134)][_0x3b138c(0x11a)][_0x3b138c(0x10d)][_0x3b138c(0x131)](_0xf08534,0x2),_0x5bfc00[_0x3b138c(0x134)][_0x3b138c(0x11a)][_0x3b138c(0x10d)][_0x3b138c(0x131)](_0x38abe4,0x0),this[_0x3b138c(0x135)][_0x3b138c(0x13f)]([_0xf08534,_0x38abe4]),this[_0x3b138c(0x12f)][_0x3b138c(0x131)](_0xf08534[_0x3b138c(0x124)]),this[_0x3b138c(0x12f)][_0x3b138c(0x131)](_0x38abe4[_0x3b138c(0x124)]);}[_0x3c52fe(0x11b)](_0x44a16c){const _0x428636=_0x3c52fe;this[_0x428636(0x13d)]=_0x44a16c,this[_0x428636(0x12d)][_0x428636(0x131)](this[_0x428636(0x13d)]);}[_0x3c52fe(0x112)](){const _0x5d0acd=_0x3c52fe;this[_0x5d0acd(0x133)]=new _0x24e7c0(this[_0x5d0acd(0x143)]),this[_0x5d0acd(0x12d)][_0x5d0acd(0x131)](this[_0x5d0acd(0x133)]);}[_0x3c52fe(0x115)](_0x33b6eb=!0x0,_0x4e7f5e=!0x0){const _0x406ea5=_0x3c52fe;this[_0x406ea5(0x139)]=new _0x510e9e(this[_0x406ea5(0x143)],_0x33b6eb,_0x4e7f5e),this[_0x406ea5(0x139)][_0x406ea5(0x137)]?.['on'](_0x406ea5(0x12a),()=>{const _0x4ac18b=_0x406ea5;this[_0x4ac18b(0x10b)](_0x4ac18b(0x11c));}),this[_0x406ea5(0x139)][_0x406ea5(0x140)]?.['on'](_0x406ea5(0x12a),()=>{const _0x14f402=_0x406ea5;this[_0x14f402(0x10b)](_0x14f402(0x145));}),this[_0x406ea5(0x12d)][_0x406ea5(0x131)](this[_0x406ea5(0x139)]);}[_0x3c52fe(0x114)](){const _0x467f90=_0x3c52fe,_0x132e77=new _0x4db7ab(this[_0x467f90(0x143)]);return _0x132e77[_0x467f90(0x10e)]({'icon':_0x56de8f,'tooltip':_0x3d37f4(this[_0x467f90(0x143)],_0x467f90(0x123))}),_0x132e77['on'](_0x467f90(0x12a),()=>{const _0x376c10=_0x467f90;this[_0x376c10(0x10b)](_0x376c10(0x12c));}),_0x132e77;}[_0x3c52fe(0x141)](){const _0x4391a1=_0x3c52fe,_0x2bb1bc=new _0x4db7ab(this[_0x4391a1(0x143)]);return _0x2bb1bc[_0x4391a1(0x10e)]({'icon':_0x5b00c4,'tooltip':_0x3d37f4(this[_0x4391a1(0x143)],_0x4391a1(0x125))}),_0x2bb1bc['on'](_0x4391a1(0x12a),()=>{const _0x5c3acf=_0x4391a1;this[_0x5c3acf(0x10b)](_0x5c3acf(0x122));}),_0x2bb1bc;}}
|
package/src/aichat/aichat.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3fab40=_0x3115;(function(_0x4fe4a8,_0x5afebf){const _0x4d001a=_0x3115,_0x1e8e5d=_0x4fe4a8();while(!![]){try{const _0x5badd7=parseInt(_0x4d001a(0xfb))/0x1+parseInt(_0x4d001a(0x107))/0x2*(parseInt(_0x4d001a(0x101))/0x3)+parseInt(_0x4d001a(0xef))/0x4*(parseInt(_0x4d001a(0xf6))/0x5)+-parseInt(_0x4d001a(0xf9))/0x6*(-parseInt(_0x4d001a(0x109))/0x7)+-parseInt(_0x4d001a(0x100))/0x8+parseInt(_0x4d001a(0xf3))/0x9+-parseInt(_0x4d001a(0xfa))/0xa;if(_0x5badd7===_0x5afebf)break;else _0x1e8e5d['push'](_0x1e8e5d['shift']());}catch(_0x10799b){_0x1e8e5d['push'](_0x1e8e5d['shift']());}}}(_0x4ced,0xefdb5));import{ContextPlugin as _0x33f0c1}from'ckeditor5/src/core.js';import{AIChatController as _0x14ee8c}from'./aichatcontroller.js';function _0x4ced(){const _0x1da00a=['10062840hrpEHu','2394471niWTeB','AIChat','isOfficialPlugin','pluginName','context','startConversation','2yWnCpW','ai.chat.models','1855XULrpf','1299736zQNcCv','config','define','requires','10605663QOkHvL','addSelectionToChatContext','plugins','30Bujoyx','ai.chat.context','focusPromptInput','18612xSVVbQ','42929320gFkcHx','1785042FAijzD','removeSelectionFromChatContext','sendMessage','isPremiumPlugin','get'];_0x4ced=function(){return _0x1da00a;};return _0x4ced();}function _0x3115(_0x258f3d,_0xba6667){const _0x4cedd8=_0x4ced();return _0x3115=function(_0x311566,_0x47f953){_0x311566=_0x311566-0xef;let _0x2692c4=_0x4cedd8[_0x311566];return _0x2692c4;},_0x3115(_0x258f3d,_0xba6667);}import{AIEditing as _0x355ccd}from'../aicore/aiediting.js';import{AIChatUI as _0x5abe00}from'./aichatui.js';import{AIChatHistory as _0x2bade6}from'../aichathistory/aichathistory.js';export class AIChat extends _0x33f0c1{static get[_0x3fab40(0xf2)](){return[_0x14ee8c,_0x355ccd,_0x5abe00,_0x2bade6];}static get[_0x3fab40(0x104)](){const _0x576443=_0x3fab40;return _0x576443(0x102);}static get[_0x3fab40(0x103)](){return!0x0;}static get[_0x3fab40(0xfe)](){return!0x0;}constructor(_0x15173b){const _0x49467e=_0x3fab40;super(_0x15173b);const _0x3cef90=_0x15173b[_0x49467e(0xf0)];_0x3cef90[_0x49467e(0xf1)](_0x49467e(0xf7),{'document':{'enabled':!0x0},'urls':{'enabled':!0x0},'files':{'enabled':!0x0},'sources':[]}),_0x3cef90[_0x49467e(0xf1)](_0x49467e(0x108),{'defaultModelId':void 0x0,'modelSelectorAlwaysVisible':!0x0,'displayedModels':void 0x0});}async[_0x3fab40(0xf4)](){const _0x14774d=_0x3fab40;await this[_0x14774d(0x105)][_0x14774d(0xf5)][_0x14774d(0xff)](_0x14ee8c)[_0x14774d(0xf4)]();}async[_0x3fab40(0x106)](){const _0xdaedeb=_0x3fab40;await this[_0xdaedeb(0x105)][_0xdaedeb(0xf5)][_0xdaedeb(0xff)](_0x14ee8c)[_0xdaedeb(0x106)]();}async[_0x3fab40(0xfd)]({message:_0x17738b,quickActionData:_0x2b58c7}){const _0x58ded8=_0x3fab40;await this[_0x58ded8(0x105)][_0x58ded8(0xf5)][_0x58ded8(0xff)](_0x14ee8c)[_0x58ded8(0xfd)]({'message':_0x17738b,'quickActionData':_0x2b58c7});}[_0x3fab40(0xfc)](){const _0x35e2aa=_0x3fab40;this[_0x35e2aa(0x105)][_0x35e2aa(0xf5)][_0x35e2aa(0xff)](_0x14ee8c)[_0x35e2aa(0xfc)]();}[_0x3fab40(0xf8)](){const _0x4820ac=_0x3fab40;this[_0x4820ac(0x105)][_0x4820ac(0xf5)][_0x4820ac(0xff)](_0x14ee8c)[_0x4820ac(0xf8)]();}}
|