@ckeditor/ckeditor5-ai 47.3.0-alpha.6 → 47.3.0-alpha.7
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
|
-
|
|
23
|
+
function _0x5832(){const _0x26fde8=['_promptHistory','focusFirst','reset','5836UZLqLA','copyButtonView','insertContentBelow','trim','fieldView','isVisible','clearHistory','stopButton','125121gcwWLD','handleError','text','tryAgainEvent','6590562IuXCIZ','290CqfiWa','submitPrompt','label','bindTemplate','ck-ai-form-content','focusLast','toolbar','value','bindTo','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','focusCycler','focus','shift\x20+\x20tab','136cpfXca','high','submit','AI_ERROR_FAILED','render','isProcessing','focusTracker','items','contentArea','replaceContent','stopProcessing','div','_createPromptView','126513njDHAw','historyGroupView','queryView','insertButton','promptView','prompt','element','11fAydmP','isError','chain','ck-ai-form','listenTo','createCollection','mainAction','32526492CSYwtW','keystrokes','bind','finishProcessing','locale','clear','3920CNBsWF','tab','Empty\x20history','set','startProcessing','58xqDDWp','execute','Ask\x20AI\x20to\x20improve\x20generated\x20text','delegate','_createToolbar','errorView','search','tryAgainButton','replaceButton','add','ck-hidden','isEnabled','setTemplate','REPLACE','fire','5005zLRpJx','_focusables','_createHistoryView','Ask\x20AI\x20to\x20edit\x20or\x20generate','1007800mLXmZk'];_0x5832=function(){return _0x26fde8;};return _0x5832();}const _0xcba551=_0x2186;(function(_0x5ea834,_0x2596ea){const _0x453932=_0x2186,_0x2b9fca=_0x5ea834();while(!![]){try{const _0xbdbc0=parseInt(_0x453932(0x150))/0x1*(parseInt(_0x453932(0x110))/0x2)+-parseInt(_0x453932(0x118))/0x3*(-parseInt(_0x453932(0x12a))/0x4)+parseInt(_0x453932(0x10c))/0x5+parseInt(_0x453932(0x11c))/0x6+-parseInt(_0x453932(0x108))/0x7*(-parseInt(_0x453932(0x14b))/0x8)+parseInt(_0x453932(0x137))/0x9*(parseInt(_0x453932(0x11d))/0xa)+-parseInt(_0x453932(0x13e))/0xb*(parseInt(_0x453932(0x145))/0xc);if(_0xbdbc0===_0x2596ea)break;else _0x2b9fca['push'](_0x2b9fca['shift']());}catch(_0x1d7d5d){_0x2b9fca['push'](_0x2b9fca['shift']());}}}(_0x5832,0xe434b));import{FocusTracker as _0x5d3b89,KeystrokeHandler as _0x56bc37}from'ckeditor5/src/utils.js';function _0x2186(_0x4308da,_0xac7971){const _0x583298=_0x5832();return _0x2186=function(_0x21866e,_0x55b97f){_0x21866e=_0x21866e-0xff;let _0x41db53=_0x583298[_0x21866e];return _0x41db53;},_0x2186(_0x4308da,_0xac7971);}import{View as _0x4a0e23,FocusCycler as _0x37f4de,createLabeledTextarea as _0x5f3aa8}from'ckeditor5/src/ui.js';import{AIFormToolbarView as _0x57e0a8,AIFormToolbarViewMainActionLabel as _0x48c077}from'./aiformtoolbarview.js';import{AIFormContentArea as _0x1e9a5c}from'./aiformcontentarea.js';import{AIFormErrorView as _0x17a7b0}from'./aiformerrorview.js';import{AIFormPromptView as _0x2db839}from'./aiformpromptview.js';import{AIHistoryListView as _0x501c1b}from'./aihistorylistview.js';import{AIHistoryListItemView as _0x1ede23}from'./aihistorylistitemview.js';import{PromptHistory as _0x13cf34}from'./prompthistory.js';import{getTranslation as _0x597c30}from'../../utils/common-translations.js';import{escape as _0x2d7dd9}from'es-toolkit/compat';export class AIFormView extends _0x4a0e23{[_0xcba551(0x130)];[_0xcba551(0x146)];[_0xcba551(0x132)];[_0xcba551(0x123)];[_0xcba551(0x13b)];[_0xcba551(0x155)];[_0xcba551(0x109)];[_0xcba551(0x127)];[_0xcba551(0x10d)];constructor(_0x3ce07e,_0x2beebe,_0x42f47b=''){const _0xc8eada=_0xcba551;super(_0x3ce07e),this[_0xc8eada(0x14e)](_0xc8eada(0x104),!0x0),this[_0xc8eada(0x14e)](_0xc8eada(0x12f),!0x1),this[_0xc8eada(0x14e)](_0xc8eada(0x13c),''),this[_0xc8eada(0x14e)](_0xc8eada(0x124),''),this[_0xc8eada(0x14e)](_0xc8eada(0x13f),!0x1),this[_0xc8eada(0x14e)](_0xc8eada(0x144),_0x48c077[_0xc8eada(0x106)]),this[_0xc8eada(0x10d)]=new _0x13cf34(),this[_0xc8eada(0x155)]=new _0x17a7b0(_0x3ce07e),this[_0xc8eada(0x132)]=new _0x1e9a5c(_0x3ce07e,_0x42f47b),this[_0xc8eada(0x132)][_0xc8eada(0x147)](_0xc8eada(0x12f))['to'](this),this[_0xc8eada(0x132)][_0xc8eada(0x147)](_0xc8eada(0x124))['to'](this),this[_0xc8eada(0x123)]=this[_0xc8eada(0x154)](),this[_0xc8eada(0x123)][_0xc8eada(0x147)](_0xc8eada(0x144))['to'](this),this[_0xc8eada(0x13b)]=this[_0xc8eada(0x136)](),this[_0xc8eada(0x130)]=new _0x5d3b89(),this[_0xc8eada(0x146)]=new _0x56bc37(),this[_0xc8eada(0x109)]=this[_0xc8eada(0x143)]([this[_0xc8eada(0x132)],this[_0xc8eada(0x132)][_0xc8eada(0x111)],this[_0xc8eada(0x123)],this[_0xc8eada(0x13b)]]),this[_0xc8eada(0x127)]=new _0x37f4de({'focusables':this[_0xc8eada(0x109)],'focusTracker':this[_0xc8eada(0x130)],'keystrokeHandler':this[_0xc8eada(0x146)],'actions':{'focusPrevious':_0xc8eada(0x129),'focusNext':_0xc8eada(0x14c)}}),this[_0xc8eada(0x127)][_0xc8eada(0x140)](this[_0xc8eada(0x13b)][_0xc8eada(0x127)]),this[_0xc8eada(0x13b)][_0xc8eada(0x139)][_0xc8eada(0x114)][_0xc8eada(0x147)](_0xc8eada(0x124))['to'](this,_0xc8eada(0x13c));const _0x24d7fa=this[_0xc8eada(0x120)];this[_0xc8eada(0x105)]({'tag':_0xc8eada(0x135),'attributes':{'class':['ck',_0xc8eada(0x141),_0x2beebe],'tabindex':'-1'},'children':[{'tag':_0xc8eada(0x135),'attributes':{'class':['ck',_0xc8eada(0x121)]},'children':[{'tag':_0xc8eada(0x135),'attributes':{'class':[_0x24d7fa['if'](_0xc8eada(0x13f),_0xc8eada(0x103),_0xc2d02e=>!_0xc2d02e)]},'children':[this[_0xc8eada(0x155)]]},this[_0xc8eada(0x132)],this[_0xc8eada(0x123)],this[_0xc8eada(0x13b)]]}]});}[_0xcba551(0x12e)](){const _0x226514=_0xcba551;super[_0x226514(0x12e)](),this[_0x226514(0x130)][_0x226514(0x102)](this[_0x226514(0x132)][_0x226514(0x13d)]),this[_0x226514(0x130)][_0x226514(0x102)](this[_0x226514(0x132)][_0x226514(0x111)][_0x226514(0x13d)]),this[_0x226514(0x130)][_0x226514(0x102)](this[_0x226514(0x123)][_0x226514(0x13d)]),this[_0x226514(0x130)][_0x226514(0x102)](this[_0x226514(0x13b)][_0x226514(0x13d)]),this[_0x226514(0x146)][_0x226514(0x142)](this[_0x226514(0x13d)]);}[_0xcba551(0x128)](_0xdf0325=0x1){const _0x5cfdbf=_0xcba551;-0x1===_0xdf0325?this[_0x5cfdbf(0x127)][_0x5cfdbf(0x122)]():this[_0x5cfdbf(0x127)][_0x5cfdbf(0x10e)]();}[_0xcba551(0x10f)](){const _0x3afd5f=_0xcba551;this[_0x3afd5f(0x13c)]='',this[_0x3afd5f(0x124)]='',this[_0x3afd5f(0x13f)]=!0x1,this[_0x3afd5f(0x13b)][_0x3afd5f(0x10f)](),this[_0x3afd5f(0x132)][_0x3afd5f(0x115)]=!0x1,this[_0x3afd5f(0x123)][_0x3afd5f(0x115)]=!0x1;}[_0xcba551(0x136)](){const _0x58bbfa=_0xcba551,_0x93bce=this[_0x58bbfa(0x149)],_0x109898=new _0x2db839(_0x93bce,{'queryView':{'label':_0x597c30(_0x93bce,_0x58bbfa(0x10b)),'creator':_0x5f3aa8,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x597c30(_0x93bce,_0x58bbfa(0x14d)),'secondary':_0x597c30(_0x93bce,_0x58bbfa(0x126))}}},'filteredView':this[_0x58bbfa(0x10a)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x109898[_0x58bbfa(0x147)](_0x58bbfa(0x104))['to'](this,_0x58bbfa(0x104),this,_0x58bbfa(0x12f),(_0x3561cc,_0x443927)=>_0x3561cc&&!_0x443927),this[_0x58bbfa(0x142)](_0x109898,_0x58bbfa(0x12c),(_0x47d677,_0x62f0f)=>{const _0x5e84e0=_0x58bbfa;this[_0x5e84e0(0x13c)]=_0x62f0f;const _0x334d0b=_0x2d7dd9(_0x62f0f);this[_0x5e84e0(0x107)](_0x5e84e0(0x11e),_0x334d0b),_0x62f0f[_0x5e84e0(0x113)]()&&this[_0x5e84e0(0x10d)][_0x5e84e0(0x102)]({'prompt':_0x334d0b},0x0);},{'priority':_0x58bbfa(0x12b)}),_0x109898;}[_0xcba551(0x10a)](){const _0x4be188=_0xcba551,_0x2eaf43=new _0x501c1b(this[_0x4be188(0x149)]);return _0x2eaf43[_0x4be188(0x138)][_0x4be188(0x131)][_0x4be188(0x125)](this[_0x4be188(0x10d)])['as'](_0x1ede23),_0x2eaf43['on'](_0x4be188(0x116),()=>{const _0xc99a6f=_0x4be188;this[_0xc99a6f(0x10d)][_0xc99a6f(0x14a)](),this[_0xc99a6f(0x13b)][_0xc99a6f(0xff)](''),this[_0xc99a6f(0x13b)][_0xc99a6f(0x128)]();}),_0x2eaf43;}[_0xcba551(0x154)](){const _0x2a5f18=_0xcba551,_0x356c0d=new _0x57e0a8(this[_0x2a5f18(0x149)]);return _0x356c0d[_0x2a5f18(0x101)][_0x2a5f18(0x147)](_0x2a5f18(0x104))['to'](this,_0x2a5f18(0x104),this,_0x2a5f18(0x12f),this,_0x2a5f18(0x124),(_0x4771fb,_0x10f1df,_0x95dca9)=>_0x4771fb&&!_0x10f1df&&!!_0x95dca9),_0x356c0d[_0x2a5f18(0x101)][_0x2a5f18(0x153)](_0x2a5f18(0x151))['to'](this,_0x2a5f18(0x133)),_0x356c0d[_0x2a5f18(0x13a)][_0x2a5f18(0x147)](_0x2a5f18(0x104))['to'](this,_0x2a5f18(0x104),this,_0x2a5f18(0x12f),this,_0x2a5f18(0x124),(_0x4d175b,_0x22c0fa,_0x578610)=>_0x4d175b&&!_0x22c0fa&&!!_0x578610),_0x356c0d[_0x2a5f18(0x13a)][_0x2a5f18(0x153)](_0x2a5f18(0x151))['to'](this,_0x2a5f18(0x112)),_0x356c0d[_0x2a5f18(0x100)][_0x2a5f18(0x147)](_0x2a5f18(0x104))['to'](this,_0x2a5f18(0x104),this,_0x2a5f18(0x12f),(_0x1b1dd9,_0xae5c5d)=>_0x1b1dd9&&!_0xae5c5d),_0x356c0d[_0x2a5f18(0x100)][_0x2a5f18(0x153)](_0x2a5f18(0x151))['to'](this,_0x2a5f18(0x11b)),_0x356c0d[_0x2a5f18(0x117)][_0x2a5f18(0x147)](_0x2a5f18(0x104))['to'](this,_0x2a5f18(0x12f)),_0x356c0d[_0x2a5f18(0x117)][_0x2a5f18(0x153)](_0x2a5f18(0x151))['to'](this,_0x2a5f18(0x134)),_0x356c0d;}[_0xcba551(0x14f)](){const _0x25a53b=_0xcba551;this[_0x25a53b(0x124)]='',this[_0x25a53b(0x13f)]=!0x1,this[_0x25a53b(0x12f)]=!0x0,this[_0x25a53b(0x132)][_0x25a53b(0x115)]=!0x0,this[_0x25a53b(0x123)][_0x25a53b(0x115)]=!0x0,this[_0x25a53b(0x132)][_0x25a53b(0x128)]();}[_0xcba551(0x148)](){const _0x2f9a3f=_0xcba551,_0x37d80a=this[_0x2f9a3f(0x149)];this[_0x2f9a3f(0x12f)]=!0x1,this[_0x2f9a3f(0x13c)]='',this[_0x2f9a3f(0x13b)][_0x2f9a3f(0x10f)](),this[_0x2f9a3f(0x124)]&&(this[_0x2f9a3f(0x13b)][_0x2f9a3f(0x139)][_0x2f9a3f(0x11f)]=_0x597c30(_0x37d80a,_0x2f9a3f(0x152)));}[_0xcba551(0x119)](_0x1f2d48){const _0x54fa2c=_0xcba551,_0x469025=this[_0x54fa2c(0x149)];this[_0x54fa2c(0x148)](),this[_0x54fa2c(0x13f)]=!0x0,this[_0x54fa2c(0x155)][_0x54fa2c(0x11a)]=_0x1f2d48||_0x597c30(_0x469025,_0x54fa2c(0x12d)),this[_0x54fa2c(0x124)]||(this[_0x54fa2c(0x132)][_0x54fa2c(0x115)]=!0x1);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x4f9cff,_0x27abee){const _0x59261d=_0x468a,_0x2da495=_0x4f9cff();while(!![]){try{const _0x27ba62=parseInt(_0x59261d(0x168))/0x1*(parseInt(_0x59261d(0x163))/0x2)+-parseInt(_0x59261d(0x172))/0x3+parseInt(_0x59261d(0x16f))/0x4*(parseInt(_0x59261d(0x173))/0x5)+parseInt(_0x59261d(0x16d))/0x6*(parseInt(_0x59261d(0x162))/0x7)+parseInt(_0x59261d(0x164))/0x8*(-parseInt(_0x59261d(0x167))/0x9)+-parseInt(_0x59261d(0x16e))/0xa*(-parseInt(_0x59261d(0x16c))/0xb)+parseInt(_0x59261d(0x161))/0xc;if(_0x27ba62===_0x27abee)break;else _0x2da495['push'](_0x2da495['shift']());}catch(_0x5062f2){_0x2da495['push'](_0x2da495['shift']());}}}(_0x2b19,0xb8fc0));import{ListItemView as _0x384959,ButtonView as _0x36c64f,ButtonLabelView as _0x3df71a}from'ckeditor5/src/ui.js';function _0x468a(_0x25cf2a,_0x350262){const _0x2b192d=_0x2b19();return _0x468a=function(_0x468a4f,_0x1d4cf1){_0x468a4f=_0x468a4f-0x161;let _0x1827c2=_0x2b192d[_0x468a4f];return _0x1827c2;},_0x468a(_0x25cf2a,_0x350262);}import{unescape as _0x7eae62}from'es-toolkit/compat';function _0x2b19(){const _0x1d1b3e=['4604272zxLoGD','set','prompt','9ENrSzQ','15uTdVmB','fire','children','add','364342HEOnUZ','48baJgBZ','280prbjHz','350292hjqSyE','locale','execute','3339666gbScDV','5TbsMLO','575244tGznXT','507374MPSgPU','107156uYlUXz'];_0x2b19=function(){return _0x1d1b3e;};return _0x2b19();}export class AIHistoryListItemView extends _0x384959{constructor(_0x5e70a8){const _0x5e5106=_0x468a;super();const _0x305514=new _0x3df71a(),_0x215175=new _0x36c64f(this[_0x5e5106(0x170)],_0x305514);this[_0x5e5106(0x16a)][_0x5e5106(0x16b)](_0x215175),_0x215175[_0x5e5106(0x165)]({'label':_0x5e70a8[_0x5e5106(0x166)],'withText':!0x0}),_0x215175['on'](_0x5e5106(0x171),()=>{const _0x1f1dc0=_0x5e5106;this[_0x1f1dc0(0x169)](_0x1f1dc0(0x171),{'value':_0x7eae62(_0x5e70a8[_0x1f1dc0(0x166)])});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x4054(){const _0x25cdb7=['14167900uVyuqf','add','locale','children','Prompt\x20history','fire','label','clearHistory','1015647TLmQHF','4166388fZGlls','historyGroupView','_createClearHistoryButton','72ETSLAq','4296656qVKsIk','729522irjrPe','set','13505gKFKcl','clearHistoryButton','2EktYmM','filter','359586CMgYhm','length','Clear','execute','delegate','items','1388enxMUD'];_0x4054=function(){return _0x25cdb7;};return _0x4054();}function _0x15b3(_0x1c6290,_0x18d8f4){const _0x4054df=_0x4054();return _0x15b3=function(_0x15b3c4,_0x514006){_0x15b3c4=_0x15b3c4-0x135;let _0x479789=_0x4054df[_0x15b3c4];return _0x479789;},_0x15b3(_0x1c6290,_0x18d8f4);}const _0x446419=_0x15b3;(function(_0x2a2d5f,_0x30e769){const _0x1e63c6=_0x15b3,_0x1070cb=_0x2a2d5f();while(!![]){try{const _0x11f3f7=-parseInt(_0x1e63c6(0x13a))/0x1*(-parseInt(_0x1e63c6(0x13c))/0x2)+parseInt(_0x1e63c6(0x14b))/0x3+parseInt(_0x1e63c6(0x142))/0x4*(-parseInt(_0x1e63c6(0x138))/0x5)+parseInt(_0x1e63c6(0x14c))/0x6+-parseInt(_0x1e63c6(0x135))/0x7+-parseInt(_0x1e63c6(0x14f))/0x8*(parseInt(_0x1e63c6(0x136))/0x9)+parseInt(_0x1e63c6(0x143))/0xa;if(_0x11f3f7===_0x30e769)break;else _0x1070cb['push'](_0x1070cb['shift']());}catch(_0x1e031e){_0x1070cb['push'](_0x1070cb['shift']());}}}(_0x4054,0x8116a));import{ListView as _0x5b8a42,ListItemGroupView as _0x49ef4b,ButtonView as _0x254b95}from'ckeditor5/src/ui.js';import{getTranslation as _0x3cccb4}from'../../utils/common-translations.js';export class AIHistoryListView extends _0x5b8a42{[_0x446419(0x14d)];[_0x446419(0x139)];constructor(_0x36343b){const _0x55efc1=_0x446419;super(_0x36343b),this[_0x55efc1(0x139)]=this[_0x55efc1(0x14e)](),this[_0x55efc1(0x14d)]=new _0x49ef4b(),this[_0x55efc1(0x14d)][_0x55efc1(0x146)][_0x55efc1(0x144)](this[_0x55efc1(0x139)],0x1),this[_0x55efc1(0x14d)][_0x55efc1(0x149)]=_0x3cccb4(_0x36343b,_0x55efc1(0x147)),this[_0x55efc1(0x14d)][_0x55efc1(0x141)][_0x55efc1(0x140)](_0x55efc1(0x13f))['to'](this),this[_0x55efc1(0x141)][_0x55efc1(0x144)](this[_0x55efc1(0x14d)]);}[_0x446419(0x13b)](){const _0x36fd69=_0x446419;let _0x318517=0x0;for(const _0xe636a8 of this[_0x36fd69(0x141)])_0x318517+=_0xe636a8[_0x36fd69(0x141)][_0x36fd69(0x13d)];return{'resultsCount':_0x318517,'totalItemsCount':_0x318517};}[_0x446419(0x14e)](){const _0x153241=_0x446419,_0x24fa41=this[_0x153241(0x145)],_0x40d0a5=new _0x254b95(this[_0x153241(0x145)]);return _0x40d0a5[_0x153241(0x137)]({'label':'('+_0x3cccb4(_0x24fa41,_0x153241(0x13e))+')','withText':!0x0}),_0x40d0a5['on'](_0x153241(0x13f),()=>this[_0x153241(0x148)](_0x153241(0x14a))),_0x40d0a5;}}
|
|
@@ -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
|
+
const _0xbac85=_0x2877;function _0x2877(_0x6484c0,_0x2525c5){const _0x1974e1=_0x1974();return _0x2877=function(_0x287736,_0xeb1a67){_0x287736=_0x287736-0x8f;let _0x202ea2=_0x1974e1[_0x287736];return _0x202ea2;},_0x2877(_0x6484c0,_0x2525c5);}(function(_0x564332,_0xf4fca7){const _0x53f516=_0x2877,_0xb80970=_0x564332();while(!![]){try{const _0x32f9a8=parseInt(_0x53f516(0x93))/0x1+-parseInt(_0x53f516(0xb3))/0x2*(parseInt(_0x53f516(0xb9))/0x3)+parseInt(_0x53f516(0x9e))/0x4*(-parseInt(_0x53f516(0xb1))/0x5)+-parseInt(_0x53f516(0xb2))/0x6+-parseInt(_0x53f516(0xaf))/0x7*(parseInt(_0x53f516(0x97))/0x8)+-parseInt(_0x53f516(0xa5))/0x9*(parseInt(_0x53f516(0xaa))/0xa)+parseInt(_0x53f516(0x96))/0xb*(parseInt(_0x53f516(0xa4))/0xc);if(_0x32f9a8===_0xf4fca7)break;else _0xb80970['push'](_0xb80970['shift']());}catch(_0x56d674){_0xb80970['push'](_0xb80970['shift']());}}}(_0x1974,0x5ee02));import{Command as _0x22a76e}from'ckeditor5/src/core.js';import{AIAssistantUI as _0xabd815}from'../aiassistantui.js';export class ShowAIAssistantCommand extends _0x22a76e{[_0xbac85(0xab)];constructor(_0x22056f,_0x10930f){const _0x5ebe82=_0xbac85;super(_0x22056f),this[_0x5ebe82(0xab)]=_0x10930f,this[_0x5ebe82(0x9d)](_0x5ebe82(0x94),[]),this['on'](_0x5ebe82(0xa2),(_0x7bf26c,_0x350926,_0xd14b72)=>{const _0x2c16df=_0x5ebe82;this[_0x2c16df(0x91)]&&(this[_0x2c16df(0x94)]=fs(this[_0x2c16df(0xab)],_0xd14b72));}),this[_0x5ebe82(0x9d)](_0x5ebe82(0x92),!0x1),this['on'](_0x5ebe82(0xad),(_0x74e82c,_0x137ea2,_0x370571)=>{const _0x4d7259=_0x5ebe82;this[_0x4d7259(0x94)]=_0x370571?fs(this[_0x4d7259(0xab)],this[_0x4d7259(0x92)]):[];});}[_0xbac85(0xa6)](){const _0x339819=_0xbac85,_0x42dd76=this[_0x339819(0x98)][_0x339819(0x9f)];this[_0x339819(0x92)]=function(_0x181b67){const _0x22b4e9=_0x339819,_0x4182e1=_0x181b67[_0x22b4e9(0xba)][_0x22b4e9(0xa8)];return _0x4182e1[_0x22b4e9(0xac)]?0x0!==[..._0x4182e1[_0x22b4e9(0x9b)]()][_0x22b4e9(0x90)]&&![..._0x4182e1[_0x22b4e9(0x9b)]()][0x0][_0x22b4e9(0x9c)]:!!_0x181b67[_0x22b4e9(0xae)](_0x4182e1[_0x22b4e9(0xa0)]());}(_0x42dd76);const _0x2afa74=_0x42dd76[_0x339819(0xba)][_0x339819(0xa8)],_0x4720bd=this[_0x339819(0x98)][_0x339819(0xb8)][_0x339819(0xa3)](_0x339819(0x9a));for(const _0x24bed5 of _0x2afa74[_0x339819(0xb7)]())for(const _0x12e009 of _0x24bed5[_0x339819(0x8f)]())if(_0x12e009['is'](_0x339819(0xa7))&&_0x4720bd[_0x339819(0x99)](_0x12e009[_0x339819(0xa9)]))return void(this[_0x339819(0x91)]=!0x1);this[_0x339819(0x91)]=!0x0;}[_0xbac85(0xb6)](_0x3f2d6c='',_0xd2d32d='',_0x90afc0=_0xbac85(0xb5)){const _0x2e099b=_0xbac85;this[_0x2e099b(0x98)][_0x2e099b(0xbb)][_0x2e099b(0xa3)](_0xabd815)[_0x2e099b(0xb0)](_0x3f2d6c,_0xd2d32d,_0x90afc0);}}function fs(_0x6736ce,_0x46886a){const _0x3e1e3b=_0xbac85,_0x293d13=new Set();for(const _0x434615 of _0x6736ce[_0x3e1e3b(0xbc)]())(_0x46886a||!0x1===_0x434615[_0x3e1e3b(0xa1)])&&_0x293d13[_0x3e1e3b(0xb4)](_0x434615['id']);return Array[_0x3e1e3b(0x95)](_0x293d13);}function _0x1974(){const _0x1b5b4f=['317208xZqjzp','document','plugins','values','getItems','length','isEnabled','_hasContext','130252MDCPLt','enabledCommandsIds','from','418iHEfmR','1208uKVrdE','editor','includes','ai.assistant.disabledElements','getSelectedBlocks','isEmpty','set','777320HGVuvw','model','getFirstRange','requiresContent','change:_hasContext','get','713004PsqcPp','45inNqXY','refresh','element','selection','name','1102910lEppqY','_commandDefinitions','isCollapsed','change:isEnabled','hasContent','32466bvVyAa','showUI','5jlMulo','148110vXoCAH','10ApsLhj','add','custom','execute','getRanges','config'];_0x1974=function(){return _0x1b5b4f;};return _0x1974();}
|
|
@@ -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 _0x2af3c4=_0x36e7;(function(_0x8f379c,_0x1fef1a){const _0x2431e6=_0x36e7,_0x58309f=_0x8f379c();while(!![]){try{const _0x216680=parseInt(_0x2431e6(0xf3))/0x1*(parseInt(_0x2431e6(0xef))/0x2)+parseInt(_0x2431e6(0x137))/0x3*(parseInt(_0x2431e6(0x118))/0x4)+-parseInt(_0x2431e6(0x12b))/0x5+-parseInt(_0x2431e6(0xd9))/0x6+-parseInt(_0x2431e6(0x12c))/0x7+parseInt(_0x2431e6(0xda))/0x8+-parseInt(_0x2431e6(0xdf))/0x9*(-parseInt(_0x2431e6(0x143))/0xa);if(_0x216680===_0x1fef1a)break;else _0x58309f['push'](_0x58309f['shift']());}catch(_0x43640c){_0x58309f['push'](_0x58309f['shift']());}}}(_0x74ee,0xa2083));import{ContextPlugin as _0x403328}from'ckeditor5/src/core.js';import{AIConnector as _0x1f3731}from'../aicore/aiconnector.js';function _0x36e7(_0x410e36,_0x40e54f){const _0x74eeaf=_0x74ee();return _0x36e7=function(_0x36e76,_0x459ee2){_0x36e76=_0x36e76-0xd8;let _0x283227=_0x74eeaf[_0x36e76];return _0x283227;},_0x36e7(_0x410e36,_0x40e54f);}import{AIEditing as _0x450285}from'../aicore/aiediting.js';import{AI_BALLOON_VIEW_EVENT_NAMES as _0x4a64df,AIBalloonView as _0x38bdb3}from'./ui/aiballoonview.js';import'../../theme/aiballoon/aiballoon.css';function _0x74ee(){const _0x1078fd=['1291131VLWEOj','document','_pendingRenderCallback','_setupMarkerRemovalListener','isOfficialPlugin','stopListening','fire','startsWith','end','requires','hide','Dialog','_getSelectionElements','ai-balloon-selection','length','getChangedMarkers','window','_setupVisualSelection','markers','hideFakeVisualSelection','top','AIEditing','_calculateDialogPosition','bind','isTrackChangesOn','icon','round','showFakeVisualSelection','pluginName','differ','ai-balloon-','left','isEqual','balloonView','_config','ai-balloon','once','1047972VPOwdV','ai-selection:','selectionRemoved','_updateBalloon','AI_ACTIONS_SELECTION_REMOVED_ERROR','listenTo','updatePosition','ai.availableReplyActions','setupRotator','filter','getBoundingRect','get','index','_calculateOptimalTopPosition','root','_isUpdatingMarkers','getIntersection','title','headerView','6541445ksSEKe','7406959nZMynb','startAutoScroll','iconView','show','showBlockingError','dialogClosed','off','width','stopAutoScroll','isOpen','model','6DrboXT','locale','getMarkersGroup','render','ai-selection','updateContent','bottom','close','_cleanupMarkerRemovalListener','config','start','context','9230MTcYgF','commands','height','172062muZCfs','2927168agDCem','showRotator','getVisible','\x20ai-balloon-rotator','trackChanges','8559LPDYnh','isPremiumPlugin','plugins','_showDialog','AIBalloon','value','ranges','view','aiBalloon','$graveyard','rootName','content','open','change','max','editing','2cXTOCV','mainView','label','delegate'];_0x74ee=function(){return _0x1078fd;};return _0x74ee();}import{getAllMarkersDomElementsSorted as _0x429885}from'ckeditor5-collaboration/src/collaboration-core.js';import{global as _0x166334,Rect as _0x540e4d,scrollViewportToShowTarget as _0x48702c}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0x2e6b0b}from'../aicore/utils/geteditorfromcontext.js';import{AI_REPLY_ACTIONS as _0x51d904}from'../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';import{getTranslation as _0x1e0357}from'../aicore/utils/common-translations.js';export const AI_BALLOON_EVENT_NAMES=[..._0x4a64df,_0x2af3c4(0x131),_0x2af3c4(0x11a)];const x=0xa;export class AIBalloon extends _0x403328{static get[_0x2af3c4(0xfc)](){return[_0x1f3731,_0x450285];}static get[_0x2af3c4(0x10f)](){const _0x3a6213=_0x2af3c4;return _0x3a6213(0xe3);}static get[_0x2af3c4(0xf7)](){return!0x0;}static get[_0x2af3c4(0xe0)](){return!0x0;}[_0x2af3c4(0x135)]=!0x1;[_0x2af3c4(0x115)];[_0x2af3c4(0x127)]=!0x1;[_0x2af3c4(0xf5)]=null;[_0x2af3c4(0xeb)](_0x47b9d9){const _0x24ce0e=_0x2af3c4,_0xe50cb7=_0x2e6b0b(this[_0x24ce0e(0x142)]);if(this[_0x24ce0e(0x115)]=_0x47b9d9,this[_0x24ce0e(0x135)])return void this[_0x24ce0e(0x11b)](_0x47b9d9);const _0x303ca8=this[_0x24ce0e(0x142)][_0x24ce0e(0x140)][_0x24ce0e(0x123)](_0x24ce0e(0x11f))||[..._0x51d904],_0x39feba=_0xe50cb7?.[_0x24ce0e(0x144)][_0x24ce0e(0x123)](_0x24ce0e(0xde)),_0x7861c0=_0x39feba?.[_0x24ce0e(0xe4)];this[_0x24ce0e(0x114)]=new _0x38bdb3(_0xe50cb7[_0x24ce0e(0x138)],_0x47b9d9,_0x303ca8,!!_0x7861c0),this[_0x24ce0e(0x114)][_0x24ce0e(0xf2)](..._0x4a64df)['to'](this),_0x39feba&&this[_0x24ce0e(0x114)][_0x24ce0e(0x10a)](_0x24ce0e(0x10b))['to'](_0x39feba,_0x24ce0e(0xe4)),this[_0x24ce0e(0xe2)](_0x47b9d9);}[_0x2af3c4(0x13e)](){const _0x57d48c=_0x2af3c4;_0x2e6b0b(this[_0x57d48c(0x142)])[_0x57d48c(0xe1)][_0x57d48c(0x123)](_0x57d48c(0xfe))[_0x57d48c(0xfd)]();}[_0x2af3c4(0x12d)](){const _0xdd349b=_0x2af3c4;this[_0xdd349b(0x114)]&&this[_0xdd349b(0x114)][_0xdd349b(0x12d)]();}[_0x2af3c4(0x134)](){const _0x4f897a=_0x2af3c4;this[_0x4f897a(0x114)]&&this[_0x4f897a(0x114)][_0x4f897a(0x134)]();}[_0x2af3c4(0x11b)](_0x22f50d){const _0x4e809f=_0x2af3c4,_0x178988=_0x2e6b0b(this[_0x4e809f(0x142)]),_0x2144a4=_0x178988[_0x4e809f(0xe1)][_0x4e809f(0x123)](_0x4e809f(0xfe));this[_0x4e809f(0xf5)]&&(_0x178988[_0x4e809f(0xee)][_0x4e809f(0xe6)][_0x4e809f(0x132)](_0x4e809f(0x13a),this[_0x4e809f(0xf5)]),this[_0x4e809f(0xf5)]=null),this[_0x4e809f(0x127)]=!0x0,_0x2144a4[_0x4e809f(0xe6)]?.[_0x4e809f(0x12a)]&&(_0x2144a4[_0x4e809f(0xe6)][_0x4e809f(0x12a)][_0x4e809f(0xf1)]=_0x22f50d[_0x4e809f(0x129)],_0x2144a4[_0x4e809f(0xe6)][_0x4e809f(0x12a)][_0x4e809f(0x12e)]&&_0x22f50d[_0x4e809f(0x10c)]&&(_0x2144a4[_0x4e809f(0xe6)][_0x4e809f(0x12a)][_0x4e809f(0x12e)][_0x4e809f(0xea)]=_0x22f50d[_0x4e809f(0x10c)])),this[_0x4e809f(0x114)][_0x4e809f(0x13c)](_0x22f50d[_0x4e809f(0xf0)]),this[_0x4e809f(0x104)](_0x22f50d[_0x4e809f(0xe5)],_0x22f50d[_0x4e809f(0x124)]),this[_0x4e809f(0xf5)]=()=>{const _0x475114=_0x4e809f;this[_0x475114(0x127)]=!0x1,this[_0x475114(0xf5)]=null,_0x2144a4[_0x475114(0xe6)]&&_0x2144a4[_0x475114(0xe6)][_0x475114(0x11e)]();},_0x178988[_0x4e809f(0xee)][_0x4e809f(0xe6)][_0x4e809f(0x117)](_0x4e809f(0x13a),this[_0x4e809f(0xf5)]);}[_0x2af3c4(0x104)](_0x3d363b,_0x53cb72){const _0x2e6c14=_0x2af3c4;this[_0x2e6c14(0x142)][_0x2e6c14(0xe1)][_0x2e6c14(0x123)](_0x450285)[_0x2e6c14(0x10e)](_0x3d363b,_0x2e6c14(0x111)+_0x53cb72,!0x0,!0x0);}[_0x2af3c4(0xe2)](_0xba2340){const _0x536ce2=_0x2af3c4,_0x2cea3a=_0x2e6b0b(this[_0x536ce2(0x142)]);this[_0x536ce2(0x104)](_0xba2340[_0x536ce2(0xe5)],_0xba2340[_0x536ce2(0x124)]);const _0x4b23ed=this[_0x536ce2(0xff)]();_0x4b23ed&&_0x4b23ed[0x0]&&_0x48702c({'target':_0x4b23ed[0x0],'ancestorOffset':0x14,'alignToTop':!0x0,'viewportOffset':{'top':0x14,'bottom':0x14,'left':0x0,'right':0x0}}),_0x2cea3a[_0x536ce2(0xe1)][_0x536ce2(0x123)](_0x536ce2(0xfe))[_0x536ce2(0x12f)]({'title':_0xba2340[_0x536ce2(0x129)],'icon':_0xba2340[_0x536ce2(0x10c)],'hasCloseButton':!0x0,'id':_0x536ce2(0xe7),'position':this[_0x536ce2(0x109)][_0x536ce2(0x10a)](this),'className':_0x536ce2(0x116)+(_0xba2340[_0x536ce2(0xdb)]?_0x536ce2(0xdd):''),'content':this[_0x536ce2(0x114)],'onShow':_0x731d45=>{const _0x302476=_0x536ce2;_0xba2340[_0x302476(0xdb)]&&this[_0x302476(0x114)][_0x302476(0x120)](_0x731d45),this[_0x302476(0xf6)](),this[_0x302476(0x135)]=!0x0;},'onHide':()=>{const _0x46930f=_0x536ce2;this[_0x46930f(0x142)][_0x46930f(0xe1)][_0x46930f(0x123)](_0x46930f(0x108))[_0x46930f(0x106)](_0x46930f(0x111)+this[_0x46930f(0x115)][_0x46930f(0x124)]),this[_0x46930f(0x13f)](),this[_0x46930f(0xf9)](_0x46930f(0x131)),this[_0x46930f(0x135)]=!0x1;}});}[_0x2af3c4(0x109)](_0x4c334f,_0x49f69b){const _0x77a22a=_0x2af3c4;if(!_0x49f69b)return null;const _0x54fd24=this[_0x77a22a(0xff)]();if(!_0x54fd24||0x0===_0x54fd24[_0x77a22a(0x101)])return{'left':Math[_0x77a22a(0x10d)](_0x49f69b[_0x77a22a(0x112)]+_0x49f69b[_0x77a22a(0x133)]/0x2-_0x4c334f[_0x77a22a(0x133)]/0x2),'top':Math[_0x77a22a(0x10d)](_0x49f69b[_0x77a22a(0x107)]+_0x49f69b[_0x77a22a(0xd8)]/0x2-_0x4c334f[_0x77a22a(0xd8)]/0x2)};const _0x2a0bec=Math[_0x77a22a(0x10d)](_0x49f69b[_0x77a22a(0x112)]+_0x49f69b[_0x77a22a(0x133)]/0x2-_0x4c334f[_0x77a22a(0x133)]/0x2),_0x5e9af8=new _0x540e4d(_0x54fd24[0x0]),_0x2ee1e5=new _0x540e4d(_0x54fd24[_0x54fd24[_0x77a22a(0x101)]-0x1]),_0x1f680d=_0x4c334f[_0x77a22a(0xd8)],_0x1dec5c=this[_0x77a22a(0x115)][_0x77a22a(0xdb)]?0x8:0x0;return{'left':_0x2a0bec,'top':this[_0x77a22a(0x125)](_0x5e9af8,_0x2ee1e5,_0x1f680d,_0x1dec5c,_0x49f69b)};}[_0x2af3c4(0x125)](_0x5ec4a1,_0x931860,_0x2f7996,_0x5c36ad=0x0,_0x215b5a){const _0x365a28=_0x2af3c4,_0x4ec4ec=_0x2f7996+_0x5c36ad,_0x363f3e=new _0x540e4d(_0x166334[_0x365a28(0x103)]),_0x33f8a2=[_0x5ec4a1[_0x365a28(0xdc)](),_0x931860[_0x365a28(0xdc)]()][_0x365a28(0x121)](_0x418af7=>_0x418af7),_0xf1e001=_0x540e4d[_0x365a28(0x122)](_0x33f8a2);if(!_0xf1e001)return Math[_0x365a28(0x10d)](_0x215b5a[_0x365a28(0x107)]+_0x215b5a[_0x365a28(0xd8)]/0x2);const _0x3c32ec=_0x363f3e[_0x365a28(0x128)](_0xf1e001);if(!_0x3c32ec)return Math[_0x365a28(0x10d)](_0x215b5a[_0x365a28(0x107)]+_0x215b5a[_0x365a28(0xd8)]/0x2);const _0x57e76f=_0x215b5a[_0x365a28(0xdc)](),_0x52797a=_0x57e76f&&_0xf1e001[_0x365a28(0xd8)]>_0x57e76f[_0x365a28(0xd8)],_0x327825=_0x3c32ec[_0x365a28(0x107)],_0x1085ee=_0x3c32ec[_0x365a28(0x13d)];if(_0x52797a){const _0x3999b6=(_0x57e76f||_0x363f3e)[_0x365a28(0xd8)]/0x2-_0x4ec4ec/0x2,_0x1ec011=_0x327825-x-_0x215b5a[_0x365a28(0x107)],_0x917ba4=_0x215b5a[_0x365a28(0x13d)]-_0x1085ee-x;return _0x1ec011>=_0x4ec4ec?Math[_0x365a28(0xed)](x,_0x327825-_0x4ec4ec-x):_0x917ba4>=_0x4ec4ec?_0x1085ee+x:Math[_0x365a28(0xed)](x,_0x3999b6);}const _0x66884=_0x327825-_0x4ec4ec,_0x158e82=_0x215b5a[_0x365a28(0x13d)]-_0x1085ee-x,_0x171919=_0x327825-x-_0x215b5a[_0x365a28(0x107)];let _0x44a1b6;if(_0x158e82>=_0x4ec4ec)_0x44a1b6=_0x1085ee+x;else{if(_0x171919>=_0x4ec4ec)_0x44a1b6=_0x66884-x;else _0x44a1b6=_0x327825+_0xf1e001[_0x365a28(0xd8)]/0x2-_0x4ec4ec/0x2;}return _0x44a1b6;}[_0x2af3c4(0xf6)](){const _0x802b51=_0x2af3c4,_0x98468e=_0x2e6b0b(this[_0x802b51(0x142)]);this[_0x802b51(0x11d)](_0x98468e[_0x802b51(0x136)][_0x802b51(0xf4)],_0x802b51(0xec),()=>{const _0x167e3c=_0x802b51;if(this[_0x167e3c(0x127)])return;for(const {name:_0x59db0d,data:{newRange:_0x321c3d}}of _0x98468e[_0x167e3c(0x136)][_0x167e3c(0xf4)][_0x167e3c(0x110)][_0x167e3c(0x102)]())if(_0x59db0d[_0x167e3c(0xfa)](_0x167e3c(0x119))&&(_0x321c3d&&(_0x321c3d[_0x167e3c(0x141)][_0x167e3c(0x113)](_0x321c3d[_0x167e3c(0xfb)])||_0x167e3c(0xe8)==_0x321c3d[_0x167e3c(0x126)][_0x167e3c(0xe9)])||null==_0x321c3d)){const _0x7a790=_0x1e0357(this[_0x167e3c(0x142)][_0x167e3c(0x138)],_0x167e3c(0x11c));this[_0x167e3c(0x114)][_0x167e3c(0x130)](_0x7a790),this[_0x167e3c(0xf9)](_0x167e3c(0x11a));}});}[_0x2af3c4(0x13f)](){const _0x537377=_0x2af3c4,_0x1db4ff=_0x2e6b0b(this[_0x537377(0x142)]);this[_0x537377(0xf8)](_0x1db4ff[_0x537377(0x136)][_0x537377(0xf4)]);}[_0x2af3c4(0xff)](){const _0x1a7d62=_0x2af3c4,_0x3463b5=_0x2e6b0b(this[_0x1a7d62(0x142)]);return _0x429885(_0x3463b5[_0x1a7d62(0xee)],[..._0x3463b5[_0x1a7d62(0x136)][_0x1a7d62(0x105)][_0x1a7d62(0x139)](_0x1a7d62(0x13b)),..._0x3463b5[_0x1a7d62(0x136)][_0x1a7d62(0x105)][_0x1a7d62(0x139)](_0x1a7d62(0x100))]);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x4d1fdf,_0x20ae22){var _0x4d5eca=_0x8027,_0x907ad3=_0x4d1fdf();while(!![]){try{var _0x1ee9e4=-parseInt(_0x4d5eca(0x127))/0x1*(parseInt(_0x4d5eca(0x125))/0x2)+parseInt(_0x4d5eca(0x128))/0x3+parseInt(_0x4d5eca(0x12b))/0x4*(parseInt(_0x4d5eca(0x129))/0x5)+-parseInt(_0x4d5eca(0x124))/0x6*(parseInt(_0x4d5eca(0x12f))/0x7)+parseInt(_0x4d5eca(0x122))/0x8+parseInt(_0x4d5eca(0x121))/0x9+-parseInt(_0x4d5eca(0x126))/0xa*(parseInt(_0x4d5eca(0x12c))/0xb);if(_0x1ee9e4===_0x20ae22)break;else _0x907ad3['push'](_0x907ad3['shift']());}catch(_0x2b5a9a){_0x907ad3['push'](_0x907ad3['shift']());}}}(_0x35b4,0x599da));function _0x35b4(){var _0x323019=['setTemplate','2544NAoDvB','16cZqGDr','30uBYQjg','32108TDdSPu','924069fvsXMb','5fCvDIH','ck-ai-balloon__disclaimer-content','1326892uKXZHZ','1952687TPVHIv','div','ck-ai-balloon__disclaimer','8008vbgVmw','AI_DISCLAIMER_TEXT','3765564jIraya','4667160lSAxBl'];_0x35b4=function(){return _0x323019;};return _0x35b4();}import{View as _0x54c537}from'ckeditor5/src/ui.js';import{getTranslation as _0x487df2}from'../../aicore/utils/common-translations.js';function _0x8027(_0x2bcb8f,_0x24ef26){var _0x35b437=_0x35b4();return _0x8027=function(_0x802767,_0x2ffce5){_0x802767=_0x802767-0x121;var _0x20de58=_0x35b437[_0x802767];return _0x20de58;},_0x8027(_0x2bcb8f,_0x24ef26);}export class AIBalloonDisclaimerView extends _0x54c537{constructor(_0x95134b){var _0x3820d7=_0x8027;super(_0x95134b),this[_0x3820d7(0x123)]({'tag':_0x3820d7(0x12d),'attributes':{'class':['ck',_0x3820d7(0x12e)]},'children':[{'tag':'p','attributes':{'class':['ck',_0x3820d7(0x12a)]},'children':[{'text':_0x487df2(_0x95134b,_0x3820d7(0x130))}]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x549580=_0x3cb5;(function(_0x1a02ef,_0x5d4e54){const _0x363766=_0x3cb5,_0x175337=_0x1a02ef();while(!![]){try{const _0xd9ffc4=-parseInt(_0x363766(0x74))/0x1*(parseInt(_0x363766(0x6f))/0x2)+parseInt(_0x363766(0x66))/0x3*(-parseInt(_0x363766(0x7d))/0x4)+parseInt(_0x363766(0x72))/0x5+-parseInt(_0x363766(0x79))/0x6+-parseInt(_0x363766(0x65))/0x7*(parseInt(_0x363766(0x7a))/0x8)+parseInt(_0x363766(0x7e))/0x9*(-parseInt(_0x363766(0x75))/0xa)+-parseInt(_0x363766(0x6b))/0xb*(-parseInt(_0x363766(0x76))/0xc);if(_0xd9ffc4===_0x5d4e54)break;else _0x175337['push'](_0x175337['shift']());}catch(_0x412bb2){_0x175337['push'](_0x175337['shift']());}}}(_0x2990,0xc0363));import{ToolbarView as _0x37a976,ButtonView as _0x3d3d42}from'ckeditor5/src/ui.js';import{getTranslation as _0x58ada5}from'../../aicore/utils/common-translations.js';export class AIBalloonToolbarView extends _0x37a976{constructor(_0x3bf407,_0x455ce8=!0x0,_0x4e39fd=!0x0){const _0x458974=_0x3cb5;super(_0x3bf407),this[_0x458974(0x7c)](_0x458974(0x77),!0x1),_0x455ce8&&(this[_0x458974(0x6e)]=this[_0x458974(0x68)](_0x58ada5(_0x3bf407,_0x458974(0x7b)),_0x458974(0x67)),this[_0x458974(0x6e)][_0x458974(0x73)](_0x458974(0x70))['to'](this,_0x458974(0x77),_0x486a7d=>!_0x486a7d),this[_0x458974(0x78)][_0x458974(0x71)](this[_0x458974(0x6e)])),_0x4e39fd&&(this[_0x458974(0x69)]=this[_0x458974(0x68)](_0x58ada5(_0x3bf407,_0x458974(0x6d)),_0x455ce8?_0x458974(0x7f):_0x458974(0x67)),this[_0x458974(0x69)][_0x458974(0x73)](_0x458974(0x70))['to'](this,_0x458974(0x77),_0x37fc94=>!_0x37fc94),this[_0x458974(0x78)][_0x458974(0x71)](this[_0x458974(0x69)])),this[_0x458974(0x6a)]({'attributes':{'class':[_0x458974(0x6c)]}});}[_0x549580(0x68)](_0x198251,_0x3a859e){const _0x1fc60d=_0x549580,_0x3950f5=new _0x3d3d42(this[_0x1fc60d(0x80)]);return _0x3950f5[_0x1fc60d(0x7c)]({'label':_0x198251,'class':_0x3a859e||'','isVisible':!0x0,'withText':!0x0}),_0x3950f5;}}function _0x3cb5(_0x4282e9,_0x48ba00){const _0x29903c=_0x2990();return _0x3cb5=function(_0x3cb5ca,_0x1da667){_0x3cb5ca=_0x3cb5ca-0x65;let _0x5474bb=_0x29903c[_0x3cb5ca];return _0x5474bb;},_0x3cb5(_0x4282e9,_0x48ba00);}function _0x2990(){const _0x5558c2=['extendTemplate','11fosKHB','ck-ai-balloon__toolbar','AI_BALLOON_SUGGEST_BUTTON','applyButton','434136mLrOyR','isEnabled','add','524430HdlnGp','bind','2gSXNpM','2008810NxcjCc','54404124WMgCqS','isLoading','items','1566510QiaCdf','8UcZAfR','AI_BALLOON_APPLY_BUTTON','set','86332lReNfC','54smYWEI','ck-ai-button-secondary','locale','10331517fsnQnk','66gCRmcy','ck-ai-button-primary','_createButton','suggestButton'];_0x2990=function(){return _0x5558c2;};return _0x2990();}
|
|
@@ -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
|
+
const _0x1573e0=_0x19ac;function _0x19ac(_0x1ef5cf,_0x43509f){const _0x173296=_0x1732();return _0x19ac=function(_0x19acb9,_0x4f301f){_0x19acb9=_0x19acb9-0x188;let _0x1146fb=_0x173296[_0x19acb9];return _0x1146fb;},_0x19ac(_0x1ef5cf,_0x43509f);}(function(_0x53f496,_0x2176a3){const _0x86b532=_0x19ac,_0x274ce7=_0x53f496();while(!![]){try{const _0x26ab7f=parseInt(_0x86b532(0x1c2))/0x1*(parseInt(_0x86b532(0x197))/0x2)+-parseInt(_0x86b532(0x18a))/0x3+parseInt(_0x86b532(0x18d))/0x4*(-parseInt(_0x86b532(0x1ba))/0x5)+-parseInt(_0x86b532(0x1e3))/0x6*(parseInt(_0x86b532(0x1bb))/0x7)+-parseInt(_0x86b532(0x1ae))/0x8+-parseInt(_0x86b532(0x1dc))/0x9*(parseInt(_0x86b532(0x1a2))/0xa)+-parseInt(_0x86b532(0x191))/0xb*(-parseInt(_0x86b532(0x1bc))/0xc);if(_0x26ab7f===_0x2176a3)break;else _0x274ce7['push'](_0x274ce7['shift']());}catch(_0x3cedde){_0x274ce7['push'](_0x274ce7['shift']());}}}(_0x1732,0xbd2ac));import{ButtonView as _0x12c99f,View as _0x26ef86,ViewCollection as _0x1ec540,FocusCycler as _0x1bee75}from'ckeditor5/src/ui.js';import{FocusTracker as _0x5da652,KeystrokeHandler as _0xfee0bc}from'ckeditor5/src/utils.js';import{IconNextArrow as _0xffe363,IconPreviousArrow as _0xdda64d}from'@ckeditor/ckeditor5-icons';import{AIBalloonToolbarView as _0xb064d3}from'./aiballoontoolbarview.js';function _0x1732(){const _0x301b84=['getIndex','198670onpYNR','189kPrryb','43691112bmlors','_addContentView','hideError','_dialogContent','setupRotator','stopAutoScroll','1RlNszv','AI_BALLOON_NEXT_TOOLTIP','_addToolbar','bind','applyButton','destroy','focusCycler','listenTo','showSuggestButton','errorMessage','render','createCollection','children','view','bindTemplate','disclaimerView','ck-hidden','isLoading','ai-balloon-content','shift\x20+\x20tab','showApplyButton','stop','focusTracker','_addDisclaimerView','execute','_createNextButtonView','18hhAgIY','change:isTrackChangesOn','locale','focus','toolbar','setTemplate','suggestButton','123996WdtjQP','scrollManager','showRecoverableError','showPrevious','ck-ai-suggestion__error-text','905922cZWISM','_availableActions','_mainView','48MynniV','remove','showNext','ai-balloon-error','11vCmvyL','isEnabled','set','clear','mainView','add','1252346GDrCgO','applySuggestion','_errorView','div','includes','showBlockingError','bodyView','setLoading','_focusables','_initializeScrollManager','_createErrorView','6840230bxiFlm','insertSuggestion','_getScrollableElement','focusLast','clearLoading','span','startAutoScroll','headerView','element','AI_BALLOON_PREVIOUS_TOOLTIP','keystrokes','showError','6299688lQUTNq','focusFirst','isTrackChangesOn','ck-ai-suggestion__error','updateContent','isErrorVisible','start','_createPreviousButtonView','tab','fire','addMany'];_0x1732=function(){return _0x301b84;};return _0x1732();}import{AIBalloonDisclaimerView as _0x592807}from'./aiballoondisclaimerview.js';import{getTranslation as _0x4eff51}from'../../aicore/utils/common-translations.js';import{ScrollManager as _0x49e0ea}from'../../aicore/utils/scrollmanager.js';import{AISuggestionContainerView as _0xd91d72}from'../../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';export const AI_BALLOON_VIEW_EVENT_NAMES=[_0x1573e0(0x198),_0x1573e0(0x1a3),_0x1573e0(0x18f),_0x1573e0(0x188)];export class AIBalloonView extends _0x26ef86{[_0x1573e0(0x1d8)];[_0x1573e0(0x1ac)];[_0x1573e0(0x1c8)];[_0x1573e0(0x18b)];[_0x1573e0(0x19f)];[_0x1573e0(0x199)];[_0x1573e0(0x1e4)];constructor(_0x2018d9,_0x56a332,_0xe83fa2,_0x5da162){const _0x1f2b2c=_0x1573e0;super(_0x2018d9),this[_0x1f2b2c(0x18b)]=_0xe83fa2,this[_0x1f2b2c(0x193)](_0x1f2b2c(0x1d3),!0x1),this[_0x1f2b2c(0x193)](_0x1f2b2c(0x1b0),_0x5da162),this[_0x1f2b2c(0x193)](_0x1f2b2c(0x1b3),!0x1),this[_0x1f2b2c(0x193)](_0x1f2b2c(0x1cb),''),this[_0x1f2b2c(0x1d8)]=new _0x5da652(),this[_0x1f2b2c(0x1ac)]=new _0xfee0bc(),this[_0x1f2b2c(0x19f)]=this[_0x1f2b2c(0x1cd)](),this[_0x1f2b2c(0x1c8)]=new _0x1bee75({'focusables':this[_0x1f2b2c(0x19f)],'focusTracker':this[_0x1f2b2c(0x1d8)],'keystrokeHandler':this[_0x1f2b2c(0x1ac)],'actions':{'focusPrevious':_0x1f2b2c(0x1d5),'focusNext':_0x1f2b2c(0x1b6)}}),this[_0x1f2b2c(0x1bf)]=new _0x1ec540(),this[_0x1f2b2c(0x1bd)](_0x56a332[_0x1f2b2c(0x195)]),this[_0x1f2b2c(0x1d9)](),this[_0x1f2b2c(0x1c4)](_0x56a332[_0x1f2b2c(0x1d6)],_0x56a332[_0x1f2b2c(0x1ca)]),this[_0x1f2b2c(0x1e0)][_0x1f2b2c(0x1c5)](_0x1f2b2c(0x1d3))['to'](this),this[_0x1f2b2c(0x19f)][_0x1f2b2c(0x194)](),this[_0x1f2b2c(0x19f)][_0x1f2b2c(0x1b8)]([this[_0x1f2b2c(0x1e0)]]),this[_0x1f2b2c(0x1e1)]({'tag':_0x1f2b2c(0x19a),'attributes':{'class':_0x1f2b2c(0x1d4)},'children':this[_0x1f2b2c(0x1bf)]}),this['on'](_0x1f2b2c(0x1dd),()=>{const _0x261672=_0x1f2b2c;this[_0x261672(0x1bf)][_0x261672(0x18e)](this[_0x261672(0x1e0)]),this[_0x261672(0x1c4)](_0x56a332[_0x261672(0x1d6)],_0x56a332[_0x261672(0x1ca)]);});}[_0x1573e0(0x1cc)](){const _0x3d9994=_0x1573e0;super[_0x3d9994(0x1cc)]();for(const _0x2f1ae6 of this[_0x3d9994(0x19f)])this[_0x3d9994(0x1d8)][_0x3d9994(0x196)](_0x2f1ae6[_0x3d9994(0x1aa)]);this[_0x3d9994(0x1ac)][_0x3d9994(0x1c9)](this[_0x3d9994(0x1aa)]),this[_0x3d9994(0x1a0)]();}[_0x1573e0(0x1c7)](){const _0x341125=_0x1573e0;super[_0x341125(0x1c7)](),this[_0x341125(0x1e4)]&&this[_0x341125(0x1e4)][_0x341125(0x1c7)]();}[_0x1573e0(0x1df)](_0x48dfad){const _0x29b688=_0x1573e0;-0x1===_0x48dfad?this[_0x29b688(0x1c8)][_0x29b688(0x1a5)]():this[_0x29b688(0x1c8)][_0x29b688(0x1af)]();}[_0x1573e0(0x19e)](){const _0x578619=_0x1573e0;this[_0x578619(0x1d3)]=!0x0;}[_0x1573e0(0x1a6)](){const _0x3c069c=_0x1573e0;this[_0x3c069c(0x1d3)]=!0x1;}[_0x1573e0(0x1ad)](_0x4fd17b){const _0x1711d3=_0x1573e0;this[_0x1711d3(0x199)]||(this[_0x1711d3(0x199)]=this[_0x1711d3(0x1a1)](),this[_0x1711d3(0x1bf)][_0x1711d3(0x1b8)]([this[_0x1711d3(0x199)]],0x0)),this[_0x1711d3(0x1cb)]=_0x4fd17b,this[_0x1711d3(0x1b3)]=!0x0;}[_0x1573e0(0x1be)](){const _0x1c0af3=_0x1573e0;this[_0x1c0af3(0x1b3)]=!0x1;}[_0x1573e0(0x1e5)](_0x3a55da){const _0x4e1135=_0x1573e0;this[_0x4e1135(0x1ad)](_0x3a55da);}[_0x1573e0(0x19c)](_0xedcf7){const _0x3f0a84=_0x1573e0;this[_0x3f0a84(0x1ad)](_0xedcf7),this[_0x3f0a84(0x1e0)]&&(this[_0x3f0a84(0x1e0)][_0x3f0a84(0x1c6)]&&(this[_0x3f0a84(0x1e0)][_0x3f0a84(0x1c6)][_0x3f0a84(0x192)]=!0x1),this[_0x3f0a84(0x1e0)][_0x3f0a84(0x1e2)]&&(this[_0x3f0a84(0x1e0)][_0x3f0a84(0x1e2)][_0x3f0a84(0x192)]=!0x1));}[_0x1573e0(0x1c0)](_0x20e3c9){const _0x37756e=_0x1573e0,_0xa9da45=this[_0x37756e(0x1db)](),_0x275182=this[_0x37756e(0x1b5)]();_0x20e3c9[_0x37756e(0x1cf)][_0x37756e(0x1a9)][_0x37756e(0x1ce)][_0x37756e(0x196)](_0xa9da45,0x2),_0x20e3c9[_0x37756e(0x1cf)][_0x37756e(0x1a9)][_0x37756e(0x1ce)][_0x37756e(0x196)](_0x275182,0x0),this[_0x37756e(0x19f)][_0x37756e(0x1b8)]([_0xa9da45,_0x275182]),this[_0x37756e(0x1d8)][_0x37756e(0x196)](_0xa9da45[_0x37756e(0x1aa)]),this[_0x37756e(0x1d8)][_0x37756e(0x196)](_0x275182[_0x37756e(0x1aa)]);}[_0x1573e0(0x1bd)](_0x23037b){const _0x25cbe7=_0x1573e0;this[_0x25cbe7(0x18c)]=_0x23037b,this[_0x25cbe7(0x1bf)][_0x25cbe7(0x196)](this[_0x25cbe7(0x18c)]);}[_0x1573e0(0x1b2)](_0x516742){const _0xda9279=_0x1573e0,_0x35e0eb=this[_0xda9279(0x1bf)][_0xda9279(0x1b9)](this[_0xda9279(0x18c)]);this[_0xda9279(0x1bf)][_0xda9279(0x18e)](this[_0xda9279(0x18c)]),this[_0xda9279(0x18c)]=_0x516742,this[_0xda9279(0x1bf)][_0xda9279(0x196)](this[_0xda9279(0x18c)],_0x35e0eb),this[_0xda9279(0x1be)](),this[_0xda9279(0x1e4)]&&this[_0xda9279(0x1e4)][_0xda9279(0x1c7)](),this[_0xda9279(0x1a0)]();}[_0x1573e0(0x1d9)](){const _0x3b2e36=_0x1573e0;this[_0x3b2e36(0x1d1)]=new _0x592807(this[_0x3b2e36(0x1de)]),this[_0x3b2e36(0x1bf)][_0x3b2e36(0x196)](this[_0x3b2e36(0x1d1)]);}[_0x1573e0(0x1c4)](_0x1e3525=!0x0,_0x520255=!0x0){const _0x32f3e4=_0x1573e0;_0x1e3525=_0x1e3525&&!this[_0x32f3e4(0x1b0)]&&this[_0x32f3e4(0x18b)][_0x32f3e4(0x19b)](_0x32f3e4(0x198)),_0x520255=_0x520255&&this[_0x32f3e4(0x18b)][_0x32f3e4(0x19b)](_0x32f3e4(0x1a3)),this[_0x32f3e4(0x1e0)]=new _0xb064d3(this[_0x32f3e4(0x1de)],_0x1e3525,_0x520255),this[_0x32f3e4(0x1e0)][_0x32f3e4(0x1c6)]?.['on'](_0x32f3e4(0x1da),()=>{const _0x1ab830=_0x32f3e4;this[_0x1ab830(0x1b7)](_0x1ab830(0x198));}),this[_0x32f3e4(0x1e0)][_0x32f3e4(0x1e2)]?.['on'](_0x32f3e4(0x1da),()=>{const _0x25bd8e=_0x32f3e4;this[_0x25bd8e(0x1b7)](_0x25bd8e(0x1a3));}),this[_0x32f3e4(0x1bf)][_0x32f3e4(0x196)](this[_0x32f3e4(0x1e0)]);}[_0x1573e0(0x1db)](){const _0x540eef=_0x1573e0,_0xe8a6b5=new _0x12c99f(this[_0x540eef(0x1de)]);return _0xe8a6b5[_0x540eef(0x193)]({'icon':_0xffe363,'tooltip':_0x4eff51(this[_0x540eef(0x1de)],_0x540eef(0x1c3))}),_0xe8a6b5['on'](_0x540eef(0x1da),()=>{const _0x24857b=_0x540eef;this[_0x24857b(0x1b7)](_0x24857b(0x18f));}),_0xe8a6b5;}[_0x1573e0(0x1b5)](){const _0x436ed7=_0x1573e0,_0x362510=new _0x12c99f(this[_0x436ed7(0x1de)]);return _0x362510[_0x436ed7(0x193)]({'icon':_0xdda64d,'tooltip':_0x4eff51(this[_0x436ed7(0x1de)],_0x436ed7(0x1ab))}),_0x362510['on'](_0x436ed7(0x1da),()=>{const _0x3811d0=_0x436ed7;this[_0x3811d0(0x1b7)](_0x3811d0(0x188));}),_0x362510;}[_0x1573e0(0x1a1)](){const _0x3af806=_0x1573e0,_0x38a87a=new _0x26ef86(this[_0x3af806(0x1de)]),_0x1617fd=new _0x26ef86(this[_0x3af806(0x1de)]);return _0x1617fd[_0x3af806(0x1e1)]({'tag':_0x3af806(0x1a7),'attributes':{'class':['ck',_0x3af806(0x189)]},'children':[{'text':this[_0x3af806(0x1d0)]['to'](_0x3af806(0x1cb))}]}),_0x38a87a[_0x3af806(0x1e1)]({'tag':_0x3af806(0x19a),'attributes':{'class':['ck',_0x3af806(0x1b1),_0x3af806(0x190),this[_0x3af806(0x1d0)]['if'](_0x3af806(0x1b3),_0x3af806(0x1d2),_0x3ff930=>!_0x3ff930)]},'children':[_0x1617fd]}),_0x38a87a;}[_0x1573e0(0x1a8)](){const _0x1b8ba1=_0x1573e0;this[_0x1b8ba1(0x1a0)](),this[_0x1b8ba1(0x1e4)]&&this[_0x1b8ba1(0x1e4)][_0x1b8ba1(0x1b4)]();}[_0x1573e0(0x1c1)](){const _0x519bdc=_0x1573e0;this[_0x519bdc(0x1e4)]&&this[_0x519bdc(0x1e4)][_0x519bdc(0x1d7)]();}[_0x1573e0(0x1a0)](){const _0x194b13=_0x1573e0,_0x1faa49=this[_0x194b13(0x1a4)]();_0x1faa49&&!this[_0x194b13(0x1e4)]&&(this[_0x194b13(0x1e4)]=new _0x49e0ea(_0x1faa49));}[_0x1573e0(0x1a4)](){const _0x1f3f6b=_0x1573e0;return this[_0x1f3f6b(0x18c)]instanceof _0xd91d72&&this[_0x1f3f6b(0x18c)][_0x1f3f6b(0x19d)][_0x1f3f6b(0x1aa)]?this[_0x1f3f6b(0x18c)][_0x1f3f6b(0x19d)][_0x1f3f6b(0x1aa)]:null;}}
|
package/src/aichat/aichat.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x58b1a6=_0x1e2f;function _0x24b0(){var _0x5e8eb7=['AIChat','focusPromptInput','8264wEmaFi','91LOsWTn','ai.chat.context','get','isPremiumPlugin','removeSelectionFromChatContext','696ScpSAg','15126914KyZMuc','startConversation','9015htaPMd','318YKUOTY','ai.chat.models','8334684eNRlWX','2140BQHIko','requires','addSelectionToChatContext','1266euuFai','10nVLeQR','9459MEUNzF','context','plugins','sendMessage','isOfficialPlugin','187859wANmuw','196901okjvpw','config','define','pluginName'];_0x24b0=function(){return _0x5e8eb7;};return _0x24b0();}(function(_0x821c26,_0x52930d){var _0x1692e8=_0x1e2f,_0x2500ee=_0x821c26();while(!![]){try{var _0x62d359=-parseInt(_0x1692e8(0x11b))/0x1+-parseInt(_0x1692e8(0x113))/0x2*(parseInt(_0x1692e8(0x10c))/0x3)+-parseInt(_0x1692e8(0x109))/0x4*(parseInt(_0x1692e8(0x110))/0x5)+-parseInt(_0x1692e8(0x10d))/0x6*(parseInt(_0x1692e8(0x11a))/0x7)+parseInt(_0x1692e8(0x103))/0x8*(parseInt(_0x1692e8(0x115))/0x9)+parseInt(_0x1692e8(0x114))/0xa*(-parseInt(_0x1692e8(0x10a))/0xb)+parseInt(_0x1692e8(0x10f))/0xc*(parseInt(_0x1692e8(0x104))/0xd);if(_0x62d359===_0x52930d)break;else _0x2500ee['push'](_0x2500ee['shift']());}catch(_0x372152){_0x2500ee['push'](_0x2500ee['shift']());}}}(_0x24b0,0xee67d));import{ContextPlugin as _0x3a5c8b}from'ckeditor5/src/core.js';import{AIChatController as _0x50928a}from'./aichatcontroller.js';function _0x1e2f(_0x2c31ba,_0x179270){var _0x24b028=_0x24b0();return _0x1e2f=function(_0x1e2f51,_0x28dbc4){_0x1e2f51=_0x1e2f51-0xfe;var _0x3e9254=_0x24b028[_0x1e2f51];return _0x3e9254;},_0x1e2f(_0x2c31ba,_0x179270);}import{AIEditing as _0x5cf4d8}from'../aicore/aiediting.js';import{AIChatUI as _0x370704}from'./aichatui.js';import{AIChatHistory as _0x3f40f5}from'../aichathistory/aichathistory.js';export class AIChat extends _0x3a5c8b{static get[_0x58b1a6(0x111)](){return[_0x50928a,_0x5cf4d8,_0x370704,_0x3f40f5];}static get[_0x58b1a6(0x100)](){var _0x578108=_0x58b1a6;return _0x578108(0x101);}static get[_0x58b1a6(0x119)](){return!0x0;}static get[_0x58b1a6(0x107)](){return!0x0;}constructor(_0x1b8b66){var _0x2e8242=_0x58b1a6;super(_0x1b8b66),this[_0x2e8242(0x116)][_0x2e8242(0xfe)][_0x2e8242(0xff)](_0x2e8242(0x105),{'document':{'enabled':!0x0},'urls':{'enabled':!0x0},'files':{'enabled':!0x0},'sources':[]}),this[_0x2e8242(0x116)][_0x2e8242(0xfe)][_0x2e8242(0xff)](_0x2e8242(0x10e),{'defaultModelId':void 0x0,'modelSelectorAlwaysVisible':!0x0,'displayedModels':void 0x0});}async[_0x58b1a6(0x112)](){var _0x4bf8e3=_0x58b1a6;await this[_0x4bf8e3(0x116)][_0x4bf8e3(0x117)][_0x4bf8e3(0x106)](_0x50928a)[_0x4bf8e3(0x112)]();}async[_0x58b1a6(0x10b)](){var _0x2a2ea1=_0x58b1a6;await this[_0x2a2ea1(0x116)][_0x2a2ea1(0x117)][_0x2a2ea1(0x106)](_0x50928a)[_0x2a2ea1(0x10b)]();}async[_0x58b1a6(0x118)]({message:_0x214f60,quickActionData:_0x12a9ab}){var _0x2b7b64=_0x58b1a6;await this[_0x2b7b64(0x116)][_0x2b7b64(0x117)][_0x2b7b64(0x106)](_0x50928a)[_0x2b7b64(0x118)]({'message':_0x214f60,'quickActionData':_0x12a9ab});}[_0x58b1a6(0x108)](){var _0x15ef69=_0x58b1a6;this[_0x15ef69(0x116)][_0x15ef69(0x117)][_0x15ef69(0x106)](_0x50928a)[_0x15ef69(0x108)]();}[_0x58b1a6(0x102)](){var _0x4a7af2=_0x58b1a6;this[_0x4a7af2(0x116)][_0x4a7af2(0x117)][_0x4a7af2(0x106)](_0x50928a)[_0x4a7af2(0x102)]();}}
|