@ckeditor/ckeditor5-ai 47.3.0-alpha.6 → 47.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/dist/index.js +5 -5
- 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/aichatcontextresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourcesview.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/aichatresourcessearchinputview.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/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 +2 -2
- 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/aimodels.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/aicore/utils/scrollmanager.js +1 -1
- package/src/aieditorintegration/aieditorintegration.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.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/ui/aiquickactionsfilteredlistview.js +1 -1
- package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.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/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/aireviewmodefinishreviewbuttonview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodegeneralerrorview.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/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/errors.js +1 -1
- package/src/errorsmap.js +1 -1
- package/src/index.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1561e0=_0x3154;(function(_0x35d7fc,_0x15610d){const _0x25f1f5=_0x3154,_0x12316b=_0x35d7fc();while(!![]){try{const _0x1dd963=-parseInt(_0x25f1f5(0x192))/0x1+-parseInt(_0x25f1f5(0x1b9))/0x2+parseInt(_0x25f1f5(0x18b))/0x3*(parseInt(_0x25f1f5(0x19c))/0x4)+-parseInt(_0x25f1f5(0x1a5))/0x5+-parseInt(_0x25f1f5(0x186))/0x6+parseInt(_0x25f1f5(0x19d))/0x7*(-parseInt(_0x25f1f5(0x1a3))/0x8)+parseInt(_0x25f1f5(0x181))/0x9*(parseInt(_0x25f1f5(0x194))/0xa);if(_0x1dd963===_0x15610d)break;else _0x12316b['push'](_0x12316b['shift']());}catch(_0x515cc0){_0x12316b['push'](_0x12316b['shift']());}}}(_0x9174,0x7a1af));import{FocusTracker as _0x1dc8e8,KeystrokeHandler as _0x27f0da}from'ckeditor5/src/utils.js';import{View as _0x181003,FocusCycler as _0x1c0ca8,createLabeledTextarea as _0x359869}from'ckeditor5/src/ui.js';import{AIFormToolbarView as _0x797313,AIFormToolbarViewMainActionLabel as _0x1b7f77}from'./aiformtoolbarview.js';function _0x3154(_0x590d74,_0x112b24){const _0x91745f=_0x9174();return _0x3154=function(_0x31541d,_0x3c727d){_0x31541d=_0x31541d-0x165;let _0x4bd7f=_0x91745f[_0x31541d];return _0x4bd7f;},_0x3154(_0x590d74,_0x112b24);}import{AIFormContentArea as _0x41fba6}from'./aiformcontentarea.js';import{AIFormErrorView as _0x5e907a}from'./aiformerrorview.js';import{AIFormPromptView as _0x51b192}from'./aiformpromptview.js';import{AIHistoryListView as _0x207b07}from'./aihistorylistview.js';import{AIHistoryListItemView as _0x40d8c7}from'./aihistorylistitemview.js';function _0x9174(){const _0x9086b5=['listenTo','items','fire','focusTracker','1211234UJtLAp','trim','finishProcessing','handleError','tab','focus','bind','AI_ERROR_FAILED','promptView','tryAgainEvent','execute','Ask\x20AI\x20to\x20edit\x20or\x20generate','focusFirst','tryAgainButton','ck-hidden','text','_focusables','focusCycler','Empty\x20history','isError','render','submit','insertContentBelow','_createHistoryView','value','toolbar','submitPrompt','clearHistory','label','10539SQITjb','locale','_createPromptView','replaceContent','errorView','4267386KAAbLN','shift\x20+\x20tab','search','focusLast','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','1314cjHCGf','ck-ai-form-content','copyButtonView','bindTo','add','REPLACE','Ask\x20AI\x20to\x20improve\x20generated\x20text','232895hXRxUh','_createToolbar','27730MiLLgp','queryView','isProcessing','high','clear','bindTemplate','mainAction','prompt','1596GqLChO','322469FqNaCt','replaceButton','stopProcessing','div','setTemplate','reset','112dqWLKr','element','3635605EVGcOV','ck-ai-form','isVisible','isEnabled','delegate','contentArea','startProcessing','keystrokes','_promptHistory','set','fieldView','createCollection','historyGroupView','chain','insertButton','stopButton'];_0x9174=function(){return _0x9086b5;};return _0x9174();}import{PromptHistory as _0xebe2e9}from'./prompthistory.js';import{getTranslation as _0xedf5d3}from'../../utils/common-translations.js';import{escape as _0x45c95b}from'es-toolkit/compat';export class AIFormView extends _0x181003{[_0x1561e0(0x1b8)];[_0x1561e0(0x1ac)];[_0x1561e0(0x1aa)];[_0x1561e0(0x17d)];[_0x1561e0(0x16c)];[_0x1561e0(0x185)];[_0x1561e0(0x174)];[_0x1561e0(0x175)];[_0x1561e0(0x1ad)];constructor(_0x103965,_0x458885,_0x9ec876=''){const _0x1c4891=_0x1561e0;super(_0x103965),this[_0x1c4891(0x1ae)](_0x1c4891(0x1a8),!0x0),this[_0x1c4891(0x1ae)](_0x1c4891(0x196),!0x1),this[_0x1c4891(0x1ae)](_0x1c4891(0x19b),''),this[_0x1c4891(0x1ae)](_0x1c4891(0x17c),''),this[_0x1c4891(0x1ae)](_0x1c4891(0x177),!0x1),this[_0x1c4891(0x1ae)](_0x1c4891(0x19a),_0x1b7f77[_0x1c4891(0x190)]),this[_0x1c4891(0x1ad)]=new _0xebe2e9(),this[_0x1c4891(0x185)]=new _0x5e907a(_0x103965),this[_0x1c4891(0x1aa)]=new _0x41fba6(_0x103965,_0x9ec876),this[_0x1c4891(0x1aa)][_0x1c4891(0x16a)](_0x1c4891(0x196))['to'](this),this[_0x1c4891(0x1aa)][_0x1c4891(0x16a)](_0x1c4891(0x17c))['to'](this),this[_0x1c4891(0x17d)]=this[_0x1c4891(0x193)](),this[_0x1c4891(0x17d)][_0x1c4891(0x16a)](_0x1c4891(0x19a))['to'](this),this[_0x1c4891(0x16c)]=this[_0x1c4891(0x183)](),this[_0x1c4891(0x1b8)]=new _0x1dc8e8(),this[_0x1c4891(0x1ac)]=new _0x27f0da(),this[_0x1c4891(0x174)]=this[_0x1c4891(0x1b0)]([this[_0x1c4891(0x1aa)],this[_0x1c4891(0x1aa)][_0x1c4891(0x18d)],this[_0x1c4891(0x17d)],this[_0x1c4891(0x16c)]]),this[_0x1c4891(0x175)]=new _0x1c0ca8({'focusables':this[_0x1c4891(0x174)],'focusTracker':this[_0x1c4891(0x1b8)],'keystrokeHandler':this[_0x1c4891(0x1ac)],'actions':{'focusPrevious':_0x1c4891(0x187),'focusNext':_0x1c4891(0x168)}}),this[_0x1c4891(0x175)][_0x1c4891(0x1b2)](this[_0x1c4891(0x16c)][_0x1c4891(0x175)]),this[_0x1c4891(0x16c)][_0x1c4891(0x195)][_0x1c4891(0x1af)][_0x1c4891(0x16a)](_0x1c4891(0x17c))['to'](this,_0x1c4891(0x19b));const _0x4791fd=this[_0x1c4891(0x199)];this[_0x1c4891(0x1a1)]({'tag':_0x1c4891(0x1a0),'attributes':{'class':['ck',_0x1c4891(0x1a6),_0x458885],'tabindex':'-1'},'children':[{'tag':_0x1c4891(0x1a0),'attributes':{'class':['ck',_0x1c4891(0x18c)]},'children':[{'tag':_0x1c4891(0x1a0),'attributes':{'class':[_0x4791fd['if'](_0x1c4891(0x177),_0x1c4891(0x172),_0x4ab5b0=>!_0x4ab5b0)]},'children':[this[_0x1c4891(0x185)]]},this[_0x1c4891(0x1aa)],this[_0x1c4891(0x17d)],this[_0x1c4891(0x16c)]]}]});}[_0x1561e0(0x178)](){const _0x44f238=_0x1561e0;super[_0x44f238(0x178)](),this[_0x44f238(0x1b8)][_0x44f238(0x18f)](this[_0x44f238(0x1aa)][_0x44f238(0x1a4)]),this[_0x44f238(0x1b8)][_0x44f238(0x18f)](this[_0x44f238(0x1aa)][_0x44f238(0x18d)][_0x44f238(0x1a4)]),this[_0x44f238(0x1b8)][_0x44f238(0x18f)](this[_0x44f238(0x17d)][_0x44f238(0x1a4)]),this[_0x44f238(0x1b8)][_0x44f238(0x18f)](this[_0x44f238(0x16c)][_0x44f238(0x1a4)]),this[_0x44f238(0x1ac)][_0x44f238(0x1b5)](this[_0x44f238(0x1a4)]);}[_0x1561e0(0x169)](_0x40686d=0x1){const _0x4f19bf=_0x1561e0;-0x1===_0x40686d?this[_0x4f19bf(0x175)][_0x4f19bf(0x189)]():this[_0x4f19bf(0x175)][_0x4f19bf(0x170)]();}[_0x1561e0(0x1a2)](){const _0x1291ef=_0x1561e0;this[_0x1291ef(0x19b)]='',this[_0x1291ef(0x17c)]='',this[_0x1291ef(0x177)]=!0x1,this[_0x1291ef(0x16c)][_0x1291ef(0x1a2)](),this[_0x1291ef(0x1aa)][_0x1291ef(0x1a7)]=!0x1,this[_0x1291ef(0x17d)][_0x1291ef(0x1a7)]=!0x1;}[_0x1561e0(0x183)](){const _0x561159=_0x1561e0,_0x470b8b=this[_0x561159(0x182)],_0x2ce924=new _0x51b192(_0x470b8b,{'queryView':{'label':_0xedf5d3(_0x470b8b,_0x561159(0x16f)),'creator':_0x359869,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0xedf5d3(_0x470b8b,_0x561159(0x176)),'secondary':_0xedf5d3(_0x470b8b,_0x561159(0x18a))}}},'filteredView':this[_0x561159(0x17b)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x2ce924[_0x561159(0x16a)](_0x561159(0x1a8))['to'](this,_0x561159(0x1a8),this,_0x561159(0x196),(_0x291a54,_0x16d10f)=>_0x291a54&&!_0x16d10f),this[_0x561159(0x1b5)](_0x2ce924,_0x561159(0x179),(_0x483c59,_0x24d3f7)=>{const _0x26cf2a=_0x561159;this[_0x26cf2a(0x19b)]=_0x24d3f7;const _0x419092=_0x45c95b(_0x24d3f7);this[_0x26cf2a(0x1b7)](_0x26cf2a(0x17e),_0x419092),_0x24d3f7[_0x26cf2a(0x165)]()&&this[_0x26cf2a(0x1ad)][_0x26cf2a(0x18f)]({'prompt':_0x419092},0x0);},{'priority':_0x561159(0x197)}),_0x2ce924;}[_0x1561e0(0x17b)](){const _0xf550b5=_0x1561e0,_0x11d405=new _0x207b07(this[_0xf550b5(0x182)]);return _0x11d405[_0xf550b5(0x1b1)][_0xf550b5(0x1b6)][_0xf550b5(0x18e)](this[_0xf550b5(0x1ad)])['as'](_0x40d8c7),_0x11d405['on'](_0xf550b5(0x17f),()=>{const _0x525366=_0xf550b5;this[_0x525366(0x1ad)][_0x525366(0x198)](),this[_0x525366(0x16c)][_0x525366(0x188)](''),this[_0x525366(0x16c)][_0x525366(0x169)]();}),_0x11d405;}[_0x1561e0(0x193)](){const _0x6a87d4=_0x1561e0,_0x30d90b=new _0x797313(this[_0x6a87d4(0x182)]);return _0x30d90b[_0x6a87d4(0x19e)][_0x6a87d4(0x16a)](_0x6a87d4(0x1a8))['to'](this,_0x6a87d4(0x1a8),this,_0x6a87d4(0x196),this,_0x6a87d4(0x17c),(_0xf1fe95,_0x315af6,_0x33d074)=>_0xf1fe95&&!_0x315af6&&!!_0x33d074),_0x30d90b[_0x6a87d4(0x19e)][_0x6a87d4(0x1a9)](_0x6a87d4(0x16e))['to'](this,_0x6a87d4(0x184)),_0x30d90b[_0x6a87d4(0x1b3)][_0x6a87d4(0x16a)](_0x6a87d4(0x1a8))['to'](this,_0x6a87d4(0x1a8),this,_0x6a87d4(0x196),this,_0x6a87d4(0x17c),(_0x16f80e,_0x2b41ec,_0x1034b6)=>_0x16f80e&&!_0x2b41ec&&!!_0x1034b6),_0x30d90b[_0x6a87d4(0x1b3)][_0x6a87d4(0x1a9)](_0x6a87d4(0x16e))['to'](this,_0x6a87d4(0x17a)),_0x30d90b[_0x6a87d4(0x171)][_0x6a87d4(0x16a)](_0x6a87d4(0x1a8))['to'](this,_0x6a87d4(0x1a8),this,_0x6a87d4(0x196),(_0x498383,_0x577b23)=>_0x498383&&!_0x577b23),_0x30d90b[_0x6a87d4(0x171)][_0x6a87d4(0x1a9)](_0x6a87d4(0x16e))['to'](this,_0x6a87d4(0x16d)),_0x30d90b[_0x6a87d4(0x1b4)][_0x6a87d4(0x16a)](_0x6a87d4(0x1a8))['to'](this,_0x6a87d4(0x196)),_0x30d90b[_0x6a87d4(0x1b4)][_0x6a87d4(0x1a9)](_0x6a87d4(0x16e))['to'](this,_0x6a87d4(0x19f)),_0x30d90b;}[_0x1561e0(0x1ab)](){const _0x4d7f85=_0x1561e0;this[_0x4d7f85(0x17c)]='',this[_0x4d7f85(0x177)]=!0x1,this[_0x4d7f85(0x196)]=!0x0,this[_0x4d7f85(0x1aa)][_0x4d7f85(0x1a7)]=!0x0,this[_0x4d7f85(0x17d)][_0x4d7f85(0x1a7)]=!0x0,this[_0x4d7f85(0x1aa)][_0x4d7f85(0x169)]();}[_0x1561e0(0x166)](){const _0x2364d9=_0x1561e0,_0x3cff3f=this[_0x2364d9(0x182)];this[_0x2364d9(0x196)]=!0x1,this[_0x2364d9(0x19b)]='',this[_0x2364d9(0x16c)][_0x2364d9(0x1a2)](),this[_0x2364d9(0x17c)]&&(this[_0x2364d9(0x16c)][_0x2364d9(0x195)][_0x2364d9(0x180)]=_0xedf5d3(_0x3cff3f,_0x2364d9(0x191)));}[_0x1561e0(0x167)](_0x1d23c4){const _0x18762d=_0x1561e0,_0x174339=this[_0x18762d(0x182)];this[_0x18762d(0x166)](),this[_0x18762d(0x177)]=!0x0,this[_0x18762d(0x185)][_0x18762d(0x173)]=_0x1d23c4||_0xedf5d3(_0x174339,_0x18762d(0x16b)),this[_0x18762d(0x17c)]||(this[_0x18762d(0x1aa)][_0x18762d(0x1a7)]=!0x1);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x1aee(){const _0x2e6d8d=['prompt','locale','set','10zrSkMI','541344YDWuRb','execute','2032482nEZuva','children','386468DgRfjb','64AemayM','fire','1353gKomis','128ClRUtt','115860YxnZXz','227983MazEZX','141042LdmDsx','add','6623154zjIhzY'];_0x1aee=function(){return _0x2e6d8d;};return _0x1aee();}(function(_0x5df661,_0x3212cd){const _0x16d6ee=_0xcdd5,_0x36a272=_0x5df661();while(!![]){try{const _0x38fd93=-parseInt(_0x16d6ee(0x14c))/0x1+-parseInt(_0x16d6ee(0x150))/0x2+-parseInt(_0x16d6ee(0x145))/0x3*(-parseInt(_0x16d6ee(0x13f))/0x4)+parseInt(_0x16d6ee(0x14b))/0x5*(-parseInt(_0x16d6ee(0x14e))/0x6)+parseInt(_0x16d6ee(0x144))/0x7*(parseInt(_0x16d6ee(0x142))/0x8)+-parseInt(_0x16d6ee(0x147))/0x9+-parseInt(_0x16d6ee(0x143))/0xa*(-parseInt(_0x16d6ee(0x141))/0xb);if(_0x38fd93===_0x3212cd)break;else _0x36a272['push'](_0x36a272['shift']());}catch(_0x3dd746){_0x36a272['push'](_0x36a272['shift']());}}}(_0x1aee,0x8661c));import{ListItemView as _0x3a3693,ButtonView as _0x2a13f8,ButtonLabelView as _0x4e6a80}from'ckeditor5/src/ui.js';import{unescape as _0x34cefc}from'es-toolkit/compat';function _0xcdd5(_0x92663a,_0x4e5ed2){const _0x1aee04=_0x1aee();return _0xcdd5=function(_0xcdd596,_0x7bb24){_0xcdd596=_0xcdd596-0x13f;let _0x956df6=_0x1aee04[_0xcdd596];return _0x956df6;},_0xcdd5(_0x92663a,_0x4e5ed2);}export class AIHistoryListItemView extends _0x3a3693{constructor(_0x505e26){const _0x235e0a=_0xcdd5;super();const _0x3b11d5=new _0x4e6a80(),_0x3ce8e5=new _0x2a13f8(this[_0x235e0a(0x149)],_0x3b11d5);this[_0x235e0a(0x14f)][_0x235e0a(0x146)](_0x3ce8e5),_0x3ce8e5[_0x235e0a(0x14a)]({'label':_0x505e26[_0x235e0a(0x148)],'withText':!0x0}),_0x3ce8e5['on'](_0x235e0a(0x14d),()=>{const _0x34e4db=_0x235e0a;this[_0x34e4db(0x140)](_0x34e4db(0x14d),{'value':_0x34cefc(_0x505e26[_0x34e4db(0x148)])});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x352d72=_0x4fb3;(function(_0x4658b1,_0x2e415a){const _0x430f85=_0x4fb3,_0x56c59f=_0x4658b1();while(!![]){try{const _0x41a396=-parseInt(_0x430f85(0x1d8))/0x1*(-parseInt(_0x430f85(0x1e0))/0x2)+parseInt(_0x430f85(0x1dc))/0x3+-parseInt(_0x430f85(0x1de))/0x4*(-parseInt(_0x430f85(0x1e6))/0x5)+parseInt(_0x430f85(0x1dd))/0x6*(parseInt(_0x430f85(0x1cb))/0x7)+parseInt(_0x430f85(0x1d3))/0x8*(-parseInt(_0x430f85(0x1ce))/0x9)+parseInt(_0x430f85(0x1d7))/0xa*(-parseInt(_0x430f85(0x1d6))/0xb)+-parseInt(_0x430f85(0x1db))/0xc;if(_0x41a396===_0x2e415a)break;else _0x56c59f['push'](_0x56c59f['shift']());}catch(_0x33f86c){_0x56c59f['push'](_0x56c59f['shift']());}}}(_0xb4ed,0x9f41c));import{ListView as _0x1a68b4,ListItemGroupView as _0x538d8f,ButtonView as _0x57f34c}from'ckeditor5/src/ui.js';import{getTranslation as _0x22f6de}from'../../utils/common-translations.js';function _0xb4ed(){const _0x58f269=['Clear','fire','703185HspIbf','delegate','709975NPdqfF','execute','length','1821708MkOsgi','set','items','children','Prompt\x20history','40NynJoT','add','_createClearHistoryButton','208241CxwBRF','250gCmYGo','3431sxMwFy','locale','clearHistory','5453832vUEKyC','1161978cZxYbg','18AzPssV','28SAoJvd','clearHistoryButton','534HHBmtQ','label','filter','historyGroupView'];_0xb4ed=function(){return _0x58f269;};return _0xb4ed();}function _0x4fb3(_0x1e8513,_0x11fd49){const _0xb4ed23=_0xb4ed();return _0x4fb3=function(_0x4fb37f,_0x22a0bd){_0x4fb37f=_0x4fb37f-0x1cb;let _0x1ea095=_0xb4ed23[_0x4fb37f];return _0x1ea095;},_0x4fb3(_0x1e8513,_0x11fd49);}export class AIHistoryListView extends _0x1a68b4{[_0x352d72(0x1e3)];[_0x352d72(0x1df)];constructor(_0x1fddcd){const _0x52978b=_0x352d72;super(_0x1fddcd),this[_0x52978b(0x1df)]=this[_0x52978b(0x1d5)](),this[_0x52978b(0x1e3)]=new _0x538d8f(),this[_0x52978b(0x1e3)][_0x52978b(0x1d1)][_0x52978b(0x1d4)](this[_0x52978b(0x1df)],0x1),this[_0x52978b(0x1e3)][_0x52978b(0x1e1)]=_0x22f6de(_0x1fddcd,_0x52978b(0x1d2)),this[_0x52978b(0x1e3)][_0x52978b(0x1d0)][_0x52978b(0x1e7)](_0x52978b(0x1cc))['to'](this),this[_0x52978b(0x1d0)][_0x52978b(0x1d4)](this[_0x52978b(0x1e3)]);}[_0x352d72(0x1e2)](){const _0x3938a9=_0x352d72;let _0x255cc9=0x0;for(const _0x1665bc of this[_0x3938a9(0x1d0)])_0x255cc9+=_0x1665bc[_0x3938a9(0x1d0)][_0x3938a9(0x1cd)];return{'resultsCount':_0x255cc9,'totalItemsCount':_0x255cc9};}[_0x352d72(0x1d5)](){const _0x488330=_0x352d72,_0x402175=this[_0x488330(0x1d9)],_0x1a1f1b=new _0x57f34c(this[_0x488330(0x1d9)]);return _0x1a1f1b[_0x488330(0x1cf)]({'label':'('+_0x22f6de(_0x402175,_0x488330(0x1e4))+')','withText':!0x0}),_0x1a1f1b['on'](_0x488330(0x1cc),()=>this[_0x488330(0x1e5)](_0x488330(0x1da))),_0x1a1f1b;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x4b61(){const _0x414a0c=['parse','remove','60xFSoiY','getItem','map','516606EYMlpJ','44aDKafk','add','251640oKeGFr','addMany','20610xKOqhe','stringify','trim','1144EMxgCN','1979992VMRnuZ','_saveToSessionStorage','toLowerCase','154810djAHjY','prompt','CKEditor/AIFormView/PromptHistory','533269xbsvGM','setItem','length','505NqDOxX','last','1370mqkdbL','_loadFromSessionStorage'];_0x4b61=function(){return _0x414a0c;};return _0x4b61();}function _0x31b4(_0x30fb48,_0x487b85){const _0x4b6139=_0x4b61();return _0x31b4=function(_0x31b4ea,_0x1c2de1){_0x31b4ea=_0x31b4ea-0x1b6;let _0x32b6e4=_0x4b6139[_0x31b4ea];return _0x32b6e4;},_0x31b4(_0x30fb48,_0x487b85);}const _0x392818=_0x31b4;(function(_0x53712a,_0x24815b){const _0x5a3b6d=_0x31b4,_0x677ab5=_0x53712a();while(!![]){try{const _0x1f6c22=parseInt(_0x5a3b6d(0x1cb))/0x1*(-parseInt(_0x5a3b6d(0x1cd))/0x2)+-parseInt(_0x5a3b6d(0x1b9))/0x3+parseInt(_0x5a3b6d(0x1ba))/0x4*(parseInt(_0x5a3b6d(0x1c5))/0x5)+parseInt(_0x5a3b6d(0x1bc))/0x6+parseInt(_0x5a3b6d(0x1c2))/0x7+parseInt(_0x5a3b6d(0x1c1))/0x8*(parseInt(_0x5a3b6d(0x1be))/0x9)+parseInt(_0x5a3b6d(0x1b6))/0xa*(-parseInt(_0x5a3b6d(0x1c8))/0xb);if(_0x1f6c22===_0x24815b)break;else _0x677ab5['push'](_0x677ab5['shift']());}catch(_0xf9cd6a){_0x677ab5['push'](_0x677ab5['shift']());}}}(_0x4b61,0x2ce27));import{Collection as _0x313dc8}from'ckeditor5/src/utils.js';const So=_0x392818(0x1c7);export class PromptHistory extends _0x313dc8{constructor(){const _0x37e6e1=_0x392818;super(),this[_0x37e6e1(0x1ce)](),this['on'](_0x37e6e1(0x1bb),(_0x97faf5,_0xa76f7)=>{const _0x1f8066=_0x37e6e1,_0x3fa5ed=fo(_0xa76f7[_0x1f8066(0x1c6)]);for(const _0x528060 of this)if(_0x528060!=_0xa76f7&&fo(_0x528060[_0x1f8066(0x1c6)])===_0x3fa5ed){this[_0x1f8066(0x1d0)](_0x528060);break;}this[_0x1f8066(0x1ca)]>0x14&&this[_0x1f8066(0x1d0)](this[_0x1f8066(0x1cc)]),this[_0x1f8066(0x1c3)]();}),this['on'](_0x37e6e1(0x1d0),()=>{const _0x3081a0=_0x37e6e1;this[_0x3081a0(0x1c3)]();});}[_0x392818(0x1ce)](){const _0xd6817e=_0x392818,_0x548dd8=sessionStorage[_0xd6817e(0x1b7)](So)||'[]';this[_0xd6817e(0x1bd)](JSON[_0xd6817e(0x1cf)](_0x548dd8));}[_0x392818(0x1c3)](){const _0x2b4b4b=_0x392818;sessionStorage[_0x2b4b4b(0x1c9)](So,JSON[_0x2b4b4b(0x1bf)](this[_0x2b4b4b(0x1b8)](_0x2f9b8d=>_0x2f9b8d)));}}function fo(_0x4f2362){const _0x425b29=_0x392818;return _0x4f2362[_0x425b29(0x1c4)]()[_0x425b29(0x1c0)]();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x4a5b(_0x4a3bf6,_0x39df33){const _0x14e7b6=_0x14e7();return _0x4a5b=function(_0x4a5bc7,_0x25efd5){_0x4a5bc7=_0x4a5bc7-0xc7;let _0x458d86=_0x14e7b6[_0x4a5bc7];return _0x458d86;},_0x4a5b(_0x4a3bf6,_0x39df33);}const _0x336815=_0x4a5b;(function(_0x2d43c5,_0x20be59){const _0x2bc0b6=_0x4a5b,_0x4296ca=_0x2d43c5();while(!![]){try{const _0xca7b08=-parseInt(_0x2bc0b6(0xed))/0x1+parseInt(_0x2bc0b6(0xd4))/0x2+parseInt(_0x2bc0b6(0xeb))/0x3*(parseInt(_0x2bc0b6(0xec))/0x4)+parseInt(_0x2bc0b6(0xdf))/0x5+parseInt(_0x2bc0b6(0xd6))/0x6+-parseInt(_0x2bc0b6(0xda))/0x7*(-parseInt(_0x2bc0b6(0xf1))/0x8)+parseInt(_0x2bc0b6(0xd8))/0x9*(-parseInt(_0x2bc0b6(0xe7))/0xa);if(_0xca7b08===_0x20be59)break;else _0x4296ca['push'](_0x4296ca['shift']());}catch(_0x328826){_0x4296ca['push'](_0x4296ca['shift']());}}}(_0x14e7,0xa94a5));import{Command as _0x1a00d}from'ckeditor5/src/core.js';import{AIAssistantUI as _0x589c3f}from'../aiassistantui.js';export class ShowAIAssistantCommand extends _0x1a00d{[_0x336815(0xe4)];constructor(_0x13e686,_0x170caa){const _0x26d47d=_0x336815;super(_0x13e686),this[_0x26d47d(0xe4)]=_0x170caa,this[_0x26d47d(0xd1)](_0x26d47d(0xd5),[]),this['on'](_0x26d47d(0xf0),(_0x3fe034,_0x29b7b2,_0x527abe)=>{const _0x540fb8=_0x26d47d;this[_0x540fb8(0xce)]&&(this[_0x540fb8(0xd5)]=fs(this[_0x540fb8(0xe4)],_0x527abe));}),this[_0x26d47d(0xd1)](_0x26d47d(0xd3),!0x1),this['on'](_0x26d47d(0xe2),(_0x459799,_0x105159,_0x5650c8)=>{const _0x350915=_0x26d47d;this[_0x350915(0xd5)]=_0x5650c8?fs(this[_0x350915(0xe4)],this[_0x350915(0xd3)]):[];});}[_0x336815(0xd9)](){const _0xfab26a=_0x336815,_0x43beaf=this[_0xfab26a(0xdd)][_0xfab26a(0xdb)];this[_0xfab26a(0xd3)]=function(_0x31a63e){const _0x21fe9b=_0xfab26a,_0x1c8402=_0x31a63e[_0x21fe9b(0xcd)][_0x21fe9b(0xd7)];return _0x1c8402[_0x21fe9b(0xe1)]?0x0!==[..._0x1c8402[_0x21fe9b(0xf2)]()][_0x21fe9b(0xe9)]&&![..._0x1c8402[_0x21fe9b(0xf2)]()][0x0][_0x21fe9b(0xe5)]:!!_0x31a63e[_0x21fe9b(0xe3)](_0x1c8402[_0x21fe9b(0xe6)]());}(_0x43beaf);const _0x1bd26f=_0x43beaf[_0xfab26a(0xcd)][_0xfab26a(0xd7)],_0x205847=this[_0xfab26a(0xdd)][_0xfab26a(0xd0)][_0xfab26a(0xe8)](_0xfab26a(0xcb));for(const _0x423b99 of _0x1bd26f[_0xfab26a(0xca)]())for(const _0x4ff920 of _0x423b99[_0xfab26a(0xef)]())if(_0x4ff920['is'](_0xfab26a(0xe0))&&_0x205847[_0xfab26a(0xee)](_0x4ff920[_0xfab26a(0xcc)]))return void(this[_0xfab26a(0xce)]=!0x1);this[_0xfab26a(0xce)]=!0x0;}[_0x336815(0xc9)](_0x2b11ae='',_0x360749='',_0x644904=_0x336815(0xc7)){const _0x3d5fd4=_0x336815;this[_0x3d5fd4(0xdd)][_0x3d5fd4(0xcf)][_0x3d5fd4(0xe8)](_0x589c3f)[_0x3d5fd4(0xdc)](_0x2b11ae,_0x360749,_0x644904);}}function fs(_0x4432b4,_0x167db0){const _0x8a3183=_0x336815,_0x2ba2ca=new Set();for(const _0x2bea81 of _0x4432b4[_0x8a3183(0xea)]())(_0x167db0||!0x1===_0x2bea81[_0x8a3183(0xd2)])&&_0x2ba2ca[_0x8a3183(0xc8)](_0x2bea81['id']);return Array[_0x8a3183(0xde)](_0x2ba2ca);}function _0x14e7(){const _0xc4e82b=['_hasContext','169484nMyegA','enabledCommandsIds','1999674AmNFKw','selection','4973571xWLTHj','refresh','7574MYtPjO','model','showUI','editor','from','4474070LAGADi','element','isCollapsed','change:isEnabled','hasContent','_commandDefinitions','isEmpty','getFirstRange','10CijeVX','get','length','values','524751mFltSx','8VBDgHk','742319EkmkWA','includes','getItems','change:_hasContext','2408PUNIMd','getSelectedBlocks','custom','add','execute','getRanges','ai.assistant.disabledElements','name','document','isEnabled','plugins','config','set','requiresContent'];_0x14e7=function(){return _0xc4e82b;};return _0x14e7();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(
|
|
23
|
+
export function getTranslation(_0x20a3cb,_0x3aac2f,_0x17e5a9){const t=_0x20a3cb['t'];switch(_0x3aac2f){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',_0x17e5a9);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x17e5a9);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'},_0x17e5a9);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 _0x3aac2f;}}
|
|
@@ -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(_0x92fab0,_0x550ccd){const _0x40c37d=(0x0,_0x550ccd['t'])('Other');return _0x92fab0['length']?'groupId'in _0x92fab0[0x0]?_0x92fab0:[{'groupId':'_ungrouppedCommands','groupLabel':_0x40c37d,'order':0x1/0x0,'commands':_0x92fab0}]:[{'groupId':'_ungrouppedCommands','groupLabel':_0x40c37d,'order':0x1/0x0,'commands':[]}];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0xdf136=_0x2d9a;(function(_0x1c5143,_0x3859b4){const _0x5e68e6=_0x2d9a,_0x504ca7=_0x1c5143();while(!![]){try{const _0x4f8609=-parseInt(_0x5e68e6(0xc6))/0x1*(-parseInt(_0x5e68e6(0xc3))/0x2)+-parseInt(_0x5e68e6(0xd7))/0x3+-parseInt(_0x5e68e6(0xe1))/0x4*(parseInt(_0x5e68e6(0xbb))/0x5)+parseInt(_0x5e68e6(0x123))/0x6+-parseInt(_0x5e68e6(0xbf))/0x7+-parseInt(_0x5e68e6(0x100))/0x8*(-parseInt(_0x5e68e6(0xf6))/0x9)+-parseInt(_0x5e68e6(0x108))/0xa*(-parseInt(_0x5e68e6(0xc5))/0xb);if(_0x4f8609===_0x3859b4)break;else _0x504ca7['push'](_0x504ca7['shift']());}catch(_0x50a531){_0x504ca7['push'](_0x504ca7['shift']());}}}(_0x159d,0x6360d));import{ContextPlugin as _0x1da821}from'ckeditor5/src/core.js';import{AIConnector as _0x32ae80}from'../aicore/aiconnector.js';function _0x2d9a(_0x2c83b9,_0x2cab9a){const _0x159dee=_0x159d();return _0x2d9a=function(_0x2d9af6,_0x2c8555){_0x2d9af6=_0x2d9af6-0xbb;let _0x18522a=_0x159dee[_0x2d9af6];return _0x18522a;},_0x2d9a(_0x2c83b9,_0x2cab9a);}function _0x159d(){const _0x492b8b=['getMarkersGroup','_showDialog','iconView','content','model','_updateBalloon','showFakeVisualSelection','max','document','start','once','config','ai.availableReplyActions','_calculateOptimalTopPosition','_getSelectionElements','pluginName','3525075mSjkec','startAutoScroll','_config','locale','get','setupRotator','showRotator','$graveyard','round','updateContent','8Prbbkx','icon','length','isOpen','markers','\x20ai-balloon-rotator','index','_pendingRenderCallback','13090540qojRFI','ai-balloon-','aiBalloon','getChangedMarkers','context','bottom','title','commands','_setupVisualSelection','hideFakeVisualSelection','ranges','left','ai-balloon','width','listenTo','isEqual','rootName','root','show','AIEditing','ai-selection:','ai-selection','mainView','bind','isOfficialPlugin','Dialog','selectionRemoved','789108hrZldu','trackChanges','isPremiumPlugin','startsWith','hide','AI_ACTIONS_SELECTION_REMOVED_ERROR','4009215cFYzxP','_setupMarkerRemovalListener','off','stopListening','3999604WRTzQp','dialogClosed','window','ai-balloon-selection','2ZavTNJ','getIntersection','11IDJPod','123283OiMSXF','showBlockingError','stopAutoScroll','updatePosition','end','balloonView','filter','fire','getBoundingRect','value','AIBalloon','open','render','_cleanupMarkerRemovalListener','label','height','_isUpdatingMarkers','525786PNFdDK','close','change','headerView','differ','isTrackChangesOn','plugins','editing','view','getVisible','4Wzwjnp','top','_calculateDialogPosition','requires','delegate'];_0x159d=function(){return _0x492b8b;};return _0x159d();}import{AIEditing as _0x3e09d6}from'../aicore/aiediting.js';import{AI_BALLOON_VIEW_EVENT_NAMES as _0x1cc813,AIBalloonView as _0x63184c}from'./ui/aiballoonview.js';import'../../theme/aiballoon/aiballoon.css';import{getAllMarkersDomElementsSorted as _0x5a9d97}from'ckeditor5-collaboration/src/collaboration-core.js';import{global as _0x3db30b,Rect as _0x9da3e0,scrollViewportToShowTarget as _0x39f520}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0x5cc8d9}from'../aicore/utils/geteditorfromcontext.js';import{AI_REPLY_ACTIONS as _0x17c13c}from'../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';import{getTranslation as _0x565a22}from'../aicore/utils/common-translations.js';export const AI_BALLOON_EVENT_NAMES=[..._0x1cc813,_0xdf136(0xc0),_0xdf136(0x122)];const g=0xa;export class AIBalloon extends _0x1da821{static get[_0xdf136(0xe4)](){return[_0x32ae80,_0x3e09d6];}static get[_0xdf136(0xf5)](){const _0x2f1b3a=_0xdf136;return _0x2f1b3a(0xd0);}static get[_0xdf136(0x120)](){return!0x0;}static get[_0xdf136(0x125)](){return!0x0;}[_0xdf136(0x103)]=!0x1;[_0xdf136(0xf8)];[_0xdf136(0xd6)]=!0x1;[_0xdf136(0x107)]=null;[_0xdf136(0xd1)](_0x14af37){const _0x5e020d=_0xdf136,_0x13a9ce=_0x5cc8d9(this[_0x5e020d(0x10c)]);if(this[_0x5e020d(0xf8)]=_0x14af37,this[_0x5e020d(0x103)])return void this[_0x5e020d(0xeb)](_0x14af37);const _0x2e2cdf=this[_0x5e020d(0x10c)][_0x5e020d(0xf1)][_0x5e020d(0xfa)](_0x5e020d(0xf2))||[..._0x17c13c],_0x15c89f=_0x13a9ce?.[_0x5e020d(0x10f)][_0x5e020d(0xfa)](_0x5e020d(0x124)),_0x431327=_0x15c89f?.[_0x5e020d(0xcf)];this[_0x5e020d(0xcb)]=new _0x63184c(_0x13a9ce[_0x5e020d(0xf9)],_0x14af37,_0x2e2cdf,!!_0x431327),this[_0x5e020d(0xcb)][_0x5e020d(0xe5)](..._0x1cc813)['to'](this),_0x15c89f&&this[_0x5e020d(0xcb)][_0x5e020d(0x11f)](_0x5e020d(0xdc))['to'](_0x15c89f,_0x5e020d(0xcf)),this[_0x5e020d(0xe7)](_0x14af37);}[_0xdf136(0xd8)](){const _0x2f799e=_0xdf136;_0x5cc8d9(this[_0x2f799e(0x10c)])[_0x2f799e(0xdd)][_0x2f799e(0xfa)](_0x2f799e(0x121))[_0x2f799e(0x127)]();}[_0xdf136(0xf7)](){const _0xddafde=_0xdf136;this[_0xddafde(0xcb)]&&this[_0xddafde(0xcb)][_0xddafde(0xf7)]();}[_0xdf136(0xc8)](){const _0x202c1c=_0xdf136;this[_0x202c1c(0xcb)]&&this[_0x202c1c(0xcb)][_0x202c1c(0xc8)]();}[_0xdf136(0xeb)](_0x44b240){const _0x1f6ee1=_0xdf136,_0x3413ae=_0x5cc8d9(this[_0x1f6ee1(0x10c)]),_0x7c2ff9=_0x3413ae[_0x1f6ee1(0xdd)][_0x1f6ee1(0xfa)](_0x1f6ee1(0x121));this[_0x1f6ee1(0x107)]&&(_0x3413ae[_0x1f6ee1(0xde)][_0x1f6ee1(0xdf)][_0x1f6ee1(0xbd)](_0x1f6ee1(0xd2),this[_0x1f6ee1(0x107)]),this[_0x1f6ee1(0x107)]=null),this[_0x1f6ee1(0xd6)]=!0x0,_0x7c2ff9[_0x1f6ee1(0xdf)]?.[_0x1f6ee1(0xda)]&&(_0x7c2ff9[_0x1f6ee1(0xdf)][_0x1f6ee1(0xda)][_0x1f6ee1(0xd4)]=_0x44b240[_0x1f6ee1(0x10e)],_0x7c2ff9[_0x1f6ee1(0xdf)][_0x1f6ee1(0xda)][_0x1f6ee1(0xe8)]&&_0x44b240[_0x1f6ee1(0x101)]&&(_0x7c2ff9[_0x1f6ee1(0xdf)][_0x1f6ee1(0xda)][_0x1f6ee1(0xe8)][_0x1f6ee1(0xe9)]=_0x44b240[_0x1f6ee1(0x101)])),this[_0x1f6ee1(0xcb)][_0x1f6ee1(0xff)](_0x44b240[_0x1f6ee1(0x11e)]),this[_0x1f6ee1(0x110)](_0x44b240[_0x1f6ee1(0x112)],_0x44b240[_0x1f6ee1(0x106)]),this[_0x1f6ee1(0x107)]=()=>{const _0x3745ee=_0x1f6ee1;this[_0x3745ee(0xd6)]=!0x1,this[_0x3745ee(0x107)]=null,_0x7c2ff9[_0x3745ee(0xdf)]&&_0x7c2ff9[_0x3745ee(0xdf)][_0x3745ee(0xc9)]();},_0x3413ae[_0x1f6ee1(0xde)][_0x1f6ee1(0xdf)][_0x1f6ee1(0xf0)](_0x1f6ee1(0xd2),this[_0x1f6ee1(0x107)]);}[_0xdf136(0x110)](_0x390710,_0x5e08f2){const _0x373bda=_0xdf136;this[_0x373bda(0x10c)][_0x373bda(0xdd)][_0x373bda(0xfa)](_0x3e09d6)[_0x373bda(0xec)](_0x390710,_0x373bda(0x109)+_0x5e08f2,!0x0,!0x0);}[_0xdf136(0xe7)](_0x18bf13){const _0x5f5241=_0xdf136,_0x106aae=_0x5cc8d9(this[_0x5f5241(0x10c)]);this[_0x5f5241(0x110)](_0x18bf13[_0x5f5241(0x112)],_0x18bf13[_0x5f5241(0x106)]);const _0x4bbaa5=this[_0x5f5241(0xf4)]();_0x4bbaa5&&_0x4bbaa5[0x0]&&_0x39f520({'target':_0x4bbaa5[0x0],'ancestorOffset':0x14,'alignToTop':!0x0,'viewportOffset':{'top':0x14,'bottom':0x14,'left':0x0,'right':0x0}}),_0x106aae[_0x5f5241(0xdd)][_0x5f5241(0xfa)](_0x5f5241(0x121))[_0x5f5241(0x11a)]({'title':_0x18bf13[_0x5f5241(0x10e)],'icon':_0x18bf13[_0x5f5241(0x101)],'hasCloseButton':!0x0,'id':_0x5f5241(0x10a),'position':this[_0x5f5241(0xe3)][_0x5f5241(0x11f)](this),'className':_0x5f5241(0x114)+(_0x18bf13[_0x5f5241(0xfc)]?_0x5f5241(0x105):''),'content':this[_0x5f5241(0xcb)],'onShow':_0x27af34=>{const _0x4f2978=_0x5f5241;_0x18bf13[_0x4f2978(0xfc)]&&this[_0x4f2978(0xcb)][_0x4f2978(0xfb)](_0x27af34),this[_0x4f2978(0xbc)](),this[_0x4f2978(0x103)]=!0x0;},'onHide':()=>{const _0x2f6281=_0x5f5241;this[_0x2f6281(0x10c)][_0x2f6281(0xdd)][_0x2f6281(0xfa)](_0x2f6281(0x11b))[_0x2f6281(0x111)](_0x2f6281(0x109)+this[_0x2f6281(0xf8)][_0x2f6281(0x106)]),this[_0x2f6281(0xd3)](),this[_0x2f6281(0xcd)](_0x2f6281(0xc0)),this[_0x2f6281(0x103)]=!0x1;}});}[_0xdf136(0xe3)](_0x1efddd,_0x338892){const _0x34967b=_0xdf136;if(!_0x338892)return null;const _0x1e6032=this[_0x34967b(0xf4)]();if(!_0x1e6032||0x0===_0x1e6032[_0x34967b(0x102)])return{'left':Math[_0x34967b(0xfe)](_0x338892[_0x34967b(0x113)]+_0x338892[_0x34967b(0x115)]/0x2-_0x1efddd[_0x34967b(0x115)]/0x2),'top':Math[_0x34967b(0xfe)](_0x338892[_0x34967b(0xe2)]+_0x338892[_0x34967b(0xd5)]/0x2-_0x1efddd[_0x34967b(0xd5)]/0x2)};const _0x33804c=Math[_0x34967b(0xfe)](_0x338892[_0x34967b(0x113)]+_0x338892[_0x34967b(0x115)]/0x2-_0x1efddd[_0x34967b(0x115)]/0x2),_0x571df5=new _0x9da3e0(_0x1e6032[0x0]),_0x510e21=new _0x9da3e0(_0x1e6032[_0x1e6032[_0x34967b(0x102)]-0x1]),_0x7d7df7=_0x1efddd[_0x34967b(0xd5)],_0x1b945e=this[_0x34967b(0xf8)][_0x34967b(0xfc)]?0x8:0x0;return{'left':_0x33804c,'top':this[_0x34967b(0xf3)](_0x571df5,_0x510e21,_0x7d7df7,_0x1b945e,_0x338892)};}[_0xdf136(0xf3)](_0x1e2bcd,_0x6b9ab1,_0x19cb1a,_0x2bd880=0x0,_0x4b5ad2){const _0x1b3bcd=_0xdf136,_0x224ed9=_0x19cb1a+_0x2bd880,_0x432284=new _0x9da3e0(_0x3db30b[_0x1b3bcd(0xc1)]),_0x5bf18d=[_0x1e2bcd[_0x1b3bcd(0xe0)](),_0x6b9ab1[_0x1b3bcd(0xe0)]()][_0x1b3bcd(0xcc)](_0x3a378a=>_0x3a378a),_0x251c18=_0x9da3e0[_0x1b3bcd(0xce)](_0x5bf18d);if(!_0x251c18)return Math[_0x1b3bcd(0xfe)](_0x4b5ad2[_0x1b3bcd(0xe2)]+_0x4b5ad2[_0x1b3bcd(0xd5)]/0x2);const _0x3294af=_0x432284[_0x1b3bcd(0xc4)](_0x251c18);if(!_0x3294af)return Math[_0x1b3bcd(0xfe)](_0x4b5ad2[_0x1b3bcd(0xe2)]+_0x4b5ad2[_0x1b3bcd(0xd5)]/0x2);const _0x5d7443=_0x4b5ad2[_0x1b3bcd(0xe0)](),_0x31e96d=_0x5d7443&&_0x251c18[_0x1b3bcd(0xd5)]>_0x5d7443[_0x1b3bcd(0xd5)],_0x44e391=_0x3294af[_0x1b3bcd(0xe2)],_0x3483ec=_0x3294af[_0x1b3bcd(0x10d)];if(_0x31e96d){const _0x149248=(_0x5d7443||_0x432284)[_0x1b3bcd(0xd5)]/0x2-_0x224ed9/0x2,_0x2c6a8e=_0x44e391-g-_0x4b5ad2[_0x1b3bcd(0xe2)],_0x869e83=_0x4b5ad2[_0x1b3bcd(0x10d)]-_0x3483ec-g;return _0x2c6a8e>=_0x224ed9?Math[_0x1b3bcd(0xed)](g,_0x44e391-_0x224ed9-g):_0x869e83>=_0x224ed9?_0x3483ec+g:Math[_0x1b3bcd(0xed)](g,_0x149248);}const _0x2c4910=_0x44e391-_0x224ed9,_0x5c472a=_0x4b5ad2[_0x1b3bcd(0x10d)]-_0x3483ec-g,_0x37f13d=_0x44e391-g-_0x4b5ad2[_0x1b3bcd(0xe2)];let _0x391e98;if(_0x5c472a>=_0x224ed9)_0x391e98=_0x3483ec+g;else{if(_0x37f13d>=_0x224ed9)_0x391e98=_0x2c4910-g;else _0x391e98=_0x44e391+_0x251c18[_0x1b3bcd(0xd5)]/0x2-_0x224ed9/0x2;}return _0x391e98;}[_0xdf136(0xbc)](){const _0x37f307=_0xdf136,_0x2b239a=_0x5cc8d9(this[_0x37f307(0x10c)]);this[_0x37f307(0x116)](_0x2b239a[_0x37f307(0xea)][_0x37f307(0xee)],_0x37f307(0xd9),()=>{const _0x4edabd=_0x37f307;if(this[_0x4edabd(0xd6)])return;for(const {name:_0x180221,data:{newRange:_0x482347}}of _0x2b239a[_0x4edabd(0xea)][_0x4edabd(0xee)][_0x4edabd(0xdb)][_0x4edabd(0x10b)]())if(_0x180221[_0x4edabd(0x126)](_0x4edabd(0x11c))&&(_0x482347&&(_0x482347[_0x4edabd(0xef)][_0x4edabd(0x117)](_0x482347[_0x4edabd(0xca)])||_0x4edabd(0xfd)==_0x482347[_0x4edabd(0x119)][_0x4edabd(0x118)])||null==_0x482347)){const _0x280b1b=_0x565a22(this[_0x4edabd(0x10c)][_0x4edabd(0xf9)],_0x4edabd(0x128));this[_0x4edabd(0xcb)][_0x4edabd(0xc7)](_0x280b1b),this[_0x4edabd(0xcd)](_0x4edabd(0x122));}});}[_0xdf136(0xd3)](){const _0xe5f4ee=_0xdf136,_0x665a4c=_0x5cc8d9(this[_0xe5f4ee(0x10c)]);this[_0xe5f4ee(0xbe)](_0x665a4c[_0xe5f4ee(0xea)][_0xe5f4ee(0xee)]);}[_0xdf136(0xf4)](){const _0x29e51e=_0xdf136,_0x2cd801=_0x5cc8d9(this[_0x29e51e(0x10c)]);return _0x5a9d97(_0x2cd801[_0x29e51e(0xde)],[..._0x2cd801[_0x29e51e(0xea)][_0x29e51e(0x104)][_0x29e51e(0xe6)](_0x29e51e(0x11d)),..._0x2cd801[_0x29e51e(0xea)][_0x29e51e(0x104)][_0x29e51e(0xe6)](_0x29e51e(0xc2))]);}}
|
|
23
|
+
const _0x2c3ce1=_0x2c6c;(function(_0x1acdf8,_0x1a5965){const _0x37d953=_0x2c6c,_0x446c2f=_0x1acdf8();while(!![]){try{const _0x795926=parseInt(_0x37d953(0x14a))/0x1+-parseInt(_0x37d953(0x139))/0x2*(-parseInt(_0x37d953(0x11b))/0x3)+parseInt(_0x37d953(0xfa))/0x4*(-parseInt(_0x37d953(0x100))/0x5)+parseInt(_0x37d953(0x14b))/0x6*(-parseInt(_0x37d953(0x112))/0x7)+parseInt(_0x37d953(0x11d))/0x8*(-parseInt(_0x37d953(0x120))/0x9)+-parseInt(_0x37d953(0x157))/0xa*(-parseInt(_0x37d953(0x108))/0xb)+parseInt(_0x37d953(0x109))/0xc;if(_0x795926===_0x1a5965)break;else _0x446c2f['push'](_0x446c2f['shift']());}catch(_0x171e9b){_0x446c2f['push'](_0x446c2f['shift']());}}}(_0xdafe,0x6917d));import{ContextPlugin as _0x5d7822}from'ckeditor5/src/core.js';import{AIConnector as _0x19d7eb}from'../aicore/aiconnector.js';import{AIEditing as _0x6b735e}from'../aicore/aiediting.js';function _0xdafe(){const _0x5b66d0=['stopAutoScroll','context','open','fire','off','563510xOrNNQ','ai-selection','commands','max','startsWith','render','\x20ai-balloon-rotator','isTrackChangesOn','editing','root','_isUpdatingMarkers','markers','_pendingRenderCallback','delegate','updateContent','close','aiBalloon','showBlockingError','108CfYHka','view','width','ranges','showFakeVisualSelection','plugins','76035gwxlhA','round','end','title','_cleanupMarkerRemovalListener','trackChanges','content','dialogClosed','44GTPqjr','7425144vKcwgP','balloonView','isOfficialPlugin','label','hideFakeVisualSelection','get','getMarkersGroup','left','length','7ZYuRUC','isEqual','updatePosition','isOpen','_updateBalloon','index','isPremiumPlugin','_getSelectionElements','window','30396ZwmnJq','AI_ACTIONS_SELECTION_REMOVED_ERROR','33744qolMyn','requires','listenTo','27NQxIzp','height','_setupMarkerRemovalListener','show','model','_setupVisualSelection','locale','once','AIEditing','value','bottom','config','startAutoScroll','selectionRemoved','setupRotator','Dialog','change','bind','iconView','icon','pluginName','ai-balloon-selection','ai.availableReplyActions','rootName','mainView','56oPMHAl','_config','$graveyard','ai-selection:','stopListening','start','_showDialog','ai-balloon','getVisible','ai-balloon-','AIBalloon','top','filter','_calculateOptimalTopPosition','getIntersection','getChangedMarkers','headerView','245397yJBncH','3117330vYsGHP','_calculateDialogPosition','showRotator','hide','document','getBoundingRect','differ'];_0xdafe=function(){return _0x5b66d0;};return _0xdafe();}import{AI_BALLOON_VIEW_EVENT_NAMES as _0x887d9b,AIBalloonView as _0x51807e}from'./ui/aiballoonview.js';import'../../theme/aiballoon/aiballoon.css';import{getAllMarkersDomElementsSorted as _0x5b74de}from'ckeditor5-collaboration/src/collaboration-core.js';import{global as _0x1d0d58,Rect as _0x151388,scrollViewportToShowTarget as _0x29b416}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0x498fab}from'../aicore/utils/geteditorfromcontext.js';import{AI_REPLY_ACTIONS as _0x42c921}from'../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';import{getTranslation as _0x24bc97}from'../aicore/utils/common-translations.js';export const AI_BALLOON_EVENT_NAMES=[..._0x887d9b,_0x2c3ce1(0x107),_0x2c3ce1(0x12d)];const g=0xa;function _0x2c6c(_0x195ecf,_0x482068){const _0xdafe90=_0xdafe();return _0x2c6c=function(_0x2c6c28,_0x30e1ef){_0x2c6c28=_0x2c6c28-0xf4;let _0x5b580e=_0xdafe90[_0x2c6c28];return _0x5b580e;},_0x2c6c(_0x195ecf,_0x482068);}export class AIBalloon extends _0x5d7822{static get[_0x2c3ce1(0x11e)](){return[_0x19d7eb,_0x6b735e];}static get[_0x2c3ce1(0x134)](){const _0x3e7010=_0x2c3ce1;return _0x3e7010(0x143);}static get[_0x2c3ce1(0x10b)](){return!0x0;}static get[_0x2c3ce1(0x118)](){return!0x0;}[_0x2c3ce1(0x115)]=!0x1;[_0x2c3ce1(0x13a)];[_0x2c3ce1(0x161)]=!0x1;[_0x2c3ce1(0xf4)]=null;[_0x2c3ce1(0x154)](_0x1219e1){const _0x483b5e=_0x2c3ce1,_0xbdeee3=_0x498fab(this[_0x483b5e(0x153)]);if(this[_0x483b5e(0x13a)]=_0x1219e1,this[_0x483b5e(0x115)])return void this[_0x483b5e(0x116)](_0x1219e1);const _0x4a4dac=this[_0x483b5e(0x153)][_0x483b5e(0x12b)][_0x483b5e(0x10e)](_0x483b5e(0x136))||[..._0x42c921],_0x5bf0af=_0xbdeee3?.[_0x483b5e(0x159)][_0x483b5e(0x10e)](_0x483b5e(0x105)),_0x3adacc=_0x5bf0af?.[_0x483b5e(0x129)];this[_0x483b5e(0x10a)]=new _0x51807e(_0xbdeee3[_0x483b5e(0x126)],_0x1219e1,_0x4a4dac,!!_0x3adacc),this[_0x483b5e(0x10a)][_0x483b5e(0xf5)](..._0x887d9b)['to'](this),_0x5bf0af&&this[_0x483b5e(0x10a)][_0x483b5e(0x131)](_0x483b5e(0x15e))['to'](_0x5bf0af,_0x483b5e(0x129)),this[_0x483b5e(0x13f)](_0x1219e1);}[_0x2c3ce1(0xf7)](){const _0x5c2a6c=_0x2c3ce1;_0x498fab(this[_0x5c2a6c(0x153)])[_0x5c2a6c(0xff)][_0x5c2a6c(0x10e)](_0x5c2a6c(0x12f))[_0x5c2a6c(0x14e)]();}[_0x2c3ce1(0x12c)](){const _0x2d2922=_0x2c3ce1;this[_0x2d2922(0x10a)]&&this[_0x2d2922(0x10a)][_0x2d2922(0x12c)]();}[_0x2c3ce1(0x152)](){const _0x216997=_0x2c3ce1;this[_0x216997(0x10a)]&&this[_0x216997(0x10a)][_0x216997(0x152)]();}[_0x2c3ce1(0x116)](_0x9a17af){const _0x258015=_0x2c3ce1,_0x277e1a=_0x498fab(this[_0x258015(0x153)]),_0x53a10b=_0x277e1a[_0x258015(0xff)][_0x258015(0x10e)](_0x258015(0x12f));this[_0x258015(0xf4)]&&(_0x277e1a[_0x258015(0x15f)][_0x258015(0xfb)][_0x258015(0x156)](_0x258015(0x15c),this[_0x258015(0xf4)]),this[_0x258015(0xf4)]=null),this[_0x258015(0x161)]=!0x0,_0x53a10b[_0x258015(0xfb)]?.[_0x258015(0x149)]&&(_0x53a10b[_0x258015(0xfb)][_0x258015(0x149)][_0x258015(0x10c)]=_0x9a17af[_0x258015(0x103)],_0x53a10b[_0x258015(0xfb)][_0x258015(0x149)][_0x258015(0x132)]&&_0x9a17af[_0x258015(0x133)]&&(_0x53a10b[_0x258015(0xfb)][_0x258015(0x149)][_0x258015(0x132)][_0x258015(0x106)]=_0x9a17af[_0x258015(0x133)])),this[_0x258015(0x10a)][_0x258015(0xf6)](_0x9a17af[_0x258015(0x138)]),this[_0x258015(0x125)](_0x9a17af[_0x258015(0xfd)],_0x9a17af[_0x258015(0x117)]),this[_0x258015(0xf4)]=()=>{const _0x94b04b=_0x258015;this[_0x94b04b(0x161)]=!0x1,this[_0x94b04b(0xf4)]=null,_0x53a10b[_0x94b04b(0xfb)]&&_0x53a10b[_0x94b04b(0xfb)][_0x94b04b(0x114)]();},_0x277e1a[_0x258015(0x15f)][_0x258015(0xfb)][_0x258015(0x127)](_0x258015(0x15c),this[_0x258015(0xf4)]);}[_0x2c3ce1(0x125)](_0x583aa9,_0x1bcfd2){const _0x3edd76=_0x2c3ce1;this[_0x3edd76(0x153)][_0x3edd76(0xff)][_0x3edd76(0x10e)](_0x6b735e)[_0x3edd76(0xfe)](_0x583aa9,_0x3edd76(0x142)+_0x1bcfd2,!0x0,!0x0);}[_0x2c3ce1(0x13f)](_0x3562c7){const _0xbe44c8=_0x2c3ce1,_0x2d8e2a=_0x498fab(this[_0xbe44c8(0x153)]);this[_0xbe44c8(0x125)](_0x3562c7[_0xbe44c8(0xfd)],_0x3562c7[_0xbe44c8(0x117)]);const _0x35d770=this[_0xbe44c8(0x119)]();_0x35d770&&_0x35d770[0x0]&&_0x29b416({'target':_0x35d770[0x0],'ancestorOffset':0x14,'alignToTop':!0x0,'viewportOffset':{'top':0x14,'bottom':0x14,'left':0x0,'right':0x0}}),_0x2d8e2a[_0xbe44c8(0xff)][_0xbe44c8(0x10e)](_0xbe44c8(0x12f))[_0xbe44c8(0x123)]({'title':_0x3562c7[_0xbe44c8(0x103)],'icon':_0x3562c7[_0xbe44c8(0x133)],'hasCloseButton':!0x0,'id':_0xbe44c8(0xf8),'position':this[_0xbe44c8(0x14c)][_0xbe44c8(0x131)](this),'className':_0xbe44c8(0x140)+(_0x3562c7[_0xbe44c8(0x14d)]?_0xbe44c8(0x15d):''),'content':this[_0xbe44c8(0x10a)],'onShow':_0x80448=>{const _0x48630a=_0xbe44c8;_0x3562c7[_0x48630a(0x14d)]&&this[_0x48630a(0x10a)][_0x48630a(0x12e)](_0x80448),this[_0x48630a(0x122)](),this[_0x48630a(0x115)]=!0x0;},'onHide':()=>{const _0x4866ed=_0xbe44c8;this[_0x4866ed(0x153)][_0x4866ed(0xff)][_0x4866ed(0x10e)](_0x4866ed(0x128))[_0x4866ed(0x10d)](_0x4866ed(0x142)+this[_0x4866ed(0x13a)][_0x4866ed(0x117)]),this[_0x4866ed(0x104)](),this[_0x4866ed(0x155)](_0x4866ed(0x107)),this[_0x4866ed(0x115)]=!0x1;}});}[_0x2c3ce1(0x14c)](_0x327177,_0x2c8fc0){const _0x14db39=_0x2c3ce1;if(!_0x2c8fc0)return null;const _0x3233c7=this[_0x14db39(0x119)]();if(!_0x3233c7||0x0===_0x3233c7[_0x14db39(0x111)])return{'left':Math[_0x14db39(0x101)](_0x2c8fc0[_0x14db39(0x110)]+_0x2c8fc0[_0x14db39(0xfc)]/0x2-_0x327177[_0x14db39(0xfc)]/0x2),'top':Math[_0x14db39(0x101)](_0x2c8fc0[_0x14db39(0x144)]+_0x2c8fc0[_0x14db39(0x121)]/0x2-_0x327177[_0x14db39(0x121)]/0x2)};const _0x597181=Math[_0x14db39(0x101)](_0x2c8fc0[_0x14db39(0x110)]+_0x2c8fc0[_0x14db39(0xfc)]/0x2-_0x327177[_0x14db39(0xfc)]/0x2),_0x3af71e=new _0x151388(_0x3233c7[0x0]),_0x5b9c3b=new _0x151388(_0x3233c7[_0x3233c7[_0x14db39(0x111)]-0x1]),_0x1ae1ff=_0x327177[_0x14db39(0x121)],_0x16a033=this[_0x14db39(0x13a)][_0x14db39(0x14d)]?0x8:0x0;return{'left':_0x597181,'top':this[_0x14db39(0x146)](_0x3af71e,_0x5b9c3b,_0x1ae1ff,_0x16a033,_0x2c8fc0)};}[_0x2c3ce1(0x146)](_0x1b0247,_0x493157,_0x467a2b,_0x58747d=0x0,_0x3ee8d1){const _0x196d36=_0x2c3ce1,_0xe016b4=_0x467a2b+_0x58747d,_0x291005=new _0x151388(_0x1d0d58[_0x196d36(0x11a)]),_0x157242=[_0x1b0247[_0x196d36(0x141)](),_0x493157[_0x196d36(0x141)]()][_0x196d36(0x145)](_0x4ca895=>_0x4ca895),_0x434b58=_0x151388[_0x196d36(0x150)](_0x157242);if(!_0x434b58)return Math[_0x196d36(0x101)](_0x3ee8d1[_0x196d36(0x144)]+_0x3ee8d1[_0x196d36(0x121)]/0x2);const _0x4fff18=_0x291005[_0x196d36(0x147)](_0x434b58);if(!_0x4fff18)return Math[_0x196d36(0x101)](_0x3ee8d1[_0x196d36(0x144)]+_0x3ee8d1[_0x196d36(0x121)]/0x2);const _0x1d5cd9=_0x3ee8d1[_0x196d36(0x141)](),_0x32b5e3=_0x1d5cd9&&_0x434b58[_0x196d36(0x121)]>_0x1d5cd9[_0x196d36(0x121)],_0x18f3ed=_0x4fff18[_0x196d36(0x144)],_0x19ea13=_0x4fff18[_0x196d36(0x12a)];if(_0x32b5e3){const _0x347328=(_0x1d5cd9||_0x291005)[_0x196d36(0x121)]/0x2-_0xe016b4/0x2,_0x79d6=_0x18f3ed-g-_0x3ee8d1[_0x196d36(0x144)],_0x1c9f1d=_0x3ee8d1[_0x196d36(0x12a)]-_0x19ea13-g;return _0x79d6>=_0xe016b4?Math[_0x196d36(0x15a)](g,_0x18f3ed-_0xe016b4-g):_0x1c9f1d>=_0xe016b4?_0x19ea13+g:Math[_0x196d36(0x15a)](g,_0x347328);}const _0x299811=_0x18f3ed-_0xe016b4,_0x118185=_0x3ee8d1[_0x196d36(0x12a)]-_0x19ea13-g,_0x451b9f=_0x18f3ed-g-_0x3ee8d1[_0x196d36(0x144)];let _0x2de88f;if(_0x118185>=_0xe016b4)_0x2de88f=_0x19ea13+g;else{if(_0x451b9f>=_0xe016b4)_0x2de88f=_0x299811-g;else _0x2de88f=_0x18f3ed+_0x434b58[_0x196d36(0x121)]/0x2-_0xe016b4/0x2;}return _0x2de88f;}[_0x2c3ce1(0x122)](){const _0x115d42=_0x2c3ce1,_0x256fdb=_0x498fab(this[_0x115d42(0x153)]);this[_0x115d42(0x11f)](_0x256fdb[_0x115d42(0x124)][_0x115d42(0x14f)],_0x115d42(0x130),()=>{const _0x4970e8=_0x115d42;if(this[_0x4970e8(0x161)])return;for(const {name:_0x481aeb,data:{newRange:_0x4c825a}}of _0x256fdb[_0x4970e8(0x124)][_0x4970e8(0x14f)][_0x4970e8(0x151)][_0x4970e8(0x148)]())if(_0x481aeb[_0x4970e8(0x15b)](_0x4970e8(0x13c))&&(_0x4c825a&&(_0x4c825a[_0x4970e8(0x13e)][_0x4970e8(0x113)](_0x4c825a[_0x4970e8(0x102)])||_0x4970e8(0x13b)==_0x4c825a[_0x4970e8(0x160)][_0x4970e8(0x137)])||null==_0x4c825a)){const _0x4924e7=_0x24bc97(this[_0x4970e8(0x153)][_0x4970e8(0x126)],_0x4970e8(0x11c));this[_0x4970e8(0x10a)][_0x4970e8(0xf9)](_0x4924e7),this[_0x4970e8(0x155)](_0x4970e8(0x12d));}});}[_0x2c3ce1(0x104)](){const _0x553a2f=_0x2c3ce1,_0x32bce2=_0x498fab(this[_0x553a2f(0x153)]);this[_0x553a2f(0x13d)](_0x32bce2[_0x553a2f(0x124)][_0x553a2f(0x14f)]);}[_0x2c3ce1(0x119)](){const _0x31838c=_0x2c3ce1,_0x3ce29e=_0x498fab(this[_0x31838c(0x153)]);return _0x5b74de(_0x3ce29e[_0x31838c(0x15f)],[..._0x3ce29e[_0x31838c(0x124)][_0x31838c(0x162)][_0x31838c(0x10f)](_0x31838c(0x158)),..._0x3ce29e[_0x31838c(0x124)][_0x31838c(0x162)][_0x31838c(0x10f)](_0x31838c(0x135))]);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x1270(_0x2450cf,_0x2b21c9){var _0x418d3d=_0x418d();return _0x1270=function(_0x127064,_0x1b965d){_0x127064=_0x127064-0x162;var _0x1871b2=_0x418d3d[_0x127064];return _0x1871b2;},_0x1270(_0x2450cf,_0x2b21c9);}(function(_0x17c9a4,_0x2c9b2f){var _0x211cc2=_0x1270,_0x4e1922=_0x17c9a4();while(!![]){try{var _0x34172c=parseInt(_0x211cc2(0x170))/0x1*(parseInt(_0x211cc2(0x171))/0x2)+-parseInt(_0x211cc2(0x169))/0x3*(-parseInt(_0x211cc2(0x165))/0x4)+-parseInt(_0x211cc2(0x16a))/0x5*(parseInt(_0x211cc2(0x164))/0x6)+parseInt(_0x211cc2(0x167))/0x7+-parseInt(_0x211cc2(0x16b))/0x8*(parseInt(_0x211cc2(0x16d))/0x9)+parseInt(_0x211cc2(0x162))/0xa*(parseInt(_0x211cc2(0x166))/0xb)+-parseInt(_0x211cc2(0x16c))/0xc;if(_0x34172c===_0x2c9b2f)break;else _0x4e1922['push'](_0x4e1922['shift']());}catch(_0x10acaa){_0x4e1922['push'](_0x4e1922['shift']());}}}(_0x418d,0xa0df2));function _0x418d(){var _0x22969a=['AI_DISCLAIMER_TEXT','ck-ai-balloon__disclaimer','20694KAsFTZ','74tLLmHy','setTemplate','411860emRpSr','ck-ai-balloon__disclaimer-content','186WWVmjn','76aXSIgH','77QNAFrB','7608034dGMxBi','div','184089nnlvWv','188785FjzpOK','8hlylmm','10750608BsSJAN','5233122Xmwrsp'];_0x418d=function(){return _0x22969a;};return _0x418d();}import{View as _0xb8ee84}from'ckeditor5/src/ui.js';import{getTranslation as _0x3b0ef3}from'../../aicore/utils/common-translations.js';export class AIBalloonDisclaimerView extends _0xb8ee84{constructor(_0x81118f){var _0x1cd55d=_0x1270;super(_0x81118f),this[_0x1cd55d(0x172)]({'tag':_0x1cd55d(0x168),'attributes':{'class':['ck',_0x1cd55d(0x16f)]},'children':[{'tag':'p','attributes':{'class':['ck',_0x1cd55d(0x163)]},'children':[{'text':_0x3b0ef3(_0x81118f,_0x1cd55d(0x16e))}]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x13e2aa=_0x1859;(function(_0x200112,_0x264e2c){const _0x15af10=_0x1859,_0xe96764=_0x200112();while(!![]){try{const _0x55c7f7=parseInt(_0x15af10(0xe8))/0x1*(-parseInt(_0x15af10(0xf9))/0x2)+-parseInt(_0x15af10(0xf3))/0x3*(-parseInt(_0x15af10(0xec))/0x4)+parseInt(_0x15af10(0xe9))/0x5*(parseInt(_0x15af10(0xea))/0x6)+parseInt(_0x15af10(0xfa))/0x7+parseInt(_0x15af10(0xed))/0x8+-parseInt(_0x15af10(0xf7))/0x9*(-parseInt(_0x15af10(0xee))/0xa)+-parseInt(_0x15af10(0xf0))/0xb*(parseInt(_0x15af10(0x100))/0xc);if(_0x55c7f7===_0x264e2c)break;else _0xe96764['push'](_0xe96764['shift']());}catch(_0x3904b5){_0xe96764['push'](_0xe96764['shift']());}}}(_0x1d73,0xef90e));function _0x1859(_0x19411d,_0x4ee685){const _0x1d7373=_0x1d73();return _0x1859=function(_0x18596e,_0xd83ce4){_0x18596e=_0x18596e-0xe6;let _0x551d82=_0x1d7373[_0x18596e];return _0x551d82;},_0x1859(_0x19411d,_0x4ee685);}import{ToolbarView as _0x473848,ButtonView as _0x43801b}from'ckeditor5/src/ui.js';import{getTranslation as _0xe7f68c}from'../../aicore/utils/common-translations.js';export class AIBalloonToolbarView extends _0x473848{constructor(_0x1bdb08,_0x5cea67=!0x0,_0x21287b=!0x0){const _0x4ddb8e=_0x1859;super(_0x1bdb08),this[_0x4ddb8e(0xfc)](_0x4ddb8e(0xf4),!0x1),_0x5cea67&&(this[_0x4ddb8e(0xef)]=this[_0x4ddb8e(0xe6)](_0xe7f68c(_0x1bdb08,_0x4ddb8e(0xf1)),_0x4ddb8e(0xfd)),this[_0x4ddb8e(0xef)][_0x4ddb8e(0xfb)](_0x4ddb8e(0xeb))['to'](this,_0x4ddb8e(0xf4),_0x520145=>!_0x520145),this[_0x4ddb8e(0xf5)][_0x4ddb8e(0xf2)](this[_0x4ddb8e(0xef)])),_0x21287b&&(this[_0x4ddb8e(0xf6)]=this[_0x4ddb8e(0xe6)](_0xe7f68c(_0x1bdb08,_0x4ddb8e(0xe7)),_0x5cea67?_0x4ddb8e(0xff):_0x4ddb8e(0xfd)),this[_0x4ddb8e(0xf6)][_0x4ddb8e(0xfb)](_0x4ddb8e(0xeb))['to'](this,_0x4ddb8e(0xf4),_0x186154=>!_0x186154),this[_0x4ddb8e(0xf5)][_0x4ddb8e(0xf2)](this[_0x4ddb8e(0xf6)])),this[_0x4ddb8e(0xfe)]({'attributes':{'class':[_0x4ddb8e(0x101)]}});}[_0x13e2aa(0xe6)](_0x15109c,_0x11d02d){const _0x2cc8e0=_0x13e2aa,_0x180237=new _0x43801b(this[_0x2cc8e0(0xf8)]);return _0x180237[_0x2cc8e0(0xfc)]({'label':_0x15109c,'class':_0x11d02d||'','isVisible':!0x0,'withText':!0x0}),_0x180237;}}function _0x1d73(){const _0x4e5e2a=['548414lwWjOu','9840481leVikk','bind','set','ck-ai-button-primary','extendTemplate','ck-ai-button-secondary','12EGETrF','ck-ai-balloon__toolbar','_createButton','AI_BALLOON_SUGGEST_BUTTON','3jCUixi','68205wCGVJb','606OXZgXp','isEnabled','34792tsJsPB','4598032BgtAIx','6980bMvykJ','applyButton','41983689EABoUN','AI_BALLOON_APPLY_BUTTON','add','417yAKDcy','isLoading','items','suggestButton','13581OJujDA','locale'];_0x1d73=function(){return _0x4e5e2a;};return _0x1d73();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x4f4e8c=_0x22e0;(function(_0x2594db,_0x574ef6){const _0x25ab06=_0x22e0,_0x3f9820=_0x2594db();while(!![]){try{const _0x3b1b44=parseInt(_0x25ab06(0x14d))/0x1*(-parseInt(_0x25ab06(0x105))/0x2)+parseInt(_0x25ab06(0x109))/0x3*(-parseInt(_0x25ab06(0x12e))/0x4)+-parseInt(_0x25ab06(0x146))/0x5*(parseInt(_0x25ab06(0x136))/0x6)+parseInt(_0x25ab06(0x114))/0x7+-parseInt(_0x25ab06(0x150))/0x8+-parseInt(_0x25ab06(0x11a))/0x9+parseInt(_0x25ab06(0x104))/0xa;if(_0x3b1b44===_0x574ef6)break;else _0x3f9820['push'](_0x3f9820['shift']());}catch(_0x9a594d){_0x3f9820['push'](_0x3f9820['shift']());}}}(_0xd297,0x2c259));import{ButtonView as _0x207b36,View as _0x26e886,ViewCollection as _0x3d4665,FocusCycler as _0x476b64}from'ckeditor5/src/ui.js';import{FocusTracker as _0x506210,KeystrokeHandler as _0x1f8876}from'ckeditor5/src/utils.js';import{IconNextArrow as _0x2cb856,IconPreviousArrow as _0x971782}from'@ckeditor/ckeditor5-icons';import{AIBalloonToolbarView as _0x15ff4a}from'./aiballoontoolbarview.js';import{AIBalloonDisclaimerView as _0x1a142f}from'./aiballoondisclaimerview.js';function _0x22e0(_0x50fb54,_0x299ce7){const _0xd29796=_0xd297();return _0x22e0=function(_0x22e09c,_0x3d8831){_0x22e09c=_0x22e09c-0xfd;let _0x2c8809=_0xd29796[_0x22e09c];return _0x2c8809;},_0x22e0(_0x50fb54,_0x299ce7);}import{getTranslation as _0x606807}from'../../aicore/utils/common-translations.js';import{ScrollManager as _0x444e3b}from'../../aicore/utils/scrollmanager.js';import{AISuggestionContainerView as _0x25824d}from'../../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';export const AI_BALLOON_VIEW_EVENT_NAMES=[_0x4f4e8c(0x143),_0x4f4e8c(0x12f),_0x4f4e8c(0x128),_0x4f4e8c(0x112)];export class AIBalloonView extends _0x26e886{[_0x4f4e8c(0x124)];[_0x4f4e8c(0x100)];[_0x4f4e8c(0x12a)];[_0x4f4e8c(0x125)];[_0x4f4e8c(0x10f)];[_0x4f4e8c(0x10e)];[_0x4f4e8c(0x14e)];constructor(_0x5b75a6,_0x42919d,_0x1ce13b,_0x311dcd){const _0x9cf667=_0x4f4e8c;super(_0x5b75a6),this[_0x9cf667(0x125)]=_0x1ce13b,this[_0x9cf667(0x122)](_0x9cf667(0x155),!0x1),this[_0x9cf667(0x122)](_0x9cf667(0xfe),_0x311dcd),this[_0x9cf667(0x122)](_0x9cf667(0x131),!0x1),this[_0x9cf667(0x122)](_0x9cf667(0x11f),''),this[_0x9cf667(0x124)]=new _0x506210(),this[_0x9cf667(0x100)]=new _0x1f8876(),this[_0x9cf667(0x10f)]=this[_0x9cf667(0x14f)](),this[_0x9cf667(0x12a)]=new _0x476b64({'focusables':this[_0x9cf667(0x10f)],'focusTracker':this[_0x9cf667(0x124)],'keystrokeHandler':this[_0x9cf667(0x100)],'actions':{'focusPrevious':_0x9cf667(0x11b),'focusNext':_0x9cf667(0x120)}}),this[_0x9cf667(0x12c)]=new _0x3d4665(),this[_0x9cf667(0x129)](_0x42919d[_0x9cf667(0xfd)]),this[_0x9cf667(0x157)](),this[_0x9cf667(0x13d)](_0x42919d[_0x9cf667(0x101)],_0x42919d[_0x9cf667(0x144)]),this[_0x9cf667(0x151)][_0x9cf667(0x130)](_0x9cf667(0x155))['to'](this),this[_0x9cf667(0x10f)][_0x9cf667(0x110)](),this[_0x9cf667(0x10f)][_0x9cf667(0x156)]([this[_0x9cf667(0x151)]]),this[_0x9cf667(0x103)]({'tag':_0x9cf667(0x12d),'attributes':{'class':_0x9cf667(0x10c)},'children':this[_0x9cf667(0x12c)]}),this['on'](_0x9cf667(0x113),()=>{const _0xac6694=_0x9cf667;this[_0xac6694(0x12c)][_0xac6694(0x126)](this[_0xac6694(0x151)]),this[_0xac6694(0x13d)](_0x42919d[_0xac6694(0x101)],_0x42919d[_0xac6694(0x144)]);});}[_0x4f4e8c(0x11d)](){const _0x19f4b7=_0x4f4e8c;super[_0x19f4b7(0x11d)]();for(const _0x54bac2 of this[_0x19f4b7(0x10f)])this[_0x19f4b7(0x124)][_0x19f4b7(0x140)](_0x54bac2[_0x19f4b7(0x134)]);this[_0x19f4b7(0x100)][_0x19f4b7(0x149)](this[_0x19f4b7(0x134)]),this[_0x19f4b7(0x121)]();}[_0x4f4e8c(0x133)](){const _0x18de9c=_0x4f4e8c;super[_0x18de9c(0x133)](),this[_0x18de9c(0x14e)]&&this[_0x18de9c(0x14e)][_0x18de9c(0x133)]();}[_0x4f4e8c(0x148)](_0x55659c){const _0x5816cf=_0x4f4e8c;-0x1===_0x55659c?this[_0x5816cf(0x12a)][_0x5816cf(0x13a)]():this[_0x5816cf(0x12a)][_0x5816cf(0x108)]();}[_0x4f4e8c(0x10b)](){const _0x36e86f=_0x4f4e8c;this[_0x36e86f(0x155)]=!0x0;}[_0x4f4e8c(0x111)](){const _0x5a1238=_0x4f4e8c;this[_0x5a1238(0x155)]=!0x1;}[_0x4f4e8c(0x158)](_0x51cf03){const _0x3a151f=_0x4f4e8c;this[_0x3a151f(0x10e)]||(this[_0x3a151f(0x10e)]=this[_0x3a151f(0x154)](),this[_0x3a151f(0x12c)][_0x3a151f(0x156)]([this[_0x3a151f(0x10e)]],0x0)),this[_0x3a151f(0x11f)]=_0x51cf03,this[_0x3a151f(0x131)]=!0x0;}[_0x4f4e8c(0x147)](){const _0x13a76a=_0x4f4e8c;this[_0x13a76a(0x131)]=!0x1;}[_0x4f4e8c(0x127)](_0x23fa9f){const _0x114cd5=_0x4f4e8c;this[_0x114cd5(0x158)](_0x23fa9f);}[_0x4f4e8c(0x142)](_0x3d82f1){const _0x43b559=_0x4f4e8c;this[_0x43b559(0x158)](_0x3d82f1),this[_0x43b559(0x151)]&&(this[_0x43b559(0x151)][_0x43b559(0x138)]&&(this[_0x43b559(0x151)][_0x43b559(0x138)][_0x43b559(0x123)]=!0x1),this[_0x43b559(0x151)][_0x43b559(0x13c)]&&(this[_0x43b559(0x151)][_0x43b559(0x13c)][_0x43b559(0x123)]=!0x1));}[_0x4f4e8c(0x102)](_0x1524f4){const _0x296bf2=_0x4f4e8c,_0x276fef=this[_0x296bf2(0x152)](),_0x4ab3f6=this[_0x296bf2(0x153)]();_0x1524f4[_0x296bf2(0x116)][_0x296bf2(0x12b)][_0x296bf2(0x141)][_0x296bf2(0x140)](_0x276fef,0x2),_0x1524f4[_0x296bf2(0x116)][_0x296bf2(0x12b)][_0x296bf2(0x141)][_0x296bf2(0x140)](_0x4ab3f6,0x0),this[_0x296bf2(0x10f)][_0x296bf2(0x156)]([_0x276fef,_0x4ab3f6]),this[_0x296bf2(0x124)][_0x296bf2(0x140)](_0x276fef[_0x296bf2(0x134)]),this[_0x296bf2(0x124)][_0x296bf2(0x140)](_0x4ab3f6[_0x296bf2(0x134)]);}[_0x4f4e8c(0x129)](_0x99dd8e){const _0x290fd1=_0x4f4e8c;this[_0x290fd1(0x13b)]=_0x99dd8e,this[_0x290fd1(0x12c)][_0x290fd1(0x140)](this[_0x290fd1(0x13b)]);}[_0x4f4e8c(0x145)](_0xcfe8d3){const _0x578c58=_0x4f4e8c,_0x46c6f5=this[_0x578c58(0x12c)][_0x578c58(0x11e)](this[_0x578c58(0x13b)]);this[_0x578c58(0x12c)][_0x578c58(0x126)](this[_0x578c58(0x13b)]),this[_0x578c58(0x13b)]=_0xcfe8d3,this[_0x578c58(0x12c)][_0x578c58(0x140)](this[_0x578c58(0x13b)],_0x46c6f5),this[_0x578c58(0x147)](),this[_0x578c58(0x14e)]&&this[_0x578c58(0x14e)][_0x578c58(0x133)](),this[_0x578c58(0x121)]();}[_0x4f4e8c(0x157)](){const _0x128b55=_0x4f4e8c;this[_0x128b55(0x118)]=new _0x1a142f(this[_0x128b55(0x137)]),this[_0x128b55(0x12c)][_0x128b55(0x140)](this[_0x128b55(0x118)]);}[_0x4f4e8c(0x13d)](_0xa0a719=!0x0,_0x1468ac=!0x0){const _0xc676c9=_0x4f4e8c;_0xa0a719=_0xa0a719&&!this[_0xc676c9(0xfe)]&&this[_0xc676c9(0x125)][_0xc676c9(0x10d)](_0xc676c9(0x143)),_0x1468ac=_0x1468ac&&this[_0xc676c9(0x125)][_0xc676c9(0x10d)](_0xc676c9(0x12f)),this[_0xc676c9(0x151)]=new _0x15ff4a(this[_0xc676c9(0x137)],_0xa0a719,_0x1468ac),this[_0xc676c9(0x151)][_0xc676c9(0x138)]?.['on'](_0xc676c9(0x139),()=>{const _0x3bb750=_0xc676c9;this[_0x3bb750(0x14b)](_0x3bb750(0x143));}),this[_0xc676c9(0x151)][_0xc676c9(0x13c)]?.['on'](_0xc676c9(0x139),()=>{const _0x291324=_0xc676c9;this[_0x291324(0x14b)](_0x291324(0x12f));}),this[_0xc676c9(0x12c)][_0xc676c9(0x140)](this[_0xc676c9(0x151)]);}[_0x4f4e8c(0x152)](){const _0x58271b=_0x4f4e8c,_0x45b247=new _0x207b36(this[_0x58271b(0x137)]);return _0x45b247[_0x58271b(0x122)]({'icon':_0x2cb856,'tooltip':_0x606807(this[_0x58271b(0x137)],_0x58271b(0x115))}),_0x45b247['on'](_0x58271b(0x139),()=>{const _0x1a842a=_0x58271b;this[_0x1a842a(0x14b)](_0x1a842a(0x128));}),_0x45b247;}[_0x4f4e8c(0x153)](){const _0x2ebd72=_0x4f4e8c,_0x27b054=new _0x207b36(this[_0x2ebd72(0x137)]);return _0x27b054[_0x2ebd72(0x122)]({'icon':_0x971782,'tooltip':_0x606807(this[_0x2ebd72(0x137)],_0x2ebd72(0x119))}),_0x27b054['on'](_0x2ebd72(0x139),()=>{const _0x16f538=_0x2ebd72;this[_0x16f538(0x14b)](_0x16f538(0x112));}),_0x27b054;}[_0x4f4e8c(0x154)](){const _0x393353=_0x4f4e8c,_0x591e19=new _0x26e886(this[_0x393353(0x137)]),_0x191119=new _0x26e886(this[_0x393353(0x137)]);return _0x191119[_0x393353(0x103)]({'tag':_0x393353(0x132),'attributes':{'class':['ck',_0x393353(0x107)]},'children':[{'text':this[_0x393353(0x10a)]['to'](_0x393353(0x11f))}]}),_0x591e19[_0x393353(0x103)]({'tag':_0x393353(0x12d),'attributes':{'class':['ck',_0x393353(0x135),_0x393353(0x13f),this[_0x393353(0x10a)]['if'](_0x393353(0x131),_0x393353(0x11c),_0x40e7a9=>!_0x40e7a9)]},'children':[_0x191119]}),_0x591e19;}[_0x4f4e8c(0x117)](){const _0x53176d=_0x4f4e8c;this[_0x53176d(0x121)](),this[_0x53176d(0x14e)]&&this[_0x53176d(0x14e)][_0x53176d(0x14c)]();}[_0x4f4e8c(0xff)](){const _0x3f7283=_0x4f4e8c;this[_0x3f7283(0x14e)]&&this[_0x3f7283(0x14e)][_0x3f7283(0x106)]();}[_0x4f4e8c(0x121)](){const _0x5c70a4=_0x4f4e8c,_0x22023e=this[_0x5c70a4(0x14a)]();_0x22023e&&!this[_0x5c70a4(0x14e)]&&(this[_0x5c70a4(0x14e)]=new _0x444e3b(_0x22023e));}[_0x4f4e8c(0x14a)](){const _0x4e71bc=_0x4f4e8c;return this[_0x4e71bc(0x13b)]instanceof _0x25824d&&this[_0x4e71bc(0x13b)][_0x4e71bc(0x13e)][_0x4e71bc(0x134)]?this[_0x4e71bc(0x13b)][_0x4e71bc(0x13e)][_0x4e71bc(0x134)]:null;}}function _0xd297(){const _0x58eec0=['10CJGSSY','hideError','focus','listenTo','_getScrollableElement','fire','start','183yNGMTL','scrollManager','createCollection','415576wNgrpl','toolbar','_createNextButtonView','_createPreviousButtonView','_createErrorView','isLoading','addMany','_addDisclaimerView','showError','mainView','isTrackChangesOn','stopAutoScroll','keystrokes','showApplyButton','setupRotator','setTemplate','8037410ZAfaqY','2012OqUkWR','stop','ck-ai-suggestion__error-text','focusFirst','170025qXdUuY','bindTemplate','setLoading','ai-balloon-content','includes','_errorView','_focusables','clear','clearLoading','showPrevious','change:isTrackChangesOn','1323553LOIqlE','AI_BALLOON_NEXT_TOOLTIP','view','startAutoScroll','disclaimerView','AI_BALLOON_PREVIOUS_TOOLTIP','2249856qSrVSG','shift\x20+\x20tab','ck-hidden','render','getIndex','errorMessage','tab','_initializeScrollManager','set','isEnabled','focusTracker','_availableActions','remove','showRecoverableError','showNext','_addContentView','focusCycler','headerView','_dialogContent','div','8vrAiNt','insertSuggestion','bind','isErrorVisible','span','destroy','element','ck-ai-suggestion__error','637848LEVqNn','locale','applyButton','execute','focusLast','_mainView','suggestButton','_addToolbar','bodyView','ai-balloon-error','add','children','showBlockingError','applySuggestion','showSuggestButton','updateContent'];_0xd297=function(){return _0x58eec0;};return _0xd297();}
|
|
23
|
+
function _0x3242(_0x13aad0,_0x4f6e05){const _0x19b780=_0x19b7();return _0x3242=function(_0x3242a5,_0x52e486){_0x3242a5=_0x3242a5-0x6b;let _0xff5a22=_0x19b780[_0x3242a5];return _0xff5a22;},_0x3242(_0x13aad0,_0x4f6e05);}const _0x482c40=_0x3242;(function(_0x34e323,_0x12bcaa){const _0x1e462c=_0x3242,_0x18d665=_0x34e323();while(!![]){try{const _0x50f6db=parseInt(_0x1e462c(0xbe))/0x1+-parseInt(_0x1e462c(0x9a))/0x2*(-parseInt(_0x1e462c(0x8b))/0x3)+-parseInt(_0x1e462c(0xad))/0x4*(parseInt(_0x1e462c(0x93))/0x5)+parseInt(_0x1e462c(0x83))/0x6*(parseInt(_0x1e462c(0xb7))/0x7)+parseInt(_0x1e462c(0xc6))/0x8*(parseInt(_0x1e462c(0xab))/0x9)+parseInt(_0x1e462c(0x6b))/0xa+-parseInt(_0x1e462c(0x87))/0xb*(parseInt(_0x1e462c(0x7e))/0xc);if(_0x50f6db===_0x12bcaa)break;else _0x18d665['push'](_0x18d665['shift']());}catch(_0x439411){_0x18d665['push'](_0x18d665['shift']());}}}(_0x19b7,0xf2d8c));function _0x19b7(){const _0x12d095=['10332BlFMey','insertSuggestion','stopAutoScroll','AI_BALLOON_NEXT_TOOLTIP','isErrorVisible','222hXEkIB','_getScrollableElement','start','bodyView','37598RBaIKI','createCollection','view','destroy','12399ThbrZi','_addContentView','clear','set','startAutoScroll','AI_BALLOON_PREVIOUS_TOOLTIP','_errorView','showRecoverableError','60DCiKUf','setLoading','isTrackChangesOn','focusCycler','ck-hidden','change:isTrackChangesOn','clearLoading','418gQDXKP','stop','applyButton','keystrokes','showBlockingError','focus','setupRotator','_dialogContent','ck-ai-suggestion__error-text','remove','add','_addToolbar','suggestButton','div','_createNextButtonView','_createErrorView','showPrevious','16173DSroNl','children','213232gETjyT','addMany','isLoading','locale','getIndex','_initializeScrollManager','element','errorMessage','hideError','mainView','344365uTzajX','headerView','applySuggestion','scrollManager','ai-balloon-content','_availableActions','isEnabled','599116ouUsve','bindTemplate','setTemplate','execute','focusTracker','listenTo','_mainView','_addDisclaimerView','2872QpleTw','render','showApplyButton','6490430jzVSxk','ai-balloon-error','bind','showSuggestButton','includes','tab','toolbar','focusFirst','updateContent','disclaimerView','showNext','focusLast','showError','_focusables','fire','_createPreviousButtonView','span','shift\x20+\x20tab','ck-ai-suggestion__error'];_0x19b7=function(){return _0x12d095;};return _0x19b7();}import{ButtonView as _0x7d3814,View as _0x5ed552,ViewCollection as _0x24b545,FocusCycler as _0x1113e0}from'ckeditor5/src/ui.js';import{FocusTracker as _0x1b84ff,KeystrokeHandler as _0x3985f1}from'ckeditor5/src/utils.js';import{IconNextArrow as _0x1c0761,IconPreviousArrow as _0x3bad8c}from'@ckeditor/ckeditor5-icons';import{AIBalloonToolbarView as _0x29622d}from'./aiballoontoolbarview.js';import{AIBalloonDisclaimerView as _0x39ebb7}from'./aiballoondisclaimerview.js';import{getTranslation as _0x4aebde}from'../../aicore/utils/common-translations.js';import{ScrollManager as _0x39c572}from'../../aicore/utils/scrollmanager.js';import{AISuggestionContainerView as _0x3c9056}from'../../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';export const AI_BALLOON_VIEW_EVENT_NAMES=[_0x482c40(0xb9),_0x482c40(0x7f),_0x482c40(0x75),_0x482c40(0xaa)];export class AIBalloonView extends _0x5ed552{[_0x482c40(0xc2)];[_0x482c40(0x9d)];[_0x482c40(0x96)];[_0x482c40(0xbc)];[_0x482c40(0x78)];[_0x482c40(0x91)];[_0x482c40(0xba)];constructor(_0x35c24d,_0x1b7625,_0x3f831c,_0x1492e2){const _0x1534b0=_0x482c40;super(_0x35c24d),this[_0x1534b0(0xbc)]=_0x3f831c,this[_0x1534b0(0x8e)](_0x1534b0(0xaf),!0x1),this[_0x1534b0(0x8e)](_0x1534b0(0x95),_0x1492e2),this[_0x1534b0(0x8e)](_0x1534b0(0x82),!0x1),this[_0x1534b0(0x8e)](_0x1534b0(0xb4),''),this[_0x1534b0(0xc2)]=new _0x1b84ff(),this[_0x1534b0(0x9d)]=new _0x3985f1(),this[_0x1534b0(0x78)]=this[_0x1534b0(0x88)](),this[_0x1534b0(0x96)]=new _0x1113e0({'focusables':this[_0x1534b0(0x78)],'focusTracker':this[_0x1534b0(0xc2)],'keystrokeHandler':this[_0x1534b0(0x9d)],'actions':{'focusPrevious':_0x1534b0(0x7c),'focusNext':_0x1534b0(0x70)}}),this[_0x1534b0(0xa1)]=new _0x24b545(),this[_0x1534b0(0x8c)](_0x1b7625[_0x1534b0(0xb6)]),this[_0x1534b0(0xc5)](),this[_0x1534b0(0xa5)](_0x1b7625[_0x1534b0(0xc8)],_0x1b7625[_0x1534b0(0x6e)]),this[_0x1534b0(0x71)][_0x1534b0(0x6d)](_0x1534b0(0xaf))['to'](this),this[_0x1534b0(0x78)][_0x1534b0(0x8d)](),this[_0x1534b0(0x78)][_0x1534b0(0xae)]([this[_0x1534b0(0x71)]]),this[_0x1534b0(0xc0)]({'tag':_0x1534b0(0xa7),'attributes':{'class':_0x1534b0(0xbb)},'children':this[_0x1534b0(0xa1)]}),this['on'](_0x1534b0(0x98),()=>{const _0x201c35=_0x1534b0;this[_0x201c35(0xa1)][_0x201c35(0xa3)](this[_0x201c35(0x71)]),this[_0x201c35(0xa5)](_0x1b7625[_0x201c35(0xc8)],_0x1b7625[_0x201c35(0x6e)]);});}[_0x482c40(0xc7)](){const _0x56e548=_0x482c40;super[_0x56e548(0xc7)]();for(const _0x40974b of this[_0x56e548(0x78)])this[_0x56e548(0xc2)][_0x56e548(0xa4)](_0x40974b[_0x56e548(0xb3)]);this[_0x56e548(0x9d)][_0x56e548(0xc3)](this[_0x56e548(0xb3)]),this[_0x56e548(0xb2)]();}[_0x482c40(0x8a)](){const _0x7076db=_0x482c40;super[_0x7076db(0x8a)](),this[_0x7076db(0xba)]&&this[_0x7076db(0xba)][_0x7076db(0x8a)]();}[_0x482c40(0x9f)](_0x8177a2){const _0x1f75be=_0x482c40;-0x1===_0x8177a2?this[_0x1f75be(0x96)][_0x1f75be(0x76)]():this[_0x1f75be(0x96)][_0x1f75be(0x72)]();}[_0x482c40(0x94)](){const _0x2194d4=_0x482c40;this[_0x2194d4(0xaf)]=!0x0;}[_0x482c40(0x99)](){const _0xc03a55=_0x482c40;this[_0xc03a55(0xaf)]=!0x1;}[_0x482c40(0x77)](_0x26e84e){const _0x585c1d=_0x482c40;this[_0x585c1d(0x91)]||(this[_0x585c1d(0x91)]=this[_0x585c1d(0xa9)](),this[_0x585c1d(0xa1)][_0x585c1d(0xae)]([this[_0x585c1d(0x91)]],0x0)),this[_0x585c1d(0xb4)]=_0x26e84e,this[_0x585c1d(0x82)]=!0x0;}[_0x482c40(0xb5)](){const _0x38718a=_0x482c40;this[_0x38718a(0x82)]=!0x1;}[_0x482c40(0x92)](_0x4a547d){const _0x29432d=_0x482c40;this[_0x29432d(0x77)](_0x4a547d);}[_0x482c40(0x9e)](_0x18d3b9){const _0x1efc02=_0x482c40;this[_0x1efc02(0x77)](_0x18d3b9),this[_0x1efc02(0x71)]&&(this[_0x1efc02(0x71)][_0x1efc02(0x9c)]&&(this[_0x1efc02(0x71)][_0x1efc02(0x9c)][_0x1efc02(0xbd)]=!0x1),this[_0x1efc02(0x71)][_0x1efc02(0xa6)]&&(this[_0x1efc02(0x71)][_0x1efc02(0xa6)][_0x1efc02(0xbd)]=!0x1));}[_0x482c40(0xa0)](_0x52534c){const _0x54e3e2=_0x482c40,_0x4b77ce=this[_0x54e3e2(0xa8)](),_0x556b20=this[_0x54e3e2(0x7a)]();_0x52534c[_0x54e3e2(0x89)][_0x54e3e2(0xb8)][_0x54e3e2(0xac)][_0x54e3e2(0xa4)](_0x4b77ce,0x2),_0x52534c[_0x54e3e2(0x89)][_0x54e3e2(0xb8)][_0x54e3e2(0xac)][_0x54e3e2(0xa4)](_0x556b20,0x0),this[_0x54e3e2(0x78)][_0x54e3e2(0xae)]([_0x4b77ce,_0x556b20]),this[_0x54e3e2(0xc2)][_0x54e3e2(0xa4)](_0x4b77ce[_0x54e3e2(0xb3)]),this[_0x54e3e2(0xc2)][_0x54e3e2(0xa4)](_0x556b20[_0x54e3e2(0xb3)]);}[_0x482c40(0x8c)](_0x481fcb){const _0x3bbb9c=_0x482c40;this[_0x3bbb9c(0xc4)]=_0x481fcb,this[_0x3bbb9c(0xa1)][_0x3bbb9c(0xa4)](this[_0x3bbb9c(0xc4)]);}[_0x482c40(0x73)](_0x44c253){const _0x427cef=_0x482c40,_0x4d874=this[_0x427cef(0xa1)][_0x427cef(0xb1)](this[_0x427cef(0xc4)]);this[_0x427cef(0xa1)][_0x427cef(0xa3)](this[_0x427cef(0xc4)]),this[_0x427cef(0xc4)]=_0x44c253,this[_0x427cef(0xa1)][_0x427cef(0xa4)](this[_0x427cef(0xc4)],_0x4d874),this[_0x427cef(0xb5)](),this[_0x427cef(0xba)]&&this[_0x427cef(0xba)][_0x427cef(0x8a)](),this[_0x427cef(0xb2)]();}[_0x482c40(0xc5)](){const _0x3d01ac=_0x482c40;this[_0x3d01ac(0x74)]=new _0x39ebb7(this[_0x3d01ac(0xb0)]),this[_0x3d01ac(0xa1)][_0x3d01ac(0xa4)](this[_0x3d01ac(0x74)]);}[_0x482c40(0xa5)](_0x1f16df=!0x0,_0x426be1=!0x0){const _0x5eb897=_0x482c40;_0x1f16df=_0x1f16df&&!this[_0x5eb897(0x95)]&&this[_0x5eb897(0xbc)][_0x5eb897(0x6f)](_0x5eb897(0xb9)),_0x426be1=_0x426be1&&this[_0x5eb897(0xbc)][_0x5eb897(0x6f)](_0x5eb897(0x7f)),this[_0x5eb897(0x71)]=new _0x29622d(this[_0x5eb897(0xb0)],_0x1f16df,_0x426be1),this[_0x5eb897(0x71)][_0x5eb897(0x9c)]?.['on'](_0x5eb897(0xc1),()=>{const _0x503bd3=_0x5eb897;this[_0x503bd3(0x79)](_0x503bd3(0xb9));}),this[_0x5eb897(0x71)][_0x5eb897(0xa6)]?.['on'](_0x5eb897(0xc1),()=>{const _0x37217d=_0x5eb897;this[_0x37217d(0x79)](_0x37217d(0x7f));}),this[_0x5eb897(0xa1)][_0x5eb897(0xa4)](this[_0x5eb897(0x71)]);}[_0x482c40(0xa8)](){const _0x36c14f=_0x482c40,_0x5b4e34=new _0x7d3814(this[_0x36c14f(0xb0)]);return _0x5b4e34[_0x36c14f(0x8e)]({'icon':_0x1c0761,'tooltip':_0x4aebde(this[_0x36c14f(0xb0)],_0x36c14f(0x81))}),_0x5b4e34['on'](_0x36c14f(0xc1),()=>{const _0x10957c=_0x36c14f;this[_0x10957c(0x79)](_0x10957c(0x75));}),_0x5b4e34;}[_0x482c40(0x7a)](){const _0x174721=_0x482c40,_0x2944b2=new _0x7d3814(this[_0x174721(0xb0)]);return _0x2944b2[_0x174721(0x8e)]({'icon':_0x3bad8c,'tooltip':_0x4aebde(this[_0x174721(0xb0)],_0x174721(0x90))}),_0x2944b2['on'](_0x174721(0xc1),()=>{const _0x169f9e=_0x174721;this[_0x169f9e(0x79)](_0x169f9e(0xaa));}),_0x2944b2;}[_0x482c40(0xa9)](){const _0x3deb7d=_0x482c40,_0x1cbfd4=new _0x5ed552(this[_0x3deb7d(0xb0)]),_0x34a7a7=new _0x5ed552(this[_0x3deb7d(0xb0)]);return _0x34a7a7[_0x3deb7d(0xc0)]({'tag':_0x3deb7d(0x7b),'attributes':{'class':['ck',_0x3deb7d(0xa2)]},'children':[{'text':this[_0x3deb7d(0xbf)]['to'](_0x3deb7d(0xb4))}]}),_0x1cbfd4[_0x3deb7d(0xc0)]({'tag':_0x3deb7d(0xa7),'attributes':{'class':['ck',_0x3deb7d(0x7d),_0x3deb7d(0x6c),this[_0x3deb7d(0xbf)]['if'](_0x3deb7d(0x82),_0x3deb7d(0x97),_0x62180c=>!_0x62180c)]},'children':[_0x34a7a7]}),_0x1cbfd4;}[_0x482c40(0x8f)](){const _0x414a2a=_0x482c40;this[_0x414a2a(0xb2)](),this[_0x414a2a(0xba)]&&this[_0x414a2a(0xba)][_0x414a2a(0x85)]();}[_0x482c40(0x80)](){const _0x59ed08=_0x482c40;this[_0x59ed08(0xba)]&&this[_0x59ed08(0xba)][_0x59ed08(0x9b)]();}[_0x482c40(0xb2)](){const _0x4f0747=_0x482c40,_0x53894c=this[_0x4f0747(0x84)]();_0x53894c&&!this[_0x4f0747(0xba)]&&(this[_0x4f0747(0xba)]=new _0x39c572(_0x53894c));}[_0x482c40(0x84)](){const _0x2d65a9=_0x482c40;return this[_0x2d65a9(0xc4)]instanceof _0x3c9056&&this[_0x2d65a9(0xc4)][_0x2d65a9(0x86)][_0x2d65a9(0xb3)]?this[_0x2d65a9(0xc4)][_0x2d65a9(0x86)][_0x2d65a9(0xb3)]:null;}}
|
package/src/aichat/aichat.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x4945ac=_0x4b70;(function(_0x2ab75b,_0x59dfbf){var _0x1f7485=_0x4b70,_0x13b44c=_0x2ab75b();while(!![]){try{var _0x3ea00f=-parseInt(_0x1f7485(0xf6))/0x1+-parseInt(_0x1f7485(0xea))/0x2*(-parseInt(_0x1f7485(0xfc))/0x3)+parseInt(_0x1f7485(0xf8))/0x4+-parseInt(_0x1f7485(0xf3))/0x5+-parseInt(_0x1f7485(0xf5))/0x6*(parseInt(_0x1f7485(0xef))/0x7)+parseInt(_0x1f7485(0xf7))/0x8*(parseInt(_0x1f7485(0xf4))/0x9)+parseInt(_0x1f7485(0xf0))/0xa*(-parseInt(_0x1f7485(0xee))/0xb);if(_0x3ea00f===_0x59dfbf)break;else _0x13b44c['push'](_0x13b44c['shift']());}catch(_0x54a289){_0x13b44c['push'](_0x13b44c['shift']());}}}(_0x298b,0x620d7));function _0x298b(){var _0x3d7966=['AIChat','plugins','requires','sendMessage','ai.chat.models','2nSPAIN','config','pluginName','isOfficialPlugin','503129tqmSdn','721PboVXS','190zBQMzk','isPremiumPlugin','removeSelectionFromChatContext','693010trOzUG','9JascWa','3678JxOfvq','303226MEjxjD','5920280MUvCGS','1540596aDyzCQ','startConversation','define','focusPromptInput','1951341wclQBb','get','addSelectionToChatContext','ai.chat.context','context'];_0x298b=function(){return _0x3d7966;};return _0x298b();}function _0x4b70(_0xebcbb,_0x5f282e){var _0x298bf1=_0x298b();return _0x4b70=function(_0x4b704c,_0x59f03e){_0x4b704c=_0x4b704c-0xe6;var _0x308391=_0x298bf1[_0x4b704c];return _0x308391;},_0x4b70(_0xebcbb,_0x5f282e);}import{ContextPlugin as _0xfef4fb}from'ckeditor5/src/core.js';import{AIChatController as _0x4e4d5e}from'./aichatcontroller.js';import{AIEditing as _0x3368a1}from'../aicore/aiediting.js';import{AIChatUI as _0x42fcf5}from'./aichatui.js';import{AIChatHistory as _0x489b41}from'../aichathistory/aichathistory.js';export class AIChat extends _0xfef4fb{static get[_0x4945ac(0xe7)](){return[_0x4e4d5e,_0x3368a1,_0x42fcf5,_0x489b41];}static get[_0x4945ac(0xec)](){var _0x3cc056=_0x4945ac;return _0x3cc056(0x101);}static get[_0x4945ac(0xed)](){return!0x0;}static get[_0x4945ac(0xf1)](){return!0x0;}constructor(_0x34ce41){var _0x137190=_0x4945ac;super(_0x34ce41),this[_0x137190(0x100)][_0x137190(0xeb)][_0x137190(0xfa)](_0x137190(0xff),{'document':{'enabled':!0x0},'urls':{'enabled':!0x0},'files':{'enabled':!0x0},'sources':[]}),this[_0x137190(0x100)][_0x137190(0xeb)][_0x137190(0xfa)](_0x137190(0xe9),{'defaultModelId':void 0x0,'modelSelectorAlwaysVisible':!0x0,'displayedModels':void 0x0});}async[_0x4945ac(0xfe)](){var _0x4e2c2d=_0x4945ac;await this[_0x4e2c2d(0x100)][_0x4e2c2d(0xe6)][_0x4e2c2d(0xfd)](_0x4e4d5e)[_0x4e2c2d(0xfe)]();}async[_0x4945ac(0xf9)](){var _0x20d2f5=_0x4945ac;await this[_0x20d2f5(0x100)][_0x20d2f5(0xe6)][_0x20d2f5(0xfd)](_0x4e4d5e)[_0x20d2f5(0xf9)]();}async[_0x4945ac(0xe8)]({message:_0x259389,quickActionData:_0x59f17c}){var _0x3290a8=_0x4945ac;await this[_0x3290a8(0x100)][_0x3290a8(0xe6)][_0x3290a8(0xfd)](_0x4e4d5e)[_0x3290a8(0xe8)]({'message':_0x259389,'quickActionData':_0x59f17c});}[_0x4945ac(0xf2)](){var _0x561b26=_0x4945ac;this[_0x561b26(0x100)][_0x561b26(0xe6)][_0x561b26(0xfd)](_0x4e4d5e)[_0x561b26(0xf2)]();}[_0x4945ac(0xfb)](){var _0x1d5be2=_0x4945ac;this[_0x1d5be2(0x100)][_0x1d5be2(0xe6)][_0x1d5be2(0xfd)](_0x4e4d5e)[_0x1d5be2(0xfb)]();}}
|